1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for GRUB 0.97.
4#
5# Report bugs to <bug-grub@gnu.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70	 X"$0" : 'X\(//\)$' \| \
71	 X"$0" : 'X\(/\)$' \| \
72	 .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
76  	  /^X\/\(\/\).*/{ s//\1/; q; }
77  	  s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138	 case $as_dir in
139	 /*)
140	   if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148	     CONFIG_SHELL=$as_dir/$as_base
149	     export CONFIG_SHELL
150	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151	   fi;;
152	 esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='	' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" 	$as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
256ac_default_prefix=/usr/local
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete.  It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='GRUB'
271PACKAGE_TARNAME='grub'
272PACKAGE_VERSION='0.97'
273PACKAGE_STRING='GRUB 0.97'
274PACKAGE_BUGREPORT='bug-grub@gnu.org'
275
276ac_unique_file="stage2/stage2.c"
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291#  include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296#  include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307#  include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
313
314ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT PERL CC ac_ct_CC CFLAGS LDFLAGS CPPFLAGS EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CCAS RANLIB ac_ct_RANLIB STAGE1_CFLAGS STAGE2_CFLAGS GRUB_CFLAGS OBJCOPY ac_ct_OBJCOPY GRUB_LIBS CPP EGREP NETBOOT_SUPPORT_TRUE NETBOOT_SUPPORT_FALSE DISKLESS_SUPPORT_TRUE DISKLESS_SUPPORT_FALSE HERCULES_SUPPORT_TRUE HERCULES_SUPPORT_FALSE SERIAL_SUPPORT_TRUE SERIAL_SUPPORT_FALSE SERIAL_SPEED_SIMULATION_TRUE SERIAL_SPEED_SIMULATION_FALSE BUILD_EXAMPLE_KERNEL_TRUE BUILD_EXAMPLE_KERNEL_FALSE FSYS_CFLAGS NET_CFLAGS NET_EXTRAFLAGS NETBOOT_DRIVERS CCASFLAGS LIBOBJS LTLIBOBJS'
315ac_subst_files=''
316
317# Initialize some variables set by options.
318ac_init_help=
319ac_init_version=false
320# The variables have the same names as the options, with
321# dashes changed to underlines.
322cache_file=/dev/null
323exec_prefix=NONE
324no_create=
325no_recursion=
326prefix=NONE
327program_prefix=NONE
328program_suffix=NONE
329program_transform_name=s,x,x,
330silent=
331site=
332srcdir=
333verbose=
334x_includes=NONE
335x_libraries=NONE
336
337# Installation directory options.
338# These are left unexpanded so users can "make install exec_prefix=/foo"
339# and all the variables that are supposed to be based on exec_prefix
340# by default will actually change.
341# Use braces instead of parens because sh, perl, etc. also accept them.
342bindir='${exec_prefix}/bin'
343sbindir='${exec_prefix}/sbin'
344libexecdir='${exec_prefix}/libexec'
345datadir='${prefix}/share'
346sysconfdir='${prefix}/etc'
347sharedstatedir='${prefix}/com'
348localstatedir='${prefix}/var'
349libdir='${exec_prefix}/lib'
350includedir='${prefix}/include'
351oldincludedir='/usr/include'
352infodir='${prefix}/info'
353mandir='${prefix}/man'
354
355ac_prev=
356for ac_option
357do
358  # If the previous option needs an argument, assign it.
359  if test -n "$ac_prev"; then
360    eval "$ac_prev=\$ac_option"
361    ac_prev=
362    continue
363  fi
364
365  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367  # Accept the important Cygnus configure options, so we can diagnose typos.
368
369  case $ac_option in
370
371  -bindir | --bindir | --bindi | --bind | --bin | --bi)
372    ac_prev=bindir ;;
373  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374    bindir=$ac_optarg ;;
375
376  -build | --build | --buil | --bui | --bu)
377    ac_prev=build_alias ;;
378  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379    build_alias=$ac_optarg ;;
380
381  -cache-file | --cache-file | --cache-fil | --cache-fi \
382  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383    ac_prev=cache_file ;;
384  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386    cache_file=$ac_optarg ;;
387
388  --config-cache | -C)
389    cache_file=config.cache ;;
390
391  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392    ac_prev=datadir ;;
393  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394  | --da=*)
395    datadir=$ac_optarg ;;
396
397  -disable-* | --disable-*)
398    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399    # Reject names that are not valid shell variable names.
400    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402   { (exit 1); exit 1; }; }
403    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404    eval "enable_$ac_feature=no" ;;
405
406  -enable-* | --enable-*)
407    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408    # Reject names that are not valid shell variable names.
409    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411   { (exit 1); exit 1; }; }
412    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413    case $ac_option in
414      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415      *) ac_optarg=yes ;;
416    esac
417    eval "enable_$ac_feature='$ac_optarg'" ;;
418
419  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421  | --exec | --exe | --ex)
422    ac_prev=exec_prefix ;;
423  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425  | --exec=* | --exe=* | --ex=*)
426    exec_prefix=$ac_optarg ;;
427
428  -gas | --gas | --ga | --g)
429    # Obsolete; use --with-gas.
430    with_gas=yes ;;
431
432  -help | --help | --hel | --he | -h)
433    ac_init_help=long ;;
434  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435    ac_init_help=recursive ;;
436  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437    ac_init_help=short ;;
438
439  -host | --host | --hos | --ho)
440    ac_prev=host_alias ;;
441  -host=* | --host=* | --hos=* | --ho=*)
442    host_alias=$ac_optarg ;;
443
444  -includedir | --includedir | --includedi | --included | --include \
445  | --includ | --inclu | --incl | --inc)
446    ac_prev=includedir ;;
447  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448  | --includ=* | --inclu=* | --incl=* | --inc=*)
449    includedir=$ac_optarg ;;
450
451  -infodir | --infodir | --infodi | --infod | --info | --inf)
452    ac_prev=infodir ;;
453  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454    infodir=$ac_optarg ;;
455
456  -libdir | --libdir | --libdi | --libd)
457    ac_prev=libdir ;;
458  -libdir=* | --libdir=* | --libdi=* | --libd=*)
459    libdir=$ac_optarg ;;
460
461  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462  | --libexe | --libex | --libe)
463    ac_prev=libexecdir ;;
464  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465  | --libexe=* | --libex=* | --libe=*)
466    libexecdir=$ac_optarg ;;
467
468  -localstatedir | --localstatedir | --localstatedi | --localstated \
469  | --localstate | --localstat | --localsta | --localst \
470  | --locals | --local | --loca | --loc | --lo)
471    ac_prev=localstatedir ;;
472  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475    localstatedir=$ac_optarg ;;
476
477  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478    ac_prev=mandir ;;
479  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480    mandir=$ac_optarg ;;
481
482  -nfp | --nfp | --nf)
483    # Obsolete; use --without-fp.
484    with_fp=no ;;
485
486  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487  | --no-cr | --no-c | -n)
488    no_create=yes ;;
489
490  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492    no_recursion=yes ;;
493
494  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496  | --oldin | --oldi | --old | --ol | --o)
497    ac_prev=oldincludedir ;;
498  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501    oldincludedir=$ac_optarg ;;
502
503  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504    ac_prev=prefix ;;
505  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506    prefix=$ac_optarg ;;
507
508  -program-prefix | --program-prefix | --program-prefi | --program-pref \
509  | --program-pre | --program-pr | --program-p)
510    ac_prev=program_prefix ;;
511  -program-prefix=* | --program-prefix=* | --program-prefi=* \
512  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513    program_prefix=$ac_optarg ;;
514
515  -program-suffix | --program-suffix | --program-suffi | --program-suff \
516  | --program-suf | --program-su | --program-s)
517    ac_prev=program_suffix ;;
518  -program-suffix=* | --program-suffix=* | --program-suffi=* \
519  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520    program_suffix=$ac_optarg ;;
521
522  -program-transform-name | --program-transform-name \
523  | --program-transform-nam | --program-transform-na \
524  | --program-transform-n | --program-transform- \
525  | --program-transform | --program-transfor \
526  | --program-transfo | --program-transf \
527  | --program-trans | --program-tran \
528  | --progr-tra | --program-tr | --program-t)
529    ac_prev=program_transform_name ;;
530  -program-transform-name=* | --program-transform-name=* \
531  | --program-transform-nam=* | --program-transform-na=* \
532  | --program-transform-n=* | --program-transform-=* \
533  | --program-transform=* | --program-transfor=* \
534  | --program-transfo=* | --program-transf=* \
535  | --program-trans=* | --program-tran=* \
536  | --progr-tra=* | --program-tr=* | --program-t=*)
537    program_transform_name=$ac_optarg ;;
538
539  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540  | -silent | --silent | --silen | --sile | --sil)
541    silent=yes ;;
542
543  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544    ac_prev=sbindir ;;
545  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546  | --sbi=* | --sb=*)
547    sbindir=$ac_optarg ;;
548
549  -sharedstatedir | --sharedstatedir | --sharedstatedi \
550  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551  | --sharedst | --shareds | --shared | --share | --shar \
552  | --sha | --sh)
553    ac_prev=sharedstatedir ;;
554  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557  | --sha=* | --sh=*)
558    sharedstatedir=$ac_optarg ;;
559
560  -site | --site | --sit)
561    ac_prev=site ;;
562  -site=* | --site=* | --sit=*)
563    site=$ac_optarg ;;
564
565  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566    ac_prev=srcdir ;;
567  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568    srcdir=$ac_optarg ;;
569
570  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571  | --syscon | --sysco | --sysc | --sys | --sy)
572    ac_prev=sysconfdir ;;
573  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575    sysconfdir=$ac_optarg ;;
576
577  -target | --target | --targe | --targ | --tar | --ta | --t)
578    ac_prev=target_alias ;;
579  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580    target_alias=$ac_optarg ;;
581
582  -v | -verbose | --verbose | --verbos | --verbo | --verb)
583    verbose=yes ;;
584
585  -version | --version | --versio | --versi | --vers | -V)
586    ac_init_version=: ;;
587
588  -with-* | --with-*)
589    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590    # Reject names that are not valid shell variable names.
591    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592      { echo "$as_me: error: invalid package name: $ac_package" >&2
593   { (exit 1); exit 1; }; }
594    ac_package=`echo $ac_package| sed 's/-/_/g'`
595    case $ac_option in
596      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597      *) ac_optarg=yes ;;
598    esac
599    eval "with_$ac_package='$ac_optarg'" ;;
600
601  -without-* | --without-*)
602    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603    # Reject names that are not valid shell variable names.
604    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605      { echo "$as_me: error: invalid package name: $ac_package" >&2
606   { (exit 1); exit 1; }; }
607    ac_package=`echo $ac_package | sed 's/-/_/g'`
608    eval "with_$ac_package=no" ;;
609
610  --x)
611    # Obsolete; use --with-x.
612    with_x=yes ;;
613
614  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615  | --x-incl | --x-inc | --x-in | --x-i)
616    ac_prev=x_includes ;;
617  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619    x_includes=$ac_optarg ;;
620
621  -x-libraries | --x-libraries | --x-librarie | --x-librari \
622  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623    ac_prev=x_libraries ;;
624  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626    x_libraries=$ac_optarg ;;
627
628  -*) { echo "$as_me: error: unrecognized option: $ac_option
629Try \`$0 --help' for more information." >&2
630   { (exit 1); exit 1; }; }
631    ;;
632
633  *=*)
634    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635    # Reject names that are not valid shell variable names.
636    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638   { (exit 1); exit 1; }; }
639    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640    eval "$ac_envvar='$ac_optarg'"
641    export $ac_envvar ;;
642
643  *)
644    # FIXME: should be removed in autoconf 3.0.
645    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649    ;;
650
651  esac
652done
653
654if test -n "$ac_prev"; then
655  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656  { echo "$as_me: error: missing argument to $ac_option" >&2
657   { (exit 1); exit 1; }; }
658fi
659
660# Be sure to have absolute paths.
661for ac_var in exec_prefix prefix
662do
663  eval ac_val=$`echo $ac_var`
664  case $ac_val in
665    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667   { (exit 1); exit 1; }; };;
668  esac
669done
670
671# Be sure to have absolute paths.
672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673	      localstatedir libdir includedir oldincludedir infodir mandir
674do
675  eval ac_val=$`echo $ac_var`
676  case $ac_val in
677    [\\/$]* | ?:[\\/]* ) ;;
678    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679   { (exit 1); exit 1; }; };;
680  esac
681done
682
683# There might be people who depend on the old broken behavior: `$host'
684# used to hold the argument of --host etc.
685# FIXME: To remove some day.
686build=$build_alias
687host=$host_alias
688target=$target_alias
689
690# FIXME: To remove some day.
691if test "x$host_alias" != x; then
692  if test "x$build_alias" = x; then
693    cross_compiling=maybe
694    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695    If a cross compiler is detected then cross compile mode will be used." >&2
696  elif test "x$build_alias" != "x$host_alias"; then
697    cross_compiling=yes
698  fi
699fi
700
701ac_tool_prefix=
702test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704test "$silent" = yes && exec 6>/dev/null
705
706
707# Find the source files, if location was not specified.
708if test -z "$srcdir"; then
709  ac_srcdir_defaulted=yes
710  # Try the directory containing this script, then its parent.
711  ac_confdir=`(dirname "$0") 2>/dev/null ||
712$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713	 X"$0" : 'X\(//\)[^/]' \| \
714	 X"$0" : 'X\(//\)$' \| \
715	 X"$0" : 'X\(/\)' \| \
716	 .     : '\(.\)' 2>/dev/null ||
717echo X"$0" |
718    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720  	  /^X\(\/\/\)$/{ s//\1/; q; }
721  	  /^X\(\/\).*/{ s//\1/; q; }
722  	  s/.*/./; q'`
723  srcdir=$ac_confdir
724  if test ! -r $srcdir/$ac_unique_file; then
725    srcdir=..
726  fi
727else
728  ac_srcdir_defaulted=no
729fi
730if test ! -r $srcdir/$ac_unique_file; then
731  if test "$ac_srcdir_defaulted" = yes; then
732    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733   { (exit 1); exit 1; }; }
734  else
735    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736   { (exit 1); exit 1; }; }
737  fi
738fi
739(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741   { (exit 1); exit 1; }; }
742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743ac_env_build_alias_set=${build_alias+set}
744ac_env_build_alias_value=$build_alias
745ac_cv_env_build_alias_set=${build_alias+set}
746ac_cv_env_build_alias_value=$build_alias
747ac_env_host_alias_set=${host_alias+set}
748ac_env_host_alias_value=$host_alias
749ac_cv_env_host_alias_set=${host_alias+set}
750ac_cv_env_host_alias_value=$host_alias
751ac_env_target_alias_set=${target_alias+set}
752ac_env_target_alias_value=$target_alias
753ac_cv_env_target_alias_set=${target_alias+set}
754ac_cv_env_target_alias_value=$target_alias
755ac_env_CC_set=${CC+set}
756ac_env_CC_value=$CC
757ac_cv_env_CC_set=${CC+set}
758ac_cv_env_CC_value=$CC
759ac_env_CFLAGS_set=${CFLAGS+set}
760ac_env_CFLAGS_value=$CFLAGS
761ac_cv_env_CFLAGS_set=${CFLAGS+set}
762ac_cv_env_CFLAGS_value=$CFLAGS
763ac_env_LDFLAGS_set=${LDFLAGS+set}
764ac_env_LDFLAGS_value=$LDFLAGS
765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766ac_cv_env_LDFLAGS_value=$LDFLAGS
767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_env_CPPFLAGS_value=$CPPFLAGS
769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771ac_env_CPP_set=${CPP+set}
772ac_env_CPP_value=$CPP
773ac_cv_env_CPP_set=${CPP+set}
774ac_cv_env_CPP_value=$CPP
775
776#
777# Report the --help message.
778#
779if test "$ac_init_help" = "long"; then
780  # Omit some internal or obsolete options to make the list less imposing.
781  # This message is too long to be a string in the A/UX 3.1 sh.
782  cat <<_ACEOF
783\`configure' configures GRUB 0.97 to adapt to many kinds of systems.
784
785Usage: $0 [OPTION]... [VAR=VALUE]...
786
787To assign environment variables (e.g., CC, CFLAGS...), specify them as
788VAR=VALUE.  See below for descriptions of some of the useful variables.
789
790Defaults for the options are specified in brackets.
791
792Configuration:
793  -h, --help              display this help and exit
794      --help=short        display options specific to this package
795      --help=recursive    display the short help of all the included packages
796  -V, --version           display version information and exit
797  -q, --quiet, --silent   do not print \`checking...' messages
798      --cache-file=FILE   cache test results in FILE [disabled]
799  -C, --config-cache      alias for \`--cache-file=config.cache'
800  -n, --no-create         do not create output files
801      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
802
803_ACEOF
804
805  cat <<_ACEOF
806Installation directories:
807  --prefix=PREFIX         install architecture-independent files in PREFIX
808			  [$ac_default_prefix]
809  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
810			  [PREFIX]
811
812By default, \`make install' will install all the files in
813\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
814an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815for instance \`--prefix=\$HOME'.
816
817For better control, use the options below.
818
819Fine tuning of the installation directories:
820  --bindir=DIR           user executables [EPREFIX/bin]
821  --sbindir=DIR          system admin executables [EPREFIX/sbin]
822  --libexecdir=DIR       program executables [EPREFIX/libexec]
823  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
824  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
825  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
826  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
827  --libdir=DIR           object code libraries [EPREFIX/lib]
828  --includedir=DIR       C header files [PREFIX/include]
829  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
830  --infodir=DIR          info documentation [PREFIX/info]
831  --mandir=DIR           man documentation [PREFIX/man]
832_ACEOF
833
834  cat <<\_ACEOF
835
836Program names:
837  --program-prefix=PREFIX            prepend PREFIX to installed program names
838  --program-suffix=SUFFIX            append SUFFIX to installed program names
839  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
840
841System types:
842  --build=BUILD     configure for building on BUILD [guessed]
843  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
844_ACEOF
845fi
846
847if test -n "$ac_init_help"; then
848  case $ac_init_help in
849     short | recursive ) echo "Configuration of GRUB 0.97:";;
850   esac
851  cat <<\_ACEOF
852
853Optional Features:
854  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
855  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
856  --enable-maintainer-mode  enable make rules and dependencies not useful
857			  (and sometimes confusing) to the casual installer
858  --disable-dependency-tracking  speeds up one-time build
859  --enable-dependency-tracking   do not reject slow dependency extractors
860  --disable-ext2fs        disable ext2fs support in Stage 2
861  --disable-fat           disable FAT support in Stage 2
862  --disable-ffs           disable FFS support in Stage 2
863  --disable-ufs2          disable UFS2 support in Stage 2
864  --disable-minix         disable Minix fs support in Stage 2
865  --disable-reiserfs      disable ReiserFS support in Stage 2
866  --disable-vstafs        disable VSTa FS support in Stage 2
867  --disable-jfs           disable IBM JFS support in Stage 2
868  --disable-xfs           disable SGI XFS support in Stage 2
869  --disable-iso9660       disable ISO9660 support in Stage 2
870  --disable-gunzip        disable decompression in Stage 2
871  --disable-md5-password  disable MD5 password support in Stage 2
872  --disable-packet-retransmission
873                          turn off packet retransmission
874  --enable-pci-direct     access PCI directly instead of using BIOS
875  --enable-3c509          enable 3Com509 driver
876  --enable-3c529          enable 3Com529 driver
877  --enable-3c595          enable 3Com595 driver
878  --enable-3c90x          enable 3Com90x driver
879  --enable-cs89x0         enable CS89x0 driver
880  --enable-davicom        enable Davicom driver
881  --enable-depca          enable DEPCA and EtherWORKS driver
882  --enable-eepro          enable Etherexpress Pro/10 driver
883  --enable-eepro100       enable Etherexpress Pro/100 driver
884  --enable-epic100        enable SMC 83c170 EPIC/100 driver
885  --enable-3c507          enable 3Com507 driver
886  --enable-exos205        enable EXOS205 driver
887  --enable-ni5210         enable Racal-Interlan NI5210 driver
888  --enable-lance          enable Lance PCI PCNet/32 driver
889  --enable-ne2100         enable Novell NE2100 driver
890  --enable-ni6510         enable Racal-Interlan NI6510 driver
891  --enable-natsemi        enable NatSemi DP8381x driver
892  --enable-ni5010         enable Racal-Interlan NI5010 driver
893  --enable-3c503          enable 3Com503 driver
894  --enable-ne             enable NE1000/2000 ISA driver
895  --enable-ns8390         enable NE2000 PCI driver
896  --enable-wd             enable WD8003/8013, SMC8216/8416 driver
897  --enable-otulip         enable old Tulip driver
898  --enable-rtl8139        enable Realtek 8139 driver
899  --enable-sis900         enable SIS 900 and SIS 7016 driver
900  --enable-sk-g16         enable Schneider and Koch G16 driver
901  --enable-smc9000        enable SMC9000 driver
902  --enable-tiara          enable Tiara driver
903  --enable-tulip          enable Tulip driver
904  --enable-via-rhine      enable Rhine-I/II driver
905  --enable-w89c840        enable Winbond W89c840, Compex RL100-ATX driver
906  --enable-3c503-shmem    use 3c503 shared memory mode
907  --enable-3c503-aui      use AUI by default on 3c503 cards
908  --enable-compex-rl2000-fix
909                          specify this if you have a Compex RL2000 PCI
910  --enable-smc9000-scan=LIST
911                          probe for SMC9000 I/O addresses using LIST
912  --enable-ne-scan=LIST   probe for NE base address using LIST
913  --enable-wd-default-mem=MEM
914                          set the default memory location for WD/SMC
915  --enable-cs-scan=LIST   probe for CS89x0 base address using LIST
916  --enable-diskless       enable diskless support
917  --disable-hercules      disable hercules terminal support
918  --disable-serial        disable serial terminal support
919  --enable-serial-speed-simulation
920                          simulate the slowness of a serial device
921  --enable-preset-menu=FILE
922                          preset a menu file FILE in Stage 2
923  --enable-example-kernel
924                          build the example Multiboot kernel
925  --disable-auto-linux-mem-opt
926                          don't pass Linux mem= option automatically
927
928Optional Packages:
929  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
930  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
931  --with-binutils=DIR     search the directory DIR to find binutils
932  --without-curses        do not use curses
933
934Some influential environment variables:
935  CC          C compiler command
936  CFLAGS      C compiler flags
937  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
938              nonstandard directory <lib dir>
939  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
940              headers in a nonstandard directory <include dir>
941  CPP         C preprocessor
942
943Use these variables to override the choices made by `configure' or to help
944it to find libraries and programs with nonstandard names/locations.
945
946Report bugs to <bug-grub@gnu.org>.
947_ACEOF
948fi
949
950if test "$ac_init_help" = "recursive"; then
951  # If there are subdirs, report their specific --help.
952  ac_popdir=`pwd`
953  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
954    test -d $ac_dir || continue
955    ac_builddir=.
956
957if test "$ac_dir" != .; then
958  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
959  # A "../" for each directory in $ac_dir_suffix.
960  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
961else
962  ac_dir_suffix= ac_top_builddir=
963fi
964
965case $srcdir in
966  .)  # No --srcdir option.  We are building in place.
967    ac_srcdir=.
968    if test -z "$ac_top_builddir"; then
969       ac_top_srcdir=.
970    else
971       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
972    fi ;;
973  [\\/]* | ?:[\\/]* )  # Absolute path.
974    ac_srcdir=$srcdir$ac_dir_suffix;
975    ac_top_srcdir=$srcdir ;;
976  *) # Relative path.
977    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
978    ac_top_srcdir=$ac_top_builddir$srcdir ;;
979esac
980
981# Do not use `cd foo && pwd` to compute absolute paths, because
982# the directories may not exist.
983case `pwd` in
984.) ac_abs_builddir="$ac_dir";;
985*)
986  case "$ac_dir" in
987  .) ac_abs_builddir=`pwd`;;
988  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
989  *) ac_abs_builddir=`pwd`/"$ac_dir";;
990  esac;;
991esac
992case $ac_abs_builddir in
993.) ac_abs_top_builddir=${ac_top_builddir}.;;
994*)
995  case ${ac_top_builddir}. in
996  .) ac_abs_top_builddir=$ac_abs_builddir;;
997  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
998  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
999  esac;;
1000esac
1001case $ac_abs_builddir in
1002.) ac_abs_srcdir=$ac_srcdir;;
1003*)
1004  case $ac_srcdir in
1005  .) ac_abs_srcdir=$ac_abs_builddir;;
1006  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1007  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1008  esac;;
1009esac
1010case $ac_abs_builddir in
1011.) ac_abs_top_srcdir=$ac_top_srcdir;;
1012*)
1013  case $ac_top_srcdir in
1014  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1015  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1016  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1017  esac;;
1018esac
1019
1020    cd $ac_dir
1021    # Check for guested configure; otherwise get Cygnus style configure.
1022    if test -f $ac_srcdir/configure.gnu; then
1023      echo
1024      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1025    elif test -f $ac_srcdir/configure; then
1026      echo
1027      $SHELL $ac_srcdir/configure  --help=recursive
1028    elif test -f $ac_srcdir/configure.ac ||
1029	   test -f $ac_srcdir/configure.in; then
1030      echo
1031      $ac_configure --help
1032    else
1033      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1034    fi
1035    cd $ac_popdir
1036  done
1037fi
1038
1039test -n "$ac_init_help" && exit 0
1040if $ac_init_version; then
1041  cat <<\_ACEOF
1042GRUB configure 0.97
1043generated by GNU Autoconf 2.59
1044
1045Copyright (C) 2003 Free Software Foundation, Inc.
1046This configure script is free software; the Free Software Foundation
1047gives unlimited permission to copy, distribute and modify it.
1048_ACEOF
1049  exit 0
1050fi
1051exec 5>config.log
1052cat >&5 <<_ACEOF
1053This file contains any messages produced by compilers while
1054running configure, to aid debugging if configure makes a mistake.
1055
1056It was created by GRUB $as_me 0.97, which was
1057generated by GNU Autoconf 2.59.  Invocation command line was
1058
1059  $ $0 $@
1060
1061_ACEOF
1062{
1063cat <<_ASUNAME
1064## --------- ##
1065## Platform. ##
1066## --------- ##
1067
1068hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1069uname -m = `(uname -m) 2>/dev/null || echo unknown`
1070uname -r = `(uname -r) 2>/dev/null || echo unknown`
1071uname -s = `(uname -s) 2>/dev/null || echo unknown`
1072uname -v = `(uname -v) 2>/dev/null || echo unknown`
1073
1074/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1075/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1076
1077/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1078/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1079/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1080hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1081/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1082/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1083/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1084
1085_ASUNAME
1086
1087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1088for as_dir in $PATH
1089do
1090  IFS=$as_save_IFS
1091  test -z "$as_dir" && as_dir=.
1092  echo "PATH: $as_dir"
1093done
1094
1095} >&5
1096
1097cat >&5 <<_ACEOF
1098
1099
1100## ----------- ##
1101## Core tests. ##
1102## ----------- ##
1103
1104_ACEOF
1105
1106
1107# Keep a trace of the command line.
1108# Strip out --no-create and --no-recursion so they do not pile up.
1109# Strip out --silent because we don't want to record it for future runs.
1110# Also quote any args containing shell meta-characters.
1111# Make two passes to allow for proper duplicate-argument suppression.
1112ac_configure_args=
1113ac_configure_args0=
1114ac_configure_args1=
1115ac_sep=
1116ac_must_keep_next=false
1117for ac_pass in 1 2
1118do
1119  for ac_arg
1120  do
1121    case $ac_arg in
1122    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1123    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124    | -silent | --silent | --silen | --sile | --sil)
1125      continue ;;
1126    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1127      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1128    esac
1129    case $ac_pass in
1130    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1131    2)
1132      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1133      if test $ac_must_keep_next = true; then
1134	ac_must_keep_next=false # Got value, back to normal.
1135      else
1136	case $ac_arg in
1137	  *=* | --config-cache | -C | -disable-* | --disable-* \
1138	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1139	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1140	  | -with-* | --with-* | -without-* | --without-* | --x)
1141	    case "$ac_configure_args0 " in
1142	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1143	    esac
1144	    ;;
1145	  -* ) ac_must_keep_next=true ;;
1146	esac
1147      fi
1148      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1149      # Get rid of the leading space.
1150      ac_sep=" "
1151      ;;
1152    esac
1153  done
1154done
1155$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1156$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1157
1158# When interrupted or exit'd, cleanup temporary files, and complete
1159# config.log.  We remove comments because anyway the quotes in there
1160# would cause problems or look ugly.
1161# WARNING: Be sure not to use single quotes in there, as some shells,
1162# such as our DU 5.0 friend, will then `close' the trap.
1163trap 'exit_status=$?
1164  # Save into config.log some information that might help in debugging.
1165  {
1166    echo
1167
1168    cat <<\_ASBOX
1169## ---------------- ##
1170## Cache variables. ##
1171## ---------------- ##
1172_ASBOX
1173    echo
1174    # The following way of writing the cache mishandles newlines in values,
1175{
1176  (set) 2>&1 |
1177    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1178    *ac_space=\ *)
1179      sed -n \
1180	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1181	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1182      ;;
1183    *)
1184      sed -n \
1185	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1186      ;;
1187    esac;
1188}
1189    echo
1190
1191    cat <<\_ASBOX
1192## ----------------- ##
1193## Output variables. ##
1194## ----------------- ##
1195_ASBOX
1196    echo
1197    for ac_var in $ac_subst_vars
1198    do
1199      eval ac_val=$`echo $ac_var`
1200      echo "$ac_var='"'"'$ac_val'"'"'"
1201    done | sort
1202    echo
1203
1204    if test -n "$ac_subst_files"; then
1205      cat <<\_ASBOX
1206## ------------- ##
1207## Output files. ##
1208## ------------- ##
1209_ASBOX
1210      echo
1211      for ac_var in $ac_subst_files
1212      do
1213	eval ac_val=$`echo $ac_var`
1214	echo "$ac_var='"'"'$ac_val'"'"'"
1215      done | sort
1216      echo
1217    fi
1218
1219    if test -s confdefs.h; then
1220      cat <<\_ASBOX
1221## ----------- ##
1222## confdefs.h. ##
1223## ----------- ##
1224_ASBOX
1225      echo
1226      sed "/^$/d" confdefs.h | sort
1227      echo
1228    fi
1229    test "$ac_signal" != 0 &&
1230      echo "$as_me: caught signal $ac_signal"
1231    echo "$as_me: exit $exit_status"
1232  } >&5
1233  rm -f core *.core &&
1234  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1235    exit $exit_status
1236     ' 0
1237for ac_signal in 1 2 13 15; do
1238  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1239done
1240ac_signal=0
1241
1242# confdefs.h avoids OS command line length limits that DEFS can exceed.
1243rm -rf conftest* confdefs.h
1244# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1245echo >confdefs.h
1246
1247# Predefined preprocessor variables.
1248
1249cat >>confdefs.h <<_ACEOF
1250#define PACKAGE_NAME "$PACKAGE_NAME"
1251_ACEOF
1252
1253
1254cat >>confdefs.h <<_ACEOF
1255#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1256_ACEOF
1257
1258
1259cat >>confdefs.h <<_ACEOF
1260#define PACKAGE_VERSION "$PACKAGE_VERSION"
1261_ACEOF
1262
1263
1264cat >>confdefs.h <<_ACEOF
1265#define PACKAGE_STRING "$PACKAGE_STRING"
1266_ACEOF
1267
1268
1269cat >>confdefs.h <<_ACEOF
1270#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1271_ACEOF
1272
1273
1274# Let the site file select an alternate cache file if it wants to.
1275# Prefer explicitly selected file to automatically selected ones.
1276if test -z "$CONFIG_SITE"; then
1277  if test "x$prefix" != xNONE; then
1278    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1279  else
1280    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1281  fi
1282fi
1283for ac_site_file in $CONFIG_SITE; do
1284  if test -r "$ac_site_file"; then
1285    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1286echo "$as_me: loading site script $ac_site_file" >&6;}
1287    sed 's/^/| /' "$ac_site_file" >&5
1288    . "$ac_site_file"
1289  fi
1290done
1291
1292if test -r "$cache_file"; then
1293  # Some versions of bash will fail to source /dev/null (special
1294  # files actually), so we avoid doing that.
1295  if test -f "$cache_file"; then
1296    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1297echo "$as_me: loading cache $cache_file" >&6;}
1298    case $cache_file in
1299      [\\/]* | ?:[\\/]* ) . $cache_file;;
1300      *)                      . ./$cache_file;;
1301    esac
1302  fi
1303else
1304  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1305echo "$as_me: creating cache $cache_file" >&6;}
1306  >$cache_file
1307fi
1308
1309# Check that the precious variables saved in the cache have kept the same
1310# value.
1311ac_cache_corrupted=false
1312for ac_var in `(set) 2>&1 |
1313	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1314  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1315  eval ac_new_set=\$ac_env_${ac_var}_set
1316  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1317  eval ac_new_val="\$ac_env_${ac_var}_value"
1318  case $ac_old_set,$ac_new_set in
1319    set,)
1320      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1321echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1322      ac_cache_corrupted=: ;;
1323    ,set)
1324      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1325echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1326      ac_cache_corrupted=: ;;
1327    ,);;
1328    *)
1329      if test "x$ac_old_val" != "x$ac_new_val"; then
1330	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1331echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1332	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1333echo "$as_me:   former value:  $ac_old_val" >&2;}
1334	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1335echo "$as_me:   current value: $ac_new_val" >&2;}
1336	ac_cache_corrupted=:
1337      fi;;
1338  esac
1339  # Pass precious variables to config.status.
1340  if test "$ac_new_set" = set; then
1341    case $ac_new_val in
1342    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1343      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1344    *) ac_arg=$ac_var=$ac_new_val ;;
1345    esac
1346    case " $ac_configure_args " in
1347      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1348      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1349    esac
1350  fi
1351done
1352if $ac_cache_corrupted; then
1353  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1354echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1355  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1356echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1357   { (exit 1); exit 1; }; }
1358fi
1359
1360ac_ext=c
1361ac_cpp='$CPP $CPPFLAGS'
1362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1364ac_compiler_gnu=$ac_cv_c_compiler_gnu
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393          ac_config_headers="$ac_config_headers config.h"
1394
1395am__api_version="1.9"
1396ac_aux_dir=
1397for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1398  if test -f $ac_dir/install-sh; then
1399    ac_aux_dir=$ac_dir
1400    ac_install_sh="$ac_aux_dir/install-sh -c"
1401    break
1402  elif test -f $ac_dir/install.sh; then
1403    ac_aux_dir=$ac_dir
1404    ac_install_sh="$ac_aux_dir/install.sh -c"
1405    break
1406  elif test -f $ac_dir/shtool; then
1407    ac_aux_dir=$ac_dir
1408    ac_install_sh="$ac_aux_dir/shtool install -c"
1409    break
1410  fi
1411done
1412if test -z "$ac_aux_dir"; then
1413  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1414echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1415   { (exit 1); exit 1; }; }
1416fi
1417ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1418ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1419ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1420
1421# Find a good install program.  We prefer a C program (faster),
1422# so one script is as good as another.  But avoid the broken or
1423# incompatible versions:
1424# SysV /etc/install, /usr/sbin/install
1425# SunOS /usr/etc/install
1426# IRIX /sbin/install
1427# AIX /bin/install
1428# AmigaOS /C/install, which installs bootblocks on floppy discs
1429# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1430# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1431# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1432# OS/2's system install, which has a completely different semantic
1433# ./install, which can be erroneously created by make from ./install.sh.
1434echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1435echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1436if test -z "$INSTALL"; then
1437if test "${ac_cv_path_install+set}" = set; then
1438  echo $ECHO_N "(cached) $ECHO_C" >&6
1439else
1440  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1441for as_dir in $PATH
1442do
1443  IFS=$as_save_IFS
1444  test -z "$as_dir" && as_dir=.
1445  # Account for people who put trailing slashes in PATH elements.
1446case $as_dir/ in
1447  ./ | .// | /cC/* | \
1448  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1449  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1450  /usr/ucb/* ) ;;
1451  *)
1452    # OSF1 and SCO ODT 3.0 have their own names for install.
1453    # Don't use installbsd from OSF since it installs stuff as root
1454    # by default.
1455    for ac_prog in ginstall scoinst install; do
1456      for ac_exec_ext in '' $ac_executable_extensions; do
1457	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1458	  if test $ac_prog = install &&
1459	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1460	    # AIX install.  It has an incompatible calling convention.
1461	    :
1462	  elif test $ac_prog = install &&
1463	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1464	    # program-specific install script used by HP pwplus--don't use.
1465	    :
1466	  else
1467	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1468	    break 3
1469	  fi
1470	fi
1471      done
1472    done
1473    ;;
1474esac
1475done
1476
1477
1478fi
1479  if test "${ac_cv_path_install+set}" = set; then
1480    INSTALL=$ac_cv_path_install
1481  else
1482    # As a last resort, use the slow shell script.  We don't cache a
1483    # path for INSTALL within a source directory, because that will
1484    # break other packages using the cache if that directory is
1485    # removed, or if the path is relative.
1486    INSTALL=$ac_install_sh
1487  fi
1488fi
1489echo "$as_me:$LINENO: result: $INSTALL" >&5
1490echo "${ECHO_T}$INSTALL" >&6
1491
1492# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1493# It thinks the first close brace ends the variable substitution.
1494test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1495
1496test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1497
1498test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1499
1500echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1501echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1502# Just in case
1503sleep 1
1504echo timestamp > conftest.file
1505# Do `set' in a subshell so we don't clobber the current shell's
1506# arguments.  Must try -L first in case configure is actually a
1507# symlink; some systems play weird games with the mod time of symlinks
1508# (eg FreeBSD returns the mod time of the symlink's containing
1509# directory).
1510if (
1511   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1512   if test "$*" = "X"; then
1513      # -L didn't work.
1514      set X `ls -t $srcdir/configure conftest.file`
1515   fi
1516   rm -f conftest.file
1517   if test "$*" != "X $srcdir/configure conftest.file" \
1518      && test "$*" != "X conftest.file $srcdir/configure"; then
1519
1520      # If neither matched, then we have a broken ls.  This can happen
1521      # if, for instance, CONFIG_SHELL is bash and it inherits a
1522      # broken ls alias from the environment.  This has actually
1523      # happened.  Such a system could not be considered "sane".
1524      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1525alias in your environment" >&5
1526echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1527alias in your environment" >&2;}
1528   { (exit 1); exit 1; }; }
1529   fi
1530
1531   test "$2" = conftest.file
1532   )
1533then
1534   # Ok.
1535   :
1536else
1537   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1538Check your system clock" >&5
1539echo "$as_me: error: newly created file is older than distributed files!
1540Check your system clock" >&2;}
1541   { (exit 1); exit 1; }; }
1542fi
1543echo "$as_me:$LINENO: result: yes" >&5
1544echo "${ECHO_T}yes" >&6
1545test "$program_prefix" != NONE &&
1546  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1547# Use a double $ so make ignores it.
1548test "$program_suffix" != NONE &&
1549  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1550# Double any \ or $.  echo might interpret backslashes.
1551# By default was `s,x,x', remove it if useless.
1552cat <<\_ACEOF >conftest.sed
1553s/[\\$]/&&/g;s/;s,x,x,$//
1554_ACEOF
1555program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1556rm conftest.sed
1557
1558# expand $ac_aux_dir to an absolute path
1559am_aux_dir=`cd $ac_aux_dir && pwd`
1560
1561test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1562# Use eval to expand $SHELL
1563if eval "$MISSING --run true"; then
1564  am_missing_run="$MISSING --run "
1565else
1566  am_missing_run=
1567  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1568echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1569fi
1570
1571if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1572  # We used to keeping the `.' as first argument, in order to
1573  # allow $(mkdir_p) to be used without argument.  As in
1574  #   $(mkdir_p) $(somedir)
1575  # where $(somedir) is conditionally defined.  However this is wrong
1576  # for two reasons:
1577  #  1. if the package is installed by a user who cannot write `.'
1578  #     make install will fail,
1579  #  2. the above comment should most certainly read
1580  #     $(mkdir_p) $(DESTDIR)$(somedir)
1581  #     so it does not work when $(somedir) is undefined and
1582  #     $(DESTDIR) is not.
1583  #  To support the latter case, we have to write
1584  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1585  #  so the `.' trick is pointless.
1586  mkdir_p='mkdir -p --'
1587else
1588  # On NextStep and OpenStep, the `mkdir' command does not
1589  # recognize any option.  It will interpret all options as
1590  # directories to create, and then abort because `.' already
1591  # exists.
1592  for d in ./-p ./--version;
1593  do
1594    test -d $d && rmdir $d
1595  done
1596  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1597  if test -f "$ac_aux_dir/mkinstalldirs"; then
1598    mkdir_p='$(mkinstalldirs)'
1599  else
1600    mkdir_p='$(install_sh) -d'
1601  fi
1602fi
1603
1604for ac_prog in gawk mawk nawk awk
1605do
1606  # Extract the first word of "$ac_prog", so it can be a program name with args.
1607set dummy $ac_prog; ac_word=$2
1608echo "$as_me:$LINENO: checking for $ac_word" >&5
1609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610if test "${ac_cv_prog_AWK+set}" = set; then
1611  echo $ECHO_N "(cached) $ECHO_C" >&6
1612else
1613  if test -n "$AWK"; then
1614  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1615else
1616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617for as_dir in $PATH
1618do
1619  IFS=$as_save_IFS
1620  test -z "$as_dir" && as_dir=.
1621  for ac_exec_ext in '' $ac_executable_extensions; do
1622  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1623    ac_cv_prog_AWK="$ac_prog"
1624    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625    break 2
1626  fi
1627done
1628done
1629
1630fi
1631fi
1632AWK=$ac_cv_prog_AWK
1633if test -n "$AWK"; then
1634  echo "$as_me:$LINENO: result: $AWK" >&5
1635echo "${ECHO_T}$AWK" >&6
1636else
1637  echo "$as_me:$LINENO: result: no" >&5
1638echo "${ECHO_T}no" >&6
1639fi
1640
1641  test -n "$AWK" && break
1642done
1643
1644echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1645echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1646set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1647if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1648  echo $ECHO_N "(cached) $ECHO_C" >&6
1649else
1650  cat >conftest.make <<\_ACEOF
1651all:
1652	@echo 'ac_maketemp="$(MAKE)"'
1653_ACEOF
1654# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1655eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1656if test -n "$ac_maketemp"; then
1657  eval ac_cv_prog_make_${ac_make}_set=yes
1658else
1659  eval ac_cv_prog_make_${ac_make}_set=no
1660fi
1661rm -f conftest.make
1662fi
1663if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1664  echo "$as_me:$LINENO: result: yes" >&5
1665echo "${ECHO_T}yes" >&6
1666  SET_MAKE=
1667else
1668  echo "$as_me:$LINENO: result: no" >&5
1669echo "${ECHO_T}no" >&6
1670  SET_MAKE="MAKE=${MAKE-make}"
1671fi
1672
1673rm -rf .tst 2>/dev/null
1674mkdir .tst 2>/dev/null
1675if test -d .tst; then
1676  am__leading_dot=.
1677else
1678  am__leading_dot=_
1679fi
1680rmdir .tst 2>/dev/null
1681
1682# test to see if srcdir already configured
1683if test "`cd $srcdir && pwd`" != "`pwd`" &&
1684   test -f $srcdir/config.status; then
1685  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1686echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1687   { (exit 1); exit 1; }; }
1688fi
1689
1690# test whether we have cygpath
1691if test -z "$CYGPATH_W"; then
1692  if (cygpath --version) >/dev/null 2>/dev/null; then
1693    CYGPATH_W='cygpath -w'
1694  else
1695    CYGPATH_W=echo
1696  fi
1697fi
1698
1699
1700# Define the identity of the package.
1701 PACKAGE='grub'
1702 VERSION='0.97'
1703
1704
1705cat >>confdefs.h <<_ACEOF
1706#define PACKAGE "$PACKAGE"
1707_ACEOF
1708
1709
1710cat >>confdefs.h <<_ACEOF
1711#define VERSION "$VERSION"
1712_ACEOF
1713
1714# Some tools Automake needs.
1715
1716ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1717
1718
1719AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1720
1721
1722AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1723
1724
1725AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1726
1727
1728MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1729
1730install_sh=${install_sh-"$am_aux_dir/install-sh"}
1731
1732# Installed binaries are usually stripped using `strip' when the user
1733# run `make install-strip'.  However `strip' might not be the right
1734# tool to use in cross-compilation environments, therefore Automake
1735# will honor the `STRIP' environment variable to overrule this program.
1736if test "$cross_compiling" != no; then
1737  if test -n "$ac_tool_prefix"; then
1738  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1739set dummy ${ac_tool_prefix}strip; ac_word=$2
1740echo "$as_me:$LINENO: checking for $ac_word" >&5
1741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1742if test "${ac_cv_prog_STRIP+set}" = set; then
1743  echo $ECHO_N "(cached) $ECHO_C" >&6
1744else
1745  if test -n "$STRIP"; then
1746  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1747else
1748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749for as_dir in $PATH
1750do
1751  IFS=$as_save_IFS
1752  test -z "$as_dir" && as_dir=.
1753  for ac_exec_ext in '' $ac_executable_extensions; do
1754  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1755    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1756    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1757    break 2
1758  fi
1759done
1760done
1761
1762fi
1763fi
1764STRIP=$ac_cv_prog_STRIP
1765if test -n "$STRIP"; then
1766  echo "$as_me:$LINENO: result: $STRIP" >&5
1767echo "${ECHO_T}$STRIP" >&6
1768else
1769  echo "$as_me:$LINENO: result: no" >&5
1770echo "${ECHO_T}no" >&6
1771fi
1772
1773fi
1774if test -z "$ac_cv_prog_STRIP"; then
1775  ac_ct_STRIP=$STRIP
1776  # Extract the first word of "strip", so it can be a program name with args.
1777set dummy strip; ac_word=$2
1778echo "$as_me:$LINENO: checking for $ac_word" >&5
1779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1780if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1781  echo $ECHO_N "(cached) $ECHO_C" >&6
1782else
1783  if test -n "$ac_ct_STRIP"; then
1784  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1785else
1786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1787for as_dir in $PATH
1788do
1789  IFS=$as_save_IFS
1790  test -z "$as_dir" && as_dir=.
1791  for ac_exec_ext in '' $ac_executable_extensions; do
1792  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1793    ac_cv_prog_ac_ct_STRIP="strip"
1794    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1795    break 2
1796  fi
1797done
1798done
1799
1800  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1801fi
1802fi
1803ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1804if test -n "$ac_ct_STRIP"; then
1805  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1806echo "${ECHO_T}$ac_ct_STRIP" >&6
1807else
1808  echo "$as_me:$LINENO: result: no" >&5
1809echo "${ECHO_T}no" >&6
1810fi
1811
1812  STRIP=$ac_ct_STRIP
1813else
1814  STRIP="$ac_cv_prog_STRIP"
1815fi
1816
1817fi
1818INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1819
1820# We need awk for the "check" target.  The system "awk" is bad on
1821# some platforms.
1822# Always define AMTAR for backward compatibility.
1823
1824AMTAR=${AMTAR-"${am_missing_run}tar"}
1825
1826am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1827
1828
1829
1830
1831
1832
1833# Make sure we can run config.sub.
1834$ac_config_sub sun4 >/dev/null 2>&1 ||
1835  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1836echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1837   { (exit 1); exit 1; }; }
1838
1839echo "$as_me:$LINENO: checking build system type" >&5
1840echo $ECHO_N "checking build system type... $ECHO_C" >&6
1841if test "${ac_cv_build+set}" = set; then
1842  echo $ECHO_N "(cached) $ECHO_C" >&6
1843else
1844  ac_cv_build_alias=$build_alias
1845test -z "$ac_cv_build_alias" &&
1846  ac_cv_build_alias=`$ac_config_guess`
1847test -z "$ac_cv_build_alias" &&
1848  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1849echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1850   { (exit 1); exit 1; }; }
1851ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1852  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1853echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1854   { (exit 1); exit 1; }; }
1855
1856fi
1857echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1858echo "${ECHO_T}$ac_cv_build" >&6
1859build=$ac_cv_build
1860build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1861build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1862build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1863
1864
1865echo "$as_me:$LINENO: checking host system type" >&5
1866echo $ECHO_N "checking host system type... $ECHO_C" >&6
1867if test "${ac_cv_host+set}" = set; then
1868  echo $ECHO_N "(cached) $ECHO_C" >&6
1869else
1870  ac_cv_host_alias=$host_alias
1871test -z "$ac_cv_host_alias" &&
1872  ac_cv_host_alias=$ac_cv_build_alias
1873ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1874  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1875echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1876   { (exit 1); exit 1; }; }
1877
1878fi
1879echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1880echo "${ECHO_T}$ac_cv_host" >&6
1881host=$ac_cv_host
1882host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1883host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1884host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1885
1886
1887
1888case "$host_cpu" in
1889i[3456]86) host_cpu=i386 ;;
1890x86_64) host_cpu=x86_64 ;;
1891*) { { echo "$as_me:$LINENO: error: unsupported CPU type" >&5
1892echo "$as_me: error: unsupported CPU type" >&2;}
1893   { (exit 1); exit 1; }; } ;;
1894esac
1895
1896
1897
1898
1899#
1900# Options
1901#
1902
1903echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1904echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1905    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1906if test "${enable_maintainer_mode+set}" = set; then
1907  enableval="$enable_maintainer_mode"
1908  USE_MAINTAINER_MODE=$enableval
1909else
1910  USE_MAINTAINER_MODE=no
1911fi;
1912  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1913echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1914
1915
1916if test $USE_MAINTAINER_MODE = yes; then
1917  MAINTAINER_MODE_TRUE=
1918  MAINTAINER_MODE_FALSE='#'
1919else
1920  MAINTAINER_MODE_TRUE='#'
1921  MAINTAINER_MODE_FALSE=
1922fi
1923
1924  MAINT=$MAINTAINER_MODE_TRUE
1925
1926
1927if test "x$enable_maintainer_mode" = xyes; then
1928  # Extract the first word of "perl", so it can be a program name with args.
1929set dummy perl; ac_word=$2
1930echo "$as_me:$LINENO: checking for $ac_word" >&5
1931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1932if test "${ac_cv_path_PERL+set}" = set; then
1933  echo $ECHO_N "(cached) $ECHO_C" >&6
1934else
1935  case $PERL in
1936  [\\/]* | ?:[\\/]*)
1937  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1938  ;;
1939  *)
1940  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941for as_dir in $PATH
1942do
1943  IFS=$as_save_IFS
1944  test -z "$as_dir" && as_dir=.
1945  for ac_exec_ext in '' $ac_executable_extensions; do
1946  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
1948    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1949    break 2
1950  fi
1951done
1952done
1953
1954  ;;
1955esac
1956fi
1957PERL=$ac_cv_path_PERL
1958
1959if test -n "$PERL"; then
1960  echo "$as_me:$LINENO: result: $PERL" >&5
1961echo "${ECHO_T}$PERL" >&6
1962else
1963  echo "$as_me:$LINENO: result: no" >&5
1964echo "${ECHO_T}no" >&6
1965fi
1966
1967  if test -z "$PERL"; then
1968    { { echo "$as_me:$LINENO: error: perl not found" >&5
1969echo "$as_me: error: perl not found" >&2;}
1970   { (exit 1); exit 1; }; }
1971  fi
1972fi
1973
1974# This should be checked before AC_PROG_CC
1975if test "x$CFLAGS" = x; then
1976  default_CFLAGS=yes
1977fi
1978
1979if test "x$host_cpu" = xx86_64; then
1980  CFLAGS="-m32 $CFLAGS"
1981fi
1982
1983#
1984# Programs
1985#
1986
1987if test -n "$ac_tool_prefix"; then
1988  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1989set dummy ${ac_tool_prefix}gcc; ac_word=$2
1990echo "$as_me:$LINENO: checking for $ac_word" >&5
1991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1992if test "${ac_cv_prog_CC+set}" = set; then
1993  echo $ECHO_N "(cached) $ECHO_C" >&6
1994else
1995  if test -n "$CC"; then
1996  ac_cv_prog_CC="$CC" # Let the user override the test.
1997else
1998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999for as_dir in $PATH
2000do
2001  IFS=$as_save_IFS
2002  test -z "$as_dir" && as_dir=.
2003  for ac_exec_ext in '' $ac_executable_extensions; do
2004  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2005    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2006    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2007    break 2
2008  fi
2009done
2010done
2011
2012fi
2013fi
2014CC=$ac_cv_prog_CC
2015if test -n "$CC"; then
2016  echo "$as_me:$LINENO: result: $CC" >&5
2017echo "${ECHO_T}$CC" >&6
2018else
2019  echo "$as_me:$LINENO: result: no" >&5
2020echo "${ECHO_T}no" >&6
2021fi
2022
2023fi
2024if test -z "$ac_cv_prog_CC"; then
2025  ac_ct_CC=$CC
2026  # Extract the first word of "gcc", so it can be a program name with args.
2027set dummy gcc; ac_word=$2
2028echo "$as_me:$LINENO: checking for $ac_word" >&5
2029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2030if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2031  echo $ECHO_N "(cached) $ECHO_C" >&6
2032else
2033  if test -n "$ac_ct_CC"; then
2034  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2035else
2036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037for as_dir in $PATH
2038do
2039  IFS=$as_save_IFS
2040  test -z "$as_dir" && as_dir=.
2041  for ac_exec_ext in '' $ac_executable_extensions; do
2042  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2043    ac_cv_prog_ac_ct_CC="gcc"
2044    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045    break 2
2046  fi
2047done
2048done
2049
2050fi
2051fi
2052ac_ct_CC=$ac_cv_prog_ac_ct_CC
2053if test -n "$ac_ct_CC"; then
2054  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2055echo "${ECHO_T}$ac_ct_CC" >&6
2056else
2057  echo "$as_me:$LINENO: result: no" >&5
2058echo "${ECHO_T}no" >&6
2059fi
2060
2061  CC=$ac_ct_CC
2062else
2063  CC="$ac_cv_prog_CC"
2064fi
2065
2066ac_ext=c
2067ac_cpp='$CPP $CPPFLAGS'
2068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2070ac_compiler_gnu=$ac_cv_c_compiler_gnu
2071if test -n "$ac_tool_prefix"; then
2072  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2073set dummy ${ac_tool_prefix}gcc; ac_word=$2
2074echo "$as_me:$LINENO: checking for $ac_word" >&5
2075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2076if test "${ac_cv_prog_CC+set}" = set; then
2077  echo $ECHO_N "(cached) $ECHO_C" >&6
2078else
2079  if test -n "$CC"; then
2080  ac_cv_prog_CC="$CC" # Let the user override the test.
2081else
2082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083for as_dir in $PATH
2084do
2085  IFS=$as_save_IFS
2086  test -z "$as_dir" && as_dir=.
2087  for ac_exec_ext in '' $ac_executable_extensions; do
2088  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2089    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2090    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091    break 2
2092  fi
2093done
2094done
2095
2096fi
2097fi
2098CC=$ac_cv_prog_CC
2099if test -n "$CC"; then
2100  echo "$as_me:$LINENO: result: $CC" >&5
2101echo "${ECHO_T}$CC" >&6
2102else
2103  echo "$as_me:$LINENO: result: no" >&5
2104echo "${ECHO_T}no" >&6
2105fi
2106
2107fi
2108if test -z "$ac_cv_prog_CC"; then
2109  ac_ct_CC=$CC
2110  # Extract the first word of "gcc", so it can be a program name with args.
2111set dummy gcc; ac_word=$2
2112echo "$as_me:$LINENO: checking for $ac_word" >&5
2113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2114if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2115  echo $ECHO_N "(cached) $ECHO_C" >&6
2116else
2117  if test -n "$ac_ct_CC"; then
2118  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2119else
2120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121for as_dir in $PATH
2122do
2123  IFS=$as_save_IFS
2124  test -z "$as_dir" && as_dir=.
2125  for ac_exec_ext in '' $ac_executable_extensions; do
2126  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2127    ac_cv_prog_ac_ct_CC="gcc"
2128    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129    break 2
2130  fi
2131done
2132done
2133
2134fi
2135fi
2136ac_ct_CC=$ac_cv_prog_ac_ct_CC
2137if test -n "$ac_ct_CC"; then
2138  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2139echo "${ECHO_T}$ac_ct_CC" >&6
2140else
2141  echo "$as_me:$LINENO: result: no" >&5
2142echo "${ECHO_T}no" >&6
2143fi
2144
2145  CC=$ac_ct_CC
2146else
2147  CC="$ac_cv_prog_CC"
2148fi
2149
2150if test -z "$CC"; then
2151  if test -n "$ac_tool_prefix"; then
2152  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2153set dummy ${ac_tool_prefix}cc; ac_word=$2
2154echo "$as_me:$LINENO: checking for $ac_word" >&5
2155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2156if test "${ac_cv_prog_CC+set}" = set; then
2157  echo $ECHO_N "(cached) $ECHO_C" >&6
2158else
2159  if test -n "$CC"; then
2160  ac_cv_prog_CC="$CC" # Let the user override the test.
2161else
2162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163for as_dir in $PATH
2164do
2165  IFS=$as_save_IFS
2166  test -z "$as_dir" && as_dir=.
2167  for ac_exec_ext in '' $ac_executable_extensions; do
2168  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2169    ac_cv_prog_CC="${ac_tool_prefix}cc"
2170    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2171    break 2
2172  fi
2173done
2174done
2175
2176fi
2177fi
2178CC=$ac_cv_prog_CC
2179if test -n "$CC"; then
2180  echo "$as_me:$LINENO: result: $CC" >&5
2181echo "${ECHO_T}$CC" >&6
2182else
2183  echo "$as_me:$LINENO: result: no" >&5
2184echo "${ECHO_T}no" >&6
2185fi
2186
2187fi
2188if test -z "$ac_cv_prog_CC"; then
2189  ac_ct_CC=$CC
2190  # Extract the first word of "cc", so it can be a program name with args.
2191set dummy cc; ac_word=$2
2192echo "$as_me:$LINENO: checking for $ac_word" >&5
2193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2194if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2195  echo $ECHO_N "(cached) $ECHO_C" >&6
2196else
2197  if test -n "$ac_ct_CC"; then
2198  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2199else
2200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2201for as_dir in $PATH
2202do
2203  IFS=$as_save_IFS
2204  test -z "$as_dir" && as_dir=.
2205  for ac_exec_ext in '' $ac_executable_extensions; do
2206  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2207    ac_cv_prog_ac_ct_CC="cc"
2208    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2209    break 2
2210  fi
2211done
2212done
2213
2214fi
2215fi
2216ac_ct_CC=$ac_cv_prog_ac_ct_CC
2217if test -n "$ac_ct_CC"; then
2218  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2219echo "${ECHO_T}$ac_ct_CC" >&6
2220else
2221  echo "$as_me:$LINENO: result: no" >&5
2222echo "${ECHO_T}no" >&6
2223fi
2224
2225  CC=$ac_ct_CC
2226else
2227  CC="$ac_cv_prog_CC"
2228fi
2229
2230fi
2231if test -z "$CC"; then
2232  # Extract the first word of "cc", so it can be a program name with args.
2233set dummy cc; ac_word=$2
2234echo "$as_me:$LINENO: checking for $ac_word" >&5
2235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2236if test "${ac_cv_prog_CC+set}" = set; then
2237  echo $ECHO_N "(cached) $ECHO_C" >&6
2238else
2239  if test -n "$CC"; then
2240  ac_cv_prog_CC="$CC" # Let the user override the test.
2241else
2242  ac_prog_rejected=no
2243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244for as_dir in $PATH
2245do
2246  IFS=$as_save_IFS
2247  test -z "$as_dir" && as_dir=.
2248  for ac_exec_ext in '' $ac_executable_extensions; do
2249  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2250    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2251       ac_prog_rejected=yes
2252       continue
2253     fi
2254    ac_cv_prog_CC="cc"
2255    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2256    break 2
2257  fi
2258done
2259done
2260
2261if test $ac_prog_rejected = yes; then
2262  # We found a bogon in the path, so make sure we never use it.
2263  set dummy $ac_cv_prog_CC
2264  shift
2265  if test $# != 0; then
2266    # We chose a different compiler from the bogus one.
2267    # However, it has the same basename, so the bogon will be chosen
2268    # first if we set CC to just the basename; use the full file name.
2269    shift
2270    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2271  fi
2272fi
2273fi
2274fi
2275CC=$ac_cv_prog_CC
2276if test -n "$CC"; then
2277  echo "$as_me:$LINENO: result: $CC" >&5
2278echo "${ECHO_T}$CC" >&6
2279else
2280  echo "$as_me:$LINENO: result: no" >&5
2281echo "${ECHO_T}no" >&6
2282fi
2283
2284fi
2285if test -z "$CC"; then
2286  if test -n "$ac_tool_prefix"; then
2287  for ac_prog in cl
2288  do
2289    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2290set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2291echo "$as_me:$LINENO: checking for $ac_word" >&5
2292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2293if test "${ac_cv_prog_CC+set}" = set; then
2294  echo $ECHO_N "(cached) $ECHO_C" >&6
2295else
2296  if test -n "$CC"; then
2297  ac_cv_prog_CC="$CC" # Let the user override the test.
2298else
2299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300for as_dir in $PATH
2301do
2302  IFS=$as_save_IFS
2303  test -z "$as_dir" && as_dir=.
2304  for ac_exec_ext in '' $ac_executable_extensions; do
2305  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2306    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2307    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2308    break 2
2309  fi
2310done
2311done
2312
2313fi
2314fi
2315CC=$ac_cv_prog_CC
2316if test -n "$CC"; then
2317  echo "$as_me:$LINENO: result: $CC" >&5
2318echo "${ECHO_T}$CC" >&6
2319else
2320  echo "$as_me:$LINENO: result: no" >&5
2321echo "${ECHO_T}no" >&6
2322fi
2323
2324    test -n "$CC" && break
2325  done
2326fi
2327if test -z "$CC"; then
2328  ac_ct_CC=$CC
2329  for ac_prog in cl
2330do
2331  # Extract the first word of "$ac_prog", so it can be a program name with args.
2332set dummy $ac_prog; ac_word=$2
2333echo "$as_me:$LINENO: checking for $ac_word" >&5
2334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2335if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2336  echo $ECHO_N "(cached) $ECHO_C" >&6
2337else
2338  if test -n "$ac_ct_CC"; then
2339  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2340else
2341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342for as_dir in $PATH
2343do
2344  IFS=$as_save_IFS
2345  test -z "$as_dir" && as_dir=.
2346  for ac_exec_ext in '' $ac_executable_extensions; do
2347  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2348    ac_cv_prog_ac_ct_CC="$ac_prog"
2349    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2350    break 2
2351  fi
2352done
2353done
2354
2355fi
2356fi
2357ac_ct_CC=$ac_cv_prog_ac_ct_CC
2358if test -n "$ac_ct_CC"; then
2359  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2360echo "${ECHO_T}$ac_ct_CC" >&6
2361else
2362  echo "$as_me:$LINENO: result: no" >&5
2363echo "${ECHO_T}no" >&6
2364fi
2365
2366  test -n "$ac_ct_CC" && break
2367done
2368
2369  CC=$ac_ct_CC
2370fi
2371
2372fi
2373
2374
2375test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2376See \`config.log' for more details." >&5
2377echo "$as_me: error: no acceptable C compiler found in \$PATH
2378See \`config.log' for more details." >&2;}
2379   { (exit 1); exit 1; }; }
2380
2381# Provide some information about the compiler.
2382echo "$as_me:$LINENO:" \
2383     "checking for C compiler version" >&5
2384ac_compiler=`set X $ac_compile; echo $2`
2385{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2386  (eval $ac_compiler --version </dev/null >&5) 2>&5
2387  ac_status=$?
2388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389  (exit $ac_status); }
2390{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2391  (eval $ac_compiler -v </dev/null >&5) 2>&5
2392  ac_status=$?
2393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394  (exit $ac_status); }
2395{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2396  (eval $ac_compiler -V </dev/null >&5) 2>&5
2397  ac_status=$?
2398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399  (exit $ac_status); }
2400
2401cat >conftest.$ac_ext <<_ACEOF
2402/* confdefs.h.  */
2403_ACEOF
2404cat confdefs.h >>conftest.$ac_ext
2405cat >>conftest.$ac_ext <<_ACEOF
2406/* end confdefs.h.  */
2407
2408int
2409main ()
2410{
2411
2412  ;
2413  return 0;
2414}
2415_ACEOF
2416ac_clean_files_save=$ac_clean_files
2417ac_clean_files="$ac_clean_files a.out a.exe b.out"
2418# Try to create an executable without -o first, disregard a.out.
2419# It will help us diagnose broken compilers, and finding out an intuition
2420# of exeext.
2421echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2422echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2423ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2424if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2425  (eval $ac_link_default) 2>&5
2426  ac_status=$?
2427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428  (exit $ac_status); }; then
2429  # Find the output, starting from the most likely.  This scheme is
2430# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2431# resort.
2432
2433# Be careful to initialize this variable, since it used to be cached.
2434# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2435ac_cv_exeext=
2436# b.out is created by i960 compilers.
2437for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2438do
2439  test -f "$ac_file" || continue
2440  case $ac_file in
2441    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2442	;;
2443    conftest.$ac_ext )
2444	# This is the source file.
2445	;;
2446    [ab].out )
2447	# We found the default executable, but exeext='' is most
2448	# certainly right.
2449	break;;
2450    *.* )
2451	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2452	# FIXME: I believe we export ac_cv_exeext for Libtool,
2453	# but it would be cool to find out if it's true.  Does anybody
2454	# maintain Libtool? --akim.
2455	export ac_cv_exeext
2456	break;;
2457    * )
2458	break;;
2459  esac
2460done
2461else
2462  echo "$as_me: failed program was:" >&5
2463sed 's/^/| /' conftest.$ac_ext >&5
2464
2465{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2466See \`config.log' for more details." >&5
2467echo "$as_me: error: C compiler cannot create executables
2468See \`config.log' for more details." >&2;}
2469   { (exit 77); exit 77; }; }
2470fi
2471
2472ac_exeext=$ac_cv_exeext
2473echo "$as_me:$LINENO: result: $ac_file" >&5
2474echo "${ECHO_T}$ac_file" >&6
2475
2476# Check the compiler produces executables we can run.  If not, either
2477# the compiler is broken, or we cross compile.
2478echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2479echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2480# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2481# If not cross compiling, check that we can run a simple program.
2482if test "$cross_compiling" != yes; then
2483  if { ac_try='./$ac_file'
2484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485  (eval $ac_try) 2>&5
2486  ac_status=$?
2487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488  (exit $ac_status); }; }; then
2489    cross_compiling=no
2490  else
2491    if test "$cross_compiling" = maybe; then
2492	cross_compiling=yes
2493    else
2494	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2495If you meant to cross compile, use \`--host'.
2496See \`config.log' for more details." >&5
2497echo "$as_me: error: cannot run C compiled programs.
2498If you meant to cross compile, use \`--host'.
2499See \`config.log' for more details." >&2;}
2500   { (exit 1); exit 1; }; }
2501    fi
2502  fi
2503fi
2504echo "$as_me:$LINENO: result: yes" >&5
2505echo "${ECHO_T}yes" >&6
2506
2507rm -f a.out a.exe conftest$ac_cv_exeext b.out
2508ac_clean_files=$ac_clean_files_save
2509# Check the compiler produces executables we can run.  If not, either
2510# the compiler is broken, or we cross compile.
2511echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2512echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2513echo "$as_me:$LINENO: result: $cross_compiling" >&5
2514echo "${ECHO_T}$cross_compiling" >&6
2515
2516echo "$as_me:$LINENO: checking for suffix of executables" >&5
2517echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2519  (eval $ac_link) 2>&5
2520  ac_status=$?
2521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522  (exit $ac_status); }; then
2523  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2524# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2525# work properly (i.e., refer to `conftest.exe'), while it won't with
2526# `rm'.
2527for ac_file in conftest.exe conftest conftest.*; do
2528  test -f "$ac_file" || continue
2529  case $ac_file in
2530    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2531    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2532	  export ac_cv_exeext
2533	  break;;
2534    * ) break;;
2535  esac
2536done
2537else
2538  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2539See \`config.log' for more details." >&5
2540echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2541See \`config.log' for more details." >&2;}
2542   { (exit 1); exit 1; }; }
2543fi
2544
2545rm -f conftest$ac_cv_exeext
2546echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2547echo "${ECHO_T}$ac_cv_exeext" >&6
2548
2549rm -f conftest.$ac_ext
2550EXEEXT=$ac_cv_exeext
2551ac_exeext=$EXEEXT
2552echo "$as_me:$LINENO: checking for suffix of object files" >&5
2553echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2554if test "${ac_cv_objext+set}" = set; then
2555  echo $ECHO_N "(cached) $ECHO_C" >&6
2556else
2557  cat >conftest.$ac_ext <<_ACEOF
2558/* confdefs.h.  */
2559_ACEOF
2560cat confdefs.h >>conftest.$ac_ext
2561cat >>conftest.$ac_ext <<_ACEOF
2562/* end confdefs.h.  */
2563
2564int
2565main ()
2566{
2567
2568  ;
2569  return 0;
2570}
2571_ACEOF
2572rm -f conftest.o conftest.obj
2573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2574  (eval $ac_compile) 2>&5
2575  ac_status=$?
2576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577  (exit $ac_status); }; then
2578  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2579  case $ac_file in
2580    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2581    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2582       break;;
2583  esac
2584done
2585else
2586  echo "$as_me: failed program was:" >&5
2587sed 's/^/| /' conftest.$ac_ext >&5
2588
2589{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2590See \`config.log' for more details." >&5
2591echo "$as_me: error: cannot compute suffix of object files: cannot compile
2592See \`config.log' for more details." >&2;}
2593   { (exit 1); exit 1; }; }
2594fi
2595
2596rm -f conftest.$ac_cv_objext conftest.$ac_ext
2597fi
2598echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2599echo "${ECHO_T}$ac_cv_objext" >&6
2600OBJEXT=$ac_cv_objext
2601ac_objext=$OBJEXT
2602echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2603echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2604if test "${ac_cv_c_compiler_gnu+set}" = set; then
2605  echo $ECHO_N "(cached) $ECHO_C" >&6
2606else
2607  cat >conftest.$ac_ext <<_ACEOF
2608/* confdefs.h.  */
2609_ACEOF
2610cat confdefs.h >>conftest.$ac_ext
2611cat >>conftest.$ac_ext <<_ACEOF
2612/* end confdefs.h.  */
2613
2614int
2615main ()
2616{
2617#ifndef __GNUC__
2618       choke me
2619#endif
2620
2621  ;
2622  return 0;
2623}
2624_ACEOF
2625rm -f conftest.$ac_objext
2626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2627  (eval $ac_compile) 2>conftest.er1
2628  ac_status=$?
2629  grep -v '^ *+' conftest.er1 >conftest.err
2630  rm -f conftest.er1
2631  cat conftest.err >&5
2632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633  (exit $ac_status); } &&
2634	 { ac_try='test -z "$ac_c_werror_flag"
2635			 || test ! -s conftest.err'
2636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637  (eval $ac_try) 2>&5
2638  ac_status=$?
2639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640  (exit $ac_status); }; } &&
2641	 { ac_try='test -s conftest.$ac_objext'
2642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643  (eval $ac_try) 2>&5
2644  ac_status=$?
2645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646  (exit $ac_status); }; }; then
2647  ac_compiler_gnu=yes
2648else
2649  echo "$as_me: failed program was:" >&5
2650sed 's/^/| /' conftest.$ac_ext >&5
2651
2652ac_compiler_gnu=no
2653fi
2654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2655ac_cv_c_compiler_gnu=$ac_compiler_gnu
2656
2657fi
2658echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2659echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2660GCC=`test $ac_compiler_gnu = yes && echo yes`
2661ac_test_CFLAGS=${CFLAGS+set}
2662ac_save_CFLAGS=$CFLAGS
2663CFLAGS="-g"
2664echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2665echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2666if test "${ac_cv_prog_cc_g+set}" = set; then
2667  echo $ECHO_N "(cached) $ECHO_C" >&6
2668else
2669  cat >conftest.$ac_ext <<_ACEOF
2670/* confdefs.h.  */
2671_ACEOF
2672cat confdefs.h >>conftest.$ac_ext
2673cat >>conftest.$ac_ext <<_ACEOF
2674/* end confdefs.h.  */
2675
2676int
2677main ()
2678{
2679
2680  ;
2681  return 0;
2682}
2683_ACEOF
2684rm -f conftest.$ac_objext
2685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2686  (eval $ac_compile) 2>conftest.er1
2687  ac_status=$?
2688  grep -v '^ *+' conftest.er1 >conftest.err
2689  rm -f conftest.er1
2690  cat conftest.err >&5
2691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692  (exit $ac_status); } &&
2693	 { ac_try='test -z "$ac_c_werror_flag"
2694			 || test ! -s conftest.err'
2695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696  (eval $ac_try) 2>&5
2697  ac_status=$?
2698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699  (exit $ac_status); }; } &&
2700	 { ac_try='test -s conftest.$ac_objext'
2701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702  (eval $ac_try) 2>&5
2703  ac_status=$?
2704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705  (exit $ac_status); }; }; then
2706  ac_cv_prog_cc_g=yes
2707else
2708  echo "$as_me: failed program was:" >&5
2709sed 's/^/| /' conftest.$ac_ext >&5
2710
2711ac_cv_prog_cc_g=no
2712fi
2713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2714fi
2715echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2716echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2717if test "$ac_test_CFLAGS" = set; then
2718  CFLAGS=$ac_save_CFLAGS
2719elif test $ac_cv_prog_cc_g = yes; then
2720  if test "$GCC" = yes; then
2721    CFLAGS="-g -O2"
2722  else
2723    CFLAGS="-g"
2724  fi
2725else
2726  if test "$GCC" = yes; then
2727    CFLAGS="-O2"
2728  else
2729    CFLAGS=
2730  fi
2731fi
2732echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2733echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2734if test "${ac_cv_prog_cc_stdc+set}" = set; then
2735  echo $ECHO_N "(cached) $ECHO_C" >&6
2736else
2737  ac_cv_prog_cc_stdc=no
2738ac_save_CC=$CC
2739cat >conftest.$ac_ext <<_ACEOF
2740/* confdefs.h.  */
2741_ACEOF
2742cat confdefs.h >>conftest.$ac_ext
2743cat >>conftest.$ac_ext <<_ACEOF
2744/* end confdefs.h.  */
2745#include <stdarg.h>
2746#include <stdio.h>
2747#include <sys/types.h>
2748#include <sys/stat.h>
2749/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2750struct buf { int x; };
2751FILE * (*rcsopen) (struct buf *, struct stat *, int);
2752static char *e (p, i)
2753     char **p;
2754     int i;
2755{
2756  return p[i];
2757}
2758static char *f (char * (*g) (char **, int), char **p, ...)
2759{
2760  char *s;
2761  va_list v;
2762  va_start (v,p);
2763  s = g (p, va_arg (v,int));
2764  va_end (v);
2765  return s;
2766}
2767
2768/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2769   function prototypes and stuff, but not '\xHH' hex character constants.
2770   These don't provoke an error unfortunately, instead are silently treated
2771   as 'x'.  The following induces an error, until -std1 is added to get
2772   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2773   array size at least.  It's necessary to write '\x00'==0 to get something
2774   that's true only with -std1.  */
2775int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2776
2777int test (int i, double x);
2778struct s1 {int (*f) (int a);};
2779struct s2 {int (*f) (double a);};
2780int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2781int argc;
2782char **argv;
2783int
2784main ()
2785{
2786return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2787  ;
2788  return 0;
2789}
2790_ACEOF
2791# Don't try gcc -ansi; that turns off useful extensions and
2792# breaks some systems' header files.
2793# AIX			-qlanglvl=ansi
2794# Ultrix and OSF/1	-std1
2795# HP-UX 10.20 and later	-Ae
2796# HP-UX older versions	-Aa -D_HPUX_SOURCE
2797# SVR4			-Xc -D__EXTENSIONS__
2798for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2799do
2800  CC="$ac_save_CC $ac_arg"
2801  rm -f conftest.$ac_objext
2802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2803  (eval $ac_compile) 2>conftest.er1
2804  ac_status=$?
2805  grep -v '^ *+' conftest.er1 >conftest.err
2806  rm -f conftest.er1
2807  cat conftest.err >&5
2808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809  (exit $ac_status); } &&
2810	 { ac_try='test -z "$ac_c_werror_flag"
2811			 || test ! -s conftest.err'
2812  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813  (eval $ac_try) 2>&5
2814  ac_status=$?
2815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816  (exit $ac_status); }; } &&
2817	 { ac_try='test -s conftest.$ac_objext'
2818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819  (eval $ac_try) 2>&5
2820  ac_status=$?
2821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822  (exit $ac_status); }; }; then
2823  ac_cv_prog_cc_stdc=$ac_arg
2824break
2825else
2826  echo "$as_me: failed program was:" >&5
2827sed 's/^/| /' conftest.$ac_ext >&5
2828
2829fi
2830rm -f conftest.err conftest.$ac_objext
2831done
2832rm -f conftest.$ac_ext conftest.$ac_objext
2833CC=$ac_save_CC
2834
2835fi
2836
2837case "x$ac_cv_prog_cc_stdc" in
2838  x|xno)
2839    echo "$as_me:$LINENO: result: none needed" >&5
2840echo "${ECHO_T}none needed" >&6 ;;
2841  *)
2842    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2843echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2844    CC="$CC $ac_cv_prog_cc_stdc" ;;
2845esac
2846
2847# Some people use a C++ compiler to compile C.  Since we use `exit',
2848# in C++ we need to declare it.  In case someone uses the same compiler
2849# for both compiling C and C++ we need to have the C++ compiler decide
2850# the declaration of exit, since it's the most demanding environment.
2851cat >conftest.$ac_ext <<_ACEOF
2852#ifndef __cplusplus
2853  choke me
2854#endif
2855_ACEOF
2856rm -f conftest.$ac_objext
2857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2858  (eval $ac_compile) 2>conftest.er1
2859  ac_status=$?
2860  grep -v '^ *+' conftest.er1 >conftest.err
2861  rm -f conftest.er1
2862  cat conftest.err >&5
2863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864  (exit $ac_status); } &&
2865	 { ac_try='test -z "$ac_c_werror_flag"
2866			 || test ! -s conftest.err'
2867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868  (eval $ac_try) 2>&5
2869  ac_status=$?
2870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871  (exit $ac_status); }; } &&
2872	 { ac_try='test -s conftest.$ac_objext'
2873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874  (eval $ac_try) 2>&5
2875  ac_status=$?
2876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877  (exit $ac_status); }; }; then
2878  for ac_declaration in \
2879   '' \
2880   'extern "C" void std::exit (int) throw (); using std::exit;' \
2881   'extern "C" void std::exit (int); using std::exit;' \
2882   'extern "C" void exit (int) throw ();' \
2883   'extern "C" void exit (int);' \
2884   'void exit (int);'
2885do
2886  cat >conftest.$ac_ext <<_ACEOF
2887/* confdefs.h.  */
2888_ACEOF
2889cat confdefs.h >>conftest.$ac_ext
2890cat >>conftest.$ac_ext <<_ACEOF
2891/* end confdefs.h.  */
2892$ac_declaration
2893#include <stdlib.h>
2894int
2895main ()
2896{
2897exit (42);
2898  ;
2899  return 0;
2900}
2901_ACEOF
2902rm -f conftest.$ac_objext
2903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2904  (eval $ac_compile) 2>conftest.er1
2905  ac_status=$?
2906  grep -v '^ *+' conftest.er1 >conftest.err
2907  rm -f conftest.er1
2908  cat conftest.err >&5
2909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910  (exit $ac_status); } &&
2911	 { ac_try='test -z "$ac_c_werror_flag"
2912			 || test ! -s conftest.err'
2913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914  (eval $ac_try) 2>&5
2915  ac_status=$?
2916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917  (exit $ac_status); }; } &&
2918	 { ac_try='test -s conftest.$ac_objext'
2919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2920  (eval $ac_try) 2>&5
2921  ac_status=$?
2922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923  (exit $ac_status); }; }; then
2924  :
2925else
2926  echo "$as_me: failed program was:" >&5
2927sed 's/^/| /' conftest.$ac_ext >&5
2928
2929continue
2930fi
2931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2932  cat >conftest.$ac_ext <<_ACEOF
2933/* confdefs.h.  */
2934_ACEOF
2935cat confdefs.h >>conftest.$ac_ext
2936cat >>conftest.$ac_ext <<_ACEOF
2937/* end confdefs.h.  */
2938$ac_declaration
2939int
2940main ()
2941{
2942exit (42);
2943  ;
2944  return 0;
2945}
2946_ACEOF
2947rm -f conftest.$ac_objext
2948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2949  (eval $ac_compile) 2>conftest.er1
2950  ac_status=$?
2951  grep -v '^ *+' conftest.er1 >conftest.err
2952  rm -f conftest.er1
2953  cat conftest.err >&5
2954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955  (exit $ac_status); } &&
2956	 { ac_try='test -z "$ac_c_werror_flag"
2957			 || test ! -s conftest.err'
2958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959  (eval $ac_try) 2>&5
2960  ac_status=$?
2961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962  (exit $ac_status); }; } &&
2963	 { ac_try='test -s conftest.$ac_objext'
2964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965  (eval $ac_try) 2>&5
2966  ac_status=$?
2967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968  (exit $ac_status); }; }; then
2969  break
2970else
2971  echo "$as_me: failed program was:" >&5
2972sed 's/^/| /' conftest.$ac_ext >&5
2973
2974fi
2975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2976done
2977rm -f conftest*
2978if test -n "$ac_declaration"; then
2979  echo '#ifdef __cplusplus' >>confdefs.h
2980  echo $ac_declaration      >>confdefs.h
2981  echo '#endif'             >>confdefs.h
2982fi
2983
2984else
2985  echo "$as_me: failed program was:" >&5
2986sed 's/^/| /' conftest.$ac_ext >&5
2987
2988fi
2989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2990ac_ext=c
2991ac_cpp='$CPP $CPPFLAGS'
2992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2994ac_compiler_gnu=$ac_cv_c_compiler_gnu
2995DEPDIR="${am__leading_dot}deps"
2996
2997          ac_config_commands="$ac_config_commands depfiles"
2998
2999
3000am_make=${MAKE-make}
3001cat > confinc << 'END'
3002am__doit:
3003	@echo done
3004.PHONY: am__doit
3005END
3006# If we don't find an include directive, just comment out the code.
3007echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3008echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3009am__include="#"
3010am__quote=
3011_am_result=none
3012# First try GNU make style include.
3013echo "include confinc" > confmf
3014# We grep out `Entering directory' and `Leaving directory'
3015# messages which can occur if `w' ends up in MAKEFLAGS.
3016# In particular we don't look at `^make:' because GNU make might
3017# be invoked under some other name (usually "gmake"), in which
3018# case it prints its new name instead of `make'.
3019if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3020   am__include=include
3021   am__quote=
3022   _am_result=GNU
3023fi
3024# Now try BSD make style include.
3025if test "$am__include" = "#"; then
3026   echo '.include "confinc"' > confmf
3027   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3028      am__include=.include
3029      am__quote="\""
3030      _am_result=BSD
3031   fi
3032fi
3033
3034
3035echo "$as_me:$LINENO: result: $_am_result" >&5
3036echo "${ECHO_T}$_am_result" >&6
3037rm -f confinc confmf
3038
3039# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3040if test "${enable_dependency_tracking+set}" = set; then
3041  enableval="$enable_dependency_tracking"
3042
3043fi;
3044if test "x$enable_dependency_tracking" != xno; then
3045  am_depcomp="$ac_aux_dir/depcomp"
3046  AMDEPBACKSLASH='\'
3047fi
3048
3049
3050if test "x$enable_dependency_tracking" != xno; then
3051  AMDEP_TRUE=
3052  AMDEP_FALSE='#'
3053else
3054  AMDEP_TRUE='#'
3055  AMDEP_FALSE=
3056fi
3057
3058
3059
3060
3061depcc="$CC"   am_compiler_list=
3062
3063echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3064echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3065if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3066  echo $ECHO_N "(cached) $ECHO_C" >&6
3067else
3068  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3069  # We make a subdir and do the tests there.  Otherwise we can end up
3070  # making bogus files that we don't know about and never remove.  For
3071  # instance it was reported that on HP-UX the gcc test will end up
3072  # making a dummy file named `D' -- because `-MD' means `put the output
3073  # in D'.
3074  mkdir conftest.dir
3075  # Copy depcomp to subdir because otherwise we won't find it if we're
3076  # using a relative directory.
3077  cp "$am_depcomp" conftest.dir
3078  cd conftest.dir
3079  # We will build objects and dependencies in a subdirectory because
3080  # it helps to detect inapplicable dependency modes.  For instance
3081  # both Tru64's cc and ICC support -MD to output dependencies as a
3082  # side effect of compilation, but ICC will put the dependencies in
3083  # the current directory while Tru64 will put them in the object
3084  # directory.
3085  mkdir sub
3086
3087  am_cv_CC_dependencies_compiler_type=none
3088  if test "$am_compiler_list" = ""; then
3089     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3090  fi
3091  for depmode in $am_compiler_list; do
3092    # Setup a source with many dependencies, because some compilers
3093    # like to wrap large dependency lists on column 80 (with \), and
3094    # we should not choose a depcomp mode which is confused by this.
3095    #
3096    # We need to recreate these files for each test, as the compiler may
3097    # overwrite some of them when testing with obscure command lines.
3098    # This happens at least with the AIX C compiler.
3099    : > sub/conftest.c
3100    for i in 1 2 3 4 5 6; do
3101      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3102      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3103      # Solaris 8's {/usr,}/bin/sh.
3104      touch sub/conftst$i.h
3105    done
3106    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3107
3108    case $depmode in
3109    nosideeffect)
3110      # after this tag, mechanisms are not by side-effect, so they'll
3111      # only be used when explicitly requested
3112      if test "x$enable_dependency_tracking" = xyes; then
3113	continue
3114      else
3115	break
3116      fi
3117      ;;
3118    none) break ;;
3119    esac
3120    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3121    # mode.  It turns out that the SunPro C++ compiler does not properly
3122    # handle `-M -o', and we need to detect this.
3123    if depmode=$depmode \
3124       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3125       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3126       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3127         >/dev/null 2>conftest.err &&
3128       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3129       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3130       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3131      # icc doesn't choke on unknown options, it will just issue warnings
3132      # or remarks (even with -Werror).  So we grep stderr for any message
3133      # that says an option was ignored or not supported.
3134      # When given -MP, icc 7.0 and 7.1 complain thusly:
3135      #   icc: Command line warning: ignoring option '-M'; no argument required
3136      # The diagnosis changed in icc 8.0:
3137      #   icc: Command line remark: option '-MP' not supported
3138      if (grep 'ignoring option' conftest.err ||
3139          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3140        am_cv_CC_dependencies_compiler_type=$depmode
3141        break
3142      fi
3143    fi
3144  done
3145
3146  cd ..
3147  rm -rf conftest.dir
3148else
3149  am_cv_CC_dependencies_compiler_type=none
3150fi
3151
3152fi
3153echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3154echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3155CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3156
3157
3158
3159if
3160  test "x$enable_dependency_tracking" != xno \
3161  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3162  am__fastdepCC_TRUE=
3163  am__fastdepCC_FALSE='#'
3164else
3165  am__fastdepCC_TRUE='#'
3166  am__fastdepCC_FALSE=
3167fi
3168
3169
3170# We need this for older versions of Autoconf.
3171
3172depcc="$CC"   am_compiler_list=
3173
3174echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3175echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3176if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3177  echo $ECHO_N "(cached) $ECHO_C" >&6
3178else
3179  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3180  # We make a subdir and do the tests there.  Otherwise we can end up
3181  # making bogus files that we don't know about and never remove.  For
3182  # instance it was reported that on HP-UX the gcc test will end up
3183  # making a dummy file named `D' -- because `-MD' means `put the output
3184  # in D'.
3185  mkdir conftest.dir
3186  # Copy depcomp to subdir because otherwise we won't find it if we're
3187  # using a relative directory.
3188  cp "$am_depcomp" conftest.dir
3189  cd conftest.dir
3190  # We will build objects and dependencies in a subdirectory because
3191  # it helps to detect inapplicable dependency modes.  For instance
3192  # both Tru64's cc and ICC support -MD to output dependencies as a
3193  # side effect of compilation, but ICC will put the dependencies in
3194  # the current directory while Tru64 will put them in the object
3195  # directory.
3196  mkdir sub
3197
3198  am_cv_CC_dependencies_compiler_type=none
3199  if test "$am_compiler_list" = ""; then
3200     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3201  fi
3202  for depmode in $am_compiler_list; do
3203    # Setup a source with many dependencies, because some compilers
3204    # like to wrap large dependency lists on column 80 (with \), and
3205    # we should not choose a depcomp mode which is confused by this.
3206    #
3207    # We need to recreate these files for each test, as the compiler may
3208    # overwrite some of them when testing with obscure command lines.
3209    # This happens at least with the AIX C compiler.
3210    : > sub/conftest.c
3211    for i in 1 2 3 4 5 6; do
3212      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3213      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3214      # Solaris 8's {/usr,}/bin/sh.
3215      touch sub/conftst$i.h
3216    done
3217    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3218
3219    case $depmode in
3220    nosideeffect)
3221      # after this tag, mechanisms are not by side-effect, so they'll
3222      # only be used when explicitly requested
3223      if test "x$enable_dependency_tracking" = xyes; then
3224	continue
3225      else
3226	break
3227      fi
3228      ;;
3229    none) break ;;
3230    esac
3231    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3232    # mode.  It turns out that the SunPro C++ compiler does not properly
3233    # handle `-M -o', and we need to detect this.
3234    if depmode=$depmode \
3235       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3236       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3237       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3238         >/dev/null 2>conftest.err &&
3239       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3240       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3241       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3242      # icc doesn't choke on unknown options, it will just issue warnings
3243      # or remarks (even with -Werror).  So we grep stderr for any message
3244      # that says an option was ignored or not supported.
3245      # When given -MP, icc 7.0 and 7.1 complain thusly:
3246      #   icc: Command line warning: ignoring option '-M'; no argument required
3247      # The diagnosis changed in icc 8.0:
3248      #   icc: Command line remark: option '-MP' not supported
3249      if (grep 'ignoring option' conftest.err ||
3250          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3251        am_cv_CC_dependencies_compiler_type=$depmode
3252        break
3253      fi
3254    fi
3255  done
3256
3257  cd ..
3258  rm -rf conftest.dir
3259else
3260  am_cv_CC_dependencies_compiler_type=none
3261fi
3262
3263fi
3264echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3265echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3266CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3267
3268
3269
3270if
3271  test "x$enable_dependency_tracking" != xno \
3272  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3273  am__fastdepCC_TRUE=
3274  am__fastdepCC_FALSE='#'
3275else
3276  am__fastdepCC_TRUE='#'
3277  am__fastdepCC_FALSE=
3278fi
3279
3280
3281
3282CCAS="$CC"
3283
3284
3285
3286# Check whether --with-binutils or --without-binutils was given.
3287if test "${with_binutils+set}" = set; then
3288  withval="$with_binutils"
3289
3290fi;
3291
3292if test "x$with_binutils" != x; then
3293  # Extract the first word of "ranlib", so it can be a program name with args.
3294set dummy ranlib; ac_word=$2
3295echo "$as_me:$LINENO: checking for $ac_word" >&5
3296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3297if test "${ac_cv_path_RANLIB+set}" = set; then
3298  echo $ECHO_N "(cached) $ECHO_C" >&6
3299else
3300  case $RANLIB in
3301  [\\/]* | ?:[\\/]*)
3302  ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
3303  ;;
3304  *)
3305  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306as_dummy=""$with_binutils:$PATH""
3307for as_dir in $as_dummy
3308do
3309  IFS=$as_save_IFS
3310  test -z "$as_dir" && as_dir=.
3311  for ac_exec_ext in '' $ac_executable_extensions; do
3312  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313    ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
3314    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3315    break 2
3316  fi
3317done
3318done
3319
3320  test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB=":"
3321  ;;
3322esac
3323fi
3324RANLIB=$ac_cv_path_RANLIB
3325
3326if test -n "$RANLIB"; then
3327  echo "$as_me:$LINENO: result: $RANLIB" >&5
3328echo "${ECHO_T}$RANLIB" >&6
3329else
3330  echo "$as_me:$LINENO: result: no" >&5
3331echo "${ECHO_T}no" >&6
3332fi
3333
3334else
3335  if test -n "$ac_tool_prefix"; then
3336  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3337set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3338echo "$as_me:$LINENO: checking for $ac_word" >&5
3339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3340if test "${ac_cv_prog_RANLIB+set}" = set; then
3341  echo $ECHO_N "(cached) $ECHO_C" >&6
3342else
3343  if test -n "$RANLIB"; then
3344  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3345else
3346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347for as_dir in $PATH
3348do
3349  IFS=$as_save_IFS
3350  test -z "$as_dir" && as_dir=.
3351  for ac_exec_ext in '' $ac_executable_extensions; do
3352  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3354    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3355    break 2
3356  fi
3357done
3358done
3359
3360fi
3361fi
3362RANLIB=$ac_cv_prog_RANLIB
3363if test -n "$RANLIB"; then
3364  echo "$as_me:$LINENO: result: $RANLIB" >&5
3365echo "${ECHO_T}$RANLIB" >&6
3366else
3367  echo "$as_me:$LINENO: result: no" >&5
3368echo "${ECHO_T}no" >&6
3369fi
3370
3371fi
3372if test -z "$ac_cv_prog_RANLIB"; then
3373  ac_ct_RANLIB=$RANLIB
3374  # Extract the first word of "ranlib", so it can be a program name with args.
3375set dummy ranlib; ac_word=$2
3376echo "$as_me:$LINENO: checking for $ac_word" >&5
3377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3378if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3379  echo $ECHO_N "(cached) $ECHO_C" >&6
3380else
3381  if test -n "$ac_ct_RANLIB"; then
3382  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3383else
3384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385for as_dir in $PATH
3386do
3387  IFS=$as_save_IFS
3388  test -z "$as_dir" && as_dir=.
3389  for ac_exec_ext in '' $ac_executable_extensions; do
3390  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3391    ac_cv_prog_ac_ct_RANLIB="ranlib"
3392    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3393    break 2
3394  fi
3395done
3396done
3397
3398  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3399fi
3400fi
3401ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3402if test -n "$ac_ct_RANLIB"; then
3403  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3404echo "${ECHO_T}$ac_ct_RANLIB" >&6
3405else
3406  echo "$as_me:$LINENO: result: no" >&5
3407echo "${ECHO_T}no" >&6
3408fi
3409
3410  RANLIB=$ac_ct_RANLIB
3411else
3412  RANLIB="$ac_cv_prog_RANLIB"
3413fi
3414
3415fi
3416
3417# optimization flags
3418if test "x$ac_cv_c_compiler_gnu" = xyes; then
3419  if test "x$default_CFLAGS" = xyes; then
3420    # Autoconf may set CFLAGS to -O2 and/or -g. So eliminate them.
3421    CFLAGS="`echo $CFLAGS | sed -e 's/-g//g' -e 's/-O[0-9]//g'` -g"
3422    # If the user specify the directory for binutils, add the option `-B'.
3423    if test "x$with_binutils" != x; then
3424      CFLAGS="-B$with_binutils/ $CFLAGS"
3425    fi
3426    STAGE1_CFLAGS="-O2"
3427    GRUB_CFLAGS="-O2"
3428
3429echo "$as_me:$LINENO: checking whether optimization for size works" >&5
3430echo $ECHO_N "checking whether optimization for size works... $ECHO_C" >&6
3431if test "${size_flag+set}" = set; then
3432  echo $ECHO_N "(cached) $ECHO_C" >&6
3433else
3434
3435      saved_CFLAGS=$CFLAGS
3436      CFLAGS="-Os -g"
3437      cat >conftest.$ac_ext <<_ACEOF
3438/* confdefs.h.  */
3439_ACEOF
3440cat confdefs.h >>conftest.$ac_ext
3441cat >>conftest.$ac_ext <<_ACEOF
3442/* end confdefs.h.  */
3443
3444int
3445main ()
3446{
3447
3448  ;
3449  return 0;
3450}
3451_ACEOF
3452rm -f conftest.$ac_objext
3453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3454  (eval $ac_compile) 2>conftest.er1
3455  ac_status=$?
3456  grep -v '^ *+' conftest.er1 >conftest.err
3457  rm -f conftest.er1
3458  cat conftest.err >&5
3459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460  (exit $ac_status); } &&
3461	 { ac_try='test -z "$ac_c_werror_flag"
3462			 || test ! -s conftest.err'
3463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464  (eval $ac_try) 2>&5
3465  ac_status=$?
3466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467  (exit $ac_status); }; } &&
3468	 { ac_try='test -s conftest.$ac_objext'
3469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470  (eval $ac_try) 2>&5
3471  ac_status=$?
3472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473  (exit $ac_status); }; }; then
3474  size_flag=yes
3475else
3476  echo "$as_me: failed program was:" >&5
3477sed 's/^/| /' conftest.$ac_ext >&5
3478
3479size_flag=no
3480fi
3481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3482      CFLAGS=$saved_CFLAGS
3483
3484fi
3485echo "$as_me:$LINENO: result: $size_flag" >&5
3486echo "${ECHO_T}$size_flag" >&6
3487    if test "x$size_flag" = xyes; then
3488      STAGE2_CFLAGS="-Os"
3489    else
3490      STAGE2_CFLAGS="-O2 -fno-strength-reduce -fno-unroll-loops"
3491    fi
3492    # OpenBSD has a GCC extension for protecting applications from
3493    # stack smashing attacks, but GRUB doesn't want this feature.
3494    echo "$as_me:$LINENO: checking whether gcc has -fno-stack-protector" >&5
3495echo $ECHO_N "checking whether gcc has -fno-stack-protector... $ECHO_C" >&6
3496if test "${no_stack_protector_flag+set}" = set; then
3497  echo $ECHO_N "(cached) $ECHO_C" >&6
3498else
3499
3500      saved_CFLAGS=$CFLAGS
3501      CFLAGS="-fno-stack-protector"
3502      cat >conftest.$ac_ext <<_ACEOF
3503/* confdefs.h.  */
3504_ACEOF
3505cat confdefs.h >>conftest.$ac_ext
3506cat >>conftest.$ac_ext <<_ACEOF
3507/* end confdefs.h.  */
3508
3509int
3510main ()
3511{
3512
3513  ;
3514  return 0;
3515}
3516_ACEOF
3517rm -f conftest.$ac_objext
3518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3519  (eval $ac_compile) 2>conftest.er1
3520  ac_status=$?
3521  grep -v '^ *+' conftest.er1 >conftest.err
3522  rm -f conftest.er1
3523  cat conftest.err >&5
3524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525  (exit $ac_status); } &&
3526	 { ac_try='test -z "$ac_c_werror_flag"
3527			 || test ! -s conftest.err'
3528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529  (eval $ac_try) 2>&5
3530  ac_status=$?
3531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532  (exit $ac_status); }; } &&
3533	 { ac_try='test -s conftest.$ac_objext'
3534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535  (eval $ac_try) 2>&5
3536  ac_status=$?
3537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538  (exit $ac_status); }; }; then
3539  no_stack_protector_flag=yes
3540else
3541  echo "$as_me: failed program was:" >&5
3542sed 's/^/| /' conftest.$ac_ext >&5
3543
3544no_stack_protector_flag=no
3545fi
3546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3547      CFLAGS=$saved_CFLAGS
3548
3549fi
3550echo "$as_me:$LINENO: result: $no_stack_protector_flag" >&5
3551echo "${ECHO_T}$no_stack_protector_flag" >&6
3552    if test "x$no_stack_protector_flag" = xyes; then
3553      STAGE2_CFLAGS="$STAGE2_CFLAGS -fno-stack-protector"
3554    fi
3555  fi
3556fi
3557
3558
3559
3560
3561
3562# Enforce coding standards.
3563CPPFLAGS="$CPPFLAGS -Wall -Wmissing-prototypes -Wunused -Wshadow"
3564CPPFLAGS="$CPPFLAGS -Wpointer-arith"
3565
3566echo "$as_me:$LINENO: checking whether -Wundef works" >&5
3567echo $ECHO_N "checking whether -Wundef works... $ECHO_C" >&6
3568if test "${undef_flag+set}" = set; then
3569  echo $ECHO_N "(cached) $ECHO_C" >&6
3570else
3571
3572  saved_CPPFLAGS="$CPPFLAGS"
3573  CPPFLAGS="-Wundef"
3574  cat >conftest.$ac_ext <<_ACEOF
3575/* confdefs.h.  */
3576_ACEOF
3577cat confdefs.h >>conftest.$ac_ext
3578cat >>conftest.$ac_ext <<_ACEOF
3579/* end confdefs.h.  */
3580
3581int
3582main ()
3583{
3584
3585  ;
3586  return 0;
3587}
3588_ACEOF
3589rm -f conftest.$ac_objext
3590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3591  (eval $ac_compile) 2>conftest.er1
3592  ac_status=$?
3593  grep -v '^ *+' conftest.er1 >conftest.err
3594  rm -f conftest.er1
3595  cat conftest.err >&5
3596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597  (exit $ac_status); } &&
3598	 { ac_try='test -z "$ac_c_werror_flag"
3599			 || test ! -s conftest.err'
3600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601  (eval $ac_try) 2>&5
3602  ac_status=$?
3603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604  (exit $ac_status); }; } &&
3605	 { ac_try='test -s conftest.$ac_objext'
3606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607  (eval $ac_try) 2>&5
3608  ac_status=$?
3609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610  (exit $ac_status); }; }; then
3611  undef_flag=yes
3612else
3613  echo "$as_me: failed program was:" >&5
3614sed 's/^/| /' conftest.$ac_ext >&5
3615
3616undef_flag=no
3617fi
3618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3619  CPPFLAGS="$saved_CPPFLAGS"
3620
3621fi
3622echo "$as_me:$LINENO: result: $undef_flag" >&5
3623echo "${ECHO_T}$undef_flag" >&6
3624
3625# The options `-falign-*' are supported by gcc 3.0 or later.
3626# Probably it is sufficient to only check for -falign-loops.
3627echo "$as_me:$LINENO: checking whether -falign-loops works" >&5
3628echo $ECHO_N "checking whether -falign-loops works... $ECHO_C" >&6
3629if test "${falign_loop_flag+set}" = set; then
3630  echo $ECHO_N "(cached) $ECHO_C" >&6
3631else
3632
3633  saved_CPPFLAGS="$CPPFLAGS"
3634  CPPFLAGS="-falign-loops=1"
3635  cat >conftest.$ac_ext <<_ACEOF
3636/* confdefs.h.  */
3637_ACEOF
3638cat confdefs.h >>conftest.$ac_ext
3639cat >>conftest.$ac_ext <<_ACEOF
3640/* end confdefs.h.  */
3641
3642int
3643main ()
3644{
3645
3646  ;
3647  return 0;
3648}
3649_ACEOF
3650rm -f conftest.$ac_objext
3651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3652  (eval $ac_compile) 2>conftest.er1
3653  ac_status=$?
3654  grep -v '^ *+' conftest.er1 >conftest.err
3655  rm -f conftest.er1
3656  cat conftest.err >&5
3657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658  (exit $ac_status); } &&
3659	 { ac_try='test -z "$ac_c_werror_flag"
3660			 || test ! -s conftest.err'
3661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662  (eval $ac_try) 2>&5
3663  ac_status=$?
3664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665  (exit $ac_status); }; } &&
3666	 { ac_try='test -s conftest.$ac_objext'
3667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668  (eval $ac_try) 2>&5
3669  ac_status=$?
3670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671  (exit $ac_status); }; }; then
3672  falign_loop_flag=yes
3673else
3674  echo "$as_me: failed program was:" >&5
3675sed 's/^/| /' conftest.$ac_ext >&5
3676
3677falign_loop_flag=no
3678fi
3679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3680  CPPFLAGS="$saved_CPPFLAGS"
3681
3682fi
3683echo "$as_me:$LINENO: result: $falign_loop_flag" >&5
3684echo "${ECHO_T}$falign_loop_flag" >&6
3685
3686# Force no alignment to save space.
3687if test "x$falign_loop_flag" = xyes; then
3688  CPPFLAGS="$CPPFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
3689else
3690  CPPFLAGS="$CPPFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
3691fi
3692
3693if test "x$undef_flag" = xyes; then
3694  CPPFLAGS="$CPPFLAGS -Wundef"
3695fi
3696
3697if test "x$with_binutils" != x; then
3698  # Extract the first word of "objcopy", so it can be a program name with args.
3699set dummy objcopy; ac_word=$2
3700echo "$as_me:$LINENO: checking for $ac_word" >&5
3701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3702if test "${ac_cv_path_OBJCOPY+set}" = set; then
3703  echo $ECHO_N "(cached) $ECHO_C" >&6
3704else
3705  case $OBJCOPY in
3706  [\\/]* | ?:[\\/]*)
3707  ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path.
3708  ;;
3709  *)
3710  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711as_dummy=""$with_binutils:$PATH""
3712for as_dir in $as_dummy
3713do
3714  IFS=$as_save_IFS
3715  test -z "$as_dir" && as_dir=.
3716  for ac_exec_ext in '' $ac_executable_extensions; do
3717  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3718    ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext"
3719    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3720    break 2
3721  fi
3722done
3723done
3724
3725  ;;
3726esac
3727fi
3728OBJCOPY=$ac_cv_path_OBJCOPY
3729
3730if test -n "$OBJCOPY"; then
3731  echo "$as_me:$LINENO: result: $OBJCOPY" >&5
3732echo "${ECHO_T}$OBJCOPY" >&6
3733else
3734  echo "$as_me:$LINENO: result: no" >&5
3735echo "${ECHO_T}no" >&6
3736fi
3737
3738else
3739  if test -n "$ac_tool_prefix"; then
3740  # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
3741set dummy ${ac_tool_prefix}objcopy; ac_word=$2
3742echo "$as_me:$LINENO: checking for $ac_word" >&5
3743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3744if test "${ac_cv_prog_OBJCOPY+set}" = set; then
3745  echo $ECHO_N "(cached) $ECHO_C" >&6
3746else
3747  if test -n "$OBJCOPY"; then
3748  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
3749else
3750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751for as_dir in $PATH
3752do
3753  IFS=$as_save_IFS
3754  test -z "$as_dir" && as_dir=.
3755  for ac_exec_ext in '' $ac_executable_extensions; do
3756  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757    ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
3758    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3759    break 2
3760  fi
3761done
3762done
3763
3764fi
3765fi
3766OBJCOPY=$ac_cv_prog_OBJCOPY
3767if test -n "$OBJCOPY"; then
3768  echo "$as_me:$LINENO: result: $OBJCOPY" >&5
3769echo "${ECHO_T}$OBJCOPY" >&6
3770else
3771  echo "$as_me:$LINENO: result: no" >&5
3772echo "${ECHO_T}no" >&6
3773fi
3774
3775fi
3776if test -z "$ac_cv_prog_OBJCOPY"; then
3777  ac_ct_OBJCOPY=$OBJCOPY
3778  # Extract the first word of "objcopy", so it can be a program name with args.
3779set dummy objcopy; ac_word=$2
3780echo "$as_me:$LINENO: checking for $ac_word" >&5
3781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3782if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
3783  echo $ECHO_N "(cached) $ECHO_C" >&6
3784else
3785  if test -n "$ac_ct_OBJCOPY"; then
3786  ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
3787else
3788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789for as_dir in $PATH
3790do
3791  IFS=$as_save_IFS
3792  test -z "$as_dir" && as_dir=.
3793  for ac_exec_ext in '' $ac_executable_extensions; do
3794  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3795    ac_cv_prog_ac_ct_OBJCOPY="objcopy"
3796    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3797    break 2
3798  fi
3799done
3800done
3801
3802fi
3803fi
3804ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
3805if test -n "$ac_ct_OBJCOPY"; then
3806  echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
3807echo "${ECHO_T}$ac_ct_OBJCOPY" >&6
3808else
3809  echo "$as_me:$LINENO: result: no" >&5
3810echo "${ECHO_T}no" >&6
3811fi
3812
3813  OBJCOPY=$ac_ct_OBJCOPY
3814else
3815  OBJCOPY="$ac_cv_prog_OBJCOPY"
3816fi
3817
3818fi
3819
3820# Defined in acinclude.m4.
3821
3822echo "$as_me:$LINENO: checking if C symbols get an underscore after compilation" >&5
3823echo $ECHO_N "checking if C symbols get an underscore after compilation... $ECHO_C" >&6
3824if test "${grub_cv_asm_uscore+set}" = set; then
3825  echo $ECHO_N "(cached) $ECHO_C" >&6
3826else
3827  cat > conftest.c <<\EOF
3828int
3829func (int *list)
3830{
3831  *list = 0;
3832  return *list;
3833}
3834EOF
3835
3836if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
3837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838  (eval $ac_try) 2>&5
3839  ac_status=$?
3840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841  (exit $ac_status); }; } && test -s conftest.s; then
3842  true
3843else
3844  { { echo "$as_me:$LINENO: error: ${CC-cc} failed to produce assembly code" >&5
3845echo "$as_me: error: ${CC-cc} failed to produce assembly code" >&2;}
3846   { (exit 1); exit 1; }; }
3847fi
3848
3849if grep _func conftest.s >/dev/null 2>&1; then
3850  grub_cv_asm_uscore=yes
3851else
3852  grub_cv_asm_uscore=no
3853fi
3854
3855rm -f conftest*
3856fi
3857
3858
3859if test "x$grub_cv_asm_uscore" = xyes; then
3860
3861cat >>confdefs.h <<_ACEOF
3862#define HAVE_ASM_USCORE $grub_cv_asm_uscore
3863_ACEOF
3864
3865fi
3866
3867echo "$as_me:$LINENO: result: $grub_cv_asm_uscore" >&5
3868echo "${ECHO_T}$grub_cv_asm_uscore" >&6
3869
3870echo "$as_me:$LINENO: checking whether ${OBJCOPY} works for absolute addresses" >&5
3871echo $ECHO_N "checking whether ${OBJCOPY} works for absolute addresses... $ECHO_C" >&6
3872if test "${grub_cv_prog_objcopy_absolute+set}" = set; then
3873  echo $ECHO_N "(cached) $ECHO_C" >&6
3874else
3875  cat > conftest.c <<\EOF
3876void
3877cmain (void)
3878{
3879   *((int *) 0x1000) = 2;
3880}
3881EOF
3882
3883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3884  (eval $ac_compile) 2>&5
3885  ac_status=$?
3886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887  (exit $ac_status); } && test -s conftest.o; then :
3888else
3889  { { echo "$as_me:$LINENO: error: ${CC-cc} cannot compile C source code" >&5
3890echo "$as_me: error: ${CC-cc} cannot compile C source code" >&2;}
3891   { (exit 1); exit 1; }; }
3892fi
3893grub_cv_prog_objcopy_absolute=yes
3894for link_addr in 2000 8000 7C00; do
3895  if { ac_try='${CC-cc} ${CFLAGS} -nostdlib -Wl,-N -Wl,-Ttext -Wl,$link_addr conftest.o -o conftest.exec'
3896  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3897  (eval $ac_try) 2>&5
3898  ac_status=$?
3899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900  (exit $ac_status); }; }; then :
3901  else
3902    { { echo "$as_me:$LINENO: error: ${CC-cc} cannot link at address $link_addr" >&5
3903echo "$as_me: error: ${CC-cc} cannot link at address $link_addr" >&2;}
3904   { (exit 1); exit 1; }; }
3905  fi
3906  if { ac_try='${OBJCOPY-objcopy} -O binary conftest.exec conftest'
3907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3908  (eval $ac_try) 2>&5
3909  ac_status=$?
3910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911  (exit $ac_status); }; }; then :
3912  else
3913    { { echo "$as_me:$LINENO: error: ${OBJCOPY-objcopy} cannot create binary files" >&5
3914echo "$as_me: error: ${OBJCOPY-objcopy} cannot create binary files" >&2;}
3915   { (exit 1); exit 1; }; }
3916  fi
3917  if test ! -f conftest.old || { ac_try='cmp -s conftest.old conftest'
3918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3919  (eval $ac_try) 2>&5
3920  ac_status=$?
3921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922  (exit $ac_status); }; }; then
3923    mv -f conftest conftest.old
3924  else
3925    grub_cv_prog_objcopy_absolute=no
3926    break
3927  fi
3928done
3929rm -f conftest*
3930fi
3931
3932echo "$as_me:$LINENO: result: $grub_cv_prog_objcopy_absolute" >&5
3933echo "${ECHO_T}$grub_cv_prog_objcopy_absolute" >&6
3934if test "x$grub_cv_prog_objcopy_absolute" != xyes; then
3935  { { echo "$as_me:$LINENO: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&5
3936echo "$as_me: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&2;}
3937   { (exit 1); exit 1; }; }
3938fi
3939
3940
3941echo "$as_me:$LINENO: checking whether addr32 must be in the same line as the instruction" >&5
3942echo $ECHO_N "checking whether addr32 must be in the same line as the instruction... $ECHO_C" >&6
3943if test "${grub_cv_asm_prefix_requirement+set}" = set; then
3944  echo $ECHO_N "(cached) $ECHO_C" >&6
3945else
3946  cat > conftest.s <<\EOF
3947	.code16
3948l1:	addr32	movb	%al, l1
3949EOF
3950
3951if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
3952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953  (eval $ac_try) 2>&5
3954  ac_status=$?
3955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956  (exit $ac_status); }; } && test -s conftest.o; then
3957  grub_cv_asm_prefix_requirement=yes
3958else
3959  grub_cv_asm_prefix_requirement=no
3960fi
3961
3962rm -f conftest*
3963fi
3964
3965
3966if test "x$grub_cv_asm_prefix_requirement" = xyes; then
3967  grub_tmp_addr32="addr32"
3968  grub_tmp_data32="data32"
3969else
3970  grub_tmp_addr32="addr32;"
3971  grub_tmp_data32="data32;"
3972fi
3973
3974
3975cat >>confdefs.h <<_ACEOF
3976#define ADDR32 $grub_tmp_addr32
3977_ACEOF
3978
3979
3980cat >>confdefs.h <<_ACEOF
3981#define DATA32 $grub_tmp_data32
3982_ACEOF
3983
3984
3985echo "$as_me:$LINENO: result: $grub_cv_asm_prefix_requirement" >&5
3986echo "${ECHO_T}$grub_cv_asm_prefix_requirement" >&6
3987
3988
3989
3990echo "$as_me:$LINENO: checking for .code16 addr32 assembler support" >&5
3991echo $ECHO_N "checking for .code16 addr32 assembler support... $ECHO_C" >&6
3992if test "${grub_cv_asm_addr32+set}" = set; then
3993  echo $ECHO_N "(cached) $ECHO_C" >&6
3994else
3995  cat > conftest.s.in <<\EOF
3996	.code16
3997l1:	@ADDR32@	movb	%al, l1
3998EOF
3999
4000if test "x$grub_cv_asm_prefix_requirement" = xyes; then
4001  sed -e s/@ADDR32@/addr32/ < conftest.s.in > conftest.s
4002else
4003  sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s
4004fi
4005
4006if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
4007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4008  (eval $ac_try) 2>&5
4009  ac_status=$?
4010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011  (exit $ac_status); }; } && test -s conftest.o; then
4012  grub_cv_asm_addr32=yes
4013else
4014  grub_cv_asm_addr32=no
4015fi
4016
4017rm -f conftest*
4018fi
4019
4020
4021echo "$as_me:$LINENO: result: $grub_cv_asm_addr32" >&5
4022echo "${ECHO_T}$grub_cv_asm_addr32" >&6
4023if test "x$grub_cv_asm_addr32" != xyes; then
4024  { { echo "$as_me:$LINENO: error: GRUB requires GAS .code16 addr32 support; upgrade your binutils" >&5
4025echo "$as_me: error: GRUB requires GAS .code16 addr32 support; upgrade your binutils" >&2;}
4026   { (exit 1); exit 1; }; }
4027fi
4028
4029
4030echo "$as_me:$LINENO: checking whether an absolute indirect call/jump must not be prefixed with an asterisk" >&5
4031echo $ECHO_N "checking whether an absolute indirect call/jump must not be prefixed with an asterisk... $ECHO_C" >&6
4032if test "${grub_cv_asm_absolute_without_asterisk+set}" = set; then
4033  echo $ECHO_N "(cached) $ECHO_C" >&6
4034else
4035  cat > conftest.s <<\EOF
4036	lcall	*(offset)
4037offset:
4038	.long	0
4039	.word	0
4040EOF
4041
4042if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
4043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044  (eval $ac_try) 2>&5
4045  ac_status=$?
4046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047  (exit $ac_status); }; } && test -s conftest.o; then
4048  grub_cv_asm_absolute_without_asterisk=no
4049else
4050  grub_cv_asm_absolute_without_asterisk=yes
4051fi
4052
4053rm -f conftest*
4054fi
4055
4056
4057if test "x$grub_cv_asm_absolute_without_asterisk" = xyes; then
4058
4059cat >>confdefs.h <<\_ACEOF
4060#define ABSOLUTE_WITHOUT_ASTERISK 1
4061_ACEOF
4062
4063fi
4064
4065echo "$as_me:$LINENO: result: $grub_cv_asm_absolute_without_asterisk" >&5
4066echo "${ECHO_T}$grub_cv_asm_absolute_without_asterisk" >&6
4067
4068
4069echo "$as_me:$LINENO: checking if start is defined by the compiler" >&5
4070echo $ECHO_N "checking if start is defined by the compiler... $ECHO_C" >&6
4071if test "${grub_cv_check_start_symbol+set}" = set; then
4072  echo $ECHO_N "(cached) $ECHO_C" >&6
4073else
4074  cat >conftest.$ac_ext <<_ACEOF
4075/* confdefs.h.  */
4076_ACEOF
4077cat confdefs.h >>conftest.$ac_ext
4078cat >>conftest.$ac_ext <<_ACEOF
4079/* end confdefs.h.  */
4080
4081int
4082main ()
4083{
4084asm ("incl start")
4085  ;
4086  return 0;
4087}
4088_ACEOF
4089rm -f conftest.$ac_objext conftest$ac_exeext
4090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4091  (eval $ac_link) 2>conftest.er1
4092  ac_status=$?
4093  grep -v '^ *+' conftest.er1 >conftest.err
4094  rm -f conftest.er1
4095  cat conftest.err >&5
4096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097  (exit $ac_status); } &&
4098	 { ac_try='test -z "$ac_c_werror_flag"
4099			 || test ! -s conftest.err'
4100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101  (eval $ac_try) 2>&5
4102  ac_status=$?
4103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104  (exit $ac_status); }; } &&
4105	 { ac_try='test -s conftest$ac_exeext'
4106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107  (eval $ac_try) 2>&5
4108  ac_status=$?
4109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110  (exit $ac_status); }; }; then
4111  grub_cv_check_start_symbol=yes
4112else
4113  echo "$as_me: failed program was:" >&5
4114sed 's/^/| /' conftest.$ac_ext >&5
4115
4116grub_cv_check_start_symbol=no
4117fi
4118rm -f conftest.err conftest.$ac_objext \
4119      conftest$ac_exeext conftest.$ac_ext
4120fi
4121
4122
4123if test "x$grub_cv_check_start_symbol" = xyes; then
4124
4125cat >>confdefs.h <<\_ACEOF
4126#define HAVE_START_SYMBOL 1
4127_ACEOF
4128
4129fi
4130
4131echo "$as_me:$LINENO: result: $grub_cv_check_start_symbol" >&5
4132echo "${ECHO_T}$grub_cv_check_start_symbol" >&6
4133
4134
4135echo "$as_me:$LINENO: checking if _start is defined by the compiler" >&5
4136echo $ECHO_N "checking if _start is defined by the compiler... $ECHO_C" >&6
4137if test "${grub_cv_check_uscore_start_symbol+set}" = set; then
4138  echo $ECHO_N "(cached) $ECHO_C" >&6
4139else
4140  cat >conftest.$ac_ext <<_ACEOF
4141/* confdefs.h.  */
4142_ACEOF
4143cat confdefs.h >>conftest.$ac_ext
4144cat >>conftest.$ac_ext <<_ACEOF
4145/* end confdefs.h.  */
4146
4147int
4148main ()
4149{
4150asm ("incl _start")
4151  ;
4152  return 0;
4153}
4154_ACEOF
4155rm -f conftest.$ac_objext conftest$ac_exeext
4156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4157  (eval $ac_link) 2>conftest.er1
4158  ac_status=$?
4159  grep -v '^ *+' conftest.er1 >conftest.err
4160  rm -f conftest.er1
4161  cat conftest.err >&5
4162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163  (exit $ac_status); } &&
4164	 { ac_try='test -z "$ac_c_werror_flag"
4165			 || test ! -s conftest.err'
4166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167  (eval $ac_try) 2>&5
4168  ac_status=$?
4169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170  (exit $ac_status); }; } &&
4171	 { ac_try='test -s conftest$ac_exeext'
4172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173  (eval $ac_try) 2>&5
4174  ac_status=$?
4175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176  (exit $ac_status); }; }; then
4177  grub_cv_check_uscore_start_symbol=yes
4178else
4179  echo "$as_me: failed program was:" >&5
4180sed 's/^/| /' conftest.$ac_ext >&5
4181
4182grub_cv_check_uscore_start_symbol=no
4183fi
4184rm -f conftest.err conftest.$ac_objext \
4185      conftest$ac_exeext conftest.$ac_ext
4186fi
4187
4188
4189if test "x$grub_cv_check_uscore_start_symbol" = xyes; then
4190
4191cat >>confdefs.h <<\_ACEOF
4192#define HAVE_USCORE_START_SYMBOL 1
4193_ACEOF
4194
4195fi
4196
4197echo "$as_me:$LINENO: result: $grub_cv_check_uscore_start_symbol" >&5
4198echo "${ECHO_T}$grub_cv_check_uscore_start_symbol" >&6
4199
4200if test "x$grub_cv_check_start_symbol" != "xyes" \
4201	-a "x$grub_cv_check_uscore_start_symbol" != "xyes"; then
4202  { { echo "$as_me:$LINENO: error: Neither start nor _start is defined" >&5
4203echo "$as_me: error: Neither start nor _start is defined" >&2;}
4204   { (exit 1); exit 1; }; }
4205fi
4206
4207
4208echo "$as_me:$LINENO: checking if __bss_start is defined by the compiler" >&5
4209echo $ECHO_N "checking if __bss_start is defined by the compiler... $ECHO_C" >&6
4210if test "${grub_cv_check_uscore_uscore_bss_start_symbol+set}" = set; then
4211  echo $ECHO_N "(cached) $ECHO_C" >&6
4212else
4213  cat >conftest.$ac_ext <<_ACEOF
4214/* confdefs.h.  */
4215_ACEOF
4216cat confdefs.h >>conftest.$ac_ext
4217cat >>conftest.$ac_ext <<_ACEOF
4218/* end confdefs.h.  */
4219
4220int
4221main ()
4222{
4223asm ("incl __bss_start")
4224  ;
4225  return 0;
4226}
4227_ACEOF
4228rm -f conftest.$ac_objext conftest$ac_exeext
4229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4230  (eval $ac_link) 2>conftest.er1
4231  ac_status=$?
4232  grep -v '^ *+' conftest.er1 >conftest.err
4233  rm -f conftest.er1
4234  cat conftest.err >&5
4235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236  (exit $ac_status); } &&
4237	 { ac_try='test -z "$ac_c_werror_flag"
4238			 || test ! -s conftest.err'
4239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240  (eval $ac_try) 2>&5
4241  ac_status=$?
4242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243  (exit $ac_status); }; } &&
4244	 { ac_try='test -s conftest$ac_exeext'
4245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246  (eval $ac_try) 2>&5
4247  ac_status=$?
4248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249  (exit $ac_status); }; }; then
4250  grub_cv_check_uscore_uscore_bss_start_symbol=yes
4251else
4252  echo "$as_me: failed program was:" >&5
4253sed 's/^/| /' conftest.$ac_ext >&5
4254
4255grub_cv_check_uscore_uscore_bss_start_symbol=no
4256fi
4257rm -f conftest.err conftest.$ac_objext \
4258      conftest$ac_exeext conftest.$ac_ext
4259fi
4260
4261
4262if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then
4263
4264cat >>confdefs.h <<\_ACEOF
4265#define HAVE_USCORE_USCORE_BSS_START_SYMBOL 1
4266_ACEOF
4267
4268fi
4269
4270echo "$as_me:$LINENO: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
4271echo "${ECHO_T}$grub_cv_check_uscore_uscore_bss_start_symbol" >&6
4272
4273
4274echo "$as_me:$LINENO: checking if _edata is defined by the compiler" >&5
4275echo $ECHO_N "checking if _edata is defined by the compiler... $ECHO_C" >&6
4276if test "${grub_cv_check_uscore_edata_symbol+set}" = set; then
4277  echo $ECHO_N "(cached) $ECHO_C" >&6
4278else
4279  cat >conftest.$ac_ext <<_ACEOF
4280/* confdefs.h.  */
4281_ACEOF
4282cat confdefs.h >>conftest.$ac_ext
4283cat >>conftest.$ac_ext <<_ACEOF
4284/* end confdefs.h.  */
4285
4286int
4287main ()
4288{
4289asm ("incl _edata")
4290  ;
4291  return 0;
4292}
4293_ACEOF
4294rm -f conftest.$ac_objext conftest$ac_exeext
4295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4296  (eval $ac_link) 2>conftest.er1
4297  ac_status=$?
4298  grep -v '^ *+' conftest.er1 >conftest.err
4299  rm -f conftest.er1
4300  cat conftest.err >&5
4301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302  (exit $ac_status); } &&
4303	 { ac_try='test -z "$ac_c_werror_flag"
4304			 || test ! -s conftest.err'
4305  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4306  (eval $ac_try) 2>&5
4307  ac_status=$?
4308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309  (exit $ac_status); }; } &&
4310	 { ac_try='test -s conftest$ac_exeext'
4311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4312  (eval $ac_try) 2>&5
4313  ac_status=$?
4314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315  (exit $ac_status); }; }; then
4316  grub_cv_check_uscore_edata_symbol=yes
4317else
4318  echo "$as_me: failed program was:" >&5
4319sed 's/^/| /' conftest.$ac_ext >&5
4320
4321grub_cv_check_uscore_edata_symbol=no
4322fi
4323rm -f conftest.err conftest.$ac_objext \
4324      conftest$ac_exeext conftest.$ac_ext
4325fi
4326
4327
4328if test "x$grub_cv_check_uscore_edata_symbol" = xyes; then
4329
4330cat >>confdefs.h <<\_ACEOF
4331#define HAVE_USCORE_EDATA_SYMBOL 1
4332_ACEOF
4333
4334fi
4335
4336echo "$as_me:$LINENO: result: $grub_cv_check_uscore_edata_symbol" >&5
4337echo "${ECHO_T}$grub_cv_check_uscore_edata_symbol" >&6
4338
4339
4340echo "$as_me:$LINENO: checking if edata is defined by the compiler" >&5
4341echo $ECHO_N "checking if edata is defined by the compiler... $ECHO_C" >&6
4342if test "${grub_cv_check_edata_symbol+set}" = set; then
4343  echo $ECHO_N "(cached) $ECHO_C" >&6
4344else
4345  cat >conftest.$ac_ext <<_ACEOF
4346/* confdefs.h.  */
4347_ACEOF
4348cat confdefs.h >>conftest.$ac_ext
4349cat >>conftest.$ac_ext <<_ACEOF
4350/* end confdefs.h.  */
4351
4352int
4353main ()
4354{
4355asm ("incl edata")
4356  ;
4357  return 0;
4358}
4359_ACEOF
4360rm -f conftest.$ac_objext conftest$ac_exeext
4361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4362  (eval $ac_link) 2>conftest.er1
4363  ac_status=$?
4364  grep -v '^ *+' conftest.er1 >conftest.err
4365  rm -f conftest.er1
4366  cat conftest.err >&5
4367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368  (exit $ac_status); } &&
4369	 { ac_try='test -z "$ac_c_werror_flag"
4370			 || test ! -s conftest.err'
4371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372  (eval $ac_try) 2>&5
4373  ac_status=$?
4374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375  (exit $ac_status); }; } &&
4376	 { ac_try='test -s conftest$ac_exeext'
4377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378  (eval $ac_try) 2>&5
4379  ac_status=$?
4380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381  (exit $ac_status); }; }; then
4382  grub_cv_check_edata_symbol=yes
4383else
4384  echo "$as_me: failed program was:" >&5
4385sed 's/^/| /' conftest.$ac_ext >&5
4386
4387grub_cv_check_edata_symbol=no
4388fi
4389rm -f conftest.err conftest.$ac_objext \
4390      conftest$ac_exeext conftest.$ac_ext
4391fi
4392
4393
4394if test "x$grub_cv_check_edata_symbol" = xyes; then
4395
4396cat >>confdefs.h <<\_ACEOF
4397#define HAVE_EDATA_SYMBOL 1
4398_ACEOF
4399
4400fi
4401
4402echo "$as_me:$LINENO: result: $grub_cv_check_edata_symbol" >&5
4403echo "${ECHO_T}$grub_cv_check_edata_symbol" >&6
4404
4405if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" != "xyes" \
4406	-a "x$grub_cv_check_uscore_edata_symbol" != "xyes" \
4407	-a "x$grub_cv_check_edata_symbol" != "xyes"; then
4408  { { echo "$as_me:$LINENO: error: None of __bss_start, _edata, edata defined" >&5
4409echo "$as_me: error: None of __bss_start, _edata, edata defined" >&2;}
4410   { (exit 1); exit 1; }; }
4411fi
4412
4413
4414echo "$as_me:$LINENO: checking if end is defined by the compiler" >&5
4415echo $ECHO_N "checking if end is defined by the compiler... $ECHO_C" >&6
4416if test "${grub_cv_check_end_symbol+set}" = set; then
4417  echo $ECHO_N "(cached) $ECHO_C" >&6
4418else
4419  cat >conftest.$ac_ext <<_ACEOF
4420/* confdefs.h.  */
4421_ACEOF
4422cat confdefs.h >>conftest.$ac_ext
4423cat >>conftest.$ac_ext <<_ACEOF
4424/* end confdefs.h.  */
4425
4426int
4427main ()
4428{
4429asm ("incl end")
4430  ;
4431  return 0;
4432}
4433_ACEOF
4434rm -f conftest.$ac_objext conftest$ac_exeext
4435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4436  (eval $ac_link) 2>conftest.er1
4437  ac_status=$?
4438  grep -v '^ *+' conftest.er1 >conftest.err
4439  rm -f conftest.er1
4440  cat conftest.err >&5
4441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442  (exit $ac_status); } &&
4443	 { ac_try='test -z "$ac_c_werror_flag"
4444			 || test ! -s conftest.err'
4445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446  (eval $ac_try) 2>&5
4447  ac_status=$?
4448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449  (exit $ac_status); }; } &&
4450	 { ac_try='test -s conftest$ac_exeext'
4451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4452  (eval $ac_try) 2>&5
4453  ac_status=$?
4454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455  (exit $ac_status); }; }; then
4456  grub_cv_check_end_symbol=yes
4457else
4458  echo "$as_me: failed program was:" >&5
4459sed 's/^/| /' conftest.$ac_ext >&5
4460
4461grub_cv_check_end_symbol=no
4462fi
4463rm -f conftest.err conftest.$ac_objext \
4464      conftest$ac_exeext conftest.$ac_ext
4465fi
4466
4467
4468if test "x$grub_cv_check_end_symbol" = xyes; then
4469
4470cat >>confdefs.h <<\_ACEOF
4471#define HAVE_END_SYMBOL 1
4472_ACEOF
4473
4474fi
4475
4476echo "$as_me:$LINENO: result: $grub_cv_check_end_symbol" >&5
4477echo "${ECHO_T}$grub_cv_check_end_symbol" >&6
4478
4479
4480echo "$as_me:$LINENO: checking if _end is defined by the compiler" >&5
4481echo $ECHO_N "checking if _end is defined by the compiler... $ECHO_C" >&6
4482if test "${grub_cv_check_uscore_end_symbol+set}" = set; then
4483  echo $ECHO_N "(cached) $ECHO_C" >&6
4484else
4485  cat >conftest.$ac_ext <<_ACEOF
4486/* confdefs.h.  */
4487_ACEOF
4488cat confdefs.h >>conftest.$ac_ext
4489cat >>conftest.$ac_ext <<_ACEOF
4490/* end confdefs.h.  */
4491
4492int
4493main ()
4494{
4495asm ("incl _end")
4496  ;
4497  return 0;
4498}
4499_ACEOF
4500rm -f conftest.$ac_objext conftest$ac_exeext
4501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4502  (eval $ac_link) 2>conftest.er1
4503  ac_status=$?
4504  grep -v '^ *+' conftest.er1 >conftest.err
4505  rm -f conftest.er1
4506  cat conftest.err >&5
4507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508  (exit $ac_status); } &&
4509	 { ac_try='test -z "$ac_c_werror_flag"
4510			 || test ! -s conftest.err'
4511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4512  (eval $ac_try) 2>&5
4513  ac_status=$?
4514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515  (exit $ac_status); }; } &&
4516	 { ac_try='test -s conftest$ac_exeext'
4517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518  (eval $ac_try) 2>&5
4519  ac_status=$?
4520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521  (exit $ac_status); }; }; then
4522  grub_cv_check_uscore_end_symbol=yes
4523else
4524  echo "$as_me: failed program was:" >&5
4525sed 's/^/| /' conftest.$ac_ext >&5
4526
4527grub_cv_check_uscore_end_symbol=no
4528fi
4529rm -f conftest.err conftest.$ac_objext \
4530      conftest$ac_exeext conftest.$ac_ext
4531fi
4532
4533
4534if test "x$grub_cv_check_uscore_end_symbol" = xyes; then
4535
4536cat >>confdefs.h <<\_ACEOF
4537#define HAVE_USCORE_END_SYMBOL 1
4538_ACEOF
4539
4540fi
4541
4542echo "$as_me:$LINENO: result: $grub_cv_check_uscore_end_symbol" >&5
4543echo "${ECHO_T}$grub_cv_check_uscore_end_symbol" >&6
4544
4545if test "x$grub_cv_check_end_symbol" != "xyes" \
4546	-a "x$grub_cv_check_uscore_end_symbol" != "xyes"; then
4547  { { echo "$as_me:$LINENO: error: Neither end nor _end is defined" >&5
4548echo "$as_me: error: Neither end nor _end is defined" >&2;}
4549   { (exit 1); exit 1; }; }
4550fi
4551
4552# Check for curses libraries.
4553
4554# Check whether --with-curses or --without-curses was given.
4555if test "${with_curses+set}" = set; then
4556  withval="$with_curses"
4557
4558fi;
4559
4560# Get the filename or the whole disk and open it.
4561# Known to work on NetBSD.
4562echo "$as_me:$LINENO: checking for opendisk in -lutil" >&5
4563echo $ECHO_N "checking for opendisk in -lutil... $ECHO_C" >&6
4564if test "${ac_cv_lib_util_opendisk+set}" = set; then
4565  echo $ECHO_N "(cached) $ECHO_C" >&6
4566else
4567  ac_check_lib_save_LIBS=$LIBS
4568LIBS="-lutil  $LIBS"
4569cat >conftest.$ac_ext <<_ACEOF
4570/* confdefs.h.  */
4571_ACEOF
4572cat confdefs.h >>conftest.$ac_ext
4573cat >>conftest.$ac_ext <<_ACEOF
4574/* end confdefs.h.  */
4575
4576/* Override any gcc2 internal prototype to avoid an error.  */
4577#ifdef __cplusplus
4578extern "C"
4579#endif
4580/* We use char because int might match the return type of a gcc2
4581   builtin and then its argument prototype would still apply.  */
4582char opendisk ();
4583int
4584main ()
4585{
4586opendisk ();
4587  ;
4588  return 0;
4589}
4590_ACEOF
4591rm -f conftest.$ac_objext conftest$ac_exeext
4592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4593  (eval $ac_link) 2>conftest.er1
4594  ac_status=$?
4595  grep -v '^ *+' conftest.er1 >conftest.err
4596  rm -f conftest.er1
4597  cat conftest.err >&5
4598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599  (exit $ac_status); } &&
4600	 { ac_try='test -z "$ac_c_werror_flag"
4601			 || test ! -s conftest.err'
4602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603  (eval $ac_try) 2>&5
4604  ac_status=$?
4605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606  (exit $ac_status); }; } &&
4607	 { ac_try='test -s conftest$ac_exeext'
4608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609  (eval $ac_try) 2>&5
4610  ac_status=$?
4611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612  (exit $ac_status); }; }; then
4613  ac_cv_lib_util_opendisk=yes
4614else
4615  echo "$as_me: failed program was:" >&5
4616sed 's/^/| /' conftest.$ac_ext >&5
4617
4618ac_cv_lib_util_opendisk=no
4619fi
4620rm -f conftest.err conftest.$ac_objext \
4621      conftest$ac_exeext conftest.$ac_ext
4622LIBS=$ac_check_lib_save_LIBS
4623fi
4624echo "$as_me:$LINENO: result: $ac_cv_lib_util_opendisk" >&5
4625echo "${ECHO_T}$ac_cv_lib_util_opendisk" >&6
4626if test $ac_cv_lib_util_opendisk = yes; then
4627  GRUB_LIBS="$GRUB_LIBS -lutil"
4628
4629cat >>confdefs.h <<\_ACEOF
4630#define HAVE_OPENDISK 1
4631_ACEOF
4632
4633fi
4634
4635
4636# Unless the user specify --without-curses, check for curses.
4637if test "x$with_curses" != "xno"; then
4638  echo "$as_me:$LINENO: checking for wgetch in -lncurses" >&5
4639echo $ECHO_N "checking for wgetch in -lncurses... $ECHO_C" >&6
4640if test "${ac_cv_lib_ncurses_wgetch+set}" = set; then
4641  echo $ECHO_N "(cached) $ECHO_C" >&6
4642else
4643  ac_check_lib_save_LIBS=$LIBS
4644LIBS="-lncurses  $LIBS"
4645cat >conftest.$ac_ext <<_ACEOF
4646/* confdefs.h.  */
4647_ACEOF
4648cat confdefs.h >>conftest.$ac_ext
4649cat >>conftest.$ac_ext <<_ACEOF
4650/* end confdefs.h.  */
4651
4652/* Override any gcc2 internal prototype to avoid an error.  */
4653#ifdef __cplusplus
4654extern "C"
4655#endif
4656/* We use char because int might match the return type of a gcc2
4657   builtin and then its argument prototype would still apply.  */
4658char wgetch ();
4659int
4660main ()
4661{
4662wgetch ();
4663  ;
4664  return 0;
4665}
4666_ACEOF
4667rm -f conftest.$ac_objext conftest$ac_exeext
4668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4669  (eval $ac_link) 2>conftest.er1
4670  ac_status=$?
4671  grep -v '^ *+' conftest.er1 >conftest.err
4672  rm -f conftest.er1
4673  cat conftest.err >&5
4674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675  (exit $ac_status); } &&
4676	 { ac_try='test -z "$ac_c_werror_flag"
4677			 || test ! -s conftest.err'
4678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679  (eval $ac_try) 2>&5
4680  ac_status=$?
4681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682  (exit $ac_status); }; } &&
4683	 { ac_try='test -s conftest$ac_exeext'
4684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685  (eval $ac_try) 2>&5
4686  ac_status=$?
4687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688  (exit $ac_status); }; }; then
4689  ac_cv_lib_ncurses_wgetch=yes
4690else
4691  echo "$as_me: failed program was:" >&5
4692sed 's/^/| /' conftest.$ac_ext >&5
4693
4694ac_cv_lib_ncurses_wgetch=no
4695fi
4696rm -f conftest.err conftest.$ac_objext \
4697      conftest$ac_exeext conftest.$ac_ext
4698LIBS=$ac_check_lib_save_LIBS
4699fi
4700echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_wgetch" >&5
4701echo "${ECHO_T}$ac_cv_lib_ncurses_wgetch" >&6
4702if test $ac_cv_lib_ncurses_wgetch = yes; then
4703  GRUB_LIBS="$GRUB_LIBS -lncurses"
4704
4705cat >>confdefs.h <<\_ACEOF
4706#define HAVE_LIBCURSES 1
4707_ACEOF
4708
4709else
4710  echo "$as_me:$LINENO: checking for wgetch in -lcurses" >&5
4711echo $ECHO_N "checking for wgetch in -lcurses... $ECHO_C" >&6
4712if test "${ac_cv_lib_curses_wgetch+set}" = set; then
4713  echo $ECHO_N "(cached) $ECHO_C" >&6
4714else
4715  ac_check_lib_save_LIBS=$LIBS
4716LIBS="-lcurses  $LIBS"
4717cat >conftest.$ac_ext <<_ACEOF
4718/* confdefs.h.  */
4719_ACEOF
4720cat confdefs.h >>conftest.$ac_ext
4721cat >>conftest.$ac_ext <<_ACEOF
4722/* end confdefs.h.  */
4723
4724/* Override any gcc2 internal prototype to avoid an error.  */
4725#ifdef __cplusplus
4726extern "C"
4727#endif
4728/* We use char because int might match the return type of a gcc2
4729   builtin and then its argument prototype would still apply.  */
4730char wgetch ();
4731int
4732main ()
4733{
4734wgetch ();
4735  ;
4736  return 0;
4737}
4738_ACEOF
4739rm -f conftest.$ac_objext conftest$ac_exeext
4740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4741  (eval $ac_link) 2>conftest.er1
4742  ac_status=$?
4743  grep -v '^ *+' conftest.er1 >conftest.err
4744  rm -f conftest.er1
4745  cat conftest.err >&5
4746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747  (exit $ac_status); } &&
4748	 { ac_try='test -z "$ac_c_werror_flag"
4749			 || test ! -s conftest.err'
4750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751  (eval $ac_try) 2>&5
4752  ac_status=$?
4753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754  (exit $ac_status); }; } &&
4755	 { ac_try='test -s conftest$ac_exeext'
4756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757  (eval $ac_try) 2>&5
4758  ac_status=$?
4759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760  (exit $ac_status); }; }; then
4761  ac_cv_lib_curses_wgetch=yes
4762else
4763  echo "$as_me: failed program was:" >&5
4764sed 's/^/| /' conftest.$ac_ext >&5
4765
4766ac_cv_lib_curses_wgetch=no
4767fi
4768rm -f conftest.err conftest.$ac_objext \
4769      conftest$ac_exeext conftest.$ac_ext
4770LIBS=$ac_check_lib_save_LIBS
4771fi
4772echo "$as_me:$LINENO: result: $ac_cv_lib_curses_wgetch" >&5
4773echo "${ECHO_T}$ac_cv_lib_curses_wgetch" >&6
4774if test $ac_cv_lib_curses_wgetch = yes; then
4775  GRUB_LIBS="$GRUB_LIBS -lcurses"
4776
4777cat >>confdefs.h <<\_ACEOF
4778#define HAVE_LIBCURSES 1
4779_ACEOF
4780
4781fi
4782
4783fi
4784
4785fi
4786
4787
4788
4789# Check for headers.
4790ac_ext=c
4791ac_cpp='$CPP $CPPFLAGS'
4792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4794ac_compiler_gnu=$ac_cv_c_compiler_gnu
4795echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4796echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4797# On Suns, sometimes $CPP names a directory.
4798if test -n "$CPP" && test -d "$CPP"; then
4799  CPP=
4800fi
4801if test -z "$CPP"; then
4802  if test "${ac_cv_prog_CPP+set}" = set; then
4803  echo $ECHO_N "(cached) $ECHO_C" >&6
4804else
4805      # Double quotes because CPP needs to be expanded
4806    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4807    do
4808      ac_preproc_ok=false
4809for ac_c_preproc_warn_flag in '' yes
4810do
4811  # Use a header file that comes with gcc, so configuring glibc
4812  # with a fresh cross-compiler works.
4813  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4814  # <limits.h> exists even on freestanding compilers.
4815  # On the NeXT, cc -E runs the code through the compiler's parser,
4816  # not just through cpp. "Syntax error" is here to catch this case.
4817  cat >conftest.$ac_ext <<_ACEOF
4818/* confdefs.h.  */
4819_ACEOF
4820cat confdefs.h >>conftest.$ac_ext
4821cat >>conftest.$ac_ext <<_ACEOF
4822/* end confdefs.h.  */
4823#ifdef __STDC__
4824# include <limits.h>
4825#else
4826# include <assert.h>
4827#endif
4828		     Syntax error
4829_ACEOF
4830if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4831  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4832  ac_status=$?
4833  grep -v '^ *+' conftest.er1 >conftest.err
4834  rm -f conftest.er1
4835  cat conftest.err >&5
4836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837  (exit $ac_status); } >/dev/null; then
4838  if test -s conftest.err; then
4839    ac_cpp_err=$ac_c_preproc_warn_flag
4840    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4841  else
4842    ac_cpp_err=
4843  fi
4844else
4845  ac_cpp_err=yes
4846fi
4847if test -z "$ac_cpp_err"; then
4848  :
4849else
4850  echo "$as_me: failed program was:" >&5
4851sed 's/^/| /' conftest.$ac_ext >&5
4852
4853  # Broken: fails on valid input.
4854continue
4855fi
4856rm -f conftest.err conftest.$ac_ext
4857
4858  # OK, works on sane cases.  Now check whether non-existent headers
4859  # can be detected and how.
4860  cat >conftest.$ac_ext <<_ACEOF
4861/* confdefs.h.  */
4862_ACEOF
4863cat confdefs.h >>conftest.$ac_ext
4864cat >>conftest.$ac_ext <<_ACEOF
4865/* end confdefs.h.  */
4866#include <ac_nonexistent.h>
4867_ACEOF
4868if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4869  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4870  ac_status=$?
4871  grep -v '^ *+' conftest.er1 >conftest.err
4872  rm -f conftest.er1
4873  cat conftest.err >&5
4874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875  (exit $ac_status); } >/dev/null; then
4876  if test -s conftest.err; then
4877    ac_cpp_err=$ac_c_preproc_warn_flag
4878    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4879  else
4880    ac_cpp_err=
4881  fi
4882else
4883  ac_cpp_err=yes
4884fi
4885if test -z "$ac_cpp_err"; then
4886  # Broken: success on invalid input.
4887continue
4888else
4889  echo "$as_me: failed program was:" >&5
4890sed 's/^/| /' conftest.$ac_ext >&5
4891
4892  # Passes both tests.
4893ac_preproc_ok=:
4894break
4895fi
4896rm -f conftest.err conftest.$ac_ext
4897
4898done
4899# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4900rm -f conftest.err conftest.$ac_ext
4901if $ac_preproc_ok; then
4902  break
4903fi
4904
4905    done
4906    ac_cv_prog_CPP=$CPP
4907
4908fi
4909  CPP=$ac_cv_prog_CPP
4910else
4911  ac_cv_prog_CPP=$CPP
4912fi
4913echo "$as_me:$LINENO: result: $CPP" >&5
4914echo "${ECHO_T}$CPP" >&6
4915ac_preproc_ok=false
4916for ac_c_preproc_warn_flag in '' yes
4917do
4918  # Use a header file that comes with gcc, so configuring glibc
4919  # with a fresh cross-compiler works.
4920  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4921  # <limits.h> exists even on freestanding compilers.
4922  # On the NeXT, cc -E runs the code through the compiler's parser,
4923  # not just through cpp. "Syntax error" is here to catch this case.
4924  cat >conftest.$ac_ext <<_ACEOF
4925/* confdefs.h.  */
4926_ACEOF
4927cat confdefs.h >>conftest.$ac_ext
4928cat >>conftest.$ac_ext <<_ACEOF
4929/* end confdefs.h.  */
4930#ifdef __STDC__
4931# include <limits.h>
4932#else
4933# include <assert.h>
4934#endif
4935		     Syntax error
4936_ACEOF
4937if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4938  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4939  ac_status=$?
4940  grep -v '^ *+' conftest.er1 >conftest.err
4941  rm -f conftest.er1
4942  cat conftest.err >&5
4943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944  (exit $ac_status); } >/dev/null; then
4945  if test -s conftest.err; then
4946    ac_cpp_err=$ac_c_preproc_warn_flag
4947    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4948  else
4949    ac_cpp_err=
4950  fi
4951else
4952  ac_cpp_err=yes
4953fi
4954if test -z "$ac_cpp_err"; then
4955  :
4956else
4957  echo "$as_me: failed program was:" >&5
4958sed 's/^/| /' conftest.$ac_ext >&5
4959
4960  # Broken: fails on valid input.
4961continue
4962fi
4963rm -f conftest.err conftest.$ac_ext
4964
4965  # OK, works on sane cases.  Now check whether non-existent headers
4966  # can be detected and how.
4967  cat >conftest.$ac_ext <<_ACEOF
4968/* confdefs.h.  */
4969_ACEOF
4970cat confdefs.h >>conftest.$ac_ext
4971cat >>conftest.$ac_ext <<_ACEOF
4972/* end confdefs.h.  */
4973#include <ac_nonexistent.h>
4974_ACEOF
4975if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4976  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4977  ac_status=$?
4978  grep -v '^ *+' conftest.er1 >conftest.err
4979  rm -f conftest.er1
4980  cat conftest.err >&5
4981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982  (exit $ac_status); } >/dev/null; then
4983  if test -s conftest.err; then
4984    ac_cpp_err=$ac_c_preproc_warn_flag
4985    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4986  else
4987    ac_cpp_err=
4988  fi
4989else
4990  ac_cpp_err=yes
4991fi
4992if test -z "$ac_cpp_err"; then
4993  # Broken: success on invalid input.
4994continue
4995else
4996  echo "$as_me: failed program was:" >&5
4997sed 's/^/| /' conftest.$ac_ext >&5
4998
4999  # Passes both tests.
5000ac_preproc_ok=:
5001break
5002fi
5003rm -f conftest.err conftest.$ac_ext
5004
5005done
5006# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5007rm -f conftest.err conftest.$ac_ext
5008if $ac_preproc_ok; then
5009  :
5010else
5011  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5012See \`config.log' for more details." >&5
5013echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5014See \`config.log' for more details." >&2;}
5015   { (exit 1); exit 1; }; }
5016fi
5017
5018ac_ext=c
5019ac_cpp='$CPP $CPPFLAGS'
5020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5022ac_compiler_gnu=$ac_cv_c_compiler_gnu
5023
5024
5025echo "$as_me:$LINENO: checking for egrep" >&5
5026echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5027if test "${ac_cv_prog_egrep+set}" = set; then
5028  echo $ECHO_N "(cached) $ECHO_C" >&6
5029else
5030  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5031    then ac_cv_prog_egrep='grep -E'
5032    else ac_cv_prog_egrep='egrep'
5033    fi
5034fi
5035echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5036echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5037 EGREP=$ac_cv_prog_egrep
5038
5039
5040echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5041echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5042if test "${ac_cv_header_stdc+set}" = set; then
5043  echo $ECHO_N "(cached) $ECHO_C" >&6
5044else
5045  cat >conftest.$ac_ext <<_ACEOF
5046/* confdefs.h.  */
5047_ACEOF
5048cat confdefs.h >>conftest.$ac_ext
5049cat >>conftest.$ac_ext <<_ACEOF
5050/* end confdefs.h.  */
5051#include <stdlib.h>
5052#include <stdarg.h>
5053#include <string.h>
5054#include <float.h>
5055
5056int
5057main ()
5058{
5059
5060  ;
5061  return 0;
5062}
5063_ACEOF
5064rm -f conftest.$ac_objext
5065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5066  (eval $ac_compile) 2>conftest.er1
5067  ac_status=$?
5068  grep -v '^ *+' conftest.er1 >conftest.err
5069  rm -f conftest.er1
5070  cat conftest.err >&5
5071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072  (exit $ac_status); } &&
5073	 { ac_try='test -z "$ac_c_werror_flag"
5074			 || test ! -s conftest.err'
5075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076  (eval $ac_try) 2>&5
5077  ac_status=$?
5078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079  (exit $ac_status); }; } &&
5080	 { ac_try='test -s conftest.$ac_objext'
5081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082  (eval $ac_try) 2>&5
5083  ac_status=$?
5084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085  (exit $ac_status); }; }; then
5086  ac_cv_header_stdc=yes
5087else
5088  echo "$as_me: failed program was:" >&5
5089sed 's/^/| /' conftest.$ac_ext >&5
5090
5091ac_cv_header_stdc=no
5092fi
5093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5094
5095if test $ac_cv_header_stdc = yes; then
5096  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5097  cat >conftest.$ac_ext <<_ACEOF
5098/* confdefs.h.  */
5099_ACEOF
5100cat confdefs.h >>conftest.$ac_ext
5101cat >>conftest.$ac_ext <<_ACEOF
5102/* end confdefs.h.  */
5103#include <string.h>
5104
5105_ACEOF
5106if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5107  $EGREP "memchr" >/dev/null 2>&1; then
5108  :
5109else
5110  ac_cv_header_stdc=no
5111fi
5112rm -f conftest*
5113
5114fi
5115
5116if test $ac_cv_header_stdc = yes; then
5117  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5118  cat >conftest.$ac_ext <<_ACEOF
5119/* confdefs.h.  */
5120_ACEOF
5121cat confdefs.h >>conftest.$ac_ext
5122cat >>conftest.$ac_ext <<_ACEOF
5123/* end confdefs.h.  */
5124#include <stdlib.h>
5125
5126_ACEOF
5127if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5128  $EGREP "free" >/dev/null 2>&1; then
5129  :
5130else
5131  ac_cv_header_stdc=no
5132fi
5133rm -f conftest*
5134
5135fi
5136
5137if test $ac_cv_header_stdc = yes; then
5138  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5139  if test "$cross_compiling" = yes; then
5140  :
5141else
5142  cat >conftest.$ac_ext <<_ACEOF
5143/* confdefs.h.  */
5144_ACEOF
5145cat confdefs.h >>conftest.$ac_ext
5146cat >>conftest.$ac_ext <<_ACEOF
5147/* end confdefs.h.  */
5148#include <ctype.h>
5149#if ((' ' & 0x0FF) == 0x020)
5150# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5151# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5152#else
5153# define ISLOWER(c) \
5154		   (('a' <= (c) && (c) <= 'i') \
5155		     || ('j' <= (c) && (c) <= 'r') \
5156		     || ('s' <= (c) && (c) <= 'z'))
5157# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5158#endif
5159
5160#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5161int
5162main ()
5163{
5164  int i;
5165  for (i = 0; i < 256; i++)
5166    if (XOR (islower (i), ISLOWER (i))
5167	|| toupper (i) != TOUPPER (i))
5168      exit(2);
5169  exit (0);
5170}
5171_ACEOF
5172rm -f conftest$ac_exeext
5173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5174  (eval $ac_link) 2>&5
5175  ac_status=$?
5176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5179  (eval $ac_try) 2>&5
5180  ac_status=$?
5181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182  (exit $ac_status); }; }; then
5183  :
5184else
5185  echo "$as_me: program exited with status $ac_status" >&5
5186echo "$as_me: failed program was:" >&5
5187sed 's/^/| /' conftest.$ac_ext >&5
5188
5189( exit $ac_status )
5190ac_cv_header_stdc=no
5191fi
5192rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5193fi
5194fi
5195fi
5196echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5197echo "${ECHO_T}$ac_cv_header_stdc" >&6
5198if test $ac_cv_header_stdc = yes; then
5199
5200cat >>confdefs.h <<\_ACEOF
5201#define STDC_HEADERS 1
5202_ACEOF
5203
5204fi
5205
5206# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5217		  inttypes.h stdint.h unistd.h
5218do
5219as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5220echo "$as_me:$LINENO: checking for $ac_header" >&5
5221echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5222if eval "test \"\${$as_ac_Header+set}\" = set"; then
5223  echo $ECHO_N "(cached) $ECHO_C" >&6
5224else
5225  cat >conftest.$ac_ext <<_ACEOF
5226/* confdefs.h.  */
5227_ACEOF
5228cat confdefs.h >>conftest.$ac_ext
5229cat >>conftest.$ac_ext <<_ACEOF
5230/* end confdefs.h.  */
5231$ac_includes_default
5232
5233#include <$ac_header>
5234_ACEOF
5235rm -f conftest.$ac_objext
5236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5237  (eval $ac_compile) 2>conftest.er1
5238  ac_status=$?
5239  grep -v '^ *+' conftest.er1 >conftest.err
5240  rm -f conftest.er1
5241  cat conftest.err >&5
5242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243  (exit $ac_status); } &&
5244	 { ac_try='test -z "$ac_c_werror_flag"
5245			 || test ! -s conftest.err'
5246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5247  (eval $ac_try) 2>&5
5248  ac_status=$?
5249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250  (exit $ac_status); }; } &&
5251	 { ac_try='test -s conftest.$ac_objext'
5252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253  (eval $ac_try) 2>&5
5254  ac_status=$?
5255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256  (exit $ac_status); }; }; then
5257  eval "$as_ac_Header=yes"
5258else
5259  echo "$as_me: failed program was:" >&5
5260sed 's/^/| /' conftest.$ac_ext >&5
5261
5262eval "$as_ac_Header=no"
5263fi
5264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5265fi
5266echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5267echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5268if test `eval echo '${'$as_ac_Header'}'` = yes; then
5269  cat >>confdefs.h <<_ACEOF
5270#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5271_ACEOF
5272
5273fi
5274
5275done
5276
5277
5278
5279
5280
5281
5282
5283for ac_header in string.h strings.h ncurses/curses.h ncurses.h curses.h
5284do
5285as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5286if eval "test \"\${$as_ac_Header+set}\" = set"; then
5287  echo "$as_me:$LINENO: checking for $ac_header" >&5
5288echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5289if eval "test \"\${$as_ac_Header+set}\" = set"; then
5290  echo $ECHO_N "(cached) $ECHO_C" >&6
5291fi
5292echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5293echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5294else
5295  # Is the header compilable?
5296echo "$as_me:$LINENO: checking $ac_header usability" >&5
5297echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5298cat >conftest.$ac_ext <<_ACEOF
5299/* confdefs.h.  */
5300_ACEOF
5301cat confdefs.h >>conftest.$ac_ext
5302cat >>conftest.$ac_ext <<_ACEOF
5303/* end confdefs.h.  */
5304$ac_includes_default
5305#include <$ac_header>
5306_ACEOF
5307rm -f conftest.$ac_objext
5308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5309  (eval $ac_compile) 2>conftest.er1
5310  ac_status=$?
5311  grep -v '^ *+' conftest.er1 >conftest.err
5312  rm -f conftest.er1
5313  cat conftest.err >&5
5314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315  (exit $ac_status); } &&
5316	 { ac_try='test -z "$ac_c_werror_flag"
5317			 || test ! -s conftest.err'
5318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319  (eval $ac_try) 2>&5
5320  ac_status=$?
5321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322  (exit $ac_status); }; } &&
5323	 { ac_try='test -s conftest.$ac_objext'
5324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5325  (eval $ac_try) 2>&5
5326  ac_status=$?
5327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328  (exit $ac_status); }; }; then
5329  ac_header_compiler=yes
5330else
5331  echo "$as_me: failed program was:" >&5
5332sed 's/^/| /' conftest.$ac_ext >&5
5333
5334ac_header_compiler=no
5335fi
5336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5337echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5338echo "${ECHO_T}$ac_header_compiler" >&6
5339
5340# Is the header present?
5341echo "$as_me:$LINENO: checking $ac_header presence" >&5
5342echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5343cat >conftest.$ac_ext <<_ACEOF
5344/* confdefs.h.  */
5345_ACEOF
5346cat confdefs.h >>conftest.$ac_ext
5347cat >>conftest.$ac_ext <<_ACEOF
5348/* end confdefs.h.  */
5349#include <$ac_header>
5350_ACEOF
5351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5352  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5353  ac_status=$?
5354  grep -v '^ *+' conftest.er1 >conftest.err
5355  rm -f conftest.er1
5356  cat conftest.err >&5
5357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358  (exit $ac_status); } >/dev/null; then
5359  if test -s conftest.err; then
5360    ac_cpp_err=$ac_c_preproc_warn_flag
5361    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5362  else
5363    ac_cpp_err=
5364  fi
5365else
5366  ac_cpp_err=yes
5367fi
5368if test -z "$ac_cpp_err"; then
5369  ac_header_preproc=yes
5370else
5371  echo "$as_me: failed program was:" >&5
5372sed 's/^/| /' conftest.$ac_ext >&5
5373
5374  ac_header_preproc=no
5375fi
5376rm -f conftest.err conftest.$ac_ext
5377echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5378echo "${ECHO_T}$ac_header_preproc" >&6
5379
5380# So?  What about this header?
5381case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5382  yes:no: )
5383    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5384echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5385    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5386echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5387    ac_header_preproc=yes
5388    ;;
5389  no:yes:* )
5390    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5391echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5392    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5393echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5394    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5395echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5396    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5397echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5398    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5399echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5400    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5401echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5402    (
5403      cat <<\_ASBOX
5404## ------------------------------- ##
5405## Report this to bug-grub@gnu.org ##
5406## ------------------------------- ##
5407_ASBOX
5408    ) |
5409      sed "s/^/$as_me: WARNING:     /" >&2
5410    ;;
5411esac
5412echo "$as_me:$LINENO: checking for $ac_header" >&5
5413echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5414if eval "test \"\${$as_ac_Header+set}\" = set"; then
5415  echo $ECHO_N "(cached) $ECHO_C" >&6
5416else
5417  eval "$as_ac_Header=\$ac_header_preproc"
5418fi
5419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5420echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5421
5422fi
5423if test `eval echo '${'$as_ac_Header'}'` = yes; then
5424  cat >>confdefs.h <<_ACEOF
5425#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5426_ACEOF
5427
5428fi
5429
5430done
5431
5432
5433# Check for user options.
5434
5435# filesystems support.
5436# Check whether --enable-ext2fs or --disable-ext2fs was given.
5437if test "${enable_ext2fs+set}" = set; then
5438  enableval="$enable_ext2fs"
5439
5440fi;
5441
5442if test x"$enable_ext2fs" != xno; then
5443  FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_EXT2FS=1"
5444fi
5445
5446# Check whether --enable-fat or --disable-fat was given.
5447if test "${enable_fat+set}" = set; then
5448  enableval="$enable_fat"
5449
5450fi;
5451
5452if test x"$enable_fat" != xno; then
5453  FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_FAT=1"
5454fi
5455
5456# Check whether --enable-ffs or --disable-ffs was given.
5457if test "${enable_ffs+set}" = set; then
5458  enableval="$enable_ffs"
5459
5460fi;
5461
5462if test x"$enable_ffs" != xno; then
5463  FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_FFS=1"
5464fi
5465
5466# Check whether --enable-ufs2 or --disable-ufs2 was given.
5467if test "${enable_ufs2+set}" = set; then
5468  enableval="$enable_ufs2"
5469
5470fi;
5471
5472if test x"$enable_ufs2" != xno; then
5473  FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_UFS2=1"
5474fi
5475
5476# Check whether --enable-minix or --disable-minix was given.
5477if test "${enable_minix+set}" = set; then
5478  enableval="$enable_minix"
5479
5480fi;
5481
5482if test x"$enable_minix" != xno; then
5483  FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_MINIX=1"
5484fi
5485
5486# Check whether --enable-reiserfs or --disable-reiserfs was given.
5487if test "${enable_reiserfs+set}" = set; then
5488  enableval="$enable_reiserfs"
5489
5490fi;
5491
5492if test x"$enable_reiserfs" != xno; then
5493  FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_REISERFS=1"
5494fi
5495
5496# Check whether --enable-vstafs or --disable-vstafs was given.
5497if test "${enable_vstafs+set}" = set; then
5498  enableval="$enable_vstafs"
5499
5500fi;
5501
5502if test x"$enable_vstafs" != xno; then
5503  FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_VSTAFS=1"
5504fi
5505
5506# Check whether --enable-jfs or --disable-jfs was given.
5507if test "${enable_jfs+set}" = set; then
5508  enableval="$enable_jfs"
5509
5510fi;
5511
5512if test x"$enable_jfs" != xno; then
5513  FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_JFS=1"
5514fi
5515
5516# Check whether --enable-xfs or --disable-xfs was given.
5517if test "${enable_xfs+set}" = set; then
5518  enableval="$enable_xfs"
5519
5520fi;
5521
5522if test x"$enable_xfs" != xno; then
5523  FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_XFS=1"
5524fi
5525
5526# Check whether --enable-iso9660 or --disable-iso9660 was given.
5527if test "${enable_iso9660+set}" = set; then
5528  enableval="$enable_iso9660"
5529
5530fi;
5531
5532if test x"$enable_iso9660" != xno; then
5533  FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_ISO9660=1"
5534fi
5535
5536
5537# Check whether --enable-gunzip or --disable-gunzip was given.
5538if test "${enable_gunzip+set}" = set; then
5539  enableval="$enable_gunzip"
5540
5541fi;
5542
5543if test x"$enable_gunzip" = xno; then
5544  FSYS_CFLAGS="$FSYS_CFLAGS -DNO_DECOMPRESSION=1"
5545fi
5546
5547# Check whether --enable-md5-password or --disable-md5-password was given.
5548if test "${enable_md5_password+set}" = set; then
5549  enableval="$enable_md5_password"
5550
5551fi;
5552if test "x$enable_md5_password" != xno; then
5553  FSYS_CFLAGS="$FSYS_CFLAGS -DUSE_MD5_PASSWORDS=1"
5554fi
5555
5556# Check whether --enable-packet-retransmission or --disable-packet-retransmission was given.
5557if test "${enable_packet_retransmission+set}" = set; then
5558  enableval="$enable_packet_retransmission"
5559
5560fi;
5561if test "x$enable_packet_retransmission" != xno; then
5562  NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DCONGESTED=1"
5563fi
5564
5565# Check whether --enable-pci-direct or --disable-pci-direct was given.
5566if test "${enable_pci_direct+set}" = set; then
5567  enableval="$enable_pci_direct"
5568
5569fi;
5570if test "x$enable_pci_direct" = xyes; then
5571  NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DCONFIG_PCI_DIRECT=1"
5572fi
5573
5574# Check whether --enable-3c509 or --disable-3c509 was given.
5575if test "${enable_3c509+set}" = set; then
5576  enableval="$enable_3c509"
5577
5578fi;
5579if test "x$enable_3c509" = xyes; then
5580  NET_CFLAGS="$NET_CFLAGS -DINCLUDE_3C509"
5581  NETBOOT_DRIVERS="$NETBOOT_DRIVERS 3c509.o"
5582fi
5583
5584# Check whether --enable-3c529 or --disable-3c529 was given.
5585if test "${enable_3c529+set}" = set; then
5586  enableval="$enable_3c529"
5587
5588fi;
5589if test "x$enable_3c529" = xyes; then
5590  NET_CFLAGS="$NET_CFLAGS -DINCLUDE_3C529=1"
5591  NETBOOT_DRIVERS="$NETBOOT_DRIVERS 3c529.o"
5592fi
5593
5594# Check whether --enable-3c595 or --disable-3c595 was given.
5595if test "${enable_3c595+set}" = set; then
5596  enableval="$enable_3c595"
5597
5598fi;
5599if test "x$enable_3c595" = xyes; then
5600  NET_CFLAGS="$NET_CFLAGS -DINCLUDE_3C595=1"
5601  NETBOOT_DRIVERS="$NETBOOT_DRIVERS 3c595.o"
5602fi
5603
5604# Check whether --enable-3c90x or --disable-3c90x was given.
5605if test "${enable_3c90x+set}" = set; then
5606  enableval="$enable_3c90x"
5607
5608fi;
5609if test "x$enable_3c90x" = xyes; then
5610  NET_CFLAGS="$NET_CFLAGS -DINCLUDE_3C90X=1"
5611  NETBOOT_DRIVERS="$NETBOOT_DRIVERS 3c90x.o"
5612fi
5613
5614# Check whether --enable-cs89x0 or --disable-cs89x0 was given.
5615if test "${enable_cs89x0+set}" = set; then
5616  enableval="$enable_cs89x0"
5617
5618fi;
5619if test "x$enable_cs89x0" = xyes; then
5620  NET_CFLAGS="$NET_CFLAGS -DINCLUDE_CS89X0=1"
5621  NETBOOT_DRIVERS="$NETBOOT_DRIVERS cs89x0.o"
5622fi
5623
5624# Check whether --enable-davicom or --disable-davicom was given.
5625if test "${enable_davicom+set}" = set; then
5626  enableval="$enable_davicom"
5627
5628fi;
5629if test "x$enable_davicom" = xyes; then
5630  NET_CFLAGS="$NET_CFLAGS -DINCLUDE_DAVICOM=1"
5631  NETBOOT_DRIVERS="$NETBOOT_DRIVERS davicom.o"
5632fi
5633
5634# Check whether --enable-depca or --disable-depca was given.
5635if test "${enable_depca+set}" = set; then
5636  enableval="$enable_depca"
5637
5638fi;
5639if test "x$enable_depca" = xyes; then
5640  NET_CFLAGS="$NET_CFLAGS -DINCLUDE_DEPCA=1"
5641  NETBOOT_DRIVERS="$NETBOOT_DRIVERS depca.o"
5642fi
5643
5644# Check whether --enable-eepro or --disable-eepro was given.
5645if test "${enable_eepro+set}" = set; then
5646  enableval="$enable_eepro"
5647
5648fi;
5649if test "x$enable_eepro" = xyes; then
5650  NET_CFLAGS="$NET_CFLAGS -DINCLUDE_EEPRO=1"
5651  NETBOOT_DRIVERS="$NETBOOT_DRIVERS eepro.o"
5652fi
5653
5654# Check whether --enable-eepro100 or --disable-eepro100 was given.
5655if test "${enable_eepro100+set}" = set; then
5656  enableval="$enable_eepro100"
5657
5658fi;
5659if test "x$enable_eepro100" = xyes; then
5660  NET_CFLAGS="$NET_CFLAGS -DINCLUDE_EEPRO100=1"
5661  NETBOOT_DRIVERS="$NETBOOT_DRIVERS eepro100.o"
5662fi
5663
5664# Check whether --enable-epic100 or --disable-epic100 was given.
5665if test "${enable_epic100+set}" = set; then
5666  enableval="$enable_epic100"
5667
5668fi;
5669if test "x$enable_epic100" = xyes; then
5670  NET_CFLAGS="$NET_CFLAGS -DINCLUDE_EPIC100=1"
5671  NETBOOT_DRIVERS="$NETBOOT_DRIVERS epic100.o"
5672fi
5673
5674# Check whether --enable-3c507 or --disable-3c507 was given.
5675if test "${enable_3c507+set}" = set; then
5676  enableval="$enable_3c507"
5677
5678fi;
5679if test "x$enable_3c507" = xyes; then
5680  NET_CFLAGS="$NET_CFLAGS -DINCLUDE_3C507=1"
5681  NETBOOT_DRIVERS="$NETBOOT_DRIVERS 3c507.o"
5682fi
5683
5684# Check whether --enable-exos205 or --disable-exos205 was given.
5685if test "${enable_exos205+set}" = set; then
5686  enableval="$enable_exos205"
5687
5688fi;
5689if test "x$enable_exos205" = xyes; then
5690  NET_CFLAGS="$NET_CFLAGS -DINCLUDE_EXOS205=1"
5691  NETBOOT_DRIVERS="$NETBOOT_DRIVERS exos205.o"
5692fi
5693
5694# Check whether --enable-ni5210 or --disable-ni5210 was given.
5695if test "${enable_ni5210+set}" = set; then
5696  enableval="$enable_ni5210"
5697
5698fi;
5699if test "x$enable_ni5210" = xyes; then
5700  NET_CFLAGS="$NET_CFLAGS -DINCLUDE_NI5210=1"
5701  NETBOOT_DRIVERS="$NETBOOT_DRIVERS ni5210.o"
5702fi
5703
5704# Check whether --enable-lance or --disable-lance was given.
5705if test "${enable_lance+set}" = set; then
5706  enableval="$enable_lance"
5707
5708fi;
5709if test "x$enable_lance" = xyes; then
5710  NET_CFLAGS="$NET_CFLAGS -DINCLUDE_LANCE=1"
5711  NETBOOT_DRIVERS="$NETBOOT_DRIVERS lance.o"
5712fi
5713
5714# Check whether --enable-ne2100 or --disable-ne2100 was given.
5715if test "${enable_ne2100+set}" = set; then
5716  enableval="$enable_ne2100"
5717
5718fi;
5719if test "x$enable_ne2100" = xyes; then
5720  NET_CFLAGS="$NET_CFLAGS -DINCLUDE_NE2100=1"
5721  NETBOOT_DRIVERS="$NETBOOT_DRIVERS ne2100.o"
5722fi
5723
5724# Check whether --enable-ni6510 or --disable-ni6510 was given.
5725if test "${enable_ni6510+set}" = set; then
5726  enableval="$enable_ni6510"
5727
5728fi;
5729if test "x$enable_ni6510" = xyes; then
5730  NET_CFLAGS="$NET_CFLAGS -DINCLUDE_NI6510=1"
5731  NETBOOT_DRIVERS="$NETBOOT_DRIVERS ni6510.o"
5732fi
5733
5734# Check whether --enable-natsemi or --disable-natsemi was given.
5735if test "${enable_natsemi+set}" = set; then
5736  enableval="$enable_natsemi"
5737
5738fi;
5739if test "x$enable_natsemi" = xyes; then
5740  NET_CFLAGS="$NET_CFLAGS -DINCLUDE_NATSEMI=1"
5741  NETBOOT_DRIVERS="$NETBOOT_DRIVERS natsemi.o"
5742fi
5743
5744# Check whether --enable-ni5010 or --disable-ni5010 was given.
5745if test "${enable_ni5010+set}" = set; then
5746  enableval="$enable_ni5010"
5747
5748fi;
5749if test "x$enable_ni5010" = xyes; then
5750  NET_CFLAGS="$NET_CFLAGS -DINCLUDE_NI5010=1"
5751  NETBOOT_DRIVERS="$NETBOOT_DRIVERS ni5010.o"
5752fi
5753
5754# Check whether --enable-3c503 or --disable-3c503 was given.
5755if test "${enable_3c503+set}" = set; then
5756  enableval="$enable_3c503"
5757
5758fi;
5759if test "x$enable_3c503" = xyes; then
5760  NET_CFLAGS="$NET_CFLAGS -DINCLUDE_3C503=1"
5761  NETBOOT_DRIVERS="$NETBOOT_DRIVERS 3c503.o"
5762fi
5763
5764# Check whether --enable-ne or --disable-ne was given.
5765if test "${enable_ne+set}" = set; then
5766  enableval="$enable_ne"
5767
5768fi;
5769if test "x$enable_ne" = xyes; then
5770  NET_CFLAGS="$NET_CFLAGS -DINCLUDE_NE=1"
5771  NETBOOT_DRIVERS="$NETBOOT_DRIVERS ne.o"
5772fi
5773
5774# Check whether --enable-ns8390 or --disable-ns8390 was given.
5775if test "${enable_ns8390+set}" = set; then
5776  enableval="$enable_ns8390"
5777
5778fi;
5779if test "x$enable_ns8390" = xyes; then
5780  NET_CFLAGS="$NET_CFLAGS -DINCLUDE_NS8390=1"
5781  NETBOOT_DRIVERS="$NETBOOT_DRIVERS ns8390.o"
5782fi
5783
5784# Check whether --enable-wd or --disable-wd was given.
5785if test "${enable_wd+set}" = set; then
5786  enableval="$enable_wd"
5787
5788fi;
5789if test "x$enable_wd" = xyes; then
5790  NET_CFLAGS="$NET_CFLAGS -DINCLUDE_WD=1"
5791  NETBOOT_DRIVERS="$NETBOOT_DRIVERS wd.o"
5792fi
5793
5794# Check whether --enable-otulip or --disable-otulip was given.
5795if test "${enable_otulip+set}" = set; then
5796  enableval="$enable_otulip"
5797
5798fi;
5799if test "x$enable_otulip" = xyes; then
5800  NET_CFLAGS="$NET_CFLAGS -DINCLUDE_OTULIP=1"
5801  NETBOOT_DRIVERS="$NETBOOT_DRIVERS otulip.o"
5802fi
5803
5804# Check whether --enable-rtl8139 or --disable-rtl8139 was given.
5805if test "${enable_rtl8139+set}" = set; then
5806  enableval="$enable_rtl8139"
5807
5808fi;
5809if test "x$enable_rtl8139" = xyes; then
5810  NET_CFLAGS="$NET_CFLAGS -DINCLUDE_RTL8139=1"
5811  NETBOOT_DRIVERS="$NETBOOT_DRIVERS rtl8139.o"
5812fi
5813
5814# Check whether --enable-sis900 or --disable-sis900 was given.
5815if test "${enable_sis900+set}" = set; then
5816  enableval="$enable_sis900"
5817
5818fi;
5819if test "x$enable_sis900" = xyes; then
5820  NET_CFLAGS="$NET_CFLAGS -DINCLUDE_SIS900=1"
5821  NETBOOT_DRIVERS="$NETBOOT_DRIVERS sis900.o"
5822fi
5823
5824# Check whether --enable-sk-g16 or --disable-sk-g16 was given.
5825if test "${enable_sk_g16+set}" = set; then
5826  enableval="$enable_sk_g16"
5827
5828fi;
5829if test "x$enable_sk_g16" = xyes; then
5830  NET_CFLAGS="$NET_CFLAGS -DINCLUDE_SK_G16=1"
5831  NETBOOT_DRIVERS="$NETBOOT_DRIVERS sk_g16.o"
5832fi
5833
5834# Check whether --enable-smc9000 or --disable-smc9000 was given.
5835if test "${enable_smc9000+set}" = set; then
5836  enableval="$enable_smc9000"
5837
5838fi;
5839if test "x$enable_smc9000" = xyes; then
5840  NET_CFLAGS="$NET_CFLAGS -DINCLUDE_SMC9000=1"
5841  NETBOOT_DRIVERS="$NETBOOT_DRIVERS smc9000.o"
5842fi
5843
5844# Check whether --enable-tiara or --disable-tiara was given.
5845if test "${enable_tiara+set}" = set; then
5846  enableval="$enable_tiara"
5847
5848fi;
5849if test "x$enable_tiara" = xyes; then
5850  NET_CFLAGS="$NET_CFLAGS -DINCLUDE_TIARA=1"
5851  NETBOOT_DRIVERS="$NETBOOT_DRIVERS tiara.o"
5852fi
5853
5854# Check whether --enable-tulip or --disable-tulip was given.
5855if test "${enable_tulip+set}" = set; then
5856  enableval="$enable_tulip"
5857
5858fi;
5859if test "x$enable_tulip" = xyes; then
5860  NET_CFLAGS="$NET_CFLAGS -DINCLUDE_TULIP=1"
5861  NETBOOT_DRIVERS="$NETBOOT_DRIVERS tulip.o"
5862fi
5863
5864# Check whether --enable-via-rhine or --disable-via-rhine was given.
5865if test "${enable_via_rhine+set}" = set; then
5866  enableval="$enable_via_rhine"
5867
5868fi;
5869if test "x$enable_via_rhine" = xyes; then
5870  NET_CFLAGS="$NET_CFLAGS -DINCLUDE_VIA_RHINE=1"
5871  NETBOOT_DRIVERS="$NETBOOT_DRIVERS via_rhine.o"
5872fi
5873
5874# Check whether --enable-w89c840 or --disable-w89c840 was given.
5875if test "${enable_w89c840+set}" = set; then
5876  enableval="$enable_w89c840"
5877
5878fi;
5879if test "x$enable_w89c840" = xyes; then
5880  NET_CFLAGS="$NET_CFLAGS -DINCLUDE_W89C840=1"
5881  NETBOOT_DRIVERS="$NETBOOT_DRIVERS w89c840.o"
5882fi
5883
5884
5885
5886if test "x$NET_CFLAGS" != x; then
5887  NETBOOT_SUPPORT_TRUE=
5888  NETBOOT_SUPPORT_FALSE='#'
5889else
5890  NETBOOT_SUPPORT_TRUE='#'
5891  NETBOOT_SUPPORT_FALSE=
5892fi
5893
5894if test "x$NET_CFLAGS" != x; then
5895  FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_TFTP=1"
5896fi
5897
5898# Check whether --enable-3c503-shmem or --disable-3c503-shmem was given.
5899if test "${enable_3c503_shmem+set}" = set; then
5900  enableval="$enable_3c503_shmem"
5901
5902fi;
5903if test "x$enable_3c503_shmem" = xyes; then
5904  NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DT503_SHMEM=1"
5905fi
5906
5907# Check whether --enable-3c503-aui or --disable-3c503-aui was given.
5908if test "${enable_3c503_aui+set}" = set; then
5909  enableval="$enable_3c503_aui"
5910
5911fi;
5912if test "x$enable_3c503_aui" = xyes; then
5913  NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DT503_AUI=1"
5914fi
5915
5916# Check whether --enable-compex-rl2000-fix or --disable-compex-rl2000-fix was given.
5917if test "${enable_compex_rl2000_fix+set}" = set; then
5918  enableval="$enable_compex_rl2000_fix"
5919
5920fi;
5921if test "x$enable_compex_rl2000_fix" = xyes; then
5922  NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DCOMPEX_RL2000_FIX=1"
5923fi
5924
5925# Check whether --enable-smc9000-scan or --disable-smc9000-scan was given.
5926if test "${enable_smc9000_scan+set}" = set; then
5927  enableval="$enable_smc9000_scan"
5928  NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DSMC9000_SCAN=$enable_smc9000_scan"
5929fi;
5930
5931# Check whether --enable-ne-scan or --disable-ne-scan was given.
5932if test "${enable_ne_scan+set}" = set; then
5933  enableval="$enable_ne_scan"
5934  NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DNE_SCAN=$enable_ne_scan"
5935else
5936  NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DNE_SCAN=0x280,0x300,0x320,0x340"
5937fi;
5938
5939# Check whether --enable-wd-default-mem or --disable-wd-default-mem was given.
5940if test "${enable_wd_default_mem+set}" = set; then
5941  enableval="$enable_wd_default_mem"
5942  NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DWD_DEFAULT_MEM=$enable_wd_default_mem"
5943else
5944  NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DWD_DEFAULT_MEM=0xCC000"
5945fi;
5946
5947# Check whether --enable-cs-scan or --disable-cs-scan was given.
5948if test "${enable_cs_scan+set}" = set; then
5949  enableval="$enable_cs_scan"
5950  NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DCS_SCAN=$enable_cs_scan"
5951fi;
5952
5953# Check whether --enable-diskless or --disable-diskless was given.
5954if test "${enable_diskless+set}" = set; then
5955  enableval="$enable_diskless"
5956
5957fi;
5958
5959
5960if test "x$enable_diskless" = xyes; then
5961  DISKLESS_SUPPORT_TRUE=
5962  DISKLESS_SUPPORT_FALSE='#'
5963else
5964  DISKLESS_SUPPORT_TRUE='#'
5965  DISKLESS_SUPPORT_FALSE=
5966fi
5967
5968
5969# Check whether --enable-hercules or --disable-hercules was given.
5970if test "${enable_hercules+set}" = set; then
5971  enableval="$enable_hercules"
5972
5973fi;
5974
5975
5976if test "x$enable_hercules" != xno; then
5977  HERCULES_SUPPORT_TRUE=
5978  HERCULES_SUPPORT_FALSE='#'
5979else
5980  HERCULES_SUPPORT_TRUE='#'
5981  HERCULES_SUPPORT_FALSE=
5982fi
5983
5984
5985# Check whether --enable-serial or --disable-serial was given.
5986if test "${enable_serial+set}" = set; then
5987  enableval="$enable_serial"
5988
5989fi;
5990
5991
5992if test "x$enable_serial" != xno; then
5993  SERIAL_SUPPORT_TRUE=
5994  SERIAL_SUPPORT_FALSE='#'
5995else
5996  SERIAL_SUPPORT_TRUE='#'
5997  SERIAL_SUPPORT_FALSE=
5998fi
5999
6000
6001# Check whether --enable-serial-speed-simulation or --disable-serial-speed-simulation was given.
6002if test "${enable_serial_speed_simulation+set}" = set; then
6003  enableval="$enable_serial_speed_simulation"
6004
6005fi;
6006
6007
6008if test "x$enable_serial_speed_simulation" = xyes; then
6009  SERIAL_SPEED_SIMULATION_TRUE=
6010  SERIAL_SPEED_SIMULATION_FALSE='#'
6011else
6012  SERIAL_SPEED_SIMULATION_TRUE='#'
6013  SERIAL_SPEED_SIMULATION_FALSE=
6014fi
6015
6016
6017# Sanity check.
6018if test "x$enable_diskless" = xyes; then
6019  if test "x$NET_CFLAGS" = x; then
6020    { { echo "$as_me:$LINENO: error: You must enable at least one network driver" >&5
6021echo "$as_me: error: You must enable at least one network driver" >&2;}
6022   { (exit 1); exit 1; }; }
6023  fi
6024fi
6025
6026# Check whether --enable-preset-menu or --disable-preset-menu was given.
6027if test "${enable_preset_menu+set}" = set; then
6028  enableval="$enable_preset_menu"
6029
6030fi;
6031if test "x$enable_preset_menu" = x; then
6032  :
6033else
6034  if test -r $enable_preset_menu; then
6035
6036# Because early versions of GNU sed 3.x are too buggy, use a C program
6037# instead of shell commands. *sigh*
6038cat >conftest.c <<\EOF
6039#include <stdio.h>
6040
6041int
6042main (void)
6043{
6044  int c;
6045
6046  while ((c = getchar ()) != EOF)
6047    {
6048      switch (c)
6049        {
6050	case '\n':
6051	  fputs ("\\n", stdout);
6052	  break;
6053	case '\r':
6054	  fputs ("\\r", stdout);
6055	  break;
6056	case '\\':
6057	  fputs ("\\\\", stdout);
6058	  break;
6059	case '"':
6060	  fputs ("\\\"", stdout);
6061	  break;
6062	default:
6063	  putchar (c);
6064	}
6065    }
6066
6067  return 0;
6068}
6069EOF
6070
6071if { ac_try='${CC-cc} ${CFLAGS} conftest.c -o conftest'
6072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073  (eval $ac_try) 2>&5
6074  ac_status=$?
6075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076  (exit $ac_status); }; } && test -s conftest; then
6077  grub_tmp_value=`./conftest < "$enable_preset_menu"`
6078else
6079  { { echo "$as_me:$LINENO: error: ${CC-cc} failed to produce an executable file" >&5
6080echo "$as_me: error: ${CC-cc} failed to produce an executable file" >&2;}
6081   { (exit 1); exit 1; }; }
6082fi
6083
6084
6085cat >>confdefs.h <<_ACEOF
6086#define PRESET_MENU_STRING "$grub_tmp_value"
6087_ACEOF
6088
6089rm -f conftest*
6090
6091  else
6092    { { echo "$as_me:$LINENO: error: Cannot read the preset menu file $enable_preset_menu" >&5
6093echo "$as_me: error: Cannot read the preset menu file $enable_preset_menu" >&2;}
6094   { (exit 1); exit 1; }; }
6095  fi
6096fi
6097
6098# Check whether --enable-example-kernel or --disable-example-kernel was given.
6099if test "${enable_example_kernel+set}" = set; then
6100  enableval="$enable_example_kernel"
6101
6102fi;
6103
6104
6105if test "x$enable_example_kernel" = xyes; then
6106  BUILD_EXAMPLE_KERNEL_TRUE=
6107  BUILD_EXAMPLE_KERNEL_FALSE='#'
6108else
6109  BUILD_EXAMPLE_KERNEL_TRUE='#'
6110  BUILD_EXAMPLE_KERNEL_FALSE=
6111fi
6112
6113
6114# Check whether --enable-auto-linux-mem-opt or --disable-auto-linux-mem-opt was given.
6115if test "${enable_auto_linux_mem_opt+set}" = set; then
6116  enableval="$enable_auto_linux_mem_opt"
6117
6118fi;
6119if test "x$enable_auto_linux_mem_opt" = xno; then
6120  :
6121else
6122
6123cat >>confdefs.h <<\_ACEOF
6124#define AUTO_LINUX_MEM_OPT 1
6125_ACEOF
6126
6127fi
6128
6129
6130
6131
6132
6133
6134CCASFLAGS='$(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)'
6135
6136
6137
6138                                                                                                                                  ac_config_files="$ac_config_files Makefile stage1/Makefile stage2/Makefile docs/Makefile lib/Makefile util/Makefile grub/Makefile netboot/Makefile util/grub-image util/grub-install util/grub-md5-crypt util/grub-terminfo util/grub-set-default"
6139
6140cat >confcache <<\_ACEOF
6141# This file is a shell script that caches the results of configure
6142# tests run on this system so they can be shared between configure
6143# scripts and configure runs, see configure's option --config-cache.
6144# It is not useful on other systems.  If it contains results you don't
6145# want to keep, you may remove or edit it.
6146#
6147# config.status only pays attention to the cache file if you give it
6148# the --recheck option to rerun configure.
6149#
6150# `ac_cv_env_foo' variables (set or unset) will be overridden when
6151# loading this file, other *unset* `ac_cv_foo' will be assigned the
6152# following values.
6153
6154_ACEOF
6155
6156# The following way of writing the cache mishandles newlines in values,
6157# but we know of no workaround that is simple, portable, and efficient.
6158# So, don't put newlines in cache variables' values.
6159# Ultrix sh set writes to stderr and can't be redirected directly,
6160# and sets the high bit in the cache file unless we assign to the vars.
6161{
6162  (set) 2>&1 |
6163    case `(ac_space=' '; set | grep ac_space) 2>&1` in
6164    *ac_space=\ *)
6165      # `set' does not quote correctly, so add quotes (double-quote
6166      # substitution turns \\\\ into \\, and sed turns \\ into \).
6167      sed -n \
6168	"s/'/'\\\\''/g;
6169	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6170      ;;
6171    *)
6172      # `set' quotes correctly as required by POSIX, so do not add quotes.
6173      sed -n \
6174	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6175      ;;
6176    esac;
6177} |
6178  sed '
6179     t clear
6180     : clear
6181     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6182     t end
6183     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6184     : end' >>confcache
6185if diff $cache_file confcache >/dev/null 2>&1; then :; else
6186  if test -w $cache_file; then
6187    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6188    cat confcache >$cache_file
6189  else
6190    echo "not updating unwritable cache $cache_file"
6191  fi
6192fi
6193rm -f confcache
6194
6195test "x$prefix" = xNONE && prefix=$ac_default_prefix
6196# Let make expand exec_prefix.
6197test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6198
6199# VPATH may cause trouble with some makes, so we remove $(srcdir),
6200# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6201# trailing colons and then remove the whole line if VPATH becomes empty
6202# (actually we leave an empty line to preserve line numbers).
6203if test "x$srcdir" = x.; then
6204  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
6205s/:*\$(srcdir):*/:/;
6206s/:*\${srcdir}:*/:/;
6207s/:*@srcdir@:*/:/;
6208s/^\([^=]*=[	 ]*\):*/\1/;
6209s/:*$//;
6210s/^[^=]*=[	 ]*$//;
6211}'
6212fi
6213
6214DEFS=-DHAVE_CONFIG_H
6215
6216ac_libobjs=
6217ac_ltlibobjs=
6218for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6219  # 1. Remove the extension, and $U if already installed.
6220  ac_i=`echo "$ac_i" |
6221	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6222  # 2. Add them.
6223  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6224  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6225done
6226LIBOBJS=$ac_libobjs
6227
6228LTLIBOBJS=$ac_ltlibobjs
6229
6230
6231if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6232  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
6233Usually this means the macro was only invoked conditionally." >&5
6234echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
6235Usually this means the macro was only invoked conditionally." >&2;}
6236   { (exit 1); exit 1; }; }
6237fi
6238if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6239  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6240Usually this means the macro was only invoked conditionally." >&5
6241echo "$as_me: error: conditional \"AMDEP\" was never defined.
6242Usually this means the macro was only invoked conditionally." >&2;}
6243   { (exit 1); exit 1; }; }
6244fi
6245if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6246  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6247Usually this means the macro was only invoked conditionally." >&5
6248echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6249Usually this means the macro was only invoked conditionally." >&2;}
6250   { (exit 1); exit 1; }; }
6251fi
6252if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6253  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6254Usually this means the macro was only invoked conditionally." >&5
6255echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6256Usually this means the macro was only invoked conditionally." >&2;}
6257   { (exit 1); exit 1; }; }
6258fi
6259if test -z "${NETBOOT_SUPPORT_TRUE}" && test -z "${NETBOOT_SUPPORT_FALSE}"; then
6260  { { echo "$as_me:$LINENO: error: conditional \"NETBOOT_SUPPORT\" was never defined.
6261Usually this means the macro was only invoked conditionally." >&5
6262echo "$as_me: error: conditional \"NETBOOT_SUPPORT\" was never defined.
6263Usually this means the macro was only invoked conditionally." >&2;}
6264   { (exit 1); exit 1; }; }
6265fi
6266if test -z "${DISKLESS_SUPPORT_TRUE}" && test -z "${DISKLESS_SUPPORT_FALSE}"; then
6267  { { echo "$as_me:$LINENO: error: conditional \"DISKLESS_SUPPORT\" was never defined.
6268Usually this means the macro was only invoked conditionally." >&5
6269echo "$as_me: error: conditional \"DISKLESS_SUPPORT\" was never defined.
6270Usually this means the macro was only invoked conditionally." >&2;}
6271   { (exit 1); exit 1; }; }
6272fi
6273if test -z "${HERCULES_SUPPORT_TRUE}" && test -z "${HERCULES_SUPPORT_FALSE}"; then
6274  { { echo "$as_me:$LINENO: error: conditional \"HERCULES_SUPPORT\" was never defined.
6275Usually this means the macro was only invoked conditionally." >&5
6276echo "$as_me: error: conditional \"HERCULES_SUPPORT\" was never defined.
6277Usually this means the macro was only invoked conditionally." >&2;}
6278   { (exit 1); exit 1; }; }
6279fi
6280if test -z "${SERIAL_SUPPORT_TRUE}" && test -z "${SERIAL_SUPPORT_FALSE}"; then
6281  { { echo "$as_me:$LINENO: error: conditional \"SERIAL_SUPPORT\" was never defined.
6282Usually this means the macro was only invoked conditionally." >&5
6283echo "$as_me: error: conditional \"SERIAL_SUPPORT\" was never defined.
6284Usually this means the macro was only invoked conditionally." >&2;}
6285   { (exit 1); exit 1; }; }
6286fi
6287if test -z "${SERIAL_SPEED_SIMULATION_TRUE}" && test -z "${SERIAL_SPEED_SIMULATION_FALSE}"; then
6288  { { echo "$as_me:$LINENO: error: conditional \"SERIAL_SPEED_SIMULATION\" was never defined.
6289Usually this means the macro was only invoked conditionally." >&5
6290echo "$as_me: error: conditional \"SERIAL_SPEED_SIMULATION\" was never defined.
6291Usually this means the macro was only invoked conditionally." >&2;}
6292   { (exit 1); exit 1; }; }
6293fi
6294if test -z "${BUILD_EXAMPLE_KERNEL_TRUE}" && test -z "${BUILD_EXAMPLE_KERNEL_FALSE}"; then
6295  { { echo "$as_me:$LINENO: error: conditional \"BUILD_EXAMPLE_KERNEL\" was never defined.
6296Usually this means the macro was only invoked conditionally." >&5
6297echo "$as_me: error: conditional \"BUILD_EXAMPLE_KERNEL\" was never defined.
6298Usually this means the macro was only invoked conditionally." >&2;}
6299   { (exit 1); exit 1; }; }
6300fi
6301
6302: ${CONFIG_STATUS=./config.status}
6303ac_clean_files_save=$ac_clean_files
6304ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6305{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6306echo "$as_me: creating $CONFIG_STATUS" >&6;}
6307cat >$CONFIG_STATUS <<_ACEOF
6308#! $SHELL
6309# Generated by $as_me.
6310# Run this file to recreate the current configuration.
6311# Compiler output produced by configure, useful for debugging
6312# configure, is in config.log if it exists.
6313
6314debug=false
6315ac_cs_recheck=false
6316ac_cs_silent=false
6317SHELL=\${CONFIG_SHELL-$SHELL}
6318_ACEOF
6319
6320cat >>$CONFIG_STATUS <<\_ACEOF
6321## --------------------- ##
6322## M4sh Initialization.  ##
6323## --------------------- ##
6324
6325# Be Bourne compatible
6326if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6327  emulate sh
6328  NULLCMD=:
6329  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6330  # is contrary to our usage.  Disable this feature.
6331  alias -g '${1+"$@"}'='"$@"'
6332elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6333  set -o posix
6334fi
6335DUALCASE=1; export DUALCASE # for MKS sh
6336
6337# Support unset when possible.
6338if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6339  as_unset=unset
6340else
6341  as_unset=false
6342fi
6343
6344
6345# Work around bugs in pre-3.0 UWIN ksh.
6346$as_unset ENV MAIL MAILPATH
6347PS1='$ '
6348PS2='> '
6349PS4='+ '
6350
6351# NLS nuisances.
6352for as_var in \
6353  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6354  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6355  LC_TELEPHONE LC_TIME
6356do
6357  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6358    eval $as_var=C; export $as_var
6359  else
6360    $as_unset $as_var
6361  fi
6362done
6363
6364# Required to use basename.
6365if expr a : '\(a\)' >/dev/null 2>&1; then
6366  as_expr=expr
6367else
6368  as_expr=false
6369fi
6370
6371if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6372  as_basename=basename
6373else
6374  as_basename=false
6375fi
6376
6377
6378# Name of the executable.
6379as_me=`$as_basename "$0" ||
6380$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6381	 X"$0" : 'X\(//\)$' \| \
6382	 X"$0" : 'X\(/\)$' \| \
6383	 .     : '\(.\)' 2>/dev/null ||
6384echo X/"$0" |
6385    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6386  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
6387  	  /^X\/\(\/\).*/{ s//\1/; q; }
6388  	  s/.*/./; q'`
6389
6390
6391# PATH needs CR, and LINENO needs CR and PATH.
6392# Avoid depending upon Character Ranges.
6393as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6394as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6395as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6396as_cr_digits='0123456789'
6397as_cr_alnum=$as_cr_Letters$as_cr_digits
6398
6399# The user is always right.
6400if test "${PATH_SEPARATOR+set}" != set; then
6401  echo "#! /bin/sh" >conf$$.sh
6402  echo  "exit 0"   >>conf$$.sh
6403  chmod +x conf$$.sh
6404  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6405    PATH_SEPARATOR=';'
6406  else
6407    PATH_SEPARATOR=:
6408  fi
6409  rm -f conf$$.sh
6410fi
6411
6412
6413  as_lineno_1=$LINENO
6414  as_lineno_2=$LINENO
6415  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6416  test "x$as_lineno_1" != "x$as_lineno_2" &&
6417  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
6418  # Find who we are.  Look in the path if we contain no path at all
6419  # relative or not.
6420  case $0 in
6421    *[\\/]* ) as_myself=$0 ;;
6422    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423for as_dir in $PATH
6424do
6425  IFS=$as_save_IFS
6426  test -z "$as_dir" && as_dir=.
6427  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6428done
6429
6430       ;;
6431  esac
6432  # We did not find ourselves, most probably we were run as `sh COMMAND'
6433  # in which case we are not to be found in the path.
6434  if test "x$as_myself" = x; then
6435    as_myself=$0
6436  fi
6437  if test ! -f "$as_myself"; then
6438    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6439echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6440   { (exit 1); exit 1; }; }
6441  fi
6442  case $CONFIG_SHELL in
6443  '')
6444    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6446do
6447  IFS=$as_save_IFS
6448  test -z "$as_dir" && as_dir=.
6449  for as_base in sh bash ksh sh5; do
6450	 case $as_dir in
6451	 /*)
6452	   if ("$as_dir/$as_base" -c '
6453  as_lineno_1=$LINENO
6454  as_lineno_2=$LINENO
6455  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6456  test "x$as_lineno_1" != "x$as_lineno_2" &&
6457  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
6458	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6459	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6460	     CONFIG_SHELL=$as_dir/$as_base
6461	     export CONFIG_SHELL
6462	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6463	   fi;;
6464	 esac
6465       done
6466done
6467;;
6468  esac
6469
6470  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6471  # uniformly replaced by the line number.  The first 'sed' inserts a
6472  # line-number line before each line; the second 'sed' does the real
6473  # work.  The second script uses 'N' to pair each line-number line
6474  # with the numbered line, and appends trailing '-' during
6475  # substitution so that $LINENO is not a special case at line end.
6476  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6477  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
6478  sed '=' <$as_myself |
6479    sed '
6480      N
6481      s,$,-,
6482      : loop
6483      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6484      t loop
6485      s,-$,,
6486      s,^['$as_cr_digits']*\n,,
6487    ' >$as_me.lineno &&
6488  chmod +x $as_me.lineno ||
6489    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6490echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6491   { (exit 1); exit 1; }; }
6492
6493  # Don't try to exec as it changes $[0], causing all sort of problems
6494  # (the dirname of $[0] is not the place where we might find the
6495  # original and so on.  Autoconf is especially sensible to this).
6496  . ./$as_me.lineno
6497  # Exit status is that of the last command.
6498  exit
6499}
6500
6501
6502case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6503  *c*,-n*) ECHO_N= ECHO_C='
6504' ECHO_T='	' ;;
6505  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6506  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
6507esac
6508
6509if expr a : '\(a\)' >/dev/null 2>&1; then
6510  as_expr=expr
6511else
6512  as_expr=false
6513fi
6514
6515rm -f conf$$ conf$$.exe conf$$.file
6516echo >conf$$.file
6517if ln -s conf$$.file conf$$ 2>/dev/null; then
6518  # We could just check for DJGPP; but this test a) works b) is more generic
6519  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6520  if test -f conf$$.exe; then
6521    # Don't use ln at all; we don't have any links
6522    as_ln_s='cp -p'
6523  else
6524    as_ln_s='ln -s'
6525  fi
6526elif ln conf$$.file conf$$ 2>/dev/null; then
6527  as_ln_s=ln
6528else
6529  as_ln_s='cp -p'
6530fi
6531rm -f conf$$ conf$$.exe conf$$.file
6532
6533if mkdir -p . 2>/dev/null; then
6534  as_mkdir_p=:
6535else
6536  test -d ./-p && rmdir ./-p
6537  as_mkdir_p=false
6538fi
6539
6540as_executable_p="test -f"
6541
6542# Sed expression to map a string onto a valid CPP name.
6543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6544
6545# Sed expression to map a string onto a valid variable name.
6546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6547
6548
6549# IFS
6550# We need space, tab and new line, in precisely that order.
6551as_nl='
6552'
6553IFS=" 	$as_nl"
6554
6555# CDPATH.
6556$as_unset CDPATH
6557
6558exec 6>&1
6559
6560# Open the log real soon, to keep \$[0] and so on meaningful, and to
6561# report actual input values of CONFIG_FILES etc. instead of their
6562# values after options handling.  Logging --version etc. is OK.
6563exec 5>>config.log
6564{
6565  echo
6566  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6567## Running $as_me. ##
6568_ASBOX
6569} >&5
6570cat >&5 <<_CSEOF
6571
6572This file was extended by GRUB $as_me 0.97, which was
6573generated by GNU Autoconf 2.59.  Invocation command line was
6574
6575  CONFIG_FILES    = $CONFIG_FILES
6576  CONFIG_HEADERS  = $CONFIG_HEADERS
6577  CONFIG_LINKS    = $CONFIG_LINKS
6578  CONFIG_COMMANDS = $CONFIG_COMMANDS
6579  $ $0 $@
6580
6581_CSEOF
6582echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6583echo >&5
6584_ACEOF
6585
6586# Files that config.status was made for.
6587if test -n "$ac_config_files"; then
6588  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6589fi
6590
6591if test -n "$ac_config_headers"; then
6592  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6593fi
6594
6595if test -n "$ac_config_links"; then
6596  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6597fi
6598
6599if test -n "$ac_config_commands"; then
6600  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6601fi
6602
6603cat >>$CONFIG_STATUS <<\_ACEOF
6604
6605ac_cs_usage="\
6606\`$as_me' instantiates files from templates according to the
6607current configuration.
6608
6609Usage: $0 [OPTIONS] [FILE]...
6610
6611  -h, --help       print this help, then exit
6612  -V, --version    print version number, then exit
6613  -q, --quiet      do not print progress messages
6614  -d, --debug      don't remove temporary files
6615      --recheck    update $as_me by reconfiguring in the same conditions
6616  --file=FILE[:TEMPLATE]
6617		   instantiate the configuration file FILE
6618  --header=FILE[:TEMPLATE]
6619		   instantiate the configuration header FILE
6620
6621Configuration files:
6622$config_files
6623
6624Configuration headers:
6625$config_headers
6626
6627Configuration commands:
6628$config_commands
6629
6630Report bugs to <bug-autoconf@gnu.org>."
6631_ACEOF
6632
6633cat >>$CONFIG_STATUS <<_ACEOF
6634ac_cs_version="\\
6635GRUB config.status 0.97
6636configured by $0, generated by GNU Autoconf 2.59,
6637  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6638
6639Copyright (C) 2003 Free Software Foundation, Inc.
6640This config.status script is free software; the Free Software Foundation
6641gives unlimited permission to copy, distribute and modify it."
6642srcdir=$srcdir
6643INSTALL="$INSTALL"
6644_ACEOF
6645
6646cat >>$CONFIG_STATUS <<\_ACEOF
6647# If no file are specified by the user, then we need to provide default
6648# value.  By we need to know if files were specified by the user.
6649ac_need_defaults=:
6650while test $# != 0
6651do
6652  case $1 in
6653  --*=*)
6654    ac_option=`expr "x$1" : 'x\([^=]*\)='`
6655    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6656    ac_shift=:
6657    ;;
6658  -*)
6659    ac_option=$1
6660    ac_optarg=$2
6661    ac_shift=shift
6662    ;;
6663  *) # This is not an option, so the user has probably given explicit
6664     # arguments.
6665     ac_option=$1
6666     ac_need_defaults=false;;
6667  esac
6668
6669  case $ac_option in
6670  # Handling of the options.
6671_ACEOF
6672cat >>$CONFIG_STATUS <<\_ACEOF
6673  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6674    ac_cs_recheck=: ;;
6675  --version | --vers* | -V )
6676    echo "$ac_cs_version"; exit 0 ;;
6677  --he | --h)
6678    # Conflict between --help and --header
6679    { { echo "$as_me:$LINENO: error: ambiguous option: $1
6680Try \`$0 --help' for more information." >&5
6681echo "$as_me: error: ambiguous option: $1
6682Try \`$0 --help' for more information." >&2;}
6683   { (exit 1); exit 1; }; };;
6684  --help | --hel | -h )
6685    echo "$ac_cs_usage"; exit 0 ;;
6686  --debug | --d* | -d )
6687    debug=: ;;
6688  --file | --fil | --fi | --f )
6689    $ac_shift
6690    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6691    ac_need_defaults=false;;
6692  --header | --heade | --head | --hea )
6693    $ac_shift
6694    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6695    ac_need_defaults=false;;
6696  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6697  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6698    ac_cs_silent=: ;;
6699
6700  # This is an error.
6701  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6702Try \`$0 --help' for more information." >&5
6703echo "$as_me: error: unrecognized option: $1
6704Try \`$0 --help' for more information." >&2;}
6705   { (exit 1); exit 1; }; } ;;
6706
6707  *) ac_config_targets="$ac_config_targets $1" ;;
6708
6709  esac
6710  shift
6711done
6712
6713ac_configure_extra_args=
6714
6715if $ac_cs_silent; then
6716  exec 6>/dev/null
6717  ac_configure_extra_args="$ac_configure_extra_args --silent"
6718fi
6719
6720_ACEOF
6721cat >>$CONFIG_STATUS <<_ACEOF
6722if \$ac_cs_recheck; then
6723  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6724  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6725fi
6726
6727_ACEOF
6728
6729cat >>$CONFIG_STATUS <<_ACEOF
6730#
6731# INIT-COMMANDS section.
6732#
6733
6734AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6735
6736_ACEOF
6737
6738
6739
6740cat >>$CONFIG_STATUS <<\_ACEOF
6741for ac_config_target in $ac_config_targets
6742do
6743  case "$ac_config_target" in
6744  # Handling of arguments.
6745  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6746  "stage1/Makefile" ) CONFIG_FILES="$CONFIG_FILES stage1/Makefile" ;;
6747  "stage2/Makefile" ) CONFIG_FILES="$CONFIG_FILES stage2/Makefile" ;;
6748  "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
6749  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
6750  "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
6751  "grub/Makefile" ) CONFIG_FILES="$CONFIG_FILES grub/Makefile" ;;
6752  "netboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES netboot/Makefile" ;;
6753  "util/grub-image" ) CONFIG_FILES="$CONFIG_FILES util/grub-image" ;;
6754  "util/grub-install" ) CONFIG_FILES="$CONFIG_FILES util/grub-install" ;;
6755  "util/grub-md5-crypt" ) CONFIG_FILES="$CONFIG_FILES util/grub-md5-crypt" ;;
6756  "util/grub-terminfo" ) CONFIG_FILES="$CONFIG_FILES util/grub-terminfo" ;;
6757  "util/grub-set-default" ) CONFIG_FILES="$CONFIG_FILES util/grub-set-default" ;;
6758  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6759  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6760  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6761echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6762   { (exit 1); exit 1; }; };;
6763  esac
6764done
6765
6766# If the user did not use the arguments to specify the items to instantiate,
6767# then the envvar interface is used.  Set only those that are not.
6768# We use the long form for the default assignment because of an extremely
6769# bizarre bug on SunOS 4.1.3.
6770if $ac_need_defaults; then
6771  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6772  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6773  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6774fi
6775
6776# Have a temporary directory for convenience.  Make it in the build tree
6777# simply because there is no reason to put it here, and in addition,
6778# creating and moving files from /tmp can sometimes cause problems.
6779# Create a temporary directory, and hook for its removal unless debugging.
6780$debug ||
6781{
6782  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6783  trap '{ (exit 1); exit 1; }' 1 2 13 15
6784}
6785
6786# Create a (secure) tmp directory for tmp files.
6787
6788{
6789  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6790  test -n "$tmp" && test -d "$tmp"
6791}  ||
6792{
6793  tmp=./confstat$$-$RANDOM
6794  (umask 077 && mkdir $tmp)
6795} ||
6796{
6797   echo "$me: cannot create a temporary directory in ." >&2
6798   { (exit 1); exit 1; }
6799}
6800
6801_ACEOF
6802
6803cat >>$CONFIG_STATUS <<_ACEOF
6804
6805#
6806# CONFIG_FILES section.
6807#
6808
6809# No need to generate the scripts if there are no CONFIG_FILES.
6810# This happens for instance when ./config.status config.h
6811if test -n "\$CONFIG_FILES"; then
6812  # Protect against being on the right side of a sed subst in config.status.
6813  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6814   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6815s,@SHELL@,$SHELL,;t t
6816s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6817s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6818s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6819s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6820s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6821s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6822s,@exec_prefix@,$exec_prefix,;t t
6823s,@prefix@,$prefix,;t t
6824s,@program_transform_name@,$program_transform_name,;t t
6825s,@bindir@,$bindir,;t t
6826s,@sbindir@,$sbindir,;t t
6827s,@libexecdir@,$libexecdir,;t t
6828s,@datadir@,$datadir,;t t
6829s,@sysconfdir@,$sysconfdir,;t t
6830s,@sharedstatedir@,$sharedstatedir,;t t
6831s,@localstatedir@,$localstatedir,;t t
6832s,@libdir@,$libdir,;t t
6833s,@includedir@,$includedir,;t t
6834s,@oldincludedir@,$oldincludedir,;t t
6835s,@infodir@,$infodir,;t t
6836s,@mandir@,$mandir,;t t
6837s,@build_alias@,$build_alias,;t t
6838s,@host_alias@,$host_alias,;t t
6839s,@target_alias@,$target_alias,;t t
6840s,@DEFS@,$DEFS,;t t
6841s,@ECHO_C@,$ECHO_C,;t t
6842s,@ECHO_N@,$ECHO_N,;t t
6843s,@ECHO_T@,$ECHO_T,;t t
6844s,@LIBS@,$LIBS,;t t
6845s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6846s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6847s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6848s,@CYGPATH_W@,$CYGPATH_W,;t t
6849s,@PACKAGE@,$PACKAGE,;t t
6850s,@VERSION@,$VERSION,;t t
6851s,@ACLOCAL@,$ACLOCAL,;t t
6852s,@AUTOCONF@,$AUTOCONF,;t t
6853s,@AUTOMAKE@,$AUTOMAKE,;t t
6854s,@AUTOHEADER@,$AUTOHEADER,;t t
6855s,@MAKEINFO@,$MAKEINFO,;t t
6856s,@install_sh@,$install_sh,;t t
6857s,@STRIP@,$STRIP,;t t
6858s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6859s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6860s,@mkdir_p@,$mkdir_p,;t t
6861s,@AWK@,$AWK,;t t
6862s,@SET_MAKE@,$SET_MAKE,;t t
6863s,@am__leading_dot@,$am__leading_dot,;t t
6864s,@AMTAR@,$AMTAR,;t t
6865s,@am__tar@,$am__tar,;t t
6866s,@am__untar@,$am__untar,;t t
6867s,@build@,$build,;t t
6868s,@build_cpu@,$build_cpu,;t t
6869s,@build_vendor@,$build_vendor,;t t
6870s,@build_os@,$build_os,;t t
6871s,@host@,$host,;t t
6872s,@host_cpu@,$host_cpu,;t t
6873s,@host_vendor@,$host_vendor,;t t
6874s,@host_os@,$host_os,;t t
6875s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6876s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6877s,@MAINT@,$MAINT,;t t
6878s,@PERL@,$PERL,;t t
6879s,@CC@,$CC,;t t
6880s,@ac_ct_CC@,$ac_ct_CC,;t t
6881s,@CFLAGS@,$CFLAGS,;t t
6882s,@LDFLAGS@,$LDFLAGS,;t t
6883s,@CPPFLAGS@,$CPPFLAGS,;t t
6884s,@EXEEXT@,$EXEEXT,;t t
6885s,@OBJEXT@,$OBJEXT,;t t
6886s,@DEPDIR@,$DEPDIR,;t t
6887s,@am__include@,$am__include,;t t
6888s,@am__quote@,$am__quote,;t t
6889s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6890s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6891s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6892s,@CCDEPMODE@,$CCDEPMODE,;t t
6893s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
6894s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
6895s,@CCAS@,$CCAS,;t t
6896s,@RANLIB@,$RANLIB,;t t
6897s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6898s,@STAGE1_CFLAGS@,$STAGE1_CFLAGS,;t t
6899s,@STAGE2_CFLAGS@,$STAGE2_CFLAGS,;t t
6900s,@GRUB_CFLAGS@,$GRUB_CFLAGS,;t t
6901s,@OBJCOPY@,$OBJCOPY,;t t
6902s,@ac_ct_OBJCOPY@,$ac_ct_OBJCOPY,;t t
6903s,@GRUB_LIBS@,$GRUB_LIBS,;t t
6904s,@CPP@,$CPP,;t t
6905s,@EGREP@,$EGREP,;t t
6906s,@NETBOOT_SUPPORT_TRUE@,$NETBOOT_SUPPORT_TRUE,;t t
6907s,@NETBOOT_SUPPORT_FALSE@,$NETBOOT_SUPPORT_FALSE,;t t
6908s,@DISKLESS_SUPPORT_TRUE@,$DISKLESS_SUPPORT_TRUE,;t t
6909s,@DISKLESS_SUPPORT_FALSE@,$DISKLESS_SUPPORT_FALSE,;t t
6910s,@HERCULES_SUPPORT_TRUE@,$HERCULES_SUPPORT_TRUE,;t t
6911s,@HERCULES_SUPPORT_FALSE@,$HERCULES_SUPPORT_FALSE,;t t
6912s,@SERIAL_SUPPORT_TRUE@,$SERIAL_SUPPORT_TRUE,;t t
6913s,@SERIAL_SUPPORT_FALSE@,$SERIAL_SUPPORT_FALSE,;t t
6914s,@SERIAL_SPEED_SIMULATION_TRUE@,$SERIAL_SPEED_SIMULATION_TRUE,;t t
6915s,@SERIAL_SPEED_SIMULATION_FALSE@,$SERIAL_SPEED_SIMULATION_FALSE,;t t
6916s,@BUILD_EXAMPLE_KERNEL_TRUE@,$BUILD_EXAMPLE_KERNEL_TRUE,;t t
6917s,@BUILD_EXAMPLE_KERNEL_FALSE@,$BUILD_EXAMPLE_KERNEL_FALSE,;t t
6918s,@FSYS_CFLAGS@,$FSYS_CFLAGS,;t t
6919s,@NET_CFLAGS@,$NET_CFLAGS,;t t
6920s,@NET_EXTRAFLAGS@,$NET_EXTRAFLAGS,;t t
6921s,@NETBOOT_DRIVERS@,$NETBOOT_DRIVERS,;t t
6922s,@CCASFLAGS@,$CCASFLAGS,;t t
6923s,@LIBOBJS@,$LIBOBJS,;t t
6924s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6925CEOF
6926
6927_ACEOF
6928
6929  cat >>$CONFIG_STATUS <<\_ACEOF
6930  # Split the substitutions into bite-sized pieces for seds with
6931  # small command number limits, like on Digital OSF/1 and HP-UX.
6932  ac_max_sed_lines=48
6933  ac_sed_frag=1 # Number of current file.
6934  ac_beg=1 # First line for current file.
6935  ac_end=$ac_max_sed_lines # Line after last line for current file.
6936  ac_more_lines=:
6937  ac_sed_cmds=
6938  while $ac_more_lines; do
6939    if test $ac_beg -gt 1; then
6940      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6941    else
6942      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6943    fi
6944    if test ! -s $tmp/subs.frag; then
6945      ac_more_lines=false
6946    else
6947      # The purpose of the label and of the branching condition is to
6948      # speed up the sed processing (if there are no `@' at all, there
6949      # is no need to browse any of the substitutions).
6950      # These are the two extra sed commands mentioned above.
6951      (echo ':t
6952  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6953      if test -z "$ac_sed_cmds"; then
6954	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6955      else
6956	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6957      fi
6958      ac_sed_frag=`expr $ac_sed_frag + 1`
6959      ac_beg=$ac_end
6960      ac_end=`expr $ac_end + $ac_max_sed_lines`
6961    fi
6962  done
6963  if test -z "$ac_sed_cmds"; then
6964    ac_sed_cmds=cat
6965  fi
6966fi # test -n "$CONFIG_FILES"
6967
6968_ACEOF
6969cat >>$CONFIG_STATUS <<\_ACEOF
6970for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6971  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6972  case $ac_file in
6973  - | *:- | *:-:* ) # input from stdin
6974	cat >$tmp/stdin
6975	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6976	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6977  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6978	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6979  * )   ac_file_in=$ac_file.in ;;
6980  esac
6981
6982  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6983  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6984$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6985	 X"$ac_file" : 'X\(//\)[^/]' \| \
6986	 X"$ac_file" : 'X\(//\)$' \| \
6987	 X"$ac_file" : 'X\(/\)' \| \
6988	 .     : '\(.\)' 2>/dev/null ||
6989echo X"$ac_file" |
6990    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6991  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6992  	  /^X\(\/\/\)$/{ s//\1/; q; }
6993  	  /^X\(\/\).*/{ s//\1/; q; }
6994  	  s/.*/./; q'`
6995  { if $as_mkdir_p; then
6996    mkdir -p "$ac_dir"
6997  else
6998    as_dir="$ac_dir"
6999    as_dirs=
7000    while test ! -d "$as_dir"; do
7001      as_dirs="$as_dir $as_dirs"
7002      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7003$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7004	 X"$as_dir" : 'X\(//\)[^/]' \| \
7005	 X"$as_dir" : 'X\(//\)$' \| \
7006	 X"$as_dir" : 'X\(/\)' \| \
7007	 .     : '\(.\)' 2>/dev/null ||
7008echo X"$as_dir" |
7009    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7010  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7011  	  /^X\(\/\/\)$/{ s//\1/; q; }
7012  	  /^X\(\/\).*/{ s//\1/; q; }
7013  	  s/.*/./; q'`
7014    done
7015    test ! -n "$as_dirs" || mkdir $as_dirs
7016  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7017echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7018   { (exit 1); exit 1; }; }; }
7019
7020  ac_builddir=.
7021
7022if test "$ac_dir" != .; then
7023  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7024  # A "../" for each directory in $ac_dir_suffix.
7025  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7026else
7027  ac_dir_suffix= ac_top_builddir=
7028fi
7029
7030case $srcdir in
7031  .)  # No --srcdir option.  We are building in place.
7032    ac_srcdir=.
7033    if test -z "$ac_top_builddir"; then
7034       ac_top_srcdir=.
7035    else
7036       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7037    fi ;;
7038  [\\/]* | ?:[\\/]* )  # Absolute path.
7039    ac_srcdir=$srcdir$ac_dir_suffix;
7040    ac_top_srcdir=$srcdir ;;
7041  *) # Relative path.
7042    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7043    ac_top_srcdir=$ac_top_builddir$srcdir ;;
7044esac
7045
7046# Do not use `cd foo && pwd` to compute absolute paths, because
7047# the directories may not exist.
7048case `pwd` in
7049.) ac_abs_builddir="$ac_dir";;
7050*)
7051  case "$ac_dir" in
7052  .) ac_abs_builddir=`pwd`;;
7053  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7054  *) ac_abs_builddir=`pwd`/"$ac_dir";;
7055  esac;;
7056esac
7057case $ac_abs_builddir in
7058.) ac_abs_top_builddir=${ac_top_builddir}.;;
7059*)
7060  case ${ac_top_builddir}. in
7061  .) ac_abs_top_builddir=$ac_abs_builddir;;
7062  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7063  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7064  esac;;
7065esac
7066case $ac_abs_builddir in
7067.) ac_abs_srcdir=$ac_srcdir;;
7068*)
7069  case $ac_srcdir in
7070  .) ac_abs_srcdir=$ac_abs_builddir;;
7071  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7072  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7073  esac;;
7074esac
7075case $ac_abs_builddir in
7076.) ac_abs_top_srcdir=$ac_top_srcdir;;
7077*)
7078  case $ac_top_srcdir in
7079  .) ac_abs_top_srcdir=$ac_abs_builddir;;
7080  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7081  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7082  esac;;
7083esac
7084
7085
7086  case $INSTALL in
7087  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7088  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7089  esac
7090
7091  if test x"$ac_file" != x-; then
7092    { echo "$as_me:$LINENO: creating $ac_file" >&5
7093echo "$as_me: creating $ac_file" >&6;}
7094    rm -f "$ac_file"
7095  fi
7096  # Let's still pretend it is `configure' which instantiates (i.e., don't
7097  # use $as_me), people would be surprised to read:
7098  #    /* config.h.  Generated by config.status.  */
7099  if test x"$ac_file" = x-; then
7100    configure_input=
7101  else
7102    configure_input="$ac_file.  "
7103  fi
7104  configure_input=$configure_input"Generated from `echo $ac_file_in |
7105				     sed 's,.*/,,'` by configure."
7106
7107  # First look for the input files in the build tree, otherwise in the
7108  # src tree.
7109  ac_file_inputs=`IFS=:
7110    for f in $ac_file_in; do
7111      case $f in
7112      -) echo $tmp/stdin ;;
7113      [\\/$]*)
7114	 # Absolute (can't be DOS-style, as IFS=:)
7115	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7116echo "$as_me: error: cannot find input file: $f" >&2;}
7117   { (exit 1); exit 1; }; }
7118	 echo "$f";;
7119      *) # Relative
7120	 if test -f "$f"; then
7121	   # Build tree
7122	   echo "$f"
7123	 elif test -f "$srcdir/$f"; then
7124	   # Source tree
7125	   echo "$srcdir/$f"
7126	 else
7127	   # /dev/null tree
7128	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7129echo "$as_me: error: cannot find input file: $f" >&2;}
7130   { (exit 1); exit 1; }; }
7131	 fi;;
7132      esac
7133    done` || { (exit 1); exit 1; }
7134_ACEOF
7135cat >>$CONFIG_STATUS <<_ACEOF
7136  sed "$ac_vpsub
7137$extrasub
7138_ACEOF
7139cat >>$CONFIG_STATUS <<\_ACEOF
7140:t
7141/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7142s,@configure_input@,$configure_input,;t t
7143s,@srcdir@,$ac_srcdir,;t t
7144s,@abs_srcdir@,$ac_abs_srcdir,;t t
7145s,@top_srcdir@,$ac_top_srcdir,;t t
7146s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7147s,@builddir@,$ac_builddir,;t t
7148s,@abs_builddir@,$ac_abs_builddir,;t t
7149s,@top_builddir@,$ac_top_builddir,;t t
7150s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7151s,@INSTALL@,$ac_INSTALL,;t t
7152" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7153  rm -f $tmp/stdin
7154  if test x"$ac_file" != x-; then
7155    mv $tmp/out $ac_file
7156  else
7157    cat $tmp/out
7158    rm -f $tmp/out
7159  fi
7160
7161done
7162_ACEOF
7163cat >>$CONFIG_STATUS <<\_ACEOF
7164
7165#
7166# CONFIG_HEADER section.
7167#
7168
7169# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7170# NAME is the cpp macro being defined and VALUE is the value it is being given.
7171#
7172# ac_d sets the value in "#define NAME VALUE" lines.
7173ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
7174ac_dB='[	 ].*$,\1#\2'
7175ac_dC=' '
7176ac_dD=',;t'
7177# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7178ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
7179ac_uB='$,\1#\2define\3'
7180ac_uC=' '
7181ac_uD=',;t'
7182
7183for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7184  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7185  case $ac_file in
7186  - | *:- | *:-:* ) # input from stdin
7187	cat >$tmp/stdin
7188	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7189	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7190  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7191	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7192  * )   ac_file_in=$ac_file.in ;;
7193  esac
7194
7195  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7196echo "$as_me: creating $ac_file" >&6;}
7197
7198  # First look for the input files in the build tree, otherwise in the
7199  # src tree.
7200  ac_file_inputs=`IFS=:
7201    for f in $ac_file_in; do
7202      case $f in
7203      -) echo $tmp/stdin ;;
7204      [\\/$]*)
7205	 # Absolute (can't be DOS-style, as IFS=:)
7206	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7207echo "$as_me: error: cannot find input file: $f" >&2;}
7208   { (exit 1); exit 1; }; }
7209	 # Do quote $f, to prevent DOS paths from being IFS'd.
7210	 echo "$f";;
7211      *) # Relative
7212	 if test -f "$f"; then
7213	   # Build tree
7214	   echo "$f"
7215	 elif test -f "$srcdir/$f"; then
7216	   # Source tree
7217	   echo "$srcdir/$f"
7218	 else
7219	   # /dev/null tree
7220	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7221echo "$as_me: error: cannot find input file: $f" >&2;}
7222   { (exit 1); exit 1; }; }
7223	 fi;;
7224      esac
7225    done` || { (exit 1); exit 1; }
7226  # Remove the trailing spaces.
7227  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
7228
7229_ACEOF
7230
7231# Transform confdefs.h into two sed scripts, `conftest.defines' and
7232# `conftest.undefs', that substitutes the proper values into
7233# config.h.in to produce config.h.  The first handles `#define'
7234# templates, and the second `#undef' templates.
7235# And first: Protect against being on the right side of a sed subst in
7236# config.status.  Protect against being in an unquoted here document
7237# in config.status.
7238rm -f conftest.defines conftest.undefs
7239# Using a here document instead of a string reduces the quoting nightmare.
7240# Putting comments in sed scripts is not portable.
7241#
7242# `end' is used to avoid that the second main sed command (meant for
7243# 0-ary CPP macros) applies to n-ary macro definitions.
7244# See the Autoconf documentation for `clear'.
7245cat >confdef2sed.sed <<\_ACEOF
7246s/[\\&,]/\\&/g
7247s,[\\$`],\\&,g
7248t clear
7249: clear
7250s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7251t end
7252s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7253: end
7254_ACEOF
7255# If some macros were called several times there might be several times
7256# the same #defines, which is useless.  Nevertheless, we may not want to
7257# sort them, since we want the *last* AC-DEFINE to be honored.
7258uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7259sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7260rm -f confdef2sed.sed
7261
7262# This sed command replaces #undef with comments.  This is necessary, for
7263# example, in the case of _POSIX_SOURCE, which is predefined and required
7264# on some systems where configure will not decide to define it.
7265cat >>conftest.undefs <<\_ACEOF
7266s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7267_ACEOF
7268
7269# Break up conftest.defines because some shells have a limit on the size
7270# of here documents, and old seds have small limits too (100 cmds).
7271echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7272echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7273echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7274echo '  :' >>$CONFIG_STATUS
7275rm -f conftest.tail
7276while grep . conftest.defines >/dev/null
7277do
7278  # Write a limited-size here document to $tmp/defines.sed.
7279  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7280  # Speed up: don't consider the non `#define' lines.
7281  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
7282  # Work around the forget-to-reset-the-flag bug.
7283  echo 't clr' >>$CONFIG_STATUS
7284  echo ': clr' >>$CONFIG_STATUS
7285  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7286  echo 'CEOF
7287  sed -f $tmp/defines.sed $tmp/in >$tmp/out
7288  rm -f $tmp/in
7289  mv $tmp/out $tmp/in
7290' >>$CONFIG_STATUS
7291  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7292  rm -f conftest.defines
7293  mv conftest.tail conftest.defines
7294done
7295rm -f conftest.defines
7296echo '  fi # grep' >>$CONFIG_STATUS
7297echo >>$CONFIG_STATUS
7298
7299# Break up conftest.undefs because some shells have a limit on the size
7300# of here documents, and old seds have small limits too (100 cmds).
7301echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
7302rm -f conftest.tail
7303while grep . conftest.undefs >/dev/null
7304do
7305  # Write a limited-size here document to $tmp/undefs.sed.
7306  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7307  # Speed up: don't consider the non `#undef'
7308  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
7309  # Work around the forget-to-reset-the-flag bug.
7310  echo 't clr' >>$CONFIG_STATUS
7311  echo ': clr' >>$CONFIG_STATUS
7312  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7313  echo 'CEOF
7314  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7315  rm -f $tmp/in
7316  mv $tmp/out $tmp/in
7317' >>$CONFIG_STATUS
7318  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7319  rm -f conftest.undefs
7320  mv conftest.tail conftest.undefs
7321done
7322rm -f conftest.undefs
7323
7324cat >>$CONFIG_STATUS <<\_ACEOF
7325  # Let's still pretend it is `configure' which instantiates (i.e., don't
7326  # use $as_me), people would be surprised to read:
7327  #    /* config.h.  Generated by config.status.  */
7328  if test x"$ac_file" = x-; then
7329    echo "/* Generated by configure.  */" >$tmp/config.h
7330  else
7331    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
7332  fi
7333  cat $tmp/in >>$tmp/config.h
7334  rm -f $tmp/in
7335  if test x"$ac_file" != x-; then
7336    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7337      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7338echo "$as_me: $ac_file is unchanged" >&6;}
7339    else
7340      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7341$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7342	 X"$ac_file" : 'X\(//\)[^/]' \| \
7343	 X"$ac_file" : 'X\(//\)$' \| \
7344	 X"$ac_file" : 'X\(/\)' \| \
7345	 .     : '\(.\)' 2>/dev/null ||
7346echo X"$ac_file" |
7347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7348  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7349  	  /^X\(\/\/\)$/{ s//\1/; q; }
7350  	  /^X\(\/\).*/{ s//\1/; q; }
7351  	  s/.*/./; q'`
7352      { if $as_mkdir_p; then
7353    mkdir -p "$ac_dir"
7354  else
7355    as_dir="$ac_dir"
7356    as_dirs=
7357    while test ! -d "$as_dir"; do
7358      as_dirs="$as_dir $as_dirs"
7359      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7360$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7361	 X"$as_dir" : 'X\(//\)[^/]' \| \
7362	 X"$as_dir" : 'X\(//\)$' \| \
7363	 X"$as_dir" : 'X\(/\)' \| \
7364	 .     : '\(.\)' 2>/dev/null ||
7365echo X"$as_dir" |
7366    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7367  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7368  	  /^X\(\/\/\)$/{ s//\1/; q; }
7369  	  /^X\(\/\).*/{ s//\1/; q; }
7370  	  s/.*/./; q'`
7371    done
7372    test ! -n "$as_dirs" || mkdir $as_dirs
7373  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7374echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7375   { (exit 1); exit 1; }; }; }
7376
7377      rm -f $ac_file
7378      mv $tmp/config.h $ac_file
7379    fi
7380  else
7381    cat $tmp/config.h
7382    rm -f $tmp/config.h
7383  fi
7384# Compute $ac_file's index in $config_headers.
7385_am_stamp_count=1
7386for _am_header in $config_headers :; do
7387  case $_am_header in
7388    $ac_file | $ac_file:* )
7389      break ;;
7390    * )
7391      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7392  esac
7393done
7394echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7395$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7396	 X$ac_file : 'X\(//\)[^/]' \| \
7397	 X$ac_file : 'X\(//\)$' \| \
7398	 X$ac_file : 'X\(/\)' \| \
7399	 .     : '\(.\)' 2>/dev/null ||
7400echo X$ac_file |
7401    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7402  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7403  	  /^X\(\/\/\)$/{ s//\1/; q; }
7404  	  /^X\(\/\).*/{ s//\1/; q; }
7405  	  s/.*/./; q'`/stamp-h$_am_stamp_count
7406done
7407_ACEOF
7408cat >>$CONFIG_STATUS <<\_ACEOF
7409
7410#
7411# CONFIG_COMMANDS section.
7412#
7413for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7414  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7415  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7416  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7417$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7418	 X"$ac_dest" : 'X\(//\)[^/]' \| \
7419	 X"$ac_dest" : 'X\(//\)$' \| \
7420	 X"$ac_dest" : 'X\(/\)' \| \
7421	 .     : '\(.\)' 2>/dev/null ||
7422echo X"$ac_dest" |
7423    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7424  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7425  	  /^X\(\/\/\)$/{ s//\1/; q; }
7426  	  /^X\(\/\).*/{ s//\1/; q; }
7427  	  s/.*/./; q'`
7428  { if $as_mkdir_p; then
7429    mkdir -p "$ac_dir"
7430  else
7431    as_dir="$ac_dir"
7432    as_dirs=
7433    while test ! -d "$as_dir"; do
7434      as_dirs="$as_dir $as_dirs"
7435      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7436$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7437	 X"$as_dir" : 'X\(//\)[^/]' \| \
7438	 X"$as_dir" : 'X\(//\)$' \| \
7439	 X"$as_dir" : 'X\(/\)' \| \
7440	 .     : '\(.\)' 2>/dev/null ||
7441echo X"$as_dir" |
7442    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7443  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7444  	  /^X\(\/\/\)$/{ s//\1/; q; }
7445  	  /^X\(\/\).*/{ s//\1/; q; }
7446  	  s/.*/./; q'`
7447    done
7448    test ! -n "$as_dirs" || mkdir $as_dirs
7449  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7450echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7451   { (exit 1); exit 1; }; }; }
7452
7453  ac_builddir=.
7454
7455if test "$ac_dir" != .; then
7456  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7457  # A "../" for each directory in $ac_dir_suffix.
7458  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7459else
7460  ac_dir_suffix= ac_top_builddir=
7461fi
7462
7463case $srcdir in
7464  .)  # No --srcdir option.  We are building in place.
7465    ac_srcdir=.
7466    if test -z "$ac_top_builddir"; then
7467       ac_top_srcdir=.
7468    else
7469       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7470    fi ;;
7471  [\\/]* | ?:[\\/]* )  # Absolute path.
7472    ac_srcdir=$srcdir$ac_dir_suffix;
7473    ac_top_srcdir=$srcdir ;;
7474  *) # Relative path.
7475    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7476    ac_top_srcdir=$ac_top_builddir$srcdir ;;
7477esac
7478
7479# Do not use `cd foo && pwd` to compute absolute paths, because
7480# the directories may not exist.
7481case `pwd` in
7482.) ac_abs_builddir="$ac_dir";;
7483*)
7484  case "$ac_dir" in
7485  .) ac_abs_builddir=`pwd`;;
7486  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7487  *) ac_abs_builddir=`pwd`/"$ac_dir";;
7488  esac;;
7489esac
7490case $ac_abs_builddir in
7491.) ac_abs_top_builddir=${ac_top_builddir}.;;
7492*)
7493  case ${ac_top_builddir}. in
7494  .) ac_abs_top_builddir=$ac_abs_builddir;;
7495  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7496  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7497  esac;;
7498esac
7499case $ac_abs_builddir in
7500.) ac_abs_srcdir=$ac_srcdir;;
7501*)
7502  case $ac_srcdir in
7503  .) ac_abs_srcdir=$ac_abs_builddir;;
7504  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7505  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7506  esac;;
7507esac
7508case $ac_abs_builddir in
7509.) ac_abs_top_srcdir=$ac_top_srcdir;;
7510*)
7511  case $ac_top_srcdir in
7512  .) ac_abs_top_srcdir=$ac_abs_builddir;;
7513  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7514  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7515  esac;;
7516esac
7517
7518
7519  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7520echo "$as_me: executing $ac_dest commands" >&6;}
7521  case $ac_dest in
7522    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7523  # Strip MF so we end up with the name of the file.
7524  mf=`echo "$mf" | sed -e 's/:.*$//'`
7525  # Check whether this is an Automake generated Makefile or not.
7526  # We used to match only the files named `Makefile.in', but
7527  # some people rename them; so instead we look at the file content.
7528  # Grep'ing the first line is not enough: some people post-process
7529  # each Makefile.in and add a new line on top of each file to say so.
7530  # So let's grep whole file.
7531  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7532    dirpart=`(dirname "$mf") 2>/dev/null ||
7533$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7534	 X"$mf" : 'X\(//\)[^/]' \| \
7535	 X"$mf" : 'X\(//\)$' \| \
7536	 X"$mf" : 'X\(/\)' \| \
7537	 .     : '\(.\)' 2>/dev/null ||
7538echo X"$mf" |
7539    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7540  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7541  	  /^X\(\/\/\)$/{ s//\1/; q; }
7542  	  /^X\(\/\).*/{ s//\1/; q; }
7543  	  s/.*/./; q'`
7544  else
7545    continue
7546  fi
7547  # Extract the definition of DEPDIR, am__include, and am__quote
7548  # from the Makefile without running `make'.
7549  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7550  test -z "$DEPDIR" && continue
7551  am__include=`sed -n 's/^am__include = //p' < "$mf"`
7552  test -z "am__include" && continue
7553  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7554  # When using ansi2knr, U may be empty or an underscore; expand it
7555  U=`sed -n 's/^U = //p' < "$mf"`
7556  # Find all dependency output files, they are included files with
7557  # $(DEPDIR) in their names.  We invoke sed twice because it is the
7558  # simplest approach to changing $(DEPDIR) to its actual value in the
7559  # expansion.
7560  for file in `sed -n "
7561    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7562       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7563    # Make sure the directory exists.
7564    test -f "$dirpart/$file" && continue
7565    fdir=`(dirname "$file") 2>/dev/null ||
7566$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7567	 X"$file" : 'X\(//\)[^/]' \| \
7568	 X"$file" : 'X\(//\)$' \| \
7569	 X"$file" : 'X\(/\)' \| \
7570	 .     : '\(.\)' 2>/dev/null ||
7571echo X"$file" |
7572    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7573  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7574  	  /^X\(\/\/\)$/{ s//\1/; q; }
7575  	  /^X\(\/\).*/{ s//\1/; q; }
7576  	  s/.*/./; q'`
7577    { if $as_mkdir_p; then
7578    mkdir -p $dirpart/$fdir
7579  else
7580    as_dir=$dirpart/$fdir
7581    as_dirs=
7582    while test ! -d "$as_dir"; do
7583      as_dirs="$as_dir $as_dirs"
7584      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7585$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7586	 X"$as_dir" : 'X\(//\)[^/]' \| \
7587	 X"$as_dir" : 'X\(//\)$' \| \
7588	 X"$as_dir" : 'X\(/\)' \| \
7589	 .     : '\(.\)' 2>/dev/null ||
7590echo X"$as_dir" |
7591    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7592  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7593  	  /^X\(\/\/\)$/{ s//\1/; q; }
7594  	  /^X\(\/\).*/{ s//\1/; q; }
7595  	  s/.*/./; q'`
7596    done
7597    test ! -n "$as_dirs" || mkdir $as_dirs
7598  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7599echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7600   { (exit 1); exit 1; }; }; }
7601
7602    # echo "creating $dirpart/$file"
7603    echo '# dummy' > "$dirpart/$file"
7604  done
7605done
7606 ;;
7607  esac
7608done
7609_ACEOF
7610
7611cat >>$CONFIG_STATUS <<\_ACEOF
7612
7613{ (exit 0); exit 0; }
7614_ACEOF
7615chmod +x $CONFIG_STATUS
7616ac_clean_files=$ac_clean_files_save
7617
7618
7619# configure is writing to config.log, and then calls config.status.
7620# config.status does its own redirection, appending to config.log.
7621# Unfortunately, on DOS this fails, as config.log is still kept open
7622# by configure, so config.status won't be able to write to it; its
7623# output is simply discarded.  So we exec the FD to /dev/null,
7624# effectively closing config.log, so it can be properly (re)opened and
7625# appended to by config.status.  When coming back to configure, we
7626# need to make the FD available again.
7627if test "$no_create" != yes; then
7628  ac_cs_success=:
7629  ac_config_status_args=
7630  test "$silent" = yes &&
7631    ac_config_status_args="$ac_config_status_args --quiet"
7632  exec 5>/dev/null
7633  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7634  exec 5>>config.log
7635  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7636  # would make configure fail if this is the last instruction.
7637  $ac_cs_success || { (exit 1); exit 1; }
7638fi
7639
7640