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