Merge branch 'master' of git://github.com/illumos/illumos-gate
[unleashed.git] / usr / src / grub / grub-0.97 / configure
blobb1ffd8e37b4a5bb7db74ef7abdaeb5b81918ca0e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GRUB 0.97.
5 # Report bugs to <bug-grub@gnu.org>.
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 ## --------------------- ##
14 # Be Bourne compatible
15 if 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+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for 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
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
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if 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=:
98 rm -f conf$$.sh
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
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
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
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; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
154 done
156 esac
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 '
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; }; }
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
189 case `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= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if 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'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251 exec 6>&1
254 # Initializations.
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
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}
269 # Identity of this package.
270 PACKAGE_NAME='GRUB'
271 PACKAGE_TARNAME='grub'
272 PACKAGE_VERSION='0.97'
273 PACKAGE_STRING='GRUB 0.97'
274 PACKAGE_BUGREPORT='bug-grub@gnu.org'
276 ac_unique_file="stage2/stage2.c"
277 # Factoring default headers for most tests.
278 ac_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"
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT PERL CC ac_ct_CC CFLAGS LDFLAGS CPPFLAGS EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CCAS RANLIB ac_ct_RANLIB STAGE1_CFLAGS STAGE2_CFLAGS GRUB_CFLAGS OBJCOPY ac_ct_OBJCOPY GRUB_LIBS CPP EGREP NETBOOT_SUPPORT_TRUE NETBOOT_SUPPORT_FALSE DISKLESS_SUPPORT_TRUE DISKLESS_SUPPORT_FALSE HERCULES_SUPPORT_TRUE HERCULES_SUPPORT_FALSE SERIAL_SUPPORT_TRUE SERIAL_SUPPORT_FALSE SERIAL_SPEED_SIMULATION_TRUE SERIAL_SPEED_SIMULATION_FALSE BUILD_EXAMPLE_KERNEL_TRUE BUILD_EXAMPLE_KERNEL_FALSE FSYS_CFLAGS NET_CFLAGS NET_EXTRAFLAGS NETBOOT_DRIVERS CCASFLAGS LIBOBJS LTLIBOBJS'
315 ac_subst_files=''
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
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.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
355 ac_prev=
356 for ac_option
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
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
369 case $ac_option in
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
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 ;;
388 --config-cache | -C)
389 cache_file=config.cache ;;
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 ;;
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" ;;
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'" ;;
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 ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
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 ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
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 ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
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 ;;
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 ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
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 ;;
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 ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
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 ;;
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 ;;
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
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 ;;
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 ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
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'" ;;
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" ;;
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
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 ;;
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 ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
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 ;;
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}
651 esac
652 done
654 if 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; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
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
669 done
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
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
681 done
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.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
690 # FIXME: To remove some day.
691 if 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
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if 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 ||
717 echo 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=..
727 else
728 ac_srcdir_defaulted=no
730 if 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; }; }
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; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
777 # Report the --help message.
779 if 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.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
792 Configuration:
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 \`..']
803 _ACEOF
805 cat <<_ACEOF
806 Installation 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]
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine 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
834 cat <<\_ACEOF
836 Program 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
841 System 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
847 if 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
853 Optional 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
917 Optional 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
923 Some 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
932 Use these variables to override the choices made by `configure' or to help
933 it to find libraries and programs with nonstandard names/locations.
935 Report bugs to <bug-grub@gnu.org>.
936 _ACEOF
939 if 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=.
946 if 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'`
950 else
951 ac_dir_suffix= ac_top_builddir=
954 case $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 ;;
968 esac
970 # Do not use `cd foo && pwd` to compute absolute paths, because
971 # the directories may not exist.
972 case `pwd` in
973 .) ac_abs_builddir="$ac_dir";;
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;;
980 esac
981 case $ac_abs_builddir in
982 .) ac_abs_top_builddir=${ac_top_builddir}.;;
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;;
989 esac
990 case $ac_abs_builddir in
991 .) ac_abs_srcdir=$ac_srcdir;;
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;;
998 esac
999 case $ac_abs_builddir in
1000 .) ac_abs_top_srcdir=$ac_top_srcdir;;
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;;
1007 esac
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
1024 cd $ac_popdir
1025 done
1028 test -n "$ac_init_help" && exit 0
1029 if $ac_init_version; then
1030 cat <<\_ACEOF
1031 GRUB configure 0.97
1032 generated by GNU Autoconf 2.59
1034 Copyright (C) 2003 Free Software Foundation, Inc.
1035 This configure script is free software; the Free Software Foundation
1036 gives unlimited permission to copy, distribute and modify it.
1037 _ACEOF
1038 exit 0
1040 exec 5>config.log
1041 cat >&5 <<_ACEOF
1042 This file contains any messages produced by compilers while
1043 running configure, to aid debugging if configure makes a mistake.
1045 It was created by GRUB $as_me 0.97, which was
1046 generated by GNU Autoconf 2.59. Invocation command line was
1048 $ $0 $@
1050 _ACEOF
1052 cat <<_ASUNAME
1053 ## --------- ##
1054 ## Platform. ##
1055 ## --------- ##
1057 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1058 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1059 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1060 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1061 uname -v = `(uname -v) 2>/dev/null || echo unknown`
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`
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`
1069 hostinfo = `(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`
1074 _ASUNAME
1076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1077 for as_dir in $PATH
1079 IFS=$as_save_IFS
1080 test -z "$as_dir" && as_dir=.
1081 echo "PATH: $as_dir"
1082 done
1084 } >&5
1086 cat >&5 <<_ACEOF
1089 ## ----------- ##
1090 ## Core tests. ##
1091 ## ----------- ##
1093 _ACEOF
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.
1101 ac_configure_args=
1102 ac_configure_args0=
1103 ac_configure_args1=
1104 ac_sep=
1105 ac_must_keep_next=false
1106 for ac_pass in 1 2
1108 for ac_arg
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'" ;;
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
1134 -* ) ac_must_keep_next=true ;;
1135 esac
1137 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1138 # Get rid of the leading space.
1139 ac_sep=" "
1141 esac
1142 done
1143 done
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; }
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.
1152 trap 'exit_status=$?
1153 # Save into config.log some information that might help in debugging.
1155 echo
1157 cat <<\_ASBOX
1158 ## ---------------- ##
1159 ## Cache variables. ##
1160 ## ---------------- ##
1161 _ASBOX
1162 echo
1163 # The following way of writing the cache mishandles newlines in values,
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"
1173 sed -n \
1174 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1176 esac;
1178 echo
1180 cat <<\_ASBOX
1181 ## ----------------- ##
1182 ## Output variables. ##
1183 ## ----------------- ##
1184 _ASBOX
1185 echo
1186 for ac_var in $ac_subst_vars
1188 eval ac_val=$`echo $ac_var`
1189 echo "$ac_var='"'"'$ac_val'"'"'"
1190 done | sort
1191 echo
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
1202 eval ac_val=$`echo $ac_var`
1203 echo "$ac_var='"'"'$ac_val'"'"'"
1204 done | sort
1205 echo
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
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
1226 for ac_signal in 1 2 13 15; do
1227 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1228 done
1229 ac_signal=0
1231 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1232 rm -rf conftest* confdefs.h
1233 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1234 echo >confdefs.h
1236 # Predefined preprocessor variables.
1238 cat >>confdefs.h <<_ACEOF
1239 #define PACKAGE_NAME "$PACKAGE_NAME"
1240 _ACEOF
1243 cat >>confdefs.h <<_ACEOF
1244 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1245 _ACEOF
1248 cat >>confdefs.h <<_ACEOF
1249 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1250 _ACEOF
1253 cat >>confdefs.h <<_ACEOF
1254 #define PACKAGE_STRING "$PACKAGE_STRING"
1255 _ACEOF
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1260 _ACEOF
1263 # Let the site file select an alternate cache file if it wants to.
1264 # Prefer explicitly selected file to automatically selected ones.
1265 if 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"
1272 for 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
1275 echo "$as_me: loading site script $ac_site_file" >&6;}
1276 sed 's/^/| /' "$ac_site_file" >&5
1277 . "$ac_site_file"
1279 done
1281 if 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
1286 echo "$as_me: loading cache $cache_file" >&6;}
1287 case $cache_file in
1288 [\\/]* | ?:[\\/]* ) . $cache_file;;
1289 *) . ./$cache_file;;
1290 esac
1292 else
1293 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1294 echo "$as_me: creating cache $cache_file" >&6;}
1295 >$cache_file
1298 # Check that the precious variables saved in the cache have kept the same
1299 # value.
1300 ac_cache_corrupted=false
1301 for 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
1310 echo "$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
1314 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1315 ac_cache_corrupted=: ;;
1316 ,);;
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
1320 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1321 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1322 echo "$as_me: former value: $ac_old_val" >&2;}
1323 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1324 echo "$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
1340 done
1341 if $ac_cache_corrupted; then
1342 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1343 echo "$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
1345 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1346 { (exit 1); exit 1; }; }
1349 ac_ext=c
1350 ac_cpp='$CPP $CPPFLAGS'
1351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1382 ac_config_headers="$ac_config_headers config.h"
1384 am__api_version="1.9"
1385 ac_aux_dir=
1386 for 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
1400 done
1401 if test -z "$ac_aux_dir"; then
1402 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1403 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1404 { (exit 1); exit 1; }; }
1406 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1407 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1408 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
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.
1423 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1424 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1425 if test -z "$INSTALL"; then
1426 if test "${ac_cv_path_install+set}" = set; then
1427 echo $ECHO_N "(cached) $ECHO_C" >&6
1428 else
1429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1430 for as_dir in $PATH
1432 IFS=$as_save_IFS
1433 test -z "$as_dir" && as_dir=.
1434 # Account for people who put trailing slashes in PATH elements.
1435 case $as_dir/ in
1436 ./ | .// | /cC/* | \
1437 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1438 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1439 /usr/ucb/* ) ;;
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.
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.
1455 else
1456 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1457 break 3
1460 done
1461 done
1463 esac
1464 done
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
1478 echo "$as_me:$LINENO: result: $INSTALL" >&5
1479 echo "${ECHO_T}$INSTALL" >&6
1481 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1482 # It thinks the first close brace ends the variable substitution.
1483 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1485 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1487 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1489 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1490 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1491 # Just in case
1492 sleep 1
1493 echo 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).
1499 if (
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`
1505 rm -f conftest.file
1506 if test "$*" != "X $srcdir/configure conftest.file" \
1507 && test "$*" != "X conftest.file $srcdir/configure"; then
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
1514 alias in your environment" >&5
1515 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1516 alias in your environment" >&2;}
1517 { (exit 1); exit 1; }; }
1520 test "$2" = conftest.file
1522 then
1523 # Ok.
1525 else
1526 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1527 Check your system clock" >&5
1528 echo "$as_me: error: newly created file is older than distributed files!
1529 Check your system clock" >&2;}
1530 { (exit 1); exit 1; }; }
1532 echo "$as_me:$LINENO: result: yes" >&5
1533 echo "${ECHO_T}yes" >&6
1534 test "$program_prefix" != NONE &&
1535 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1536 # Use a double $ so make ignores it.
1537 test "$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.
1541 cat <<\_ACEOF >conftest.sed
1542 s/[\\$]/&&/g;s/;s,x,x,$//
1543 _ACEOF
1544 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1545 rm conftest.sed
1547 # expand $ac_aux_dir to an absolute path
1548 am_aux_dir=`cd $ac_aux_dir && pwd`
1550 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1551 # Use eval to expand $SHELL
1552 if eval "$MISSING --run true"; then
1553 am_missing_run="$MISSING --run "
1554 else
1555 am_missing_run=
1556 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1557 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1560 if 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 --'
1576 else
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;
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'
1593 for ac_prog in gawk mawk nawk awk
1595 # Extract the first word of "$ac_prog", so it can be a program name with args.
1596 set dummy $ac_prog; ac_word=$2
1597 echo "$as_me:$LINENO: checking for $ac_word" >&5
1598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599 if test "${ac_cv_prog_AWK+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1601 else
1602 if test -n "$AWK"; then
1603 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1604 else
1605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606 for as_dir in $PATH
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
1616 done
1617 done
1621 AWK=$ac_cv_prog_AWK
1622 if test -n "$AWK"; then
1623 echo "$as_me:$LINENO: result: $AWK" >&5
1624 echo "${ECHO_T}$AWK" >&6
1625 else
1626 echo "$as_me:$LINENO: result: no" >&5
1627 echo "${ECHO_T}no" >&6
1630 test -n "$AWK" && break
1631 done
1633 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1634 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1635 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1636 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1637 echo $ECHO_N "(cached) $ECHO_C" >&6
1638 else
1639 cat >conftest.make <<\_ACEOF
1640 all:
1641 @echo 'ac_maketemp="$(MAKE)"'
1642 _ACEOF
1643 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1644 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1645 if test -n "$ac_maketemp"; then
1646 eval ac_cv_prog_make_${ac_make}_set=yes
1647 else
1648 eval ac_cv_prog_make_${ac_make}_set=no
1650 rm -f conftest.make
1652 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1653 echo "$as_me:$LINENO: result: yes" >&5
1654 echo "${ECHO_T}yes" >&6
1655 SET_MAKE=
1656 else
1657 echo "$as_me:$LINENO: result: no" >&5
1658 echo "${ECHO_T}no" >&6
1659 SET_MAKE="MAKE=${MAKE-make}"
1662 rm -rf .tst 2>/dev/null
1663 mkdir .tst 2>/dev/null
1664 if test -d .tst; then
1665 am__leading_dot=.
1666 else
1667 am__leading_dot=_
1669 rmdir .tst 2>/dev/null
1671 # test to see if srcdir already configured
1672 if 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
1675 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1676 { (exit 1); exit 1; }; }
1679 # test whether we have cygpath
1680 if 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
1689 # Define the identity of the package.
1690 PACKAGE='grub'
1691 VERSION='0.97'
1694 cat >>confdefs.h <<_ACEOF
1695 #define PACKAGE "$PACKAGE"
1696 _ACEOF
1699 cat >>confdefs.h <<_ACEOF
1700 #define VERSION "$VERSION"
1701 _ACEOF
1703 # Some tools Automake needs.
1705 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1708 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1711 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1714 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1717 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1719 install_sh=${install_sh-"$am_aux_dir/install-sh"}
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.
1725 if 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.
1728 set dummy ${ac_tool_prefix}strip; ac_word=$2
1729 echo "$as_me:$LINENO: checking for $ac_word" >&5
1730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1731 if test "${ac_cv_prog_STRIP+set}" = set; then
1732 echo $ECHO_N "(cached) $ECHO_C" >&6
1733 else
1734 if test -n "$STRIP"; then
1735 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1736 else
1737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1738 for as_dir in $PATH
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
1748 done
1749 done
1753 STRIP=$ac_cv_prog_STRIP
1754 if test -n "$STRIP"; then
1755 echo "$as_me:$LINENO: result: $STRIP" >&5
1756 echo "${ECHO_T}$STRIP" >&6
1757 else
1758 echo "$as_me:$LINENO: result: no" >&5
1759 echo "${ECHO_T}no" >&6
1763 if 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.
1766 set dummy strip; ac_word=$2
1767 echo "$as_me:$LINENO: checking for $ac_word" >&5
1768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1769 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1770 echo $ECHO_N "(cached) $ECHO_C" >&6
1771 else
1772 if test -n "$ac_ct_STRIP"; then
1773 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1774 else
1775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1776 for as_dir in $PATH
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
1786 done
1787 done
1789 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1792 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1793 if test -n "$ac_ct_STRIP"; then
1794 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1795 echo "${ECHO_T}$ac_ct_STRIP" >&6
1796 else
1797 echo "$as_me:$LINENO: result: no" >&5
1798 echo "${ECHO_T}no" >&6
1801 STRIP=$ac_ct_STRIP
1802 else
1803 STRIP="$ac_cv_prog_STRIP"
1807 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1809 # We need awk for the "check" target. The system "awk" is bad on
1810 # some platforms.
1811 # Always define AMTAR for backward compatibility.
1813 AMTAR=${AMTAR-"${am_missing_run}tar"}
1815 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
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
1825 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1826 { (exit 1); exit 1; }; }
1828 echo "$as_me:$LINENO: checking build system type" >&5
1829 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1830 if test "${ac_cv_build+set}" = set; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1832 else
1833 ac_cv_build_alias=$build_alias
1834 test -z "$ac_cv_build_alias" &&
1835 ac_cv_build_alias=`$ac_config_guess`
1836 test -z "$ac_cv_build_alias" &&
1837 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1838 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1839 { (exit 1); exit 1; }; }
1840 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1841 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1842 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1843 { (exit 1); exit 1; }; }
1846 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1847 echo "${ECHO_T}$ac_cv_build" >&6
1848 build=$ac_cv_build
1849 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1850 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1851 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1854 echo "$as_me:$LINENO: checking host system type" >&5
1855 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1856 if test "${ac_cv_host+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1858 else
1859 ac_cv_host_alias=$host_alias
1860 test -z "$ac_cv_host_alias" &&
1861 ac_cv_host_alias=$ac_cv_build_alias
1862 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1863 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1864 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1865 { (exit 1); exit 1; }; }
1868 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1869 echo "${ECHO_T}$ac_cv_host" >&6
1870 host=$ac_cv_host
1871 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1872 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1873 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1877 case "$host_cpu" in
1878 i[3456]86) host_cpu=i386 ;;
1879 x86_64) host_cpu=x86_64 ;;
1880 *) { { echo "$as_me:$LINENO: error: unsupported CPU type" >&5
1881 echo "$as_me: error: unsupported CPU type" >&2;}
1882 { (exit 1); exit 1; }; } ;;
1883 esac
1889 # Options
1892 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1893 echo $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.
1895 if test "${enable_maintainer_mode+set}" = set; then
1896 enableval="$enable_maintainer_mode"
1897 USE_MAINTAINER_MODE=$enableval
1898 else
1899 USE_MAINTAINER_MODE=no
1901 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1902 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1905 if test $USE_MAINTAINER_MODE = yes; then
1906 MAINTAINER_MODE_TRUE=
1907 MAINTAINER_MODE_FALSE='#'
1908 else
1909 MAINTAINER_MODE_TRUE='#'
1910 MAINTAINER_MODE_FALSE=
1913 MAINT=$MAINTAINER_MODE_TRUE
1916 if test "x$enable_maintainer_mode" = xyes; then
1917 # Extract the first word of "perl", so it can be a program name with args.
1918 set dummy perl; ac_word=$2
1919 echo "$as_me:$LINENO: checking for $ac_word" >&5
1920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1921 if test "${ac_cv_path_PERL+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 else
1924 case $PERL in
1925 [\\/]* | ?:[\\/]*)
1926 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 for as_dir in $PATH
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
1940 done
1941 done
1944 esac
1946 PERL=$ac_cv_path_PERL
1948 if test -n "$PERL"; then
1949 echo "$as_me:$LINENO: result: $PERL" >&5
1950 echo "${ECHO_T}$PERL" >&6
1951 else
1952 echo "$as_me:$LINENO: result: no" >&5
1953 echo "${ECHO_T}no" >&6
1956 if test -z "$PERL"; then
1957 { { echo "$as_me:$LINENO: error: perl not found" >&5
1958 echo "$as_me: error: perl not found" >&2;}
1959 { (exit 1); exit 1; }; }
1963 # This should be checked before AC_PROG_CC
1964 if test "x$CFLAGS" = x; then
1965 default_CFLAGS=yes
1968 if test "x$host_cpu" = xx86_64; then
1969 CFLAGS="-m32 $CFLAGS"
1973 # Programs
1976 if 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.
1978 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1979 echo "$as_me:$LINENO: checking for $ac_word" >&5
1980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1981 if test "${ac_cv_prog_CC+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1983 else
1984 if test -n "$CC"; then
1985 ac_cv_prog_CC="$CC" # Let the user override the test.
1986 else
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 for as_dir in $PATH
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
1998 done
1999 done
2003 CC=$ac_cv_prog_CC
2004 if test -n "$CC"; then
2005 echo "$as_me:$LINENO: result: $CC" >&5
2006 echo "${ECHO_T}$CC" >&6
2007 else
2008 echo "$as_me:$LINENO: result: no" >&5
2009 echo "${ECHO_T}no" >&6
2013 if 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.
2016 set dummy gcc; ac_word=$2
2017 echo "$as_me:$LINENO: checking for $ac_word" >&5
2018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2019 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2020 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 else
2022 if test -n "$ac_ct_CC"; then
2023 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2024 else
2025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026 for as_dir in $PATH
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
2036 done
2037 done
2041 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2042 if test -n "$ac_ct_CC"; then
2043 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2044 echo "${ECHO_T}$ac_ct_CC" >&6
2045 else
2046 echo "$as_me:$LINENO: result: no" >&5
2047 echo "${ECHO_T}no" >&6
2050 CC=$ac_ct_CC
2051 else
2052 CC="$ac_cv_prog_CC"
2055 ac_ext=c
2056 ac_cpp='$CPP $CPPFLAGS'
2057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2060 if 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.
2062 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2063 echo "$as_me:$LINENO: checking for $ac_word" >&5
2064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2065 if test "${ac_cv_prog_CC+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2067 else
2068 if test -n "$CC"; then
2069 ac_cv_prog_CC="$CC" # Let the user override the test.
2070 else
2071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072 for as_dir in $PATH
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
2082 done
2083 done
2087 CC=$ac_cv_prog_CC
2088 if test -n "$CC"; then
2089 echo "$as_me:$LINENO: result: $CC" >&5
2090 echo "${ECHO_T}$CC" >&6
2091 else
2092 echo "$as_me:$LINENO: result: no" >&5
2093 echo "${ECHO_T}no" >&6
2097 if 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.
2100 set dummy gcc; ac_word=$2
2101 echo "$as_me:$LINENO: checking for $ac_word" >&5
2102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2103 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2105 else
2106 if test -n "$ac_ct_CC"; then
2107 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2108 else
2109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 for as_dir in $PATH
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
2120 done
2121 done
2125 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2126 if test -n "$ac_ct_CC"; then
2127 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2128 echo "${ECHO_T}$ac_ct_CC" >&6
2129 else
2130 echo "$as_me:$LINENO: result: no" >&5
2131 echo "${ECHO_T}no" >&6
2134 CC=$ac_ct_CC
2135 else
2136 CC="$ac_cv_prog_CC"
2139 if 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.
2142 set dummy ${ac_tool_prefix}cc; ac_word=$2
2143 echo "$as_me:$LINENO: checking for $ac_word" >&5
2144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2145 if test "${ac_cv_prog_CC+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 else
2148 if test -n "$CC"; then
2149 ac_cv_prog_CC="$CC" # Let the user override the test.
2150 else
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 for as_dir in $PATH
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
2162 done
2163 done
2167 CC=$ac_cv_prog_CC
2168 if test -n "$CC"; then
2169 echo "$as_me:$LINENO: result: $CC" >&5
2170 echo "${ECHO_T}$CC" >&6
2171 else
2172 echo "$as_me:$LINENO: result: no" >&5
2173 echo "${ECHO_T}no" >&6
2177 if 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.
2180 set dummy cc; ac_word=$2
2181 echo "$as_me:$LINENO: checking for $ac_word" >&5
2182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2183 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2185 else
2186 if test -n "$ac_ct_CC"; then
2187 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2188 else
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 for as_dir in $PATH
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
2200 done
2201 done
2205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2206 if test -n "$ac_ct_CC"; then
2207 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2208 echo "${ECHO_T}$ac_ct_CC" >&6
2209 else
2210 echo "$as_me:$LINENO: result: no" >&5
2211 echo "${ECHO_T}no" >&6
2214 CC=$ac_ct_CC
2215 else
2216 CC="$ac_cv_prog_CC"
2220 if test -z "$CC"; then
2221 # Extract the first word of "cc", so it can be a program name with args.
2222 set dummy cc; ac_word=$2
2223 echo "$as_me:$LINENO: checking for $ac_word" >&5
2224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2225 if test "${ac_cv_prog_CC+set}" = set; then
2226 echo $ECHO_N "(cached) $ECHO_C" >&6
2227 else
2228 if test -n "$CC"; then
2229 ac_cv_prog_CC="$CC" # Let the user override the test.
2230 else
2231 ac_prog_rejected=no
2232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2233 for as_dir in $PATH
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
2243 ac_cv_prog_CC="cc"
2244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245 break 2
2247 done
2248 done
2250 if 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+' '}$@"
2264 CC=$ac_cv_prog_CC
2265 if test -n "$CC"; then
2266 echo "$as_me:$LINENO: result: $CC" >&5
2267 echo "${ECHO_T}$CC" >&6
2268 else
2269 echo "$as_me:$LINENO: result: no" >&5
2270 echo "${ECHO_T}no" >&6
2274 if test -z "$CC"; then
2275 if test -n "$ac_tool_prefix"; then
2276 for ac_prog in cl
2278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2279 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2280 echo "$as_me:$LINENO: checking for $ac_word" >&5
2281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2282 if test "${ac_cv_prog_CC+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 else
2285 if test -n "$CC"; then
2286 ac_cv_prog_CC="$CC" # Let the user override the test.
2287 else
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
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
2299 done
2300 done
2304 CC=$ac_cv_prog_CC
2305 if test -n "$CC"; then
2306 echo "$as_me:$LINENO: result: $CC" >&5
2307 echo "${ECHO_T}$CC" >&6
2308 else
2309 echo "$as_me:$LINENO: result: no" >&5
2310 echo "${ECHO_T}no" >&6
2313 test -n "$CC" && break
2314 done
2316 if test -z "$CC"; then
2317 ac_ct_CC=$CC
2318 for ac_prog in cl
2320 # Extract the first word of "$ac_prog", so it can be a program name with args.
2321 set dummy $ac_prog; ac_word=$2
2322 echo "$as_me:$LINENO: checking for $ac_word" >&5
2323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2324 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2326 else
2327 if test -n "$ac_ct_CC"; then
2328 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2329 else
2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331 for as_dir in $PATH
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
2341 done
2342 done
2346 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2347 if test -n "$ac_ct_CC"; then
2348 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2349 echo "${ECHO_T}$ac_ct_CC" >&6
2350 else
2351 echo "$as_me:$LINENO: result: no" >&5
2352 echo "${ECHO_T}no" >&6
2355 test -n "$ac_ct_CC" && break
2356 done
2358 CC=$ac_ct_CC
2364 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2365 See \`config.log' for more details." >&5
2366 echo "$as_me: error: no acceptable C compiler found in \$PATH
2367 See \`config.log' for more details." >&2;}
2368 { (exit 1); exit 1; }; }
2370 # Provide some information about the compiler.
2371 echo "$as_me:$LINENO:" \
2372 "checking for C compiler version" >&5
2373 ac_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); }
2390 cat >conftest.$ac_ext <<_ACEOF
2391 /* confdefs.h. */
2392 _ACEOF
2393 cat confdefs.h >>conftest.$ac_ext
2394 cat >>conftest.$ac_ext <<_ACEOF
2395 /* end confdefs.h. */
2398 main ()
2402 return 0;
2404 _ACEOF
2405 ac_clean_files_save=$ac_clean_files
2406 ac_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.
2410 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2411 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2412 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2413 if { (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.
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.
2424 ac_cv_exeext=
2425 # b.out is created by i960 compilers.
2426 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2428 test -f "$ac_file" || continue
2429 case $ac_file in
2430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2432 conftest.$ac_ext )
2433 # This is the source file.
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;;
2447 break;;
2448 esac
2449 done
2450 else
2451 echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2454 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2455 See \`config.log' for more details." >&5
2456 echo "$as_me: error: C compiler cannot create executables
2457 See \`config.log' for more details." >&2;}
2458 { (exit 77); exit 77; }; }
2461 ac_exeext=$ac_cv_exeext
2462 echo "$as_me:$LINENO: result: $ac_file" >&5
2463 echo "${ECHO_T}$ac_file" >&6
2465 # Check the compiler produces executables we can run. If not, either
2466 # the compiler is broken, or we cross compile.
2467 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2468 echo $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.
2471 if 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.
2484 If you meant to cross compile, use \`--host'.
2485 See \`config.log' for more details." >&5
2486 echo "$as_me: error: cannot run C compiled programs.
2487 If you meant to cross compile, use \`--host'.
2488 See \`config.log' for more details." >&2;}
2489 { (exit 1); exit 1; }; }
2493 echo "$as_me:$LINENO: result: yes" >&5
2494 echo "${ECHO_T}yes" >&6
2496 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2497 ac_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.
2500 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2501 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2502 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2503 echo "${ECHO_T}$cross_compiling" >&6
2505 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2506 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2507 if { (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'.
2516 for 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
2525 done
2526 else
2527 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2528 See \`config.log' for more details." >&5
2529 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2530 See \`config.log' for more details." >&2;}
2531 { (exit 1); exit 1; }; }
2534 rm -f conftest$ac_cv_exeext
2535 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2536 echo "${ECHO_T}$ac_cv_exeext" >&6
2538 rm -f conftest.$ac_ext
2539 EXEEXT=$ac_cv_exeext
2540 ac_exeext=$EXEEXT
2541 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2542 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2543 if test "${ac_cv_objext+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2545 else
2546 cat >conftest.$ac_ext <<_ACEOF
2547 /* confdefs.h. */
2548 _ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h. */
2554 main ()
2558 return 0;
2560 _ACEOF
2561 rm -f conftest.o conftest.obj
2562 if { (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
2573 done
2574 else
2575 echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2578 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2579 See \`config.log' for more details." >&5
2580 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2581 See \`config.log' for more details." >&2;}
2582 { (exit 1); exit 1; }; }
2585 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2587 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2588 echo "${ECHO_T}$ac_cv_objext" >&6
2589 OBJEXT=$ac_cv_objext
2590 ac_objext=$OBJEXT
2591 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2592 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2593 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2595 else
2596 cat >conftest.$ac_ext <<_ACEOF
2597 /* confdefs.h. */
2598 _ACEOF
2599 cat confdefs.h >>conftest.$ac_ext
2600 cat >>conftest.$ac_ext <<_ACEOF
2601 /* end confdefs.h. */
2604 main ()
2606 #ifndef __GNUC__
2607 choke me
2608 #endif
2611 return 0;
2613 _ACEOF
2614 rm -f conftest.$ac_objext
2615 if { (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
2637 else
2638 echo "$as_me: failed program was:" >&5
2639 sed 's/^/| /' conftest.$ac_ext >&5
2641 ac_compiler_gnu=no
2643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2644 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2647 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2648 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2649 GCC=`test $ac_compiler_gnu = yes && echo yes`
2650 ac_test_CFLAGS=${CFLAGS+set}
2651 ac_save_CFLAGS=$CFLAGS
2652 CFLAGS="-g"
2653 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2654 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2655 if test "${ac_cv_prog_cc_g+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2657 else
2658 cat >conftest.$ac_ext <<_ACEOF
2659 /* confdefs.h. */
2660 _ACEOF
2661 cat confdefs.h >>conftest.$ac_ext
2662 cat >>conftest.$ac_ext <<_ACEOF
2663 /* end confdefs.h. */
2666 main ()
2670 return 0;
2672 _ACEOF
2673 rm -f conftest.$ac_objext
2674 if { (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
2696 else
2697 echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2700 ac_cv_prog_cc_g=no
2702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2704 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2705 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2706 if test "$ac_test_CFLAGS" = set; then
2707 CFLAGS=$ac_save_CFLAGS
2708 elif test $ac_cv_prog_cc_g = yes; then
2709 if test "$GCC" = yes; then
2710 CFLAGS="-g -O2"
2711 else
2712 CFLAGS="-g"
2714 else
2715 if test "$GCC" = yes; then
2716 CFLAGS="-O2"
2717 else
2718 CFLAGS=
2721 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2722 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2723 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2725 else
2726 ac_cv_prog_cc_stdc=no
2727 ac_save_CC=$CC
2728 cat >conftest.$ac_ext <<_ACEOF
2729 /* confdefs.h. */
2730 _ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>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. */
2739 struct buf { int x; };
2740 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2741 static char *e (p, i)
2742 char **p;
2743 int i;
2745 return p[i];
2747 static char *f (char * (*g) (char **, int), char **p, ...)
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;
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. */
2764 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2766 int test (int i, double x);
2767 struct s1 {int (*f) (int a);};
2768 struct s2 {int (*f) (double a);};
2769 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2770 int argc;
2771 char **argv;
2773 main ()
2775 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2777 return 0;
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__
2787 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2789 CC="$ac_save_CC $ac_arg"
2790 rm -f conftest.$ac_objext
2791 if { (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
2813 break
2814 else
2815 echo "$as_me: failed program was:" >&5
2816 sed 's/^/| /' conftest.$ac_ext >&5
2819 rm -f conftest.err conftest.$ac_objext
2820 done
2821 rm -f conftest.$ac_ext conftest.$ac_objext
2822 CC=$ac_save_CC
2826 case "x$ac_cv_prog_cc_stdc" in
2827 x|xno)
2828 echo "$as_me:$LINENO: result: none needed" >&5
2829 echo "${ECHO_T}none needed" >&6 ;;
2831 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2832 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2833 CC="$CC $ac_cv_prog_cc_stdc" ;;
2834 esac
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.
2840 cat >conftest.$ac_ext <<_ACEOF
2841 #ifndef __cplusplus
2842 choke me
2843 #endif
2844 _ACEOF
2845 rm -f conftest.$ac_objext
2846 if { (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);'
2875 cat >conftest.$ac_ext <<_ACEOF
2876 /* confdefs.h. */
2877 _ACEOF
2878 cat confdefs.h >>conftest.$ac_ext
2879 cat >>conftest.$ac_ext <<_ACEOF
2880 /* end confdefs.h. */
2881 $ac_declaration
2882 #include <stdlib.h>
2884 main ()
2886 exit (42);
2888 return 0;
2890 _ACEOF
2891 rm -f conftest.$ac_objext
2892 if { (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
2914 else
2915 echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2918 continue
2920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2921 cat >conftest.$ac_ext <<_ACEOF
2922 /* confdefs.h. */
2923 _ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2927 $ac_declaration
2929 main ()
2931 exit (42);
2933 return 0;
2935 _ACEOF
2936 rm -f conftest.$ac_objext
2937 if { (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
2959 else
2960 echo "$as_me: failed program was:" >&5
2961 sed 's/^/| /' conftest.$ac_ext >&5
2964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2965 done
2966 rm -f conftest*
2967 if test -n "$ac_declaration"; then
2968 echo '#ifdef __cplusplus' >>confdefs.h
2969 echo $ac_declaration >>confdefs.h
2970 echo '#endif' >>confdefs.h
2973 else
2974 echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2979 ac_ext=c
2980 ac_cpp='$CPP $CPPFLAGS'
2981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2984 DEPDIR="${am__leading_dot}deps"
2986 ac_config_commands="$ac_config_commands depfiles"
2989 am_make=${MAKE-make}
2990 cat > confinc << 'END'
2991 am__doit:
2992 @echo done
2993 .PHONY: am__doit
2995 # If we don't find an include directive, just comment out the code.
2996 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2997 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2998 am__include="#"
2999 am__quote=
3000 _am_result=none
3001 # First try GNU make style include.
3002 echo "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'.
3008 if 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
3013 # Now try BSD make style include.
3014 if 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
3024 echo "$as_me:$LINENO: result: $_am_result" >&5
3025 echo "${ECHO_T}$_am_result" >&6
3026 rm -f confinc confmf
3028 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3029 if test "${enable_dependency_tracking+set}" = set; then
3030 enableval="$enable_dependency_tracking"
3033 if test "x$enable_dependency_tracking" != xno; then
3034 am_depcomp="$ac_aux_dir/depcomp"
3035 AMDEPBACKSLASH='\'
3039 if test "x$enable_dependency_tracking" != xno; then
3040 AMDEP_TRUE=
3041 AMDEP_FALSE='#'
3042 else
3043 AMDEP_TRUE='#'
3044 AMDEP_FALSE=
3050 depcc="$CC" am_compiler_list=
3052 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3053 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3054 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3055 echo $ECHO_N "(cached) $ECHO_C" >&6
3056 else
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
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`
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.
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
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
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
3133 done
3135 cd ..
3136 rm -rf conftest.dir
3137 else
3138 am_cv_CC_dependencies_compiler_type=none
3142 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3143 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3144 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
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='#'
3153 else
3154 am__fastdepCC_TRUE='#'
3155 am__fastdepCC_FALSE=
3159 # We need this for older versions of Autoconf.
3161 depcc="$CC" am_compiler_list=
3163 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3164 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3165 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3167 else
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
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`
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.
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
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
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
3244 done
3246 cd ..
3247 rm -rf conftest.dir
3248 else
3249 am_cv_CC_dependencies_compiler_type=none
3253 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3254 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3255 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
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='#'
3264 else
3265 am__fastdepCC_TRUE='#'
3266 am__fastdepCC_FALSE=
3271 CCAS="$CC"
3275 # Check whether --with-binutils or --without-binutils was given.
3276 if test "${with_binutils+set}" = set; then
3277 withval="$with_binutils"
3281 if test "x$with_binutils" != x; then
3282 # Extract the first word of "ranlib", so it can be a program name with args.
3283 set dummy ranlib; ac_word=$2
3284 echo "$as_me:$LINENO: checking for $ac_word" >&5
3285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3286 if test "${ac_cv_path_RANLIB+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 else
3289 case $RANLIB in
3290 [\\/]* | ?:[\\/]*)
3291 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 as_dummy=""$with_binutils:$PATH""
3296 for as_dir in $as_dummy
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
3306 done
3307 done
3309 test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB=":"
3311 esac
3313 RANLIB=$ac_cv_path_RANLIB
3315 if test -n "$RANLIB"; then
3316 echo "$as_me:$LINENO: result: $RANLIB" >&5
3317 echo "${ECHO_T}$RANLIB" >&6
3318 else
3319 echo "$as_me:$LINENO: result: no" >&5
3320 echo "${ECHO_T}no" >&6
3323 else
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.
3326 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3327 echo "$as_me:$LINENO: checking for $ac_word" >&5
3328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3329 if test "${ac_cv_prog_RANLIB+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3331 else
3332 if test -n "$RANLIB"; then
3333 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3334 else
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 for as_dir in $PATH
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
3346 done
3347 done
3351 RANLIB=$ac_cv_prog_RANLIB
3352 if test -n "$RANLIB"; then
3353 echo "$as_me:$LINENO: result: $RANLIB" >&5
3354 echo "${ECHO_T}$RANLIB" >&6
3355 else
3356 echo "$as_me:$LINENO: result: no" >&5
3357 echo "${ECHO_T}no" >&6
3361 if 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.
3364 set dummy ranlib; ac_word=$2
3365 echo "$as_me:$LINENO: checking for $ac_word" >&5
3366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3367 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 else
3370 if test -n "$ac_ct_RANLIB"; then
3371 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3372 else
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 for as_dir in $PATH
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
3384 done
3385 done
3387 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3390 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3391 if test -n "$ac_ct_RANLIB"; then
3392 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3393 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3394 else
3395 echo "$as_me:$LINENO: result: no" >&5
3396 echo "${ECHO_T}no" >&6
3399 RANLIB=$ac_ct_RANLIB
3400 else
3401 RANLIB="$ac_cv_prog_RANLIB"
3406 # optimization flags
3407 if 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"
3415 STAGE1_CFLAGS="-O2"
3416 GRUB_CFLAGS="-O2"
3418 echo "$as_me:$LINENO: checking whether optimization for size works" >&5
3419 echo $ECHO_N "checking whether optimization for size works... $ECHO_C" >&6
3420 if test "${size_flag+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3424 saved_CFLAGS=$CFLAGS
3425 CFLAGS="-Os -g"
3426 cat >conftest.$ac_ext <<_ACEOF
3427 /* confdefs.h. */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3434 main ()
3438 return 0;
3440 _ACEOF
3441 rm -f conftest.$ac_objext
3442 if { (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
3464 else
3465 echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3468 size_flag=no
3470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3471 CFLAGS=$saved_CFLAGS
3474 echo "$as_me:$LINENO: result: $size_flag" >&5
3475 echo "${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"
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
3484 echo $ECHO_N "checking whether gcc has -fno-stack-protector... $ECHO_C" >&6
3485 if test "${no_stack_protector_flag+set}" = set; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3487 else
3489 saved_CFLAGS=$CFLAGS
3490 CFLAGS="-fno-stack-protector"
3491 cat >conftest.$ac_ext <<_ACEOF
3492 /* confdefs.h. */
3493 _ACEOF
3494 cat confdefs.h >>conftest.$ac_ext
3495 cat >>conftest.$ac_ext <<_ACEOF
3496 /* end confdefs.h. */
3499 main ()
3503 return 0;
3505 _ACEOF
3506 rm -f conftest.$ac_objext
3507 if { (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
3529 else
3530 echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3533 no_stack_protector_flag=no
3535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3536 CFLAGS=$saved_CFLAGS
3539 echo "$as_me:$LINENO: result: $no_stack_protector_flag" >&5
3540 echo "${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"
3551 # Enforce coding standards.
3552 CPPFLAGS="$CPPFLAGS -Wall -Wmissing-prototypes -Wunused -Wshadow"
3553 CPPFLAGS="$CPPFLAGS -Wpointer-arith"
3555 echo "$as_me:$LINENO: checking whether -Wundef works" >&5
3556 echo $ECHO_N "checking whether -Wundef works... $ECHO_C" >&6
3557 if test "${undef_flag+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 else
3561 saved_CPPFLAGS="$CPPFLAGS"
3562 CPPFLAGS="-Wundef"
3563 cat >conftest.$ac_ext <<_ACEOF
3564 /* confdefs.h. */
3565 _ACEOF
3566 cat confdefs.h >>conftest.$ac_ext
3567 cat >>conftest.$ac_ext <<_ACEOF
3568 /* end confdefs.h. */
3571 main ()
3575 return 0;
3577 _ACEOF
3578 rm -f conftest.$ac_objext
3579 if { (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
3601 else
3602 echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.$ac_ext >&5
3605 undef_flag=no
3607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3608 CPPFLAGS="$saved_CPPFLAGS"
3611 echo "$as_me:$LINENO: result: $undef_flag" >&5
3612 echo "${ECHO_T}$undef_flag" >&6
3614 # The options `-falign-*' are supported by gcc 3.0 or later.
3615 # Probably it is sufficient to only check for -falign-loops.
3616 echo "$as_me:$LINENO: checking whether -falign-loops works" >&5
3617 echo $ECHO_N "checking whether -falign-loops works... $ECHO_C" >&6
3618 if test "${falign_loop_flag+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3622 saved_CPPFLAGS="$CPPFLAGS"
3623 CPPFLAGS="-falign-loops=1"
3624 cat >conftest.$ac_ext <<_ACEOF
3625 /* confdefs.h. */
3626 _ACEOF
3627 cat confdefs.h >>conftest.$ac_ext
3628 cat >>conftest.$ac_ext <<_ACEOF
3629 /* end confdefs.h. */
3632 main ()
3636 return 0;
3638 _ACEOF
3639 rm -f conftest.$ac_objext
3640 if { (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
3662 else
3663 echo "$as_me: failed program was:" >&5
3664 sed 's/^/| /' conftest.$ac_ext >&5
3666 falign_loop_flag=no
3668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3669 CPPFLAGS="$saved_CPPFLAGS"
3672 echo "$as_me:$LINENO: result: $falign_loop_flag" >&5
3673 echo "${ECHO_T}$falign_loop_flag" >&6
3675 # Force no alignment to save space.
3676 if test "x$falign_loop_flag" = xyes; then
3677 CPPFLAGS="$CPPFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
3678 else
3679 CPPFLAGS="$CPPFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
3682 if test "x$undef_flag" = xyes; then
3683 CPPFLAGS="$CPPFLAGS -Wundef"
3686 if test "x$with_binutils" != x; then
3687 # Extract the first word of "objcopy", so it can be a program name with args.
3688 set dummy objcopy; ac_word=$2
3689 echo "$as_me:$LINENO: checking for $ac_word" >&5
3690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3691 if test "${ac_cv_path_OBJCOPY+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3693 else
3694 case $OBJCOPY in
3695 [\\/]* | ?:[\\/]*)
3696 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path.
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 as_dummy=""$with_binutils:$PATH""
3701 for as_dir in $as_dummy
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
3711 done
3712 done
3715 esac
3717 OBJCOPY=$ac_cv_path_OBJCOPY
3719 if test -n "$OBJCOPY"; then
3720 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
3721 echo "${ECHO_T}$OBJCOPY" >&6
3722 else
3723 echo "$as_me:$LINENO: result: no" >&5
3724 echo "${ECHO_T}no" >&6
3727 else
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.
3730 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
3731 echo "$as_me:$LINENO: checking for $ac_word" >&5
3732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3733 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
3736 if test -n "$OBJCOPY"; then
3737 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
3738 else
3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740 for as_dir in $PATH
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
3750 done
3751 done
3755 OBJCOPY=$ac_cv_prog_OBJCOPY
3756 if test -n "$OBJCOPY"; then
3757 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
3758 echo "${ECHO_T}$OBJCOPY" >&6
3759 else
3760 echo "$as_me:$LINENO: result: no" >&5
3761 echo "${ECHO_T}no" >&6
3765 if 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.
3768 set dummy objcopy; ac_word=$2
3769 echo "$as_me:$LINENO: checking for $ac_word" >&5
3770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3771 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774 if test -n "$ac_ct_OBJCOPY"; then
3775 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
3776 else
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778 for as_dir in $PATH
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
3788 done
3789 done
3793 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
3794 if test -n "$ac_ct_OBJCOPY"; then
3795 echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
3796 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6
3797 else
3798 echo "$as_me:$LINENO: result: no" >&5
3799 echo "${ECHO_T}no" >&6
3802 OBJCOPY=$ac_ct_OBJCOPY
3803 else
3804 OBJCOPY="$ac_cv_prog_OBJCOPY"
3809 # Defined in acinclude.m4.
3811 echo "$as_me:$LINENO: checking if C symbols get an underscore after compilation" >&5
3812 echo $ECHO_N "checking if C symbols get an underscore after compilation... $ECHO_C" >&6
3813 if test "${grub_cv_asm_uscore+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3815 else
3816 cat > conftest.c <<\EOF
3818 func (int *list)
3820 *list = 0;
3821 return *list;
3825 if { 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
3832 else
3833 { { echo "$as_me:$LINENO: error: ${CC-cc} failed to produce assembly code" >&5
3834 echo "$as_me: error: ${CC-cc} failed to produce assembly code" >&2;}
3835 { (exit 1); exit 1; }; }
3838 if grep _func conftest.s >/dev/null 2>&1; then
3839 grub_cv_asm_uscore=yes
3840 else
3841 grub_cv_asm_uscore=no
3844 rm -f conftest*
3848 if test "x$grub_cv_asm_uscore" = xyes; then
3850 cat >>confdefs.h <<_ACEOF
3851 #define HAVE_ASM_USCORE $grub_cv_asm_uscore
3852 _ACEOF
3856 echo "$as_me:$LINENO: result: $grub_cv_asm_uscore" >&5
3857 echo "${ECHO_T}$grub_cv_asm_uscore" >&6
3859 echo "$as_me:$LINENO: checking whether ${OBJCOPY} works for absolute addresses" >&5
3860 echo $ECHO_N "checking whether ${OBJCOPY} works for absolute addresses... $ECHO_C" >&6
3861 if test "${grub_cv_prog_objcopy_absolute+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3863 else
3864 cat > conftest.c <<\EOF
3865 void
3866 cmain (void)
3868 *((int *) 0x1000) = 2;
3872 if { (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 :
3877 else
3878 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot compile C source code" >&5
3879 echo "$as_me: error: ${CC-cc} cannot compile C source code" >&2;}
3880 { (exit 1); exit 1; }; }
3882 grub_cv_prog_objcopy_absolute=yes
3883 for 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
3892 echo "$as_me: error: ${CC-cc} cannot link at address $link_addr" >&2;}
3893 { (exit 1); exit 1; }; }
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
3903 echo "$as_me: error: ${OBJCOPY-objcopy} cannot create binary files" >&2;}
3904 { (exit 1); exit 1; }; }
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
3917 done
3918 rm -f conftest*
3921 echo "$as_me:$LINENO: result: $grub_cv_prog_objcopy_absolute" >&5
3922 echo "${ECHO_T}$grub_cv_prog_objcopy_absolute" >&6
3923 if 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
3925 echo "$as_me: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&2;}
3926 { (exit 1); exit 1; }; }
3930 echo "$as_me:$LINENO: checking whether addr32 must be in the same line as the instruction" >&5
3931 echo $ECHO_N "checking whether addr32 must be in the same line as the instruction... $ECHO_C" >&6
3932 if test "${grub_cv_asm_prefix_requirement+set}" = set; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3934 else
3935 cat > conftest.s <<\EOF
3936 .code16
3937 l1: addr32 movb %al, l1
3940 if { 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
3947 else
3948 grub_cv_asm_prefix_requirement=no
3951 rm -f conftest*
3955 if test "x$grub_cv_asm_prefix_requirement" = xyes; then
3956 grub_tmp_addr32="addr32"
3957 grub_tmp_data32="data32"
3958 else
3959 grub_tmp_addr32="addr32;"
3960 grub_tmp_data32="data32;"
3964 cat >>confdefs.h <<_ACEOF
3965 #define ADDR32 $grub_tmp_addr32
3966 _ACEOF
3969 cat >>confdefs.h <<_ACEOF
3970 #define DATA32 $grub_tmp_data32
3971 _ACEOF
3974 echo "$as_me:$LINENO: result: $grub_cv_asm_prefix_requirement" >&5
3975 echo "${ECHO_T}$grub_cv_asm_prefix_requirement" >&6
3979 echo "$as_me:$LINENO: checking for .code16 addr32 assembler support" >&5
3980 echo $ECHO_N "checking for .code16 addr32 assembler support... $ECHO_C" >&6
3981 if test "${grub_cv_asm_addr32+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 else
3984 cat > conftest.s.in <<\EOF
3985 .code16
3986 l1: @ADDR32@ movb %al, l1
3989 if test "x$grub_cv_asm_prefix_requirement" = xyes; then
3990 sed -e s/@ADDR32@/addr32/ < conftest.s.in > conftest.s
3991 else
3992 sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s
3995 if { 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
4002 else
4003 grub_cv_asm_addr32=no
4006 rm -f conftest*
4010 echo "$as_me:$LINENO: result: $grub_cv_asm_addr32" >&5
4011 echo "${ECHO_T}$grub_cv_asm_addr32" >&6
4012 if test "x$grub_cv_asm_addr32" != xyes; then
4013 { { echo "$as_me:$LINENO: error: GRUB requires GAS .code16 addr32 support; upgrade your binutils" >&5
4014 echo "$as_me: error: GRUB requires GAS .code16 addr32 support; upgrade your binutils" >&2;}
4015 { (exit 1); exit 1; }; }
4019 echo "$as_me:$LINENO: checking whether an absolute indirect call/jump must not be prefixed with an asterisk" >&5
4020 echo $ECHO_N "checking whether an absolute indirect call/jump must not be prefixed with an asterisk... $ECHO_C" >&6
4021 if test "${grub_cv_asm_absolute_without_asterisk+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4023 else
4024 cat > conftest.s <<\EOF
4025 lcall *(offset)
4026 offset:
4027 .long 0
4028 .word 0
4031 if { 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
4038 else
4039 grub_cv_asm_absolute_without_asterisk=yes
4042 rm -f conftest*
4046 if test "x$grub_cv_asm_absolute_without_asterisk" = xyes; then
4048 cat >>confdefs.h <<\_ACEOF
4049 #define ABSOLUTE_WITHOUT_ASTERISK 1
4050 _ACEOF
4054 echo "$as_me:$LINENO: result: $grub_cv_asm_absolute_without_asterisk" >&5
4055 echo "${ECHO_T}$grub_cv_asm_absolute_without_asterisk" >&6
4058 echo "$as_me:$LINENO: checking if start is defined by the compiler" >&5
4059 echo $ECHO_N "checking if start is defined by the compiler... $ECHO_C" >&6
4060 if test "${grub_cv_check_start_symbol+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 else
4063 cat >conftest.$ac_ext <<_ACEOF
4064 /* confdefs.h. */
4065 _ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h. */
4071 main ()
4073 asm ("incl start")
4075 return 0;
4077 _ACEOF
4078 rm -f conftest.$ac_objext conftest$ac_exeext
4079 if { (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
4101 else
4102 echo "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4105 grub_cv_check_start_symbol=no
4107 rm -f conftest.err conftest.$ac_objext \
4108 conftest$ac_exeext conftest.$ac_ext
4112 if test "x$grub_cv_check_start_symbol" = xyes; then
4114 cat >>confdefs.h <<\_ACEOF
4115 #define HAVE_START_SYMBOL 1
4116 _ACEOF
4120 echo "$as_me:$LINENO: result: $grub_cv_check_start_symbol" >&5
4121 echo "${ECHO_T}$grub_cv_check_start_symbol" >&6
4124 echo "$as_me:$LINENO: checking if _start is defined by the compiler" >&5
4125 echo $ECHO_N "checking if _start is defined by the compiler... $ECHO_C" >&6
4126 if test "${grub_cv_check_uscore_start_symbol+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129 cat >conftest.$ac_ext <<_ACEOF
4130 /* confdefs.h. */
4131 _ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4137 main ()
4139 asm ("incl _start")
4141 return 0;
4143 _ACEOF
4144 rm -f conftest.$ac_objext conftest$ac_exeext
4145 if { (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
4167 else
4168 echo "$as_me: failed program was:" >&5
4169 sed 's/^/| /' conftest.$ac_ext >&5
4171 grub_cv_check_uscore_start_symbol=no
4173 rm -f conftest.err conftest.$ac_objext \
4174 conftest$ac_exeext conftest.$ac_ext
4178 if test "x$grub_cv_check_uscore_start_symbol" = xyes; then
4180 cat >>confdefs.h <<\_ACEOF
4181 #define HAVE_USCORE_START_SYMBOL 1
4182 _ACEOF
4186 echo "$as_me:$LINENO: result: $grub_cv_check_uscore_start_symbol" >&5
4187 echo "${ECHO_T}$grub_cv_check_uscore_start_symbol" >&6
4189 if 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
4192 echo "$as_me: error: Neither start nor _start is defined" >&2;}
4193 { (exit 1); exit 1; }; }
4197 echo "$as_me:$LINENO: checking if __bss_start is defined by the compiler" >&5
4198 echo $ECHO_N "checking if __bss_start is defined by the compiler... $ECHO_C" >&6
4199 if test "${grub_cv_check_uscore_uscore_bss_start_symbol+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4201 else
4202 cat >conftest.$ac_ext <<_ACEOF
4203 /* confdefs.h. */
4204 _ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4210 main ()
4212 asm ("incl __bss_start")
4214 return 0;
4216 _ACEOF
4217 rm -f conftest.$ac_objext conftest$ac_exeext
4218 if { (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
4240 else
4241 echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4244 grub_cv_check_uscore_uscore_bss_start_symbol=no
4246 rm -f conftest.err conftest.$ac_objext \
4247 conftest$ac_exeext conftest.$ac_ext
4251 if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then
4253 cat >>confdefs.h <<\_ACEOF
4254 #define HAVE_USCORE_USCORE_BSS_START_SYMBOL 1
4255 _ACEOF
4259 echo "$as_me:$LINENO: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
4260 echo "${ECHO_T}$grub_cv_check_uscore_uscore_bss_start_symbol" >&6
4263 echo "$as_me:$LINENO: checking if _edata is defined by the compiler" >&5
4264 echo $ECHO_N "checking if _edata is defined by the compiler... $ECHO_C" >&6
4265 if test "${grub_cv_check_uscore_edata_symbol+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268 cat >conftest.$ac_ext <<_ACEOF
4269 /* confdefs.h. */
4270 _ACEOF
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h. */
4276 main ()
4278 asm ("incl _edata")
4280 return 0;
4282 _ACEOF
4283 rm -f conftest.$ac_objext conftest$ac_exeext
4284 if { (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
4306 else
4307 echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4310 grub_cv_check_uscore_edata_symbol=no
4312 rm -f conftest.err conftest.$ac_objext \
4313 conftest$ac_exeext conftest.$ac_ext
4317 if test "x$grub_cv_check_uscore_edata_symbol" = xyes; then
4319 cat >>confdefs.h <<\_ACEOF
4320 #define HAVE_USCORE_EDATA_SYMBOL 1
4321 _ACEOF
4325 echo "$as_me:$LINENO: result: $grub_cv_check_uscore_edata_symbol" >&5
4326 echo "${ECHO_T}$grub_cv_check_uscore_edata_symbol" >&6
4329 echo "$as_me:$LINENO: checking if edata is defined by the compiler" >&5
4330 echo $ECHO_N "checking if edata is defined by the compiler... $ECHO_C" >&6
4331 if test "${grub_cv_check_edata_symbol+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4333 else
4334 cat >conftest.$ac_ext <<_ACEOF
4335 /* confdefs.h. */
4336 _ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4342 main ()
4344 asm ("incl edata")
4346 return 0;
4348 _ACEOF
4349 rm -f conftest.$ac_objext conftest$ac_exeext
4350 if { (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
4372 else
4373 echo "$as_me: failed program was:" >&5
4374 sed 's/^/| /' conftest.$ac_ext >&5
4376 grub_cv_check_edata_symbol=no
4378 rm -f conftest.err conftest.$ac_objext \
4379 conftest$ac_exeext conftest.$ac_ext
4383 if test "x$grub_cv_check_edata_symbol" = xyes; then
4385 cat >>confdefs.h <<\_ACEOF
4386 #define HAVE_EDATA_SYMBOL 1
4387 _ACEOF
4391 echo "$as_me:$LINENO: result: $grub_cv_check_edata_symbol" >&5
4392 echo "${ECHO_T}$grub_cv_check_edata_symbol" >&6
4394 if 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
4398 echo "$as_me: error: None of __bss_start, _edata, edata defined" >&2;}
4399 { (exit 1); exit 1; }; }
4403 echo "$as_me:$LINENO: checking if end is defined by the compiler" >&5
4404 echo $ECHO_N "checking if end is defined by the compiler... $ECHO_C" >&6
4405 if test "${grub_cv_check_end_symbol+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4407 else
4408 cat >conftest.$ac_ext <<_ACEOF
4409 /* confdefs.h. */
4410 _ACEOF
4411 cat confdefs.h >>conftest.$ac_ext
4412 cat >>conftest.$ac_ext <<_ACEOF
4413 /* end confdefs.h. */
4416 main ()
4418 asm ("incl end")
4420 return 0;
4422 _ACEOF
4423 rm -f conftest.$ac_objext conftest$ac_exeext
4424 if { (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
4446 else
4447 echo "$as_me: failed program was:" >&5
4448 sed 's/^/| /' conftest.$ac_ext >&5
4450 grub_cv_check_end_symbol=no
4452 rm -f conftest.err conftest.$ac_objext \
4453 conftest$ac_exeext conftest.$ac_ext
4457 if test "x$grub_cv_check_end_symbol" = xyes; then
4459 cat >>confdefs.h <<\_ACEOF
4460 #define HAVE_END_SYMBOL 1
4461 _ACEOF
4465 echo "$as_me:$LINENO: result: $grub_cv_check_end_symbol" >&5
4466 echo "${ECHO_T}$grub_cv_check_end_symbol" >&6
4469 echo "$as_me:$LINENO: checking if _end is defined by the compiler" >&5
4470 echo $ECHO_N "checking if _end is defined by the compiler... $ECHO_C" >&6
4471 if test "${grub_cv_check_uscore_end_symbol+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 else
4474 cat >conftest.$ac_ext <<_ACEOF
4475 /* confdefs.h. */
4476 _ACEOF
4477 cat confdefs.h >>conftest.$ac_ext
4478 cat >>conftest.$ac_ext <<_ACEOF
4479 /* end confdefs.h. */
4482 main ()
4484 asm ("incl _end")
4486 return 0;
4488 _ACEOF
4489 rm -f conftest.$ac_objext conftest$ac_exeext
4490 if { (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
4512 else
4513 echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4516 grub_cv_check_uscore_end_symbol=no
4518 rm -f conftest.err conftest.$ac_objext \
4519 conftest$ac_exeext conftest.$ac_ext
4523 if test "x$grub_cv_check_uscore_end_symbol" = xyes; then
4525 cat >>confdefs.h <<\_ACEOF
4526 #define HAVE_USCORE_END_SYMBOL 1
4527 _ACEOF
4531 echo "$as_me:$LINENO: result: $grub_cv_check_uscore_end_symbol" >&5
4532 echo "${ECHO_T}$grub_cv_check_uscore_end_symbol" >&6
4534 if 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
4537 echo "$as_me: error: Neither end nor _end is defined" >&2;}
4538 { (exit 1); exit 1; }; }
4541 # Check for curses libraries.
4543 # Check whether --with-curses or --without-curses was given.
4544 if test "${with_curses+set}" = set; then
4545 withval="$with_curses"
4549 # Get the filename or the whole disk and open it.
4550 # Known to work on NetBSD.
4551 echo "$as_me:$LINENO: checking for opendisk in -lutil" >&5
4552 echo $ECHO_N "checking for opendisk in -lutil... $ECHO_C" >&6
4553 if test "${ac_cv_lib_util_opendisk+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 else
4556 ac_check_lib_save_LIBS=$LIBS
4557 LIBS="-lutil $LIBS"
4558 cat >conftest.$ac_ext <<_ACEOF
4559 /* confdefs.h. */
4560 _ACEOF
4561 cat confdefs.h >>conftest.$ac_ext
4562 cat >>conftest.$ac_ext <<_ACEOF
4563 /* end confdefs.h. */
4565 /* Override any gcc2 internal prototype to avoid an error. */
4566 #ifdef __cplusplus
4567 extern "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. */
4571 char opendisk ();
4573 main ()
4575 opendisk ();
4577 return 0;
4579 _ACEOF
4580 rm -f conftest.$ac_objext conftest$ac_exeext
4581 if { (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
4603 else
4604 echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4607 ac_cv_lib_util_opendisk=no
4609 rm -f conftest.err conftest.$ac_objext \
4610 conftest$ac_exeext conftest.$ac_ext
4611 LIBS=$ac_check_lib_save_LIBS
4613 echo "$as_me:$LINENO: result: $ac_cv_lib_util_opendisk" >&5
4614 echo "${ECHO_T}$ac_cv_lib_util_opendisk" >&6
4615 if test $ac_cv_lib_util_opendisk = yes; then
4616 GRUB_LIBS="$GRUB_LIBS -lutil"
4618 cat >>confdefs.h <<\_ACEOF
4619 #define HAVE_OPENDISK 1
4620 _ACEOF
4625 # Unless the user specify --without-curses, check for curses.
4626 if test "x$with_curses" != "xno"; then
4627 echo "$as_me:$LINENO: checking for wgetch in -lncurses" >&5
4628 echo $ECHO_N "checking for wgetch in -lncurses... $ECHO_C" >&6
4629 if test "${ac_cv_lib_ncurses_wgetch+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4631 else
4632 ac_check_lib_save_LIBS=$LIBS
4633 LIBS="-lncurses $LIBS"
4634 cat >conftest.$ac_ext <<_ACEOF
4635 /* confdefs.h. */
4636 _ACEOF
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h. */
4641 /* Override any gcc2 internal prototype to avoid an error. */
4642 #ifdef __cplusplus
4643 extern "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. */
4647 char wgetch ();
4649 main ()
4651 wgetch ();
4653 return 0;
4655 _ACEOF
4656 rm -f conftest.$ac_objext conftest$ac_exeext
4657 if { (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
4679 else
4680 echo "$as_me: failed program was:" >&5
4681 sed 's/^/| /' conftest.$ac_ext >&5
4683 ac_cv_lib_ncurses_wgetch=no
4685 rm -f conftest.err conftest.$ac_objext \
4686 conftest$ac_exeext conftest.$ac_ext
4687 LIBS=$ac_check_lib_save_LIBS
4689 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_wgetch" >&5
4690 echo "${ECHO_T}$ac_cv_lib_ncurses_wgetch" >&6
4691 if test $ac_cv_lib_ncurses_wgetch = yes; then
4692 GRUB_LIBS="$GRUB_LIBS -lncurses"
4694 cat >>confdefs.h <<\_ACEOF
4695 #define HAVE_LIBCURSES 1
4696 _ACEOF
4698 else
4699 echo "$as_me:$LINENO: checking for wgetch in -lcurses" >&5
4700 echo $ECHO_N "checking for wgetch in -lcurses... $ECHO_C" >&6
4701 if test "${ac_cv_lib_curses_wgetch+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704 ac_check_lib_save_LIBS=$LIBS
4705 LIBS="-lcurses $LIBS"
4706 cat >conftest.$ac_ext <<_ACEOF
4707 /* confdefs.h. */
4708 _ACEOF
4709 cat confdefs.h >>conftest.$ac_ext
4710 cat >>conftest.$ac_ext <<_ACEOF
4711 /* end confdefs.h. */
4713 /* Override any gcc2 internal prototype to avoid an error. */
4714 #ifdef __cplusplus
4715 extern "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. */
4719 char wgetch ();
4721 main ()
4723 wgetch ();
4725 return 0;
4727 _ACEOF
4728 rm -f conftest.$ac_objext conftest$ac_exeext
4729 if { (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
4751 else
4752 echo "$as_me: failed program was:" >&5
4753 sed 's/^/| /' conftest.$ac_ext >&5
4755 ac_cv_lib_curses_wgetch=no
4757 rm -f conftest.err conftest.$ac_objext \
4758 conftest$ac_exeext conftest.$ac_ext
4759 LIBS=$ac_check_lib_save_LIBS
4761 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_wgetch" >&5
4762 echo "${ECHO_T}$ac_cv_lib_curses_wgetch" >&6
4763 if test $ac_cv_lib_curses_wgetch = yes; then
4764 GRUB_LIBS="$GRUB_LIBS -lcurses"
4766 cat >>confdefs.h <<\_ACEOF
4767 #define HAVE_LIBCURSES 1
4768 _ACEOF
4778 # Check for headers.
4779 ac_ext=c
4780 ac_cpp='$CPP $CPPFLAGS'
4781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4784 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4785 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4786 # On Suns, sometimes $CPP names a directory.
4787 if test -n "$CPP" && test -d "$CPP"; then
4788 CPP=
4790 if test -z "$CPP"; then
4791 if test "${ac_cv_prog_CPP+set}" = set; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4793 else
4794 # Double quotes because CPP needs to be expanded
4795 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4797 ac_preproc_ok=false
4798 for ac_c_preproc_warn_flag in '' yes
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
4809 cat confdefs.h >>conftest.$ac_ext
4810 cat >>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
4819 if { (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=
4833 else
4834 ac_cpp_err=yes
4836 if test -z "$ac_cpp_err"; then
4838 else
4839 echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.$ac_ext >&5
4842 # Broken: fails on valid input.
4843 continue
4845 rm -f conftest.err conftest.$ac_ext
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
4852 cat confdefs.h >>conftest.$ac_ext
4853 cat >>conftest.$ac_ext <<_ACEOF
4854 /* end confdefs.h. */
4855 #include <ac_nonexistent.h>
4856 _ACEOF
4857 if { (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=
4871 else
4872 ac_cpp_err=yes
4874 if test -z "$ac_cpp_err"; then
4875 # Broken: success on invalid input.
4876 continue
4877 else
4878 echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4881 # Passes both tests.
4882 ac_preproc_ok=:
4883 break
4885 rm -f conftest.err conftest.$ac_ext
4887 done
4888 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4889 rm -f conftest.err conftest.$ac_ext
4890 if $ac_preproc_ok; then
4891 break
4894 done
4895 ac_cv_prog_CPP=$CPP
4898 CPP=$ac_cv_prog_CPP
4899 else
4900 ac_cv_prog_CPP=$CPP
4902 echo "$as_me:$LINENO: result: $CPP" >&5
4903 echo "${ECHO_T}$CPP" >&6
4904 ac_preproc_ok=false
4905 for ac_c_preproc_warn_flag in '' yes
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
4916 cat confdefs.h >>conftest.$ac_ext
4917 cat >>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
4926 if { (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=
4940 else
4941 ac_cpp_err=yes
4943 if test -z "$ac_cpp_err"; then
4945 else
4946 echo "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.$ac_ext >&5
4949 # Broken: fails on valid input.
4950 continue
4952 rm -f conftest.err conftest.$ac_ext
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
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4962 #include <ac_nonexistent.h>
4963 _ACEOF
4964 if { (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=
4978 else
4979 ac_cpp_err=yes
4981 if test -z "$ac_cpp_err"; then
4982 # Broken: success on invalid input.
4983 continue
4984 else
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4988 # Passes both tests.
4989 ac_preproc_ok=:
4990 break
4992 rm -f conftest.err conftest.$ac_ext
4994 done
4995 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4996 rm -f conftest.err conftest.$ac_ext
4997 if $ac_preproc_ok; then
4999 else
5000 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5001 See \`config.log' for more details." >&5
5002 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5003 See \`config.log' for more details." >&2;}
5004 { (exit 1); exit 1; }; }
5007 ac_ext=c
5008 ac_cpp='$CPP $CPPFLAGS'
5009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5014 echo "$as_me:$LINENO: checking for egrep" >&5
5015 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5016 if test "${ac_cv_prog_egrep+set}" = set; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 else
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'
5024 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5025 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5026 EGREP=$ac_cv_prog_egrep
5029 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5030 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5031 if test "${ac_cv_header_stdc+set}" = set; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5033 else
5034 cat >conftest.$ac_ext <<_ACEOF
5035 /* confdefs.h. */
5036 _ACEOF
5037 cat confdefs.h >>conftest.$ac_ext
5038 cat >>conftest.$ac_ext <<_ACEOF
5039 /* end confdefs.h. */
5040 #include <stdlib.h>
5041 #include <stdarg.h>
5042 #include <string.h>
5043 #include <float.h>
5046 main ()
5050 return 0;
5052 _ACEOF
5053 rm -f conftest.$ac_objext
5054 if { (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
5076 else
5077 echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.$ac_ext >&5
5080 ac_cv_header_stdc=no
5082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5084 if 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
5089 cat confdefs.h >>conftest.$ac_ext
5090 cat >>conftest.$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5092 #include <string.h>
5094 _ACEOF
5095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5096 $EGREP "memchr" >/dev/null 2>&1; then
5098 else
5099 ac_cv_header_stdc=no
5101 rm -f conftest*
5105 if 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
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h. */
5113 #include <stdlib.h>
5115 _ACEOF
5116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5117 $EGREP "free" >/dev/null 2>&1; then
5119 else
5120 ac_cv_header_stdc=no
5122 rm -f conftest*
5126 if 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
5130 else
5131 cat >conftest.$ac_ext <<_ACEOF
5132 /* confdefs.h. */
5133 _ACEOF
5134 cat confdefs.h >>conftest.$ac_ext
5135 cat >>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
5149 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5151 main ()
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);
5160 _ACEOF
5161 rm -f conftest$ac_exeext
5162 if { (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
5173 else
5174 echo "$as_me: program exited with status $ac_status" >&5
5175 echo "$as_me: failed program was:" >&5
5176 sed 's/^/| /' conftest.$ac_ext >&5
5178 ( exit $ac_status )
5179 ac_cv_header_stdc=no
5181 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5185 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5186 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5187 if test $ac_cv_header_stdc = yes; then
5189 cat >>confdefs.h <<\_ACEOF
5190 #define STDC_HEADERS 1
5191 _ACEOF
5195 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5205 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5206 inttypes.h stdint.h unistd.h
5208 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5209 echo "$as_me:$LINENO: checking for $ac_header" >&5
5210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5213 else
5214 cat >conftest.$ac_ext <<_ACEOF
5215 /* confdefs.h. */
5216 _ACEOF
5217 cat confdefs.h >>conftest.$ac_ext
5218 cat >>conftest.$ac_ext <<_ACEOF
5219 /* end confdefs.h. */
5220 $ac_includes_default
5222 #include <$ac_header>
5223 _ACEOF
5224 rm -f conftest.$ac_objext
5225 if { (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"
5247 else
5248 echo "$as_me: failed program was:" >&5
5249 sed 's/^/| /' conftest.$ac_ext >&5
5251 eval "$as_ac_Header=no"
5253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5257 if 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
5264 done
5272 for ac_header in string.h strings.h ncurses/curses.h ncurses.h curses.h
5274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5276 echo "$as_me:$LINENO: checking for $ac_header" >&5
5277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5283 else
5284 # Is the header compilable?
5285 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5286 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5287 cat >conftest.$ac_ext <<_ACEOF
5288 /* confdefs.h. */
5289 _ACEOF
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>conftest.$ac_ext <<_ACEOF
5292 /* end confdefs.h. */
5293 $ac_includes_default
5294 #include <$ac_header>
5295 _ACEOF
5296 rm -f conftest.$ac_objext
5297 if { (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
5319 else
5320 echo "$as_me: failed program was:" >&5
5321 sed 's/^/| /' conftest.$ac_ext >&5
5323 ac_header_compiler=no
5325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5326 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5327 echo "${ECHO_T}$ac_header_compiler" >&6
5329 # Is the header present?
5330 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5331 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5332 cat >conftest.$ac_ext <<_ACEOF
5333 /* confdefs.h. */
5334 _ACEOF
5335 cat confdefs.h >>conftest.$ac_ext
5336 cat >>conftest.$ac_ext <<_ACEOF
5337 /* end confdefs.h. */
5338 #include <$ac_header>
5339 _ACEOF
5340 if { (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=
5354 else
5355 ac_cpp_err=yes
5357 if test -z "$ac_cpp_err"; then
5358 ac_header_preproc=yes
5359 else
5360 echo "$as_me: failed program was:" >&5
5361 sed 's/^/| /' conftest.$ac_ext >&5
5363 ac_header_preproc=no
5365 rm -f conftest.err conftest.$ac_ext
5366 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5367 echo "${ECHO_T}$ac_header_preproc" >&6
5369 # So? What about this header?
5370 case $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
5373 echo "$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
5375 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5376 ac_header_preproc=yes
5378 no:yes:* )
5379 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5380 echo "$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
5382 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5383 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5384 echo "$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
5386 echo "$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
5388 echo "$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
5390 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5392 cat <<\_ASBOX
5393 ## ------------------------------- ##
5394 ## Report this to bug-grub@gnu.org ##
5395 ## ------------------------------- ##
5396 _ASBOX
5398 sed "s/^/$as_me: WARNING: /" >&2
5400 esac
5401 echo "$as_me:$LINENO: checking for $ac_header" >&5
5402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5405 else
5406 eval "$as_ac_Header=\$ac_header_preproc"
5408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5412 if 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
5419 done
5422 # Check for user options.
5424 # filesystems support.
5425 # Check whether --enable-ext2fs or --disable-ext2fs was given.
5426 if test "${enable_ext2fs+set}" = set; then
5427 enableval="$enable_ext2fs"
5431 if test x"$enable_ext2fs" != xno; then
5432 FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_EXT2FS=1"
5435 # Check whether --enable-fat or --disable-fat was given.
5436 if test "${enable_fat+set}" = set; then
5437 enableval="$enable_fat"
5441 if test x"$enable_fat" != xno; then
5442 FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_FAT=1"
5445 # Check whether --enable-ffs or --disable-ffs was given.
5446 if test "${enable_ffs+set}" = set; then
5447 enableval="$enable_ffs"
5451 if test x"$enable_ffs" != xno; then
5452 FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_FFS=1"
5455 # Check whether --enable-ufs or --disable-ufs was given.
5456 if test "${enable_ufs+set}" = set; then
5457 enableval="$enable_ufs"
5461 if test x"$enable_ufs" != xno; then
5462 FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_UFS=1"
5465 # Check whether --enable-ufs2 or --disable-ufs2 was given.
5466 if test "${enable_ufs2+set}" = set; then
5467 enableval="$enable_ufs2"
5471 if test x"$enable_ufs2" != xno; then
5472 FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_UFS2=1"
5475 # Check whether --enable-minix or --disable-minix was given.
5476 if test "${enable_minix+set}" = set; then
5477 enableval="$enable_minix"
5481 if test x"$enable_minix" != xno; then
5482 FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_MINIX=1"
5485 # Check whether --enable-reiserfs or --disable-reiserfs was given.
5486 if test "${enable_reiserfs+set}" = set; then
5487 enableval="$enable_reiserfs"
5491 if test x"$enable_reiserfs" != xno; then
5492 FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_REISERFS=1"
5495 # Check whether --enable-vstafs or --disable-vstafs was given.
5496 if test "${enable_vstafs+set}" = set; then
5497 enableval="$enable_vstafs"
5501 if test x"$enable_vstafs" != xno; then
5502 FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_VSTAFS=1"
5505 # Check whether --enable-jfs or --disable-jfs was given.
5506 if test "${enable_jfs+set}" = set; then
5507 enableval="$enable_jfs"
5511 if test x"$enable_jfs" != xno; then
5512 FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_JFS=1"
5515 # Check whether --enable-xfs or --disable-xfs was given.
5516 if test "${enable_xfs+set}" = set; then
5517 enableval="$enable_xfs"
5521 if test x"$enable_xfs" != xno; then
5522 FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_XFS=1"
5525 # Check whether --enable-zfs or --disable-zfs was given.
5526 if test "${enable_zfs+set}" = set; then
5527 enableval="$enable_zfs"
5531 if test x"$enable_zfs" != xno; then
5532 FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_ZFS=1"
5535 # Check whether --enable-iso9660 or --disable-iso9660 was given.
5536 if test "${enable_iso9660+set}" = set; then
5537 enableval="$enable_iso9660"
5541 if test x"$enable_iso9660" != xno; then
5542 FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_ISO9660=1"
5546 # Check whether --enable-gunzip or --disable-gunzip was given.
5547 if test "${enable_gunzip+set}" = set; then
5548 enableval="$enable_gunzip"
5552 if test x"$enable_gunzip" = xno; then
5553 FSYS_CFLAGS="$FSYS_CFLAGS -DNO_DECOMPRESSION=1"
5556 # Check whether --enable-md5-password or --disable-md5-password was given.
5557 if test "${enable_md5_password+set}" = set; then
5558 enableval="$enable_md5_password"
5561 if test "x$enable_md5_password" != xno; then
5562 FSYS_CFLAGS="$FSYS_CFLAGS -DUSE_MD5_PASSWORDS=1"
5565 # Check whether --enable-packet-retransmission or --disable-packet-retransmission was given.
5566 if test "${enable_packet_retransmission+set}" = set; then
5567 enableval="$enable_packet_retransmission"
5570 if test "x$enable_packet_retransmission" != xno; then
5571 NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DCONGESTED=1 -DCONFIG_PCI"
5574 # Check whether --enable-pci-direct or --disable-pci-direct was given.
5575 if test "${enable_pci_direct+set}" = set; then
5576 enableval="$enable_pci_direct"
5579 if test "x$enable_pci_direct" = xyes; then
5580 NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DCONFIG_PCI_DIRECT=1"
5583 # Check whether --enable-3c595 or --disable-3c595 was given.
5584 if test "${enable_3c595+set}" = set; then
5585 enableval="$enable_3c595"
5588 if test "x$enable_3c595" = xyes; then
5589 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_3C595=1"
5590 NETBOOT_DRIVERS="$NETBOOT_DRIVERS 3c595.o"
5593 # Check whether --enable-3c90x or --disable-3c90x was given.
5594 if test "${enable_3c90x+set}" = set; then
5595 enableval="$enable_3c90x"
5598 if test "x$enable_3c90x" = xyes; then
5599 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_3C90X=1"
5600 NETBOOT_DRIVERS="$NETBOOT_DRIVERS 3c90x.o"
5603 # Check whether --enable-davicom or --disable-davicom was given.
5604 if test "${enable_davicom+set}" = set; then
5605 enableval="$enable_davicom"
5608 if test "x$enable_davicom" = xyes; then
5609 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_DAVICOM=1"
5610 NETBOOT_DRIVERS="$NETBOOT_DRIVERS davicom.o"
5613 # Check whether --enable-e1000 or --disable-e1000 was given.
5614 if test "${enable_e1000+set}" = set; then
5615 enableval="$enable_e1000"
5618 if test "x$enable_e1000" = xyes; then
5619 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_E1000=1"
5620 NETBOOT_DRIVERS="$NETBOOT_DRIVERS e1000.o"
5623 # Check whether --enable-eepro100 or --disable-eepro100 was given.
5624 if test "${enable_eepro100+set}" = set; then
5625 enableval="$enable_eepro100"
5628 if test "x$enable_eepro100" = xyes; then
5629 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_EEPRO100=1"
5630 NETBOOT_DRIVERS="$NETBOOT_DRIVERS eepro100.o"
5633 # Check whether --enable-epic100 or --disable-epic100 was given.
5634 if test "${enable_epic100+set}" = set; then
5635 enableval="$enable_epic100"
5638 if test "x$enable_epic100" = xyes; then
5639 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_EPIC100=1"
5640 NETBOOT_DRIVERS="$NETBOOT_DRIVERS epic100.o"
5643 # Check whether --enable-forcedeth or --disable-forcedeth was given.
5644 if test "${enable_forcedeth+set}" = set; then
5645 enableval="$enable_forcedeth"
5648 if test "x$enable_forcedeth" = xyes; then
5649 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_FORCEDETH=1"
5650 NETBOOT_DRIVERS="$NETBOOT_DRIVERS forcedeth.o"
5653 # Check whether --enable-natsemi or --disable-natsemi was given.
5654 if test "${enable_natsemi+set}" = set; then
5655 enableval="$enable_natsemi"
5658 if test "x$enable_natsemi" = xyes; then
5659 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_NATSEMI=1"
5660 NETBOOT_DRIVERS="$NETBOOT_DRIVERS natsemi.o"
5663 # Check whether --enable-ns83820 or --disable-ns83820 was given.
5664 if test "${enable_ns83820+set}" = set; then
5665 enableval="$enable_ns83820"
5668 if test "x$enable_ns83820" = xyes; then
5669 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_NS83820=1"
5670 NETBOOT_DRIVERS="$NETBOOT_DRIVERS ns83820.o"
5673 # Check whether --enable-ns8390 or --disable-ns8390 was given.
5674 if test "${enable_ns8390+set}" = set; then
5675 enableval="$enable_ns8390"
5678 if test "x$enable_ns8390" = xyes; then
5679 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_NS8390=1"
5680 NETBOOT_DRIVERS="$NETBOOT_DRIVERS ns8390.o"
5683 # Check whether --enable-pcnet32 or --disable-pcnet32 was given.
5684 if test "${enable_pcnet32+set}" = set; then
5685 enableval="$enable_pcnet32"
5688 if test "x$enable_pcnet32" = xyes; then
5689 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_PCNET32=1"
5690 NETBOOT_DRIVERS="$NETBOOT_DRIVERS pcnet32.o"
5693 # Check whether --enable-pnic or --disable-pnic was given.
5694 if test "${enable_pnic+set}" = set; then
5695 enableval="$enable_pnic"
5698 if test "x$enable_pnic" = xyes; then
5699 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_PNIC=1"
5700 NETBOOT_DRIVERS="$NETBOOT_DRIVERS pnic.o"
5703 # Check whether --enable-rtl8139 or --disable-rtl8139 was given.
5704 if test "${enable_rtl8139+set}" = set; then
5705 enableval="$enable_rtl8139"
5708 if test "x$enable_rtl8139" = xyes; then
5709 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_RTL8139=1"
5710 NETBOOT_DRIVERS="$NETBOOT_DRIVERS rtl8139.o"
5713 # Check whether --enable-r8169 or --disable-r8169 was given.
5714 if test "${enable_r8169+set}" = set; then
5715 enableval="$enable_r8169"
5718 if test "x$enable_r8169" = xyes; then
5719 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_R8169=1"
5720 NETBOOT_DRIVERS="$NETBOOT_DRIVERS r8169.o"
5723 # Check whether --enable-sis900 or --disable-sis900 was given.
5724 if test "${enable_sis900+set}" = set; then
5725 enableval="$enable_sis900"
5728 if test "x$enable_sis900" = xyes; then
5729 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_SIS900=1"
5730 NETBOOT_DRIVERS="$NETBOOT_DRIVERS sis900.o"
5733 # Check whether --enable-sundance or --disable-sundance was given.
5734 if test "${enable_sundance+set}" = set; then
5735 enableval="$enable_sundance"
5738 if test "x$enable_sundance" = xyes; then
5739 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_SUNDANCE=1"
5740 NETBOOT_DRIVERS="$NETBOOT_DRIVERS sundance.o"
5743 # Check whether --enable-tg3 or --disable-tg3 was given.
5744 if test "${enable_tg3+set}" = set; then
5745 enableval="$enable_tg3"
5748 if test "x$enable_tg3" = xyes; then
5749 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_TG3=1"
5750 NETBOOT_DRIVERS="$NETBOOT_DRIVERS tg3.o"
5753 # Check whether --enable-tulip or --disable-tulip was given.
5754 if test "${enable_tulip+set}" = set; then
5755 enableval="$enable_tulip"
5758 if test "x$enable_tulip" = xyes; then
5759 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_TULIP=1"
5760 NETBOOT_DRIVERS="$NETBOOT_DRIVERS tulip.o"
5763 # Check whether --enable-tlan or --disable-tlan was given.
5764 if test "${enable_tlan+set}" = set; then
5765 enableval="$enable_tlan"
5768 if test "x$enable_tlan" = xyes; then
5769 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_TLAN=1"
5770 NETBOOT_DRIVERS="$NETBOOT_DRIVERS tlan.o"
5773 # Check whether --enable-undi or --disable-undi was given.
5774 if test "${enable_undi+set}" = set; then
5775 enableval="$enable_undi"
5778 if test "x$enable_undi" = xyes; then
5779 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_UNDI=1"
5780 NETBOOT_DRIVERS="$NETBOOT_DRIVERS undi.o"
5783 # Check whether --enable-via-rhine or --disable-via-rhine was given.
5784 if test "${enable_via_rhine+set}" = set; then
5785 enableval="$enable_via_rhine"
5788 if test "x$enable_via_rhine" = xyes; then
5789 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_VIA_RHINE=1"
5790 NETBOOT_DRIVERS="$NETBOOT_DRIVERS via_rhine.o"
5793 # Check whether --enable-w89c840 or --disable-w89c840 was given.
5794 if test "${enable_w89c840+set}" = set; then
5795 enableval="$enable_w89c840"
5798 if test "x$enable_w89c840" = xyes; then
5799 NET_CFLAGS="$NET_CFLAGS -DINCLUDE_W89C840=1"
5800 NETBOOT_DRIVERS="$NETBOOT_DRIVERS w89c840.o"
5805 if test "x$NET_CFLAGS" != x; then
5806 NETBOOT_SUPPORT_TRUE=
5807 NETBOOT_SUPPORT_FALSE='#'
5808 else
5809 NETBOOT_SUPPORT_TRUE='#'
5810 NETBOOT_SUPPORT_FALSE=
5813 if test "x$NET_CFLAGS" != x; then
5814 FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_TFTP=1"
5817 # Check whether --enable-compex-rl2000-fix or --disable-compex-rl2000-fix was given.
5818 if test "${enable_compex_rl2000_fix+set}" = set; then
5819 enableval="$enable_compex_rl2000_fix"
5822 if test "x$enable_compex_rl2000_fix" = xyes; then
5823 NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DCOMPEX_RL2000_FIX=1"
5826 # Check whether --enable-ne-scan or --disable-ne-scan was given.
5827 if test "${enable_ne_scan+set}" = set; then
5828 enableval="$enable_ne_scan"
5829 NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DNE_SCAN=$enable_ne_scan"
5830 else
5831 NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DNE_SCAN=0x280,0x300,0x320,0x340"
5834 # Check whether --enable-wd-default-mem or --disable-wd-default-mem was given.
5835 if 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"
5838 else
5839 NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DWD_DEFAULT_MEM=0xCC000"
5842 # Check whether --enable-diskless or --disable-diskless was given.
5843 if test "${enable_diskless+set}" = set; then
5844 enableval="$enable_diskless"
5849 if test "x$enable_diskless" = xyes; then
5850 DISKLESS_SUPPORT_TRUE=
5851 DISKLESS_SUPPORT_FALSE='#'
5852 else
5853 DISKLESS_SUPPORT_TRUE='#'
5854 DISKLESS_SUPPORT_FALSE=
5858 # Check whether --enable-graphics or --disable-graphics was given.
5859 if test "${enable_graphics+set}" = set; then
5860 enableval="$enable_graphics"
5865 if test "x$enable_graphics" != xno; then
5866 GRAPHICS_SUPPORT_TRUE=
5867 GRAPHICS_SUPPORT_FALSE='#'
5868 else
5869 GRAPHICS_SUPPORT_TRUE='#'
5870 GRAPHICS_SUPPORT_FALSE=
5874 # Check whether --enable-hercules or --disable-hercules was given.
5875 if test "${enable_hercules+set}" = set; then
5876 enableval="$enable_hercules"
5881 if test "x$enable_hercules" != xno; then
5882 HERCULES_SUPPORT_TRUE=
5883 HERCULES_SUPPORT_FALSE='#'
5884 else
5885 HERCULES_SUPPORT_TRUE='#'
5886 HERCULES_SUPPORT_FALSE=
5890 # Check whether --enable-serial or --disable-serial was given.
5891 if test "${enable_serial+set}" = set; then
5892 enableval="$enable_serial"
5897 if test "x$enable_serial" != xno; then
5898 SERIAL_SUPPORT_TRUE=
5899 SERIAL_SUPPORT_FALSE='#'
5900 else
5901 SERIAL_SUPPORT_TRUE='#'
5902 SERIAL_SUPPORT_FALSE=
5906 # Check whether --enable-serial-speed-simulation or --disable-serial-speed-simulation was given.
5907 if test "${enable_serial_speed_simulation+set}" = set; then
5908 enableval="$enable_serial_speed_simulation"
5913 if test "x$enable_serial_speed_simulation" = xyes; then
5914 SERIAL_SPEED_SIMULATION_TRUE=
5915 SERIAL_SPEED_SIMULATION_FALSE='#'
5916 else
5917 SERIAL_SPEED_SIMULATION_TRUE='#'
5918 SERIAL_SPEED_SIMULATION_FALSE=
5922 # Sanity check.
5923 if 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
5926 echo "$as_me: error: You must enable at least one network driver" >&2;}
5927 { (exit 1); exit 1; }; }
5931 # Check whether --enable-preset-menu or --disable-preset-menu was given.
5932 if test "${enable_preset_menu+set}" = set; then
5933 enableval="$enable_preset_menu"
5936 if test "x$enable_preset_menu" = x; then
5938 else
5939 if test -r $enable_preset_menu; then
5941 # Because early versions of GNU sed 3.x are too buggy, use a C program
5942 # instead of shell commands. *sigh*
5943 cat >conftest.c <<\EOF
5944 #include <stdio.h>
5947 main (void)
5949 int c;
5951 while ((c = getchar ()) != EOF)
5953 switch (c)
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);
5972 return 0;
5976 if { 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"`
5983 else
5984 { { echo "$as_me:$LINENO: error: ${CC-cc} failed to produce an executable file" >&5
5985 echo "$as_me: error: ${CC-cc} failed to produce an executable file" >&2;}
5986 { (exit 1); exit 1; }; }
5990 cat >>confdefs.h <<_ACEOF
5991 #define PRESET_MENU_STRING "$grub_tmp_value"
5992 _ACEOF
5994 rm -f conftest*
5996 else
5997 { { echo "$as_me:$LINENO: error: Cannot read the preset menu file $enable_preset_menu" >&5
5998 echo "$as_me: error: Cannot read the preset menu file $enable_preset_menu" >&2;}
5999 { (exit 1); exit 1; }; }
6003 # Check whether --enable-example-kernel or --disable-example-kernel was given.
6004 if test "${enable_example_kernel+set}" = set; then
6005 enableval="$enable_example_kernel"
6010 if test "x$enable_example_kernel" = xyes; then
6011 BUILD_EXAMPLE_KERNEL_TRUE=
6012 BUILD_EXAMPLE_KERNEL_FALSE='#'
6013 else
6014 BUILD_EXAMPLE_KERNEL_TRUE='#'
6015 BUILD_EXAMPLE_KERNEL_FALSE=
6019 # Check whether --enable-auto-linux-mem-opt or --disable-auto-linux-mem-opt was given.
6020 if test "${enable_auto_linux_mem_opt+set}" = set; then
6021 enableval="$enable_auto_linux_mem_opt"
6024 if test "x$enable_auto_linux_mem_opt" = xno; then
6026 else
6028 cat >>confdefs.h <<\_ACEOF
6029 #define AUTO_LINUX_MEM_OPT 1
6030 _ACEOF
6039 CCASFLAGS='$(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)'
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"
6045 cat >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.
6052 # config.status only pays attention to the cache file if you give it
6053 # the --recheck option to rerun configure.
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.
6059 _ACEOF
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.
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"
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"
6081 esac;
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
6090 if 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"
6098 rm -f confcache
6100 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6101 # Let make expand exec_prefix.
6102 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
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).
6108 if test "x$srcdir" = x.; then
6109 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6110 s/:*\$(srcdir):*/:/;
6111 s/:*\${srcdir}:*/:/;
6112 s/:*@srcdir@:*/:/;
6113 s/^\([^=]*=[ ]*\):*/\1/;
6114 s/:*$//;
6115 s/^[^=]*=[ ]*$//;
6119 DEFS=-DHAVE_CONFIG_H
6121 ac_libobjs=
6122 ac_ltlibobjs=
6123 for 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'
6130 done
6131 LIBOBJS=$ac_libobjs
6133 LTLIBOBJS=$ac_ltlibobjs
6136 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6137 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
6138 Usually this means the macro was only invoked conditionally." >&5
6139 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
6140 Usually this means the macro was only invoked conditionally." >&2;}
6141 { (exit 1); exit 1; }; }
6143 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6144 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6145 Usually this means the macro was only invoked conditionally." >&5
6146 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6147 Usually this means the macro was only invoked conditionally." >&2;}
6148 { (exit 1); exit 1; }; }
6150 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6151 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6152 Usually this means the macro was only invoked conditionally." >&5
6153 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6154 Usually this means the macro was only invoked conditionally." >&2;}
6155 { (exit 1); exit 1; }; }
6157 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6158 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6159 Usually this means the macro was only invoked conditionally." >&5
6160 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6161 Usually this means the macro was only invoked conditionally." >&2;}
6162 { (exit 1); exit 1; }; }
6164 if test -z "${NETBOOT_SUPPORT_TRUE}" && test -z "${NETBOOT_SUPPORT_FALSE}"; then
6165 { { echo "$as_me:$LINENO: error: conditional \"NETBOOT_SUPPORT\" was never defined.
6166 Usually this means the macro was only invoked conditionally." >&5
6167 echo "$as_me: error: conditional \"NETBOOT_SUPPORT\" was never defined.
6168 Usually this means the macro was only invoked conditionally." >&2;}
6169 { (exit 1); exit 1; }; }
6171 if test -z "${DISKLESS_SUPPORT_TRUE}" && test -z "${DISKLESS_SUPPORT_FALSE}"; then
6172 { { echo "$as_me:$LINENO: error: conditional \"DISKLESS_SUPPORT\" was never defined.
6173 Usually this means the macro was only invoked conditionally." >&5
6174 echo "$as_me: error: conditional \"DISKLESS_SUPPORT\" was never defined.
6175 Usually this means the macro was only invoked conditionally." >&2;}
6176 { (exit 1); exit 1; }; }
6178 if test -z "${GRAPHICS_SUPPORT_TRUE}" && test -z "${GRAPHICS_SUPPORT_FALSE}"; then
6179 { { echo "$as_me:$LINENO: error: conditional \"GRAPHICS_SUPPORT\" was never defined.
6180 Usually this means the macro was only invoked conditionally." >&5
6181 echo "$as_me: error: conditional \"GRAPHICS_SUPPORT\" was never defined.
6182 Usually this means the macro was only invoked conditionally." >&2;}
6183 { (exit 1); exit 1; }; }
6185 if test -z "${HERCULES_SUPPORT_TRUE}" && test -z "${HERCULES_SUPPORT_FALSE}"; then
6186 { { echo "$as_me:$LINENO: error: conditional \"HERCULES_SUPPORT\" was never defined.
6187 Usually this means the macro was only invoked conditionally." >&5
6188 echo "$as_me: error: conditional \"HERCULES_SUPPORT\" was never defined.
6189 Usually this means the macro was only invoked conditionally." >&2;}
6190 { (exit 1); exit 1; }; }
6192 if test -z "${SERIAL_SUPPORT_TRUE}" && test -z "${SERIAL_SUPPORT_FALSE}"; then
6193 { { echo "$as_me:$LINENO: error: conditional \"SERIAL_SUPPORT\" was never defined.
6194 Usually this means the macro was only invoked conditionally." >&5
6195 echo "$as_me: error: conditional \"SERIAL_SUPPORT\" was never defined.
6196 Usually this means the macro was only invoked conditionally." >&2;}
6197 { (exit 1); exit 1; }; }
6199 if 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.
6201 Usually this means the macro was only invoked conditionally." >&5
6202 echo "$as_me: error: conditional \"SERIAL_SPEED_SIMULATION\" was never defined.
6203 Usually this means the macro was only invoked conditionally." >&2;}
6204 { (exit 1); exit 1; }; }
6206 if 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.
6208 Usually this means the macro was only invoked conditionally." >&5
6209 echo "$as_me: error: conditional \"BUILD_EXAMPLE_KERNEL\" was never defined.
6210 Usually this means the macro was only invoked conditionally." >&2;}
6211 { (exit 1); exit 1; }; }
6214 : ${CONFIG_STATUS=./config.status}
6215 ac_clean_files_save=$ac_clean_files
6216 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6217 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6218 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6219 cat >$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.
6226 debug=false
6227 ac_cs_recheck=false
6228 ac_cs_silent=false
6229 SHELL=\${CONFIG_SHELL-$SHELL}
6230 _ACEOF
6232 cat >>$CONFIG_STATUS <<\_ACEOF
6233 ## --------------------- ##
6234 ## M4sh Initialization. ##
6235 ## --------------------- ##
6237 # Be Bourne compatible
6238 if 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+"$@"}'='"$@"'
6244 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6245 set -o posix
6247 DUALCASE=1; export DUALCASE # for MKS sh
6249 # Support unset when possible.
6250 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6251 as_unset=unset
6252 else
6253 as_unset=false
6257 # Work around bugs in pre-3.0 UWIN ksh.
6258 $as_unset ENV MAIL MAILPATH
6259 PS1='$ '
6260 PS2='> '
6261 PS4='+ '
6263 # NLS nuisances.
6264 for 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
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
6274 done
6276 # Required to use basename.
6277 if expr a : '\(a\)' >/dev/null 2>&1; then
6278 as_expr=expr
6279 else
6280 as_expr=false
6283 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6284 as_basename=basename
6285 else
6286 as_basename=false
6290 # Name of the executable.
6291 as_me=`$as_basename "$0" ||
6292 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6293 X"$0" : 'X\(//\)$' \| \
6294 X"$0" : 'X\(/\)$' \| \
6295 . : '\(.\)' 2>/dev/null ||
6296 echo X/"$0" |
6297 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6298 /^X\/\(\/\/\)$/{ s//\1/; q; }
6299 /^X\/\(\/\).*/{ s//\1/; q; }
6300 s/.*/./; q'`
6303 # PATH needs CR, and LINENO needs CR and PATH.
6304 # Avoid depending upon Character Ranges.
6305 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6306 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6307 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6308 as_cr_digits='0123456789'
6309 as_cr_alnum=$as_cr_Letters$as_cr_digits
6311 # The user is always right.
6312 if 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=:
6321 rm -f conf$$.sh
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
6335 for as_dir in $PATH
6337 IFS=$as_save_IFS
6338 test -z "$as_dir" && as_dir=.
6339 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6340 done
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
6349 if test ! -f "$as_myself"; then
6350 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6351 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6352 { (exit 1); exit 1; }; }
6354 case $CONFIG_SHELL in
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
6378 done
6380 esac
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 '
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
6402 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6403 { (exit 1); exit 1; }; }
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
6414 case `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= ;;
6419 esac
6421 if expr a : '\(a\)' >/dev/null 2>&1; then
6422 as_expr=expr
6423 else
6424 as_expr=false
6427 rm -f conf$$ conf$$.exe conf$$.file
6428 echo >conf$$.file
6429 if 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'
6438 elif ln conf$$.file conf$$ 2>/dev/null; then
6439 as_ln_s=ln
6440 else
6441 as_ln_s='cp -p'
6443 rm -f conf$$ conf$$.exe conf$$.file
6445 if mkdir -p . 2>/dev/null; then
6446 as_mkdir_p=:
6447 else
6448 test -d ./-p && rmdir ./-p
6449 as_mkdir_p=false
6452 as_executable_p="test -f"
6454 # Sed expression to map a string onto a valid CPP name.
6455 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6457 # Sed expression to map a string onto a valid variable name.
6458 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6461 # IFS
6462 # We need space, tab and new line, in precisely that order.
6463 as_nl='
6465 IFS=" $as_nl"
6467 # CDPATH.
6468 $as_unset CDPATH
6470 exec 6>&1
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.
6475 exec 5>>config.log
6477 echo
6478 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6479 ## Running $as_me. ##
6480 _ASBOX
6481 } >&5
6482 cat >&5 <<_CSEOF
6484 This file was extended by GRUB $as_me 0.97, which was
6485 generated by GNU Autoconf 2.59. Invocation command line was
6487 CONFIG_FILES = $CONFIG_FILES
6488 CONFIG_HEADERS = $CONFIG_HEADERS
6489 CONFIG_LINKS = $CONFIG_LINKS
6490 CONFIG_COMMANDS = $CONFIG_COMMANDS
6491 $ $0 $@
6493 _CSEOF
6494 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6495 echo >&5
6496 _ACEOF
6498 # Files that config.status was made for.
6499 if test -n "$ac_config_files"; then
6500 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6503 if test -n "$ac_config_headers"; then
6504 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6507 if test -n "$ac_config_links"; then
6508 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6511 if test -n "$ac_config_commands"; then
6512 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6515 cat >>$CONFIG_STATUS <<\_ACEOF
6517 ac_cs_usage="\
6518 \`$as_me' instantiates files from templates according to the
6519 current configuration.
6521 Usage: $0 [OPTIONS] [FILE]...
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
6533 Configuration files:
6534 $config_files
6536 Configuration headers:
6537 $config_headers
6539 Configuration commands:
6540 $config_commands
6542 Report bugs to <bug-autoconf@gnu.org>."
6543 _ACEOF
6545 cat >>$CONFIG_STATUS <<_ACEOF
6546 ac_cs_version="\\
6547 GRUB config.status 0.97
6548 configured by $0, generated by GNU Autoconf 2.59,
6549 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6551 Copyright (C) 2003 Free Software Foundation, Inc.
6552 This config.status script is free software; the Free Software Foundation
6553 gives unlimited permission to copy, distribute and modify it."
6554 srcdir=$srcdir
6555 INSTALL="$INSTALL"
6556 _ACEOF
6558 cat >>$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.
6561 ac_need_defaults=:
6562 while test $# != 0
6564 case $1 in
6565 --*=*)
6566 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6567 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6568 ac_shift=:
6571 ac_option=$1
6572 ac_optarg=$2
6573 ac_shift=shift
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
6581 case $ac_option in
6582 # Handling of the options.
6583 _ACEOF
6584 cat >>$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
6592 Try \`$0 --help' for more information." >&5
6593 echo "$as_me: error: ambiguous option: $1
6594 Try \`$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=: ;;
6612 # This is an error.
6613 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6614 Try \`$0 --help' for more information." >&5
6615 echo "$as_me: error: unrecognized option: $1
6616 Try \`$0 --help' for more information." >&2;}
6617 { (exit 1); exit 1; }; } ;;
6619 *) ac_config_targets="$ac_config_targets $1" ;;
6621 esac
6622 shift
6623 done
6625 ac_configure_extra_args=
6627 if $ac_cs_silent; then
6628 exec 6>/dev/null
6629 ac_configure_extra_args="$ac_configure_extra_args --silent"
6632 _ACEOF
6633 cat >>$CONFIG_STATUS <<_ACEOF
6634 if \$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
6639 _ACEOF
6641 cat >>$CONFIG_STATUS <<_ACEOF
6643 # INIT-COMMANDS section.
6646 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6648 _ACEOF
6652 cat >>$CONFIG_STATUS <<\_ACEOF
6653 for ac_config_target in $ac_config_targets
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
6673 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6674 { (exit 1); exit 1; }; };;
6675 esac
6676 done
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.
6682 if $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
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 ||
6694 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6695 trap '{ (exit 1); exit 1; }' 1 2 13 15
6698 # Create a (secure) tmp directory for tmp files.
6701 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6702 test -n "$tmp" && test -d "$tmp"
6703 } ||
6705 tmp=./confstat$$-$RANDOM
6706 (umask 077 && mkdir $tmp)
6707 } ||
6709 echo "$me: cannot create a temporary directory in ." >&2
6710 { (exit 1); exit 1; }
6713 _ACEOF
6715 cat >>$CONFIG_STATUS <<_ACEOF
6718 # CONFIG_FILES section.
6721 # No need to generate the scripts if there are no CONFIG_FILES.
6722 # This happens for instance when ./config.status config.h
6723 if 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
6727 s,@SHELL@,$SHELL,;t t
6728 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6729 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6730 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6731 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6732 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6733 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6734 s,@exec_prefix@,$exec_prefix,;t t
6735 s,@prefix@,$prefix,;t t
6736 s,@program_transform_name@,$program_transform_name,;t t
6737 s,@bindir@,$bindir,;t t
6738 s,@sbindir@,$sbindir,;t t
6739 s,@libexecdir@,$libexecdir,;t t
6740 s,@datadir@,$datadir,;t t
6741 s,@sysconfdir@,$sysconfdir,;t t
6742 s,@sharedstatedir@,$sharedstatedir,;t t
6743 s,@localstatedir@,$localstatedir,;t t
6744 s,@libdir@,$libdir,;t t
6745 s,@includedir@,$includedir,;t t
6746 s,@oldincludedir@,$oldincludedir,;t t
6747 s,@infodir@,$infodir,;t t
6748 s,@mandir@,$mandir,;t t
6749 s,@build_alias@,$build_alias,;t t
6750 s,@host_alias@,$host_alias,;t t
6751 s,@target_alias@,$target_alias,;t t
6752 s,@DEFS@,$DEFS,;t t
6753 s,@ECHO_C@,$ECHO_C,;t t
6754 s,@ECHO_N@,$ECHO_N,;t t
6755 s,@ECHO_T@,$ECHO_T,;t t
6756 s,@LIBS@,$LIBS,;t t
6757 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6758 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6759 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6760 s,@CYGPATH_W@,$CYGPATH_W,;t t
6761 s,@PACKAGE@,$PACKAGE,;t t
6762 s,@VERSION@,$VERSION,;t t
6763 s,@ACLOCAL@,$ACLOCAL,;t t
6764 s,@AUTOCONF@,$AUTOCONF,;t t
6765 s,@AUTOMAKE@,$AUTOMAKE,;t t
6766 s,@AUTOHEADER@,$AUTOHEADER,;t t
6767 s,@MAKEINFO@,$MAKEINFO,;t t
6768 s,@install_sh@,$install_sh,;t t
6769 s,@STRIP@,$STRIP,;t t
6770 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6771 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6772 s,@mkdir_p@,$mkdir_p,;t t
6773 s,@AWK@,$AWK,;t t
6774 s,@SET_MAKE@,$SET_MAKE,;t t
6775 s,@am__leading_dot@,$am__leading_dot,;t t
6776 s,@AMTAR@,$AMTAR,;t t
6777 s,@am__tar@,$am__tar,;t t
6778 s,@am__untar@,$am__untar,;t t
6779 s,@build@,$build,;t t
6780 s,@build_cpu@,$build_cpu,;t t
6781 s,@build_vendor@,$build_vendor,;t t
6782 s,@build_os@,$build_os,;t t
6783 s,@host@,$host,;t t
6784 s,@host_cpu@,$host_cpu,;t t
6785 s,@host_vendor@,$host_vendor,;t t
6786 s,@host_os@,$host_os,;t t
6787 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6788 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6789 s,@MAINT@,$MAINT,;t t
6790 s,@PERL@,$PERL,;t t
6791 s,@CC@,$CC,;t t
6792 s,@ac_ct_CC@,$ac_ct_CC,;t t
6793 s,@CFLAGS@,$CFLAGS,;t t
6794 s,@LDFLAGS@,$LDFLAGS,;t t
6795 s,@CPPFLAGS@,$CPPFLAGS,;t t
6796 s,@EXEEXT@,$EXEEXT,;t t
6797 s,@OBJEXT@,$OBJEXT,;t t
6798 s,@DEPDIR@,$DEPDIR,;t t
6799 s,@am__include@,$am__include,;t t
6800 s,@am__quote@,$am__quote,;t t
6801 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6802 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6803 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6804 s,@CCDEPMODE@,$CCDEPMODE,;t t
6805 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
6806 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
6807 s,@CCAS@,$CCAS,;t t
6808 s,@RANLIB@,$RANLIB,;t t
6809 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6810 s,@STAGE1_CFLAGS@,$STAGE1_CFLAGS,;t t
6811 s,@STAGE2_CFLAGS@,$STAGE2_CFLAGS,;t t
6812 s,@GRUB_CFLAGS@,$GRUB_CFLAGS,;t t
6813 s,@OBJCOPY@,$OBJCOPY,;t t
6814 s,@ac_ct_OBJCOPY@,$ac_ct_OBJCOPY,;t t
6815 s,@GRUB_LIBS@,$GRUB_LIBS,;t t
6816 s,@CPP@,$CPP,;t t
6817 s,@EGREP@,$EGREP,;t t
6818 s,@NETBOOT_SUPPORT_TRUE@,$NETBOOT_SUPPORT_TRUE,;t t
6819 s,@NETBOOT_SUPPORT_FALSE@,$NETBOOT_SUPPORT_FALSE,;t t
6820 s,@DISKLESS_SUPPORT_TRUE@,$DISKLESS_SUPPORT_TRUE,;t t
6821 s,@DISKLESS_SUPPORT_FALSE@,$DISKLESS_SUPPORT_FALSE,;t t
6822 s,@GRAPHICS_SUPPORT_TRUE@,$GRAPHICS_SUPPORT_TRUE,;t t
6823 s,@GRAPHICS_SUPPORT_FALSE@,$GRAPHICS_SUPPORT_FALSE,;t t
6824 s,@HERCULES_SUPPORT_TRUE@,$HERCULES_SUPPORT_TRUE,;t t
6825 s,@HERCULES_SUPPORT_FALSE@,$HERCULES_SUPPORT_FALSE,;t t
6826 s,@SERIAL_SUPPORT_TRUE@,$SERIAL_SUPPORT_TRUE,;t t
6827 s,@SERIAL_SUPPORT_FALSE@,$SERIAL_SUPPORT_FALSE,;t t
6828 s,@SERIAL_SPEED_SIMULATION_TRUE@,$SERIAL_SPEED_SIMULATION_TRUE,;t t
6829 s,@SERIAL_SPEED_SIMULATION_FALSE@,$SERIAL_SPEED_SIMULATION_FALSE,;t t
6830 s,@BUILD_EXAMPLE_KERNEL_TRUE@,$BUILD_EXAMPLE_KERNEL_TRUE,;t t
6831 s,@BUILD_EXAMPLE_KERNEL_FALSE@,$BUILD_EXAMPLE_KERNEL_FALSE,;t t
6832 s,@FSYS_CFLAGS@,$FSYS_CFLAGS,;t t
6833 s,@NET_CFLAGS@,$NET_CFLAGS,;t t
6834 s,@NET_EXTRAFLAGS@,$NET_EXTRAFLAGS,;t t
6835 s,@NETBOOT_DRIVERS@,$NETBOOT_DRIVERS,;t t
6836 s,@CCASFLAGS@,$CCASFLAGS,;t t
6837 s,@LIBOBJS@,$LIBOBJS,;t t
6838 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6839 CEOF
6841 _ACEOF
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
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"
6872 ac_sed_frag=`expr $ac_sed_frag + 1`
6873 ac_beg=$ac_end
6874 ac_end=`expr $ac_end + $ac_max_sed_lines`
6876 done
6877 if test -z "$ac_sed_cmds"; then
6878 ac_sed_cmds=cat
6880 fi # test -n "$CONFIG_FILES"
6882 _ACEOF
6883 cat >>$CONFIG_STATUS <<\_ACEOF
6884 for 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
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 ||
6903 echo 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 ||
6922 echo 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
6931 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6932 { (exit 1); exit 1; }; }; }
6934 ac_builddir=.
6936 if 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'`
6940 else
6941 ac_dir_suffix= ac_top_builddir=
6944 case $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 ;;
6958 esac
6960 # Do not use `cd foo && pwd` to compute absolute paths, because
6961 # the directories may not exist.
6962 case `pwd` in
6963 .) ac_abs_builddir="$ac_dir";;
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;;
6970 esac
6971 case $ac_abs_builddir in
6972 .) ac_abs_top_builddir=${ac_top_builddir}.;;
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;;
6979 esac
6980 case $ac_abs_builddir in
6981 .) ac_abs_srcdir=$ac_srcdir;;
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;;
6988 esac
6989 case $ac_abs_builddir in
6990 .) ac_abs_top_srcdir=$ac_top_srcdir;;
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;;
6997 esac
7000 case $INSTALL in
7001 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7002 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7003 esac
7005 if test x"$ac_file" != x-; then
7006 { echo "$as_me:$LINENO: creating $ac_file" >&5
7007 echo "$as_me: creating $ac_file" >&6;}
7008 rm -f "$ac_file"
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. "
7018 configure_input=$configure_input"Generated from `echo $ac_file_in |
7019 sed 's,.*/,,'` by configure."
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
7030 echo "$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
7043 echo "$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
7049 cat >>$CONFIG_STATUS <<_ACEOF
7050 sed "$ac_vpsub
7051 $extrasub
7052 _ACEOF
7053 cat >>$CONFIG_STATUS <<\_ACEOF
7055 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7056 s,@configure_input@,$configure_input,;t t
7057 s,@srcdir@,$ac_srcdir,;t t
7058 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7059 s,@top_srcdir@,$ac_top_srcdir,;t t
7060 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7061 s,@builddir@,$ac_builddir,;t t
7062 s,@abs_builddir@,$ac_abs_builddir,;t t
7063 s,@top_builddir@,$ac_top_builddir,;t t
7064 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7065 s,@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
7075 done
7076 _ACEOF
7077 cat >>$CONFIG_STATUS <<\_ACEOF
7080 # CONFIG_HEADER section.
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.
7086 # ac_d sets the value in "#define NAME VALUE" lines.
7087 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7088 ac_dB='[ ].*$,\1#\2'
7089 ac_dC=' '
7090 ac_dD=',;t'
7091 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7092 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7093 ac_uB='$,\1#\2define\3'
7094 ac_uC=' '
7095 ac_uD=',;t'
7097 for 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
7109 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7110 echo "$as_me: creating $ac_file" >&6;}
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
7121 echo "$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
7135 echo "$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
7143 _ACEOF
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.
7152 rm -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.
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'.
7159 cat >confdef2sed.sed <<\_ACEOF
7160 s/[\\&,]/\\&/g
7161 s,[\\$`],\\&,g
7162 t clear
7163 : clear
7164 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7165 t end
7166 s,^[ ]*#[ ]*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.
7172 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7173 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7174 rm -f confdef2sed.sed
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.
7179 cat >>conftest.undefs <<\_ACEOF
7180 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7181 _ACEOF
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).
7185 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7186 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7187 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7188 echo ' :' >>$CONFIG_STATUS
7189 rm -f conftest.tail
7190 while grep . conftest.defines >/dev/null
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
7208 done
7209 rm -f conftest.defines
7210 echo ' fi # grep' >>$CONFIG_STATUS
7211 echo >>$CONFIG_STATUS
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).
7215 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7216 rm -f conftest.tail
7217 while grep . conftest.undefs >/dev/null
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
7235 done
7236 rm -f conftest.undefs
7238 cat >>$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
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
7252 echo "$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 ||
7260 echo 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 ||
7279 echo 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
7288 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7289 { (exit 1); exit 1; }; }; }
7291 rm -f $ac_file
7292 mv $tmp/config.h $ac_file
7294 else
7295 cat $tmp/config.h
7296 rm -f $tmp/config.h
7298 # Compute $ac_file's index in $config_headers.
7299 _am_stamp_count=1
7300 for _am_header in $config_headers :; do
7301 case $_am_header in
7302 $ac_file | $ac_file:* )
7303 break ;;
7305 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7306 esac
7307 done
7308 echo "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 ||
7314 echo 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
7320 done
7321 _ACEOF
7322 cat >>$CONFIG_STATUS <<\_ACEOF
7325 # CONFIG_COMMANDS section.
7327 for 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 ||
7336 echo 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 ||
7355 echo 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
7364 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7365 { (exit 1); exit 1; }; }; }
7367 ac_builddir=.
7369 if 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'`
7373 else
7374 ac_dir_suffix= ac_top_builddir=
7377 case $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 ;;
7391 esac
7393 # Do not use `cd foo && pwd` to compute absolute paths, because
7394 # the directories may not exist.
7395 case `pwd` in
7396 .) ac_abs_builddir="$ac_dir";;
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;;
7403 esac
7404 case $ac_abs_builddir in
7405 .) ac_abs_top_builddir=${ac_top_builddir}.;;
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;;
7412 esac
7413 case $ac_abs_builddir in
7414 .) ac_abs_srcdir=$ac_srcdir;;
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;;
7421 esac
7422 case $ac_abs_builddir in
7423 .) ac_abs_top_srcdir=$ac_top_srcdir;;
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;;
7430 esac
7433 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7434 echo "$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 ||
7452 echo 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
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 ||
7485 echo 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 ||
7504 echo 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
7513 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7514 { (exit 1); exit 1; }; }; }
7516 # echo "creating $dirpart/$file"
7517 echo '# dummy' > "$dirpart/$file"
7518 done
7519 done
7521 esac
7522 done
7523 _ACEOF
7525 cat >>$CONFIG_STATUS <<\_ACEOF
7527 { (exit 0); exit 0; }
7528 _ACEOF
7529 chmod +x $CONFIG_STATUS
7530 ac_clean_files=$ac_clean_files_save
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.
7541 if 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; }