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