2008-06-18 Pavel Roskin <proski@gnu.org>
[grub2/bean.git] / configure
blob1f44d19007b2f3e1b22d93ae486dc44f8faab289
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for GRUB 1.96.
5 # Report bugs to <bug-grub@gnu.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
52 rm -f conf$$.sh
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
70 IFS=" "" $as_nl"
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 done
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
142 /^X\/\(\/\/\)$/{
143 s//\1/
146 /^X\/\(\/\).*/{
147 s//\1/
150 s/.*/./; q'`
152 # CDPATH.
153 $as_unset CDPATH
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
167 as_func_success () {
168 as_func_return 0
170 as_func_failure () {
171 as_func_return 1
173 as_func_ret_success () {
174 return 0
176 as_func_ret_failure () {
177 return 1
180 exitcode=0
181 if as_func_success; then
183 else
184 exitcode=1
185 echo as_func_success failed.
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 else
208 exitcode=1
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
279 (as_func_return () {
280 (exit $1)
282 as_func_success () {
283 as_func_return 0
285 as_func_failure () {
286 as_func_return 1
288 as_func_ret_success () {
289 return 0
291 as_func_ret_failure () {
292 return 1
295 exitcode=0
296 if as_func_success; then
298 else
299 exitcode=1
300 echo as_func_success failed.
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 else
323 exitcode=1
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335 _ASEOF
336 }; then
337 break
342 done
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
369 (exit \$1)
371 as_func_success () {
372 as_func_return 0
374 as_func_failure () {
375 as_func_return 1
377 as_func_ret_success () {
378 return 0
380 as_func_ret_failure () {
381 return 1
384 exitcode=0
385 if as_func_success; then
387 else
388 exitcode=1
389 echo as_func_success failed.
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 else
412 exitcode=1
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
448 :lineno
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
482 ECHO_N='-n';;
483 esac
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev/null 6>&1
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 # Initializations.
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
575 PACKAGE_NAME='GRUB'
576 PACKAGE_TARNAME='grub'
577 PACKAGE_VERSION='1.96'
578 PACKAGE_STRING='GRUB 1.96'
579 PACKAGE_BUGREPORT='bug-grub@gnu.org'
581 ac_unique_file="include/grub/dl.h"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 # include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 # include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
618 ac_subst_vars='SHELL
619 PATH_SEPARATOR
620 PACKAGE_NAME
621 PACKAGE_TARNAME
622 PACKAGE_VERSION
623 PACKAGE_STRING
624 PACKAGE_BUGREPORT
625 exec_prefix
626 prefix
627 program_transform_name
628 bindir
629 sbindir
630 libexecdir
631 datarootdir
632 datadir
633 sysconfdir
634 sharedstatedir
635 localstatedir
636 includedir
637 oldincludedir
638 docdir
639 infodir
640 htmldir
641 dvidir
642 pdfdir
643 psdir
644 libdir
645 localedir
646 mandir
647 DEFS
648 ECHO_C
649 ECHO_N
650 ECHO_T
651 LIBS
652 build_alias
653 host_alias
654 target_alias
655 build
656 build_cpu
657 build_vendor
658 build_os
659 host
660 host_cpu
661 host_vendor
662 host_os
663 target
664 target_cpu
665 target_vendor
666 target_os
667 platform
669 YACC
670 UNIFONT_HEX
671 INSTALL_PROGRAM
672 INSTALL_SCRIPT
673 INSTALL_DATA
675 SET_MAKE
676 RUBY
677 HELP2MAN
679 CFLAGS
680 LDFLAGS
681 CPPFLAGS
682 ac_ct_CC
683 EXEEXT
684 OBJEXT
686 GREP
687 EGREP
688 LIBLZO
689 TARGET_CC
690 ac_ct_TARGET_CC
691 OBJCOPY
692 STRIP
694 TARGET_CFLAGS
695 TARGET_CPPFLAGS
696 TARGET_LDFLAGS
697 LIBCURSES
698 enable_grub_emu
699 enable_grub_fstest
700 LIBOBJS
701 LTLIBOBJS'
702 ac_subst_files=''
703 ac_precious_vars='build_alias
704 host_alias
705 target_alias
707 CFLAGS
708 LDFLAGS
709 LIBS
710 CPPFLAGS
711 CPP'
714 # Initialize some variables set by options.
715 ac_init_help=
716 ac_init_version=false
717 # The variables have the same names as the options, with
718 # dashes changed to underlines.
719 cache_file=/dev/null
720 exec_prefix=NONE
721 no_create=
722 no_recursion=
723 prefix=NONE
724 program_prefix=NONE
725 program_suffix=NONE
726 program_transform_name=s,x,x,
727 silent=
728 site=
729 srcdir=
730 verbose=
731 x_includes=NONE
732 x_libraries=NONE
734 # Installation directory options.
735 # These are left unexpanded so users can "make install exec_prefix=/foo"
736 # and all the variables that are supposed to be based on exec_prefix
737 # by default will actually change.
738 # Use braces instead of parens because sh, perl, etc. also accept them.
739 # (The list follows the same order as the GNU Coding Standards.)
740 bindir='${exec_prefix}/bin'
741 sbindir='${exec_prefix}/sbin'
742 libexecdir='${exec_prefix}/libexec'
743 datarootdir='${prefix}/share'
744 datadir='${datarootdir}'
745 sysconfdir='${prefix}/etc'
746 sharedstatedir='${prefix}/com'
747 localstatedir='${prefix}/var'
748 includedir='${prefix}/include'
749 oldincludedir='/usr/include'
750 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
751 infodir='${datarootdir}/info'
752 htmldir='${docdir}'
753 dvidir='${docdir}'
754 pdfdir='${docdir}'
755 psdir='${docdir}'
756 libdir='${exec_prefix}/lib'
757 localedir='${datarootdir}/locale'
758 mandir='${datarootdir}/man'
760 ac_prev=
761 ac_dashdash=
762 for ac_option
764 # If the previous option needs an argument, assign it.
765 if test -n "$ac_prev"; then
766 eval $ac_prev=\$ac_option
767 ac_prev=
768 continue
771 case $ac_option in
772 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
773 *) ac_optarg=yes ;;
774 esac
776 # Accept the important Cygnus configure options, so we can diagnose typos.
778 case $ac_dashdash$ac_option in
780 ac_dashdash=yes ;;
782 -bindir | --bindir | --bindi | --bind | --bin | --bi)
783 ac_prev=bindir ;;
784 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
785 bindir=$ac_optarg ;;
787 -build | --build | --buil | --bui | --bu)
788 ac_prev=build_alias ;;
789 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
790 build_alias=$ac_optarg ;;
792 -cache-file | --cache-file | --cache-fil | --cache-fi \
793 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
794 ac_prev=cache_file ;;
795 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
796 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
797 cache_file=$ac_optarg ;;
799 --config-cache | -C)
800 cache_file=config.cache ;;
802 -datadir | --datadir | --datadi | --datad)
803 ac_prev=datadir ;;
804 -datadir=* | --datadir=* | --datadi=* | --datad=*)
805 datadir=$ac_optarg ;;
807 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
808 | --dataroo | --dataro | --datar)
809 ac_prev=datarootdir ;;
810 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
811 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
812 datarootdir=$ac_optarg ;;
814 -disable-* | --disable-*)
815 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
816 # Reject names that are not valid shell variable names.
817 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
818 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
819 { (exit 1); exit 1; }; }
820 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
821 eval enable_$ac_feature=no ;;
823 -docdir | --docdir | --docdi | --doc | --do)
824 ac_prev=docdir ;;
825 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
826 docdir=$ac_optarg ;;
828 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
829 ac_prev=dvidir ;;
830 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
831 dvidir=$ac_optarg ;;
833 -enable-* | --enable-*)
834 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
835 # Reject names that are not valid shell variable names.
836 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
837 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
838 { (exit 1); exit 1; }; }
839 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
840 eval enable_$ac_feature=\$ac_optarg ;;
842 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
843 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
844 | --exec | --exe | --ex)
845 ac_prev=exec_prefix ;;
846 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
847 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
848 | --exec=* | --exe=* | --ex=*)
849 exec_prefix=$ac_optarg ;;
851 -gas | --gas | --ga | --g)
852 # Obsolete; use --with-gas.
853 with_gas=yes ;;
855 -help | --help | --hel | --he | -h)
856 ac_init_help=long ;;
857 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
858 ac_init_help=recursive ;;
859 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
860 ac_init_help=short ;;
862 -host | --host | --hos | --ho)
863 ac_prev=host_alias ;;
864 -host=* | --host=* | --hos=* | --ho=*)
865 host_alias=$ac_optarg ;;
867 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
868 ac_prev=htmldir ;;
869 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
870 | --ht=*)
871 htmldir=$ac_optarg ;;
873 -includedir | --includedir | --includedi | --included | --include \
874 | --includ | --inclu | --incl | --inc)
875 ac_prev=includedir ;;
876 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
877 | --includ=* | --inclu=* | --incl=* | --inc=*)
878 includedir=$ac_optarg ;;
880 -infodir | --infodir | --infodi | --infod | --info | --inf)
881 ac_prev=infodir ;;
882 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
883 infodir=$ac_optarg ;;
885 -libdir | --libdir | --libdi | --libd)
886 ac_prev=libdir ;;
887 -libdir=* | --libdir=* | --libdi=* | --libd=*)
888 libdir=$ac_optarg ;;
890 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
891 | --libexe | --libex | --libe)
892 ac_prev=libexecdir ;;
893 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
894 | --libexe=* | --libex=* | --libe=*)
895 libexecdir=$ac_optarg ;;
897 -localedir | --localedir | --localedi | --localed | --locale)
898 ac_prev=localedir ;;
899 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
900 localedir=$ac_optarg ;;
902 -localstatedir | --localstatedir | --localstatedi | --localstated \
903 | --localstate | --localstat | --localsta | --localst | --locals)
904 ac_prev=localstatedir ;;
905 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
906 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
907 localstatedir=$ac_optarg ;;
909 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
910 ac_prev=mandir ;;
911 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
912 mandir=$ac_optarg ;;
914 -nfp | --nfp | --nf)
915 # Obsolete; use --without-fp.
916 with_fp=no ;;
918 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
919 | --no-cr | --no-c | -n)
920 no_create=yes ;;
922 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
923 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
924 no_recursion=yes ;;
926 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
927 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
928 | --oldin | --oldi | --old | --ol | --o)
929 ac_prev=oldincludedir ;;
930 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
931 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
932 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
933 oldincludedir=$ac_optarg ;;
935 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
936 ac_prev=prefix ;;
937 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
938 prefix=$ac_optarg ;;
940 -program-prefix | --program-prefix | --program-prefi | --program-pref \
941 | --program-pre | --program-pr | --program-p)
942 ac_prev=program_prefix ;;
943 -program-prefix=* | --program-prefix=* | --program-prefi=* \
944 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
945 program_prefix=$ac_optarg ;;
947 -program-suffix | --program-suffix | --program-suffi | --program-suff \
948 | --program-suf | --program-su | --program-s)
949 ac_prev=program_suffix ;;
950 -program-suffix=* | --program-suffix=* | --program-suffi=* \
951 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
952 program_suffix=$ac_optarg ;;
954 -program-transform-name | --program-transform-name \
955 | --program-transform-nam | --program-transform-na \
956 | --program-transform-n | --program-transform- \
957 | --program-transform | --program-transfor \
958 | --program-transfo | --program-transf \
959 | --program-trans | --program-tran \
960 | --progr-tra | --program-tr | --program-t)
961 ac_prev=program_transform_name ;;
962 -program-transform-name=* | --program-transform-name=* \
963 | --program-transform-nam=* | --program-transform-na=* \
964 | --program-transform-n=* | --program-transform-=* \
965 | --program-transform=* | --program-transfor=* \
966 | --program-transfo=* | --program-transf=* \
967 | --program-trans=* | --program-tran=* \
968 | --progr-tra=* | --program-tr=* | --program-t=*)
969 program_transform_name=$ac_optarg ;;
971 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
972 ac_prev=pdfdir ;;
973 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
974 pdfdir=$ac_optarg ;;
976 -psdir | --psdir | --psdi | --psd | --ps)
977 ac_prev=psdir ;;
978 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
979 psdir=$ac_optarg ;;
981 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
982 | -silent | --silent | --silen | --sile | --sil)
983 silent=yes ;;
985 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
986 ac_prev=sbindir ;;
987 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
988 | --sbi=* | --sb=*)
989 sbindir=$ac_optarg ;;
991 -sharedstatedir | --sharedstatedir | --sharedstatedi \
992 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
993 | --sharedst | --shareds | --shared | --share | --shar \
994 | --sha | --sh)
995 ac_prev=sharedstatedir ;;
996 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
997 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
998 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
999 | --sha=* | --sh=*)
1000 sharedstatedir=$ac_optarg ;;
1002 -site | --site | --sit)
1003 ac_prev=site ;;
1004 -site=* | --site=* | --sit=*)
1005 site=$ac_optarg ;;
1007 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1008 ac_prev=srcdir ;;
1009 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1010 srcdir=$ac_optarg ;;
1012 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1013 | --syscon | --sysco | --sysc | --sys | --sy)
1014 ac_prev=sysconfdir ;;
1015 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1016 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1017 sysconfdir=$ac_optarg ;;
1019 -target | --target | --targe | --targ | --tar | --ta | --t)
1020 ac_prev=target_alias ;;
1021 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1022 target_alias=$ac_optarg ;;
1024 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1025 verbose=yes ;;
1027 -version | --version | --versio | --versi | --vers | -V)
1028 ac_init_version=: ;;
1030 -with-* | --with-*)
1031 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1032 # Reject names that are not valid shell variable names.
1033 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1034 { echo "$as_me: error: invalid package name: $ac_package" >&2
1035 { (exit 1); exit 1; }; }
1036 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1037 eval with_$ac_package=\$ac_optarg ;;
1039 -without-* | --without-*)
1040 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1043 { echo "$as_me: error: invalid package name: $ac_package" >&2
1044 { (exit 1); exit 1; }; }
1045 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1046 eval with_$ac_package=no ;;
1048 --x)
1049 # Obsolete; use --with-x.
1050 with_x=yes ;;
1052 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1053 | --x-incl | --x-inc | --x-in | --x-i)
1054 ac_prev=x_includes ;;
1055 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1056 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1057 x_includes=$ac_optarg ;;
1059 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1060 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1061 ac_prev=x_libraries ;;
1062 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1063 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1064 x_libraries=$ac_optarg ;;
1066 -*) { echo "$as_me: error: unrecognized option: $ac_option
1067 Try \`$0 --help' for more information." >&2
1068 { (exit 1); exit 1; }; }
1071 *=*)
1072 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1075 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1076 { (exit 1); exit 1; }; }
1077 eval $ac_envvar=\$ac_optarg
1078 export $ac_envvar ;;
1081 # FIXME: should be removed in autoconf 3.0.
1082 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1083 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1084 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1085 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1088 esac
1089 done
1091 if test -n "$ac_prev"; then
1092 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1093 { echo "$as_me: error: missing argument to $ac_option" >&2
1094 { (exit 1); exit 1; }; }
1097 # Be sure to have absolute directory names.
1098 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1099 datadir sysconfdir sharedstatedir localstatedir includedir \
1100 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1101 libdir localedir mandir
1103 eval ac_val=\$$ac_var
1104 case $ac_val in
1105 [\\/$]* | ?:[\\/]* ) continue;;
1106 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1107 esac
1108 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1109 { (exit 1); exit 1; }; }
1110 done
1112 # There might be people who depend on the old broken behavior: `$host'
1113 # used to hold the argument of --host etc.
1114 # FIXME: To remove some day.
1115 build=$build_alias
1116 host=$host_alias
1117 target=$target_alias
1119 # FIXME: To remove some day.
1120 if test "x$host_alias" != x; then
1121 if test "x$build_alias" = x; then
1122 cross_compiling=maybe
1123 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1124 If a cross compiler is detected then cross compile mode will be used." >&2
1125 elif test "x$build_alias" != "x$host_alias"; then
1126 cross_compiling=yes
1130 ac_tool_prefix=
1131 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1133 test "$silent" = yes && exec 6>/dev/null
1136 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1137 ac_ls_di=`ls -di .` &&
1138 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1139 { echo "$as_me: error: Working directory cannot be determined" >&2
1140 { (exit 1); exit 1; }; }
1141 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1142 { echo "$as_me: error: pwd does not report name of working directory" >&2
1143 { (exit 1); exit 1; }; }
1146 # Find the source files, if location was not specified.
1147 if test -z "$srcdir"; then
1148 ac_srcdir_defaulted=yes
1149 # Try the directory containing this script, then the parent directory.
1150 ac_confdir=`$as_dirname -- "$0" ||
1151 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1152 X"$0" : 'X\(//\)[^/]' \| \
1153 X"$0" : 'X\(//\)$' \| \
1154 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1155 echo X"$0" |
1156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1157 s//\1/
1160 /^X\(\/\/\)[^/].*/{
1161 s//\1/
1164 /^X\(\/\/\)$/{
1165 s//\1/
1168 /^X\(\/\).*/{
1169 s//\1/
1172 s/.*/./; q'`
1173 srcdir=$ac_confdir
1174 if test ! -r "$srcdir/$ac_unique_file"; then
1175 srcdir=..
1177 else
1178 ac_srcdir_defaulted=no
1180 if test ! -r "$srcdir/$ac_unique_file"; then
1181 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1182 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1183 { (exit 1); exit 1; }; }
1185 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1186 ac_abs_confdir=`(
1187 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1188 { (exit 1); exit 1; }; }
1189 pwd)`
1190 # When building in place, set srcdir=.
1191 if test "$ac_abs_confdir" = "$ac_pwd"; then
1192 srcdir=.
1194 # Remove unnecessary trailing slashes from srcdir.
1195 # Double slashes in file names in object file debugging info
1196 # mess up M-x gdb in Emacs.
1197 case $srcdir in
1198 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1199 esac
1200 for ac_var in $ac_precious_vars; do
1201 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1202 eval ac_env_${ac_var}_value=\$${ac_var}
1203 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1204 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1205 done
1208 # Report the --help message.
1210 if test "$ac_init_help" = "long"; then
1211 # Omit some internal or obsolete options to make the list less imposing.
1212 # This message is too long to be a string in the A/UX 3.1 sh.
1213 cat <<_ACEOF
1214 \`configure' configures GRUB 1.96 to adapt to many kinds of systems.
1216 Usage: $0 [OPTION]... [VAR=VALUE]...
1218 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1219 VAR=VALUE. See below for descriptions of some of the useful variables.
1221 Defaults for the options are specified in brackets.
1223 Configuration:
1224 -h, --help display this help and exit
1225 --help=short display options specific to this package
1226 --help=recursive display the short help of all the included packages
1227 -V, --version display version information and exit
1228 -q, --quiet, --silent do not print \`checking...' messages
1229 --cache-file=FILE cache test results in FILE [disabled]
1230 -C, --config-cache alias for \`--cache-file=config.cache'
1231 -n, --no-create do not create output files
1232 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1234 Installation directories:
1235 --prefix=PREFIX install architecture-independent files in PREFIX
1236 [$ac_default_prefix]
1237 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1238 [PREFIX]
1240 By default, \`make install' will install all the files in
1241 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1242 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1243 for instance \`--prefix=\$HOME'.
1245 For better control, use the options below.
1247 Fine tuning of the installation directories:
1248 --bindir=DIR user executables [EPREFIX/bin]
1249 --sbindir=DIR system admin executables [EPREFIX/sbin]
1250 --libexecdir=DIR program executables [EPREFIX/libexec]
1251 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1252 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1253 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1254 --libdir=DIR object code libraries [EPREFIX/lib]
1255 --includedir=DIR C header files [PREFIX/include]
1256 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1257 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1258 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1259 --infodir=DIR info documentation [DATAROOTDIR/info]
1260 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1261 --mandir=DIR man documentation [DATAROOTDIR/man]
1262 --docdir=DIR documentation root [DATAROOTDIR/doc/grub]
1263 --htmldir=DIR html documentation [DOCDIR]
1264 --dvidir=DIR dvi documentation [DOCDIR]
1265 --pdfdir=DIR pdf documentation [DOCDIR]
1266 --psdir=DIR ps documentation [DOCDIR]
1267 _ACEOF
1269 cat <<\_ACEOF
1271 Program names:
1272 --program-prefix=PREFIX prepend PREFIX to installed program names
1273 --program-suffix=SUFFIX append SUFFIX to installed program names
1274 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1276 System types:
1277 --build=BUILD configure for building on BUILD [guessed]
1278 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1279 --target=TARGET configure for building compilers for TARGET [HOST]
1280 _ACEOF
1283 if test -n "$ac_init_help"; then
1284 case $ac_init_help in
1285 short | recursive ) echo "Configuration of GRUB 1.96:";;
1286 esac
1287 cat <<\_ACEOF
1289 Optional Features:
1290 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1291 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1292 --disable-largefile omit support for large files
1293 --enable-mm-debug include memory manager debugging
1294 --enable-grub-emu build and install the `grub-emu' debugging utility
1295 --enable-grub-fstest build and install the `grub-fstest' debugging
1296 utility
1298 Optional Packages:
1299 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1300 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1301 --with-platform=PLATFORM
1302 select the host platform [guessed]
1304 Some influential environment variables:
1305 CC C compiler command
1306 CFLAGS C compiler flags
1307 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1308 nonstandard directory <lib dir>
1309 LIBS libraries to pass to the linker, e.g. -l<library>
1310 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1311 you have headers in a nonstandard directory <include dir>
1312 CPP C preprocessor
1314 Use these variables to override the choices made by `configure' or to help
1315 it to find libraries and programs with nonstandard names/locations.
1317 Report bugs to <bug-grub@gnu.org>.
1318 _ACEOF
1319 ac_status=$?
1322 if test "$ac_init_help" = "recursive"; then
1323 # If there are subdirs, report their specific --help.
1324 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1325 test -d "$ac_dir" || continue
1326 ac_builddir=.
1328 case "$ac_dir" in
1329 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1331 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1332 # A ".." for each directory in $ac_dir_suffix.
1333 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1334 case $ac_top_builddir_sub in
1335 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1336 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1337 esac ;;
1338 esac
1339 ac_abs_top_builddir=$ac_pwd
1340 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1341 # for backward compatibility:
1342 ac_top_builddir=$ac_top_build_prefix
1344 case $srcdir in
1345 .) # We are building in place.
1346 ac_srcdir=.
1347 ac_top_srcdir=$ac_top_builddir_sub
1348 ac_abs_top_srcdir=$ac_pwd ;;
1349 [\\/]* | ?:[\\/]* ) # Absolute name.
1350 ac_srcdir=$srcdir$ac_dir_suffix;
1351 ac_top_srcdir=$srcdir
1352 ac_abs_top_srcdir=$srcdir ;;
1353 *) # Relative name.
1354 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1355 ac_top_srcdir=$ac_top_build_prefix$srcdir
1356 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1357 esac
1358 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1360 cd "$ac_dir" || { ac_status=$?; continue; }
1361 # Check for guested configure.
1362 if test -f "$ac_srcdir/configure.gnu"; then
1363 echo &&
1364 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1365 elif test -f "$ac_srcdir/configure"; then
1366 echo &&
1367 $SHELL "$ac_srcdir/configure" --help=recursive
1368 else
1369 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1370 fi || ac_status=$?
1371 cd "$ac_pwd" || { ac_status=$?; break; }
1372 done
1375 test -n "$ac_init_help" && exit $ac_status
1376 if $ac_init_version; then
1377 cat <<\_ACEOF
1378 GRUB configure 1.96
1379 generated by GNU Autoconf 2.61
1381 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1382 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1383 This configure script is free software; the Free Software Foundation
1384 gives unlimited permission to copy, distribute and modify it.
1385 _ACEOF
1386 exit
1388 cat >config.log <<_ACEOF
1389 This file contains any messages produced by compilers while
1390 running configure, to aid debugging if configure makes a mistake.
1392 It was created by GRUB $as_me 1.96, which was
1393 generated by GNU Autoconf 2.61. Invocation command line was
1395 $ $0 $@
1397 _ACEOF
1398 exec 5>>config.log
1400 cat <<_ASUNAME
1401 ## --------- ##
1402 ## Platform. ##
1403 ## --------- ##
1405 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1406 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1407 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1408 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1409 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1411 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1412 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1414 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1415 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1416 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1417 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1418 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1419 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1420 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1422 _ASUNAME
1424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1425 for as_dir in $PATH
1427 IFS=$as_save_IFS
1428 test -z "$as_dir" && as_dir=.
1429 echo "PATH: $as_dir"
1430 done
1431 IFS=$as_save_IFS
1433 } >&5
1435 cat >&5 <<_ACEOF
1438 ## ----------- ##
1439 ## Core tests. ##
1440 ## ----------- ##
1442 _ACEOF
1445 # Keep a trace of the command line.
1446 # Strip out --no-create and --no-recursion so they do not pile up.
1447 # Strip out --silent because we don't want to record it for future runs.
1448 # Also quote any args containing shell meta-characters.
1449 # Make two passes to allow for proper duplicate-argument suppression.
1450 ac_configure_args=
1451 ac_configure_args0=
1452 ac_configure_args1=
1453 ac_must_keep_next=false
1454 for ac_pass in 1 2
1456 for ac_arg
1458 case $ac_arg in
1459 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1460 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1461 | -silent | --silent | --silen | --sile | --sil)
1462 continue ;;
1463 *\'*)
1464 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1465 esac
1466 case $ac_pass in
1467 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1469 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1470 if test $ac_must_keep_next = true; then
1471 ac_must_keep_next=false # Got value, back to normal.
1472 else
1473 case $ac_arg in
1474 *=* | --config-cache | -C | -disable-* | --disable-* \
1475 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1476 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1477 | -with-* | --with-* | -without-* | --without-* | --x)
1478 case "$ac_configure_args0 " in
1479 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1480 esac
1482 -* ) ac_must_keep_next=true ;;
1483 esac
1485 ac_configure_args="$ac_configure_args '$ac_arg'"
1487 esac
1488 done
1489 done
1490 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1491 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1493 # When interrupted or exit'd, cleanup temporary files, and complete
1494 # config.log. We remove comments because anyway the quotes in there
1495 # would cause problems or look ugly.
1496 # WARNING: Use '\'' to represent an apostrophe within the trap.
1497 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1498 trap 'exit_status=$?
1499 # Save into config.log some information that might help in debugging.
1501 echo
1503 cat <<\_ASBOX
1504 ## ---------------- ##
1505 ## Cache variables. ##
1506 ## ---------------- ##
1507 _ASBOX
1508 echo
1509 # The following way of writing the cache mishandles newlines in values,
1511 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1512 eval ac_val=\$$ac_var
1513 case $ac_val in #(
1514 *${as_nl}*)
1515 case $ac_var in #(
1516 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1517 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1518 esac
1519 case $ac_var in #(
1520 _ | IFS | as_nl) ;; #(
1521 *) $as_unset $ac_var ;;
1522 esac ;;
1523 esac
1524 done
1525 (set) 2>&1 |
1526 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1527 *${as_nl}ac_space=\ *)
1528 sed -n \
1529 "s/'\''/'\''\\\\'\'''\''/g;
1530 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1531 ;; #(
1533 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1535 esac |
1536 sort
1538 echo
1540 cat <<\_ASBOX
1541 ## ----------------- ##
1542 ## Output variables. ##
1543 ## ----------------- ##
1544 _ASBOX
1545 echo
1546 for ac_var in $ac_subst_vars
1548 eval ac_val=\$$ac_var
1549 case $ac_val in
1550 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1551 esac
1552 echo "$ac_var='\''$ac_val'\''"
1553 done | sort
1554 echo
1556 if test -n "$ac_subst_files"; then
1557 cat <<\_ASBOX
1558 ## ------------------- ##
1559 ## File substitutions. ##
1560 ## ------------------- ##
1561 _ASBOX
1562 echo
1563 for ac_var in $ac_subst_files
1565 eval ac_val=\$$ac_var
1566 case $ac_val in
1567 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1568 esac
1569 echo "$ac_var='\''$ac_val'\''"
1570 done | sort
1571 echo
1574 if test -s confdefs.h; then
1575 cat <<\_ASBOX
1576 ## ----------- ##
1577 ## confdefs.h. ##
1578 ## ----------- ##
1579 _ASBOX
1580 echo
1581 cat confdefs.h
1582 echo
1584 test "$ac_signal" != 0 &&
1585 echo "$as_me: caught signal $ac_signal"
1586 echo "$as_me: exit $exit_status"
1587 } >&5
1588 rm -f core *.core core.conftest.* &&
1589 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1590 exit $exit_status
1592 for ac_signal in 1 2 13 15; do
1593 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1594 done
1595 ac_signal=0
1597 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1598 rm -f -r conftest* confdefs.h
1600 # Predefined preprocessor variables.
1602 cat >>confdefs.h <<_ACEOF
1603 #define PACKAGE_NAME "$PACKAGE_NAME"
1604 _ACEOF
1607 cat >>confdefs.h <<_ACEOF
1608 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1609 _ACEOF
1612 cat >>confdefs.h <<_ACEOF
1613 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1614 _ACEOF
1617 cat >>confdefs.h <<_ACEOF
1618 #define PACKAGE_STRING "$PACKAGE_STRING"
1619 _ACEOF
1622 cat >>confdefs.h <<_ACEOF
1623 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1624 _ACEOF
1627 # Let the site file select an alternate cache file if it wants to.
1628 # Prefer explicitly selected file to automatically selected ones.
1629 if test -n "$CONFIG_SITE"; then
1630 set x "$CONFIG_SITE"
1631 elif test "x$prefix" != xNONE; then
1632 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1633 else
1634 set x "$ac_default_prefix/share/config.site" \
1635 "$ac_default_prefix/etc/config.site"
1637 shift
1638 for ac_site_file
1640 if test -r "$ac_site_file"; then
1641 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1642 echo "$as_me: loading site script $ac_site_file" >&6;}
1643 sed 's/^/| /' "$ac_site_file" >&5
1644 . "$ac_site_file"
1646 done
1648 if test -r "$cache_file"; then
1649 # Some versions of bash will fail to source /dev/null (special
1650 # files actually), so we avoid doing that.
1651 if test -f "$cache_file"; then
1652 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1653 echo "$as_me: loading cache $cache_file" >&6;}
1654 case $cache_file in
1655 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1656 *) . "./$cache_file";;
1657 esac
1659 else
1660 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1661 echo "$as_me: creating cache $cache_file" >&6;}
1662 >$cache_file
1665 # Check that the precious variables saved in the cache have kept the same
1666 # value.
1667 ac_cache_corrupted=false
1668 for ac_var in $ac_precious_vars; do
1669 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1670 eval ac_new_set=\$ac_env_${ac_var}_set
1671 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1672 eval ac_new_val=\$ac_env_${ac_var}_value
1673 case $ac_old_set,$ac_new_set in
1674 set,)
1675 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1676 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1677 ac_cache_corrupted=: ;;
1678 ,set)
1679 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1680 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1681 ac_cache_corrupted=: ;;
1682 ,);;
1684 if test "x$ac_old_val" != "x$ac_new_val"; then
1685 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1686 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1687 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1688 echo "$as_me: former value: $ac_old_val" >&2;}
1689 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1690 echo "$as_me: current value: $ac_new_val" >&2;}
1691 ac_cache_corrupted=:
1692 fi;;
1693 esac
1694 # Pass precious variables to config.status.
1695 if test "$ac_new_set" = set; then
1696 case $ac_new_val in
1697 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1698 *) ac_arg=$ac_var=$ac_new_val ;;
1699 esac
1700 case " $ac_configure_args " in
1701 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1702 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1703 esac
1705 done
1706 if $ac_cache_corrupted; then
1707 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1708 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1709 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1710 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1711 { (exit 1); exit 1; }; }
1738 ac_ext=c
1739 ac_cpp='$CPP $CPPFLAGS'
1740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1747 ac_config_headers="$ac_config_headers config.h"
1750 # Checks for host and target systems.
1751 ac_aux_dir=
1752 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1753 if test -f "$ac_dir/install-sh"; then
1754 ac_aux_dir=$ac_dir
1755 ac_install_sh="$ac_aux_dir/install-sh -c"
1756 break
1757 elif test -f "$ac_dir/install.sh"; then
1758 ac_aux_dir=$ac_dir
1759 ac_install_sh="$ac_aux_dir/install.sh -c"
1760 break
1761 elif test -f "$ac_dir/shtool"; then
1762 ac_aux_dir=$ac_dir
1763 ac_install_sh="$ac_aux_dir/shtool install -c"
1764 break
1766 done
1767 if test -z "$ac_aux_dir"; then
1768 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1769 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1770 { (exit 1); exit 1; }; }
1773 # These three variables are undocumented and unsupported,
1774 # and are intended to be withdrawn in a future Autoconf release.
1775 # They can cause serious problems if a builder's source tree is in a directory
1776 # whose full name contains unusual characters.
1777 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1778 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1779 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1782 # Make sure we can run config.sub.
1783 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1784 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1785 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1786 { (exit 1); exit 1; }; }
1788 { echo "$as_me:$LINENO: checking build system type" >&5
1789 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1790 if test "${ac_cv_build+set}" = set; then
1791 echo $ECHO_N "(cached) $ECHO_C" >&6
1792 else
1793 ac_build_alias=$build_alias
1794 test "x$ac_build_alias" = x &&
1795 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1796 test "x$ac_build_alias" = x &&
1797 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1798 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1799 { (exit 1); exit 1; }; }
1800 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1801 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1802 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1803 { (exit 1); exit 1; }; }
1806 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1807 echo "${ECHO_T}$ac_cv_build" >&6; }
1808 case $ac_cv_build in
1809 *-*-*) ;;
1810 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1811 echo "$as_me: error: invalid value of canonical build" >&2;}
1812 { (exit 1); exit 1; }; };;
1813 esac
1814 build=$ac_cv_build
1815 ac_save_IFS=$IFS; IFS='-'
1816 set x $ac_cv_build
1817 shift
1818 build_cpu=$1
1819 build_vendor=$2
1820 shift; shift
1821 # Remember, the first character of IFS is used to create $*,
1822 # except with old shells:
1823 build_os=$*
1824 IFS=$ac_save_IFS
1825 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1828 { echo "$as_me:$LINENO: checking host system type" >&5
1829 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1830 if test "${ac_cv_host+set}" = set; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1832 else
1833 if test "x$host_alias" = x; then
1834 ac_cv_host=$ac_cv_build
1835 else
1836 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1837 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1838 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1839 { (exit 1); exit 1; }; }
1843 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1844 echo "${ECHO_T}$ac_cv_host" >&6; }
1845 case $ac_cv_host in
1846 *-*-*) ;;
1847 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1848 echo "$as_me: error: invalid value of canonical host" >&2;}
1849 { (exit 1); exit 1; }; };;
1850 esac
1851 host=$ac_cv_host
1852 ac_save_IFS=$IFS; IFS='-'
1853 set x $ac_cv_host
1854 shift
1855 host_cpu=$1
1856 host_vendor=$2
1857 shift; shift
1858 # Remember, the first character of IFS is used to create $*,
1859 # except with old shells:
1860 host_os=$*
1861 IFS=$ac_save_IFS
1862 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1865 { echo "$as_me:$LINENO: checking target system type" >&5
1866 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1867 if test "${ac_cv_target+set}" = set; then
1868 echo $ECHO_N "(cached) $ECHO_C" >&6
1869 else
1870 if test "x$target_alias" = x; then
1871 ac_cv_target=$ac_cv_host
1872 else
1873 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1874 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1875 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1876 { (exit 1); exit 1; }; }
1880 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1881 echo "${ECHO_T}$ac_cv_target" >&6; }
1882 case $ac_cv_target in
1883 *-*-*) ;;
1884 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1885 echo "$as_me: error: invalid value of canonical target" >&2;}
1886 { (exit 1); exit 1; }; };;
1887 esac
1888 target=$ac_cv_target
1889 ac_save_IFS=$IFS; IFS='-'
1890 set x $ac_cv_target
1891 shift
1892 target_cpu=$1
1893 target_vendor=$2
1894 shift; shift
1895 # Remember, the first character of IFS is used to create $*,
1896 # except with old shells:
1897 target_os=$*
1898 IFS=$ac_save_IFS
1899 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1902 # The aliases save the names the user supplied, while $host etc.
1903 # will get canonicalized.
1904 test -n "$target_alias" &&
1905 test "$program_prefix$program_suffix$program_transform_name" = \
1906 NONENONEs,x,x, &&
1907 program_prefix=${target_alias}-
1909 # Program name transformations
1910 test "$program_prefix" != NONE &&
1911 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1912 # Use a double $ so make ignores it.
1913 test "$program_suffix" != NONE &&
1914 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1915 # Double any \ or $. echo might interpret backslashes.
1916 # By default was `s,x,x', remove it if useless.
1917 cat <<\_ACEOF >conftest.sed
1918 s/[\\$]/&&/g;s/;s,x,x,$//
1919 _ACEOF
1920 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1921 rm -f conftest.sed
1924 case "$host_cpu" in
1925 powerpc64) host_m32=1 ;;
1926 esac
1928 case "$target_cpu" in
1929 i[3456]86) target_cpu=i386 ;;
1930 x86_64) target_cpu=i386 target_m32=1 ;;
1931 powerpc) ;;
1932 powerpc64) target_cpu=powerpc target_m32=1;;
1933 sparc64) ;;
1934 *) { { echo "$as_me:$LINENO: error: unsupported CPU type" >&5
1935 echo "$as_me: error: unsupported CPU type" >&2;}
1936 { (exit 1); exit 1; }; } ;;
1937 esac
1939 # Specify the platform (such as firmware).
1941 # Check whether --with-platform was given.
1942 if test "${with_platform+set}" = set; then
1943 withval=$with_platform;
1947 # Guess the platform if not specified.
1948 if test "x$with_platform" = x; then
1949 case "$target_cpu"-"$target_vendor" in
1950 i386-apple) platform=efi ;;
1951 i386-*) platform=pc ;;
1952 powerpc-*) platform=ieee1275 ;;
1953 sparc64-*) platform=ieee1275 ;;
1954 *) { { echo "$as_me:$LINENO: error: unsupported machine type" >&5
1955 echo "$as_me: error: unsupported machine type" >&2;}
1956 { (exit 1); exit 1; }; } ;;
1957 esac
1958 else
1959 platform="$with_platform"
1962 # Sanity check.
1963 case "$target_cpu"-"$platform" in
1964 i386-efi) ;;
1965 i386-pc) ;;
1966 i386-linuxbios) ;;
1967 i386-ieee1275) ;;
1968 powerpc-ieee1275) ;;
1969 sparc64-ieee1275) ;;
1970 *) { { echo "$as_me:$LINENO: error: unsupported machine type" >&5
1971 echo "$as_me: error: unsupported machine type" >&2;}
1972 { (exit 1); exit 1; }; } ;;
1973 esac
1979 # Checks for build programs.
1982 # Although cmp is listed in the GNU Coding Standards as a command which
1983 # can used directly, OpenBSD lacks cmp in the default installation.
1984 for ac_prog in cmp
1986 # Extract the first word of "$ac_prog", so it can be a program name with args.
1987 set dummy $ac_prog; ac_word=$2
1988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1990 if test "${ac_cv_prog_CMP+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
1992 else
1993 if test -n "$CMP"; then
1994 ac_cv_prog_CMP="$CMP" # Let the user override the test.
1995 else
1996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 for as_dir in $PATH
1999 IFS=$as_save_IFS
2000 test -z "$as_dir" && as_dir=.
2001 for ac_exec_ext in '' $ac_executable_extensions; do
2002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2003 ac_cv_prog_CMP="$ac_prog"
2004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005 break 2
2007 done
2008 done
2009 IFS=$as_save_IFS
2013 CMP=$ac_cv_prog_CMP
2014 if test -n "$CMP"; then
2015 { echo "$as_me:$LINENO: result: $CMP" >&5
2016 echo "${ECHO_T}$CMP" >&6; }
2017 else
2018 { echo "$as_me:$LINENO: result: no" >&5
2019 echo "${ECHO_T}no" >&6; }
2023 test -n "$CMP" && break
2024 done
2026 if test "x$CMP" = x; then
2027 { { echo "$as_me:$LINENO: error: cmp is not found" >&5
2028 echo "$as_me: error: cmp is not found" >&2;}
2029 { (exit 1); exit 1; }; }
2032 for ac_prog in bison
2034 # Extract the first word of "$ac_prog", so it can be a program name with args.
2035 set dummy $ac_prog; ac_word=$2
2036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2038 if test "${ac_cv_prog_YACC+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2040 else
2041 if test -n "$YACC"; then
2042 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2043 else
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045 for as_dir in $PATH
2047 IFS=$as_save_IFS
2048 test -z "$as_dir" && as_dir=.
2049 for ac_exec_ext in '' $ac_executable_extensions; do
2050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2051 ac_cv_prog_YACC="$ac_prog"
2052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 break 2
2055 done
2056 done
2057 IFS=$as_save_IFS
2061 YACC=$ac_cv_prog_YACC
2062 if test -n "$YACC"; then
2063 { echo "$as_me:$LINENO: result: $YACC" >&5
2064 echo "${ECHO_T}$YACC" >&6; }
2065 else
2066 { echo "$as_me:$LINENO: result: no" >&5
2067 echo "${ECHO_T}no" >&6; }
2071 test -n "$YACC" && break
2072 done
2074 if test "x$YACC" = x; then
2075 { { echo "$as_me:$LINENO: error: bison is not found" >&5
2076 echo "$as_me: error: bison is not found" >&2;}
2077 { (exit 1); exit 1; }; }
2080 for file in /usr/share/unifont/unifont.hex ; do
2081 if test -e $file ; then
2082 UNIFONT_HEX=$file
2084 break
2086 done
2088 # Find a good install program. We prefer a C program (faster),
2089 # so one script is as good as another. But avoid the broken or
2090 # incompatible versions:
2091 # SysV /etc/install, /usr/sbin/install
2092 # SunOS /usr/etc/install
2093 # IRIX /sbin/install
2094 # AIX /bin/install
2095 # AmigaOS /C/install, which installs bootblocks on floppy discs
2096 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2097 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2098 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2099 # OS/2's system install, which has a completely different semantic
2100 # ./install, which can be erroneously created by make from ./install.sh.
2101 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2102 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2103 if test -z "$INSTALL"; then
2104 if test "${ac_cv_path_install+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2106 else
2107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108 for as_dir in $PATH
2110 IFS=$as_save_IFS
2111 test -z "$as_dir" && as_dir=.
2112 # Account for people who put trailing slashes in PATH elements.
2113 case $as_dir/ in
2114 ./ | .// | /cC/* | \
2115 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2116 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2117 /usr/ucb/* ) ;;
2119 # OSF1 and SCO ODT 3.0 have their own names for install.
2120 # Don't use installbsd from OSF since it installs stuff as root
2121 # by default.
2122 for ac_prog in ginstall scoinst install; do
2123 for ac_exec_ext in '' $ac_executable_extensions; do
2124 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2125 if test $ac_prog = install &&
2126 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2127 # AIX install. It has an incompatible calling convention.
2129 elif test $ac_prog = install &&
2130 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2131 # program-specific install script used by HP pwplus--don't use.
2133 else
2134 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2135 break 3
2138 done
2139 done
2141 esac
2142 done
2143 IFS=$as_save_IFS
2147 if test "${ac_cv_path_install+set}" = set; then
2148 INSTALL=$ac_cv_path_install
2149 else
2150 # As a last resort, use the slow shell script. Don't cache a
2151 # value for INSTALL within a source directory, because that will
2152 # break other packages using the cache if that directory is
2153 # removed, or if the value is a relative name.
2154 INSTALL=$ac_install_sh
2157 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2158 echo "${ECHO_T}$INSTALL" >&6; }
2160 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2161 # It thinks the first close brace ends the variable substitution.
2162 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2164 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2166 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2168 for ac_prog in gawk mawk nawk awk
2170 # Extract the first word of "$ac_prog", so it can be a program name with args.
2171 set dummy $ac_prog; ac_word=$2
2172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2174 if test "${ac_cv_prog_AWK+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 else
2177 if test -n "$AWK"; then
2178 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2179 else
2180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 for as_dir in $PATH
2183 IFS=$as_save_IFS
2184 test -z "$as_dir" && as_dir=.
2185 for ac_exec_ext in '' $ac_executable_extensions; do
2186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2187 ac_cv_prog_AWK="$ac_prog"
2188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2189 break 2
2191 done
2192 done
2193 IFS=$as_save_IFS
2197 AWK=$ac_cv_prog_AWK
2198 if test -n "$AWK"; then
2199 { echo "$as_me:$LINENO: result: $AWK" >&5
2200 echo "${ECHO_T}$AWK" >&6; }
2201 else
2202 { echo "$as_me:$LINENO: result: no" >&5
2203 echo "${ECHO_T}no" >&6; }
2207 test -n "$AWK" && break
2208 done
2210 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2211 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2212 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2213 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 else
2216 cat >conftest.make <<\_ACEOF
2217 SHELL = /bin/sh
2218 all:
2219 @echo '@@@%%%=$(MAKE)=@@@%%%'
2220 _ACEOF
2221 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2222 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2223 *@@@%%%=?*=@@@%%%*)
2224 eval ac_cv_prog_make_${ac_make}_set=yes;;
2226 eval ac_cv_prog_make_${ac_make}_set=no;;
2227 esac
2228 rm -f conftest.make
2230 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2231 { echo "$as_me:$LINENO: result: yes" >&5
2232 echo "${ECHO_T}yes" >&6; }
2233 SET_MAKE=
2234 else
2235 { echo "$as_me:$LINENO: result: no" >&5
2236 echo "${ECHO_T}no" >&6; }
2237 SET_MAKE="MAKE=${MAKE-make}"
2241 # These are not a "must".
2242 # Extract the first word of "ruby", so it can be a program name with args.
2243 set dummy ruby; ac_word=$2
2244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2246 if test "${ac_cv_path_RUBY+set}" = set; then
2247 echo $ECHO_N "(cached) $ECHO_C" >&6
2248 else
2249 case $RUBY in
2250 [\\/]* | ?:[\\/]*)
2251 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
2254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255 for as_dir in $PATH
2257 IFS=$as_save_IFS
2258 test -z "$as_dir" && as_dir=.
2259 for ac_exec_ext in '' $ac_executable_extensions; do
2260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2261 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
2262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2263 break 2
2265 done
2266 done
2267 IFS=$as_save_IFS
2270 esac
2272 RUBY=$ac_cv_path_RUBY
2273 if test -n "$RUBY"; then
2274 { echo "$as_me:$LINENO: result: $RUBY" >&5
2275 echo "${ECHO_T}$RUBY" >&6; }
2276 else
2277 { echo "$as_me:$LINENO: result: no" >&5
2278 echo "${ECHO_T}no" >&6; }
2282 # Extract the first word of "help2man", so it can be a program name with args.
2283 set dummy help2man; ac_word=$2
2284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2286 if test "${ac_cv_path_HELP2MAN+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 else
2289 case $HELP2MAN in
2290 [\\/]* | ?:[\\/]*)
2291 ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
2294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 for as_dir in $PATH
2297 IFS=$as_save_IFS
2298 test -z "$as_dir" && as_dir=.
2299 for ac_exec_ext in '' $ac_executable_extensions; do
2300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2301 ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
2302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2303 break 2
2305 done
2306 done
2307 IFS=$as_save_IFS
2310 esac
2312 HELP2MAN=$ac_cv_path_HELP2MAN
2313 if test -n "$HELP2MAN"; then
2314 { echo "$as_me:$LINENO: result: $HELP2MAN" >&5
2315 echo "${ECHO_T}$HELP2MAN" >&6; }
2316 else
2317 { echo "$as_me:$LINENO: result: no" >&5
2318 echo "${ECHO_T}no" >&6; }
2324 # Checks for host programs.
2327 ac_ext=c
2328 ac_cpp='$CPP $CPPFLAGS'
2329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2332 if test -n "$ac_tool_prefix"; then
2333 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2334 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2337 if test "${ac_cv_prog_CC+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2339 else
2340 if test -n "$CC"; then
2341 ac_cv_prog_CC="$CC" # Let the user override the test.
2342 else
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 for as_dir in $PATH
2346 IFS=$as_save_IFS
2347 test -z "$as_dir" && as_dir=.
2348 for ac_exec_ext in '' $ac_executable_extensions; do
2349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2350 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2352 break 2
2354 done
2355 done
2356 IFS=$as_save_IFS
2360 CC=$ac_cv_prog_CC
2361 if test -n "$CC"; then
2362 { echo "$as_me:$LINENO: result: $CC" >&5
2363 echo "${ECHO_T}$CC" >&6; }
2364 else
2365 { echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6; }
2371 if test -z "$ac_cv_prog_CC"; then
2372 ac_ct_CC=$CC
2373 # Extract the first word of "gcc", so it can be a program name with args.
2374 set dummy gcc; ac_word=$2
2375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2377 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2379 else
2380 if test -n "$ac_ct_CC"; then
2381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2382 else
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 for as_dir in $PATH
2386 IFS=$as_save_IFS
2387 test -z "$as_dir" && as_dir=.
2388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2390 ac_cv_prog_ac_ct_CC="gcc"
2391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2392 break 2
2394 done
2395 done
2396 IFS=$as_save_IFS
2400 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2401 if test -n "$ac_ct_CC"; then
2402 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2403 echo "${ECHO_T}$ac_ct_CC" >&6; }
2404 else
2405 { echo "$as_me:$LINENO: result: no" >&5
2406 echo "${ECHO_T}no" >&6; }
2409 if test "x$ac_ct_CC" = x; then
2410 CC=""
2411 else
2412 case $cross_compiling:$ac_tool_warned in
2413 yes:)
2414 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2415 whose name does not start with the host triplet. If you think this
2416 configuration is useful to you, please write to autoconf@gnu.org." >&5
2417 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2418 whose name does not start with the host triplet. If you think this
2419 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2420 ac_tool_warned=yes ;;
2421 esac
2422 CC=$ac_ct_CC
2424 else
2425 CC="$ac_cv_prog_CC"
2428 if test -z "$CC"; then
2429 if test -n "$ac_tool_prefix"; then
2430 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2431 set dummy ${ac_tool_prefix}cc; ac_word=$2
2432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2434 if test "${ac_cv_prog_CC+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437 if test -n "$CC"; then
2438 ac_cv_prog_CC="$CC" # Let the user override the test.
2439 else
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 for as_dir in $PATH
2443 IFS=$as_save_IFS
2444 test -z "$as_dir" && as_dir=.
2445 for ac_exec_ext in '' $ac_executable_extensions; do
2446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2447 ac_cv_prog_CC="${ac_tool_prefix}cc"
2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2449 break 2
2451 done
2452 done
2453 IFS=$as_save_IFS
2457 CC=$ac_cv_prog_CC
2458 if test -n "$CC"; then
2459 { echo "$as_me:$LINENO: result: $CC" >&5
2460 echo "${ECHO_T}$CC" >&6; }
2461 else
2462 { echo "$as_me:$LINENO: result: no" >&5
2463 echo "${ECHO_T}no" >&6; }
2469 if test -z "$CC"; then
2470 # Extract the first word of "cc", so it can be a program name with args.
2471 set dummy cc; ac_word=$2
2472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2474 if test "${ac_cv_prog_CC+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2476 else
2477 if test -n "$CC"; then
2478 ac_cv_prog_CC="$CC" # Let the user override the test.
2479 else
2480 ac_prog_rejected=no
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 for as_dir in $PATH
2484 IFS=$as_save_IFS
2485 test -z "$as_dir" && as_dir=.
2486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2488 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2489 ac_prog_rejected=yes
2490 continue
2492 ac_cv_prog_CC="cc"
2493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494 break 2
2496 done
2497 done
2498 IFS=$as_save_IFS
2500 if test $ac_prog_rejected = yes; then
2501 # We found a bogon in the path, so make sure we never use it.
2502 set dummy $ac_cv_prog_CC
2503 shift
2504 if test $# != 0; then
2505 # We chose a different compiler from the bogus one.
2506 # However, it has the same basename, so the bogon will be chosen
2507 # first if we set CC to just the basename; use the full file name.
2508 shift
2509 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2514 CC=$ac_cv_prog_CC
2515 if test -n "$CC"; then
2516 { echo "$as_me:$LINENO: result: $CC" >&5
2517 echo "${ECHO_T}$CC" >&6; }
2518 else
2519 { echo "$as_me:$LINENO: result: no" >&5
2520 echo "${ECHO_T}no" >&6; }
2525 if test -z "$CC"; then
2526 if test -n "$ac_tool_prefix"; then
2527 for ac_prog in cl.exe
2529 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2530 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2533 if test "${ac_cv_prog_CC+set}" = set; then
2534 echo $ECHO_N "(cached) $ECHO_C" >&6
2535 else
2536 if test -n "$CC"; then
2537 ac_cv_prog_CC="$CC" # Let the user override the test.
2538 else
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 for as_dir in $PATH
2542 IFS=$as_save_IFS
2543 test -z "$as_dir" && as_dir=.
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2546 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 break 2
2550 done
2551 done
2552 IFS=$as_save_IFS
2556 CC=$ac_cv_prog_CC
2557 if test -n "$CC"; then
2558 { echo "$as_me:$LINENO: result: $CC" >&5
2559 echo "${ECHO_T}$CC" >&6; }
2560 else
2561 { echo "$as_me:$LINENO: result: no" >&5
2562 echo "${ECHO_T}no" >&6; }
2566 test -n "$CC" && break
2567 done
2569 if test -z "$CC"; then
2570 ac_ct_CC=$CC
2571 for ac_prog in cl.exe
2573 # Extract the first word of "$ac_prog", so it can be a program name with args.
2574 set dummy $ac_prog; ac_word=$2
2575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2577 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2579 else
2580 if test -n "$ac_ct_CC"; then
2581 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2582 else
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 for as_dir in $PATH
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2590 ac_cv_prog_ac_ct_CC="$ac_prog"
2591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2592 break 2
2594 done
2595 done
2596 IFS=$as_save_IFS
2600 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2601 if test -n "$ac_ct_CC"; then
2602 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2603 echo "${ECHO_T}$ac_ct_CC" >&6; }
2604 else
2605 { echo "$as_me:$LINENO: result: no" >&5
2606 echo "${ECHO_T}no" >&6; }
2610 test -n "$ac_ct_CC" && break
2611 done
2613 if test "x$ac_ct_CC" = x; then
2614 CC=""
2615 else
2616 case $cross_compiling:$ac_tool_warned in
2617 yes:)
2618 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2619 whose name does not start with the host triplet. If you think this
2620 configuration is useful to you, please write to autoconf@gnu.org." >&5
2621 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2622 whose name does not start with the host triplet. If you think this
2623 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2624 ac_tool_warned=yes ;;
2625 esac
2626 CC=$ac_ct_CC
2633 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2634 See \`config.log' for more details." >&5
2635 echo "$as_me: error: no acceptable C compiler found in \$PATH
2636 See \`config.log' for more details." >&2;}
2637 { (exit 1); exit 1; }; }
2639 # Provide some information about the compiler.
2640 echo "$as_me:$LINENO: checking for C compiler version" >&5
2641 ac_compiler=`set X $ac_compile; echo $2`
2642 { (ac_try="$ac_compiler --version >&5"
2643 case "(($ac_try" in
2644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645 *) ac_try_echo=$ac_try;;
2646 esac
2647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2648 (eval "$ac_compiler --version >&5") 2>&5
2649 ac_status=$?
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }
2652 { (ac_try="$ac_compiler -v >&5"
2653 case "(($ac_try" in
2654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2655 *) ac_try_echo=$ac_try;;
2656 esac
2657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2658 (eval "$ac_compiler -v >&5") 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }
2662 { (ac_try="$ac_compiler -V >&5"
2663 case "(($ac_try" in
2664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665 *) ac_try_echo=$ac_try;;
2666 esac
2667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2668 (eval "$ac_compiler -V >&5") 2>&5
2669 ac_status=$?
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }
2673 cat >conftest.$ac_ext <<_ACEOF
2674 /* confdefs.h. */
2675 _ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h. */
2681 main ()
2685 return 0;
2687 _ACEOF
2688 ac_clean_files_save=$ac_clean_files
2689 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2690 # Try to create an executable without -o first, disregard a.out.
2691 # It will help us diagnose broken compilers, and finding out an intuition
2692 # of exeext.
2693 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2694 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2695 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2697 # List of possible output files, starting from the most likely.
2698 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2699 # only as a last resort. b.out is created by i960 compilers.
2700 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2702 # The IRIX 6 linker writes into existing files which may not be
2703 # executable, retaining their permissions. Remove them first so a
2704 # subsequent execution test works.
2705 ac_rmfiles=
2706 for ac_file in $ac_files
2708 case $ac_file in
2709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2710 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2711 esac
2712 done
2713 rm -f $ac_rmfiles
2715 if { (ac_try="$ac_link_default"
2716 case "(($ac_try" in
2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718 *) ac_try_echo=$ac_try;;
2719 esac
2720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2721 (eval "$ac_link_default") 2>&5
2722 ac_status=$?
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; then
2725 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2726 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2727 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2728 # so that the user can short-circuit this test for compilers unknown to
2729 # Autoconf.
2730 for ac_file in $ac_files ''
2732 test -f "$ac_file" || continue
2733 case $ac_file in
2734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2736 [ab].out )
2737 # We found the default executable, but exeext='' is most
2738 # certainly right.
2739 break;;
2740 *.* )
2741 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2742 then :; else
2743 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2745 # We set ac_cv_exeext here because the later test for it is not
2746 # safe: cross compilers may not add the suffix if given an `-o'
2747 # argument, so we may need to know it at that point already.
2748 # Even if this section looks crufty: it has the advantage of
2749 # actually working.
2750 break;;
2752 break;;
2753 esac
2754 done
2755 test "$ac_cv_exeext" = no && ac_cv_exeext=
2757 else
2758 ac_file=''
2761 { echo "$as_me:$LINENO: result: $ac_file" >&5
2762 echo "${ECHO_T}$ac_file" >&6; }
2763 if test -z "$ac_file"; then
2764 echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2767 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2768 See \`config.log' for more details." >&5
2769 echo "$as_me: error: C compiler cannot create executables
2770 See \`config.log' for more details." >&2;}
2771 { (exit 77); exit 77; }; }
2774 ac_exeext=$ac_cv_exeext
2776 # Check that the compiler produces executables we can run. If not, either
2777 # the compiler is broken, or we cross compile.
2778 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2779 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2780 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2781 # If not cross compiling, check that we can run a simple program.
2782 if test "$cross_compiling" != yes; then
2783 if { ac_try='./$ac_file'
2784 { (case "(($ac_try" in
2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2787 esac
2788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789 (eval "$ac_try") 2>&5
2790 ac_status=$?
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; }; then
2793 cross_compiling=no
2794 else
2795 if test "$cross_compiling" = maybe; then
2796 cross_compiling=yes
2797 else
2798 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2799 If you meant to cross compile, use \`--host'.
2800 See \`config.log' for more details." >&5
2801 echo "$as_me: error: cannot run C compiled programs.
2802 If you meant to cross compile, use \`--host'.
2803 See \`config.log' for more details." >&2;}
2804 { (exit 1); exit 1; }; }
2808 { echo "$as_me:$LINENO: result: yes" >&5
2809 echo "${ECHO_T}yes" >&6; }
2811 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2812 ac_clean_files=$ac_clean_files_save
2813 # Check that the compiler produces executables we can run. If not, either
2814 # the compiler is broken, or we cross compile.
2815 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2816 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2817 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2818 echo "${ECHO_T}$cross_compiling" >&6; }
2820 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2821 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2822 if { (ac_try="$ac_link"
2823 case "(($ac_try" in
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2826 esac
2827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828 (eval "$ac_link") 2>&5
2829 ac_status=$?
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; then
2832 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2833 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2834 # work properly (i.e., refer to `conftest.exe'), while it won't with
2835 # `rm'.
2836 for ac_file in conftest.exe conftest conftest.*; do
2837 test -f "$ac_file" || continue
2838 case $ac_file in
2839 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2840 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2841 break;;
2842 * ) break;;
2843 esac
2844 done
2845 else
2846 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2847 See \`config.log' for more details." >&5
2848 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2849 See \`config.log' for more details." >&2;}
2850 { (exit 1); exit 1; }; }
2853 rm -f conftest$ac_cv_exeext
2854 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2855 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2857 rm -f conftest.$ac_ext
2858 EXEEXT=$ac_cv_exeext
2859 ac_exeext=$EXEEXT
2860 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2861 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2862 if test "${ac_cv_objext+set}" = set; then
2863 echo $ECHO_N "(cached) $ECHO_C" >&6
2864 else
2865 cat >conftest.$ac_ext <<_ACEOF
2866 /* confdefs.h. */
2867 _ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h. */
2873 main ()
2877 return 0;
2879 _ACEOF
2880 rm -f conftest.o conftest.obj
2881 if { (ac_try="$ac_compile"
2882 case "(($ac_try" in
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2885 esac
2886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887 (eval "$ac_compile") 2>&5
2888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; then
2891 for ac_file in conftest.o conftest.obj conftest.*; do
2892 test -f "$ac_file" || continue;
2893 case $ac_file in
2894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2895 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2896 break;;
2897 esac
2898 done
2899 else
2900 echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2903 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2904 See \`config.log' for more details." >&5
2905 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2906 See \`config.log' for more details." >&2;}
2907 { (exit 1); exit 1; }; }
2910 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2912 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2913 echo "${ECHO_T}$ac_cv_objext" >&6; }
2914 OBJEXT=$ac_cv_objext
2915 ac_objext=$OBJEXT
2916 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2917 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2918 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 else
2921 cat >conftest.$ac_ext <<_ACEOF
2922 /* confdefs.h. */
2923 _ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2929 main ()
2931 #ifndef __GNUC__
2932 choke me
2933 #endif
2936 return 0;
2938 _ACEOF
2939 rm -f conftest.$ac_objext
2940 if { (ac_try="$ac_compile"
2941 case "(($ac_try" in
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2944 esac
2945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946 (eval "$ac_compile") 2>conftest.er1
2947 ac_status=$?
2948 grep -v '^ *+' conftest.er1 >conftest.err
2949 rm -f conftest.er1
2950 cat conftest.err >&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); } && {
2953 test -z "$ac_c_werror_flag" ||
2954 test ! -s conftest.err
2955 } && test -s conftest.$ac_objext; then
2956 ac_compiler_gnu=yes
2957 else
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2961 ac_compiler_gnu=no
2964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2965 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2968 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2969 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2970 GCC=`test $ac_compiler_gnu = yes && echo yes`
2971 ac_test_CFLAGS=${CFLAGS+set}
2972 ac_save_CFLAGS=$CFLAGS
2973 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2974 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2975 if test "${ac_cv_prog_cc_g+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2977 else
2978 ac_save_c_werror_flag=$ac_c_werror_flag
2979 ac_c_werror_flag=yes
2980 ac_cv_prog_cc_g=no
2981 CFLAGS="-g"
2982 cat >conftest.$ac_ext <<_ACEOF
2983 /* confdefs.h. */
2984 _ACEOF
2985 cat confdefs.h >>conftest.$ac_ext
2986 cat >>conftest.$ac_ext <<_ACEOF
2987 /* end confdefs.h. */
2990 main ()
2994 return 0;
2996 _ACEOF
2997 rm -f conftest.$ac_objext
2998 if { (ac_try="$ac_compile"
2999 case "(($ac_try" in
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3002 esac
3003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3004 (eval "$ac_compile") 2>conftest.er1
3005 ac_status=$?
3006 grep -v '^ *+' conftest.er1 >conftest.err
3007 rm -f conftest.er1
3008 cat conftest.err >&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); } && {
3011 test -z "$ac_c_werror_flag" ||
3012 test ! -s conftest.err
3013 } && test -s conftest.$ac_objext; then
3014 ac_cv_prog_cc_g=yes
3015 else
3016 echo "$as_me: failed program was:" >&5
3017 sed 's/^/| /' conftest.$ac_ext >&5
3019 CFLAGS=""
3020 cat >conftest.$ac_ext <<_ACEOF
3021 /* confdefs.h. */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3028 main ()
3032 return 0;
3034 _ACEOF
3035 rm -f conftest.$ac_objext
3036 if { (ac_try="$ac_compile"
3037 case "(($ac_try" in
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3040 esac
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_compile") 2>conftest.er1
3043 ac_status=$?
3044 grep -v '^ *+' conftest.er1 >conftest.err
3045 rm -f conftest.er1
3046 cat conftest.err >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } && {
3049 test -z "$ac_c_werror_flag" ||
3050 test ! -s conftest.err
3051 } && test -s conftest.$ac_objext; then
3053 else
3054 echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3057 ac_c_werror_flag=$ac_save_c_werror_flag
3058 CFLAGS="-g"
3059 cat >conftest.$ac_ext <<_ACEOF
3060 /* confdefs.h. */
3061 _ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h. */
3067 main ()
3071 return 0;
3073 _ACEOF
3074 rm -f conftest.$ac_objext
3075 if { (ac_try="$ac_compile"
3076 case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3079 esac
3080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081 (eval "$ac_compile") 2>conftest.er1
3082 ac_status=$?
3083 grep -v '^ *+' conftest.er1 >conftest.err
3084 rm -f conftest.er1
3085 cat conftest.err >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } && {
3088 test -z "$ac_c_werror_flag" ||
3089 test ! -s conftest.err
3090 } && test -s conftest.$ac_objext; then
3091 ac_cv_prog_cc_g=yes
3092 else
3093 echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3106 ac_c_werror_flag=$ac_save_c_werror_flag
3108 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3109 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3110 if test "$ac_test_CFLAGS" = set; then
3111 CFLAGS=$ac_save_CFLAGS
3112 elif test $ac_cv_prog_cc_g = yes; then
3113 if test "$GCC" = yes; then
3114 CFLAGS="-g -O2"
3115 else
3116 CFLAGS="-g"
3118 else
3119 if test "$GCC" = yes; then
3120 CFLAGS="-O2"
3121 else
3122 CFLAGS=
3125 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3126 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3127 if test "${ac_cv_prog_cc_c89+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 else
3130 ac_cv_prog_cc_c89=no
3131 ac_save_CC=$CC
3132 cat >conftest.$ac_ext <<_ACEOF
3133 /* confdefs.h. */
3134 _ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h. */
3138 #include <stdarg.h>
3139 #include <stdio.h>
3140 #include <sys/types.h>
3141 #include <sys/stat.h>
3142 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3143 struct buf { int x; };
3144 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3145 static char *e (p, i)
3146 char **p;
3147 int i;
3149 return p[i];
3151 static char *f (char * (*g) (char **, int), char **p, ...)
3153 char *s;
3154 va_list v;
3155 va_start (v,p);
3156 s = g (p, va_arg (v,int));
3157 va_end (v);
3158 return s;
3161 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3162 function prototypes and stuff, but not '\xHH' hex character constants.
3163 These don't provoke an error unfortunately, instead are silently treated
3164 as 'x'. The following induces an error, until -std is added to get
3165 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3166 array size at least. It's necessary to write '\x00'==0 to get something
3167 that's true only with -std. */
3168 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3170 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3171 inside strings and character constants. */
3172 #define FOO(x) 'x'
3173 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3175 int test (int i, double x);
3176 struct s1 {int (*f) (int a);};
3177 struct s2 {int (*f) (double a);};
3178 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3179 int argc;
3180 char **argv;
3182 main ()
3184 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3186 return 0;
3188 _ACEOF
3189 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3190 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3192 CC="$ac_save_CC $ac_arg"
3193 rm -f conftest.$ac_objext
3194 if { (ac_try="$ac_compile"
3195 case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198 esac
3199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_compile") 2>conftest.er1
3201 ac_status=$?
3202 grep -v '^ *+' conftest.er1 >conftest.err
3203 rm -f conftest.er1
3204 cat conftest.err >&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } && {
3207 test -z "$ac_c_werror_flag" ||
3208 test ! -s conftest.err
3209 } && test -s conftest.$ac_objext; then
3210 ac_cv_prog_cc_c89=$ac_arg
3211 else
3212 echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3218 rm -f core conftest.err conftest.$ac_objext
3219 test "x$ac_cv_prog_cc_c89" != "xno" && break
3220 done
3221 rm -f conftest.$ac_ext
3222 CC=$ac_save_CC
3225 # AC_CACHE_VAL
3226 case "x$ac_cv_prog_cc_c89" in
3228 { echo "$as_me:$LINENO: result: none needed" >&5
3229 echo "${ECHO_T}none needed" >&6; } ;;
3230 xno)
3231 { echo "$as_me:$LINENO: result: unsupported" >&5
3232 echo "${ECHO_T}unsupported" >&6; } ;;
3234 CC="$CC $ac_cv_prog_cc_c89"
3235 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3236 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3237 esac
3240 ac_ext=c
3241 ac_cpp='$CPP $CPPFLAGS'
3242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3246 # Must be GCC.
3247 test "x$GCC" = xyes || { { echo "$as_me:$LINENO: error: GCC is required" >&5
3248 echo "$as_me: error: GCC is required" >&2;}
3249 { (exit 1); exit 1; }; }
3252 cat >>confdefs.h <<\_ACEOF
3253 #define _GNU_SOURCE 1
3254 _ACEOF
3258 # Check whether --enable-largefile was given.
3259 if test "${enable_largefile+set}" = set; then
3260 enableval=$enable_largefile;
3263 if test "$enable_largefile" != no; then
3265 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3266 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3267 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3269 else
3270 ac_cv_sys_largefile_CC=no
3271 if test "$GCC" != yes; then
3272 ac_save_CC=$CC
3273 while :; do
3274 # IRIX 6.2 and later do not support large files by default,
3275 # so use the C compiler's -n32 option if that helps.
3276 cat >conftest.$ac_ext <<_ACEOF
3277 /* confdefs.h. */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3282 #include <sys/types.h>
3283 /* Check that off_t can represent 2**63 - 1 correctly.
3284 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3285 since some C++ compilers masquerading as C compilers
3286 incorrectly reject 9223372036854775807. */
3287 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3288 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3289 && LARGE_OFF_T % 2147483647 == 1)
3290 ? 1 : -1];
3292 main ()
3296 return 0;
3298 _ACEOF
3299 rm -f conftest.$ac_objext
3300 if { (ac_try="$ac_compile"
3301 case "(($ac_try" in
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3304 esac
3305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3306 (eval "$ac_compile") 2>conftest.er1
3307 ac_status=$?
3308 grep -v '^ *+' conftest.er1 >conftest.err
3309 rm -f conftest.er1
3310 cat conftest.err >&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } && {
3313 test -z "$ac_c_werror_flag" ||
3314 test ! -s conftest.err
3315 } && test -s conftest.$ac_objext; then
3316 break
3317 else
3318 echo "$as_me: failed program was:" >&5
3319 sed 's/^/| /' conftest.$ac_ext >&5
3324 rm -f core conftest.err conftest.$ac_objext
3325 CC="$CC -n32"
3326 rm -f conftest.$ac_objext
3327 if { (ac_try="$ac_compile"
3328 case "(($ac_try" in
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3331 esac
3332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3333 (eval "$ac_compile") 2>conftest.er1
3334 ac_status=$?
3335 grep -v '^ *+' conftest.er1 >conftest.err
3336 rm -f conftest.er1
3337 cat conftest.err >&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } && {
3340 test -z "$ac_c_werror_flag" ||
3341 test ! -s conftest.err
3342 } && test -s conftest.$ac_objext; then
3343 ac_cv_sys_largefile_CC=' -n32'; break
3344 else
3345 echo "$as_me: failed program was:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3351 rm -f core conftest.err conftest.$ac_objext
3352 break
3353 done
3354 CC=$ac_save_CC
3355 rm -f conftest.$ac_ext
3358 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3359 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3360 if test "$ac_cv_sys_largefile_CC" != no; then
3361 CC=$CC$ac_cv_sys_largefile_CC
3364 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3365 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
3366 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3368 else
3369 while :; do
3370 cat >conftest.$ac_ext <<_ACEOF
3371 /* confdefs.h. */
3372 _ACEOF
3373 cat confdefs.h >>conftest.$ac_ext
3374 cat >>conftest.$ac_ext <<_ACEOF
3375 /* end confdefs.h. */
3376 #include <sys/types.h>
3377 /* Check that off_t can represent 2**63 - 1 correctly.
3378 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3379 since some C++ compilers masquerading as C compilers
3380 incorrectly reject 9223372036854775807. */
3381 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3382 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3383 && LARGE_OFF_T % 2147483647 == 1)
3384 ? 1 : -1];
3386 main ()
3390 return 0;
3392 _ACEOF
3393 rm -f conftest.$ac_objext
3394 if { (ac_try="$ac_compile"
3395 case "(($ac_try" in
3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397 *) ac_try_echo=$ac_try;;
3398 esac
3399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3400 (eval "$ac_compile") 2>conftest.er1
3401 ac_status=$?
3402 grep -v '^ *+' conftest.er1 >conftest.err
3403 rm -f conftest.er1
3404 cat conftest.err >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); } && {
3407 test -z "$ac_c_werror_flag" ||
3408 test ! -s conftest.err
3409 } && test -s conftest.$ac_objext; then
3410 ac_cv_sys_file_offset_bits=no; break
3411 else
3412 echo "$as_me: failed program was:" >&5
3413 sed 's/^/| /' conftest.$ac_ext >&5
3418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3419 cat >conftest.$ac_ext <<_ACEOF
3420 /* confdefs.h. */
3421 _ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3425 #define _FILE_OFFSET_BITS 64
3426 #include <sys/types.h>
3427 /* Check that off_t can represent 2**63 - 1 correctly.
3428 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3429 since some C++ compilers masquerading as C compilers
3430 incorrectly reject 9223372036854775807. */
3431 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3432 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3433 && LARGE_OFF_T % 2147483647 == 1)
3434 ? 1 : -1];
3436 main ()
3440 return 0;
3442 _ACEOF
3443 rm -f conftest.$ac_objext
3444 if { (ac_try="$ac_compile"
3445 case "(($ac_try" in
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3448 esac
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_compile") 2>conftest.er1
3451 ac_status=$?
3452 grep -v '^ *+' conftest.er1 >conftest.err
3453 rm -f conftest.er1
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } && {
3457 test -z "$ac_c_werror_flag" ||
3458 test ! -s conftest.err
3459 } && test -s conftest.$ac_objext; then
3460 ac_cv_sys_file_offset_bits=64; break
3461 else
3462 echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3469 ac_cv_sys_file_offset_bits=unknown
3470 break
3471 done
3473 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3474 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
3475 case $ac_cv_sys_file_offset_bits in #(
3476 no | unknown) ;;
3478 cat >>confdefs.h <<_ACEOF
3479 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3480 _ACEOF
3482 esac
3483 rm -f conftest*
3484 if test $ac_cv_sys_file_offset_bits = unknown; then
3485 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3486 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
3487 if test "${ac_cv_sys_large_files+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3489 else
3490 while :; do
3491 cat >conftest.$ac_ext <<_ACEOF
3492 /* confdefs.h. */
3493 _ACEOF
3494 cat confdefs.h >>conftest.$ac_ext
3495 cat >>conftest.$ac_ext <<_ACEOF
3496 /* end confdefs.h. */
3497 #include <sys/types.h>
3498 /* Check that off_t can represent 2**63 - 1 correctly.
3499 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3500 since some C++ compilers masquerading as C compilers
3501 incorrectly reject 9223372036854775807. */
3502 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3503 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3504 && LARGE_OFF_T % 2147483647 == 1)
3505 ? 1 : -1];
3507 main ()
3511 return 0;
3513 _ACEOF
3514 rm -f conftest.$ac_objext
3515 if { (ac_try="$ac_compile"
3516 case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519 esac
3520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3521 (eval "$ac_compile") 2>conftest.er1
3522 ac_status=$?
3523 grep -v '^ *+' conftest.er1 >conftest.err
3524 rm -f conftest.er1
3525 cat conftest.err >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); } && {
3528 test -z "$ac_c_werror_flag" ||
3529 test ! -s conftest.err
3530 } && test -s conftest.$ac_objext; then
3531 ac_cv_sys_large_files=no; break
3532 else
3533 echo "$as_me: failed program was:" >&5
3534 sed 's/^/| /' conftest.$ac_ext >&5
3539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3540 cat >conftest.$ac_ext <<_ACEOF
3541 /* confdefs.h. */
3542 _ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3546 #define _LARGE_FILES 1
3547 #include <sys/types.h>
3548 /* Check that off_t can represent 2**63 - 1 correctly.
3549 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3550 since some C++ compilers masquerading as C compilers
3551 incorrectly reject 9223372036854775807. */
3552 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3553 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3554 && LARGE_OFF_T % 2147483647 == 1)
3555 ? 1 : -1];
3557 main ()
3561 return 0;
3563 _ACEOF
3564 rm -f conftest.$ac_objext
3565 if { (ac_try="$ac_compile"
3566 case "(($ac_try" in
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3569 esac
3570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571 (eval "$ac_compile") 2>conftest.er1
3572 ac_status=$?
3573 grep -v '^ *+' conftest.er1 >conftest.err
3574 rm -f conftest.er1
3575 cat conftest.err >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } && {
3578 test -z "$ac_c_werror_flag" ||
3579 test ! -s conftest.err
3580 } && test -s conftest.$ac_objext; then
3581 ac_cv_sys_large_files=1; break
3582 else
3583 echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 ac_cv_sys_large_files=unknown
3591 break
3592 done
3594 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3595 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
3596 case $ac_cv_sys_large_files in #(
3597 no | unknown) ;;
3599 cat >>confdefs.h <<_ACEOF
3600 #define _LARGE_FILES $ac_cv_sys_large_files
3601 _ACEOF
3603 esac
3604 rm -f conftest*
3609 # Identify characteristics of the host architecture.
3610 ac_ext=c
3611 ac_cpp='$CPP $CPPFLAGS'
3612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3615 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3616 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3617 # On Suns, sometimes $CPP names a directory.
3618 if test -n "$CPP" && test -d "$CPP"; then
3619 CPP=
3621 if test -z "$CPP"; then
3622 if test "${ac_cv_prog_CPP+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625 # Double quotes because CPP needs to be expanded
3626 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3628 ac_preproc_ok=false
3629 for ac_c_preproc_warn_flag in '' yes
3631 # Use a header file that comes with gcc, so configuring glibc
3632 # with a fresh cross-compiler works.
3633 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3634 # <limits.h> exists even on freestanding compilers.
3635 # On the NeXT, cc -E runs the code through the compiler's parser,
3636 # not just through cpp. "Syntax error" is here to catch this case.
3637 cat >conftest.$ac_ext <<_ACEOF
3638 /* confdefs.h. */
3639 _ACEOF
3640 cat confdefs.h >>conftest.$ac_ext
3641 cat >>conftest.$ac_ext <<_ACEOF
3642 /* end confdefs.h. */
3643 #ifdef __STDC__
3644 # include <limits.h>
3645 #else
3646 # include <assert.h>
3647 #endif
3648 Syntax error
3649 _ACEOF
3650 if { (ac_try="$ac_cpp conftest.$ac_ext"
3651 case "(($ac_try" in
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3654 esac
3655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3657 ac_status=$?
3658 grep -v '^ *+' conftest.er1 >conftest.err
3659 rm -f conftest.er1
3660 cat conftest.err >&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); } >/dev/null && {
3663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3664 test ! -s conftest.err
3665 }; then
3667 else
3668 echo "$as_me: failed program was:" >&5
3669 sed 's/^/| /' conftest.$ac_ext >&5
3671 # Broken: fails on valid input.
3672 continue
3675 rm -f conftest.err conftest.$ac_ext
3677 # OK, works on sane cases. Now check whether nonexistent headers
3678 # can be detected and how.
3679 cat >conftest.$ac_ext <<_ACEOF
3680 /* confdefs.h. */
3681 _ACEOF
3682 cat confdefs.h >>conftest.$ac_ext
3683 cat >>conftest.$ac_ext <<_ACEOF
3684 /* end confdefs.h. */
3685 #include <ac_nonexistent.h>
3686 _ACEOF
3687 if { (ac_try="$ac_cpp conftest.$ac_ext"
3688 case "(($ac_try" in
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3691 esac
3692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3694 ac_status=$?
3695 grep -v '^ *+' conftest.er1 >conftest.err
3696 rm -f conftest.er1
3697 cat conftest.err >&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); } >/dev/null && {
3700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3701 test ! -s conftest.err
3702 }; then
3703 # Broken: success on invalid input.
3704 continue
3705 else
3706 echo "$as_me: failed program was:" >&5
3707 sed 's/^/| /' conftest.$ac_ext >&5
3709 # Passes both tests.
3710 ac_preproc_ok=:
3711 break
3714 rm -f conftest.err conftest.$ac_ext
3716 done
3717 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3718 rm -f conftest.err conftest.$ac_ext
3719 if $ac_preproc_ok; then
3720 break
3723 done
3724 ac_cv_prog_CPP=$CPP
3727 CPP=$ac_cv_prog_CPP
3728 else
3729 ac_cv_prog_CPP=$CPP
3731 { echo "$as_me:$LINENO: result: $CPP" >&5
3732 echo "${ECHO_T}$CPP" >&6; }
3733 ac_preproc_ok=false
3734 for ac_c_preproc_warn_flag in '' yes
3736 # Use a header file that comes with gcc, so configuring glibc
3737 # with a fresh cross-compiler works.
3738 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3739 # <limits.h> exists even on freestanding compilers.
3740 # On the NeXT, cc -E runs the code through the compiler's parser,
3741 # not just through cpp. "Syntax error" is here to catch this case.
3742 cat >conftest.$ac_ext <<_ACEOF
3743 /* confdefs.h. */
3744 _ACEOF
3745 cat confdefs.h >>conftest.$ac_ext
3746 cat >>conftest.$ac_ext <<_ACEOF
3747 /* end confdefs.h. */
3748 #ifdef __STDC__
3749 # include <limits.h>
3750 #else
3751 # include <assert.h>
3752 #endif
3753 Syntax error
3754 _ACEOF
3755 if { (ac_try="$ac_cpp conftest.$ac_ext"
3756 case "(($ac_try" in
3757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3759 esac
3760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3762 ac_status=$?
3763 grep -v '^ *+' conftest.er1 >conftest.err
3764 rm -f conftest.er1
3765 cat conftest.err >&5
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); } >/dev/null && {
3768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3769 test ! -s conftest.err
3770 }; then
3772 else
3773 echo "$as_me: failed program was:" >&5
3774 sed 's/^/| /' conftest.$ac_ext >&5
3776 # Broken: fails on valid input.
3777 continue
3780 rm -f conftest.err conftest.$ac_ext
3782 # OK, works on sane cases. Now check whether nonexistent headers
3783 # can be detected and how.
3784 cat >conftest.$ac_ext <<_ACEOF
3785 /* confdefs.h. */
3786 _ACEOF
3787 cat confdefs.h >>conftest.$ac_ext
3788 cat >>conftest.$ac_ext <<_ACEOF
3789 /* end confdefs.h. */
3790 #include <ac_nonexistent.h>
3791 _ACEOF
3792 if { (ac_try="$ac_cpp conftest.$ac_ext"
3793 case "(($ac_try" in
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3796 esac
3797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3799 ac_status=$?
3800 grep -v '^ *+' conftest.er1 >conftest.err
3801 rm -f conftest.er1
3802 cat conftest.err >&5
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); } >/dev/null && {
3805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3806 test ! -s conftest.err
3807 }; then
3808 # Broken: success on invalid input.
3809 continue
3810 else
3811 echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3814 # Passes both tests.
3815 ac_preproc_ok=:
3816 break
3819 rm -f conftest.err conftest.$ac_ext
3821 done
3822 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3823 rm -f conftest.err conftest.$ac_ext
3824 if $ac_preproc_ok; then
3826 else
3827 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3828 See \`config.log' for more details." >&5
3829 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3830 See \`config.log' for more details." >&2;}
3831 { (exit 1); exit 1; }; }
3834 ac_ext=c
3835 ac_cpp='$CPP $CPPFLAGS'
3836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3841 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3842 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3843 if test "${ac_cv_path_GREP+set}" = set; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
3845 else
3846 # Extract the first word of "grep ggrep" to use in msg output
3847 if test -z "$GREP"; then
3848 set dummy grep ggrep; ac_prog_name=$2
3849 if test "${ac_cv_path_GREP+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 else
3852 ac_path_GREP_found=false
3853 # Loop through the user's path and test for each of PROGNAME-LIST
3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3857 IFS=$as_save_IFS
3858 test -z "$as_dir" && as_dir=.
3859 for ac_prog in grep ggrep; do
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3862 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3863 # Check for GNU ac_path_GREP and select it if it is found.
3864 # Check for GNU $ac_path_GREP
3865 case `"$ac_path_GREP" --version 2>&1` in
3866 *GNU*)
3867 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3869 ac_count=0
3870 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3871 while :
3873 cat "conftest.in" "conftest.in" >"conftest.tmp"
3874 mv "conftest.tmp" "conftest.in"
3875 cp "conftest.in" "conftest.nl"
3876 echo 'GREP' >> "conftest.nl"
3877 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3878 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3879 ac_count=`expr $ac_count + 1`
3880 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3881 # Best one so far, save it but keep looking for a better one
3882 ac_cv_path_GREP="$ac_path_GREP"
3883 ac_path_GREP_max=$ac_count
3885 # 10*(2^10) chars as input seems more than enough
3886 test $ac_count -gt 10 && break
3887 done
3888 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3889 esac
3892 $ac_path_GREP_found && break 3
3893 done
3894 done
3896 done
3897 IFS=$as_save_IFS
3902 GREP="$ac_cv_path_GREP"
3903 if test -z "$GREP"; then
3904 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3905 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3906 { (exit 1); exit 1; }; }
3909 else
3910 ac_cv_path_GREP=$GREP
3915 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3916 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3917 GREP="$ac_cv_path_GREP"
3920 { echo "$as_me:$LINENO: checking for egrep" >&5
3921 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3922 if test "${ac_cv_path_EGREP+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 else
3925 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3926 then ac_cv_path_EGREP="$GREP -E"
3927 else
3928 # Extract the first word of "egrep" to use in msg output
3929 if test -z "$EGREP"; then
3930 set dummy egrep; ac_prog_name=$2
3931 if test "${ac_cv_path_EGREP+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3933 else
3934 ac_path_EGREP_found=false
3935 # Loop through the user's path and test for each of PROGNAME-LIST
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3939 IFS=$as_save_IFS
3940 test -z "$as_dir" && as_dir=.
3941 for ac_prog in egrep; do
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3944 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3945 # Check for GNU ac_path_EGREP and select it if it is found.
3946 # Check for GNU $ac_path_EGREP
3947 case `"$ac_path_EGREP" --version 2>&1` in
3948 *GNU*)
3949 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3951 ac_count=0
3952 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3953 while :
3955 cat "conftest.in" "conftest.in" >"conftest.tmp"
3956 mv "conftest.tmp" "conftest.in"
3957 cp "conftest.in" "conftest.nl"
3958 echo 'EGREP' >> "conftest.nl"
3959 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3960 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3961 ac_count=`expr $ac_count + 1`
3962 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3963 # Best one so far, save it but keep looking for a better one
3964 ac_cv_path_EGREP="$ac_path_EGREP"
3965 ac_path_EGREP_max=$ac_count
3967 # 10*(2^10) chars as input seems more than enough
3968 test $ac_count -gt 10 && break
3969 done
3970 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3971 esac
3974 $ac_path_EGREP_found && break 3
3975 done
3976 done
3978 done
3979 IFS=$as_save_IFS
3984 EGREP="$ac_cv_path_EGREP"
3985 if test -z "$EGREP"; then
3986 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3987 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3988 { (exit 1); exit 1; }; }
3991 else
3992 ac_cv_path_EGREP=$EGREP
3998 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3999 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4000 EGREP="$ac_cv_path_EGREP"
4003 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4004 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4005 if test "${ac_cv_header_stdc+set}" = set; then
4006 echo $ECHO_N "(cached) $ECHO_C" >&6
4007 else
4008 cat >conftest.$ac_ext <<_ACEOF
4009 /* confdefs.h. */
4010 _ACEOF
4011 cat confdefs.h >>conftest.$ac_ext
4012 cat >>conftest.$ac_ext <<_ACEOF
4013 /* end confdefs.h. */
4014 #include <stdlib.h>
4015 #include <stdarg.h>
4016 #include <string.h>
4017 #include <float.h>
4020 main ()
4024 return 0;
4026 _ACEOF
4027 rm -f conftest.$ac_objext
4028 if { (ac_try="$ac_compile"
4029 case "(($ac_try" in
4030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031 *) ac_try_echo=$ac_try;;
4032 esac
4033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4034 (eval "$ac_compile") 2>conftest.er1
4035 ac_status=$?
4036 grep -v '^ *+' conftest.er1 >conftest.err
4037 rm -f conftest.er1
4038 cat conftest.err >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } && {
4041 test -z "$ac_c_werror_flag" ||
4042 test ! -s conftest.err
4043 } && test -s conftest.$ac_objext; then
4044 ac_cv_header_stdc=yes
4045 else
4046 echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4049 ac_cv_header_stdc=no
4052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4054 if test $ac_cv_header_stdc = yes; then
4055 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4056 cat >conftest.$ac_ext <<_ACEOF
4057 /* confdefs.h. */
4058 _ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h. */
4062 #include <string.h>
4064 _ACEOF
4065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4066 $EGREP "memchr" >/dev/null 2>&1; then
4068 else
4069 ac_cv_header_stdc=no
4071 rm -f conftest*
4075 if test $ac_cv_header_stdc = yes; then
4076 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4077 cat >conftest.$ac_ext <<_ACEOF
4078 /* confdefs.h. */
4079 _ACEOF
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h. */
4083 #include <stdlib.h>
4085 _ACEOF
4086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4087 $EGREP "free" >/dev/null 2>&1; then
4089 else
4090 ac_cv_header_stdc=no
4092 rm -f conftest*
4096 if test $ac_cv_header_stdc = yes; then
4097 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4098 if test "$cross_compiling" = yes; then
4100 else
4101 cat >conftest.$ac_ext <<_ACEOF
4102 /* confdefs.h. */
4103 _ACEOF
4104 cat confdefs.h >>conftest.$ac_ext
4105 cat >>conftest.$ac_ext <<_ACEOF
4106 /* end confdefs.h. */
4107 #include <ctype.h>
4108 #include <stdlib.h>
4109 #if ((' ' & 0x0FF) == 0x020)
4110 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4111 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4112 #else
4113 # define ISLOWER(c) \
4114 (('a' <= (c) && (c) <= 'i') \
4115 || ('j' <= (c) && (c) <= 'r') \
4116 || ('s' <= (c) && (c) <= 'z'))
4117 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4118 #endif
4120 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4122 main ()
4124 int i;
4125 for (i = 0; i < 256; i++)
4126 if (XOR (islower (i), ISLOWER (i))
4127 || toupper (i) != TOUPPER (i))
4128 return 2;
4129 return 0;
4131 _ACEOF
4132 rm -f conftest$ac_exeext
4133 if { (ac_try="$ac_link"
4134 case "(($ac_try" in
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4137 esac
4138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139 (eval "$ac_link") 2>&5
4140 ac_status=$?
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4143 { (case "(($ac_try" in
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4146 esac
4147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148 (eval "$ac_try") 2>&5
4149 ac_status=$?
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); }; }; then
4153 else
4154 echo "$as_me: program exited with status $ac_status" >&5
4155 echo "$as_me: failed program was:" >&5
4156 sed 's/^/| /' conftest.$ac_ext >&5
4158 ( exit $ac_status )
4159 ac_cv_header_stdc=no
4161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4167 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4168 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4169 if test $ac_cv_header_stdc = yes; then
4171 cat >>confdefs.h <<\_ACEOF
4172 #define STDC_HEADERS 1
4173 _ACEOF
4177 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4187 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4188 inttypes.h stdint.h unistd.h
4190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4191 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4194 echo $ECHO_N "(cached) $ECHO_C" >&6
4195 else
4196 cat >conftest.$ac_ext <<_ACEOF
4197 /* confdefs.h. */
4198 _ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h. */
4202 $ac_includes_default
4204 #include <$ac_header>
4205 _ACEOF
4206 rm -f conftest.$ac_objext
4207 if { (ac_try="$ac_compile"
4208 case "(($ac_try" in
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4211 esac
4212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213 (eval "$ac_compile") 2>conftest.er1
4214 ac_status=$?
4215 grep -v '^ *+' conftest.er1 >conftest.err
4216 rm -f conftest.er1
4217 cat conftest.err >&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } && {
4220 test -z "$ac_c_werror_flag" ||
4221 test ! -s conftest.err
4222 } && test -s conftest.$ac_objext; then
4223 eval "$as_ac_Header=yes"
4224 else
4225 echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4228 eval "$as_ac_Header=no"
4231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4233 ac_res=`eval echo '${'$as_ac_Header'}'`
4234 { echo "$as_me:$LINENO: result: $ac_res" >&5
4235 echo "${ECHO_T}$ac_res" >&6; }
4236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4237 cat >>confdefs.h <<_ACEOF
4238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4239 _ACEOF
4243 done
4246 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4247 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4248 if test "${ac_cv_c_bigendian+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 else
4251 # See if sys/param.h defines the BYTE_ORDER macro.
4252 cat >conftest.$ac_ext <<_ACEOF
4253 /* confdefs.h. */
4254 _ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h. */
4258 #include <sys/types.h>
4259 #include <sys/param.h>
4262 main ()
4264 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4265 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4266 bogus endian macros
4267 #endif
4270 return 0;
4272 _ACEOF
4273 rm -f conftest.$ac_objext
4274 if { (ac_try="$ac_compile"
4275 case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4278 esac
4279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280 (eval "$ac_compile") 2>conftest.er1
4281 ac_status=$?
4282 grep -v '^ *+' conftest.er1 >conftest.err
4283 rm -f conftest.er1
4284 cat conftest.err >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } && {
4287 test -z "$ac_c_werror_flag" ||
4288 test ! -s conftest.err
4289 } && test -s conftest.$ac_objext; then
4290 # It does; now see whether it defined to BIG_ENDIAN or not.
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>
4301 main ()
4303 #if BYTE_ORDER != BIG_ENDIAN
4304 not big endian
4305 #endif
4308 return 0;
4310 _ACEOF
4311 rm -f conftest.$ac_objext
4312 if { (ac_try="$ac_compile"
4313 case "(($ac_try" in
4314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315 *) ac_try_echo=$ac_try;;
4316 esac
4317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4318 (eval "$ac_compile") 2>conftest.er1
4319 ac_status=$?
4320 grep -v '^ *+' conftest.er1 >conftest.err
4321 rm -f conftest.er1
4322 cat conftest.err >&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); } && {
4325 test -z "$ac_c_werror_flag" ||
4326 test ! -s conftest.err
4327 } && test -s conftest.$ac_objext; then
4328 ac_cv_c_bigendian=yes
4329 else
4330 echo "$as_me: failed program was:" >&5
4331 sed 's/^/| /' conftest.$ac_ext >&5
4333 ac_cv_c_bigendian=no
4336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4337 else
4338 echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4341 # It does not; compile a test program.
4342 if test "$cross_compiling" = yes; then
4343 # try to guess the endianness by grepping values into an object file
4344 ac_cv_c_bigendian=unknown
4345 cat >conftest.$ac_ext <<_ACEOF
4346 /* confdefs.h. */
4347 _ACEOF
4348 cat confdefs.h >>conftest.$ac_ext
4349 cat >>conftest.$ac_ext <<_ACEOF
4350 /* end confdefs.h. */
4351 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4352 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4353 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4354 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4355 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4356 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4358 main ()
4360 _ascii (); _ebcdic ();
4362 return 0;
4364 _ACEOF
4365 rm -f conftest.$ac_objext
4366 if { (ac_try="$ac_compile"
4367 case "(($ac_try" in
4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4370 esac
4371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4372 (eval "$ac_compile") 2>conftest.er1
4373 ac_status=$?
4374 grep -v '^ *+' conftest.er1 >conftest.err
4375 rm -f conftest.er1
4376 cat conftest.err >&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); } && {
4379 test -z "$ac_c_werror_flag" ||
4380 test ! -s conftest.err
4381 } && test -s conftest.$ac_objext; then
4382 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4383 ac_cv_c_bigendian=yes
4385 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4386 if test "$ac_cv_c_bigendian" = unknown; then
4387 ac_cv_c_bigendian=no
4388 else
4389 # finding both strings is unlikely to happen, but who knows?
4390 ac_cv_c_bigendian=unknown
4393 else
4394 echo "$as_me: failed program was:" >&5
4395 sed 's/^/| /' conftest.$ac_ext >&5
4400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4401 else
4402 cat >conftest.$ac_ext <<_ACEOF
4403 /* confdefs.h. */
4404 _ACEOF
4405 cat confdefs.h >>conftest.$ac_ext
4406 cat >>conftest.$ac_ext <<_ACEOF
4407 /* end confdefs.h. */
4408 $ac_includes_default
4410 main ()
4413 /* Are we little or big endian? From Harbison&Steele. */
4414 union
4416 long int l;
4417 char c[sizeof (long int)];
4418 } u;
4419 u.l = 1;
4420 return u.c[sizeof (long int) - 1] == 1;
4423 return 0;
4425 _ACEOF
4426 rm -f conftest$ac_exeext
4427 if { (ac_try="$ac_link"
4428 case "(($ac_try" in
4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4431 esac
4432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4433 (eval "$ac_link") 2>&5
4434 ac_status=$?
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4437 { (case "(($ac_try" in
4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4440 esac
4441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4442 (eval "$ac_try") 2>&5
4443 ac_status=$?
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; }; then
4446 ac_cv_c_bigendian=no
4447 else
4448 echo "$as_me: program exited with status $ac_status" >&5
4449 echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4452 ( exit $ac_status )
4453 ac_cv_c_bigendian=yes
4455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4463 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4464 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4465 case $ac_cv_c_bigendian in
4466 yes)
4468 cat >>confdefs.h <<\_ACEOF
4469 #define WORDS_BIGENDIAN 1
4470 _ACEOF
4475 { { echo "$as_me:$LINENO: error: unknown endianness
4476 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4477 echo "$as_me: error: unknown endianness
4478 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4479 { (exit 1); exit 1; }; } ;;
4480 esac
4482 { echo "$as_me:$LINENO: checking for void *" >&5
4483 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
4484 if test "${ac_cv_type_void_p+set}" = set; then
4485 echo $ECHO_N "(cached) $ECHO_C" >&6
4486 else
4487 cat >conftest.$ac_ext <<_ACEOF
4488 /* confdefs.h. */
4489 _ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h. */
4493 $ac_includes_default
4494 typedef void * ac__type_new_;
4496 main ()
4498 if ((ac__type_new_ *) 0)
4499 return 0;
4500 if (sizeof (ac__type_new_))
4501 return 0;
4503 return 0;
4505 _ACEOF
4506 rm -f conftest.$ac_objext
4507 if { (ac_try="$ac_compile"
4508 case "(($ac_try" in
4509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510 *) ac_try_echo=$ac_try;;
4511 esac
4512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4513 (eval "$ac_compile") 2>conftest.er1
4514 ac_status=$?
4515 grep -v '^ *+' conftest.er1 >conftest.err
4516 rm -f conftest.er1
4517 cat conftest.err >&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); } && {
4520 test -z "$ac_c_werror_flag" ||
4521 test ! -s conftest.err
4522 } && test -s conftest.$ac_objext; then
4523 ac_cv_type_void_p=yes
4524 else
4525 echo "$as_me: failed program was:" >&5
4526 sed 's/^/| /' conftest.$ac_ext >&5
4528 ac_cv_type_void_p=no
4531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4533 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4534 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
4536 # The cast to long int works around a bug in the HP C Compiler
4537 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4538 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4539 # This bug is HP SR number 8606223364.
4540 { echo "$as_me:$LINENO: checking size of void *" >&5
4541 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
4542 if test "${ac_cv_sizeof_void_p+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 else
4545 if test "$cross_compiling" = yes; then
4546 # Depending upon the size, compute the lo and hi bounds.
4547 cat >conftest.$ac_ext <<_ACEOF
4548 /* confdefs.h. */
4549 _ACEOF
4550 cat confdefs.h >>conftest.$ac_ext
4551 cat >>conftest.$ac_ext <<_ACEOF
4552 /* end confdefs.h. */
4553 $ac_includes_default
4554 typedef void * ac__type_sizeof_;
4556 main ()
4558 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4559 test_array [0] = 0
4562 return 0;
4564 _ACEOF
4565 rm -f conftest.$ac_objext
4566 if { (ac_try="$ac_compile"
4567 case "(($ac_try" in
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4570 esac
4571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4572 (eval "$ac_compile") 2>conftest.er1
4573 ac_status=$?
4574 grep -v '^ *+' conftest.er1 >conftest.err
4575 rm -f conftest.er1
4576 cat conftest.err >&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); } && {
4579 test -z "$ac_c_werror_flag" ||
4580 test ! -s conftest.err
4581 } && test -s conftest.$ac_objext; then
4582 ac_lo=0 ac_mid=0
4583 while :; do
4584 cat >conftest.$ac_ext <<_ACEOF
4585 /* confdefs.h. */
4586 _ACEOF
4587 cat confdefs.h >>conftest.$ac_ext
4588 cat >>conftest.$ac_ext <<_ACEOF
4589 /* end confdefs.h. */
4590 $ac_includes_default
4591 typedef void * ac__type_sizeof_;
4593 main ()
4595 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4596 test_array [0] = 0
4599 return 0;
4601 _ACEOF
4602 rm -f conftest.$ac_objext
4603 if { (ac_try="$ac_compile"
4604 case "(($ac_try" in
4605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4606 *) ac_try_echo=$ac_try;;
4607 esac
4608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4609 (eval "$ac_compile") 2>conftest.er1
4610 ac_status=$?
4611 grep -v '^ *+' conftest.er1 >conftest.err
4612 rm -f conftest.er1
4613 cat conftest.err >&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); } && {
4616 test -z "$ac_c_werror_flag" ||
4617 test ! -s conftest.err
4618 } && test -s conftest.$ac_objext; then
4619 ac_hi=$ac_mid; break
4620 else
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4624 ac_lo=`expr $ac_mid + 1`
4625 if test $ac_lo -le $ac_mid; then
4626 ac_lo= ac_hi=
4627 break
4629 ac_mid=`expr 2 '*' $ac_mid + 1`
4632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633 done
4634 else
4635 echo "$as_me: failed program was:" >&5
4636 sed 's/^/| /' conftest.$ac_ext >&5
4638 cat >conftest.$ac_ext <<_ACEOF
4639 /* confdefs.h. */
4640 _ACEOF
4641 cat confdefs.h >>conftest.$ac_ext
4642 cat >>conftest.$ac_ext <<_ACEOF
4643 /* end confdefs.h. */
4644 $ac_includes_default
4645 typedef void * ac__type_sizeof_;
4647 main ()
4649 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4650 test_array [0] = 0
4653 return 0;
4655 _ACEOF
4656 rm -f conftest.$ac_objext
4657 if { (ac_try="$ac_compile"
4658 case "(($ac_try" in
4659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660 *) ac_try_echo=$ac_try;;
4661 esac
4662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4663 (eval "$ac_compile") 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); } && {
4670 test -z "$ac_c_werror_flag" ||
4671 test ! -s conftest.err
4672 } && test -s conftest.$ac_objext; then
4673 ac_hi=-1 ac_mid=-1
4674 while :; do
4675 cat >conftest.$ac_ext <<_ACEOF
4676 /* confdefs.h. */
4677 _ACEOF
4678 cat confdefs.h >>conftest.$ac_ext
4679 cat >>conftest.$ac_ext <<_ACEOF
4680 /* end confdefs.h. */
4681 $ac_includes_default
4682 typedef void * ac__type_sizeof_;
4684 main ()
4686 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4687 test_array [0] = 0
4690 return 0;
4692 _ACEOF
4693 rm -f conftest.$ac_objext
4694 if { (ac_try="$ac_compile"
4695 case "(($ac_try" in
4696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4697 *) ac_try_echo=$ac_try;;
4698 esac
4699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4700 (eval "$ac_compile") 2>conftest.er1
4701 ac_status=$?
4702 grep -v '^ *+' conftest.er1 >conftest.err
4703 rm -f conftest.er1
4704 cat conftest.err >&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } && {
4707 test -z "$ac_c_werror_flag" ||
4708 test ! -s conftest.err
4709 } && test -s conftest.$ac_objext; then
4710 ac_lo=$ac_mid; break
4711 else
4712 echo "$as_me: failed program was:" >&5
4713 sed 's/^/| /' conftest.$ac_ext >&5
4715 ac_hi=`expr '(' $ac_mid ')' - 1`
4716 if test $ac_mid -le $ac_hi; then
4717 ac_lo= ac_hi=
4718 break
4720 ac_mid=`expr 2 '*' $ac_mid`
4723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4724 done
4725 else
4726 echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4729 ac_lo= ac_hi=
4732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 # Binary search between lo and hi bounds.
4737 while test "x$ac_lo" != "x$ac_hi"; do
4738 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4739 cat >conftest.$ac_ext <<_ACEOF
4740 /* confdefs.h. */
4741 _ACEOF
4742 cat confdefs.h >>conftest.$ac_ext
4743 cat >>conftest.$ac_ext <<_ACEOF
4744 /* end confdefs.h. */
4745 $ac_includes_default
4746 typedef void * ac__type_sizeof_;
4748 main ()
4750 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4751 test_array [0] = 0
4754 return 0;
4756 _ACEOF
4757 rm -f conftest.$ac_objext
4758 if { (ac_try="$ac_compile"
4759 case "(($ac_try" in
4760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4761 *) ac_try_echo=$ac_try;;
4762 esac
4763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4764 (eval "$ac_compile") 2>conftest.er1
4765 ac_status=$?
4766 grep -v '^ *+' conftest.er1 >conftest.err
4767 rm -f conftest.er1
4768 cat conftest.err >&5
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); } && {
4771 test -z "$ac_c_werror_flag" ||
4772 test ! -s conftest.err
4773 } && test -s conftest.$ac_objext; then
4774 ac_hi=$ac_mid
4775 else
4776 echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4779 ac_lo=`expr '(' $ac_mid ')' + 1`
4782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783 done
4784 case $ac_lo in
4785 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4786 '') if test "$ac_cv_type_void_p" = yes; then
4787 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4788 See \`config.log' for more details." >&5
4789 echo "$as_me: error: cannot compute sizeof (void *)
4790 See \`config.log' for more details." >&2;}
4791 { (exit 77); exit 77; }; }
4792 else
4793 ac_cv_sizeof_void_p=0
4794 fi ;;
4795 esac
4796 else
4797 cat >conftest.$ac_ext <<_ACEOF
4798 /* confdefs.h. */
4799 _ACEOF
4800 cat confdefs.h >>conftest.$ac_ext
4801 cat >>conftest.$ac_ext <<_ACEOF
4802 /* end confdefs.h. */
4803 $ac_includes_default
4804 typedef void * ac__type_sizeof_;
4805 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4806 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4807 #include <stdio.h>
4808 #include <stdlib.h>
4810 main ()
4813 FILE *f = fopen ("conftest.val", "w");
4814 if (! f)
4815 return 1;
4816 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4818 long int i = longval ();
4819 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4820 return 1;
4821 fprintf (f, "%ld\n", i);
4823 else
4825 unsigned long int i = ulongval ();
4826 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4827 return 1;
4828 fprintf (f, "%lu\n", i);
4830 return ferror (f) || fclose (f) != 0;
4833 return 0;
4835 _ACEOF
4836 rm -f conftest$ac_exeext
4837 if { (ac_try="$ac_link"
4838 case "(($ac_try" in
4839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4840 *) ac_try_echo=$ac_try;;
4841 esac
4842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4843 (eval "$ac_link") 2>&5
4844 ac_status=$?
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4847 { (case "(($ac_try" in
4848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4849 *) ac_try_echo=$ac_try;;
4850 esac
4851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4852 (eval "$ac_try") 2>&5
4853 ac_status=$?
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); }; }; then
4856 ac_cv_sizeof_void_p=`cat conftest.val`
4857 else
4858 echo "$as_me: program exited with status $ac_status" >&5
4859 echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.$ac_ext >&5
4862 ( exit $ac_status )
4863 if test "$ac_cv_type_void_p" = yes; then
4864 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4865 See \`config.log' for more details." >&5
4866 echo "$as_me: error: cannot compute sizeof (void *)
4867 See \`config.log' for more details." >&2;}
4868 { (exit 77); exit 77; }; }
4869 else
4870 ac_cv_sizeof_void_p=0
4873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4875 rm -f conftest.val
4877 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4878 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
4882 cat >>confdefs.h <<_ACEOF
4883 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4884 _ACEOF
4887 { echo "$as_me:$LINENO: checking for long" >&5
4888 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
4889 if test "${ac_cv_type_long+set}" = set; then
4890 echo $ECHO_N "(cached) $ECHO_C" >&6
4891 else
4892 cat >conftest.$ac_ext <<_ACEOF
4893 /* confdefs.h. */
4894 _ACEOF
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h. */
4898 $ac_includes_default
4899 typedef long ac__type_new_;
4901 main ()
4903 if ((ac__type_new_ *) 0)
4904 return 0;
4905 if (sizeof (ac__type_new_))
4906 return 0;
4908 return 0;
4910 _ACEOF
4911 rm -f conftest.$ac_objext
4912 if { (ac_try="$ac_compile"
4913 case "(($ac_try" in
4914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915 *) ac_try_echo=$ac_try;;
4916 esac
4917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4918 (eval "$ac_compile") 2>conftest.er1
4919 ac_status=$?
4920 grep -v '^ *+' conftest.er1 >conftest.err
4921 rm -f conftest.er1
4922 cat conftest.err >&5
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); } && {
4925 test -z "$ac_c_werror_flag" ||
4926 test ! -s conftest.err
4927 } && test -s conftest.$ac_objext; then
4928 ac_cv_type_long=yes
4929 else
4930 echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4933 ac_cv_type_long=no
4936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4938 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4939 echo "${ECHO_T}$ac_cv_type_long" >&6; }
4941 # The cast to long int works around a bug in the HP C Compiler
4942 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4943 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4944 # This bug is HP SR number 8606223364.
4945 { echo "$as_me:$LINENO: checking size of long" >&5
4946 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
4947 if test "${ac_cv_sizeof_long+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4949 else
4950 if test "$cross_compiling" = yes; then
4951 # Depending upon the size, compute the lo and hi bounds.
4952 cat >conftest.$ac_ext <<_ACEOF
4953 /* confdefs.h. */
4954 _ACEOF
4955 cat confdefs.h >>conftest.$ac_ext
4956 cat >>conftest.$ac_ext <<_ACEOF
4957 /* end confdefs.h. */
4958 $ac_includes_default
4959 typedef long ac__type_sizeof_;
4961 main ()
4963 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4964 test_array [0] = 0
4967 return 0;
4969 _ACEOF
4970 rm -f conftest.$ac_objext
4971 if { (ac_try="$ac_compile"
4972 case "(($ac_try" in
4973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4974 *) ac_try_echo=$ac_try;;
4975 esac
4976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4977 (eval "$ac_compile") 2>conftest.er1
4978 ac_status=$?
4979 grep -v '^ *+' conftest.er1 >conftest.err
4980 rm -f conftest.er1
4981 cat conftest.err >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); } && {
4984 test -z "$ac_c_werror_flag" ||
4985 test ! -s conftest.err
4986 } && test -s conftest.$ac_objext; then
4987 ac_lo=0 ac_mid=0
4988 while :; do
4989 cat >conftest.$ac_ext <<_ACEOF
4990 /* confdefs.h. */
4991 _ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h. */
4995 $ac_includes_default
4996 typedef long ac__type_sizeof_;
4998 main ()
5000 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5001 test_array [0] = 0
5004 return 0;
5006 _ACEOF
5007 rm -f conftest.$ac_objext
5008 if { (ac_try="$ac_compile"
5009 case "(($ac_try" in
5010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5011 *) ac_try_echo=$ac_try;;
5012 esac
5013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5014 (eval "$ac_compile") 2>conftest.er1
5015 ac_status=$?
5016 grep -v '^ *+' conftest.er1 >conftest.err
5017 rm -f conftest.er1
5018 cat conftest.err >&5
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); } && {
5021 test -z "$ac_c_werror_flag" ||
5022 test ! -s conftest.err
5023 } && test -s conftest.$ac_objext; then
5024 ac_hi=$ac_mid; break
5025 else
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5029 ac_lo=`expr $ac_mid + 1`
5030 if test $ac_lo -le $ac_mid; then
5031 ac_lo= ac_hi=
5032 break
5034 ac_mid=`expr 2 '*' $ac_mid + 1`
5037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5038 done
5039 else
5040 echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.$ac_ext >&5
5043 cat >conftest.$ac_ext <<_ACEOF
5044 /* confdefs.h. */
5045 _ACEOF
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h. */
5049 $ac_includes_default
5050 typedef long ac__type_sizeof_;
5052 main ()
5054 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5055 test_array [0] = 0
5058 return 0;
5060 _ACEOF
5061 rm -f conftest.$ac_objext
5062 if { (ac_try="$ac_compile"
5063 case "(($ac_try" in
5064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5065 *) ac_try_echo=$ac_try;;
5066 esac
5067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5068 (eval "$ac_compile") 2>conftest.er1
5069 ac_status=$?
5070 grep -v '^ *+' conftest.er1 >conftest.err
5071 rm -f conftest.er1
5072 cat conftest.err >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } && {
5075 test -z "$ac_c_werror_flag" ||
5076 test ! -s conftest.err
5077 } && test -s conftest.$ac_objext; then
5078 ac_hi=-1 ac_mid=-1
5079 while :; do
5080 cat >conftest.$ac_ext <<_ACEOF
5081 /* confdefs.h. */
5082 _ACEOF
5083 cat confdefs.h >>conftest.$ac_ext
5084 cat >>conftest.$ac_ext <<_ACEOF
5085 /* end confdefs.h. */
5086 $ac_includes_default
5087 typedef long ac__type_sizeof_;
5089 main ()
5091 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5092 test_array [0] = 0
5095 return 0;
5097 _ACEOF
5098 rm -f conftest.$ac_objext
5099 if { (ac_try="$ac_compile"
5100 case "(($ac_try" in
5101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102 *) ac_try_echo=$ac_try;;
5103 esac
5104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5105 (eval "$ac_compile") 2>conftest.er1
5106 ac_status=$?
5107 grep -v '^ *+' conftest.er1 >conftest.err
5108 rm -f conftest.er1
5109 cat conftest.err >&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); } && {
5112 test -z "$ac_c_werror_flag" ||
5113 test ! -s conftest.err
5114 } && test -s conftest.$ac_objext; then
5115 ac_lo=$ac_mid; break
5116 else
5117 echo "$as_me: failed program was:" >&5
5118 sed 's/^/| /' conftest.$ac_ext >&5
5120 ac_hi=`expr '(' $ac_mid ')' - 1`
5121 if test $ac_mid -le $ac_hi; then
5122 ac_lo= ac_hi=
5123 break
5125 ac_mid=`expr 2 '*' $ac_mid`
5128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5129 done
5130 else
5131 echo "$as_me: failed program was:" >&5
5132 sed 's/^/| /' conftest.$ac_ext >&5
5134 ac_lo= ac_hi=
5137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5141 # Binary search between lo and hi bounds.
5142 while test "x$ac_lo" != "x$ac_hi"; do
5143 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5144 cat >conftest.$ac_ext <<_ACEOF
5145 /* confdefs.h. */
5146 _ACEOF
5147 cat confdefs.h >>conftest.$ac_ext
5148 cat >>conftest.$ac_ext <<_ACEOF
5149 /* end confdefs.h. */
5150 $ac_includes_default
5151 typedef long ac__type_sizeof_;
5153 main ()
5155 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5156 test_array [0] = 0
5159 return 0;
5161 _ACEOF
5162 rm -f conftest.$ac_objext
5163 if { (ac_try="$ac_compile"
5164 case "(($ac_try" in
5165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5166 *) ac_try_echo=$ac_try;;
5167 esac
5168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5169 (eval "$ac_compile") 2>conftest.er1
5170 ac_status=$?
5171 grep -v '^ *+' conftest.er1 >conftest.err
5172 rm -f conftest.er1
5173 cat conftest.err >&5
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); } && {
5176 test -z "$ac_c_werror_flag" ||
5177 test ! -s conftest.err
5178 } && test -s conftest.$ac_objext; then
5179 ac_hi=$ac_mid
5180 else
5181 echo "$as_me: failed program was:" >&5
5182 sed 's/^/| /' conftest.$ac_ext >&5
5184 ac_lo=`expr '(' $ac_mid ')' + 1`
5187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5188 done
5189 case $ac_lo in
5190 ?*) ac_cv_sizeof_long=$ac_lo;;
5191 '') if test "$ac_cv_type_long" = yes; then
5192 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5193 See \`config.log' for more details." >&5
5194 echo "$as_me: error: cannot compute sizeof (long)
5195 See \`config.log' for more details." >&2;}
5196 { (exit 77); exit 77; }; }
5197 else
5198 ac_cv_sizeof_long=0
5199 fi ;;
5200 esac
5201 else
5202 cat >conftest.$ac_ext <<_ACEOF
5203 /* confdefs.h. */
5204 _ACEOF
5205 cat confdefs.h >>conftest.$ac_ext
5206 cat >>conftest.$ac_ext <<_ACEOF
5207 /* end confdefs.h. */
5208 $ac_includes_default
5209 typedef long ac__type_sizeof_;
5210 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5211 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5212 #include <stdio.h>
5213 #include <stdlib.h>
5215 main ()
5218 FILE *f = fopen ("conftest.val", "w");
5219 if (! f)
5220 return 1;
5221 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5223 long int i = longval ();
5224 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5225 return 1;
5226 fprintf (f, "%ld\n", i);
5228 else
5230 unsigned long int i = ulongval ();
5231 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5232 return 1;
5233 fprintf (f, "%lu\n", i);
5235 return ferror (f) || fclose (f) != 0;
5238 return 0;
5240 _ACEOF
5241 rm -f conftest$ac_exeext
5242 if { (ac_try="$ac_link"
5243 case "(($ac_try" in
5244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5245 *) ac_try_echo=$ac_try;;
5246 esac
5247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5248 (eval "$ac_link") 2>&5
5249 ac_status=$?
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5252 { (case "(($ac_try" in
5253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254 *) ac_try_echo=$ac_try;;
5255 esac
5256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257 (eval "$ac_try") 2>&5
5258 ac_status=$?
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); }; }; then
5261 ac_cv_sizeof_long=`cat conftest.val`
5262 else
5263 echo "$as_me: program exited with status $ac_status" >&5
5264 echo "$as_me: failed program was:" >&5
5265 sed 's/^/| /' conftest.$ac_ext >&5
5267 ( exit $ac_status )
5268 if test "$ac_cv_type_long" = yes; then
5269 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5270 See \`config.log' for more details." >&5
5271 echo "$as_me: error: cannot compute sizeof (long)
5272 See \`config.log' for more details." >&2;}
5273 { (exit 77); exit 77; }; }
5274 else
5275 ac_cv_sizeof_long=0
5278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5280 rm -f conftest.val
5282 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5283 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5287 cat >>confdefs.h <<_ACEOF
5288 #define SIZEOF_LONG $ac_cv_sizeof_long
5289 _ACEOF
5293 if test "x$host_m32" = x1; then
5294 # Force 32-bit mode.
5295 CFLAGS="$CFLAGS -m32"
5296 LDFLAGS="$LDFLAGS -m32"
5299 # Check LZO when compiling for the i386-pc.
5300 if test "$target_cpu"-"$platform" = i386-pc; then
5301 # There are three possibilities. LZO version 2 installed with the name
5302 # liblzo2, with the name liblzo, and LZO version 1.
5303 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo2" >&5
5304 echo $ECHO_N "checking for __lzo_init_v2 in -llzo2... $ECHO_C" >&6; }
5305 if test "${ac_cv_lib_lzo2___lzo_init_v2+set}" = set; then
5306 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 else
5308 ac_check_lib_save_LIBS=$LIBS
5309 LIBS="-llzo2 $LIBS"
5310 cat >conftest.$ac_ext <<_ACEOF
5311 /* confdefs.h. */
5312 _ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h. */
5317 /* Override any GCC internal prototype to avoid an error.
5318 Use char because int might match the return type of a GCC
5319 builtin and then its argument prototype would still apply. */
5320 #ifdef __cplusplus
5321 extern "C"
5322 #endif
5323 char __lzo_init_v2 ();
5325 main ()
5327 return __lzo_init_v2 ();
5329 return 0;
5331 _ACEOF
5332 rm -f conftest.$ac_objext conftest$ac_exeext
5333 if { (ac_try="$ac_link"
5334 case "(($ac_try" in
5335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5336 *) ac_try_echo=$ac_try;;
5337 esac
5338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5339 (eval "$ac_link") 2>conftest.er1
5340 ac_status=$?
5341 grep -v '^ *+' conftest.er1 >conftest.err
5342 rm -f conftest.er1
5343 cat conftest.err >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } && {
5346 test -z "$ac_c_werror_flag" ||
5347 test ! -s conftest.err
5348 } && test -s conftest$ac_exeext &&
5349 $as_test_x conftest$ac_exeext; then
5350 ac_cv_lib_lzo2___lzo_init_v2=yes
5351 else
5352 echo "$as_me: failed program was:" >&5
5353 sed 's/^/| /' conftest.$ac_ext >&5
5355 ac_cv_lib_lzo2___lzo_init_v2=no
5358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5359 conftest$ac_exeext conftest.$ac_ext
5360 LIBS=$ac_check_lib_save_LIBS
5362 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo2___lzo_init_v2" >&5
5363 echo "${ECHO_T}$ac_cv_lib_lzo2___lzo_init_v2" >&6; }
5364 if test $ac_cv_lib_lzo2___lzo_init_v2 = yes; then
5365 LIBLZO="-llzo2"
5366 else
5367 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo" >&5
5368 echo $ECHO_N "checking for __lzo_init_v2 in -llzo... $ECHO_C" >&6; }
5369 if test "${ac_cv_lib_lzo___lzo_init_v2+set}" = set; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 else
5372 ac_check_lib_save_LIBS=$LIBS
5373 LIBS="-llzo $LIBS"
5374 cat >conftest.$ac_ext <<_ACEOF
5375 /* confdefs.h. */
5376 _ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h. */
5381 /* Override any GCC internal prototype to avoid an error.
5382 Use char because int might match the return type of a GCC
5383 builtin and then its argument prototype would still apply. */
5384 #ifdef __cplusplus
5385 extern "C"
5386 #endif
5387 char __lzo_init_v2 ();
5389 main ()
5391 return __lzo_init_v2 ();
5393 return 0;
5395 _ACEOF
5396 rm -f conftest.$ac_objext conftest$ac_exeext
5397 if { (ac_try="$ac_link"
5398 case "(($ac_try" in
5399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400 *) ac_try_echo=$ac_try;;
5401 esac
5402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5403 (eval "$ac_link") 2>conftest.er1
5404 ac_status=$?
5405 grep -v '^ *+' conftest.er1 >conftest.err
5406 rm -f conftest.er1
5407 cat conftest.err >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); } && {
5410 test -z "$ac_c_werror_flag" ||
5411 test ! -s conftest.err
5412 } && test -s conftest$ac_exeext &&
5413 $as_test_x conftest$ac_exeext; then
5414 ac_cv_lib_lzo___lzo_init_v2=yes
5415 else
5416 echo "$as_me: failed program was:" >&5
5417 sed 's/^/| /' conftest.$ac_ext >&5
5419 ac_cv_lib_lzo___lzo_init_v2=no
5422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5423 conftest$ac_exeext conftest.$ac_ext
5424 LIBS=$ac_check_lib_save_LIBS
5426 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init_v2" >&5
5427 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init_v2" >&6; }
5428 if test $ac_cv_lib_lzo___lzo_init_v2 = yes; then
5429 LIBLZO="-llzo"
5430 else
5431 { echo "$as_me:$LINENO: checking for __lzo_init2 in -llzo" >&5
5432 echo $ECHO_N "checking for __lzo_init2 in -llzo... $ECHO_C" >&6; }
5433 if test "${ac_cv_lib_lzo___lzo_init2+set}" = set; then
5434 echo $ECHO_N "(cached) $ECHO_C" >&6
5435 else
5436 ac_check_lib_save_LIBS=$LIBS
5437 LIBS="-llzo $LIBS"
5438 cat >conftest.$ac_ext <<_ACEOF
5439 /* confdefs.h. */
5440 _ACEOF
5441 cat confdefs.h >>conftest.$ac_ext
5442 cat >>conftest.$ac_ext <<_ACEOF
5443 /* end confdefs.h. */
5445 /* Override any GCC internal prototype to avoid an error.
5446 Use char because int might match the return type of a GCC
5447 builtin and then its argument prototype would still apply. */
5448 #ifdef __cplusplus
5449 extern "C"
5450 #endif
5451 char __lzo_init2 ();
5453 main ()
5455 return __lzo_init2 ();
5457 return 0;
5459 _ACEOF
5460 rm -f conftest.$ac_objext conftest$ac_exeext
5461 if { (ac_try="$ac_link"
5462 case "(($ac_try" in
5463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5464 *) ac_try_echo=$ac_try;;
5465 esac
5466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5467 (eval "$ac_link") 2>conftest.er1
5468 ac_status=$?
5469 grep -v '^ *+' conftest.er1 >conftest.err
5470 rm -f conftest.er1
5471 cat conftest.err >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); } && {
5474 test -z "$ac_c_werror_flag" ||
5475 test ! -s conftest.err
5476 } && test -s conftest$ac_exeext &&
5477 $as_test_x conftest$ac_exeext; then
5478 ac_cv_lib_lzo___lzo_init2=yes
5479 else
5480 echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5483 ac_cv_lib_lzo___lzo_init2=no
5486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5487 conftest$ac_exeext conftest.$ac_ext
5488 LIBS=$ac_check_lib_save_LIBS
5490 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init2" >&5
5491 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init2" >&6; }
5492 if test $ac_cv_lib_lzo___lzo_init2 = yes; then
5493 LIBLZO="-llzo"
5494 else
5495 { { echo "$as_me:$LINENO: error: LZO library version 1.02 or later is required" >&5
5496 echo "$as_me: error: LZO library version 1.02 or later is required" >&2;}
5497 { (exit 1); exit 1; }; }
5505 LIBS="$LIBS $LIBLZO"
5506 { echo "$as_me:$LINENO: checking for lzo1x_999_compress" >&5
5507 echo $ECHO_N "checking for lzo1x_999_compress... $ECHO_C" >&6; }
5508 if test "${ac_cv_func_lzo1x_999_compress+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 else
5511 cat >conftest.$ac_ext <<_ACEOF
5512 /* confdefs.h. */
5513 _ACEOF
5514 cat confdefs.h >>conftest.$ac_ext
5515 cat >>conftest.$ac_ext <<_ACEOF
5516 /* end confdefs.h. */
5517 /* Define lzo1x_999_compress to an innocuous variant, in case <limits.h> declares lzo1x_999_compress.
5518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5519 #define lzo1x_999_compress innocuous_lzo1x_999_compress
5521 /* System header to define __stub macros and hopefully few prototypes,
5522 which can conflict with char lzo1x_999_compress (); below.
5523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5524 <limits.h> exists even on freestanding compilers. */
5526 #ifdef __STDC__
5527 # include <limits.h>
5528 #else
5529 # include <assert.h>
5530 #endif
5532 #undef lzo1x_999_compress
5534 /* Override any GCC internal prototype to avoid an error.
5535 Use char because int might match the return type of a GCC
5536 builtin and then its argument prototype would still apply. */
5537 #ifdef __cplusplus
5538 extern "C"
5539 #endif
5540 char lzo1x_999_compress ();
5541 /* The GNU C library defines this for functions which it implements
5542 to always fail with ENOSYS. Some functions are actually named
5543 something starting with __ and the normal name is an alias. */
5544 #if defined __stub_lzo1x_999_compress || defined __stub___lzo1x_999_compress
5545 choke me
5546 #endif
5549 main ()
5551 return lzo1x_999_compress ();
5553 return 0;
5555 _ACEOF
5556 rm -f conftest.$ac_objext conftest$ac_exeext
5557 if { (ac_try="$ac_link"
5558 case "(($ac_try" in
5559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5560 *) ac_try_echo=$ac_try;;
5561 esac
5562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5563 (eval "$ac_link") 2>conftest.er1
5564 ac_status=$?
5565 grep -v '^ *+' conftest.er1 >conftest.err
5566 rm -f conftest.er1
5567 cat conftest.err >&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } && {
5570 test -z "$ac_c_werror_flag" ||
5571 test ! -s conftest.err
5572 } && test -s conftest$ac_exeext &&
5573 $as_test_x conftest$ac_exeext; then
5574 ac_cv_func_lzo1x_999_compress=yes
5575 else
5576 echo "$as_me: failed program was:" >&5
5577 sed 's/^/| /' conftest.$ac_ext >&5
5579 ac_cv_func_lzo1x_999_compress=no
5582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5583 conftest$ac_exeext conftest.$ac_ext
5585 { echo "$as_me:$LINENO: result: $ac_cv_func_lzo1x_999_compress" >&5
5586 echo "${ECHO_T}$ac_cv_func_lzo1x_999_compress" >&6; }
5587 if test $ac_cv_func_lzo1x_999_compress = yes; then
5589 else
5590 { { echo "$as_me:$LINENO: error: LZO1X-999 must be enabled" >&5
5591 echo "$as_me: error: LZO1X-999 must be enabled" >&2;}
5592 { (exit 1); exit 1; }; }
5596 # LZO version 2 uses lzo/lzo1x.h, while LZO version 1 uses lzo1x.h.
5599 for ac_header in lzo/lzo1x.h lzo1x.h
5601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5606 echo $ECHO_N "(cached) $ECHO_C" >&6
5608 ac_res=`eval echo '${'$as_ac_Header'}'`
5609 { echo "$as_me:$LINENO: result: $ac_res" >&5
5610 echo "${ECHO_T}$ac_res" >&6; }
5611 else
5612 # Is the header compilable?
5613 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5615 cat >conftest.$ac_ext <<_ACEOF
5616 /* confdefs.h. */
5617 _ACEOF
5618 cat confdefs.h >>conftest.$ac_ext
5619 cat >>conftest.$ac_ext <<_ACEOF
5620 /* end confdefs.h. */
5621 $ac_includes_default
5622 #include <$ac_header>
5623 _ACEOF
5624 rm -f conftest.$ac_objext
5625 if { (ac_try="$ac_compile"
5626 case "(($ac_try" in
5627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628 *) ac_try_echo=$ac_try;;
5629 esac
5630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5631 (eval "$ac_compile") 2>conftest.er1
5632 ac_status=$?
5633 grep -v '^ *+' conftest.er1 >conftest.err
5634 rm -f conftest.er1
5635 cat conftest.err >&5
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); } && {
5638 test -z "$ac_c_werror_flag" ||
5639 test ! -s conftest.err
5640 } && test -s conftest.$ac_objext; then
5641 ac_header_compiler=yes
5642 else
5643 echo "$as_me: failed program was:" >&5
5644 sed 's/^/| /' conftest.$ac_ext >&5
5646 ac_header_compiler=no
5649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5651 echo "${ECHO_T}$ac_header_compiler" >&6; }
5653 # Is the header present?
5654 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5655 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5656 cat >conftest.$ac_ext <<_ACEOF
5657 /* confdefs.h. */
5658 _ACEOF
5659 cat confdefs.h >>conftest.$ac_ext
5660 cat >>conftest.$ac_ext <<_ACEOF
5661 /* end confdefs.h. */
5662 #include <$ac_header>
5663 _ACEOF
5664 if { (ac_try="$ac_cpp conftest.$ac_ext"
5665 case "(($ac_try" in
5666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5667 *) ac_try_echo=$ac_try;;
5668 esac
5669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5671 ac_status=$?
5672 grep -v '^ *+' conftest.er1 >conftest.err
5673 rm -f conftest.er1
5674 cat conftest.err >&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); } >/dev/null && {
5677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5678 test ! -s conftest.err
5679 }; then
5680 ac_header_preproc=yes
5681 else
5682 echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5685 ac_header_preproc=no
5688 rm -f conftest.err conftest.$ac_ext
5689 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5690 echo "${ECHO_T}$ac_header_preproc" >&6; }
5692 # So? What about this header?
5693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5694 yes:no: )
5695 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5696 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5698 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5699 ac_header_preproc=yes
5701 no:yes:* )
5702 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5703 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5704 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5705 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5706 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5707 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5708 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5709 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5711 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5712 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5713 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5714 ( cat <<\_ASBOX
5715 ## ------------------------------- ##
5716 ## Report this to bug-grub@gnu.org ##
5717 ## ------------------------------- ##
5718 _ASBOX
5719 ) | sed "s/^/$as_me: WARNING: /" >&2
5721 esac
5722 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5725 echo $ECHO_N "(cached) $ECHO_C" >&6
5726 else
5727 eval "$as_ac_Header=\$ac_header_preproc"
5729 ac_res=`eval echo '${'$as_ac_Header'}'`
5730 { echo "$as_me:$LINENO: result: $ac_res" >&5
5731 echo "${ECHO_T}$ac_res" >&6; }
5734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5735 cat >>confdefs.h <<_ACEOF
5736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5737 _ACEOF
5741 done
5745 # Check for functions.
5748 for ac_func in posix_memalign memalign
5750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5751 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 else
5756 cat >conftest.$ac_ext <<_ACEOF
5757 /* confdefs.h. */
5758 _ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h. */
5762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5764 #define $ac_func innocuous_$ac_func
5766 /* System header to define __stub macros and hopefully few prototypes,
5767 which can conflict with char $ac_func (); below.
5768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5769 <limits.h> exists even on freestanding compilers. */
5771 #ifdef __STDC__
5772 # include <limits.h>
5773 #else
5774 # include <assert.h>
5775 #endif
5777 #undef $ac_func
5779 /* Override any GCC internal prototype to avoid an error.
5780 Use char because int might match the return type of a GCC
5781 builtin and then its argument prototype would still apply. */
5782 #ifdef __cplusplus
5783 extern "C"
5784 #endif
5785 char $ac_func ();
5786 /* The GNU C library defines this for functions which it implements
5787 to always fail with ENOSYS. Some functions are actually named
5788 something starting with __ and the normal name is an alias. */
5789 #if defined __stub_$ac_func || defined __stub___$ac_func
5790 choke me
5791 #endif
5794 main ()
5796 return $ac_func ();
5798 return 0;
5800 _ACEOF
5801 rm -f conftest.$ac_objext conftest$ac_exeext
5802 if { (ac_try="$ac_link"
5803 case "(($ac_try" in
5804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805 *) ac_try_echo=$ac_try;;
5806 esac
5807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808 (eval "$ac_link") 2>conftest.er1
5809 ac_status=$?
5810 grep -v '^ *+' conftest.er1 >conftest.err
5811 rm -f conftest.er1
5812 cat conftest.err >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } && {
5815 test -z "$ac_c_werror_flag" ||
5816 test ! -s conftest.err
5817 } && test -s conftest$ac_exeext &&
5818 $as_test_x conftest$ac_exeext; then
5819 eval "$as_ac_var=yes"
5820 else
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5824 eval "$as_ac_var=no"
5827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5828 conftest$ac_exeext conftest.$ac_ext
5830 ac_res=`eval echo '${'$as_ac_var'}'`
5831 { echo "$as_me:$LINENO: result: $ac_res" >&5
5832 echo "${ECHO_T}$ac_res" >&6; }
5833 if test `eval echo '${'$as_ac_var'}'` = yes; then
5834 cat >>confdefs.h <<_ACEOF
5835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5836 _ACEOF
5839 done
5843 # Check for target programs.
5846 # For cross-compiling.
5847 if test "x$target" != "x$host"; then
5848 # XXX this depends on the implementation of autoconf!
5849 tmp_ac_tool_prefix="$ac_tool_prefix"
5850 ac_tool_prefix=$target_alias-
5852 if test -n "$ac_tool_prefix"; then
5853 for ac_prog in gcc egcs cc
5855 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5856 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5859 if test "${ac_cv_prog_TARGET_CC+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
5861 else
5862 if test -n "$TARGET_CC"; then
5863 ac_cv_prog_TARGET_CC="$TARGET_CC" # Let the user override the test.
5864 else
5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 for as_dir in $PATH
5868 IFS=$as_save_IFS
5869 test -z "$as_dir" && as_dir=.
5870 for ac_exec_ext in '' $ac_executable_extensions; do
5871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5872 ac_cv_prog_TARGET_CC="$ac_tool_prefix$ac_prog"
5873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 break 2
5876 done
5877 done
5878 IFS=$as_save_IFS
5882 TARGET_CC=$ac_cv_prog_TARGET_CC
5883 if test -n "$TARGET_CC"; then
5884 { echo "$as_me:$LINENO: result: $TARGET_CC" >&5
5885 echo "${ECHO_T}$TARGET_CC" >&6; }
5886 else
5887 { echo "$as_me:$LINENO: result: no" >&5
5888 echo "${ECHO_T}no" >&6; }
5892 test -n "$TARGET_CC" && break
5893 done
5895 if test -z "$TARGET_CC"; then
5896 ac_ct_TARGET_CC=$TARGET_CC
5897 for ac_prog in gcc egcs cc
5899 # Extract the first word of "$ac_prog", so it can be a program name with args.
5900 set dummy $ac_prog; ac_word=$2
5901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5903 if test "${ac_cv_prog_ac_ct_TARGET_CC+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 else
5906 if test -n "$ac_ct_TARGET_CC"; then
5907 ac_cv_prog_ac_ct_TARGET_CC="$ac_ct_TARGET_CC" # Let the user override the test.
5908 else
5909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910 for as_dir in $PATH
5912 IFS=$as_save_IFS
5913 test -z "$as_dir" && as_dir=.
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5916 ac_cv_prog_ac_ct_TARGET_CC="$ac_prog"
5917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5918 break 2
5920 done
5921 done
5922 IFS=$as_save_IFS
5926 ac_ct_TARGET_CC=$ac_cv_prog_ac_ct_TARGET_CC
5927 if test -n "$ac_ct_TARGET_CC"; then
5928 { echo "$as_me:$LINENO: result: $ac_ct_TARGET_CC" >&5
5929 echo "${ECHO_T}$ac_ct_TARGET_CC" >&6; }
5930 else
5931 { echo "$as_me:$LINENO: result: no" >&5
5932 echo "${ECHO_T}no" >&6; }
5936 test -n "$ac_ct_TARGET_CC" && break
5937 done
5939 if test "x$ac_ct_TARGET_CC" = x; then
5940 TARGET_CC="{ { echo "$as_me:$LINENO: error: none of gcc, egcs and cc is found. set TARGET_CC manually." >&5
5941 echo "$as_me: error: none of gcc, egcs and cc is found. set TARGET_CC manually." >&2;}
5942 { (exit 1); exit 1; }; }"
5943 else
5944 case $cross_compiling:$ac_tool_warned in
5945 yes:)
5946 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5947 whose name does not start with the host triplet. If you think this
5948 configuration is useful to you, please write to autoconf@gnu.org." >&5
5949 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5950 whose name does not start with the host triplet. If you think this
5951 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5952 ac_tool_warned=yes ;;
5953 esac
5954 TARGET_CC=$ac_ct_TARGET_CC
5958 if test -n "$ac_tool_prefix"; then
5959 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
5960 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
5961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5963 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 else
5966 if test -n "$OBJCOPY"; then
5967 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
5968 else
5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970 for as_dir in $PATH
5972 IFS=$as_save_IFS
5973 test -z "$as_dir" && as_dir=.
5974 for ac_exec_ext in '' $ac_executable_extensions; do
5975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5976 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
5977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 break 2
5980 done
5981 done
5982 IFS=$as_save_IFS
5986 OBJCOPY=$ac_cv_prog_OBJCOPY
5987 if test -n "$OBJCOPY"; then
5988 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
5989 echo "${ECHO_T}$OBJCOPY" >&6; }
5990 else
5991 { echo "$as_me:$LINENO: result: no" >&5
5992 echo "${ECHO_T}no" >&6; }
5997 if test -z "$ac_cv_prog_OBJCOPY"; then
5998 ac_ct_OBJCOPY=$OBJCOPY
5999 # Extract the first word of "objcopy", so it can be a program name with args.
6000 set dummy objcopy; ac_word=$2
6001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6003 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
6004 echo $ECHO_N "(cached) $ECHO_C" >&6
6005 else
6006 if test -n "$ac_ct_OBJCOPY"; then
6007 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
6008 else
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6012 IFS=$as_save_IFS
6013 test -z "$as_dir" && as_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6016 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
6017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6018 break 2
6020 done
6021 done
6022 IFS=$as_save_IFS
6026 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
6027 if test -n "$ac_ct_OBJCOPY"; then
6028 { echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
6029 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6; }
6030 else
6031 { echo "$as_me:$LINENO: result: no" >&5
6032 echo "${ECHO_T}no" >&6; }
6035 if test "x$ac_ct_OBJCOPY" = x; then
6036 OBJCOPY=""
6037 else
6038 case $cross_compiling:$ac_tool_warned in
6039 yes:)
6040 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6041 whose name does not start with the host triplet. If you think this
6042 configuration is useful to you, please write to autoconf@gnu.org." >&5
6043 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6044 whose name does not start with the host triplet. If you think this
6045 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6046 ac_tool_warned=yes ;;
6047 esac
6048 OBJCOPY=$ac_ct_OBJCOPY
6050 else
6051 OBJCOPY="$ac_cv_prog_OBJCOPY"
6054 if test -n "$ac_tool_prefix"; then
6055 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6056 set dummy ${ac_tool_prefix}strip; ac_word=$2
6057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6059 if test "${ac_cv_prog_STRIP+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 else
6062 if test -n "$STRIP"; then
6063 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6064 else
6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066 for as_dir in $PATH
6068 IFS=$as_save_IFS
6069 test -z "$as_dir" && as_dir=.
6070 for ac_exec_ext in '' $ac_executable_extensions; do
6071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6072 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6074 break 2
6076 done
6077 done
6078 IFS=$as_save_IFS
6082 STRIP=$ac_cv_prog_STRIP
6083 if test -n "$STRIP"; then
6084 { echo "$as_me:$LINENO: result: $STRIP" >&5
6085 echo "${ECHO_T}$STRIP" >&6; }
6086 else
6087 { echo "$as_me:$LINENO: result: no" >&5
6088 echo "${ECHO_T}no" >&6; }
6093 if test -z "$ac_cv_prog_STRIP"; then
6094 ac_ct_STRIP=$STRIP
6095 # Extract the first word of "strip", so it can be a program name with args.
6096 set dummy strip; ac_word=$2
6097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6099 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 else
6102 if test -n "$ac_ct_STRIP"; then
6103 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6104 else
6105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106 for as_dir in $PATH
6108 IFS=$as_save_IFS
6109 test -z "$as_dir" && as_dir=.
6110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6112 ac_cv_prog_ac_ct_STRIP="strip"
6113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6114 break 2
6116 done
6117 done
6118 IFS=$as_save_IFS
6122 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6123 if test -n "$ac_ct_STRIP"; then
6124 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6125 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6126 else
6127 { echo "$as_me:$LINENO: result: no" >&5
6128 echo "${ECHO_T}no" >&6; }
6131 if test "x$ac_ct_STRIP" = x; then
6132 STRIP=""
6133 else
6134 case $cross_compiling:$ac_tool_warned in
6135 yes:)
6136 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6137 whose name does not start with the host triplet. If you think this
6138 configuration is useful to you, please write to autoconf@gnu.org." >&5
6139 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6140 whose name does not start with the host triplet. If you think this
6141 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6142 ac_tool_warned=yes ;;
6143 esac
6144 STRIP=$ac_ct_STRIP
6146 else
6147 STRIP="$ac_cv_prog_STRIP"
6150 if test -n "$ac_tool_prefix"; then
6151 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6152 set dummy ${ac_tool_prefix}nm; ac_word=$2
6153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6155 if test "${ac_cv_prog_NM+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6157 else
6158 if test -n "$NM"; then
6159 ac_cv_prog_NM="$NM" # Let the user override the test.
6160 else
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 for as_dir in $PATH
6164 IFS=$as_save_IFS
6165 test -z "$as_dir" && as_dir=.
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6168 ac_cv_prog_NM="${ac_tool_prefix}nm"
6169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6170 break 2
6172 done
6173 done
6174 IFS=$as_save_IFS
6178 NM=$ac_cv_prog_NM
6179 if test -n "$NM"; then
6180 { echo "$as_me:$LINENO: result: $NM" >&5
6181 echo "${ECHO_T}$NM" >&6; }
6182 else
6183 { echo "$as_me:$LINENO: result: no" >&5
6184 echo "${ECHO_T}no" >&6; }
6189 if test -z "$ac_cv_prog_NM"; then
6190 ac_ct_NM=$NM
6191 # Extract the first word of "nm", so it can be a program name with args.
6192 set dummy nm; ac_word=$2
6193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6195 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
6196 echo $ECHO_N "(cached) $ECHO_C" >&6
6197 else
6198 if test -n "$ac_ct_NM"; then
6199 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6200 else
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 for as_dir in $PATH
6204 IFS=$as_save_IFS
6205 test -z "$as_dir" && as_dir=.
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6208 ac_cv_prog_ac_ct_NM="nm"
6209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6210 break 2
6212 done
6213 done
6214 IFS=$as_save_IFS
6218 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6219 if test -n "$ac_ct_NM"; then
6220 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
6221 echo "${ECHO_T}$ac_ct_NM" >&6; }
6222 else
6223 { echo "$as_me:$LINENO: result: no" >&5
6224 echo "${ECHO_T}no" >&6; }
6227 if test "x$ac_ct_NM" = x; then
6228 NM=""
6229 else
6230 case $cross_compiling:$ac_tool_warned in
6231 yes:)
6232 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6233 whose name does not start with the host triplet. If you think this
6234 configuration is useful to you, please write to autoconf@gnu.org." >&5
6235 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6236 whose name does not start with the host triplet. If you think this
6237 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6238 ac_tool_warned=yes ;;
6239 esac
6240 NM=$ac_ct_NM
6242 else
6243 NM="$ac_cv_prog_NM"
6247 ac_tool_prefix="$tmp_ac_tool_prefix"
6248 else
6249 if test "x$TARGET_CC" = x; then
6250 TARGET_CC=$CC
6252 if test -n "$ac_tool_prefix"; then
6253 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
6254 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
6255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6257 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
6259 else
6260 if test -n "$OBJCOPY"; then
6261 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6262 else
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 for as_dir in $PATH
6266 IFS=$as_save_IFS
6267 test -z "$as_dir" && as_dir=.
6268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6270 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
6271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6272 break 2
6274 done
6275 done
6276 IFS=$as_save_IFS
6280 OBJCOPY=$ac_cv_prog_OBJCOPY
6281 if test -n "$OBJCOPY"; then
6282 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6283 echo "${ECHO_T}$OBJCOPY" >&6; }
6284 else
6285 { echo "$as_me:$LINENO: result: no" >&5
6286 echo "${ECHO_T}no" >&6; }
6291 if test -z "$ac_cv_prog_OBJCOPY"; then
6292 ac_ct_OBJCOPY=$OBJCOPY
6293 # Extract the first word of "objcopy", so it can be a program name with args.
6294 set dummy objcopy; ac_word=$2
6295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6297 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 else
6300 if test -n "$ac_ct_OBJCOPY"; then
6301 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
6302 else
6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 for as_dir in $PATH
6306 IFS=$as_save_IFS
6307 test -z "$as_dir" && as_dir=.
6308 for ac_exec_ext in '' $ac_executable_extensions; do
6309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6310 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
6311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 break 2
6314 done
6315 done
6316 IFS=$as_save_IFS
6320 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
6321 if test -n "$ac_ct_OBJCOPY"; then
6322 { echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
6323 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6; }
6324 else
6325 { echo "$as_me:$LINENO: result: no" >&5
6326 echo "${ECHO_T}no" >&6; }
6329 if test "x$ac_ct_OBJCOPY" = x; then
6330 OBJCOPY=""
6331 else
6332 case $cross_compiling:$ac_tool_warned in
6333 yes:)
6334 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6335 whose name does not start with the host triplet. If you think this
6336 configuration is useful to you, please write to autoconf@gnu.org." >&5
6337 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6338 whose name does not start with the host triplet. If you think this
6339 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6340 ac_tool_warned=yes ;;
6341 esac
6342 OBJCOPY=$ac_ct_OBJCOPY
6344 else
6345 OBJCOPY="$ac_cv_prog_OBJCOPY"
6348 if test -n "$ac_tool_prefix"; then
6349 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6350 set dummy ${ac_tool_prefix}strip; ac_word=$2
6351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6353 if test "${ac_cv_prog_STRIP+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 else
6356 if test -n "$STRIP"; then
6357 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6358 else
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 for as_dir in $PATH
6362 IFS=$as_save_IFS
6363 test -z "$as_dir" && as_dir=.
6364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6366 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6368 break 2
6370 done
6371 done
6372 IFS=$as_save_IFS
6376 STRIP=$ac_cv_prog_STRIP
6377 if test -n "$STRIP"; then
6378 { echo "$as_me:$LINENO: result: $STRIP" >&5
6379 echo "${ECHO_T}$STRIP" >&6; }
6380 else
6381 { echo "$as_me:$LINENO: result: no" >&5
6382 echo "${ECHO_T}no" >&6; }
6387 if test -z "$ac_cv_prog_STRIP"; then
6388 ac_ct_STRIP=$STRIP
6389 # Extract the first word of "strip", so it can be a program name with args.
6390 set dummy strip; ac_word=$2
6391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6393 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6395 else
6396 if test -n "$ac_ct_STRIP"; then
6397 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6398 else
6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400 for as_dir in $PATH
6402 IFS=$as_save_IFS
6403 test -z "$as_dir" && as_dir=.
6404 for ac_exec_ext in '' $ac_executable_extensions; do
6405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6406 ac_cv_prog_ac_ct_STRIP="strip"
6407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6408 break 2
6410 done
6411 done
6412 IFS=$as_save_IFS
6416 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6417 if test -n "$ac_ct_STRIP"; then
6418 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6419 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6420 else
6421 { echo "$as_me:$LINENO: result: no" >&5
6422 echo "${ECHO_T}no" >&6; }
6425 if test "x$ac_ct_STRIP" = x; then
6426 STRIP=""
6427 else
6428 case $cross_compiling:$ac_tool_warned in
6429 yes:)
6430 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6431 whose name does not start with the host triplet. If you think this
6432 configuration is useful to you, please write to autoconf@gnu.org." >&5
6433 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6434 whose name does not start with the host triplet. If you think this
6435 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6436 ac_tool_warned=yes ;;
6437 esac
6438 STRIP=$ac_ct_STRIP
6440 else
6441 STRIP="$ac_cv_prog_STRIP"
6444 if test -n "$ac_tool_prefix"; then
6445 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6446 set dummy ${ac_tool_prefix}nm; ac_word=$2
6447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6449 if test "${ac_cv_prog_NM+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6451 else
6452 if test -n "$NM"; then
6453 ac_cv_prog_NM="$NM" # Let the user override the test.
6454 else
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH
6458 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6462 ac_cv_prog_NM="${ac_tool_prefix}nm"
6463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 break 2
6466 done
6467 done
6468 IFS=$as_save_IFS
6472 NM=$ac_cv_prog_NM
6473 if test -n "$NM"; then
6474 { echo "$as_me:$LINENO: result: $NM" >&5
6475 echo "${ECHO_T}$NM" >&6; }
6476 else
6477 { echo "$as_me:$LINENO: result: no" >&5
6478 echo "${ECHO_T}no" >&6; }
6483 if test -z "$ac_cv_prog_NM"; then
6484 ac_ct_NM=$NM
6485 # Extract the first word of "nm", so it can be a program name with args.
6486 set dummy nm; ac_word=$2
6487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6489 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
6490 echo $ECHO_N "(cached) $ECHO_C" >&6
6491 else
6492 if test -n "$ac_ct_NM"; then
6493 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6494 else
6495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 for as_dir in $PATH
6498 IFS=$as_save_IFS
6499 test -z "$as_dir" && as_dir=.
6500 for ac_exec_ext in '' $ac_executable_extensions; do
6501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6502 ac_cv_prog_ac_ct_NM="nm"
6503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6504 break 2
6506 done
6507 done
6508 IFS=$as_save_IFS
6512 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6513 if test -n "$ac_ct_NM"; then
6514 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
6515 echo "${ECHO_T}$ac_ct_NM" >&6; }
6516 else
6517 { echo "$as_me:$LINENO: result: no" >&5
6518 echo "${ECHO_T}no" >&6; }
6521 if test "x$ac_ct_NM" = x; then
6522 NM=""
6523 else
6524 case $cross_compiling:$ac_tool_warned in
6525 yes:)
6526 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6527 whose name does not start with the host triplet. If you think this
6528 configuration is useful to you, please write to autoconf@gnu.org." >&5
6529 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6530 whose name does not start with the host triplet. If you think this
6531 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6532 ac_tool_warned=yes ;;
6533 esac
6534 NM=$ac_ct_NM
6536 else
6537 NM="$ac_cv_prog_NM"
6544 # Test the C compiler for the target environment.
6545 tmp_CC="$CC"
6546 tmp_CFLAGS="$CFLAGS"
6547 tmp_LDFLAGS="$LDFLAGS"
6548 tmp_CPPFLAGS="$CPPFLAGS"
6549 tmp_LIBS="$LIBS"
6550 CC="$TARGET_CC"
6551 CFLAGS="$TARGET_CFLAGS"
6552 CPPFLAGS="$TARGET_CPPFLAGS"
6553 LDFLAGS="$TARGET_LDFLAGS"
6554 LIBS=""
6556 if test "x$TARGET_CFLAGS" = x; then
6557 # debug flags.
6558 TARGET_CFLAGS="-Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes \
6559 -Wundef -Wstrict-prototypes -g"
6561 # optimization flags.
6562 { echo "$as_me:$LINENO: checking whether optimization for size works" >&5
6563 echo $ECHO_N "checking whether optimization for size works... $ECHO_C" >&6; }
6564 if test "${grub_cv_cc_Os+set}" = set; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 else
6568 CFLAGS=-Os
6569 cat >conftest.$ac_ext <<_ACEOF
6570 /* confdefs.h. */
6571 _ACEOF
6572 cat confdefs.h >>conftest.$ac_ext
6573 cat >>conftest.$ac_ext <<_ACEOF
6574 /* end confdefs.h. */
6577 main ()
6581 return 0;
6583 _ACEOF
6584 rm -f conftest.$ac_objext
6585 if { (ac_try="$ac_compile"
6586 case "(($ac_try" in
6587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588 *) ac_try_echo=$ac_try;;
6589 esac
6590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6591 (eval "$ac_compile") 2>conftest.er1
6592 ac_status=$?
6593 grep -v '^ *+' conftest.er1 >conftest.err
6594 rm -f conftest.er1
6595 cat conftest.err >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } && {
6598 test -z "$ac_c_werror_flag" ||
6599 test ! -s conftest.err
6600 } && test -s conftest.$ac_objext; then
6601 grub_cv_cc_Os=yes
6602 else
6603 echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.$ac_ext >&5
6606 grub_cv_cc_Os=no
6609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6612 { echo "$as_me:$LINENO: result: $grub_cv_cc_Os" >&5
6613 echo "${ECHO_T}$grub_cv_cc_Os" >&6; }
6614 if test "x$grub_cv_cc_Os" = xyes; then
6615 TARGET_CFLAGS="$TARGET_CFLAGS -Os"
6616 else
6617 TARGET_CFLAGS="$TARGET_CFLAGS -O2 -fno-strength-reduce -fno-unroll-loops"
6620 # Force no alignment to save space on i386.
6621 if test "x$target_cpu" = xi386; then
6622 { echo "$as_me:$LINENO: checking whether -falign-loops works" >&5
6623 echo $ECHO_N "checking whether -falign-loops works... $ECHO_C" >&6; }
6624 if test "${grub_cv_cc_falign_loop+set}" = set; then
6625 echo $ECHO_N "(cached) $ECHO_C" >&6
6626 else
6628 CFLAGS="-falign-loops=1"
6629 cat >conftest.$ac_ext <<_ACEOF
6630 /* confdefs.h. */
6631 _ACEOF
6632 cat confdefs.h >>conftest.$ac_ext
6633 cat >>conftest.$ac_ext <<_ACEOF
6634 /* end confdefs.h. */
6637 main ()
6641 return 0;
6643 _ACEOF
6644 rm -f conftest.$ac_objext
6645 if { (ac_try="$ac_compile"
6646 case "(($ac_try" in
6647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6648 *) ac_try_echo=$ac_try;;
6649 esac
6650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6651 (eval "$ac_compile") 2>conftest.er1
6652 ac_status=$?
6653 grep -v '^ *+' conftest.er1 >conftest.err
6654 rm -f conftest.er1
6655 cat conftest.err >&5
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); } && {
6658 test -z "$ac_c_werror_flag" ||
6659 test ! -s conftest.err
6660 } && test -s conftest.$ac_objext; then
6661 grub_cv_cc_falign_loop=yes
6662 else
6663 echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.$ac_ext >&5
6666 grub_cv_cc_falign_loop=no
6669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6672 { echo "$as_me:$LINENO: result: $grub_cv_cc_falign_loop" >&5
6673 echo "${ECHO_T}$grub_cv_cc_falign_loop" >&6; }
6675 if test "x$grub_cv_cc_falign_loop" = xyes; then
6676 TARGET_CFLAGS="$TARGET_CFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
6677 else
6678 TARGET_CFLAGS="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
6683 if test "x$target_m32" = x1; then
6684 # Force 32-bit mode.
6685 TARGET_CFLAGS="$TARGET_CFLAGS -m32"
6686 TARGET_LDFLAGS="$TARGET_LDFLAGS -m32"
6690 # Compiler features.
6693 # Smashing stack protector.
6695 # Smashing stack protector.
6696 ssp_possible=yes
6697 { echo "$as_me:$LINENO: checking whether \`$CC' accepts \`-fstack-protector'" >&5
6698 echo $ECHO_N "checking whether \`$CC' accepts \`-fstack-protector'... $ECHO_C" >&6; }
6699 # Is this a reliable test case?
6700 cat >conftest.$ac_ext <<_ACEOF
6701 void foo (void) { volatile char a[8]; a[3]; }
6702 _ACEOF
6703 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
6704 # `ac_compile' like this correct, after all?
6705 if eval "$ac_compile -S -fstack-protector -o conftest.s" 2> /dev/null; then
6706 { echo "$as_me:$LINENO: result: yes" >&5
6707 echo "${ECHO_T}yes" >&6; }
6708 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
6709 rm -f conftest.s
6710 else
6711 ssp_possible=no
6712 { echo "$as_me:$LINENO: result: no" >&5
6713 echo "${ECHO_T}no" >&6; }
6716 # Need that, because some distributions ship compilers that include
6717 # `-fstack-protector' in the default specs.
6718 if test "x$ssp_possible" = xyes; then
6719 TARGET_CFLAGS="$TARGET_CFLAGS -fno-stack-protector"
6726 # Set them to their new values for the tests below.
6727 CC="$TARGET_CC"
6728 CFLAGS="$TARGET_CFLAGS"
6729 CPPFLAGS="$TARGET_CPPFLAGS"
6730 LDFLAGS="$TARGET_LDFLAGS"
6732 # Defined in aclocal.m4.
6733 { echo "$as_me:$LINENO: checking whether ${OBJCOPY} works for absolute addresses" >&5
6734 echo $ECHO_N "checking whether ${OBJCOPY} works for absolute addresses... $ECHO_C" >&6; }
6735 if test "${grub_cv_prog_objcopy_absolute+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6737 else
6738 cat > conftest.c <<\EOF
6739 void
6740 cmain (void)
6742 *((int *) 0x1000) = 2;
6746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6747 (eval $ac_compile) 2>&5
6748 ac_status=$?
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); } && test -s conftest.o; then :
6751 else
6752 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot compile C source code" >&5
6753 echo "$as_me: error: ${CC-cc} cannot compile C source code" >&2;}
6754 { (exit 1); exit 1; }; }
6756 grub_cv_prog_objcopy_absolute=yes
6757 for link_addr in 2000 8000 7C00; do
6758 if { ac_try='${CC-cc} ${CFLAGS} ${LDFLAGS} -nostdlib -Wl,-N -Wl,-Ttext -Wl,$link_addr conftest.o -o conftest.exec'
6759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760 (eval $ac_try) 2>&5
6761 ac_status=$?
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); }; }; then :
6764 else
6765 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot link at address $link_addr" >&5
6766 echo "$as_me: error: ${CC-cc} cannot link at address $link_addr" >&2;}
6767 { (exit 1); exit 1; }; }
6769 if { ac_try='${OBJCOPY-objcopy} --only-section=.text -O binary conftest.exec conftest'
6770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771 (eval $ac_try) 2>&5
6772 ac_status=$?
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }; }; then :
6775 else
6776 { { echo "$as_me:$LINENO: error: ${OBJCOPY-objcopy} cannot create binary files" >&5
6777 echo "$as_me: error: ${OBJCOPY-objcopy} cannot create binary files" >&2;}
6778 { (exit 1); exit 1; }; }
6780 if test ! -f conftest.old || { ac_try='cmp -s conftest.old conftest'
6781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782 (eval $ac_try) 2>&5
6783 ac_status=$?
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); }; }; then
6786 mv -f conftest conftest.old
6787 else
6788 grub_cv_prog_objcopy_absolute=no
6789 break
6791 done
6792 rm -f conftest*
6795 { echo "$as_me:$LINENO: result: $grub_cv_prog_objcopy_absolute" >&5
6796 echo "${ECHO_T}$grub_cv_prog_objcopy_absolute" >&6; }
6798 if test "x$grub_cv_prog_objcopy_absolute" = xno; then
6799 { { echo "$as_me:$LINENO: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&5
6800 echo "$as_me: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&2;}
6801 { (exit 1); exit 1; }; }
6805 { echo "$as_me:$LINENO: checking if C symbols get an underscore after compilation" >&5
6806 echo $ECHO_N "checking if C symbols get an underscore after compilation... $ECHO_C" >&6; }
6807 if test "${grub_cv_asm_uscore+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
6809 else
6810 cat > conftest.c <<\EOF
6812 func (int *list)
6814 *list = 0;
6815 return *list;
6819 if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
6820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6821 (eval $ac_try) 2>&5
6822 ac_status=$?
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); }; } && test -s conftest.s; then
6825 true
6826 else
6827 { { echo "$as_me:$LINENO: error: ${CC-cc} failed to produce assembly code" >&5
6828 echo "$as_me: error: ${CC-cc} failed to produce assembly code" >&2;}
6829 { (exit 1); exit 1; }; }
6832 if grep _func conftest.s >/dev/null 2>&1; then
6833 grub_cv_asm_uscore=yes
6834 else
6835 grub_cv_asm_uscore=no
6838 rm -f conftest*
6842 if test "x$grub_cv_asm_uscore" = xyes; then
6844 cat >>confdefs.h <<_ACEOF
6845 #define HAVE_ASM_USCORE $grub_cv_asm_uscore
6846 _ACEOF
6850 { echo "$as_me:$LINENO: result: $grub_cv_asm_uscore" >&5
6851 echo "${ECHO_T}$grub_cv_asm_uscore" >&6; }
6853 if test "x$target_cpu" = xi386; then
6855 { echo "$as_me:$LINENO: checking if start is defined by the compiler" >&5
6856 echo $ECHO_N "checking if start is defined by the compiler... $ECHO_C" >&6; }
6857 if test "${grub_cv_check_start_symbol+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 else
6860 cat >conftest.$ac_ext <<_ACEOF
6861 /* confdefs.h. */
6862 _ACEOF
6863 cat confdefs.h >>conftest.$ac_ext
6864 cat >>conftest.$ac_ext <<_ACEOF
6865 /* end confdefs.h. */
6868 main ()
6870 asm ("incl start")
6872 return 0;
6874 _ACEOF
6875 rm -f conftest.$ac_objext conftest$ac_exeext
6876 if { (ac_try="$ac_link"
6877 case "(($ac_try" in
6878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6879 *) ac_try_echo=$ac_try;;
6880 esac
6881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6882 (eval "$ac_link") 2>conftest.er1
6883 ac_status=$?
6884 grep -v '^ *+' conftest.er1 >conftest.err
6885 rm -f conftest.er1
6886 cat conftest.err >&5
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); } && {
6889 test -z "$ac_c_werror_flag" ||
6890 test ! -s conftest.err
6891 } && test -s conftest$ac_exeext &&
6892 $as_test_x conftest$ac_exeext; then
6893 grub_cv_check_start_symbol=yes
6894 else
6895 echo "$as_me: failed program was:" >&5
6896 sed 's/^/| /' conftest.$ac_ext >&5
6898 grub_cv_check_start_symbol=no
6901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6902 conftest$ac_exeext conftest.$ac_ext
6906 { echo "$as_me:$LINENO: result: $grub_cv_check_start_symbol" >&5
6907 echo "${ECHO_T}$grub_cv_check_start_symbol" >&6; }
6909 { echo "$as_me:$LINENO: checking if _start is defined by the compiler" >&5
6910 echo $ECHO_N "checking if _start is defined by the compiler... $ECHO_C" >&6; }
6911 if test "${grub_cv_check_uscore_start_symbol+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 else
6914 cat >conftest.$ac_ext <<_ACEOF
6915 /* confdefs.h. */
6916 _ACEOF
6917 cat confdefs.h >>conftest.$ac_ext
6918 cat >>conftest.$ac_ext <<_ACEOF
6919 /* end confdefs.h. */
6922 main ()
6924 asm ("incl _start")
6926 return 0;
6928 _ACEOF
6929 rm -f conftest.$ac_objext conftest$ac_exeext
6930 if { (ac_try="$ac_link"
6931 case "(($ac_try" in
6932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6933 *) ac_try_echo=$ac_try;;
6934 esac
6935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6936 (eval "$ac_link") 2>conftest.er1
6937 ac_status=$?
6938 grep -v '^ *+' conftest.er1 >conftest.err
6939 rm -f conftest.er1
6940 cat conftest.err >&5
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); } && {
6943 test -z "$ac_c_werror_flag" ||
6944 test ! -s conftest.err
6945 } && test -s conftest$ac_exeext &&
6946 $as_test_x conftest$ac_exeext; then
6947 grub_cv_check_uscore_start_symbol=yes
6948 else
6949 echo "$as_me: failed program was:" >&5
6950 sed 's/^/| /' conftest.$ac_ext >&5
6952 grub_cv_check_uscore_start_symbol=no
6955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6956 conftest$ac_exeext conftest.$ac_ext
6960 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_start_symbol" >&5
6961 echo "${ECHO_T}$grub_cv_check_uscore_start_symbol" >&6; }
6966 if test "x$grub_cv_check_start_symbol" = xyes; then
6967 cat >>confdefs.h <<\_ACEOF
6968 #define START_SYMBOL start
6969 _ACEOF
6971 elif test "x$grub_cv_check_uscore_start_symbol" = xyes; then
6972 cat >>confdefs.h <<\_ACEOF
6973 #define START_SYMBOL _start
6974 _ACEOF
6976 else
6977 { { echo "$as_me:$LINENO: error: neither start nor _start is defined" >&5
6978 echo "$as_me: error: neither start nor _start is defined" >&2;}
6979 { (exit 1); exit 1; }; }
6983 { echo "$as_me:$LINENO: checking if __bss_start is defined by the compiler" >&5
6984 echo $ECHO_N "checking if __bss_start is defined by the compiler... $ECHO_C" >&6; }
6985 if test "${grub_cv_check_uscore_uscore_bss_start_symbol+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 else
6988 cat >conftest.$ac_ext <<_ACEOF
6989 /* confdefs.h. */
6990 _ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
6996 main ()
6998 asm ("incl __bss_start")
7000 return 0;
7002 _ACEOF
7003 rm -f conftest.$ac_objext conftest$ac_exeext
7004 if { (ac_try="$ac_link"
7005 case "(($ac_try" in
7006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7007 *) ac_try_echo=$ac_try;;
7008 esac
7009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7010 (eval "$ac_link") 2>conftest.er1
7011 ac_status=$?
7012 grep -v '^ *+' conftest.er1 >conftest.err
7013 rm -f conftest.er1
7014 cat conftest.err >&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } && {
7017 test -z "$ac_c_werror_flag" ||
7018 test ! -s conftest.err
7019 } && test -s conftest$ac_exeext &&
7020 $as_test_x conftest$ac_exeext; then
7021 grub_cv_check_uscore_uscore_bss_start_symbol=yes
7022 else
7023 echo "$as_me: failed program was:" >&5
7024 sed 's/^/| /' conftest.$ac_ext >&5
7026 grub_cv_check_uscore_uscore_bss_start_symbol=no
7029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7030 conftest$ac_exeext conftest.$ac_ext
7034 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
7035 echo "${ECHO_T}$grub_cv_check_uscore_uscore_bss_start_symbol" >&6; }
7037 { echo "$as_me:$LINENO: checking if edata is defined by the compiler" >&5
7038 echo $ECHO_N "checking if edata is defined by the compiler... $ECHO_C" >&6; }
7039 if test "${grub_cv_check_edata_symbol+set}" = set; then
7040 echo $ECHO_N "(cached) $ECHO_C" >&6
7041 else
7042 cat >conftest.$ac_ext <<_ACEOF
7043 /* confdefs.h. */
7044 _ACEOF
7045 cat confdefs.h >>conftest.$ac_ext
7046 cat >>conftest.$ac_ext <<_ACEOF
7047 /* end confdefs.h. */
7050 main ()
7052 asm ("incl edata")
7054 return 0;
7056 _ACEOF
7057 rm -f conftest.$ac_objext conftest$ac_exeext
7058 if { (ac_try="$ac_link"
7059 case "(($ac_try" in
7060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7061 *) ac_try_echo=$ac_try;;
7062 esac
7063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7064 (eval "$ac_link") 2>conftest.er1
7065 ac_status=$?
7066 grep -v '^ *+' conftest.er1 >conftest.err
7067 rm -f conftest.er1
7068 cat conftest.err >&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } && {
7071 test -z "$ac_c_werror_flag" ||
7072 test ! -s conftest.err
7073 } && test -s conftest$ac_exeext &&
7074 $as_test_x conftest$ac_exeext; then
7075 grub_cv_check_edata_symbol=yes
7076 else
7077 echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7080 grub_cv_check_edata_symbol=no
7083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7084 conftest$ac_exeext conftest.$ac_ext
7088 { echo "$as_me:$LINENO: result: $grub_cv_check_edata_symbol" >&5
7089 echo "${ECHO_T}$grub_cv_check_edata_symbol" >&6; }
7091 { echo "$as_me:$LINENO: checking if _edata is defined by the compiler" >&5
7092 echo $ECHO_N "checking if _edata is defined by the compiler... $ECHO_C" >&6; }
7093 if test "${grub_cv_check_uscore_edata_symbol+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7095 else
7096 cat >conftest.$ac_ext <<_ACEOF
7097 /* confdefs.h. */
7098 _ACEOF
7099 cat confdefs.h >>conftest.$ac_ext
7100 cat >>conftest.$ac_ext <<_ACEOF
7101 /* end confdefs.h. */
7104 main ()
7106 asm ("incl _edata")
7108 return 0;
7110 _ACEOF
7111 rm -f conftest.$ac_objext conftest$ac_exeext
7112 if { (ac_try="$ac_link"
7113 case "(($ac_try" in
7114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7115 *) ac_try_echo=$ac_try;;
7116 esac
7117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7118 (eval "$ac_link") 2>conftest.er1
7119 ac_status=$?
7120 grep -v '^ *+' conftest.er1 >conftest.err
7121 rm -f conftest.er1
7122 cat conftest.err >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } && {
7125 test -z "$ac_c_werror_flag" ||
7126 test ! -s conftest.err
7127 } && test -s conftest$ac_exeext &&
7128 $as_test_x conftest$ac_exeext; then
7129 grub_cv_check_uscore_edata_symbol=yes
7130 else
7131 echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7134 grub_cv_check_uscore_edata_symbol=no
7137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7138 conftest$ac_exeext conftest.$ac_ext
7142 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_edata_symbol" >&5
7143 echo "${ECHO_T}$grub_cv_check_uscore_edata_symbol" >&6; }
7148 if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then
7149 cat >>confdefs.h <<\_ACEOF
7150 #define BSS_START_SYMBOL __bss_start
7151 _ACEOF
7153 elif test "x$grub_cv_check_edata_symbol" = xyes; then
7154 cat >>confdefs.h <<\_ACEOF
7155 #define BSS_START_SYMBOL edata
7156 _ACEOF
7158 elif test "x$grub_cv_check_uscore_edata_symbol" = xyes; then
7159 cat >>confdefs.h <<\_ACEOF
7160 #define BSS_START_SYMBOL _edata
7161 _ACEOF
7163 else
7164 { { echo "$as_me:$LINENO: error: none of __bss_start, edata or _edata is defined" >&5
7165 echo "$as_me: error: none of __bss_start, edata or _edata is defined" >&2;}
7166 { (exit 1); exit 1; }; }
7170 { echo "$as_me:$LINENO: checking if end is defined by the compiler" >&5
7171 echo $ECHO_N "checking if end is defined by the compiler... $ECHO_C" >&6; }
7172 if test "${grub_cv_check_end_symbol+set}" = set; then
7173 echo $ECHO_N "(cached) $ECHO_C" >&6
7174 else
7175 cat >conftest.$ac_ext <<_ACEOF
7176 /* confdefs.h. */
7177 _ACEOF
7178 cat confdefs.h >>conftest.$ac_ext
7179 cat >>conftest.$ac_ext <<_ACEOF
7180 /* end confdefs.h. */
7183 main ()
7185 asm ("incl end")
7187 return 0;
7189 _ACEOF
7190 rm -f conftest.$ac_objext conftest$ac_exeext
7191 if { (ac_try="$ac_link"
7192 case "(($ac_try" in
7193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7194 *) ac_try_echo=$ac_try;;
7195 esac
7196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7197 (eval "$ac_link") 2>conftest.er1
7198 ac_status=$?
7199 grep -v '^ *+' conftest.er1 >conftest.err
7200 rm -f conftest.er1
7201 cat conftest.err >&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); } && {
7204 test -z "$ac_c_werror_flag" ||
7205 test ! -s conftest.err
7206 } && test -s conftest$ac_exeext &&
7207 $as_test_x conftest$ac_exeext; then
7208 grub_cv_check_end_symbol=yes
7209 else
7210 echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7213 grub_cv_check_end_symbol=no
7216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7217 conftest$ac_exeext conftest.$ac_ext
7221 { echo "$as_me:$LINENO: result: $grub_cv_check_end_symbol" >&5
7222 echo "${ECHO_T}$grub_cv_check_end_symbol" >&6; }
7224 { echo "$as_me:$LINENO: checking if _end is defined by the compiler" >&5
7225 echo $ECHO_N "checking if _end is defined by the compiler... $ECHO_C" >&6; }
7226 if test "${grub_cv_check_uscore_end_symbol+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 else
7229 cat >conftest.$ac_ext <<_ACEOF
7230 /* confdefs.h. */
7231 _ACEOF
7232 cat confdefs.h >>conftest.$ac_ext
7233 cat >>conftest.$ac_ext <<_ACEOF
7234 /* end confdefs.h. */
7237 main ()
7239 asm ("incl _end")
7241 return 0;
7243 _ACEOF
7244 rm -f conftest.$ac_objext conftest$ac_exeext
7245 if { (ac_try="$ac_link"
7246 case "(($ac_try" in
7247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7248 *) ac_try_echo=$ac_try;;
7249 esac
7250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7251 (eval "$ac_link") 2>conftest.er1
7252 ac_status=$?
7253 grep -v '^ *+' conftest.er1 >conftest.err
7254 rm -f conftest.er1
7255 cat conftest.err >&5
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); } && {
7258 test -z "$ac_c_werror_flag" ||
7259 test ! -s conftest.err
7260 } && test -s conftest$ac_exeext &&
7261 $as_test_x conftest$ac_exeext; then
7262 grub_cv_check_uscore_end_symbol=yes
7263 else
7264 echo "$as_me: failed program was:" >&5
7265 sed 's/^/| /' conftest.$ac_ext >&5
7267 grub_cv_check_uscore_end_symbol=no
7270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7271 conftest$ac_exeext conftest.$ac_ext
7275 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_end_symbol" >&5
7276 echo "${ECHO_T}$grub_cv_check_uscore_end_symbol" >&6; }
7281 if test "x$grub_cv_check_end_symbol" = xyes; then
7282 cat >>confdefs.h <<\_ACEOF
7283 #define END_SYMBOL end
7284 _ACEOF
7286 elif test "x$grub_cv_check_uscore_end_symbol" = xyes; then
7287 cat >>confdefs.h <<\_ACEOF
7288 #define END_SYMBOL _end
7289 _ACEOF
7291 else
7292 { { echo "$as_me:$LINENO: error: neither end nor _end is defined" >&5
7293 echo "$as_me: error: neither end nor _end is defined" >&2;}
7294 { (exit 1); exit 1; }; }
7298 { echo "$as_me:$LINENO: checking whether addr32 must be in the same line as the instruction" >&5
7299 echo $ECHO_N "checking whether addr32 must be in the same line as the instruction... $ECHO_C" >&6; }
7300 if test "${grub_cv_i386_asm_prefix_requirement+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 else
7303 cat > conftest.s <<\EOF
7304 .code16
7305 l1: addr32 movb %al, l1
7308 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7310 (eval $ac_try) 2>&5
7311 ac_status=$?
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); }; } && test -s conftest.o; then
7314 grub_cv_i386_asm_prefix_requirement=yes
7315 else
7316 grub_cv_i386_asm_prefix_requirement=no
7319 rm -f conftest*
7323 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
7324 grub_tmp_addr32="addr32"
7325 grub_tmp_data32="data32"
7326 else
7327 grub_tmp_addr32="addr32;"
7328 grub_tmp_data32="data32;"
7332 cat >>confdefs.h <<_ACEOF
7333 #define ADDR32 $grub_tmp_addr32
7334 _ACEOF
7337 cat >>confdefs.h <<_ACEOF
7338 #define DATA32 $grub_tmp_data32
7339 _ACEOF
7342 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_prefix_requirement" >&5
7343 echo "${ECHO_T}$grub_cv_i386_asm_prefix_requirement" >&6; }
7346 { echo "$as_me:$LINENO: checking for .code16 addr32 assembler support" >&5
7347 echo $ECHO_N "checking for .code16 addr32 assembler support... $ECHO_C" >&6; }
7348 if test "${grub_cv_i386_asm_addr32+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7350 else
7351 cat > conftest.s.in <<\EOF
7352 .code16
7353 l1: @ADDR32@ movb %al, l1
7356 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
7357 sed -e s/@ADDR32@/addr32/ < conftest.s.in > conftest.s
7358 else
7359 sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s
7362 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7364 (eval $ac_try) 2>&5
7365 ac_status=$?
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); }; } && test -s conftest.o; then
7368 grub_cv_i386_asm_addr32=yes
7369 else
7370 grub_cv_i386_asm_addr32=no
7373 rm -f conftest*
7377 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_addr32" >&5
7378 echo "${ECHO_T}$grub_cv_i386_asm_addr32" >&6; }
7380 { echo "$as_me:$LINENO: checking whether an absolute indirect call/jump must not be prefixed with an asterisk" >&5
7381 echo $ECHO_N "checking whether an absolute indirect call/jump must not be prefixed with an asterisk... $ECHO_C" >&6; }
7382 if test "${grub_cv_i386_asm_absolute_without_asterisk+set}" = set; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
7384 else
7385 cat > conftest.s <<\EOF
7386 lcall *(offset)
7387 offset:
7388 .long 0
7389 .word 0
7392 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7394 (eval $ac_try) 2>&5
7395 ac_status=$?
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); }; } && test -s conftest.o; then
7398 grub_cv_i386_asm_absolute_without_asterisk=no
7399 else
7400 grub_cv_i386_asm_absolute_without_asterisk=yes
7403 rm -f conftest*
7407 if test "x$grub_cv_i386_asm_absolute_without_asterisk" = xyes; then
7409 cat >>confdefs.h <<\_ACEOF
7410 #define ABSOLUTE_WITHOUT_ASTERISK 1
7411 _ACEOF
7415 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_absolute_without_asterisk" >&5
7416 echo "${ECHO_T}$grub_cv_i386_asm_absolute_without_asterisk" >&6; }
7418 { echo "$as_me:$LINENO: checking if GCC has the regparm=3 bug" >&5
7419 echo $ECHO_N "checking if GCC has the regparm=3 bug... $ECHO_C" >&6; }
7420 if test "${grub_cv_i386_check_nested_functions+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423 if test "$cross_compiling" = yes; then
7424 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7425 See \`config.log' for more details." >&5
7426 echo "$as_me: error: cannot run test program while cross compiling
7427 See \`config.log' for more details." >&2;}
7428 { (exit 1); exit 1; }; }
7429 else
7430 cat >conftest.$ac_ext <<_ACEOF
7431 /* confdefs.h. */
7432 _ACEOF
7433 cat confdefs.h >>conftest.$ac_ext
7434 cat >>conftest.$ac_ext <<_ACEOF
7435 /* end confdefs.h. */
7437 static int
7438 test (int *n)
7440 return *n == -1;
7443 static int
7444 testfunc (int __attribute__ ((__regparm__ (3))) (*hook) (int a, int b, int *c))
7446 int a = 0;
7447 int b = 0;
7448 int c = -1;
7449 return hook (a, b, &c);
7453 main (void)
7455 int __attribute__ ((__regparm__ (3))) nestedfunc (int a, int b, int *c)
7457 return a == b && test (c);
7459 return testfunc (nestedfunc) ? 0 : 1;
7462 _ACEOF
7463 rm -f conftest$ac_exeext
7464 if { (ac_try="$ac_link"
7465 case "(($ac_try" in
7466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7467 *) ac_try_echo=$ac_try;;
7468 esac
7469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7470 (eval "$ac_link") 2>&5
7471 ac_status=$?
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7474 { (case "(($ac_try" in
7475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7476 *) ac_try_echo=$ac_try;;
7477 esac
7478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7479 (eval "$ac_try") 2>&5
7480 ac_status=$?
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); }; }; then
7483 grub_cv_i386_check_nested_functions=no
7484 else
7485 echo "$as_me: program exited with status $ac_status" >&5
7486 echo "$as_me: failed program was:" >&5
7487 sed 's/^/| /' conftest.$ac_ext >&5
7489 ( exit $ac_status )
7490 grub_cv_i386_check_nested_functions=yes
7492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7499 { echo "$as_me:$LINENO: result: $grub_cv_i386_check_nested_functions" >&5
7500 echo "${ECHO_T}$grub_cv_i386_check_nested_functions" >&6; }
7502 if test "x$grub_cv_i386_check_nested_functions" = xyes; then
7504 cat >>confdefs.h <<\_ACEOF
7505 #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (1)))
7506 _ACEOF
7508 else
7510 cat >>confdefs.h <<\_ACEOF
7511 #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (1)))
7512 _ACEOF
7516 else
7518 cat >>confdefs.h <<\_ACEOF
7519 #define NESTED_FUNC_ATTR
7520 _ACEOF
7524 # Restore the flags.
7525 CC="$tmp_CC"
7526 CFLAGS="$tmp_CFLAGS"
7527 CPPFLAGS="$tmp_CPPFLAGS"
7528 LDFLAGS="$tmp_LDFLAGS"
7529 LIBS="$tmp_LIBS"
7532 # Check for options.
7535 # Memory manager debugging.
7536 # Check whether --enable-mm-debug was given.
7537 if test "${enable_mm_debug+set}" = set; then
7538 enableval=$enable_mm_debug;
7539 cat >>confdefs.h <<\_ACEOF
7540 #define MM_DEBUG 1
7541 _ACEOF
7546 # Check whether --enable-grub-emu was given.
7547 if test "${enable_grub_emu+set}" = set; then
7548 enableval=$enable_grub_emu;
7551 if [ x"$enable_grub_emu" = xyes ]; then
7552 # Check for curses libraries.
7553 { echo "$as_me:$LINENO: checking for wgetch in -lncurses" >&5
7554 echo $ECHO_N "checking for wgetch in -lncurses... $ECHO_C" >&6; }
7555 if test "${ac_cv_lib_ncurses_wgetch+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7557 else
7558 ac_check_lib_save_LIBS=$LIBS
7559 LIBS="-lncurses $LIBS"
7560 cat >conftest.$ac_ext <<_ACEOF
7561 /* confdefs.h. */
7562 _ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7567 /* Override any GCC internal prototype to avoid an error.
7568 Use char because int might match the return type of a GCC
7569 builtin and then its argument prototype would still apply. */
7570 #ifdef __cplusplus
7571 extern "C"
7572 #endif
7573 char wgetch ();
7575 main ()
7577 return wgetch ();
7579 return 0;
7581 _ACEOF
7582 rm -f conftest.$ac_objext conftest$ac_exeext
7583 if { (ac_try="$ac_link"
7584 case "(($ac_try" in
7585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7586 *) ac_try_echo=$ac_try;;
7587 esac
7588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7589 (eval "$ac_link") 2>conftest.er1
7590 ac_status=$?
7591 grep -v '^ *+' conftest.er1 >conftest.err
7592 rm -f conftest.er1
7593 cat conftest.err >&5
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); } && {
7596 test -z "$ac_c_werror_flag" ||
7597 test ! -s conftest.err
7598 } && test -s conftest$ac_exeext &&
7599 $as_test_x conftest$ac_exeext; then
7600 ac_cv_lib_ncurses_wgetch=yes
7601 else
7602 echo "$as_me: failed program was:" >&5
7603 sed 's/^/| /' conftest.$ac_ext >&5
7605 ac_cv_lib_ncurses_wgetch=no
7608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7609 conftest$ac_exeext conftest.$ac_ext
7610 LIBS=$ac_check_lib_save_LIBS
7612 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_wgetch" >&5
7613 echo "${ECHO_T}$ac_cv_lib_ncurses_wgetch" >&6; }
7614 if test $ac_cv_lib_ncurses_wgetch = yes; then
7615 LIBCURSES="-lncurses"
7616 else
7617 { echo "$as_me:$LINENO: checking for wgetch in -lcurses" >&5
7618 echo $ECHO_N "checking for wgetch in -lcurses... $ECHO_C" >&6; }
7619 if test "${ac_cv_lib_curses_wgetch+set}" = set; then
7620 echo $ECHO_N "(cached) $ECHO_C" >&6
7621 else
7622 ac_check_lib_save_LIBS=$LIBS
7623 LIBS="-lcurses $LIBS"
7624 cat >conftest.$ac_ext <<_ACEOF
7625 /* confdefs.h. */
7626 _ACEOF
7627 cat confdefs.h >>conftest.$ac_ext
7628 cat >>conftest.$ac_ext <<_ACEOF
7629 /* end confdefs.h. */
7631 /* Override any GCC internal prototype to avoid an error.
7632 Use char because int might match the return type of a GCC
7633 builtin and then its argument prototype would still apply. */
7634 #ifdef __cplusplus
7635 extern "C"
7636 #endif
7637 char wgetch ();
7639 main ()
7641 return wgetch ();
7643 return 0;
7645 _ACEOF
7646 rm -f conftest.$ac_objext conftest$ac_exeext
7647 if { (ac_try="$ac_link"
7648 case "(($ac_try" in
7649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7650 *) ac_try_echo=$ac_try;;
7651 esac
7652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7653 (eval "$ac_link") 2>conftest.er1
7654 ac_status=$?
7655 grep -v '^ *+' conftest.er1 >conftest.err
7656 rm -f conftest.er1
7657 cat conftest.err >&5
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); } && {
7660 test -z "$ac_c_werror_flag" ||
7661 test ! -s conftest.err
7662 } && test -s conftest$ac_exeext &&
7663 $as_test_x conftest$ac_exeext; then
7664 ac_cv_lib_curses_wgetch=yes
7665 else
7666 echo "$as_me: failed program was:" >&5
7667 sed 's/^/| /' conftest.$ac_ext >&5
7669 ac_cv_lib_curses_wgetch=no
7672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7673 conftest$ac_exeext conftest.$ac_ext
7674 LIBS=$ac_check_lib_save_LIBS
7676 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_wgetch" >&5
7677 echo "${ECHO_T}$ac_cv_lib_curses_wgetch" >&6; }
7678 if test $ac_cv_lib_curses_wgetch = yes; then
7679 LIBCURSES="-lcurses"
7680 else
7681 { { echo "$as_me:$LINENO: error: (n)curses libraries are required to build \`grub-emu'" >&5
7682 echo "$as_me: error: (n)curses libraries are required to build \`grub-emu'" >&2;}
7683 { (exit 1); exit 1; }; }
7690 # Check for headers.
7692 for ac_header in ncurses/curses.h
7694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7699 echo $ECHO_N "(cached) $ECHO_C" >&6
7701 ac_res=`eval echo '${'$as_ac_Header'}'`
7702 { echo "$as_me:$LINENO: result: $ac_res" >&5
7703 echo "${ECHO_T}$ac_res" >&6; }
7704 else
7705 # Is the header compilable?
7706 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7708 cat >conftest.$ac_ext <<_ACEOF
7709 /* confdefs.h. */
7710 _ACEOF
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h. */
7714 $ac_includes_default
7715 #include <$ac_header>
7716 _ACEOF
7717 rm -f conftest.$ac_objext
7718 if { (ac_try="$ac_compile"
7719 case "(($ac_try" in
7720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7721 *) ac_try_echo=$ac_try;;
7722 esac
7723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7724 (eval "$ac_compile") 2>conftest.er1
7725 ac_status=$?
7726 grep -v '^ *+' conftest.er1 >conftest.err
7727 rm -f conftest.er1
7728 cat conftest.err >&5
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); } && {
7731 test -z "$ac_c_werror_flag" ||
7732 test ! -s conftest.err
7733 } && test -s conftest.$ac_objext; then
7734 ac_header_compiler=yes
7735 else
7736 echo "$as_me: failed program was:" >&5
7737 sed 's/^/| /' conftest.$ac_ext >&5
7739 ac_header_compiler=no
7742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7743 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7744 echo "${ECHO_T}$ac_header_compiler" >&6; }
7746 # Is the header present?
7747 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7749 cat >conftest.$ac_ext <<_ACEOF
7750 /* confdefs.h. */
7751 _ACEOF
7752 cat confdefs.h >>conftest.$ac_ext
7753 cat >>conftest.$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7755 #include <$ac_header>
7756 _ACEOF
7757 if { (ac_try="$ac_cpp conftest.$ac_ext"
7758 case "(($ac_try" in
7759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7760 *) ac_try_echo=$ac_try;;
7761 esac
7762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7764 ac_status=$?
7765 grep -v '^ *+' conftest.er1 >conftest.err
7766 rm -f conftest.er1
7767 cat conftest.err >&5
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); } >/dev/null && {
7770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7771 test ! -s conftest.err
7772 }; then
7773 ac_header_preproc=yes
7774 else
7775 echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.$ac_ext >&5
7778 ac_header_preproc=no
7781 rm -f conftest.err conftest.$ac_ext
7782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7783 echo "${ECHO_T}$ac_header_preproc" >&6; }
7785 # So? What about this header?
7786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7787 yes:no: )
7788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7792 ac_header_preproc=yes
7794 no:yes:* )
7795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7798 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7799 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7801 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7802 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7805 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7807 ( cat <<\_ASBOX
7808 ## ------------------------------- ##
7809 ## Report this to bug-grub@gnu.org ##
7810 ## ------------------------------- ##
7811 _ASBOX
7812 ) | sed "s/^/$as_me: WARNING: /" >&2
7814 esac
7815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
7819 else
7820 eval "$as_ac_Header=\$ac_header_preproc"
7822 ac_res=`eval echo '${'$as_ac_Header'}'`
7823 { echo "$as_me:$LINENO: result: $ac_res" >&5
7824 echo "${ECHO_T}$ac_res" >&6; }
7827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7828 cat >>confdefs.h <<_ACEOF
7829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7830 _ACEOF
7832 else
7834 for ac_header in ncurses.h
7836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7838 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7843 ac_res=`eval echo '${'$as_ac_Header'}'`
7844 { echo "$as_me:$LINENO: result: $ac_res" >&5
7845 echo "${ECHO_T}$ac_res" >&6; }
7846 else
7847 # Is the header compilable?
7848 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7849 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7850 cat >conftest.$ac_ext <<_ACEOF
7851 /* confdefs.h. */
7852 _ACEOF
7853 cat confdefs.h >>conftest.$ac_ext
7854 cat >>conftest.$ac_ext <<_ACEOF
7855 /* end confdefs.h. */
7856 $ac_includes_default
7857 #include <$ac_header>
7858 _ACEOF
7859 rm -f conftest.$ac_objext
7860 if { (ac_try="$ac_compile"
7861 case "(($ac_try" in
7862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863 *) ac_try_echo=$ac_try;;
7864 esac
7865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7866 (eval "$ac_compile") 2>conftest.er1
7867 ac_status=$?
7868 grep -v '^ *+' conftest.er1 >conftest.err
7869 rm -f conftest.er1
7870 cat conftest.err >&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } && {
7873 test -z "$ac_c_werror_flag" ||
7874 test ! -s conftest.err
7875 } && test -s conftest.$ac_objext; then
7876 ac_header_compiler=yes
7877 else
7878 echo "$as_me: failed program was:" >&5
7879 sed 's/^/| /' conftest.$ac_ext >&5
7881 ac_header_compiler=no
7884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7885 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7886 echo "${ECHO_T}$ac_header_compiler" >&6; }
7888 # Is the header present?
7889 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7891 cat >conftest.$ac_ext <<_ACEOF
7892 /* confdefs.h. */
7893 _ACEOF
7894 cat confdefs.h >>conftest.$ac_ext
7895 cat >>conftest.$ac_ext <<_ACEOF
7896 /* end confdefs.h. */
7897 #include <$ac_header>
7898 _ACEOF
7899 if { (ac_try="$ac_cpp conftest.$ac_ext"
7900 case "(($ac_try" in
7901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7902 *) ac_try_echo=$ac_try;;
7903 esac
7904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7906 ac_status=$?
7907 grep -v '^ *+' conftest.er1 >conftest.err
7908 rm -f conftest.er1
7909 cat conftest.err >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); } >/dev/null && {
7912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7913 test ! -s conftest.err
7914 }; then
7915 ac_header_preproc=yes
7916 else
7917 echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7920 ac_header_preproc=no
7923 rm -f conftest.err conftest.$ac_ext
7924 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7925 echo "${ECHO_T}$ac_header_preproc" >&6; }
7927 # So? What about this header?
7928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7929 yes:no: )
7930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7933 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7934 ac_header_preproc=yes
7936 no:yes:* )
7937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7940 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7941 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7942 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7943 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7944 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7947 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7948 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7949 ( cat <<\_ASBOX
7950 ## ------------------------------- ##
7951 ## Report this to bug-grub@gnu.org ##
7952 ## ------------------------------- ##
7953 _ASBOX
7954 ) | sed "s/^/$as_me: WARNING: /" >&2
7956 esac
7957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7960 echo $ECHO_N "(cached) $ECHO_C" >&6
7961 else
7962 eval "$as_ac_Header=\$ac_header_preproc"
7964 ac_res=`eval echo '${'$as_ac_Header'}'`
7965 { echo "$as_me:$LINENO: result: $ac_res" >&5
7966 echo "${ECHO_T}$ac_res" >&6; }
7969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7970 cat >>confdefs.h <<_ACEOF
7971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7972 _ACEOF
7974 else
7976 for ac_header in curses.h
7978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7983 echo $ECHO_N "(cached) $ECHO_C" >&6
7985 ac_res=`eval echo '${'$as_ac_Header'}'`
7986 { echo "$as_me:$LINENO: result: $ac_res" >&5
7987 echo "${ECHO_T}$ac_res" >&6; }
7988 else
7989 # Is the header compilable?
7990 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7992 cat >conftest.$ac_ext <<_ACEOF
7993 /* confdefs.h. */
7994 _ACEOF
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h. */
7998 $ac_includes_default
7999 #include <$ac_header>
8000 _ACEOF
8001 rm -f conftest.$ac_objext
8002 if { (ac_try="$ac_compile"
8003 case "(($ac_try" in
8004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8005 *) ac_try_echo=$ac_try;;
8006 esac
8007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8008 (eval "$ac_compile") 2>conftest.er1
8009 ac_status=$?
8010 grep -v '^ *+' conftest.er1 >conftest.err
8011 rm -f conftest.er1
8012 cat conftest.err >&5
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); } && {
8015 test -z "$ac_c_werror_flag" ||
8016 test ! -s conftest.err
8017 } && test -s conftest.$ac_objext; then
8018 ac_header_compiler=yes
8019 else
8020 echo "$as_me: failed program was:" >&5
8021 sed 's/^/| /' conftest.$ac_ext >&5
8023 ac_header_compiler=no
8026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8028 echo "${ECHO_T}$ac_header_compiler" >&6; }
8030 # Is the header present?
8031 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8033 cat >conftest.$ac_ext <<_ACEOF
8034 /* confdefs.h. */
8035 _ACEOF
8036 cat confdefs.h >>conftest.$ac_ext
8037 cat >>conftest.$ac_ext <<_ACEOF
8038 /* end confdefs.h. */
8039 #include <$ac_header>
8040 _ACEOF
8041 if { (ac_try="$ac_cpp conftest.$ac_ext"
8042 case "(($ac_try" in
8043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8044 *) ac_try_echo=$ac_try;;
8045 esac
8046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8048 ac_status=$?
8049 grep -v '^ *+' conftest.er1 >conftest.err
8050 rm -f conftest.er1
8051 cat conftest.err >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); } >/dev/null && {
8054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8055 test ! -s conftest.err
8056 }; then
8057 ac_header_preproc=yes
8058 else
8059 echo "$as_me: failed program was:" >&5
8060 sed 's/^/| /' conftest.$ac_ext >&5
8062 ac_header_preproc=no
8065 rm -f conftest.err conftest.$ac_ext
8066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8067 echo "${ECHO_T}$ac_header_preproc" >&6; }
8069 # So? What about this header?
8070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8071 yes:no: )
8072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8076 ac_header_preproc=yes
8078 no:yes:* )
8079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8086 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8091 ( cat <<\_ASBOX
8092 ## ------------------------------- ##
8093 ## Report this to bug-grub@gnu.org ##
8094 ## ------------------------------- ##
8095 _ASBOX
8096 ) | sed "s/^/$as_me: WARNING: /" >&2
8098 esac
8099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8103 else
8104 eval "$as_ac_Header=\$ac_header_preproc"
8106 ac_res=`eval echo '${'$as_ac_Header'}'`
8107 { echo "$as_me:$LINENO: result: $ac_res" >&5
8108 echo "${ECHO_T}$ac_res" >&6; }
8111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8112 cat >>confdefs.h <<_ACEOF
8113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8114 _ACEOF
8116 else
8117 { { echo "$as_me:$LINENO: error: (n)curses header files are required to build \`grub-emu'" >&5
8118 echo "$as_me: error: (n)curses header files are required to build \`grub-emu'" >&2;}
8119 { (exit 1); exit 1; }; }
8122 done
8126 done
8130 done
8135 # Check whether --enable-grub-fstest was given.
8136 if test "${enable_grub_fstest+set}" = set; then
8137 enableval=$enable_grub_fstest;
8142 # Output files.
8143 ac_config_links="$ac_config_links include/grub/cpu:include/grub/$target_cpu include/grub/machine:include/grub/$target_cpu/$platform"
8145 ac_config_files="$ac_config_files Makefile gensymlist.sh genkernsyms.sh"
8147 ac_config_files="$ac_config_files stamp-h"
8149 cat >confcache <<\_ACEOF
8150 # This file is a shell script that caches the results of configure
8151 # tests run on this system so they can be shared between configure
8152 # scripts and configure runs, see configure's option --config-cache.
8153 # It is not useful on other systems. If it contains results you don't
8154 # want to keep, you may remove or edit it.
8156 # config.status only pays attention to the cache file if you give it
8157 # the --recheck option to rerun configure.
8159 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8160 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8161 # following values.
8163 _ACEOF
8165 # The following way of writing the cache mishandles newlines in values,
8166 # but we know of no workaround that is simple, portable, and efficient.
8167 # So, we kill variables containing newlines.
8168 # Ultrix sh set writes to stderr and can't be redirected directly,
8169 # and sets the high bit in the cache file unless we assign to the vars.
8171 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8172 eval ac_val=\$$ac_var
8173 case $ac_val in #(
8174 *${as_nl}*)
8175 case $ac_var in #(
8176 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8177 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8178 esac
8179 case $ac_var in #(
8180 _ | IFS | as_nl) ;; #(
8181 *) $as_unset $ac_var ;;
8182 esac ;;
8183 esac
8184 done
8186 (set) 2>&1 |
8187 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8188 *${as_nl}ac_space=\ *)
8189 # `set' does not quote correctly, so add quotes (double-quote
8190 # substitution turns \\\\ into \\, and sed turns \\ into \).
8191 sed -n \
8192 "s/'/'\\\\''/g;
8193 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8194 ;; #(
8196 # `set' quotes correctly as required by POSIX, so do not add quotes.
8197 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8199 esac |
8200 sort
8202 sed '
8203 /^ac_cv_env_/b end
8204 t clear
8205 :clear
8206 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8207 t end
8208 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8209 :end' >>confcache
8210 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8211 if test -w "$cache_file"; then
8212 test "x$cache_file" != "x/dev/null" &&
8213 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8214 echo "$as_me: updating cache $cache_file" >&6;}
8215 cat confcache >$cache_file
8216 else
8217 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8218 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8221 rm -f confcache
8223 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8224 # Let make expand exec_prefix.
8225 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8227 DEFS=-DHAVE_CONFIG_H
8229 ac_libobjs=
8230 ac_ltlibobjs=
8231 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8232 # 1. Remove the extension, and $U if already installed.
8233 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8234 ac_i=`echo "$ac_i" | sed "$ac_script"`
8235 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8236 # will be set to the directory where LIBOBJS objects are built.
8237 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8238 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8239 done
8240 LIBOBJS=$ac_libobjs
8242 LTLIBOBJS=$ac_ltlibobjs
8246 : ${CONFIG_STATUS=./config.status}
8247 ac_clean_files_save=$ac_clean_files
8248 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8249 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8250 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8251 cat >$CONFIG_STATUS <<_ACEOF
8252 #! $SHELL
8253 # Generated by $as_me.
8254 # Run this file to recreate the current configuration.
8255 # Compiler output produced by configure, useful for debugging
8256 # configure, is in config.log if it exists.
8258 debug=false
8259 ac_cs_recheck=false
8260 ac_cs_silent=false
8261 SHELL=\${CONFIG_SHELL-$SHELL}
8262 _ACEOF
8264 cat >>$CONFIG_STATUS <<\_ACEOF
8265 ## --------------------- ##
8266 ## M4sh Initialization. ##
8267 ## --------------------- ##
8269 # Be more Bourne compatible
8270 DUALCASE=1; export DUALCASE # for MKS sh
8271 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8272 emulate sh
8273 NULLCMD=:
8274 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8275 # is contrary to our usage. Disable this feature.
8276 alias -g '${1+"$@"}'='"$@"'
8277 setopt NO_GLOB_SUBST
8278 else
8279 case `(set -o) 2>/dev/null` in
8280 *posix*) set -o posix ;;
8281 esac
8288 # PATH needs CR
8289 # Avoid depending upon Character Ranges.
8290 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8291 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8292 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8293 as_cr_digits='0123456789'
8294 as_cr_alnum=$as_cr_Letters$as_cr_digits
8296 # The user is always right.
8297 if test "${PATH_SEPARATOR+set}" != set; then
8298 echo "#! /bin/sh" >conf$$.sh
8299 echo "exit 0" >>conf$$.sh
8300 chmod +x conf$$.sh
8301 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8302 PATH_SEPARATOR=';'
8303 else
8304 PATH_SEPARATOR=:
8306 rm -f conf$$.sh
8309 # Support unset when possible.
8310 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8311 as_unset=unset
8312 else
8313 as_unset=false
8317 # IFS
8318 # We need space, tab and new line, in precisely that order. Quoting is
8319 # there to prevent editors from complaining about space-tab.
8320 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8321 # splitting by setting IFS to empty value.)
8322 as_nl='
8324 IFS=" "" $as_nl"
8326 # Find who we are. Look in the path if we contain no directory separator.
8327 case $0 in
8328 *[\\/]* ) as_myself=$0 ;;
8329 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330 for as_dir in $PATH
8332 IFS=$as_save_IFS
8333 test -z "$as_dir" && as_dir=.
8334 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8335 done
8336 IFS=$as_save_IFS
8339 esac
8340 # We did not find ourselves, most probably we were run as `sh COMMAND'
8341 # in which case we are not to be found in the path.
8342 if test "x$as_myself" = x; then
8343 as_myself=$0
8345 if test ! -f "$as_myself"; then
8346 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8347 { (exit 1); exit 1; }
8350 # Work around bugs in pre-3.0 UWIN ksh.
8351 for as_var in ENV MAIL MAILPATH
8352 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8353 done
8354 PS1='$ '
8355 PS2='> '
8356 PS4='+ '
8358 # NLS nuisances.
8359 for as_var in \
8360 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8361 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8362 LC_TELEPHONE LC_TIME
8364 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8365 eval $as_var=C; export $as_var
8366 else
8367 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8369 done
8371 # Required to use basename.
8372 if expr a : '\(a\)' >/dev/null 2>&1 &&
8373 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8374 as_expr=expr
8375 else
8376 as_expr=false
8379 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8380 as_basename=basename
8381 else
8382 as_basename=false
8386 # Name of the executable.
8387 as_me=`$as_basename -- "$0" ||
8388 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8389 X"$0" : 'X\(//\)$' \| \
8390 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8391 echo X/"$0" |
8392 sed '/^.*\/\([^/][^/]*\)\/*$/{
8393 s//\1/
8396 /^X\/\(\/\/\)$/{
8397 s//\1/
8400 /^X\/\(\/\).*/{
8401 s//\1/
8404 s/.*/./; q'`
8406 # CDPATH.
8407 $as_unset CDPATH
8411 as_lineno_1=$LINENO
8412 as_lineno_2=$LINENO
8413 test "x$as_lineno_1" != "x$as_lineno_2" &&
8414 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
8416 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8417 # uniformly replaced by the line number. The first 'sed' inserts a
8418 # line-number line after each line using $LINENO; the second 'sed'
8419 # does the real work. The second script uses 'N' to pair each
8420 # line-number line with the line containing $LINENO, and appends
8421 # trailing '-' during substitution so that $LINENO is not a special
8422 # case at line end.
8423 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8424 # scripts with optimization help from Paolo Bonzini. Blame Lee
8425 # E. McMahon (1931-1989) for sed's syntax. :-)
8426 sed -n '
8428 /[$]LINENO/=
8429 ' <$as_myself |
8430 sed '
8431 s/[$]LINENO.*/&-/
8432 t lineno
8434 :lineno
8436 :loop
8437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8438 t loop
8439 s/-\n.*//
8440 ' >$as_me.lineno &&
8441 chmod +x "$as_me.lineno" ||
8442 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8443 { (exit 1); exit 1; }; }
8445 # Don't try to exec as it changes $[0], causing all sort of problems
8446 # (the dirname of $[0] is not the place where we might find the
8447 # original and so on. Autoconf is especially sensitive to this).
8448 . "./$as_me.lineno"
8449 # Exit status is that of the last command.
8450 exit
8454 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8455 as_dirname=dirname
8456 else
8457 as_dirname=false
8460 ECHO_C= ECHO_N= ECHO_T=
8461 case `echo -n x` in
8462 -n*)
8463 case `echo 'x\c'` in
8464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8465 *) ECHO_C='\c';;
8466 esac;;
8468 ECHO_N='-n';;
8469 esac
8471 if expr a : '\(a\)' >/dev/null 2>&1 &&
8472 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8473 as_expr=expr
8474 else
8475 as_expr=false
8478 rm -f conf$$ conf$$.exe conf$$.file
8479 if test -d conf$$.dir; then
8480 rm -f conf$$.dir/conf$$.file
8481 else
8482 rm -f conf$$.dir
8483 mkdir conf$$.dir
8485 echo >conf$$.file
8486 if ln -s conf$$.file conf$$ 2>/dev/null; then
8487 as_ln_s='ln -s'
8488 # ... but there are two gotchas:
8489 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8490 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8491 # In both cases, we have to default to `cp -p'.
8492 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8493 as_ln_s='cp -p'
8494 elif ln conf$$.file conf$$ 2>/dev/null; then
8495 as_ln_s=ln
8496 else
8497 as_ln_s='cp -p'
8499 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8500 rmdir conf$$.dir 2>/dev/null
8502 if mkdir -p . 2>/dev/null; then
8503 as_mkdir_p=:
8504 else
8505 test -d ./-p && rmdir ./-p
8506 as_mkdir_p=false
8509 if test -x / >/dev/null 2>&1; then
8510 as_test_x='test -x'
8511 else
8512 if ls -dL / >/dev/null 2>&1; then
8513 as_ls_L_option=L
8514 else
8515 as_ls_L_option=
8517 as_test_x='
8518 eval sh -c '\''
8519 if test -d "$1"; then
8520 test -d "$1/.";
8521 else
8522 case $1 in
8523 -*)set "./$1";;
8524 esac;
8525 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8526 ???[sx]*):;;*)false;;esac;fi
8527 '\'' sh
8530 as_executable_p=$as_test_x
8532 # Sed expression to map a string onto a valid CPP name.
8533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8535 # Sed expression to map a string onto a valid variable name.
8536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8539 exec 6>&1
8541 # Save the log message, to keep $[0] and so on meaningful, and to
8542 # report actual input values of CONFIG_FILES etc. instead of their
8543 # values after options handling.
8544 ac_log="
8545 This file was extended by GRUB $as_me 1.96, which was
8546 generated by GNU Autoconf 2.61. Invocation command line was
8548 CONFIG_FILES = $CONFIG_FILES
8549 CONFIG_HEADERS = $CONFIG_HEADERS
8550 CONFIG_LINKS = $CONFIG_LINKS
8551 CONFIG_COMMANDS = $CONFIG_COMMANDS
8552 $ $0 $@
8554 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8557 _ACEOF
8559 cat >>$CONFIG_STATUS <<_ACEOF
8560 # Files that config.status was made for.
8561 config_files="$ac_config_files"
8562 config_headers="$ac_config_headers"
8563 config_links="$ac_config_links"
8565 _ACEOF
8567 cat >>$CONFIG_STATUS <<\_ACEOF
8568 ac_cs_usage="\
8569 \`$as_me' instantiates files from templates according to the
8570 current configuration.
8572 Usage: $0 [OPTIONS] [FILE]...
8574 -h, --help print this help, then exit
8575 -V, --version print version number and configuration settings, then exit
8576 -q, --quiet do not print progress messages
8577 -d, --debug don't remove temporary files
8578 --recheck update $as_me by reconfiguring in the same conditions
8579 --file=FILE[:TEMPLATE]
8580 instantiate the configuration file FILE
8581 --header=FILE[:TEMPLATE]
8582 instantiate the configuration header FILE
8584 Configuration files:
8585 $config_files
8587 Configuration headers:
8588 $config_headers
8590 Configuration links:
8591 $config_links
8593 Report bugs to <bug-autoconf@gnu.org>."
8595 _ACEOF
8596 cat >>$CONFIG_STATUS <<_ACEOF
8597 ac_cs_version="\\
8598 GRUB config.status 1.96
8599 configured by $0, generated by GNU Autoconf 2.61,
8600 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8602 Copyright (C) 2006 Free Software Foundation, Inc.
8603 This config.status script is free software; the Free Software Foundation
8604 gives unlimited permission to copy, distribute and modify it."
8606 ac_pwd='$ac_pwd'
8607 srcdir='$srcdir'
8608 INSTALL='$INSTALL'
8609 _ACEOF
8611 cat >>$CONFIG_STATUS <<\_ACEOF
8612 # If no file are specified by the user, then we need to provide default
8613 # value. By we need to know if files were specified by the user.
8614 ac_need_defaults=:
8615 while test $# != 0
8617 case $1 in
8618 --*=*)
8619 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8620 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8621 ac_shift=:
8624 ac_option=$1
8625 ac_optarg=$2
8626 ac_shift=shift
8628 esac
8630 case $ac_option in
8631 # Handling of the options.
8632 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8633 ac_cs_recheck=: ;;
8634 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8635 echo "$ac_cs_version"; exit ;;
8636 --debug | --debu | --deb | --de | --d | -d )
8637 debug=: ;;
8638 --file | --fil | --fi | --f )
8639 $ac_shift
8640 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8641 ac_need_defaults=false;;
8642 --header | --heade | --head | --hea )
8643 $ac_shift
8644 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8645 ac_need_defaults=false;;
8646 --he | --h)
8647 # Conflict between --help and --header
8648 { echo "$as_me: error: ambiguous option: $1
8649 Try \`$0 --help' for more information." >&2
8650 { (exit 1); exit 1; }; };;
8651 --help | --hel | -h )
8652 echo "$ac_cs_usage"; exit ;;
8653 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8654 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8655 ac_cs_silent=: ;;
8657 # This is an error.
8658 -*) { echo "$as_me: error: unrecognized option: $1
8659 Try \`$0 --help' for more information." >&2
8660 { (exit 1); exit 1; }; } ;;
8662 *) ac_config_targets="$ac_config_targets $1"
8663 ac_need_defaults=false ;;
8665 esac
8666 shift
8667 done
8669 ac_configure_extra_args=
8671 if $ac_cs_silent; then
8672 exec 6>/dev/null
8673 ac_configure_extra_args="$ac_configure_extra_args --silent"
8676 _ACEOF
8677 cat >>$CONFIG_STATUS <<_ACEOF
8678 if \$ac_cs_recheck; then
8679 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8680 CONFIG_SHELL=$SHELL
8681 export CONFIG_SHELL
8682 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8685 _ACEOF
8686 cat >>$CONFIG_STATUS <<\_ACEOF
8687 exec 5>>config.log
8689 echo
8690 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8691 ## Running $as_me. ##
8692 _ASBOX
8693 echo "$ac_log"
8694 } >&5
8696 _ACEOF
8697 cat >>$CONFIG_STATUS <<_ACEOF
8698 _ACEOF
8700 cat >>$CONFIG_STATUS <<\_ACEOF
8702 # Handling of arguments.
8703 for ac_config_target in $ac_config_targets
8705 case $ac_config_target in
8706 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8707 "include/grub/cpu") CONFIG_LINKS="$CONFIG_LINKS include/grub/cpu:include/grub/$target_cpu" ;;
8708 "include/grub/machine") CONFIG_LINKS="$CONFIG_LINKS include/grub/machine:include/grub/$target_cpu/$platform" ;;
8709 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8710 "gensymlist.sh") CONFIG_FILES="$CONFIG_FILES gensymlist.sh" ;;
8711 "genkernsyms.sh") CONFIG_FILES="$CONFIG_FILES genkernsyms.sh" ;;
8712 "stamp-h") CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
8714 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8715 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8716 { (exit 1); exit 1; }; };;
8717 esac
8718 done
8721 # If the user did not use the arguments to specify the items to instantiate,
8722 # then the envvar interface is used. Set only those that are not.
8723 # We use the long form for the default assignment because of an extremely
8724 # bizarre bug on SunOS 4.1.3.
8725 if $ac_need_defaults; then
8726 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8727 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8728 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
8731 # Have a temporary directory for convenience. Make it in the build tree
8732 # simply because there is no reason against having it here, and in addition,
8733 # creating and moving files from /tmp can sometimes cause problems.
8734 # Hook for its removal unless debugging.
8735 # Note that there is a small window in which the directory will not be cleaned:
8736 # after its creation but before its name has been assigned to `$tmp'.
8737 $debug ||
8739 tmp=
8740 trap 'exit_status=$?
8741 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8743 trap '{ (exit 1); exit 1; }' 1 2 13 15
8745 # Create a (secure) tmp directory for tmp files.
8748 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8749 test -n "$tmp" && test -d "$tmp"
8750 } ||
8752 tmp=./conf$$-$RANDOM
8753 (umask 077 && mkdir "$tmp")
8754 } ||
8756 echo "$me: cannot create a temporary directory in ." >&2
8757 { (exit 1); exit 1; }
8761 # Set up the sed scripts for CONFIG_FILES section.
8764 # No need to generate the scripts if there are no CONFIG_FILES.
8765 # This happens for instance when ./config.status config.h
8766 if test -n "$CONFIG_FILES"; then
8768 _ACEOF
8772 ac_delim='%!_!# '
8773 for ac_last_try in false false false false false :; do
8774 cat >conf$$subs.sed <<_ACEOF
8775 SHELL!$SHELL$ac_delim
8776 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
8777 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
8778 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
8779 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
8780 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
8781 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
8782 exec_prefix!$exec_prefix$ac_delim
8783 prefix!$prefix$ac_delim
8784 program_transform_name!$program_transform_name$ac_delim
8785 bindir!$bindir$ac_delim
8786 sbindir!$sbindir$ac_delim
8787 libexecdir!$libexecdir$ac_delim
8788 datarootdir!$datarootdir$ac_delim
8789 datadir!$datadir$ac_delim
8790 sysconfdir!$sysconfdir$ac_delim
8791 sharedstatedir!$sharedstatedir$ac_delim
8792 localstatedir!$localstatedir$ac_delim
8793 includedir!$includedir$ac_delim
8794 oldincludedir!$oldincludedir$ac_delim
8795 docdir!$docdir$ac_delim
8796 infodir!$infodir$ac_delim
8797 htmldir!$htmldir$ac_delim
8798 dvidir!$dvidir$ac_delim
8799 pdfdir!$pdfdir$ac_delim
8800 psdir!$psdir$ac_delim
8801 libdir!$libdir$ac_delim
8802 localedir!$localedir$ac_delim
8803 mandir!$mandir$ac_delim
8804 DEFS!$DEFS$ac_delim
8805 ECHO_C!$ECHO_C$ac_delim
8806 ECHO_N!$ECHO_N$ac_delim
8807 ECHO_T!$ECHO_T$ac_delim
8808 LIBS!$LIBS$ac_delim
8809 build_alias!$build_alias$ac_delim
8810 host_alias!$host_alias$ac_delim
8811 target_alias!$target_alias$ac_delim
8812 build!$build$ac_delim
8813 build_cpu!$build_cpu$ac_delim
8814 build_vendor!$build_vendor$ac_delim
8815 build_os!$build_os$ac_delim
8816 host!$host$ac_delim
8817 host_cpu!$host_cpu$ac_delim
8818 host_vendor!$host_vendor$ac_delim
8819 host_os!$host_os$ac_delim
8820 target!$target$ac_delim
8821 target_cpu!$target_cpu$ac_delim
8822 target_vendor!$target_vendor$ac_delim
8823 target_os!$target_os$ac_delim
8824 platform!$platform$ac_delim
8825 CMP!$CMP$ac_delim
8826 YACC!$YACC$ac_delim
8827 UNIFONT_HEX!$UNIFONT_HEX$ac_delim
8828 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
8829 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
8830 INSTALL_DATA!$INSTALL_DATA$ac_delim
8831 AWK!$AWK$ac_delim
8832 SET_MAKE!$SET_MAKE$ac_delim
8833 RUBY!$RUBY$ac_delim
8834 HELP2MAN!$HELP2MAN$ac_delim
8835 CC!$CC$ac_delim
8836 CFLAGS!$CFLAGS$ac_delim
8837 LDFLAGS!$LDFLAGS$ac_delim
8838 CPPFLAGS!$CPPFLAGS$ac_delim
8839 ac_ct_CC!$ac_ct_CC$ac_delim
8840 EXEEXT!$EXEEXT$ac_delim
8841 OBJEXT!$OBJEXT$ac_delim
8842 CPP!$CPP$ac_delim
8843 GREP!$GREP$ac_delim
8844 EGREP!$EGREP$ac_delim
8845 LIBLZO!$LIBLZO$ac_delim
8846 TARGET_CC!$TARGET_CC$ac_delim
8847 ac_ct_TARGET_CC!$ac_ct_TARGET_CC$ac_delim
8848 OBJCOPY!$OBJCOPY$ac_delim
8849 STRIP!$STRIP$ac_delim
8850 NM!$NM$ac_delim
8851 TARGET_CFLAGS!$TARGET_CFLAGS$ac_delim
8852 TARGET_CPPFLAGS!$TARGET_CPPFLAGS$ac_delim
8853 TARGET_LDFLAGS!$TARGET_LDFLAGS$ac_delim
8854 LIBCURSES!$LIBCURSES$ac_delim
8855 enable_grub_emu!$enable_grub_emu$ac_delim
8856 enable_grub_fstest!$enable_grub_fstest$ac_delim
8857 LIBOBJS!$LIBOBJS$ac_delim
8858 LTLIBOBJS!$LTLIBOBJS$ac_delim
8859 _ACEOF
8861 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 84; then
8862 break
8863 elif $ac_last_try; then
8864 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8865 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8866 { (exit 1); exit 1; }; }
8867 else
8868 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8870 done
8872 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8873 if test -n "$ac_eof"; then
8874 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
8875 ac_eof=`expr $ac_eof + 1`
8878 cat >>$CONFIG_STATUS <<_ACEOF
8879 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
8880 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
8881 _ACEOF
8882 sed '
8883 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8884 s/^/s,@/; s/!/@,|#_!!_#|/
8887 s/'"$ac_delim"'$/,g/; t
8888 s/$/\\/; p
8889 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8890 ' >>$CONFIG_STATUS <conf$$subs.sed
8891 rm -f conf$$subs.sed
8892 cat >>$CONFIG_STATUS <<_ACEOF
8893 :end
8894 s/|#_!!_#|//g
8895 CEOF$ac_eof
8896 _ACEOF
8899 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8900 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8901 # trailing colons and then remove the whole line if VPATH becomes empty
8902 # (actually we leave an empty line to preserve line numbers).
8903 if test "x$srcdir" = x.; then
8904 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8905 s/:*\$(srcdir):*/:/
8906 s/:*\${srcdir}:*/:/
8907 s/:*@srcdir@:*/:/
8908 s/^\([^=]*=[ ]*\):*/\1/
8909 s/:*$//
8910 s/^[^=]*=[ ]*$//
8914 cat >>$CONFIG_STATUS <<\_ACEOF
8915 fi # test -n "$CONFIG_FILES"
8918 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS
8920 case $ac_tag in
8921 :[FHLC]) ac_mode=$ac_tag; continue;;
8922 esac
8923 case $ac_mode$ac_tag in
8924 :[FHL]*:*);;
8925 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
8926 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
8927 { (exit 1); exit 1; }; };;
8928 :[FH]-) ac_tag=-:-;;
8929 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8930 esac
8931 ac_save_IFS=$IFS
8932 IFS=:
8933 set x $ac_tag
8934 IFS=$ac_save_IFS
8935 shift
8936 ac_file=$1
8937 shift
8939 case $ac_mode in
8940 :L) ac_source=$1;;
8941 :[FH])
8942 ac_file_inputs=
8943 for ac_f
8945 case $ac_f in
8946 -) ac_f="$tmp/stdin";;
8947 *) # Look for the file first in the build tree, then in the source tree
8948 # (if the path is not absolute). The absolute path cannot be DOS-style,
8949 # because $ac_f cannot contain `:'.
8950 test -f "$ac_f" ||
8951 case $ac_f in
8952 [\\/$]*) false;;
8953 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8954 esac ||
8955 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8956 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8957 { (exit 1); exit 1; }; };;
8958 esac
8959 ac_file_inputs="$ac_file_inputs $ac_f"
8960 done
8962 # Let's still pretend it is `configure' which instantiates (i.e., don't
8963 # use $as_me), people would be surprised to read:
8964 # /* config.h. Generated by config.status. */
8965 configure_input="Generated from "`IFS=:
8966 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
8967 if test x"$ac_file" != x-; then
8968 configure_input="$ac_file. $configure_input"
8969 { echo "$as_me:$LINENO: creating $ac_file" >&5
8970 echo "$as_me: creating $ac_file" >&6;}
8973 case $ac_tag in
8974 *:-:* | *:-) cat >"$tmp/stdin";;
8975 esac
8977 esac
8979 ac_dir=`$as_dirname -- "$ac_file" ||
8980 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8981 X"$ac_file" : 'X\(//\)[^/]' \| \
8982 X"$ac_file" : 'X\(//\)$' \| \
8983 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8984 echo X"$ac_file" |
8985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8986 s//\1/
8989 /^X\(\/\/\)[^/].*/{
8990 s//\1/
8993 /^X\(\/\/\)$/{
8994 s//\1/
8997 /^X\(\/\).*/{
8998 s//\1/
9001 s/.*/./; q'`
9002 { as_dir="$ac_dir"
9003 case $as_dir in #(
9004 -*) as_dir=./$as_dir;;
9005 esac
9006 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9007 as_dirs=
9008 while :; do
9009 case $as_dir in #(
9010 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9011 *) as_qdir=$as_dir;;
9012 esac
9013 as_dirs="'$as_qdir' $as_dirs"
9014 as_dir=`$as_dirname -- "$as_dir" ||
9015 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9016 X"$as_dir" : 'X\(//\)[^/]' \| \
9017 X"$as_dir" : 'X\(//\)$' \| \
9018 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9019 echo X"$as_dir" |
9020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9021 s//\1/
9024 /^X\(\/\/\)[^/].*/{
9025 s//\1/
9028 /^X\(\/\/\)$/{
9029 s//\1/
9032 /^X\(\/\).*/{
9033 s//\1/
9036 s/.*/./; q'`
9037 test -d "$as_dir" && break
9038 done
9039 test -z "$as_dirs" || eval "mkdir $as_dirs"
9040 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9041 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9042 { (exit 1); exit 1; }; }; }
9043 ac_builddir=.
9045 case "$ac_dir" in
9046 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9048 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9049 # A ".." for each directory in $ac_dir_suffix.
9050 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9051 case $ac_top_builddir_sub in
9052 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9053 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9054 esac ;;
9055 esac
9056 ac_abs_top_builddir=$ac_pwd
9057 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9058 # for backward compatibility:
9059 ac_top_builddir=$ac_top_build_prefix
9061 case $srcdir in
9062 .) # We are building in place.
9063 ac_srcdir=.
9064 ac_top_srcdir=$ac_top_builddir_sub
9065 ac_abs_top_srcdir=$ac_pwd ;;
9066 [\\/]* | ?:[\\/]* ) # Absolute name.
9067 ac_srcdir=$srcdir$ac_dir_suffix;
9068 ac_top_srcdir=$srcdir
9069 ac_abs_top_srcdir=$srcdir ;;
9070 *) # Relative name.
9071 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9072 ac_top_srcdir=$ac_top_build_prefix$srcdir
9073 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9074 esac
9075 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9078 case $ac_mode in
9081 # CONFIG_FILE
9084 case $INSTALL in
9085 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9086 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9087 esac
9088 _ACEOF
9090 cat >>$CONFIG_STATUS <<\_ACEOF
9091 # If the template does not know about datarootdir, expand it.
9092 # FIXME: This hack should be removed a few years after 2.60.
9093 ac_datarootdir_hack=; ac_datarootdir_seen=
9095 case `sed -n '/datarootdir/ {
9099 /@datadir@/p
9100 /@docdir@/p
9101 /@infodir@/p
9102 /@localedir@/p
9103 /@mandir@/p
9104 ' $ac_file_inputs` in
9105 *datarootdir*) ac_datarootdir_seen=yes;;
9106 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9107 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9108 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9109 _ACEOF
9110 cat >>$CONFIG_STATUS <<_ACEOF
9111 ac_datarootdir_hack='
9112 s&@datadir@&$datadir&g
9113 s&@docdir@&$docdir&g
9114 s&@infodir@&$infodir&g
9115 s&@localedir@&$localedir&g
9116 s&@mandir@&$mandir&g
9117 s&\\\${datarootdir}&$datarootdir&g' ;;
9118 esac
9119 _ACEOF
9121 # Neutralize VPATH when `$srcdir' = `.'.
9122 # Shell code in configure.ac might set extrasub.
9123 # FIXME: do we really want to maintain this feature?
9124 cat >>$CONFIG_STATUS <<_ACEOF
9125 sed "$ac_vpsub
9126 $extrasub
9127 _ACEOF
9128 cat >>$CONFIG_STATUS <<\_ACEOF
9130 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9131 s&@configure_input@&$configure_input&;t t
9132 s&@top_builddir@&$ac_top_builddir_sub&;t t
9133 s&@srcdir@&$ac_srcdir&;t t
9134 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9135 s&@top_srcdir@&$ac_top_srcdir&;t t
9136 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9137 s&@builddir@&$ac_builddir&;t t
9138 s&@abs_builddir@&$ac_abs_builddir&;t t
9139 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9140 s&@INSTALL@&$ac_INSTALL&;t t
9141 $ac_datarootdir_hack
9142 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
9144 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9145 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9146 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9147 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9148 which seems to be undefined. Please make sure it is defined." >&5
9149 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9150 which seems to be undefined. Please make sure it is defined." >&2;}
9152 rm -f "$tmp/stdin"
9153 case $ac_file in
9154 -) cat "$tmp/out"; rm -f "$tmp/out";;
9155 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9156 esac
9160 # CONFIG_HEADER
9162 _ACEOF
9164 # Transform confdefs.h into a sed script `conftest.defines', that
9165 # substitutes the proper values into config.h.in to produce config.h.
9166 rm -f conftest.defines conftest.tail
9167 # First, append a space to every undef/define line, to ease matching.
9168 echo 's/$/ /' >conftest.defines
9169 # Then, protect against being on the right side of a sed subst, or in
9170 # an unquoted here document, in config.status. If some macros were
9171 # called several times there might be several #defines for the same
9172 # symbol, which is useless. But do not sort them, since the last
9173 # AC_DEFINE must be honored.
9174 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9175 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9176 # NAME is the cpp macro being defined, VALUE is the value it is being given.
9177 # PARAMS is the parameter list in the macro definition--in most cases, it's
9178 # just an empty string.
9179 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9180 ac_dB='\\)[ (].*,\\1define\\2'
9181 ac_dC=' '
9182 ac_dD=' ,'
9184 uniq confdefs.h |
9185 sed -n '
9186 t rset
9187 :rset
9188 s/^[ ]*#[ ]*define[ ][ ]*//
9189 t ok
9192 s/[\\&,]/\\&/g
9193 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9194 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9195 ' >>conftest.defines
9197 # Remove the space that was appended to ease matching.
9198 # Then replace #undef with comments. This is necessary, for
9199 # example, in the case of _POSIX_SOURCE, which is predefined and required
9200 # on some systems where configure will not decide to define it.
9201 # (The regexp can be short, since the line contains either #define or #undef.)
9202 echo 's/ $//
9203 s,^[ #]*u.*,/* & */,' >>conftest.defines
9205 # Break up conftest.defines:
9206 ac_max_sed_lines=50
9208 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9209 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9210 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9211 # et cetera.
9212 ac_in='$ac_file_inputs'
9213 ac_out='"$tmp/out1"'
9214 ac_nxt='"$tmp/out2"'
9216 while :
9218 # Write a here document:
9219 cat >>$CONFIG_STATUS <<_ACEOF
9220 # First, check the format of the line:
9221 cat >"\$tmp/defines.sed" <<\\CEOF
9222 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9223 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9225 :def
9226 _ACEOF
9227 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
9228 echo 'CEOF
9229 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9230 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
9231 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
9232 grep . conftest.tail >/dev/null || break
9233 rm -f conftest.defines
9234 mv conftest.tail conftest.defines
9235 done
9236 rm -f conftest.defines conftest.tail
9238 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9239 cat >>$CONFIG_STATUS <<\_ACEOF
9240 if test x"$ac_file" != x-; then
9241 echo "/* $configure_input */" >"$tmp/config.h"
9242 cat "$ac_result" >>"$tmp/config.h"
9243 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
9244 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9245 echo "$as_me: $ac_file is unchanged" >&6;}
9246 else
9247 rm -f $ac_file
9248 mv "$tmp/config.h" $ac_file
9250 else
9251 echo "/* $configure_input */"
9252 cat "$ac_result"
9254 rm -f "$tmp/out12"
9258 # CONFIG_LINK
9261 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
9262 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
9264 if test ! -r "$srcdir/$ac_source"; then
9265 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
9266 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
9267 { (exit 1); exit 1; }; }
9269 rm -f "$ac_file"
9271 # Try a relative symlink, then a hard link, then a copy.
9272 case $srcdir in
9273 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
9274 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
9275 esac
9276 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
9277 ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
9278 cp -p "$srcdir/$ac_source" "$ac_file" ||
9279 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
9280 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
9281 { (exit 1); exit 1; }; }
9284 esac
9287 case $ac_file$ac_mode in
9288 "stamp-h":F) echo timestamp > stamp-h ;;
9290 esac
9291 done # for ac_tag
9294 { (exit 0); exit 0; }
9295 _ACEOF
9296 chmod +x $CONFIG_STATUS
9297 ac_clean_files=$ac_clean_files_save
9300 # configure is writing to config.log, and then calls config.status.
9301 # config.status does its own redirection, appending to config.log.
9302 # Unfortunately, on DOS this fails, as config.log is still kept open
9303 # by configure, so config.status won't be able to write to it; its
9304 # output is simply discarded. So we exec the FD to /dev/null,
9305 # effectively closing config.log, so it can be properly (re)opened and
9306 # appended to by config.status. When coming back to configure, we
9307 # need to make the FD available again.
9308 if test "$no_create" != yes; then
9309 ac_cs_success=:
9310 ac_config_status_args=
9311 test "$silent" = yes &&
9312 ac_config_status_args="$ac_config_status_args --quiet"
9313 exec 5>/dev/null
9314 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9315 exec 5>>config.log
9316 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9317 # would make configure fail if this is the last instruction.
9318 $ac_cs_success || { (exit 1); exit 1; }