2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.65 for GRUB 1.98.
5 @%:@ Report bugs to <bug-grub@gnu.org>.
8 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 @%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
13 @%:@ This configure script is free software; the Free Software Foundation
14 @%:@ gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in @%:@(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in @%:@(
149 set -o posix ;; @%:@(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir=.
192 case $as_dir in @%:@(
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-grub@gnu.org
234 $0: about your system, including any error possibly output
235 $0: before this message. Then install a modern shell, or
236 $0: manually run the script under such a shell if you do
243 SHELL=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 @%:@ Portably unset VAR.
257 { eval $1=; unset $1;}
261 @%:@ as_fn_set_status STATUS
262 @%:@ -----------------------
263 @%:@ Set @S|@? to STATUS, without forking.
267 } @%:@ as_fn_set_status
269 @%:@ as_fn_exit STATUS
270 @%:@ -----------------
271 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
286 -*) as_dir=./$as_dir;;
288 test -d "$as_dir" || eval $as_mkdir_p || {
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326 @%:@ as_fn_append VAR VALUE
327 @%:@ ----------------------
328 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
329 @%:@ advantage of any shell optimizations that allow amortized linear growth over
330 @%:@ repeated appends, instead of the typical quadratic growth present in naive
331 @%:@ implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
344 @%:@ as_fn_arith ARG...
345 @%:@ ------------------
346 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
347 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
348 @%:@ must be portable across @S|@(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 as_val=`expr "$@" || test $? -eq 1`
362 @%:@ as_fn_error ERROR [LINENO LOG_FD]
363 @%:@ ---------------------------------
364 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 @%:@ script with status @S|@?, using 1 if that was 0.
369 as_status=$?; test $as_status -eq 0 && as_status=1
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in @%:@(((((
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 elif ln conf$$.file conf$$ 2>/dev/null; then
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
498 test -d ./-p && rmdir ./-p
502 if test -x / >/dev/null 2>&1; then
505 if ls -dL / >/dev/null 2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543 ac_default_prefix=/usr/local
545 ac_config_libobj_dir=.
552 # Identity of this package.
554 PACKAGE_TARNAME='grub'
555 PACKAGE_VERSION='1.98'
556 PACKAGE_STRING='GRUB 1.98'
557 PACKAGE_BUGREPORT='bug-grub@gnu.org'
560 ac_unique_file="include/grub/dl.h"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
574 # ifdef HAVE_STDLIB_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
598 ac_subst_vars='am__EXEEXT_FALSE
639 XGETTEXT_EXTRA_OPTIONS
647 GETTEXT_MACRO_VERSION
694 INSTALL_STRIP_PROGRAM
736 program_transform_name
749 enable_option_checking
751 enable_dependency_tracking
767 ac_precious_vars='build_alias
778 # Initialize some variables set by options.
780 ac_init_version=false
781 ac_unrecognized_opts=
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
792 program_transform_name=s,x,x,
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir='${exec_prefix}/bin'
807 sbindir='${exec_prefix}/sbin'
808 libexecdir='${exec_prefix}/libexec'
809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var'
814 includedir='${prefix}/include'
815 oldincludedir='/usr/include'
816 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
817 infodir='${datarootdir}/info'
822 libdir='${exec_prefix}/lib'
823 localedir='${datarootdir}/locale'
824 mandir='${datarootdir}/man'
830 # If the previous option needs an argument, assign it.
831 if test -n "$ac_prev"; then
832 eval $ac_prev=\$ac_option
838 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842 # Accept the important Cygnus configure options, so we can diagnose typos.
844 case $ac_dashdash$ac_option in
848 -bindir | --bindir | --bindi | --bind | --bin | --bi)
850 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
853 -build | --build | --buil | --bui | --bu)
854 ac_prev=build_alias ;;
855 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856 build_alias=$ac_optarg ;;
858 -cache-file | --cache-file | --cache-fil | --cache-fi \
859 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860 ac_prev=cache_file ;;
861 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863 cache_file=$ac_optarg ;;
866 cache_file=config.cache ;;
868 -datadir | --datadir | --datadi | --datad)
870 -datadir=* | --datadir=* | --datadi=* | --datad=*)
871 datadir=$ac_optarg ;;
873 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874 | --dataroo | --dataro | --datar)
875 ac_prev=datarootdir ;;
876 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878 datarootdir=$ac_optarg ;;
880 -disable-* | --disable-*)
881 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884 as_fn_error "invalid feature name: $ac_useropt"
885 ac_useropt_orig=$ac_useropt
886 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in
891 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
892 ac_unrecognized_sep=', ';;
894 eval enable_$ac_useropt=no ;;
896 -docdir | --docdir | --docdi | --doc | --do)
898 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
901 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
903 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
906 -enable-* | --enable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error "invalid feature name: $ac_useropt"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
920 eval enable_$ac_useropt=\$ac_optarg ;;
922 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924 | --exec | --exe | --ex)
925 ac_prev=exec_prefix ;;
926 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928 | --exec=* | --exe=* | --ex=*)
929 exec_prefix=$ac_optarg ;;
931 -gas | --gas | --ga | --g)
932 # Obsolete; use --with-gas.
935 -help | --help | --hel | --he | -h)
937 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938 ac_init_help=recursive ;;
939 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940 ac_init_help=short ;;
942 -host | --host | --hos | --ho)
943 ac_prev=host_alias ;;
944 -host=* | --host=* | --hos=* | --ho=*)
945 host_alias=$ac_optarg ;;
947 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
949 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
951 htmldir=$ac_optarg ;;
953 -includedir | --includedir | --includedi | --included | --include \
954 | --includ | --inclu | --incl | --inc)
955 ac_prev=includedir ;;
956 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957 | --includ=* | --inclu=* | --incl=* | --inc=*)
958 includedir=$ac_optarg ;;
960 -infodir | --infodir | --infodi | --infod | --info | --inf)
962 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
963 infodir=$ac_optarg ;;
965 -libdir | --libdir | --libdi | --libd)
967 -libdir=* | --libdir=* | --libdi=* | --libd=*)
970 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971 | --libexe | --libex | --libe)
972 ac_prev=libexecdir ;;
973 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974 | --libexe=* | --libex=* | --libe=*)
975 libexecdir=$ac_optarg ;;
977 -localedir | --localedir | --localedi | --localed | --locale)
979 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980 localedir=$ac_optarg ;;
982 -localstatedir | --localstatedir | --localstatedi | --localstated \
983 | --localstate | --localstat | --localsta | --localst | --locals)
984 ac_prev=localstatedir ;;
985 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
986 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
987 localstatedir=$ac_optarg ;;
989 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
991 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995 # Obsolete; use --without-fp.
998 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999 | --no-cr | --no-c | -n)
1002 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1006 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008 | --oldin | --oldi | --old | --ol | --o)
1009 ac_prev=oldincludedir ;;
1010 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1013 oldincludedir=$ac_optarg ;;
1015 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1017 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1018 prefix=$ac_optarg ;;
1020 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021 | --program-pre | --program-pr | --program-p)
1022 ac_prev=program_prefix ;;
1023 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1025 program_prefix=$ac_optarg ;;
1027 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028 | --program-suf | --program-su | --program-s)
1029 ac_prev=program_suffix ;;
1030 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1032 program_suffix=$ac_optarg ;;
1034 -program-transform-name | --program-transform-name \
1035 | --program-transform-nam | --program-transform-na \
1036 | --program-transform-n | --program-transform- \
1037 | --program-transform | --program-transfor \
1038 | --program-transfo | --program-transf \
1039 | --program-trans | --program-tran \
1040 | --progr-tra | --program-tr | --program-t)
1041 ac_prev=program_transform_name ;;
1042 -program-transform-name=* | --program-transform-name=* \
1043 | --program-transform-nam=* | --program-transform-na=* \
1044 | --program-transform-n=* | --program-transform-=* \
1045 | --program-transform=* | --program-transfor=* \
1046 | --program-transfo=* | --program-transf=* \
1047 | --program-trans=* | --program-tran=* \
1048 | --progr-tra=* | --program-tr=* | --program-t=*)
1049 program_transform_name=$ac_optarg ;;
1051 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1053 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054 pdfdir=$ac_optarg ;;
1056 -psdir | --psdir | --psdi | --psd | --ps)
1058 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1065 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1067 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1069 sbindir=$ac_optarg ;;
1071 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1072 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1073 | --sharedst | --shareds | --shared | --share | --shar \
1075 ac_prev=sharedstatedir ;;
1076 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1077 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1078 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1080 sharedstatedir=$ac_optarg ;;
1082 -site | --site | --sit)
1084 -site=* | --site=* | --sit=*)
1087 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1089 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1090 srcdir=$ac_optarg ;;
1092 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1093 | --syscon | --sysco | --sysc | --sys | --sy)
1094 ac_prev=sysconfdir ;;
1095 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1096 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1097 sysconfdir=$ac_optarg ;;
1099 -target | --target | --targe | --targ | --tar | --ta | --t)
1100 ac_prev=target_alias ;;
1101 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1102 target_alias=$ac_optarg ;;
1104 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1107 -version | --version | --versio | --versi | --vers | -V)
1108 ac_init_version=: ;;
1111 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 as_fn_error "invalid package name: $ac_useropt"
1115 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
1124 eval with_$ac_useropt=\$ac_optarg ;;
1126 -without-* | --without-*)
1127 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130 as_fn_error "invalid package name: $ac_useropt"
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1140 eval with_$ac_useropt=no ;;
1143 # Obsolete; use --with-x.
1146 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1147 | --x-incl | --x-inc | --x-in | --x-i)
1148 ac_prev=x_includes ;;
1149 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1150 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1151 x_includes=$ac_optarg ;;
1153 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1154 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1155 ac_prev=x_libraries ;;
1156 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1157 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1158 x_libraries=$ac_optarg ;;
1160 -*) as_fn_error "unrecognized option: \`$ac_option'
1161 Try \`$0 --help' for more information."
1165 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1166 # Reject names that are not valid shell variable names.
1167 case $ac_envvar in #(
1168 '' | [0-9]* | *[!_$as_cr_alnum]* )
1169 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1171 eval $ac_envvar=\$ac_optarg
1172 export $ac_envvar ;;
1175 # FIXME: should be removed in autoconf 3.0.
1176 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1177 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1178 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1179 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1185 if test -n "$ac_prev"; then
1186 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1187 as_fn_error "missing argument to $ac_option"
1190 if test -n "$ac_unrecognized_opts"; then
1191 case $enable_option_checking in
1193 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1194 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1198 # Check all directory arguments for consistency.
1199 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1200 datadir sysconfdir sharedstatedir localstatedir includedir \
1201 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1202 libdir localedir mandir
1204 eval ac_val=\$$ac_var
1205 # Remove trailing slashes.
1208 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1209 eval $ac_var=\$ac_val;;
1211 # Be sure to have absolute directory names.
1213 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1224 target=$target_alias
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
1230 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1231 If a cross compiler is detected then cross compile mode will be used." >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240 test "$silent" = yes && exec 6>/dev/null
1243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246 as_fn_error "working directory cannot be determined"
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248 as_fn_error "pwd does not report name of working directory"
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
1254 # Try the directory containing this script, then the parent directory.
1255 ac_confdir=`$as_dirname -- "$as_myself" ||
1256 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$as_myself" : 'X\(//\)[^/]' \| \
1258 X"$as_myself" : 'X\(//\)$' \| \
1259 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1260 $as_echo X"$as_myself" |
1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1283 ac_srcdir_defaulted=no
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1301 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 for ac_var in $ac_precious_vars; do
1304 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_env_${ac_var}_value=\$${ac_var}
1306 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 # Report the --help message.
1313 if test "$ac_init_help" = "long"; then
1314 # Omit some internal or obsolete options to make the list less imposing.
1315 # This message is too long to be a string in the A/UX 3.1 sh.
1317 \`configure' configures GRUB 1.98 to adapt to many kinds of systems.
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE. See below for descriptions of some of the useful variables.
1324 Defaults for the options are specified in brackets.
1327 -h, --help display this help and exit
1328 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit
1331 -q, --quiet, --silent do not print \`checking...' messages
1332 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files
1335 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337 Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX
1339 @<:@@S|@ac_default_prefix@:>@
1340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1348 For better control, use the options below.
1350 Fine tuning of the installation directories:
1351 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/grub@:>@
1366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
1375 --program-prefix=PREFIX prepend PREFIX to installed program names
1376 --program-suffix=SUFFIX append SUFFIX to installed program names
1377 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1380 --build=BUILD configure for building on BUILD [guessed]
1381 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1382 --target=TARGET configure for building compilers for TARGET [HOST]
1386 if test -n "$ac_init_help"; then
1387 case $ac_init_help in
1388 short | recursive ) echo "Configuration of GRUB 1.98:";;
1393 --disable-option-checking ignore unrecognized --enable/--with options
1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1396 --disable-dependency-tracking speeds up one-time build
1397 --enable-dependency-tracking do not reject slow dependency extractors
1398 --disable-nls do not use Native Language Support
1399 --disable-rpath do not hardcode runtime library paths
1400 --disable-largefile omit support for large files
1401 --disable-werror do not use -Werror when building GRUB
1402 --enable-efiemu build and install the efiemu runtimes
1404 --enable-mm-debug include memory manager debugging
1405 --enable-grub-emu-usb build and install the `grub-emu' debugging utility
1406 with USB support (default=guessed)
1407 --enable-grub-emu-sdl build and install the `grub-emu' debugging utility
1408 with SDL support (default=guessed)
1409 --enable-grub-emu-pci build and install the `grub-emu' debugging utility
1410 with PCI support (potentially dangerous)
1412 --enable-grub-fstest build and install the `grub-fstest' debugging
1413 utility (default=guessed)
1414 --enable-grub-mkfont build and install the `grub-mkfont' utility
1418 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1419 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1420 --with-platform=PLATFORM
1421 select the host platform @<:@@<:@guessed@:>@@:>@
1422 --with-gnu-ld assume the C compiler uses GNU ld default=no
1423 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1424 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1425 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1426 --without-libintl-prefix don't search for libintl in includedir and libdir
1428 Some influential environment variables:
1429 CC C compiler command
1430 CFLAGS C compiler flags
1431 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1432 nonstandard directory <lib dir>
1433 LIBS libraries to pass to the linker, e.g. -l<library>
1434 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1435 you have headers in a nonstandard directory <include dir>
1438 Use these variables to override the choices made by `configure' or to help
1439 it to find libraries and programs with nonstandard names/locations.
1441 Report bugs to <bug-grub@gnu.org>.
1446 if test "$ac_init_help" = "recursive"; then
1447 # If there are subdirs, report their specific --help.
1448 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1449 test -d "$ac_dir" ||
1450 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1455 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1457 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1458 # A ".." for each directory in $ac_dir_suffix.
1459 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1460 case $ac_top_builddir_sub in
1461 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1465 ac_abs_top_builddir=$ac_pwd
1466 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1467 # for backward compatibility:
1468 ac_top_builddir=$ac_top_build_prefix
1471 .) # We are building in place.
1473 ac_top_srcdir=$ac_top_builddir_sub
1474 ac_abs_top_srcdir=$ac_pwd ;;
1475 [\\/]* | ?:[\\/]* ) # Absolute name.
1476 ac_srcdir=$srcdir$ac_dir_suffix;
1477 ac_top_srcdir=$srcdir
1478 ac_abs_top_srcdir=$srcdir ;;
1480 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1481 ac_top_srcdir=$ac_top_build_prefix$srcdir
1482 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1484 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1486 cd "$ac_dir" || { ac_status=$?; continue; }
1487 # Check for guested configure.
1488 if test -f "$ac_srcdir/configure.gnu"; then
1490 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1491 elif test -f "$ac_srcdir/configure"; then
1493 $SHELL "$ac_srcdir/configure" --help=recursive
1495 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1497 cd "$ac_pwd" || { ac_status=$?; break; }
1501 test -n "$ac_init_help" && exit $ac_status
1502 if $ac_init_version; then
1505 generated by GNU Autoconf 2.65
1507 Copyright (C) 2009 Free Software Foundation, Inc.
1508 This configure script is free software; the Free Software Foundation
1509 gives unlimited permission to copy, distribute and modify it.
1514 ## ------------------------ ##
1515 ## Autoconf initialization. ##
1516 ## ------------------------ ##
1518 @%:@ ac_fn_c_try_compile LINENO
1519 @%:@ --------------------------
1520 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1521 ac_fn_c_try_compile ()
1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524 rm -f conftest.$ac_objext
1525 if { { ac_try="$ac_compile"
1527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1528 *) ac_try_echo=$ac_try;;
1530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1531 $as_echo "$ac_try_echo"; } >&5
1532 (eval "$ac_compile") 2>conftest.err
1534 if test -s conftest.err; then
1535 grep -v '^ *+' conftest.err >conftest.er1
1536 cat conftest.er1 >&5
1537 mv -f conftest.er1 conftest.err
1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1540 test $ac_status = 0; } && {
1541 test -z "$ac_c_werror_flag" ||
1542 test ! -s conftest.err
1543 } && test -s conftest.$ac_objext; then :
1546 $as_echo "$as_me: failed program was:" >&5
1547 sed 's/^/| /' conftest.$ac_ext >&5
1551 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1552 as_fn_set_status $ac_retval
1554 } @%:@ ac_fn_c_try_compile
1556 @%:@ ac_fn_c_try_cpp LINENO
1557 @%:@ ----------------------
1558 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 if { { ac_try="$ac_cpp conftest.$ac_ext"
1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565 *) ac_try_echo=$ac_try;;
1567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568 $as_echo "$ac_try_echo"; } >&5
1569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1571 if test -s conftest.err; then
1572 grep -v '^ *+' conftest.err >conftest.er1
1573 cat conftest.er1 >&5
1574 mv -f conftest.er1 conftest.err
1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577 test $ac_status = 0; } >/dev/null && {
1578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1579 test ! -s conftest.err
1583 $as_echo "$as_me: failed program was:" >&5
1584 sed 's/^/| /' conftest.$ac_ext >&5
1588 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1589 as_fn_set_status $ac_retval
1591 } @%:@ ac_fn_c_try_cpp
1593 @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1594 @%:@ -------------------------------------------------------
1595 @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1596 @%:@ the include files in INCLUDES and setting the cache variable VAR
1598 ac_fn_c_check_header_mongrel ()
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1603 $as_echo_n "checking for $2... " >&6; }
1604 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1605 $as_echo_n "(cached) " >&6
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1609 $as_echo "$ac_res" >&6; }
1611 # Is the header compilable?
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1613 $as_echo_n "checking $2 usability... " >&6; }
1614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1615 /* end confdefs.h. */
1619 if ac_fn_c_try_compile "$LINENO"; then :
1620 ac_header_compiler=yes
1622 ac_header_compiler=no
1624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1626 $as_echo "$ac_header_compiler" >&6; }
1628 # Is the header present?
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1630 $as_echo_n "checking $2 presence... " >&6; }
1631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1632 /* end confdefs.h. */
1635 if ac_fn_c_try_cpp "$LINENO"; then :
1636 ac_header_preproc=yes
1638 ac_header_preproc=no
1640 rm -f conftest.err conftest.$ac_ext
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1642 $as_echo "$ac_header_preproc" >&6; }
1644 # So? What about this header?
1645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1648 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1650 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1654 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1656 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1658 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1660 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1662 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1664 ## ------------------------------- ##
1665 ## Report this to bug-grub@gnu.org ##
1666 ## ------------------------------- ##
1668 ) | sed "s/^/$as_me: WARNING: /" >&2
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672 $as_echo_n "checking for $2... " >&6; }
1673 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1674 $as_echo_n "(cached) " >&6
1676 eval "$3=\$ac_header_compiler"
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680 $as_echo "$ac_res" >&6; }
1682 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1684 } @%:@ ac_fn_c_check_header_mongrel
1686 @%:@ ac_fn_c_try_run LINENO
1687 @%:@ ----------------------
1688 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1689 @%:@ that executables *can* be run.
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 if { { ac_try="$ac_link"
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_link") 2>&5
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1704 { { case "(($ac_try" in
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_try") 2>&5
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; }; }; then :
1716 $as_echo "$as_me: program exited with status $ac_status" >&5
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1720 ac_retval=$ac_status
1722 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1724 as_fn_set_status $ac_retval
1726 } @%:@ ac_fn_c_try_run
1728 @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1729 @%:@ -------------------------------------------------------
1730 @%:@ Tests whether HEADER exists and can be compiled using the include files in
1731 @%:@ INCLUDES, setting the cache variable VAR accordingly.
1732 ac_fn_c_check_header_compile ()
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736 $as_echo_n "checking for $2... " >&6; }
1737 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1738 $as_echo_n "(cached) " >&6
1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h. */
1745 if ac_fn_c_try_compile "$LINENO"; then :
1750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754 $as_echo "$ac_res" >&6; }
1755 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1757 } @%:@ ac_fn_c_check_header_compile
1759 @%:@ ac_fn_c_try_link LINENO
1760 @%:@ -----------------------
1761 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 rm -f conftest.$ac_objext conftest$ac_exeext
1766 if { { ac_try="$ac_link"
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_link") 2>conftest.err
1775 if test -s conftest.err; then
1776 grep -v '^ *+' conftest.err >conftest.er1
1777 cat conftest.er1 >&5
1778 mv -f conftest.er1 conftest.err
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } && {
1782 test -z "$ac_c_werror_flag" ||
1783 test ! -s conftest.err
1784 } && test -s conftest$ac_exeext && {
1785 test "$cross_compiling" = yes ||
1786 $as_test_x conftest$ac_exeext
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1795 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1796 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1797 # interfere with the next link command; also delete a directory that is
1798 # left behind by Apple's compiler. We do this before executing the actions.
1799 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1800 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1801 as_fn_set_status $ac_retval
1803 } @%:@ ac_fn_c_try_link
1805 @%:@ ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1806 @%:@ --------------------------------------------
1807 @%:@ Tries to find the compile-time value of EXPR in a program that includes
1808 @%:@ INCLUDES, setting VAR accordingly. Returns whether the value could be
1810 ac_fn_c_compute_int ()
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 if test "$cross_compiling" = yes; then
1814 # Depending upon the size, compute the lo and hi bounds.
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1821 static int test_array @<:@1 - 2 * !(($2) >= 0)@:>@;
1822 test_array @<:@0@:>@ = 0
1828 if ac_fn_c_try_compile "$LINENO"; then :
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1837 static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
1838 test_array @<:@0@:>@ = 0
1844 if ac_fn_c_try_compile "$LINENO"; then :
1845 ac_hi=$ac_mid; break
1847 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1848 if test $ac_lo -le $ac_mid; then
1852 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858 /* end confdefs.h. */
1863 static int test_array @<:@1 - 2 * !(($2) < 0)@:>@;
1864 test_array @<:@0@:>@ = 0
1870 if ac_fn_c_try_compile "$LINENO"; then :
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h. */
1879 static int test_array @<:@1 - 2 * !(($2) >= $ac_mid)@:>@;
1880 test_array @<:@0@:>@ = 0
1886 if ac_fn_c_try_compile "$LINENO"; then :
1887 ac_lo=$ac_mid; break
1889 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1890 if test $ac_mid -le $ac_hi; then
1894 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1904 # Binary search between lo and hi bounds.
1905 while test "x$ac_lo" != "x$ac_hi"; do
1906 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1913 static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
1914 test_array @<:@0@:>@ = 0
1920 if ac_fn_c_try_compile "$LINENO"; then :
1923 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927 case $ac_lo in @%:@((
1928 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1935 static long int longval () { return $2; }
1936 static unsigned long int ulongval () { return $2; }
1937 @%:@include <stdio.h>
1938 @%:@include <stdlib.h>
1943 FILE *f = fopen ("conftest.val", "w");
1948 long int i = longval ();
1951 fprintf (f, "%ld", i);
1955 unsigned long int i = ulongval ();
1958 fprintf (f, "%lu", i);
1960 /* Do not output a trailing newline, as this causes \r\n confusion
1961 on some platforms. */
1962 return ferror (f) || fclose (f) != 0;
1968 if ac_fn_c_try_run "$LINENO"; then :
1969 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1974 conftest.$ac_objext conftest.beam conftest.$ac_ext
1978 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1979 as_fn_set_status $ac_retval
1981 } @%:@ ac_fn_c_compute_int
1983 @%:@ ac_fn_c_check_func LINENO FUNC VAR
1984 @%:@ ----------------------------------
1985 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1986 ac_fn_c_check_func ()
1988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990 $as_echo_n "checking for $2... " >&6; }
1991 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1992 $as_echo_n "(cached) " >&6
1994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995 /* end confdefs.h. */
1996 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1998 #define $2 innocuous_$2
2000 /* System header to define __stub macros and hopefully few prototypes,
2001 which can conflict with char $2 (); below.
2002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2003 <limits.h> exists even on freestanding compilers. */
2006 # include <limits.h>
2008 # include <assert.h>
2013 /* Override any GCC internal prototype to avoid an error.
2014 Use char because int might match the return type of a GCC
2015 builtin and then its argument prototype would still apply. */
2020 /* The GNU C library defines this for functions which it implements
2021 to always fail with ENOSYS. Some functions are actually named
2022 something starting with __ and the normal name is an alias. */
2023 #if defined __stub_$2 || defined __stub___$2
2035 if ac_fn_c_try_link "$LINENO"; then :
2040 rm -f core conftest.err conftest.$ac_objext \
2041 conftest$ac_exeext conftest.$ac_ext
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2045 $as_echo "$ac_res" >&6; }
2046 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2048 } @%:@ ac_fn_c_check_func
2049 cat >config.log <<_ACEOF
2050 This file contains any messages produced by compilers while
2051 running configure, to aid debugging if configure makes a mistake.
2053 It was created by GRUB $as_me 1.98, which was
2054 generated by GNU Autoconf 2.65. Invocation command line was
2066 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2067 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2068 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2069 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2070 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2072 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2073 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2075 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2076 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2077 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2078 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2079 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2080 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2081 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089 test -z "$as_dir" && as_dir=.
2090 $as_echo "PATH: $as_dir"
2106 # Keep a trace of the command line.
2107 # Strip out --no-create and --no-recursion so they do not pile up.
2108 # Strip out --silent because we don't want to record it for future runs.
2109 # Also quote any args containing shell meta-characters.
2110 # Make two passes to allow for proper duplicate-argument suppression.
2114 ac_must_keep_next=false
2120 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2122 | -silent | --silent | --silen | --sile | --sil)
2125 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2128 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2130 as_fn_append ac_configure_args1 " '$ac_arg'"
2131 if test $ac_must_keep_next = true; then
2132 ac_must_keep_next=false # Got value, back to normal.
2135 *=* | --config-cache | -C | -disable-* | --disable-* \
2136 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2137 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2138 | -with-* | --with-* | -without-* | --without-* | --x)
2139 case "$ac_configure_args0 " in
2140 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2143 -* ) ac_must_keep_next=true ;;
2146 as_fn_append ac_configure_args " '$ac_arg'"
2151 { ac_configure_args0=; unset ac_configure_args0;}
2152 { ac_configure_args1=; unset ac_configure_args1;}
2154 # When interrupted or exit'd, cleanup temporary files, and complete
2155 # config.log. We remove comments because anyway the quotes in there
2156 # would cause problems or look ugly.
2157 # WARNING: Use '\'' to represent an apostrophe within the trap.
2158 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2159 trap 'exit_status=$?
2160 # Save into config.log some information that might help in debugging.
2165 ## ---------------- ##
2166 ## Cache variables. ##
2167 ## ---------------- ##
2170 # The following way of writing the cache mishandles newlines in values,
2172 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2173 eval ac_val=\$$ac_var
2177 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2178 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2181 _ | IFS | as_nl) ;; #(
2182 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2183 *) { eval $ac_var=; unset $ac_var;} ;;
2188 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2189 *${as_nl}ac_space=\ *)
2191 "s/'\''/'\''\\\\'\'''\''/g;
2192 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2195 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2203 ## ----------------- ##
2204 ## Output variables. ##
2205 ## ----------------- ##
2208 for ac_var in $ac_subst_vars
2210 eval ac_val=\$$ac_var
2212 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2214 $as_echo "$ac_var='\''$ac_val'\''"
2218 if test -n "$ac_subst_files"; then
2220 ## ------------------- ##
2221 ## File substitutions. ##
2222 ## ------------------- ##
2225 for ac_var in $ac_subst_files
2227 eval ac_val=\$$ac_var
2229 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2231 $as_echo "$ac_var='\''$ac_val'\''"
2236 if test -s confdefs.h; then
2246 test "$ac_signal" != 0 &&
2247 $as_echo "$as_me: caught signal $ac_signal"
2248 $as_echo "$as_me: exit $exit_status"
2250 rm -f core *.core core.conftest.* &&
2251 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2254 for ac_signal in 1 2 13 15; do
2255 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2259 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2260 rm -f -r conftest* confdefs.h
2262 $as_echo "/* confdefs.h */" > confdefs.h
2264 # Predefined preprocessor variables.
2266 cat >>confdefs.h <<_ACEOF
2267 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
2270 cat >>confdefs.h <<_ACEOF
2271 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2274 cat >>confdefs.h <<_ACEOF
2275 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2278 cat >>confdefs.h <<_ACEOF
2279 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
2282 cat >>confdefs.h <<_ACEOF
2283 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2286 cat >>confdefs.h <<_ACEOF
2287 @%:@define PACKAGE_URL "$PACKAGE_URL"
2291 # Let the site file select an alternate cache file if it wants to.
2292 # Prefer an explicitly selected file to automatically selected ones.
2295 if test -n "$CONFIG_SITE"; then
2296 ac_site_file1=$CONFIG_SITE
2297 elif test "x$prefix" != xNONE; then
2298 ac_site_file1=$prefix/share/config.site
2299 ac_site_file2=$prefix/etc/config.site
2301 ac_site_file1=$ac_default_prefix/share/config.site
2302 ac_site_file2=$ac_default_prefix/etc/config.site
2304 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2306 test "x$ac_site_file" = xNONE && continue
2307 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2309 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2310 sed 's/^/| /' "$ac_site_file" >&5
2315 if test -r "$cache_file"; then
2316 # Some versions of bash will fail to source /dev/null (special files
2317 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2318 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2320 $as_echo "$as_me: loading cache $cache_file" >&6;}
2322 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2323 *) . "./$cache_file";;
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2328 $as_echo "$as_me: creating cache $cache_file" >&6;}
2332 gt_needs="$gt_needs "
2333 # Check that the precious variables saved in the cache have kept the same
2335 ac_cache_corrupted=false
2336 for ac_var in $ac_precious_vars; do
2337 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2338 eval ac_new_set=\$ac_env_${ac_var}_set
2339 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2340 eval ac_new_val=\$ac_env_${ac_var}_value
2341 case $ac_old_set,$ac_new_set in
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2344 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2345 ac_cache_corrupted=: ;;
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2348 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2349 ac_cache_corrupted=: ;;
2352 if test "x$ac_old_val" != "x$ac_new_val"; then
2353 # differences in whitespace do not lead to failure.
2354 ac_old_val_w=`echo x $ac_old_val`
2355 ac_new_val_w=`echo x $ac_new_val`
2356 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2358 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2359 ac_cache_corrupted=:
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2362 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2363 eval $ac_var=\$ac_old_val
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2366 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2368 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2371 # Pass precious variables to config.status.
2372 if test "$ac_new_set" = set; then
2374 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2375 *) ac_arg=$ac_var=$ac_new_val ;;
2377 case " $ac_configure_args " in
2378 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2379 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2383 if $ac_cache_corrupted; then
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2387 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2388 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2390 ## -------------------- ##
2391 ## Main body of script. ##
2392 ## -------------------- ##
2395 ac_cpp='$CPP $CPPFLAGS'
2396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2401 am__api_version='1.11'
2404 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2405 for ac_t in install-sh install.sh shtool; do
2406 if test -f "$ac_dir/$ac_t"; then
2408 ac_install_sh="$ac_aux_dir/$ac_t -c"
2413 if test -z "$ac_aux_dir"; then
2414 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2417 # These three variables are undocumented and unsupported,
2418 # and are intended to be withdrawn in a future Autoconf release.
2419 # They can cause serious problems if a builder's source tree is in a directory
2420 # whose full name contains unusual characters.
2421 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2422 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2423 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2426 # Find a good install program. We prefer a C program (faster),
2427 # so one script is as good as another. But avoid the broken or
2428 # incompatible versions:
2429 # SysV /etc/install, /usr/sbin/install
2430 # SunOS /usr/etc/install
2431 # IRIX /sbin/install
2433 # AmigaOS /C/install, which installs bootblocks on floppy discs
2434 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2435 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2436 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2437 # OS/2's system install, which has a completely different semantic
2438 # ./install, which can be erroneously created by make from ./install.sh.
2439 # Reject install programs that cannot install multiple files.
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2441 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2442 if test -z "$INSTALL"; then
2443 if test "${ac_cv_path_install+set}" = set; then :
2444 $as_echo_n "(cached) " >&6
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 test -z "$as_dir" && as_dir=.
2451 # Account for people who put trailing slashes in PATH elements.
2452 case $as_dir/ in @%:@((
2453 ./ | .// | /[cC]/* | \
2454 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2455 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2458 # OSF1 and SCO ODT 3.0 have their own names for install.
2459 # Don't use installbsd from OSF since it installs stuff as root
2461 for ac_prog in ginstall scoinst install; do
2462 for ac_exec_ext in '' $ac_executable_extensions; do
2463 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2464 if test $ac_prog = install &&
2465 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2466 # AIX install. It has an incompatible calling convention.
2468 elif test $ac_prog = install &&
2469 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2470 # program-specific install script used by HP pwplus--don't use.
2473 rm -rf conftest.one conftest.two conftest.dir
2474 echo one > conftest.one
2475 echo two > conftest.two
2477 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2478 test -s conftest.one && test -s conftest.two &&
2479 test -s conftest.dir/conftest.one &&
2480 test -s conftest.dir/conftest.two
2482 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2495 rm -rf conftest.one conftest.two conftest.dir
2498 if test "${ac_cv_path_install+set}" = set; then
2499 INSTALL=$ac_cv_path_install
2501 # As a last resort, use the slow shell script. Don't cache a
2502 # value for INSTALL within a source directory, because that will
2503 # break other packages using the cache if that directory is
2504 # removed, or if the value is a relative name.
2505 INSTALL=$ac_install_sh
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2509 $as_echo "$INSTALL" >&6; }
2511 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2512 # It thinks the first close brace ends the variable substitution.
2513 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2515 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2517 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2520 $as_echo_n "checking whether build environment is sane... " >&6; }
2523 echo timestamp > conftest.file
2524 # Reject unsafe characters in $srcdir or the absolute working directory
2525 # name. Accept space and tab only in the latter.
2529 *[\\\"\#\$\&\'\`$am_lf]*)
2530 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2533 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2534 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2537 # Do `set' in a subshell so we don't clobber the current shell's
2538 # arguments. Must try -L first in case configure is actually a
2539 # symlink; some systems play weird games with the mod time of symlinks
2540 # (eg FreeBSD returns the mod time of the symlink's containing
2543 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2544 if test "$*" = "X"; then
2546 set X `ls -t "$srcdir/configure" conftest.file`
2549 if test "$*" != "X $srcdir/configure conftest.file" \
2550 && test "$*" != "X conftest.file $srcdir/configure"; then
2552 # If neither matched, then we have a broken ls. This can happen
2553 # if, for instance, CONFIG_SHELL is bash and it inherits a
2554 # broken ls alias from the environment. This has actually
2555 # happened. Such a system could not be considered "sane".
2556 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2557 alias in your environment" "$LINENO" 5
2560 test "$2" = conftest.file
2566 as_fn_error "newly created file is older than distributed files!
2567 Check your system clock" "$LINENO" 5
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2570 $as_echo "yes" >&6; }
2571 test "$program_prefix" != NONE &&
2572 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2573 # Use a double $ so make ignores it.
2574 test "$program_suffix" != NONE &&
2575 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2576 # Double any \ or $.
2577 # By default was `s,x,x', remove it if useless.
2578 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2579 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2581 # expand $ac_aux_dir to an absolute path
2582 am_aux_dir=`cd $ac_aux_dir && pwd`
2584 if test x"${MISSING+set}" != xset; then
2587 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2589 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2592 # Use eval to expand $SHELL
2593 if eval "$MISSING --run true"; then
2594 am_missing_run="$MISSING --run "
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2598 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2601 if test x"${install_sh}" != xset; then
2604 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2606 install_sh="\${SHELL} $am_aux_dir/install-sh"
2610 # Installed binaries are usually stripped using `strip' when the user
2611 # run `make install-strip'. However `strip' might not be the right
2612 # tool to use in cross-compilation environments, therefore Automake
2613 # will honor the `STRIP' environment variable to overrule this program.
2614 if test "$cross_compiling" != no; then
2615 if test -n "$ac_tool_prefix"; then
2616 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2617 set dummy ${ac_tool_prefix}strip; ac_word=$2
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2619 $as_echo_n "checking for $ac_word... " >&6; }
2620 if test "${ac_cv_prog_STRIP+set}" = set; then :
2621 $as_echo_n "(cached) " >&6
2623 if test -n "$STRIP"; then
2624 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2633 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2643 STRIP=$ac_cv_prog_STRIP
2644 if test -n "$STRIP"; then
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2646 $as_echo "$STRIP" >&6; }
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2649 $as_echo "no" >&6; }
2654 if test -z "$ac_cv_prog_STRIP"; then
2656 # Extract the first word of "strip", so it can be a program name with args.
2657 set dummy strip; ac_word=$2
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659 $as_echo_n "checking for $ac_word... " >&6; }
2660 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2661 $as_echo_n "(cached) " >&6
2663 if test -n "$ac_ct_STRIP"; then
2664 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 test -z "$as_dir" && as_dir=.
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2673 ac_cv_prog_ac_ct_STRIP="strip"
2674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2683 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2684 if test -n "$ac_ct_STRIP"; then
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2686 $as_echo "$ac_ct_STRIP" >&6; }
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689 $as_echo "no" >&6; }
2692 if test "x$ac_ct_STRIP" = x; then
2695 case $cross_compiling:$ac_tool_warned in
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2699 ac_tool_warned=yes ;;
2704 STRIP="$ac_cv_prog_STRIP"
2708 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2711 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2712 if test -z "$MKDIR_P"; then
2713 if test "${ac_cv_path_mkdir+set}" = set; then :
2714 $as_echo_n "(cached) " >&6
2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2720 test -z "$as_dir" && as_dir=.
2721 for ac_prog in mkdir gmkdir; do
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2724 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2725 'mkdir (GNU coreutils) '* | \
2726 'mkdir (coreutils) '* | \
2727 'mkdir (fileutils) '4.1*)
2728 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2738 test -d ./--version && rmdir ./--version
2739 if test "${ac_cv_path_mkdir+set}" = set; then
2740 MKDIR_P="$ac_cv_path_mkdir -p"
2742 # As a last resort, use the slow shell script. Don't cache a
2743 # value for MKDIR_P within a source directory, because that will
2744 # break other packages using the cache if that directory is
2745 # removed, or if the value is a relative name.
2746 MKDIR_P="$ac_install_sh -d"
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2750 $as_echo "$MKDIR_P" >&6; }
2754 [\\/$]* | ?:[\\/]*) ;;
2755 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2758 for ac_prog in gawk mawk nawk awk
2760 # Extract the first word of "$ac_prog", so it can be a program name with args.
2761 set dummy $ac_prog; ac_word=$2
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2763 $as_echo_n "checking for $ac_word... " >&6; }
2764 if test "${ac_cv_prog_AWK+set}" = set; then :
2765 $as_echo_n "(cached) " >&6
2767 if test -n "$AWK"; then
2768 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 test -z "$as_dir" && as_dir=.
2775 for ac_exec_ext in '' $ac_executable_extensions; do
2776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2777 ac_cv_prog_AWK="$ac_prog"
2778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 if test -n "$AWK"; then
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2790 $as_echo "$AWK" >&6; }
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793 $as_echo "no" >&6; }
2797 test -n "$AWK" && break
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2801 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2803 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2804 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2805 $as_echo_n "(cached) " >&6
2807 cat >conftest.make <<\_ACEOF
2810 @echo '@@@%%%=$(MAKE)=@@@%%%'
2812 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2813 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2815 eval ac_cv_prog_make_${ac_make}_set=yes;;
2817 eval ac_cv_prog_make_${ac_make}_set=no;;
2821 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2823 $as_echo "yes" >&6; }
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 $as_echo "no" >&6; }
2828 SET_MAKE="MAKE=${MAKE-make}"
2831 rm -rf .tst 2>/dev/null
2832 mkdir .tst 2>/dev/null
2833 if test -d .tst; then
2838 rmdir .tst 2>/dev/null
2840 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2841 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2842 # is not polluted with repeated "-I."
2843 am__isrc=' -I$(srcdir)'
2844 # test to see if srcdir already configured
2845 if test -f $srcdir/config.status; then
2846 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2850 # test whether we have cygpath
2851 if test -z "$CYGPATH_W"; then
2852 if (cygpath --version) >/dev/null 2>/dev/null; then
2853 CYGPATH_W='cygpath -w'
2860 # Define the identity of the package.
2865 cat >>confdefs.h <<_ACEOF
2866 @%:@define PACKAGE "$PACKAGE"
2870 cat >>confdefs.h <<_ACEOF
2871 @%:@define VERSION "$VERSION"
2874 # Some tools Automake needs.
2876 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2879 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2882 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2885 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2888 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2890 # We need awk for the "check" target. The system "awk" is bad on
2892 # Always define AMTAR for backward compatibility.
2894 AMTAR=${AMTAR-"${am_missing_run}tar"}
2896 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2904 ac_config_headers="$ac_config_headers config.h"
2907 # Checks for host and target systems.
2908 # Make sure we can run config.sub.
2909 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2910 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2913 $as_echo_n "checking build system type... " >&6; }
2914 if test "${ac_cv_build+set}" = set; then :
2915 $as_echo_n "(cached) " >&6
2917 ac_build_alias=$build_alias
2918 test "x$ac_build_alias" = x &&
2919 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2920 test "x$ac_build_alias" = x &&
2921 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2922 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2923 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2927 $as_echo "$ac_cv_build" >&6; }
2928 case $ac_cv_build in
2930 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2933 ac_save_IFS=$IFS; IFS='-'
2939 # Remember, the first character of IFS is used to create $*,
2940 # except with old shells:
2943 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2947 $as_echo_n "checking host system type... " >&6; }
2948 if test "${ac_cv_host+set}" = set; then :
2949 $as_echo_n "(cached) " >&6
2951 if test "x$host_alias" = x; then
2952 ac_cv_host=$ac_cv_build
2954 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2955 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2960 $as_echo "$ac_cv_host" >&6; }
2963 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2966 ac_save_IFS=$IFS; IFS='-'
2972 # Remember, the first character of IFS is used to create $*,
2973 # except with old shells:
2976 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2980 $as_echo_n "checking target system type... " >&6; }
2981 if test "${ac_cv_target+set}" = set; then :
2982 $as_echo_n "(cached) " >&6
2984 if test "x$target_alias" = x; then
2985 ac_cv_target=$ac_cv_host
2987 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2988 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2993 $as_echo "$ac_cv_target" >&6; }
2994 case $ac_cv_target in
2996 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2998 target=$ac_cv_target
2999 ac_save_IFS=$IFS; IFS='-'
3005 # Remember, the first character of IFS is used to create $*,
3006 # except with old shells:
3009 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3012 # The aliases save the names the user supplied, while $host etc.
3013 # will get canonicalized.
3014 test -n "$target_alias" &&
3015 test "$program_prefix$program_suffix$program_transform_name" = \
3017 program_prefix=${target_alias}-
3019 # Program name transformations
3022 # Optimization flag. Allow user to override.
3023 if test "x$TARGET_CFLAGS" = x; then
3024 TARGET_CFLAGS="$TARGET_CFLAGS -Os"
3027 case "$target_cpu" in
3028 i[3456]86) target_cpu=i386 ;;
3029 amd64) target_cpu=x86_64 ;;
3030 sparc) target_cpu=sparc64 ;;
3033 TARGET_CFLAGS="$TARGET_CFLAGS -DGRUB_CPU_MIPSEL=1";
3034 CFLAGS="$CFLAGS -DGRUB_CPU_MIPSEL=1";
3038 TARGET_CFLAGS="$TARGET_CFLAGS -DGRUB_CPU_MIPS=1";
3039 CFLAGS="$CFLAGS -DGRUB_CPU_MIPS=1";
3043 # Specify the platform (such as firmware).
3045 @%:@ Check whether --with-platform was given.
3046 if test "${with_platform+set}" = set; then :
3047 withval=$with_platform;
3051 # Guess the platform if not specified.
3052 if test "x$with_platform" = x; then
3053 case "$target_cpu"-"$target_vendor" in
3054 i386-apple) platform=efi ;;
3055 i386-*) platform=pc ;;
3056 x86_64-apple) platform=efi ;;
3057 x86_64-*) platform=pc ;;
3058 powerpc-*) platform=ieee1275 ;;
3059 powerpc64-*) platform=ieee1275 ;;
3060 sparc64-*) platform=ieee1275 ;;
3061 mips-*) platform=yeeloong ;;
3062 *) as_fn_error "unsupported CPU: \"$target_cpu\"" "$LINENO" 5 ;;
3065 platform="$with_platform"
3068 # Adjust CPU unless target was explicitly specified.
3069 if test -z "$target_alias"; then
3070 case "$target_cpu"-"$platform" in
3072 x86_64-*) target_cpu=i386 ;;
3073 powerpc64-ieee1275) target_cpu=powerpc ;;
3077 # Check if the platform is supported, make final adjustments.
3078 case "$target_cpu"-"$platform" in
3083 i386-linuxbios) platform=coreboot ;;
3086 powerpc-ieee1275) ;;
3087 sparc64-ieee1275) ;;
3091 *) as_fn_error "platform \"$platform\" is not supported for target CPU \"$target_cpu\"" "$LINENO" 5 ;;
3094 case "$target_cpu" in
3095 i386 | powerpc) target_m32=1 ;;
3096 x86_64 | sparc64) target_m64=1 ;;
3100 mingw32*) host_os=cygwin ;;
3103 # This normalizes the names, and creates a new variable ("host_kernel")
3104 # while at it, since the mapping is not always 1:1 (e.g. different OSes
3105 # using the same kernel type).
3107 gnu*) host_kernel=hurd ;;
3108 linux*) host_kernel=linux ;;
3109 freebsd* | kfreebsd*-gnu) host_kernel=kfreebsd ;;
3110 cygwin) host_kernel=windows ;;
3114 coreboot) machine_CFLAGS="-DGRUB_MACHINE_COREBOOT=1" ;;
3115 efi) machine_CFLAGS="-DGRUB_MACHINE_EFI=1" ;;
3116 ieee1275) machine_CFLAGS="-DGRUB_MACHINE_IEEE1275=1" ;;
3117 qemu) machine_CFLAGS="-DGRUB_MACHINE_QEMU=1" ;;
3118 pc) machine_CFLAGS="-DGRUB_MACHINE_PCBIOS=1" ;;
3119 emu) machine_CFLAGS="-DGRUB_MACHINE_EMU=1" ;;
3120 yeeloong) machine_CFLAGS="-DGRUB_MACHINE_MIPS_YEELOONG=1 -DGRUB_MACHINE_MIPS=1 -DGRUB_MACHINE_MIPS_BONITO=1" ;;
3121 qemu-mips) machine_CFLAGS="-DGRUB_MACHINE_MIPS_QEMU_MIPS=1 -DGRUB_MACHINE_MIPS=1 -DGRUB_MACHINE_MIPS_BONITO=1" ;;
3123 CFLAGS="$CFLAGS $machine_CFLAGS"
3124 TARGET_ASFLAGS="$TARGET_ASFLAGS $machine_CFLAGS"
3125 TARGET_CFLAGS="$TARGET_CFLAGS $machine_CFLAGS"
3135 # Checks for build programs.
3138 # Although cmp is listed in the GNU Coding Standards as a command which
3139 # can used directly, OpenBSD lacks cmp in the default installation.
3142 # Extract the first word of "$ac_prog", so it can be a program name with args.
3143 set dummy $ac_prog; ac_word=$2
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145 $as_echo_n "checking for $ac_word... " >&6; }
3146 if test "${ac_cv_prog_CMP+set}" = set; then :
3147 $as_echo_n "(cached) " >&6
3149 if test -n "$CMP"; then
3150 ac_cv_prog_CMP="$CMP" # Let the user override the test.
3152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 test -z "$as_dir" && as_dir=.
3157 for ac_exec_ext in '' $ac_executable_extensions; do
3158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3159 ac_cv_prog_CMP="$ac_prog"
3160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3170 if test -n "$CMP"; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
3172 $as_echo "$CMP" >&6; }
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3175 $as_echo "no" >&6; }
3179 test -n "$CMP" && break
3182 if test "x$CMP" = x; then
3183 as_fn_error "cmp is not found" "$LINENO" 5
3186 for ac_prog in bison
3188 # Extract the first word of "$ac_prog", so it can be a program name with args.
3189 set dummy $ac_prog; ac_word=$2
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3191 $as_echo_n "checking for $ac_word... " >&6; }
3192 if test "${ac_cv_prog_YACC+set}" = set; then :
3193 $as_echo_n "(cached) " >&6
3195 if test -n "$YACC"; then
3196 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 test -z "$as_dir" && as_dir=.
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3205 ac_cv_prog_YACC="$ac_prog"
3206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 YACC=$ac_cv_prog_YACC
3216 if test -n "$YACC"; then
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
3218 $as_echo "$YACC" >&6; }
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221 $as_echo "no" >&6; }
3225 test -n "$YACC" && break
3228 if test "x$YACC" = x; then
3229 as_fn_error "bison is not found" "$LINENO" 5
3232 for file in /usr/src/unifont.bdf /usr/share/fonts/X11/misc/unifont.pcf.gz /usr/share/fonts/unifont/unifont.pcf.gz; do
3233 if test -e $file ; then
3241 for ac_prog in gawk mawk nawk awk
3243 # Extract the first word of "$ac_prog", so it can be a program name with args.
3244 set dummy $ac_prog; ac_word=$2
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3246 $as_echo_n "checking for $ac_word... " >&6; }
3247 if test "${ac_cv_prog_AWK+set}" = set; then :
3248 $as_echo_n "(cached) " >&6
3250 if test -n "$AWK"; then
3251 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 test -z "$as_dir" && as_dir=.
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3260 ac_cv_prog_AWK="$ac_prog"
3261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3271 if test -n "$AWK"; then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3273 $as_echo "$AWK" >&6; }
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 $as_echo "no" >&6; }
3280 test -n "$AWK" && break
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3284 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3286 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3287 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3288 $as_echo_n "(cached) " >&6
3290 cat >conftest.make <<\_ACEOF
3293 @echo '@@@%%%=$(MAKE)=@@@%%%'
3295 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3296 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3298 eval ac_cv_prog_make_${ac_make}_set=yes;;
3300 eval ac_cv_prog_make_${ac_make}_set=no;;
3304 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3306 $as_echo "yes" >&6; }
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310 $as_echo "no" >&6; }
3311 SET_MAKE="MAKE=${MAKE-make}"
3316 # These are not a "must".
3317 # Extract the first word of "ruby", so it can be a program name with args.
3318 set dummy ruby; ac_word=$2
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320 $as_echo_n "checking for $ac_word... " >&6; }
3321 if test "${ac_cv_path_RUBY+set}" = set; then :
3322 $as_echo_n "(cached) " >&6
3326 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
3329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3333 test -z "$as_dir" && as_dir=.
3334 for ac_exec_ext in '' $ac_executable_extensions; do
3335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3336 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
3337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3347 RUBY=$ac_cv_path_RUBY
3348 if test -n "$RUBY"; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
3350 $as_echo "$RUBY" >&6; }
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 $as_echo "no" >&6; }
3357 # Extract the first word of "makeinfo", so it can be a program name with args.
3358 set dummy makeinfo; ac_word=$2
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360 $as_echo_n "checking for $ac_word... " >&6; }
3361 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
3362 $as_echo_n "(cached) " >&6
3366 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 test -z "$as_dir" && as_dir=.
3374 for ac_exec_ext in '' $ac_executable_extensions; do
3375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3376 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
3377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 MAKEINFO=$ac_cv_path_MAKEINFO
3388 if test -n "$MAKEINFO"; then
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
3390 $as_echo "$MAKEINFO" >&6; }
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 $as_echo "no" >&6; }
3399 # Checks for host programs.
3403 ac_cpp='$CPP $CPPFLAGS'
3404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3407 if test -n "$ac_tool_prefix"; then
3408 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3409 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if test "${ac_cv_prog_CC+set}" = set; then :
3413 $as_echo_n "(cached) " >&6
3415 if test -n "$CC"; then
3416 ac_cv_prog_CC="$CC" # Let the user override the test.
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 test -z "$as_dir" && as_dir=.
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3436 if test -n "$CC"; then
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3438 $as_echo "$CC" >&6; }
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3446 if test -z "$ac_cv_prog_CC"; then
3448 # Extract the first word of "gcc", so it can be a program name with args.
3449 set dummy gcc; ac_word=$2
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3451 $as_echo_n "checking for $ac_word... " >&6; }
3452 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3453 $as_echo_n "(cached) " >&6
3455 if test -n "$ac_ct_CC"; then
3456 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 test -z "$as_dir" && as_dir=.
3463 for ac_exec_ext in '' $ac_executable_extensions; do
3464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3465 ac_cv_prog_ac_ct_CC="gcc"
3466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3475 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3476 if test -n "$ac_ct_CC"; then
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3478 $as_echo "$ac_ct_CC" >&6; }
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481 $as_echo "no" >&6; }
3484 if test "x$ac_ct_CC" = x; then
3487 case $cross_compiling:$ac_tool_warned in
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3491 ac_tool_warned=yes ;;
3499 if test -z "$CC"; then
3500 if test -n "$ac_tool_prefix"; then
3501 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3502 set dummy ${ac_tool_prefix}cc; ac_word=$2
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3504 $as_echo_n "checking for $ac_word... " >&6; }
3505 if test "${ac_cv_prog_CC+set}" = set; then :
3506 $as_echo_n "(cached) " >&6
3508 if test -n "$CC"; then
3509 ac_cv_prog_CC="$CC" # Let the user override the test.
3511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515 test -z "$as_dir" && as_dir=.
3516 for ac_exec_ext in '' $ac_executable_extensions; do
3517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3518 ac_cv_prog_CC="${ac_tool_prefix}cc"
3519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3529 if test -n "$CC"; then
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3531 $as_echo "$CC" >&6; }
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534 $as_echo "no" >&6; }
3540 if test -z "$CC"; then
3541 # Extract the first word of "cc", so it can be a program name with args.
3542 set dummy cc; ac_word=$2
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3544 $as_echo_n "checking for $ac_word... " >&6; }
3545 if test "${ac_cv_prog_CC+set}" = set; then :
3546 $as_echo_n "(cached) " >&6
3548 if test -n "$CC"; then
3549 ac_cv_prog_CC="$CC" # Let the user override the test.
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 test -z "$as_dir" && as_dir=.
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3559 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3560 ac_prog_rejected=yes
3564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3571 if test $ac_prog_rejected = yes; then
3572 # We found a bogon in the path, so make sure we never use it.
3573 set dummy $ac_cv_prog_CC
3575 if test $@%:@ != 0; then
3576 # We chose a different compiler from the bogus one.
3577 # However, it has the same basename, so the bogon will be chosen
3578 # first if we set CC to just the basename; use the full file name.
3580 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3586 if test -n "$CC"; then
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3588 $as_echo "$CC" >&6; }
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591 $as_echo "no" >&6; }
3596 if test -z "$CC"; then
3597 if test -n "$ac_tool_prefix"; then
3598 for ac_prog in cl.exe
3600 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3601 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3603 $as_echo_n "checking for $ac_word... " >&6; }
3604 if test "${ac_cv_prog_CC+set}" = set; then :
3605 $as_echo_n "(cached) " >&6
3607 if test -n "$CC"; then
3608 ac_cv_prog_CC="$CC" # Let the user override the test.
3610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 test -z "$as_dir" && as_dir=.
3615 for ac_exec_ext in '' $ac_executable_extensions; do
3616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3617 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3628 if test -n "$CC"; then
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3630 $as_echo "$CC" >&6; }
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 $as_echo "no" >&6; }
3637 test -n "$CC" && break
3640 if test -z "$CC"; then
3642 for ac_prog in cl.exe
3644 # Extract the first word of "$ac_prog", so it can be a program name with args.
3645 set dummy $ac_prog; ac_word=$2
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647 $as_echo_n "checking for $ac_word... " >&6; }
3648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3649 $as_echo_n "(cached) " >&6
3651 if test -n "$ac_ct_CC"; then
3652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 test -z "$as_dir" && as_dir=.
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3661 ac_cv_prog_ac_ct_CC="$ac_prog"
3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3671 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3672 if test -n "$ac_ct_CC"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3674 $as_echo "$ac_ct_CC" >&6; }
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3681 test -n "$ac_ct_CC" && break
3684 if test "x$ac_ct_CC" = x; then
3687 case $cross_compiling:$ac_tool_warned in
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3691 ac_tool_warned=yes ;;
3700 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3702 as_fn_error "no acceptable C compiler found in \$PATH
3703 See \`config.log' for more details." "$LINENO" 5; }
3705 # Provide some information about the compiler.
3706 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3709 for ac_option in --version -v -V -qversion; do
3710 { { ac_try="$ac_compiler $ac_option >&5"
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3716 $as_echo "$ac_try_echo"; } >&5
3717 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3719 if test -s conftest.err; then
3721 ... rest of stderr output deleted ...
3722 10q' conftest.err >conftest.er1
3723 cat conftest.er1 >&5
3725 rm -f conftest.er1 conftest.err
3726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3727 test $ac_status = 0; }
3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731 /* end confdefs.h. */
3741 ac_clean_files_save=$ac_clean_files
3742 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3743 # Try to create an executable without -o first, disregard a.out.
3744 # It will help us diagnose broken compilers, and finding out an intuition
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3747 $as_echo_n "checking whether the C compiler works... " >&6; }
3748 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3750 # The possible output files:
3751 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3754 for ac_file in $ac_files
3757 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3758 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3763 if { { ac_try="$ac_link_default"
3765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766 *) ac_try_echo=$ac_try;;
3768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769 $as_echo "$ac_try_echo"; } >&5
3770 (eval "$ac_link_default") 2>&5
3772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773 test $ac_status = 0; }; then :
3774 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3775 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3776 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3777 # so that the user can short-circuit this test for compilers unknown to
3779 for ac_file in $ac_files ''
3781 test -f "$ac_file" || continue
3783 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3786 # We found the default executable, but exeext='' is most
3790 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3792 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3794 # We set ac_cv_exeext here because the later test for it is not
3795 # safe: cross compilers may not add the suffix if given an `-o'
3796 # argument, so we may need to know it at that point already.
3797 # Even if this section looks crufty: it has the advantage of
3804 test "$ac_cv_exeext" = no && ac_cv_exeext=
3809 if test -z "$ac_file"; then :
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811 $as_echo "no" >&6; }
3812 $as_echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3817 { as_fn_set_status 77
3818 as_fn_error "C compiler cannot create executables
3819 See \`config.log' for more details." "$LINENO" 5; }; }
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3822 $as_echo "yes" >&6; }
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3825 $as_echo_n "checking for C compiler default output file name... " >&6; }
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3827 $as_echo "$ac_file" >&6; }
3828 ac_exeext=$ac_cv_exeext
3830 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3831 ac_clean_files=$ac_clean_files_save
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3833 $as_echo_n "checking for suffix of executables... " >&6; }
3834 if { { ac_try="$ac_link"
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3840 $as_echo "$ac_try_echo"; } >&5
3841 (eval "$ac_link") 2>&5
3843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3844 test $ac_status = 0; }; then :
3845 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3846 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3847 # work properly (i.e., refer to `conftest.exe'), while it won't with
3849 for ac_file in conftest.exe conftest conftest.*; do
3850 test -f "$ac_file" || continue
3852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3853 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3861 as_fn_error "cannot compute suffix of executables: cannot compile and link
3862 See \`config.log' for more details." "$LINENO" 5; }
3864 rm -f conftest conftest$ac_cv_exeext
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3866 $as_echo "$ac_cv_exeext" >&6; }
3868 rm -f conftest.$ac_ext
3869 EXEEXT=$ac_cv_exeext
3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872 /* end confdefs.h. */
3873 @%:@include <stdio.h>
3877 FILE *f = fopen ("conftest.out", "w");
3878 return ferror (f) || fclose (f) != 0;
3884 ac_clean_files="$ac_clean_files conftest.out"
3885 # Check that the compiler produces executables we can run. If not, either
3886 # the compiler is broken, or we cross compile.
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3888 $as_echo_n "checking whether we are cross compiling... " >&6; }
3889 if test "$cross_compiling" != yes; then
3890 { { ac_try="$ac_link"
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3896 $as_echo "$ac_try_echo"; } >&5
3897 (eval "$ac_link") 2>&5
3899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3900 test $ac_status = 0; }
3901 if { ac_try='./conftest$ac_cv_exeext'
3902 { { case "(($ac_try" in
3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3907 $as_echo "$ac_try_echo"; } >&5
3908 (eval "$ac_try") 2>&5
3910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3911 test $ac_status = 0; }; }; then
3914 if test "$cross_compiling" = maybe; then
3917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3919 as_fn_error "cannot run C compiled programs.
3920 If you meant to cross compile, use \`--host'.
3921 See \`config.log' for more details." "$LINENO" 5; }
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3926 $as_echo "$cross_compiling" >&6; }
3928 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3929 ac_clean_files=$ac_clean_files_save
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3931 $as_echo_n "checking for suffix of object files... " >&6; }
3932 if test "${ac_cv_objext+set}" = set; then :
3933 $as_echo_n "(cached) " >&6
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3946 rm -f conftest.o conftest.obj
3947 if { { ac_try="$ac_compile"
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3953 $as_echo "$ac_try_echo"; } >&5
3954 (eval "$ac_compile") 2>&5
3956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3957 test $ac_status = 0; }; then :
3958 for ac_file in conftest.o conftest.obj conftest.*; do
3959 test -f "$ac_file" || continue;
3961 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3962 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3967 $as_echo "$as_me: failed program was:" >&5
3968 sed 's/^/| /' conftest.$ac_ext >&5
3970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3972 as_fn_error "cannot compute suffix of object files: cannot compile
3973 See \`config.log' for more details." "$LINENO" 5; }
3975 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3978 $as_echo "$ac_cv_objext" >&6; }
3979 OBJEXT=$ac_cv_objext
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3982 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3983 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3984 $as_echo_n "(cached) " >&6
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
4000 if ac_fn_c_try_compile "$LINENO"; then :
4005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4006 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4010 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4011 if test $ac_compiler_gnu = yes; then
4016 ac_test_CFLAGS=${CFLAGS+set}
4017 ac_save_CFLAGS=$CFLAGS
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4019 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4020 if test "${ac_cv_prog_cc_g+set}" = set; then :
4021 $as_echo_n "(cached) " >&6
4023 ac_save_c_werror_flag=$ac_c_werror_flag
4024 ac_c_werror_flag=yes
4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h. */
4038 if ac_fn_c_try_compile "$LINENO"; then :
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h. */
4053 if ac_fn_c_try_compile "$LINENO"; then :
4056 ac_c_werror_flag=$ac_save_c_werror_flag
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4069 if ac_fn_c_try_compile "$LINENO"; then :
4072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4077 ac_c_werror_flag=$ac_save_c_werror_flag
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4080 $as_echo "$ac_cv_prog_cc_g" >&6; }
4081 if test "$ac_test_CFLAGS" = set; then
4082 CFLAGS=$ac_save_CFLAGS
4083 elif test $ac_cv_prog_cc_g = yes; then
4084 if test "$GCC" = yes; then
4090 if test "$GCC" = yes; then
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4097 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4098 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4099 $as_echo_n "(cached) " >&6
4101 ac_cv_prog_cc_c89=no
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4107 #include <sys/types.h>
4108 #include <sys/stat.h>
4109 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4110 struct buf { int x; };
4111 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4112 static char *e (p, i)
4118 static char *f (char * (*g) (char **, int), char **p, ...)
4123 s = g (p, va_arg (v,int));
4128 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4129 function prototypes and stuff, but not '\xHH' hex character constants.
4130 These don't provoke an error unfortunately, instead are silently treated
4131 as 'x'. The following induces an error, until -std is added to get
4132 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4133 array size at least. It's necessary to write '\x00'==0 to get something
4134 that's true only with -std. */
4135 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4137 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4138 inside strings and character constants. */
4140 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4142 int test (int i, double x);
4143 struct s1 {int (*f) (int a);};
4144 struct s2 {int (*f) (double a);};
4145 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4151 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4156 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4157 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4159 CC="$ac_save_CC $ac_arg"
4160 if ac_fn_c_try_compile "$LINENO"; then :
4161 ac_cv_prog_cc_c89=$ac_arg
4163 rm -f core conftest.err conftest.$ac_objext
4164 test "x$ac_cv_prog_cc_c89" != "xno" && break
4166 rm -f conftest.$ac_ext
4171 case "x$ac_cv_prog_cc_c89" in
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4174 $as_echo "none needed" >&6; } ;;
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4177 $as_echo "unsupported" >&6; } ;;
4179 CC="$CC $ac_cv_prog_cc_c89"
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4181 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4183 if test "x$ac_cv_prog_cc_c89" != xno; then :
4188 ac_cpp='$CPP $CPPFLAGS'
4189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4192 DEPDIR="${am__leading_dot}deps"
4194 ac_config_commands="$ac_config_commands depfiles"
4197 am_make=${MAKE-make}
4198 cat > confinc << 'END'
4200 @echo this is the am__doit target
4203 # If we don't find an include directive, just comment out the code.
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4205 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4209 # First try GNU make style include.
4210 echo "include confinc" > confmf
4211 # Ignore all kinds of additional output from `make'.
4212 case `$am_make -s -f confmf 2> /dev/null` in #(
4213 *the\ am__doit\ target*)
4219 # Now try BSD make style include.
4220 if test "$am__include" = "#"; then
4221 echo '.include "confinc"' > confmf
4222 case `$am_make -s -f confmf 2> /dev/null` in #(
4223 *the\ am__doit\ target*)
4224 am__include=.include
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4233 $as_echo "$_am_result" >&6; }
4234 rm -f confinc confmf
4236 @%:@ Check whether --enable-dependency-tracking was given.
4237 if test "${enable_dependency_tracking+set}" = set; then :
4238 enableval=$enable_dependency_tracking;
4241 if test "x$enable_dependency_tracking" != xno; then
4242 am_depcomp="$ac_aux_dir/depcomp"
4245 if test "x$enable_dependency_tracking" != xno; then
4255 depcc="$CC" am_compiler_list=
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4258 $as_echo_n "checking dependency style of $depcc... " >&6; }
4259 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4260 $as_echo_n "(cached) " >&6
4262 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4263 # We make a subdir and do the tests there. Otherwise we can end up
4264 # making bogus files that we don't know about and never remove. For
4265 # instance it was reported that on HP-UX the gcc test will end up
4266 # making a dummy file named `D' -- because `-MD' means `put the output
4269 # Copy depcomp to subdir because otherwise we won't find it if we're
4270 # using a relative directory.
4271 cp "$am_depcomp" conftest.dir
4273 # We will build objects and dependencies in a subdirectory because
4274 # it helps to detect inapplicable dependency modes. For instance
4275 # both Tru64's cc and ICC support -MD to output dependencies as a
4276 # side effect of compilation, but ICC will put the dependencies in
4277 # the current directory while Tru64 will put them in the object
4281 am_cv_CC_dependencies_compiler_type=none
4282 if test "$am_compiler_list" = ""; then
4283 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4286 case " $depcc " in #(
4287 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4290 for depmode in $am_compiler_list; do
4291 # Setup a source with many dependencies, because some compilers
4292 # like to wrap large dependency lists on column 80 (with \), and
4293 # we should not choose a depcomp mode which is confused by this.
4295 # We need to recreate these files for each test, as the compiler may
4296 # overwrite some of them when testing with obscure command lines.
4297 # This happens at least with the AIX C compiler.
4299 for i in 1 2 3 4 5 6; do
4300 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4301 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4302 # Solaris 8's {/usr,}/bin/sh.
4303 touch sub/conftst$i.h
4305 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4307 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4308 # mode. It turns out that the SunPro C++ compiler does not properly
4309 # handle `-M -o', and we need to detect this. Also, some Intel
4310 # versions had trouble with output in subdirs
4311 am__obj=sub/conftest.${OBJEXT-o}
4312 am__minus_obj="-o $am__obj"
4315 # This depmode causes a compiler race in universal mode.
4316 test "$am__universal" = false || continue
4319 # after this tag, mechanisms are not by side-effect, so they'll
4320 # only be used when explicitly requested
4321 if test "x$enable_dependency_tracking" = xyes; then
4327 msvisualcpp | msvcmsys)
4328 # This compiler won't grok `-c -o', but also, the minuso test has
4329 # not run yet. These depmodes are late enough in the game, and
4330 # so weak that their functioning should not be impacted.
4331 am__obj=conftest.${OBJEXT-o}
4336 if depmode=$depmode \
4337 source=sub/conftest.c object=$am__obj \
4338 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4339 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4340 >/dev/null 2>conftest.err &&
4341 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4342 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4343 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4344 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4345 # icc doesn't choke on unknown options, it will just issue warnings
4346 # or remarks (even with -Werror). So we grep stderr for any message
4347 # that says an option was ignored or not supported.
4348 # When given -MP, icc 7.0 and 7.1 complain thusly:
4349 # icc: Command line warning: ignoring option '-M'; no argument required
4350 # The diagnosis changed in icc 8.0:
4351 # icc: Command line remark: option '-MP' not supported
4352 if (grep 'ignoring option' conftest.err ||
4353 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4354 am_cv_CC_dependencies_compiler_type=$depmode
4363 am_cv_CC_dependencies_compiler_type=none
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4368 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4369 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4372 test "x$enable_dependency_tracking" != xno \
4373 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4375 am__fastdepCC_FALSE='#'
4377 am__fastdepCC_TRUE='#'
4378 am__fastdepCC_FALSE=
4383 test "x$GCC" = xyes || as_fn_error "GCC is required" "$LINENO" 5
4387 ac_cpp='$CPP $CPPFLAGS'
4388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4392 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4393 # On Suns, sometimes $CPP names a directory.
4394 if test -n "$CPP" && test -d "$CPP"; then
4397 if test -z "$CPP"; then
4398 if test "${ac_cv_prog_CPP+set}" = set; then :
4399 $as_echo_n "(cached) " >&6
4401 # Double quotes because CPP needs to be expanded
4402 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4405 for ac_c_preproc_warn_flag in '' yes
4407 # Use a header file that comes with gcc, so configuring glibc
4408 # with a fresh cross-compiler works.
4409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4410 # <limits.h> exists even on freestanding compilers.
4411 # On the NeXT, cc -E runs the code through the compiler's parser,
4412 # not just through cpp. "Syntax error" is here to catch this case.
4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h. */
4416 @%:@ include <limits.h>
4418 @%:@ include <assert.h>
4422 if ac_fn_c_try_cpp "$LINENO"; then :
4425 # Broken: fails on valid input.
4428 rm -f conftest.err conftest.$ac_ext
4430 # OK, works on sane cases. Now check whether nonexistent headers
4431 # can be detected and how.
4432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4433 /* end confdefs.h. */
4434 @%:@include <ac_nonexistent.h>
4436 if ac_fn_c_try_cpp "$LINENO"; then :
4437 # Broken: success on invalid input.
4440 # Passes both tests.
4444 rm -f conftest.err conftest.$ac_ext
4447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4448 rm -f conftest.err conftest.$ac_ext
4449 if $ac_preproc_ok; then :
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4462 $as_echo "$CPP" >&6; }
4464 for ac_c_preproc_warn_flag in '' yes
4466 # Use a header file that comes with gcc, so configuring glibc
4467 # with a fresh cross-compiler works.
4468 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4469 # <limits.h> exists even on freestanding compilers.
4470 # On the NeXT, cc -E runs the code through the compiler's parser,
4471 # not just through cpp. "Syntax error" is here to catch this case.
4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473 /* end confdefs.h. */
4475 @%:@ include <limits.h>
4477 @%:@ include <assert.h>
4481 if ac_fn_c_try_cpp "$LINENO"; then :
4484 # Broken: fails on valid input.
4487 rm -f conftest.err conftest.$ac_ext
4489 # OK, works on sane cases. Now check whether nonexistent headers
4490 # can be detected and how.
4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h. */
4493 @%:@include <ac_nonexistent.h>
4495 if ac_fn_c_try_cpp "$LINENO"; then :
4496 # Broken: success on invalid input.
4499 # Passes both tests.
4503 rm -f conftest.err conftest.$ac_ext
4506 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4507 rm -f conftest.err conftest.$ac_ext
4508 if $ac_preproc_ok; then :
4511 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4513 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4514 See \`config.log' for more details." "$LINENO" 5; }
4518 ac_cpp='$CPP $CPPFLAGS'
4519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4525 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4526 if test "${ac_cv_path_GREP+set}" = set; then :
4527 $as_echo_n "(cached) " >&6
4529 if test -z "$GREP"; then
4530 ac_path_GREP_found=false
4531 # Loop through the user's path and test for each of PROGNAME-LIST
4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4536 test -z "$as_dir" && as_dir=.
4537 for ac_prog in grep ggrep; do
4538 for ac_exec_ext in '' $ac_executable_extensions; do
4539 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4540 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4541 # Check for GNU ac_path_GREP and select it if it is found.
4542 # Check for GNU $ac_path_GREP
4543 case `"$ac_path_GREP" --version 2>&1` in
4545 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4548 $as_echo_n 0123456789 >"conftest.in"
4551 cat "conftest.in" "conftest.in" >"conftest.tmp"
4552 mv "conftest.tmp" "conftest.in"
4553 cp "conftest.in" "conftest.nl"
4554 $as_echo 'GREP' >> "conftest.nl"
4555 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4556 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4557 as_fn_arith $ac_count + 1 && ac_count=$as_val
4558 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4559 # Best one so far, save it but keep looking for a better one
4560 ac_cv_path_GREP="$ac_path_GREP"
4561 ac_path_GREP_max=$ac_count
4563 # 10*(2^10) chars as input seems more than enough
4564 test $ac_count -gt 10 && break
4566 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4569 $ac_path_GREP_found && break 3
4574 if test -z "$ac_cv_path_GREP"; then
4575 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4578 ac_cv_path_GREP=$GREP
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4583 $as_echo "$ac_cv_path_GREP" >&6; }
4584 GREP="$ac_cv_path_GREP"
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4588 $as_echo_n "checking for egrep... " >&6; }
4589 if test "${ac_cv_path_EGREP+set}" = set; then :
4590 $as_echo_n "(cached) " >&6
4592 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4593 then ac_cv_path_EGREP="$GREP -E"
4595 if test -z "$EGREP"; then
4596 ac_path_EGREP_found=false
4597 # Loop through the user's path and test for each of PROGNAME-LIST
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4602 test -z "$as_dir" && as_dir=.
4603 for ac_prog in egrep; do
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4606 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4607 # Check for GNU ac_path_EGREP and select it if it is found.
4608 # Check for GNU $ac_path_EGREP
4609 case `"$ac_path_EGREP" --version 2>&1` in
4611 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4614 $as_echo_n 0123456789 >"conftest.in"
4617 cat "conftest.in" "conftest.in" >"conftest.tmp"
4618 mv "conftest.tmp" "conftest.in"
4619 cp "conftest.in" "conftest.nl"
4620 $as_echo 'EGREP' >> "conftest.nl"
4621 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4622 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4623 as_fn_arith $ac_count + 1 && ac_count=$as_val
4624 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4625 # Best one so far, save it but keep looking for a better one
4626 ac_cv_path_EGREP="$ac_path_EGREP"
4627 ac_path_EGREP_max=$ac_count
4629 # 10*(2^10) chars as input seems more than enough
4630 test $ac_count -gt 10 && break
4632 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4635 $ac_path_EGREP_found && break 3
4640 if test -z "$ac_cv_path_EGREP"; then
4641 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4644 ac_cv_path_EGREP=$EGREP
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4650 $as_echo "$ac_cv_path_EGREP" >&6; }
4651 EGREP="$ac_cv_path_EGREP"
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4655 $as_echo_n "checking for ANSI C header files... " >&6; }
4656 if test "${ac_cv_header_stdc+set}" = set; then :
4657 $as_echo_n "(cached) " >&6
4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h. */
4674 if ac_fn_c_try_compile "$LINENO"; then :
4675 ac_cv_header_stdc=yes
4677 ac_cv_header_stdc=no
4679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4681 if test $ac_cv_header_stdc = yes; then
4682 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684 /* end confdefs.h. */
4688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4689 $EGREP "memchr" >/dev/null 2>&1; then :
4692 ac_cv_header_stdc=no
4698 if test $ac_cv_header_stdc = yes; then
4699 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4706 $EGREP "free" >/dev/null 2>&1; then :
4709 ac_cv_header_stdc=no
4715 if test $ac_cv_header_stdc = yes; then
4716 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4717 if test "$cross_compiling" = yes; then :
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4724 #if ((' ' & 0x0FF) == 0x020)
4725 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4726 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4728 # define ISLOWER(c) \
4729 (('a' <= (c) && (c) <= 'i') \
4730 || ('j' <= (c) && (c) <= 'r') \
4731 || ('s' <= (c) && (c) <= 'z'))
4732 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4735 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4740 for (i = 0; i < 256; i++)
4741 if (XOR (islower (i), ISLOWER (i))
4742 || toupper (i) != TOUPPER (i))
4747 if ac_fn_c_try_run "$LINENO"; then :
4750 ac_cv_header_stdc=no
4752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4753 conftest.$ac_objext conftest.beam conftest.$ac_ext
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4759 $as_echo "$ac_cv_header_stdc" >&6; }
4760 if test $ac_cv_header_stdc = yes; then
4762 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
4766 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4767 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4768 inttypes.h stdint.h unistd.h
4770 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4771 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4773 eval as_val=\$$as_ac_Header
4774 if test "x$as_val" = x""yes; then :
4775 cat >>confdefs.h <<_ACEOF
4776 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4785 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4786 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4793 if test "$MINIX" = yes; then
4795 $as_echo "@%:@define _POSIX_SOURCE 1" >>confdefs.h
4798 $as_echo "@%:@define _POSIX_1_SOURCE 2" >>confdefs.h
4801 $as_echo "@%:@define _MINIX 1" >>confdefs.h
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4807 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4808 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4809 $as_echo_n "(cached) " >&6
4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812 /* end confdefs.h. */
4814 # define __EXTENSIONS__ 1
4815 $ac_includes_default
4824 if ac_fn_c_try_compile "$LINENO"; then :
4825 ac_cv_safe_to_define___extensions__=yes
4827 ac_cv_safe_to_define___extensions__=no
4829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4832 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4833 test $ac_cv_safe_to_define___extensions__ = yes &&
4834 $as_echo "@%:@define __EXTENSIONS__ 1" >>confdefs.h
4836 $as_echo "@%:@define _ALL_SOURCE 1" >>confdefs.h
4838 $as_echo "@%:@define _GNU_SOURCE 1" >>confdefs.h
4840 $as_echo "@%:@define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4842 $as_echo "@%:@define _TANDEM_SOURCE 1" >>confdefs.h
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4848 $as_echo_n "checking whether NLS is requested... " >&6; }
4849 @%:@ Check whether --enable-nls was given.
4850 if test "${enable_nls+set}" = set; then :
4851 enableval=$enable_nls; USE_NLS=$enableval
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4857 $as_echo "$USE_NLS" >&6; }
4862 GETTEXT_MACRO_VERSION=0.17
4867 # Prepare PATH_SEPARATOR.
4868 # The user is always right.
4869 if test "${PATH_SEPARATOR+set}" != set; then
4870 echo "#! /bin/sh" >conf$$.sh
4871 echo "exit 0" >>conf$$.sh
4873 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4881 # Find out how to test for executable files. Don't use a zero-byte file,
4882 # as systems may use methods other than mode bits to determine executability.
4883 cat >conf$$.file <<_ASEOF
4887 chmod +x conf$$.file
4888 if test -x conf$$.file >/dev/null 2>&1; then
4889 ac_executable_p="test -x"
4891 ac_executable_p="test -f"
4895 # Extract the first word of "msgfmt", so it can be a program name with args.
4896 set dummy msgfmt; ac_word=$2
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898 $as_echo_n "checking for $ac_word... " >&6; }
4899 if test "${ac_cv_path_MSGFMT+set}" = set; then :
4900 $as_echo_n "(cached) " >&6
4904 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4907 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4908 for ac_dir in $PATH; do
4910 test -z "$ac_dir" && ac_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4913 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4914 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4915 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4916 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4923 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4927 MSGFMT="$ac_cv_path_MSGFMT"
4928 if test "$MSGFMT" != ":"; then
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4930 $as_echo "$MSGFMT" >&6; }
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4933 $as_echo "no" >&6; }
4936 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4937 set dummy gmsgfmt; ac_word=$2
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4939 $as_echo_n "checking for $ac_word... " >&6; }
4940 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
4941 $as_echo_n "(cached) " >&6
4945 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 test -z "$as_dir" && as_dir=.
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4955 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4963 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4967 GMSGFMT=$ac_cv_path_GMSGFMT
4968 if test -n "$GMSGFMT"; then
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4970 $as_echo "$GMSGFMT" >&6; }
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4973 $as_echo "no" >&6; }
4978 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4979 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4980 *) MSGFMT_015=$MSGFMT ;;
4983 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4984 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4985 *) GMSGFMT_015=$GMSGFMT ;;
4990 # Prepare PATH_SEPARATOR.
4991 # The user is always right.
4992 if test "${PATH_SEPARATOR+set}" != set; then
4993 echo "#! /bin/sh" >conf$$.sh
4994 echo "exit 0" >>conf$$.sh
4996 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5004 # Find out how to test for executable files. Don't use a zero-byte file,
5005 # as systems may use methods other than mode bits to determine executability.
5006 cat >conf$$.file <<_ASEOF
5010 chmod +x conf$$.file
5011 if test -x conf$$.file >/dev/null 2>&1; then
5012 ac_executable_p="test -x"
5014 ac_executable_p="test -f"
5018 # Extract the first word of "xgettext", so it can be a program name with args.
5019 set dummy xgettext; ac_word=$2
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5021 $as_echo_n "checking for $ac_word... " >&6; }
5022 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5023 $as_echo_n "(cached) " >&6
5027 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5030 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5031 for ac_dir in $PATH; do
5033 test -z "$ac_dir" && ac_dir=.
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5036 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5037 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5038 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5039 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5046 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5050 XGETTEXT="$ac_cv_path_XGETTEXT"
5051 if test "$XGETTEXT" != ":"; then
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5053 $as_echo "$XGETTEXT" >&6; }
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056 $as_echo "no" >&6; }
5061 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5062 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5063 *) XGETTEXT_015=$XGETTEXT ;;
5068 # Prepare PATH_SEPARATOR.
5069 # The user is always right.
5070 if test "${PATH_SEPARATOR+set}" != set; then
5071 echo "#! /bin/sh" >conf$$.sh
5072 echo "exit 0" >>conf$$.sh
5074 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5082 # Find out how to test for executable files. Don't use a zero-byte file,
5083 # as systems may use methods other than mode bits to determine executability.
5084 cat >conf$$.file <<_ASEOF
5088 chmod +x conf$$.file
5089 if test -x conf$$.file >/dev/null 2>&1; then
5090 ac_executable_p="test -x"
5092 ac_executable_p="test -f"
5096 # Extract the first word of "msgmerge", so it can be a program name with args.
5097 set dummy msgmerge; ac_word=$2
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5099 $as_echo_n "checking for $ac_word... " >&6; }
5100 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
5101 $as_echo_n "(cached) " >&6
5105 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5108 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5109 for ac_dir in $PATH; do
5111 test -z "$ac_dir" && ac_dir=.
5112 for ac_exec_ext in '' $ac_executable_extensions; do
5113 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5114 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5115 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5116 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5123 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5127 MSGMERGE="$ac_cv_path_MSGMERGE"
5128 if test "$MSGMERGE" != ":"; then
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5130 $as_echo "$MSGMERGE" >&6; }
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5133 $as_echo "no" >&6; }
5137 test -n "$localedir" || localedir='${datadir}/locale'
5140 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5143 ac_config_commands="$ac_config_commands po-directories"
5147 if test "X$prefix" = "XNONE"; then
5148 acl_final_prefix="$ac_default_prefix"
5150 acl_final_prefix="$prefix"
5152 if test "X$exec_prefix" = "XNONE"; then
5153 acl_final_exec_prefix='${prefix}'
5155 acl_final_exec_prefix="$exec_prefix"
5157 acl_save_prefix="$prefix"
5158 prefix="$acl_final_prefix"
5159 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5160 prefix="$acl_save_prefix"
5163 @%:@ Check whether --with-gnu-ld was given.
5164 if test "${with_gnu_ld+set}" = set; then :
5165 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5170 # Prepare PATH_SEPARATOR.
5171 # The user is always right.
5172 if test "${PATH_SEPARATOR+set}" != set; then
5173 echo "#! /bin/sh" >conf$$.sh
5174 echo "exit 0" >>conf$$.sh
5176 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5184 if test "$GCC" = yes; then
5185 # Check if gcc -print-prog-name=ld gives a path.
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5187 $as_echo_n "checking for ld used by GCC... " >&6; }
5190 # gcc leaves a trailing carriage return which upsets mingw
5191 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5193 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5196 # Accept absolute paths.
5197 [\\/]* | [A-Za-z]:[\\/]*)
5198 re_direlt='/[^/][^/]*/\.\./'
5199 # Canonicalize the path of ld
5200 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5201 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5202 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5204 test -z "$LD" && LD="$ac_prog"
5207 # If it fails, then pretend we aren't using GCC.
5211 # If it is relative, then search for the first ld in PATH.
5215 elif test "$with_gnu_ld" = yes; then
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5217 $as_echo_n "checking for GNU ld... " >&6; }
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5220 $as_echo_n "checking for non-GNU ld... " >&6; }
5222 if test "${acl_cv_path_LD+set}" = set; then :
5223 $as_echo_n "(cached) " >&6
5225 if test -z "$LD"; then
5226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5227 for ac_dir in $PATH; do
5228 test -z "$ac_dir" && ac_dir=.
5229 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5230 acl_cv_path_LD="$ac_dir/$ac_prog"
5231 # Check to see if the program is GNU ld. I'd rather use --version,
5232 # but apparently some GNU ld's only accept -v.
5233 # Break only if it was the GNU/non-GNU ld that we prefer.
5234 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5235 *GNU* | *'with BFD'*)
5236 test "$with_gnu_ld" != no && break ;;
5238 test "$with_gnu_ld" != yes && break ;;
5244 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5248 LD="$acl_cv_path_LD"
5249 if test -n "$LD"; then
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5251 $as_echo "$LD" >&6; }
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 $as_echo "no" >&6; }
5256 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5258 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5259 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5260 $as_echo_n "(cached) " >&6
5262 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5263 case `$LD -v 2>&1 </dev/null` in
5264 *GNU* | *'with BFD'*)
5265 acl_cv_prog_gnu_ld=yes ;;
5267 acl_cv_prog_gnu_ld=no ;;
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5271 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5272 with_gnu_ld=$acl_cv_prog_gnu_ld
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5278 $as_echo_n "checking for shared library run path origin... " >&6; }
5279 if test "${acl_cv_rpath+set}" = set; then :
5280 $as_echo_n "(cached) " >&6
5283 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5284 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5291 $as_echo "$acl_cv_rpath" >&6; }
5293 acl_libext="$acl_cv_libext"
5294 acl_shlibext="$acl_cv_shlibext"
5295 acl_libname_spec="$acl_cv_libname_spec"
5296 acl_library_names_spec="$acl_cv_library_names_spec"
5297 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5298 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5299 acl_hardcode_direct="$acl_cv_hardcode_direct"
5300 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5301 @%:@ Check whether --enable-rpath was given.
5302 if test "${enable_rpath+set}" = set; then :
5303 enableval=$enable_rpath; :
5311 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5312 if test -n "$searchpath"; then
5313 acl_save_IFS="${IFS= }"; IFS=":"
5314 for searchdir in $searchpath; do
5315 if test -d "$searchdir"; then
5316 case "$searchdir" in
5317 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5318 *) searchdir=`cd "$searchdir" && pwd`
5319 case "$searchdir" in
5320 */lib64 ) acl_libdirstem=lib64 ;;
5338 acl_save_prefix="$prefix"
5339 prefix="$acl_final_prefix"
5340 acl_save_exec_prefix="$exec_prefix"
5341 exec_prefix="$acl_final_exec_prefix"
5343 eval additional_includedir=\"$includedir\"
5344 eval additional_libdir=\"$libdir\"
5346 exec_prefix="$acl_save_exec_prefix"
5347 prefix="$acl_save_prefix"
5350 @%:@ Check whether --with-libiconv-prefix was given.
5351 if test "${with_libiconv_prefix+set}" = set; then :
5352 withval=$with_libiconv_prefix;
5353 if test "X$withval" = "Xno"; then
5356 if test "X$withval" = "X"; then
5358 acl_save_prefix="$prefix"
5359 prefix="$acl_final_prefix"
5360 acl_save_exec_prefix="$exec_prefix"
5361 exec_prefix="$acl_final_exec_prefix"
5363 eval additional_includedir=\"$includedir\"
5364 eval additional_libdir=\"$libdir\"
5366 exec_prefix="$acl_save_exec_prefix"
5367 prefix="$acl_save_prefix"
5370 additional_includedir="$withval/include"
5371 additional_libdir="$withval/$acl_libdirstem"
5383 names_already_handled=
5384 names_next_round='iconv '
5385 while test -n "$names_next_round"; do
5386 names_this_round="$names_next_round"
5388 for name in $names_this_round; do
5390 for n in $names_already_handled; do
5391 if test "$n" = "$name"; then
5396 if test -z "$already_handled"; then
5397 names_already_handled="$names_already_handled $name"
5398 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5399 eval value=\"\$HAVE_LIB$uppername\"
5400 if test -n "$value"; then
5401 if test "$value" = yes; then
5402 eval value=\"\$LIB$uppername\"
5403 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5404 eval value=\"\$LTLIB$uppername\"
5405 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5414 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5415 if test -n "$acl_shlibext"; then
5416 shrext=".$acl_shlibext" # typically: shrext=.so
5420 if test $use_additional = yes; then
5421 dir="$additional_libdir"
5422 if test -n "$acl_shlibext"; then
5423 if test -f "$dir/$libname$shrext"; then
5425 found_so="$dir/$libname$shrext"
5427 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5428 ver=`(cd "$dir" && \
5429 for f in "$libname$shrext".*; do echo "$f"; done \
5430 | sed -e "s,^$libname$shrext\\\\.,," \
5431 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5432 | sed 1q ) 2>/dev/null`
5433 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5435 found_so="$dir/$libname$shrext.$ver"
5438 eval library_names=\"$acl_library_names_spec\"
5439 for f in $library_names; do
5440 if test -f "$dir/$f"; then
5449 if test "X$found_dir" = "X"; then
5450 if test -f "$dir/$libname.$acl_libext"; then
5452 found_a="$dir/$libname.$acl_libext"
5455 if test "X$found_dir" != "X"; then
5456 if test -f "$dir/$libname.la"; then
5457 found_la="$dir/$libname.la"
5461 if test "X$found_dir" = "X"; then
5462 for x in $LDFLAGS $LTLIBICONV; do
5464 acl_save_prefix="$prefix"
5465 prefix="$acl_final_prefix"
5466 acl_save_exec_prefix="$exec_prefix"
5467 exec_prefix="$acl_final_exec_prefix"
5469 exec_prefix="$acl_save_exec_prefix"
5470 prefix="$acl_save_prefix"
5474 dir=`echo "X$x" | sed -e 's/^X-L//'`
5475 if test -n "$acl_shlibext"; then
5476 if test -f "$dir/$libname$shrext"; then
5478 found_so="$dir/$libname$shrext"
5480 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5481 ver=`(cd "$dir" && \
5482 for f in "$libname$shrext".*; do echo "$f"; done \
5483 | sed -e "s,^$libname$shrext\\\\.,," \
5484 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5485 | sed 1q ) 2>/dev/null`
5486 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5488 found_so="$dir/$libname$shrext.$ver"
5491 eval library_names=\"$acl_library_names_spec\"
5492 for f in $library_names; do
5493 if test -f "$dir/$f"; then
5502 if test "X$found_dir" = "X"; then
5503 if test -f "$dir/$libname.$acl_libext"; then
5505 found_a="$dir/$libname.$acl_libext"
5508 if test "X$found_dir" != "X"; then
5509 if test -f "$dir/$libname.la"; then
5510 found_la="$dir/$libname.la"
5515 if test "X$found_dir" != "X"; then
5520 if test "X$found_dir" != "X"; then
5521 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5522 if test "X$found_so" != "X"; then
5523 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
5524 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5527 for x in $ltrpathdirs; do
5528 if test "X$x" = "X$found_dir"; then
5533 if test -z "$haveit"; then
5534 ltrpathdirs="$ltrpathdirs $found_dir"
5536 if test "$acl_hardcode_direct" = yes; then
5537 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5539 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5540 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5542 for x in $rpathdirs; do
5543 if test "X$x" = "X$found_dir"; then
5548 if test -z "$haveit"; then
5549 rpathdirs="$rpathdirs $found_dir"
5553 for x in $LDFLAGS $LIBICONV; do
5555 acl_save_prefix="$prefix"
5556 prefix="$acl_final_prefix"
5557 acl_save_exec_prefix="$exec_prefix"
5558 exec_prefix="$acl_final_exec_prefix"
5560 exec_prefix="$acl_save_exec_prefix"
5561 prefix="$acl_save_prefix"
5563 if test "X$x" = "X-L$found_dir"; then
5568 if test -z "$haveit"; then
5569 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5571 if test "$acl_hardcode_minus_L" != no; then
5572 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5574 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5580 if test "X$found_a" != "X"; then
5581 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5583 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5586 additional_includedir=
5587 case "$found_dir" in
5588 */$acl_libdirstem | */$acl_libdirstem/)
5589 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5590 LIBICONV_PREFIX="$basedir"
5591 additional_includedir="$basedir/include"
5594 if test "X$additional_includedir" != "X"; then
5595 if test "X$additional_includedir" != "X/usr/include"; then
5597 if test "X$additional_includedir" = "X/usr/local/include"; then
5598 if test -n "$GCC"; then
5600 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5604 if test -z "$haveit"; then
5605 for x in $CPPFLAGS $INCICONV; do
5607 acl_save_prefix="$prefix"
5608 prefix="$acl_final_prefix"
5609 acl_save_exec_prefix="$exec_prefix"
5610 exec_prefix="$acl_final_exec_prefix"
5612 exec_prefix="$acl_save_exec_prefix"
5613 prefix="$acl_save_prefix"
5615 if test "X$x" = "X-I$additional_includedir"; then
5620 if test -z "$haveit"; then
5621 if test -d "$additional_includedir"; then
5622 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5628 if test -n "$found_la"; then
5629 save_libdir="$libdir"
5631 */* | *\\*) . "$found_la" ;;
5632 *) . "./$found_la" ;;
5634 libdir="$save_libdir"
5635 for dep in $dependency_libs; do
5638 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5639 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
5641 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
5642 if test -n "$GCC"; then
5644 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5648 if test -z "$haveit"; then
5650 for x in $LDFLAGS $LIBICONV; do
5652 acl_save_prefix="$prefix"
5653 prefix="$acl_final_prefix"
5654 acl_save_exec_prefix="$exec_prefix"
5655 exec_prefix="$acl_final_exec_prefix"
5657 exec_prefix="$acl_save_exec_prefix"
5658 prefix="$acl_save_prefix"
5660 if test "X$x" = "X-L$additional_libdir"; then
5665 if test -z "$haveit"; then
5666 if test -d "$additional_libdir"; then
5667 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5671 for x in $LDFLAGS $LTLIBICONV; do
5673 acl_save_prefix="$prefix"
5674 prefix="$acl_final_prefix"
5675 acl_save_exec_prefix="$exec_prefix"
5676 exec_prefix="$acl_final_exec_prefix"
5678 exec_prefix="$acl_save_exec_prefix"
5679 prefix="$acl_save_prefix"
5681 if test "X$x" = "X-L$additional_libdir"; then
5686 if test -z "$haveit"; then
5687 if test -d "$additional_libdir"; then
5688 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5695 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5696 if test "$enable_rpath" != no; then
5698 for x in $rpathdirs; do
5699 if test "X$x" = "X$dir"; then
5704 if test -z "$haveit"; then
5705 rpathdirs="$rpathdirs $dir"
5708 for x in $ltrpathdirs; do
5709 if test "X$x" = "X$dir"; then
5714 if test -z "$haveit"; then
5715 ltrpathdirs="$ltrpathdirs $dir"
5720 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5723 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5726 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5727 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5733 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5734 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5740 if test "X$rpathdirs" != "X"; then
5741 if test -n "$acl_hardcode_libdir_separator"; then
5743 for found_dir in $rpathdirs; do
5744 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5746 acl_save_libdir="$libdir"
5748 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5749 libdir="$acl_save_libdir"
5750 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5752 for found_dir in $rpathdirs; do
5753 acl_save_libdir="$libdir"
5755 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5756 libdir="$acl_save_libdir"
5757 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5761 if test "X$ltrpathdirs" != "X"; then
5762 for found_dir in $ltrpathdirs; do
5763 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5792 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5793 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
5794 $as_echo_n "(cached) " >&6
5796 gt_save_LIBS="$LIBS"
5797 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799 /* end confdefs.h. */
5800 #include <CoreFoundation/CFPreferences.h>
5804 CFPreferencesCopyAppValue(NULL, NULL)
5809 if ac_fn_c_try_link "$LINENO"; then :
5810 gt_cv_func_CFPreferencesCopyAppValue=yes
5812 gt_cv_func_CFPreferencesCopyAppValue=no
5814 rm -f core conftest.err conftest.$ac_objext \
5815 conftest$ac_exeext conftest.$ac_ext
5816 LIBS="$gt_save_LIBS"
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5819 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5820 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5822 $as_echo "@%:@define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5826 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5827 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
5828 $as_echo_n "(cached) " >&6
5830 gt_save_LIBS="$LIBS"
5831 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h. */
5834 #include <CoreFoundation/CFLocale.h>
5838 CFLocaleCopyCurrent();
5843 if ac_fn_c_try_link "$LINENO"; then :
5844 gt_cv_func_CFLocaleCopyCurrent=yes
5846 gt_cv_func_CFLocaleCopyCurrent=no
5848 rm -f core conftest.err conftest.$ac_objext \
5849 conftest$ac_exeext conftest.$ac_ext
5850 LIBS="$gt_save_LIBS"
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5853 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5854 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5856 $as_echo "@%:@define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
5860 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5861 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5873 case " $gt_needs " in
5874 *" need-formatstring-macros "*) gt_api_version=3 ;;
5875 *" need-ngettext "*) gt_api_version=2 ;;
5876 *) gt_api_version=1 ;;
5878 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
5879 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
5881 if test "$USE_NLS" = "yes"; then
5882 gt_use_preinstalled_gnugettext=no
5885 if test $gt_api_version -ge 3; then
5886 gt_revision_test_code='
5887 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
5888 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
5890 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
5893 gt_revision_test_code=
5895 if test $gt_api_version -ge 2; then
5896 gt_expression_test_code=' + * ngettext ("", "", 0)'
5898 gt_expression_test_code=
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5902 $as_echo_n "checking for GNU gettext in libc... " >&6; }
5903 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
5904 $as_echo_n "(cached) " >&6
5906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907 /* end confdefs.h. */
5908 #include <libintl.h>
5909 $gt_revision_test_code
5910 extern int _nl_msg_cat_cntr;
5911 extern int *_nl_domain_bindings;
5915 bindtextdomain ("", "");
5916 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
5921 if ac_fn_c_try_link "$LINENO"; then :
5922 eval "$gt_func_gnugettext_libc=yes"
5924 eval "$gt_func_gnugettext_libc=no"
5926 rm -f core conftest.err conftest.$ac_objext \
5927 conftest$ac_exeext conftest.$ac_ext
5929 eval ac_res=\$$gt_func_gnugettext_libc
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5931 $as_echo "$ac_res" >&6; }
5933 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
5939 am_save_CPPFLAGS="$CPPFLAGS"
5941 for element in $INCICONV; do
5943 for x in $CPPFLAGS; do
5945 acl_save_prefix="$prefix"
5946 prefix="$acl_final_prefix"
5947 acl_save_exec_prefix="$exec_prefix"
5948 exec_prefix="$acl_final_exec_prefix"
5950 exec_prefix="$acl_save_exec_prefix"
5951 prefix="$acl_save_prefix"
5953 if test "X$x" = "X$element"; then
5958 if test -z "$haveit"; then
5959 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5965 $as_echo_n "checking for iconv... " >&6; }
5966 if test "${am_cv_func_iconv+set}" = set; then :
5967 $as_echo_n "(cached) " >&6
5970 am_cv_func_iconv="no, consider installing GNU libiconv"
5972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5973 /* end confdefs.h. */
5979 iconv_t cd = iconv_open("","");
5980 iconv(cd,NULL,NULL,NULL,NULL);
5986 if ac_fn_c_try_link "$LINENO"; then :
5987 am_cv_func_iconv=yes
5989 rm -f core conftest.err conftest.$ac_objext \
5990 conftest$ac_exeext conftest.$ac_ext
5991 if test "$am_cv_func_iconv" != yes; then
5992 am_save_LIBS="$LIBS"
5993 LIBS="$LIBS $LIBICONV"
5994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5995 /* end confdefs.h. */
6001 iconv_t cd = iconv_open("","");
6002 iconv(cd,NULL,NULL,NULL,NULL);
6008 if ac_fn_c_try_link "$LINENO"; then :
6010 am_cv_func_iconv=yes
6012 rm -f core conftest.err conftest.$ac_objext \
6013 conftest$ac_exeext conftest.$ac_ext
6014 LIBS="$am_save_LIBS"
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6019 $as_echo "$am_cv_func_iconv" >&6; }
6020 if test "$am_cv_func_iconv" = yes; then
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6022 $as_echo_n "checking for working iconv... " >&6; }
6023 if test "${am_cv_func_iconv_works+set}" = set; then :
6024 $as_echo_n "(cached) " >&6
6027 am_save_LIBS="$LIBS"
6028 if test $am_cv_lib_iconv = yes; then
6029 LIBS="$LIBS $LIBICONV"
6031 if test "$cross_compiling" = yes; then :
6033 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6034 *) am_cv_func_iconv_works="guessing yes" ;;
6037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038 /* end confdefs.h. */
6044 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6047 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6048 if (cd_utf8_to_88591 != (iconv_t)(-1))
6050 static const char input[] = "\342\202\254"; /* EURO SIGN */
6052 const char *inptr = input;
6053 size_t inbytesleft = strlen (input);
6055 size_t outbytesleft = sizeof (buf);
6056 size_t res = iconv (cd_utf8_to_88591,
6057 (char **) &inptr, &inbytesleft,
6058 &outptr, &outbytesleft);
6063 #if 0 /* This bug could be worked around by the caller. */
6064 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
6066 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6067 if (cd_88591_to_utf8 != (iconv_t)(-1))
6069 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6071 const char *inptr = input;
6072 size_t inbytesleft = strlen (input);
6074 size_t outbytesleft = sizeof (buf);
6075 size_t res = iconv (cd_88591_to_utf8,
6076 (char **) &inptr, &inbytesleft,
6077 &outptr, &outbytesleft);
6083 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6085 if (/* Try standardized names. */
6086 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6087 /* Try IRIX, OSF/1 names. */
6088 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6089 /* Try AIX names. */
6090 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6091 /* Try HP-UX names. */
6092 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6097 if ac_fn_c_try_run "$LINENO"; then :
6098 am_cv_func_iconv_works=yes
6100 am_cv_func_iconv_works=no
6102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6103 conftest.$ac_objext conftest.beam conftest.$ac_ext
6106 LIBS="$am_save_LIBS"
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6110 $as_echo "$am_cv_func_iconv_works" >&6; }
6111 case "$am_cv_func_iconv_works" in
6112 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6113 *) am_func_iconv=yes ;;
6116 am_func_iconv=no am_cv_lib_iconv=no
6118 if test "$am_func_iconv" = yes; then
6120 $as_echo "@%:@define HAVE_ICONV 1" >>confdefs.h
6123 if test "$am_cv_lib_iconv" = yes; then
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6125 $as_echo_n "checking how to link with libiconv... " >&6; }
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6127 $as_echo "$LIBICONV" >&6; }
6129 CPPFLAGS="$am_save_CPPFLAGS"
6143 acl_save_prefix="$prefix"
6144 prefix="$acl_final_prefix"
6145 acl_save_exec_prefix="$exec_prefix"
6146 exec_prefix="$acl_final_exec_prefix"
6148 eval additional_includedir=\"$includedir\"
6149 eval additional_libdir=\"$libdir\"
6151 exec_prefix="$acl_save_exec_prefix"
6152 prefix="$acl_save_prefix"
6155 @%:@ Check whether --with-libintl-prefix was given.
6156 if test "${with_libintl_prefix+set}" = set; then :
6157 withval=$with_libintl_prefix;
6158 if test "X$withval" = "Xno"; then
6161 if test "X$withval" = "X"; then
6163 acl_save_prefix="$prefix"
6164 prefix="$acl_final_prefix"
6165 acl_save_exec_prefix="$exec_prefix"
6166 exec_prefix="$acl_final_exec_prefix"
6168 eval additional_includedir=\"$includedir\"
6169 eval additional_libdir=\"$libdir\"
6171 exec_prefix="$acl_save_exec_prefix"
6172 prefix="$acl_save_prefix"
6175 additional_includedir="$withval/include"
6176 additional_libdir="$withval/$acl_libdirstem"
6188 names_already_handled=
6189 names_next_round='intl '
6190 while test -n "$names_next_round"; do
6191 names_this_round="$names_next_round"
6193 for name in $names_this_round; do
6195 for n in $names_already_handled; do
6196 if test "$n" = "$name"; then
6201 if test -z "$already_handled"; then
6202 names_already_handled="$names_already_handled $name"
6203 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6204 eval value=\"\$HAVE_LIB$uppername\"
6205 if test -n "$value"; then
6206 if test "$value" = yes; then
6207 eval value=\"\$LIB$uppername\"
6208 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6209 eval value=\"\$LTLIB$uppername\"
6210 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6219 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6220 if test -n "$acl_shlibext"; then
6221 shrext=".$acl_shlibext" # typically: shrext=.so
6225 if test $use_additional = yes; then
6226 dir="$additional_libdir"
6227 if test -n "$acl_shlibext"; then
6228 if test -f "$dir/$libname$shrext"; then
6230 found_so="$dir/$libname$shrext"
6232 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6233 ver=`(cd "$dir" && \
6234 for f in "$libname$shrext".*; do echo "$f"; done \
6235 | sed -e "s,^$libname$shrext\\\\.,," \
6236 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6237 | sed 1q ) 2>/dev/null`
6238 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6240 found_so="$dir/$libname$shrext.$ver"
6243 eval library_names=\"$acl_library_names_spec\"
6244 for f in $library_names; do
6245 if test -f "$dir/$f"; then
6254 if test "X$found_dir" = "X"; then
6255 if test -f "$dir/$libname.$acl_libext"; then
6257 found_a="$dir/$libname.$acl_libext"
6260 if test "X$found_dir" != "X"; then
6261 if test -f "$dir/$libname.la"; then
6262 found_la="$dir/$libname.la"
6266 if test "X$found_dir" = "X"; then
6267 for x in $LDFLAGS $LTLIBINTL; do
6269 acl_save_prefix="$prefix"
6270 prefix="$acl_final_prefix"
6271 acl_save_exec_prefix="$exec_prefix"
6272 exec_prefix="$acl_final_exec_prefix"
6274 exec_prefix="$acl_save_exec_prefix"
6275 prefix="$acl_save_prefix"
6279 dir=`echo "X$x" | sed -e 's/^X-L//'`
6280 if test -n "$acl_shlibext"; then
6281 if test -f "$dir/$libname$shrext"; then
6283 found_so="$dir/$libname$shrext"
6285 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6286 ver=`(cd "$dir" && \
6287 for f in "$libname$shrext".*; do echo "$f"; done \
6288 | sed -e "s,^$libname$shrext\\\\.,," \
6289 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6290 | sed 1q ) 2>/dev/null`
6291 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6293 found_so="$dir/$libname$shrext.$ver"
6296 eval library_names=\"$acl_library_names_spec\"
6297 for f in $library_names; do
6298 if test -f "$dir/$f"; then
6307 if test "X$found_dir" = "X"; then
6308 if test -f "$dir/$libname.$acl_libext"; then
6310 found_a="$dir/$libname.$acl_libext"
6313 if test "X$found_dir" != "X"; then
6314 if test -f "$dir/$libname.la"; then
6315 found_la="$dir/$libname.la"
6320 if test "X$found_dir" != "X"; then
6325 if test "X$found_dir" != "X"; then
6326 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6327 if test "X$found_so" != "X"; then
6328 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
6329 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6332 for x in $ltrpathdirs; do
6333 if test "X$x" = "X$found_dir"; then
6338 if test -z "$haveit"; then
6339 ltrpathdirs="$ltrpathdirs $found_dir"
6341 if test "$acl_hardcode_direct" = yes; then
6342 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6344 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6345 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6347 for x in $rpathdirs; do
6348 if test "X$x" = "X$found_dir"; then
6353 if test -z "$haveit"; then
6354 rpathdirs="$rpathdirs $found_dir"
6358 for x in $LDFLAGS $LIBINTL; do
6360 acl_save_prefix="$prefix"
6361 prefix="$acl_final_prefix"
6362 acl_save_exec_prefix="$exec_prefix"
6363 exec_prefix="$acl_final_exec_prefix"
6365 exec_prefix="$acl_save_exec_prefix"
6366 prefix="$acl_save_prefix"
6368 if test "X$x" = "X-L$found_dir"; then
6373 if test -z "$haveit"; then
6374 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6376 if test "$acl_hardcode_minus_L" != no; then
6377 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6379 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6385 if test "X$found_a" != "X"; then
6386 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6388 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6391 additional_includedir=
6392 case "$found_dir" in
6393 */$acl_libdirstem | */$acl_libdirstem/)
6394 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6395 LIBINTL_PREFIX="$basedir"
6396 additional_includedir="$basedir/include"
6399 if test "X$additional_includedir" != "X"; then
6400 if test "X$additional_includedir" != "X/usr/include"; then
6402 if test "X$additional_includedir" = "X/usr/local/include"; then
6403 if test -n "$GCC"; then
6405 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6409 if test -z "$haveit"; then
6410 for x in $CPPFLAGS $INCINTL; do
6412 acl_save_prefix="$prefix"
6413 prefix="$acl_final_prefix"
6414 acl_save_exec_prefix="$exec_prefix"
6415 exec_prefix="$acl_final_exec_prefix"
6417 exec_prefix="$acl_save_exec_prefix"
6418 prefix="$acl_save_prefix"
6420 if test "X$x" = "X-I$additional_includedir"; then
6425 if test -z "$haveit"; then
6426 if test -d "$additional_includedir"; then
6427 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6433 if test -n "$found_la"; then
6434 save_libdir="$libdir"
6436 */* | *\\*) . "$found_la" ;;
6437 *) . "./$found_la" ;;
6439 libdir="$save_libdir"
6440 for dep in $dependency_libs; do
6443 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6444 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
6446 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
6447 if test -n "$GCC"; then
6449 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6453 if test -z "$haveit"; then
6455 for x in $LDFLAGS $LIBINTL; do
6457 acl_save_prefix="$prefix"
6458 prefix="$acl_final_prefix"
6459 acl_save_exec_prefix="$exec_prefix"
6460 exec_prefix="$acl_final_exec_prefix"
6462 exec_prefix="$acl_save_exec_prefix"
6463 prefix="$acl_save_prefix"
6465 if test "X$x" = "X-L$additional_libdir"; then
6470 if test -z "$haveit"; then
6471 if test -d "$additional_libdir"; then
6472 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6476 for x in $LDFLAGS $LTLIBINTL; do
6478 acl_save_prefix="$prefix"
6479 prefix="$acl_final_prefix"
6480 acl_save_exec_prefix="$exec_prefix"
6481 exec_prefix="$acl_final_exec_prefix"
6483 exec_prefix="$acl_save_exec_prefix"
6484 prefix="$acl_save_prefix"
6486 if test "X$x" = "X-L$additional_libdir"; then
6491 if test -z "$haveit"; then
6492 if test -d "$additional_libdir"; then
6493 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6500 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6501 if test "$enable_rpath" != no; then
6503 for x in $rpathdirs; do
6504 if test "X$x" = "X$dir"; then
6509 if test -z "$haveit"; then
6510 rpathdirs="$rpathdirs $dir"
6513 for x in $ltrpathdirs; do
6514 if test "X$x" = "X$dir"; then
6519 if test -z "$haveit"; then
6520 ltrpathdirs="$ltrpathdirs $dir"
6525 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6528 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6531 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6532 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6538 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6539 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6545 if test "X$rpathdirs" != "X"; then
6546 if test -n "$acl_hardcode_libdir_separator"; then
6548 for found_dir in $rpathdirs; do
6549 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6551 acl_save_libdir="$libdir"
6553 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6554 libdir="$acl_save_libdir"
6555 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6557 for found_dir in $rpathdirs; do
6558 acl_save_libdir="$libdir"
6560 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6561 libdir="$acl_save_libdir"
6562 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6566 if test "X$ltrpathdirs" != "X"; then
6567 for found_dir in $ltrpathdirs; do
6568 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6573 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6574 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
6575 $as_echo_n "(cached) " >&6
6577 gt_save_CPPFLAGS="$CPPFLAGS"
6578 CPPFLAGS="$CPPFLAGS $INCINTL"
6579 gt_save_LIBS="$LIBS"
6580 LIBS="$LIBS $LIBINTL"
6581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582 /* end confdefs.h. */
6583 #include <libintl.h>
6584 $gt_revision_test_code
6585 extern int _nl_msg_cat_cntr;
6590 const char *_nl_expand_alias (const char *);
6594 bindtextdomain ("", "");
6595 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6600 if ac_fn_c_try_link "$LINENO"; then :
6601 eval "$gt_func_gnugettext_libintl=yes"
6603 eval "$gt_func_gnugettext_libintl=no"
6605 rm -f core conftest.err conftest.$ac_objext \
6606 conftest$ac_exeext conftest.$ac_ext
6607 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6608 LIBS="$LIBS $LIBICONV"
6609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6610 /* end confdefs.h. */
6611 #include <libintl.h>
6612 $gt_revision_test_code
6613 extern int _nl_msg_cat_cntr;
6618 const char *_nl_expand_alias (const char *);
6622 bindtextdomain ("", "");
6623 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6628 if ac_fn_c_try_link "$LINENO"; then :
6629 LIBINTL="$LIBINTL $LIBICONV"
6630 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6631 eval "$gt_func_gnugettext_libintl=yes"
6634 rm -f core conftest.err conftest.$ac_objext \
6635 conftest$ac_exeext conftest.$ac_ext
6637 CPPFLAGS="$gt_save_CPPFLAGS"
6638 LIBS="$gt_save_LIBS"
6640 eval ac_res=\$$gt_func_gnugettext_libintl
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6642 $as_echo "$ac_res" >&6; }
6645 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6646 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6647 && test "$PACKAGE" != gettext-runtime \
6648 && test "$PACKAGE" != gettext-tools; }; then
6649 gt_use_preinstalled_gnugettext=yes
6658 if test -n "$INTL_MACOSX_LIBS"; then
6659 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6660 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6661 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6662 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6666 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6667 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6669 $as_echo "@%:@define ENABLE_NLS 1" >>confdefs.h
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6677 $as_echo_n "checking whether to use NLS... " >&6; }
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6679 $as_echo "$USE_NLS" >&6; }
6680 if test "$USE_NLS" = "yes"; then
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6682 $as_echo_n "checking where the gettext function comes from... " >&6; }
6683 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6684 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6685 gt_source="external libintl"
6690 gt_source="included intl directory"
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6693 $as_echo "$gt_source" >&6; }
6696 if test "$USE_NLS" = "yes"; then
6698 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6699 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6701 $as_echo_n "checking how to link with libintl... " >&6; }
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6703 $as_echo "$LIBINTL" >&6; }
6705 for element in $INCINTL; do
6707 for x in $CPPFLAGS; do
6709 acl_save_prefix="$prefix"
6710 prefix="$acl_final_prefix"
6711 acl_save_exec_prefix="$exec_prefix"
6712 exec_prefix="$acl_final_exec_prefix"
6714 exec_prefix="$acl_save_exec_prefix"
6715 prefix="$acl_save_prefix"
6717 if test "X$x" = "X$element"; then
6722 if test -z "$haveit"; then
6723 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6730 $as_echo "@%:@define HAVE_GETTEXT 1" >>confdefs.h
6733 $as_echo "@%:@define HAVE_DCGETTEXT 1" >>confdefs.h
6749 @%:@ Check whether --enable-largefile was given.
6750 if test "${enable_largefile+set}" = set; then :
6751 enableval=$enable_largefile;
6754 if test "$enable_largefile" != no; then
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6757 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6758 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6759 $as_echo_n "(cached) " >&6
6761 ac_cv_sys_largefile_CC=no
6762 if test "$GCC" != yes; then
6765 # IRIX 6.2 and later do not support large files by default,
6766 # so use the C compiler's -n32 option if that helps.
6767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6768 /* end confdefs.h. */
6769 @%:@include <sys/types.h>
6770 /* Check that off_t can represent 2**63 - 1 correctly.
6771 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6772 since some C++ compilers masquerading as C compilers
6773 incorrectly reject 9223372036854775807. */
6774 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6775 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6776 && LARGE_OFF_T % 2147483647 == 1)
6786 if ac_fn_c_try_compile "$LINENO"; then :
6789 rm -f core conftest.err conftest.$ac_objext
6791 if ac_fn_c_try_compile "$LINENO"; then :
6792 ac_cv_sys_largefile_CC=' -n32'; break
6794 rm -f core conftest.err conftest.$ac_objext
6798 rm -f conftest.$ac_ext
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6802 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6803 if test "$ac_cv_sys_largefile_CC" != no; then
6804 CC=$CC$ac_cv_sys_largefile_CC
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6808 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6809 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6810 $as_echo_n "(cached) " >&6
6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814 /* end confdefs.h. */
6815 @%:@include <sys/types.h>
6816 /* Check that off_t can represent 2**63 - 1 correctly.
6817 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6818 since some C++ compilers masquerading as C compilers
6819 incorrectly reject 9223372036854775807. */
6820 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6821 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6822 && LARGE_OFF_T % 2147483647 == 1)
6832 if ac_fn_c_try_compile "$LINENO"; then :
6833 ac_cv_sys_file_offset_bits=no; break
6835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837 /* end confdefs.h. */
6838 @%:@define _FILE_OFFSET_BITS 64
6839 @%:@include <sys/types.h>
6840 /* Check that off_t can represent 2**63 - 1 correctly.
6841 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6842 since some C++ compilers masquerading as C compilers
6843 incorrectly reject 9223372036854775807. */
6844 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6845 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6846 && LARGE_OFF_T % 2147483647 == 1)
6856 if ac_fn_c_try_compile "$LINENO"; then :
6857 ac_cv_sys_file_offset_bits=64; break
6859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6860 ac_cv_sys_file_offset_bits=unknown
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6865 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6866 case $ac_cv_sys_file_offset_bits in #(
6869 cat >>confdefs.h <<_ACEOF
6870 @%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6875 if test $ac_cv_sys_file_offset_bits = unknown; then
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6877 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6878 if test "${ac_cv_sys_large_files+set}" = set; then :
6879 $as_echo_n "(cached) " >&6
6882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6883 /* end confdefs.h. */
6884 @%:@include <sys/types.h>
6885 /* Check that off_t can represent 2**63 - 1 correctly.
6886 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6887 since some C++ compilers masquerading as C compilers
6888 incorrectly reject 9223372036854775807. */
6889 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6890 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6891 && LARGE_OFF_T % 2147483647 == 1)
6901 if ac_fn_c_try_compile "$LINENO"; then :
6902 ac_cv_sys_large_files=no; break
6904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6906 /* end confdefs.h. */
6907 @%:@define _LARGE_FILES 1
6908 @%:@include <sys/types.h>
6909 /* Check that off_t can represent 2**63 - 1 correctly.
6910 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6911 since some C++ compilers masquerading as C compilers
6912 incorrectly reject 9223372036854775807. */
6913 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6914 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6915 && LARGE_OFF_T % 2147483647 == 1)
6925 if ac_fn_c_try_compile "$LINENO"; then :
6926 ac_cv_sys_large_files=1; break
6928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6929 ac_cv_sys_large_files=unknown
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6934 $as_echo "$ac_cv_sys_large_files" >&6; }
6935 case $ac_cv_sys_large_files in #(
6938 cat >>confdefs.h <<_ACEOF
6939 @%:@define _LARGE_FILES $ac_cv_sys_large_files
6948 # Identify characteristics of the host architecture.
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6950 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6951 if test "${ac_cv_c_bigendian+set}" = set; then :
6952 $as_echo_n "(cached) " >&6
6954 ac_cv_c_bigendian=unknown
6955 # See if we're dealing with a universal compiler.
6956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957 /* end confdefs.h. */
6958 #ifndef __APPLE_CC__
6959 not a universal capable compiler
6964 if ac_fn_c_try_compile "$LINENO"; then :
6966 # Check for potential -arch flags. It is not universal unless
6967 # there are at least two -arch flags with different values.
6970 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6971 if test -n "$ac_prev"; then
6973 i?86 | x86_64 | ppc | ppc64)
6974 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6977 ac_cv_c_bigendian=universal
6983 elif test "x$ac_word" = "x-arch"; then
6988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6989 if test $ac_cv_c_bigendian = unknown; then
6990 # See if sys/param.h defines the BYTE_ORDER macro.
6991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992 /* end confdefs.h. */
6993 #include <sys/types.h>
6994 #include <sys/param.h>
6999 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7000 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7009 if ac_fn_c_try_compile "$LINENO"; then :
7010 # It does; now see whether it defined to BIG_ENDIAN or not.
7011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7012 /* end confdefs.h. */
7013 #include <sys/types.h>
7014 #include <sys/param.h>
7019 #if BYTE_ORDER != BIG_ENDIAN
7027 if ac_fn_c_try_compile "$LINENO"; then :
7028 ac_cv_c_bigendian=yes
7030 ac_cv_c_bigendian=no
7032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7036 if test $ac_cv_c_bigendian = unknown; then
7037 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039 /* end confdefs.h. */
7045 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7053 if ac_fn_c_try_compile "$LINENO"; then :
7054 # It does; now see whether it defined to _BIG_ENDIAN or not.
7055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7056 /* end confdefs.h. */
7070 if ac_fn_c_try_compile "$LINENO"; then :
7071 ac_cv_c_bigendian=yes
7073 ac_cv_c_bigendian=no
7075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7079 if test $ac_cv_c_bigendian = unknown; then
7080 # Compile a test program.
7081 if test "$cross_compiling" = yes; then :
7082 # Try to guess by grepping values from an object file.
7083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7084 /* end confdefs.h. */
7085 short int ascii_mm[] =
7086 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7087 short int ascii_ii[] =
7088 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7089 int use_ascii (int i) {
7090 return ascii_mm[i] + ascii_ii[i];
7092 short int ebcdic_ii[] =
7093 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7094 short int ebcdic_mm[] =
7095 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7096 int use_ebcdic (int i) {
7097 return ebcdic_mm[i] + ebcdic_ii[i];
7104 return use_ascii (foo) == use_ebcdic (foo);
7109 if ac_fn_c_try_compile "$LINENO"; then :
7110 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7111 ac_cv_c_bigendian=yes
7113 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7114 if test "$ac_cv_c_bigendian" = unknown; then
7115 ac_cv_c_bigendian=no
7117 # finding both strings is unlikely to happen, but who knows?
7118 ac_cv_c_bigendian=unknown
7122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7125 /* end confdefs.h. */
7126 $ac_includes_default
7131 /* Are we little or big endian? From Harbison&Steele. */
7135 char c[sizeof (long int)];
7138 return u.c[sizeof (long int) - 1] == 1;
7144 if ac_fn_c_try_run "$LINENO"; then :
7145 ac_cv_c_bigendian=no
7147 ac_cv_c_bigendian=yes
7149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7150 conftest.$ac_objext conftest.beam conftest.$ac_ext
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7156 $as_echo "$ac_cv_c_bigendian" >&6; }
7157 case $ac_cv_c_bigendian in #(
7159 $as_echo "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h
7165 $as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7169 as_fn_error "unknown endianness
7170 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7173 # The cast to long int works around a bug in the HP C Compiler
7174 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7175 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7176 # This bug is HP SR number 8606223364.
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
7178 $as_echo_n "checking size of void *... " >&6; }
7179 if test "${ac_cv_sizeof_void_p+set}" = set; then :
7180 $as_echo_n "(cached) " >&6
7182 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
7185 if test "$ac_cv_type_void_p" = yes; then
7186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7188 { as_fn_set_status 77
7189 as_fn_error "cannot compute sizeof (void *)
7190 See \`config.log' for more details." "$LINENO" 5; }; }
7192 ac_cv_sizeof_void_p=0
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
7198 $as_echo "$ac_cv_sizeof_void_p" >&6; }
7202 cat >>confdefs.h <<_ACEOF
7203 @%:@define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7207 # The cast to long int works around a bug in the HP C Compiler
7208 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7209 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7210 # This bug is HP SR number 8606223364.
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7212 $as_echo_n "checking size of long... " >&6; }
7213 if test "${ac_cv_sizeof_long+set}" = set; then :
7214 $as_echo_n "(cached) " >&6
7216 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
7219 if test "$ac_cv_type_long" = yes; then
7220 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7222 { as_fn_set_status 77
7223 as_fn_error "cannot compute sizeof (long)
7224 See \`config.log' for more details." "$LINENO" 5; }; }
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
7232 $as_echo "$ac_cv_sizeof_long" >&6; }
7236 cat >>confdefs.h <<_ACEOF
7237 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler is apple cc" >&5
7244 $as_echo_n "checking whether our compiler is apple cc... " >&6; }
7245 if test "${grub_cv_apple_cc+set}" = set; then :
7246 $as_echo_n "(cached) " >&6
7248 if $CC -v 2>&1 | grep "Apple Inc." > /dev/null; then
7249 grub_cv_apple_cc=yes
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_apple_cc" >&5
7258 $as_echo "$grub_cv_apple_cc" >&6; }
7259 if test x$grub_cv_apple_cc = xyes ; then
7260 CFLAGS="$CFLAGS -DAPPLE_CC=1 -fnested-functions"
7261 ASFLAGS="$ASFLAGS -DAPPLE_CC=1"
7264 if test "x$cross_compiling" = xyes; then
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot generate manual pages while cross compiling" >&5
7266 $as_echo "$as_me: WARNING: cannot generate manual pages while cross compiling" >&2;}
7268 # Extract the first word of "help2man", so it can be a program name with args.
7269 set dummy help2man; ac_word=$2
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7271 $as_echo_n "checking for $ac_word... " >&6; }
7272 if test "${ac_cv_path_HELP2MAN+set}" = set; then :
7273 $as_echo_n "(cached) " >&6
7277 ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284 test -z "$as_dir" && as_dir=.
7285 for ac_exec_ext in '' $ac_executable_extensions; do
7286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7287 ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
7288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7298 HELP2MAN=$ac_cv_path_HELP2MAN
7299 if test -n "$HELP2MAN"; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
7301 $as_echo "$HELP2MAN" >&6; }
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304 $as_echo "no" >&6; }
7310 # Check for functions.
7311 for ac_func in posix_memalign memalign asprintf vasprintf
7313 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7314 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7315 eval as_val=\$$as_ac_var
7316 if test "x$as_val" = x""yes; then :
7317 cat >>confdefs.h <<_ACEOF
7318 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
7327 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
7328 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
7329 $as_echo_n "(cached) " >&6
7331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7332 /* end confdefs.h. */
7333 @%:@include <sys/types.h>
7337 return makedev(0, 0);
7342 if ac_fn_c_try_link "$LINENO"; then :
7343 ac_cv_header_sys_types_h_makedev=yes
7345 ac_cv_header_sys_types_h_makedev=no
7347 rm -f core conftest.err conftest.$ac_objext \
7348 conftest$ac_exeext conftest.$ac_ext
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
7352 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
7354 if test $ac_cv_header_sys_types_h_makedev = no; then
7355 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
7356 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
7358 $as_echo "@%:@define MAJOR_IN_MKDEV 1" >>confdefs.h
7364 if test $ac_cv_header_sys_mkdev_h = no; then
7365 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
7366 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
7368 $as_echo "@%:@define MAJOR_IN_SYSMACROS 1" >>confdefs.h
7377 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7378 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7380 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
7382 $as_echo_n "(cached) " >&6
7384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385 /* end confdefs.h. */
7386 #include <sys/types.h>
7398 if ac_fn_c_try_compile "$LINENO"; then :
7399 eval "$as_ac_Header=yes"
7401 eval "$as_ac_Header=no"
7403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7405 eval ac_res=\$$as_ac_Header
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7407 $as_echo "$ac_res" >&6; }
7408 eval as_val=\$$as_ac_Header
7409 if test "x$as_val" = x""yes; then :
7410 cat >>confdefs.h <<_ACEOF
7411 @%:@define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7414 ac_header_dirent=$ac_hdr; break
7418 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7419 if test $ac_header_dirent = dirent.h; then
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7421 $as_echo_n "checking for library containing opendir... " >&6; }
7422 if test "${ac_cv_search_opendir+set}" = set; then :
7423 $as_echo_n "(cached) " >&6
7425 ac_func_search_save_LIBS=$LIBS
7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h. */
7429 /* Override any GCC internal prototype to avoid an error.
7430 Use char because int might match the return type of a GCC
7431 builtin and then its argument prototype would still apply. */
7444 for ac_lib in '' dir; do
7445 if test -z "$ac_lib"; then
7446 ac_res="none required"
7449 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7451 if ac_fn_c_try_link "$LINENO"; then :
7452 ac_cv_search_opendir=$ac_res
7454 rm -f core conftest.err conftest.$ac_objext \
7456 if test "${ac_cv_search_opendir+set}" = set; then :
7460 if test "${ac_cv_search_opendir+set}" = set; then :
7463 ac_cv_search_opendir=no
7466 LIBS=$ac_func_search_save_LIBS
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7469 $as_echo "$ac_cv_search_opendir" >&6; }
7470 ac_res=$ac_cv_search_opendir
7471 if test "$ac_res" != no; then :
7472 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7478 $as_echo_n "checking for library containing opendir... " >&6; }
7479 if test "${ac_cv_search_opendir+set}" = set; then :
7480 $as_echo_n "(cached) " >&6
7482 ac_func_search_save_LIBS=$LIBS
7483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7484 /* end confdefs.h. */
7486 /* Override any GCC internal prototype to avoid an error.
7487 Use char because int might match the return type of a GCC
7488 builtin and then its argument prototype would still apply. */
7501 for ac_lib in '' x; do
7502 if test -z "$ac_lib"; then
7503 ac_res="none required"
7506 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7508 if ac_fn_c_try_link "$LINENO"; then :
7509 ac_cv_search_opendir=$ac_res
7511 rm -f core conftest.err conftest.$ac_objext \
7513 if test "${ac_cv_search_opendir+set}" = set; then :
7517 if test "${ac_cv_search_opendir+set}" = set; then :
7520 ac_cv_search_opendir=no
7523 LIBS=$ac_func_search_save_LIBS
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7526 $as_echo "$ac_cv_search_opendir" >&6; }
7527 ac_res=$ac_cv_search_opendir
7528 if test "$ac_res" != no; then :
7529 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7535 for ac_func in memmove sbrk strdup lstat getuid getgid
7537 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7538 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7539 eval as_val=\$$as_ac_var
7540 if test "x$as_val" = x""yes; then :
7541 cat >>confdefs.h <<_ACEOF
7542 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7548 for ac_header in sys/mkdev.h sys/sysmacros.h malloc.h termios.h sys/types.h
7550 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7551 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7552 eval as_val=\$$as_ac_Header
7553 if test "x$as_val" = x""yes; then :
7554 cat >>confdefs.h <<_ACEOF
7555 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7562 for ac_header in unistd.h string.h strings.h sys/stat.h sys/fcntl.h limits.h
7564 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7565 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7566 eval as_val=\$$as_ac_Header
7567 if test "x$as_val" = x""yes; then :
7568 cat >>confdefs.h <<_ACEOF
7569 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7578 # Check for target programs.
7581 # Find tools for the target.
7582 if test "x$target_alias" != x && test "x$host_alias" != "x$target_alias"; then
7583 tmp_ac_tool_prefix="$ac_tool_prefix"
7584 ac_tool_prefix=$target_alias-
7586 if test -n "$ac_tool_prefix"; then
7587 for ac_prog in gcc egcs cc
7589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7592 $as_echo_n "checking for $ac_word... " >&6; }
7593 if test "${ac_cv_prog_TARGET_CC+set}" = set; then :
7594 $as_echo_n "(cached) " >&6
7596 if test -n "$TARGET_CC"; then
7597 ac_cv_prog_TARGET_CC="$TARGET_CC" # Let the user override the test.
7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603 test -z "$as_dir" && as_dir=.
7604 for ac_exec_ext in '' $ac_executable_extensions; do
7605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7606 ac_cv_prog_TARGET_CC="$ac_tool_prefix$ac_prog"
7607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7616 TARGET_CC=$ac_cv_prog_TARGET_CC
7617 if test -n "$TARGET_CC"; then
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_CC" >&5
7619 $as_echo "$TARGET_CC" >&6; }
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622 $as_echo "no" >&6; }
7626 test -n "$TARGET_CC" && break
7629 if test -z "$TARGET_CC"; then
7630 ac_ct_TARGET_CC=$TARGET_CC
7631 for ac_prog in gcc egcs cc
7633 # Extract the first word of "$ac_prog", so it can be a program name with args.
7634 set dummy $ac_prog; ac_word=$2
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7636 $as_echo_n "checking for $ac_word... " >&6; }
7637 if test "${ac_cv_prog_ac_ct_TARGET_CC+set}" = set; then :
7638 $as_echo_n "(cached) " >&6
7640 if test -n "$ac_ct_TARGET_CC"; then
7641 ac_cv_prog_ac_ct_TARGET_CC="$ac_ct_TARGET_CC" # Let the user override the test.
7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 test -z "$as_dir" && as_dir=.
7648 for ac_exec_ext in '' $ac_executable_extensions; do
7649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7650 ac_cv_prog_ac_ct_TARGET_CC="$ac_prog"
7651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7660 ac_ct_TARGET_CC=$ac_cv_prog_ac_ct_TARGET_CC
7661 if test -n "$ac_ct_TARGET_CC"; then
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_CC" >&5
7663 $as_echo "$ac_ct_TARGET_CC" >&6; }
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7666 $as_echo "no" >&6; }
7670 test -n "$ac_ct_TARGET_CC" && break
7673 if test "x$ac_ct_TARGET_CC" = x; then
7674 TARGET_CC="as_fn_error "none of gcc, egcs and cc is found. set TARGET_CC manually." "$LINENO" 5"
7676 case $cross_compiling:$ac_tool_warned in
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7680 ac_tool_warned=yes ;;
7682 TARGET_CC=$ac_ct_TARGET_CC
7686 if test -n "$ac_tool_prefix"; then
7687 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
7688 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7690 $as_echo_n "checking for $ac_word... " >&6; }
7691 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
7692 $as_echo_n "(cached) " >&6
7694 if test -n "$OBJCOPY"; then
7695 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701 test -z "$as_dir" && as_dir=.
7702 for ac_exec_ext in '' $ac_executable_extensions; do
7703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7704 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
7705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7714 OBJCOPY=$ac_cv_prog_OBJCOPY
7715 if test -n "$OBJCOPY"; then
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
7717 $as_echo "$OBJCOPY" >&6; }
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7720 $as_echo "no" >&6; }
7725 if test -z "$ac_cv_prog_OBJCOPY"; then
7726 ac_ct_OBJCOPY=$OBJCOPY
7727 # Extract the first word of "objcopy", so it can be a program name with args.
7728 set dummy objcopy; ac_word=$2
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7730 $as_echo_n "checking for $ac_word... " >&6; }
7731 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
7732 $as_echo_n "(cached) " >&6
7734 if test -n "$ac_ct_OBJCOPY"; then
7735 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
7737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 test -z "$as_dir" && as_dir=.
7742 for ac_exec_ext in '' $ac_executable_extensions; do
7743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7744 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
7745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7754 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
7755 if test -n "$ac_ct_OBJCOPY"; then
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
7757 $as_echo "$ac_ct_OBJCOPY" >&6; }
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7760 $as_echo "no" >&6; }
7763 if test "x$ac_ct_OBJCOPY" = x; then
7766 case $cross_compiling:$ac_tool_warned in
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7770 ac_tool_warned=yes ;;
7772 OBJCOPY=$ac_ct_OBJCOPY
7775 OBJCOPY="$ac_cv_prog_OBJCOPY"
7778 if test -n "$ac_tool_prefix"; then
7779 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7780 set dummy ${ac_tool_prefix}strip; ac_word=$2
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7782 $as_echo_n "checking for $ac_word... " >&6; }
7783 if test "${ac_cv_prog_STRIP+set}" = set; then :
7784 $as_echo_n "(cached) " >&6
7786 if test -n "$STRIP"; then
7787 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793 test -z "$as_dir" && as_dir=.
7794 for ac_exec_ext in '' $ac_executable_extensions; do
7795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7796 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7806 STRIP=$ac_cv_prog_STRIP
7807 if test -n "$STRIP"; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7809 $as_echo "$STRIP" >&6; }
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812 $as_echo "no" >&6; }
7817 if test -z "$ac_cv_prog_STRIP"; then
7819 # Extract the first word of "strip", so it can be a program name with args.
7820 set dummy strip; ac_word=$2
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7822 $as_echo_n "checking for $ac_word... " >&6; }
7823 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7824 $as_echo_n "(cached) " >&6
7826 if test -n "$ac_ct_STRIP"; then
7827 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833 test -z "$as_dir" && as_dir=.
7834 for ac_exec_ext in '' $ac_executable_extensions; do
7835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7836 ac_cv_prog_ac_ct_STRIP="strip"
7837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7846 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7847 if test -n "$ac_ct_STRIP"; then
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7849 $as_echo "$ac_ct_STRIP" >&6; }
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852 $as_echo "no" >&6; }
7855 if test "x$ac_ct_STRIP" = x; then
7858 case $cross_compiling:$ac_tool_warned in
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7862 ac_tool_warned=yes ;;
7867 STRIP="$ac_cv_prog_STRIP"
7870 if test -n "$ac_tool_prefix"; then
7871 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
7872 set dummy ${ac_tool_prefix}nm; ac_word=$2
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7874 $as_echo_n "checking for $ac_word... " >&6; }
7875 if test "${ac_cv_prog_NM+set}" = set; then :
7876 $as_echo_n "(cached) " >&6
7878 if test -n "$NM"; then
7879 ac_cv_prog_NM="$NM" # Let the user override the test.
7881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885 test -z "$as_dir" && as_dir=.
7886 for ac_exec_ext in '' $ac_executable_extensions; do
7887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7888 ac_cv_prog_NM="${ac_tool_prefix}nm"
7889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7899 if test -n "$NM"; then
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7901 $as_echo "$NM" >&6; }
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 $as_echo "no" >&6; }
7909 if test -z "$ac_cv_prog_NM"; then
7911 # Extract the first word of "nm", so it can be a program name with args.
7912 set dummy nm; ac_word=$2
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7914 $as_echo_n "checking for $ac_word... " >&6; }
7915 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
7916 $as_echo_n "(cached) " >&6
7918 if test -n "$ac_ct_NM"; then
7919 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
7921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 test -z "$as_dir" && as_dir=.
7926 for ac_exec_ext in '' $ac_executable_extensions; do
7927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7928 ac_cv_prog_ac_ct_NM="nm"
7929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7938 ac_ct_NM=$ac_cv_prog_ac_ct_NM
7939 if test -n "$ac_ct_NM"; then
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
7941 $as_echo "$ac_ct_NM" >&6; }
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944 $as_echo "no" >&6; }
7947 if test "x$ac_ct_NM" = x; then
7950 case $cross_compiling:$ac_tool_warned in
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7954 ac_tool_warned=yes ;;
7963 ac_tool_prefix="$tmp_ac_tool_prefix"
7965 if test "x$TARGET_CC" = x; then
7968 if test -n "$ac_tool_prefix"; then
7969 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
7970 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7972 $as_echo_n "checking for $ac_word... " >&6; }
7973 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
7974 $as_echo_n "(cached) " >&6
7976 if test -n "$OBJCOPY"; then
7977 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983 test -z "$as_dir" && as_dir=.
7984 for ac_exec_ext in '' $ac_executable_extensions; do
7985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7986 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
7987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7996 OBJCOPY=$ac_cv_prog_OBJCOPY
7997 if test -n "$OBJCOPY"; then
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
7999 $as_echo "$OBJCOPY" >&6; }
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002 $as_echo "no" >&6; }
8007 if test -z "$ac_cv_prog_OBJCOPY"; then
8008 ac_ct_OBJCOPY=$OBJCOPY
8009 # Extract the first word of "objcopy", so it can be a program name with args.
8010 set dummy objcopy; ac_word=$2
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012 $as_echo_n "checking for $ac_word... " >&6; }
8013 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
8014 $as_echo_n "(cached) " >&6
8016 if test -n "$ac_ct_OBJCOPY"; then
8017 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
8019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023 test -z "$as_dir" && as_dir=.
8024 for ac_exec_ext in '' $ac_executable_extensions; do
8025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8026 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
8027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8036 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
8037 if test -n "$ac_ct_OBJCOPY"; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
8039 $as_echo "$ac_ct_OBJCOPY" >&6; }
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042 $as_echo "no" >&6; }
8045 if test "x$ac_ct_OBJCOPY" = x; then
8048 case $cross_compiling:$ac_tool_warned in
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8052 ac_tool_warned=yes ;;
8054 OBJCOPY=$ac_ct_OBJCOPY
8057 OBJCOPY="$ac_cv_prog_OBJCOPY"
8060 if test -n "$ac_tool_prefix"; then
8061 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8062 set dummy ${ac_tool_prefix}strip; ac_word=$2
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8064 $as_echo_n "checking for $ac_word... " >&6; }
8065 if test "${ac_cv_prog_STRIP+set}" = set; then :
8066 $as_echo_n "(cached) " >&6
8068 if test -n "$STRIP"; then
8069 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8075 test -z "$as_dir" && as_dir=.
8076 for ac_exec_ext in '' $ac_executable_extensions; do
8077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8078 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8088 STRIP=$ac_cv_prog_STRIP
8089 if test -n "$STRIP"; then
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8091 $as_echo "$STRIP" >&6; }
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8094 $as_echo "no" >&6; }
8099 if test -z "$ac_cv_prog_STRIP"; then
8101 # Extract the first word of "strip", so it can be a program name with args.
8102 set dummy strip; ac_word=$2
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8104 $as_echo_n "checking for $ac_word... " >&6; }
8105 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8106 $as_echo_n "(cached) " >&6
8108 if test -n "$ac_ct_STRIP"; then
8109 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115 test -z "$as_dir" && as_dir=.
8116 for ac_exec_ext in '' $ac_executable_extensions; do
8117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8118 ac_cv_prog_ac_ct_STRIP="strip"
8119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8128 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8129 if test -n "$ac_ct_STRIP"; then
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8131 $as_echo "$ac_ct_STRIP" >&6; }
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8134 $as_echo "no" >&6; }
8137 if test "x$ac_ct_STRIP" = x; then
8140 case $cross_compiling:$ac_tool_warned in
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8144 ac_tool_warned=yes ;;
8149 STRIP="$ac_cv_prog_STRIP"
8152 if test -n "$ac_tool_prefix"; then
8153 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
8154 set dummy ${ac_tool_prefix}nm; ac_word=$2
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8156 $as_echo_n "checking for $ac_word... " >&6; }
8157 if test "${ac_cv_prog_NM+set}" = set; then :
8158 $as_echo_n "(cached) " >&6
8160 if test -n "$NM"; then
8161 ac_cv_prog_NM="$NM" # Let the user override the test.
8163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8167 test -z "$as_dir" && as_dir=.
8168 for ac_exec_ext in '' $ac_executable_extensions; do
8169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8170 ac_cv_prog_NM="${ac_tool_prefix}nm"
8171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8181 if test -n "$NM"; then
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8183 $as_echo "$NM" >&6; }
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8186 $as_echo "no" >&6; }
8191 if test -z "$ac_cv_prog_NM"; then
8193 # Extract the first word of "nm", so it can be a program name with args.
8194 set dummy nm; ac_word=$2
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8196 $as_echo_n "checking for $ac_word... " >&6; }
8197 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
8198 $as_echo_n "(cached) " >&6
8200 if test -n "$ac_ct_NM"; then
8201 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
8203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8207 test -z "$as_dir" && as_dir=.
8208 for ac_exec_ext in '' $ac_executable_extensions; do
8209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8210 ac_cv_prog_ac_ct_NM="nm"
8211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8220 ac_ct_NM=$ac_cv_prog_ac_ct_NM
8221 if test -n "$ac_ct_NM"; then
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
8223 $as_echo "$ac_ct_NM" >&6; }
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226 $as_echo "no" >&6; }
8229 if test "x$ac_ct_NM" = x; then
8232 case $cross_compiling:$ac_tool_warned in
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8236 ac_tool_warned=yes ;;
8248 # Test the C compiler for the target environment.
8250 tmp_CFLAGS="$CFLAGS"
8251 tmp_LDFLAGS="$LDFLAGS"
8252 tmp_CPPFLAGS="$CPPFLAGS"
8255 CFLAGS="$TARGET_CFLAGS"
8256 CPPFLAGS="$TARGET_CPPFLAGS"
8257 LDFLAGS="$TARGET_LDFLAGS"
8261 TARGET_CFLAGS="$TARGET_CFLAGS -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes \
8262 -Wundef -Wstrict-prototypes -g"
8264 # Force no alignment to save space on i386.
8265 if test "x$target_cpu" = xi386; then
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -falign-loops works" >&5
8267 $as_echo_n "checking whether -falign-loops works... " >&6; }
8268 if test "${grub_cv_cc_falign_loop+set}" = set; then :
8269 $as_echo_n "(cached) " >&6
8272 CFLAGS="$CFLAGS -falign-loops=1"
8273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8274 /* end confdefs.h. */
8284 if ac_fn_c_try_compile "$LINENO"; then :
8285 grub_cv_cc_falign_loop=yes
8287 grub_cv_cc_falign_loop=no
8289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_falign_loop" >&5
8293 $as_echo "$grub_cv_cc_falign_loop" >&6; }
8295 if test "x$grub_cv_cc_falign_loop" = xyes; then
8296 TARGET_CFLAGS="$TARGET_CFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
8298 TARGET_CFLAGS="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
8301 # Some toolchains enable these features by default, but they need
8302 # registers that aren't set up properly in GRUB.
8303 TARGET_CFLAGS="$TARGET_CFLAGS -mno-mmx -mno-sse -mno-sse2 -mno-3dnow"
8306 # By default, GCC 4.4 generates .eh_frame sections containing unwind
8307 # information in some cases where it previously did not. GRUB doesn't need
8308 # these and they just use up vital space. Restore the old compiler
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fno-dwarf2-cfi-asm works" >&5
8311 $as_echo_n "checking whether -fno-dwarf2-cfi-asm works... " >&6; }
8312 if test "${grub_cv_cc_fno_dwarf2_cfi_asm+set}" = set; then :
8313 $as_echo_n "(cached) " >&6
8316 SAVE_CFLAGS="$CFLAGS"
8317 CFLAGS="$CFLAGS -fno-dwarf2-cfi-asm"
8318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h. */
8329 if ac_fn_c_try_compile "$LINENO"; then :
8330 grub_cv_cc_fno_dwarf2_cfi_asm=yes
8332 grub_cv_cc_fno_dwarf2_cfi_asm=no
8334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8335 CFLAGS="$SAVE_CFLAGS"
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_fno_dwarf2_cfi_asm" >&5
8339 $as_echo "$grub_cv_cc_fno_dwarf2_cfi_asm" >&6; }
8341 if test "x$grub_cv_cc_fno_dwarf2_cfi_asm" = xyes; then
8342 TARGET_CFLAGS="$TARGET_CFLAGS -fno-dwarf2-cfi-asm"
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our target compiler is apple cc" >&5
8347 $as_echo_n "checking whether our target compiler is apple cc... " >&6; }
8348 if test "${grub_cv_apple_target_cc+set}" = set; then :
8349 $as_echo_n "(cached) " >&6
8351 if $CC -v 2>&1 | grep "Apple Inc." > /dev/null; then
8352 grub_cv_apple_target_cc=yes
8354 grub_cv_apple_target_cc=no
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_apple_target_cc" >&5
8361 $as_echo "$grub_cv_apple_target_cc" >&6; }
8362 if test x$grub_cv_apple_target_cc = xyes ; then
8363 TARGET_CFLAGS="$TARGET_CFLAGS -DAPPLE_CC=1 -fnested-functions"
8364 CFLAGS="$CFLAGS -DAPPLE_CC=1 -fnested-functions"
8365 TARGET_ASFLAGS="$TARGET_ASFLAGS -DAPPLE_CC=1"
8367 # Extract the first word of "objconv", so it can be a program name with args.
8368 set dummy objconv; ac_word=$2
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8370 $as_echo_n "checking for $ac_word... " >&6; }
8371 if test "${ac_cv_prog_OBJCONV+set}" = set; then :
8372 $as_echo_n "(cached) " >&6
8374 if test -n "$OBJCONV"; then
8375 ac_cv_prog_OBJCONV="$OBJCONV" # Let the user override the test.
8377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8381 test -z "$as_dir" && as_dir=.
8382 for ac_exec_ext in '' $ac_executable_extensions; do
8383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8384 ac_cv_prog_OBJCONV="objconv"
8385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8394 OBJCONV=$ac_cv_prog_OBJCONV
8395 if test -n "$OBJCONV"; then
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCONV" >&5
8397 $as_echo "$OBJCONV" >&6; }
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8400 $as_echo "no" >&6; }
8404 if test "x$OBJCONV" = x ; then
8405 # Extract the first word of "objconv", so it can be a program name with args.
8406 set dummy objconv; ac_word=$2
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8408 $as_echo_n "checking for $ac_word... " >&6; }
8409 if test "${ac_cv_prog_OBJCONV+set}" = set; then :
8410 $as_echo_n "(cached) " >&6
8412 if test -n "$OBJCONV"; then
8413 ac_cv_prog_OBJCONV="$OBJCONV" # Let the user override the test.
8415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8419 test -z "$as_dir" && as_dir=.
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8422 ac_cv_prog_OBJCONV="./objconv"
8423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8432 OBJCONV=$ac_cv_prog_OBJCONV
8433 if test -n "$OBJCONV"; then
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCONV" >&5
8435 $as_echo "$OBJCONV" >&6; }
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438 $as_echo "no" >&6; }
8443 if test "x$OBJCONV" = x ; then
8444 as_fn_error "objconv not found which is required when building with apple compiler" "$LINENO" 5
8446 TARGET_IMG_LDSCRIPT=
8447 TARGET_IMG_CFLAGS="-static"
8448 TARGET_IMG_LDFLAGS='-nostdlib -static -Wl,-preload -Wl,-segalign,20 -Wl,-image_base,'
8449 TARGET_IMG_LDFLAGS_AC='-nostdlib -static -Wl,-preload -Wl,-segalign,20 -Wl,-image_base,'
8452 # Use linker script if present, otherwise use builtin -N script.
8453 if test -f "${srcdir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"; then
8454 TARGET_IMG_LDSCRIPT='$(top_srcdir)'"/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"
8455 TARGET_IMG_LDFLAGS="-Wl,-T${TARGET_IMG_LDSCRIPT} -Wl,-Ttext,"
8456 TARGET_IMG_LDFLAGS_AC="-Wl,-T${srcdir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"
8458 TARGET_IMG_LDSCRIPT=
8459 TARGET_IMG_LDFLAGS='-Wl,-N -Wl,-Ttext,'
8460 TARGET_IMG_LDFLAGS_AC='-Wl,-N -Wl,-Ttext,'
8469 # For platforms where ELF is not the default link format.
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for command to convert module to ELF format" >&5
8471 $as_echo_n "checking for command to convert module to ELF format... " >&6; }
8472 case "${host_os}" in
8473 cygwin) TARGET_OBJ2ELF='grub-pe2elf' ;;
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_OBJ2ELF" >&5
8478 $as_echo "$TARGET_OBJ2ELF" >&6; }
8481 if test "x$target_m32" = x1; then
8482 # Force 32-bit mode.
8483 TARGET_CFLAGS="$TARGET_CFLAGS -m32"
8484 TARGET_LDFLAGS="$TARGET_LDFLAGS -m32"
8485 TARGET_MODULE_FORMAT="elf32"
8488 if test "x$target_m64" = x1; then
8489 # Force 64-bit mode.
8490 TARGET_CFLAGS="$TARGET_CFLAGS -m64"
8491 TARGET_LDFLAGS="$TARGET_LDFLAGS -m64"
8492 TARGET_MODULE_FORMAT="elf64"
8495 if test "$target_cpu"-"$platform" = x86_64-efi; then
8496 # Use large model to support 4G memory
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mcmodel=large works" >&5
8498 $as_echo_n "checking whether option -mcmodel=large works... " >&6; }
8499 if test "${grub_cv_cc_mcmodel+set}" = set; then :
8500 $as_echo_n "(cached) " >&6
8503 SAVED_CFLAGS=$CFLAGS
8504 CFLAGS="$CFLAGS -m64 -mcmodel=large"
8505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8506 /* end confdefs.h. */
8516 if ac_fn_c_try_compile "$LINENO"; then :
8517 grub_cv_cc_mcmodel=yes
8519 grub_cv_cc_mcmodel=no
8521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_mcmodel" >&5
8525 $as_echo "$grub_cv_cc_mcmodel" >&6; }
8526 if test "x$grub_cv_cc_mcmodel" = xno; then
8527 CFLAGS="$SAVED_CFLAGS -m64 -DMCMODEL_SMALL=1"
8528 TARGET_CFLAGS="$TARGET_CFLAGS -DMCMODEL_SMALL=1"
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -mcmodel=large not supported. You won't be able to use the memory over 4GiB. Upgrade your gcc" >&5
8530 $as_echo "$as_me: WARNING: -mcmodel=large not supported. You won't be able to use the memory over 4GiB. Upgrade your gcc" >&2;}
8532 TARGET_CFLAGS="$TARGET_CFLAGS -mcmodel=large"
8535 # EFI writes to stack below %rsp, we must not use the red zone
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mno-red-zone works" >&5
8537 $as_echo_n "checking whether option -mno-red-zone works... " >&6; }
8538 if test "${grub_cv_cc_no_red_zone+set}" = set; then :
8539 $as_echo_n "(cached) " >&6
8542 CFLAGS="$CFLAGS -m64 -mno-red-zone"
8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544 /* end confdefs.h. */
8554 if ac_fn_c_try_compile "$LINENO"; then :
8555 grub_cv_cc_no_red_zone=yes
8557 grub_cv_cc_no_red_zone=no
8559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_no_red_zone" >&5
8563 $as_echo "$grub_cv_cc_no_red_zone" >&6; }
8564 if test "x$grub_cv_cc_no_red_zone" = xno; then
8565 as_fn_error "-mno-red-zone not supported, upgrade your gcc" "$LINENO" 5
8568 TARGET_CFLAGS="$TARGET_CFLAGS -mno-red-zone"
8572 # Compiler features.
8575 # Need __enable_execute_stack() for nested function trampolines?
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' generates calls to \`__enable_execute_stack()'" >&5
8578 $as_echo_n "checking whether \`$CC' generates calls to \`__enable_execute_stack()'... " >&6; }
8579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8580 /* end confdefs.h. */
8582 void f (int (*p) (void));
8585 int nestedfunc (void) { return i; }
8590 if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
8591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8595 test $ac_status = 0; }; } && test -s conftest.s; then
8598 as_fn_error "${CC-cc} failed to produce assembly code" "$LINENO" 5
8600 if grep __enable_execute_stack conftest.s >/dev/null 2>&1; then
8602 $as_echo "@%:@define NEED_ENABLE_EXECUTE_STACK 1" >>confdefs.h
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8605 $as_echo "yes" >&6; }
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608 $as_echo "no" >&6; }
8613 # Position independent executable.
8615 # Position independent executable.
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' has \`-fPIE' as default" >&5
8618 $as_echo_n "checking whether \`$CC' has \`-fPIE' as default... " >&6; }
8619 # Is this a reliable test case?
8620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8621 /* end confdefs.h. */
8628 #error NO __PIE__ DEFINED
8633 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
8634 # `ac_compile' like this correct, after all?
8635 if eval "$ac_compile -S -o conftest.s" 2> /dev/null; then
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8637 $as_echo "yes" >&6; }
8638 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643 $as_echo "no" >&6; }
8646 # Need that, because some distributions ship compilers that include
8647 # `-fPIE' in the default specs.
8648 if [ x"$pie_possible" = xyes ]; then
8649 TARGET_CFLAGS="$TARGET_CFLAGS -fno-PIE"
8652 # Smashing stack protector.
8654 # Smashing stack protector.
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' accepts \`-fstack-protector'" >&5
8657 $as_echo_n "checking whether \`$CC' accepts \`-fstack-protector'... " >&6; }
8658 # Is this a reliable test case?
8659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8660 /* end confdefs.h. */
8661 void foo (void) { volatile char a[8]; a[3]; }
8663 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
8664 # `ac_compile' like this correct, after all?
8665 if eval "$ac_compile -S -fstack-protector -o conftest.s" 2> /dev/null; then
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8667 $as_echo "yes" >&6; }
8668 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8673 $as_echo "no" >&6; }
8676 # Need that, because some distributions ship compilers that include
8677 # `-fstack-protector' in the default specs.
8678 if test "x$ssp_possible" = xyes; then
8679 TARGET_CFLAGS="$TARGET_CFLAGS -fno-stack-protector"
8682 # Smashing stack arg probe.
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' accepts \`-mstack-arg-probe'" >&5
8685 $as_echo_n "checking whether \`$CC' accepts \`-mstack-arg-probe'... " >&6; }
8686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8687 /* end confdefs.h. */
8688 void foo (void) { volatile char a[8]; a[3]; }
8690 if eval "$ac_compile -S -mstack-arg-probe -o conftest.s" 2> /dev/null; then
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8692 $as_echo "yes" >&6; }
8693 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8698 $as_echo "no" >&6; }
8701 # Cygwin's GCC uses alloca() to probe the stackframe on static
8702 # stack allocations above some threshold.
8703 if test x"$sap_possible" = xyes; then
8704 TARGET_CFLAGS="$TARGET_CFLAGS -mno-stack-arg-probe"
8707 @%:@ Check whether --enable-werror was given.
8708 if test "${enable_werror+set}" = set; then :
8709 enableval=$enable_werror;
8712 if test x"$enable_werror" != xno ; then
8713 TARGET_CFLAGS="$TARGET_CFLAGS -Werror"
8724 # Set them to their new values for the tests below.
8726 if test "x$TARGET_APPLE_CC" = x1 ; then
8727 CFLAGS="$TARGET_CFLAGS -nostdlib -Wno-error"
8729 CFLAGS="$TARGET_CFLAGS -nostdlib -Wl,--defsym,___main=0x8100 -Wl,--defsym,abort=main -Wno-error"
8731 CPPFLAGS="$TARGET_CPPFLAGS"
8732 LDFLAGS="$TARGET_LDFLAGS"
8735 # Check for libgcc symbols
8736 for ac_func in __bswapsi2 __bswapdi2 __ashldi3 __ashrdi3 __lshrdi3 __trampoline_setup __ucmpdi2 _restgpr_14_x
8738 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8739 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8740 eval as_val=\$$as_ac_var
8741 if test "x$as_val" = x""yes; then :
8742 cat >>confdefs.h <<_ACEOF
8743 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8750 if test "x$TARGET_APPLE_CC" = x1 ; then
8751 CFLAGS="$TARGET_CFLAGS -nostdlib"
8753 CFLAGS="$TARGET_CFLAGS -nostdlib -Wl,--defsym,___main=0x8100"
8757 # Defined in aclocal.m4.
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether target compiler is working" >&5
8759 $as_echo_n "checking whether target compiler is working... " >&6; }
8760 if test "${grub_cv_prog_target_cc+set}" = set; then :
8761 $as_echo_n "(cached) " >&6
8763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8764 /* end confdefs.h. */
8766 asm (".globl start; start:");
8777 if ac_fn_c_try_link "$LINENO"; then :
8778 grub_cv_prog_target_cc=yes
8780 grub_cv_prog_target_cc=no
8782 rm -f core conftest.err conftest.$ac_objext \
8783 conftest$ac_exeext conftest.$ac_ext
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_target_cc" >&5
8788 $as_echo "$grub_cv_prog_target_cc" >&6; }
8790 if test "x$grub_cv_prog_target_cc" = xno; then
8791 as_fn_error "cannot compile for the target" "$LINENO" 5
8794 if test "x$TARGET_APPLE_CC" != x1 ; then
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${OBJCOPY} works for absolute addresses" >&5
8796 $as_echo_n "checking whether ${OBJCOPY} works for absolute addresses... " >&6; }
8797 if test "${grub_cv_prog_objcopy_absolute+set}" = set; then :
8798 $as_echo_n "(cached) " >&6
8800 cat > conftest.c <<\EOF
8805 *((int *) 0x1000) = 2;
8809 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8810 (eval $ac_compile) 2>&5
8812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8813 test $ac_status = 0; } && test -s conftest.o; then :
8815 as_fn_error "${CC-cc} cannot compile C source code" "$LINENO" 5
8817 grub_cv_prog_objcopy_absolute=yes
8818 for link_addr in 0x2000 0x8000 0x7C00; do
8819 if { ac_try='${CC-cc} ${CFLAGS} -nostdlib ${TARGET_IMG_LDFLAGS_AC} -Wl,-Ttext -Wl,$link_addr conftest.o -o conftest.exec'
8820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8824 test $ac_status = 0; }; }; then :
8826 as_fn_error "${CC-cc} cannot link at address $link_addr" "$LINENO" 5
8828 if { ac_try='${OBJCOPY-objcopy} --only-section=.text -O binary conftest.exec conftest'
8829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8833 test $ac_status = 0; }; }; then :
8835 as_fn_error "${OBJCOPY-objcopy} cannot create binary files" "$LINENO" 5
8837 if test ! -f conftest.old || { ac_try='cmp -s conftest.old conftest'
8838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8842 test $ac_status = 0; }; }; then
8843 mv -f conftest conftest.old
8845 grub_cv_prog_objcopy_absolute=no
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_objcopy_absolute" >&5
8853 $as_echo "$grub_cv_prog_objcopy_absolute" >&6; }
8855 if test "x$grub_cv_prog_objcopy_absolute" = xno; then
8856 as_fn_error "GRUB requires a working absolute objcopy; upgrade your binutils" "$LINENO" 5
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts --build-id=none" >&5
8861 $as_echo_n "checking whether linker accepts --build-id=none... " >&6; }
8862 if test "${grub_cv_prog_ld_build_id_none+set}" = set; then :
8863 $as_echo_n "(cached) " >&6
8865 save_LDFLAGS="$LDFLAGS"
8866 LDFLAGS="$LDFLAGS -Wl,--build-id=none"
8867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868 /* end confdefs.h. */
8878 if ac_fn_c_try_link "$LINENO"; then :
8879 grub_cv_prog_ld_build_id_none=yes
8881 grub_cv_prog_ld_build_id_none=no
8883 rm -f core conftest.err conftest.$ac_objext \
8884 conftest$ac_exeext conftest.$ac_ext
8885 LDFLAGS="$save_LDFLAGS"
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_ld_build_id_none" >&5
8890 $as_echo "$grub_cv_prog_ld_build_id_none" >&6; }
8892 if test "x$grub_cv_prog_ld_build_id_none" = xyes; then
8893 TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,--build-id=none"
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C symbols get an underscore after compilation" >&5
8898 $as_echo_n "checking if C symbols get an underscore after compilation... " >&6; }
8899 if test "${grub_cv_asm_uscore+set}" = set; then :
8900 $as_echo_n "(cached) " >&6
8902 cat > conftest.c <<\EOF
8912 if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
8913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8917 test $ac_status = 0; }; } && test -s conftest.s; then
8920 as_fn_error "${CC-cc} failed to produce assembly code" "$LINENO" 5
8923 if grep _func conftest.s >/dev/null 2>&1; then
8924 grub_cv_asm_uscore=yes
8926 grub_cv_asm_uscore=no
8933 if test "x$grub_cv_asm_uscore" = xyes; then
8935 cat >>confdefs.h <<_ACEOF
8936 @%:@define HAVE_ASM_USCORE $grub_cv_asm_uscore
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_asm_uscore" >&5
8942 $as_echo "$grub_cv_asm_uscore" >&6; }
8944 if test "x$target_cpu" = xi386; then
8945 if test ! -z "$TARGET_IMG_LDSCRIPT"; then
8946 # Check symbols provided by linker script.
8947 CFLAGS="$TARGET_CFLAGS -nostdlib $TARGET_IMG_LDFLAGS_AC -Wl,-Ttext,8000,--defsym,___main=0x8100"
8949 if test "x$TARGET_APPLE_CC" != x1 ; then
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __bss_start is defined by the compiler" >&5
8952 $as_echo_n "checking if __bss_start is defined by the compiler... " >&6; }
8953 if test "${grub_cv_check_uscore_uscore_bss_start_symbol+set}" = set; then :
8954 $as_echo_n "(cached) " >&6
8956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957 /* end confdefs.h. */
8962 asm ("incl __bss_start")
8967 if ac_fn_c_try_link "$LINENO"; then :
8968 grub_cv_check_uscore_uscore_bss_start_symbol=yes
8970 grub_cv_check_uscore_uscore_bss_start_symbol=no
8972 rm -f core conftest.err conftest.$ac_objext \
8973 conftest$ac_exeext conftest.$ac_ext
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
8978 $as_echo "$grub_cv_check_uscore_uscore_bss_start_symbol" >&6; }
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if edata is defined by the compiler" >&5
8981 $as_echo_n "checking if edata is defined by the compiler... " >&6; }
8982 if test "${grub_cv_check_edata_symbol+set}" = set; then :
8983 $as_echo_n "(cached) " >&6
8985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8986 /* end confdefs.h. */
8996 if ac_fn_c_try_link "$LINENO"; then :
8997 grub_cv_check_edata_symbol=yes
8999 grub_cv_check_edata_symbol=no
9001 rm -f core conftest.err conftest.$ac_objext \
9002 conftest$ac_exeext conftest.$ac_ext
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_edata_symbol" >&5
9007 $as_echo "$grub_cv_check_edata_symbol" >&6; }
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _edata is defined by the compiler" >&5
9010 $as_echo_n "checking if _edata is defined by the compiler... " >&6; }
9011 if test "${grub_cv_check_uscore_edata_symbol+set}" = set; then :
9012 $as_echo_n "(cached) " >&6
9014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9015 /* end confdefs.h. */
9025 if ac_fn_c_try_link "$LINENO"; then :
9026 grub_cv_check_uscore_edata_symbol=yes
9028 grub_cv_check_uscore_edata_symbol=no
9030 rm -f core conftest.err conftest.$ac_objext \
9031 conftest$ac_exeext conftest.$ac_ext
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_edata_symbol" >&5
9036 $as_echo "$grub_cv_check_uscore_edata_symbol" >&6; }
9040 if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then
9041 $as_echo "@%:@define BSS_START_SYMBOL __bss_start" >>confdefs.h
9043 elif test "x$grub_cv_check_edata_symbol" = xyes; then
9044 $as_echo "@%:@define BSS_START_SYMBOL edata" >>confdefs.h
9046 elif test "x$grub_cv_check_uscore_edata_symbol" = xyes; then
9047 $as_echo "@%:@define BSS_START_SYMBOL _edata" >>confdefs.h
9050 as_fn_error "none of __bss_start, edata or _edata is defined" "$LINENO" 5
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if end is defined by the compiler" >&5
9055 $as_echo_n "checking if end is defined by the compiler... " >&6; }
9056 if test "${grub_cv_check_end_symbol+set}" = set; then :
9057 $as_echo_n "(cached) " >&6
9059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9060 /* end confdefs.h. */
9070 if ac_fn_c_try_link "$LINENO"; then :
9071 grub_cv_check_end_symbol=yes
9073 grub_cv_check_end_symbol=no
9075 rm -f core conftest.err conftest.$ac_objext \
9076 conftest$ac_exeext conftest.$ac_ext
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_end_symbol" >&5
9081 $as_echo "$grub_cv_check_end_symbol" >&6; }
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _end is defined by the compiler" >&5
9084 $as_echo_n "checking if _end is defined by the compiler... " >&6; }
9085 if test "${grub_cv_check_uscore_end_symbol+set}" = set; then :
9086 $as_echo_n "(cached) " >&6
9088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9089 /* end confdefs.h. */
9099 if ac_fn_c_try_link "$LINENO"; then :
9100 grub_cv_check_uscore_end_symbol=yes
9102 grub_cv_check_uscore_end_symbol=no
9104 rm -f core conftest.err conftest.$ac_objext \
9105 conftest$ac_exeext conftest.$ac_ext
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_end_symbol" >&5
9110 $as_echo "$grub_cv_check_uscore_end_symbol" >&6; }
9114 if test "x$grub_cv_check_end_symbol" = xyes; then
9115 $as_echo "@%:@define END_SYMBOL end" >>confdefs.h
9117 elif test "x$grub_cv_check_uscore_end_symbol" = xyes; then
9118 $as_echo "@%:@define END_SYMBOL _end" >>confdefs.h
9121 as_fn_error "neither end nor _end is defined" "$LINENO" 5
9125 CFLAGS="$TARGET_CFLAGS"
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether addr32 must be in the same line as the instruction" >&5
9128 $as_echo_n "checking whether addr32 must be in the same line as the instruction... " >&6; }
9129 if test "${grub_cv_i386_asm_prefix_requirement+set}" = set; then :
9130 $as_echo_n "(cached) " >&6
9132 cat > conftest.s <<\EOF
9134 l1: addr32 movb %al, l1
9137 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
9138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
9141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9142 test $ac_status = 0; }; } && test -s conftest.o; then
9143 grub_cv_i386_asm_prefix_requirement=yes
9145 grub_cv_i386_asm_prefix_requirement=no
9152 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
9153 grub_tmp_addr32="addr32"
9154 grub_tmp_data32="data32"
9156 grub_tmp_addr32="addr32;"
9157 grub_tmp_data32="data32;"
9161 cat >>confdefs.h <<_ACEOF
9162 @%:@define ADDR32 $grub_tmp_addr32
9166 cat >>confdefs.h <<_ACEOF
9167 @%:@define DATA32 $grub_tmp_data32
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_i386_asm_prefix_requirement" >&5
9172 $as_echo "$grub_cv_i386_asm_prefix_requirement" >&6; }
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .code16 addr32 assembler support" >&5
9176 $as_echo_n "checking for .code16 addr32 assembler support... " >&6; }
9177 if test "${grub_cv_i386_asm_addr32+set}" = set; then :
9178 $as_echo_n "(cached) " >&6
9180 cat > conftest.s.in <<\EOF
9182 l1: @ADDR32@ movb %al, l1
9185 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
9186 sed -e s/@ADDR32@/addr32/ < conftest.s.in > conftest.s
9188 sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s
9191 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
9192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
9195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9196 test $ac_status = 0; }; } && test -s conftest.o; then
9197 grub_cv_i386_asm_addr32=yes
9199 grub_cv_i386_asm_addr32=no
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_i386_asm_addr32" >&5
9207 $as_echo "$grub_cv_i386_asm_addr32" >&6; }
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether an absolute indirect call/jump must not be prefixed with an asterisk" >&5
9210 $as_echo_n "checking whether an absolute indirect call/jump must not be prefixed with an asterisk... " >&6; }
9211 if test "${grub_cv_i386_asm_absolute_without_asterisk+set}" = set; then :
9212 $as_echo_n "(cached) " >&6
9214 cat > conftest.s <<\EOF
9221 if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
9222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
9225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9226 test $ac_status = 0; }; } && test -s conftest.o; then
9227 grub_cv_i386_asm_absolute_without_asterisk=no
9229 grub_cv_i386_asm_absolute_without_asterisk=yes
9236 if test "x$grub_cv_i386_asm_absolute_without_asterisk" = xyes; then
9238 $as_echo "@%:@define ABSOLUTE_WITHOUT_ASTERISK 1" >>confdefs.h
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_i386_asm_absolute_without_asterisk" >&5
9243 $as_echo "$grub_cv_i386_asm_absolute_without_asterisk" >&6; }
9246 $as_echo "@%:@define NESTED_FUNC_ATTR /**/" >>confdefs.h
9252 @%:@ Check whether --enable-efiemu was given.
9253 if test "${enable_efiemu+set}" = set; then :
9254 enableval=$enable_efiemu;
9257 if test x"$enable_efiemu" = xno ; then
9258 efiemu_excuse="explicitly disabled"
9260 if test x"$efiemu_excuse" = x ; then
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether options required for efiemu work" >&5
9262 $as_echo_n "checking whether options required for efiemu work... " >&6; }
9263 if test "${grub_cv_cc_efiemu+set}" = set; then :
9264 $as_echo_n "(cached) " >&6
9267 CFLAGS="$CFLAGS -m64 -mcmodel=large -mno-red-zone -nostdlib"
9268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9269 /* end confdefs.h. */
9279 if ac_fn_c_try_compile "$LINENO"; then :
9280 grub_cv_cc_efiemu=yes
9282 grub_cv_cc_efiemu=no
9284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_efiemu" >&5
9288 $as_echo "$grub_cv_cc_efiemu" >&6; }
9289 if test x$grub_cv_cc_efiemu = xno; then
9290 efiemu_excuse="cannot compile with -m64 -mcmodel=large -mno-red-zone -nostdlib"
9293 if test x"$enable_efiemu" = xyes && test x"$efiemu_excuse" != x ; then
9294 as_fn_error "efiemu runtime was explicitly requested but can't be compiled" "$LINENO" 5
9296 if test x"$efiemu_excuse" = x ; then
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -nostdinc -isystem works" >&5
9304 $as_echo_n "checking whether -nostdinc -isystem works... " >&6; }
9305 if test "${grub_cv_cc_isystem+set}" = set; then :
9306 $as_echo_n "(cached) " >&6
9309 SAVED_CPPFLAGS="$CPPFLAGS"
9310 CPPFLAGS="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`"
9311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9312 /* end confdefs.h. */
9314 int va_arg_func (int fixed, va_list args);
9323 if ac_fn_c_try_compile "$LINENO"; then :
9324 grub_cv_cc_isystem=yes
9326 grub_cv_cc_isystem=no
9328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9329 CPPFLAGS="$SAVED_CPPFLAGS"
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_isystem" >&5
9333 $as_echo "$grub_cv_cc_isystem" >&6; }
9335 if test x"$grub_cv_cc_isystem" = xyes ; then
9336 TARGET_CPPFLAGS="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`"
9339 # Restore the flags.
9341 CFLAGS="$tmp_CFLAGS"
9342 CPPFLAGS="$tmp_CPPFLAGS"
9343 LDFLAGS="$tmp_LDFLAGS"
9347 # Check for options.
9350 # Memory manager debugging.
9351 @%:@ Check whether --enable-mm-debug was given.
9352 if test "${enable_mm_debug+set}" = set; then :
9353 enableval=$enable_mm_debug;
9354 $as_echo "@%:@define MM_DEBUG 1" >>confdefs.h
9359 @%:@ Check whether --enable-grub-emu-usb was given.
9360 if test "${enable_grub_emu_usb+set}" = set; then :
9361 enableval=$enable_grub_emu_usb;
9365 @%:@ Check whether --enable-grub-emu-sdl was given.
9366 if test "${enable_grub_emu_sdl+set}" = set; then :
9367 enableval=$enable_grub_emu_sdl;
9371 @%:@ Check whether --enable-grub-emu-pci was given.
9372 if test "${enable_grub_emu_pci+set}" = set; then :
9373 enableval=$enable_grub_emu_pci;
9377 if test "$platform" = emu; then
9379 # Check for curses libraries.
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wgetch in -lncurses" >&5
9381 $as_echo_n "checking for wgetch in -lncurses... " >&6; }
9382 if test "${ac_cv_lib_ncurses_wgetch+set}" = set; then :
9383 $as_echo_n "(cached) " >&6
9385 ac_check_lib_save_LIBS=$LIBS
9386 LIBS="-lncurses $LIBS"
9387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h. */
9390 /* Override any GCC internal prototype to avoid an error.
9391 Use char because int might match the return type of a GCC
9392 builtin and then its argument prototype would still apply. */
9405 if ac_fn_c_try_link "$LINENO"; then :
9406 ac_cv_lib_ncurses_wgetch=yes
9408 ac_cv_lib_ncurses_wgetch=no
9410 rm -f core conftest.err conftest.$ac_objext \
9411 conftest$ac_exeext conftest.$ac_ext
9412 LIBS=$ac_check_lib_save_LIBS
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_wgetch" >&5
9415 $as_echo "$ac_cv_lib_ncurses_wgetch" >&6; }
9416 if test "x$ac_cv_lib_ncurses_wgetch" = x""yes; then :
9417 LIBCURSES="-lncurses"
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wgetch in -lcurses" >&5
9420 $as_echo_n "checking for wgetch in -lcurses... " >&6; }
9421 if test "${ac_cv_lib_curses_wgetch+set}" = set; then :
9422 $as_echo_n "(cached) " >&6
9424 ac_check_lib_save_LIBS=$LIBS
9425 LIBS="-lcurses $LIBS"
9426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9427 /* end confdefs.h. */
9429 /* Override any GCC internal prototype to avoid an error.
9430 Use char because int might match the return type of a GCC
9431 builtin and then its argument prototype would still apply. */
9444 if ac_fn_c_try_link "$LINENO"; then :
9445 ac_cv_lib_curses_wgetch=yes
9447 ac_cv_lib_curses_wgetch=no
9449 rm -f core conftest.err conftest.$ac_objext \
9450 conftest$ac_exeext conftest.$ac_ext
9451 LIBS=$ac_check_lib_save_LIBS
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_wgetch" >&5
9454 $as_echo "$ac_cv_lib_curses_wgetch" >&6; }
9455 if test "x$ac_cv_lib_curses_wgetch" = x""yes; then :
9456 LIBCURSES="-lcurses"
9458 missing_ncurses=true
9464 if [ x"$missing_ncurses" = x ]; then
9465 # Check for headers.
9466 for ac_header in ncurses/curses.h
9468 ac_fn_c_check_header_mongrel "$LINENO" "ncurses/curses.h" "ac_cv_header_ncurses_curses_h" "$ac_includes_default"
9469 if test "x$ac_cv_header_ncurses_curses_h" = x""yes; then :
9470 cat >>confdefs.h <<_ACEOF
9471 @%:@define HAVE_NCURSES_CURSES_H 1
9475 for ac_header in ncurses.h
9477 ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
9478 if test "x$ac_cv_header_ncurses_h" = x""yes; then :
9479 cat >>confdefs.h <<_ACEOF
9480 @%:@define HAVE_NCURSES_H 1
9484 for ac_header in curses.h
9486 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
9487 if test "x$ac_cv_header_curses_h" = x""yes; then :
9488 cat >>confdefs.h <<_ACEOF
9489 @%:@define HAVE_CURSES_H 1
9493 missing_ncurses=true
9507 if test x"$missing_ncurses" = xtrue ; then
9508 as_fn_error "grub-emu can't be compiled without ncurses" "$LINENO" 5
9511 if test x"$enable_grub_emu_usb" = xno ; then
9512 grub_emu_usb_excuse="explicitly disabled"
9515 if test x"$enable_grub_emu_pci" = xyes ; then
9516 grub_emu_usb_excuse="conflicts with PCI support"
9519 if [ x"$grub_emu_usb_excuse" = x ]; then
9520 # Check for libusb libraries.
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_claim_interface in -lusb" >&5
9522 $as_echo_n "checking for usb_claim_interface in -lusb... " >&6; }
9523 if test "${ac_cv_lib_usb_usb_claim_interface+set}" = set; then :
9524 $as_echo_n "(cached) " >&6
9526 ac_check_lib_save_LIBS=$LIBS
9528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9529 /* end confdefs.h. */
9531 /* Override any GCC internal prototype to avoid an error.
9532 Use char because int might match the return type of a GCC
9533 builtin and then its argument prototype would still apply. */
9537 char usb_claim_interface ();
9541 return usb_claim_interface ();
9546 if ac_fn_c_try_link "$LINENO"; then :
9547 ac_cv_lib_usb_usb_claim_interface=yes
9549 ac_cv_lib_usb_usb_claim_interface=no
9551 rm -f core conftest.err conftest.$ac_objext \
9552 conftest$ac_exeext conftest.$ac_ext
9553 LIBS=$ac_check_lib_save_LIBS
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_claim_interface" >&5
9556 $as_echo "$ac_cv_lib_usb_usb_claim_interface" >&6; }
9557 if test "x$ac_cv_lib_usb_usb_claim_interface" = x""yes; then :
9560 grub_emu_usb_excuse="need libusb library"
9565 if [ x"$grub_emu_usb_excuse" = x ]; then
9566 # Check for headers.
9567 for ac_header in usb.h
9569 ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
9570 if test "x$ac_cv_header_usb_h" = x""yes; then :
9571 cat >>confdefs.h <<_ACEOF
9572 @%:@define HAVE_USB_H 1
9576 grub_emu_usb_excuse="need libusb headers"
9582 if test x"$enable_grub_emu_usb" = xyes && test x"$grub_emu_usb_excuse" != x ; then
9583 as_fn_error "USB support for grub-emu was explicitly requested but can't be compiled" "$LINENO" 5
9585 if test x"$grub_emu_usb_excuse" = x ; then
9586 enable_grub_emu_usb=yes
9588 enable_grub_emu_usb=no
9591 if test x"$enable_grub_emu_sdl" = xno ; then
9592 grub_emu_sdl_excuse="explicitely disabled"
9594 if [ x"$grub_emu_sdl_excuse" = x ]; then
9595 # Check for libSDL libraries.
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL" >&5
9597 $as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
9598 if test "${ac_cv_lib_SDL_SDL_Init+set}" = set; then :
9599 $as_echo_n "(cached) " >&6
9601 ac_check_lib_save_LIBS=$LIBS
9603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9604 /* end confdefs.h. */
9606 /* Override any GCC internal prototype to avoid an error.
9607 Use char because int might match the return type of a GCC
9608 builtin and then its argument prototype would still apply. */
9621 if ac_fn_c_try_link "$LINENO"; then :
9622 ac_cv_lib_SDL_SDL_Init=yes
9624 ac_cv_lib_SDL_SDL_Init=no
9626 rm -f core conftest.err conftest.$ac_objext \
9627 conftest$ac_exeext conftest.$ac_ext
9628 LIBS=$ac_check_lib_save_LIBS
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Init" >&5
9631 $as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
9632 if test "x$ac_cv_lib_SDL_SDL_Init" = x""yes; then :
9635 grub_emu_sdl_excuse="libSDL libraries are required to build \`grub-emu' with SDL support"
9641 if [ x"$grub_emu_sdl_excuse" = x ]; then
9642 # Check for headers.
9643 for ac_header in SDL/SDL.h
9645 ac_fn_c_check_header_mongrel "$LINENO" "SDL/SDL.h" "ac_cv_header_SDL_SDL_h" "$ac_includes_default"
9646 if test "x$ac_cv_header_SDL_SDL_h" = x""yes; then :
9647 cat >>confdefs.h <<_ACEOF
9648 @%:@define HAVE_SDL_SDL_H 1
9652 grub_emu_sdl_excuse="libSDL header file is required to build \`grub-emu' with SDL support"
9659 if test x"enable_grub_emu_sdl" = xyes && test x"$grub_emu_sdl_excuse" != x ; then
9660 as_fn_error "SDL support for grub-emu was explicitely requested but can't be compiled" "$LINENO" 5
9662 if test x"$grub_emu_sdl_excuse" = x ; then
9663 enable_grub_emu_sdl=yes
9665 enable_grub_emu_sdl=no
9668 if test x"$enable_grub_emu_pci" != xyes ; then
9669 grub_emu_pci_excuse="not enabled"
9672 if test x"$enable_grub_emu_usb" = xyes ; then
9673 grub_emu_pci_excuse="conflicts with USB support"
9676 if [ x"$grub_emu_pci_excuse" = x ]; then
9677 # Check for libpci libraries.
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pci_system_init in -lpciaccess" >&5
9679 $as_echo_n "checking for pci_system_init in -lpciaccess... " >&6; }
9680 if test "${ac_cv_lib_pciaccess_pci_system_init+set}" = set; then :
9681 $as_echo_n "(cached) " >&6
9683 ac_check_lib_save_LIBS=$LIBS
9684 LIBS="-lpciaccess $LIBS"
9685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9686 /* end confdefs.h. */
9688 /* Override any GCC internal prototype to avoid an error.
9689 Use char because int might match the return type of a GCC
9690 builtin and then its argument prototype would still apply. */
9694 char pci_system_init ();
9698 return pci_system_init ();
9703 if ac_fn_c_try_link "$LINENO"; then :
9704 ac_cv_lib_pciaccess_pci_system_init=yes
9706 ac_cv_lib_pciaccess_pci_system_init=no
9708 rm -f core conftest.err conftest.$ac_objext \
9709 conftest$ac_exeext conftest.$ac_ext
9710 LIBS=$ac_check_lib_save_LIBS
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pciaccess_pci_system_init" >&5
9713 $as_echo "$ac_cv_lib_pciaccess_pci_system_init" >&6; }
9714 if test "x$ac_cv_lib_pciaccess_pci_system_init" = x""yes; then :
9715 LIBPCIACCESS="-lpciaccess"
9717 grub_emu_pci_excuse="need libpciaccess library"
9722 if [ x"$grub_emu_pci_excuse" = x ]; then
9723 # Check for headers.
9724 for ac_header in pci/pci.h
9726 ac_fn_c_check_header_mongrel "$LINENO" "pci/pci.h" "ac_cv_header_pci_pci_h" "$ac_includes_default"
9727 if test "x$ac_cv_header_pci_pci_h" = x""yes; then :
9728 cat >>confdefs.h <<_ACEOF
9729 @%:@define HAVE_PCI_PCI_H 1
9733 grub_emu_pci_excuse="need libpciaccess headers"
9740 if test x"$grub_emu_pci_excuse" = x ; then
9741 enable_grub_emu_pci=yes
9744 enable_grub_emu_pci=no
9752 @%:@ Check whether --enable-grub-fstest was given.
9753 if test "${enable_grub_fstest+set}" = set; then :
9754 enableval=$enable_grub_fstest;
9757 if test x"$enable_grub_fstest" = xno ; then
9758 grub_fstest_excuse="explicitly disabled"
9760 if test x"$grub_fstest_excuse" = x ; then
9761 enable_grub_fstest=yes
9763 enable_grub_fstest=no
9767 @%:@ Check whether --enable-grub-mkfont was given.
9768 if test "${enable_grub_mkfont+set}" = set; then :
9769 enableval=$enable_grub_mkfont;
9772 if test x"$enable_grub_mkfont" = xno ; then
9773 grub_mkfont_excuse="explicitly disabled"
9776 if test x"$grub_mkfont_excuse" = x ; then
9777 # Check for freetype libraries.
9778 for ac_prog in freetype-config
9780 # Extract the first word of "$ac_prog", so it can be a program name with args.
9781 set dummy $ac_prog; ac_word=$2
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9783 $as_echo_n "checking for $ac_word... " >&6; }
9784 if test "${ac_cv_prog_FREETYPE+set}" = set; then :
9785 $as_echo_n "(cached) " >&6
9787 if test -n "$FREETYPE"; then
9788 ac_cv_prog_FREETYPE="$FREETYPE" # Let the user override the test.
9790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9794 test -z "$as_dir" && as_dir=.
9795 for ac_exec_ext in '' $ac_executable_extensions; do
9796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9797 ac_cv_prog_FREETYPE="$ac_prog"
9798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9807 FREETYPE=$ac_cv_prog_FREETYPE
9808 if test -n "$FREETYPE"; then
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE" >&5
9810 $as_echo "$FREETYPE" >&6; }
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9813 $as_echo "no" >&6; }
9817 test -n "$FREETYPE" && break
9820 if test "x$FREETYPE" = x ; then
9821 grub_mkfont_excuse="need freetype2 library"
9823 freetype_cflags=`freetype-config --cflags`
9824 freetype_libs=`freetype-config --libs`
9827 if test x"$grub_mkfont_excuse" = x ; then
9828 # Check for freetype libraries.
9829 SAVED_CPPFLAGS="$CPPFLAGS"
9830 CPPFLAGS="$CPPFLAGS $freetype_cflags"
9831 for ac_header in ft2build.h
9833 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
9834 if test "x$ac_cv_header_ft2build_h" = x""yes; then :
9835 cat >>confdefs.h <<_ACEOF
9836 @%:@define HAVE_FT2BUILD_H 1
9840 grub_mkfont_excuse="need freetype2 headers"
9845 CPPFLAGS="$SAVED_CPPFLAGS"
9848 if test x"$enable_grub_mkfont" = xyes && test x"$grub_mkfont_excuse" != x ; then
9849 as_fn_error "grub-mkfont was explicitly requested but can't be compiled" "$LINENO" 5
9851 if test x"$grub_mkfont_excuse" = x ; then
9852 enable_grub_mkfont=yes
9854 enable_grub_mkfont=no
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln can handle directories properly" >&5
9865 $as_echo_n "checking whether ln can handle directories properly... " >&6; }
9866 mkdir testdir 2>/dev/null
9868 [\\/$]* | ?:[\\/]* ) reldir=$srcdir/include/grub/util ;;
9869 *) reldir=../$srcdir/include/grub/util ;;
9871 if ln -s $reldir testdir/util 2>/dev/null ; then
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9873 $as_echo "yes" >&6; }
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9878 $as_echo "no" >&6; }
9882 if test x"$link_dir" = xyes ; then
9883 ac_config_links="$ac_config_links include/grub/cpu:include/grub/$target_cpu"
9885 if test "$platform" != emu ; then
9886 ac_config_links="$ac_config_links include/grub/machine:include/grub/$target_cpu/$platform"
9890 mkdir -p include/grub 2>/dev/null
9891 rm -rf include/grub/cpu
9892 cp -rp $srcdir/include/grub/$target_cpu include/grub/cpu 2>/dev/null
9893 if test "$platform" != emu ; then
9894 rm -rf include/grub/machine
9895 cp -rp $srcdir/include/grub/$target_cpu/$platform include/grub/machine 2>/dev/null
9898 ac_config_files="$ac_config_files Makefile gensymlist.sh genkernsyms.sh"
9900 ac_config_files="$ac_config_files stamp-h"
9902 cat >confcache <<\_ACEOF
9903 # This file is a shell script that caches the results of configure
9904 # tests run on this system so they can be shared between configure
9905 # scripts and configure runs, see configure's option --config-cache.
9906 # It is not useful on other systems. If it contains results you don't
9907 # want to keep, you may remove or edit it.
9909 # config.status only pays attention to the cache file if you give it
9910 # the --recheck option to rerun configure.
9912 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9913 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9918 # The following way of writing the cache mishandles newlines in values,
9919 # but we know of no workaround that is simple, portable, and efficient.
9920 # So, we kill variables containing newlines.
9921 # Ultrix sh set writes to stderr and can't be redirected directly,
9922 # and sets the high bit in the cache file unless we assign to the vars.
9924 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9925 eval ac_val=\$$ac_var
9929 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9930 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9933 _ | IFS | as_nl) ;; #(
9934 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9935 *) { eval $ac_var=; unset $ac_var;} ;;
9941 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9942 *${as_nl}ac_space=\ *)
9943 # `set' does not quote correctly, so add quotes: double-quote
9944 # substitution turns \\\\ into \\, and sed turns \\ into \.
9947 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9950 # `set' quotes correctly as required by POSIX, so do not add quotes.
9951 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9960 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9962 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9964 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9965 if test -w "$cache_file"; then
9966 test "x$cache_file" != "x/dev/null" &&
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9968 $as_echo "$as_me: updating cache $cache_file" >&6;}
9969 cat confcache >$cache_file
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9972 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9977 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9978 # Let make expand exec_prefix.
9979 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9981 DEFS=-DHAVE_CONFIG_H
9985 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
9986 # 1. Remove the extension, and $U if already installed.
9987 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9988 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9989 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9990 # will be set to the directory where LIBOBJS objects are built.
9991 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9992 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9994 LIB@&t@OBJS=$ac_libobjs
9996 LTLIBOBJS=$ac_ltlibobjs
9999 if test -n "$EXEEXT"; then
10001 am__EXEEXT_FALSE='#'
10003 am__EXEEXT_TRUE='#'
10007 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10008 as_fn_error "conditional \"AMDEP\" was never defined.
10009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10011 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10012 as_fn_error "conditional \"am__fastdepCC\" was never defined.
10013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10017 : ${CONFIG_STATUS=./config.status}
10019 ac_clean_files_save=$ac_clean_files
10020 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10022 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10024 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10026 # Generated by $as_me.
10027 # Run this file to recreate the current configuration.
10028 # Compiler output produced by configure, useful for debugging
10029 # configure, is in config.log if it exists.
10032 ac_cs_recheck=false
10035 SHELL=\${CONFIG_SHELL-$SHELL}
10038 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10039 ## -------------------- ##
10040 ## M4sh Initialization. ##
10041 ## -------------------- ##
10043 # Be more Bourne compatible
10044 DUALCASE=1; export DUALCASE # for MKS sh
10045 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10048 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10049 # is contrary to our usage. Disable this feature.
10050 alias -g '${1+"$@"}'='"$@"'
10051 setopt NO_GLOB_SUBST
10053 case `(set -o) 2>/dev/null` in @%:@(
10055 set -o posix ;; @%:@(
10065 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10066 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10067 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10068 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10069 # Prefer a ksh shell builtin over an external printf program on Solaris,
10070 # but without wasting forks for bash or zsh.
10071 if test -z "$BASH_VERSION$ZSH_VERSION" \
10072 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10073 as_echo='print -r --'
10074 as_echo_n='print -rn --'
10075 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10076 as_echo='printf %s\n'
10077 as_echo_n='printf %s'
10079 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10080 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10081 as_echo_n='/usr/ucb/echo -n'
10083 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10084 as_echo_n_body='eval
10088 expr "X$arg" : "X\\(.*\\)$as_nl";
10089 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10091 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10093 export as_echo_n_body
10094 as_echo_n='sh -c $as_echo_n_body as_echo'
10096 export as_echo_body
10097 as_echo='sh -c $as_echo_body as_echo'
10100 # The user is always right.
10101 if test "${PATH_SEPARATOR+set}" != set; then
10103 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10104 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10111 # We need space, tab and new line, in precisely that order. Quoting is
10112 # there to prevent editors from complaining about space-tab.
10113 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10114 # splitting by setting IFS to empty value.)
10117 # Find who we are. Look in the path if we contain no directory separator.
10119 *[\\/]* ) as_myself=$0 ;;
10120 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10121 for as_dir in $PATH
10124 test -z "$as_dir" && as_dir=.
10125 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10131 # We did not find ourselves, most probably we were run as `sh COMMAND'
10132 # in which case we are not to be found in the path.
10133 if test "x$as_myself" = x; then
10136 if test ! -f "$as_myself"; then
10137 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10141 # Unset variables that we do not need and which cause bugs (e.g. in
10142 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10143 # suppresses any "Segmentation fault" message there. '((' could
10144 # trigger a bug in pdksh 5.2.14.
10145 for as_var in BASH_ENV ENV MAIL MAILPATH
10146 do eval test x\${$as_var+set} = xset \
10147 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10160 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10163 @%:@ as_fn_error ERROR [LINENO LOG_FD]
10164 @%:@ ---------------------------------
10165 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10166 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10167 @%:@ script with status @S|@?, using 1 if that was 0.
10170 as_status=$?; test $as_status -eq 0 && as_status=1
10172 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10173 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
10175 $as_echo "$as_me: error: $1" >&2
10176 as_fn_exit $as_status
10180 @%:@ as_fn_set_status STATUS
10181 @%:@ -----------------------
10182 @%:@ Set @S|@? to STATUS, without forking.
10183 as_fn_set_status ()
10186 } @%:@ as_fn_set_status
10188 @%:@ as_fn_exit STATUS
10189 @%:@ -----------------
10190 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10194 as_fn_set_status $1
10198 @%:@ as_fn_unset VAR
10199 @%:@ ---------------
10200 @%:@ Portably unset VAR.
10203 { eval $1=; unset $1;}
10205 as_unset=as_fn_unset
10206 @%:@ as_fn_append VAR VALUE
10207 @%:@ ----------------------
10208 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
10209 @%:@ advantage of any shell optimizations that allow amortized linear growth over
10210 @%:@ repeated appends, instead of the typical quadratic growth present in naive
10211 @%:@ implementations.
10212 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10213 eval 'as_fn_append ()
10224 @%:@ as_fn_arith ARG...
10225 @%:@ ------------------
10226 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
10227 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
10228 @%:@ must be portable across @S|@(()) and expr.
10229 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10230 eval 'as_fn_arith ()
10237 as_val=`expr "$@" || test $? -eq 1`
10242 if expr a : '\(a\)' >/dev/null 2>&1 &&
10243 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10249 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10250 as_basename=basename
10255 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10261 as_me=`$as_basename -- "$0" ||
10262 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10263 X"$0" : 'X\(//\)$' \| \
10264 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10266 sed '/^.*\/\([^/][^/]*\)\/*$/{
10280 # Avoid depending upon Character Ranges.
10281 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10282 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10283 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10284 as_cr_digits='0123456789'
10285 as_cr_alnum=$as_cr_Letters$as_cr_digits
10287 ECHO_C= ECHO_N= ECHO_T=
10288 case `echo -n x` in @%:@(((((
10290 case `echo 'xy\c'` in
10291 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10293 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10300 rm -f conf$$ conf$$.exe conf$$.file
10301 if test -d conf$$.dir; then
10302 rm -f conf$$.dir/conf$$.file
10305 mkdir conf$$.dir 2>/dev/null
10307 if (echo >conf$$.file) 2>/dev/null; then
10308 if ln -s conf$$.file conf$$ 2>/dev/null; then
10310 # ... but there are two gotchas:
10311 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10312 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10313 # In both cases, we have to default to `cp -p'.
10314 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10316 elif ln conf$$.file conf$$ 2>/dev/null; then
10324 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10325 rmdir conf$$.dir 2>/dev/null
10330 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
10335 -*) as_dir=./$as_dir;;
10337 test -d "$as_dir" || eval $as_mkdir_p || {
10341 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10342 *) as_qdir=$as_dir;;
10344 as_dirs="'$as_qdir' $as_dirs"
10345 as_dir=`$as_dirname -- "$as_dir" ||
10346 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10347 X"$as_dir" : 'X\(//\)[^/]' \| \
10348 X"$as_dir" : 'X\(//\)$' \| \
10349 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10350 $as_echo X"$as_dir" |
10351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10355 /^X\(\/\/\)[^/].*/{
10368 test -d "$as_dir" && break
10370 test -z "$as_dirs" || eval "mkdir $as_dirs"
10371 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
10374 } @%:@ as_fn_mkdir_p
10375 if mkdir -p . 2>/dev/null; then
10376 as_mkdir_p='mkdir -p "$as_dir"'
10378 test -d ./-p && rmdir ./-p
10382 if test -x / >/dev/null 2>&1; then
10383 as_test_x='test -x'
10385 if ls -dL / >/dev/null 2>&1; then
10392 if test -d "$1"; then
10398 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
10399 ???[sx]*):;;*)false;;esac;fi
10403 as_executable_p=$as_test_x
10405 # Sed expression to map a string onto a valid CPP name.
10406 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10408 # Sed expression to map a string onto a valid variable name.
10409 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10413 ## ----------------------------------- ##
10414 ## Main body of $CONFIG_STATUS script. ##
10415 ## ----------------------------------- ##
10417 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10420 # Save the log message, to keep $0 and so on meaningful, and to
10421 # report actual input values of CONFIG_FILES etc. instead of their
10422 # values after options handling.
10424 This file was extended by GRUB $as_me 1.98, which was
10425 generated by GNU Autoconf 2.65. Invocation command line was
10427 CONFIG_FILES = $CONFIG_FILES
10428 CONFIG_HEADERS = $CONFIG_HEADERS
10429 CONFIG_LINKS = $CONFIG_LINKS
10430 CONFIG_COMMANDS = $CONFIG_COMMANDS
10433 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10438 case $ac_config_files in *"
10439 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10442 case $ac_config_headers in *"
10443 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10448 # Files that config.status was made for.
10449 config_files="$ac_config_files"
10450 config_headers="$ac_config_headers"
10451 config_links="$ac_config_links"
10452 config_commands="$ac_config_commands"
10456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10458 \`$as_me' instantiates files and other configuration actions
10459 from templates according to the current configuration. Unless the files
10460 and actions are specified as TAGs, all are instantiated by default.
10462 Usage: $0 [OPTION]... [TAG]...
10464 -h, --help print this help, then exit
10465 -V, --version print version number and configuration settings, then exit
10466 --config print configuration, then exit
10467 -q, --quiet, --silent
10468 do not print progress messages
10469 -d, --debug don't remove temporary files
10470 --recheck update $as_me by reconfiguring in the same conditions
10471 --file=FILE[:TEMPLATE]
10472 instantiate the configuration file FILE
10473 --header=FILE[:TEMPLATE]
10474 instantiate the configuration header FILE
10476 Configuration files:
10479 Configuration headers:
10482 Configuration links:
10485 Configuration commands:
10488 Report bugs to <bug-grub@gnu.org>."
10491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10492 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10494 GRUB config.status 1.98
10495 configured by $0, generated by GNU Autoconf 2.65,
10496 with options \\"\$ac_cs_config\\"
10498 Copyright (C) 2009 Free Software Foundation, Inc.
10499 This config.status script is free software; the Free Software Foundation
10500 gives unlimited permission to copy, distribute and modify it."
10507 test -n "\$AWK" || AWK=awk
10510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10511 # The default lists apply if the user does not specify any file.
10517 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10518 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10529 # Handling of the options.
10530 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10532 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10533 $as_echo "$ac_cs_version"; exit ;;
10534 --config | --confi | --conf | --con | --co | --c )
10535 $as_echo "$ac_cs_config"; exit ;;
10536 --debug | --debu | --deb | --de | --d | -d )
10538 --file | --fil | --fi | --f )
10541 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10543 as_fn_append CONFIG_FILES " '$ac_optarg'"
10544 ac_need_defaults=false;;
10545 --header | --heade | --head | --hea )
10548 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10550 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10551 ac_need_defaults=false;;
10553 # Conflict between --help and --header
10554 as_fn_error "ambiguous option: \`$1'
10555 Try \`$0 --help' for more information.";;
10556 --help | --hel | -h )
10557 $as_echo "$ac_cs_usage"; exit ;;
10558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10559 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10562 # This is an error.
10563 -*) as_fn_error "unrecognized option: \`$1'
10564 Try \`$0 --help' for more information." ;;
10566 *) as_fn_append ac_config_targets " $1"
10567 ac_need_defaults=false ;;
10573 ac_configure_extra_args=
10575 if $ac_cs_silent; then
10577 ac_configure_extra_args="$ac_configure_extra_args --silent"
10581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10582 if \$ac_cs_recheck; then
10583 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10585 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10586 CONFIG_SHELL='$SHELL'
10587 export CONFIG_SHELL
10592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10596 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
10597 @%:@@%:@ Running $as_me. @%:@@%:@
10603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10607 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10608 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
10609 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
10610 # from automake < 1.5.
10611 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
10612 # Capture the value of LINGUAS because we need it to compute CATALOGS.
10613 LINGUAS="${LINGUAS-%UNSET%}"
10618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10620 # Handling of arguments.
10621 for ac_config_target in $ac_config_targets
10623 case $ac_config_target in
10624 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10625 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10626 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
10627 "include/grub/cpu") CONFIG_LINKS="$CONFIG_LINKS include/grub/cpu:include/grub/$target_cpu" ;;
10628 "include/grub/machine") CONFIG_LINKS="$CONFIG_LINKS include/grub/machine:include/grub/$target_cpu/$platform" ;;
10629 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10630 "gensymlist.sh") CONFIG_FILES="$CONFIG_FILES gensymlist.sh" ;;
10631 "genkernsyms.sh") CONFIG_FILES="$CONFIG_FILES genkernsyms.sh" ;;
10632 "stamp-h") CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
10634 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10639 # If the user did not use the arguments to specify the items to instantiate,
10640 # then the envvar interface is used. Set only those that are not.
10641 # We use the long form for the default assignment because of an extremely
10642 # bizarre bug on SunOS 4.1.3.
10643 if $ac_need_defaults; then
10644 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10645 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10646 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
10647 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10650 # Have a temporary directory for convenience. Make it in the build tree
10651 # simply because there is no reason against having it here, and in addition,
10652 # creating and moving files from /tmp can sometimes cause problems.
10653 # Hook for its removal unless debugging.
10654 # Note that there is a small window in which the directory will not be cleaned:
10655 # after its creation but before its name has been assigned to `$tmp'.
10659 trap 'exit_status=$?
10660 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10662 trap 'as_fn_exit 1' 1 2 13 15
10664 # Create a (secure) tmp directory for tmp files.
10667 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10668 test -n "$tmp" && test -d "$tmp"
10671 tmp=./conf$$-$RANDOM
10672 (umask 077 && mkdir "$tmp")
10673 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
10675 # Set up the scripts for CONFIG_FILES section.
10676 # No need to generate them if there are no CONFIG_FILES.
10677 # This happens for instance with `./config.status config.h'.
10678 if test -n "$CONFIG_FILES"; then
10681 ac_cr=`echo X | tr X '\015'`
10682 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10683 # But we know of no other shell where ac_cr would be empty at this
10684 # point, so we can use a bashism as a fallback.
10685 if test "x$ac_cr" = x; then
10686 eval ac_cr=\$\'\\r\'
10688 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10689 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10692 ac_cs_awk_cr=$ac_cr
10695 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10700 echo "cat >conf$$subs.awk <<_ACEOF" &&
10701 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10703 } >conf$$subs.sh ||
10704 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10705 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10707 for ac_last_try in false false false false false :; do
10708 . ./conf$$subs.sh ||
10709 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10711 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10712 if test $ac_delim_n = $ac_delim_num; then
10714 elif $ac_last_try; then
10715 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10717 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10720 rm -f conf$$subs.sh
10722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10723 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10727 s/^/S["/; s/!.*/"]=/
10737 s/\(.\{148\}\)..*/\1/
10739 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10744 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10751 s/\(.\{148\}\)..*/\1/
10753 s/["\\]/\\&/g; s/^/"/; s/$/"/
10757 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10762 ' <conf$$subs.awk | sed '
10767 ' >>$CONFIG_STATUS || ac_write_fail=1
10768 rm -f conf$$subs.awk
10769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10771 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10772 for (key in S) S_is_set[key] = 1
10778 nfields = split(line, field, "@")
10780 len = length(field[1])
10781 for (i = 2; i < nfields; i++) {
10783 keylen = length(key)
10784 if (S_is_set[key]) {
10786 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10787 len += length(value) + length(field[++i])
10798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10799 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10800 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10803 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10804 || as_fn_error "could not setup config files machinery" "$LINENO" 5
10807 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10808 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10809 # trailing colons and then remove the whole line if VPATH becomes empty
10810 # (actually we leave an empty line to preserve line numbers).
10811 if test "x$srcdir" = x.; then
10812 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10813 s/:*\$(srcdir):*/:/
10814 s/:*\${srcdir}:*/:/
10816 s/^\([^=]*=[ ]*\):*/\1/
10822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10823 fi # test -n "$CONFIG_FILES"
10825 # Set up the scripts for CONFIG_HEADERS section.
10826 # No need to generate them if there are no CONFIG_HEADERS.
10827 # This happens for instance with `./config.status Makefile'.
10828 if test -n "$CONFIG_HEADERS"; then
10829 cat >"$tmp/defines.awk" <<\_ACAWK ||
10833 # Transform confdefs.h into an awk script `defines.awk', embedded as
10834 # here-document in config.status, that substitutes the proper values into
10835 # config.h.in to produce config.h.
10837 # Create a delimiter string that does not exist in confdefs.h, to ease
10838 # handling of long lines.
10840 for ac_last_try in false false :; do
10841 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10842 if test -z "$ac_t"; then
10844 elif $ac_last_try; then
10845 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
10847 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10851 # For the awk script, D is an array of macro values keyed by name,
10852 # likewise P contains macro parameters if any. Preserve backslash
10853 # newline sequences.
10855 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10857 s/.\{148\}/&'"$ac_delim"'/g
10860 s/^[ ]*#[ ]*define[ ][ ]*/ /
10867 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10869 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10873 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10874 D["\1"]=" \3\\\\\\n"\\/p
10876 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10881 s/.\{148\}/&'"$ac_delim"'/g
10886 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10889 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10891 ' <confdefs.h | sed '
10892 s/'"$ac_delim"'/"\\\
10893 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10896 for (key in D) D_is_set[key] = 1
10899 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10901 split(line, arg, " ")
10902 if (arg[1] == "#") {
10906 defundef = substr(arg[1], 2)
10909 split(mac1, mac2, "(") #)
10911 prefix = substr(line, 1, index(line, defundef) - 1)
10912 if (D_is_set[macro]) {
10913 # Preserve the white space surrounding the "#".
10914 print prefix "define", macro P[macro] D[macro]
10917 # Replace #undef with comments. This is necessary, for example,
10918 # in the case of _POSIX_SOURCE, which is predefined and required
10919 # on some systems where configure will not decide to define it.
10920 if (defundef == "undef") {
10921 print "/*", prefix defundef, macro, "*/"
10929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10930 as_fn_error "could not setup config headers machinery" "$LINENO" 5
10931 fi # test -n "$CONFIG_HEADERS"
10934 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
10939 :[FHLC]) ac_mode=$ac_tag; continue;;
10941 case $ac_mode$ac_tag in
10943 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
10944 :[FH]-) ac_tag=-:-;;
10945 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10962 -) ac_f="$tmp/stdin";;
10963 *) # Look for the file first in the build tree, then in the source tree
10964 # (if the path is not absolute). The absolute path cannot be DOS-style,
10965 # because $ac_f cannot contain `:'.
10969 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10971 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10973 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10974 as_fn_append ac_file_inputs " '$ac_f'"
10977 # Let's still pretend it is `configure' which instantiates (i.e., don't
10978 # use $as_me), people would be surprised to read:
10979 # /* config.h. Generated by config.status. */
10980 configure_input='Generated from '`
10981 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10983 if test x"$ac_file" != x-; then
10984 configure_input="$ac_file. $configure_input"
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10986 $as_echo "$as_me: creating $ac_file" >&6;}
10988 # Neutralize special characters interpreted by sed in replacement strings.
10989 case $configure_input in #(
10990 *\&* | *\|* | *\\* )
10991 ac_sed_conf_input=`$as_echo "$configure_input" |
10992 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10993 *) ac_sed_conf_input=$configure_input;;
10997 *:-:* | *:-) cat >"$tmp/stdin" \
10998 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
11003 ac_dir=`$as_dirname -- "$ac_file" ||
11004 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11005 X"$ac_file" : 'X\(//\)[^/]' \| \
11006 X"$ac_file" : 'X\(//\)$' \| \
11007 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11008 $as_echo X"$ac_file" |
11009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11013 /^X\(\/\/\)[^/].*/{
11026 as_dir="$ac_dir"; as_fn_mkdir_p
11030 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11032 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11033 # A ".." for each directory in $ac_dir_suffix.
11034 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11035 case $ac_top_builddir_sub in
11036 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11037 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11040 ac_abs_top_builddir=$ac_pwd
11041 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11042 # for backward compatibility:
11043 ac_top_builddir=$ac_top_build_prefix
11046 .) # We are building in place.
11048 ac_top_srcdir=$ac_top_builddir_sub
11049 ac_abs_top_srcdir=$ac_pwd ;;
11050 [\\/]* | ?:[\\/]* ) # Absolute name.
11051 ac_srcdir=$srcdir$ac_dir_suffix;
11052 ac_top_srcdir=$srcdir
11053 ac_abs_top_srcdir=$srcdir ;;
11054 *) # Relative name.
11055 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11056 ac_top_srcdir=$ac_top_build_prefix$srcdir
11057 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11059 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11069 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11070 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11072 ac_MKDIR_P=$MKDIR_P
11074 [\\/$]* | ?:[\\/]* ) ;;
11075 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11080 # If the template does not know about datarootdir, expand it.
11081 # FIXME: This hack should be removed a few years after 2.60.
11082 ac_datarootdir_hack=; ac_datarootdir_seen=
11093 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11094 *datarootdir*) ac_datarootdir_seen=yes;;
11095 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11097 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11100 ac_datarootdir_hack='
11101 s&@datadir@&$datadir&g
11102 s&@docdir@&$docdir&g
11103 s&@infodir@&$infodir&g
11104 s&@localedir@&$localedir&g
11105 s&@mandir@&$mandir&g
11106 s&\\\${datarootdir}&$datarootdir&g' ;;
11110 # Neutralize VPATH when `$srcdir' = `.'.
11111 # Shell code in configure.ac might set extrasub.
11112 # FIXME: do we really want to maintain this feature?
11113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11114 ac_sed_extra="$ac_vpsub
11117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11119 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11120 s|@configure_input@|$ac_sed_conf_input|;t t
11121 s&@top_builddir@&$ac_top_builddir_sub&;t t
11122 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11123 s&@srcdir@&$ac_srcdir&;t t
11124 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11125 s&@top_srcdir@&$ac_top_srcdir&;t t
11126 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11127 s&@builddir@&$ac_builddir&;t t
11128 s&@abs_builddir@&$ac_abs_builddir&;t t
11129 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11130 s&@INSTALL@&$ac_INSTALL&;t t
11131 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11132 $ac_datarootdir_hack
11134 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11135 || as_fn_error "could not create $ac_file" "$LINENO" 5
11137 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11138 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11139 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11141 which seems to be undefined. Please make sure it is defined." >&5
11142 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11143 which seems to be undefined. Please make sure it is defined." >&2;}
11147 -) cat "$tmp/out" && rm -f "$tmp/out";;
11148 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11150 || as_fn_error "could not create $ac_file" "$LINENO" 5
11156 if test x"$ac_file" != x-; then
11158 $as_echo "/* $configure_input */" \
11159 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11160 } >"$tmp/config.h" \
11161 || as_fn_error "could not create $ac_file" "$LINENO" 5
11162 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11164 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11167 mv "$tmp/config.h" "$ac_file" \
11168 || as_fn_error "could not create $ac_file" "$LINENO" 5
11171 $as_echo "/* $configure_input */" \
11172 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11173 || as_fn_error "could not create -" "$LINENO" 5
11175 # Compute "$ac_file"'s index in $config_headers.
11178 for _am_header in $config_headers :; do
11179 case $_am_header in
11180 $_am_arg | $_am_arg:* )
11183 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11186 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11187 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11188 X"$_am_arg" : 'X\(//\)[^/]' \| \
11189 X"$_am_arg" : 'X\(//\)$' \| \
11190 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11191 $as_echo X"$_am_arg" |
11192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11196 /^X\(\/\/\)[^/].*/{
11208 s/.*/./; q'`/stamp-h$_am_stamp_count
11215 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
11218 # Prefer the file from the source tree if names are identical.
11219 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
11220 ac_source=$srcdir/$ac_source
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
11224 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
11226 if test ! -r "$ac_source"; then
11227 as_fn_error "$ac_source: file not found" "$LINENO" 5
11231 # Try a relative symlink, then a hard link, then a copy.
11233 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
11234 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
11236 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
11237 ln "$ac_source" "$ac_file" 2>/dev/null ||
11238 cp -p "$ac_source" "$ac_file" ||
11239 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
11242 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11243 $as_echo "$as_me: executing $ac_file commands" >&6;}
11248 case $ac_file$ac_mode in
11249 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11250 # Autoconf 2.62 quotes --file arguments for eval, but not when files
11251 # are listed without --file. Let's play safe and only enable the eval
11252 # if we detect the quoting.
11253 case $CONFIG_FILES in
11254 *\'*) eval set x "$CONFIG_FILES" ;;
11255 *) set x $CONFIG_FILES ;;
11260 # Strip MF so we end up with the name of the file.
11261 mf=`echo "$mf" | sed -e 's/:.*$//'`
11262 # Check whether this is an Automake generated Makefile or not.
11263 # We used to match only the files named `Makefile.in', but
11264 # some people rename them; so instead we look at the file content.
11265 # Grep'ing the first line is not enough: some people post-process
11266 # each Makefile.in and add a new line on top of each file to say so.
11267 # Grep'ing the whole file is not good either: AIX grep has a line
11268 # limit of 2048, but all sed's we know have understand at least 4000.
11269 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11270 dirpart=`$as_dirname -- "$mf" ||
11271 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11272 X"$mf" : 'X\(//\)[^/]' \| \
11273 X"$mf" : 'X\(//\)$' \| \
11274 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11280 /^X\(\/\/\)[^/].*/{
11296 # Extract the definition of DEPDIR, am__include, and am__quote
11297 # from the Makefile without running `make'.
11298 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11299 test -z "$DEPDIR" && continue
11300 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11301 test -z "am__include" && continue
11302 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11303 # When using ansi2knr, U may be empty or an underscore; expand it
11304 U=`sed -n 's/^U = //p' < "$mf"`
11305 # Find all dependency output files, they are included files with
11306 # $(DEPDIR) in their names. We invoke sed twice because it is the
11307 # simplest approach to changing $(DEPDIR) to its actual value in the
11309 for file in `sed -n "
11310 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11311 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11312 # Make sure the directory exists.
11313 test -f "$dirpart/$file" && continue
11314 fdir=`$as_dirname -- "$file" ||
11315 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11316 X"$file" : 'X\(//\)[^/]' \| \
11317 X"$file" : 'X\(//\)$' \| \
11318 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11319 $as_echo X"$file" |
11320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11324 /^X\(\/\/\)[^/].*/{
11337 as_dir=$dirpart/$fdir; as_fn_mkdir_p
11338 # echo "creating $dirpart/$file"
11339 echo '# dummy' > "$dirpart/$file"
11344 "po-directories":C)
11345 for ac_file in $CONFIG_FILES; do
11346 # Support "outfile[:infile[:infile...]]"
11348 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11350 # PO directories have a Makefile.in generated from Makefile.in.in.
11351 case "$ac_file" in */Makefile.in)
11352 # Adjust a relative srcdir.
11353 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
11354 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
11355 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
11356 # In autoconf-2.13 it is called $ac_given_srcdir.
11357 # In autoconf-2.50 it is called $srcdir.
11358 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
11359 case "$ac_given_srcdir" in
11360 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
11361 /*) top_srcdir="$ac_given_srcdir" ;;
11362 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
11364 # Treat a directory as a PO directory if and only if it has a
11365 # POTFILES.in file. This allows packages to have multiple PO
11366 # directories under different names or in different locations.
11367 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
11368 rm -f "$ac_dir/POTFILES"
11369 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
11370 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
11371 POMAKEFILEDEPS="POTFILES.in"
11372 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
11373 # on $ac_dir but don't depend on user-specified configuration
11375 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
11376 # The LINGUAS file contains the set of available languages.
11377 if test -n "$OBSOLETE_ALL_LINGUAS"; then
11378 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
11380 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
11381 # Hide the ALL_LINGUAS assigment from automake < 1.5.
11382 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
11383 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
11385 # The set of available languages was given in configure.in.
11386 # Hide the ALL_LINGUAS assigment from automake < 1.5.
11387 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
11390 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
11391 # Compute UPDATEPOFILES
11392 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
11393 # Compute DUMMYPOFILES
11394 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
11396 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
11397 case "$ac_given_srcdir" in
11399 *) srcdirpre='$(srcdir)/' ;;
11405 for lang in $ALL_LINGUAS; do
11406 POFILES="$POFILES $srcdirpre$lang.po"
11407 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
11408 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
11409 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
11411 # CATALOGS depends on both $ac_dir and the user's LINGUAS
11412 # environment variable.
11414 if test -n "$ALL_LINGUAS"; then
11415 for presentlang in $ALL_LINGUAS; do
11417 if test "%UNSET%" != "$LINGUAS"; then
11418 desiredlanguages="$LINGUAS"
11420 desiredlanguages="$ALL_LINGUAS"
11422 for desiredlang in $desiredlanguages; do
11423 # Use the presentlang catalog if desiredlang is
11424 # a. equal to presentlang, or
11425 # b. a variant of presentlang (because in this case,
11426 # presentlang can be used as a fallback for messages
11427 # which are not translated in the desiredlang catalog).
11428 case "$desiredlang" in
11429 "$presentlang"*) useit=yes;;
11432 if test $useit = yes; then
11433 INST_LINGUAS="$INST_LINGUAS $presentlang"
11438 if test -n "$INST_LINGUAS"; then
11439 for lang in $INST_LINGUAS; do
11440 CATALOGS="$CATALOGS $lang.gmo"
11443 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
11444 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
11445 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
11446 if test -f "$f"; then
11448 *.orig | *.bak | *~) ;;
11449 *) cat "$f" >> "$ac_dir/Makefile" ;;
11457 "stamp-h":F) echo timestamp > stamp-h ;;
11465 ac_clean_files=$ac_clean_files_save
11467 test $ac_write_fail = 0 ||
11468 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
11471 # configure is writing to config.log, and then calls config.status.
11472 # config.status does its own redirection, appending to config.log.
11473 # Unfortunately, on DOS this fails, as config.log is still kept open
11474 # by configure, so config.status won't be able to write to it; its
11475 # output is simply discarded. So we exec the FD to /dev/null,
11476 # effectively closing config.log, so it can be properly (re)opened and
11477 # appended to by config.status. When coming back to configure, we
11478 # need to make the FD available again.
11479 if test "$no_create" != yes; then
11481 ac_config_status_args=
11482 test "$silent" = yes &&
11483 ac_config_status_args="$ac_config_status_args --quiet"
11485 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11487 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11488 # would make configure fail if this is the last instruction.
11489 $ac_cs_success || as_fn_exit $?
11491 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11493 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11497 echo "*******************************************************"
11498 echo GRUB2 will be compiled with following components:
11499 echo Platform: "$target_cpu"-"$platform"
11500 if [ x"$platform" = xemu ]; then
11501 if [ x"$grub_emu_usb_excuse" = x ]; then
11502 echo USB support for grub-emu: Yes
11504 echo USB support for grub-emu: No "($grub_emu_usb_excuse)"
11506 if [ x"$grub_emu_sdl_excuse" = x ]; then
11507 echo SDL support for grub-emu: Yes
11509 echo SDL support for grub-emu: No "($grub_emu_sdl_excuse)"
11511 if [ x"$grub_emu_pci_excuse" = x ]; then
11512 echo PCI support for grub-emu: Yes
11514 echo PCI support for grub-emu: No "($grub_emu_pci_excuse)"
11517 if [ x"$enable_mm_debug" = xyes ]; then
11518 echo With memory debugging: Yes
11520 echo With memory debugging: No
11522 if [ x"$efiemu_excuse" = x ]; then
11523 echo efiemu runtime: Yes
11525 echo efiemu runtime: No "($efiemu_excuse)"
11527 if [ x"$grub_fstest_excuse" = x ]; then
11528 echo grub-fstest: Yes
11530 echo grub-fstest: No "($grub_fstest_excuse)"
11532 if [ x"$grub_mkfont_excuse" = x ]; then
11533 echo grub-mkfont: Yes
11535 echo grub-mkfont: No "($grub_mkfont_excuse)"
11537 echo "*******************************************************"