008-09-21 Felix Zielcke <fzielcke@z-51.de>
[grub2/phcoder.git] / configure
blob6af424a2709bbd7bd4e0f9282d783cdbf5535526
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 enable_lzo
690 TARGET_IMG_LDSCRIPT
691 TARGET_IMG_LDFLAGS
692 TARGET_OBJ2ELF
693 TARGET_CC
694 ac_ct_TARGET_CC
695 OBJCOPY
696 STRIP
698 TARGET_CFLAGS
699 TARGET_CPPFLAGS
700 TARGET_LDFLAGS
701 MODULE_LDFLAGS
702 LIBCURSES
703 enable_grub_emu
704 enable_grub_fstest
705 enable_grub_pe2elf
706 LIBOBJS
707 LTLIBOBJS'
708 ac_subst_files=''
709 ac_precious_vars='build_alias
710 host_alias
711 target_alias
713 CFLAGS
714 LDFLAGS
715 LIBS
716 CPPFLAGS
717 CPP'
720 # Initialize some variables set by options.
721 ac_init_help=
722 ac_init_version=false
723 # The variables have the same names as the options, with
724 # dashes changed to underlines.
725 cache_file=/dev/null
726 exec_prefix=NONE
727 no_create=
728 no_recursion=
729 prefix=NONE
730 program_prefix=NONE
731 program_suffix=NONE
732 program_transform_name=s,x,x,
733 silent=
734 site=
735 srcdir=
736 verbose=
737 x_includes=NONE
738 x_libraries=NONE
740 # Installation directory options.
741 # These are left unexpanded so users can "make install exec_prefix=/foo"
742 # and all the variables that are supposed to be based on exec_prefix
743 # by default will actually change.
744 # Use braces instead of parens because sh, perl, etc. also accept them.
745 # (The list follows the same order as the GNU Coding Standards.)
746 bindir='${exec_prefix}/bin'
747 sbindir='${exec_prefix}/sbin'
748 libexecdir='${exec_prefix}/libexec'
749 datarootdir='${prefix}/share'
750 datadir='${datarootdir}'
751 sysconfdir='${prefix}/etc'
752 sharedstatedir='${prefix}/com'
753 localstatedir='${prefix}/var'
754 includedir='${prefix}/include'
755 oldincludedir='/usr/include'
756 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
757 infodir='${datarootdir}/info'
758 htmldir='${docdir}'
759 dvidir='${docdir}'
760 pdfdir='${docdir}'
761 psdir='${docdir}'
762 libdir='${exec_prefix}/lib'
763 localedir='${datarootdir}/locale'
764 mandir='${datarootdir}/man'
766 ac_prev=
767 ac_dashdash=
768 for ac_option
770 # If the previous option needs an argument, assign it.
771 if test -n "$ac_prev"; then
772 eval $ac_prev=\$ac_option
773 ac_prev=
774 continue
777 case $ac_option in
778 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
779 *) ac_optarg=yes ;;
780 esac
782 # Accept the important Cygnus configure options, so we can diagnose typos.
784 case $ac_dashdash$ac_option in
786 ac_dashdash=yes ;;
788 -bindir | --bindir | --bindi | --bind | --bin | --bi)
789 ac_prev=bindir ;;
790 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
791 bindir=$ac_optarg ;;
793 -build | --build | --buil | --bui | --bu)
794 ac_prev=build_alias ;;
795 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
796 build_alias=$ac_optarg ;;
798 -cache-file | --cache-file | --cache-fil | --cache-fi \
799 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
800 ac_prev=cache_file ;;
801 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
802 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
803 cache_file=$ac_optarg ;;
805 --config-cache | -C)
806 cache_file=config.cache ;;
808 -datadir | --datadir | --datadi | --datad)
809 ac_prev=datadir ;;
810 -datadir=* | --datadir=* | --datadi=* | --datad=*)
811 datadir=$ac_optarg ;;
813 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
814 | --dataroo | --dataro | --datar)
815 ac_prev=datarootdir ;;
816 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
817 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
818 datarootdir=$ac_optarg ;;
820 -disable-* | --disable-*)
821 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
822 # Reject names that are not valid shell variable names.
823 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
824 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
825 { (exit 1); exit 1; }; }
826 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
827 eval enable_$ac_feature=no ;;
829 -docdir | --docdir | --docdi | --doc | --do)
830 ac_prev=docdir ;;
831 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
832 docdir=$ac_optarg ;;
834 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
835 ac_prev=dvidir ;;
836 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
837 dvidir=$ac_optarg ;;
839 -enable-* | --enable-*)
840 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
841 # Reject names that are not valid shell variable names.
842 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
843 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
844 { (exit 1); exit 1; }; }
845 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
846 eval enable_$ac_feature=\$ac_optarg ;;
848 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
849 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
850 | --exec | --exe | --ex)
851 ac_prev=exec_prefix ;;
852 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
853 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
854 | --exec=* | --exe=* | --ex=*)
855 exec_prefix=$ac_optarg ;;
857 -gas | --gas | --ga | --g)
858 # Obsolete; use --with-gas.
859 with_gas=yes ;;
861 -help | --help | --hel | --he | -h)
862 ac_init_help=long ;;
863 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
864 ac_init_help=recursive ;;
865 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
866 ac_init_help=short ;;
868 -host | --host | --hos | --ho)
869 ac_prev=host_alias ;;
870 -host=* | --host=* | --hos=* | --ho=*)
871 host_alias=$ac_optarg ;;
873 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
874 ac_prev=htmldir ;;
875 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
876 | --ht=*)
877 htmldir=$ac_optarg ;;
879 -includedir | --includedir | --includedi | --included | --include \
880 | --includ | --inclu | --incl | --inc)
881 ac_prev=includedir ;;
882 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
883 | --includ=* | --inclu=* | --incl=* | --inc=*)
884 includedir=$ac_optarg ;;
886 -infodir | --infodir | --infodi | --infod | --info | --inf)
887 ac_prev=infodir ;;
888 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
889 infodir=$ac_optarg ;;
891 -libdir | --libdir | --libdi | --libd)
892 ac_prev=libdir ;;
893 -libdir=* | --libdir=* | --libdi=* | --libd=*)
894 libdir=$ac_optarg ;;
896 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
897 | --libexe | --libex | --libe)
898 ac_prev=libexecdir ;;
899 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
900 | --libexe=* | --libex=* | --libe=*)
901 libexecdir=$ac_optarg ;;
903 -localedir | --localedir | --localedi | --localed | --locale)
904 ac_prev=localedir ;;
905 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
906 localedir=$ac_optarg ;;
908 -localstatedir | --localstatedir | --localstatedi | --localstated \
909 | --localstate | --localstat | --localsta | --localst | --locals)
910 ac_prev=localstatedir ;;
911 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
912 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
913 localstatedir=$ac_optarg ;;
915 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
916 ac_prev=mandir ;;
917 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
918 mandir=$ac_optarg ;;
920 -nfp | --nfp | --nf)
921 # Obsolete; use --without-fp.
922 with_fp=no ;;
924 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
925 | --no-cr | --no-c | -n)
926 no_create=yes ;;
928 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
929 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
930 no_recursion=yes ;;
932 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
933 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
934 | --oldin | --oldi | --old | --ol | --o)
935 ac_prev=oldincludedir ;;
936 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
937 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
938 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
939 oldincludedir=$ac_optarg ;;
941 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
942 ac_prev=prefix ;;
943 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
944 prefix=$ac_optarg ;;
946 -program-prefix | --program-prefix | --program-prefi | --program-pref \
947 | --program-pre | --program-pr | --program-p)
948 ac_prev=program_prefix ;;
949 -program-prefix=* | --program-prefix=* | --program-prefi=* \
950 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
951 program_prefix=$ac_optarg ;;
953 -program-suffix | --program-suffix | --program-suffi | --program-suff \
954 | --program-suf | --program-su | --program-s)
955 ac_prev=program_suffix ;;
956 -program-suffix=* | --program-suffix=* | --program-suffi=* \
957 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
958 program_suffix=$ac_optarg ;;
960 -program-transform-name | --program-transform-name \
961 | --program-transform-nam | --program-transform-na \
962 | --program-transform-n | --program-transform- \
963 | --program-transform | --program-transfor \
964 | --program-transfo | --program-transf \
965 | --program-trans | --program-tran \
966 | --progr-tra | --program-tr | --program-t)
967 ac_prev=program_transform_name ;;
968 -program-transform-name=* | --program-transform-name=* \
969 | --program-transform-nam=* | --program-transform-na=* \
970 | --program-transform-n=* | --program-transform-=* \
971 | --program-transform=* | --program-transfor=* \
972 | --program-transfo=* | --program-transf=* \
973 | --program-trans=* | --program-tran=* \
974 | --progr-tra=* | --program-tr=* | --program-t=*)
975 program_transform_name=$ac_optarg ;;
977 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
978 ac_prev=pdfdir ;;
979 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
980 pdfdir=$ac_optarg ;;
982 -psdir | --psdir | --psdi | --psd | --ps)
983 ac_prev=psdir ;;
984 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
985 psdir=$ac_optarg ;;
987 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
988 | -silent | --silent | --silen | --sile | --sil)
989 silent=yes ;;
991 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
992 ac_prev=sbindir ;;
993 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
994 | --sbi=* | --sb=*)
995 sbindir=$ac_optarg ;;
997 -sharedstatedir | --sharedstatedir | --sharedstatedi \
998 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
999 | --sharedst | --shareds | --shared | --share | --shar \
1000 | --sha | --sh)
1001 ac_prev=sharedstatedir ;;
1002 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1003 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1004 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1005 | --sha=* | --sh=*)
1006 sharedstatedir=$ac_optarg ;;
1008 -site | --site | --sit)
1009 ac_prev=site ;;
1010 -site=* | --site=* | --sit=*)
1011 site=$ac_optarg ;;
1013 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1014 ac_prev=srcdir ;;
1015 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1016 srcdir=$ac_optarg ;;
1018 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1019 | --syscon | --sysco | --sysc | --sys | --sy)
1020 ac_prev=sysconfdir ;;
1021 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1022 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1023 sysconfdir=$ac_optarg ;;
1025 -target | --target | --targe | --targ | --tar | --ta | --t)
1026 ac_prev=target_alias ;;
1027 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1028 target_alias=$ac_optarg ;;
1030 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1031 verbose=yes ;;
1033 -version | --version | --versio | --versi | --vers | -V)
1034 ac_init_version=: ;;
1036 -with-* | --with-*)
1037 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1040 { echo "$as_me: error: invalid package name: $ac_package" >&2
1041 { (exit 1); exit 1; }; }
1042 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1043 eval with_$ac_package=\$ac_optarg ;;
1045 -without-* | --without-*)
1046 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1049 { echo "$as_me: error: invalid package name: $ac_package" >&2
1050 { (exit 1); exit 1; }; }
1051 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1052 eval with_$ac_package=no ;;
1054 --x)
1055 # Obsolete; use --with-x.
1056 with_x=yes ;;
1058 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1059 | --x-incl | --x-inc | --x-in | --x-i)
1060 ac_prev=x_includes ;;
1061 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1062 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1063 x_includes=$ac_optarg ;;
1065 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1066 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1067 ac_prev=x_libraries ;;
1068 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1069 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1070 x_libraries=$ac_optarg ;;
1072 -*) { echo "$as_me: error: unrecognized option: $ac_option
1073 Try \`$0 --help' for more information." >&2
1074 { (exit 1); exit 1; }; }
1077 *=*)
1078 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1081 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1082 { (exit 1); exit 1; }; }
1083 eval $ac_envvar=\$ac_optarg
1084 export $ac_envvar ;;
1087 # FIXME: should be removed in autoconf 3.0.
1088 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1089 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1090 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1091 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1094 esac
1095 done
1097 if test -n "$ac_prev"; then
1098 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1099 { echo "$as_me: error: missing argument to $ac_option" >&2
1100 { (exit 1); exit 1; }; }
1103 # Be sure to have absolute directory names.
1104 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1105 datadir sysconfdir sharedstatedir localstatedir includedir \
1106 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1107 libdir localedir mandir
1109 eval ac_val=\$$ac_var
1110 case $ac_val in
1111 [\\/$]* | ?:[\\/]* ) continue;;
1112 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1113 esac
1114 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1115 { (exit 1); exit 1; }; }
1116 done
1118 # There might be people who depend on the old broken behavior: `$host'
1119 # used to hold the argument of --host etc.
1120 # FIXME: To remove some day.
1121 build=$build_alias
1122 host=$host_alias
1123 target=$target_alias
1125 # FIXME: To remove some day.
1126 if test "x$host_alias" != x; then
1127 if test "x$build_alias" = x; then
1128 cross_compiling=maybe
1129 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1130 If a cross compiler is detected then cross compile mode will be used." >&2
1131 elif test "x$build_alias" != "x$host_alias"; then
1132 cross_compiling=yes
1136 ac_tool_prefix=
1137 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1139 test "$silent" = yes && exec 6>/dev/null
1142 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1143 ac_ls_di=`ls -di .` &&
1144 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1145 { echo "$as_me: error: Working directory cannot be determined" >&2
1146 { (exit 1); exit 1; }; }
1147 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1148 { echo "$as_me: error: pwd does not report name of working directory" >&2
1149 { (exit 1); exit 1; }; }
1152 # Find the source files, if location was not specified.
1153 if test -z "$srcdir"; then
1154 ac_srcdir_defaulted=yes
1155 # Try the directory containing this script, then the parent directory.
1156 ac_confdir=`$as_dirname -- "$0" ||
1157 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1158 X"$0" : 'X\(//\)[^/]' \| \
1159 X"$0" : 'X\(//\)$' \| \
1160 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1161 echo X"$0" |
1162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1163 s//\1/
1166 /^X\(\/\/\)[^/].*/{
1167 s//\1/
1170 /^X\(\/\/\)$/{
1171 s//\1/
1174 /^X\(\/\).*/{
1175 s//\1/
1178 s/.*/./; q'`
1179 srcdir=$ac_confdir
1180 if test ! -r "$srcdir/$ac_unique_file"; then
1181 srcdir=..
1183 else
1184 ac_srcdir_defaulted=no
1186 if test ! -r "$srcdir/$ac_unique_file"; then
1187 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1188 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1189 { (exit 1); exit 1; }; }
1191 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1192 ac_abs_confdir=`(
1193 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1194 { (exit 1); exit 1; }; }
1195 pwd)`
1196 # When building in place, set srcdir=.
1197 if test "$ac_abs_confdir" = "$ac_pwd"; then
1198 srcdir=.
1200 # Remove unnecessary trailing slashes from srcdir.
1201 # Double slashes in file names in object file debugging info
1202 # mess up M-x gdb in Emacs.
1203 case $srcdir in
1204 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1205 esac
1206 for ac_var in $ac_precious_vars; do
1207 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1208 eval ac_env_${ac_var}_value=\$${ac_var}
1209 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1210 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1211 done
1214 # Report the --help message.
1216 if test "$ac_init_help" = "long"; then
1217 # Omit some internal or obsolete options to make the list less imposing.
1218 # This message is too long to be a string in the A/UX 3.1 sh.
1219 cat <<_ACEOF
1220 \`configure' configures GRUB 1.96 to adapt to many kinds of systems.
1222 Usage: $0 [OPTION]... [VAR=VALUE]...
1224 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1225 VAR=VALUE. See below for descriptions of some of the useful variables.
1227 Defaults for the options are specified in brackets.
1229 Configuration:
1230 -h, --help display this help and exit
1231 --help=short display options specific to this package
1232 --help=recursive display the short help of all the included packages
1233 -V, --version display version information and exit
1234 -q, --quiet, --silent do not print \`checking...' messages
1235 --cache-file=FILE cache test results in FILE [disabled]
1236 -C, --config-cache alias for \`--cache-file=config.cache'
1237 -n, --no-create do not create output files
1238 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1240 Installation directories:
1241 --prefix=PREFIX install architecture-independent files in PREFIX
1242 [$ac_default_prefix]
1243 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1244 [PREFIX]
1246 By default, \`make install' will install all the files in
1247 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1248 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1249 for instance \`--prefix=\$HOME'.
1251 For better control, use the options below.
1253 Fine tuning of the installation directories:
1254 --bindir=DIR user executables [EPREFIX/bin]
1255 --sbindir=DIR system admin executables [EPREFIX/sbin]
1256 --libexecdir=DIR program executables [EPREFIX/libexec]
1257 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1258 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1259 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1260 --libdir=DIR object code libraries [EPREFIX/lib]
1261 --includedir=DIR C header files [PREFIX/include]
1262 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1263 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1264 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1265 --infodir=DIR info documentation [DATAROOTDIR/info]
1266 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1267 --mandir=DIR man documentation [DATAROOTDIR/man]
1268 --docdir=DIR documentation root [DATAROOTDIR/doc/grub]
1269 --htmldir=DIR html documentation [DOCDIR]
1270 --dvidir=DIR dvi documentation [DOCDIR]
1271 --pdfdir=DIR pdf documentation [DOCDIR]
1272 --psdir=DIR ps documentation [DOCDIR]
1273 _ACEOF
1275 cat <<\_ACEOF
1277 Program names:
1278 --program-prefix=PREFIX prepend PREFIX to installed program names
1279 --program-suffix=SUFFIX append SUFFIX to installed program names
1280 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1282 System types:
1283 --build=BUILD configure for building on BUILD [guessed]
1284 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1285 --target=TARGET configure for building compilers for TARGET [HOST]
1286 _ACEOF
1289 if test -n "$ac_init_help"; then
1290 case $ac_init_help in
1291 short | recursive ) echo "Configuration of GRUB 1.96:";;
1292 esac
1293 cat <<\_ACEOF
1295 Optional Features:
1296 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1297 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1298 --disable-largefile omit support for large files
1299 --enable-lzo use lzo to compress kernel (default is lzma)
1300 --enable-mm-debug include memory manager debugging
1301 --enable-grub-emu build and install the `grub-emu' debugging utility
1302 --enable-grub-fstest build and install the `grub-fstest' debugging
1303 utility
1304 --enable-grub-pe2elf build and install the `grub-pe2elf' conversion
1305 utility
1307 Optional Packages:
1308 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1309 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1310 --with-platform=PLATFORM
1311 select the host platform [guessed]
1313 Some influential environment variables:
1314 CC C compiler command
1315 CFLAGS C compiler flags
1316 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1317 nonstandard directory <lib dir>
1318 LIBS libraries to pass to the linker, e.g. -l<library>
1319 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1320 you have headers in a nonstandard directory <include dir>
1321 CPP C preprocessor
1323 Use these variables to override the choices made by `configure' or to help
1324 it to find libraries and programs with nonstandard names/locations.
1326 Report bugs to <bug-grub@gnu.org>.
1327 _ACEOF
1328 ac_status=$?
1331 if test "$ac_init_help" = "recursive"; then
1332 # If there are subdirs, report their specific --help.
1333 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1334 test -d "$ac_dir" || continue
1335 ac_builddir=.
1337 case "$ac_dir" in
1338 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1340 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1341 # A ".." for each directory in $ac_dir_suffix.
1342 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1343 case $ac_top_builddir_sub in
1344 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1345 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1346 esac ;;
1347 esac
1348 ac_abs_top_builddir=$ac_pwd
1349 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1350 # for backward compatibility:
1351 ac_top_builddir=$ac_top_build_prefix
1353 case $srcdir in
1354 .) # We are building in place.
1355 ac_srcdir=.
1356 ac_top_srcdir=$ac_top_builddir_sub
1357 ac_abs_top_srcdir=$ac_pwd ;;
1358 [\\/]* | ?:[\\/]* ) # Absolute name.
1359 ac_srcdir=$srcdir$ac_dir_suffix;
1360 ac_top_srcdir=$srcdir
1361 ac_abs_top_srcdir=$srcdir ;;
1362 *) # Relative name.
1363 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1364 ac_top_srcdir=$ac_top_build_prefix$srcdir
1365 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1366 esac
1367 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1369 cd "$ac_dir" || { ac_status=$?; continue; }
1370 # Check for guested configure.
1371 if test -f "$ac_srcdir/configure.gnu"; then
1372 echo &&
1373 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1374 elif test -f "$ac_srcdir/configure"; then
1375 echo &&
1376 $SHELL "$ac_srcdir/configure" --help=recursive
1377 else
1378 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1379 fi || ac_status=$?
1380 cd "$ac_pwd" || { ac_status=$?; break; }
1381 done
1384 test -n "$ac_init_help" && exit $ac_status
1385 if $ac_init_version; then
1386 cat <<\_ACEOF
1387 GRUB configure 1.96
1388 generated by GNU Autoconf 2.61
1390 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1391 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1392 This configure script is free software; the Free Software Foundation
1393 gives unlimited permission to copy, distribute and modify it.
1394 _ACEOF
1395 exit
1397 cat >config.log <<_ACEOF
1398 This file contains any messages produced by compilers while
1399 running configure, to aid debugging if configure makes a mistake.
1401 It was created by GRUB $as_me 1.96, which was
1402 generated by GNU Autoconf 2.61. Invocation command line was
1404 $ $0 $@
1406 _ACEOF
1407 exec 5>>config.log
1409 cat <<_ASUNAME
1410 ## --------- ##
1411 ## Platform. ##
1412 ## --------- ##
1414 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1415 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1416 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1417 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1418 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1420 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1421 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1423 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1424 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1425 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1426 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1427 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1428 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1429 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1431 _ASUNAME
1433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1434 for as_dir in $PATH
1436 IFS=$as_save_IFS
1437 test -z "$as_dir" && as_dir=.
1438 echo "PATH: $as_dir"
1439 done
1440 IFS=$as_save_IFS
1442 } >&5
1444 cat >&5 <<_ACEOF
1447 ## ----------- ##
1448 ## Core tests. ##
1449 ## ----------- ##
1451 _ACEOF
1454 # Keep a trace of the command line.
1455 # Strip out --no-create and --no-recursion so they do not pile up.
1456 # Strip out --silent because we don't want to record it for future runs.
1457 # Also quote any args containing shell meta-characters.
1458 # Make two passes to allow for proper duplicate-argument suppression.
1459 ac_configure_args=
1460 ac_configure_args0=
1461 ac_configure_args1=
1462 ac_must_keep_next=false
1463 for ac_pass in 1 2
1465 for ac_arg
1467 case $ac_arg in
1468 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1469 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1470 | -silent | --silent | --silen | --sile | --sil)
1471 continue ;;
1472 *\'*)
1473 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1474 esac
1475 case $ac_pass in
1476 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1478 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1479 if test $ac_must_keep_next = true; then
1480 ac_must_keep_next=false # Got value, back to normal.
1481 else
1482 case $ac_arg in
1483 *=* | --config-cache | -C | -disable-* | --disable-* \
1484 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1485 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1486 | -with-* | --with-* | -without-* | --without-* | --x)
1487 case "$ac_configure_args0 " in
1488 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1489 esac
1491 -* ) ac_must_keep_next=true ;;
1492 esac
1494 ac_configure_args="$ac_configure_args '$ac_arg'"
1496 esac
1497 done
1498 done
1499 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1500 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1502 # When interrupted or exit'd, cleanup temporary files, and complete
1503 # config.log. We remove comments because anyway the quotes in there
1504 # would cause problems or look ugly.
1505 # WARNING: Use '\'' to represent an apostrophe within the trap.
1506 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1507 trap 'exit_status=$?
1508 # Save into config.log some information that might help in debugging.
1510 echo
1512 cat <<\_ASBOX
1513 ## ---------------- ##
1514 ## Cache variables. ##
1515 ## ---------------- ##
1516 _ASBOX
1517 echo
1518 # The following way of writing the cache mishandles newlines in values,
1520 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1521 eval ac_val=\$$ac_var
1522 case $ac_val in #(
1523 *${as_nl}*)
1524 case $ac_var in #(
1525 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1526 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1527 esac
1528 case $ac_var in #(
1529 _ | IFS | as_nl) ;; #(
1530 *) $as_unset $ac_var ;;
1531 esac ;;
1532 esac
1533 done
1534 (set) 2>&1 |
1535 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1536 *${as_nl}ac_space=\ *)
1537 sed -n \
1538 "s/'\''/'\''\\\\'\'''\''/g;
1539 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1540 ;; #(
1542 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1544 esac |
1545 sort
1547 echo
1549 cat <<\_ASBOX
1550 ## ----------------- ##
1551 ## Output variables. ##
1552 ## ----------------- ##
1553 _ASBOX
1554 echo
1555 for ac_var in $ac_subst_vars
1557 eval ac_val=\$$ac_var
1558 case $ac_val in
1559 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1560 esac
1561 echo "$ac_var='\''$ac_val'\''"
1562 done | sort
1563 echo
1565 if test -n "$ac_subst_files"; then
1566 cat <<\_ASBOX
1567 ## ------------------- ##
1568 ## File substitutions. ##
1569 ## ------------------- ##
1570 _ASBOX
1571 echo
1572 for ac_var in $ac_subst_files
1574 eval ac_val=\$$ac_var
1575 case $ac_val in
1576 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1577 esac
1578 echo "$ac_var='\''$ac_val'\''"
1579 done | sort
1580 echo
1583 if test -s confdefs.h; then
1584 cat <<\_ASBOX
1585 ## ----------- ##
1586 ## confdefs.h. ##
1587 ## ----------- ##
1588 _ASBOX
1589 echo
1590 cat confdefs.h
1591 echo
1593 test "$ac_signal" != 0 &&
1594 echo "$as_me: caught signal $ac_signal"
1595 echo "$as_me: exit $exit_status"
1596 } >&5
1597 rm -f core *.core core.conftest.* &&
1598 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1599 exit $exit_status
1601 for ac_signal in 1 2 13 15; do
1602 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1603 done
1604 ac_signal=0
1606 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1607 rm -f -r conftest* confdefs.h
1609 # Predefined preprocessor variables.
1611 cat >>confdefs.h <<_ACEOF
1612 #define PACKAGE_NAME "$PACKAGE_NAME"
1613 _ACEOF
1616 cat >>confdefs.h <<_ACEOF
1617 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1618 _ACEOF
1621 cat >>confdefs.h <<_ACEOF
1622 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1623 _ACEOF
1626 cat >>confdefs.h <<_ACEOF
1627 #define PACKAGE_STRING "$PACKAGE_STRING"
1628 _ACEOF
1631 cat >>confdefs.h <<_ACEOF
1632 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1633 _ACEOF
1636 # Let the site file select an alternate cache file if it wants to.
1637 # Prefer explicitly selected file to automatically selected ones.
1638 if test -n "$CONFIG_SITE"; then
1639 set x "$CONFIG_SITE"
1640 elif test "x$prefix" != xNONE; then
1641 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1642 else
1643 set x "$ac_default_prefix/share/config.site" \
1644 "$ac_default_prefix/etc/config.site"
1646 shift
1647 for ac_site_file
1649 if test -r "$ac_site_file"; then
1650 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1651 echo "$as_me: loading site script $ac_site_file" >&6;}
1652 sed 's/^/| /' "$ac_site_file" >&5
1653 . "$ac_site_file"
1655 done
1657 if test -r "$cache_file"; then
1658 # Some versions of bash will fail to source /dev/null (special
1659 # files actually), so we avoid doing that.
1660 if test -f "$cache_file"; then
1661 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1662 echo "$as_me: loading cache $cache_file" >&6;}
1663 case $cache_file in
1664 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1665 *) . "./$cache_file";;
1666 esac
1668 else
1669 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1670 echo "$as_me: creating cache $cache_file" >&6;}
1671 >$cache_file
1674 # Check that the precious variables saved in the cache have kept the same
1675 # value.
1676 ac_cache_corrupted=false
1677 for ac_var in $ac_precious_vars; do
1678 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1679 eval ac_new_set=\$ac_env_${ac_var}_set
1680 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1681 eval ac_new_val=\$ac_env_${ac_var}_value
1682 case $ac_old_set,$ac_new_set in
1683 set,)
1684 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1685 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1686 ac_cache_corrupted=: ;;
1687 ,set)
1688 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1689 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1690 ac_cache_corrupted=: ;;
1691 ,);;
1693 if test "x$ac_old_val" != "x$ac_new_val"; then
1694 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1695 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1696 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1697 echo "$as_me: former value: $ac_old_val" >&2;}
1698 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1699 echo "$as_me: current value: $ac_new_val" >&2;}
1700 ac_cache_corrupted=:
1701 fi;;
1702 esac
1703 # Pass precious variables to config.status.
1704 if test "$ac_new_set" = set; then
1705 case $ac_new_val in
1706 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1707 *) ac_arg=$ac_var=$ac_new_val ;;
1708 esac
1709 case " $ac_configure_args " in
1710 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1711 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1712 esac
1714 done
1715 if $ac_cache_corrupted; then
1716 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1717 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1718 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1719 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1720 { (exit 1); exit 1; }; }
1747 ac_ext=c
1748 ac_cpp='$CPP $CPPFLAGS'
1749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1756 ac_config_headers="$ac_config_headers config.h"
1759 # Checks for host and target systems.
1760 ac_aux_dir=
1761 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1762 if test -f "$ac_dir/install-sh"; then
1763 ac_aux_dir=$ac_dir
1764 ac_install_sh="$ac_aux_dir/install-sh -c"
1765 break
1766 elif test -f "$ac_dir/install.sh"; then
1767 ac_aux_dir=$ac_dir
1768 ac_install_sh="$ac_aux_dir/install.sh -c"
1769 break
1770 elif test -f "$ac_dir/shtool"; then
1771 ac_aux_dir=$ac_dir
1772 ac_install_sh="$ac_aux_dir/shtool install -c"
1773 break
1775 done
1776 if test -z "$ac_aux_dir"; then
1777 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1778 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1779 { (exit 1); exit 1; }; }
1782 # These three variables are undocumented and unsupported,
1783 # and are intended to be withdrawn in a future Autoconf release.
1784 # They can cause serious problems if a builder's source tree is in a directory
1785 # whose full name contains unusual characters.
1786 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1787 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1788 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1791 # Make sure we can run config.sub.
1792 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1793 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1794 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1795 { (exit 1); exit 1; }; }
1797 { echo "$as_me:$LINENO: checking build system type" >&5
1798 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1799 if test "${ac_cv_build+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1801 else
1802 ac_build_alias=$build_alias
1803 test "x$ac_build_alias" = x &&
1804 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1805 test "x$ac_build_alias" = x &&
1806 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1807 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1808 { (exit 1); exit 1; }; }
1809 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1810 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1811 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1812 { (exit 1); exit 1; }; }
1815 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1816 echo "${ECHO_T}$ac_cv_build" >&6; }
1817 case $ac_cv_build in
1818 *-*-*) ;;
1819 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1820 echo "$as_me: error: invalid value of canonical build" >&2;}
1821 { (exit 1); exit 1; }; };;
1822 esac
1823 build=$ac_cv_build
1824 ac_save_IFS=$IFS; IFS='-'
1825 set x $ac_cv_build
1826 shift
1827 build_cpu=$1
1828 build_vendor=$2
1829 shift; shift
1830 # Remember, the first character of IFS is used to create $*,
1831 # except with old shells:
1832 build_os=$*
1833 IFS=$ac_save_IFS
1834 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1837 { echo "$as_me:$LINENO: checking host system type" >&5
1838 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1839 if test "${ac_cv_host+set}" = set; then
1840 echo $ECHO_N "(cached) $ECHO_C" >&6
1841 else
1842 if test "x$host_alias" = x; then
1843 ac_cv_host=$ac_cv_build
1844 else
1845 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1846 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1847 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1848 { (exit 1); exit 1; }; }
1852 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1853 echo "${ECHO_T}$ac_cv_host" >&6; }
1854 case $ac_cv_host in
1855 *-*-*) ;;
1856 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1857 echo "$as_me: error: invalid value of canonical host" >&2;}
1858 { (exit 1); exit 1; }; };;
1859 esac
1860 host=$ac_cv_host
1861 ac_save_IFS=$IFS; IFS='-'
1862 set x $ac_cv_host
1863 shift
1864 host_cpu=$1
1865 host_vendor=$2
1866 shift; shift
1867 # Remember, the first character of IFS is used to create $*,
1868 # except with old shells:
1869 host_os=$*
1870 IFS=$ac_save_IFS
1871 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1874 { echo "$as_me:$LINENO: checking target system type" >&5
1875 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1876 if test "${ac_cv_target+set}" = set; then
1877 echo $ECHO_N "(cached) $ECHO_C" >&6
1878 else
1879 if test "x$target_alias" = x; then
1880 ac_cv_target=$ac_cv_host
1881 else
1882 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1883 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1884 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1885 { (exit 1); exit 1; }; }
1889 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1890 echo "${ECHO_T}$ac_cv_target" >&6; }
1891 case $ac_cv_target in
1892 *-*-*) ;;
1893 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1894 echo "$as_me: error: invalid value of canonical target" >&2;}
1895 { (exit 1); exit 1; }; };;
1896 esac
1897 target=$ac_cv_target
1898 ac_save_IFS=$IFS; IFS='-'
1899 set x $ac_cv_target
1900 shift
1901 target_cpu=$1
1902 target_vendor=$2
1903 shift; shift
1904 # Remember, the first character of IFS is used to create $*,
1905 # except with old shells:
1906 target_os=$*
1907 IFS=$ac_save_IFS
1908 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1911 # The aliases save the names the user supplied, while $host etc.
1912 # will get canonicalized.
1913 test -n "$target_alias" &&
1914 test "$program_prefix$program_suffix$program_transform_name" = \
1915 NONENONEs,x,x, &&
1916 program_prefix=${target_alias}-
1918 # Program name transformations
1919 test "$program_prefix" != NONE &&
1920 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1921 # Use a double $ so make ignores it.
1922 test "$program_suffix" != NONE &&
1923 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1924 # Double any \ or $. echo might interpret backslashes.
1925 # By default was `s,x,x', remove it if useless.
1926 cat <<\_ACEOF >conftest.sed
1927 s/[\\$]/&&/g;s/;s,x,x,$//
1928 _ACEOF
1929 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1930 rm -f conftest.sed
1933 case "$host_cpu" in
1934 powerpc64) host_m32=1 ;;
1935 esac
1937 case "$target_cpu" in
1938 i[3456]86) target_cpu=i386 ;;
1939 esac
1941 # Specify the platform (such as firmware).
1943 # Check whether --with-platform was given.
1944 if test "${with_platform+set}" = set; then
1945 withval=$with_platform;
1949 # Guess the platform if not specified.
1950 if test "x$with_platform" = x; then
1951 case "$target_cpu"-"$target_vendor" in
1952 i386-apple) platform=efi ;;
1953 i386-*) platform=pc ;;
1954 x86_64-apple) platform=efi ;;
1955 x86_64-*) platform=pc ;;
1956 powerpc-*) platform=ieee1275 ;;
1957 powerpc64-*) platform=ieee1275 ;;
1958 sparc64-*) platform=ieee1275 ;;
1959 *) { { echo "$as_me:$LINENO: error: unsupported CPU: \"$target_cpu\"" >&5
1960 echo "$as_me: error: unsupported CPU: \"$target_cpu\"" >&2;}
1961 { (exit 1); exit 1; }; } ;;
1962 esac
1963 else
1964 platform="$with_platform"
1967 # Adjust CPU unless target was explicitly specified.
1968 if test -z "$target_alias"; then
1969 case "$target_cpu"-"$platform" in
1970 x86_64-efi) ;;
1971 x86_64-*) target_cpu=i386 ;;
1972 powerpc64-ieee1275) target_cpu=powerpc ;;
1973 esac
1976 # Check if the platform is supported, make final adjustments.
1977 case "$target_cpu"-"$platform" in
1978 i386-efi) ;;
1979 x86_64-efi) ;;
1980 i386-pc) ;;
1981 i386-coreboot) ;;
1982 i386-linuxbios) platform=coreboot ;;
1983 i386-ieee1275) ;;
1984 powerpc-ieee1275) ;;
1985 sparc64-ieee1275) ;;
1986 *) { { echo "$as_me:$LINENO: error: platform \"$platform\" is not supported for target CPU \"$target_cpu\"" >&5
1987 echo "$as_me: error: platform \"$platform\" is not supported for target CPU \"$target_cpu\"" >&2;}
1988 { (exit 1); exit 1; }; } ;;
1989 esac
1991 case "$target_cpu" in
1992 i386 | powerpc) target_m32=1 ;;
1993 x86_64 | sparc64) target_m64=1 ;;
1994 esac
1996 case "$host_os" in
1997 mingw32) host_os=cygwin ;;
1998 esac
2000 case "$target_os" in
2001 mingw32) target_os=cygwin ;;
2002 esac
2009 # Checks for build programs.
2012 # Although cmp is listed in the GNU Coding Standards as a command which
2013 # can used directly, OpenBSD lacks cmp in the default installation.
2014 for ac_prog in cmp
2016 # Extract the first word of "$ac_prog", so it can be a program name with args.
2017 set dummy $ac_prog; ac_word=$2
2018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2020 if test "${ac_cv_prog_CMP+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2022 else
2023 if test -n "$CMP"; then
2024 ac_cv_prog_CMP="$CMP" # Let the user override the test.
2025 else
2026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 for as_dir in $PATH
2029 IFS=$as_save_IFS
2030 test -z "$as_dir" && as_dir=.
2031 for ac_exec_ext in '' $ac_executable_extensions; do
2032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2033 ac_cv_prog_CMP="$ac_prog"
2034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2035 break 2
2037 done
2038 done
2039 IFS=$as_save_IFS
2043 CMP=$ac_cv_prog_CMP
2044 if test -n "$CMP"; then
2045 { echo "$as_me:$LINENO: result: $CMP" >&5
2046 echo "${ECHO_T}$CMP" >&6; }
2047 else
2048 { echo "$as_me:$LINENO: result: no" >&5
2049 echo "${ECHO_T}no" >&6; }
2053 test -n "$CMP" && break
2054 done
2056 if test "x$CMP" = x; then
2057 { { echo "$as_me:$LINENO: error: cmp is not found" >&5
2058 echo "$as_me: error: cmp is not found" >&2;}
2059 { (exit 1); exit 1; }; }
2062 for ac_prog in bison
2064 # Extract the first word of "$ac_prog", so it can be a program name with args.
2065 set dummy $ac_prog; ac_word=$2
2066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2068 if test "${ac_cv_prog_YACC+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2070 else
2071 if test -n "$YACC"; then
2072 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2073 else
2074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075 for as_dir in $PATH
2077 IFS=$as_save_IFS
2078 test -z "$as_dir" && as_dir=.
2079 for ac_exec_ext in '' $ac_executable_extensions; do
2080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2081 ac_cv_prog_YACC="$ac_prog"
2082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083 break 2
2085 done
2086 done
2087 IFS=$as_save_IFS
2091 YACC=$ac_cv_prog_YACC
2092 if test -n "$YACC"; then
2093 { echo "$as_me:$LINENO: result: $YACC" >&5
2094 echo "${ECHO_T}$YACC" >&6; }
2095 else
2096 { echo "$as_me:$LINENO: result: no" >&5
2097 echo "${ECHO_T}no" >&6; }
2101 test -n "$YACC" && break
2102 done
2104 if test "x$YACC" = x; then
2105 { { echo "$as_me:$LINENO: error: bison is not found" >&5
2106 echo "$as_me: error: bison is not found" >&2;}
2107 { (exit 1); exit 1; }; }
2110 for file in /usr/share/unifont/unifont.hex ; do
2111 if test -e $file ; then
2112 UNIFONT_HEX=$file
2114 break
2116 done
2118 # Find a good install program. We prefer a C program (faster),
2119 # so one script is as good as another. But avoid the broken or
2120 # incompatible versions:
2121 # SysV /etc/install, /usr/sbin/install
2122 # SunOS /usr/etc/install
2123 # IRIX /sbin/install
2124 # AIX /bin/install
2125 # AmigaOS /C/install, which installs bootblocks on floppy discs
2126 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2127 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2128 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2129 # OS/2's system install, which has a completely different semantic
2130 # ./install, which can be erroneously created by make from ./install.sh.
2131 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2132 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2133 if test -z "$INSTALL"; then
2134 if test "${ac_cv_path_install+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH
2140 IFS=$as_save_IFS
2141 test -z "$as_dir" && as_dir=.
2142 # Account for people who put trailing slashes in PATH elements.
2143 case $as_dir/ in
2144 ./ | .// | /cC/* | \
2145 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2146 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2147 /usr/ucb/* ) ;;
2149 # OSF1 and SCO ODT 3.0 have their own names for install.
2150 # Don't use installbsd from OSF since it installs stuff as root
2151 # by default.
2152 for ac_prog in ginstall scoinst install; do
2153 for ac_exec_ext in '' $ac_executable_extensions; do
2154 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2155 if test $ac_prog = install &&
2156 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2157 # AIX install. It has an incompatible calling convention.
2159 elif test $ac_prog = install &&
2160 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2161 # program-specific install script used by HP pwplus--don't use.
2163 else
2164 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2165 break 3
2168 done
2169 done
2171 esac
2172 done
2173 IFS=$as_save_IFS
2177 if test "${ac_cv_path_install+set}" = set; then
2178 INSTALL=$ac_cv_path_install
2179 else
2180 # As a last resort, use the slow shell script. Don't cache a
2181 # value for INSTALL within a source directory, because that will
2182 # break other packages using the cache if that directory is
2183 # removed, or if the value is a relative name.
2184 INSTALL=$ac_install_sh
2187 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2188 echo "${ECHO_T}$INSTALL" >&6; }
2190 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2191 # It thinks the first close brace ends the variable substitution.
2192 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2194 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2196 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2198 for ac_prog in gawk mawk nawk awk
2200 # Extract the first word of "$ac_prog", so it can be a program name with args.
2201 set dummy $ac_prog; ac_word=$2
2202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2204 if test "${ac_cv_prog_AWK+set}" = set; then
2205 echo $ECHO_N "(cached) $ECHO_C" >&6
2206 else
2207 if test -n "$AWK"; then
2208 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2209 else
2210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211 for as_dir in $PATH
2213 IFS=$as_save_IFS
2214 test -z "$as_dir" && as_dir=.
2215 for ac_exec_ext in '' $ac_executable_extensions; do
2216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2217 ac_cv_prog_AWK="$ac_prog"
2218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2219 break 2
2221 done
2222 done
2223 IFS=$as_save_IFS
2227 AWK=$ac_cv_prog_AWK
2228 if test -n "$AWK"; then
2229 { echo "$as_me:$LINENO: result: $AWK" >&5
2230 echo "${ECHO_T}$AWK" >&6; }
2231 else
2232 { echo "$as_me:$LINENO: result: no" >&5
2233 echo "${ECHO_T}no" >&6; }
2237 test -n "$AWK" && break
2238 done
2240 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2241 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2242 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2243 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2244 echo $ECHO_N "(cached) $ECHO_C" >&6
2245 else
2246 cat >conftest.make <<\_ACEOF
2247 SHELL = /bin/sh
2248 all:
2249 @echo '@@@%%%=$(MAKE)=@@@%%%'
2250 _ACEOF
2251 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2252 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2253 *@@@%%%=?*=@@@%%%*)
2254 eval ac_cv_prog_make_${ac_make}_set=yes;;
2256 eval ac_cv_prog_make_${ac_make}_set=no;;
2257 esac
2258 rm -f conftest.make
2260 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2261 { echo "$as_me:$LINENO: result: yes" >&5
2262 echo "${ECHO_T}yes" >&6; }
2263 SET_MAKE=
2264 else
2265 { echo "$as_me:$LINENO: result: no" >&5
2266 echo "${ECHO_T}no" >&6; }
2267 SET_MAKE="MAKE=${MAKE-make}"
2271 # These are not a "must".
2272 # Extract the first word of "ruby", so it can be a program name with args.
2273 set dummy ruby; ac_word=$2
2274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2276 if test "${ac_cv_path_RUBY+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2278 else
2279 case $RUBY in
2280 [\\/]* | ?:[\\/]*)
2281 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
2284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285 for as_dir in $PATH
2287 IFS=$as_save_IFS
2288 test -z "$as_dir" && as_dir=.
2289 for ac_exec_ext in '' $ac_executable_extensions; do
2290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2291 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
2292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2293 break 2
2295 done
2296 done
2297 IFS=$as_save_IFS
2300 esac
2302 RUBY=$ac_cv_path_RUBY
2303 if test -n "$RUBY"; then
2304 { echo "$as_me:$LINENO: result: $RUBY" >&5
2305 echo "${ECHO_T}$RUBY" >&6; }
2306 else
2307 { echo "$as_me:$LINENO: result: no" >&5
2308 echo "${ECHO_T}no" >&6; }
2312 # Extract the first word of "help2man", so it can be a program name with args.
2313 set dummy help2man; ac_word=$2
2314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2316 if test "${ac_cv_path_HELP2MAN+set}" = set; then
2317 echo $ECHO_N "(cached) $ECHO_C" >&6
2318 else
2319 case $HELP2MAN in
2320 [\\/]* | ?:[\\/]*)
2321 ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
2324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325 for as_dir in $PATH
2327 IFS=$as_save_IFS
2328 test -z "$as_dir" && as_dir=.
2329 for ac_exec_ext in '' $ac_executable_extensions; do
2330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2331 ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
2332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2333 break 2
2335 done
2336 done
2337 IFS=$as_save_IFS
2340 esac
2342 HELP2MAN=$ac_cv_path_HELP2MAN
2343 if test -n "$HELP2MAN"; then
2344 { echo "$as_me:$LINENO: result: $HELP2MAN" >&5
2345 echo "${ECHO_T}$HELP2MAN" >&6; }
2346 else
2347 { echo "$as_me:$LINENO: result: no" >&5
2348 echo "${ECHO_T}no" >&6; }
2354 # Checks for host programs.
2357 ac_ext=c
2358 ac_cpp='$CPP $CPPFLAGS'
2359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2362 if test -n "$ac_tool_prefix"; then
2363 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2364 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2367 if test "${ac_cv_prog_CC+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370 if test -n "$CC"; then
2371 ac_cv_prog_CC="$CC" # Let the user override the test.
2372 else
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 for as_dir in $PATH
2376 IFS=$as_save_IFS
2377 test -z "$as_dir" && as_dir=.
2378 for ac_exec_ext in '' $ac_executable_extensions; do
2379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2380 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382 break 2
2384 done
2385 done
2386 IFS=$as_save_IFS
2390 CC=$ac_cv_prog_CC
2391 if test -n "$CC"; then
2392 { echo "$as_me:$LINENO: result: $CC" >&5
2393 echo "${ECHO_T}$CC" >&6; }
2394 else
2395 { echo "$as_me:$LINENO: result: no" >&5
2396 echo "${ECHO_T}no" >&6; }
2401 if test -z "$ac_cv_prog_CC"; then
2402 ac_ct_CC=$CC
2403 # Extract the first word of "gcc", so it can be a program name with args.
2404 set dummy gcc; ac_word=$2
2405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2407 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2409 else
2410 if test -n "$ac_ct_CC"; then
2411 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2412 else
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 for as_dir in $PATH
2416 IFS=$as_save_IFS
2417 test -z "$as_dir" && as_dir=.
2418 for ac_exec_ext in '' $ac_executable_extensions; do
2419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2420 ac_cv_prog_ac_ct_CC="gcc"
2421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2422 break 2
2424 done
2425 done
2426 IFS=$as_save_IFS
2430 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2431 if test -n "$ac_ct_CC"; then
2432 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2433 echo "${ECHO_T}$ac_ct_CC" >&6; }
2434 else
2435 { echo "$as_me:$LINENO: result: no" >&5
2436 echo "${ECHO_T}no" >&6; }
2439 if test "x$ac_ct_CC" = x; then
2440 CC=""
2441 else
2442 case $cross_compiling:$ac_tool_warned in
2443 yes:)
2444 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2445 whose name does not start with the host triplet. If you think this
2446 configuration is useful to you, please write to autoconf@gnu.org." >&5
2447 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2448 whose name does not start with the host triplet. If you think this
2449 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2450 ac_tool_warned=yes ;;
2451 esac
2452 CC=$ac_ct_CC
2454 else
2455 CC="$ac_cv_prog_CC"
2458 if test -z "$CC"; then
2459 if test -n "$ac_tool_prefix"; then
2460 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2461 set dummy ${ac_tool_prefix}cc; ac_word=$2
2462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2464 if test "${ac_cv_prog_CC+set}" = set; then
2465 echo $ECHO_N "(cached) $ECHO_C" >&6
2466 else
2467 if test -n "$CC"; then
2468 ac_cv_prog_CC="$CC" # Let the user override the test.
2469 else
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2473 IFS=$as_save_IFS
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477 ac_cv_prog_CC="${ac_tool_prefix}cc"
2478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2479 break 2
2481 done
2482 done
2483 IFS=$as_save_IFS
2487 CC=$ac_cv_prog_CC
2488 if test -n "$CC"; then
2489 { echo "$as_me:$LINENO: result: $CC" >&5
2490 echo "${ECHO_T}$CC" >&6; }
2491 else
2492 { echo "$as_me:$LINENO: result: no" >&5
2493 echo "${ECHO_T}no" >&6; }
2499 if test -z "$CC"; then
2500 # Extract the first word of "cc", so it can be a program name with args.
2501 set dummy cc; ac_word=$2
2502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2504 if test "${ac_cv_prog_CC+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507 if test -n "$CC"; then
2508 ac_cv_prog_CC="$CC" # Let the user override the test.
2509 else
2510 ac_prog_rejected=no
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 for as_dir in $PATH
2514 IFS=$as_save_IFS
2515 test -z "$as_dir" && as_dir=.
2516 for ac_exec_ext in '' $ac_executable_extensions; do
2517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2518 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2519 ac_prog_rejected=yes
2520 continue
2522 ac_cv_prog_CC="cc"
2523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2524 break 2
2526 done
2527 done
2528 IFS=$as_save_IFS
2530 if test $ac_prog_rejected = yes; then
2531 # We found a bogon in the path, so make sure we never use it.
2532 set dummy $ac_cv_prog_CC
2533 shift
2534 if test $# != 0; then
2535 # We chose a different compiler from the bogus one.
2536 # However, it has the same basename, so the bogon will be chosen
2537 # first if we set CC to just the basename; use the full file name.
2538 shift
2539 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2544 CC=$ac_cv_prog_CC
2545 if test -n "$CC"; then
2546 { echo "$as_me:$LINENO: result: $CC" >&5
2547 echo "${ECHO_T}$CC" >&6; }
2548 else
2549 { echo "$as_me:$LINENO: result: no" >&5
2550 echo "${ECHO_T}no" >&6; }
2555 if test -z "$CC"; then
2556 if test -n "$ac_tool_prefix"; then
2557 for ac_prog in cl.exe
2559 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2560 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2563 if test "${ac_cv_prog_CC+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2565 else
2566 if test -n "$CC"; then
2567 ac_cv_prog_CC="$CC" # Let the user override the test.
2568 else
2569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570 for as_dir in $PATH
2572 IFS=$as_save_IFS
2573 test -z "$as_dir" && as_dir=.
2574 for ac_exec_ext in '' $ac_executable_extensions; do
2575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2576 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2578 break 2
2580 done
2581 done
2582 IFS=$as_save_IFS
2586 CC=$ac_cv_prog_CC
2587 if test -n "$CC"; then
2588 { echo "$as_me:$LINENO: result: $CC" >&5
2589 echo "${ECHO_T}$CC" >&6; }
2590 else
2591 { echo "$as_me:$LINENO: result: no" >&5
2592 echo "${ECHO_T}no" >&6; }
2596 test -n "$CC" && break
2597 done
2599 if test -z "$CC"; then
2600 ac_ct_CC=$CC
2601 for ac_prog in cl.exe
2603 # Extract the first word of "$ac_prog", so it can be a program name with args.
2604 set dummy $ac_prog; ac_word=$2
2605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2607 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2608 echo $ECHO_N "(cached) $ECHO_C" >&6
2609 else
2610 if test -n "$ac_ct_CC"; then
2611 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2612 else
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 for as_dir in $PATH
2616 IFS=$as_save_IFS
2617 test -z "$as_dir" && as_dir=.
2618 for ac_exec_ext in '' $ac_executable_extensions; do
2619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2620 ac_cv_prog_ac_ct_CC="$ac_prog"
2621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2622 break 2
2624 done
2625 done
2626 IFS=$as_save_IFS
2630 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2631 if test -n "$ac_ct_CC"; then
2632 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2633 echo "${ECHO_T}$ac_ct_CC" >&6; }
2634 else
2635 { echo "$as_me:$LINENO: result: no" >&5
2636 echo "${ECHO_T}no" >&6; }
2640 test -n "$ac_ct_CC" && break
2641 done
2643 if test "x$ac_ct_CC" = x; then
2644 CC=""
2645 else
2646 case $cross_compiling:$ac_tool_warned in
2647 yes:)
2648 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2649 whose name does not start with the host triplet. If you think this
2650 configuration is useful to you, please write to autoconf@gnu.org." >&5
2651 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2652 whose name does not start with the host triplet. If you think this
2653 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2654 ac_tool_warned=yes ;;
2655 esac
2656 CC=$ac_ct_CC
2663 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2664 See \`config.log' for more details." >&5
2665 echo "$as_me: error: no acceptable C compiler found in \$PATH
2666 See \`config.log' for more details." >&2;}
2667 { (exit 1); exit 1; }; }
2669 # Provide some information about the compiler.
2670 echo "$as_me:$LINENO: checking for C compiler version" >&5
2671 ac_compiler=`set X $ac_compile; echo $2`
2672 { (ac_try="$ac_compiler --version >&5"
2673 case "(($ac_try" in
2674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2675 *) ac_try_echo=$ac_try;;
2676 esac
2677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2678 (eval "$ac_compiler --version >&5") 2>&5
2679 ac_status=$?
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }
2682 { (ac_try="$ac_compiler -v >&5"
2683 case "(($ac_try" in
2684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685 *) ac_try_echo=$ac_try;;
2686 esac
2687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2688 (eval "$ac_compiler -v >&5") 2>&5
2689 ac_status=$?
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }
2692 { (ac_try="$ac_compiler -V >&5"
2693 case "(($ac_try" in
2694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695 *) ac_try_echo=$ac_try;;
2696 esac
2697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2698 (eval "$ac_compiler -V >&5") 2>&5
2699 ac_status=$?
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }
2703 cat >conftest.$ac_ext <<_ACEOF
2704 /* confdefs.h. */
2705 _ACEOF
2706 cat confdefs.h >>conftest.$ac_ext
2707 cat >>conftest.$ac_ext <<_ACEOF
2708 /* end confdefs.h. */
2711 main ()
2715 return 0;
2717 _ACEOF
2718 ac_clean_files_save=$ac_clean_files
2719 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2720 # Try to create an executable without -o first, disregard a.out.
2721 # It will help us diagnose broken compilers, and finding out an intuition
2722 # of exeext.
2723 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2724 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2725 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2727 # List of possible output files, starting from the most likely.
2728 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2729 # only as a last resort. b.out is created by i960 compilers.
2730 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2732 # The IRIX 6 linker writes into existing files which may not be
2733 # executable, retaining their permissions. Remove them first so a
2734 # subsequent execution test works.
2735 ac_rmfiles=
2736 for ac_file in $ac_files
2738 case $ac_file in
2739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2740 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2741 esac
2742 done
2743 rm -f $ac_rmfiles
2745 if { (ac_try="$ac_link_default"
2746 case "(($ac_try" in
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2749 esac
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_link_default") 2>&5
2752 ac_status=$?
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }; then
2755 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2756 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2757 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2758 # so that the user can short-circuit this test for compilers unknown to
2759 # Autoconf.
2760 for ac_file in $ac_files ''
2762 test -f "$ac_file" || continue
2763 case $ac_file in
2764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2766 [ab].out )
2767 # We found the default executable, but exeext='' is most
2768 # certainly right.
2769 break;;
2770 *.* )
2771 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2772 then :; else
2773 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2775 # We set ac_cv_exeext here because the later test for it is not
2776 # safe: cross compilers may not add the suffix if given an `-o'
2777 # argument, so we may need to know it at that point already.
2778 # Even if this section looks crufty: it has the advantage of
2779 # actually working.
2780 break;;
2782 break;;
2783 esac
2784 done
2785 test "$ac_cv_exeext" = no && ac_cv_exeext=
2787 else
2788 ac_file=''
2791 { echo "$as_me:$LINENO: result: $ac_file" >&5
2792 echo "${ECHO_T}$ac_file" >&6; }
2793 if test -z "$ac_file"; then
2794 echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2797 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2798 See \`config.log' for more details." >&5
2799 echo "$as_me: error: C compiler cannot create executables
2800 See \`config.log' for more details." >&2;}
2801 { (exit 77); exit 77; }; }
2804 ac_exeext=$ac_cv_exeext
2806 # Check that the compiler produces executables we can run. If not, either
2807 # the compiler is broken, or we cross compile.
2808 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2809 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2810 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2811 # If not cross compiling, check that we can run a simple program.
2812 if test "$cross_compiling" != yes; then
2813 if { ac_try='./$ac_file'
2814 { (case "(($ac_try" in
2815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816 *) ac_try_echo=$ac_try;;
2817 esac
2818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2819 (eval "$ac_try") 2>&5
2820 ac_status=$?
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); }; }; then
2823 cross_compiling=no
2824 else
2825 if test "$cross_compiling" = maybe; then
2826 cross_compiling=yes
2827 else
2828 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2829 If you meant to cross compile, use \`--host'.
2830 See \`config.log' for more details." >&5
2831 echo "$as_me: error: cannot run C compiled programs.
2832 If you meant to cross compile, use \`--host'.
2833 See \`config.log' for more details." >&2;}
2834 { (exit 1); exit 1; }; }
2838 { echo "$as_me:$LINENO: result: yes" >&5
2839 echo "${ECHO_T}yes" >&6; }
2841 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2842 ac_clean_files=$ac_clean_files_save
2843 # Check that the compiler produces executables we can run. If not, either
2844 # the compiler is broken, or we cross compile.
2845 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2846 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2847 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2848 echo "${ECHO_T}$cross_compiling" >&6; }
2850 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2851 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2852 if { (ac_try="$ac_link"
2853 case "(($ac_try" in
2854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2855 *) ac_try_echo=$ac_try;;
2856 esac
2857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2858 (eval "$ac_link") 2>&5
2859 ac_status=$?
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); }; then
2862 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2863 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2864 # work properly (i.e., refer to `conftest.exe'), while it won't with
2865 # `rm'.
2866 for ac_file in conftest.exe conftest conftest.*; do
2867 test -f "$ac_file" || continue
2868 case $ac_file in
2869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2870 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2871 break;;
2872 * ) break;;
2873 esac
2874 done
2875 else
2876 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2877 See \`config.log' for more details." >&5
2878 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2879 See \`config.log' for more details." >&2;}
2880 { (exit 1); exit 1; }; }
2883 rm -f conftest$ac_cv_exeext
2884 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2885 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2887 rm -f conftest.$ac_ext
2888 EXEEXT=$ac_cv_exeext
2889 ac_exeext=$EXEEXT
2890 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2891 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2892 if test "${ac_cv_objext+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 else
2895 cat >conftest.$ac_ext <<_ACEOF
2896 /* confdefs.h. */
2897 _ACEOF
2898 cat confdefs.h >>conftest.$ac_ext
2899 cat >>conftest.$ac_ext <<_ACEOF
2900 /* end confdefs.h. */
2903 main ()
2907 return 0;
2909 _ACEOF
2910 rm -f conftest.o conftest.obj
2911 if { (ac_try="$ac_compile"
2912 case "(($ac_try" in
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2915 esac
2916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917 (eval "$ac_compile") 2>&5
2918 ac_status=$?
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }; then
2921 for ac_file in conftest.o conftest.obj conftest.*; do
2922 test -f "$ac_file" || continue;
2923 case $ac_file in
2924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2925 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2926 break;;
2927 esac
2928 done
2929 else
2930 echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2933 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2934 See \`config.log' for more details." >&5
2935 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2936 See \`config.log' for more details." >&2;}
2937 { (exit 1); exit 1; }; }
2940 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2942 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2943 echo "${ECHO_T}$ac_cv_objext" >&6; }
2944 OBJEXT=$ac_cv_objext
2945 ac_objext=$OBJEXT
2946 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2947 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2948 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2949 echo $ECHO_N "(cached) $ECHO_C" >&6
2950 else
2951 cat >conftest.$ac_ext <<_ACEOF
2952 /* confdefs.h. */
2953 _ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h. */
2959 main ()
2961 #ifndef __GNUC__
2962 choke me
2963 #endif
2966 return 0;
2968 _ACEOF
2969 rm -f conftest.$ac_objext
2970 if { (ac_try="$ac_compile"
2971 case "(($ac_try" in
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2974 esac
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_compile") 2>conftest.er1
2977 ac_status=$?
2978 grep -v '^ *+' conftest.er1 >conftest.err
2979 rm -f conftest.er1
2980 cat conftest.err >&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); } && {
2983 test -z "$ac_c_werror_flag" ||
2984 test ! -s conftest.err
2985 } && test -s conftest.$ac_objext; then
2986 ac_compiler_gnu=yes
2987 else
2988 echo "$as_me: failed program was:" >&5
2989 sed 's/^/| /' conftest.$ac_ext >&5
2991 ac_compiler_gnu=no
2994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2995 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2998 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2999 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3000 GCC=`test $ac_compiler_gnu = yes && echo yes`
3001 ac_test_CFLAGS=${CFLAGS+set}
3002 ac_save_CFLAGS=$CFLAGS
3003 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3004 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3005 if test "${ac_cv_prog_cc_g+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3007 else
3008 ac_save_c_werror_flag=$ac_c_werror_flag
3009 ac_c_werror_flag=yes
3010 ac_cv_prog_cc_g=no
3011 CFLAGS="-g"
3012 cat >conftest.$ac_ext <<_ACEOF
3013 /* confdefs.h. */
3014 _ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h. */
3020 main ()
3024 return 0;
3026 _ACEOF
3027 rm -f conftest.$ac_objext
3028 if { (ac_try="$ac_compile"
3029 case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032 esac
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_compile") 2>conftest.er1
3035 ac_status=$?
3036 grep -v '^ *+' conftest.er1 >conftest.err
3037 rm -f conftest.er1
3038 cat conftest.err >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); } && {
3041 test -z "$ac_c_werror_flag" ||
3042 test ! -s conftest.err
3043 } && test -s conftest.$ac_objext; then
3044 ac_cv_prog_cc_g=yes
3045 else
3046 echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3049 CFLAGS=""
3050 cat >conftest.$ac_ext <<_ACEOF
3051 /* confdefs.h. */
3052 _ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h. */
3058 main ()
3062 return 0;
3064 _ACEOF
3065 rm -f conftest.$ac_objext
3066 if { (ac_try="$ac_compile"
3067 case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3070 esac
3071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072 (eval "$ac_compile") 2>conftest.er1
3073 ac_status=$?
3074 grep -v '^ *+' conftest.er1 >conftest.err
3075 rm -f conftest.er1
3076 cat conftest.err >&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); } && {
3079 test -z "$ac_c_werror_flag" ||
3080 test ! -s conftest.err
3081 } && test -s conftest.$ac_objext; then
3083 else
3084 echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3087 ac_c_werror_flag=$ac_save_c_werror_flag
3088 CFLAGS="-g"
3089 cat >conftest.$ac_ext <<_ACEOF
3090 /* confdefs.h. */
3091 _ACEOF
3092 cat confdefs.h >>conftest.$ac_ext
3093 cat >>conftest.$ac_ext <<_ACEOF
3094 /* end confdefs.h. */
3097 main ()
3101 return 0;
3103 _ACEOF
3104 rm -f conftest.$ac_objext
3105 if { (ac_try="$ac_compile"
3106 case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109 esac
3110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111 (eval "$ac_compile") 2>conftest.er1
3112 ac_status=$?
3113 grep -v '^ *+' conftest.er1 >conftest.err
3114 rm -f conftest.er1
3115 cat conftest.err >&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); } && {
3118 test -z "$ac_c_werror_flag" ||
3119 test ! -s conftest.err
3120 } && test -s conftest.$ac_objext; then
3121 ac_cv_prog_cc_g=yes
3122 else
3123 echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3136 ac_c_werror_flag=$ac_save_c_werror_flag
3138 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3139 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3140 if test "$ac_test_CFLAGS" = set; then
3141 CFLAGS=$ac_save_CFLAGS
3142 elif test $ac_cv_prog_cc_g = yes; then
3143 if test "$GCC" = yes; then
3144 CFLAGS="-g -O2"
3145 else
3146 CFLAGS="-g"
3148 else
3149 if test "$GCC" = yes; then
3150 CFLAGS="-O2"
3151 else
3152 CFLAGS=
3155 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3156 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3157 if test "${ac_cv_prog_cc_c89+set}" = set; then
3158 echo $ECHO_N "(cached) $ECHO_C" >&6
3159 else
3160 ac_cv_prog_cc_c89=no
3161 ac_save_CC=$CC
3162 cat >conftest.$ac_ext <<_ACEOF
3163 /* confdefs.h. */
3164 _ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3168 #include <stdarg.h>
3169 #include <stdio.h>
3170 #include <sys/types.h>
3171 #include <sys/stat.h>
3172 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3173 struct buf { int x; };
3174 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3175 static char *e (p, i)
3176 char **p;
3177 int i;
3179 return p[i];
3181 static char *f (char * (*g) (char **, int), char **p, ...)
3183 char *s;
3184 va_list v;
3185 va_start (v,p);
3186 s = g (p, va_arg (v,int));
3187 va_end (v);
3188 return s;
3191 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3192 function prototypes and stuff, but not '\xHH' hex character constants.
3193 These don't provoke an error unfortunately, instead are silently treated
3194 as 'x'. The following induces an error, until -std is added to get
3195 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3196 array size at least. It's necessary to write '\x00'==0 to get something
3197 that's true only with -std. */
3198 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3200 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3201 inside strings and character constants. */
3202 #define FOO(x) 'x'
3203 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3205 int test (int i, double x);
3206 struct s1 {int (*f) (int a);};
3207 struct s2 {int (*f) (double a);};
3208 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3209 int argc;
3210 char **argv;
3212 main ()
3214 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3216 return 0;
3218 _ACEOF
3219 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3220 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3222 CC="$ac_save_CC $ac_arg"
3223 rm -f conftest.$ac_objext
3224 if { (ac_try="$ac_compile"
3225 case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228 esac
3229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230 (eval "$ac_compile") 2>conftest.er1
3231 ac_status=$?
3232 grep -v '^ *+' conftest.er1 >conftest.err
3233 rm -f conftest.er1
3234 cat conftest.err >&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } && {
3237 test -z "$ac_c_werror_flag" ||
3238 test ! -s conftest.err
3239 } && test -s conftest.$ac_objext; then
3240 ac_cv_prog_cc_c89=$ac_arg
3241 else
3242 echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3248 rm -f core conftest.err conftest.$ac_objext
3249 test "x$ac_cv_prog_cc_c89" != "xno" && break
3250 done
3251 rm -f conftest.$ac_ext
3252 CC=$ac_save_CC
3255 # AC_CACHE_VAL
3256 case "x$ac_cv_prog_cc_c89" in
3258 { echo "$as_me:$LINENO: result: none needed" >&5
3259 echo "${ECHO_T}none needed" >&6; } ;;
3260 xno)
3261 { echo "$as_me:$LINENO: result: unsupported" >&5
3262 echo "${ECHO_T}unsupported" >&6; } ;;
3264 CC="$CC $ac_cv_prog_cc_c89"
3265 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3266 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3267 esac
3270 ac_ext=c
3271 ac_cpp='$CPP $CPPFLAGS'
3272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3276 # Must be GCC.
3277 test "x$GCC" = xyes || { { echo "$as_me:$LINENO: error: GCC is required" >&5
3278 echo "$as_me: error: GCC is required" >&2;}
3279 { (exit 1); exit 1; }; }
3282 cat >>confdefs.h <<\_ACEOF
3283 #define _GNU_SOURCE 1
3284 _ACEOF
3288 # Check whether --enable-largefile was given.
3289 if test "${enable_largefile+set}" = set; then
3290 enableval=$enable_largefile;
3293 if test "$enable_largefile" != no; then
3295 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3296 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3297 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3298 echo $ECHO_N "(cached) $ECHO_C" >&6
3299 else
3300 ac_cv_sys_largefile_CC=no
3301 if test "$GCC" != yes; then
3302 ac_save_CC=$CC
3303 while :; do
3304 # IRIX 6.2 and later do not support large files by default,
3305 # so use the C compiler's -n32 option if that helps.
3306 cat >conftest.$ac_ext <<_ACEOF
3307 /* confdefs.h. */
3308 _ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h. */
3312 #include <sys/types.h>
3313 /* Check that off_t can represent 2**63 - 1 correctly.
3314 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3315 since some C++ compilers masquerading as C compilers
3316 incorrectly reject 9223372036854775807. */
3317 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3318 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3319 && LARGE_OFF_T % 2147483647 == 1)
3320 ? 1 : -1];
3322 main ()
3326 return 0;
3328 _ACEOF
3329 rm -f conftest.$ac_objext
3330 if { (ac_try="$ac_compile"
3331 case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334 esac
3335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336 (eval "$ac_compile") 2>conftest.er1
3337 ac_status=$?
3338 grep -v '^ *+' conftest.er1 >conftest.err
3339 rm -f conftest.er1
3340 cat conftest.err >&5
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); } && {
3343 test -z "$ac_c_werror_flag" ||
3344 test ! -s conftest.err
3345 } && test -s conftest.$ac_objext; then
3346 break
3347 else
3348 echo "$as_me: failed program was:" >&5
3349 sed 's/^/| /' conftest.$ac_ext >&5
3354 rm -f core conftest.err conftest.$ac_objext
3355 CC="$CC -n32"
3356 rm -f conftest.$ac_objext
3357 if { (ac_try="$ac_compile"
3358 case "(($ac_try" in
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3361 esac
3362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363 (eval "$ac_compile") 2>conftest.er1
3364 ac_status=$?
3365 grep -v '^ *+' conftest.er1 >conftest.err
3366 rm -f conftest.er1
3367 cat conftest.err >&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); } && {
3370 test -z "$ac_c_werror_flag" ||
3371 test ! -s conftest.err
3372 } && test -s conftest.$ac_objext; then
3373 ac_cv_sys_largefile_CC=' -n32'; break
3374 else
3375 echo "$as_me: failed program was:" >&5
3376 sed 's/^/| /' conftest.$ac_ext >&5
3381 rm -f core conftest.err conftest.$ac_objext
3382 break
3383 done
3384 CC=$ac_save_CC
3385 rm -f conftest.$ac_ext
3388 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3389 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3390 if test "$ac_cv_sys_largefile_CC" != no; then
3391 CC=$CC$ac_cv_sys_largefile_CC
3394 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3395 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
3396 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3397 echo $ECHO_N "(cached) $ECHO_C" >&6
3398 else
3399 while :; do
3400 cat >conftest.$ac_ext <<_ACEOF
3401 /* confdefs.h. */
3402 _ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h. */
3406 #include <sys/types.h>
3407 /* Check that off_t can represent 2**63 - 1 correctly.
3408 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3409 since some C++ compilers masquerading as C compilers
3410 incorrectly reject 9223372036854775807. */
3411 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3412 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3413 && LARGE_OFF_T % 2147483647 == 1)
3414 ? 1 : -1];
3416 main ()
3420 return 0;
3422 _ACEOF
3423 rm -f conftest.$ac_objext
3424 if { (ac_try="$ac_compile"
3425 case "(($ac_try" in
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3428 esac
3429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3430 (eval "$ac_compile") 2>conftest.er1
3431 ac_status=$?
3432 grep -v '^ *+' conftest.er1 >conftest.err
3433 rm -f conftest.er1
3434 cat conftest.err >&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); } && {
3437 test -z "$ac_c_werror_flag" ||
3438 test ! -s conftest.err
3439 } && test -s conftest.$ac_objext; then
3440 ac_cv_sys_file_offset_bits=no; break
3441 else
3442 echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.$ac_ext >&5
3448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3449 cat >conftest.$ac_ext <<_ACEOF
3450 /* confdefs.h. */
3451 _ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3455 #define _FILE_OFFSET_BITS 64
3456 #include <sys/types.h>
3457 /* Check that off_t can represent 2**63 - 1 correctly.
3458 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3459 since some C++ compilers masquerading as C compilers
3460 incorrectly reject 9223372036854775807. */
3461 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3462 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3463 && LARGE_OFF_T % 2147483647 == 1)
3464 ? 1 : -1];
3466 main ()
3470 return 0;
3472 _ACEOF
3473 rm -f conftest.$ac_objext
3474 if { (ac_try="$ac_compile"
3475 case "(($ac_try" in
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3478 esac
3479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3480 (eval "$ac_compile") 2>conftest.er1
3481 ac_status=$?
3482 grep -v '^ *+' conftest.er1 >conftest.err
3483 rm -f conftest.er1
3484 cat conftest.err >&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } && {
3487 test -z "$ac_c_werror_flag" ||
3488 test ! -s conftest.err
3489 } && test -s conftest.$ac_objext; then
3490 ac_cv_sys_file_offset_bits=64; break
3491 else
3492 echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499 ac_cv_sys_file_offset_bits=unknown
3500 break
3501 done
3503 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3504 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
3505 case $ac_cv_sys_file_offset_bits in #(
3506 no | unknown) ;;
3508 cat >>confdefs.h <<_ACEOF
3509 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3510 _ACEOF
3512 esac
3513 rm -f conftest*
3514 if test $ac_cv_sys_file_offset_bits = unknown; then
3515 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3516 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
3517 if test "${ac_cv_sys_large_files+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3519 else
3520 while :; do
3521 cat >conftest.$ac_ext <<_ACEOF
3522 /* confdefs.h. */
3523 _ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h. */
3527 #include <sys/types.h>
3528 /* Check that off_t can represent 2**63 - 1 correctly.
3529 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3530 since some C++ compilers masquerading as C compilers
3531 incorrectly reject 9223372036854775807. */
3532 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3533 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3534 && LARGE_OFF_T % 2147483647 == 1)
3535 ? 1 : -1];
3537 main ()
3541 return 0;
3543 _ACEOF
3544 rm -f conftest.$ac_objext
3545 if { (ac_try="$ac_compile"
3546 case "(($ac_try" in
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3549 esac
3550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551 (eval "$ac_compile") 2>conftest.er1
3552 ac_status=$?
3553 grep -v '^ *+' conftest.er1 >conftest.err
3554 rm -f conftest.er1
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } && {
3558 test -z "$ac_c_werror_flag" ||
3559 test ! -s conftest.err
3560 } && test -s conftest.$ac_objext; then
3561 ac_cv_sys_large_files=no; break
3562 else
3563 echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570 cat >conftest.$ac_ext <<_ACEOF
3571 /* confdefs.h. */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3576 #define _LARGE_FILES 1
3577 #include <sys/types.h>
3578 /* Check that off_t can represent 2**63 - 1 correctly.
3579 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3580 since some C++ compilers masquerading as C compilers
3581 incorrectly reject 9223372036854775807. */
3582 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3583 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3584 && LARGE_OFF_T % 2147483647 == 1)
3585 ? 1 : -1];
3587 main ()
3591 return 0;
3593 _ACEOF
3594 rm -f conftest.$ac_objext
3595 if { (ac_try="$ac_compile"
3596 case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3599 esac
3600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_compile") 2>conftest.er1
3602 ac_status=$?
3603 grep -v '^ *+' conftest.er1 >conftest.err
3604 rm -f conftest.er1
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } && {
3608 test -z "$ac_c_werror_flag" ||
3609 test ! -s conftest.err
3610 } && test -s conftest.$ac_objext; then
3611 ac_cv_sys_large_files=1; break
3612 else
3613 echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620 ac_cv_sys_large_files=unknown
3621 break
3622 done
3624 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3625 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
3626 case $ac_cv_sys_large_files in #(
3627 no | unknown) ;;
3629 cat >>confdefs.h <<_ACEOF
3630 #define _LARGE_FILES $ac_cv_sys_large_files
3631 _ACEOF
3633 esac
3634 rm -f conftest*
3639 # Identify characteristics of the host architecture.
3640 ac_ext=c
3641 ac_cpp='$CPP $CPPFLAGS'
3642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3646 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3647 # On Suns, sometimes $CPP names a directory.
3648 if test -n "$CPP" && test -d "$CPP"; then
3649 CPP=
3651 if test -z "$CPP"; then
3652 if test "${ac_cv_prog_CPP+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 else
3655 # Double quotes because CPP needs to be expanded
3656 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3658 ac_preproc_ok=false
3659 for ac_c_preproc_warn_flag in '' yes
3661 # Use a header file that comes with gcc, so configuring glibc
3662 # with a fresh cross-compiler works.
3663 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3664 # <limits.h> exists even on freestanding compilers.
3665 # On the NeXT, cc -E runs the code through the compiler's parser,
3666 # not just through cpp. "Syntax error" is here to catch this case.
3667 cat >conftest.$ac_ext <<_ACEOF
3668 /* confdefs.h. */
3669 _ACEOF
3670 cat confdefs.h >>conftest.$ac_ext
3671 cat >>conftest.$ac_ext <<_ACEOF
3672 /* end confdefs.h. */
3673 #ifdef __STDC__
3674 # include <limits.h>
3675 #else
3676 # include <assert.h>
3677 #endif
3678 Syntax error
3679 _ACEOF
3680 if { (ac_try="$ac_cpp conftest.$ac_ext"
3681 case "(($ac_try" in
3682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683 *) ac_try_echo=$ac_try;;
3684 esac
3685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3687 ac_status=$?
3688 grep -v '^ *+' conftest.er1 >conftest.err
3689 rm -f conftest.er1
3690 cat conftest.err >&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } >/dev/null && {
3693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3694 test ! -s conftest.err
3695 }; then
3697 else
3698 echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.$ac_ext >&5
3701 # Broken: fails on valid input.
3702 continue
3705 rm -f conftest.err conftest.$ac_ext
3707 # OK, works on sane cases. Now check whether nonexistent headers
3708 # can be detected and how.
3709 cat >conftest.$ac_ext <<_ACEOF
3710 /* confdefs.h. */
3711 _ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3715 #include <ac_nonexistent.h>
3716 _ACEOF
3717 if { (ac_try="$ac_cpp conftest.$ac_ext"
3718 case "(($ac_try" in
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3721 esac
3722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3724 ac_status=$?
3725 grep -v '^ *+' conftest.er1 >conftest.err
3726 rm -f conftest.er1
3727 cat conftest.err >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } >/dev/null && {
3730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3731 test ! -s conftest.err
3732 }; then
3733 # Broken: success on invalid input.
3734 continue
3735 else
3736 echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3739 # Passes both tests.
3740 ac_preproc_ok=:
3741 break
3744 rm -f conftest.err conftest.$ac_ext
3746 done
3747 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3748 rm -f conftest.err conftest.$ac_ext
3749 if $ac_preproc_ok; then
3750 break
3753 done
3754 ac_cv_prog_CPP=$CPP
3757 CPP=$ac_cv_prog_CPP
3758 else
3759 ac_cv_prog_CPP=$CPP
3761 { echo "$as_me:$LINENO: result: $CPP" >&5
3762 echo "${ECHO_T}$CPP" >&6; }
3763 ac_preproc_ok=false
3764 for ac_c_preproc_warn_flag in '' yes
3766 # Use a header file that comes with gcc, so configuring glibc
3767 # with a fresh cross-compiler works.
3768 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3769 # <limits.h> exists even on freestanding compilers.
3770 # On the NeXT, cc -E runs the code through the compiler's parser,
3771 # not just through cpp. "Syntax error" is here to catch this case.
3772 cat >conftest.$ac_ext <<_ACEOF
3773 /* confdefs.h. */
3774 _ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h. */
3778 #ifdef __STDC__
3779 # include <limits.h>
3780 #else
3781 # include <assert.h>
3782 #endif
3783 Syntax error
3784 _ACEOF
3785 if { (ac_try="$ac_cpp conftest.$ac_ext"
3786 case "(($ac_try" in
3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788 *) ac_try_echo=$ac_try;;
3789 esac
3790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3792 ac_status=$?
3793 grep -v '^ *+' conftest.er1 >conftest.err
3794 rm -f conftest.er1
3795 cat conftest.err >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); } >/dev/null && {
3798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3799 test ! -s conftest.err
3800 }; then
3802 else
3803 echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3806 # Broken: fails on valid input.
3807 continue
3810 rm -f conftest.err conftest.$ac_ext
3812 # OK, works on sane cases. Now check whether nonexistent headers
3813 # can be detected and how.
3814 cat >conftest.$ac_ext <<_ACEOF
3815 /* confdefs.h. */
3816 _ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h. */
3820 #include <ac_nonexistent.h>
3821 _ACEOF
3822 if { (ac_try="$ac_cpp conftest.$ac_ext"
3823 case "(($ac_try" in
3824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825 *) ac_try_echo=$ac_try;;
3826 esac
3827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3829 ac_status=$?
3830 grep -v '^ *+' conftest.er1 >conftest.err
3831 rm -f conftest.er1
3832 cat conftest.err >&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } >/dev/null && {
3835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3836 test ! -s conftest.err
3837 }; then
3838 # Broken: success on invalid input.
3839 continue
3840 else
3841 echo "$as_me: failed program was:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3844 # Passes both tests.
3845 ac_preproc_ok=:
3846 break
3849 rm -f conftest.err conftest.$ac_ext
3851 done
3852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3853 rm -f conftest.err conftest.$ac_ext
3854 if $ac_preproc_ok; then
3856 else
3857 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3858 See \`config.log' for more details." >&5
3859 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3860 See \`config.log' for more details." >&2;}
3861 { (exit 1); exit 1; }; }
3864 ac_ext=c
3865 ac_cpp='$CPP $CPPFLAGS'
3866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3871 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3872 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3873 if test "${ac_cv_path_GREP+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3875 else
3876 # Extract the first word of "grep ggrep" to use in msg output
3877 if test -z "$GREP"; then
3878 set dummy grep ggrep; ac_prog_name=$2
3879 if test "${ac_cv_path_GREP+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3881 else
3882 ac_path_GREP_found=false
3883 # Loop through the user's path and test for each of PROGNAME-LIST
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3887 IFS=$as_save_IFS
3888 test -z "$as_dir" && as_dir=.
3889 for ac_prog in grep ggrep; do
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3892 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3893 # Check for GNU ac_path_GREP and select it if it is found.
3894 # Check for GNU $ac_path_GREP
3895 case `"$ac_path_GREP" --version 2>&1` in
3896 *GNU*)
3897 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3899 ac_count=0
3900 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3901 while :
3903 cat "conftest.in" "conftest.in" >"conftest.tmp"
3904 mv "conftest.tmp" "conftest.in"
3905 cp "conftest.in" "conftest.nl"
3906 echo 'GREP' >> "conftest.nl"
3907 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3908 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3909 ac_count=`expr $ac_count + 1`
3910 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3911 # Best one so far, save it but keep looking for a better one
3912 ac_cv_path_GREP="$ac_path_GREP"
3913 ac_path_GREP_max=$ac_count
3915 # 10*(2^10) chars as input seems more than enough
3916 test $ac_count -gt 10 && break
3917 done
3918 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3919 esac
3922 $ac_path_GREP_found && break 3
3923 done
3924 done
3926 done
3927 IFS=$as_save_IFS
3932 GREP="$ac_cv_path_GREP"
3933 if test -z "$GREP"; then
3934 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3935 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3936 { (exit 1); exit 1; }; }
3939 else
3940 ac_cv_path_GREP=$GREP
3945 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3946 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3947 GREP="$ac_cv_path_GREP"
3950 { echo "$as_me:$LINENO: checking for egrep" >&5
3951 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3952 if test "${ac_cv_path_EGREP+set}" = set; then
3953 echo $ECHO_N "(cached) $ECHO_C" >&6
3954 else
3955 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3956 then ac_cv_path_EGREP="$GREP -E"
3957 else
3958 # Extract the first word of "egrep" to use in msg output
3959 if test -z "$EGREP"; then
3960 set dummy egrep; ac_prog_name=$2
3961 if test "${ac_cv_path_EGREP+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 else
3964 ac_path_EGREP_found=false
3965 # Loop through the user's path and test for each of PROGNAME-LIST
3966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3969 IFS=$as_save_IFS
3970 test -z "$as_dir" && as_dir=.
3971 for ac_prog in egrep; do
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3974 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3975 # Check for GNU ac_path_EGREP and select it if it is found.
3976 # Check for GNU $ac_path_EGREP
3977 case `"$ac_path_EGREP" --version 2>&1` in
3978 *GNU*)
3979 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3981 ac_count=0
3982 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3983 while :
3985 cat "conftest.in" "conftest.in" >"conftest.tmp"
3986 mv "conftest.tmp" "conftest.in"
3987 cp "conftest.in" "conftest.nl"
3988 echo 'EGREP' >> "conftest.nl"
3989 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3990 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3991 ac_count=`expr $ac_count + 1`
3992 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3993 # Best one so far, save it but keep looking for a better one
3994 ac_cv_path_EGREP="$ac_path_EGREP"
3995 ac_path_EGREP_max=$ac_count
3997 # 10*(2^10) chars as input seems more than enough
3998 test $ac_count -gt 10 && break
3999 done
4000 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4001 esac
4004 $ac_path_EGREP_found && break 3
4005 done
4006 done
4008 done
4009 IFS=$as_save_IFS
4014 EGREP="$ac_cv_path_EGREP"
4015 if test -z "$EGREP"; then
4016 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4017 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4018 { (exit 1); exit 1; }; }
4021 else
4022 ac_cv_path_EGREP=$EGREP
4028 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4029 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4030 EGREP="$ac_cv_path_EGREP"
4033 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4034 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4035 if test "${ac_cv_header_stdc+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 else
4038 cat >conftest.$ac_ext <<_ACEOF
4039 /* confdefs.h. */
4040 _ACEOF
4041 cat confdefs.h >>conftest.$ac_ext
4042 cat >>conftest.$ac_ext <<_ACEOF
4043 /* end confdefs.h. */
4044 #include <stdlib.h>
4045 #include <stdarg.h>
4046 #include <string.h>
4047 #include <float.h>
4050 main ()
4054 return 0;
4056 _ACEOF
4057 rm -f conftest.$ac_objext
4058 if { (ac_try="$ac_compile"
4059 case "(($ac_try" in
4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061 *) ac_try_echo=$ac_try;;
4062 esac
4063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4064 (eval "$ac_compile") 2>conftest.er1
4065 ac_status=$?
4066 grep -v '^ *+' conftest.er1 >conftest.err
4067 rm -f conftest.er1
4068 cat conftest.err >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } && {
4071 test -z "$ac_c_werror_flag" ||
4072 test ! -s conftest.err
4073 } && test -s conftest.$ac_objext; then
4074 ac_cv_header_stdc=yes
4075 else
4076 echo "$as_me: failed program was:" >&5
4077 sed 's/^/| /' conftest.$ac_ext >&5
4079 ac_cv_header_stdc=no
4082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084 if test $ac_cv_header_stdc = yes; then
4085 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4086 cat >conftest.$ac_ext <<_ACEOF
4087 /* confdefs.h. */
4088 _ACEOF
4089 cat confdefs.h >>conftest.$ac_ext
4090 cat >>conftest.$ac_ext <<_ACEOF
4091 /* end confdefs.h. */
4092 #include <string.h>
4094 _ACEOF
4095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4096 $EGREP "memchr" >/dev/null 2>&1; then
4098 else
4099 ac_cv_header_stdc=no
4101 rm -f conftest*
4105 if test $ac_cv_header_stdc = yes; then
4106 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4107 cat >conftest.$ac_ext <<_ACEOF
4108 /* confdefs.h. */
4109 _ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h. */
4113 #include <stdlib.h>
4115 _ACEOF
4116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4117 $EGREP "free" >/dev/null 2>&1; then
4119 else
4120 ac_cv_header_stdc=no
4122 rm -f conftest*
4126 if test $ac_cv_header_stdc = yes; then
4127 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4128 if test "$cross_compiling" = yes; then
4130 else
4131 cat >conftest.$ac_ext <<_ACEOF
4132 /* confdefs.h. */
4133 _ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h. */
4137 #include <ctype.h>
4138 #include <stdlib.h>
4139 #if ((' ' & 0x0FF) == 0x020)
4140 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4141 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4142 #else
4143 # define ISLOWER(c) \
4144 (('a' <= (c) && (c) <= 'i') \
4145 || ('j' <= (c) && (c) <= 'r') \
4146 || ('s' <= (c) && (c) <= 'z'))
4147 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4148 #endif
4150 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4152 main ()
4154 int i;
4155 for (i = 0; i < 256; i++)
4156 if (XOR (islower (i), ISLOWER (i))
4157 || toupper (i) != TOUPPER (i))
4158 return 2;
4159 return 0;
4161 _ACEOF
4162 rm -f conftest$ac_exeext
4163 if { (ac_try="$ac_link"
4164 case "(($ac_try" in
4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166 *) ac_try_echo=$ac_try;;
4167 esac
4168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169 (eval "$ac_link") 2>&5
4170 ac_status=$?
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4173 { (case "(($ac_try" in
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4176 esac
4177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178 (eval "$ac_try") 2>&5
4179 ac_status=$?
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); }; }; then
4183 else
4184 echo "$as_me: program exited with status $ac_status" >&5
4185 echo "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.$ac_ext >&5
4188 ( exit $ac_status )
4189 ac_cv_header_stdc=no
4191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4197 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4198 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4199 if test $ac_cv_header_stdc = yes; then
4201 cat >>confdefs.h <<\_ACEOF
4202 #define STDC_HEADERS 1
4203 _ACEOF
4207 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4217 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4218 inttypes.h stdint.h unistd.h
4220 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4224 echo $ECHO_N "(cached) $ECHO_C" >&6
4225 else
4226 cat >conftest.$ac_ext <<_ACEOF
4227 /* confdefs.h. */
4228 _ACEOF
4229 cat confdefs.h >>conftest.$ac_ext
4230 cat >>conftest.$ac_ext <<_ACEOF
4231 /* end confdefs.h. */
4232 $ac_includes_default
4234 #include <$ac_header>
4235 _ACEOF
4236 rm -f conftest.$ac_objext
4237 if { (ac_try="$ac_compile"
4238 case "(($ac_try" in
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4241 esac
4242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4243 (eval "$ac_compile") 2>conftest.er1
4244 ac_status=$?
4245 grep -v '^ *+' conftest.er1 >conftest.err
4246 rm -f conftest.er1
4247 cat conftest.err >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } && {
4250 test -z "$ac_c_werror_flag" ||
4251 test ! -s conftest.err
4252 } && test -s conftest.$ac_objext; then
4253 eval "$as_ac_Header=yes"
4254 else
4255 echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4258 eval "$as_ac_Header=no"
4261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4263 ac_res=`eval echo '${'$as_ac_Header'}'`
4264 { echo "$as_me:$LINENO: result: $ac_res" >&5
4265 echo "${ECHO_T}$ac_res" >&6; }
4266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4267 cat >>confdefs.h <<_ACEOF
4268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4269 _ACEOF
4273 done
4276 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4277 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4278 if test "${ac_cv_c_bigendian+set}" = set; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 else
4281 # See if sys/param.h defines the BYTE_ORDER macro.
4282 cat >conftest.$ac_ext <<_ACEOF
4283 /* confdefs.h. */
4284 _ACEOF
4285 cat confdefs.h >>conftest.$ac_ext
4286 cat >>conftest.$ac_ext <<_ACEOF
4287 /* end confdefs.h. */
4288 #include <sys/types.h>
4289 #include <sys/param.h>
4292 main ()
4294 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4295 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4296 bogus endian macros
4297 #endif
4300 return 0;
4302 _ACEOF
4303 rm -f conftest.$ac_objext
4304 if { (ac_try="$ac_compile"
4305 case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4308 esac
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_compile") 2>conftest.er1
4311 ac_status=$?
4312 grep -v '^ *+' conftest.er1 >conftest.err
4313 rm -f conftest.er1
4314 cat conftest.err >&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); } && {
4317 test -z "$ac_c_werror_flag" ||
4318 test ! -s conftest.err
4319 } && test -s conftest.$ac_objext; then
4320 # It does; now see whether it defined to BIG_ENDIAN or not.
4321 cat >conftest.$ac_ext <<_ACEOF
4322 /* confdefs.h. */
4323 _ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h. */
4327 #include <sys/types.h>
4328 #include <sys/param.h>
4331 main ()
4333 #if BYTE_ORDER != BIG_ENDIAN
4334 not big endian
4335 #endif
4338 return 0;
4340 _ACEOF
4341 rm -f conftest.$ac_objext
4342 if { (ac_try="$ac_compile"
4343 case "(($ac_try" in
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4346 esac
4347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348 (eval "$ac_compile") 2>conftest.er1
4349 ac_status=$?
4350 grep -v '^ *+' conftest.er1 >conftest.err
4351 rm -f conftest.er1
4352 cat conftest.err >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } && {
4355 test -z "$ac_c_werror_flag" ||
4356 test ! -s conftest.err
4357 } && test -s conftest.$ac_objext; then
4358 ac_cv_c_bigendian=yes
4359 else
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4363 ac_cv_c_bigendian=no
4366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4367 else
4368 echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4371 # It does not; compile a test program.
4372 if test "$cross_compiling" = yes; then
4373 # try to guess the endianness by grepping values into an object file
4374 ac_cv_c_bigendian=unknown
4375 cat >conftest.$ac_ext <<_ACEOF
4376 /* confdefs.h. */
4377 _ACEOF
4378 cat confdefs.h >>conftest.$ac_ext
4379 cat >>conftest.$ac_ext <<_ACEOF
4380 /* end confdefs.h. */
4381 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4382 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4383 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4384 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4385 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4386 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4388 main ()
4390 _ascii (); _ebcdic ();
4392 return 0;
4394 _ACEOF
4395 rm -f conftest.$ac_objext
4396 if { (ac_try="$ac_compile"
4397 case "(($ac_try" in
4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4400 esac
4401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402 (eval "$ac_compile") 2>conftest.er1
4403 ac_status=$?
4404 grep -v '^ *+' conftest.er1 >conftest.err
4405 rm -f conftest.er1
4406 cat conftest.err >&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); } && {
4409 test -z "$ac_c_werror_flag" ||
4410 test ! -s conftest.err
4411 } && test -s conftest.$ac_objext; then
4412 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4413 ac_cv_c_bigendian=yes
4415 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4416 if test "$ac_cv_c_bigendian" = unknown; then
4417 ac_cv_c_bigendian=no
4418 else
4419 # finding both strings is unlikely to happen, but who knows?
4420 ac_cv_c_bigendian=unknown
4423 else
4424 echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.$ac_ext >&5
4430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4431 else
4432 cat >conftest.$ac_ext <<_ACEOF
4433 /* confdefs.h. */
4434 _ACEOF
4435 cat confdefs.h >>conftest.$ac_ext
4436 cat >>conftest.$ac_ext <<_ACEOF
4437 /* end confdefs.h. */
4438 $ac_includes_default
4440 main ()
4443 /* Are we little or big endian? From Harbison&Steele. */
4444 union
4446 long int l;
4447 char c[sizeof (long int)];
4448 } u;
4449 u.l = 1;
4450 return u.c[sizeof (long int) - 1] == 1;
4453 return 0;
4455 _ACEOF
4456 rm -f conftest$ac_exeext
4457 if { (ac_try="$ac_link"
4458 case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4461 esac
4462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463 (eval "$ac_link") 2>&5
4464 ac_status=$?
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4467 { (case "(($ac_try" in
4468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4469 *) ac_try_echo=$ac_try;;
4470 esac
4471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4472 (eval "$ac_try") 2>&5
4473 ac_status=$?
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; }; then
4476 ac_cv_c_bigendian=no
4477 else
4478 echo "$as_me: program exited with status $ac_status" >&5
4479 echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.$ac_ext >&5
4482 ( exit $ac_status )
4483 ac_cv_c_bigendian=yes
4485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4493 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4494 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4495 case $ac_cv_c_bigendian in
4496 yes)
4498 cat >>confdefs.h <<\_ACEOF
4499 #define WORDS_BIGENDIAN 1
4500 _ACEOF
4505 { { echo "$as_me:$LINENO: error: unknown endianness
4506 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4507 echo "$as_me: error: unknown endianness
4508 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4509 { (exit 1); exit 1; }; } ;;
4510 esac
4512 { echo "$as_me:$LINENO: checking for void *" >&5
4513 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
4514 if test "${ac_cv_type_void_p+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4516 else
4517 cat >conftest.$ac_ext <<_ACEOF
4518 /* confdefs.h. */
4519 _ACEOF
4520 cat confdefs.h >>conftest.$ac_ext
4521 cat >>conftest.$ac_ext <<_ACEOF
4522 /* end confdefs.h. */
4523 $ac_includes_default
4524 typedef void * ac__type_new_;
4526 main ()
4528 if ((ac__type_new_ *) 0)
4529 return 0;
4530 if (sizeof (ac__type_new_))
4531 return 0;
4533 return 0;
4535 _ACEOF
4536 rm -f conftest.$ac_objext
4537 if { (ac_try="$ac_compile"
4538 case "(($ac_try" in
4539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540 *) ac_try_echo=$ac_try;;
4541 esac
4542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4543 (eval "$ac_compile") 2>conftest.er1
4544 ac_status=$?
4545 grep -v '^ *+' conftest.er1 >conftest.err
4546 rm -f conftest.er1
4547 cat conftest.err >&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); } && {
4550 test -z "$ac_c_werror_flag" ||
4551 test ! -s conftest.err
4552 } && test -s conftest.$ac_objext; then
4553 ac_cv_type_void_p=yes
4554 else
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4558 ac_cv_type_void_p=no
4561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4563 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4564 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
4566 # The cast to long int works around a bug in the HP C Compiler
4567 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4568 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4569 # This bug is HP SR number 8606223364.
4570 { echo "$as_me:$LINENO: checking size of void *" >&5
4571 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
4572 if test "${ac_cv_sizeof_void_p+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 else
4575 if test "$cross_compiling" = yes; then
4576 # Depending upon the size, compute the lo and hi bounds.
4577 cat >conftest.$ac_ext <<_ACEOF
4578 /* confdefs.h. */
4579 _ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4583 $ac_includes_default
4584 typedef void * ac__type_sizeof_;
4586 main ()
4588 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4589 test_array [0] = 0
4592 return 0;
4594 _ACEOF
4595 rm -f conftest.$ac_objext
4596 if { (ac_try="$ac_compile"
4597 case "(($ac_try" in
4598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599 *) ac_try_echo=$ac_try;;
4600 esac
4601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602 (eval "$ac_compile") 2>conftest.er1
4603 ac_status=$?
4604 grep -v '^ *+' conftest.er1 >conftest.err
4605 rm -f conftest.er1
4606 cat conftest.err >&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } && {
4609 test -z "$ac_c_werror_flag" ||
4610 test ! -s conftest.err
4611 } && test -s conftest.$ac_objext; then
4612 ac_lo=0 ac_mid=0
4613 while :; do
4614 cat >conftest.$ac_ext <<_ACEOF
4615 /* confdefs.h. */
4616 _ACEOF
4617 cat confdefs.h >>conftest.$ac_ext
4618 cat >>conftest.$ac_ext <<_ACEOF
4619 /* end confdefs.h. */
4620 $ac_includes_default
4621 typedef void * ac__type_sizeof_;
4623 main ()
4625 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4626 test_array [0] = 0
4629 return 0;
4631 _ACEOF
4632 rm -f conftest.$ac_objext
4633 if { (ac_try="$ac_compile"
4634 case "(($ac_try" in
4635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636 *) ac_try_echo=$ac_try;;
4637 esac
4638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4639 (eval "$ac_compile") 2>conftest.er1
4640 ac_status=$?
4641 grep -v '^ *+' conftest.er1 >conftest.err
4642 rm -f conftest.er1
4643 cat conftest.err >&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); } && {
4646 test -z "$ac_c_werror_flag" ||
4647 test ! -s conftest.err
4648 } && test -s conftest.$ac_objext; then
4649 ac_hi=$ac_mid; break
4650 else
4651 echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.$ac_ext >&5
4654 ac_lo=`expr $ac_mid + 1`
4655 if test $ac_lo -le $ac_mid; then
4656 ac_lo= ac_hi=
4657 break
4659 ac_mid=`expr 2 '*' $ac_mid + 1`
4662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663 done
4664 else
4665 echo "$as_me: failed program was:" >&5
4666 sed 's/^/| /' conftest.$ac_ext >&5
4668 cat >conftest.$ac_ext <<_ACEOF
4669 /* confdefs.h. */
4670 _ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4674 $ac_includes_default
4675 typedef void * ac__type_sizeof_;
4677 main ()
4679 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4680 test_array [0] = 0
4683 return 0;
4685 _ACEOF
4686 rm -f conftest.$ac_objext
4687 if { (ac_try="$ac_compile"
4688 case "(($ac_try" in
4689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4690 *) ac_try_echo=$ac_try;;
4691 esac
4692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4693 (eval "$ac_compile") 2>conftest.er1
4694 ac_status=$?
4695 grep -v '^ *+' conftest.er1 >conftest.err
4696 rm -f conftest.er1
4697 cat conftest.err >&5
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); } && {
4700 test -z "$ac_c_werror_flag" ||
4701 test ! -s conftest.err
4702 } && test -s conftest.$ac_objext; then
4703 ac_hi=-1 ac_mid=-1
4704 while :; do
4705 cat >conftest.$ac_ext <<_ACEOF
4706 /* confdefs.h. */
4707 _ACEOF
4708 cat confdefs.h >>conftest.$ac_ext
4709 cat >>conftest.$ac_ext <<_ACEOF
4710 /* end confdefs.h. */
4711 $ac_includes_default
4712 typedef void * ac__type_sizeof_;
4714 main ()
4716 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4717 test_array [0] = 0
4720 return 0;
4722 _ACEOF
4723 rm -f conftest.$ac_objext
4724 if { (ac_try="$ac_compile"
4725 case "(($ac_try" in
4726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727 *) ac_try_echo=$ac_try;;
4728 esac
4729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4730 (eval "$ac_compile") 2>conftest.er1
4731 ac_status=$?
4732 grep -v '^ *+' conftest.er1 >conftest.err
4733 rm -f conftest.er1
4734 cat conftest.err >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } && {
4737 test -z "$ac_c_werror_flag" ||
4738 test ! -s conftest.err
4739 } && test -s conftest.$ac_objext; then
4740 ac_lo=$ac_mid; break
4741 else
4742 echo "$as_me: failed program was:" >&5
4743 sed 's/^/| /' conftest.$ac_ext >&5
4745 ac_hi=`expr '(' $ac_mid ')' - 1`
4746 if test $ac_mid -le $ac_hi; then
4747 ac_lo= ac_hi=
4748 break
4750 ac_mid=`expr 2 '*' $ac_mid`
4753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4754 done
4755 else
4756 echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4759 ac_lo= ac_hi=
4762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766 # Binary search between lo and hi bounds.
4767 while test "x$ac_lo" != "x$ac_hi"; do
4768 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4769 cat >conftest.$ac_ext <<_ACEOF
4770 /* confdefs.h. */
4771 _ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h. */
4775 $ac_includes_default
4776 typedef void * ac__type_sizeof_;
4778 main ()
4780 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4781 test_array [0] = 0
4784 return 0;
4786 _ACEOF
4787 rm -f conftest.$ac_objext
4788 if { (ac_try="$ac_compile"
4789 case "(($ac_try" in
4790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4791 *) ac_try_echo=$ac_try;;
4792 esac
4793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4794 (eval "$ac_compile") 2>conftest.er1
4795 ac_status=$?
4796 grep -v '^ *+' conftest.er1 >conftest.err
4797 rm -f conftest.er1
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } && {
4801 test -z "$ac_c_werror_flag" ||
4802 test ! -s conftest.err
4803 } && test -s conftest.$ac_objext; then
4804 ac_hi=$ac_mid
4805 else
4806 echo "$as_me: failed program was:" >&5
4807 sed 's/^/| /' conftest.$ac_ext >&5
4809 ac_lo=`expr '(' $ac_mid ')' + 1`
4812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813 done
4814 case $ac_lo in
4815 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4816 '') if test "$ac_cv_type_void_p" = yes; then
4817 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4818 See \`config.log' for more details." >&5
4819 echo "$as_me: error: cannot compute sizeof (void *)
4820 See \`config.log' for more details." >&2;}
4821 { (exit 77); exit 77; }; }
4822 else
4823 ac_cv_sizeof_void_p=0
4824 fi ;;
4825 esac
4826 else
4827 cat >conftest.$ac_ext <<_ACEOF
4828 /* confdefs.h. */
4829 _ACEOF
4830 cat confdefs.h >>conftest.$ac_ext
4831 cat >>conftest.$ac_ext <<_ACEOF
4832 /* end confdefs.h. */
4833 $ac_includes_default
4834 typedef void * ac__type_sizeof_;
4835 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4836 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4837 #include <stdio.h>
4838 #include <stdlib.h>
4840 main ()
4843 FILE *f = fopen ("conftest.val", "w");
4844 if (! f)
4845 return 1;
4846 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4848 long int i = longval ();
4849 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4850 return 1;
4851 fprintf (f, "%ld\n", i);
4853 else
4855 unsigned long int i = ulongval ();
4856 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4857 return 1;
4858 fprintf (f, "%lu\n", i);
4860 return ferror (f) || fclose (f) != 0;
4863 return 0;
4865 _ACEOF
4866 rm -f conftest$ac_exeext
4867 if { (ac_try="$ac_link"
4868 case "(($ac_try" in
4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870 *) ac_try_echo=$ac_try;;
4871 esac
4872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4873 (eval "$ac_link") 2>&5
4874 ac_status=$?
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4877 { (case "(($ac_try" in
4878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4879 *) ac_try_echo=$ac_try;;
4880 esac
4881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4882 (eval "$ac_try") 2>&5
4883 ac_status=$?
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 ac_cv_sizeof_void_p=`cat conftest.val`
4887 else
4888 echo "$as_me: program exited with status $ac_status" >&5
4889 echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.$ac_ext >&5
4892 ( exit $ac_status )
4893 if test "$ac_cv_type_void_p" = yes; then
4894 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
4895 See \`config.log' for more details." >&5
4896 echo "$as_me: error: cannot compute sizeof (void *)
4897 See \`config.log' for more details." >&2;}
4898 { (exit 77); exit 77; }; }
4899 else
4900 ac_cv_sizeof_void_p=0
4903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4905 rm -f conftest.val
4907 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4908 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
4912 cat >>confdefs.h <<_ACEOF
4913 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4914 _ACEOF
4917 { echo "$as_me:$LINENO: checking for long" >&5
4918 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
4919 if test "${ac_cv_type_long+set}" = set; then
4920 echo $ECHO_N "(cached) $ECHO_C" >&6
4921 else
4922 cat >conftest.$ac_ext <<_ACEOF
4923 /* confdefs.h. */
4924 _ACEOF
4925 cat confdefs.h >>conftest.$ac_ext
4926 cat >>conftest.$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4928 $ac_includes_default
4929 typedef long ac__type_new_;
4931 main ()
4933 if ((ac__type_new_ *) 0)
4934 return 0;
4935 if (sizeof (ac__type_new_))
4936 return 0;
4938 return 0;
4940 _ACEOF
4941 rm -f conftest.$ac_objext
4942 if { (ac_try="$ac_compile"
4943 case "(($ac_try" in
4944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4945 *) ac_try_echo=$ac_try;;
4946 esac
4947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4948 (eval "$ac_compile") 2>conftest.er1
4949 ac_status=$?
4950 grep -v '^ *+' conftest.er1 >conftest.err
4951 rm -f conftest.er1
4952 cat conftest.err >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } && {
4955 test -z "$ac_c_werror_flag" ||
4956 test ! -s conftest.err
4957 } && test -s conftest.$ac_objext; then
4958 ac_cv_type_long=yes
4959 else
4960 echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.$ac_ext >&5
4963 ac_cv_type_long=no
4966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4968 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4969 echo "${ECHO_T}$ac_cv_type_long" >&6; }
4971 # The cast to long int works around a bug in the HP C Compiler
4972 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4973 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4974 # This bug is HP SR number 8606223364.
4975 { echo "$as_me:$LINENO: checking size of long" >&5
4976 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
4977 if test "${ac_cv_sizeof_long+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4979 else
4980 if test "$cross_compiling" = yes; then
4981 # Depending upon the size, compute the lo and hi bounds.
4982 cat >conftest.$ac_ext <<_ACEOF
4983 /* confdefs.h. */
4984 _ACEOF
4985 cat confdefs.h >>conftest.$ac_ext
4986 cat >>conftest.$ac_ext <<_ACEOF
4987 /* end confdefs.h. */
4988 $ac_includes_default
4989 typedef long ac__type_sizeof_;
4991 main ()
4993 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4994 test_array [0] = 0
4997 return 0;
4999 _ACEOF
5000 rm -f conftest.$ac_objext
5001 if { (ac_try="$ac_compile"
5002 case "(($ac_try" in
5003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5004 *) ac_try_echo=$ac_try;;
5005 esac
5006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5007 (eval "$ac_compile") 2>conftest.er1
5008 ac_status=$?
5009 grep -v '^ *+' conftest.er1 >conftest.err
5010 rm -f conftest.er1
5011 cat conftest.err >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } && {
5014 test -z "$ac_c_werror_flag" ||
5015 test ! -s conftest.err
5016 } && test -s conftest.$ac_objext; then
5017 ac_lo=0 ac_mid=0
5018 while :; do
5019 cat >conftest.$ac_ext <<_ACEOF
5020 /* confdefs.h. */
5021 _ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5025 $ac_includes_default
5026 typedef long ac__type_sizeof_;
5028 main ()
5030 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5031 test_array [0] = 0
5034 return 0;
5036 _ACEOF
5037 rm -f conftest.$ac_objext
5038 if { (ac_try="$ac_compile"
5039 case "(($ac_try" in
5040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5041 *) ac_try_echo=$ac_try;;
5042 esac
5043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5044 (eval "$ac_compile") 2>conftest.er1
5045 ac_status=$?
5046 grep -v '^ *+' conftest.er1 >conftest.err
5047 rm -f conftest.er1
5048 cat conftest.err >&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); } && {
5051 test -z "$ac_c_werror_flag" ||
5052 test ! -s conftest.err
5053 } && test -s conftest.$ac_objext; then
5054 ac_hi=$ac_mid; break
5055 else
5056 echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5059 ac_lo=`expr $ac_mid + 1`
5060 if test $ac_lo -le $ac_mid; then
5061 ac_lo= ac_hi=
5062 break
5064 ac_mid=`expr 2 '*' $ac_mid + 1`
5067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5068 done
5069 else
5070 echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.$ac_ext >&5
5073 cat >conftest.$ac_ext <<_ACEOF
5074 /* confdefs.h. */
5075 _ACEOF
5076 cat confdefs.h >>conftest.$ac_ext
5077 cat >>conftest.$ac_ext <<_ACEOF
5078 /* end confdefs.h. */
5079 $ac_includes_default
5080 typedef long ac__type_sizeof_;
5082 main ()
5084 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5085 test_array [0] = 0
5088 return 0;
5090 _ACEOF
5091 rm -f conftest.$ac_objext
5092 if { (ac_try="$ac_compile"
5093 case "(($ac_try" in
5094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095 *) ac_try_echo=$ac_try;;
5096 esac
5097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5098 (eval "$ac_compile") 2>conftest.er1
5099 ac_status=$?
5100 grep -v '^ *+' conftest.er1 >conftest.err
5101 rm -f conftest.er1
5102 cat conftest.err >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } && {
5105 test -z "$ac_c_werror_flag" ||
5106 test ! -s conftest.err
5107 } && test -s conftest.$ac_objext; then
5108 ac_hi=-1 ac_mid=-1
5109 while :; do
5110 cat >conftest.$ac_ext <<_ACEOF
5111 /* confdefs.h. */
5112 _ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h. */
5116 $ac_includes_default
5117 typedef long ac__type_sizeof_;
5119 main ()
5121 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5122 test_array [0] = 0
5125 return 0;
5127 _ACEOF
5128 rm -f conftest.$ac_objext
5129 if { (ac_try="$ac_compile"
5130 case "(($ac_try" in
5131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132 *) ac_try_echo=$ac_try;;
5133 esac
5134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5135 (eval "$ac_compile") 2>conftest.er1
5136 ac_status=$?
5137 grep -v '^ *+' conftest.er1 >conftest.err
5138 rm -f conftest.er1
5139 cat conftest.err >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } && {
5142 test -z "$ac_c_werror_flag" ||
5143 test ! -s conftest.err
5144 } && test -s conftest.$ac_objext; then
5145 ac_lo=$ac_mid; break
5146 else
5147 echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.$ac_ext >&5
5150 ac_hi=`expr '(' $ac_mid ')' - 1`
5151 if test $ac_mid -le $ac_hi; then
5152 ac_lo= ac_hi=
5153 break
5155 ac_mid=`expr 2 '*' $ac_mid`
5158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5159 done
5160 else
5161 echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.$ac_ext >&5
5164 ac_lo= ac_hi=
5167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5171 # Binary search between lo and hi bounds.
5172 while test "x$ac_lo" != "x$ac_hi"; do
5173 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5174 cat >conftest.$ac_ext <<_ACEOF
5175 /* confdefs.h. */
5176 _ACEOF
5177 cat confdefs.h >>conftest.$ac_ext
5178 cat >>conftest.$ac_ext <<_ACEOF
5179 /* end confdefs.h. */
5180 $ac_includes_default
5181 typedef long ac__type_sizeof_;
5183 main ()
5185 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5186 test_array [0] = 0
5189 return 0;
5191 _ACEOF
5192 rm -f conftest.$ac_objext
5193 if { (ac_try="$ac_compile"
5194 case "(($ac_try" in
5195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5196 *) ac_try_echo=$ac_try;;
5197 esac
5198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5199 (eval "$ac_compile") 2>conftest.er1
5200 ac_status=$?
5201 grep -v '^ *+' conftest.er1 >conftest.err
5202 rm -f conftest.er1
5203 cat conftest.err >&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } && {
5206 test -z "$ac_c_werror_flag" ||
5207 test ! -s conftest.err
5208 } && test -s conftest.$ac_objext; then
5209 ac_hi=$ac_mid
5210 else
5211 echo "$as_me: failed program was:" >&5
5212 sed 's/^/| /' conftest.$ac_ext >&5
5214 ac_lo=`expr '(' $ac_mid ')' + 1`
5217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5218 done
5219 case $ac_lo in
5220 ?*) ac_cv_sizeof_long=$ac_lo;;
5221 '') if test "$ac_cv_type_long" = yes; then
5222 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5223 See \`config.log' for more details." >&5
5224 echo "$as_me: error: cannot compute sizeof (long)
5225 See \`config.log' for more details." >&2;}
5226 { (exit 77); exit 77; }; }
5227 else
5228 ac_cv_sizeof_long=0
5229 fi ;;
5230 esac
5231 else
5232 cat >conftest.$ac_ext <<_ACEOF
5233 /* confdefs.h. */
5234 _ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h. */
5238 $ac_includes_default
5239 typedef long ac__type_sizeof_;
5240 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5241 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5242 #include <stdio.h>
5243 #include <stdlib.h>
5245 main ()
5248 FILE *f = fopen ("conftest.val", "w");
5249 if (! f)
5250 return 1;
5251 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5253 long int i = longval ();
5254 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5255 return 1;
5256 fprintf (f, "%ld\n", i);
5258 else
5260 unsigned long int i = ulongval ();
5261 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5262 return 1;
5263 fprintf (f, "%lu\n", i);
5265 return ferror (f) || fclose (f) != 0;
5268 return 0;
5270 _ACEOF
5271 rm -f conftest$ac_exeext
5272 if { (ac_try="$ac_link"
5273 case "(($ac_try" in
5274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5275 *) ac_try_echo=$ac_try;;
5276 esac
5277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5278 (eval "$ac_link") 2>&5
5279 ac_status=$?
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5282 { (case "(($ac_try" in
5283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5284 *) ac_try_echo=$ac_try;;
5285 esac
5286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5287 (eval "$ac_try") 2>&5
5288 ac_status=$?
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); }; }; then
5291 ac_cv_sizeof_long=`cat conftest.val`
5292 else
5293 echo "$as_me: program exited with status $ac_status" >&5
5294 echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5297 ( exit $ac_status )
5298 if test "$ac_cv_type_long" = yes; then
5299 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5300 See \`config.log' for more details." >&5
5301 echo "$as_me: error: cannot compute sizeof (long)
5302 See \`config.log' for more details." >&2;}
5303 { (exit 77); exit 77; }; }
5304 else
5305 ac_cv_sizeof_long=0
5308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5310 rm -f conftest.val
5312 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5313 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5317 cat >>confdefs.h <<_ACEOF
5318 #define SIZEOF_LONG $ac_cv_sizeof_long
5319 _ACEOF
5323 if test "x$host_m32" = x1; then
5324 # Force 32-bit mode.
5325 CFLAGS="$CFLAGS -m32"
5326 LDFLAGS="$LDFLAGS -m32"
5329 # Check LZO when compiling for the i386-pc.
5330 if test "$target_cpu"-"$platform" = i386-pc; then
5331 # Check whether --enable-lzo was given.
5332 if test "${enable_lzo+set}" = set; then
5333 enableval=$enable_lzo;
5336 if [ x"$enable_lzo" = xyes ]; then
5337 # There are three possibilities. LZO version 2 installed with the name
5338 # liblzo2, with the name liblzo, and LZO version 1.
5340 cat >>confdefs.h <<\_ACEOF
5341 #define ENABLE_LZO 1
5342 _ACEOF
5344 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo2" >&5
5345 echo $ECHO_N "checking for __lzo_init_v2 in -llzo2... $ECHO_C" >&6; }
5346 if test "${ac_cv_lib_lzo2___lzo_init_v2+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 else
5349 ac_check_lib_save_LIBS=$LIBS
5350 LIBS="-llzo2 $LIBS"
5351 cat >conftest.$ac_ext <<_ACEOF
5352 /* confdefs.h. */
5353 _ACEOF
5354 cat confdefs.h >>conftest.$ac_ext
5355 cat >>conftest.$ac_ext <<_ACEOF
5356 /* end confdefs.h. */
5358 /* Override any GCC internal prototype to avoid an error.
5359 Use char because int might match the return type of a GCC
5360 builtin and then its argument prototype would still apply. */
5361 #ifdef __cplusplus
5362 extern "C"
5363 #endif
5364 char __lzo_init_v2 ();
5366 main ()
5368 return __lzo_init_v2 ();
5370 return 0;
5372 _ACEOF
5373 rm -f conftest.$ac_objext conftest$ac_exeext
5374 if { (ac_try="$ac_link"
5375 case "(($ac_try" in
5376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377 *) ac_try_echo=$ac_try;;
5378 esac
5379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380 (eval "$ac_link") 2>conftest.er1
5381 ac_status=$?
5382 grep -v '^ *+' conftest.er1 >conftest.err
5383 rm -f conftest.er1
5384 cat conftest.err >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } && {
5387 test -z "$ac_c_werror_flag" ||
5388 test ! -s conftest.err
5389 } && test -s conftest$ac_exeext &&
5390 $as_test_x conftest$ac_exeext; then
5391 ac_cv_lib_lzo2___lzo_init_v2=yes
5392 else
5393 echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.$ac_ext >&5
5396 ac_cv_lib_lzo2___lzo_init_v2=no
5399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5400 conftest$ac_exeext conftest.$ac_ext
5401 LIBS=$ac_check_lib_save_LIBS
5403 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo2___lzo_init_v2" >&5
5404 echo "${ECHO_T}$ac_cv_lib_lzo2___lzo_init_v2" >&6; }
5405 if test $ac_cv_lib_lzo2___lzo_init_v2 = yes; then
5406 LIBLZO="-llzo2"
5407 else
5408 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo" >&5
5409 echo $ECHO_N "checking for __lzo_init_v2 in -llzo... $ECHO_C" >&6; }
5410 if test "${ac_cv_lib_lzo___lzo_init_v2+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 else
5413 ac_check_lib_save_LIBS=$LIBS
5414 LIBS="-llzo $LIBS"
5415 cat >conftest.$ac_ext <<_ACEOF
5416 /* confdefs.h. */
5417 _ACEOF
5418 cat confdefs.h >>conftest.$ac_ext
5419 cat >>conftest.$ac_ext <<_ACEOF
5420 /* end confdefs.h. */
5422 /* Override any GCC internal prototype to avoid an error.
5423 Use char because int might match the return type of a GCC
5424 builtin and then its argument prototype would still apply. */
5425 #ifdef __cplusplus
5426 extern "C"
5427 #endif
5428 char __lzo_init_v2 ();
5430 main ()
5432 return __lzo_init_v2 ();
5434 return 0;
5436 _ACEOF
5437 rm -f conftest.$ac_objext conftest$ac_exeext
5438 if { (ac_try="$ac_link"
5439 case "(($ac_try" in
5440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441 *) ac_try_echo=$ac_try;;
5442 esac
5443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444 (eval "$ac_link") 2>conftest.er1
5445 ac_status=$?
5446 grep -v '^ *+' conftest.er1 >conftest.err
5447 rm -f conftest.er1
5448 cat conftest.err >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } && {
5451 test -z "$ac_c_werror_flag" ||
5452 test ! -s conftest.err
5453 } && test -s conftest$ac_exeext &&
5454 $as_test_x conftest$ac_exeext; then
5455 ac_cv_lib_lzo___lzo_init_v2=yes
5456 else
5457 echo "$as_me: failed program was:" >&5
5458 sed 's/^/| /' conftest.$ac_ext >&5
5460 ac_cv_lib_lzo___lzo_init_v2=no
5463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5464 conftest$ac_exeext conftest.$ac_ext
5465 LIBS=$ac_check_lib_save_LIBS
5467 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init_v2" >&5
5468 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init_v2" >&6; }
5469 if test $ac_cv_lib_lzo___lzo_init_v2 = yes; then
5470 LIBLZO="-llzo"
5471 else
5472 { echo "$as_me:$LINENO: checking for __lzo_init2 in -llzo" >&5
5473 echo $ECHO_N "checking for __lzo_init2 in -llzo... $ECHO_C" >&6; }
5474 if test "${ac_cv_lib_lzo___lzo_init2+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 else
5477 ac_check_lib_save_LIBS=$LIBS
5478 LIBS="-llzo $LIBS"
5479 cat >conftest.$ac_ext <<_ACEOF
5480 /* confdefs.h. */
5481 _ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h. */
5486 /* Override any GCC internal prototype to avoid an error.
5487 Use char because int might match the return type of a GCC
5488 builtin and then its argument prototype would still apply. */
5489 #ifdef __cplusplus
5490 extern "C"
5491 #endif
5492 char __lzo_init2 ();
5494 main ()
5496 return __lzo_init2 ();
5498 return 0;
5500 _ACEOF
5501 rm -f conftest.$ac_objext conftest$ac_exeext
5502 if { (ac_try="$ac_link"
5503 case "(($ac_try" in
5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5506 esac
5507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508 (eval "$ac_link") 2>conftest.er1
5509 ac_status=$?
5510 grep -v '^ *+' conftest.er1 >conftest.err
5511 rm -f conftest.er1
5512 cat conftest.err >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } && {
5515 test -z "$ac_c_werror_flag" ||
5516 test ! -s conftest.err
5517 } && test -s conftest$ac_exeext &&
5518 $as_test_x conftest$ac_exeext; then
5519 ac_cv_lib_lzo___lzo_init2=yes
5520 else
5521 echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5524 ac_cv_lib_lzo___lzo_init2=no
5527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5528 conftest$ac_exeext conftest.$ac_ext
5529 LIBS=$ac_check_lib_save_LIBS
5531 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init2" >&5
5532 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init2" >&6; }
5533 if test $ac_cv_lib_lzo___lzo_init2 = yes; then
5534 LIBLZO="-llzo"
5535 else
5536 { { echo "$as_me:$LINENO: error: LZO library version 1.02 or later is required" >&5
5537 echo "$as_me: error: LZO library version 1.02 or later is required" >&2;}
5538 { (exit 1); exit 1; }; }
5546 LIBS="$LIBS $LIBLZO"
5547 { echo "$as_me:$LINENO: checking for lzo1x_999_compress" >&5
5548 echo $ECHO_N "checking for lzo1x_999_compress... $ECHO_C" >&6; }
5549 if test "${ac_cv_func_lzo1x_999_compress+set}" = set; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5551 else
5552 cat >conftest.$ac_ext <<_ACEOF
5553 /* confdefs.h. */
5554 _ACEOF
5555 cat confdefs.h >>conftest.$ac_ext
5556 cat >>conftest.$ac_ext <<_ACEOF
5557 /* end confdefs.h. */
5558 /* Define lzo1x_999_compress to an innocuous variant, in case <limits.h> declares lzo1x_999_compress.
5559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5560 #define lzo1x_999_compress innocuous_lzo1x_999_compress
5562 /* System header to define __stub macros and hopefully few prototypes,
5563 which can conflict with char lzo1x_999_compress (); below.
5564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5565 <limits.h> exists even on freestanding compilers. */
5567 #ifdef __STDC__
5568 # include <limits.h>
5569 #else
5570 # include <assert.h>
5571 #endif
5573 #undef lzo1x_999_compress
5575 /* Override any GCC internal prototype to avoid an error.
5576 Use char because int might match the return type of a GCC
5577 builtin and then its argument prototype would still apply. */
5578 #ifdef __cplusplus
5579 extern "C"
5580 #endif
5581 char lzo1x_999_compress ();
5582 /* The GNU C library defines this for functions which it implements
5583 to always fail with ENOSYS. Some functions are actually named
5584 something starting with __ and the normal name is an alias. */
5585 #if defined __stub_lzo1x_999_compress || defined __stub___lzo1x_999_compress
5586 choke me
5587 #endif
5590 main ()
5592 return lzo1x_999_compress ();
5594 return 0;
5596 _ACEOF
5597 rm -f conftest.$ac_objext conftest$ac_exeext
5598 if { (ac_try="$ac_link"
5599 case "(($ac_try" in
5600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5601 *) ac_try_echo=$ac_try;;
5602 esac
5603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5604 (eval "$ac_link") 2>conftest.er1
5605 ac_status=$?
5606 grep -v '^ *+' conftest.er1 >conftest.err
5607 rm -f conftest.er1
5608 cat conftest.err >&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); } && {
5611 test -z "$ac_c_werror_flag" ||
5612 test ! -s conftest.err
5613 } && test -s conftest$ac_exeext &&
5614 $as_test_x conftest$ac_exeext; then
5615 ac_cv_func_lzo1x_999_compress=yes
5616 else
5617 echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.$ac_ext >&5
5620 ac_cv_func_lzo1x_999_compress=no
5623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5624 conftest$ac_exeext conftest.$ac_ext
5626 { echo "$as_me:$LINENO: result: $ac_cv_func_lzo1x_999_compress" >&5
5627 echo "${ECHO_T}$ac_cv_func_lzo1x_999_compress" >&6; }
5628 if test $ac_cv_func_lzo1x_999_compress = yes; then
5630 else
5631 { { echo "$as_me:$LINENO: error: LZO1X-999 must be enabled" >&5
5632 echo "$as_me: error: LZO1X-999 must be enabled" >&2;}
5633 { (exit 1); exit 1; }; }
5637 # LZO version 2 uses lzo/lzo1x.h, while LZO version 1 uses lzo1x.h.
5640 for ac_header in lzo/lzo1x.h lzo1x.h
5642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 ac_res=`eval echo '${'$as_ac_Header'}'`
5650 { echo "$as_me:$LINENO: result: $ac_res" >&5
5651 echo "${ECHO_T}$ac_res" >&6; }
5652 else
5653 # Is the header compilable?
5654 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5655 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
5663 #include <$ac_header>
5664 _ACEOF
5665 rm -f conftest.$ac_objext
5666 if { (ac_try="$ac_compile"
5667 case "(($ac_try" in
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5670 esac
5671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5672 (eval "$ac_compile") 2>conftest.er1
5673 ac_status=$?
5674 grep -v '^ *+' conftest.er1 >conftest.err
5675 rm -f conftest.er1
5676 cat conftest.err >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } && {
5679 test -z "$ac_c_werror_flag" ||
5680 test ! -s conftest.err
5681 } && test -s conftest.$ac_objext; then
5682 ac_header_compiler=yes
5683 else
5684 echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.$ac_ext >&5
5687 ac_header_compiler=no
5690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5692 echo "${ECHO_T}$ac_header_compiler" >&6; }
5694 # Is the header present?
5695 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5697 cat >conftest.$ac_ext <<_ACEOF
5698 /* confdefs.h. */
5699 _ACEOF
5700 cat confdefs.h >>conftest.$ac_ext
5701 cat >>conftest.$ac_ext <<_ACEOF
5702 /* end confdefs.h. */
5703 #include <$ac_header>
5704 _ACEOF
5705 if { (ac_try="$ac_cpp conftest.$ac_ext"
5706 case "(($ac_try" in
5707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5708 *) ac_try_echo=$ac_try;;
5709 esac
5710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5712 ac_status=$?
5713 grep -v '^ *+' conftest.er1 >conftest.err
5714 rm -f conftest.er1
5715 cat conftest.err >&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); } >/dev/null && {
5718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5719 test ! -s conftest.err
5720 }; then
5721 ac_header_preproc=yes
5722 else
5723 echo "$as_me: failed program was:" >&5
5724 sed 's/^/| /' conftest.$ac_ext >&5
5726 ac_header_preproc=no
5729 rm -f conftest.err conftest.$ac_ext
5730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5731 echo "${ECHO_T}$ac_header_preproc" >&6; }
5733 # So? What about this header?
5734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5735 yes:no: )
5736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5740 ac_header_preproc=yes
5742 no:yes:* )
5743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5750 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5755 ( cat <<\_ASBOX
5756 ## ------------------------------- ##
5757 ## Report this to bug-grub@gnu.org ##
5758 ## ------------------------------- ##
5759 _ASBOX
5760 ) | sed "s/^/$as_me: WARNING: /" >&2
5762 esac
5763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 else
5768 eval "$as_ac_Header=\$ac_header_preproc"
5770 ac_res=`eval echo '${'$as_ac_Header'}'`
5771 { echo "$as_me:$LINENO: result: $ac_res" >&5
5772 echo "${ECHO_T}$ac_res" >&6; }
5775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5776 cat >>confdefs.h <<_ACEOF
5777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5778 _ACEOF
5782 done
5784 else
5786 cat >>confdefs.h <<\_ACEOF
5787 #define ENABLE_LZMA 1
5788 _ACEOF
5794 # Check for functions.
5798 for ac_func in posix_memalign memalign asprintf
5800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5801 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5803 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5805 else
5806 cat >conftest.$ac_ext <<_ACEOF
5807 /* confdefs.h. */
5808 _ACEOF
5809 cat confdefs.h >>conftest.$ac_ext
5810 cat >>conftest.$ac_ext <<_ACEOF
5811 /* end confdefs.h. */
5812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5814 #define $ac_func innocuous_$ac_func
5816 /* System header to define __stub macros and hopefully few prototypes,
5817 which can conflict with char $ac_func (); below.
5818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5819 <limits.h> exists even on freestanding compilers. */
5821 #ifdef __STDC__
5822 # include <limits.h>
5823 #else
5824 # include <assert.h>
5825 #endif
5827 #undef $ac_func
5829 /* Override any GCC internal prototype to avoid an error.
5830 Use char because int might match the return type of a GCC
5831 builtin and then its argument prototype would still apply. */
5832 #ifdef __cplusplus
5833 extern "C"
5834 #endif
5835 char $ac_func ();
5836 /* The GNU C library defines this for functions which it implements
5837 to always fail with ENOSYS. Some functions are actually named
5838 something starting with __ and the normal name is an alias. */
5839 #if defined __stub_$ac_func || defined __stub___$ac_func
5840 choke me
5841 #endif
5844 main ()
5846 return $ac_func ();
5848 return 0;
5850 _ACEOF
5851 rm -f conftest.$ac_objext conftest$ac_exeext
5852 if { (ac_try="$ac_link"
5853 case "(($ac_try" in
5854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855 *) ac_try_echo=$ac_try;;
5856 esac
5857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5858 (eval "$ac_link") 2>conftest.er1
5859 ac_status=$?
5860 grep -v '^ *+' conftest.er1 >conftest.err
5861 rm -f conftest.er1
5862 cat conftest.err >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } && {
5865 test -z "$ac_c_werror_flag" ||
5866 test ! -s conftest.err
5867 } && test -s conftest$ac_exeext &&
5868 $as_test_x conftest$ac_exeext; then
5869 eval "$as_ac_var=yes"
5870 else
5871 echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5874 eval "$as_ac_var=no"
5877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5878 conftest$ac_exeext conftest.$ac_ext
5880 ac_res=`eval echo '${'$as_ac_var'}'`
5881 { echo "$as_me:$LINENO: result: $ac_res" >&5
5882 echo "${ECHO_T}$ac_res" >&6; }
5883 if test `eval echo '${'$as_ac_var'}'` = yes; then
5884 cat >>confdefs.h <<_ACEOF
5885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5886 _ACEOF
5889 done
5893 # Check for target programs.
5897 # Use linker script if present, otherwise use builtin -N script.
5898 { echo "$as_me:$LINENO: checking for option to link raw image" >&5
5899 echo $ECHO_N "checking for option to link raw image... $ECHO_C" >&6; }
5900 if test -f "${srcdir}/conf/${target_cpu}-${platform}-${target_os}-img-ld.sc"; then
5901 TARGET_IMG_LDSCRIPT='$(top_srcdir)'"/conf/${target_cpu}-${platform}-${target_os}-img-ld.sc"
5902 TARGET_IMG_LDFLAGS="-Wl,-T${TARGET_IMG_LDSCRIPT}"
5903 TARGET_IMG_LDFLAGS_AC="-Wl,-T${srcdir}/conf/${target_cpu}-${platform}-${target_os}-img-ld.sc"
5904 else
5905 TARGET_IMG_LDSCRIPT=
5906 TARGET_IMG_LDFLAGS='-Wl,-N'
5907 TARGET_IMG_LDFLAGS_AC='-Wl,-N'
5911 { echo "$as_me:$LINENO: result: $TARGET_IMG_LDFLAGS_AC" >&5
5912 echo "${ECHO_T}$TARGET_IMG_LDFLAGS_AC" >&6; }
5914 # For platforms where ELF is not the default link format.
5915 { echo "$as_me:$LINENO: checking for command to convert module to ELF format" >&5
5916 echo $ECHO_N "checking for command to convert module to ELF format... $ECHO_C" >&6; }
5917 case "${host_os}:${target_os}" in
5918 cygwin:cygwin) TARGET_OBJ2ELF='grub-pe2elf' ;;
5919 *) ;;
5920 esac
5922 { echo "$as_me:$LINENO: result: $TARGET_OBJ2ELF" >&5
5923 echo "${ECHO_T}$TARGET_OBJ2ELF" >&6; }
5925 # For cross-compiling.
5926 if test "x$target" != "x$host"; then
5927 # XXX this depends on the implementation of autoconf!
5928 tmp_ac_tool_prefix="$ac_tool_prefix"
5929 ac_tool_prefix=$target_alias-
5931 if test -n "$ac_tool_prefix"; then
5932 for ac_prog in gcc egcs cc
5934 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5935 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5938 if test "${ac_cv_prog_TARGET_CC+set}" = set; then
5939 echo $ECHO_N "(cached) $ECHO_C" >&6
5940 else
5941 if test -n "$TARGET_CC"; then
5942 ac_cv_prog_TARGET_CC="$TARGET_CC" # Let the user override the test.
5943 else
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 for as_dir in $PATH
5947 IFS=$as_save_IFS
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5951 ac_cv_prog_TARGET_CC="$ac_tool_prefix$ac_prog"
5952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 break 2
5955 done
5956 done
5957 IFS=$as_save_IFS
5961 TARGET_CC=$ac_cv_prog_TARGET_CC
5962 if test -n "$TARGET_CC"; then
5963 { echo "$as_me:$LINENO: result: $TARGET_CC" >&5
5964 echo "${ECHO_T}$TARGET_CC" >&6; }
5965 else
5966 { echo "$as_me:$LINENO: result: no" >&5
5967 echo "${ECHO_T}no" >&6; }
5971 test -n "$TARGET_CC" && break
5972 done
5974 if test -z "$TARGET_CC"; then
5975 ac_ct_TARGET_CC=$TARGET_CC
5976 for ac_prog in gcc egcs cc
5978 # Extract the first word of "$ac_prog", so it can be a program name with args.
5979 set dummy $ac_prog; ac_word=$2
5980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5982 if test "${ac_cv_prog_ac_ct_TARGET_CC+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985 if test -n "$ac_ct_TARGET_CC"; then
5986 ac_cv_prog_ac_ct_TARGET_CC="$ac_ct_TARGET_CC" # Let the user override the test.
5987 else
5988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989 for as_dir in $PATH
5991 IFS=$as_save_IFS
5992 test -z "$as_dir" && as_dir=.
5993 for ac_exec_ext in '' $ac_executable_extensions; do
5994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5995 ac_cv_prog_ac_ct_TARGET_CC="$ac_prog"
5996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5997 break 2
5999 done
6000 done
6001 IFS=$as_save_IFS
6005 ac_ct_TARGET_CC=$ac_cv_prog_ac_ct_TARGET_CC
6006 if test -n "$ac_ct_TARGET_CC"; then
6007 { echo "$as_me:$LINENO: result: $ac_ct_TARGET_CC" >&5
6008 echo "${ECHO_T}$ac_ct_TARGET_CC" >&6; }
6009 else
6010 { echo "$as_me:$LINENO: result: no" >&5
6011 echo "${ECHO_T}no" >&6; }
6015 test -n "$ac_ct_TARGET_CC" && break
6016 done
6018 if test "x$ac_ct_TARGET_CC" = x; then
6019 TARGET_CC="{ { echo "$as_me:$LINENO: error: none of gcc, egcs and cc is found. set TARGET_CC manually." >&5
6020 echo "$as_me: error: none of gcc, egcs and cc is found. set TARGET_CC manually." >&2;}
6021 { (exit 1); exit 1; }; }"
6022 else
6023 case $cross_compiling:$ac_tool_warned in
6024 yes:)
6025 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6026 whose name does not start with the host triplet. If you think this
6027 configuration is useful to you, please write to autoconf@gnu.org." >&5
6028 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6029 whose name does not start with the host triplet. If you think this
6030 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6031 ac_tool_warned=yes ;;
6032 esac
6033 TARGET_CC=$ac_ct_TARGET_CC
6037 if test -n "$ac_tool_prefix"; then
6038 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
6039 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
6040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6042 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6044 else
6045 if test -n "$OBJCOPY"; then
6046 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6047 else
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 for as_dir in $PATH
6051 IFS=$as_save_IFS
6052 test -z "$as_dir" && as_dir=.
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6055 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
6056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6057 break 2
6059 done
6060 done
6061 IFS=$as_save_IFS
6065 OBJCOPY=$ac_cv_prog_OBJCOPY
6066 if test -n "$OBJCOPY"; then
6067 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6068 echo "${ECHO_T}$OBJCOPY" >&6; }
6069 else
6070 { echo "$as_me:$LINENO: result: no" >&5
6071 echo "${ECHO_T}no" >&6; }
6076 if test -z "$ac_cv_prog_OBJCOPY"; then
6077 ac_ct_OBJCOPY=$OBJCOPY
6078 # Extract the first word of "objcopy", so it can be a program name with args.
6079 set dummy objcopy; ac_word=$2
6080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6082 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
6083 echo $ECHO_N "(cached) $ECHO_C" >&6
6084 else
6085 if test -n "$ac_ct_OBJCOPY"; then
6086 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
6087 else
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 for as_dir in $PATH
6091 IFS=$as_save_IFS
6092 test -z "$as_dir" && as_dir=.
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6095 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
6096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6097 break 2
6099 done
6100 done
6101 IFS=$as_save_IFS
6105 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
6106 if test -n "$ac_ct_OBJCOPY"; then
6107 { echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
6108 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6; }
6109 else
6110 { echo "$as_me:$LINENO: result: no" >&5
6111 echo "${ECHO_T}no" >&6; }
6114 if test "x$ac_ct_OBJCOPY" = x; then
6115 OBJCOPY=""
6116 else
6117 case $cross_compiling:$ac_tool_warned in
6118 yes:)
6119 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6120 whose name does not start with the host triplet. If you think this
6121 configuration is useful to you, please write to autoconf@gnu.org." >&5
6122 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6123 whose name does not start with the host triplet. If you think this
6124 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6125 ac_tool_warned=yes ;;
6126 esac
6127 OBJCOPY=$ac_ct_OBJCOPY
6129 else
6130 OBJCOPY="$ac_cv_prog_OBJCOPY"
6133 if test -n "$ac_tool_prefix"; then
6134 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6135 set dummy ${ac_tool_prefix}strip; ac_word=$2
6136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6138 if test "${ac_cv_prog_STRIP+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6140 else
6141 if test -n "$STRIP"; then
6142 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6143 else
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145 for as_dir in $PATH
6147 IFS=$as_save_IFS
6148 test -z "$as_dir" && as_dir=.
6149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6151 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6153 break 2
6155 done
6156 done
6157 IFS=$as_save_IFS
6161 STRIP=$ac_cv_prog_STRIP
6162 if test -n "$STRIP"; then
6163 { echo "$as_me:$LINENO: result: $STRIP" >&5
6164 echo "${ECHO_T}$STRIP" >&6; }
6165 else
6166 { echo "$as_me:$LINENO: result: no" >&5
6167 echo "${ECHO_T}no" >&6; }
6172 if test -z "$ac_cv_prog_STRIP"; then
6173 ac_ct_STRIP=$STRIP
6174 # Extract the first word of "strip", so it can be a program name with args.
6175 set dummy strip; ac_word=$2
6176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6178 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6180 else
6181 if test -n "$ac_ct_STRIP"; then
6182 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6183 else
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185 for as_dir in $PATH
6187 IFS=$as_save_IFS
6188 test -z "$as_dir" && as_dir=.
6189 for ac_exec_ext in '' $ac_executable_extensions; do
6190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6191 ac_cv_prog_ac_ct_STRIP="strip"
6192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6193 break 2
6195 done
6196 done
6197 IFS=$as_save_IFS
6201 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6202 if test -n "$ac_ct_STRIP"; then
6203 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6204 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6205 else
6206 { echo "$as_me:$LINENO: result: no" >&5
6207 echo "${ECHO_T}no" >&6; }
6210 if test "x$ac_ct_STRIP" = x; then
6211 STRIP=""
6212 else
6213 case $cross_compiling:$ac_tool_warned in
6214 yes:)
6215 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6216 whose name does not start with the host triplet. If you think this
6217 configuration is useful to you, please write to autoconf@gnu.org." >&5
6218 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6219 whose name does not start with the host triplet. If you think this
6220 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6221 ac_tool_warned=yes ;;
6222 esac
6223 STRIP=$ac_ct_STRIP
6225 else
6226 STRIP="$ac_cv_prog_STRIP"
6229 if test -n "$ac_tool_prefix"; then
6230 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6231 set dummy ${ac_tool_prefix}nm; ac_word=$2
6232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6234 if test "${ac_cv_prog_NM+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 else
6237 if test -n "$NM"; then
6238 ac_cv_prog_NM="$NM" # Let the user override the test.
6239 else
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 for as_dir in $PATH
6243 IFS=$as_save_IFS
6244 test -z "$as_dir" && as_dir=.
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6247 ac_cv_prog_NM="${ac_tool_prefix}nm"
6248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6249 break 2
6251 done
6252 done
6253 IFS=$as_save_IFS
6257 NM=$ac_cv_prog_NM
6258 if test -n "$NM"; then
6259 { echo "$as_me:$LINENO: result: $NM" >&5
6260 echo "${ECHO_T}$NM" >&6; }
6261 else
6262 { echo "$as_me:$LINENO: result: no" >&5
6263 echo "${ECHO_T}no" >&6; }
6268 if test -z "$ac_cv_prog_NM"; then
6269 ac_ct_NM=$NM
6270 # Extract the first word of "nm", so it can be a program name with args.
6271 set dummy nm; ac_word=$2
6272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6274 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6276 else
6277 if test -n "$ac_ct_NM"; then
6278 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6279 else
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 for as_dir in $PATH
6283 IFS=$as_save_IFS
6284 test -z "$as_dir" && as_dir=.
6285 for ac_exec_ext in '' $ac_executable_extensions; do
6286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6287 ac_cv_prog_ac_ct_NM="nm"
6288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6289 break 2
6291 done
6292 done
6293 IFS=$as_save_IFS
6297 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6298 if test -n "$ac_ct_NM"; then
6299 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
6300 echo "${ECHO_T}$ac_ct_NM" >&6; }
6301 else
6302 { echo "$as_me:$LINENO: result: no" >&5
6303 echo "${ECHO_T}no" >&6; }
6306 if test "x$ac_ct_NM" = x; then
6307 NM=""
6308 else
6309 case $cross_compiling:$ac_tool_warned in
6310 yes:)
6311 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6312 whose name does not start with the host triplet. If you think this
6313 configuration is useful to you, please write to autoconf@gnu.org." >&5
6314 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6315 whose name does not start with the host triplet. If you think this
6316 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6317 ac_tool_warned=yes ;;
6318 esac
6319 NM=$ac_ct_NM
6321 else
6322 NM="$ac_cv_prog_NM"
6326 ac_tool_prefix="$tmp_ac_tool_prefix"
6327 else
6328 if test "x$TARGET_CC" = x; then
6329 TARGET_CC=$CC
6331 if test -n "$ac_tool_prefix"; then
6332 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
6333 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
6334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6336 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6338 else
6339 if test -n "$OBJCOPY"; then
6340 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6341 else
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 for as_dir in $PATH
6345 IFS=$as_save_IFS
6346 test -z "$as_dir" && as_dir=.
6347 for ac_exec_ext in '' $ac_executable_extensions; do
6348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6349 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
6350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6351 break 2
6353 done
6354 done
6355 IFS=$as_save_IFS
6359 OBJCOPY=$ac_cv_prog_OBJCOPY
6360 if test -n "$OBJCOPY"; then
6361 { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6362 echo "${ECHO_T}$OBJCOPY" >&6; }
6363 else
6364 { echo "$as_me:$LINENO: result: no" >&5
6365 echo "${ECHO_T}no" >&6; }
6370 if test -z "$ac_cv_prog_OBJCOPY"; then
6371 ac_ct_OBJCOPY=$OBJCOPY
6372 # Extract the first word of "objcopy", so it can be a program name with args.
6373 set dummy objcopy; ac_word=$2
6374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6376 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6378 else
6379 if test -n "$ac_ct_OBJCOPY"; then
6380 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
6381 else
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 for as_dir in $PATH
6385 IFS=$as_save_IFS
6386 test -z "$as_dir" && as_dir=.
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6389 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
6390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6391 break 2
6393 done
6394 done
6395 IFS=$as_save_IFS
6399 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
6400 if test -n "$ac_ct_OBJCOPY"; then
6401 { echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
6402 echo "${ECHO_T}$ac_ct_OBJCOPY" >&6; }
6403 else
6404 { echo "$as_me:$LINENO: result: no" >&5
6405 echo "${ECHO_T}no" >&6; }
6408 if test "x$ac_ct_OBJCOPY" = x; then
6409 OBJCOPY=""
6410 else
6411 case $cross_compiling:$ac_tool_warned in
6412 yes:)
6413 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6414 whose name does not start with the host triplet. If you think this
6415 configuration is useful to you, please write to autoconf@gnu.org." >&5
6416 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6417 whose name does not start with the host triplet. If you think this
6418 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6419 ac_tool_warned=yes ;;
6420 esac
6421 OBJCOPY=$ac_ct_OBJCOPY
6423 else
6424 OBJCOPY="$ac_cv_prog_OBJCOPY"
6427 if test -n "$ac_tool_prefix"; then
6428 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6429 set dummy ${ac_tool_prefix}strip; ac_word=$2
6430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6432 if test "${ac_cv_prog_STRIP+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 else
6435 if test -n "$STRIP"; then
6436 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6437 else
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 for as_dir in $PATH
6441 IFS=$as_save_IFS
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6445 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6447 break 2
6449 done
6450 done
6451 IFS=$as_save_IFS
6455 STRIP=$ac_cv_prog_STRIP
6456 if test -n "$STRIP"; then
6457 { echo "$as_me:$LINENO: result: $STRIP" >&5
6458 echo "${ECHO_T}$STRIP" >&6; }
6459 else
6460 { echo "$as_me:$LINENO: result: no" >&5
6461 echo "${ECHO_T}no" >&6; }
6466 if test -z "$ac_cv_prog_STRIP"; then
6467 ac_ct_STRIP=$STRIP
6468 # Extract the first word of "strip", so it can be a program name with args.
6469 set dummy strip; ac_word=$2
6470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6472 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6474 else
6475 if test -n "$ac_ct_STRIP"; then
6476 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6477 else
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479 for as_dir in $PATH
6481 IFS=$as_save_IFS
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6485 ac_cv_prog_ac_ct_STRIP="strip"
6486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6487 break 2
6489 done
6490 done
6491 IFS=$as_save_IFS
6495 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6496 if test -n "$ac_ct_STRIP"; then
6497 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6498 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6499 else
6500 { echo "$as_me:$LINENO: result: no" >&5
6501 echo "${ECHO_T}no" >&6; }
6504 if test "x$ac_ct_STRIP" = x; then
6505 STRIP=""
6506 else
6507 case $cross_compiling:$ac_tool_warned in
6508 yes:)
6509 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6510 whose name does not start with the host triplet. If you think this
6511 configuration is useful to you, please write to autoconf@gnu.org." >&5
6512 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6513 whose name does not start with the host triplet. If you think this
6514 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6515 ac_tool_warned=yes ;;
6516 esac
6517 STRIP=$ac_ct_STRIP
6519 else
6520 STRIP="$ac_cv_prog_STRIP"
6523 if test -n "$ac_tool_prefix"; then
6524 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6525 set dummy ${ac_tool_prefix}nm; ac_word=$2
6526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6528 if test "${ac_cv_prog_NM+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6530 else
6531 if test -n "$NM"; then
6532 ac_cv_prog_NM="$NM" # Let the user override the test.
6533 else
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 for as_dir in $PATH
6537 IFS=$as_save_IFS
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6541 ac_cv_prog_NM="${ac_tool_prefix}nm"
6542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 break 2
6545 done
6546 done
6547 IFS=$as_save_IFS
6551 NM=$ac_cv_prog_NM
6552 if test -n "$NM"; then
6553 { echo "$as_me:$LINENO: result: $NM" >&5
6554 echo "${ECHO_T}$NM" >&6; }
6555 else
6556 { echo "$as_me:$LINENO: result: no" >&5
6557 echo "${ECHO_T}no" >&6; }
6562 if test -z "$ac_cv_prog_NM"; then
6563 ac_ct_NM=$NM
6564 # Extract the first word of "nm", so it can be a program name with args.
6565 set dummy nm; ac_word=$2
6566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6568 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6570 else
6571 if test -n "$ac_ct_NM"; then
6572 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6573 else
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH
6577 IFS=$as_save_IFS
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6581 ac_cv_prog_ac_ct_NM="nm"
6582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6583 break 2
6585 done
6586 done
6587 IFS=$as_save_IFS
6591 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6592 if test -n "$ac_ct_NM"; then
6593 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
6594 echo "${ECHO_T}$ac_ct_NM" >&6; }
6595 else
6596 { echo "$as_me:$LINENO: result: no" >&5
6597 echo "${ECHO_T}no" >&6; }
6600 if test "x$ac_ct_NM" = x; then
6601 NM=""
6602 else
6603 case $cross_compiling:$ac_tool_warned in
6604 yes:)
6605 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6606 whose name does not start with the host triplet. If you think this
6607 configuration is useful to you, please write to autoconf@gnu.org." >&5
6608 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6609 whose name does not start with the host triplet. If you think this
6610 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6611 ac_tool_warned=yes ;;
6612 esac
6613 NM=$ac_ct_NM
6615 else
6616 NM="$ac_cv_prog_NM"
6623 # Test the C compiler for the target environment.
6624 tmp_CC="$CC"
6625 tmp_CFLAGS="$CFLAGS"
6626 tmp_LDFLAGS="$LDFLAGS"
6627 tmp_CPPFLAGS="$CPPFLAGS"
6628 tmp_LIBS="$LIBS"
6629 CC="$TARGET_CC"
6630 CFLAGS="$TARGET_CFLAGS"
6631 CPPFLAGS="$TARGET_CPPFLAGS"
6632 LDFLAGS="$TARGET_LDFLAGS"
6633 LIBS=""
6635 if test "x$TARGET_CFLAGS" = x; then
6636 # debug flags.
6637 TARGET_CFLAGS="-Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes \
6638 -Wundef -Wstrict-prototypes -g"
6640 # optimization flags.
6641 { echo "$as_me:$LINENO: checking whether optimization for size works" >&5
6642 echo $ECHO_N "checking whether optimization for size works... $ECHO_C" >&6; }
6643 if test "${grub_cv_cc_Os+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6645 else
6647 CFLAGS=-Os
6648 cat >conftest.$ac_ext <<_ACEOF
6649 /* confdefs.h. */
6650 _ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h. */
6656 main ()
6660 return 0;
6662 _ACEOF
6663 rm -f conftest.$ac_objext
6664 if { (ac_try="$ac_compile"
6665 case "(($ac_try" in
6666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6667 *) ac_try_echo=$ac_try;;
6668 esac
6669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6670 (eval "$ac_compile") 2>conftest.er1
6671 ac_status=$?
6672 grep -v '^ *+' conftest.er1 >conftest.err
6673 rm -f conftest.er1
6674 cat conftest.err >&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } && {
6677 test -z "$ac_c_werror_flag" ||
6678 test ! -s conftest.err
6679 } && test -s conftest.$ac_objext; then
6680 grub_cv_cc_Os=yes
6681 else
6682 echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.$ac_ext >&5
6685 grub_cv_cc_Os=no
6688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6691 { echo "$as_me:$LINENO: result: $grub_cv_cc_Os" >&5
6692 echo "${ECHO_T}$grub_cv_cc_Os" >&6; }
6693 if test "x$grub_cv_cc_Os" = xyes; then
6694 TARGET_CFLAGS="$TARGET_CFLAGS -Os"
6695 else
6696 TARGET_CFLAGS="$TARGET_CFLAGS -O2 -fno-strength-reduce -fno-unroll-loops"
6699 # Force no alignment to save space on i386.
6700 if test "x$target_cpu" = xi386; then
6701 { echo "$as_me:$LINENO: checking whether -falign-loops works" >&5
6702 echo $ECHO_N "checking whether -falign-loops works... $ECHO_C" >&6; }
6703 if test "${grub_cv_cc_falign_loop+set}" = set; then
6704 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 else
6707 CFLAGS="-falign-loops=1"
6708 cat >conftest.$ac_ext <<_ACEOF
6709 /* confdefs.h. */
6710 _ACEOF
6711 cat confdefs.h >>conftest.$ac_ext
6712 cat >>conftest.$ac_ext <<_ACEOF
6713 /* end confdefs.h. */
6716 main ()
6720 return 0;
6722 _ACEOF
6723 rm -f conftest.$ac_objext
6724 if { (ac_try="$ac_compile"
6725 case "(($ac_try" in
6726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6727 *) ac_try_echo=$ac_try;;
6728 esac
6729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6730 (eval "$ac_compile") 2>conftest.er1
6731 ac_status=$?
6732 grep -v '^ *+' conftest.er1 >conftest.err
6733 rm -f conftest.er1
6734 cat conftest.err >&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } && {
6737 test -z "$ac_c_werror_flag" ||
6738 test ! -s conftest.err
6739 } && test -s conftest.$ac_objext; then
6740 grub_cv_cc_falign_loop=yes
6741 else
6742 echo "$as_me: failed program was:" >&5
6743 sed 's/^/| /' conftest.$ac_ext >&5
6745 grub_cv_cc_falign_loop=no
6748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6751 { echo "$as_me:$LINENO: result: $grub_cv_cc_falign_loop" >&5
6752 echo "${ECHO_T}$grub_cv_cc_falign_loop" >&6; }
6754 if test "x$grub_cv_cc_falign_loop" = xyes; then
6755 TARGET_CFLAGS="$TARGET_CFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
6756 else
6757 TARGET_CFLAGS="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
6762 if test "x$target_m32" = x1; then
6763 # Force 32-bit mode.
6764 TARGET_CFLAGS="$TARGET_CFLAGS -m32"
6765 TARGET_LDFLAGS="$TARGET_LDFLAGS -m32"
6768 if test "x$target_m64" = x1; then
6769 # Force 64-bit mode.
6770 TARGET_CFLAGS="$TARGET_CFLAGS -m64"
6771 TARGET_LDFLAGS="$TARGET_LDFLAGS -m64"
6775 # Compiler features.
6778 # Need __enable_execute_stack() for nested function trampolines?
6780 { echo "$as_me:$LINENO: checking whether \`$CC' generates calls to \`__enable_execute_stack()'" >&5
6781 echo $ECHO_N "checking whether \`$CC' generates calls to \`__enable_execute_stack()'... $ECHO_C" >&6; }
6782 cat >conftest.$ac_ext <<_ACEOF
6784 void f (int (*p) (void));
6785 void g (int i)
6787 int nestedfunc (void) { return i; }
6788 f (nestedfunc);
6791 _ACEOF
6792 if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
6793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6794 (eval $ac_try) 2>&5
6795 ac_status=$?
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); }; } && test -s conftest.s; then
6798 true
6799 else
6800 { { echo "$as_me:$LINENO: error: ${CC-cc} failed to produce assembly code" >&5
6801 echo "$as_me: error: ${CC-cc} failed to produce assembly code" >&2;}
6802 { (exit 1); exit 1; }; }
6804 if grep __enable_execute_stack conftest.s >/dev/null 2>&1; then
6806 cat >>confdefs.h <<\_ACEOF
6807 #define NEED_ENABLE_EXECUTE_STACK 1
6808 _ACEOF
6810 { echo "$as_me:$LINENO: result: yes" >&5
6811 echo "${ECHO_T}yes" >&6; }
6812 else
6813 { echo "$as_me:$LINENO: result: no" >&5
6814 echo "${ECHO_T}no" >&6; }
6816 rm -f conftest*
6819 # Smashing stack protector.
6821 # Smashing stack protector.
6822 ssp_possible=yes
6823 { echo "$as_me:$LINENO: checking whether \`$CC' accepts \`-fstack-protector'" >&5
6824 echo $ECHO_N "checking whether \`$CC' accepts \`-fstack-protector'... $ECHO_C" >&6; }
6825 # Is this a reliable test case?
6826 cat >conftest.$ac_ext <<_ACEOF
6827 void foo (void) { volatile char a[8]; a[3]; }
6828 _ACEOF
6829 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
6830 # `ac_compile' like this correct, after all?
6831 if eval "$ac_compile -S -fstack-protector -o conftest.s" 2> /dev/null; then
6832 { echo "$as_me:$LINENO: result: yes" >&5
6833 echo "${ECHO_T}yes" >&6; }
6834 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
6835 rm -f conftest.s
6836 else
6837 ssp_possible=no
6838 { echo "$as_me:$LINENO: result: no" >&5
6839 echo "${ECHO_T}no" >&6; }
6842 # Need that, because some distributions ship compilers that include
6843 # `-fstack-protector' in the default specs.
6844 if test "x$ssp_possible" = xyes; then
6845 TARGET_CFLAGS="$TARGET_CFLAGS -fno-stack-protector"
6848 # Smashing stack arg probe.
6849 sap_possible=yes
6850 { echo "$as_me:$LINENO: checking whether \`$CC' accepts \`-mstack-arg-probe'" >&5
6851 echo $ECHO_N "checking whether \`$CC' accepts \`-mstack-arg-probe'... $ECHO_C" >&6; }
6852 cat >conftest.$ac_ext <<_ACEOF
6853 void foo (void) { volatile char a[8]; a[3]; }
6854 _ACEOF
6855 if eval "$ac_compile -S -mstack-arg-probe -o conftest.s" 2> /dev/null; then
6856 { echo "$as_me:$LINENO: result: yes" >&5
6857 echo "${ECHO_T}yes" >&6; }
6858 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
6859 rm -f conftest.s
6860 else
6861 sap_possible=no
6862 { echo "$as_me:$LINENO: result: no" >&5
6863 echo "${ECHO_T}no" >&6; }
6866 # Cygwin's GCC uses alloca() to probe the stackframe on static
6867 # stack allocations above some threshold.
6868 if test x"$sap_possible" = xyes; then
6869 TARGET_CFLAGS="$TARGET_CFLAGS -mno-stack-arg-probe"
6877 # Set them to their new values for the tests below.
6878 CC="$TARGET_CC"
6879 CFLAGS="$TARGET_CFLAGS"
6880 CPPFLAGS="$TARGET_CPPFLAGS"
6881 LDFLAGS="$TARGET_LDFLAGS"
6883 # Defined in aclocal.m4.
6884 { echo "$as_me:$LINENO: checking whether target compiler is working" >&5
6885 echo $ECHO_N "checking whether target compiler is working... $ECHO_C" >&6; }
6886 if test "${grub_cv_prog_target_cc+set}" = set; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6888 else
6889 cat >conftest.$ac_ext <<_ACEOF
6890 /* confdefs.h. */
6891 _ACEOF
6892 cat confdefs.h >>conftest.$ac_ext
6893 cat >>conftest.$ac_ext <<_ACEOF
6894 /* end confdefs.h. */
6897 main ()
6901 return 0;
6903 _ACEOF
6904 rm -f conftest.$ac_objext conftest$ac_exeext
6905 if { (ac_try="$ac_link"
6906 case "(($ac_try" in
6907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6908 *) ac_try_echo=$ac_try;;
6909 esac
6910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6911 (eval "$ac_link") 2>conftest.er1
6912 ac_status=$?
6913 grep -v '^ *+' conftest.er1 >conftest.err
6914 rm -f conftest.er1
6915 cat conftest.err >&5
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); } && {
6918 test -z "$ac_c_werror_flag" ||
6919 test ! -s conftest.err
6920 } && test -s conftest$ac_exeext &&
6921 $as_test_x conftest$ac_exeext; then
6922 grub_cv_prog_target_cc=yes
6923 else
6924 echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.$ac_ext >&5
6927 grub_cv_prog_target_cc=no
6930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6931 conftest$ac_exeext conftest.$ac_ext
6935 { echo "$as_me:$LINENO: result: $grub_cv_prog_target_cc" >&5
6936 echo "${ECHO_T}$grub_cv_prog_target_cc" >&6; }
6938 if test "x$grub_cv_prog_target_cc" = xno; then
6939 { { echo "$as_me:$LINENO: error: cannot compile for the target" >&5
6940 echo "$as_me: error: cannot compile for the target" >&2;}
6941 { (exit 1); exit 1; }; }
6944 { echo "$as_me:$LINENO: checking whether ${OBJCOPY} works for absolute addresses" >&5
6945 echo $ECHO_N "checking whether ${OBJCOPY} works for absolute addresses... $ECHO_C" >&6; }
6946 if test "${grub_cv_prog_objcopy_absolute+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6948 else
6949 cat > conftest.c <<\EOF
6950 void
6951 cmain (void)
6953 *((int *) 0x1000) = 2;
6957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6958 (eval $ac_compile) 2>&5
6959 ac_status=$?
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } && test -s conftest.o; then :
6962 else
6963 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot compile C source code" >&5
6964 echo "$as_me: error: ${CC-cc} cannot compile C source code" >&2;}
6965 { (exit 1); exit 1; }; }
6967 grub_cv_prog_objcopy_absolute=yes
6968 for link_addr in 2000 8000 7C00; do
6969 if { ac_try='${CC-cc} ${CFLAGS} -nostdlib ${TARGET_IMG_LDFLAGS_AC} -Wl,-Ttext -Wl,$link_addr conftest.o -o conftest.exec'
6970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6971 (eval $ac_try) 2>&5
6972 ac_status=$?
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); }; }; then :
6975 else
6976 { { echo "$as_me:$LINENO: error: ${CC-cc} cannot link at address $link_addr" >&5
6977 echo "$as_me: error: ${CC-cc} cannot link at address $link_addr" >&2;}
6978 { (exit 1); exit 1; }; }
6980 if { ac_try='${OBJCOPY-objcopy} --only-section=.text -O binary conftest.exec conftest'
6981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982 (eval $ac_try) 2>&5
6983 ac_status=$?
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); }; }; then :
6986 else
6987 { { echo "$as_me:$LINENO: error: ${OBJCOPY-objcopy} cannot create binary files" >&5
6988 echo "$as_me: error: ${OBJCOPY-objcopy} cannot create binary files" >&2;}
6989 { (exit 1); exit 1; }; }
6991 if test ! -f conftest.old || { ac_try='cmp -s conftest.old conftest'
6992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6993 (eval $ac_try) 2>&5
6994 ac_status=$?
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); }; }; then
6997 mv -f conftest conftest.old
6998 else
6999 grub_cv_prog_objcopy_absolute=no
7000 break
7002 done
7003 rm -f conftest*
7006 { echo "$as_me:$LINENO: result: $grub_cv_prog_objcopy_absolute" >&5
7007 echo "${ECHO_T}$grub_cv_prog_objcopy_absolute" >&6; }
7009 if test "x$grub_cv_prog_objcopy_absolute" = xno; then
7010 { { echo "$as_me:$LINENO: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&5
7011 echo "$as_me: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&2;}
7012 { (exit 1); exit 1; }; }
7015 { echo "$as_me:$LINENO: checking whether linker accepts --build-id=none" >&5
7016 echo $ECHO_N "checking whether linker accepts --build-id=none... $ECHO_C" >&6; }
7017 if test "${grub_cv_prog_ld_build_id_none+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7019 else
7020 save_LDFLAGS="$LDFLAGS"
7021 LDFLAGS="$LDFLAGS -Wl,--build-id=none"
7022 cat >conftest.$ac_ext <<_ACEOF
7023 /* confdefs.h. */
7024 _ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7030 main ()
7034 return 0;
7036 _ACEOF
7037 rm -f conftest.$ac_objext conftest$ac_exeext
7038 if { (ac_try="$ac_link"
7039 case "(($ac_try" in
7040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7041 *) ac_try_echo=$ac_try;;
7042 esac
7043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7044 (eval "$ac_link") 2>conftest.er1
7045 ac_status=$?
7046 grep -v '^ *+' conftest.er1 >conftest.err
7047 rm -f conftest.er1
7048 cat conftest.err >&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } && {
7051 test -z "$ac_c_werror_flag" ||
7052 test ! -s conftest.err
7053 } && test -s conftest$ac_exeext &&
7054 $as_test_x conftest$ac_exeext; then
7055 grub_cv_prog_ld_build_id_none=yes
7056 else
7057 echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.$ac_ext >&5
7060 grub_cv_prog_ld_build_id_none=no
7063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7064 conftest$ac_exeext conftest.$ac_ext
7065 LDFLAGS="$save_LDFLAGS"
7069 { echo "$as_me:$LINENO: result: $grub_cv_prog_ld_build_id_none" >&5
7070 echo "${ECHO_T}$grub_cv_prog_ld_build_id_none" >&6; }
7072 if test "x$grub_cv_prog_ld_build_id_none" = xyes; then
7073 MODULE_LDFLAGS="$MODULE_LDFLAGS -Wl,--build-id=none"
7077 { echo "$as_me:$LINENO: checking if C symbols get an underscore after compilation" >&5
7078 echo $ECHO_N "checking if C symbols get an underscore after compilation... $ECHO_C" >&6; }
7079 if test "${grub_cv_asm_uscore+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7081 else
7082 cat > conftest.c <<\EOF
7084 func (int *list)
7086 *list = 0;
7087 return *list;
7091 if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
7092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093 (eval $ac_try) 2>&5
7094 ac_status=$?
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); }; } && test -s conftest.s; then
7097 true
7098 else
7099 { { echo "$as_me:$LINENO: error: ${CC-cc} failed to produce assembly code" >&5
7100 echo "$as_me: error: ${CC-cc} failed to produce assembly code" >&2;}
7101 { (exit 1); exit 1; }; }
7104 if grep _func conftest.s >/dev/null 2>&1; then
7105 grub_cv_asm_uscore=yes
7106 else
7107 grub_cv_asm_uscore=no
7110 rm -f conftest*
7114 if test "x$grub_cv_asm_uscore" = xyes; then
7116 cat >>confdefs.h <<_ACEOF
7117 #define HAVE_ASM_USCORE $grub_cv_asm_uscore
7118 _ACEOF
7122 { echo "$as_me:$LINENO: result: $grub_cv_asm_uscore" >&5
7123 echo "${ECHO_T}$grub_cv_asm_uscore" >&6; }
7125 if test "x$target_cpu" = xi386; then
7126 if test ! -z "$TARGET_IMG_LDSCRIPT"; then
7127 # Check symbols provided by linker script.
7128 CFLAGS="$TARGET_CFLAGS -nostdlib $TARGET_IMG_LDFLAGS_AC -Wl,-Ttext,8000,--defsym,___main=0x8100"
7130 if test "x$platform" = xpc; then
7132 { echo "$as_me:$LINENO: checking if start is defined by the compiler" >&5
7133 echo $ECHO_N "checking if start is defined by the compiler... $ECHO_C" >&6; }
7134 if test "${grub_cv_check_start_symbol+set}" = set; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7136 else
7137 cat >conftest.$ac_ext <<_ACEOF
7138 /* confdefs.h. */
7139 _ACEOF
7140 cat confdefs.h >>conftest.$ac_ext
7141 cat >>conftest.$ac_ext <<_ACEOF
7142 /* end confdefs.h. */
7145 main ()
7147 asm ("incl start")
7149 return 0;
7151 _ACEOF
7152 rm -f conftest.$ac_objext conftest$ac_exeext
7153 if { (ac_try="$ac_link"
7154 case "(($ac_try" in
7155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7156 *) ac_try_echo=$ac_try;;
7157 esac
7158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7159 (eval "$ac_link") 2>conftest.er1
7160 ac_status=$?
7161 grep -v '^ *+' conftest.er1 >conftest.err
7162 rm -f conftest.er1
7163 cat conftest.err >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } && {
7166 test -z "$ac_c_werror_flag" ||
7167 test ! -s conftest.err
7168 } && test -s conftest$ac_exeext &&
7169 $as_test_x conftest$ac_exeext; then
7170 grub_cv_check_start_symbol=yes
7171 else
7172 echo "$as_me: failed program was:" >&5
7173 sed 's/^/| /' conftest.$ac_ext >&5
7175 grub_cv_check_start_symbol=no
7178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7179 conftest$ac_exeext conftest.$ac_ext
7183 { echo "$as_me:$LINENO: result: $grub_cv_check_start_symbol" >&5
7184 echo "${ECHO_T}$grub_cv_check_start_symbol" >&6; }
7186 { echo "$as_me:$LINENO: checking if _start is defined by the compiler" >&5
7187 echo $ECHO_N "checking if _start is defined by the compiler... $ECHO_C" >&6; }
7188 if test "${grub_cv_check_uscore_start_symbol+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7190 else
7191 cat >conftest.$ac_ext <<_ACEOF
7192 /* confdefs.h. */
7193 _ACEOF
7194 cat confdefs.h >>conftest.$ac_ext
7195 cat >>conftest.$ac_ext <<_ACEOF
7196 /* end confdefs.h. */
7199 main ()
7201 asm ("incl _start")
7203 return 0;
7205 _ACEOF
7206 rm -f conftest.$ac_objext conftest$ac_exeext
7207 if { (ac_try="$ac_link"
7208 case "(($ac_try" in
7209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7210 *) ac_try_echo=$ac_try;;
7211 esac
7212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7213 (eval "$ac_link") 2>conftest.er1
7214 ac_status=$?
7215 grep -v '^ *+' conftest.er1 >conftest.err
7216 rm -f conftest.er1
7217 cat conftest.err >&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); } && {
7220 test -z "$ac_c_werror_flag" ||
7221 test ! -s conftest.err
7222 } && test -s conftest$ac_exeext &&
7223 $as_test_x conftest$ac_exeext; then
7224 grub_cv_check_uscore_start_symbol=yes
7225 else
7226 echo "$as_me: failed program was:" >&5
7227 sed 's/^/| /' conftest.$ac_ext >&5
7229 grub_cv_check_uscore_start_symbol=no
7232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7233 conftest$ac_exeext conftest.$ac_ext
7237 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_start_symbol" >&5
7238 echo "${ECHO_T}$grub_cv_check_uscore_start_symbol" >&6; }
7243 if test "x$grub_cv_check_start_symbol" = xyes; then
7244 cat >>confdefs.h <<\_ACEOF
7245 #define START_SYMBOL start
7246 _ACEOF
7248 elif test "x$grub_cv_check_uscore_start_symbol" = xyes; then
7249 cat >>confdefs.h <<\_ACEOF
7250 #define START_SYMBOL _start
7251 _ACEOF
7253 else
7254 { { echo "$as_me:$LINENO: error: neither start nor _start is defined" >&5
7255 echo "$as_me: error: neither start nor _start is defined" >&2;}
7256 { (exit 1); exit 1; }; }
7260 { echo "$as_me:$LINENO: checking if __bss_start is defined by the compiler" >&5
7261 echo $ECHO_N "checking if __bss_start is defined by the compiler... $ECHO_C" >&6; }
7262 if test "${grub_cv_check_uscore_uscore_bss_start_symbol+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7264 else
7265 cat >conftest.$ac_ext <<_ACEOF
7266 /* confdefs.h. */
7267 _ACEOF
7268 cat confdefs.h >>conftest.$ac_ext
7269 cat >>conftest.$ac_ext <<_ACEOF
7270 /* end confdefs.h. */
7273 main ()
7275 asm ("incl __bss_start")
7277 return 0;
7279 _ACEOF
7280 rm -f conftest.$ac_objext conftest$ac_exeext
7281 if { (ac_try="$ac_link"
7282 case "(($ac_try" in
7283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7284 *) ac_try_echo=$ac_try;;
7285 esac
7286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7287 (eval "$ac_link") 2>conftest.er1
7288 ac_status=$?
7289 grep -v '^ *+' conftest.er1 >conftest.err
7290 rm -f conftest.er1
7291 cat conftest.err >&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); } && {
7294 test -z "$ac_c_werror_flag" ||
7295 test ! -s conftest.err
7296 } && test -s conftest$ac_exeext &&
7297 $as_test_x conftest$ac_exeext; then
7298 grub_cv_check_uscore_uscore_bss_start_symbol=yes
7299 else
7300 echo "$as_me: failed program was:" >&5
7301 sed 's/^/| /' conftest.$ac_ext >&5
7303 grub_cv_check_uscore_uscore_bss_start_symbol=no
7306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7307 conftest$ac_exeext conftest.$ac_ext
7311 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
7312 echo "${ECHO_T}$grub_cv_check_uscore_uscore_bss_start_symbol" >&6; }
7314 { echo "$as_me:$LINENO: checking if edata is defined by the compiler" >&5
7315 echo $ECHO_N "checking if edata is defined by the compiler... $ECHO_C" >&6; }
7316 if test "${grub_cv_check_edata_symbol+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7318 else
7319 cat >conftest.$ac_ext <<_ACEOF
7320 /* confdefs.h. */
7321 _ACEOF
7322 cat confdefs.h >>conftest.$ac_ext
7323 cat >>conftest.$ac_ext <<_ACEOF
7324 /* end confdefs.h. */
7327 main ()
7329 asm ("incl edata")
7331 return 0;
7333 _ACEOF
7334 rm -f conftest.$ac_objext conftest$ac_exeext
7335 if { (ac_try="$ac_link"
7336 case "(($ac_try" in
7337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7338 *) ac_try_echo=$ac_try;;
7339 esac
7340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7341 (eval "$ac_link") 2>conftest.er1
7342 ac_status=$?
7343 grep -v '^ *+' conftest.er1 >conftest.err
7344 rm -f conftest.er1
7345 cat conftest.err >&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); } && {
7348 test -z "$ac_c_werror_flag" ||
7349 test ! -s conftest.err
7350 } && test -s conftest$ac_exeext &&
7351 $as_test_x conftest$ac_exeext; then
7352 grub_cv_check_edata_symbol=yes
7353 else
7354 echo "$as_me: failed program was:" >&5
7355 sed 's/^/| /' conftest.$ac_ext >&5
7357 grub_cv_check_edata_symbol=no
7360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7361 conftest$ac_exeext conftest.$ac_ext
7365 { echo "$as_me:$LINENO: result: $grub_cv_check_edata_symbol" >&5
7366 echo "${ECHO_T}$grub_cv_check_edata_symbol" >&6; }
7368 { echo "$as_me:$LINENO: checking if _edata is defined by the compiler" >&5
7369 echo $ECHO_N "checking if _edata is defined by the compiler... $ECHO_C" >&6; }
7370 if test "${grub_cv_check_uscore_edata_symbol+set}" = set; then
7371 echo $ECHO_N "(cached) $ECHO_C" >&6
7372 else
7373 cat >conftest.$ac_ext <<_ACEOF
7374 /* confdefs.h. */
7375 _ACEOF
7376 cat confdefs.h >>conftest.$ac_ext
7377 cat >>conftest.$ac_ext <<_ACEOF
7378 /* end confdefs.h. */
7381 main ()
7383 asm ("incl _edata")
7385 return 0;
7387 _ACEOF
7388 rm -f conftest.$ac_objext conftest$ac_exeext
7389 if { (ac_try="$ac_link"
7390 case "(($ac_try" in
7391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7392 *) ac_try_echo=$ac_try;;
7393 esac
7394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7395 (eval "$ac_link") 2>conftest.er1
7396 ac_status=$?
7397 grep -v '^ *+' conftest.er1 >conftest.err
7398 rm -f conftest.er1
7399 cat conftest.err >&5
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); } && {
7402 test -z "$ac_c_werror_flag" ||
7403 test ! -s conftest.err
7404 } && test -s conftest$ac_exeext &&
7405 $as_test_x conftest$ac_exeext; then
7406 grub_cv_check_uscore_edata_symbol=yes
7407 else
7408 echo "$as_me: failed program was:" >&5
7409 sed 's/^/| /' conftest.$ac_ext >&5
7411 grub_cv_check_uscore_edata_symbol=no
7414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7415 conftest$ac_exeext conftest.$ac_ext
7419 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_edata_symbol" >&5
7420 echo "${ECHO_T}$grub_cv_check_uscore_edata_symbol" >&6; }
7425 if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then
7426 cat >>confdefs.h <<\_ACEOF
7427 #define BSS_START_SYMBOL __bss_start
7428 _ACEOF
7430 elif test "x$grub_cv_check_edata_symbol" = xyes; then
7431 cat >>confdefs.h <<\_ACEOF
7432 #define BSS_START_SYMBOL edata
7433 _ACEOF
7435 elif test "x$grub_cv_check_uscore_edata_symbol" = xyes; then
7436 cat >>confdefs.h <<\_ACEOF
7437 #define BSS_START_SYMBOL _edata
7438 _ACEOF
7440 else
7441 { { echo "$as_me:$LINENO: error: none of __bss_start, edata or _edata is defined" >&5
7442 echo "$as_me: error: none of __bss_start, edata or _edata is defined" >&2;}
7443 { (exit 1); exit 1; }; }
7447 { echo "$as_me:$LINENO: checking if end is defined by the compiler" >&5
7448 echo $ECHO_N "checking if end is defined by the compiler... $ECHO_C" >&6; }
7449 if test "${grub_cv_check_end_symbol+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 else
7452 cat >conftest.$ac_ext <<_ACEOF
7453 /* confdefs.h. */
7454 _ACEOF
7455 cat confdefs.h >>conftest.$ac_ext
7456 cat >>conftest.$ac_ext <<_ACEOF
7457 /* end confdefs.h. */
7460 main ()
7462 asm ("incl end")
7464 return 0;
7466 _ACEOF
7467 rm -f conftest.$ac_objext conftest$ac_exeext
7468 if { (ac_try="$ac_link"
7469 case "(($ac_try" in
7470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7471 *) ac_try_echo=$ac_try;;
7472 esac
7473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7474 (eval "$ac_link") 2>conftest.er1
7475 ac_status=$?
7476 grep -v '^ *+' conftest.er1 >conftest.err
7477 rm -f conftest.er1
7478 cat conftest.err >&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); } && {
7481 test -z "$ac_c_werror_flag" ||
7482 test ! -s conftest.err
7483 } && test -s conftest$ac_exeext &&
7484 $as_test_x conftest$ac_exeext; then
7485 grub_cv_check_end_symbol=yes
7486 else
7487 echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.$ac_ext >&5
7490 grub_cv_check_end_symbol=no
7493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7494 conftest$ac_exeext conftest.$ac_ext
7498 { echo "$as_me:$LINENO: result: $grub_cv_check_end_symbol" >&5
7499 echo "${ECHO_T}$grub_cv_check_end_symbol" >&6; }
7501 { echo "$as_me:$LINENO: checking if _end is defined by the compiler" >&5
7502 echo $ECHO_N "checking if _end is defined by the compiler... $ECHO_C" >&6; }
7503 if test "${grub_cv_check_uscore_end_symbol+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7505 else
7506 cat >conftest.$ac_ext <<_ACEOF
7507 /* confdefs.h. */
7508 _ACEOF
7509 cat confdefs.h >>conftest.$ac_ext
7510 cat >>conftest.$ac_ext <<_ACEOF
7511 /* end confdefs.h. */
7514 main ()
7516 asm ("incl _end")
7518 return 0;
7520 _ACEOF
7521 rm -f conftest.$ac_objext conftest$ac_exeext
7522 if { (ac_try="$ac_link"
7523 case "(($ac_try" in
7524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7525 *) ac_try_echo=$ac_try;;
7526 esac
7527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7528 (eval "$ac_link") 2>conftest.er1
7529 ac_status=$?
7530 grep -v '^ *+' conftest.er1 >conftest.err
7531 rm -f conftest.er1
7532 cat conftest.err >&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); } && {
7535 test -z "$ac_c_werror_flag" ||
7536 test ! -s conftest.err
7537 } && test -s conftest$ac_exeext &&
7538 $as_test_x conftest$ac_exeext; then
7539 grub_cv_check_uscore_end_symbol=yes
7540 else
7541 echo "$as_me: failed program was:" >&5
7542 sed 's/^/| /' conftest.$ac_ext >&5
7544 grub_cv_check_uscore_end_symbol=no
7547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7548 conftest$ac_exeext conftest.$ac_ext
7552 { echo "$as_me:$LINENO: result: $grub_cv_check_uscore_end_symbol" >&5
7553 echo "${ECHO_T}$grub_cv_check_uscore_end_symbol" >&6; }
7558 if test "x$grub_cv_check_end_symbol" = xyes; then
7559 cat >>confdefs.h <<\_ACEOF
7560 #define END_SYMBOL end
7561 _ACEOF
7563 elif test "x$grub_cv_check_uscore_end_symbol" = xyes; then
7564 cat >>confdefs.h <<\_ACEOF
7565 #define END_SYMBOL _end
7566 _ACEOF
7568 else
7569 { { echo "$as_me:$LINENO: error: neither end nor _end is defined" >&5
7570 echo "$as_me: error: neither end nor _end is defined" >&2;}
7571 { (exit 1); exit 1; }; }
7575 CFLAGS="$TARGET_CFLAGS"
7577 { echo "$as_me:$LINENO: checking whether addr32 must be in the same line as the instruction" >&5
7578 echo $ECHO_N "checking whether addr32 must be in the same line as the instruction... $ECHO_C" >&6; }
7579 if test "${grub_cv_i386_asm_prefix_requirement+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 else
7582 cat > conftest.s <<\EOF
7583 .code16
7584 l1: addr32 movb %al, l1
7587 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7589 (eval $ac_try) 2>&5
7590 ac_status=$?
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); }; } && test -s conftest.o; then
7593 grub_cv_i386_asm_prefix_requirement=yes
7594 else
7595 grub_cv_i386_asm_prefix_requirement=no
7598 rm -f conftest*
7602 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
7603 grub_tmp_addr32="addr32"
7604 grub_tmp_data32="data32"
7605 else
7606 grub_tmp_addr32="addr32;"
7607 grub_tmp_data32="data32;"
7611 cat >>confdefs.h <<_ACEOF
7612 #define ADDR32 $grub_tmp_addr32
7613 _ACEOF
7616 cat >>confdefs.h <<_ACEOF
7617 #define DATA32 $grub_tmp_data32
7618 _ACEOF
7621 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_prefix_requirement" >&5
7622 echo "${ECHO_T}$grub_cv_i386_asm_prefix_requirement" >&6; }
7625 { echo "$as_me:$LINENO: checking for .code16 addr32 assembler support" >&5
7626 echo $ECHO_N "checking for .code16 addr32 assembler support... $ECHO_C" >&6; }
7627 if test "${grub_cv_i386_asm_addr32+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7629 else
7630 cat > conftest.s.in <<\EOF
7631 .code16
7632 l1: @ADDR32@ movb %al, l1
7635 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
7636 sed -e s/@ADDR32@/addr32/ < conftest.s.in > conftest.s
7637 else
7638 sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s
7641 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7643 (eval $ac_try) 2>&5
7644 ac_status=$?
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); }; } && test -s conftest.o; then
7647 grub_cv_i386_asm_addr32=yes
7648 else
7649 grub_cv_i386_asm_addr32=no
7652 rm -f conftest*
7656 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_addr32" >&5
7657 echo "${ECHO_T}$grub_cv_i386_asm_addr32" >&6; }
7659 { echo "$as_me:$LINENO: checking whether an absolute indirect call/jump must not be prefixed with an asterisk" >&5
7660 echo $ECHO_N "checking whether an absolute indirect call/jump must not be prefixed with an asterisk... $ECHO_C" >&6; }
7661 if test "${grub_cv_i386_asm_absolute_without_asterisk+set}" = set; then
7662 echo $ECHO_N "(cached) $ECHO_C" >&6
7663 else
7664 cat > conftest.s <<\EOF
7665 lcall *(offset)
7666 offset:
7667 .long 0
7668 .word 0
7671 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
7672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7673 (eval $ac_try) 2>&5
7674 ac_status=$?
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); }; } && test -s conftest.o; then
7677 grub_cv_i386_asm_absolute_without_asterisk=no
7678 else
7679 grub_cv_i386_asm_absolute_without_asterisk=yes
7682 rm -f conftest*
7686 if test "x$grub_cv_i386_asm_absolute_without_asterisk" = xyes; then
7688 cat >>confdefs.h <<\_ACEOF
7689 #define ABSOLUTE_WITHOUT_ASTERISK 1
7690 _ACEOF
7694 { echo "$as_me:$LINENO: result: $grub_cv_i386_asm_absolute_without_asterisk" >&5
7695 echo "${ECHO_T}$grub_cv_i386_asm_absolute_without_asterisk" >&6; }
7697 { echo "$as_me:$LINENO: checking if GCC has the regparm=3 bug" >&5
7698 echo $ECHO_N "checking if GCC has the regparm=3 bug... $ECHO_C" >&6; }
7699 if test "${grub_cv_i386_check_nested_functions+set}" = set; then
7700 echo $ECHO_N "(cached) $ECHO_C" >&6
7701 else
7702 if test "$cross_compiling" = yes; then
7703 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7704 See \`config.log' for more details." >&5
7705 echo "$as_me: error: cannot run test program while cross compiling
7706 See \`config.log' for more details." >&2;}
7707 { (exit 1); exit 1; }; }
7708 else
7709 cat >conftest.$ac_ext <<_ACEOF
7710 /* confdefs.h. */
7711 _ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7716 static int
7717 test (int *n)
7719 return *n == -1;
7722 static int
7723 testfunc (int __attribute__ ((__regparm__ (3))) (*hook) (int a, int b, int *c))
7725 int a = 0;
7726 int b = 0;
7727 int c = -1;
7728 return hook (a, b, &c);
7732 main (void)
7734 int __attribute__ ((__regparm__ (3))) nestedfunc (int a, int b, int *c)
7736 return a == b && test (c);
7738 return testfunc (nestedfunc) ? 0 : 1;
7741 _ACEOF
7742 rm -f conftest$ac_exeext
7743 if { (ac_try="$ac_link"
7744 case "(($ac_try" in
7745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7746 *) ac_try_echo=$ac_try;;
7747 esac
7748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7749 (eval "$ac_link") 2>&5
7750 ac_status=$?
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7753 { (case "(($ac_try" in
7754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7755 *) ac_try_echo=$ac_try;;
7756 esac
7757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7758 (eval "$ac_try") 2>&5
7759 ac_status=$?
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); }; }; then
7762 grub_cv_i386_check_nested_functions=no
7763 else
7764 echo "$as_me: program exited with status $ac_status" >&5
7765 echo "$as_me: failed program was:" >&5
7766 sed 's/^/| /' conftest.$ac_ext >&5
7768 ( exit $ac_status )
7769 grub_cv_i386_check_nested_functions=yes
7771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7778 { echo "$as_me:$LINENO: result: $grub_cv_i386_check_nested_functions" >&5
7779 echo "${ECHO_T}$grub_cv_i386_check_nested_functions" >&6; }
7781 if test "x$grub_cv_i386_check_nested_functions" = xyes; then
7783 cat >>confdefs.h <<\_ACEOF
7784 #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (1)))
7785 _ACEOF
7787 else
7789 cat >>confdefs.h <<\_ACEOF
7790 #define NESTED_FUNC_ATTR __attribute__ ((__regparm__ (1)))
7791 _ACEOF
7795 else
7797 cat >>confdefs.h <<\_ACEOF
7798 #define NESTED_FUNC_ATTR
7799 _ACEOF
7803 # Restore the flags.
7804 CC="$tmp_CC"
7805 CFLAGS="$tmp_CFLAGS"
7806 CPPFLAGS="$tmp_CPPFLAGS"
7807 LDFLAGS="$tmp_LDFLAGS"
7808 LIBS="$tmp_LIBS"
7811 # Check for options.
7814 # Memory manager debugging.
7815 # Check whether --enable-mm-debug was given.
7816 if test "${enable_mm_debug+set}" = set; then
7817 enableval=$enable_mm_debug;
7818 cat >>confdefs.h <<\_ACEOF
7819 #define MM_DEBUG 1
7820 _ACEOF
7825 # Check whether --enable-grub-emu was given.
7826 if test "${enable_grub_emu+set}" = set; then
7827 enableval=$enable_grub_emu;
7830 if [ x"$enable_grub_emu" = xyes ]; then
7831 # Check for curses libraries.
7832 { echo "$as_me:$LINENO: checking for wgetch in -lncurses" >&5
7833 echo $ECHO_N "checking for wgetch in -lncurses... $ECHO_C" >&6; }
7834 if test "${ac_cv_lib_ncurses_wgetch+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7836 else
7837 ac_check_lib_save_LIBS=$LIBS
7838 LIBS="-lncurses $LIBS"
7839 cat >conftest.$ac_ext <<_ACEOF
7840 /* confdefs.h. */
7841 _ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7846 /* Override any GCC internal prototype to avoid an error.
7847 Use char because int might match the return type of a GCC
7848 builtin and then its argument prototype would still apply. */
7849 #ifdef __cplusplus
7850 extern "C"
7851 #endif
7852 char wgetch ();
7854 main ()
7856 return wgetch ();
7858 return 0;
7860 _ACEOF
7861 rm -f conftest.$ac_objext conftest$ac_exeext
7862 if { (ac_try="$ac_link"
7863 case "(($ac_try" in
7864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7865 *) ac_try_echo=$ac_try;;
7866 esac
7867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7868 (eval "$ac_link") 2>conftest.er1
7869 ac_status=$?
7870 grep -v '^ *+' conftest.er1 >conftest.err
7871 rm -f conftest.er1
7872 cat conftest.err >&5
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); } && {
7875 test -z "$ac_c_werror_flag" ||
7876 test ! -s conftest.err
7877 } && test -s conftest$ac_exeext &&
7878 $as_test_x conftest$ac_exeext; then
7879 ac_cv_lib_ncurses_wgetch=yes
7880 else
7881 echo "$as_me: failed program was:" >&5
7882 sed 's/^/| /' conftest.$ac_ext >&5
7884 ac_cv_lib_ncurses_wgetch=no
7887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7888 conftest$ac_exeext conftest.$ac_ext
7889 LIBS=$ac_check_lib_save_LIBS
7891 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_wgetch" >&5
7892 echo "${ECHO_T}$ac_cv_lib_ncurses_wgetch" >&6; }
7893 if test $ac_cv_lib_ncurses_wgetch = yes; then
7894 LIBCURSES="-lncurses"
7895 else
7896 { echo "$as_me:$LINENO: checking for wgetch in -lcurses" >&5
7897 echo $ECHO_N "checking for wgetch in -lcurses... $ECHO_C" >&6; }
7898 if test "${ac_cv_lib_curses_wgetch+set}" = set; then
7899 echo $ECHO_N "(cached) $ECHO_C" >&6
7900 else
7901 ac_check_lib_save_LIBS=$LIBS
7902 LIBS="-lcurses $LIBS"
7903 cat >conftest.$ac_ext <<_ACEOF
7904 /* confdefs.h. */
7905 _ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h. */
7910 /* Override any GCC internal prototype to avoid an error.
7911 Use char because int might match the return type of a GCC
7912 builtin and then its argument prototype would still apply. */
7913 #ifdef __cplusplus
7914 extern "C"
7915 #endif
7916 char wgetch ();
7918 main ()
7920 return wgetch ();
7922 return 0;
7924 _ACEOF
7925 rm -f conftest.$ac_objext conftest$ac_exeext
7926 if { (ac_try="$ac_link"
7927 case "(($ac_try" in
7928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7929 *) ac_try_echo=$ac_try;;
7930 esac
7931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7932 (eval "$ac_link") 2>conftest.er1
7933 ac_status=$?
7934 grep -v '^ *+' conftest.er1 >conftest.err
7935 rm -f conftest.er1
7936 cat conftest.err >&5
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); } && {
7939 test -z "$ac_c_werror_flag" ||
7940 test ! -s conftest.err
7941 } && test -s conftest$ac_exeext &&
7942 $as_test_x conftest$ac_exeext; then
7943 ac_cv_lib_curses_wgetch=yes
7944 else
7945 echo "$as_me: failed program was:" >&5
7946 sed 's/^/| /' conftest.$ac_ext >&5
7948 ac_cv_lib_curses_wgetch=no
7951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7952 conftest$ac_exeext conftest.$ac_ext
7953 LIBS=$ac_check_lib_save_LIBS
7955 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_wgetch" >&5
7956 echo "${ECHO_T}$ac_cv_lib_curses_wgetch" >&6; }
7957 if test $ac_cv_lib_curses_wgetch = yes; then
7958 LIBCURSES="-lcurses"
7959 else
7960 { { echo "$as_me:$LINENO: error: (n)curses libraries are required to build \`grub-emu'" >&5
7961 echo "$as_me: error: (n)curses libraries are required to build \`grub-emu'" >&2;}
7962 { (exit 1); exit 1; }; }
7969 # Check for headers.
7971 for ac_header in ncurses/curses.h
7973 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7978 echo $ECHO_N "(cached) $ECHO_C" >&6
7980 ac_res=`eval echo '${'$as_ac_Header'}'`
7981 { echo "$as_me:$LINENO: result: $ac_res" >&5
7982 echo "${ECHO_T}$ac_res" >&6; }
7983 else
7984 # Is the header compilable?
7985 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7986 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7987 cat >conftest.$ac_ext <<_ACEOF
7988 /* confdefs.h. */
7989 _ACEOF
7990 cat confdefs.h >>conftest.$ac_ext
7991 cat >>conftest.$ac_ext <<_ACEOF
7992 /* end confdefs.h. */
7993 $ac_includes_default
7994 #include <$ac_header>
7995 _ACEOF
7996 rm -f conftest.$ac_objext
7997 if { (ac_try="$ac_compile"
7998 case "(($ac_try" in
7999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000 *) ac_try_echo=$ac_try;;
8001 esac
8002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8003 (eval "$ac_compile") 2>conftest.er1
8004 ac_status=$?
8005 grep -v '^ *+' conftest.er1 >conftest.err
8006 rm -f conftest.er1
8007 cat conftest.err >&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); } && {
8010 test -z "$ac_c_werror_flag" ||
8011 test ! -s conftest.err
8012 } && test -s conftest.$ac_objext; then
8013 ac_header_compiler=yes
8014 else
8015 echo "$as_me: failed program was:" >&5
8016 sed 's/^/| /' conftest.$ac_ext >&5
8018 ac_header_compiler=no
8021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8022 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8023 echo "${ECHO_T}$ac_header_compiler" >&6; }
8025 # Is the header present?
8026 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8027 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8028 cat >conftest.$ac_ext <<_ACEOF
8029 /* confdefs.h. */
8030 _ACEOF
8031 cat confdefs.h >>conftest.$ac_ext
8032 cat >>conftest.$ac_ext <<_ACEOF
8033 /* end confdefs.h. */
8034 #include <$ac_header>
8035 _ACEOF
8036 if { (ac_try="$ac_cpp conftest.$ac_ext"
8037 case "(($ac_try" in
8038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039 *) ac_try_echo=$ac_try;;
8040 esac
8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8043 ac_status=$?
8044 grep -v '^ *+' conftest.er1 >conftest.err
8045 rm -f conftest.er1
8046 cat conftest.err >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } >/dev/null && {
8049 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8050 test ! -s conftest.err
8051 }; then
8052 ac_header_preproc=yes
8053 else
8054 echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8057 ac_header_preproc=no
8060 rm -f conftest.err conftest.$ac_ext
8061 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8062 echo "${ECHO_T}$ac_header_preproc" >&6; }
8064 # So? What about this header?
8065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8066 yes:no: )
8067 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8068 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8070 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8071 ac_header_preproc=yes
8073 no:yes:* )
8074 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8075 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8076 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8077 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8078 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8079 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8080 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8081 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8083 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8084 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8085 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8086 ( cat <<\_ASBOX
8087 ## ------------------------------- ##
8088 ## Report this to bug-grub@gnu.org ##
8089 ## ------------------------------- ##
8090 _ASBOX
8091 ) | sed "s/^/$as_me: WARNING: /" >&2
8093 esac
8094 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8097 echo $ECHO_N "(cached) $ECHO_C" >&6
8098 else
8099 eval "$as_ac_Header=\$ac_header_preproc"
8101 ac_res=`eval echo '${'$as_ac_Header'}'`
8102 { echo "$as_me:$LINENO: result: $ac_res" >&5
8103 echo "${ECHO_T}$ac_res" >&6; }
8106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8107 cat >>confdefs.h <<_ACEOF
8108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8109 _ACEOF
8111 else
8113 for ac_header in ncurses.h
8115 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8117 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8122 ac_res=`eval echo '${'$as_ac_Header'}'`
8123 { echo "$as_me:$LINENO: result: $ac_res" >&5
8124 echo "${ECHO_T}$ac_res" >&6; }
8125 else
8126 # Is the header compilable?
8127 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8128 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8129 cat >conftest.$ac_ext <<_ACEOF
8130 /* confdefs.h. */
8131 _ACEOF
8132 cat confdefs.h >>conftest.$ac_ext
8133 cat >>conftest.$ac_ext <<_ACEOF
8134 /* end confdefs.h. */
8135 $ac_includes_default
8136 #include <$ac_header>
8137 _ACEOF
8138 rm -f conftest.$ac_objext
8139 if { (ac_try="$ac_compile"
8140 case "(($ac_try" in
8141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142 *) ac_try_echo=$ac_try;;
8143 esac
8144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8145 (eval "$ac_compile") 2>conftest.er1
8146 ac_status=$?
8147 grep -v '^ *+' conftest.er1 >conftest.err
8148 rm -f conftest.er1
8149 cat conftest.err >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); } && {
8152 test -z "$ac_c_werror_flag" ||
8153 test ! -s conftest.err
8154 } && test -s conftest.$ac_objext; then
8155 ac_header_compiler=yes
8156 else
8157 echo "$as_me: failed program was:" >&5
8158 sed 's/^/| /' conftest.$ac_ext >&5
8160 ac_header_compiler=no
8163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8164 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8165 echo "${ECHO_T}$ac_header_compiler" >&6; }
8167 # Is the header present?
8168 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8170 cat >conftest.$ac_ext <<_ACEOF
8171 /* confdefs.h. */
8172 _ACEOF
8173 cat confdefs.h >>conftest.$ac_ext
8174 cat >>conftest.$ac_ext <<_ACEOF
8175 /* end confdefs.h. */
8176 #include <$ac_header>
8177 _ACEOF
8178 if { (ac_try="$ac_cpp conftest.$ac_ext"
8179 case "(($ac_try" in
8180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181 *) ac_try_echo=$ac_try;;
8182 esac
8183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8185 ac_status=$?
8186 grep -v '^ *+' conftest.er1 >conftest.err
8187 rm -f conftest.er1
8188 cat conftest.err >&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); } >/dev/null && {
8191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8192 test ! -s conftest.err
8193 }; then
8194 ac_header_preproc=yes
8195 else
8196 echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8199 ac_header_preproc=no
8202 rm -f conftest.err conftest.$ac_ext
8203 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8204 echo "${ECHO_T}$ac_header_preproc" >&6; }
8206 # So? What about this header?
8207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8208 yes:no: )
8209 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8210 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8212 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8213 ac_header_preproc=yes
8215 no:yes:* )
8216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8219 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8220 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8221 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8222 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8223 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8225 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8226 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8227 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8228 ( cat <<\_ASBOX
8229 ## ------------------------------- ##
8230 ## Report this to bug-grub@gnu.org ##
8231 ## ------------------------------- ##
8232 _ASBOX
8233 ) | sed "s/^/$as_me: WARNING: /" >&2
8235 esac
8236 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8239 echo $ECHO_N "(cached) $ECHO_C" >&6
8240 else
8241 eval "$as_ac_Header=\$ac_header_preproc"
8243 ac_res=`eval echo '${'$as_ac_Header'}'`
8244 { echo "$as_me:$LINENO: result: $ac_res" >&5
8245 echo "${ECHO_T}$ac_res" >&6; }
8248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8249 cat >>confdefs.h <<_ACEOF
8250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8251 _ACEOF
8253 else
8255 for ac_header in curses.h
8257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8259 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8262 echo $ECHO_N "(cached) $ECHO_C" >&6
8264 ac_res=`eval echo '${'$as_ac_Header'}'`
8265 { echo "$as_me:$LINENO: result: $ac_res" >&5
8266 echo "${ECHO_T}$ac_res" >&6; }
8267 else
8268 # Is the header compilable?
8269 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8271 cat >conftest.$ac_ext <<_ACEOF
8272 /* confdefs.h. */
8273 _ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8277 $ac_includes_default
8278 #include <$ac_header>
8279 _ACEOF
8280 rm -f conftest.$ac_objext
8281 if { (ac_try="$ac_compile"
8282 case "(($ac_try" in
8283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8284 *) ac_try_echo=$ac_try;;
8285 esac
8286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8287 (eval "$ac_compile") 2>conftest.er1
8288 ac_status=$?
8289 grep -v '^ *+' conftest.er1 >conftest.err
8290 rm -f conftest.er1
8291 cat conftest.err >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } && {
8294 test -z "$ac_c_werror_flag" ||
8295 test ! -s conftest.err
8296 } && test -s conftest.$ac_objext; then
8297 ac_header_compiler=yes
8298 else
8299 echo "$as_me: failed program was:" >&5
8300 sed 's/^/| /' conftest.$ac_ext >&5
8302 ac_header_compiler=no
8305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8306 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8307 echo "${ECHO_T}$ac_header_compiler" >&6; }
8309 # Is the header present?
8310 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8312 cat >conftest.$ac_ext <<_ACEOF
8313 /* confdefs.h. */
8314 _ACEOF
8315 cat confdefs.h >>conftest.$ac_ext
8316 cat >>conftest.$ac_ext <<_ACEOF
8317 /* end confdefs.h. */
8318 #include <$ac_header>
8319 _ACEOF
8320 if { (ac_try="$ac_cpp conftest.$ac_ext"
8321 case "(($ac_try" in
8322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8323 *) ac_try_echo=$ac_try;;
8324 esac
8325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8327 ac_status=$?
8328 grep -v '^ *+' conftest.er1 >conftest.err
8329 rm -f conftest.er1
8330 cat conftest.err >&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); } >/dev/null && {
8333 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8334 test ! -s conftest.err
8335 }; then
8336 ac_header_preproc=yes
8337 else
8338 echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.$ac_ext >&5
8341 ac_header_preproc=no
8344 rm -f conftest.err conftest.$ac_ext
8345 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8346 echo "${ECHO_T}$ac_header_preproc" >&6; }
8348 # So? What about this header?
8349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8350 yes:no: )
8351 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8352 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8354 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8355 ac_header_preproc=yes
8357 no:yes:* )
8358 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8359 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8360 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8361 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8362 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8363 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8364 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8365 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8367 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8368 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8369 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8370 ( cat <<\_ASBOX
8371 ## ------------------------------- ##
8372 ## Report this to bug-grub@gnu.org ##
8373 ## ------------------------------- ##
8374 _ASBOX
8375 ) | sed "s/^/$as_me: WARNING: /" >&2
8377 esac
8378 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8381 echo $ECHO_N "(cached) $ECHO_C" >&6
8382 else
8383 eval "$as_ac_Header=\$ac_header_preproc"
8385 ac_res=`eval echo '${'$as_ac_Header'}'`
8386 { echo "$as_me:$LINENO: result: $ac_res" >&5
8387 echo "${ECHO_T}$ac_res" >&6; }
8390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8391 cat >>confdefs.h <<_ACEOF
8392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8393 _ACEOF
8395 else
8396 { { echo "$as_me:$LINENO: error: (n)curses header files are required to build \`grub-emu'" >&5
8397 echo "$as_me: error: (n)curses header files are required to build \`grub-emu'" >&2;}
8398 { (exit 1); exit 1; }; }
8401 done
8405 done
8409 done
8414 # Check whether --enable-grub-fstest was given.
8415 if test "${enable_grub_fstest+set}" = set; then
8416 enableval=$enable_grub_fstest;
8421 # Check whether --enable-grub-pe2elf was given.
8422 if test "${enable_grub_pe2elf+set}" = set; then
8423 enableval=$enable_grub_pe2elf;
8428 # Output files.
8429 ac_config_links="$ac_config_links include/grub/cpu:include/grub/$target_cpu include/grub/machine:include/grub/$target_cpu/$platform"
8431 ac_config_files="$ac_config_files Makefile gensymlist.sh genkernsyms.sh"
8433 ac_config_files="$ac_config_files stamp-h"
8435 cat >confcache <<\_ACEOF
8436 # This file is a shell script that caches the results of configure
8437 # tests run on this system so they can be shared between configure
8438 # scripts and configure runs, see configure's option --config-cache.
8439 # It is not useful on other systems. If it contains results you don't
8440 # want to keep, you may remove or edit it.
8442 # config.status only pays attention to the cache file if you give it
8443 # the --recheck option to rerun configure.
8445 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8446 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8447 # following values.
8449 _ACEOF
8451 # The following way of writing the cache mishandles newlines in values,
8452 # but we know of no workaround that is simple, portable, and efficient.
8453 # So, we kill variables containing newlines.
8454 # Ultrix sh set writes to stderr and can't be redirected directly,
8455 # and sets the high bit in the cache file unless we assign to the vars.
8457 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8458 eval ac_val=\$$ac_var
8459 case $ac_val in #(
8460 *${as_nl}*)
8461 case $ac_var in #(
8462 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8463 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8464 esac
8465 case $ac_var in #(
8466 _ | IFS | as_nl) ;; #(
8467 *) $as_unset $ac_var ;;
8468 esac ;;
8469 esac
8470 done
8472 (set) 2>&1 |
8473 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8474 *${as_nl}ac_space=\ *)
8475 # `set' does not quote correctly, so add quotes (double-quote
8476 # substitution turns \\\\ into \\, and sed turns \\ into \).
8477 sed -n \
8478 "s/'/'\\\\''/g;
8479 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8480 ;; #(
8482 # `set' quotes correctly as required by POSIX, so do not add quotes.
8483 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8485 esac |
8486 sort
8488 sed '
8489 /^ac_cv_env_/b end
8490 t clear
8491 :clear
8492 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8493 t end
8494 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8495 :end' >>confcache
8496 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8497 if test -w "$cache_file"; then
8498 test "x$cache_file" != "x/dev/null" &&
8499 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8500 echo "$as_me: updating cache $cache_file" >&6;}
8501 cat confcache >$cache_file
8502 else
8503 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8504 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8507 rm -f confcache
8509 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8510 # Let make expand exec_prefix.
8511 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8513 DEFS=-DHAVE_CONFIG_H
8515 ac_libobjs=
8516 ac_ltlibobjs=
8517 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8518 # 1. Remove the extension, and $U if already installed.
8519 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8520 ac_i=`echo "$ac_i" | sed "$ac_script"`
8521 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8522 # will be set to the directory where LIBOBJS objects are built.
8523 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8524 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8525 done
8526 LIBOBJS=$ac_libobjs
8528 LTLIBOBJS=$ac_ltlibobjs
8532 : ${CONFIG_STATUS=./config.status}
8533 ac_clean_files_save=$ac_clean_files
8534 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8535 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8536 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8537 cat >$CONFIG_STATUS <<_ACEOF
8538 #! $SHELL
8539 # Generated by $as_me.
8540 # Run this file to recreate the current configuration.
8541 # Compiler output produced by configure, useful for debugging
8542 # configure, is in config.log if it exists.
8544 debug=false
8545 ac_cs_recheck=false
8546 ac_cs_silent=false
8547 SHELL=\${CONFIG_SHELL-$SHELL}
8548 _ACEOF
8550 cat >>$CONFIG_STATUS <<\_ACEOF
8551 ## --------------------- ##
8552 ## M4sh Initialization. ##
8553 ## --------------------- ##
8555 # Be more Bourne compatible
8556 DUALCASE=1; export DUALCASE # for MKS sh
8557 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8558 emulate sh
8559 NULLCMD=:
8560 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8561 # is contrary to our usage. Disable this feature.
8562 alias -g '${1+"$@"}'='"$@"'
8563 setopt NO_GLOB_SUBST
8564 else
8565 case `(set -o) 2>/dev/null` in
8566 *posix*) set -o posix ;;
8567 esac
8574 # PATH needs CR
8575 # Avoid depending upon Character Ranges.
8576 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8577 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8578 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8579 as_cr_digits='0123456789'
8580 as_cr_alnum=$as_cr_Letters$as_cr_digits
8582 # The user is always right.
8583 if test "${PATH_SEPARATOR+set}" != set; then
8584 echo "#! /bin/sh" >conf$$.sh
8585 echo "exit 0" >>conf$$.sh
8586 chmod +x conf$$.sh
8587 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8588 PATH_SEPARATOR=';'
8589 else
8590 PATH_SEPARATOR=:
8592 rm -f conf$$.sh
8595 # Support unset when possible.
8596 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8597 as_unset=unset
8598 else
8599 as_unset=false
8603 # IFS
8604 # We need space, tab and new line, in precisely that order. Quoting is
8605 # there to prevent editors from complaining about space-tab.
8606 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8607 # splitting by setting IFS to empty value.)
8608 as_nl='
8610 IFS=" "" $as_nl"
8612 # Find who we are. Look in the path if we contain no directory separator.
8613 case $0 in
8614 *[\\/]* ) as_myself=$0 ;;
8615 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8616 for as_dir in $PATH
8618 IFS=$as_save_IFS
8619 test -z "$as_dir" && as_dir=.
8620 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8621 done
8622 IFS=$as_save_IFS
8625 esac
8626 # We did not find ourselves, most probably we were run as `sh COMMAND'
8627 # in which case we are not to be found in the path.
8628 if test "x$as_myself" = x; then
8629 as_myself=$0
8631 if test ! -f "$as_myself"; then
8632 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8633 { (exit 1); exit 1; }
8636 # Work around bugs in pre-3.0 UWIN ksh.
8637 for as_var in ENV MAIL MAILPATH
8638 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8639 done
8640 PS1='$ '
8641 PS2='> '
8642 PS4='+ '
8644 # NLS nuisances.
8645 for as_var in \
8646 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8647 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8648 LC_TELEPHONE LC_TIME
8650 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8651 eval $as_var=C; export $as_var
8652 else
8653 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8655 done
8657 # Required to use basename.
8658 if expr a : '\(a\)' >/dev/null 2>&1 &&
8659 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8660 as_expr=expr
8661 else
8662 as_expr=false
8665 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8666 as_basename=basename
8667 else
8668 as_basename=false
8672 # Name of the executable.
8673 as_me=`$as_basename -- "$0" ||
8674 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8675 X"$0" : 'X\(//\)$' \| \
8676 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8677 echo X/"$0" |
8678 sed '/^.*\/\([^/][^/]*\)\/*$/{
8679 s//\1/
8682 /^X\/\(\/\/\)$/{
8683 s//\1/
8686 /^X\/\(\/\).*/{
8687 s//\1/
8690 s/.*/./; q'`
8692 # CDPATH.
8693 $as_unset CDPATH
8697 as_lineno_1=$LINENO
8698 as_lineno_2=$LINENO
8699 test "x$as_lineno_1" != "x$as_lineno_2" &&
8700 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
8702 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8703 # uniformly replaced by the line number. The first 'sed' inserts a
8704 # line-number line after each line using $LINENO; the second 'sed'
8705 # does the real work. The second script uses 'N' to pair each
8706 # line-number line with the line containing $LINENO, and appends
8707 # trailing '-' during substitution so that $LINENO is not a special
8708 # case at line end.
8709 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8710 # scripts with optimization help from Paolo Bonzini. Blame Lee
8711 # E. McMahon (1931-1989) for sed's syntax. :-)
8712 sed -n '
8714 /[$]LINENO/=
8715 ' <$as_myself |
8716 sed '
8717 s/[$]LINENO.*/&-/
8718 t lineno
8720 :lineno
8722 :loop
8723 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8724 t loop
8725 s/-\n.*//
8726 ' >$as_me.lineno &&
8727 chmod +x "$as_me.lineno" ||
8728 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8729 { (exit 1); exit 1; }; }
8731 # Don't try to exec as it changes $[0], causing all sort of problems
8732 # (the dirname of $[0] is not the place where we might find the
8733 # original and so on. Autoconf is especially sensitive to this).
8734 . "./$as_me.lineno"
8735 # Exit status is that of the last command.
8736 exit
8740 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8741 as_dirname=dirname
8742 else
8743 as_dirname=false
8746 ECHO_C= ECHO_N= ECHO_T=
8747 case `echo -n x` in
8748 -n*)
8749 case `echo 'x\c'` in
8750 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8751 *) ECHO_C='\c';;
8752 esac;;
8754 ECHO_N='-n';;
8755 esac
8757 if expr a : '\(a\)' >/dev/null 2>&1 &&
8758 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8759 as_expr=expr
8760 else
8761 as_expr=false
8764 rm -f conf$$ conf$$.exe conf$$.file
8765 if test -d conf$$.dir; then
8766 rm -f conf$$.dir/conf$$.file
8767 else
8768 rm -f conf$$.dir
8769 mkdir conf$$.dir
8771 echo >conf$$.file
8772 if ln -s conf$$.file conf$$ 2>/dev/null; then
8773 as_ln_s='ln -s'
8774 # ... but there are two gotchas:
8775 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8776 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8777 # In both cases, we have to default to `cp -p'.
8778 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8779 as_ln_s='cp -p'
8780 elif ln conf$$.file conf$$ 2>/dev/null; then
8781 as_ln_s=ln
8782 else
8783 as_ln_s='cp -p'
8785 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8786 rmdir conf$$.dir 2>/dev/null
8788 if mkdir -p . 2>/dev/null; then
8789 as_mkdir_p=:
8790 else
8791 test -d ./-p && rmdir ./-p
8792 as_mkdir_p=false
8795 if test -x / >/dev/null 2>&1; then
8796 as_test_x='test -x'
8797 else
8798 if ls -dL / >/dev/null 2>&1; then
8799 as_ls_L_option=L
8800 else
8801 as_ls_L_option=
8803 as_test_x='
8804 eval sh -c '\''
8805 if test -d "$1"; then
8806 test -d "$1/.";
8807 else
8808 case $1 in
8809 -*)set "./$1";;
8810 esac;
8811 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8812 ???[sx]*):;;*)false;;esac;fi
8813 '\'' sh
8816 as_executable_p=$as_test_x
8818 # Sed expression to map a string onto a valid CPP name.
8819 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8821 # Sed expression to map a string onto a valid variable name.
8822 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8825 exec 6>&1
8827 # Save the log message, to keep $[0] and so on meaningful, and to
8828 # report actual input values of CONFIG_FILES etc. instead of their
8829 # values after options handling.
8830 ac_log="
8831 This file was extended by GRUB $as_me 1.96, which was
8832 generated by GNU Autoconf 2.61. Invocation command line was
8834 CONFIG_FILES = $CONFIG_FILES
8835 CONFIG_HEADERS = $CONFIG_HEADERS
8836 CONFIG_LINKS = $CONFIG_LINKS
8837 CONFIG_COMMANDS = $CONFIG_COMMANDS
8838 $ $0 $@
8840 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8843 _ACEOF
8845 cat >>$CONFIG_STATUS <<_ACEOF
8846 # Files that config.status was made for.
8847 config_files="$ac_config_files"
8848 config_headers="$ac_config_headers"
8849 config_links="$ac_config_links"
8851 _ACEOF
8853 cat >>$CONFIG_STATUS <<\_ACEOF
8854 ac_cs_usage="\
8855 \`$as_me' instantiates files from templates according to the
8856 current configuration.
8858 Usage: $0 [OPTIONS] [FILE]...
8860 -h, --help print this help, then exit
8861 -V, --version print version number and configuration settings, then exit
8862 -q, --quiet do not print progress messages
8863 -d, --debug don't remove temporary files
8864 --recheck update $as_me by reconfiguring in the same conditions
8865 --file=FILE[:TEMPLATE]
8866 instantiate the configuration file FILE
8867 --header=FILE[:TEMPLATE]
8868 instantiate the configuration header FILE
8870 Configuration files:
8871 $config_files
8873 Configuration headers:
8874 $config_headers
8876 Configuration links:
8877 $config_links
8879 Report bugs to <bug-autoconf@gnu.org>."
8881 _ACEOF
8882 cat >>$CONFIG_STATUS <<_ACEOF
8883 ac_cs_version="\\
8884 GRUB config.status 1.96
8885 configured by $0, generated by GNU Autoconf 2.61,
8886 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8888 Copyright (C) 2006 Free Software Foundation, Inc.
8889 This config.status script is free software; the Free Software Foundation
8890 gives unlimited permission to copy, distribute and modify it."
8892 ac_pwd='$ac_pwd'
8893 srcdir='$srcdir'
8894 INSTALL='$INSTALL'
8895 _ACEOF
8897 cat >>$CONFIG_STATUS <<\_ACEOF
8898 # If no file are specified by the user, then we need to provide default
8899 # value. By we need to know if files were specified by the user.
8900 ac_need_defaults=:
8901 while test $# != 0
8903 case $1 in
8904 --*=*)
8905 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8906 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8907 ac_shift=:
8910 ac_option=$1
8911 ac_optarg=$2
8912 ac_shift=shift
8914 esac
8916 case $ac_option in
8917 # Handling of the options.
8918 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8919 ac_cs_recheck=: ;;
8920 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8921 echo "$ac_cs_version"; exit ;;
8922 --debug | --debu | --deb | --de | --d | -d )
8923 debug=: ;;
8924 --file | --fil | --fi | --f )
8925 $ac_shift
8926 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8927 ac_need_defaults=false;;
8928 --header | --heade | --head | --hea )
8929 $ac_shift
8930 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8931 ac_need_defaults=false;;
8932 --he | --h)
8933 # Conflict between --help and --header
8934 { echo "$as_me: error: ambiguous option: $1
8935 Try \`$0 --help' for more information." >&2
8936 { (exit 1); exit 1; }; };;
8937 --help | --hel | -h )
8938 echo "$ac_cs_usage"; exit ;;
8939 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8940 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8941 ac_cs_silent=: ;;
8943 # This is an error.
8944 -*) { echo "$as_me: error: unrecognized option: $1
8945 Try \`$0 --help' for more information." >&2
8946 { (exit 1); exit 1; }; } ;;
8948 *) ac_config_targets="$ac_config_targets $1"
8949 ac_need_defaults=false ;;
8951 esac
8952 shift
8953 done
8955 ac_configure_extra_args=
8957 if $ac_cs_silent; then
8958 exec 6>/dev/null
8959 ac_configure_extra_args="$ac_configure_extra_args --silent"
8962 _ACEOF
8963 cat >>$CONFIG_STATUS <<_ACEOF
8964 if \$ac_cs_recheck; then
8965 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8966 CONFIG_SHELL=$SHELL
8967 export CONFIG_SHELL
8968 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8971 _ACEOF
8972 cat >>$CONFIG_STATUS <<\_ACEOF
8973 exec 5>>config.log
8975 echo
8976 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8977 ## Running $as_me. ##
8978 _ASBOX
8979 echo "$ac_log"
8980 } >&5
8982 _ACEOF
8983 cat >>$CONFIG_STATUS <<_ACEOF
8984 _ACEOF
8986 cat >>$CONFIG_STATUS <<\_ACEOF
8988 # Handling of arguments.
8989 for ac_config_target in $ac_config_targets
8991 case $ac_config_target in
8992 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8993 "include/grub/cpu") CONFIG_LINKS="$CONFIG_LINKS include/grub/cpu:include/grub/$target_cpu" ;;
8994 "include/grub/machine") CONFIG_LINKS="$CONFIG_LINKS include/grub/machine:include/grub/$target_cpu/$platform" ;;
8995 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8996 "gensymlist.sh") CONFIG_FILES="$CONFIG_FILES gensymlist.sh" ;;
8997 "genkernsyms.sh") CONFIG_FILES="$CONFIG_FILES genkernsyms.sh" ;;
8998 "stamp-h") CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
9000 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9001 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9002 { (exit 1); exit 1; }; };;
9003 esac
9004 done
9007 # If the user did not use the arguments to specify the items to instantiate,
9008 # then the envvar interface is used. Set only those that are not.
9009 # We use the long form for the default assignment because of an extremely
9010 # bizarre bug on SunOS 4.1.3.
9011 if $ac_need_defaults; then
9012 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9013 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9014 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
9017 # Have a temporary directory for convenience. Make it in the build tree
9018 # simply because there is no reason against having it here, and in addition,
9019 # creating and moving files from /tmp can sometimes cause problems.
9020 # Hook for its removal unless debugging.
9021 # Note that there is a small window in which the directory will not be cleaned:
9022 # after its creation but before its name has been assigned to `$tmp'.
9023 $debug ||
9025 tmp=
9026 trap 'exit_status=$?
9027 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9029 trap '{ (exit 1); exit 1; }' 1 2 13 15
9031 # Create a (secure) tmp directory for tmp files.
9034 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9035 test -n "$tmp" && test -d "$tmp"
9036 } ||
9038 tmp=./conf$$-$RANDOM
9039 (umask 077 && mkdir "$tmp")
9040 } ||
9042 echo "$me: cannot create a temporary directory in ." >&2
9043 { (exit 1); exit 1; }
9047 # Set up the sed scripts for CONFIG_FILES section.
9050 # No need to generate the scripts if there are no CONFIG_FILES.
9051 # This happens for instance when ./config.status config.h
9052 if test -n "$CONFIG_FILES"; then
9054 _ACEOF
9058 ac_delim='%!_!# '
9059 for ac_last_try in false false false false false :; do
9060 cat >conf$$subs.sed <<_ACEOF
9061 SHELL!$SHELL$ac_delim
9062 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
9063 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
9064 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
9065 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
9066 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
9067 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
9068 exec_prefix!$exec_prefix$ac_delim
9069 prefix!$prefix$ac_delim
9070 program_transform_name!$program_transform_name$ac_delim
9071 bindir!$bindir$ac_delim
9072 sbindir!$sbindir$ac_delim
9073 libexecdir!$libexecdir$ac_delim
9074 datarootdir!$datarootdir$ac_delim
9075 datadir!$datadir$ac_delim
9076 sysconfdir!$sysconfdir$ac_delim
9077 sharedstatedir!$sharedstatedir$ac_delim
9078 localstatedir!$localstatedir$ac_delim
9079 includedir!$includedir$ac_delim
9080 oldincludedir!$oldincludedir$ac_delim
9081 docdir!$docdir$ac_delim
9082 infodir!$infodir$ac_delim
9083 htmldir!$htmldir$ac_delim
9084 dvidir!$dvidir$ac_delim
9085 pdfdir!$pdfdir$ac_delim
9086 psdir!$psdir$ac_delim
9087 libdir!$libdir$ac_delim
9088 localedir!$localedir$ac_delim
9089 mandir!$mandir$ac_delim
9090 DEFS!$DEFS$ac_delim
9091 ECHO_C!$ECHO_C$ac_delim
9092 ECHO_N!$ECHO_N$ac_delim
9093 ECHO_T!$ECHO_T$ac_delim
9094 LIBS!$LIBS$ac_delim
9095 build_alias!$build_alias$ac_delim
9096 host_alias!$host_alias$ac_delim
9097 target_alias!$target_alias$ac_delim
9098 build!$build$ac_delim
9099 build_cpu!$build_cpu$ac_delim
9100 build_vendor!$build_vendor$ac_delim
9101 build_os!$build_os$ac_delim
9102 host!$host$ac_delim
9103 host_cpu!$host_cpu$ac_delim
9104 host_vendor!$host_vendor$ac_delim
9105 host_os!$host_os$ac_delim
9106 target!$target$ac_delim
9107 target_cpu!$target_cpu$ac_delim
9108 target_vendor!$target_vendor$ac_delim
9109 target_os!$target_os$ac_delim
9110 platform!$platform$ac_delim
9111 CMP!$CMP$ac_delim
9112 YACC!$YACC$ac_delim
9113 UNIFONT_HEX!$UNIFONT_HEX$ac_delim
9114 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
9115 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
9116 INSTALL_DATA!$INSTALL_DATA$ac_delim
9117 AWK!$AWK$ac_delim
9118 SET_MAKE!$SET_MAKE$ac_delim
9119 RUBY!$RUBY$ac_delim
9120 HELP2MAN!$HELP2MAN$ac_delim
9121 CC!$CC$ac_delim
9122 CFLAGS!$CFLAGS$ac_delim
9123 LDFLAGS!$LDFLAGS$ac_delim
9124 CPPFLAGS!$CPPFLAGS$ac_delim
9125 ac_ct_CC!$ac_ct_CC$ac_delim
9126 EXEEXT!$EXEEXT$ac_delim
9127 OBJEXT!$OBJEXT$ac_delim
9128 CPP!$CPP$ac_delim
9129 GREP!$GREP$ac_delim
9130 EGREP!$EGREP$ac_delim
9131 LIBLZO!$LIBLZO$ac_delim
9132 enable_lzo!$enable_lzo$ac_delim
9133 TARGET_IMG_LDSCRIPT!$TARGET_IMG_LDSCRIPT$ac_delim
9134 TARGET_IMG_LDFLAGS!$TARGET_IMG_LDFLAGS$ac_delim
9135 TARGET_OBJ2ELF!$TARGET_OBJ2ELF$ac_delim
9136 TARGET_CC!$TARGET_CC$ac_delim
9137 ac_ct_TARGET_CC!$ac_ct_TARGET_CC$ac_delim
9138 OBJCOPY!$OBJCOPY$ac_delim
9139 STRIP!$STRIP$ac_delim
9140 NM!$NM$ac_delim
9141 TARGET_CFLAGS!$TARGET_CFLAGS$ac_delim
9142 TARGET_CPPFLAGS!$TARGET_CPPFLAGS$ac_delim
9143 TARGET_LDFLAGS!$TARGET_LDFLAGS$ac_delim
9144 MODULE_LDFLAGS!$MODULE_LDFLAGS$ac_delim
9145 LIBCURSES!$LIBCURSES$ac_delim
9146 enable_grub_emu!$enable_grub_emu$ac_delim
9147 enable_grub_fstest!$enable_grub_fstest$ac_delim
9148 enable_grub_pe2elf!$enable_grub_pe2elf$ac_delim
9149 LIBOBJS!$LIBOBJS$ac_delim
9150 LTLIBOBJS!$LTLIBOBJS$ac_delim
9151 _ACEOF
9153 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
9154 break
9155 elif $ac_last_try; then
9156 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9157 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9158 { (exit 1); exit 1; }; }
9159 else
9160 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9162 done
9164 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9165 if test -n "$ac_eof"; then
9166 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9167 ac_eof=`expr $ac_eof + 1`
9170 cat >>$CONFIG_STATUS <<_ACEOF
9171 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9172 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
9173 _ACEOF
9174 sed '
9175 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9176 s/^/s,@/; s/!/@,|#_!!_#|/
9179 s/'"$ac_delim"'$/,g/; t
9180 s/$/\\/; p
9181 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9182 ' >>$CONFIG_STATUS <conf$$subs.sed
9183 rm -f conf$$subs.sed
9184 cat >>$CONFIG_STATUS <<_ACEOF
9185 :end
9186 s/|#_!!_#|//g
9187 CEOF$ac_eof
9188 _ACEOF
9191 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9192 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9193 # trailing colons and then remove the whole line if VPATH becomes empty
9194 # (actually we leave an empty line to preserve line numbers).
9195 if test "x$srcdir" = x.; then
9196 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9197 s/:*\$(srcdir):*/:/
9198 s/:*\${srcdir}:*/:/
9199 s/:*@srcdir@:*/:/
9200 s/^\([^=]*=[ ]*\):*/\1/
9201 s/:*$//
9202 s/^[^=]*=[ ]*$//
9206 cat >>$CONFIG_STATUS <<\_ACEOF
9207 fi # test -n "$CONFIG_FILES"
9210 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS
9212 case $ac_tag in
9213 :[FHLC]) ac_mode=$ac_tag; continue;;
9214 esac
9215 case $ac_mode$ac_tag in
9216 :[FHL]*:*);;
9217 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
9218 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
9219 { (exit 1); exit 1; }; };;
9220 :[FH]-) ac_tag=-:-;;
9221 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9222 esac
9223 ac_save_IFS=$IFS
9224 IFS=:
9225 set x $ac_tag
9226 IFS=$ac_save_IFS
9227 shift
9228 ac_file=$1
9229 shift
9231 case $ac_mode in
9232 :L) ac_source=$1;;
9233 :[FH])
9234 ac_file_inputs=
9235 for ac_f
9237 case $ac_f in
9238 -) ac_f="$tmp/stdin";;
9239 *) # Look for the file first in the build tree, then in the source tree
9240 # (if the path is not absolute). The absolute path cannot be DOS-style,
9241 # because $ac_f cannot contain `:'.
9242 test -f "$ac_f" ||
9243 case $ac_f in
9244 [\\/$]*) false;;
9245 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9246 esac ||
9247 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9248 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9249 { (exit 1); exit 1; }; };;
9250 esac
9251 ac_file_inputs="$ac_file_inputs $ac_f"
9252 done
9254 # Let's still pretend it is `configure' which instantiates (i.e., don't
9255 # use $as_me), people would be surprised to read:
9256 # /* config.h. Generated by config.status. */
9257 configure_input="Generated from "`IFS=:
9258 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
9259 if test x"$ac_file" != x-; then
9260 configure_input="$ac_file. $configure_input"
9261 { echo "$as_me:$LINENO: creating $ac_file" >&5
9262 echo "$as_me: creating $ac_file" >&6;}
9265 case $ac_tag in
9266 *:-:* | *:-) cat >"$tmp/stdin";;
9267 esac
9269 esac
9271 ac_dir=`$as_dirname -- "$ac_file" ||
9272 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9273 X"$ac_file" : 'X\(//\)[^/]' \| \
9274 X"$ac_file" : 'X\(//\)$' \| \
9275 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9276 echo X"$ac_file" |
9277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9278 s//\1/
9281 /^X\(\/\/\)[^/].*/{
9282 s//\1/
9285 /^X\(\/\/\)$/{
9286 s//\1/
9289 /^X\(\/\).*/{
9290 s//\1/
9293 s/.*/./; q'`
9294 { as_dir="$ac_dir"
9295 case $as_dir in #(
9296 -*) as_dir=./$as_dir;;
9297 esac
9298 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9299 as_dirs=
9300 while :; do
9301 case $as_dir in #(
9302 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9303 *) as_qdir=$as_dir;;
9304 esac
9305 as_dirs="'$as_qdir' $as_dirs"
9306 as_dir=`$as_dirname -- "$as_dir" ||
9307 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9308 X"$as_dir" : 'X\(//\)[^/]' \| \
9309 X"$as_dir" : 'X\(//\)$' \| \
9310 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9311 echo X"$as_dir" |
9312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9313 s//\1/
9316 /^X\(\/\/\)[^/].*/{
9317 s//\1/
9320 /^X\(\/\/\)$/{
9321 s//\1/
9324 /^X\(\/\).*/{
9325 s//\1/
9328 s/.*/./; q'`
9329 test -d "$as_dir" && break
9330 done
9331 test -z "$as_dirs" || eval "mkdir $as_dirs"
9332 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9333 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9334 { (exit 1); exit 1; }; }; }
9335 ac_builddir=.
9337 case "$ac_dir" in
9338 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9340 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9341 # A ".." for each directory in $ac_dir_suffix.
9342 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9343 case $ac_top_builddir_sub in
9344 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9345 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9346 esac ;;
9347 esac
9348 ac_abs_top_builddir=$ac_pwd
9349 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9350 # for backward compatibility:
9351 ac_top_builddir=$ac_top_build_prefix
9353 case $srcdir in
9354 .) # We are building in place.
9355 ac_srcdir=.
9356 ac_top_srcdir=$ac_top_builddir_sub
9357 ac_abs_top_srcdir=$ac_pwd ;;
9358 [\\/]* | ?:[\\/]* ) # Absolute name.
9359 ac_srcdir=$srcdir$ac_dir_suffix;
9360 ac_top_srcdir=$srcdir
9361 ac_abs_top_srcdir=$srcdir ;;
9362 *) # Relative name.
9363 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9364 ac_top_srcdir=$ac_top_build_prefix$srcdir
9365 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9366 esac
9367 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9370 case $ac_mode in
9373 # CONFIG_FILE
9376 case $INSTALL in
9377 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9378 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9379 esac
9380 _ACEOF
9382 cat >>$CONFIG_STATUS <<\_ACEOF
9383 # If the template does not know about datarootdir, expand it.
9384 # FIXME: This hack should be removed a few years after 2.60.
9385 ac_datarootdir_hack=; ac_datarootdir_seen=
9387 case `sed -n '/datarootdir/ {
9391 /@datadir@/p
9392 /@docdir@/p
9393 /@infodir@/p
9394 /@localedir@/p
9395 /@mandir@/p
9396 ' $ac_file_inputs` in
9397 *datarootdir*) ac_datarootdir_seen=yes;;
9398 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9399 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9400 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9401 _ACEOF
9402 cat >>$CONFIG_STATUS <<_ACEOF
9403 ac_datarootdir_hack='
9404 s&@datadir@&$datadir&g
9405 s&@docdir@&$docdir&g
9406 s&@infodir@&$infodir&g
9407 s&@localedir@&$localedir&g
9408 s&@mandir@&$mandir&g
9409 s&\\\${datarootdir}&$datarootdir&g' ;;
9410 esac
9411 _ACEOF
9413 # Neutralize VPATH when `$srcdir' = `.'.
9414 # Shell code in configure.ac might set extrasub.
9415 # FIXME: do we really want to maintain this feature?
9416 cat >>$CONFIG_STATUS <<_ACEOF
9417 sed "$ac_vpsub
9418 $extrasub
9419 _ACEOF
9420 cat >>$CONFIG_STATUS <<\_ACEOF
9422 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9423 s&@configure_input@&$configure_input&;t t
9424 s&@top_builddir@&$ac_top_builddir_sub&;t t
9425 s&@srcdir@&$ac_srcdir&;t t
9426 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9427 s&@top_srcdir@&$ac_top_srcdir&;t t
9428 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9429 s&@builddir@&$ac_builddir&;t t
9430 s&@abs_builddir@&$ac_abs_builddir&;t t
9431 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9432 s&@INSTALL@&$ac_INSTALL&;t t
9433 $ac_datarootdir_hack
9434 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
9436 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9437 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9438 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9439 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9440 which seems to be undefined. Please make sure it is defined." >&5
9441 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9442 which seems to be undefined. Please make sure it is defined." >&2;}
9444 rm -f "$tmp/stdin"
9445 case $ac_file in
9446 -) cat "$tmp/out"; rm -f "$tmp/out";;
9447 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9448 esac
9452 # CONFIG_HEADER
9454 _ACEOF
9456 # Transform confdefs.h into a sed script `conftest.defines', that
9457 # substitutes the proper values into config.h.in to produce config.h.
9458 rm -f conftest.defines conftest.tail
9459 # First, append a space to every undef/define line, to ease matching.
9460 echo 's/$/ /' >conftest.defines
9461 # Then, protect against being on the right side of a sed subst, or in
9462 # an unquoted here document, in config.status. If some macros were
9463 # called several times there might be several #defines for the same
9464 # symbol, which is useless. But do not sort them, since the last
9465 # AC_DEFINE must be honored.
9466 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9467 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9468 # NAME is the cpp macro being defined, VALUE is the value it is being given.
9469 # PARAMS is the parameter list in the macro definition--in most cases, it's
9470 # just an empty string.
9471 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9472 ac_dB='\\)[ (].*,\\1define\\2'
9473 ac_dC=' '
9474 ac_dD=' ,'
9476 uniq confdefs.h |
9477 sed -n '
9478 t rset
9479 :rset
9480 s/^[ ]*#[ ]*define[ ][ ]*//
9481 t ok
9484 s/[\\&,]/\\&/g
9485 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9486 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9487 ' >>conftest.defines
9489 # Remove the space that was appended to ease matching.
9490 # Then replace #undef with comments. This is necessary, for
9491 # example, in the case of _POSIX_SOURCE, which is predefined and required
9492 # on some systems where configure will not decide to define it.
9493 # (The regexp can be short, since the line contains either #define or #undef.)
9494 echo 's/ $//
9495 s,^[ #]*u.*,/* & */,' >>conftest.defines
9497 # Break up conftest.defines:
9498 ac_max_sed_lines=50
9500 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9501 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9502 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9503 # et cetera.
9504 ac_in='$ac_file_inputs'
9505 ac_out='"$tmp/out1"'
9506 ac_nxt='"$tmp/out2"'
9508 while :
9510 # Write a here document:
9511 cat >>$CONFIG_STATUS <<_ACEOF
9512 # First, check the format of the line:
9513 cat >"\$tmp/defines.sed" <<\\CEOF
9514 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9515 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9517 :def
9518 _ACEOF
9519 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
9520 echo 'CEOF
9521 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9522 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
9523 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
9524 grep . conftest.tail >/dev/null || break
9525 rm -f conftest.defines
9526 mv conftest.tail conftest.defines
9527 done
9528 rm -f conftest.defines conftest.tail
9530 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9531 cat >>$CONFIG_STATUS <<\_ACEOF
9532 if test x"$ac_file" != x-; then
9533 echo "/* $configure_input */" >"$tmp/config.h"
9534 cat "$ac_result" >>"$tmp/config.h"
9535 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
9536 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9537 echo "$as_me: $ac_file is unchanged" >&6;}
9538 else
9539 rm -f $ac_file
9540 mv "$tmp/config.h" $ac_file
9542 else
9543 echo "/* $configure_input */"
9544 cat "$ac_result"
9546 rm -f "$tmp/out12"
9550 # CONFIG_LINK
9553 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
9554 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
9556 if test ! -r "$srcdir/$ac_source"; then
9557 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
9558 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
9559 { (exit 1); exit 1; }; }
9561 rm -f "$ac_file"
9563 # Try a relative symlink, then a hard link, then a copy.
9564 case $srcdir in
9565 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
9566 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
9567 esac
9568 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
9569 ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
9570 cp -p "$srcdir/$ac_source" "$ac_file" ||
9571 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
9572 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
9573 { (exit 1); exit 1; }; }
9576 esac
9579 case $ac_file$ac_mode in
9580 "stamp-h":F) echo timestamp > stamp-h ;;
9582 esac
9583 done # for ac_tag
9586 { (exit 0); exit 0; }
9587 _ACEOF
9588 chmod +x $CONFIG_STATUS
9589 ac_clean_files=$ac_clean_files_save
9592 # configure is writing to config.log, and then calls config.status.
9593 # config.status does its own redirection, appending to config.log.
9594 # Unfortunately, on DOS this fails, as config.log is still kept open
9595 # by configure, so config.status won't be able to write to it; its
9596 # output is simply discarded. So we exec the FD to /dev/null,
9597 # effectively closing config.log, so it can be properly (re)opened and
9598 # appended to by config.status. When coming back to configure, we
9599 # need to make the FD available again.
9600 if test "$no_create" != yes; then
9601 ac_cs_success=:
9602 ac_config_status_args=
9603 test "$silent" = yes &&
9604 ac_config_status_args="$ac_config_status_args --quiet"
9605 exec 5>/dev/null
9606 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9607 exec 5>>config.log
9608 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9609 # would make configure fail if this is the last instruction.
9610 $ac_cs_success || { (exit 1); exit 1; }