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