2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for GRUB 2.00.
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, 2010 Free Software
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.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x
; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var
in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\
${$as_var+set} = xset \
124 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
137 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x
; then
140 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required
="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev
/null
; then :
183 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
188 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir
=.
195 for as_base
in sh bash ksh sh5
; do
196 # Try only shells that exist, to save several forks.
197 as_shell
=$as_dir/$as_base
198 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
200 CONFIG_SHELL
=$as_shell as_have_required
=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
209 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
211 CONFIG_SHELL
=$SHELL as_have_required
=yes
216 if test "x$CONFIG_SHELL" != x
; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
226 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x
$as_have_required = xno
; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x
${ZSH_VERSION+set} = xset
; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-grub@gnu.org
242 $0: about your system, including any error possibly output
243 $0: before this message. Then install a modern shell, or
244 $0: manually run the script under such a shell if you do
251 SHELL
=${CONFIG_SHELL-/bin/sh}
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE
= GREP_OPTIONS
=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
262 # Portably unset VAR.
265 { eval $1=; unset $1;}
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 # Create "$as_dir" as a directory, including parents if necessary.
294 -*) as_dir
=.
/$as_dir;;
296 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
300 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
303 as_dirs
="'$as_qdir' $as_dirs"
304 as_dir
=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
327 test -d "$as_dir" && break
329 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
330 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
341 eval 'as_fn_append ()
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
365 as_val
=`expr "$@" || test $? -eq 1`
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
377 as_status
=$1; test $as_status -eq 0 && as_status
=1
379 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit
$as_status
386 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
393 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
405 as_me
=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
424 # Avoid depending upon Character Ranges.
425 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits
='0123456789'
429 as_cr_alnum
=$as_cr_Letters$as_cr_digits
432 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
433 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 chmod +x
"$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
463 ECHO_C
= ECHO_N
= ECHO_T
=
464 case `echo -n x` in #(((((
466 case `echo 'xy\c'` in
467 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
476 rm -f conf$$ conf$$.exe conf$$.
file
477 if test -d conf$$.dir
; then
478 rm -f conf$$.dir
/conf$$.
file
481 mkdir conf$$.dir
2>/dev
/null
483 if (echo >conf$$.
file) 2>/dev
/null
; then
484 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
492 elif ln conf$$.
file conf$$
2>/dev
/null
; then
500 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
501 rmdir conf$$.dir
2>/dev
/null
503 if mkdir
-p .
2>/dev
/null
; then
504 as_mkdir_p
='mkdir -p "$as_dir"'
506 test -d .
/-p && rmdir .
/-p
510 if test -x / >/dev
/null
2>&1; then
513 if ls -dL / >/dev
/null
2>&1; then
520 if test -d "$1"; then
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
531 as_executable_p
=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix
=/usr
/local
553 ac_config_libobj_dir
=.
560 # Identity of this package.
562 PACKAGE_TARNAME
='grub'
563 PACKAGE_VERSION
='2.00'
564 PACKAGE_STRING
='GRUB 2.00'
565 PACKAGE_BUGREPORT
='bug-grub@gnu.org'
568 ac_unique_file
="include/grub/dl.h"
569 # Factoring default headers for most tests.
570 ac_includes_default
="\
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
582 # ifdef HAVE_STDLIB_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
608 gl_fnmatch_required
=POSIX
609 gl_getopt_required
=POSIX
610 gl_getopt_required
=POSIX
611 ac_subst_vars
='gltests_LTLIBOBJS
623 COND_HAVE_ASM_USCORE_FALSE
624 COND_HAVE_ASM_USCORE_TRUE
625 COND_ENABLE_CACHE_STATS_FALSE
626 COND_ENABLE_CACHE_STATS_TRUE
627 COND_ENABLE_EFIEMU_FALSE
628 COND_ENABLE_EFIEMU_TRUE
631 COND_GRUB_PE2ELF_FALSE
632 COND_GRUB_PE2ELF_TRUE
633 COND_HAVE_FONT_SOURCE_FALSE
634 COND_HAVE_FONT_SOURCE_TRUE
635 COND_GRUB_MOUNT_FALSE
637 COND_GRUB_MKFONT_FALSE
638 COND_GRUB_MKFONT_TRUE
639 COND_GRUB_EMU_PCI_FALSE
640 COND_GRUB_EMU_PCI_TRUE
641 COND_GRUB_EMU_SDL_FALSE
642 COND_GRUB_EMU_SDL_TRUE
643 COND_GRUB_EMU_USB_FALSE
644 COND_GRUB_EMU_USB_TRUE
647 COND_HOST_ILLUMOS_FALSE
648 COND_HOST_ILLUMOS_TRUE
651 COND_HOST_KFREEBSD_FALSE
652 COND_HOST_KFREEBSD_TRUE
653 COND_HOST_WINDOWS_FALSE
654 COND_HOST_WINDOWS_TRUE
655 COND_HOST_NETBSD_FALSE
656 COND_HOST_NETBSD_TRUE
657 COND_HOST_LINUX_FALSE
667 COND_powerpc_ieee1275_FALSE
668 COND_powerpc_ieee1275_TRUE
669 COND_sparc64_ieee1275_FALSE
670 COND_sparc64_ieee1275_TRUE
673 COND_mips_qemu_mips_FALSE
674 COND_mips_qemu_mips_TRUE
675 COND_mips_loongson_FALSE
676 COND_mips_loongson_TRUE
677 COND_x86_64_efi_FALSE
679 COND_i386_multiboot_FALSE
680 COND_i386_multiboot_TRUE
681 COND_i386_coreboot_FALSE
682 COND_i386_coreboot_TRUE
683 COND_i386_ieee1275_FALSE
684 COND_i386_ieee1275_TRUE
695 NEED_REGISTER_FRAME_INFO
696 NEED_ENABLE_EXECUTE_STACK
703 GRUB_BOOT_MACHINE_LINK_ADDR
727 TARGET_IMG_BASE_LDOPT
743 TARGET_LDFLAGS_OLDMAGIC
758 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
765 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
768 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
772 NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H
774 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H
776 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
778 NEXT_AS_FIRST_DIRECTIVE_STRING_H
780 HAVE_DECL_STRNCASECMP
783 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
785 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
796 HAVE_SIGNED_SIG_ATOMIC_T
799 BITSIZEOF_SIG_ATOMIC_T
805 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
809 HAVE_UNSIGNED_LONG_LONG_INT
811 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
818 APPLE_UNIVERSAL_BUILD
895 REPLACE_CANONICALIZE_FILE_NAME
900 HAVE_STRUCT_RANDOM_DATA
917 HAVE_CANONICALIZE_FILE_NAME
941 GNULIB_CANONICALIZE_FILE_NAME
945 LOCALCHARSET_TESTS_ENVIRONMENT
947 HAVE_LANGINFO_YESEXPR
949 HAVE_LANGINFO_T_FMT_AMPM
950 HAVE_LANGINFO_CODESET
952 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
958 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
960 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
961 UNISTD_H_HAVE_WINSOCK2_H
987 HAVE_DECL_GETUSERSHELL
988 HAVE_DECL_GETPAGESIZE
1024 GNULIB_UNISTD_H_SIGPIPE
1025 GNULIB_UNISTD_H_GETOPT
1046 GNULIB_GETDTABLESIZE
1047 GNULIB_GETDOMAINNAME
1067 REPLACE_STDIO_WRITE_FUNCS
1076 REPLACE_OBSTACK_PRINTF
1098 HAVE_DECL_OBSTACK_PRINTF
1102 GNULIB_VSPRINTF_POSIX
1104 GNULIB_VPRINTF_POSIX
1106 GNULIB_VFPRINTF_POSIX
1111 GNULIB_STDIO_H_SIGPIPE
1112 GNULIB_SPRINTF_POSIX
1124 GNULIB_OBSTACK_PRINTF_POSIX
1125 GNULIB_OBSTACK_PRINTF
1137 GNULIB_FPRINTF_POSIX
1145 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1154 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1156 PRAGMA_SYSTEM_HEADER
1157 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1197 GL_COND_LIBTOOL_FALSE
1198 GL_COND_LIBTOOL_TRUE
1209 XGETTEXT_EXTRA_OPTIONS
1217 GETTEXT_MACRO_VERSION
1219 am__fastdepCCAS_FALSE
1220 am__fastdepCCAS_TRUE
1264 INSTALL_STRIP_PROGRAM
1318 program_transform_name
1331 enable_option_checking
1335 enable_dependency_tracking
1339 with_libiconv_prefix
1352 enable_device_mapper
1355 ac_precious_vars
='build_alias
1375 # Initialize some variables set by options.
1377 ac_init_version
=false
1378 ac_unrecognized_opts
=
1379 ac_unrecognized_sep
=
1380 # The variables have the same names as the options, with
1381 # dashes changed to underlines.
1382 cache_file
=/dev
/null
1389 program_transform_name
=s
,x
,x
,
1397 # Installation directory options.
1398 # These are left unexpanded so users can "make install exec_prefix=/foo"
1399 # and all the variables that are supposed to be based on exec_prefix
1400 # by default will actually change.
1401 # Use braces instead of parens because sh, perl, etc. also accept them.
1402 # (The list follows the same order as the GNU Coding Standards.)
1403 bindir
='${exec_prefix}/bin'
1404 sbindir
='${exec_prefix}/sbin'
1405 libexecdir
='${exec_prefix}/libexec'
1406 datarootdir
='${prefix}/share'
1407 datadir
='${datarootdir}'
1408 sysconfdir
='${prefix}/etc'
1409 sharedstatedir
='${prefix}/com'
1410 localstatedir
='${prefix}/var'
1411 includedir
='${prefix}/include'
1412 oldincludedir
='/usr/include'
1413 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1414 infodir
='${datarootdir}/info'
1419 libdir
='${exec_prefix}/lib'
1420 localedir
='${datarootdir}/locale'
1421 mandir
='${datarootdir}/man'
1427 # If the previous option needs an argument, assign it.
1428 if test -n "$ac_prev"; then
1429 eval $ac_prev=\
$ac_option
1435 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1440 # Accept the important Cygnus configure options, so we can diagnose typos.
1442 case $ac_dashdash$ac_option in
1446 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1448 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1449 bindir
=$ac_optarg ;;
1451 -build |
--build |
--buil |
--bui |
--bu)
1452 ac_prev
=build_alias
;;
1453 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1454 build_alias
=$ac_optarg ;;
1456 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1457 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1458 ac_prev
=cache_file
;;
1459 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1460 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1461 cache_file
=$ac_optarg ;;
1463 --config-cache |
-C)
1464 cache_file
=config.cache
;;
1466 -datadir |
--datadir |
--datadi |
--datad)
1468 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1469 datadir
=$ac_optarg ;;
1471 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1472 |
--dataroo |
--dataro |
--datar)
1473 ac_prev
=datarootdir
;;
1474 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1475 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1476 datarootdir
=$ac_optarg ;;
1478 -disable-* |
--disable-*)
1479 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1480 # Reject names that are not valid shell variable names.
1481 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1482 as_fn_error $?
"invalid feature name: $ac_useropt"
1483 ac_useropt_orig
=$ac_useropt
1484 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1485 case $ac_user_opts in
1487 "enable_
$ac_useropt"
1489 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1490 ac_unrecognized_sep
=', ';;
1492 eval enable_
$ac_useropt=no
;;
1494 -docdir |
--docdir |
--docdi |
--doc |
--do)
1496 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1497 docdir
=$ac_optarg ;;
1499 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1501 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1502 dvidir
=$ac_optarg ;;
1504 -enable-* |
--enable-*)
1505 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1506 # Reject names that are not valid shell variable names.
1507 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1508 as_fn_error $?
"invalid feature name: $ac_useropt"
1509 ac_useropt_orig
=$ac_useropt
1510 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1511 case $ac_user_opts in
1513 "enable_
$ac_useropt"
1515 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1516 ac_unrecognized_sep
=', ';;
1518 eval enable_
$ac_useropt=\
$ac_optarg ;;
1520 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1521 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1522 |
--exec |
--exe |
--ex)
1523 ac_prev
=exec_prefix
;;
1524 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1525 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1526 |
--exec=* |
--exe=* |
--ex=*)
1527 exec_prefix
=$ac_optarg ;;
1529 -gas |
--gas |
--ga |
--g)
1530 # Obsolete; use --with-gas.
1533 -help |
--help |
--hel |
--he |
-h)
1534 ac_init_help
=long
;;
1535 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1536 ac_init_help
=recursive
;;
1537 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1538 ac_init_help
=short
;;
1540 -host |
--host |
--hos |
--ho)
1541 ac_prev
=host_alias
;;
1542 -host=* |
--host=* |
--hos=* |
--ho=*)
1543 host_alias
=$ac_optarg ;;
1545 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1547 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1549 htmldir
=$ac_optarg ;;
1551 -includedir |
--includedir |
--includedi |
--included |
--include \
1552 |
--includ |
--inclu |
--incl |
--inc)
1553 ac_prev
=includedir
;;
1554 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1555 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1556 includedir
=$ac_optarg ;;
1558 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1560 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1561 infodir
=$ac_optarg ;;
1563 -libdir |
--libdir |
--libdi |
--libd)
1565 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1566 libdir
=$ac_optarg ;;
1568 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1569 |
--libexe |
--libex |
--libe)
1570 ac_prev
=libexecdir
;;
1571 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1572 |
--libexe=* |
--libex=* |
--libe=*)
1573 libexecdir
=$ac_optarg ;;
1575 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1576 ac_prev
=localedir
;;
1577 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1578 localedir
=$ac_optarg ;;
1580 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1581 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1582 ac_prev
=localstatedir
;;
1583 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1584 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1585 localstatedir
=$ac_optarg ;;
1587 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1589 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1590 mandir
=$ac_optarg ;;
1592 -nfp |
--nfp |
--nf)
1593 # Obsolete; use --without-fp.
1596 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1597 |
--no-cr |
--no-c |
-n)
1600 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1601 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1604 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1605 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1606 |
--oldin |
--oldi |
--old |
--ol |
--o)
1607 ac_prev
=oldincludedir
;;
1608 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1609 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1610 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1611 oldincludedir
=$ac_optarg ;;
1613 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1615 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1616 prefix
=$ac_optarg ;;
1618 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1619 |
--program-pre |
--program-pr |
--program-p)
1620 ac_prev
=program_prefix
;;
1621 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1622 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1623 program_prefix
=$ac_optarg ;;
1625 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1626 |
--program-suf |
--program-su |
--program-s)
1627 ac_prev
=program_suffix
;;
1628 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1629 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1630 program_suffix
=$ac_optarg ;;
1632 -program-transform-name |
--program-transform-name \
1633 |
--program-transform-nam |
--program-transform-na \
1634 |
--program-transform-n |
--program-transform- \
1635 |
--program-transform |
--program-transfor \
1636 |
--program-transfo |
--program-transf \
1637 |
--program-trans |
--program-tran \
1638 |
--progr-tra |
--program-tr |
--program-t)
1639 ac_prev
=program_transform_name
;;
1640 -program-transform-name=* |
--program-transform-name=* \
1641 |
--program-transform-nam=* |
--program-transform-na=* \
1642 |
--program-transform-n=* |
--program-transform-=* \
1643 |
--program-transform=* |
--program-transfor=* \
1644 |
--program-transfo=* |
--program-transf=* \
1645 |
--program-trans=* |
--program-tran=* \
1646 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1647 program_transform_name
=$ac_optarg ;;
1649 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1651 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1652 pdfdir
=$ac_optarg ;;
1654 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1656 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1659 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1660 |
-silent |
--silent |
--silen |
--sile |
--sil)
1663 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1665 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1667 sbindir
=$ac_optarg ;;
1669 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1670 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1671 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1673 ac_prev
=sharedstatedir
;;
1674 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1675 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1676 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1678 sharedstatedir
=$ac_optarg ;;
1680 -site |
--site |
--sit)
1682 -site=* |
--site=* |
--sit=*)
1685 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1687 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1688 srcdir
=$ac_optarg ;;
1690 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1691 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1692 ac_prev
=sysconfdir
;;
1693 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1694 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1695 sysconfdir
=$ac_optarg ;;
1697 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1698 ac_prev
=target_alias
;;
1699 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1700 target_alias
=$ac_optarg ;;
1702 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1705 -version |
--version |
--versio |
--versi |
--vers |
-V)
1706 ac_init_version
=: ;;
1709 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1710 # Reject names that are not valid shell variable names.
1711 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1712 as_fn_error $?
"invalid package name: $ac_useropt"
1713 ac_useropt_orig
=$ac_useropt
1714 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1715 case $ac_user_opts in
1719 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1720 ac_unrecognized_sep
=', ';;
1722 eval with_
$ac_useropt=\
$ac_optarg ;;
1724 -without-* |
--without-*)
1725 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1726 # Reject names that are not valid shell variable names.
1727 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1728 as_fn_error $?
"invalid package name: $ac_useropt"
1729 ac_useropt_orig
=$ac_useropt
1730 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1731 case $ac_user_opts in
1735 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1736 ac_unrecognized_sep
=', ';;
1738 eval with_
$ac_useropt=no
;;
1741 # Obsolete; use --with-x.
1744 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1745 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1746 ac_prev
=x_includes
;;
1747 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1748 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1749 x_includes
=$ac_optarg ;;
1751 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1752 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1753 ac_prev
=x_libraries
;;
1754 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1755 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1756 x_libraries
=$ac_optarg ;;
1758 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1759 Try \`$0 --help' for more information"
1763 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1764 # Reject names that are not valid shell variable names.
1765 case $ac_envvar in #(
1766 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1767 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1769 eval $ac_envvar=\
$ac_optarg
1770 export $ac_envvar ;;
1773 # FIXME: should be removed in autoconf 3.0.
1774 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1775 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1776 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1777 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1783 if test -n "$ac_prev"; then
1784 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1785 as_fn_error $?
"missing argument to $ac_option"
1788 if test -n "$ac_unrecognized_opts"; then
1789 case $enable_option_checking in
1791 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1792 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1796 # Check all directory arguments for consistency.
1797 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1798 datadir sysconfdir sharedstatedir localstatedir includedir \
1799 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1800 libdir localedir mandir
1802 eval ac_val
=\$
$ac_var
1803 # Remove trailing slashes.
1806 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1807 eval $ac_var=\
$ac_val;;
1809 # Be sure to have absolute directory names.
1811 [\\/$
]* | ?
:[\\/]* ) continue;;
1812 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1814 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1817 # There might be people who depend on the old broken behavior: `$host'
1818 # used to hold the argument of --host etc.
1819 # FIXME: To remove some day.
1822 target
=$target_alias
1824 # FIXME: To remove some day.
1825 if test "x$host_alias" != x
; then
1826 if test "x$build_alias" = x
; then
1827 cross_compiling
=maybe
1828 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1829 If a cross compiler is detected then cross compile mode will be used" >&2
1830 elif test "x$build_alias" != "x$host_alias"; then
1836 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1838 test "$silent" = yes && exec 6>/dev
/null
1841 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1842 ac_ls_di
=`ls -di .` &&
1843 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1844 as_fn_error $?
"working directory cannot be determined"
1845 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1846 as_fn_error $?
"pwd does not report name of working directory"
1849 # Find the source files, if location was not specified.
1850 if test -z "$srcdir"; then
1851 ac_srcdir_defaulted
=yes
1852 # Try the directory containing this script, then the parent directory.
1853 ac_confdir
=`$as_dirname -- "$as_myself" ||
1854 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1855 X"$as_myself" : 'X\(//\)[^/]' \| \
1856 X"$as_myself" : 'X\(//\)$' \| \
1857 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1858 $as_echo X"$as_myself" |
1859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1877 if test ! -r "$srcdir/$ac_unique_file"; then
1881 ac_srcdir_defaulted
=no
1883 if test ! -r "$srcdir/$ac_unique_file"; then
1884 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1885 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1887 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1889 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1891 # When building in place, set srcdir=.
1892 if test "$ac_abs_confdir" = "$ac_pwd"; then
1895 # Remove unnecessary trailing slashes from srcdir.
1896 # Double slashes in file names in object file debugging info
1897 # mess up M-x gdb in Emacs.
1899 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1901 for ac_var
in $ac_precious_vars; do
1902 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1903 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1904 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1905 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1909 # Report the --help message.
1911 if test "$ac_init_help" = "long"; then
1912 # Omit some internal or obsolete options to make the list less imposing.
1913 # This message is too long to be a string in the A/UX 3.1 sh.
1915 \`configure' configures GRUB 2.00 to adapt to many kinds of systems.
1917 Usage: $0 [OPTION]... [VAR=VALUE]...
1919 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1920 VAR=VALUE. See below for descriptions of some of the useful variables.
1922 Defaults for the options are specified in brackets.
1925 -h, --help display this help and exit
1926 --help=short display options specific to this package
1927 --help=recursive display the short help of all the included packages
1928 -V, --version display version information and exit
1929 -q, --quiet, --silent do not print \`checking ...' messages
1930 --cache-file=FILE cache test results in FILE [disabled]
1931 -C, --config-cache alias for \`--cache-file=config.cache'
1932 -n, --no-create do not create output files
1933 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1935 Installation directories:
1936 --prefix=PREFIX install architecture-independent files in PREFIX
1937 [$ac_default_prefix]
1938 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1941 By default, \`make install' will install all the files in
1942 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1943 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1944 for instance \`--prefix=\$HOME'.
1946 For better control, use the options below.
1948 Fine tuning of the installation directories:
1949 --bindir=DIR user executables [EPREFIX/bin]
1950 --sbindir=DIR system admin executables [EPREFIX/sbin]
1951 --libexecdir=DIR program executables [EPREFIX/libexec]
1952 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1953 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1954 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1955 --libdir=DIR object code libraries [EPREFIX/lib]
1956 --includedir=DIR C header files [PREFIX/include]
1957 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1958 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1959 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1960 --infodir=DIR info documentation [DATAROOTDIR/info]
1961 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1962 --mandir=DIR man documentation [DATAROOTDIR/man]
1963 --docdir=DIR documentation root [DATAROOTDIR/doc/grub]
1964 --htmldir=DIR html documentation [DOCDIR]
1965 --dvidir=DIR dvi documentation [DOCDIR]
1966 --pdfdir=DIR pdf documentation [DOCDIR]
1967 --psdir=DIR ps documentation [DOCDIR]
1973 --program-prefix=PREFIX prepend PREFIX to installed program names
1974 --program-suffix=SUFFIX append SUFFIX to installed program names
1975 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1978 --build=BUILD configure
for building on BUILD
[guessed
]
1979 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1980 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1984 if test -n "$ac_init_help"; then
1985 case $ac_init_help in
1986 short | recursive
) echo "Configuration of GRUB 2.00:";;
1991 --disable-option-checking ignore unrecognized
--enable/--with options
1992 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1993 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1994 --disable-dependency-tracking speeds up one-time build
1995 --enable-dependency-tracking do not reject slow dependency extractors
1996 --disable-nls do not use Native Language Support
1997 --disable-rpath do not hardcode runtime library paths
1998 --disable-largefile omit support
for large files
1999 --enable-efiemu build and
install the efiemu runtimes
2001 --disable-werror do not use
-Werror when building GRUB
2002 --enable-mm-debug include memory manager debugging
2003 --enable-cache-stats enable disk cache statistics collection
2004 --enable-grub-emu-usb build and
install the
`grub-emu' debugging utility
2005 with USB support (default=guessed)
2006 --enable-grub-emu-sdl build and install the `grub-emu
' debugging utility
2007 with SDL support (default=guessed)
2008 --enable-grub-emu-pci build and install the `grub-emu' debugging utility
2009 with PCI support
(potentially dangerous
)
2011 --enable-grub-mkfont build and
install the
`grub-mkfont' utility
2013 --enable-grub-mount build and install the `grub-mount
' utility
2015 --enable-device-mapper enable Linux device-mapper support (default=guessed)
2016 --enable-libzfs enable libzfs integration (default=guessed)
2019 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2020 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2021 --with-platform=PLATFORM
2022 select the host platform [[guessed]]
2023 --with-bootdir=DIR set the name of /boot directory [[guessed]]
2024 --with-grubdir=DIR set the name of grub directory [[guessed]]
2025 --with-gnu-ld assume the C compiler uses GNU ld default=no
2026 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
2027 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
2028 --with-libintl-prefix[=DIR
] search
for libintl
in DIR
/include and DIR
/lib
2029 --without-libintl-prefix don
't search for libintl in includedir and libdir
2030 --without-included-regex
2031 don't compile regex
; this is the default on systems
2032 with recent-enough versions of the GNU C Library
2033 (use with caution on other systems
).
2035 Some influential environment variables
:
2036 CC C compiler
command
2037 CFLAGS C compiler flags
2038 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2039 nonstandard directory
<lib dir
>
2040 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2041 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2042 you have headers
in a nonstandard directory
<include dir
>
2043 YACC The
`Yet Another Compiler Compiler' implementation to use.
2044 Defaults to the first program found out of: `bison
-y', `byacc',
2046 YFLAGS The list of arguments that will be passed by default to $YACC.
2047 This script will default YFLAGS to the empty string to avoid a
2048 default value of `-d' given by some make applications.
2050 CCAS assembler compiler command (defaults to CC)
2051 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
2053 Use these variables to override the choices made by `configure' or to
help
2054 it to
find libraries and programs with nonstandard names
/locations.
2056 Report bugs to
<bug-grub@gnu.org
>.
2061 if test "$ac_init_help" = "recursive"; then
2062 # If there are subdirs, report their specific --help.
2063 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
2064 test -d "$ac_dir" ||
2065 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
2070 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
2072 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2073 # A ".." for each directory in $ac_dir_suffix.
2074 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2075 case $ac_top_builddir_sub in
2076 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
2077 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
2080 ac_abs_top_builddir
=$ac_pwd
2081 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
2082 # for backward compatibility:
2083 ac_top_builddir
=$ac_top_build_prefix
2086 .
) # We are building in place.
2088 ac_top_srcdir
=$ac_top_builddir_sub
2089 ac_abs_top_srcdir
=$ac_pwd ;;
2090 [\\/]* | ?
:[\\/]* ) # Absolute name.
2091 ac_srcdir
=$srcdir$ac_dir_suffix;
2092 ac_top_srcdir
=$srcdir
2093 ac_abs_top_srcdir
=$srcdir ;;
2095 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
2096 ac_top_srcdir
=$ac_top_build_prefix$srcdir
2097 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
2099 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
2101 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
2102 # Check for guested configure.
2103 if test -f "$ac_srcdir/configure.gnu"; then
2105 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2106 elif test -f "$ac_srcdir/configure"; then
2108 $SHELL "$ac_srcdir/configure" --help=recursive
2110 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2112 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
2116 test -n "$ac_init_help" && exit $ac_status
2117 if $ac_init_version; then
2120 generated by GNU Autoconf
2.68
2122 Copyright
(C
) 2010 Free Software Foundation
, Inc.
2123 This configure
script is free software
; the Free Software Foundation
2124 gives unlimited permission to copy
, distribute and modify it.
2129 ## ------------------------ ##
2130 ## Autoconf initialization. ##
2131 ## ------------------------ ##
2133 # ac_fn_c_try_compile LINENO
2134 # --------------------------
2135 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2136 ac_fn_c_try_compile
()
2138 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2139 rm -f conftest.
$ac_objext
2140 if { { ac_try
="$ac_compile"
2142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2143 *) ac_try_echo=$ac_try;;
2145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2146 $as_echo "$ac_try_echo"; } >&5
2147 (eval "$ac_compile") 2>conftest.err
2149 if test -s conftest.err; then
2150 grep -v '^ *+' conftest.err >conftest.er1
2151 cat conftest.er1 >&5
2152 mv -f conftest.er1 conftest.err
2154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2155 test $ac_status = 0; } && {
2156 test -z "$ac_c_werror_flag" ||
2157 test ! -s conftest.err
2158 } && test -s conftest.$ac_objext; then :
2161 $as_echo "$as_me: failed program was:" >&5
2162 sed 's/^/| /' conftest.$ac_ext >&5
2166 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2167 as_fn_set_status $ac_retval
2169 } # ac_fn_c_try_compile
2171 # ac_fn_c_try_link LINENO
2172 # -----------------------
2173 # Try to link conftest.$ac_ext, and return whether this succeeded.
2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177 rm -f conftest.$ac_objext conftest$ac_exeext
2178 if { { ac_try="$ac_link"
2180 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2181 *) ac_try_echo
=$ac_try;;
2183 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2184 $as_echo "$ac_try_echo"; } >&5
2185 (eval "$ac_link") 2>conftest.err
2187 if test -s conftest.err
; then
2188 grep -v '^ *+' conftest.err
>conftest.er1
2189 cat conftest.er1
>&5
2190 mv -f conftest.er1 conftest.err
2192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2193 test $ac_status = 0; } && {
2194 test -z "$ac_c_werror_flag" ||
2195 test ! -s conftest.err
2196 } && test -s conftest
$ac_exeext && {
2197 test "$cross_compiling" = yes ||
2198 $as_test_x conftest
$ac_exeext
2202 $as_echo "$as_me: failed program was:" >&5
2203 sed 's/^/| /' conftest.
$ac_ext >&5
2207 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2208 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2209 # interfere with the next link command; also delete a directory that is
2210 # left behind by Apple's compiler. We do this before executing the actions.
2211 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2212 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2213 as_fn_set_status
$ac_retval
2215 } # ac_fn_c_try_link
2217 # ac_fn_c_try_cpp LINENO
2218 # ----------------------
2219 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2222 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2223 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2225 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2226 *) ac_try_echo=$ac_try;;
2228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2229 $as_echo "$ac_try_echo"; } >&5
2230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2232 if test -s conftest.err; then
2233 grep -v '^ *+' conftest.err >conftest.er1
2234 cat conftest.er1 >&5
2235 mv -f conftest.er1 conftest.err
2237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2238 test $ac_status = 0; } > conftest.i && {
2239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2240 test ! -s conftest.err
2244 $as_echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2249 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2250 as_fn_set_status $ac_retval
2254 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2255 # -------------------------------------------------------
2256 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2257 # the include files in INCLUDES and setting the cache variable VAR
2259 ac_fn_c_check_header_mongrel ()
2261 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262 if eval \${$3+:} false; then :
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2264 $as_echo_n "checking for $2... " >&6; }
2265 if eval \${$3+:} false; then :
2266 $as_echo_n "(cached) " >&6
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2270 $as_echo "$ac_res" >&6; }
2272 # Is the header compilable?
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2274 $as_echo_n "checking $2 usability... " >&6; }
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2280 if ac_fn_c_try_compile "$LINENO"; then :
2281 ac_header_compiler=yes
2283 ac_header_compiler=no
2285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2287 $as_echo "$ac_header_compiler" >&6; }
2289 # Is the header present?
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2291 $as_echo_n "checking $2 presence... " >&6; }
2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h. */
2296 if ac_fn_c_try_cpp "$LINENO"; then :
2297 ac_header_preproc=yes
2299 ac_header_preproc=no
2301 rm -f conftest.err conftest.i conftest.$ac_ext
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2303 $as_echo "$ac_header_preproc" >&6; }
2305 # So? What about this header?
2306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2309 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2311 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2315 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2317 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2319 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2321 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2323 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2324 ( $as_echo "## ------------------------------- ##
2325 ## Report this to bug-grub@gnu.org ##
2326 ## ------------------------------- ##"
2327 ) | sed "s/^/$as_me: WARNING: /" >&2
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2331 $as_echo_n "checking for $2... " >&6; }
2332 if eval \${$3+:} false; then :
2333 $as_echo_n "(cached) " >&6
2335 eval "$3=\$ac_header_compiler"
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2339 $as_echo "$ac_res" >&6; }
2341 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2343 } # ac_fn_c_check_header_mongrel
2345 # ac_fn_c_try_run LINENO
2346 # ----------------------
2347 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2348 # that executables *can* be run.
2351 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2352 if { { ac_try="$ac_link"
2354 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2355 *) ac_try_echo
=$ac_try;;
2357 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2358 $as_echo "$ac_try_echo"; } >&5
2359 (eval "$ac_link") 2>&5
2361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2362 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2363 { { case "(($ac_try" in
2364 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2365 *) ac_try_echo=$ac_try;;
2367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2368 $as_echo "$ac_try_echo"; } >&5
2369 (eval "$ac_try") 2>&5
2371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2372 test $ac_status = 0; }; }; then :
2375 $as_echo "$as_me: program exited with status $ac_status" >&5
2376 $as_echo "$as_me: failed program was:" >&5
2377 sed 's/^/| /' conftest.$ac_ext >&5
2379 ac_retval=$ac_status
2381 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2382 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2383 as_fn_set_status $ac_retval
2387 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2388 # -------------------------------------------------------
2389 # Tests whether HEADER exists and can be compiled using the include files in
2390 # INCLUDES, setting the cache variable VAR accordingly.
2391 ac_fn_c_check_header_compile ()
2393 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2395 $as_echo_n "checking for $2... " >&6; }
2396 if eval \${$3+:} false; then :
2397 $as_echo_n "(cached) " >&6
2399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2400 /* end confdefs.h. */
2404 if ac_fn_c_try_compile "$LINENO"; then :
2409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2413 $as_echo "$ac_res" >&6; }
2414 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2416 } # ac_fn_c_check_header_compile
2418 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2419 # --------------------------------------------
2420 # Tries to find the compile-time value of EXPR in a program that includes
2421 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2423 ac_fn_c_compute_int ()
2425 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2426 if test "$cross_compiling" = yes; then
2427 # Depending upon the size, compute the lo and hi bounds.
2428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2429 /* end confdefs.h. */
2434 static int test_array [1 - 2 * !(($2) >= 0)];
2441 if ac_fn_c_try_compile "$LINENO"; then :
2444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2445 /* end confdefs.h. */
2450 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2457 if ac_fn_c_try_compile "$LINENO"; then :
2458 ac_hi=$ac_mid; break
2460 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2461 if test $ac_lo -le $ac_mid; then
2465 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2471 /* end confdefs.h. */
2476 static int test_array [1 - 2 * !(($2) < 0)];
2483 if ac_fn_c_try_compile "$LINENO"; then :
2486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2487 /* end confdefs.h. */
2492 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2499 if ac_fn_c_try_compile "$LINENO"; then :
2500 ac_lo=$ac_mid; break
2502 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2503 if test $ac_mid -le $ac_hi; then
2507 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2517 # Binary search between lo and hi bounds.
2518 while test "x$ac_lo" != "x$ac_hi"; do
2519 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2521 /* end confdefs.h. */
2526 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2533 if ac_fn_c_try_compile "$LINENO"; then :
2536 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2541 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2546 /* end confdefs.h. */
2548 static long int longval () { return $2; }
2549 static unsigned long int ulongval () { return $2; }
2556 FILE *f = fopen ("conftest.val", "w");
2561 long int i = longval ();
2564 fprintf (f, "%ld", i);
2568 unsigned long int i = ulongval ();
2571 fprintf (f, "%lu", i);
2573 /* Do not output a trailing newline, as this causes \r\n confusion
2574 on some platforms. */
2575 return ferror (f) || fclose (f) != 0;
2581 if ac_fn_c_try_run "$LINENO"; then :
2582 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2587 conftest.$ac_objext conftest.beam conftest.$ac_ext
2591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2592 as_fn_set_status $ac_retval
2594 } # ac_fn_c_compute_int
2596 # ac_fn_c_check_func LINENO FUNC VAR
2597 # ----------------------------------
2598 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2599 ac_fn_c_check_func ()
2601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2603 $as_echo_n "checking for $2... " >&6; }
2604 if eval \${$3+:} false; then :
2605 $as_echo_n "(cached) " >&6
2607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2608 /* end confdefs.h. */
2609 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2611 #define $2 innocuous_$2
2613 /* System header to define __stub macros and hopefully few prototypes,
2614 which can conflict with char $2 (); below.
2615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2616 <limits.h> exists even on freestanding compilers. */
2619 # include <limits.h>
2621 # include <assert.h>
2626 /* Override any GCC internal prototype to avoid an error.
2627 Use char because int might match the return type of a GCC
2628 builtin and then its argument prototype would still apply. */
2633 /* The GNU C library defines this for functions which it implements
2634 to always fail with ENOSYS. Some functions are actually named
2635 something starting with __ and the normal name is an alias. */
2636 #if defined __stub_$2 || defined __stub___$2
2648 if ac_fn_c_try_link "$LINENO"; then :
2653 rm -f core conftest.err conftest.$ac_objext \
2654 conftest$ac_exeext conftest.$ac_ext
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2658 $as_echo "$ac_res" >&6; }
2659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2661 } # ac_fn_c_check_func
2663 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2664 # ----------------------------------------------------
2665 # Tries to find if the field MEMBER exists in type AGGR, after including
2666 # INCLUDES, setting cache variable VAR accordingly.
2667 ac_fn_c_check_member ()
2669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2671 $as_echo_n "checking for $2.$3... " >&6; }
2672 if eval \${$4+:} false; then :
2673 $as_echo_n "(cached) " >&6
2675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2676 /* end confdefs.h. */
2688 if ac_fn_c_try_compile "$LINENO"; then :
2691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2692 /* end confdefs.h. */
2698 if (sizeof ac_aggr.$3)
2704 if ac_fn_c_try_compile "$LINENO"; then :
2709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2715 $as_echo "$ac_res" >&6; }
2716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2718 } # ac_fn_c_check_member
2720 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2721 # -------------------------------------------
2722 # Tests whether TYPE exists after having included INCLUDES, setting cache
2723 # variable VAR accordingly.
2724 ac_fn_c_check_type ()
2726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2728 $as_echo_n "checking for $2... " >&6; }
2729 if eval \${$3+:} false; then :
2730 $as_echo_n "(cached) " >&6
2733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2734 /* end confdefs.h. */
2745 if ac_fn_c_try_compile "$LINENO"; then :
2746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2747 /* end confdefs.h. */
2758 if ac_fn_c_try_compile "$LINENO"; then :
2763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2769 $as_echo "$ac_res" >&6; }
2770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2772 } # ac_fn_c_check_type
2774 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2775 # ---------------------------------------------
2776 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2778 ac_fn_c_check_decl ()
2780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2781 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2782 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2784 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2785 if eval \${$3+:} false; then :
2786 $as_echo_n "(cached) " >&6
2788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2789 /* end confdefs.h. */
2794 #ifndef $as_decl_name
2796 (void) $as_decl_use;
2798 (void) $as_decl_name;
2806 if ac_fn_c_try_compile "$LINENO"; then :
2811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2815 $as_echo "$ac_res" >&6; }
2816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2818 } # ac_fn_c_check_decl
2819 cat >config.log <<_ACEOF
2820 This file contains any messages produced by compilers while
2821 running configure, to aid debugging if configure makes a mistake.
2823 It was created by GRUB $as_me 2.00, which was
2824 generated by GNU Autoconf 2.68. Invocation command line was
2836 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2837 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2838 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2839 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2840 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2842 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2843 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2845 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2846 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2847 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2848 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2849 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2850 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2851 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 test -z "$as_dir" && as_dir=.
2860 $as_echo "PATH: $as_dir"
2876 # Keep a trace of the command line.
2877 # Strip out --no-create and --no-recursion so they do not pile up.
2878 # Strip out --silent because we don't want to record it for future runs.
2879 # Also quote any args containing shell meta-characters.
2880 # Make two passes to allow for proper duplicate-argument suppression.
2884 ac_must_keep_next=false
2890 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2891 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2892 | -silent | --silent | --silen | --sile | --sil)
2895 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2898 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2900 as_fn_append ac_configure_args1 " '$ac_arg'"
2901 if test $ac_must_keep_next = true; then
2902 ac_must_keep_next=false # Got value, back to normal.
2905 *=* | --config-cache | -C | -disable-* | --disable-* \
2906 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2907 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2908 | -with-* | --with-* | -without-* | --without-* | --x)
2909 case "$ac_configure_args0 " in
2910 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2913 -* ) ac_must_keep_next=true ;;
2916 as_fn_append ac_configure_args " '$ac_arg'"
2921 { ac_configure_args0=; unset ac_configure_args0;}
2922 { ac_configure_args1=; unset ac_configure_args1;}
2924 # When interrupted or exit'd, cleanup temporary files, and complete
2925 # config.log. We remove comments because anyway the quotes in there
2926 # would cause problems or look ugly.
2927 # WARNING: Use '\'' to represent an apostrophe within the trap.
2928 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2929 trap 'exit_status=$?
2930 # Save into config.log some information that might help in debugging.
2934 $as_echo "## ---------------- ##
2935 ## Cache variables. ##
2936 ## ---------------- ##"
2938 # The following way of writing the cache mishandles newlines in values,
2940 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2941 eval ac_val=\$$ac_var
2945 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2946 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2949 _ | IFS | as_nl) ;; #(
2950 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2951 *) { eval $ac_var=; unset $ac_var;} ;;
2956 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2957 *${as_nl}ac_space=\ *)
2959 "s/'\''/'\''\\\\'\'''\''/g;
2960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2963 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2970 $as_echo "## ----------------- ##
2971 ## Output variables. ##
2972 ## ----------------- ##"
2974 for ac_var in $ac_subst_vars
2976 eval ac_val=\$$ac_var
2978 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2980 $as_echo "$ac_var='\''$ac_val'\''"
2984 if test -n "$ac_subst_files"; then
2985 $as_echo "## ------------------- ##
2986 ## File substitutions. ##
2987 ## ------------------- ##"
2989 for ac_var in $ac_subst_files
2991 eval ac_val=\$$ac_var
2993 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2995 $as_echo "$ac_var='\''$ac_val'\''"
3000 if test -s confdefs.h; then
3001 $as_echo "## ----------- ##
3008 test "$ac_signal" != 0 &&
3009 $as_echo "$as_me: caught signal $ac_signal"
3010 $as_echo "$as_me: exit $exit_status"
3012 rm -f core *.core core.conftest.* &&
3013 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3016 for ac_signal in 1 2 13 15; do
3017 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3021 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3022 rm -f -r conftest* confdefs.h
3024 $as_echo "/* confdefs.h */" > confdefs.h
3026 # Predefined preprocessor variables.
3028 cat >>confdefs.h <<_ACEOF
3029 #define PACKAGE_NAME "$PACKAGE_NAME"
3032 cat >>confdefs.h <<_ACEOF
3033 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3036 cat >>confdefs.h <<_ACEOF
3037 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3040 cat >>confdefs.h <<_ACEOF
3041 #define PACKAGE_STRING "$PACKAGE_STRING"
3044 cat >>confdefs.h <<_ACEOF
3045 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3048 cat >>confdefs.h <<_ACEOF
3049 #define PACKAGE_URL "$PACKAGE_URL"
3053 # Let the site file select an alternate cache file if it wants to.
3054 # Prefer an explicitly selected file to automatically selected ones.
3057 if test -n "$CONFIG_SITE"; then
3058 # We do not want a PATH search for config.site.
3059 case $CONFIG_SITE in #((
3060 -*) ac_site_file1=./$CONFIG_SITE;;
3061 */*) ac_site_file1=$CONFIG_SITE;;
3062 *) ac_site_file1=./$CONFIG_SITE;;
3064 elif test "x$prefix" != xNONE; then
3065 ac_site_file1=$prefix/share/config.site
3066 ac_site_file2=$prefix/etc/config.site
3068 ac_site_file1=$ac_default_prefix/share/config.site
3069 ac_site_file2=$ac_default_prefix/etc/config.site
3071 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3073 test "x$ac_site_file" = xNONE && continue
3074 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3076 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3077 sed 's/^/| /' "$ac_site_file" >&5
3079 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3081 as_fn_error $? "failed to load site
script $ac_site_file
3082 See \
`config.log' for more details" "$LINENO" 5; }
3086 if test -r "$cache_file"; then
3087 # Some versions of bash will fail to source /dev/null (special files
3088 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3089 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3091 $as_echo "$as_me: loading cache $cache_file" >&6;}
3093 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3094 *) . "./$cache_file";;
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3099 $as_echo "$as_me: creating cache $cache_file" >&6;}
3103 gt_needs="$gt_needs "
3104 as_fn_append ac_func_list " flockfile"
3105 as_fn_append ac_func_list " funlockfile"
3106 as_fn_append ac_header_list " features.h"
3107 as_fn_append ac_header_list " linewrap.h"
3108 as_fn_append ac_func_list " btowc"
3109 as_fn_append ac_header_list " errno.h"
3110 as_fn_append ac_header_list " float.h"
3111 as_fn_append ac_func_list " isblank"
3112 as_fn_append ac_func_list " iswctype"
3113 as_fn_append ac_func_list " mbsrtowcs"
3114 as_fn_append ac_func_list " mempcpy"
3115 as_fn_append ac_func_list " wmemchr"
3116 as_fn_append ac_func_list " wmemcpy"
3117 as_fn_append ac_func_list " wmempcpy"
3118 as_fn_append ac_header_list " wctype.h"
3119 as_fn_append ac_func_list " getdelim"
3120 gl_getopt_required=GNU
3121 as_fn_append ac_header_list " getopt.h"
3122 as_fn_append ac_header_list " langinfo.h"
3123 as_fn_append ac_func_list " mbsinit"
3124 as_fn_append ac_func_list " mbrtowc"
3125 as_fn_append ac_header_list " sys/mman.h"
3126 as_fn_append ac_func_list " mprotect"
3127 as_fn_append ac_func_list " memchr"
3128 as_fn_append ac_func_list " nl_langinfo"
3129 as_fn_append ac_header_list " locale.h"
3130 as_fn_append ac_func_list " wcscoll"
3131 as_fn_append ac_func_list " sleep"
3132 as_fn_append ac_header_list " stddef.h"
3133 as_fn_append ac_header_list " stdint.h"
3134 as_fn_append ac_header_list " wchar.h"
3135 as_fn_append ac_header_list " stdio.h"
3136 as_fn_append ac_header_list " stdlib.h"
3137 as_fn_append ac_header_list " sys/socket.h"
3138 as_fn_append ac_header_list " string.h"
3139 as_fn_append ac_header_list " strings.h"
3140 as_fn_append ac_func_list " strndup"
3141 as_fn_append ac_header_list " sys/wait.h"
3142 as_fn_append ac_header_list " sysexits.h"
3143 as_fn_append ac_header_list " unistd.h"
3144 as_fn_append ac_func_list " vasnprintf"
3145 as_fn_append ac_func_list " wcrtomb"
3146 as_fn_append ac_func_list " iswcntrl"
3147 as_fn_append ac_func_list " iswblank"
3148 # Check that the precious variables saved in the cache have kept the same
3150 ac_cache_corrupted=false
3151 for ac_var in $ac_precious_vars; do
3152 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3153 eval ac_new_set=\$ac_env_${ac_var}_set
3154 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3155 eval ac_new_val=\$ac_env_${ac_var}_value
3156 case $ac_old_set,$ac_new_set in
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3159 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3160 ac_cache_corrupted=: ;;
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3163 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3164 ac_cache_corrupted=: ;;
3167 if test "x$ac_old_val" != "x$ac_new_val"; then
3168 # differences in whitespace do not lead to failure.
3169 ac_old_val_w=`echo x
$ac_old_val`
3170 ac_new_val_w=`echo x
$ac_new_val`
3171 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3173 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3174 ac_cache_corrupted=:
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3177 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3178 eval $ac_var=\$ac_old_val
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3181 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3183 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3186 # Pass precious variables to config.status.
3187 if test "$ac_new_set" = set; then
3189 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3190 *) ac_arg=$ac_var=$ac_new_val ;;
3192 case " $ac_configure_args " in
3193 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3194 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3198 if $ac_cache_corrupted; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3202 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3203 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3205 ## -------------------- ##
3206 ## Main body of script. ##
3207 ## -------------------- ##
3210 ac_cpp='$CPP $CPPFLAGS'
3211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3218 for ac_dir in build-aux "$srcdir"/build-aux; do
3219 if test -f "$ac_dir/install-sh"; then
3221 ac_install_sh="$ac_aux_dir/install-sh -c"
3223 elif test -f "$ac_dir/install.sh"; then
3225 ac_install_sh="$ac_aux_dir/install.sh -c"
3227 elif test -f "$ac_dir/shtool"; then
3229 ac_install_sh="$ac_aux_dir/shtool install -c"
3233 if test -z "$ac_aux_dir"; then
3234 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3237 # These three variables are undocumented and unsupported,
3238 # and are intended to be withdrawn in a future Autoconf release.
3239 # They can cause serious problems if a builder's source tree is in a directory
3240 # whose full name contains unusual characters.
3241 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3242 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3243 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3247 # We don't want -g -O2 by default in CFLAGS
3250 # Checks for host and target systems.
3251 # Make sure we can run config.sub.
3252 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3253 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3256 $as_echo_n "checking build system type... " >&6; }
3257 if ${ac_cv_build+:} false; then :
3258 $as_echo_n "(cached) " >&6
3260 ac_build_alias=$build_alias
3261 test "x$ac_build_alias" = x &&
3262 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3263 test "x$ac_build_alias" = x &&
3264 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3265 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3266 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3270 $as_echo "$ac_cv_build" >&6; }
3271 case $ac_cv_build in
3273 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3276 ac_save_IFS=$IFS; IFS='-'
3282 # Remember, the first character of IFS is used to create $*,
3283 # except with old shells:
3286 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3290 $as_echo_n "checking host system type... " >&6; }
3291 if ${ac_cv_host+:} false; then :
3292 $as_echo_n "(cached) " >&6
3294 if test "x$host_alias" = x; then
3295 ac_cv_host=$ac_cv_build
3297 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3298 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3303 $as_echo "$ac_cv_host" >&6; }
3306 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3309 ac_save_IFS=$IFS; IFS='-'
3315 # Remember, the first character of IFS is used to create $*,
3316 # except with old shells:
3319 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3323 $as_echo_n "checking target system type... " >&6; }
3324 if ${ac_cv_target+:} false; then :
3325 $as_echo_n "(cached) " >&6
3327 if test "x$target_alias" = x; then
3328 ac_cv_target=$ac_cv_host
3330 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3331 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3336 $as_echo "$ac_cv_target" >&6; }
3337 case $ac_cv_target in
3339 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3341 target=$ac_cv_target
3342 ac_save_IFS=$IFS; IFS='-'
3348 # Remember, the first character of IFS is used to create $*,
3349 # except with old shells:
3352 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3355 # The aliases save the names the user supplied, while $host etc.
3356 # will get canonicalized.
3357 test -n "$target_alias" &&
3358 test "$program_prefix$program_suffix$program_transform_name" = \
3360 program_prefix=${target_alias}-
3362 am__api_version='1.11'
3364 # Find a good install program. We prefer a C program (faster),
3365 # so one script is as good as another. But avoid the broken or
3366 # incompatible versions:
3367 # SysV /etc/install, /usr/sbin/install
3368 # SunOS /usr/etc/install
3369 # IRIX /sbin/install
3371 # AmigaOS /C/install, which installs bootblocks on floppy discs
3372 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3373 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3374 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3375 # OS/2's system install, which has a completely different semantic
3376 # ./install, which can be erroneously created by make from ./install.sh.
3377 # Reject install programs that cannot install multiple files.
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3379 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3380 if test -z "$INSTALL"; then
3381 if ${ac_cv_path_install+:} false; then :
3382 $as_echo_n "(cached) " >&6
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 test -z "$as_dir" && as_dir=.
3389 # Account for people who put trailing slashes in PATH elements.
3390 case $as_dir/ in #((
3391 ./ | .// | /[cC]/* | \
3392 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3393 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3396 # OSF1 and SCO ODT 3.0 have their own names for install.
3397 # Don't use installbsd from OSF since it installs stuff as root
3399 for ac_prog in ginstall scoinst install; do
3400 for ac_exec_ext in '' $ac_executable_extensions; do
3401 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3402 if test $ac_prog = install &&
3403 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3404 # AIX install. It has an incompatible calling convention.
3406 elif test $ac_prog = install &&
3407 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3408 # program-specific install script used by HP pwplus--don't use.
3411 rm -rf conftest.one conftest.two conftest.dir
3412 echo one > conftest.one
3413 echo two > conftest.two
3415 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3416 test -s conftest.one && test -s conftest.two &&
3417 test -s conftest.dir/conftest.one &&
3418 test -s conftest.dir/conftest.two
3420 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3433 rm -rf conftest.one conftest.two conftest.dir
3436 if test "${ac_cv_path_install+set}" = set; then
3437 INSTALL=$ac_cv_path_install
3439 # As a last resort, use the slow shell script. Don't cache a
3440 # value for INSTALL within a source directory, because that will
3441 # break other packages using the cache if that directory is
3442 # removed, or if the value is a relative name.
3443 INSTALL=$ac_install_sh
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3447 $as_echo "$INSTALL" >&6; }
3449 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3450 # It thinks the first close brace ends the variable substitution.
3451 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3453 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3455 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3458 $as_echo_n "checking whether build environment is sane... " >&6; }
3461 echo timestamp > conftest.file
3462 # Reject unsafe characters in $srcdir or the absolute working directory
3463 # name. Accept space and tab only in the latter.
3467 *[\\\"\#\$\&\'\`$am_lf]*)
3468 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
3471 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3472 as_fn_error $?
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3475 # Do `set' in a subshell so we don't clobber the current shell's
3476 # arguments. Must try -L first in case configure is actually a
3477 # symlink; some systems play weird games with the mod time of symlinks
3478 # (eg FreeBSD returns the mod time of the symlink's containing
3481 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3482 if test "$*" = "X"; then
3484 set X
`ls -t "$srcdir/configure" conftest.file`
3487 if test "$*" != "X $srcdir/configure conftest.file" \
3488 && test "$*" != "X conftest.file $srcdir/configure"; then
3490 # If neither matched, then we have a broken ls. This can happen
3491 # if, for instance, CONFIG_SHELL is bash and it inherits a
3492 # broken ls alias from the environment. This has actually
3493 # happened. Such a system could not be considered "sane".
3494 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3495 alias in your environment" "$LINENO" 5
3498 test "$2" = conftest.
file
3504 as_fn_error $?
"newly created file is older than distributed files!
3505 Check your system clock" "$LINENO" 5
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3508 $as_echo "yes" >&6; }
3509 test "$program_prefix" != NONE
&&
3510 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3511 # Use a double $ so make ignores it.
3512 test "$program_suffix" != NONE
&&
3513 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3514 # Double any \ or $.
3515 # By default was `s,x,x', remove it if useless.
3516 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3517 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3519 # expand $ac_aux_dir to an absolute path
3520 am_aux_dir
=`cd $ac_aux_dir && pwd`
3522 if test x
"${MISSING+set}" != xset
; then
3525 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3527 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3530 # Use eval to expand $SHELL
3531 if eval "$MISSING --run true"; then
3532 am_missing_run
="$MISSING --run "
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3536 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3539 if test x
"${install_sh}" != xset
; then
3542 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3544 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3548 # Installed binaries are usually stripped using `strip' when the user
3549 # run `make install-strip'. However `strip' might not be the right
3550 # tool to use in cross-compilation environments, therefore Automake
3551 # will honor the `STRIP' environment variable to overrule this program.
3552 if test "$cross_compiling" != no
; then
3553 if test -n "$ac_tool_prefix"; then
3554 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3555 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557 $as_echo_n "checking for $ac_word... " >&6; }
3558 if ${ac_cv_prog_STRIP+:} false
; then :
3559 $as_echo_n "(cached) " >&6
3561 if test -n "$STRIP"; then
3562 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3568 test -z "$as_dir" && as_dir
=.
3569 for ac_exec_ext
in '' $ac_executable_extensions; do
3570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3571 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3581 STRIP
=$ac_cv_prog_STRIP
3582 if test -n "$STRIP"; then
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3584 $as_echo "$STRIP" >&6; }
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587 $as_echo "no" >&6; }
3592 if test -z "$ac_cv_prog_STRIP"; then
3594 # Extract the first word of "strip", so it can be a program name with args.
3595 set dummy strip
; ac_word
=$2
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3597 $as_echo_n "checking for $ac_word... " >&6; }
3598 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3599 $as_echo_n "(cached) " >&6
3601 if test -n "$ac_ct_STRIP"; then
3602 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3604 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3608 test -z "$as_dir" && as_dir
=.
3609 for ac_exec_ext
in '' $ac_executable_extensions; do
3610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3611 ac_cv_prog_ac_ct_STRIP
="strip"
3612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3621 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3622 if test -n "$ac_ct_STRIP"; then
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3624 $as_echo "$ac_ct_STRIP" >&6; }
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627 $as_echo "no" >&6; }
3630 if test "x$ac_ct_STRIP" = x
; then
3633 case $cross_compiling:$ac_tool_warned in
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3637 ac_tool_warned
=yes ;;
3642 STRIP
="$ac_cv_prog_STRIP"
3646 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3649 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3650 if test -z "$MKDIR_P"; then
3651 if ${ac_cv_path_mkdir+:} false
; then :
3652 $as_echo_n "(cached) " >&6
3654 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3655 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3658 test -z "$as_dir" && as_dir
=.
3659 for ac_prog
in mkdir gmkdir
; do
3660 for ac_exec_ext
in '' $ac_executable_extensions; do
3661 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3662 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3663 'mkdir (GNU coreutils) '* | \
3664 'mkdir (coreutils) '* | \
3665 'mkdir (fileutils) '4.1*)
3666 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3676 test -d .
/--version && rmdir .
/--version
3677 if test "${ac_cv_path_mkdir+set}" = set; then
3678 MKDIR_P
="$ac_cv_path_mkdir -p"
3680 # As a last resort, use the slow shell script. Don't cache a
3681 # value for MKDIR_P within a source directory, because that will
3682 # break other packages using the cache if that directory is
3683 # removed, or if the value is a relative name.
3684 MKDIR_P
="$ac_install_sh -d"
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3688 $as_echo "$MKDIR_P" >&6; }
3693 [\\/$
]* | ?
:[\\/]*) ;;
3694 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3697 for ac_prog
in gawk mawk nawk
awk
3699 # Extract the first word of "$ac_prog", so it can be a program name with args.
3700 set dummy
$ac_prog; ac_word
=$2
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3702 $as_echo_n "checking for $ac_word... " >&6; }
3703 if ${ac_cv_prog_AWK+:} false
; then :
3704 $as_echo_n "(cached) " >&6
3706 if test -n "$AWK"; then
3707 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3709 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3713 test -z "$as_dir" && as_dir
=.
3714 for ac_exec_ext
in '' $ac_executable_extensions; do
3715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3716 ac_cv_prog_AWK
="$ac_prog"
3717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3727 if test -n "$AWK"; then
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3729 $as_echo "$AWK" >&6; }
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732 $as_echo "no" >&6; }
3736 test -n "$AWK" && break
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3740 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3742 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3743 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3744 $as_echo_n "(cached) " >&6
3746 cat >conftest.
make <<\_ACEOF
3749 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3751 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3752 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3754 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3756 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3760 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3762 $as_echo "yes" >&6; }
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3766 $as_echo "no" >&6; }
3767 SET_MAKE
="MAKE=${MAKE-make}"
3770 rm -rf .tst
2>/dev
/null
3771 mkdir .tst
2>/dev
/null
3772 if test -d .tst
; then
3777 rmdir .tst
2>/dev
/null
3779 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3780 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3781 # is not polluted with repeated "-I."
3782 am__isrc
=' -I$(srcdir)'
3783 # test to see if srcdir already configured
3784 if test -f $srcdir/config.status
; then
3785 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3789 # test whether we have cygpath
3790 if test -z "$CYGPATH_W"; then
3791 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3792 CYGPATH_W
='cygpath -w'
3799 # Define the identity of the package.
3804 cat >>confdefs.h
<<_ACEOF
3805 #define PACKAGE "$PACKAGE"
3809 cat >>confdefs.h
<<_ACEOF
3810 #define VERSION "$VERSION"
3813 # Some tools Automake needs.
3815 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3818 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3821 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3824 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3827 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3829 # We need awk for the "check" target. The system "awk" is bad on
3831 # Always define AMTAR for backward compatibility.
3833 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3835 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3843 ac_config_headers
="$ac_config_headers config-util.h"
3846 # Program name transformations
3849 # Optimization flag. Allow user to override.
3850 if test "x$TARGET_CFLAGS" = x
; then
3851 TARGET_CFLAGS
="$TARGET_CFLAGS -Os"
3854 # Default HOST_CPPFLAGS
3855 HOST_CPPFLAGS
="$HOST_CPPFLAGS -Wall -W"
3856 HOST_CPPFLAGS
="$HOST_CPPFLAGS -I\$(top_builddir)/include"
3857 HOST_CPPFLAGS
="$HOST_CPPFLAGS -DGRUB_UTIL=1"
3858 HOST_CPPFLAGS
="$HOST_CPPFLAGS -DGRUB_LIBDIR=\\\"\$(pkglibdir)\\\""
3859 HOST_CPPFLAGS
="$HOST_CPPFLAGS -DLOCALEDIR=\\\"\$(localedir)\\\""
3861 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS -Wall -W"
3862 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS -I\$(top_srcdir)/include"
3863 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS -I\$(top_builddir)/include"
3865 case "$target_cpu" in
3866 i
[3456]86) target_cpu
=i386
;;
3867 amd64
) target_cpu
=x86_64
;;
3868 sparc
) target_cpu
=sparc64
;;
3871 machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_CPU_MIPSEL=1";
3875 machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_CPU_MIPS=1";
3879 # Specify the platform (such as firmware).
3881 # Check whether --with-platform was given.
3882 if test "${with_platform+set}" = set; then :
3883 withval
=$with_platform;
3887 # Guess the platform if not specified.
3888 if test "x$with_platform" = x
; then
3889 case "$target_cpu"-"$target_vendor" in
3890 i386-apple
) platform
=efi
;;
3891 i386-
*) platform
=pc
;;
3892 x86_64-apple
) platform
=efi
;;
3893 x86_64-
*) platform
=pc
;;
3894 powerpc-
*) platform
=ieee1275
;;
3895 powerpc64-
*) platform
=ieee1275
;;
3896 sparc64-
*) platform
=ieee1275
;;
3897 mipsel-
*) platform
=loongson
;;
3898 mips-
*) platform
=arc
;;
3899 ia64-
*) platform
=efi
;;
3900 *) as_fn_error $?
"unsupported CPU: \"$target_cpu\"" "$LINENO" 5 ;;
3903 platform
="$with_platform"
3906 case "$target_cpu"-"$platform" in
3909 x86_64-
*) target_cpu
=i386
;;
3910 powerpc64-ieee1275
) target_cpu
=powerpc
;;
3913 # Check if the platform is supported, make final adjustments.
3914 case "$target_cpu"-"$platform" in
3920 i386-linuxbios
) platform
=coreboot
;;
3923 powerpc-ieee1275
) ;;
3924 sparc64-ieee1275
) ;;
3927 mips-qemu-mips
) platform
=qemu_mips
;;
3929 mipsel-qemu_mips
) ;;
3930 mipsel-qemu-mips
) platform
=qemu_mips
;;
3931 mipsel-yeeloong
) platform
=loongson
;;
3932 mipsel-fuloong
) platform
=loongson
;;
3935 *) as_fn_error $?
"platform \"$platform\" is not supported for target CPU \"$target_cpu\"" "$LINENO" 5 ;;
3938 case "$target_cpu" in
3939 i386 | powerpc
) target_m32
=1 ;;
3940 x86_64 | sparc64
) target_m64
=1 ;;
3943 case "$target_os" in
3944 mingw32
*) target_os
=cygwin
;;
3947 # This normalizes the names, and creates a new variable ("host_kernel")
3948 # while at it, since the mapping is not always 1:1 (e.g. different OSes
3949 # using the same kernel type).
3951 gnu
*) host_kernel
=hurd
;;
3952 linux
*) host_kernel
=linux
;;
3953 freebsd
* | kfreebsd
*-gnu) host_kernel
=kfreebsd
;;
3954 netbsd
*) host_kernel
=netbsd
;;
3955 solaris
*) host_kernel
=illumos
;;
3956 darwin
*) host_kernel
=xnu
;;
3957 cygwin
) host_kernel
=windows
;;
3961 coreboot
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_COREBOOT=1" ;;
3962 multiboot
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_MULTIBOOT=1" ;;
3963 efi
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_EFI=1" ;;
3964 ieee1275
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_IEEE1275=1" ;;
3965 qemu
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_QEMU=1" ;;
3966 pc
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_PCBIOS=1" ;;
3967 emu
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_EMU=1" ;;
3968 loongson
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_LOONGSON=1 -DGRUB_MACHINE_MIPS_BONITO=1" ;;
3969 qemu_mips
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_QEMU_MIPS=1 -DGRUB_MACHINE_MIPS_BONITO=1" ;;
3970 arc
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_ARC=1" ;;
3972 case "$target_cpu" in
3973 mips |mipsel
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS=1" ;;
3974 sparc64
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_SPARC64=1" ;;
3976 if test x
${target_cpu} = xmipsel
; then
3977 machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE=`echo mips_$platform | sed y,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ,`"
3979 machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE=`echo ${target_cpu}_$platform | sed y,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ,` -DGRUB_TARGET_CPU_`echo ${target_cpu} | sed y,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ,`=1"
3982 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS $machine_CPPFLAGS"
3991 # Define default variables
3995 # Check whether --with-bootdir was given.
3996 if test "${with_bootdir+set}" = set; then :
3997 withval
=$with_bootdir; have_with_bootdir
=y
4002 if test x
$have_with_bootdir = xy
; then
4003 bootdirname
="$with_bootdir"
4007 # Because /boot is used for the boot block in NetBSD and OpenBSD,
4009 *) bootdirname
='boot' ;;
4015 cat >>confdefs.h
<<_ACEOF
4016 #define GRUB_BOOT_DIR_NAME "$bootdirname"
4021 # Check whether --with-grubdir was given.
4022 if test "${with_grubdir+set}" = set; then :
4023 withval
=$with_grubdir; grubdirname
="$with_grubdir"
4025 grubdirname
="$PACKAGE"
4031 cat >>confdefs.h
<<_ACEOF
4032 #define GRUB_DIR_NAME "$grubdirname"
4037 # Checks for build programs.
4040 # Although cmp is listed in the GNU Coding Standards as a command which
4041 # can used directly, OpenBSD lacks cmp in the default installation.
4044 # Extract the first word of "$ac_prog", so it can be a program name with args.
4045 set dummy
$ac_prog; ac_word
=$2
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047 $as_echo_n "checking for $ac_word... " >&6; }
4048 if ${ac_cv_prog_CMP+:} false
; then :
4049 $as_echo_n "(cached) " >&6
4051 if test -n "$CMP"; then
4052 ac_cv_prog_CMP
="$CMP" # Let the user override the test.
4054 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4058 test -z "$as_dir" && as_dir
=.
4059 for ac_exec_ext
in '' $ac_executable_extensions; do
4060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4061 ac_cv_prog_CMP
="$ac_prog"
4062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4072 if test -n "$CMP"; then
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
4074 $as_echo "$CMP" >&6; }
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077 $as_echo "no" >&6; }
4081 test -n "$CMP" && break
4084 if test "x$CMP" = x
; then
4085 as_fn_error $?
"cmp is not found" "$LINENO" 5
4088 for ac_prog
in bison
4090 # Extract the first word of "$ac_prog", so it can be a program name with args.
4091 set dummy
$ac_prog; ac_word
=$2
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4093 $as_echo_n "checking for $ac_word... " >&6; }
4094 if ${ac_cv_prog_YACC+:} false
; then :
4095 $as_echo_n "(cached) " >&6
4097 if test -n "$YACC"; then
4098 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
4100 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4104 test -z "$as_dir" && as_dir
=.
4105 for ac_exec_ext
in '' $ac_executable_extensions; do
4106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4107 ac_cv_prog_YACC
="$ac_prog"
4108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4117 YACC
=$ac_cv_prog_YACC
4118 if test -n "$YACC"; then
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4120 $as_echo "$YACC" >&6; }
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4123 $as_echo "no" >&6; }
4127 test -n "$YACC" && break
4130 if test "x$YACC" = x
; then
4131 as_fn_error $?
"bison is not found" "$LINENO" 5
4136 for ext
in pcf pcf.gz bdf bdf.gz ttf ttf.gz
; do
4137 for dir
in .
/usr
/src
/usr
/share
/fonts
/X11
/misc
/usr
/share
/fonts
/unifont
; do
4138 if test -f "$dir/unifont.$ext"; then
4139 FONT_SOURCE
="$dir/unifont.$ext"
4145 if test "x$FONT_SOURCE" = x
&& ( test "x$platform" = xqemu ||
test "x$platform" = xloongson ||
test "x$platform" = xqemu_mips
); then
4146 as_fn_error $?
"qemu and loongson ports need unifont" "$LINENO" 5
4151 if test -n "$ac_tool_prefix"; then
4152 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4153 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4155 $as_echo_n "checking for $ac_word... " >&6; }
4156 if ${ac_cv_prog_RANLIB+:} false
; then :
4157 $as_echo_n "(cached) " >&6
4159 if test -n "$RANLIB"; then
4160 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4162 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4166 test -z "$as_dir" && as_dir
=.
4167 for ac_exec_ext
in '' $ac_executable_extensions; do
4168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4169 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4179 RANLIB
=$ac_cv_prog_RANLIB
4180 if test -n "$RANLIB"; then
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4182 $as_echo "$RANLIB" >&6; }
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4185 $as_echo "no" >&6; }
4190 if test -z "$ac_cv_prog_RANLIB"; then
4191 ac_ct_RANLIB
=$RANLIB
4192 # Extract the first word of "ranlib", so it can be a program name with args.
4193 set dummy ranlib
; ac_word
=$2
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4195 $as_echo_n "checking for $ac_word... " >&6; }
4196 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
4197 $as_echo_n "(cached) " >&6
4199 if test -n "$ac_ct_RANLIB"; then
4200 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4202 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4206 test -z "$as_dir" && as_dir
=.
4207 for ac_exec_ext
in '' $ac_executable_extensions; do
4208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4209 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4219 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4220 if test -n "$ac_ct_RANLIB"; then
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4222 $as_echo "$ac_ct_RANLIB" >&6; }
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4225 $as_echo "no" >&6; }
4228 if test "x$ac_ct_RANLIB" = x
; then
4231 case $cross_compiling:$ac_tool_warned in
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4235 ac_tool_warned
=yes ;;
4237 RANLIB
=$ac_ct_RANLIB
4240 RANLIB
="$ac_cv_prog_RANLIB"
4244 for ac_prog
in gawk mawk nawk
awk
4246 # Extract the first word of "$ac_prog", so it can be a program name with args.
4247 set dummy
$ac_prog; ac_word
=$2
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4249 $as_echo_n "checking for $ac_word... " >&6; }
4250 if ${ac_cv_prog_AWK+:} false
; then :
4251 $as_echo_n "(cached) " >&6
4253 if test -n "$AWK"; then
4254 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4256 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4260 test -z "$as_dir" && as_dir
=.
4261 for ac_exec_ext
in '' $ac_executable_extensions; do
4262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4263 ac_cv_prog_AWK
="$ac_prog"
4264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4274 if test -n "$AWK"; then
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4276 $as_echo "$AWK" >&6; }
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4279 $as_echo "no" >&6; }
4283 test -n "$AWK" && break
4286 DEPDIR
="${am__leading_dot}deps"
4288 ac_config_commands
="$ac_config_commands depfiles"
4291 am_make
=${MAKE-make}
4292 cat > confinc
<< 'END'
4294 @
echo this is the am__doit target
4297 # If we don't find an include directive, just comment out the code.
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4299 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4303 # First try GNU make style include.
4304 echo "include confinc" > confmf
4305 # Ignore all kinds of additional output from `make'.
4306 case `$am_make -s -f confmf 2> /dev/null` in #(
4307 *the\ am__doit\ target
*)
4313 # Now try BSD make style include.
4314 if test "$am__include" = "#"; then
4315 echo '.include "confinc"' > confmf
4316 case `$am_make -s -f confmf 2> /dev/null` in #(
4317 *the\ am__doit\ target
*)
4318 am__include
=.include
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4327 $as_echo "$_am_result" >&6; }
4328 rm -f confinc confmf
4330 # Check whether --enable-dependency-tracking was given.
4331 if test "${enable_dependency_tracking+set}" = set; then :
4332 enableval
=$enable_dependency_tracking;
4335 if test "x$enable_dependency_tracking" != xno
; then
4336 am_depcomp
="$ac_aux_dir/depcomp"
4339 if test "x$enable_dependency_tracking" != xno; then
4349 ac_cpp
='$CPP $CPPFLAGS'
4350 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4351 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4352 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4353 if test -n "$ac_tool_prefix"; then
4354 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4355 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4357 $as_echo_n "checking for $ac_word... " >&6; }
4358 if ${ac_cv_prog_CC+:} false
; then :
4359 $as_echo_n "(cached) " >&6
4361 if test -n "$CC"; then
4362 ac_cv_prog_CC
="$CC" # Let the user override the test.
4364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4368 test -z "$as_dir" && as_dir
=.
4369 for ac_exec_ext
in '' $ac_executable_extensions; do
4370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4371 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4382 if test -n "$CC"; then
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4384 $as_echo "$CC" >&6; }
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387 $as_echo "no" >&6; }
4392 if test -z "$ac_cv_prog_CC"; then
4394 # Extract the first word of "gcc", so it can be a program name with args.
4395 set dummy gcc
; ac_word
=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4399 $as_echo_n "(cached) " >&6
4401 if test -n "$ac_ct_CC"; then
4402 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4404 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4408 test -z "$as_dir" && as_dir
=.
4409 for ac_exec_ext
in '' $ac_executable_extensions; do
4410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411 ac_cv_prog_ac_ct_CC
="gcc"
4412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4422 if test -n "$ac_ct_CC"; then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4424 $as_echo "$ac_ct_CC" >&6; }
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4430 if test "x$ac_ct_CC" = x
; then
4433 case $cross_compiling:$ac_tool_warned in
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4437 ac_tool_warned
=yes ;;
4445 if test -z "$CC"; then
4446 if test -n "$ac_tool_prefix"; then
4447 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4448 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4450 $as_echo_n "checking for $ac_word... " >&6; }
4451 if ${ac_cv_prog_CC+:} false
; then :
4452 $as_echo_n "(cached) " >&6
4454 if test -n "$CC"; then
4455 ac_cv_prog_CC
="$CC" # Let the user override the test.
4457 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4461 test -z "$as_dir" && as_dir
=.
4462 for ac_exec_ext
in '' $ac_executable_extensions; do
4463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4464 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4475 if test -n "$CC"; then
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4477 $as_echo "$CC" >&6; }
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4480 $as_echo "no" >&6; }
4486 if test -z "$CC"; then
4487 # Extract the first word of "cc", so it can be a program name with args.
4488 set dummy cc
; ac_word
=$2
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4490 $as_echo_n "checking for $ac_word... " >&6; }
4491 if ${ac_cv_prog_CC+:} false
; then :
4492 $as_echo_n "(cached) " >&6
4494 if test -n "$CC"; then
4495 ac_cv_prog_CC
="$CC" # Let the user override the test.
4498 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4502 test -z "$as_dir" && as_dir
=.
4503 for ac_exec_ext
in '' $ac_executable_extensions; do
4504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4505 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4506 ac_prog_rejected
=yes
4510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4517 if test $ac_prog_rejected = yes; then
4518 # We found a bogon in the path, so make sure we never use it.
4519 set dummy
$ac_cv_prog_CC
4521 if test $# != 0; then
4522 # We chose a different compiler from the bogus one.
4523 # However, it has the same basename, so the bogon will be chosen
4524 # first if we set CC to just the basename; use the full file name.
4526 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4532 if test -n "$CC"; then
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4534 $as_echo "$CC" >&6; }
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4537 $as_echo "no" >&6; }
4542 if test -z "$CC"; then
4543 if test -n "$ac_tool_prefix"; then
4544 for ac_prog
in cl.exe
4546 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4547 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4549 $as_echo_n "checking for $ac_word... " >&6; }
4550 if ${ac_cv_prog_CC+:} false
; then :
4551 $as_echo_n "(cached) " >&6
4553 if test -n "$CC"; then
4554 ac_cv_prog_CC
="$CC" # Let the user override the test.
4556 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4560 test -z "$as_dir" && as_dir
=.
4561 for ac_exec_ext
in '' $ac_executable_extensions; do
4562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4563 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 if test -n "$CC"; then
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4576 $as_echo "$CC" >&6; }
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579 $as_echo "no" >&6; }
4583 test -n "$CC" && break
4586 if test -z "$CC"; then
4588 for ac_prog
in cl.exe
4590 # Extract the first word of "$ac_prog", so it can be a program name with args.
4591 set dummy
$ac_prog; ac_word
=$2
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4593 $as_echo_n "checking for $ac_word... " >&6; }
4594 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4595 $as_echo_n "(cached) " >&6
4597 if test -n "$ac_ct_CC"; then
4598 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4600 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4604 test -z "$as_dir" && as_dir
=.
4605 for ac_exec_ext
in '' $ac_executable_extensions; do
4606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4607 ac_cv_prog_ac_ct_CC
="$ac_prog"
4608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4617 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4618 if test -n "$ac_ct_CC"; then
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4620 $as_echo "$ac_ct_CC" >&6; }
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623 $as_echo "no" >&6; }
4627 test -n "$ac_ct_CC" && break
4630 if test "x$ac_ct_CC" = x
; then
4633 case $cross_compiling:$ac_tool_warned in
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4637 ac_tool_warned
=yes ;;
4646 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4648 as_fn_error $?
"no acceptable C compiler found in \$PATH
4649 See \`config.log' for more details" "$LINENO" 5; }
4651 # Provide some information about the compiler.
4652 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4655 for ac_option
in --version -v -V -qversion; do
4656 { { ac_try
="$ac_compiler $ac_option >&5"
4658 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4659 *) ac_try_echo=$ac_try;;
4661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4662 $as_echo "$ac_try_echo"; } >&5
4663 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4665 if test -s conftest.err; then
4667 ... rest of stderr output deleted ...
4668 10q' conftest.err >conftest.er1
4669 cat conftest.er1 >&5
4671 rm -f conftest.er1 conftest.err
4672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4673 test $ac_status = 0; }
4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 /* end confdefs.h. */
4687 ac_clean_files_save=$ac_clean_files
4688 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4689 # Try to create an executable without -o first, disregard a.out.
4690 # It will help us diagnose broken compilers, and finding out an intuition
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4693 $as_echo_n "checking whether the C compiler works... " >&6; }
4694 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4696 # The possible output files:
4697 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4700 for ac_file in $ac_files
4703 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4704 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4709 if { { ac_try="$ac_link_default"
4711 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4712 *) ac_try_echo
=$ac_try;;
4714 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4715 $as_echo "$ac_try_echo"; } >&5
4716 (eval "$ac_link_default") 2>&5
4718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4719 test $ac_status = 0; }; then :
4720 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4721 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4722 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4723 # so that the user can short-circuit this test for compilers unknown to
4725 for ac_file
in $ac_files ''
4727 test -f "$ac_file" ||
continue
4729 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4732 # We found the default executable, but exeext='' is most
4736 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4738 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4740 # We set ac_cv_exeext here because the later test for it is not
4741 # safe: cross compilers may not add the suffix if given an `-o'
4742 # argument, so we may need to know it at that point already.
4743 # Even if this section looks crufty: it has the advantage of
4750 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4755 if test -z "$ac_file"; then :
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757 $as_echo "no" >&6; }
4758 $as_echo "$as_me: failed program was:" >&5
4759 sed 's/^/| /' conftest.
$ac_ext >&5
4761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4763 as_fn_error
77 "C compiler cannot create executables
4764 See \`config.log' for more details" "$LINENO" 5; }
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4767 $as_echo "yes" >&6; }
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4770 $as_echo_n "checking for C compiler default output file name... " >&6; }
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4772 $as_echo "$ac_file" >&6; }
4773 ac_exeext
=$ac_cv_exeext
4775 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4776 ac_clean_files
=$ac_clean_files_save
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4778 $as_echo_n "checking for suffix of executables... " >&6; }
4779 if { { ac_try
="$ac_link"
4781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4782 *) ac_try_echo=$ac_try;;
4784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4785 $as_echo "$ac_try_echo"; } >&5
4786 (eval "$ac_link") 2>&5
4788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4789 test $ac_status = 0; }; then :
4790 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4791 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4792 # work properly (i.e., refer to `conftest.exe'), while it won't with
4794 for ac_file
in conftest.exe conftest conftest.
*; do
4795 test -f "$ac_file" ||
continue
4797 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4798 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4804 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4806 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4807 See \`config.log' for more details" "$LINENO" 5; }
4809 rm -f conftest conftest
$ac_cv_exeext
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4811 $as_echo "$ac_cv_exeext" >&6; }
4813 rm -f conftest.
$ac_ext
4814 EXEEXT
=$ac_cv_exeext
4816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4822 FILE *f = fopen ("conftest.out", "w");
4823 return ferror (f) || fclose (f) != 0;
4829 ac_clean_files
="$ac_clean_files conftest.out"
4830 # Check that the compiler produces executables we can run. If not, either
4831 # the compiler is broken, or we cross compile.
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4833 $as_echo_n "checking whether we are cross compiling... " >&6; }
4834 if test "$cross_compiling" != yes; then
4835 { { ac_try
="$ac_link"
4837 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4838 *) ac_try_echo=$ac_try;;
4840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4841 $as_echo "$ac_try_echo"; } >&5
4842 (eval "$ac_link") 2>&5
4844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4845 test $ac_status = 0; }
4846 if { ac_try='./conftest$ac_cv_exeext'
4847 { { case "(($ac_try" in
4848 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4849 *) ac_try_echo
=$ac_try;;
4851 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4852 $as_echo "$ac_try_echo"; } >&5
4853 (eval "$ac_try") 2>&5
4855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4856 test $ac_status = 0; }; }; then
4859 if test "$cross_compiling" = maybe
; then
4862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4864 as_fn_error $?
"cannot run C compiled programs.
4865 If you meant to cross compile, use \`--host'.
4866 See \`config.log' for more details" "$LINENO" 5; }
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4871 $as_echo "$cross_compiling" >&6; }
4873 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4874 ac_clean_files
=$ac_clean_files_save
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4876 $as_echo_n "checking for suffix of object files... " >&6; }
4877 if ${ac_cv_objext+:} false
; then :
4878 $as_echo_n "(cached) " >&6
4880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4881 /* end confdefs.h. */
4891 rm -f conftest.o conftest.obj
4892 if { { ac_try
="$ac_compile"
4894 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4895 *) ac_try_echo=$ac_try;;
4897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4898 $as_echo "$ac_try_echo"; } >&5
4899 (eval "$ac_compile") 2>&5
4901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4902 test $ac_status = 0; }; then :
4903 for ac_file in conftest.o conftest.obj conftest.*; do
4904 test -f "$ac_file" || continue;
4906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4907 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4912 $as_echo "$as_me: failed program was:" >&5
4913 sed 's/^/| /' conftest.$ac_ext >&5
4915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4917 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4918 See \
`config.log' for more details" "$LINENO" 5; }
4920 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4923 $as_echo "$ac_cv_objext" >&6; }
4924 OBJEXT=$ac_cv_objext
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4927 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4928 if ${ac_cv_c_compiler_gnu+:} false; then :
4929 $as_echo_n "(cached) " >&6
4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h. */
4945 if ac_fn_c_try_compile "$LINENO"; then :
4950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4955 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4956 if test $ac_compiler_gnu = yes; then
4961 ac_test_CFLAGS=${CFLAGS+set}
4962 ac_save_CFLAGS=$CFLAGS
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4964 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4965 if ${ac_cv_prog_cc_g+:} false; then :
4966 $as_echo_n "(cached) " >&6
4968 ac_save_c_werror_flag=$ac_c_werror_flag
4969 ac_c_werror_flag=yes
4972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4973 /* end confdefs.h. */
4983 if ac_fn_c_try_compile "$LINENO"; then :
4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h. */
4998 if ac_fn_c_try_compile "$LINENO"; then :
5001 ac_c_werror_flag=$ac_save_c_werror_flag
5003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5004 /* end confdefs.h. */
5014 if ac_fn_c_try_compile "$LINENO"; then :
5017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5022 ac_c_werror_flag=$ac_save_c_werror_flag
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5025 $as_echo "$ac_cv_prog_cc_g" >&6; }
5026 if test "$ac_test_CFLAGS" = set; then
5027 CFLAGS=$ac_save_CFLAGS
5028 elif test $ac_cv_prog_cc_g = yes; then
5029 if test "$GCC" = yes; then
5035 if test "$GCC" = yes; then
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5042 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5043 if ${ac_cv_prog_cc_c89+:} false; then :
5044 $as_echo_n "(cached) " >&6
5046 ac_cv_prog_cc_c89=no
5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h. */
5052 #include <sys/types.h>
5053 #include <sys/stat.h>
5054 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5055 struct buf { int x; };
5056 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5057 static char *e (p, i)
5063 static char *f (char * (*g) (char **, int), char **p, ...)
5068 s = g (p, va_arg (v,int));
5073 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5074 function prototypes and stuff, but not '\xHH' hex character constants.
5075 These don't provoke an error unfortunately, instead are silently treated
5076 as 'x'. The following induces an error, until -std is added to get
5077 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5078 array size at least. It's necessary to write '\x00'==0 to get something
5079 that's true only with -std. */
5080 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5082 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5083 inside strings and character constants. */
5085 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5087 int test (int i, double x);
5088 struct s1 {int (*f) (int a);};
5089 struct s2 {int (*f) (double a);};
5090 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5096 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5101 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5102 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5104 CC="$ac_save_CC $ac_arg"
5105 if ac_fn_c_try_compile "$LINENO"; then :
5106 ac_cv_prog_cc_c89=$ac_arg
5108 rm -f core conftest.err conftest.$ac_objext
5109 test "x$ac_cv_prog_cc_c89" != "xno" && break
5111 rm -f conftest.$ac_ext
5116 case "x$ac_cv_prog_cc_c89" in
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5119 $as_echo "none needed" >&6; } ;;
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5122 $as_echo "unsupported" >&6; } ;;
5124 CC="$CC $ac_cv_prog_cc_c89"
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5126 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5128 if test "x$ac_cv_prog_cc_c89" != xno; then :
5133 ac_cpp='$CPP $CPPFLAGS'
5134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5138 depcc="$CC" am_compiler_list=
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5141 $as_echo_n "checking dependency style of $depcc... " >&6; }
5142 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5143 $as_echo_n "(cached) " >&6
5145 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5146 # We make a subdir and do the tests there. Otherwise we can end up
5147 # making bogus files that we don't know about and never remove. For
5148 # instance it was reported that on HP-UX the gcc test will end up
5149 # making a dummy file named `D
' -- because `-MD' means
`put the output
5152 # Copy depcomp to subdir because otherwise we won't find it if we're
5153 # using a relative directory.
5154 cp "$am_depcomp" conftest.dir
5156 # We will build objects and dependencies in a subdirectory because
5157 # it helps to detect inapplicable dependency modes. For instance
5158 # both Tru64's cc and ICC support -MD to output dependencies as a
5159 # side effect of compilation, but ICC will put the dependencies in
5160 # the current directory while Tru64 will put them in the object
5164 am_cv_CC_dependencies_compiler_type=none
5165 if test "$am_compiler_list" = ""; then
5166 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
5169 case " $depcc " in #(
5170 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5173 for depmode in $am_compiler_list; do
5174 # Setup a source with many dependencies, because some compilers
5175 # like to wrap large dependency lists on column 80 (with \), and
5176 # we should not choose a depcomp mode which is confused by this.
5178 # We need to recreate these files for each test, as the compiler may
5179 # overwrite some of them when testing with obscure command lines.
5180 # This happens at least with the AIX C compiler.
5182 for i in 1 2 3 4 5 6; do
5183 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5184 # Using `: > sub
/conftst
$i.h
' creates only sub/conftst1.h with
5185 # Solaris 8's
{/usr
,}/bin
/sh.
5186 touch sub
/conftst
$i.h
5188 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5190 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5191 # mode. It turns out that the SunPro C++ compiler does not properly
5192 # handle `-M -o', and we need to detect this. Also, some Intel
5193 # versions had trouble with output in subdirs
5194 am__obj
=sub
/conftest.
${OBJEXT-o}
5195 am__minus_obj
="-o $am__obj"
5198 # This depmode causes a compiler race in universal mode.
5199 test "$am__universal" = false ||
continue
5202 # after this tag, mechanisms are not by side-effect, so they'll
5203 # only be used when explicitly requested
5204 if test "x$enable_dependency_tracking" = xyes
; then
5210 msvisualcpp | msvcmsys
)
5211 # This compiler won't grok `-c -o', but also, the minuso test has
5212 # not run yet. These depmodes are late enough in the game, and
5213 # so weak that their functioning should not be impacted.
5214 am__obj
=conftest.
${OBJEXT-o}
5219 if depmode
=$depmode \
5220 source=sub
/conftest.c object
=$am__obj \
5221 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5222 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5223 >/dev
/null
2>conftest.err
&&
5224 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5225 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5226 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5227 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5228 # icc doesn't choke on unknown options, it will just issue warnings
5229 # or remarks (even with -Werror). So we grep stderr for any message
5230 # that says an option was ignored or not supported.
5231 # When given -MP, icc 7.0 and 7.1 complain thusly:
5232 # icc: Command line warning: ignoring option '-M'; no argument required
5233 # The diagnosis changed in icc 8.0:
5234 # icc: Command line remark: option '-MP' not supported
5235 if (grep 'ignoring option' conftest.err ||
5236 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5237 am_cv_CC_dependencies_compiler_type
=$depmode
5246 am_cv_CC_dependencies_compiler_type
=none
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5251 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5252 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5255 test "x$enable_dependency_tracking" != xno \
5256 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5258 am__fastdepCC_FALSE
='#'
5260 am__fastdepCC_TRUE
='#'
5261 am__fastdepCC_FALSE
=
5266 for ac_prog
in flex
lex
5268 # Extract the first word of "$ac_prog", so it can be a program name with args.
5269 set dummy
$ac_prog; ac_word
=$2
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5271 $as_echo_n "checking for $ac_word... " >&6; }
5272 if ${ac_cv_prog_LEX+:} false
; then :
5273 $as_echo_n "(cached) " >&6
5275 if test -n "$LEX"; then
5276 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
5278 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5282 test -z "$as_dir" && as_dir
=.
5283 for ac_exec_ext
in '' $ac_executable_extensions; do
5284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5285 ac_cv_prog_LEX
="$ac_prog"
5286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 if test -n "$LEX"; then
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5298 $as_echo "$LEX" >&6; }
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301 $as_echo "no" >&6; }
5305 test -n "$LEX" && break
5307 test -n "$LEX" || LEX
=":"
5309 if test "x$LEX" != "x:"; then
5310 cat >conftest.l
<<_ACEOF
5316 e { yyless (input () != 0); }
5317 f { unput (yytext[0]); }
5318 . { BEGIN INITIAL; }
5320 #ifdef YYTEXT_POINTER
5321 extern char *yytext;
5326 return ! yylex () + ! yywrap ();
5329 { { ac_try
="$LEX conftest.l"
5331 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5332 *) ac_try_echo=$ac_try;;
5334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5335 $as_echo "$ac_try_echo"; } >&5
5336 (eval "$LEX conftest.l") 2>&5
5338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5339 test $ac_status = 0; }
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5341 $as_echo_n "checking lex output file root... " >&6; }
5342 if ${ac_cv_prog_lex_root+:} false; then :
5343 $as_echo_n "(cached) " >&6
5346 if test -f lex.yy.c; then
5347 ac_cv_prog_lex_root=lex.yy
5348 elif test -f lexyy.c; then
5349 ac_cv_prog_lex_root=lexyy
5351 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5355 $as_echo "$ac_cv_prog_lex_root" >&6; }
5356 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5358 if test -z "${LEXLIB+set}"; then
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5360 $as_echo_n "checking lex library... " >&6; }
5361 if ${ac_cv_lib_lex+:} false; then :
5362 $as_echo_n "(cached) " >&6
5366 ac_cv_lib_lex='none needed'
5367 for ac_lib in '' -lfl -ll; do
5368 LIBS="$ac_lib $ac_save_LIBS"
5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h. */
5371 `cat $LEX_OUTPUT_ROOT.c
`
5373 if ac_fn_c_try_link "$LINENO"; then :
5374 ac_cv_lib_lex=$ac_lib
5376 rm -f core conftest.err conftest.$ac_objext \
5377 conftest$ac_exeext conftest.$ac_ext
5378 test "$ac_cv_lib_lex" != 'none needed' && break
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5384 $as_echo "$ac_cv_lib_lex" >&6; }
5385 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5390 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5391 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
5392 $as_echo_n "(cached) " >&6
5394 # POSIX says lex can declare yytext either as a pointer or an array; the
5395 # default is implementation-dependent. Figure out which it is, since
5396 # not all implementations provide the %pointer and %array declarations.
5397 ac_cv_prog_lex_yytext_pointer=no
5399 LIBS="$LEXLIB $ac_save_LIBS"
5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h. */
5403 #define YYTEXT_POINTER 1
5404 `cat $LEX_OUTPUT_ROOT.c
`
5406 if ac_fn_c_try_link "$LINENO"; then :
5407 ac_cv_prog_lex_yytext_pointer=yes
5409 rm -f core conftest.err conftest.$ac_objext \
5410 conftest$ac_exeext conftest.$ac_ext
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5415 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5416 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5418 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5421 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5424 for ac_prog in 'bison -y' byacc
5426 # Extract the first word of "$ac_prog", so it can be a program name with args.
5427 set dummy $ac_prog; ac_word=$2
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5429 $as_echo_n "checking for $ac_word... " >&6; }
5430 if ${ac_cv_prog_YACC+:} false; then :
5431 $as_echo_n "(cached) " >&6
5433 if test -n "$YACC"; then
5434 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440 test -z "$as_dir" && as_dir=.
5441 for ac_exec_ext in '' $ac_executable_extensions; do
5442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5443 ac_cv_prog_YACC="$ac_prog"
5444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5453 YACC=$ac_cv_prog_YACC
5454 if test -n "$YACC"; then
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5456 $as_echo "$YACC" >&6; }
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459 $as_echo "no" >&6; }
5463 test -n "$YACC" && break
5465 test -n "$YACC" || YACC="yacc"
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5468 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5470 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5471 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5472 $as_echo_n "(cached) " >&6
5474 cat >conftest.make <<\_ACEOF
5477 @echo '@@@%%%=$(MAKE)=@@@%%%'
5479 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5480 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
5482 eval ac_cv_prog_make_${ac_make}_set=yes;;
5484 eval ac_cv_prog_make_${ac_make}_set=no;;
5488 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5490 $as_echo "yes" >&6; }
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494 $as_echo "no" >&6; }
5495 SET_MAKE="MAKE=${MAKE-make}"
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5500 $as_echo_n "checking whether ln -s works... " >&6; }
5502 if test "$LN_S" = "ln -s"; then
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5504 $as_echo "yes" >&6; }
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5507 $as_echo "no, using $LN_S" >&6; }
5511 if test "x$LEX" = "x:"; then
5512 as_fn_error $? "flex is not found" "$LINENO" 5
5514 version=`$LEX --version |
$AWK '{ split($NF,x,"."); print x[1]*10000+x[2]*100+x[3]; }'`
5515 if test -n "$version" -a "$version" -ge 20535; then
5518 as_fn_error $? "flex is too old. GRUB requires 2.5.35 or above" "$LINENO" 5
5522 # These are not a "must".
5523 for ac_prog in makeinfo true
5525 # Extract the first word of "$ac_prog", so it can be a program name with args.
5526 set dummy $ac_prog; ac_word=$2
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5528 $as_echo_n "checking for $ac_word... " >&6; }
5529 if ${ac_cv_path_MAKEINFO+:} false; then :
5530 $as_echo_n "(cached) " >&6
5534 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541 test -z "$as_dir" && as_dir=.
5542 for ac_exec_ext in '' $ac_executable_extensions; do
5543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5544 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5555 MAKEINFO=$ac_cv_path_MAKEINFO
5556 if test -n "$MAKEINFO"; then
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5558 $as_echo "$MAKEINFO" >&6; }
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561 $as_echo "no" >&6; }
5565 test -n "$MAKEINFO" && break
5570 # Checks for host programs.
5574 ac_cpp='$CPP $CPPFLAGS'
5575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5578 if test -n "$ac_tool_prefix"; then
5579 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5580 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5582 $as_echo_n "checking for $ac_word... " >&6; }
5583 if ${ac_cv_prog_CC+:} false; then :
5584 $as_echo_n "(cached) " >&6
5586 if test -n "$CC"; then
5587 ac_cv_prog_CC="$CC" # Let the user override the test.
5589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593 test -z "$as_dir" && as_dir=.
5594 for ac_exec_ext in '' $ac_executable_extensions; do
5595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5596 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5607 if test -n "$CC"; then
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5609 $as_echo "$CC" >&6; }
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612 $as_echo "no" >&6; }
5617 if test -z "$ac_cv_prog_CC"; then
5619 # Extract the first word of "gcc", so it can be a program name with args.
5620 set dummy gcc; ac_word=$2
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5622 $as_echo_n "checking for $ac_word... " >&6; }
5623 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5624 $as_echo_n "(cached) " >&6
5626 if test -n "$ac_ct_CC"; then
5627 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 test -z "$as_dir" && as_dir=.
5634 for ac_exec_ext in '' $ac_executable_extensions; do
5635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5636 ac_cv_prog_ac_ct_CC="gcc"
5637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5646 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5647 if test -n "$ac_ct_CC"; then
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5649 $as_echo "$ac_ct_CC" >&6; }
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652 $as_echo "no" >&6; }
5655 if test "x$ac_ct_CC" = x; then
5658 case $cross_compiling:$ac_tool_warned in
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5662 ac_tool_warned=yes ;;
5670 if test -z "$CC"; then
5671 if test -n "$ac_tool_prefix"; then
5672 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5673 set dummy ${ac_tool_prefix}cc; ac_word=$2
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5675 $as_echo_n "checking for $ac_word... " >&6; }
5676 if ${ac_cv_prog_CC+:} false; then :
5677 $as_echo_n "(cached) " >&6
5679 if test -n "$CC"; then
5680 ac_cv_prog_CC="$CC" # Let the user override the test.
5682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686 test -z "$as_dir" && as_dir=.
5687 for ac_exec_ext in '' $ac_executable_extensions; do
5688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5689 ac_cv_prog_CC="${ac_tool_prefix}cc"
5690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5700 if test -n "$CC"; then
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5702 $as_echo "$CC" >&6; }
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5705 $as_echo "no" >&6; }
5711 if test -z "$CC"; then
5712 # Extract the first word of "cc", so it can be a program name with args.
5713 set dummy cc; ac_word=$2
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5715 $as_echo_n "checking for $ac_word... " >&6; }
5716 if ${ac_cv_prog_CC+:} false; then :
5717 $as_echo_n "(cached) " >&6
5719 if test -n "$CC"; then
5720 ac_cv_prog_CC="$CC" # Let the user override the test.
5723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 test -z "$as_dir" && as_dir=.
5728 for ac_exec_ext in '' $ac_executable_extensions; do
5729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5730 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5731 ac_prog_rejected=yes
5735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5742 if test $ac_prog_rejected = yes; then
5743 # We found a bogon in the path, so make sure we never use it.
5744 set dummy $ac_cv_prog_CC
5746 if test $# != 0; then
5747 # We chose a different compiler from the bogus one.
5748 # However, it has the same basename, so the bogon will be chosen
5749 # first if we set CC to just the basename; use the full file name.
5751 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5757 if test -n "$CC"; then
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5759 $as_echo "$CC" >&6; }
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5762 $as_echo "no" >&6; }
5767 if test -z "$CC"; then
5768 if test -n "$ac_tool_prefix"; then
5769 for ac_prog in cl.exe
5771 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5772 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5774 $as_echo_n "checking for $ac_word... " >&6; }
5775 if ${ac_cv_prog_CC+:} false; then :
5776 $as_echo_n "(cached) " >&6
5778 if test -n "$CC"; then
5779 ac_cv_prog_CC="$CC" # Let the user override the test.
5781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 test -z "$as_dir" && as_dir=.
5786 for ac_exec_ext in '' $ac_executable_extensions; do
5787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5788 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5799 if test -n "$CC"; then
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5801 $as_echo "$CC" >&6; }
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5804 $as_echo "no" >&6; }
5808 test -n "$CC" && break
5811 if test -z "$CC"; then
5813 for ac_prog in cl.exe
5815 # Extract the first word of "$ac_prog", so it can be a program name with args.
5816 set dummy $ac_prog; ac_word=$2
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818 $as_echo_n "checking for $ac_word... " >&6; }
5819 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5820 $as_echo_n "(cached) " >&6
5822 if test -n "$ac_ct_CC"; then
5823 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 test -z "$as_dir" && as_dir=.
5830 for ac_exec_ext in '' $ac_executable_extensions; do
5831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5832 ac_cv_prog_ac_ct_CC="$ac_prog"
5833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5842 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5843 if test -n "$ac_ct_CC"; then
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5845 $as_echo "$ac_ct_CC" >&6; }
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848 $as_echo "no" >&6; }
5852 test -n "$ac_ct_CC" && break
5855 if test "x$ac_ct_CC" = x; then
5858 case $cross_compiling:$ac_tool_warned in
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5862 ac_tool_warned=yes ;;
5871 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5873 as_fn_error $? "no acceptable C compiler found
in \
$PATH
5874 See \
`config.log' for more details" "$LINENO" 5; }
5876 # Provide some information about the compiler.
5877 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5880 for ac_option in --version -v -V -qversion; do
5881 { { ac_try="$ac_compiler $ac_option >&5"
5883 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5884 *) ac_try_echo
=$ac_try;;
5886 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5887 $as_echo "$ac_try_echo"; } >&5
5888 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5890 if test -s conftest.err
; then
5892 ... rest of stderr output deleted ...
5893 10q' conftest.err
>conftest.er1
5894 cat conftest.er1
>&5
5896 rm -f conftest.er1 conftest.err
5897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5898 test $ac_status = 0; }
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5902 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5903 if ${ac_cv_c_compiler_gnu+:} false
; then :
5904 $as_echo_n "(cached) " >&6
5906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5907 /* end confdefs.h. */
5920 if ac_fn_c_try_compile
"$LINENO"; then :
5925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5926 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5930 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5931 if test $ac_compiler_gnu = yes; then
5936 ac_test_CFLAGS
=${CFLAGS+set}
5937 ac_save_CFLAGS
=$CFLAGS
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5939 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5940 if ${ac_cv_prog_cc_g+:} false
; then :
5941 $as_echo_n "(cached) " >&6
5943 ac_save_c_werror_flag
=$ac_c_werror_flag
5944 ac_c_werror_flag
=yes
5947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5948 /* end confdefs.h. */
5958 if ac_fn_c_try_compile
"$LINENO"; then :
5962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5963 /* end confdefs.h. */
5973 if ac_fn_c_try_compile
"$LINENO"; then :
5976 ac_c_werror_flag
=$ac_save_c_werror_flag
5978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5979 /* end confdefs.h. */
5989 if ac_fn_c_try_compile
"$LINENO"; then :
5992 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5994 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5997 ac_c_werror_flag
=$ac_save_c_werror_flag
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6000 $as_echo "$ac_cv_prog_cc_g" >&6; }
6001 if test "$ac_test_CFLAGS" = set; then
6002 CFLAGS
=$ac_save_CFLAGS
6003 elif test $ac_cv_prog_cc_g = yes; then
6004 if test "$GCC" = yes; then
6010 if test "$GCC" = yes; then
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6017 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6018 if ${ac_cv_prog_cc_c89+:} false
; then :
6019 $as_echo_n "(cached) " >&6
6021 ac_cv_prog_cc_c89
=no
6023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6024 /* end confdefs.h. */
6027 #include <sys/types.h>
6028 #include <sys/stat.h>
6029 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6030 struct buf { int x; };
6031 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6032 static char *e (p, i)
6038 static char *f (char * (*g) (char **, int), char **p, ...)
6043 s = g (p, va_arg (v,int));
6048 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6049 function prototypes and stuff, but not '\xHH' hex character constants.
6050 These don't provoke an error unfortunately, instead are silently treated
6051 as 'x'. The following induces an error, until -std is added to get
6052 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6053 array size at least. It's necessary to write '\x00'==0 to get something
6054 that's true only with -std. */
6055 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6057 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6058 inside strings and character constants. */
6060 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6062 int test (int i, double x);
6063 struct s1 {int (*f) (int a);};
6064 struct s2 {int (*f) (double a);};
6065 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6071 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6076 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
6077 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6079 CC
="$ac_save_CC $ac_arg"
6080 if ac_fn_c_try_compile
"$LINENO"; then :
6081 ac_cv_prog_cc_c89
=$ac_arg
6083 rm -f core conftest.err conftest.
$ac_objext
6084 test "x$ac_cv_prog_cc_c89" != "xno" && break
6086 rm -f conftest.
$ac_ext
6091 case "x$ac_cv_prog_cc_c89" in
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6094 $as_echo "none needed" >&6; } ;;
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6097 $as_echo "unsupported" >&6; } ;;
6099 CC
="$CC $ac_cv_prog_cc_c89"
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6101 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6103 if test "x$ac_cv_prog_cc_c89" != xno
; then :
6108 ac_cpp
='$CPP $CPPFLAGS'
6109 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6110 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6111 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6113 depcc
="$CC" am_compiler_list
=
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6116 $as_echo_n "checking dependency style of $depcc... " >&6; }
6117 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
6118 $as_echo_n "(cached) " >&6
6120 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6121 # We make a subdir and do the tests there. Otherwise we can end up
6122 # making bogus files that we don't know about and never remove. For
6123 # instance it was reported that on HP-UX the gcc test will end up
6124 # making a dummy file named `D' -- because `-MD' means `put the output
6127 # Copy depcomp to subdir because otherwise we won't find it if we're
6128 # using a relative directory.
6129 cp "$am_depcomp" conftest.dir
6131 # We will build objects and dependencies in a subdirectory because
6132 # it helps to detect inapplicable dependency modes. For instance
6133 # both Tru64's cc and ICC support -MD to output dependencies as a
6134 # side effect of compilation, but ICC will put the dependencies in
6135 # the current directory while Tru64 will put them in the object
6139 am_cv_CC_dependencies_compiler_type
=none
6140 if test "$am_compiler_list" = ""; then
6141 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6144 case " $depcc " in #(
6145 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
6148 for depmode
in $am_compiler_list; do
6149 # Setup a source with many dependencies, because some compilers
6150 # like to wrap large dependency lists on column 80 (with \), and
6151 # we should not choose a depcomp mode which is confused by this.
6153 # We need to recreate these files for each test, as the compiler may
6154 # overwrite some of them when testing with obscure command lines.
6155 # This happens at least with the AIX C compiler.
6157 for i
in 1 2 3 4 5 6; do
6158 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6159 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6160 # Solaris 8's {/usr,}/bin/sh.
6161 touch sub
/conftst
$i.h
6163 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6165 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6166 # mode. It turns out that the SunPro C++ compiler does not properly
6167 # handle `-M -o', and we need to detect this. Also, some Intel
6168 # versions had trouble with output in subdirs
6169 am__obj
=sub
/conftest.
${OBJEXT-o}
6170 am__minus_obj
="-o $am__obj"
6173 # This depmode causes a compiler race in universal mode.
6174 test "$am__universal" = false ||
continue
6177 # after this tag, mechanisms are not by side-effect, so they'll
6178 # only be used when explicitly requested
6179 if test "x$enable_dependency_tracking" = xyes
; then
6185 msvisualcpp | msvcmsys
)
6186 # This compiler won't grok `-c -o', but also, the minuso test has
6187 # not run yet. These depmodes are late enough in the game, and
6188 # so weak that their functioning should not be impacted.
6189 am__obj
=conftest.
${OBJEXT-o}
6194 if depmode
=$depmode \
6195 source=sub
/conftest.c object
=$am__obj \
6196 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
6197 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
6198 >/dev
/null
2>conftest.err
&&
6199 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
6200 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
6201 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
6202 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
6203 # icc doesn't choke on unknown options, it will just issue warnings
6204 # or remarks (even with -Werror). So we grep stderr for any message
6205 # that says an option was ignored or not supported.
6206 # When given -MP, icc 7.0 and 7.1 complain thusly:
6207 # icc: Command line warning: ignoring option '-M'; no argument required
6208 # The diagnosis changed in icc 8.0:
6209 # icc: Command line remark: option '-MP' not supported
6210 if (grep 'ignoring option' conftest.err ||
6211 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6212 am_cv_CC_dependencies_compiler_type
=$depmode
6221 am_cv_CC_dependencies_compiler_type
=none
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6226 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6227 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6230 test "x$enable_dependency_tracking" != xno \
6231 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
6233 am__fastdepCC_FALSE
='#'
6235 am__fastdepCC_TRUE
='#'
6236 am__fastdepCC_FALSE
=
6241 ac_cpp
='$CPP $CPPFLAGS'
6242 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6243 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6244 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6246 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6247 # On Suns, sometimes $CPP names a directory.
6248 if test -n "$CPP" && test -d "$CPP"; then
6251 if test -z "$CPP"; then
6252 if ${ac_cv_prog_CPP+:} false
; then :
6253 $as_echo_n "(cached) " >&6
6255 # Double quotes because CPP needs to be expanded
6256 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6259 for ac_c_preproc_warn_flag
in '' yes
6261 # Use a header file that comes with gcc, so configuring glibc
6262 # with a fresh cross-compiler works.
6263 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6264 # <limits.h> exists even on freestanding compilers.
6265 # On the NeXT, cc -E runs the code through the compiler's parser,
6266 # not just through cpp. "Syntax error" is here to catch this case.
6267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6268 /* end confdefs.h. */
6270 # include <limits.h>
6272 # include <assert.h>
6276 if ac_fn_c_try_cpp
"$LINENO"; then :
6279 # Broken: fails on valid input.
6282 rm -f conftest.err conftest.i conftest.
$ac_ext
6284 # OK, works on sane cases. Now check whether nonexistent headers
6285 # can be detected and how.
6286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h. */
6288 #include <ac_nonexistent.h>
6290 if ac_fn_c_try_cpp
"$LINENO"; then :
6291 # Broken: success on invalid input.
6294 # Passes both tests.
6298 rm -f conftest.err conftest.i conftest.
$ac_ext
6301 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6302 rm -f conftest.i conftest.err conftest.
$ac_ext
6303 if $ac_preproc_ok; then :
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6316 $as_echo "$CPP" >&6; }
6318 for ac_c_preproc_warn_flag
in '' yes
6320 # Use a header file that comes with gcc, so configuring glibc
6321 # with a fresh cross-compiler works.
6322 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6323 # <limits.h> exists even on freestanding compilers.
6324 # On the NeXT, cc -E runs the code through the compiler's parser,
6325 # not just through cpp. "Syntax error" is here to catch this case.
6326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6327 /* end confdefs.h. */
6329 # include <limits.h>
6331 # include <assert.h>
6335 if ac_fn_c_try_cpp
"$LINENO"; then :
6338 # Broken: fails on valid input.
6341 rm -f conftest.err conftest.i conftest.
$ac_ext
6343 # OK, works on sane cases. Now check whether nonexistent headers
6344 # can be detected and how.
6345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h. */
6347 #include <ac_nonexistent.h>
6349 if ac_fn_c_try_cpp
"$LINENO"; then :
6350 # Broken: success on invalid input.
6353 # Passes both tests.
6357 rm -f conftest.err conftest.i conftest.
$ac_ext
6360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6361 rm -f conftest.i conftest.err conftest.
$ac_ext
6362 if $ac_preproc_ok; then :
6365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6367 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6368 See \`config.log' for more details" "$LINENO" 5; }
6372 ac_cpp
='$CPP $CPPFLAGS'
6373 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6374 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6375 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6379 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6380 if ${ac_cv_path_GREP+:} false
; then :
6381 $as_echo_n "(cached) " >&6
6383 if test -z "$GREP"; then
6384 ac_path_GREP_found
=false
6385 # Loop through the user's path and test for each of PROGNAME-LIST
6386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6387 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6390 test -z "$as_dir" && as_dir
=.
6391 for ac_prog
in grep ggrep
; do
6392 for ac_exec_ext
in '' $ac_executable_extensions; do
6393 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6394 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
6395 # Check for GNU ac_path_GREP and select it if it is found.
6396 # Check for GNU $ac_path_GREP
6397 case `"$ac_path_GREP" --version 2>&1` in
6399 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6402 $as_echo_n 0123456789 >"conftest.in"
6405 cat "conftest.in" "conftest.in" >"conftest.tmp"
6406 mv "conftest.tmp" "conftest.in"
6407 cp "conftest.in" "conftest.nl"
6408 $as_echo 'GREP' >> "conftest.nl"
6409 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6410 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6411 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6412 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6413 # Best one so far, save it but keep looking for a better one
6414 ac_cv_path_GREP
="$ac_path_GREP"
6415 ac_path_GREP_max
=$ac_count
6417 # 10*(2^10) chars as input seems more than enough
6418 test $ac_count -gt 10 && break
6420 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6423 $ac_path_GREP_found && break 3
6428 if test -z "$ac_cv_path_GREP"; then
6429 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6432 ac_cv_path_GREP
=$GREP
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6437 $as_echo "$ac_cv_path_GREP" >&6; }
6438 GREP
="$ac_cv_path_GREP"
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6442 $as_echo_n "checking for egrep... " >&6; }
6443 if ${ac_cv_path_EGREP+:} false
; then :
6444 $as_echo_n "(cached) " >&6
6446 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6447 then ac_cv_path_EGREP
="$GREP -E"
6449 if test -z "$EGREP"; then
6450 ac_path_EGREP_found
=false
6451 # Loop through the user's path and test for each of PROGNAME-LIST
6452 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6453 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6456 test -z "$as_dir" && as_dir
=.
6457 for ac_prog
in egrep; do
6458 for ac_exec_ext
in '' $ac_executable_extensions; do
6459 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6460 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
6461 # Check for GNU ac_path_EGREP and select it if it is found.
6462 # Check for GNU $ac_path_EGREP
6463 case `"$ac_path_EGREP" --version 2>&1` in
6465 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6468 $as_echo_n 0123456789 >"conftest.in"
6471 cat "conftest.in" "conftest.in" >"conftest.tmp"
6472 mv "conftest.tmp" "conftest.in"
6473 cp "conftest.in" "conftest.nl"
6474 $as_echo 'EGREP' >> "conftest.nl"
6475 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6476 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6477 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6478 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6479 # Best one so far, save it but keep looking for a better one
6480 ac_cv_path_EGREP
="$ac_path_EGREP"
6481 ac_path_EGREP_max
=$ac_count
6483 # 10*(2^10) chars as input seems more than enough
6484 test $ac_count -gt 10 && break
6486 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6489 $ac_path_EGREP_found && break 3
6494 if test -z "$ac_cv_path_EGREP"; then
6495 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6498 ac_cv_path_EGREP
=$EGREP
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6504 $as_echo "$ac_cv_path_EGREP" >&6; }
6505 EGREP
="$ac_cv_path_EGREP"
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6509 $as_echo_n "checking for ANSI C header files... " >&6; }
6510 if ${ac_cv_header_stdc+:} false
; then :
6511 $as_echo_n "(cached) " >&6
6513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6514 /* end confdefs.h. */
6528 if ac_fn_c_try_compile
"$LINENO"; then :
6529 ac_cv_header_stdc
=yes
6531 ac_cv_header_stdc
=no
6533 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6535 if test $ac_cv_header_stdc = yes; then
6536 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h. */
6542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6543 $EGREP "memchr" >/dev
/null
2>&1; then :
6546 ac_cv_header_stdc
=no
6552 if test $ac_cv_header_stdc = yes; then
6553 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6555 /* end confdefs.h. */
6559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6560 $EGREP "free" >/dev
/null
2>&1; then :
6563 ac_cv_header_stdc
=no
6569 if test $ac_cv_header_stdc = yes; then
6570 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6571 if test "$cross_compiling" = yes; then :
6574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6575 /* end confdefs.h. */
6578 #if ((' ' & 0x0FF) == 0x020)
6579 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6580 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6582 # define ISLOWER(c) \
6583 (('a' <= (c) && (c) <= 'i') \
6584 || ('j' <= (c) && (c) <= 'r') \
6585 || ('s' <= (c) && (c) <= 'z'))
6586 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6589 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6594 for (i = 0; i < 256; i++)
6595 if (XOR (islower (i), ISLOWER (i))
6596 || toupper (i) != TOUPPER (i))
6601 if ac_fn_c_try_run
"$LINENO"; then :
6604 ac_cv_header_stdc
=no
6606 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6607 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6613 $as_echo "$ac_cv_header_stdc" >&6; }
6614 if test $ac_cv_header_stdc = yes; then
6616 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6620 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6621 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6622 inttypes.h stdint.h unistd.h
6624 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6625 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6627 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6628 cat >>confdefs.h
<<_ACEOF
6629 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6640 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6641 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
6648 if test "$MINIX" = yes; then
6650 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6653 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6656 $as_echo "#define _MINIX 1" >>confdefs.h
6663 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6670 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6671 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
6672 $as_echo_n "(cached) " >&6
6674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6675 /* end confdefs.h. */
6677 # define __EXTENSIONS__ 1
6678 $ac_includes_default
6687 if ac_fn_c_try_compile
"$LINENO"; then :
6688 ac_cv_safe_to_define___extensions__
=yes
6690 ac_cv_safe_to_define___extensions__
=no
6692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6695 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6696 test $ac_cv_safe_to_define___extensions__ = yes &&
6697 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6699 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6701 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6703 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6705 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6716 # Code from module alloca:
6717 # Code from module alloca-opt:
6718 # Code from module arg-nonnull:
6719 # Code from module argp:
6720 # Code from module btowc:
6721 # Code from module c++defs:
6722 # Code from module configmake:
6723 # Code from module dirname-lgpl:
6724 # Code from module double-slash-root:
6725 # Code from module errno:
6726 # Code from module error:
6727 # Code from module extensions:
6729 # Code from module float:
6730 # Code from module fnmatch:
6731 # Code from module getdelim:
6732 # Code from module getline:
6733 # Code from module getopt-gnu:
6734 # Code from module getopt-posix:
6735 # Code from module gettext:
6736 # Code from module gettext-h:
6737 # Code from module havelib:
6738 # Code from module include_next:
6739 # Code from module intprops:
6740 # Code from module langinfo:
6741 # Code from module localcharset:
6742 # Code from module malloc-gnu:
6743 # Code from module malloc-posix:
6744 # Code from module mbrtowc:
6745 # Code from module mbsinit:
6746 # Code from module mbsrtowcs:
6747 # Code from module memchr:
6748 # Code from module mempcpy:
6749 # Code from module multiarch:
6750 # Code from module nl_langinfo:
6751 # Code from module progname:
6752 # Code from module rawmemchr:
6753 # Code from module realloc-posix:
6754 # Code from module regex:
6755 # Code from module size_max:
6756 # Code from module sleep:
6757 # Code from module ssize_t:
6758 # Code from module stdbool:
6759 # Code from module stddef:
6760 # Code from module stdint:
6761 # Code from module stdio:
6762 # Code from module stdlib:
6763 # Code from module strcase:
6764 # Code from module strchrnul:
6765 # Code from module streq:
6766 # Code from module strerror:
6767 # Code from module string:
6768 # Code from module strings:
6769 # Code from module strndup:
6770 # Code from module strnlen:
6771 # Code from module strnlen1:
6772 # Code from module sys_wait:
6773 # Code from module sysexits:
6774 # Code from module unistd:
6775 # Code from module vasnprintf:
6776 # Code from module verify:
6777 # Code from module vsnprintf:
6778 # Code from module warn-on-use:
6779 # Code from module wchar:
6780 # Code from module wcrtomb:
6781 # Code from module wctype:
6782 # Code from module xsize:
6784 if test "x$CC" != xcc
; then
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
6786 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
6789 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
6791 set dummy
$CC; ac_cc
=`$as_echo "$2" |
6792 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6793 if eval \
${ac_cv_prog_cc_${ac_cc}_c_o+:} false
; then :
6794 $as_echo_n "(cached) " >&6
6796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6797 /* end confdefs.h. */
6807 # Make sure it works both with $CC and with simple cc.
6808 # We do the test twice because some compilers refuse to overwrite an
6809 # existing .o file with -o, though they will create one.
6810 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6812 if { { case "(($ac_try" in
6813 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6814 *) ac_try_echo=$ac_try;;
6816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6817 $as_echo "$ac_try_echo"; } >&5
6818 (eval "$ac_try") 2>&5
6820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6821 test $ac_status = 0; } &&
6822 test -f conftest2.$ac_objext && { { case "(($ac_try" in
6823 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6824 *) ac_try_echo
=$ac_try;;
6826 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6827 $as_echo "$ac_try_echo"; } >&5
6828 (eval "$ac_try") 2>&5
6830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6831 test $ac_status = 0; };
6833 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
6834 if test "x$CC" != xcc
; then
6835 # Test first that cc exists at all.
6836 if { ac_try
='cc -c conftest.$ac_ext >&5'
6837 { { case "(($ac_try" in
6838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6839 *) ac_try_echo=$ac_try;;
6841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6842 $as_echo "$ac_try_echo"; } >&5
6843 (eval "$ac_try") 2>&5
6845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6846 test $ac_status = 0; }; }; then
6847 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6849 if { { case "(($ac_try" in
6850 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6851 *) ac_try_echo
=$ac_try;;
6853 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6854 $as_echo "$ac_try_echo"; } >&5
6855 (eval "$ac_try") 2>&5
6857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6858 test $ac_status = 0; } &&
6859 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
6860 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6861 *) ac_try_echo=$ac_try;;
6863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6864 $as_echo "$ac_try_echo"; } >&5
6865 (eval "$ac_try") 2>&5
6867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6868 test $ac_status = 0; };
6873 # cc exists but doesn't like -o.
6874 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6879 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6881 rm -f core conftest*
6884 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6886 $as_echo "yes" >&6; }
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6889 $as_echo "no" >&6; }
6891 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
6895 # FIXME: we rely on the cache variable name because
6896 # there is no other way.
6898 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6899 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6900 if test "$am_t" != yes; then
6901 # Losing compiler, so override with the script.
6902 # FIXME: It is wrong to rewrite CC.
6903 # But if we don't then we get into trouble of one sort or another.
6904 # A longer-term fix would be to have automake use am__CC in this case,
6905 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6906 CC="$am_aux_dir/compile $CC"
6910 # By default we simply use the C compiler to build assembly code.
6912 test "${CCAS+set}" = set || CCAS=$CC
6913 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6917 depcc="$CCAS" am_compiler_list=
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6920 $as_echo_n "checking dependency style of $depcc... " >&6; }
6921 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
6922 $as_echo_n "(cached) " >&6
6924 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6925 # We make a subdir and do the tests there. Otherwise we can end up
6926 # making bogus files that we don't know about and never remove. For
6927 # instance it was reported that on HP-UX the gcc test will end up
6928 # making a dummy file named `D
' -- because `-MD' means
`put the output
6931 # Copy depcomp to subdir because otherwise we won't find it if we're
6932 # using a relative directory.
6933 cp "$am_depcomp" conftest.dir
6935 # We will build objects and dependencies in a subdirectory because
6936 # it helps to detect inapplicable dependency modes. For instance
6937 # both Tru64's cc and ICC support -MD to output dependencies as a
6938 # side effect of compilation, but ICC will put the dependencies in
6939 # the current directory while Tru64 will put them in the object
6943 am_cv_CCAS_dependencies_compiler_type=none
6944 if test "$am_compiler_list" = ""; then
6945 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
6950 for depmode in $am_compiler_list; do
6951 # Setup a source with many dependencies, because some compilers
6952 # like to wrap large dependency lists on column 80 (with \), and
6953 # we should not choose a depcomp mode which is confused by this.
6955 # We need to recreate these files for each test, as the compiler may
6956 # overwrite some of them when testing with obscure command lines.
6957 # This happens at least with the AIX C compiler.
6959 for i in 1 2 3 4 5 6; do
6960 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6961 # Using `: > sub
/conftst
$i.h
' creates only sub/conftst1.h with
6962 # Solaris 8's
{/usr
,}/bin
/sh.
6963 touch sub
/conftst
$i.h
6965 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6967 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6968 # mode. It turns out that the SunPro C++ compiler does not properly
6969 # handle `-M -o', and we need to detect this. Also, some Intel
6970 # versions had trouble with output in subdirs
6971 am__obj
=sub
/conftest.
${OBJEXT-o}
6972 am__minus_obj
="-o $am__obj"
6975 # This depmode causes a compiler race in universal mode.
6976 test "$am__universal" = false ||
continue
6979 # after this tag, mechanisms are not by side-effect, so they'll
6980 # only be used when explicitly requested
6981 if test "x$enable_dependency_tracking" = xyes
; then
6987 msvisualcpp | msvcmsys
)
6988 # This compiler won't grok `-c -o', but also, the minuso test has
6989 # not run yet. These depmodes are late enough in the game, and
6990 # so weak that their functioning should not be impacted.
6991 am__obj
=conftest.
${OBJEXT-o}
6996 if depmode
=$depmode \
6997 source=sub
/conftest.c object
=$am__obj \
6998 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
6999 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
7000 >/dev
/null
2>conftest.err
&&
7001 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
7002 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
7003 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
7004 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
7005 # icc doesn't choke on unknown options, it will just issue warnings
7006 # or remarks (even with -Werror). So we grep stderr for any message
7007 # that says an option was ignored or not supported.
7008 # When given -MP, icc 7.0 and 7.1 complain thusly:
7009 # icc: Command line warning: ignoring option '-M'; no argument required
7010 # The diagnosis changed in icc 8.0:
7011 # icc: Command line remark: option '-MP' not supported
7012 if (grep 'ignoring option' conftest.err ||
7013 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
7014 am_cv_CCAS_dependencies_compiler_type
=$depmode
7023 am_cv_CCAS_dependencies_compiler_type
=none
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
7028 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
7029 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
7032 test "x$enable_dependency_tracking" != xno \
7033 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
7034 am__fastdepCCAS_TRUE
=
7035 am__fastdepCCAS_FALSE
='#'
7037 am__fastdepCCAS_TRUE
='#'
7038 am__fastdepCCAS_FALSE
=
7044 test "x$GCC" = xyes || as_fn_error $?
"GCC is required" "$LINENO" 5
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7049 $as_echo_n "checking whether NLS is requested... " >&6; }
7050 # Check whether --enable-nls was given.
7051 if test "${enable_nls+set}" = set; then :
7052 enableval
=$enable_nls; USE_NLS
=$enableval
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7058 $as_echo "$USE_NLS" >&6; }
7063 GETTEXT_MACRO_VERSION
=0.18
7068 # Prepare PATH_SEPARATOR.
7069 # The user is always right.
7070 if test "${PATH_SEPARATOR+set}" != set; then
7071 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7072 # contains only /bin. Note that ksh looks also at the FPATH variable,
7073 # so we have to set that as well for the test.
7075 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
7076 && { (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
7077 || PATH_SEPARATOR
=';'
7081 # Find out how to test for executable files. Don't use a zero-byte file,
7082 # as systems may use methods other than mode bits to determine executability.
7083 cat >conf$$.
file <<_ASEOF
7087 chmod +x conf$$.
file
7088 if test -x conf$$.
file >/dev
/null
2>&1; then
7089 ac_executable_p
="test -x"
7091 ac_executable_p
="test -f"
7095 # Extract the first word of "msgfmt", so it can be a program name with args.
7096 set dummy msgfmt
; ac_word
=$2
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098 $as_echo_n "checking for $ac_word... " >&6; }
7099 if ${ac_cv_path_MSGFMT+:} false
; then :
7100 $as_echo_n "(cached) " >&6
7104 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7107 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7108 for ac_dir
in $PATH; do
7110 test -z "$ac_dir" && ac_dir
=.
7111 for ac_exec_ext
in '' $ac_executable_extensions; do
7112 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7113 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7114 if $ac_dir/$ac_word --statistics /dev
/null
>&5 2>&1 &&
7115 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
7116 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
7123 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
7127 MSGFMT
="$ac_cv_path_MSGFMT"
7128 if test "$MSGFMT" != ":"; then
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
7130 $as_echo "$MSGFMT" >&6; }
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7133 $as_echo "no" >&6; }
7136 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7137 set dummy gmsgfmt
; ac_word
=$2
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7139 $as_echo_n "checking for $ac_word... " >&6; }
7140 if ${ac_cv_path_GMSGFMT+:} false
; then :
7141 $as_echo_n "(cached) " >&6
7145 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7148 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7152 test -z "$as_dir" && as_dir
=.
7153 for ac_exec_ext
in '' $ac_executable_extensions; do
7154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7155 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
7156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7163 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
7167 GMSGFMT
=$ac_cv_path_GMSGFMT
7168 if test -n "$GMSGFMT"; then
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7170 $as_echo "$GMSGFMT" >&6; }
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7173 $as_echo "no" >&6; }
7178 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7179 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) MSGFMT_015
=: ;;
7180 *) MSGFMT_015
=$MSGFMT ;;
7183 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7184 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) GMSGFMT_015
=: ;;
7185 *) GMSGFMT_015
=$GMSGFMT ;;
7190 # Prepare PATH_SEPARATOR.
7191 # The user is always right.
7192 if test "${PATH_SEPARATOR+set}" != set; then
7193 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7194 # contains only /bin. Note that ksh looks also at the FPATH variable,
7195 # so we have to set that as well for the test.
7197 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
7198 && { (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
7199 || PATH_SEPARATOR
=';'
7203 # Find out how to test for executable files. Don't use a zero-byte file,
7204 # as systems may use methods other than mode bits to determine executability.
7205 cat >conf$$.
file <<_ASEOF
7209 chmod +x conf$$.
file
7210 if test -x conf$$.
file >/dev
/null
2>&1; then
7211 ac_executable_p
="test -x"
7213 ac_executable_p
="test -f"
7217 # Extract the first word of "xgettext", so it can be a program name with args.
7218 set dummy xgettext
; ac_word
=$2
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7220 $as_echo_n "checking for $ac_word... " >&6; }
7221 if ${ac_cv_path_XGETTEXT+:} false
; then :
7222 $as_echo_n "(cached) " >&6
7226 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7229 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7230 for ac_dir
in $PATH; do
7232 test -z "$ac_dir" && ac_dir
=.
7233 for ac_exec_ext
in '' $ac_executable_extensions; do
7234 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7235 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7236 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>&5 2>&1 &&
7237 (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
7238 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
7245 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7249 XGETTEXT
="$ac_cv_path_XGETTEXT"
7250 if test "$XGETTEXT" != ":"; then
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7252 $as_echo "$XGETTEXT" >&6; }
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7255 $as_echo "no" >&6; }
7260 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7261 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) XGETTEXT_015
=: ;;
7262 *) XGETTEXT_015
=$XGETTEXT ;;
7267 # Prepare PATH_SEPARATOR.
7268 # The user is always right.
7269 if test "${PATH_SEPARATOR+set}" != set; then
7270 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7271 # contains only /bin. Note that ksh looks also at the FPATH variable,
7272 # so we have to set that as well for the test.
7274 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
7275 && { (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
7276 || PATH_SEPARATOR
=';'
7280 # Find out how to test for executable files. Don't use a zero-byte file,
7281 # as systems may use methods other than mode bits to determine executability.
7282 cat >conf$$.
file <<_ASEOF
7286 chmod +x conf$$.
file
7287 if test -x conf$$.
file >/dev
/null
2>&1; then
7288 ac_executable_p
="test -x"
7290 ac_executable_p
="test -f"
7294 # Extract the first word of "msgmerge", so it can be a program name with args.
7295 set dummy msgmerge
; ac_word
=$2
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297 $as_echo_n "checking for $ac_word... " >&6; }
7298 if ${ac_cv_path_MSGMERGE+:} false
; then :
7299 $as_echo_n "(cached) " >&6
7303 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
7306 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7307 for ac_dir
in $PATH; do
7309 test -z "$ac_dir" && ac_dir
=.
7310 for ac_exec_ext
in '' $ac_executable_extensions; do
7311 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7312 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7313 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>&5 2>&1; then
7314 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
7321 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
7325 MSGMERGE
="$ac_cv_path_MSGMERGE"
7326 if test "$MSGMERGE" != ":"; then
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7328 $as_echo "$MSGMERGE" >&6; }
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331 $as_echo "no" >&6; }
7335 test -n "$localedir" || localedir
='${datadir}/locale'
7338 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS
=
7341 ac_config_commands
="$ac_config_commands po-directories"
7345 if test "X$prefix" = "XNONE"; then
7346 acl_final_prefix
="$ac_default_prefix"
7348 acl_final_prefix
="$prefix"
7350 if test "X$exec_prefix" = "XNONE"; then
7351 acl_final_exec_prefix
='${prefix}'
7353 acl_final_exec_prefix
="$exec_prefix"
7355 acl_save_prefix
="$prefix"
7356 prefix
="$acl_final_prefix"
7357 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
7358 prefix
="$acl_save_prefix"
7361 # Check whether --with-gnu-ld was given.
7362 if test "${with_gnu_ld+set}" = set; then :
7363 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
7368 # Prepare PATH_SEPARATOR.
7369 # The user is always right.
7370 if test "${PATH_SEPARATOR+set}" != set; then
7371 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7372 # contains only /bin. Note that ksh looks also at the FPATH variable,
7373 # so we have to set that as well for the test.
7375 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
7376 && { (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
7377 || PATH_SEPARATOR
=';'
7381 if test "$GCC" = yes; then
7382 # Check if gcc -print-prog-name=ld gives a path.
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7384 $as_echo_n "checking for ld used by GCC... " >&6; }
7387 # gcc leaves a trailing carriage return which upsets mingw
7388 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7390 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
7393 # Accept absolute paths.
7394 [\\/]* |
[A-Za-z
]:[\\/]*)
7395 re_direlt
='/[^/][^/]*/\.\./'
7396 # Canonicalize the path of ld
7397 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
7398 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
7399 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
7401 test -z "$LD" && LD
="$ac_prog"
7404 # If it fails, then pretend we aren't using GCC.
7408 # If it is relative, then search for the first ld in PATH.
7412 elif test "$with_gnu_ld" = yes; then
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7414 $as_echo_n "checking for GNU ld... " >&6; }
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7417 $as_echo_n "checking for non-GNU ld... " >&6; }
7419 if ${acl_cv_path_LD+:} false
; then :
7420 $as_echo_n "(cached) " >&6
7422 if test -z "$LD"; then
7423 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7424 for ac_dir
in $PATH; do
7425 test -z "$ac_dir" && ac_dir
=.
7426 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
7427 acl_cv_path_LD
="$ac_dir/$ac_prog"
7428 # Check to see if the program is GNU ld. I'd rather use --version,
7429 # but apparently some GNU ld's only accept -v.
7430 # Break only if it was the GNU/non-GNU ld that we prefer.
7431 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7432 *GNU
* |
*'with BFD'*)
7433 test "$with_gnu_ld" != no
&& break ;;
7435 test "$with_gnu_ld" != yes && break ;;
7441 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
7445 LD
="$acl_cv_path_LD"
7446 if test -n "$LD"; then
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7448 $as_echo "$LD" >&6; }
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451 $as_echo "no" >&6; }
7453 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7455 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7456 if ${acl_cv_prog_gnu_ld+:} false
; then :
7457 $as_echo_n "(cached) " >&6
7459 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7460 case `$LD -v 2>&1 </dev/null` in
7461 *GNU
* |
*'with BFD'*)
7462 acl_cv_prog_gnu_ld
=yes ;;
7464 acl_cv_prog_gnu_ld
=no
;;
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7468 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7469 with_gnu_ld
=$acl_cv_prog_gnu_ld
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7475 $as_echo_n "checking for shared library run path origin... " >&6; }
7476 if ${acl_cv_rpath+:} false
; then :
7477 $as_echo_n "(cached) " >&6
7480 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
7481 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7488 $as_echo "$acl_cv_rpath" >&6; }
7490 acl_libext
="$acl_cv_libext"
7491 acl_shlibext
="$acl_cv_shlibext"
7492 acl_libname_spec
="$acl_cv_libname_spec"
7493 acl_library_names_spec
="$acl_cv_library_names_spec"
7494 acl_hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
7495 acl_hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
7496 acl_hardcode_direct
="$acl_cv_hardcode_direct"
7497 acl_hardcode_minus_L
="$acl_cv_hardcode_minus_L"
7498 # Check whether --enable-rpath was given.
7499 if test "${enable_rpath+set}" = set; then :
7500 enableval
=$enable_rpath; :
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7513 $as_echo_n "checking for 64-bit host... " >&6; }
7514 if ${gl_cv_solaris_64bit+:} false
; then :
7515 $as_echo_n "(cached) " >&6
7517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7518 /* end confdefs.h. */
7525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7526 $EGREP "sixtyfour bits" >/dev
/null
2>&1; then :
7527 gl_cv_solaris_64bit
=yes
7529 gl_cv_solaris_64bit
=no
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7536 $as_echo "$gl_cv_solaris_64bit" >&6; }
7537 if test $gl_cv_solaris_64bit = yes; then
7538 acl_libdirstem
=lib
/64
7540 sparc
*) acl_libdirstem2
=lib
/sparcv9
;;
7541 i
*86 | x86_64
) acl_libdirstem2
=lib
/amd64
;;
7546 searchpath
=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7547 if test -n "$searchpath"; then
7548 acl_save_IFS
="${IFS= }"; IFS
=":"
7549 for searchdir
in $searchpath; do
7550 if test -d "$searchdir"; then
7551 case "$searchdir" in
7552 */lib64
/ |
*/lib64
) acl_libdirstem
=lib64
;;
7554 # Better ignore directories of this form. They are misleading.
7556 *) searchdir
=`cd "$searchdir" && pwd`
7557 case "$searchdir" in
7558 */lib64
) acl_libdirstem
=lib64
;;
7567 test -n "$acl_libdirstem2" || acl_libdirstem2
="$acl_libdirstem"
7582 acl_save_prefix
="$prefix"
7583 prefix
="$acl_final_prefix"
7584 acl_save_exec_prefix
="$exec_prefix"
7585 exec_prefix
="$acl_final_exec_prefix"
7587 eval additional_includedir
=\"$includedir\"
7588 eval additional_libdir
=\"$libdir\"
7590 exec_prefix
="$acl_save_exec_prefix"
7591 prefix
="$acl_save_prefix"
7594 # Check whether --with-libiconv-prefix was given.
7595 if test "${with_libiconv_prefix+set}" = set; then :
7596 withval
=$with_libiconv_prefix;
7597 if test "X$withval" = "Xno"; then
7600 if test "X$withval" = "X"; then
7602 acl_save_prefix
="$prefix"
7603 prefix
="$acl_final_prefix"
7604 acl_save_exec_prefix
="$exec_prefix"
7605 exec_prefix
="$acl_final_exec_prefix"
7607 eval additional_includedir
=\"$includedir\"
7608 eval additional_libdir
=\"$libdir\"
7610 exec_prefix
="$acl_save_exec_prefix"
7611 prefix
="$acl_save_prefix"
7614 additional_includedir
="$withval/include"
7615 additional_libdir
="$withval/$acl_libdirstem"
7616 if test "$acl_libdirstem2" != "$acl_libdirstem" \
7617 && ! test -d "$withval/$acl_libdirstem"; then
7618 additional_libdir
="$withval/$acl_libdirstem2"
7632 names_already_handled
=
7633 names_next_round
='iconv '
7634 while test -n "$names_next_round"; do
7635 names_this_round
="$names_next_round"
7637 for name
in $names_this_round; do
7639 for n
in $names_already_handled; do
7640 if test "$n" = "$name"; then
7645 if test -z "$already_handled"; then
7646 names_already_handled
="$names_already_handled $name"
7647 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
7648 eval value
=\"\
$HAVE_LIB$uppername\"
7649 if test -n "$value"; then
7650 if test "$value" = yes; then
7651 eval value
=\"\
$LIB$uppername\"
7652 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
7653 eval value
=\"\
$LTLIB$uppername\"
7654 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
7663 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
7664 if test -n "$acl_shlibext"; then
7665 shrext
=".$acl_shlibext" # typically: shrext=.so
7669 if test $use_additional = yes; then
7670 dir
="$additional_libdir"
7671 if test -n "$acl_shlibext"; then
7672 if test -f "$dir/$libname$shrext"; then
7674 found_so
="$dir/$libname$shrext"
7676 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7677 ver
=`(cd "$dir" && \
7678 for f in "$libname$shrext".*; do echo "$f"; done \
7679 | sed -e "s,^$libname$shrext\\\\.,," \
7680 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7681 | sed 1q ) 2>/dev/null`
7682 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7684 found_so
="$dir/$libname$shrext.$ver"
7687 eval library_names
=\"$acl_library_names_spec\"
7688 for f
in $library_names; do
7689 if test -f "$dir/$f"; then
7698 if test "X$found_dir" = "X"; then
7699 if test -f "$dir/$libname.$acl_libext"; then
7701 found_a
="$dir/$libname.$acl_libext"
7704 if test "X$found_dir" != "X"; then
7705 if test -f "$dir/$libname.la"; then
7706 found_la
="$dir/$libname.la"
7710 if test "X$found_dir" = "X"; then
7711 for x
in $LDFLAGS $LTLIBICONV; do
7713 acl_save_prefix
="$prefix"
7714 prefix
="$acl_final_prefix"
7715 acl_save_exec_prefix
="$exec_prefix"
7716 exec_prefix
="$acl_final_exec_prefix"
7718 exec_prefix
="$acl_save_exec_prefix"
7719 prefix
="$acl_save_prefix"
7723 dir
=`echo "X$x" | sed -e 's/^X-L//'`
7724 if test -n "$acl_shlibext"; then
7725 if test -f "$dir/$libname$shrext"; then
7727 found_so
="$dir/$libname$shrext"
7729 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7730 ver
=`(cd "$dir" && \
7731 for f in "$libname$shrext".*; do echo "$f"; done \
7732 | sed -e "s,^$libname$shrext\\\\.,," \
7733 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7734 | sed 1q ) 2>/dev/null`
7735 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7737 found_so
="$dir/$libname$shrext.$ver"
7740 eval library_names
=\"$acl_library_names_spec\"
7741 for f
in $library_names; do
7742 if test -f "$dir/$f"; then
7751 if test "X$found_dir" = "X"; then
7752 if test -f "$dir/$libname.$acl_libext"; then
7754 found_a
="$dir/$libname.$acl_libext"
7757 if test "X$found_dir" != "X"; then
7758 if test -f "$dir/$libname.la"; then
7759 found_la
="$dir/$libname.la"
7764 if test "X$found_dir" != "X"; then
7769 if test "X$found_dir" != "X"; then
7770 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7771 if test "X$found_so" != "X"; then
7772 if test "$enable_rpath" = no \
7773 ||
test "X$found_dir" = "X/usr/$acl_libdirstem" \
7774 ||
test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7775 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7778 for x
in $ltrpathdirs; do
7779 if test "X$x" = "X$found_dir"; then
7784 if test -z "$haveit"; then
7785 ltrpathdirs
="$ltrpathdirs $found_dir"
7787 if test "$acl_hardcode_direct" = yes; then
7788 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7790 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
7791 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7793 for x
in $rpathdirs; do
7794 if test "X$x" = "X$found_dir"; then
7799 if test -z "$haveit"; then
7800 rpathdirs
="$rpathdirs $found_dir"
7804 for x
in $LDFLAGS $LIBICONV; do
7806 acl_save_prefix
="$prefix"
7807 prefix
="$acl_final_prefix"
7808 acl_save_exec_prefix
="$exec_prefix"
7809 exec_prefix
="$acl_final_exec_prefix"
7811 exec_prefix
="$acl_save_exec_prefix"
7812 prefix
="$acl_save_prefix"
7814 if test "X$x" = "X-L$found_dir"; then
7819 if test -z "$haveit"; then
7820 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7822 if test "$acl_hardcode_minus_L" != no
; then
7823 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7825 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
7831 if test "X$found_a" != "X"; then
7832 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
7834 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7837 additional_includedir
=
7838 case "$found_dir" in
7839 */$acl_libdirstem |
*/$acl_libdirstem/)
7840 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7841 if test "$name" = 'iconv'; then
7842 LIBICONV_PREFIX
="$basedir"
7844 additional_includedir
="$basedir/include"
7846 */$acl_libdirstem2 |
*/$acl_libdirstem2/)
7847 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7848 if test "$name" = 'iconv'; then
7849 LIBICONV_PREFIX
="$basedir"
7851 additional_includedir
="$basedir/include"
7854 if test "X$additional_includedir" != "X"; then
7855 if test "X$additional_includedir" != "X/usr/include"; then
7857 if test "X$additional_includedir" = "X/usr/local/include"; then
7858 if test -n "$GCC"; then
7860 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
7864 if test -z "$haveit"; then
7865 for x
in $CPPFLAGS $INCICONV; do
7867 acl_save_prefix
="$prefix"
7868 prefix
="$acl_final_prefix"
7869 acl_save_exec_prefix
="$exec_prefix"
7870 exec_prefix
="$acl_final_exec_prefix"
7872 exec_prefix
="$acl_save_exec_prefix"
7873 prefix
="$acl_save_prefix"
7875 if test "X$x" = "X-I$additional_includedir"; then
7880 if test -z "$haveit"; then
7881 if test -d "$additional_includedir"; then
7882 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7888 if test -n "$found_la"; then
7889 save_libdir
="$libdir"
7891 */* |
*\\*) .
"$found_la" ;;
7892 *) .
"./$found_la" ;;
7894 libdir
="$save_libdir"
7895 for dep
in $dependency_libs; do
7898 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
7899 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7900 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7902 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7903 ||
test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7904 if test -n "$GCC"; then
7906 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
7910 if test -z "$haveit"; then
7912 for x
in $LDFLAGS $LIBICONV; do
7914 acl_save_prefix
="$prefix"
7915 prefix
="$acl_final_prefix"
7916 acl_save_exec_prefix
="$exec_prefix"
7917 exec_prefix
="$acl_final_exec_prefix"
7919 exec_prefix
="$acl_save_exec_prefix"
7920 prefix
="$acl_save_prefix"
7922 if test "X$x" = "X-L$additional_libdir"; then
7927 if test -z "$haveit"; then
7928 if test -d "$additional_libdir"; then
7929 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7933 for x
in $LDFLAGS $LTLIBICONV; do
7935 acl_save_prefix
="$prefix"
7936 prefix
="$acl_final_prefix"
7937 acl_save_exec_prefix
="$exec_prefix"
7938 exec_prefix
="$acl_final_exec_prefix"
7940 exec_prefix
="$acl_save_exec_prefix"
7941 prefix
="$acl_save_prefix"
7943 if test "X$x" = "X-L$additional_libdir"; then
7948 if test -z "$haveit"; then
7949 if test -d "$additional_libdir"; then
7950 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7957 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
7958 if test "$enable_rpath" != no
; then
7960 for x
in $rpathdirs; do
7961 if test "X$x" = "X$dir"; then
7966 if test -z "$haveit"; then
7967 rpathdirs
="$rpathdirs $dir"
7970 for x
in $ltrpathdirs; do
7971 if test "X$x" = "X$dir"; then
7976 if test -z "$haveit"; then
7977 ltrpathdirs
="$ltrpathdirs $dir"
7982 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7985 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7988 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
7989 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7995 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
7996 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8002 if test "X$rpathdirs" != "X"; then
8003 if test -n "$acl_hardcode_libdir_separator"; then
8005 for found_dir
in $rpathdirs; do
8006 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8008 acl_save_libdir
="$libdir"
8010 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
8011 libdir
="$acl_save_libdir"
8012 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8014 for found_dir
in $rpathdirs; do
8015 acl_save_libdir
="$libdir"
8017 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
8018 libdir
="$acl_save_libdir"
8019 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8023 if test "X$ltrpathdirs" != "X"; then
8024 for found_dir
in $ltrpathdirs; do
8025 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8060 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8061 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false
; then :
8062 $as_echo_n "(cached) " >&6
8064 gt_save_LIBS
="$LIBS"
8065 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
8066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8067 /* end confdefs.h. */
8068 #include <CoreFoundation/CFPreferences.h>
8072 CFPreferencesCopyAppValue(NULL, NULL)
8077 if ac_fn_c_try_link
"$LINENO"; then :
8078 gt_cv_func_CFPreferencesCopyAppValue
=yes
8080 gt_cv_func_CFPreferencesCopyAppValue
=no
8082 rm -f core conftest.err conftest.
$ac_objext \
8083 conftest
$ac_exeext conftest.
$ac_ext
8084 LIBS
="$gt_save_LIBS"
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8087 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8088 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8090 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
8094 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
8095 if ${gt_cv_func_CFLocaleCopyCurrent+:} false
; then :
8096 $as_echo_n "(cached) " >&6
8098 gt_save_LIBS
="$LIBS"
8099 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
8100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h. */
8102 #include <CoreFoundation/CFLocale.h>
8106 CFLocaleCopyCurrent();
8111 if ac_fn_c_try_link
"$LINENO"; then :
8112 gt_cv_func_CFLocaleCopyCurrent
=yes
8114 gt_cv_func_CFLocaleCopyCurrent
=no
8116 rm -f core conftest.err conftest.
$ac_objext \
8117 conftest
$ac_exeext conftest.
$ac_ext
8118 LIBS
="$gt_save_LIBS"
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8121 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8122 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8124 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
8128 if test $gt_cv_func_CFPreferencesCopyAppValue = yes ||
test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8129 INTL_MACOSX_LIBS
="-Wl,-framework -Wl,CoreFoundation"
8141 case " $gt_needs " in
8142 *" need-formatstring-macros "*) gt_api_version
=3 ;;
8143 *" need-ngettext "*) gt_api_version
=2 ;;
8144 *) gt_api_version
=1 ;;
8146 gt_func_gnugettext_libc
="gt_cv_func_gnugettext${gt_api_version}_libc"
8147 gt_func_gnugettext_libintl
="gt_cv_func_gnugettext${gt_api_version}_libintl"
8149 if test "$USE_NLS" = "yes"; then
8150 gt_use_preinstalled_gnugettext
=no
8153 if test $gt_api_version -ge 3; then
8154 gt_revision_test_code
='
8155 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8156 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
8158 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
8161 gt_revision_test_code
=
8163 if test $gt_api_version -ge 2; then
8164 gt_expression_test_code
=' + * ngettext ("", "", 0)'
8166 gt_expression_test_code
=
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8170 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8171 if eval \
${$gt_func_gnugettext_libc+:} false
; then :
8172 $as_echo_n "(cached) " >&6
8174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h. */
8177 #include <libintl.h>
8178 $gt_revision_test_code
8179 extern int _nl_msg_cat_cntr;
8180 extern int *_nl_domain_bindings;
8186 bindtextdomain ("", "");
8187 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
8193 if ac_fn_c_try_link
"$LINENO"; then :
8194 eval "$gt_func_gnugettext_libc=yes"
8196 eval "$gt_func_gnugettext_libc=no"
8198 rm -f core conftest.err conftest.
$ac_objext \
8199 conftest
$ac_exeext conftest.
$ac_ext
8201 eval ac_res
=\$
$gt_func_gnugettext_libc
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8203 $as_echo "$ac_res" >&6; }
8205 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
8211 am_save_CPPFLAGS
="$CPPFLAGS"
8213 for element
in $INCICONV; do
8215 for x
in $CPPFLAGS; do
8217 acl_save_prefix
="$prefix"
8218 prefix
="$acl_final_prefix"
8219 acl_save_exec_prefix
="$exec_prefix"
8220 exec_prefix
="$acl_final_exec_prefix"
8222 exec_prefix
="$acl_save_exec_prefix"
8223 prefix
="$acl_save_prefix"
8225 if test "X$x" = "X$element"; then
8230 if test -z "$haveit"; then
8231 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8237 $as_echo_n "checking for iconv... " >&6; }
8238 if ${am_cv_func_iconv+:} false
; then :
8239 $as_echo_n "(cached) " >&6
8242 am_cv_func_iconv
="no, consider installing GNU libiconv"
8244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8245 /* end confdefs.h. */
8253 iconv_t cd = iconv_open("","");
8254 iconv(cd,NULL,NULL,NULL,NULL);
8260 if ac_fn_c_try_link
"$LINENO"; then :
8261 am_cv_func_iconv
=yes
8263 rm -f core conftest.err conftest.
$ac_objext \
8264 conftest
$ac_exeext conftest.
$ac_ext
8265 if test "$am_cv_func_iconv" != yes; then
8266 am_save_LIBS
="$LIBS"
8267 LIBS
="$LIBS $LIBICONV"
8268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8269 /* end confdefs.h. */
8277 iconv_t cd = iconv_open("","");
8278 iconv(cd,NULL,NULL,NULL,NULL);
8284 if ac_fn_c_try_link
"$LINENO"; then :
8286 am_cv_func_iconv
=yes
8288 rm -f core conftest.err conftest.
$ac_objext \
8289 conftest
$ac_exeext conftest.
$ac_ext
8290 LIBS
="$am_save_LIBS"
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8295 $as_echo "$am_cv_func_iconv" >&6; }
8296 if test "$am_cv_func_iconv" = yes; then
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
8298 $as_echo_n "checking for working iconv... " >&6; }
8299 if ${am_cv_func_iconv_works+:} false
; then :
8300 $as_echo_n "(cached) " >&6
8303 am_save_LIBS
="$LIBS"
8304 if test $am_cv_lib_iconv = yes; then
8305 LIBS
="$LIBS $LIBICONV"
8307 if test "$cross_compiling" = yes; then :
8310 aix
* | hpux
*) am_cv_func_iconv_works
="guessing no" ;;
8311 *) am_cv_func_iconv_works
="guessing yes" ;;
8315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8316 /* end confdefs.h. */
8322 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
8325 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8326 if (cd_utf8_to_88591 != (iconv_t)(-1))
8328 static const char input[] = "\342\202\254"; /* EURO SIGN */
8330 const char *inptr = input;
8331 size_t inbytesleft = strlen (input);
8333 size_t outbytesleft = sizeof (buf);
8334 size_t res = iconv (cd_utf8_to_88591,
8335 (char **) &inptr, &inbytesleft,
8336 &outptr, &outbytesleft);
8341 /* Test against Solaris 10 bug: Failures are not distinguishable from
8342 successful returns. */
8344 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8345 if (cd_ascii_to_88591 != (iconv_t)(-1))
8347 static const char input[] = "\263";
8349 const char *inptr = input;
8350 size_t inbytesleft = strlen (input);
8352 size_t outbytesleft = sizeof (buf);
8353 size_t res = iconv (cd_ascii_to_88591,
8354 (char **) &inptr, &inbytesleft,
8355 &outptr, &outbytesleft);
8360 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
8362 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8363 if (cd_88591_to_utf8 != (iconv_t)(-1))
8365 static const char input[] = "\304";
8366 static char buf[2] = { (char)0xDE, (char)0xAD };
8367 const char *inptr = input;
8368 size_t inbytesleft = 1;
8370 size_t outbytesleft = 1;
8371 size_t res = iconv (cd_88591_to_utf8,
8372 (char **) &inptr, &inbytesleft,
8373 &outptr, &outbytesleft);
8374 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8378 #if 0 /* This bug could be worked around by the caller. */
8379 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
8381 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8382 if (cd_88591_to_utf8 != (iconv_t)(-1))
8384 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8386 const char *inptr = input;
8387 size_t inbytesleft = strlen (input);
8389 size_t outbytesleft = sizeof (buf);
8390 size_t res = iconv (cd_88591_to_utf8,
8391 (char **) &inptr, &inbytesleft,
8392 &outptr, &outbytesleft);
8398 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8400 if (/* Try standardized names. */
8401 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
8402 /* Try IRIX, OSF/1 names. */
8403 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
8404 /* Try AIX names. */
8405 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
8406 /* Try HP-UX names. */
8407 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
8412 if ac_fn_c_try_run
"$LINENO"; then :
8413 am_cv_func_iconv_works
=yes
8415 am_cv_func_iconv_works
=no
8417 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8418 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8421 LIBS
="$am_save_LIBS"
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8425 $as_echo "$am_cv_func_iconv_works" >&6; }
8426 case "$am_cv_func_iconv_works" in
8427 *no
) am_func_iconv
=no am_cv_lib_iconv
=no
;;
8428 *) am_func_iconv
=yes ;;
8431 am_func_iconv
=no am_cv_lib_iconv
=no
8433 if test "$am_func_iconv" = yes; then
8435 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8438 if test "$am_cv_lib_iconv" = yes; then
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8440 $as_echo_n "checking how to link with libiconv... " >&6; }
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8442 $as_echo "$LIBICONV" >&6; }
8444 CPPFLAGS
="$am_save_CPPFLAGS"
8461 acl_save_prefix
="$prefix"
8462 prefix
="$acl_final_prefix"
8463 acl_save_exec_prefix
="$exec_prefix"
8464 exec_prefix
="$acl_final_exec_prefix"
8466 eval additional_includedir
=\"$includedir\"
8467 eval additional_libdir
=\"$libdir\"
8469 exec_prefix
="$acl_save_exec_prefix"
8470 prefix
="$acl_save_prefix"
8473 # Check whether --with-libintl-prefix was given.
8474 if test "${with_libintl_prefix+set}" = set; then :
8475 withval
=$with_libintl_prefix;
8476 if test "X$withval" = "Xno"; then
8479 if test "X$withval" = "X"; then
8481 acl_save_prefix
="$prefix"
8482 prefix
="$acl_final_prefix"
8483 acl_save_exec_prefix
="$exec_prefix"
8484 exec_prefix
="$acl_final_exec_prefix"
8486 eval additional_includedir
=\"$includedir\"
8487 eval additional_libdir
=\"$libdir\"
8489 exec_prefix
="$acl_save_exec_prefix"
8490 prefix
="$acl_save_prefix"
8493 additional_includedir
="$withval/include"
8494 additional_libdir
="$withval/$acl_libdirstem"
8495 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8496 && ! test -d "$withval/$acl_libdirstem"; then
8497 additional_libdir
="$withval/$acl_libdirstem2"
8511 names_already_handled
=
8512 names_next_round
='intl '
8513 while test -n "$names_next_round"; do
8514 names_this_round
="$names_next_round"
8516 for name
in $names_this_round; do
8518 for n
in $names_already_handled; do
8519 if test "$n" = "$name"; then
8524 if test -z "$already_handled"; then
8525 names_already_handled
="$names_already_handled $name"
8526 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8527 eval value
=\"\
$HAVE_LIB$uppername\"
8528 if test -n "$value"; then
8529 if test "$value" = yes; then
8530 eval value
=\"\
$LIB$uppername\"
8531 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
8532 eval value
=\"\
$LTLIB$uppername\"
8533 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
8542 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
8543 if test -n "$acl_shlibext"; then
8544 shrext
=".$acl_shlibext" # typically: shrext=.so
8548 if test $use_additional = yes; then
8549 dir
="$additional_libdir"
8550 if test -n "$acl_shlibext"; then
8551 if test -f "$dir/$libname$shrext"; then
8553 found_so
="$dir/$libname$shrext"
8555 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8556 ver
=`(cd "$dir" && \
8557 for f in "$libname$shrext".*; do echo "$f"; done \
8558 | sed -e "s,^$libname$shrext\\\\.,," \
8559 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8560 | sed 1q ) 2>/dev/null`
8561 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8563 found_so
="$dir/$libname$shrext.$ver"
8566 eval library_names
=\"$acl_library_names_spec\"
8567 for f
in $library_names; do
8568 if test -f "$dir/$f"; then
8577 if test "X$found_dir" = "X"; then
8578 if test -f "$dir/$libname.$acl_libext"; then
8580 found_a
="$dir/$libname.$acl_libext"
8583 if test "X$found_dir" != "X"; then
8584 if test -f "$dir/$libname.la"; then
8585 found_la
="$dir/$libname.la"
8589 if test "X$found_dir" = "X"; then
8590 for x
in $LDFLAGS $LTLIBINTL; do
8592 acl_save_prefix
="$prefix"
8593 prefix
="$acl_final_prefix"
8594 acl_save_exec_prefix
="$exec_prefix"
8595 exec_prefix
="$acl_final_exec_prefix"
8597 exec_prefix
="$acl_save_exec_prefix"
8598 prefix
="$acl_save_prefix"
8602 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8603 if test -n "$acl_shlibext"; then
8604 if test -f "$dir/$libname$shrext"; then
8606 found_so
="$dir/$libname$shrext"
8608 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8609 ver
=`(cd "$dir" && \
8610 for f in "$libname$shrext".*; do echo "$f"; done \
8611 | sed -e "s,^$libname$shrext\\\\.,," \
8612 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8613 | sed 1q ) 2>/dev/null`
8614 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8616 found_so
="$dir/$libname$shrext.$ver"
8619 eval library_names
=\"$acl_library_names_spec\"
8620 for f
in $library_names; do
8621 if test -f "$dir/$f"; then
8630 if test "X$found_dir" = "X"; then
8631 if test -f "$dir/$libname.$acl_libext"; then
8633 found_a
="$dir/$libname.$acl_libext"
8636 if test "X$found_dir" != "X"; then
8637 if test -f "$dir/$libname.la"; then
8638 found_la
="$dir/$libname.la"
8643 if test "X$found_dir" != "X"; then
8648 if test "X$found_dir" != "X"; then
8649 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8650 if test "X$found_so" != "X"; then
8651 if test "$enable_rpath" = no \
8652 ||
test "X$found_dir" = "X/usr/$acl_libdirstem" \
8653 ||
test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8654 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
8657 for x
in $ltrpathdirs; do
8658 if test "X$x" = "X$found_dir"; then
8663 if test -z "$haveit"; then
8664 ltrpathdirs
="$ltrpathdirs $found_dir"
8666 if test "$acl_hardcode_direct" = yes; then
8667 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
8669 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
8670 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
8672 for x
in $rpathdirs; do
8673 if test "X$x" = "X$found_dir"; then
8678 if test -z "$haveit"; then
8679 rpathdirs
="$rpathdirs $found_dir"
8683 for x
in $LDFLAGS $LIBINTL; do
8685 acl_save_prefix
="$prefix"
8686 prefix
="$acl_final_prefix"
8687 acl_save_exec_prefix
="$exec_prefix"
8688 exec_prefix
="$acl_final_exec_prefix"
8690 exec_prefix
="$acl_save_exec_prefix"
8691 prefix
="$acl_save_prefix"
8693 if test "X$x" = "X-L$found_dir"; then
8698 if test -z "$haveit"; then
8699 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8701 if test "$acl_hardcode_minus_L" != no
; then
8702 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
8704 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
8710 if test "X$found_a" != "X"; then
8711 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
8713 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8716 additional_includedir
=
8717 case "$found_dir" in
8718 */$acl_libdirstem |
*/$acl_libdirstem/)
8719 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8720 if test "$name" = 'intl'; then
8721 LIBINTL_PREFIX
="$basedir"
8723 additional_includedir
="$basedir/include"
8725 */$acl_libdirstem2 |
*/$acl_libdirstem2/)
8726 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8727 if test "$name" = 'intl'; then
8728 LIBINTL_PREFIX
="$basedir"
8730 additional_includedir
="$basedir/include"
8733 if test "X$additional_includedir" != "X"; then
8734 if test "X$additional_includedir" != "X/usr/include"; then
8736 if test "X$additional_includedir" = "X/usr/local/include"; then
8737 if test -n "$GCC"; then
8739 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
8743 if test -z "$haveit"; then
8744 for x
in $CPPFLAGS $INCINTL; do
8746 acl_save_prefix
="$prefix"
8747 prefix
="$acl_final_prefix"
8748 acl_save_exec_prefix
="$exec_prefix"
8749 exec_prefix
="$acl_final_exec_prefix"
8751 exec_prefix
="$acl_save_exec_prefix"
8752 prefix
="$acl_save_prefix"
8754 if test "X$x" = "X-I$additional_includedir"; then
8759 if test -z "$haveit"; then
8760 if test -d "$additional_includedir"; then
8761 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8767 if test -n "$found_la"; then
8768 save_libdir
="$libdir"
8770 */* |
*\\*) .
"$found_la" ;;
8771 *) .
"./$found_la" ;;
8773 libdir
="$save_libdir"
8774 for dep
in $dependency_libs; do
8777 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8778 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8779 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8781 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8782 ||
test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8783 if test -n "$GCC"; then
8785 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
8789 if test -z "$haveit"; then
8791 for x
in $LDFLAGS $LIBINTL; do
8793 acl_save_prefix
="$prefix"
8794 prefix
="$acl_final_prefix"
8795 acl_save_exec_prefix
="$exec_prefix"
8796 exec_prefix
="$acl_final_exec_prefix"
8798 exec_prefix
="$acl_save_exec_prefix"
8799 prefix
="$acl_save_prefix"
8801 if test "X$x" = "X-L$additional_libdir"; then
8806 if test -z "$haveit"; then
8807 if test -d "$additional_libdir"; then
8808 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8812 for x
in $LDFLAGS $LTLIBINTL; do
8814 acl_save_prefix
="$prefix"
8815 prefix
="$acl_final_prefix"
8816 acl_save_exec_prefix
="$exec_prefix"
8817 exec_prefix
="$acl_final_exec_prefix"
8819 exec_prefix
="$acl_save_exec_prefix"
8820 prefix
="$acl_save_prefix"
8822 if test "X$x" = "X-L$additional_libdir"; then
8827 if test -z "$haveit"; then
8828 if test -d "$additional_libdir"; then
8829 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8836 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8837 if test "$enable_rpath" != no
; then
8839 for x
in $rpathdirs; do
8840 if test "X$x" = "X$dir"; then
8845 if test -z "$haveit"; then
8846 rpathdirs
="$rpathdirs $dir"
8849 for x
in $ltrpathdirs; do
8850 if test "X$x" = "X$dir"; then
8855 if test -z "$haveit"; then
8856 ltrpathdirs
="$ltrpathdirs $dir"
8861 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8864 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8867 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
8868 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8874 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
8875 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8881 if test "X$rpathdirs" != "X"; then
8882 if test -n "$acl_hardcode_libdir_separator"; then
8884 for found_dir
in $rpathdirs; do
8885 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8887 acl_save_libdir
="$libdir"
8889 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
8890 libdir
="$acl_save_libdir"
8891 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
8893 for found_dir
in $rpathdirs; do
8894 acl_save_libdir
="$libdir"
8896 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
8897 libdir
="$acl_save_libdir"
8898 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
8902 if test "X$ltrpathdirs" != "X"; then
8903 for found_dir
in $ltrpathdirs; do
8904 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8914 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
8915 if eval \
${$gt_func_gnugettext_libintl+:} false
; then :
8916 $as_echo_n "(cached) " >&6
8918 gt_save_CPPFLAGS
="$CPPFLAGS"
8919 CPPFLAGS
="$CPPFLAGS $INCINTL"
8920 gt_save_LIBS
="$LIBS"
8921 LIBS
="$LIBS $LIBINTL"
8922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8923 /* end confdefs.h. */
8925 #include <libintl.h>
8926 $gt_revision_test_code
8927 extern int _nl_msg_cat_cntr;
8932 const char *_nl_expand_alias (const char *);
8938 bindtextdomain ("", "");
8939 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
8945 if ac_fn_c_try_link
"$LINENO"; then :
8946 eval "$gt_func_gnugettext_libintl=yes"
8948 eval "$gt_func_gnugettext_libintl=no"
8950 rm -f core conftest.err conftest.
$ac_objext \
8951 conftest
$ac_exeext conftest.
$ac_ext
8952 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
8953 LIBS
="$LIBS $LIBICONV"
8954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8955 /* end confdefs.h. */
8957 #include <libintl.h>
8958 $gt_revision_test_code
8959 extern int _nl_msg_cat_cntr;
8964 const char *_nl_expand_alias (const char *);
8970 bindtextdomain ("", "");
8971 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
8977 if ac_fn_c_try_link
"$LINENO"; then :
8978 LIBINTL
="$LIBINTL $LIBICONV"
8979 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
8980 eval "$gt_func_gnugettext_libintl=yes"
8983 rm -f core conftest.err conftest.
$ac_objext \
8984 conftest
$ac_exeext conftest.
$ac_ext
8986 CPPFLAGS
="$gt_save_CPPFLAGS"
8987 LIBS
="$gt_save_LIBS"
8989 eval ac_res
=\$
$gt_func_gnugettext_libintl
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8991 $as_echo "$ac_res" >&6; }
8994 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
8995 ||
{ { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
8996 && test "$PACKAGE" != gettext-runtime \
8997 && test "$PACKAGE" != gettext-tools
; }; then
8998 gt_use_preinstalled_gnugettext
=yes
9007 if test -n "$INTL_MACOSX_LIBS"; then
9008 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9009 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
9010 LIBINTL
="$LIBINTL $INTL_MACOSX_LIBS"
9011 LTLIBINTL
="$LTLIBINTL $INTL_MACOSX_LIBS"
9015 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9016 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
9018 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9026 $as_echo_n "checking whether to use NLS... " >&6; }
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9028 $as_echo "$USE_NLS" >&6; }
9029 if test "$USE_NLS" = "yes"; then
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9031 $as_echo_n "checking where the gettext function comes from... " >&6; }
9032 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9033 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9034 gt_source
="external libintl"
9039 gt_source
="included intl directory"
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9042 $as_echo "$gt_source" >&6; }
9045 if test "$USE_NLS" = "yes"; then
9047 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9048 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9050 $as_echo_n "checking how to link with libintl... " >&6; }
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9052 $as_echo "$LIBINTL" >&6; }
9054 for element
in $INCINTL; do
9056 for x
in $CPPFLAGS; do
9058 acl_save_prefix
="$prefix"
9059 prefix
="$acl_final_prefix"
9060 acl_save_exec_prefix
="$exec_prefix"
9061 exec_prefix
="$acl_final_exec_prefix"
9063 exec_prefix
="$acl_save_exec_prefix"
9064 prefix
="$acl_save_prefix"
9066 if test "X$x" = "X$element"; then
9071 if test -z "$haveit"; then
9072 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9079 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9082 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9098 # Check whether --enable-largefile was given.
9099 if test "${enable_largefile+set}" = set; then :
9100 enableval
=$enable_largefile;
9103 if test "$enable_largefile" != no
; then
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9106 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9107 if ${ac_cv_sys_largefile_CC+:} false
; then :
9108 $as_echo_n "(cached) " >&6
9110 ac_cv_sys_largefile_CC
=no
9111 if test "$GCC" != yes; then
9114 # IRIX 6.2 and later do not support large files by default,
9115 # so use the C compiler's -n32 option if that helps.
9116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9117 /* end confdefs.h. */
9118 #include <sys/types.h>
9119 /* Check that off_t can represent 2**63 - 1 correctly.
9120 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9121 since some C++ compilers masquerading as C compilers
9122 incorrectly reject 9223372036854775807. */
9123 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9124 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9125 && LARGE_OFF_T % 2147483647 == 1)
9135 if ac_fn_c_try_compile
"$LINENO"; then :
9138 rm -f core conftest.err conftest.
$ac_objext
9140 if ac_fn_c_try_compile
"$LINENO"; then :
9141 ac_cv_sys_largefile_CC
=' -n32'; break
9143 rm -f core conftest.err conftest.
$ac_objext
9147 rm -f conftest.
$ac_ext
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
9151 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
9152 if test "$ac_cv_sys_largefile_CC" != no
; then
9153 CC
=$CC$ac_cv_sys_largefile_CC
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9157 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
9158 if ${ac_cv_sys_file_offset_bits+:} false
; then :
9159 $as_echo_n "(cached) " >&6
9162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h. */
9164 #include <sys/types.h>
9165 /* Check that off_t can represent 2**63 - 1 correctly.
9166 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9167 since some C++ compilers masquerading as C compilers
9168 incorrectly reject 9223372036854775807. */
9169 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9170 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9171 && LARGE_OFF_T % 2147483647 == 1)
9181 if ac_fn_c_try_compile
"$LINENO"; then :
9182 ac_cv_sys_file_offset_bits
=no
; break
9184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9186 /* end confdefs.h. */
9187 #define _FILE_OFFSET_BITS 64
9188 #include <sys/types.h>
9189 /* Check that off_t can represent 2**63 - 1 correctly.
9190 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9191 since some C++ compilers masquerading as C compilers
9192 incorrectly reject 9223372036854775807. */
9193 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9194 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9195 && LARGE_OFF_T % 2147483647 == 1)
9205 if ac_fn_c_try_compile
"$LINENO"; then :
9206 ac_cv_sys_file_offset_bits
=64; break
9208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9209 ac_cv_sys_file_offset_bits
=unknown
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
9214 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9215 case $ac_cv_sys_file_offset_bits in #(
9218 cat >>confdefs.h
<<_ACEOF
9219 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9224 if test $ac_cv_sys_file_offset_bits = unknown
; then
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
9226 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
9227 if ${ac_cv_sys_large_files+:} false
; then :
9228 $as_echo_n "(cached) " >&6
9231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9233 #include <sys/types.h>
9234 /* Check that off_t can represent 2**63 - 1 correctly.
9235 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9236 since some C++ compilers masquerading as C compilers
9237 incorrectly reject 9223372036854775807. */
9238 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9239 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9240 && LARGE_OFF_T % 2147483647 == 1)
9250 if ac_fn_c_try_compile
"$LINENO"; then :
9251 ac_cv_sys_large_files
=no
; break
9253 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9255 /* end confdefs.h. */
9256 #define _LARGE_FILES 1
9257 #include <sys/types.h>
9258 /* Check that off_t can represent 2**63 - 1 correctly.
9259 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9260 since some C++ compilers masquerading as C compilers
9261 incorrectly reject 9223372036854775807. */
9262 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9263 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9264 && LARGE_OFF_T % 2147483647 == 1)
9274 if ac_fn_c_try_compile
"$LINENO"; then :
9275 ac_cv_sys_large_files
=1; break
9277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9278 ac_cv_sys_large_files
=unknown
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9283 $as_echo "$ac_cv_sys_large_files" >&6; }
9284 case $ac_cv_sys_large_files in #(
9287 cat >>confdefs.h
<<_ACEOF
9288 #define _LARGE_FILES $ac_cv_sys_large_files
9297 # Identify characteristics of the host architecture.
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9299 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9300 if ${ac_cv_c_bigendian+:} false
; then :
9301 $as_echo_n "(cached) " >&6
9303 ac_cv_c_bigendian
=unknown
9304 # See if we're dealing with a universal compiler.
9305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9306 /* end confdefs.h. */
9307 #ifndef __APPLE_CC__
9308 not a universal capable compiler
9313 if ac_fn_c_try_compile
"$LINENO"; then :
9315 # Check for potential -arch flags. It is not universal unless
9316 # there are at least two -arch flags with different values.
9319 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9320 if test -n "$ac_prev"; then
9322 i?
86 | x86_64 | ppc | ppc64
)
9323 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9326 ac_cv_c_bigendian
=universal
9332 elif test "x$ac_word" = "x-arch"; then
9337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9338 if test $ac_cv_c_bigendian = unknown
; then
9339 # See if sys/param.h defines the BYTE_ORDER macro.
9340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9341 /* end confdefs.h. */
9342 #include <sys/types.h>
9343 #include <sys/param.h>
9348 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9349 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9358 if ac_fn_c_try_compile
"$LINENO"; then :
9359 # It does; now see whether it defined to BIG_ENDIAN or not.
9360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9361 /* end confdefs.h. */
9362 #include <sys/types.h>
9363 #include <sys/param.h>
9368 #if BYTE_ORDER != BIG_ENDIAN
9376 if ac_fn_c_try_compile
"$LINENO"; then :
9377 ac_cv_c_bigendian
=yes
9379 ac_cv_c_bigendian
=no
9381 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9385 if test $ac_cv_c_bigendian = unknown
; then
9386 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h. */
9394 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9402 if ac_fn_c_try_compile
"$LINENO"; then :
9403 # It does; now see whether it defined to _BIG_ENDIAN or not.
9404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9405 /* end confdefs.h. */
9419 if ac_fn_c_try_compile
"$LINENO"; then :
9420 ac_cv_c_bigendian
=yes
9422 ac_cv_c_bigendian
=no
9424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9428 if test $ac_cv_c_bigendian = unknown
; then
9429 # Compile a test program.
9430 if test "$cross_compiling" = yes; then :
9431 # Try to guess by grepping values from an object file.
9432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9433 /* end confdefs.h. */
9434 short int ascii_mm[] =
9435 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9436 short int ascii_ii[] =
9437 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9438 int use_ascii (int i) {
9439 return ascii_mm[i] + ascii_ii[i];
9441 short int ebcdic_ii[] =
9442 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9443 short int ebcdic_mm[] =
9444 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9445 int use_ebcdic (int i) {
9446 return ebcdic_mm[i] + ebcdic_ii[i];
9453 return use_ascii (foo) == use_ebcdic (foo);
9458 if ac_fn_c_try_compile
"$LINENO"; then :
9459 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9460 ac_cv_c_bigendian
=yes
9462 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9463 if test "$ac_cv_c_bigendian" = unknown
; then
9464 ac_cv_c_bigendian
=no
9466 # finding both strings is unlikely to happen, but who knows?
9467 ac_cv_c_bigendian
=unknown
9471 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9474 /* end confdefs.h. */
9475 $ac_includes_default
9480 /* Are we little or big endian? From Harbison&Steele. */
9484 char c[sizeof (long int)];
9487 return u.c[sizeof (long int) - 1] == 1;
9493 if ac_fn_c_try_run
"$LINENO"; then :
9494 ac_cv_c_bigendian
=no
9496 ac_cv_c_bigendian
=yes
9498 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9499 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9505 $as_echo "$ac_cv_c_bigendian" >&6; }
9506 case $ac_cv_c_bigendian in #(
9508 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9514 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9518 as_fn_error $?
"unknown endianness
9519 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9522 # The cast to long int works around a bug in the HP C Compiler
9523 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9524 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9525 # This bug is HP SR number 8606223364.
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
9527 $as_echo_n "checking size of void *... " >&6; }
9528 if ${ac_cv_sizeof_void_p+:} false
; then :
9529 $as_echo_n "(cached) " >&6
9531 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
9534 if test "$ac_cv_type_void_p" = yes; then
9535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9537 as_fn_error
77 "cannot compute sizeof (void *)
9538 See \`config.log' for more details" "$LINENO" 5; }
9540 ac_cv_sizeof_void_p
=0
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
9546 $as_echo "$ac_cv_sizeof_void_p" >&6; }
9550 cat >>confdefs.h
<<_ACEOF
9551 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
9555 # The cast to long int works around a bug in the HP C Compiler
9556 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9557 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9558 # This bug is HP SR number 8606223364.
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
9560 $as_echo_n "checking size of long... " >&6; }
9561 if ${ac_cv_sizeof_long+:} false
; then :
9562 $as_echo_n "(cached) " >&6
9564 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
9567 if test "$ac_cv_type_long" = yes; then
9568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9570 as_fn_error
77 "cannot compute sizeof (long)
9571 See \`config.log' for more details" "$LINENO" 5; }
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
9579 $as_echo "$ac_cv_sizeof_long" >&6; }
9583 cat >>confdefs.h
<<_ACEOF
9584 #define SIZEOF_LONG $ac_cv_sizeof_long
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler is apple cc" >&5
9591 $as_echo_n "checking whether our compiler is apple cc... " >&6; }
9592 if ${grub_cv_apple_cc+:} false
; then :
9593 $as_echo_n "(cached) " >&6
9595 if $CC -v 2>&1 |
grep "Apple Inc." > /dev
/null
; then
9596 grub_cv_apple_cc
=yes
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_apple_cc" >&5
9605 $as_echo "$grub_cv_apple_cc" >&6; }
9606 if test x
$grub_cv_apple_cc = xyes
; then
9607 HOST_CPPFLAGS
="$HOST_CPPFLAGS -fnested-functions"
9608 HOST_LDFLAGS
="$HOST_LDFLAGS -Wl,-allow_stack_execute"
9611 if test x
$USE_NLS = xno
; then
9612 HOST_CFLAGS
="$HOST_CFLAGS -fno-builtin-gettext"
9615 if test "x$cross_compiling" = xyes
; then
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot generate manual pages while cross compiling" >&5
9617 $as_echo "$as_me: WARNING: cannot generate manual pages while cross compiling" >&2;}
9619 # Extract the first word of "help2man", so it can be a program name with args.
9620 set dummy help2man
; ac_word
=$2
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9622 $as_echo_n "checking for $ac_word... " >&6; }
9623 if ${ac_cv_path_HELP2MAN+:} false
; then :
9624 $as_echo_n "(cached) " >&6
9628 ac_cv_path_HELP2MAN
="$HELP2MAN" # Let the user override the test with a path.
9631 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9635 test -z "$as_dir" && as_dir
=.
9636 for ac_exec_ext
in '' $ac_executable_extensions; do
9637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9638 ac_cv_path_HELP2MAN
="$as_dir/$ac_word$ac_exec_ext"
9639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9649 HELP2MAN
=$ac_cv_path_HELP2MAN
9650 if test -n "$HELP2MAN"; then
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
9652 $as_echo "$HELP2MAN" >&6; }
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9655 $as_echo "no" >&6; }
9661 # Check for functions and headers.
9662 for ac_func
in posix_memalign memalign asprintf vasprintf getextmntent
9664 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9665 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9666 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9667 cat >>confdefs.h
<<_ACEOF
9668 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9674 for ac_header
in sys
/param.h sys
/mount.h sys
/mnttab.h sys
/mkdev.h limits.h
9676 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9677 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9678 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9679 cat >>confdefs.h
<<_ACEOF
9680 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9688 ac_fn_c_check_member
"$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "$ac_includes_default
9689 #include <sys/param.h>
9690 #include <sys/mount.h>
9692 if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes
; then :
9694 cat >>confdefs.h
<<_ACEOF
9695 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
9702 ac_fn_c_check_member
"$LINENO" "struct statfs" "f_mntfromname" "ac_cv_member_struct_statfs_f_mntfromname" "$ac_includes_default
9703 #include <sys/param.h>
9704 #include <sys/mount.h>
9706 if test "x$ac_cv_member_struct_statfs_f_mntfromname" = xyes
; then :
9708 cat >>confdefs.h
<<_ACEOF
9709 #define HAVE_STRUCT_STATFS_F_MNTFROMNAME 1
9716 # For opendisk() and getrawpartition() on NetBSD.
9717 # Used in util/deviceiter.c and in util/hostdisk.c.
9718 ac_fn_c_check_header_mongrel
"$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default"
9719 if test "x$ac_cv_header_util_h" = xyes
; then :
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opendisk in -lutil" >&5
9722 $as_echo_n "checking for opendisk in -lutil... " >&6; }
9723 if ${ac_cv_lib_util_opendisk+:} false
; then :
9724 $as_echo_n "(cached) " >&6
9726 ac_check_lib_save_LIBS
=$LIBS
9728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9729 /* end confdefs.h. */
9731 /* Override any GCC internal prototype to avoid an error.
9732 Use char because int might match the return type of a GCC
9733 builtin and then its argument prototype would still apply. */
9746 if ac_fn_c_try_link
"$LINENO"; then :
9747 ac_cv_lib_util_opendisk
=yes
9749 ac_cv_lib_util_opendisk
=no
9751 rm -f core conftest.err conftest.
$ac_objext \
9752 conftest
$ac_exeext conftest.
$ac_ext
9753 LIBS
=$ac_check_lib_save_LIBS
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_opendisk" >&5
9756 $as_echo "$ac_cv_lib_util_opendisk" >&6; }
9757 if test "x$ac_cv_lib_util_opendisk" = xyes
; then :
9761 $as_echo "#define HAVE_OPENDISK 1" >>confdefs.h
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getrawpartition in -lutil" >&5
9767 $as_echo_n "checking for getrawpartition in -lutil... " >&6; }
9768 if ${ac_cv_lib_util_getrawpartition+:} false
; then :
9769 $as_echo_n "(cached) " >&6
9771 ac_check_lib_save_LIBS
=$LIBS
9773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9774 /* end confdefs.h. */
9776 /* Override any GCC internal prototype to avoid an error.
9777 Use char because int might match the return type of a GCC
9778 builtin and then its argument prototype would still apply. */
9782 char getrawpartition ();
9786 return getrawpartition ();
9791 if ac_fn_c_try_link
"$LINENO"; then :
9792 ac_cv_lib_util_getrawpartition
=yes
9794 ac_cv_lib_util_getrawpartition
=no
9796 rm -f core conftest.err conftest.
$ac_objext \
9797 conftest
$ac_exeext conftest.
$ac_ext
9798 LIBS
=$ac_check_lib_save_LIBS
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getrawpartition" >&5
9801 $as_echo "$ac_cv_lib_util_getrawpartition" >&6; }
9802 if test "x$ac_cv_lib_util_getrawpartition" = xyes
; then :
9806 $as_echo "#define HAVE_GETRAWPARTITION 1" >>confdefs.h
9818 # Check for host and build compilers.
9821 for ac_prog
in gcc egcs cc
9823 # Extract the first word of "$ac_prog", so it can be a program name with args.
9824 set dummy
$ac_prog; ac_word
=$2
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9826 $as_echo_n "checking for $ac_word... " >&6; }
9827 if ${ac_cv_prog_BUILD_CC+:} false
; then :
9828 $as_echo_n "(cached) " >&6
9830 if test -n "$BUILD_CC"; then
9831 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
9833 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9837 test -z "$as_dir" && as_dir
=.
9838 for ac_exec_ext
in '' $ac_executable_extensions; do
9839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9840 ac_cv_prog_BUILD_CC
="$ac_prog"
9841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9850 BUILD_CC
=$ac_cv_prog_BUILD_CC
9851 if test -n "$BUILD_CC"; then
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
9853 $as_echo "$BUILD_CC" >&6; }
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9856 $as_echo "no" >&6; }
9860 test -n "$BUILD_CC" && break
9862 test -n "$BUILD_CC" || BUILD_CC
="as_fn_error $? "none of gcc
, egcs and cc is found.
set BUILD_CC manually.
" "$LINENO" 5"
9870 LIBC_FATAL_STDERR_
=1
9871 export LIBC_FATAL_STDERR_
9873 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9874 if test "x$ac_cv_type_size_t" = xyes
; then :
9878 cat >>confdefs.h
<<_ACEOF
9879 #define size_t unsigned int
9884 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9885 # for constant arguments. Useless!
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9887 $as_echo_n "checking for working alloca.h... " >&6; }
9888 if ${ac_cv_working_alloca_h+:} false
; then :
9889 $as_echo_n "(cached) " >&6
9891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9892 /* end confdefs.h. */
9897 char *p = (char *) alloca (2 * sizeof (int));
9903 if ac_fn_c_try_link
"$LINENO"; then :
9904 ac_cv_working_alloca_h
=yes
9906 ac_cv_working_alloca_h
=no
9908 rm -f core conftest.err conftest.
$ac_objext \
9909 conftest
$ac_exeext conftest.
$ac_ext
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9912 $as_echo "$ac_cv_working_alloca_h" >&6; }
9913 if test $ac_cv_working_alloca_h = yes; then
9915 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9920 $as_echo_n "checking for alloca... " >&6; }
9921 if ${ac_cv_func_alloca_works+:} false
; then :
9922 $as_echo_n "(cached) " >&6
9924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9925 /* end confdefs.h. */
9927 # define alloca __builtin_alloca
9930 # include <malloc.h>
9931 # define alloca _alloca
9933 # ifdef HAVE_ALLOCA_H
9934 # include <alloca.h>
9939 # ifndef alloca /* predefined by HP cc +Olibcalls */
9940 void *alloca (size_t);
9950 char *p = (char *) alloca (1);
9956 if ac_fn_c_try_link
"$LINENO"; then :
9957 ac_cv_func_alloca_works
=yes
9959 ac_cv_func_alloca_works
=no
9961 rm -f core conftest.err conftest.
$ac_objext \
9962 conftest
$ac_exeext conftest.
$ac_ext
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9965 $as_echo "$ac_cv_func_alloca_works" >&6; }
9967 if test $ac_cv_func_alloca_works = yes; then
9969 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9972 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9973 # that cause trouble. Some versions do not even contain alloca or
9974 # contain a buggy version. If you still want to use their alloca,
9975 # use ar to extract alloca.o from them instead of compiling alloca.c.
9981 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
9983 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9987 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9988 if ${ac_cv_os_cray+:} false
; then :
9989 $as_echo_n "(cached) " >&6
9991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9992 /* end confdefs.h. */
9993 #if defined CRAY && ! defined CRAY2
10000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10001 $EGREP "webecray" >/dev
/null
2>&1; then :
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10010 $as_echo "$ac_cv_os_cray" >&6; }
10011 if test $ac_cv_os_cray = yes; then
10012 for ac_func
in _getb67 GETB67 getb67
; do
10013 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10014 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10015 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10017 cat >>confdefs.h
<<_ACEOF
10018 #define CRAY_STACKSEG_END $ac_func
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10028 $as_echo_n "checking stack direction for C alloca... " >&6; }
10029 if ${ac_cv_c_stack_direction+:} false
; then :
10030 $as_echo_n "(cached) " >&6
10032 if test "$cross_compiling" = yes; then :
10033 ac_cv_c_stack_direction
=0
10035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10036 /* end confdefs.h. */
10037 $ac_includes_default
10039 find_stack_direction ()
10041 static char *addr = 0;
10046 return find_stack_direction ();
10049 return (&dummy > addr) ? 1 : -1;
10055 return find_stack_direction () < 0;
10058 if ac_fn_c_try_run
"$LINENO"; then :
10059 ac_cv_c_stack_direction
=1
10061 ac_cv_c_stack_direction
=-1
10063 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10064 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10069 $as_echo "$ac_cv_c_stack_direction" >&6; }
10070 cat >>confdefs.h
<<_ACEOF
10071 #define STACK_DIRECTION $ac_cv_c_stack_direction
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10078 $as_echo_n "checking for inline... " >&6; }
10079 if ${ac_cv_c_inline+:} false
; then :
10080 $as_echo_n "(cached) " >&6
10083 for ac_kw
in inline __inline__ __inline
; do
10084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10085 /* end confdefs.h. */
10086 #ifndef __cplusplus
10088 static $ac_kw foo_t static_foo () {return 0; }
10089 $ac_kw foo_t foo () {return 0; }
10093 if ac_fn_c_try_compile
"$LINENO"; then :
10094 ac_cv_c_inline
=$ac_kw
10096 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10097 test "$ac_cv_c_inline" != no
&& break
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10102 $as_echo "$ac_cv_c_inline" >&6; }
10104 case $ac_cv_c_inline in
10107 case $ac_cv_c_inline in
10109 *) ac_val
=$ac_cv_c_inline;;
10111 cat >>confdefs.h
<<_ACEOF
10112 #ifndef __cplusplus
10113 #define inline $ac_val
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
10120 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
10121 if ${ac_cv_c_restrict+:} false
; then :
10122 $as_echo_n "(cached) " >&6
10124 ac_cv_c_restrict
=no
10125 # The order here caters to the fact that C++ does not require restrict.
10126 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
10127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10128 /* end confdefs.h. */
10129 typedef int * int_ptr;
10130 int foo (int_ptr $ac_kw ip) {
10137 int * $ac_kw t = s;
10144 if ac_fn_c_try_compile
"$LINENO"; then :
10145 ac_cv_c_restrict
=$ac_kw
10147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10148 test "$ac_cv_c_restrict" != no
&& break
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
10153 $as_echo "$ac_cv_c_restrict" >&6; }
10155 case $ac_cv_c_restrict in
10157 no
) $as_echo "#define restrict /**/" >>confdefs.h
10159 *) cat >>confdefs.h
<<_ACEOF
10160 #define restrict $ac_cv_c_restrict
10165 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
10166 if test "x$ac_cv_have_decl_getenv" = xyes
; then :
10172 cat >>confdefs.h
<<_ACEOF
10173 #define HAVE_DECL_GETENV $ac_have_decl
10176 ac_fn_c_check_decl
"$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
10177 if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes
; then :
10183 cat >>confdefs.h
<<_ACEOF
10184 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
10187 ac_fn_c_check_decl
"$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
10188 if test "x$ac_cv_have_decl_feof_unlocked" = xyes
; then :
10194 cat >>confdefs.h
<<_ACEOF
10195 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
10198 ac_fn_c_check_decl
"$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
10199 if test "x$ac_cv_have_decl_ferror_unlocked" = xyes
; then :
10205 cat >>confdefs.h
<<_ACEOF
10206 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
10209 ac_fn_c_check_decl
"$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
10210 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes
; then :
10216 cat >>confdefs.h
<<_ACEOF
10217 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
10220 ac_fn_c_check_decl
"$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
10221 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes
; then :
10227 cat >>confdefs.h
<<_ACEOF
10228 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
10231 ac_fn_c_check_decl
"$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
10232 if test "x$ac_cv_have_decl_fputc_unlocked" = xyes
; then :
10238 cat >>confdefs.h
<<_ACEOF
10239 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
10242 ac_fn_c_check_decl
"$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
10243 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes
; then :
10249 cat >>confdefs.h
<<_ACEOF
10250 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
10253 ac_fn_c_check_decl
"$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
10254 if test "x$ac_cv_have_decl_fread_unlocked" = xyes
; then :
10260 cat >>confdefs.h
<<_ACEOF
10261 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
10264 ac_fn_c_check_decl
"$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
10265 if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes
; then :
10271 cat >>confdefs.h
<<_ACEOF
10272 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
10275 ac_fn_c_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
10276 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
; then :
10282 cat >>confdefs.h
<<_ACEOF
10283 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10286 ac_fn_c_check_decl
"$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
10287 if test "x$ac_cv_have_decl_getchar_unlocked" = xyes
; then :
10293 cat >>confdefs.h
<<_ACEOF
10294 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
10297 ac_fn_c_check_decl
"$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
10298 if test "x$ac_cv_have_decl_putc_unlocked" = xyes
; then :
10304 cat >>confdefs.h
<<_ACEOF
10305 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
10308 ac_fn_c_check_decl
"$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
10309 if test "x$ac_cv_have_decl_putchar_unlocked" = xyes
; then :
10315 cat >>confdefs.h
<<_ACEOF
10316 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
10322 for ac_func
in $ac_func_list
10324 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10325 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10326 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10327 cat >>confdefs.h
<<_ACEOF
10328 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10341 for ac_header
in $ac_header_list
10343 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10344 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10346 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10347 cat >>confdefs.h
<<_ACEOF
10348 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10360 XGETTEXT_EXTRA_OPTIONS
=
10368 GNULIB_MBSRTOWCS
=0;
10369 GNULIB_MBSNRTOWCS
=0;
10371 GNULIB_WCSRTOMBS
=0;
10372 GNULIB_WCSNRTOMBS
=0;
10384 HAVE_DECL_WCWIDTH
=0;
10385 REPLACE_MBSTATE_T
=0;
10391 REPLACE_MBSRTOWCS
=0;
10392 REPLACE_MBSNRTOWCS
=0;
10394 REPLACE_WCSRTOMBS
=0;
10395 REPLACE_WCSNRTOMBS
=0;
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
10400 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
10401 if ${gl_cv_header_wchar_h_correct_inline+:} false
; then :
10402 $as_echo_n "(cached) " >&6
10404 gl_cv_header_wchar_h_correct_inline
=yes
10405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10406 /* end confdefs.h. */
10408 #define wcstod renamed_wcstod
10410 extern int zero (void);
10411 int main () { return zero(); }
10414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10415 (eval $ac_compile) 2>&5
10417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10418 test $ac_status = 0; }; then
10419 mv conftest.
$ac_objext conftest1.
$ac_objext
10420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h. */
10423 #define wcstod renamed_wcstod
10425 int zero (void) { return 0; }
10428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10429 (eval $ac_compile) 2>&5
10431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10432 test $ac_status = 0; }; then
10433 mv conftest.
$ac_objext conftest2.
$ac_objext
10434 if $CC -o conftest
$ac_exeext $CFLAGS $LDFLAGS conftest1.
$ac_objext conftest2.
$ac_objext $LIBS >&5 2>&1; then
10437 gl_cv_header_wchar_h_correct_inline
=no
10441 rm -f conftest1.
$ac_objext conftest2.
$ac_objext conftest
$ac_exeext
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
10445 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
10446 if test $gl_cv_header_wchar_h_correct_inline = no
; then
10447 as_fn_error $?
"<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
10448 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
10449 C99 mode. You have four options:
10450 - Add the flag -fgnu89-inline to CC and reconfigure, or
10451 - Fix your include files, using parts of
10452 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
10453 - Use a gcc version older than 4.3, or
10454 - Don't use the flags -std=c99 or -std=gnu99.
10455 Configuration aborted." "$LINENO" 5
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10462 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10463 if ${am_cv_langinfo_codeset+:} false
; then :
10464 $as_echo_n "(cached) " >&6
10466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10467 /* end confdefs.h. */
10468 #include <langinfo.h>
10472 char* cs = nl_langinfo(CODESET); return !cs;
10477 if ac_fn_c_try_link
"$LINENO"; then :
10478 am_cv_langinfo_codeset
=yes
10480 am_cv_langinfo_codeset
=no
10482 rm -f core conftest.err conftest.
$ac_objext \
10483 conftest
$ac_exeext conftest.
$ac_ext
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10487 $as_echo "$am_cv_langinfo_codeset" >&6; }
10488 if test $am_cv_langinfo_codeset = yes; then
10490 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
10498 $as_echo_n "checking for a traditional french locale... " >&6; }
10499 if ${gt_cv_locale_fr+:} false
; then :
10500 $as_echo_n "(cached) " >&6
10503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10504 /* end confdefs.h. */
10506 #include <locale.h>
10508 #if HAVE_LANGINFO_CODESET
10509 # include <langinfo.h>
10511 #include <stdlib.h>
10512 #include <string.h>
10516 /* Check whether the given locale name is recognized by the system. */
10517 if (setlocale (LC_ALL, "") == NULL) return 1;
10518 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10519 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10520 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10521 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10522 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10523 some unit tests fail. */
10524 #if HAVE_LANGINFO_CODESET
10526 const char *cs = nl_langinfo (CODESET);
10527 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10532 /* On Cygwin, avoid locale names without encoding suffix, because the
10533 locale_charset() function relies on the encoding suffix. Note that
10534 LC_ALL is set on the command line. */
10535 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10537 /* Check whether in the abbreviation of the second month, the second
10538 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
10539 one byte long. This excludes the UTF-8 encoding. */
10540 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10541 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
10542 /* Check whether the decimal separator is a comma.
10543 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10544 are nl_langinfo(RADIXCHAR) are both ".". */
10545 if (localeconv () ->decimal_point[0] != ',') return 1;
10550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10551 (eval $ac_link) 2>&5
10553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10554 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
10555 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10556 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
10557 # configure script would override the LC_ALL setting. Likewise for
10558 # LC_CTYPE, which is also set at the beginning of the configure script.
10559 # Test for the usual locale name.
10560 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
10561 gt_cv_locale_fr
=fr_FR
10563 # Test for the locale name with explicit encoding suffix.
10564 if (LC_ALL
=fr_FR.ISO-8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
10565 gt_cv_locale_fr
=fr_FR.ISO-8859-1
10567 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
10568 if (LC_ALL
=fr_FR.ISO8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
10569 gt_cv_locale_fr
=fr_FR.ISO8859-1
10571 # Test for the HP-UX locale name.
10572 if (LC_ALL
=fr_FR.iso88591 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
10573 gt_cv_locale_fr
=fr_FR.iso88591
10575 # Test for the Solaris 7 locale name.
10576 if (LC_ALL
=fr LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
10580 gt_cv_locale_fr
=none
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
10591 $as_echo "$gt_cv_locale_fr" >&6; }
10592 LOCALE_FR
=$gt_cv_locale_fr
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system is Windows or MSDOS" >&5
10597 $as_echo_n "checking whether system is Windows or MSDOS... " >&6; }
10598 if ${ac_cv_win_or_dos+:} false
; then :
10599 $as_echo_n "(cached) " >&6
10602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10603 /* end confdefs.h. */
10609 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
10610 neither MSDOS nor Windows
10616 if ac_fn_c_try_compile
"$LINENO"; then :
10617 ac_cv_win_or_dos
=yes
10619 ac_cv_win_or_dos
=no
10621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_win_or_dos" >&5
10625 $as_echo "$ac_cv_win_or_dos" >&6; }
10627 if test x
"$ac_cv_win_or_dos" = xyes
; then
10628 ac_fs_accepts_drive_letter_prefix
=1
10629 ac_fs_backslash_is_file_name_separator
=1
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether drive letter can start relative path" >&5
10631 $as_echo_n "checking whether drive letter can start relative path... " >&6; }
10632 if ${ac_cv_drive_letter_can_be_relative+:} false
; then :
10633 $as_echo_n "(cached) " >&6
10636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10637 /* end confdefs.h. */
10643 #if defined __CYGWIN__
10644 drive letters are always absolute
10650 if ac_fn_c_try_compile
"$LINENO"; then :
10651 ac_cv_drive_letter_can_be_relative
=yes
10653 ac_cv_drive_letter_can_be_relative
=no
10655 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_drive_letter_can_be_relative" >&5
10659 $as_echo "$ac_cv_drive_letter_can_be_relative" >&6; }
10660 if test x
"$ac_cv_drive_letter_can_be_relative" = xyes
; then
10661 ac_fs_drive_letter_can_be_relative
=1
10663 ac_fs_drive_letter_can_be_relative
=0
10666 ac_fs_accepts_drive_letter_prefix
=0
10667 ac_fs_backslash_is_file_name_separator
=0
10668 ac_fs_drive_letter_can_be_relative
=0
10672 cat >>confdefs.h
<<_ACEOF
10673 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
10680 cat >>confdefs.h
<<_ACEOF
10681 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
10686 cat >>confdefs.h
<<_ACEOF
10687 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
10694 $as_echo_n "checking whether // is distinct from /... " >&6; }
10695 if ${gl_cv_double_slash_root+:} false
; then :
10696 $as_echo_n "(cached) " >&6
10698 if test x
"$cross_compiling" = xyes
; then
10699 # When cross-compiling, there is no way to tell whether // is special
10700 # short of a list of hosts. However, the only known hosts to date
10701 # that have a distinct // are Apollo DomainOS (too old to port to),
10702 # Cygwin, and z/OS. If anyone knows of another system for which // has
10703 # special semantics and is distinct from /, please report it to
10704 # <bug-gnulib@gnu.org>.
10706 *-cygwin | i370-ibm-openedition
)
10707 gl_cv_double_slash_root
=yes ;;
10709 # Be optimistic and assume that / and // are the same when we
10711 gl_cv_double_slash_root
='unknown, assuming no' ;;
10714 set x
`ls -di / // 2>/dev/null`
10715 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
10716 gl_cv_double_slash_root
=no
10718 gl_cv_double_slash_root
=yes
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
10723 $as_echo "$gl_cv_double_slash_root" >&6; }
10724 if test "$gl_cv_double_slash_root" = yes; then
10726 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
10733 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
10734 if ${gl_cv_have_include_next+:} false
; then :
10735 $as_echo_n "(cached) " >&6
10737 rm -rf conftestd1a conftestd1b conftestd2
10738 mkdir conftestd1a conftestd1b conftestd2
10739 cat <<EOF > conftestd1a/conftest.h
10740 #define DEFINED_IN_CONFTESTD1
10741 #include_next <conftest.h>
10742 #ifdef DEFINED_IN_CONFTESTD2
10745 #error "include_next doesn't work"
10748 cat <<EOF > conftestd1b/conftest.h
10749 #define DEFINED_IN_CONFTESTD1
10751 #include_next <conftest.h>
10752 #ifdef DEFINED_IN_CONFTESTD2
10755 #error "include_next doesn't work"
10758 cat <<EOF > conftestd2/conftest.h
10759 #ifndef DEFINED_IN_CONFTESTD1
10760 #error "include_next test doesn't work"
10762 #define DEFINED_IN_CONFTESTD2
10764 gl_save_CPPFLAGS
="$CPPFLAGS"
10765 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
10766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10767 /* end confdefs.h. */
10768 #include <conftest.h>
10770 if ac_fn_c_try_compile
"$LINENO"; then :
10771 gl_cv_have_include_next
=yes
10773 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
10774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10775 /* end confdefs.h. */
10776 #include <conftest.h>
10778 if ac_fn_c_try_compile
"$LINENO"; then :
10779 gl_cv_have_include_next
=buggy
10781 gl_cv_have_include_next
=no
10783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10787 CPPFLAGS
="$gl_save_CPPFLAGS"
10788 rm -rf conftestd1a conftestd1b conftestd2
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
10792 $as_echo "$gl_cv_have_include_next" >&6; }
10793 PRAGMA_SYSTEM_HEADER
=
10794 if test $gl_cv_have_include_next = yes; then
10795 INCLUDE_NEXT
=include_next
10796 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
10797 if test -n "$GCC"; then
10798 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
10801 if test $gl_cv_have_include_next = buggy
; then
10802 INCLUDE_NEXT
=include
10803 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
10805 INCLUDE_NEXT
=include
10806 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
10818 $as_echo_n "checking for complete errno.h... " >&6; }
10819 if ${gl_cv_header_errno_h_complete+:} false
; then :
10820 $as_echo_n "(cached) " >&6
10823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10824 /* end confdefs.h. */
10827 #if !defined ENOMSG
10833 #if !defined ENOLINK
10836 #if !defined EPROTO
10839 #if !defined EMULTIHOP
10842 #if !defined EBADMSG
10845 #if !defined EOVERFLOW
10848 #if !defined ENOTSUP
10851 #if !defined ESTALE
10854 #if !defined ECANCELED
10859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10860 $EGREP "booboo" >/dev
/null
2>&1; then :
10861 gl_cv_header_errno_h_complete
=no
10863 gl_cv_header_errno_h_complete
=yes
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
10870 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
10871 if test $gl_cv_header_errno_h_complete = yes; then
10880 if test $gl_cv_have_include_next = yes; then
10881 gl_cv_next_errno_h
='<'errno.h
'>'
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
10884 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
10885 if ${gl_cv_next_errno_h+:} false
; then :
10886 $as_echo_n "(cached) " >&6
10889 if test $ac_cv_header_errno_h = yes; then
10890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10891 /* end confdefs.h. */
10896 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10897 *) gl_absname_cpp
="$ac_cpp" ;;
10899 gl_cv_next_errno_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10900 sed -n '\#/errno.h#{
10901 s#.*"\(.*/errno.h\)".*#\1#
10907 gl_cv_next_errno_h
='<'errno.h
'>'
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
10912 $as_echo "$gl_cv_next_errno_h" >&6; }
10914 NEXT_ERRNO_H
=$gl_cv_next_errno_h
10916 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10917 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10918 gl_next_as_first_directive
='<'errno.h
'>'
10920 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10921 gl_next_as_first_directive
=$gl_cv_next_errno_h
10923 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
=$gl_next_as_first_directive
10931 if test -n "$ERRNO_H"; then
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
10933 $as_echo_n "checking for EMULTIHOP value... " >&6; }
10934 if ${gl_cv_header_errno_h_EMULTIHOP+:} false
; then :
10935 $as_echo_n "(cached) " >&6
10938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10939 /* end confdefs.h. */
10947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10948 $EGREP "yes" >/dev
/null
2>&1; then :
10949 gl_cv_header_errno_h_EMULTIHOP
=yes
10951 gl_cv_header_errno_h_EMULTIHOP
=no
10955 if test $gl_cv_header_errno_h_EMULTIHOP = no
; then
10956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10957 /* end confdefs.h. */
10959 #define _XOPEN_SOURCE_EXTENDED 1
10966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10967 $EGREP "yes" >/dev
/null
2>&1; then :
10968 gl_cv_header_errno_h_EMULTIHOP
=hidden
10972 if test $gl_cv_header_errno_h_EMULTIHOP = hidden
; then
10973 if ac_fn_c_compute_int
"$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
10974 #define _XOPEN_SOURCE_EXTENDED 1
10976 /* The following two lines are a workaround against an autoconf-2.52 bug. */
10978 #include <stdlib.h>
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
10988 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
10989 case $gl_cv_header_errno_h_EMULTIHOP in
10991 EMULTIHOP_HIDDEN
=0; EMULTIHOP_VALUE
=
10994 EMULTIHOP_HIDDEN
=1; EMULTIHOP_VALUE
="$gl_cv_header_errno_h_EMULTIHOP"
11002 if test -n "$ERRNO_H"; then
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
11004 $as_echo_n "checking for ENOLINK value... " >&6; }
11005 if ${gl_cv_header_errno_h_ENOLINK+:} false
; then :
11006 $as_echo_n "(cached) " >&6
11009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11010 /* end confdefs.h. */
11018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11019 $EGREP "yes" >/dev
/null
2>&1; then :
11020 gl_cv_header_errno_h_ENOLINK
=yes
11022 gl_cv_header_errno_h_ENOLINK
=no
11026 if test $gl_cv_header_errno_h_ENOLINK = no
; then
11027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11028 /* end confdefs.h. */
11030 #define _XOPEN_SOURCE_EXTENDED 1
11037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11038 $EGREP "yes" >/dev
/null
2>&1; then :
11039 gl_cv_header_errno_h_ENOLINK
=hidden
11043 if test $gl_cv_header_errno_h_ENOLINK = hidden
; then
11044 if ac_fn_c_compute_int
"$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
11045 #define _XOPEN_SOURCE_EXTENDED 1
11047 /* The following two lines are a workaround against an autoconf-2.52 bug. */
11049 #include <stdlib.h>
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
11059 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
11060 case $gl_cv_header_errno_h_ENOLINK in
11062 ENOLINK_HIDDEN
=0; ENOLINK_VALUE
=
11065 ENOLINK_HIDDEN
=1; ENOLINK_VALUE
="$gl_cv_header_errno_h_ENOLINK"
11073 if test -n "$ERRNO_H"; then
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
11075 $as_echo_n "checking for EOVERFLOW value... " >&6; }
11076 if ${gl_cv_header_errno_h_EOVERFLOW+:} false
; then :
11077 $as_echo_n "(cached) " >&6
11080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11081 /* end confdefs.h. */
11089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11090 $EGREP "yes" >/dev
/null
2>&1; then :
11091 gl_cv_header_errno_h_EOVERFLOW
=yes
11093 gl_cv_header_errno_h_EOVERFLOW
=no
11097 if test $gl_cv_header_errno_h_EOVERFLOW = no
; then
11098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11099 /* end confdefs.h. */
11101 #define _XOPEN_SOURCE_EXTENDED 1
11108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11109 $EGREP "yes" >/dev
/null
2>&1; then :
11110 gl_cv_header_errno_h_EOVERFLOW
=hidden
11114 if test $gl_cv_header_errno_h_EOVERFLOW = hidden
; then
11115 if ac_fn_c_compute_int
"$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
11116 #define _XOPEN_SOURCE_EXTENDED 1
11118 /* The following two lines are a workaround against an autoconf-2.52 bug. */
11120 #include <stdlib.h>
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
11130 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
11131 case $gl_cv_header_errno_h_EOVERFLOW in
11133 EOVERFLOW_HIDDEN
=0; EOVERFLOW_VALUE
=
11136 EOVERFLOW_HIDDEN
=1; EOVERFLOW_VALUE
="$gl_cv_header_errno_h_EOVERFLOW"
11144 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
11145 if test "x$ac_cv_have_decl_strerror_r" = xyes
; then :
11151 cat >>confdefs.h
<<_ACEOF
11152 #define HAVE_DECL_STRERROR_R $ac_have_decl
11155 for ac_func
in strerror_r
11157 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
11158 if test "x$ac_cv_func_strerror_r" = xyes
; then :
11159 cat >>confdefs.h
<<_ACEOF
11160 #define HAVE_STRERROR_R 1
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
11167 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
11168 if ${ac_cv_func_strerror_r_char_p+:} false
; then :
11169 $as_echo_n "(cached) " >&6
11172 ac_cv_func_strerror_r_char_p
=no
11173 if test $ac_cv_have_decl_strerror_r = yes; then
11174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11175 /* end confdefs.h. */
11176 $ac_includes_default
11182 char x = *strerror_r (0, buf, sizeof buf);
11183 char *p = strerror_r (0, buf, sizeof buf);
11190 if ac_fn_c_try_compile
"$LINENO"; then :
11191 ac_cv_func_strerror_r_char_p
=yes
11193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11195 # strerror_r is not declared. Choose between
11196 # systems that have relatively inaccessible declarations for the
11197 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
11198 # former has a strerror_r that returns char*, while the latter
11199 # has a strerror_r that returns `int'.
11200 # This test should segfault on the DEC system.
11201 if test "$cross_compiling" = yes; then :
11204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11205 /* end confdefs.h. */
11206 $ac_includes_default
11207 extern char *strerror_r ();
11212 char x = *strerror_r (0, buf, sizeof buf);
11213 return ! isalpha (x);
11218 if ac_fn_c_try_run
"$LINENO"; then :
11219 ac_cv_func_strerror_r_char_p
=yes
11221 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11222 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
11229 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
11230 if test $ac_cv_func_strerror_r_char_p = yes; then
11232 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
11241 $as_echo_n "checking for mbstate_t... " >&6; }
11242 if ${ac_cv_type_mbstate_t+:} false
; then :
11243 $as_echo_n "(cached) " >&6
11245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11246 /* end confdefs.h. */
11247 $ac_includes_default
11248 # include <wchar.h>
11252 mbstate_t x; return sizeof x;
11257 if ac_fn_c_try_compile
"$LINENO"; then :
11258 ac_cv_type_mbstate_t
=yes
11260 ac_cv_type_mbstate_t
=no
11262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
11265 $as_echo "$ac_cv_type_mbstate_t" >&6; }
11266 if test $ac_cv_type_mbstate_t = yes; then
11268 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
11272 $as_echo "#define mbstate_t int" >>confdefs.h
11298 GNULIB_FPRINTF_POSIX
=0;
11310 GNULIB_OBSTACK_PRINTF
=0;
11311 GNULIB_OBSTACK_PRINTF_POSIX
=0;
11315 GNULIB_PRINTF_POSIX
=0;
11323 GNULIB_SPRINTF_POSIX
=0;
11324 GNULIB_STDIO_H_SIGPIPE
=0;
11326 GNULIB_VASPRINTF
=0;
11329 GNULIB_VFPRINTF_POSIX
=0;
11331 GNULIB_VPRINTF_POSIX
=0;
11332 GNULIB_VSNPRINTF
=0;
11333 GNULIB_VSPRINTF_POSIX
=0;
11334 HAVE_DECL_FPURGE
=1;
11335 HAVE_DECL_GETDELIM
=1;
11336 HAVE_DECL_GETLINE
=1;
11337 HAVE_DECL_OBSTACK_PRINTF
=1;
11338 HAVE_DECL_SNPRINTF
=1;
11339 HAVE_DECL_VSNPRINTF
=1;
11357 REPLACE_GETDELIM
=0;
11359 REPLACE_OBSTACK_PRINTF
=0;
11365 REPLACE_RENAMEAT
=0;
11366 REPLACE_SNPRINTF
=0;
11368 REPLACE_STDIO_WRITE_FUNCS
=0;
11370 REPLACE_VASPRINTF
=0;
11371 REPLACE_VDPRINTF
=0;
11372 REPLACE_VFPRINTF
=0;
11374 REPLACE_VSNPRINTF
=0;
11375 REPLACE_VSPRINTF
=0;
11377 ac_fn_c_check_decl
"$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
11378 if test "x$ac_cv_have_decl_getdelim" = xyes
; then :
11384 cat >>confdefs.h
<<_ACEOF
11385 #define HAVE_DECL_GETDELIM $ac_have_decl
11390 ac_fn_c_check_decl
"$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
11391 if test "x$ac_cv_have_decl_getline" = xyes
; then :
11397 cat >>confdefs.h
<<_ACEOF
11398 #define HAVE_DECL_GETLINE $ac_have_decl
11407 GNULIB_EUIDACCESS
=0;
11408 GNULIB_FACCESSAT
=0;
11412 GNULIB_FTRUNCATE
=0;
11414 GNULIB_GETDOMAINNAME
=0;
11415 GNULIB_GETDTABLESIZE
=0;
11416 GNULIB_GETGROUPS
=0;
11417 GNULIB_GETHOSTNAME
=0;
11419 GNULIB_GETLOGIN_R
=0;
11420 GNULIB_GETPAGESIZE
=0;
11421 GNULIB_GETUSERSHELL
=0;
11430 GNULIB_READLINKAT
=0;
11434 GNULIB_SYMLINKAT
=0;
11435 GNULIB_TTYNAME_R
=0;
11436 GNULIB_UNISTD_H_GETOPT
=0;
11437 GNULIB_UNISTD_H_SIGPIPE
=0;
11451 HAVE_GETDOMAINNAME
=1;
11452 HAVE_GETDTABLESIZE
=1;
11454 HAVE_GETHOSTNAME
=1;
11456 HAVE_GETPAGESIZE
=1;
11471 HAVE_DECL_ENVIRON
=1;
11472 HAVE_DECL_GETLOGIN_R
=1;
11473 HAVE_DECL_GETPAGESIZE
=1;
11474 HAVE_DECL_GETUSERSHELL
=1;
11476 HAVE_SYS_PARAM_H
=0;
11481 REPLACE_FCHOWNAT
=0;
11483 REPLACE_GETGROUPS
=0;
11484 REPLACE_GETPAGESIZE
=0;
11491 REPLACE_READLINK
=0;
11495 REPLACE_TTYNAME_R
=0;
11497 REPLACE_UNLINKAT
=0;
11500 UNISTD_H_HAVE_WINSOCK2_H
=0;
11501 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
11516 if test $gl_cv_have_include_next = yes; then
11517 gl_cv_next_getopt_h
='<'getopt.h
'>'
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
11520 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
11521 if ${gl_cv_next_getopt_h+:} false
; then :
11522 $as_echo_n "(cached) " >&6
11525 if test $ac_cv_header_getopt_h = yes; then
11526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11527 /* end confdefs.h. */
11528 #include <getopt.h>
11532 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
11533 *) gl_absname_cpp
="$ac_cpp" ;;
11535 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11536 sed -n '\#/getopt.h#{
11537 s#.*"\(.*/getopt.h\)".*#\1#
11543 gl_cv_next_getopt_h
='<'getopt.h
'>'
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
11548 $as_echo "$gl_cv_next_getopt_h" >&6; }
11550 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
11552 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
11553 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11554 gl_next_as_first_directive
='<'getopt.h
'>'
11556 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11557 gl_next_as_first_directive
=$gl_cv_next_getopt_h
11559 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
11564 if test $ac_cv_header_getopt_h = yes; then
11573 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
11574 for ac_header
in getopt.h
11576 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11577 if test "x$ac_cv_header_getopt_h" = xyes
; then :
11578 cat >>confdefs.h
<<_ACEOF
11579 #define HAVE_GETOPT_H 1
11583 gl_replace_getopt
=yes
11590 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
11591 for ac_func
in getopt_long_only
11593 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
11594 if test "x$ac_cv_func_getopt_long_only" = xyes
; then :
11595 cat >>confdefs.h
<<_ACEOF
11596 #define HAVE_GETOPT_LONG_ONLY 1
11600 gl_replace_getopt
=yes
11606 if test -z "$gl_replace_getopt"; then
11607 ac_fn_c_check_decl
"$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
11609 if test "x$ac_cv_have_decl_optreset" = xyes
; then :
11615 cat >>confdefs.h
<<_ACEOF
11616 #define HAVE_DECL_OPTRESET $ac_have_decl
11618 if test $ac_have_decl = 1; then :
11621 ac_fn_c_check_decl
"$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
11623 if test "x$ac_cv_have_decl_getopt_clip" = xyes
; then :
11629 cat >>confdefs.h
<<_ACEOF
11630 #define HAVE_DECL_GETOPT_CLIP $ac_have_decl
11638 if test -z "$gl_replace_getopt"; then
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
11640 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
11641 if ${gl_cv_func_getopt_posix+:} false
; then :
11642 $as_echo_n "(cached) " >&6
11645 if test "$cross_compiling" = yes; then :
11647 mingw
*) gl_cv_func_getopt_posix
="guessing no";;
11648 darwin
* | aix
*) gl_cv_func_getopt_posix
="guessing no";;
11649 *) gl_cv_func_getopt_posix
="guessing yes";;
11653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11654 /* end confdefs.h. */
11656 #include <unistd.h>
11657 #include <stdlib.h>
11658 #include <string.h>
11660 #if !HAVE_DECL_OPTRESET && !HAVE_DECL_GETOPT_CLIP
11661 # define OPTIND_MIN 0
11663 # define OPTIND_MIN 1
11674 argv[argc++] = "program";
11675 argv[argc++] = "-a";
11676 argv[argc++] = "foo";
11677 argv[argc++] = "bar";
11679 optind = OPTIND_MIN;
11682 c = getopt (argc, argv, "ab");
11685 c = getopt (argc, argv, "ab");
11688 if (!(optind == 2))
11691 /* Some internal state exists at this point. */
11697 argv[argc++] = "program";
11698 argv[argc++] = "donald";
11699 argv[argc++] = "-p";
11700 argv[argc++] = "billy";
11701 argv[argc++] = "duck";
11702 argv[argc++] = "-a";
11703 argv[argc++] = "bar";
11705 optind = OPTIND_MIN;
11708 c = getopt (argc, argv, "+abp:q:");
11711 if (!(strcmp (argv[0], "program") == 0))
11713 if (!(strcmp (argv[1], "donald") == 0))
11715 if (!(strcmp (argv[2], "-p") == 0))
11717 if (!(strcmp (argv[3], "billy") == 0))
11719 if (!(strcmp (argv[4], "duck") == 0))
11721 if (!(strcmp (argv[5], "-a") == 0))
11723 if (!(strcmp (argv[6], "bar") == 0))
11725 if (!(optind == 1))
11728 /* Detect MacOS 10.5, AIX 7.1 bug. */
11730 char *argv[3] = { "program", "-ab", NULL };
11731 optind = OPTIND_MIN;
11733 if (getopt (2, argv, "ab:") != 'a')
11735 if (getopt (2, argv, "ab:") != '?')
11747 if ac_fn_c_try_run
"$LINENO"; then :
11748 gl_cv_func_getopt_posix
=yes
11750 gl_cv_func_getopt_posix
=no
11752 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11753 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
11759 $as_echo "$gl_cv_func_getopt_posix" >&6; }
11760 case "$gl_cv_func_getopt_posix" in
11761 *no
) gl_replace_getopt
=yes ;;
11765 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
11767 $as_echo_n "checking for working GNU getopt function... " >&6; }
11768 if ${gl_cv_func_getopt_gnu+:} false
; then :
11769 $as_echo_n "(cached) " >&6
11771 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
11772 # optstring is necessary for programs like m4 that have POSIX-mandated
11773 # semantics for supporting options interspersed with files.
11774 # Also, since getopt_long is a GNU extension, we require optind=0.
11775 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
11776 # so take care to revert to the correct (non-)export state.
11777 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
11778 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
11779 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
11780 x
) gl_had_POSIXLY_CORRECT
=yes ;;
11781 *) gl_had_POSIXLY_CORRECT
= ;;
11784 export POSIXLY_CORRECT
11785 if test "$cross_compiling" = yes; then :
11786 case $host_os:$ac_cv_have_decl_optreset in
11787 *-gnu*:* | mingw
*:*) gl_cv_func_getopt_gnu
=no
;;
11788 *:yes) gl_cv_func_getopt_gnu
=no
;;
11789 *) gl_cv_func_getopt_gnu
=yes;;
11793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11794 /* end confdefs.h. */
11795 #include <getopt.h>
11796 #include <stddef.h>
11797 #include <string.h>
11803 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
11804 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
11805 OSF/1 5.1, Solaris 10. */
11808 myargv[0] = "conftest";
11812 if (getopt (2, myargv, "+a") != '?')
11815 /* This code succeeds on glibc 2.8, mingw,
11816 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
11817 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
11819 char *argv[] = { "program", "-p", "foo", "bar", NULL };
11822 if (getopt (4, argv, "p::") != 'p')
11824 if (optarg != NULL)
11826 if (getopt (4, argv, "p::") != -1)
11831 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
11833 char *argv[] = { "program", "foo", "-p", NULL };
11835 if (getopt (3, argv, "-p") != 1)
11837 if (getopt (3, argv, "-p") != 'p')
11840 /* This code fails on glibc 2.11. */
11842 char *argv[] = { "program", "-b", "-a", NULL };
11843 optind = opterr = 0;
11844 if (getopt (3, argv, "+:a:b") != 'b')
11846 if (getopt (3, argv, "+:a:b") != ':')
11855 if ac_fn_c_try_run
"$LINENO"; then :
11856 gl_cv_func_getopt_gnu
=yes
11858 gl_cv_func_getopt_gnu
=no
11860 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11861 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11864 case $gl_had_POSIXLY_CORRECT in
11866 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
11867 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
11872 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
11873 if test "$gl_cv_func_getopt_gnu" = "no"; then
11874 gl_replace_getopt
=yes
11883 if test -n "$gl_replace_getopt"; then :
11889 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
11893 GNULIB_UNISTD_H_GETOPT
=1
11902 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
11912 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
11923 GNULIB_NL_LANGINFO
=0;
11924 HAVE_NL_LANGINFO
=1;
11925 REPLACE_NL_LANGINFO
=0;
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
11932 $as_echo_n "checking for working fcntl.h... " >&6; }
11933 if ${gl_cv_header_working_fcntl_h+:} false
; then :
11934 $as_echo_n "(cached) " >&6
11936 if test "$cross_compiling" = yes; then :
11937 gl_cv_header_working_fcntl_h
=cross-compiling
11939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11940 /* end confdefs.h. */
11941 #include <sys/types.h>
11942 #include <sys/stat.h>
11943 #include <unistd.h>
11946 #define O_NOATIME 0
11949 #define O_NOFOLLOW 0
11951 static int const constants[] =
11953 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
11954 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
11961 int status = !constants;
11963 static char const sym[] = "conftest.sym";
11964 if (symlink (".", sym) != 0
11965 || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
11970 static char const file[] = "confdefs.h";
11971 int fd = open (file, O_RDONLY | O_NOATIME);
11973 struct stat st0, st1;
11975 || fstat (fd, &st0) != 0
11977 || read (fd, &c, 1) != 1
11979 || stat (file, &st1) != 0
11980 || st0.st_atime != st1.st_atime)
11988 if ac_fn_c_try_run
"$LINENO"; then :
11989 gl_cv_header_working_fcntl_h
=yes
11992 32) gl_cv_header_working_fcntl_h
='no (bad O_NOFOLLOW)';; #(
11993 64) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME)';; #(
11994 96) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME, O_NOFOLLOW)';; #(
11995 *) gl_cv_header_working_fcntl_h
='no';;
11998 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11999 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
12004 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
12006 case $gl_cv_header_working_fcntl_h in #(
12007 *O_NOATIME
* | no | cross-compiling
) ac_val
=0;; #(
12011 cat >>confdefs.h
<<_ACEOF
12012 #define HAVE_WORKING_O_NOATIME $ac_val
12016 case $gl_cv_header_working_fcntl_h in #(
12017 *O_NOFOLLOW
* | no | cross-compiling
) ac_val
=0;; #(
12021 cat >>confdefs.h
<<_ACEOF
12022 #define HAVE_WORKING_O_NOFOLLOW $ac_val
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
12028 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
12029 if ${ac_cv_gnu_library_2_1+:} false
; then :
12030 $as_echo_n "(cached) " >&6
12032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12033 /* end confdefs.h. */
12035 #include <features.h>
12036 #ifdef __GNU_LIBRARY__
12037 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12044 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then :
12045 ac_cv_gnu_library_2_1
=yes
12047 ac_cv_gnu_library_2_1
=no
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
12055 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
12057 GLIBC21
="$ac_cv_gnu_library_2_1"
12063 GNULIB_CALLOC_POSIX
=0;
12064 GNULIB_CANONICALIZE_FILE_NAME
=0;
12065 GNULIB_GETLOADAVG
=0;
12066 GNULIB_GETSUBOPT
=0;
12068 GNULIB_MALLOC_POSIX
=0;
12071 GNULIB_MKOSTEMPS
=0;
12077 GNULIB_REALLOC_POSIX
=0;
12088 HAVE_CANONICALIZE_FILE_NAME
=1;
12089 HAVE_DECL_GETLOADAVG
=1;
12105 HAVE_STRUCT_RANDOM_DATA
=1;
12106 HAVE_SYS_LOADAVG_H
=0;
12110 REPLACE_CANONICALIZE_FILE_NAME
=0;
12115 REPLACE_REALPATH
=0;
12118 REPLACE_UNSETENV
=0;
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
12122 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
12123 if ${gl_cv_func_malloc_posix+:} false
; then :
12124 $as_echo_n "(cached) " >&6
12127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12128 /* end confdefs.h. */
12133 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
12141 if ac_fn_c_try_compile
"$LINENO"; then :
12142 gl_cv_func_malloc_posix
=yes
12144 gl_cv_func_malloc_posix
=no
12146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
12150 $as_echo "$gl_cv_func_malloc_posix" >&6; }
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
12160 $as_echo_n "checking for a traditional japanese locale... " >&6; }
12161 if ${gt_cv_locale_ja+:} false
; then :
12162 $as_echo_n "(cached) " >&6
12165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12166 /* end confdefs.h. */
12168 #include <locale.h>
12170 #if HAVE_LANGINFO_CODESET
12171 # include <langinfo.h>
12173 #include <stdlib.h>
12174 #include <string.h>
12180 /* Check whether the given locale name is recognized by the system. */
12181 if (setlocale (LC_ALL, "") == NULL) return 1;
12182 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12183 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12184 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12185 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12186 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12187 some unit tests fail. */
12188 #if HAVE_LANGINFO_CODESET
12190 const char *cs = nl_langinfo (CODESET);
12191 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
12196 /* On Cygwin, avoid locale names without encoding suffix, because the
12197 locale_charset() function relies on the encoding suffix. Note that
12198 LC_ALL is set on the command line. */
12199 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12201 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
12202 on Cygwin 1.5.x. */
12203 if (MB_CUR_MAX == 1)
12205 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
12206 This excludes the UTF-8 encoding. */
12207 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12208 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
12209 for (p = buf; *p != '\0'; p++)
12210 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
12216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12217 (eval $ac_link) 2>&5
12219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12220 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
12221 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12222 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
12223 # configure script would override the LC_ALL setting. Likewise for
12224 # LC_CTYPE, which is also set at the beginning of the configure script.
12225 # Test for the AIX locale name.
12226 if (LC_ALL
=ja_JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12227 gt_cv_locale_ja
=ja_JP
12229 # Test for the locale name with explicit encoding suffix.
12230 if (LC_ALL
=ja_JP.EUC-JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12231 gt_cv_locale_ja
=ja_JP.EUC-JP
12233 # Test for the HP-UX, OSF/1, NetBSD locale name.
12234 if (LC_ALL
=ja_JP.eucJP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12235 gt_cv_locale_ja
=ja_JP.eucJP
12237 # Test for the IRIX, FreeBSD locale name.
12238 if (LC_ALL
=ja_JP.EUC LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12239 gt_cv_locale_ja
=ja_JP.EUC
12241 # Test for the Solaris 7 locale name.
12242 if (LC_ALL
=ja LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12245 # Special test for NetBSD 1.6.
12246 if test -f /usr
/share
/locale
/ja_JP.eucJP
/LC_CTYPE
; then
12247 gt_cv_locale_ja
=ja_JP.eucJP
12250 gt_cv_locale_ja
=none
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
12262 $as_echo "$gt_cv_locale_ja" >&6; }
12263 LOCALE_JA
=$gt_cv_locale_ja
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
12270 $as_echo_n "checking for a transitional chinese locale... " >&6; }
12271 if ${gt_cv_locale_zh_CN+:} false
; then :
12272 $as_echo_n "(cached) " >&6
12275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12276 /* end confdefs.h. */
12278 #include <locale.h>
12279 #include <stdlib.h>
12281 #if HAVE_LANGINFO_CODESET
12282 # include <langinfo.h>
12284 #include <stdlib.h>
12285 #include <string.h>
12291 /* Check whether the given locale name is recognized by the system. */
12292 if (setlocale (LC_ALL, "") == NULL) return 1;
12293 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12294 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12295 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12296 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12297 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12298 some unit tests fail. */
12299 #if HAVE_LANGINFO_CODESET
12301 const char *cs = nl_langinfo (CODESET);
12302 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
12307 /* On Cygwin, avoid locale names without encoding suffix, because the
12308 locale_charset() function relies on the encoding suffix. Note that
12309 LC_ALL is set on the command line. */
12310 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12312 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
12313 This excludes the UTF-8 encoding. */
12314 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12315 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
12316 for (p = buf; *p != '\0'; p++)
12317 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
12319 /* Check whether a typical GB18030 multibyte sequence is recognized as a
12320 single wide character. This excludes the GB2312 and GBK encodings. */
12321 if (mblen ("\203\062\332\066", 5) != 4)
12327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12328 (eval $ac_link) 2>&5
12330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12331 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
12332 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12333 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
12334 # configure script would override the LC_ALL setting. Likewise for
12335 # LC_CTYPE, which is also set at the beginning of the configure script.
12336 # Test for the locale name without encoding suffix.
12337 if (LC_ALL
=zh_CN LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12338 gt_cv_locale_zh_CN
=zh_CN
12340 # Test for the locale name with explicit encoding suffix.
12341 if (LC_ALL
=zh_CN.GB18030 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12342 gt_cv_locale_zh_CN
=zh_CN.GB18030
12345 gt_cv_locale_zh_CN
=none
12349 # If there was a link error, due to mblen(), the system is so old that
12350 # it certainly doesn't have a chinese locale.
12351 gt_cv_locale_zh_CN
=none
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
12357 $as_echo "$gt_cv_locale_zh_CN" >&6; }
12358 LOCALE_ZH_CN
=$gt_cv_locale_zh_CN
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
12364 $as_echo_n "checking for a french Unicode locale... " >&6; }
12365 if ${gt_cv_locale_fr_utf8+:} false
; then :
12366 $as_echo_n "(cached) " >&6
12369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12370 /* end confdefs.h. */
12372 #include <locale.h>
12374 #if HAVE_LANGINFO_CODESET
12375 # include <langinfo.h>
12377 #include <stdlib.h>
12378 #include <string.h>
12382 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
12383 imitates locale dependent behaviour by looking at the environment
12384 variables, and all locales use the UTF-8 encoding. */
12385 #if !(defined __BEOS__ || defined __HAIKU__)
12386 /* Check whether the given locale name is recognized by the system. */
12387 if (setlocale (LC_ALL, "") == NULL) return 1;
12388 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12389 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12390 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12391 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12392 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12393 some unit tests fail. */
12394 # if HAVE_LANGINFO_CODESET
12396 const char *cs = nl_langinfo (CODESET);
12397 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
12402 /* On Cygwin, avoid locale names without encoding suffix, because the
12403 locale_charset() function relies on the encoding suffix. Note that
12404 LC_ALL is set on the command line. */
12405 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12407 /* Check whether in the abbreviation of the second month, the second
12408 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
12409 two bytes long, with UTF-8 encoding. */
12410 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12411 if (strftime (buf, sizeof (buf), "%b", &t) < 4
12412 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
12415 /* Check whether the decimal separator is a comma.
12416 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
12417 are nl_langinfo(RADIXCHAR) are both ".". */
12418 if (localeconv () ->decimal_point[0] != ',') return 1;
12423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12424 (eval $ac_link) 2>&5
12426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12427 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
12428 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12429 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
12430 # configure script would override the LC_ALL setting. Likewise for
12431 # LC_CTYPE, which is also set at the beginning of the configure script.
12432 # Test for the usual locale name.
12433 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12434 gt_cv_locale_fr_utf8
=fr_FR
12436 # Test for the locale name with explicit encoding suffix.
12437 if (LC_ALL
=fr_FR.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12438 gt_cv_locale_fr_utf8
=fr_FR.UTF-8
12440 # Test for the Solaris 7 locale name.
12441 if (LC_ALL
=fr.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12442 gt_cv_locale_fr_utf8
=fr.UTF-8
12445 gt_cv_locale_fr_utf8
=none
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
12454 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
12455 LOCALE_FR_UTF8
=$gt_cv_locale_fr_utf8
12467 GNULIB_RAWMEMCHR
=0;
12470 GNULIB_STRCHRNUL
=0;
12478 GNULIB_STRCASESTR
=0;
12485 GNULIB_MBSCASECMP
=0;
12486 GNULIB_MBSNCASECMP
=0;
12487 GNULIB_MBSPCASECMP
=0;
12488 GNULIB_MBSCASESTR
=0;
12495 GNULIB_STRSIGNAL
=0;
12496 GNULIB_STRVERSCMP
=0;
12499 HAVE_DECL_MEMMEM
=1;
12501 HAVE_DECL_MEMRCHR
=1;
12506 HAVE_DECL_STRDUP
=1;
12507 HAVE_DECL_STRNDUP
=1;
12508 HAVE_DECL_STRNLEN
=1;
12512 HAVE_DECL_STRTOK_R
=1;
12513 HAVE_DECL_STRSIGNAL
=1;
12520 REPLACE_STRCASESTR
=0;
12521 REPLACE_STRERROR
=0;
12525 REPLACE_STRSIGNAL
=0;
12526 REPLACE_STRTOK_R
=0;
12527 UNDEFINE_STRTOK_R
=0;
12538 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
12539 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
12540 # irrelevant for anonymous mappings.
12541 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
12542 if test "x$ac_cv_func_mmap" = xyes
; then :
12549 # Try to allow MAP_ANONYMOUS.
12550 gl_have_mmap_anonymous
=no
12551 if test $gl_have_mmap = yes; then
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
12553 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
12554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12555 /* end confdefs.h. */
12557 #include <sys/mman.h>
12558 #ifdef MAP_ANONYMOUS
12559 I cant identify this map.
12563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12564 $EGREP "I cant identify this map." >/dev
/null
2>&1; then :
12565 gl_have_mmap_anonymous
=yes
12569 if test $gl_have_mmap_anonymous != yes; then
12570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12571 /* end confdefs.h. */
12573 #include <sys/mman.h>
12575 I cant identify this map.
12579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12580 $EGREP "I cant identify this map." >/dev
/null
2>&1; then :
12582 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
12584 gl_have_mmap_anonymous
=yes
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
12590 $as_echo "$gl_have_mmap_anonymous" >&6; }
12591 if test $gl_have_mmap_anonymous = yes; then
12593 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
12603 if test $ac_cv_func_memchr = yes; then
12604 # Detect platform-specific bugs in some versions of glibc:
12605 # memchr should not dereference anything with length 0
12606 # http://bugzilla.redhat.com/499689
12607 # memchr should not dereference overestimated length after a match
12608 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
12609 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
12610 # Assume that memchr works on platforms that lack mprotect.
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
12612 $as_echo_n "checking whether memchr works... " >&6; }
12613 if ${gl_cv_func_memchr_works+:} false
; then :
12614 $as_echo_n "(cached) " >&6
12616 if test "$cross_compiling" = yes; then :
12617 gl_cv_func_memchr_works
="guessing no"
12619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12620 /* end confdefs.h. */
12622 #include <string.h>
12623 #if HAVE_SYS_MMAN_H
12624 # include <fcntl.h>
12625 # include <unistd.h>
12626 # include <sys/types.h>
12627 # include <sys/mman.h>
12629 # define MAP_FILE 0
12637 char *fence = NULL;
12638 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
12639 # if HAVE_MAP_ANONYMOUS
12640 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
12642 # else /* !HAVE_MAP_ANONYMOUS */
12643 const int flags = MAP_FILE | MAP_PRIVATE;
12644 int fd = open ("/dev/zero", O_RDONLY, 0666);
12648 int pagesize = getpagesize ();
12650 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
12652 if (two_pages != (char *)(-1)
12653 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
12654 fence = two_pages + pagesize;
12659 if (memchr (fence, 0, 0))
12661 strcpy (fence - 9, "12345678");
12662 if (memchr (fence - 9, 0, 79) != fence - 1)
12664 if (memchr (fence - 1, 0, 3) != fence - 1)
12673 if ac_fn_c_try_run
"$LINENO"; then :
12674 gl_cv_func_memchr_works
=yes
12676 gl_cv_func_memchr_works
=no
12678 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12679 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
12684 $as_echo "$gl_cv_func_memchr_works" >&6; }
12685 if test "$gl_cv_func_memchr_works" != yes; then
12691 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
12700 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
12703 for ac_header
in bp-sym.h
12705 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
12706 if test "x$ac_cv_header_bp_sym_h" = xyes
; then :
12707 cat >>confdefs.h
<<_ACEOF
12708 #define HAVE_BP_SYM_H 1
12719 gl_cv_c_multiarch
=no
12720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12721 /* end confdefs.h. */
12722 #ifndef __APPLE_CC__
12723 not a universal capable compiler
12728 if ac_fn_c_try_compile
"$LINENO"; then :
12732 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
12733 if test -n "$prev"; then
12735 i?
86 | x86_64 | ppc | ppc64
)
12736 if test -z "$arch" ||
test "$arch" = "$word"; then
12739 gl_cv_c_multiarch
=yes
12745 if test "x$word" = "x-arch"; then
12752 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12753 if test $gl_cv_c_multiarch = yes; then
12755 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12757 APPLE_UNIVERSAL_BUILD
=1
12759 APPLE_UNIVERSAL_BUILD
=0
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
12772 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
12773 if ${ac_cv_header_stdbool_h+:} false
; then :
12774 $as_echo_n "(cached) " >&6
12776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12777 /* end confdefs.h. */
12779 #include <stdbool.h>
12781 "error: bool is not defined"
12784 "error: false is not defined"
12787 "error: false is not 0"
12790 "error: true is not defined"
12793 "error: true is not 1"
12795 #ifndef __bool_true_false_are_defined
12796 "error: __bool_true_false_are_defined is not defined"
12799 struct s { _Bool s: 1; _Bool t; } s;
12801 char a[true == 1 ? 1 : -1];
12802 char b[false == 0 ? 1 : -1];
12803 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
12804 char d[(bool) 0.5 == true ? 1 : -1];
12805 /* See body of main program for 'e'. */
12806 char f[(_Bool) 0.0 == false ? 1 : -1];
12808 char h[sizeof (_Bool)];
12809 char i[sizeof s.t];
12810 enum { j = false, k = true, l = false * true, m = true * 256 };
12811 /* The following fails for
12812 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
12814 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
12815 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
12816 /* Catch a bug in an HP-UX C compiler. See
12817 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
12818 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
12830 /* Refer to every declared value, to avoid compiler optimizations. */
12831 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
12832 + !m + !n + !o + !p + !q + !pq);
12838 if ac_fn_c_try_compile
"$LINENO"; then :
12839 ac_cv_header_stdbool_h
=yes
12841 ac_cv_header_stdbool_h
=no
12843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
12846 $as_echo "$ac_cv_header_stdbool_h" >&6; }
12847 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
12848 if test "x$ac_cv_type__Bool" = xyes
; then :
12850 cat >>confdefs.h
<<_ACEOF
12851 #define HAVE__BOOL 1
12857 if test $ac_cv_header_stdbool_h = yes; then
12859 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
12869 $as_echo_n "checking for wchar_t... " >&6; }
12870 if ${gt_cv_c_wchar_t+:} false
; then :
12871 $as_echo_n "(cached) " >&6
12873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12874 /* end confdefs.h. */
12875 #include <stddef.h>
12876 wchar_t foo = (wchar_t)'\0';
12885 if ac_fn_c_try_compile
"$LINENO"; then :
12886 gt_cv_c_wchar_t
=yes
12890 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
12893 $as_echo "$gt_cv_c_wchar_t" >&6; }
12894 if test $gt_cv_c_wchar_t = yes; then
12896 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
12904 $as_echo_n "checking for long long int... " >&6; }
12905 if ${ac_cv_type_long_long_int+:} false
; then :
12906 $as_echo_n "(cached) " >&6
12908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12909 /* end confdefs.h. */
12911 /* For now, do not test the preprocessor; as of 2007 there are too many
12912 implementations with broken preprocessors. Perhaps this can
12913 be revisited in 2012. In the meantime, code should not expect
12914 #if to work with literals wider than 32 bits. */
12915 /* Test literals. */
12916 long long int ll = 9223372036854775807ll;
12917 long long int nll = -9223372036854775807LL;
12918 unsigned long long int ull = 18446744073709551615ULL;
12919 /* Test constant expressions. */
12920 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
12922 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
12928 /* Test availability of runtime routines for shift and division. */
12929 long long int llmax = 9223372036854775807ll;
12930 unsigned long long int ullmax = 18446744073709551615ull;
12931 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
12932 | (llmax / ll) | (llmax % ll)
12933 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
12934 | (ullmax / ull) | (ullmax % ull));
12940 if ac_fn_c_try_link
"$LINENO"; then :
12941 if test "$cross_compiling" = yes; then :
12942 ac_cv_type_long_long_int
=yes
12944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12945 /* end confdefs.h. */
12946 #include <limits.h>
12949 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
12950 # define LLONG_MAX (HALF - 1 + HALF)
12955 long long int n = 1;
12959 long long int m = n << i;
12962 if (LLONG_MAX / 2 < m)
12970 if ac_fn_c_try_run
"$LINENO"; then :
12971 ac_cv_type_long_long_int
=yes
12973 ac_cv_type_long_long_int
=no
12975 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12976 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12980 ac_cv_type_long_long_int
=no
12982 rm -f core conftest.err conftest.
$ac_objext \
12983 conftest
$ac_exeext conftest.
$ac_ext
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
12986 $as_echo "$ac_cv_type_long_long_int" >&6; }
12987 if test $ac_cv_type_long_long_int = yes; then
12989 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
12995 $as_echo_n "checking for unsigned long long int... " >&6; }
12996 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
12997 $as_echo_n "(cached) " >&6
12999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13000 /* end confdefs.h. */
13002 /* For now, do not test the preprocessor; as of 2007 there are too many
13003 implementations with broken preprocessors. Perhaps this can
13004 be revisited in 2012. In the meantime, code should not expect
13005 #if to work with literals wider than 32 bits. */
13006 /* Test literals. */
13007 long long int ll = 9223372036854775807ll;
13008 long long int nll = -9223372036854775807LL;
13009 unsigned long long int ull = 18446744073709551615ULL;
13010 /* Test constant expressions. */
13011 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
13013 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
13019 /* Test availability of runtime routines for shift and division. */
13020 long long int llmax = 9223372036854775807ll;
13021 unsigned long long int ullmax = 18446744073709551615ull;
13022 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
13023 | (llmax / ll) | (llmax % ll)
13024 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
13025 | (ullmax / ull) | (ullmax % ull));
13031 if ac_fn_c_try_link
"$LINENO"; then :
13032 ac_cv_type_unsigned_long_long_int
=yes
13034 ac_cv_type_unsigned_long_long_int
=no
13036 rm -f core conftest.err conftest.
$ac_objext \
13037 conftest
$ac_exeext conftest.
$ac_ext
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
13040 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
13041 if test $ac_cv_type_unsigned_long_long_int = yes; then
13043 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5
13053 $as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
13054 if ${gl_cv_prog_as_underscore+:} false
; then :
13055 $as_echo_n "(cached) " >&6
13057 cat > conftest.c
<<EOF
13059 extern "C" int foo (void);
13061 int foo(void) { return 0; }
13063 # Look for the assembly language name in the .s file.
13064 { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c'
13065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13066 (eval $ac_try) 2>&5
13068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13069 test $ac_status = 0; }; } >/dev
/null
2>&1
13070 if grep _foo conftest.s
>/dev
/null
; then
13071 gl_cv_prog_as_underscore
=yes
13073 gl_cv_prog_as_underscore
=no
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5
13079 $as_echo "$gl_cv_prog_as_underscore" >&6; }
13080 if test $gl_cv_prog_as_underscore = yes; then
13081 USER_LABEL_PREFIX
=_
13086 cat >>confdefs.h
<<_ACEOF
13087 #define USER_LABEL_PREFIX $USER_LABEL_PREFIX
13090 ASM_SYMBOL_PREFIX
='"'${USER_LABEL_PREFIX}'"'
13099 HAVE_DECL_STRNCASECMP
=1;
13106 if test -z "$ERRNO_H"; then
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
13108 $as_echo_n "checking for working strerror function... " >&6; }
13109 if ${gl_cv_func_working_strerror+:} false
; then :
13110 $as_echo_n "(cached) " >&6
13112 if test "$cross_compiling" = yes; then :
13113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13114 /* end confdefs.h. */
13115 #include <string.h>
13120 return !*strerror (-2);
13125 if ac_fn_c_try_compile
"$LINENO"; then :
13126 gl_cv_func_working_strerror
=yes
13128 gl_cv_func_working_strerror
=no
13130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13134 /* end confdefs.h. */
13135 #include <string.h>
13140 return !*strerror (-2);
13145 if ac_fn_c_try_run
"$LINENO"; then :
13146 gl_cv_func_working_strerror
=yes
13148 gl_cv_func_working_strerror
=no
13150 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13151 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
13157 $as_echo "$gl_cv_func_working_strerror" >&6; }
13158 if test $gl_cv_func_working_strerror = no
; then
13164 if test $REPLACE_STRERROR = 1; then
13166 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
13167 if test "x$ac_cv_have_decl_strerror" = xyes
; then :
13173 cat >>confdefs.h
<<_ACEOF
13174 #define HAVE_DECL_STRERROR $ac_have_decl
13178 if test $ac_cv_header_sys_socket_h != yes; then
13179 for ac_header
in winsock2.h
13181 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
13182 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
13183 cat >>confdefs.h
<<_ACEOF
13184 #define HAVE_WINSOCK2_H 1
13206 if test $gl_cv_have_include_next = yes; then
13207 gl_cv_next_string_h
='<'string.h
'>'
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
13210 $as_echo_n "checking absolute name of <string.h>... " >&6; }
13211 if ${gl_cv_next_string_h+:} false
; then :
13212 $as_echo_n "(cached) " >&6
13215 if test $ac_cv_header_string_h = yes; then
13216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13217 /* end confdefs.h. */
13218 #include <string.h>
13222 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
13223 *) gl_absname_cpp
="$ac_cpp" ;;
13225 gl_cv_next_string_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13226 sed -n '\#/string.h#{
13227 s#.*"\(.*/string.h\)".*#\1#
13233 gl_cv_next_string_h
='<'string.h
'>'
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
13238 $as_echo "$gl_cv_next_string_h" >&6; }
13240 NEXT_STRING_H
=$gl_cv_next_string_h
13242 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
13243 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13244 gl_next_as_first_directive
='<'string.h
'>'
13246 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13247 gl_next_as_first_directive
=$gl_cv_next_string_h
13249 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
13255 for gl_func
in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp
; do
13256 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13258 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13259 if eval \
${$as_gl_Symbol+:} false
; then :
13260 $as_echo_n "(cached) " >&6
13262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13263 /* end confdefs.h. */
13264 #include <string.h>
13275 if ac_fn_c_try_compile
"$LINENO"; then :
13276 eval "$as_gl_Symbol=yes"
13278 eval "$as_gl_Symbol=no"
13280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13282 eval ac_res
=\$
$as_gl_Symbol
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13284 $as_echo "$ac_res" >&6; }
13285 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
13286 cat >>confdefs.h
<<_ACEOF
13287 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13290 eval ac_cv_have_decl_
$gl_func=yes
13305 if test $gl_cv_have_include_next = yes; then
13306 gl_cv_next_strings_h
='<'strings.h
'>'
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <strings.h>" >&5
13309 $as_echo_n "checking absolute name of <strings.h>... " >&6; }
13310 if ${gl_cv_next_strings_h+:} false
; then :
13311 $as_echo_n "(cached) " >&6
13314 if test $ac_cv_header_strings_h = yes; then
13315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13316 /* end confdefs.h. */
13317 #include <strings.h>
13321 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
13322 *) gl_absname_cpp
="$ac_cpp" ;;
13324 gl_cv_next_strings_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13325 sed -n '\#/strings.h#{
13326 s#.*"\(.*/strings.h\)".*#\1#
13332 gl_cv_next_strings_h
='<'strings.h
'>'
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5
13337 $as_echo "$gl_cv_next_strings_h" >&6; }
13339 NEXT_STRINGS_H
=$gl_cv_next_strings_h
13341 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
13342 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13343 gl_next_as_first_directive
='<'strings.h
'>'
13345 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13346 gl_next_as_first_directive
=$gl_cv_next_strings_h
13348 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
=$gl_next_as_first_directive
13354 for gl_func
in strcasecmp strncasecmp
; do
13355 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13357 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13358 if eval \
${$as_gl_Symbol+:} false
; then :
13359 $as_echo_n "(cached) " >&6
13361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13362 /* end confdefs.h. */
13363 #include <strings.h>
13374 if ac_fn_c_try_compile
"$LINENO"; then :
13375 eval "$as_gl_Symbol=yes"
13377 eval "$as_gl_Symbol=no"
13379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13381 eval ac_res
=\$
$as_gl_Symbol
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13383 $as_echo "$ac_res" >&6; }
13384 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
13385 cat >>confdefs.h
<<_ACEOF
13386 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13389 eval ac_cv_have_decl_
$gl_func=yes
13394 ac_fn_c_check_decl
"$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
13395 if test "x$ac_cv_have_decl_strndup" = xyes
; then :
13401 cat >>confdefs.h
<<_ACEOF
13402 #define HAVE_DECL_STRNDUP $ac_have_decl
13407 ac_fn_c_check_decl
"$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
13408 if test "x$ac_cv_have_decl_strnlen" = xyes
; then :
13414 cat >>confdefs.h
<<_ACEOF
13415 #define HAVE_DECL_STRNLEN $ac_have_decl
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
13430 $as_echo_n "checking for wint_t... " >&6; }
13431 if ${gt_cv_c_wint_t+:} false
; then :
13432 $as_echo_n "(cached) " >&6
13434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13435 /* end confdefs.h. */
13437 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13439 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
13440 before <wchar.h>. */
13441 #include <stddef.h>
13445 wint_t foo = (wchar_t)'\0';
13454 if ac_fn_c_try_compile
"$LINENO"; then :
13459 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
13462 $as_echo "$gt_cv_c_wint_t" >&6; }
13463 if test $gt_cv_c_wint_t = yes; then
13465 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
13471 $as_echo_n "checking for inttypes.h... " >&6; }
13472 if ${gl_cv_header_inttypes_h+:} false
; then :
13473 $as_echo_n "(cached) " >&6
13475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13476 /* end confdefs.h. */
13478 #include <sys/types.h>
13479 #include <inttypes.h>
13484 uintmax_t i = (uintmax_t) -1; return !i;
13489 if ac_fn_c_try_compile
"$LINENO"; then :
13490 gl_cv_header_inttypes_h
=yes
13492 gl_cv_header_inttypes_h
=no
13494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
13497 $as_echo "$gl_cv_header_inttypes_h" >&6; }
13498 if test $gl_cv_header_inttypes_h = yes; then
13500 cat >>confdefs.h
<<_ACEOF
13501 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
13508 $as_echo_n "checking for stdint.h... " >&6; }
13509 if ${gl_cv_header_stdint_h+:} false
; then :
13510 $as_echo_n "(cached) " >&6
13512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13513 /* end confdefs.h. */
13514 #include <sys/types.h>
13515 #include <stdint.h>
13519 uintmax_t i = (uintmax_t) -1; return !i;
13524 if ac_fn_c_try_compile
"$LINENO"; then :
13525 gl_cv_header_stdint_h
=yes
13527 gl_cv_header_stdint_h
=no
13529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
13532 $as_echo "$gl_cv_header_stdint_h" >&6; }
13533 if test $gl_cv_header_stdint_h = yes; then
13535 cat >>confdefs.h
<<_ACEOF
13536 #define HAVE_STDINT_H_WITH_UINTMAX 1
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
13545 $as_echo_n "checking for intmax_t... " >&6; }
13546 if ${gt_cv_c_intmax_t+:} false
; then :
13547 $as_echo_n "(cached) " >&6
13549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13550 /* end confdefs.h. */
13552 #include <stddef.h>
13553 #include <stdlib.h>
13554 #if HAVE_STDINT_H_WITH_UINTMAX
13555 #include <stdint.h>
13557 #if HAVE_INTTYPES_H_WITH_UINTMAX
13558 #include <inttypes.h>
13564 intmax_t x = -1; return !x;
13569 if ac_fn_c_try_compile
"$LINENO"; then :
13570 gt_cv_c_intmax_t
=yes
13572 gt_cv_c_intmax_t
=no
13574 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
13577 $as_echo "$gt_cv_c_intmax_t" >&6; }
13578 if test $gt_cv_c_intmax_t = yes; then
13580 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
13584 test $ac_cv_type_long_long_int = yes \
13585 && ac_type
='long long' \
13588 cat >>confdefs.h
<<_ACEOF
13589 #define intmax_t $ac_type
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
13597 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
13598 if ${gl_cv_func_snprintf_retval_c99+:} false
; then :
13599 $as_echo_n "(cached) " >&6
13602 if test "$cross_compiling" = yes; then :
13605 # Guess yes on glibc systems.
13606 *-gnu*) gl_cv_func_snprintf_retval_c99
="guessing yes";;
13607 # Guess yes on FreeBSD >= 5.
13608 freebsd
[1-4]*) gl_cv_func_snprintf_retval_c99
="guessing no";;
13609 freebsd
* | kfreebsd
*) gl_cv_func_snprintf_retval_c99
="guessing yes";;
13610 # Guess yes on MacOS X >= 10.3.
13611 darwin
[1-6].
*) gl_cv_func_snprintf_retval_c99
="guessing no";;
13612 darwin
*) gl_cv_func_snprintf_retval_c99
="guessing yes";;
13613 # Guess yes on OpenBSD >= 3.9.
13614 openbsd
[1-2].
* | openbsd3.
[0-8] | openbsd3.
[0-8].
*)
13615 gl_cv_func_snprintf_retval_c99
="guessing no";;
13616 openbsd
*) gl_cv_func_snprintf_retval_c99
="guessing yes";;
13617 # Guess yes on Solaris >= 2.6.
13618 solaris2.
[0-5]*) gl_cv_func_snprintf_retval_c99
="guessing no";;
13619 solaris
*) gl_cv_func_snprintf_retval_c99
="guessing yes";;
13620 # Guess yes on AIX >= 4.
13621 aix
[1-3]*) gl_cv_func_snprintf_retval_c99
="guessing no";;
13622 aix
*) gl_cv_func_snprintf_retval_c99
="guessing yes";;
13623 # Guess yes on NetBSD >= 3.
13624 netbsd
[1-2]* | netbsdelf
[1-2]* | netbsdaout
[1-2]* | netbsdcoff
[1-2]*)
13625 gl_cv_func_snprintf_retval_c99
="guessing no";;
13626 netbsd
*) gl_cv_func_snprintf_retval_c99
="guessing yes";;
13627 # Guess yes on BeOS.
13628 beos
*) gl_cv_func_snprintf_retval_c99
="guessing yes";;
13629 # If we don't know, assume the worst.
13630 *) gl_cv_func_snprintf_retval_c99
="guessing no";;
13634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13635 /* end confdefs.h. */
13638 #include <string.h>
13639 static char buf[100];
13642 strcpy (buf, "ABCDEF");
13643 if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
13648 if ac_fn_c_try_run
"$LINENO"; then :
13649 gl_cv_func_snprintf_retval_c99
=yes
13651 gl_cv_func_snprintf_retval_c99
=no
13653 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13654 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
13660 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
13668 for ac_func
in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
13670 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13671 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13672 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13673 cat >>confdefs.h
<<_ACEOF
13674 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13680 ac_fn_c_check_decl
"$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
13682 if test "x$ac_cv_have_decl__snprintf" = xyes
; then :
13688 cat >>confdefs.h
<<_ACEOF
13689 #define HAVE_DECL__SNPRINTF $ac_have_decl
13693 case "$gl_cv_func_snprintf_retval_c99" in
13696 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
13701 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13702 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
13708 cat >>confdefs.h
<<_ACEOF
13709 #define HAVE_DECL_VSNPRINTF $ac_have_decl
13718 ac_fn_c_check_decl
"$LINENO" "iswblank" "ac_cv_have_decl_iswblank" "$ac_includes_default"
13719 if test "x$ac_cv_have_decl_iswblank" = xyes
; then :
13725 cat >>confdefs.h
<<_ACEOF
13726 #define HAVE_DECL_ISWBLANK $ac_have_decl
13731 GL_COND_LIBTOOL_TRUE
=
13732 GL_COND_LIBTOOL_FALSE
='#'
13734 GL_COND_LIBTOOL_TRUE
='#'
13735 GL_COND_LIBTOOL_FALSE
=
13738 gl_cond_libtool
=false
13751 gl_source_base
='grub-core/gnulib'
13752 # Code from module alloca:
13753 # Code from module alloca-opt:
13759 if test $ac_cv_func_alloca_works = no
; then
13763 # Define an additional variable used in the Makefile substitution.
13764 if test $ac_cv_working_alloca_h = yes; then
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
13766 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
13767 if ${gl_cv_rpl_alloca+:} false
; then :
13768 $as_echo_n "(cached) " >&6
13771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13772 /* end confdefs.h. */
13774 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
13779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13780 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
13781 gl_cv_rpl_alloca
=yes
13783 gl_cv_rpl_alloca
=no
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
13790 $as_echo "$gl_cv_rpl_alloca" >&6; }
13791 if test $gl_cv_rpl_alloca = yes; then
13793 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13804 # Code from module arg-nonnull:
13805 # Code from module argp:
13814 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
13818 GNULIB_UNISTD_H_GETOPT
=1
13827 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
13837 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
13844 ac_fn_c_check_decl
"$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
13846 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
; then :
13848 $as_echo "#define HAVE_DECL_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
13852 $as_echo "#define GNULIB_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
13856 ac_fn_c_check_decl
"$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
13858 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
; then :
13860 $as_echo "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
13864 $as_echo "#define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
13869 # Check if program_invocation_name and program_invocation_short_name
13870 # are defined elsewhere. It is improbable that only one of them will
13871 # be defined and other not, I prefer to stay on the safe side and to
13872 # test each one separately.
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_name is defined" >&5
13874 $as_echo_n "checking whether program_invocation_name is defined... " >&6; }
13875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13876 /* end confdefs.h. */
13881 program_invocation_name = "test";
13886 if ac_fn_c_try_link
"$LINENO"; then :
13888 $as_echo "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13891 $as_echo "yes" >&6; }
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13894 $as_echo "no" >&6; }
13896 rm -f core conftest.err conftest.
$ac_objext \
13897 conftest
$ac_exeext conftest.
$ac_ext
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_short_name is defined" >&5
13900 $as_echo_n "checking whether program_invocation_short_name is defined... " >&6; }
13901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13902 /* end confdefs.h. */
13907 program_invocation_short_name = "test";
13912 if ac_fn_c_try_link
"$LINENO"; then :
13914 $as_echo "#define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13917 $as_echo "yes" >&6; }
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13920 $as_echo "no" >&6; }
13922 rm -f core conftest.err conftest.
$ac_objext \
13923 conftest
$ac_exeext conftest.
$ac_ext
13943 XGETTEXT_EXTRA_OPTIONS
="$XGETTEXT_EXTRA_OPTIONS --flag=argp_error:2:c-format"
13947 XGETTEXT_EXTRA_OPTIONS
="$XGETTEXT_EXTRA_OPTIONS --flag=argp_failure:4:c-format"
13949 # Code from module btowc:
13956 if test $ac_cv_func_btowc = no
; then
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
13964 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
13965 if ${gl_cv_func_btowc_nul+:} false
; then :
13966 $as_echo_n "(cached) " >&6
13969 if test "$cross_compiling" = yes; then :
13972 # Guess no on Cygwin.
13973 cygwin
*) gl_cv_func_btowc_nul
="guessing no" ;;
13974 # Guess yes otherwise.
13975 *) gl_cv_func_btowc_nul
="guessing yes" ;;
13979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13980 /* end confdefs.h. */
13983 #include <string.h>
13987 if (btowc ('\0') != 0)
13992 if ac_fn_c_try_run
"$LINENO"; then :
13993 gl_cv_func_btowc_nul
=yes
13995 gl_cv_func_btowc_nul
=no
13997 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13998 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
14004 $as_echo "$gl_cv_func_btowc_nul" >&6; }
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
14007 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
14008 if ${gl_cv_func_btowc_eof+:} false
; then :
14009 $as_echo_n "(cached) " >&6
14013 # Guess no on IRIX.
14014 irix
*) gl_cv_func_btowc_eof
="guessing no" ;;
14015 # Guess yes otherwise.
14016 *) gl_cv_func_btowc_eof
="guessing yes" ;;
14018 if test $LOCALE_FR != none
; then
14019 if test "$cross_compiling" = yes; then :
14022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14023 /* end confdefs.h. */
14025 #include <locale.h>
14027 #include <string.h>
14031 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
14033 if (btowc (EOF) != WEOF)
14039 if ac_fn_c_try_run
"$LINENO"; then :
14040 gl_cv_func_btowc_eof
=yes
14042 gl_cv_func_btowc_eof
=no
14044 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14045 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
14052 $as_echo "$gl_cv_func_btowc_eof" >&6; }
14054 case "$gl_cv_func_btowc_nul" in
14056 *) REPLACE_BTOWC
=1 ;;
14058 case "$gl_cv_func_btowc_eof" in
14060 *) REPLACE_BTOWC
=1 ;;
14063 if test $HAVE_BTOWC = 0 ||
test $REPLACE_BTOWC = 1; then
14075 gl_LIBOBJS
="$gl_LIBOBJS btowc.$ac_objext"
14089 $as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
14093 # Code from module c++defs:
14094 # Code from module configmake:
14095 # Code from module dirname-lgpl:
14105 gl_LIBOBJS
="$gl_LIBOBJS basename-lgpl.$ac_objext"
14115 gl_LIBOBJS
="$gl_LIBOBJS dirname-lgpl.$ac_objext"
14125 gl_LIBOBJS
="$gl_LIBOBJS stripslash.$ac_objext"
14132 # Code from module double-slash-root:
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
14136 $as_echo_n "checking whether // is distinct from /... " >&6; }
14137 if ${gl_cv_double_slash_root+:} false
; then :
14138 $as_echo_n "(cached) " >&6
14140 if test x
"$cross_compiling" = xyes
; then
14141 # When cross-compiling, there is no way to tell whether // is special
14142 # short of a list of hosts. However, the only known hosts to date
14143 # that have a distinct // are Apollo DomainOS (too old to port to),
14144 # Cygwin, and z/OS. If anyone knows of another system for which // has
14145 # special semantics and is distinct from /, please report it to
14146 # <bug-gnulib@gnu.org>.
14148 *-cygwin | i370-ibm-openedition
)
14149 gl_cv_double_slash_root
=yes ;;
14151 # Be optimistic and assume that / and // are the same when we
14153 gl_cv_double_slash_root
='unknown, assuming no' ;;
14156 set x
`ls -di / // 2>/dev/null`
14157 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
14158 gl_cv_double_slash_root
=no
14160 gl_cv_double_slash_root
=yes
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
14165 $as_echo "$gl_cv_double_slash_root" >&6; }
14166 if test "$gl_cv_double_slash_root" = yes; then
14168 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
14172 # Code from module errno:
14174 # Code from module error:
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
14190 $as_echo_n "checking for error_at_line... " >&6; }
14191 if ${ac_cv_lib_error_at_line+:} false
; then :
14192 $as_echo_n "(cached) " >&6
14194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14195 /* end confdefs.h. */
14200 error_at_line (0, 0, "", 0, "an error occurred");
14205 if ac_fn_c_try_link
"$LINENO"; then :
14206 ac_cv_lib_error_at_line
=yes
14208 ac_cv_lib_error_at_line
=no
14210 rm -f core conftest.err conftest.
$ac_objext \
14211 conftest
$ac_exeext conftest.
$ac_ext
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
14214 $as_echo "$ac_cv_lib_error_at_line" >&6; }
14215 if test $ac_cv_lib_error_at_line = no
; then
14224 gl_LIBOBJS
="$gl_LIBOBJS error.$ac_objext"
14236 XGETTEXT_EXTRA_OPTIONS
="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
14240 XGETTEXT_EXTRA_OPTIONS
="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
14242 # Code from module extensions:
14243 # Code from module float:
14249 beos
* | openbsd
* | mirbsd
*)
14257 if test $gl_cv_have_include_next = yes; then
14258 gl_cv_next_float_h
='<'float.h
'>'
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
14261 $as_echo_n "checking absolute name of <float.h>... " >&6; }
14262 if ${gl_cv_next_float_h+:} false
; then :
14263 $as_echo_n "(cached) " >&6
14266 if test $ac_cv_header_float_h = yes; then
14267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14268 /* end confdefs.h. */
14273 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14274 *) gl_absname_cpp
="$ac_cpp" ;;
14276 gl_cv_next_float_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14277 sed -n '\#/float.h#{
14278 s#.*"\(.*/float.h\)".*#\1#
14284 gl_cv_next_float_h
='<'float.h
'>'
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
14289 $as_echo "$gl_cv_next_float_h" >&6; }
14291 NEXT_FLOAT_H
=$gl_cv_next_float_h
14293 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14294 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14295 gl_next_as_first_directive
='<'float.h
'>'
14297 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14298 gl_next_as_first_directive
=$gl_cv_next_float_h
14300 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
=$gl_next_as_first_directive
14308 # Code from module fnmatch:
14315 gl_fnmatch_required_lowercase
=`echo $gl_fnmatch_required | tr 'A-Z' 'a-z'`
14316 gl_fnmatch_cache_var
="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
14318 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
14319 if eval \
${$gl_fnmatch_cache_var+:} false
; then :
14320 $as_echo_n "(cached) " >&6
14322 if test $gl_fnmatch_required = GNU
; then
14323 gl_fnmatch_gnu_start
=
14324 gl_fnmatch_gnu_end
=
14326 gl_fnmatch_gnu_start
='#if 0'
14327 gl_fnmatch_gnu_end
='#endif'
14329 if test "$cross_compiling" = yes; then :
14330 eval "$gl_fnmatch_cache_var=\"guessing no\""
14332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14333 /* end confdefs.h. */
14334 #include <fnmatch.h>
14336 y (char const *pattern, char const *string, int flags)
14338 return fnmatch (pattern, string, flags) == 0;
14341 n (char const *pattern, char const *string, int flags)
14343 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
14349 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
14350 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
14351 static char const A_1[] = { 'A' - 1, 0 };
14352 static char const A01[] = { 'A' + 1, 0 };
14353 static char const a_1[] = { 'a' - 1, 0 };
14354 static char const a01[] = { 'a' + 1, 0 };
14355 static char const bs_1[] = { '\\\\' - 1, 0 };
14356 static char const bs01[] = { '\\\\' + 1, 0 };
14359 && y ("a*", "abc", 0)
14360 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
14361 && y ("a\\\\bc", "abc", 0)
14362 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
14363 && y ("*x", ".x", 0)
14364 && n ("*x", ".x", FNM_PERIOD)
14365 && y (Apat, "\\\\", 0) && y (Apat, "A", 0)
14366 && y (apat, "\\\\", 0) && y (apat, "a", 0)
14367 && n (Apat, A_1, 0) == ('A' < '\\\\')
14368 && n (apat, a_1, 0) == ('a' < '\\\\')
14369 && y (Apat, A01, 0) == ('A' < '\\\\')
14370 && y (apat, a01, 0) == ('a' < '\\\\')
14371 && y (Apat, bs_1, 0) == ('A' < '\\\\')
14372 && y (apat, bs_1, 0) == ('a' < '\\\\')
14373 && n (Apat, bs01, 0) == ('A' < '\\\\')
14374 && n (apat, bs01, 0) == ('a' < '\\\\')
14375 $gl_fnmatch_gnu_start
14376 && y ("xxXX", "xXxX", FNM_CASEFOLD)
14377 && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
14378 && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
14379 && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
14380 && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
14381 && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)
14382 $gl_fnmatch_gnu_end
14389 if ac_fn_c_try_run
"$LINENO"; then :
14390 eval "$gl_fnmatch_cache_var=yes"
14392 eval "$gl_fnmatch_cache_var=no"
14394 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14395 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14400 eval ac_res
=\$
$gl_fnmatch_cache_var
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14402 $as_echo "$ac_res" >&6; }
14403 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
14404 if test "$gl_fnmatch_result" = yes; then
14405 rm -f "$gl_source_base/fnmatch.h"
14407 FNMATCH_H
=fnmatch.h
14416 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
14419 cat >>confdefs.h
<<_ACEOF
14420 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
14424 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
14426 if test "x$ac_cv_have_decl_isblank" = xyes
; then :
14432 cat >>confdefs.h
<<_ACEOF
14433 #define HAVE_DECL_ISBLANK $ac_have_decl
14441 # Code from module getdelim:
14450 if test $ac_cv_func_getdelim = yes; then
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
14452 $as_echo_n "checking for working getdelim function... " >&6; }
14453 if ${gl_cv_func_working_getdelim+:} false
; then :
14454 $as_echo_n "(cached) " >&6
14456 echo fooNbarN |
tr -d '\012' |
tr N
'\012' > conftest.data
14457 if test "$cross_compiling" = yes; then :
14458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14459 /* end confdefs.h. */
14461 #include <features.h>
14462 #ifdef __GNU_LIBRARY__
14463 #if (__GLIBC__ >= 2)
14469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14470 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then :
14471 gl_cv_func_working_getdelim
=yes
14473 gl_cv_func_working_getdelim
=no
14479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14480 /* end confdefs.h. */
14482 # include <stdio.h>
14483 # include <stdlib.h>
14484 # include <string.h>
14487 FILE *in = fopen ("./conftest.data", "r");
14491 /* Test result for a NULL buffer and a zero size.
14492 Based on a test program from Karl Heuer. */
14495 int len = getdelim (&line, &siz, '\n', in);
14496 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
14500 /* Test result for a NULL buffer and a non-zero size.
14501 This crashes on FreeBSD 8.0. */
14503 size_t siz = (size_t)(~0) / 4;
14504 if (getdelim (&line, &siz, '\n', in) == -1)
14511 if ac_fn_c_try_run
"$LINENO"; then :
14512 gl_cv_func_working_getdelim
=yes
14514 gl_cv_func_working_getdelim
=no
14516 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14517 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
14522 $as_echo "$gl_cv_func_working_getdelim" >&6; }
14524 gl_cv_func_working_getdelim
=no
14527 if test $ac_cv_have_decl_getdelim = no
; then
14528 HAVE_DECL_GETDELIM
=0
14531 if test $gl_cv_func_working_getdelim = no
; then
14532 if test $ac_cv_func_getdelim = yes; then
14543 gl_LIBOBJS
="$gl_LIBOBJS getdelim.$ac_objext"
14546 for ac_func
in flockfile funlockfile
14548 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14549 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14550 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14551 cat >>confdefs.h
<<_ACEOF
14552 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14558 ac_fn_c_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
14559 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
; then :
14565 cat >>confdefs.h
<<_ACEOF
14566 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
14579 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
14583 # Code from module getline:
14591 gl_getline_needs_run_time_check
=no
14592 ac_fn_c_check_func
"$LINENO" "getline" "ac_cv_func_getline"
14593 if test "x$ac_cv_func_getline" = xyes
; then :
14594 gl_getline_needs_run_time_check
=yes
14596 am_cv_func_working_getline
=no
14599 if test $gl_getline_needs_run_time_check = yes; then
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
14601 $as_echo_n "checking for working getline function... " >&6; }
14602 if ${am_cv_func_working_getline+:} false
; then :
14603 $as_echo_n "(cached) " >&6
14605 echo fooNbarN |
tr -d '\012' |
tr N
'\012' > conftest.data
14606 if test "$cross_compiling" = yes; then :
14607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14608 /* end confdefs.h. */
14610 #include <features.h>
14611 #ifdef __GNU_LIBRARY__
14612 #if (__GLIBC__ >= 2)
14618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14619 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then :
14620 am_cv_func_working_getline
=yes
14622 am_cv_func_working_getline
=no
14628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14629 /* end confdefs.h. */
14631 # include <stdio.h>
14632 # include <stdlib.h>
14633 # include <string.h>
14636 FILE *in = fopen ("./conftest.data", "r");
14640 /* Test result for a NULL buffer and a zero size.
14641 Based on a test program from Karl Heuer. */
14644 int len = getline (&line, &siz, in);
14645 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
14649 /* Test result for a NULL buffer and a non-zero size.
14650 This crashes on FreeBSD 8.0. */
14652 size_t siz = (size_t)(~0) / 4;
14653 if (getline (&line, &siz, in) == -1)
14660 if ac_fn_c_try_run
"$LINENO"; then :
14661 am_cv_func_working_getline
=yes
14663 am_cv_func_working_getline
=no
14665 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14666 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
14671 $as_echo "$am_cv_func_working_getline" >&6; }
14674 if test $ac_cv_have_decl_getline = no
; then
14675 HAVE_DECL_GETLINE
=0
14678 if test $am_cv_func_working_getline = no
; then
14688 gl_LIBOBJS
="$gl_LIBOBJS getline.$ac_objext"
14700 if test $ac_cv_func_getdelim = yes; then
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
14702 $as_echo_n "checking for working getdelim function... " >&6; }
14703 if ${gl_cv_func_working_getdelim+:} false
; then :
14704 $as_echo_n "(cached) " >&6
14706 echo fooNbarN |
tr -d '\012' |
tr N
'\012' > conftest.data
14707 if test "$cross_compiling" = yes; then :
14708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14709 /* end confdefs.h. */
14711 #include <features.h>
14712 #ifdef __GNU_LIBRARY__
14713 #if (__GLIBC__ >= 2)
14719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14720 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then :
14721 gl_cv_func_working_getdelim
=yes
14723 gl_cv_func_working_getdelim
=no
14729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14730 /* end confdefs.h. */
14732 # include <stdio.h>
14733 # include <stdlib.h>
14734 # include <string.h>
14737 FILE *in = fopen ("./conftest.data", "r");
14741 /* Test result for a NULL buffer and a zero size.
14742 Based on a test program from Karl Heuer. */
14745 int len = getdelim (&line, &siz, '\n', in);
14746 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
14750 /* Test result for a NULL buffer and a non-zero size.
14751 This crashes on FreeBSD 8.0. */
14753 size_t siz = (size_t)(~0) / 4;
14754 if (getdelim (&line, &siz, '\n', in) == -1)
14761 if ac_fn_c_try_run
"$LINENO"; then :
14762 gl_cv_func_working_getdelim
=yes
14764 gl_cv_func_working_getdelim
=no
14766 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14767 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
14772 $as_echo "$gl_cv_func_working_getdelim" >&6; }
14774 gl_cv_func_working_getdelim
=no
14777 if test $ac_cv_have_decl_getdelim = no
; then
14778 HAVE_DECL_GETDELIM
=0
14781 if test $gl_cv_func_working_getdelim = no
; then
14782 if test $ac_cv_func_getdelim = yes; then
14793 gl_LIBOBJS
="$gl_LIBOBJS getdelim.$ac_objext"
14796 for ac_func
in flockfile funlockfile
14798 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14799 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14800 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14801 cat >>confdefs.h
<<_ACEOF
14802 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14808 ac_fn_c_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
14809 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
; then :
14815 cat >>confdefs.h
<<_ACEOF
14816 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
14832 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
14836 # Code from module getopt-gnu:
14844 $as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
14847 # Code from module getopt-posix:
14853 if test -n "$gl_replace_getopt"; then :
14859 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14863 GNULIB_UNISTD_H_GETOPT
=1
14872 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
14882 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
14892 # Code from module gettext:
14894 # Code from module gettext-h:
14897 # Code from module havelib:
14898 # Code from module include_next:
14899 # Code from module intprops:
14900 # Code from module langinfo:
14912 if test $gl_cv_have_include_next = yes; then
14913 gl_cv_next_langinfo_h
='<'langinfo.h
'>'
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
14916 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
14917 if ${gl_cv_next_langinfo_h+:} false
; then :
14918 $as_echo_n "(cached) " >&6
14921 if test $ac_cv_header_langinfo_h = yes; then
14922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14923 /* end confdefs.h. */
14924 #include <langinfo.h>
14928 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14929 *) gl_absname_cpp
="$ac_cpp" ;;
14931 gl_cv_next_langinfo_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14932 sed -n '\#/langinfo.h#{
14933 s#.*"\(.*/langinfo.h\)".*#\1#
14939 gl_cv_next_langinfo_h
='<'langinfo.h
'>'
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
14944 $as_echo "$gl_cv_next_langinfo_h" >&6; }
14946 NEXT_LANGINFO_H
=$gl_cv_next_langinfo_h
14948 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14949 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14950 gl_next_as_first_directive
='<'langinfo.h
'>'
14952 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14953 gl_next_as_first_directive
=$gl_cv_next_langinfo_h
14955 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
=$gl_next_as_first_directive
14960 HAVE_LANGINFO_CODESET
=0
14961 HAVE_LANGINFO_T_FMT_AMPM
=0
14962 HAVE_LANGINFO_ERA
=0
14963 HAVE_LANGINFO_YESEXPR
=0
14965 if test $ac_cv_header_langinfo_h = yes; then
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
14968 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
14969 if ${gl_cv_header_langinfo_codeset+:} false
; then :
14970 $as_echo_n "(cached) " >&6
14972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14973 /* end confdefs.h. */
14974 #include <langinfo.h>
14985 if ac_fn_c_try_compile
"$LINENO"; then :
14986 gl_cv_header_langinfo_codeset
=yes
14988 gl_cv_header_langinfo_codeset
=no
14990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
14994 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
14995 if test $gl_cv_header_langinfo_codeset = yes; then
14996 HAVE_LANGINFO_CODESET
=1
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5
14999 $as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; }
15000 if ${gl_cv_header_langinfo_t_fmt_ampm+:} false
; then :
15001 $as_echo_n "(cached) " >&6
15003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15004 /* end confdefs.h. */
15005 #include <langinfo.h>
15006 int a = T_FMT_AMPM;
15016 if ac_fn_c_try_compile
"$LINENO"; then :
15017 gl_cv_header_langinfo_t_fmt_ampm
=yes
15019 gl_cv_header_langinfo_t_fmt_ampm
=no
15021 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5
15025 $as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; }
15026 if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
15027 HAVE_LANGINFO_T_FMT_AMPM
=1
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
15030 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
15031 if ${gl_cv_header_langinfo_era+:} false
; then :
15032 $as_echo_n "(cached) " >&6
15034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15035 /* end confdefs.h. */
15036 #include <langinfo.h>
15047 if ac_fn_c_try_compile
"$LINENO"; then :
15048 gl_cv_header_langinfo_era
=yes
15050 gl_cv_header_langinfo_era
=no
15052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
15056 $as_echo "$gl_cv_header_langinfo_era" >&6; }
15057 if test $gl_cv_header_langinfo_era = yes; then
15058 HAVE_LANGINFO_ERA
=1
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5
15061 $as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; }
15062 if ${gl_cv_header_langinfo_yesexpr+:} false
; then :
15063 $as_echo_n "(cached) " >&6
15065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15066 /* end confdefs.h. */
15067 #include <langinfo.h>
15078 if ac_fn_c_try_compile
"$LINENO"; then :
15079 gl_cv_header_langinfo_yesexpr
=yes
15081 gl_cv_header_langinfo_yesexpr
=no
15083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5
15087 $as_echo "$gl_cv_header_langinfo_yesexpr" >&6; }
15088 if test $gl_cv_header_langinfo_yesexpr = yes; then
15089 HAVE_LANGINFO_YESEXPR
=1
15101 for gl_func
in nl_langinfo
; do
15102 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15104 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15105 if eval \
${$as_gl_Symbol+:} false
; then :
15106 $as_echo_n "(cached) " >&6
15108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15109 /* end confdefs.h. */
15110 #include <langinfo.h>
15121 if ac_fn_c_try_compile
"$LINENO"; then :
15122 eval "$as_gl_Symbol=yes"
15124 eval "$as_gl_Symbol=no"
15126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15128 eval ac_res
=\$
$as_gl_Symbol
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15130 $as_echo "$ac_res" >&6; }
15131 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
15132 cat >>confdefs.h
<<_ACEOF
15133 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15136 eval ac_cv_have_decl_
$gl_func=yes
15141 # Code from module localcharset:
15150 LOCALCHARSET_TESTS_ENVIRONMENT
="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
15152 # Code from module malloc-gnu:
15155 for ac_header
in stdlib.h
15157 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15158 if test "x$ac_cv_header_stdlib_h" = xyes
; then :
15159 cat >>confdefs.h
<<_ACEOF
15160 #define HAVE_STDLIB_H 1
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15168 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15169 if ${ac_cv_func_malloc_0_nonnull+:} false
; then :
15170 $as_echo_n "(cached) " >&6
15172 if test "$cross_compiling" = yes; then :
15173 ac_cv_func_malloc_0_nonnull
=no
15175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15176 /* end confdefs.h. */
15177 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15178 # include <stdlib.h>
15186 return ! malloc (0);
15191 if ac_fn_c_try_run
"$LINENO"; then :
15192 ac_cv_func_malloc_0_nonnull
=yes
15194 ac_cv_func_malloc_0_nonnull
=no
15196 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15197 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15202 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15203 if test $ac_cv_func_malloc_0_nonnull = yes; then :
15205 $as_echo "#define HAVE_MALLOC_GNU 1" >>confdefs.h
15208 $as_echo "#define HAVE_MALLOC_GNU 0" >>confdefs.h
15219 gl_LIBOBJS
="$gl_LIBOBJS malloc.$ac_objext"
15229 cat >>confdefs.h
<<_ACEOF
15230 #define GNULIB_MALLOC_GNU 1
15234 # Code from module malloc-posix:
15238 if test $gl_cv_func_malloc_posix = yes; then
15240 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
15252 gl_LIBOBJS
="$gl_LIBOBJS malloc.$ac_objext"
15261 GNULIB_MALLOC_POSIX
=1
15265 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
15269 # Code from module mbrtowc:
15280 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15285 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15286 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
15287 $as_echo_n "(cached) " >&6
15291 # Guess no on AIX and OSF/1.
15292 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
15293 # Guess yes otherwise.
15294 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
15296 if test $LOCALE_JA != none
; then
15297 if test "$cross_compiling" = yes; then :
15300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15301 /* end confdefs.h. */
15303 #include <locale.h>
15304 #include <string.h>
15308 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15310 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15314 memset (&state, '\0', sizeof (mbstate_t));
15315 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15316 if (mbsinit (&state))
15322 if ac_fn_c_try_run
"$LINENO"; then :
15323 gl_cv_func_mbrtowc_incomplete_state
=yes
15325 gl_cv_func_mbrtowc_incomplete_state
=no
15327 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15328 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15335 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15341 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15342 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
15343 $as_echo_n "(cached) " >&6
15347 # Guess no on Solaris 8.
15348 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
15349 # Guess yes otherwise.
15350 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
15352 if test $LOCALE_ZH_CN != none
; then
15353 if test "$cross_compiling" = yes; then :
15356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15357 /* end confdefs.h. */
15359 #include <locale.h>
15360 #include <stdlib.h>
15361 #include <string.h>
15365 /* This fails on Solaris 8:
15366 mbrtowc returns 2, and sets wc to 0x00F0.
15367 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15368 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15370 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15374 memset (&state, '\0', sizeof (mbstate_t));
15375 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15376 && mbtowc (&wc, input + 3, 6) == 4)
15382 if ac_fn_c_try_run
"$LINENO"; then :
15383 gl_cv_func_mbrtowc_sanitycheck
=yes
15385 gl_cv_func_mbrtowc_sanitycheck
=no
15387 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15388 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15395 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15397 REPLACE_MBSTATE_T
=0
15398 case "$gl_cv_func_mbrtowc_incomplete_state" in
15400 *) REPLACE_MBSTATE_T
=1 ;;
15402 case "$gl_cv_func_mbrtowc_sanitycheck" in
15404 *) REPLACE_MBSTATE_T
=1 ;;
15407 REPLACE_MBSTATE_T
=1
15409 if test $REPLACE_MBSTATE_T = 1; then
15417 if test $ac_cv_func_mbrtowc = no
; then
15420 if test $REPLACE_MBSTATE_T = 1; then
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
15427 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
15428 if ${gl_cv_func_mbrtowc_null_arg+:} false
; then :
15429 $as_echo_n "(cached) " >&6
15433 # Guess no on OSF/1.
15434 osf
*) gl_cv_func_mbrtowc_null_arg
="guessing no" ;;
15435 # Guess yes otherwise.
15436 *) gl_cv_func_mbrtowc_null_arg
="guessing yes" ;;
15438 if test $LOCALE_FR_UTF8 != none
; then
15439 if test "$cross_compiling" = yes; then :
15442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15443 /* end confdefs.h. */
15445 #include <locale.h>
15446 #include <string.h>
15450 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15456 memset (&state, '\0', sizeof (mbstate_t));
15457 wc = (wchar_t) 0xBADFACE;
15458 mbrtowc (&wc, NULL, 5, &state);
15459 /* Check that wc was not modified. */
15460 if (wc != (wchar_t) 0xBADFACE)
15466 if ac_fn_c_try_run
"$LINENO"; then :
15467 gl_cv_func_mbrtowc_null_arg
=yes
15469 gl_cv_func_mbrtowc_null_arg
=no
15471 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15472 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg" >&5
15479 $as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
15486 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
15487 if ${gl_cv_func_mbrtowc_retval+:} false
; then :
15488 $as_echo_n "(cached) " >&6
15492 # Guess no on HP-UX and Solaris.
15493 hpux
* | solaris
*) gl_cv_func_mbrtowc_retval
="guessing no" ;;
15494 # Guess yes otherwise.
15495 *) gl_cv_func_mbrtowc_retval
="guessing yes" ;;
15497 if test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none
; then
15498 if test "$cross_compiling" = yes; then :
15501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15502 /* end confdefs.h. */
15504 #include <locale.h>
15505 #include <string.h>
15509 /* This fails on Solaris. */
15510 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15512 char input[] = "B\303\274\303\237er"; /* "Büßer" */
15516 memset (&state, '\0', sizeof (mbstate_t));
15517 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15520 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
15524 /* This fails on HP-UX 11.11. */
15525 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15527 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15531 memset (&state, '\0', sizeof (mbstate_t));
15532 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15535 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
15542 if ac_fn_c_try_run
"$LINENO"; then :
15543 gl_cv_func_mbrtowc_retval
=yes
15545 gl_cv_func_mbrtowc_retval
=no
15547 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15548 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
15555 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
15561 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
15562 if ${gl_cv_func_mbrtowc_nul_retval+:} false
; then :
15563 $as_echo_n "(cached) " >&6
15567 # Guess no on Solaris 8 and 9.
15568 solaris2.
[89]) gl_cv_func_mbrtowc_nul_retval
="guessing no" ;;
15569 # Guess yes otherwise.
15570 *) gl_cv_func_mbrtowc_nul_retval
="guessing yes" ;;
15572 if test $LOCALE_ZH_CN != none
; then
15573 if test "$cross_compiling" = yes; then :
15576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15577 /* end confdefs.h. */
15579 #include <locale.h>
15580 #include <string.h>
15584 /* This fails on Solaris 8 and 9. */
15585 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15590 memset (&state, '\0', sizeof (mbstate_t));
15591 if (mbrtowc (&wc, "", 1, &state) != 0)
15597 if ac_fn_c_try_run
"$LINENO"; then :
15598 gl_cv_func_mbrtowc_nul_retval
=yes
15600 gl_cv_func_mbrtowc_nul_retval
=no
15602 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15603 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
15610 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
15612 case "$gl_cv_func_mbrtowc_null_arg" in
15615 $as_echo "#define MBRTOWC_NULL_ARG_BUG 1" >>confdefs.h
15620 case "$gl_cv_func_mbrtowc_retval" in
15623 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
15628 case "$gl_cv_func_mbrtowc_nul_retval" in
15631 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
15638 if test $HAVE_MBRTOWC = 0 ||
test $REPLACE_MBRTOWC = 1; then
15650 gl_LIBOBJS
="$gl_LIBOBJS mbrtowc.$ac_objext"
15664 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
15668 # Code from module mbsinit:
15679 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15684 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15685 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
15686 $as_echo_n "(cached) " >&6
15690 # Guess no on AIX and OSF/1.
15691 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
15692 # Guess yes otherwise.
15693 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
15695 if test $LOCALE_JA != none
; then
15696 if test "$cross_compiling" = yes; then :
15699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15700 /* end confdefs.h. */
15702 #include <locale.h>
15703 #include <string.h>
15707 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15709 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15713 memset (&state, '\0', sizeof (mbstate_t));
15714 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15715 if (mbsinit (&state))
15721 if ac_fn_c_try_run
"$LINENO"; then :
15722 gl_cv_func_mbrtowc_incomplete_state
=yes
15724 gl_cv_func_mbrtowc_incomplete_state
=no
15726 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15727 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15734 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15740 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15741 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
15742 $as_echo_n "(cached) " >&6
15746 # Guess no on Solaris 8.
15747 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
15748 # Guess yes otherwise.
15749 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
15751 if test $LOCALE_ZH_CN != none
; then
15752 if test "$cross_compiling" = yes; then :
15755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15756 /* end confdefs.h. */
15758 #include <locale.h>
15759 #include <stdlib.h>
15760 #include <string.h>
15764 /* This fails on Solaris 8:
15765 mbrtowc returns 2, and sets wc to 0x00F0.
15766 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15767 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15769 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15773 memset (&state, '\0', sizeof (mbstate_t));
15774 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15775 && mbtowc (&wc, input + 3, 6) == 4)
15781 if ac_fn_c_try_run
"$LINENO"; then :
15782 gl_cv_func_mbrtowc_sanitycheck
=yes
15784 gl_cv_func_mbrtowc_sanitycheck
=no
15786 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15787 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15794 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15796 REPLACE_MBSTATE_T
=0
15797 case "$gl_cv_func_mbrtowc_incomplete_state" in
15799 *) REPLACE_MBSTATE_T
=1 ;;
15801 case "$gl_cv_func_mbrtowc_sanitycheck" in
15803 *) REPLACE_MBSTATE_T
=1 ;;
15806 REPLACE_MBSTATE_T
=1
15808 if test $REPLACE_MBSTATE_T = 1; then
15816 if test $ac_cv_func_mbsinit = no
; then
15819 if test $REPLACE_MBSTATE_T = 1; then
15823 if test $HAVE_MBSINIT = 0 ||
test $REPLACE_MBSINIT = 1; then
15835 gl_LIBOBJS
="$gl_LIBOBJS mbsinit.$ac_objext"
15849 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
15853 # Code from module mbsrtowcs:
15864 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15869 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15870 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
15871 $as_echo_n "(cached) " >&6
15875 # Guess no on AIX and OSF/1.
15876 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
15877 # Guess yes otherwise.
15878 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
15880 if test $LOCALE_JA != none
; then
15881 if test "$cross_compiling" = yes; then :
15884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15885 /* end confdefs.h. */
15887 #include <locale.h>
15888 #include <string.h>
15892 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15894 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15898 memset (&state, '\0', sizeof (mbstate_t));
15899 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15900 if (mbsinit (&state))
15906 if ac_fn_c_try_run
"$LINENO"; then :
15907 gl_cv_func_mbrtowc_incomplete_state
=yes
15909 gl_cv_func_mbrtowc_incomplete_state
=no
15911 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15912 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15919 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15925 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15926 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
15927 $as_echo_n "(cached) " >&6
15931 # Guess no on Solaris 8.
15932 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
15933 # Guess yes otherwise.
15934 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
15936 if test $LOCALE_ZH_CN != none
; then
15937 if test "$cross_compiling" = yes; then :
15940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15941 /* end confdefs.h. */
15943 #include <locale.h>
15944 #include <stdlib.h>
15945 #include <string.h>
15949 /* This fails on Solaris 8:
15950 mbrtowc returns 2, and sets wc to 0x00F0.
15951 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15952 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15954 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15958 memset (&state, '\0', sizeof (mbstate_t));
15959 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15960 && mbtowc (&wc, input + 3, 6) == 4)
15966 if ac_fn_c_try_run
"$LINENO"; then :
15967 gl_cv_func_mbrtowc_sanitycheck
=yes
15969 gl_cv_func_mbrtowc_sanitycheck
=no
15971 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15972 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15979 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15981 REPLACE_MBSTATE_T
=0
15982 case "$gl_cv_func_mbrtowc_incomplete_state" in
15984 *) REPLACE_MBSTATE_T
=1 ;;
15986 case "$gl_cv_func_mbrtowc_sanitycheck" in
15988 *) REPLACE_MBSTATE_T
=1 ;;
15991 REPLACE_MBSTATE_T
=1
15993 if test $REPLACE_MBSTATE_T = 1; then
16001 if test $ac_cv_func_mbsrtowcs = no
; then
16004 if test $REPLACE_MBSTATE_T = 1; then
16005 REPLACE_MBSRTOWCS
=1
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
16013 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
16014 if ${gl_cv_func_mbsrtowcs_works+:} false
; then :
16015 $as_echo_n "(cached) " >&6
16019 # Guess no on HP-UX and Solaris.
16020 hpux
* | solaris
*) gl_cv_func_mbsrtowcs_works
="guessing no" ;;
16021 # Guess yes otherwise.
16022 *) gl_cv_func_mbsrtowcs_works
="guessing yes" ;;
16024 if test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none ||
test $LOCALE_ZH_CN != none
; then
16025 if test "$cross_compiling" = yes; then :
16028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16029 /* end confdefs.h. */
16031 #include <locale.h>
16032 #include <string.h>
16036 /* Test whether the function works when started with a conversion state
16037 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
16038 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
16040 const char input[] = "B\303\274\303\237er";
16043 memset (&state, '\0', sizeof (mbstate_t));
16044 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
16045 if (!mbsinit (&state))
16047 const char *src = input + 2;
16048 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
16052 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
16054 const char input[] = "<\306\374\313\334\270\354>";
16057 memset (&state, '\0', sizeof (mbstate_t));
16058 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
16059 if (!mbsinit (&state))
16061 const char *src = input + 4;
16062 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
16066 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
16068 const char input[] = "B\250\271\201\060\211\070er";
16071 memset (&state, '\0', sizeof (mbstate_t));
16072 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
16073 if (!mbsinit (&state))
16075 const char *src = input + 2;
16076 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
16083 if ac_fn_c_try_run
"$LINENO"; then :
16084 gl_cv_func_mbsrtowcs_works
=yes
16086 gl_cv_func_mbsrtowcs_works
=no
16088 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16089 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
16096 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
16098 case "$gl_cv_func_mbsrtowcs_works" in
16100 *) REPLACE_MBSRTOWCS
=1 ;;
16104 if test $HAVE_MBSRTOWCS = 0 ||
test $REPLACE_MBSRTOWCS = 1; then
16116 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs.$ac_objext"
16126 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
16140 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
16144 # Code from module memchr:
16153 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
16157 # Code from module mempcpy:
16172 for ac_func
in mempcpy
16174 ac_fn_c_check_func
"$LINENO" "mempcpy" "ac_cv_func_mempcpy"
16175 if test "x$ac_cv_func_mempcpy" = xyes
; then :
16176 cat >>confdefs.h
<<_ACEOF
16177 #define HAVE_MEMPCPY 1
16182 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
16188 if test $ac_cv_func_mempcpy = no
; then
16202 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
16206 # Code from module multiarch:
16208 # Code from module nl_langinfo:
16213 if test $ac_cv_func_nl_langinfo = yes; then
16214 if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1; then
16217 REPLACE_NL_LANGINFO
=1
16219 $as_echo "#define REPLACE_NL_LANGINFO 1" >>confdefs.h
16229 gl_LIBOBJS
="$gl_LIBOBJS nl_langinfo.$ac_objext"
16242 gl_LIBOBJS
="$gl_LIBOBJS nl_langinfo.$ac_objext"
16249 GNULIB_NL_LANGINFO
=1
16253 $as_echo "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h
16257 # Code from module progname:
16258 ac_fn_c_check_decl
"$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
16260 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
; then :
16266 cat >>confdefs.h
<<_ACEOF
16267 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
16270 ac_fn_c_check_decl
"$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
16272 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
; then :
16278 cat >>confdefs.h
<<_ACEOF
16279 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
16282 # Code from module rawmemchr:
16295 for ac_func
in rawmemchr
16297 ac_fn_c_check_func
"$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
16298 if test "x$ac_cv_func_rawmemchr" = xyes
; then :
16299 cat >>confdefs.h
<<_ACEOF
16300 #define HAVE_RAWMEMCHR 1
16305 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
16311 if test $ac_cv_func_rawmemchr = no
; then
16323 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
16327 # Code from module realloc-posix:
16331 if test $gl_cv_func_malloc_posix = yes; then
16333 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
16345 gl_LIBOBJS
="$gl_LIBOBJS realloc.$ac_objext"
16354 GNULIB_REALLOC_POSIX
=1
16358 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
16362 # Code from module regex:
16367 # Check whether --with-included-regex was given.
16368 if test "${with_included_regex+set}" = set; then :
16369 withval
=$with_included_regex;
16373 case $with_included_regex in #(
16374 yes|no
) ac_use_included_regex
=$with_included_regex
16377 # If the system regex support is good enough that it passes the
16378 # following run test, then default to *not* using the included regex.c.
16379 # If cross compiling, assume the test would fail and use the included
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5
16382 $as_echo_n "checking for working re_compile_pattern... " >&6; }
16383 if ${gl_cv_func_re_compile_pattern_working+:} false
; then :
16384 $as_echo_n "(cached) " >&6
16386 if test "$cross_compiling" = yes; then :
16387 gl_cv_func_re_compile_pattern_working
=no
16389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16390 /* end confdefs.h. */
16391 $ac_includes_default
16393 #include <locale.h>
16395 #include <limits.h>
16401 static struct re_pattern_buffer regex;
16402 unsigned char folded_chars[UCHAR_MAX + 1];
16405 struct re_registers regs;
16408 /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
16409 This test needs valgrind to catch the bug on Debian
16410 GNU/Linux 3.1 x86, but it might catch the bug better
16411 on other platforms and it shouldn't hurt to try the
16413 if (setlocale (LC_ALL, "en_US.UTF-8"))
16415 static char const pat[] = "insert into";
16416 static char const data[] =
16417 "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
16418 re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
16420 memset (®ex, 0, sizeof regex);
16421 s = re_compile_pattern (pat, sizeof pat - 1, ®ex);
16424 if (re_search (®ex, data, sizeof data - 1,
16425 0, sizeof data - 1, ®s)
16428 if (! setlocale (LC_ALL, "C"))
16433 /* This test is from glibc bug 3957, reported by Andrew Mackey. */
16434 re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
16435 memset (®ex, 0, sizeof regex);
16436 s = re_compile_pattern ("a[^x]b", 6, ®ex);
16440 /* This should fail, but succeeds for glibc-2.5. */
16441 if (re_search (®ex, "a\nb", 3, 0, 3, ®s) != -1)
16444 /* This regular expression is from Spencer ere test number 75
16446 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
16447 memset (®ex, 0, sizeof regex);
16448 for (i = 0; i <= UCHAR_MAX; i++)
16449 folded_chars[i] = i;
16450 regex.translate = folded_chars;
16451 s = re_compile_pattern ("a[[:]:]]b\n", 11, ®ex);
16452 /* This should fail with _Invalid character class name_ error. */
16456 /* Ensure that [b-a] is diagnosed as invalid, when
16457 using RE_NO_EMPTY_RANGES. */
16458 re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
16459 memset (®ex, 0, sizeof regex);
16460 s = re_compile_pattern ("a[b-a]", 6, ®ex);
16464 /* This should succeed, but does not for glibc-2.1.3. */
16465 memset (®ex, 0, sizeof regex);
16466 s = re_compile_pattern ("{1", 2, ®ex);
16471 /* The following example is derived from a problem report
16472 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
16473 memset (®ex, 0, sizeof regex);
16474 s = re_compile_pattern ("[an\371]*n", 7, ®ex);
16478 /* This should match, but does not for glibc-2.2.1. */
16479 if (re_match (®ex, "an", 2, 0, ®s) != 2)
16482 memset (®ex, 0, sizeof regex);
16483 s = re_compile_pattern ("x", 1, ®ex);
16487 /* glibc-2.2.93 does not work with a negative RANGE argument. */
16488 if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
16491 /* The version of regex.c in older versions of gnulib
16492 ignored RE_ICASE. Detect that problem too. */
16493 re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
16494 memset (®ex, 0, sizeof regex);
16495 s = re_compile_pattern ("x", 1, ®ex);
16499 if (re_search (®ex, "WXY", 3, 0, 3, ®s) < 0)
16502 /* Catch a bug reported by Vin Shelton in
16503 http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
16505 re_set_syntax (RE_SYNTAX_POSIX_BASIC
16506 & ~RE_CONTEXT_INVALID_DUP
16507 & ~RE_NO_EMPTY_RANGES);
16508 memset (®ex, 0, sizeof regex);
16509 s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, ®ex);
16513 /* REG_STARTEND was added to glibc on 2004-01-15.
16514 Reject older versions. */
16515 if (! REG_STARTEND)
16519 /* It would be nice to reject hosts whose regoff_t values are too
16520 narrow (including glibc on hosts with 64-bit ptrdiff_t and
16521 32-bit int), but we should wait until glibc implements this
16522 feature. Otherwise, support for equivalence classes and
16523 multibyte collation symbols would always be broken except
16524 when compiling --without-included-regex. */
16525 if (sizeof (regoff_t) < sizeof (ptrdiff_t)
16526 || sizeof (regoff_t) < sizeof (ssize_t))
16535 if ac_fn_c_try_run
"$LINENO"; then :
16536 gl_cv_func_re_compile_pattern_working
=yes
16538 gl_cv_func_re_compile_pattern_working
=no
16540 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16541 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5
16546 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
16547 case $gl_cv_func_re_compile_pattern_working in #(
16548 yes) ac_use_included_regex
=no
;; #(
16549 no
) ac_use_included_regex
=yes;;
16552 *) as_fn_error $?
"Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5
16556 if test $ac_use_included_regex = yes; then
16558 $as_echo "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h
16561 $as_echo "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h
16564 $as_echo "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h
16567 $as_echo "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h
16570 $as_echo "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h
16573 $as_echo "#define re_search rpl_re_search" >>confdefs.h
16576 $as_echo "#define re_search_2 rpl_re_search_2" >>confdefs.h
16579 $as_echo "#define re_match rpl_re_match" >>confdefs.h
16582 $as_echo "#define re_match_2 rpl_re_match_2" >>confdefs.h
16585 $as_echo "#define re_set_registers rpl_re_set_registers" >>confdefs.h
16588 $as_echo "#define re_comp rpl_re_comp" >>confdefs.h
16591 $as_echo "#define re_exec rpl_re_exec" >>confdefs.h
16594 $as_echo "#define regcomp rpl_regcomp" >>confdefs.h
16597 $as_echo "#define regexec rpl_regexec" >>confdefs.h
16600 $as_echo "#define regerror rpl_regerror" >>confdefs.h
16603 $as_echo "#define regfree rpl_regfree" >>confdefs.h
16613 gl_LIBOBJS
="$gl_LIBOBJS regex.$ac_objext"
16620 for ac_header
in libintl.h
16622 ac_fn_c_check_header_mongrel
"$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
16623 if test "x$ac_cv_header_libintl_h" = xyes
; then :
16624 cat >>confdefs.h
<<_ACEOF
16625 #define HAVE_LIBINTL_H 1
16633 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
16635 if test "x$ac_cv_have_decl_isblank" = xyes
; then :
16641 cat >>confdefs.h
<<_ACEOF
16642 #define HAVE_DECL_ISBLANK $ac_have_decl
16648 # Code from module size_max:
16650 for ac_header
in stdint.h
16652 ac_fn_c_check_header_mongrel
"$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
16653 if test "x$ac_cv_header_stdint_h" = xyes
; then :
16654 cat >>confdefs.h
<<_ACEOF
16655 #define HAVE_STDINT_H 1
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
16663 $as_echo_n "checking for SIZE_MAX... " >&6; }
16664 if ${gl_cv_size_max+:} false
; then :
16665 $as_echo_n "(cached) " >&6
16669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16670 /* end confdefs.h. */
16672 #include <limits.h>
16674 #include <stdint.h>
16681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16682 $EGREP "Found it" >/dev
/null
2>&1; then :
16687 if test -z "$gl_cv_size_max"; then
16688 if ac_fn_c_compute_int
"$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
16689 #include <limits.h>"; then :
16692 size_t_bits_minus_1
=
16695 if ac_fn_c_compute_int
"$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
16701 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
16702 if test $fits_in_uint = 1; then
16703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16704 /* end confdefs.h. */
16705 #include <stddef.h>
16707 extern unsigned long foo;
16717 if ac_fn_c_try_compile
"$LINENO"; then :
16720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16722 if test $fits_in_uint = 1; then
16723 gl_cv_size_max
="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
16725 gl_cv_size_max
="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
16728 gl_cv_size_max
='((size_t)~(size_t)0)'
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
16734 $as_echo "$gl_cv_size_max" >&6; }
16735 if test "$gl_cv_size_max" != yes; then
16737 cat >>confdefs.h
<<_ACEOF
16738 #define SIZE_MAX $gl_cv_size_max
16744 # Code from module sleep:
16747 ac_fn_c_check_decl
"$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h>
16749 if test "x$ac_cv_have_decl_sleep" = xyes
; then :
16755 cat >>confdefs.h
<<_ACEOF
16756 #define HAVE_DECL_SLEEP $ac_have_decl
16760 if test $ac_cv_have_decl_sleep != yes; then
16770 gl_LIBOBJS
="$gl_LIBOBJS sleep.$ac_objext"
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sleep" >&5
16774 $as_echo_n "checking for working sleep... " >&6; }
16775 if ${gl_cv_func_sleep_works+:} false
; then :
16776 $as_echo_n "(cached) " >&6
16778 if test "$cross_compiling" = yes; then :
16779 gl_cv_func_sleep_works
="guessing no"
16781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16782 /* end confdefs.h. */
16785 #include <unistd.h>
16786 #include <signal.h>
16788 handle_alarm (int sig)
16790 if (sig != SIGALRM)
16798 /* Failure to compile this test due to missing alarm is okay,
16799 since all such platforms (mingw) also lack sleep. */
16800 unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days. */
16801 unsigned int remaining;
16802 signal (SIGALRM, handle_alarm);
16804 remaining = sleep (pentecost);
16805 return !(pentecost - 10 < remaining && remaining <= pentecost);
16810 if ac_fn_c_try_run
"$LINENO"; then :
16811 gl_cv_func_sleep_works
=yes
16813 gl_cv_func_sleep_works
=no
16815 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16816 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sleep_works" >&5
16821 $as_echo "$gl_cv_func_sleep_works" >&6; }
16822 if test "$gl_cv_func_sleep_works" != yes; then
16832 gl_LIBOBJS
="$gl_LIBOBJS sleep.$ac_objext"
16844 $as_echo "#define GNULIB_TEST_SLEEP 1" >>confdefs.h
16848 # Code from module ssize_t:
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
16851 $as_echo_n "checking for ssize_t... " >&6; }
16852 if ${gt_cv_ssize_t+:} false
; then :
16853 $as_echo_n "(cached) " >&6
16855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16856 /* end confdefs.h. */
16857 #include <sys/types.h>
16861 int x = sizeof (ssize_t *) + sizeof (ssize_t);
16867 if ac_fn_c_try_compile
"$LINENO"; then :
16872 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
16875 $as_echo "$gt_cv_ssize_t" >&6; }
16876 if test $gt_cv_ssize_t = no
; then
16878 $as_echo "#define ssize_t int" >>confdefs.h
16882 # Code from module stdbool:
16886 # Define two additional variables used in the Makefile substitution.
16888 if test "$ac_cv_header_stdbool_h" = yes; then
16891 STDBOOL_H
='stdbool.h'
16895 if test "$ac_cv_type__Bool" = yes; then
16902 # Code from module stddef:
16906 if test $gt_cv_c_wchar_t = no
; then
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16911 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
16912 if ${gl_cv_decl_null_works+:} false
; then :
16913 $as_echo_n "(cached) " >&6
16915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16916 /* end confdefs.h. */
16917 #include <stddef.h>
16918 int test[2 * (sizeof NULL == sizeof (void *)) -1];
16928 if ac_fn_c_try_compile
"$LINENO"; then :
16929 gl_cv_decl_null_works
=yes
16931 gl_cv_decl_null_works
=no
16933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16936 $as_echo "$gl_cv_decl_null_works" >&6; }
16937 if test $gl_cv_decl_null_works = no
; then
16941 if test -n "$STDDEF_H"; then
16948 if test $gl_cv_have_include_next = yes; then
16949 gl_cv_next_stddef_h
='<'stddef.h
'>'
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16952 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
16953 if ${gl_cv_next_stddef_h+:} false
; then :
16954 $as_echo_n "(cached) " >&6
16957 if test $ac_cv_header_stddef_h = yes; then
16958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16959 /* end confdefs.h. */
16960 #include <stddef.h>
16964 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16965 *) gl_absname_cpp
="$ac_cpp" ;;
16967 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16968 sed -n '\#/stddef.h#{
16969 s#.*"\(.*/stddef.h\)".*#\1#
16975 gl_cv_next_stddef_h
='<'stddef.h
'>'
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16980 $as_echo "$gl_cv_next_stddef_h" >&6; }
16982 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
16984 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16985 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16986 gl_next_as_first_directive
='<'stddef.h
'>'
16988 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16989 gl_next_as_first_directive
=$gl_cv_next_stddef_h
16991 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
16997 # Code from module stdint:
17001 if test $ac_cv_type_long_long_int = yes; then
17002 HAVE_LONG_LONG_INT
=1
17004 HAVE_LONG_LONG_INT
=0
17008 if test $ac_cv_type_unsigned_long_long_int = yes; then
17009 HAVE_UNSIGNED_LONG_LONG_INT
=1
17011 HAVE_UNSIGNED_LONG_LONG_INT
=0
17015 if test $ac_cv_header_inttypes_h = yes; then
17022 if test $ac_cv_header_sys_types_h = yes; then
17035 if test $gl_cv_have_include_next = yes; then
17036 gl_cv_next_stdint_h
='<'stdint.h
'>'
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17039 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17040 if ${gl_cv_next_stdint_h+:} false
; then :
17041 $as_echo_n "(cached) " >&6
17044 if test $ac_cv_header_stdint_h = yes; then
17045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17046 /* end confdefs.h. */
17047 #include <stdint.h>
17051 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17052 *) gl_absname_cpp
="$ac_cpp" ;;
17054 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17055 sed -n '\#/stdint.h#{
17056 s#.*"\(.*/stdint.h\)".*#\1#
17062 gl_cv_next_stdint_h
='<'stdint.h
'>'
17066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17067 $as_echo "$gl_cv_next_stdint_h" >&6; }
17069 NEXT_STDINT_H
=$gl_cv_next_stdint_h
17071 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17072 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17073 gl_next_as_first_directive
='<'stdint.h
'>'
17075 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17076 gl_next_as_first_directive
=$gl_cv_next_stdint_h
17078 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
17082 if test $ac_cv_header_stdint_h = yes; then
17089 if test $ac_cv_header_stdint_h = yes; then
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17091 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17092 if ${gl_cv_header_working_stdint_h+:} false
; then :
17093 $as_echo_n "(cached) " >&6
17095 gl_cv_header_working_stdint_h
=no
17096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17097 /* end confdefs.h. */
17100 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17101 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17102 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17103 #include <stdint.h>
17104 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17105 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17106 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17110 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17111 included before <wchar.h>. */
17112 #include <stddef.h>
17113 #include <signal.h>
17115 # include <stdio.h>
17117 # include <wchar.h>
17122 int8_t a1 = INT8_MAX;
17123 int8_t a1min = INT8_MIN;
17126 int16_t a2 = INT16_MAX;
17127 int16_t a2min = INT16_MIN;
17130 int32_t a3 = INT32_MAX;
17131 int32_t a3min = INT32_MIN;
17134 int64_t a4 = INT64_MAX;
17135 int64_t a4min = INT64_MIN;
17138 uint8_t b1 = UINT8_MAX;
17140 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17143 uint16_t b2 = UINT16_MAX;
17146 uint32_t b3 = UINT32_MAX;
17149 uint64_t b4 = UINT64_MAX;
17151 int_least8_t c1 = INT8_C (0x7f);
17152 int_least8_t c1max = INT_LEAST8_MAX;
17153 int_least8_t c1min = INT_LEAST8_MIN;
17154 int_least16_t c2 = INT16_C (0x7fff);
17155 int_least16_t c2max = INT_LEAST16_MAX;
17156 int_least16_t c2min = INT_LEAST16_MIN;
17157 int_least32_t c3 = INT32_C (0x7fffffff);
17158 int_least32_t c3max = INT_LEAST32_MAX;
17159 int_least32_t c3min = INT_LEAST32_MIN;
17160 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17161 int_least64_t c4max = INT_LEAST64_MAX;
17162 int_least64_t c4min = INT_LEAST64_MIN;
17163 uint_least8_t d1 = UINT8_C (0xff);
17164 uint_least8_t d1max = UINT_LEAST8_MAX;
17165 uint_least16_t d2 = UINT16_C (0xffff);
17166 uint_least16_t d2max = UINT_LEAST16_MAX;
17167 uint_least32_t d3 = UINT32_C (0xffffffff);
17168 uint_least32_t d3max = UINT_LEAST32_MAX;
17169 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17170 uint_least64_t d4max = UINT_LEAST64_MAX;
17171 int_fast8_t e1 = INT_FAST8_MAX;
17172 int_fast8_t e1min = INT_FAST8_MIN;
17173 int_fast16_t e2 = INT_FAST16_MAX;
17174 int_fast16_t e2min = INT_FAST16_MIN;
17175 int_fast32_t e3 = INT_FAST32_MAX;
17176 int_fast32_t e3min = INT_FAST32_MIN;
17177 int_fast64_t e4 = INT_FAST64_MAX;
17178 int_fast64_t e4min = INT_FAST64_MIN;
17179 uint_fast8_t f1 = UINT_FAST8_MAX;
17180 uint_fast16_t f2 = UINT_FAST16_MAX;
17181 uint_fast32_t f3 = UINT_FAST32_MAX;
17182 uint_fast64_t f4 = UINT_FAST64_MAX;
17184 intptr_t g = INTPTR_MAX;
17185 intptr_t gmin = INTPTR_MIN;
17188 uintptr_t h = UINTPTR_MAX;
17190 intmax_t i = INTMAX_MAX;
17191 uintmax_t j = UINTMAX_MAX;
17193 #include <limits.h> /* for CHAR_BIT */
17194 #define TYPE_MINIMUM(t) \
17195 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
17196 #define TYPE_MAXIMUM(t) \
17197 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
17200 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17201 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17203 /* Detect bug in FreeBSD 6.0 / ia64. */
17204 int check_SIG_ATOMIC:
17205 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17206 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17208 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17210 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17211 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17213 /* Detect bug in mingw. */
17215 WINT_MIN == TYPE_MINIMUM (wint_t)
17216 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17219 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17221 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17222 int check_UINT16_C:
17223 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17225 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17227 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17230 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17233 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17236 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17238 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17239 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17240 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17241 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17242 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17243 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17244 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17245 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17246 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17247 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17248 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17259 if ac_fn_c_try_compile
"$LINENO"; then :
17260 if test "$cross_compiling" = yes; then :
17261 gl_cv_header_working_stdint_h
=yes
17264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17265 /* end confdefs.h. */
17268 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17269 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17270 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17271 #include <stdint.h>
17274 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17275 included before <wchar.h>. */
17276 #include <stddef.h>
17277 #include <signal.h>
17279 # include <stdio.h>
17281 # include <wchar.h>
17286 #include <string.h>
17287 #define MVAL(macro) MVAL1(macro)
17288 #define MVAL1(expression) #expression
17289 static const char *macro_values[] =
17323 for (mv = macro_values; *mv != NULL; mv++)
17325 const char *value = *mv;
17326 /* Test whether it looks like a cast expression. */
17327 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17328 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17329 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17330 || strncmp (value, "((int)"/*)*/, 6) == 0
17331 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17332 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17341 if ac_fn_c_try_run
"$LINENO"; then :
17342 gl_cv_header_working_stdint_h
=yes
17344 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17345 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17350 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17354 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17356 if test "$gl_cv_header_working_stdint_h" = yes; then
17359 for ac_header
in sys
/inttypes.h sys
/bitypes.h
17361 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17362 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17363 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
17364 cat >>confdefs.h
<<_ACEOF
17365 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17372 if test $ac_cv_header_sys_inttypes_h = yes; then
17373 HAVE_SYS_INTTYPES_H
=1
17375 HAVE_SYS_INTTYPES_H
=0
17378 if test $ac_cv_header_sys_bitypes_h = yes; then
17379 HAVE_SYS_BITYPES_H
=1
17381 HAVE_SYS_BITYPES_H
=0
17389 if test $APPLE_UNIVERSAL_BUILD = 0; then
17392 for gltype
in ptrdiff_t size_t
; do
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17394 $as_echo_n "checking for bit size of $gltype... " >&6; }
17395 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
17396 $as_echo_n "(cached) " >&6
17398 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17399 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17400 included before <wchar.h>. */
17401 #include <stddef.h>
17402 #include <signal.h>
17404 # include <stdio.h>
17406 # include <wchar.h>
17409 #include <limits.h>"; then :
17415 eval gl_cv_bitsizeof_
${gltype}=\
$result
17418 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17420 $as_echo "$ac_res" >&6; }
17421 eval result
=\
$gl_cv_bitsizeof_${gltype}
17422 if test $result = unknown
; then
17425 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17426 cat >>confdefs.h
<<_ACEOF
17427 #define BITSIZEOF_${GLTYPE} $result
17430 eval BITSIZEOF_
${GLTYPE}=\
$result
17437 for gltype
in sig_atomic_t wchar_t wint_t
; do
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17439 $as_echo_n "checking for bit size of $gltype... " >&6; }
17440 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
17441 $as_echo_n "(cached) " >&6
17443 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17444 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17445 included before <wchar.h>. */
17446 #include <stddef.h>
17447 #include <signal.h>
17449 # include <stdio.h>
17451 # include <wchar.h>
17454 #include <limits.h>"; then :
17460 eval gl_cv_bitsizeof_
${gltype}=\
$result
17463 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17465 $as_echo "$ac_res" >&6; }
17466 eval result
=\
$gl_cv_bitsizeof_${gltype}
17467 if test $result = unknown
; then
17470 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17471 cat >>confdefs.h
<<_ACEOF
17472 #define BITSIZEOF_${GLTYPE} $result
17475 eval BITSIZEOF_
${GLTYPE}=\
$result
17481 for gltype
in sig_atomic_t wchar_t wint_t
; do
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17483 $as_echo_n "checking whether $gltype is signed... " >&6; }
17484 if eval \
${gl_cv_type_${gltype}_signed+:} false
; then :
17485 $as_echo_n "(cached) " >&6
17487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17488 /* end confdefs.h. */
17490 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17491 included before <wchar.h>. */
17492 #include <stddef.h>
17493 #include <signal.h>
17495 # include <stdio.h>
17497 # include <wchar.h>
17500 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17509 if ac_fn_c_try_compile
"$LINENO"; then :
17514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17515 eval gl_cv_type_
${gltype}_signed
=\
$result
17518 eval ac_res
=\
$gl_cv_type_${gltype}_signed
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17520 $as_echo "$ac_res" >&6; }
17521 eval result
=\
$gl_cv_type_${gltype}_signed
17522 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17523 if test "$result" = yes; then
17524 cat >>confdefs.h
<<_ACEOF
17525 #define HAVE_SIGNED_${GLTYPE} 1
17528 eval HAVE_SIGNED_
${GLTYPE}=1
17530 eval HAVE_SIGNED_
${GLTYPE}=0
17535 gl_cv_type_ptrdiff_t_signed
=yes
17536 gl_cv_type_size_t_signed
=no
17537 if test $APPLE_UNIVERSAL_BUILD = 0; then
17540 for gltype
in ptrdiff_t size_t
; do
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17542 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17543 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
17544 $as_echo_n "(cached) " >&6
17546 eval gl_cv_type_
${gltype}_suffix
=no
17547 eval result
=\
$gl_cv_type_${gltype}_signed
17548 if test "$result" = yes; then
17553 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
17555 '') gltype1
='int';;
17556 l
) gltype1
='long int';;
17557 ll
) gltype1
='long long int';;
17558 i64
) gltype1
='__int64';;
17559 u
) gltype1
='unsigned int';;
17560 ul
) gltype1
='unsigned long int';;
17561 ull
) gltype1
='unsigned long long int';;
17562 ui64
)gltype1
='unsigned __int64';;
17564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17565 /* end confdefs.h. */
17567 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17568 included before <wchar.h>. */
17569 #include <stddef.h>
17570 #include <signal.h>
17572 # include <stdio.h>
17574 # include <wchar.h>
17577 extern $gltype foo;
17578 extern $gltype1 foo;
17587 if ac_fn_c_try_compile
"$LINENO"; then :
17588 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
17590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17591 eval result
=\
$gl_cv_type_${gltype}_suffix
17592 test "$result" != no
&& break
17595 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17597 $as_echo "$ac_res" >&6; }
17598 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17599 eval result
=\
$gl_cv_type_${gltype}_suffix
17600 test "$result" = no
&& result
=
17601 eval ${GLTYPE}_SUFFIX
=\
$result
17602 cat >>confdefs.h
<<_ACEOF
17603 #define ${GLTYPE}_SUFFIX $result
17612 for gltype
in sig_atomic_t wchar_t wint_t
; do
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17614 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17615 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
17616 $as_echo_n "(cached) " >&6
17618 eval gl_cv_type_
${gltype}_suffix
=no
17619 eval result
=\
$gl_cv_type_${gltype}_signed
17620 if test "$result" = yes; then
17625 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
17627 '') gltype1
='int';;
17628 l
) gltype1
='long int';;
17629 ll
) gltype1
='long long int';;
17630 i64
) gltype1
='__int64';;
17631 u
) gltype1
='unsigned int';;
17632 ul
) gltype1
='unsigned long int';;
17633 ull
) gltype1
='unsigned long long int';;
17634 ui64
)gltype1
='unsigned __int64';;
17636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17637 /* end confdefs.h. */
17639 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17640 included before <wchar.h>. */
17641 #include <stddef.h>
17642 #include <signal.h>
17644 # include <stdio.h>
17646 # include <wchar.h>
17649 extern $gltype foo;
17650 extern $gltype1 foo;
17659 if ac_fn_c_try_compile
"$LINENO"; then :
17660 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
17662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17663 eval result
=\
$gl_cv_type_${gltype}_suffix
17664 test "$result" != no
&& break
17667 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17669 $as_echo "$ac_res" >&6; }
17670 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17671 eval result
=\
$gl_cv_type_${gltype}_suffix
17672 test "$result" = no
&& result
=
17673 eval ${GLTYPE}_SUFFIX
=\
$result
17674 cat >>confdefs.h
<<_ACEOF
17675 #define ${GLTYPE}_SUFFIX $result
17686 # Code from module stdio:
17697 if test $gl_cv_have_include_next = yes; then
17698 gl_cv_next_stdio_h
='<'stdio.h
'>'
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
17701 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
17702 if ${gl_cv_next_stdio_h+:} false
; then :
17703 $as_echo_n "(cached) " >&6
17706 if test $ac_cv_header_stdio_h = yes; then
17707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17708 /* end confdefs.h. */
17713 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17714 *) gl_absname_cpp
="$ac_cpp" ;;
17716 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17717 sed -n '\#/stdio.h#{
17718 s#.*"\(.*/stdio.h\)".*#\1#
17724 gl_cv_next_stdio_h
='<'stdio.h
'>'
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
17729 $as_echo "$gl_cv_next_stdio_h" >&6; }
17731 NEXT_STDIO_H
=$gl_cv_next_stdio_h
17733 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17734 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17735 gl_next_as_first_directive
='<'stdio.h
'>'
17737 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17738 gl_next_as_first_directive
=$gl_cv_next_stdio_h
17740 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
17757 for gl_func
in dprintf fpurge fseeko ftello getdelim getline popen renameat snprintf tmpfile vdprintf vsnprintf
; do
17758 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17760 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17761 if eval \
${$as_gl_Symbol+:} false
; then :
17762 $as_echo_n "(cached) " >&6
17764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17765 /* end confdefs.h. */
17777 if ac_fn_c_try_compile
"$LINENO"; then :
17778 eval "$as_gl_Symbol=yes"
17780 eval "$as_gl_Symbol=no"
17782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17784 eval ac_res
=\$
$as_gl_Symbol
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17786 $as_echo "$ac_res" >&6; }
17787 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
17788 cat >>confdefs.h
<<_ACEOF
17789 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17792 eval ac_cv_have_decl_
$gl_func=yes
17797 # Code from module stdlib:
17806 if test $gl_cv_have_include_next = yes; then
17807 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
17810 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
17811 if ${gl_cv_next_stdlib_h+:} false
; then :
17812 $as_echo_n "(cached) " >&6
17815 if test $ac_cv_header_stdlib_h = yes; then
17816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17817 /* end confdefs.h. */
17818 #include <stdlib.h>
17822 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17823 *) gl_absname_cpp
="$ac_cpp" ;;
17825 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17826 sed -n '\#/stdlib.h#{
17827 s#.*"\(.*/stdlib.h\)".*#\1#
17833 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
17838 $as_echo "$gl_cv_next_stdlib_h" >&6; }
17840 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
17842 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17843 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17844 gl_next_as_first_directive
='<'stdlib.h
'>'
17846 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17847 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
17849 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
17853 for ac_header
in random.h
17855 ac_fn_c_check_header_compile
"$LINENO" "random.h" "ac_cv_header_random_h" "$ac_includes_default
17857 if test "x$ac_cv_header_random_h" = xyes
; then :
17858 cat >>confdefs.h
<<_ACEOF
17859 #define HAVE_RANDOM_H 1
17866 if test $ac_cv_header_random_h = yes; then
17872 ac_fn_c_check_type
"$LINENO" "struct random_data" "ac_cv_type_struct_random_data" "#include <stdlib.h>
17874 # include <random.h>
17878 if test "x$ac_cv_type_struct_random_data" = xyes
; then :
17880 cat >>confdefs.h
<<_ACEOF
17881 #define HAVE_STRUCT_RANDOM_DATA 1
17886 HAVE_STRUCT_RANDOM_DATA
=0
17891 for gl_func
in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt mkdtemp mkostemp mkostemps mkstemp mkstemps ptsname random_r initstat_r srandom_r setstate_r realpath rpmatch setenv strtod strtoll strtoull unlockpt unsetenv
; do
17892 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17894 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17895 if eval \
${$as_gl_Symbol+:} false
; then :
17896 $as_echo_n "(cached) " >&6
17898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17899 /* end confdefs.h. */
17900 #include <stdlib.h>
17901 #if HAVE_SYS_LOADAVG_H
17902 # include <sys/loadavg.h>
17905 # include <random.h>
17917 if ac_fn_c_try_compile
"$LINENO"; then :
17918 eval "$as_gl_Symbol=yes"
17920 eval "$as_gl_Symbol=no"
17922 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17924 eval ac_res
=\$
$as_gl_Symbol
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17926 $as_echo "$ac_res" >&6; }
17927 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
17928 cat >>confdefs.h
<<_ACEOF
17929 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17932 eval ac_cv_have_decl_
$gl_func=yes
17937 # Code from module strcase:
17949 for ac_func
in strcasecmp
17951 ac_fn_c_check_func
"$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
17952 if test "x$ac_cv_func_strcasecmp" = xyes
; then :
17953 cat >>confdefs.h
<<_ACEOF
17954 #define HAVE_STRCASECMP 1
17959 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
17965 if test $ac_cv_func_strcasecmp = no
; then
17982 for ac_func
in strncasecmp
17984 ac_fn_c_check_func
"$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
17985 if test "x$ac_cv_func_strncasecmp" = xyes
; then :
17986 cat >>confdefs.h
<<_ACEOF
17987 #define HAVE_STRNCASECMP 1
17992 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
17998 if test $ac_cv_func_strncasecmp = no
; then
18003 ac_fn_c_check_decl
"$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
18004 if test "x$ac_cv_have_decl_strncasecmp" = xyes
; then :
18010 cat >>confdefs.h
<<_ACEOF
18011 #define HAVE_DECL_STRNCASECMP $ac_have_decl
18014 if test $ac_cv_have_decl_strncasecmp = no
; then
18015 HAVE_DECL_STRNCASECMP
=0
18019 # Code from module strchrnul:
18032 for ac_func
in strchrnul
18034 ac_fn_c_check_func
"$LINENO" "strchrnul" "ac_cv_func_strchrnul"
18035 if test "x$ac_cv_func_strchrnul" = xyes
; then :
18036 cat >>confdefs.h
<<_ACEOF
18037 #define HAVE_STRCHRNUL 1
18042 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
18048 if test $ac_cv_func_strchrnul = no
; then
18060 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
18064 # Code from module streq:
18065 # Code from module strerror:
18068 if test $REPLACE_STRERROR = 1; then
18077 gl_LIBOBJS
="$gl_LIBOBJS strerror.$ac_objext"
18080 cat >>confdefs.h
<<_ACEOF
18081 #define REPLACE_STRERROR $REPLACE_STRERROR
18093 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
18097 # Code from module string:
18101 # Code from module strings:
18105 # Code from module strndup:
18112 if test $ac_cv_have_decl_strndup = no
; then
18113 HAVE_DECL_STRNDUP
=0
18116 if test $ac_cv_func_strndup = yes; then
18117 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
18119 $as_echo_n "checking for working strndup... " >&6; }
18120 if ${gl_cv_func_strndup_works+:} false
; then :
18121 $as_echo_n "(cached) " >&6
18123 if test "$cross_compiling" = yes; then :
18126 aix | aix
[3-6]*) gl_cv_func_strndup_works
="guessing no";;
18127 *) gl_cv_func_strndup_works
="guessing yes";;
18131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18132 /* end confdefs.h. */
18134 #include <string.h>
18135 #include <stdlib.h>
18140 #ifndef HAVE_DECL_STRNDUP
18141 extern char *strndup (const char *, size_t);
18144 s = strndup ("some longer string", 15);
18146 s = strndup ("shorter string", 13);
18147 return s[13] != '\0';
18152 if ac_fn_c_try_run
"$LINENO"; then :
18153 gl_cv_func_strndup_works
=yes
18155 gl_cv_func_strndup_works
=no
18157 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18158 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
18163 $as_echo "$gl_cv_func_strndup_works" >&6; }
18164 case $gl_cv_func_strndup_works in
18175 gl_LIBOBJS
="$gl_LIBOBJS strndup.$ac_objext"
18188 gl_LIBOBJS
="$gl_LIBOBJS strndup.$ac_objext"
18199 $as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
18203 # Code from module strnlen:
18210 if test $ac_cv_have_decl_strnlen = no
; then
18211 HAVE_DECL_STRNLEN
=0
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
18214 $as_echo_n "checking for working strnlen... " >&6; }
18215 if ${ac_cv_func_strnlen_working+:} false
; then :
18216 $as_echo_n "(cached) " >&6
18218 if test "$cross_compiling" = yes; then :
18219 # Guess no on AIX systems, yes otherwise.
18221 aix
*) ac_cv_func_strnlen_working
=no
;;
18222 *) ac_cv_func_strnlen_working
=yes;;
18225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18226 /* end confdefs.h. */
18227 $ac_includes_default
18233 #define S_LEN (sizeof S - 1)
18235 /* At least one implementation is buggy: that of AIX 4.3 would
18236 give strnlen (S, 1) == 3. */
18239 for (i = 0; i < S_LEN + 1; ++i)
18241 int expected = i <= S_LEN ? i : S_LEN;
18242 if (strnlen (S, i) != expected)
18251 if ac_fn_c_try_run
"$LINENO"; then :
18252 ac_cv_func_strnlen_working
=yes
18254 ac_cv_func_strnlen_working
=no
18256 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18257 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
18262 $as_echo "$ac_cv_func_strnlen_working" >&6; }
18263 test $ac_cv_func_strnlen_working = no
&&
18271 gl_LIBOBJS
="$gl_LIBOBJS strnlen.$ac_objext"
18274 if test $ac_cv_func_strnlen_working = no
; then
18278 if test $HAVE_DECL_STRNLEN = 0 ||
test $REPLACE_STRNLEN = 1; then
18287 gl_LIBOBJS
="$gl_LIBOBJS strnlen.$ac_objext"
18299 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
18303 # Code from module strnlen1:
18304 # Code from module sys_wait:
18314 if test $gl_cv_have_include_next = yes; then
18315 gl_cv_next_sys_wait_h
='<'sys
/wait.h
'>'
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
18318 $as_echo_n "checking absolute name of <sys/wait.h>... " >&6; }
18319 if ${gl_cv_next_sys_wait_h+:} false
; then :
18320 $as_echo_n "(cached) " >&6
18323 if test $ac_cv_header_sys_wait_h = yes; then
18324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18325 /* end confdefs.h. */
18326 #include <sys/wait.h>
18330 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18331 *) gl_absname_cpp
="$ac_cpp" ;;
18333 gl_cv_next_sys_wait_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18334 sed -n '\#/sys/wait.h#{
18335 s#.*"\(.*/sys/wait.h\)".*#\1#
18341 gl_cv_next_sys_wait_h
='<'sys
/wait.h
'>'
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
18346 $as_echo "$gl_cv_next_sys_wait_h" >&6; }
18348 NEXT_SYS_WAIT_H
=$gl_cv_next_sys_wait_h
18350 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18351 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18352 gl_next_as_first_directive
='<'sys
/wait.h
'>'
18354 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18355 gl_next_as_first_directive
=$gl_cv_next_sys_wait_h
18357 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H
=$gl_next_as_first_directive
18363 # Code from module sysexits:
18366 if test $ac_cv_header_sysexits_h = yes; then
18374 if test $gl_cv_have_include_next = yes; then
18375 gl_cv_next_sysexits_h
='<'sysexits.h
'>'
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sysexits.h>" >&5
18378 $as_echo_n "checking absolute name of <sysexits.h>... " >&6; }
18379 if ${gl_cv_next_sysexits_h+:} false
; then :
18380 $as_echo_n "(cached) " >&6
18383 if test $ac_cv_header_sysexits_h = yes; then
18384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18385 /* end confdefs.h. */
18386 #include <sysexits.h>
18390 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18391 *) gl_absname_cpp
="$ac_cpp" ;;
18393 gl_cv_next_sysexits_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18394 sed -n '\#/sysexits.h#{
18395 s#.*"\(.*/sysexits.h\)".*#\1#
18401 gl_cv_next_sysexits_h
='<'sysexits.h
'>'
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sysexits_h" >&5
18406 $as_echo "$gl_cv_next_sysexits_h" >&6; }
18408 NEXT_SYSEXITS_H
=$gl_cv_next_sysexits_h
18410 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18411 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18412 gl_next_as_first_directive
='<'sysexits.h
'>'
18414 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18415 gl_next_as_first_directive
=$gl_cv_next_sysexits_h
18417 NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H
=$gl_next_as_first_directive
18421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18422 /* end confdefs.h. */
18423 #include <sysexits.h>
18435 case EX_UNAVAILABLE:
18452 if ac_fn_c_try_compile
"$LINENO"; then :
18455 SYSEXITS_H
=sysexits.h
18457 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18460 SYSEXITS_H
=sysexits.h
18465 # Code from module unistd:
18476 if test $gl_cv_have_include_next = yes; then
18477 gl_cv_next_unistd_h
='<'unistd.h
'>'
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
18480 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
18481 if ${gl_cv_next_unistd_h+:} false
; then :
18482 $as_echo_n "(cached) " >&6
18485 if test $ac_cv_header_unistd_h = yes; then
18486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18487 /* end confdefs.h. */
18488 #include <unistd.h>
18492 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18493 *) gl_absname_cpp
="$ac_cpp" ;;
18495 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18496 sed -n '\#/unistd.h#{
18497 s#.*"\(.*/unistd.h\)".*#\1#
18503 gl_cv_next_unistd_h
='<'unistd.h
'>'
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
18508 $as_echo "$gl_cv_next_unistd_h" >&6; }
18510 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
18512 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18513 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18514 gl_next_as_first_directive
='<'unistd.h
'>'
18516 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18517 gl_next_as_first_directive
=$gl_cv_next_unistd_h
18519 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
18525 if test $ac_cv_header_unistd_h = yes; then
18533 for gl_func
in chown dup2 dup3 environ euidaccess faccessat fchdir fchownat fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell lchown link linkat lseek pipe2 pread pwrite readlink readlinkat
rmdir sleep symlink symlinkat ttyname_r unlink unlinkat
usleep; do
18534 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18536 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18537 if eval \
${$as_gl_Symbol+:} false
; then :
18538 $as_echo_n "(cached) " >&6
18540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18541 /* end confdefs.h. */
18542 #include <unistd.h>
18543 /* Some systems declare various items in the wrong headers. */
18545 # include <fcntl.h>
18546 # include <stdio.h>
18547 # include <stdlib.h>
18548 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
18562 if ac_fn_c_try_compile
"$LINENO"; then :
18563 eval "$as_gl_Symbol=yes"
18565 eval "$as_gl_Symbol=no"
18567 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18569 eval ac_res
=\$
$as_gl_Symbol
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18571 $as_echo "$ac_res" >&6; }
18572 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
18573 cat >>confdefs.h
<<_ACEOF
18574 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18577 eval ac_cv_have_decl_
$gl_func=yes
18582 # Code from module vasnprintf:
18585 if test $ac_cv_func_vasnprintf = no
; then
18596 gl_LIBOBJS
="$gl_LIBOBJS vasnprintf.$ac_objext"
18606 gl_LIBOBJS
="$gl_LIBOBJS printf-args.$ac_objext"
18616 gl_LIBOBJS
="$gl_LIBOBJS printf-parse.$ac_objext"
18626 gl_LIBOBJS
="$gl_LIBOBJS asnprintf.$ac_objext"
18628 if test $ac_cv_func_vasnprintf = yes; then
18630 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
18643 ac_fn_c_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
18644 if test "x$ac_cv_type_ptrdiff_t" = xyes
; then :
18648 $as_echo "#define ptrdiff_t long" >>confdefs.h
18661 # Code from module verify:
18662 # Code from module vsnprintf:
18665 gl_cv_func_vsnprintf_usable
=no
18666 for ac_func
in vsnprintf
18668 ac_fn_c_check_func
"$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
18669 if test "x$ac_cv_func_vsnprintf" = xyes
; then :
18670 cat >>confdefs.h
<<_ACEOF
18671 #define HAVE_VSNPRINTF 1
18677 if test $ac_cv_func_vsnprintf = yes; then
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
18681 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
18682 if ${gl_cv_func_snprintf_size1+:} false
; then :
18683 $as_echo_n "(cached) " >&6
18686 if test "$cross_compiling" = yes; then :
18687 gl_cv_func_snprintf_size1
="guessing yes"
18689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18690 /* end confdefs.h. */
18695 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
18696 snprintf (buf, 1, "%d", 12345);
18697 return buf[1] != 'E';
18700 if ac_fn_c_try_run
"$LINENO"; then :
18701 gl_cv_func_snprintf_size1
=yes
18703 gl_cv_func_snprintf_size1
=no
18705 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18706 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
18712 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
18714 case "$gl_cv_func_snprintf_size1" in
18716 gl_cv_func_vsnprintf_usable
=yes
18720 if test $gl_cv_func_vsnprintf_usable = no
; then
18731 gl_LIBOBJS
="$gl_LIBOBJS vsnprintf.$ac_objext"
18733 if test $ac_cv_func_vsnprintf = yes; then
18734 REPLACE_VSNPRINTF
=1
18740 if test $ac_cv_have_decl_vsnprintf = no
; then
18741 HAVE_DECL_VSNPRINTF
=0
18751 $as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
18755 # Code from module warn-on-use:
18756 # Code from module wchar:
18767 if test $gl_cv_have_include_next = yes; then
18768 gl_cv_next_wchar_h
='<'wchar.h
'>'
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
18771 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
18772 if ${gl_cv_next_wchar_h+:} false
; then :
18773 $as_echo_n "(cached) " >&6
18776 if test $ac_cv_header_wchar_h = yes; then
18777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18778 /* end confdefs.h. */
18783 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18784 *) gl_absname_cpp
="$ac_cpp" ;;
18786 gl_cv_next_wchar_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18787 sed -n '\#/wchar.h#{
18788 s#.*"\(.*/wchar.h\)".*#\1#
18794 gl_cv_next_wchar_h
='<'wchar.h
'>'
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
18799 $as_echo "$gl_cv_next_wchar_h" >&6; }
18801 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
18803 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18804 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18805 gl_next_as_first_directive
='<'wchar.h
'>'
18807 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18808 gl_next_as_first_directive
=$gl_cv_next_wchar_h
18810 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
18814 if test $ac_cv_header_wchar_h = yes; then
18822 if test $gt_cv_c_wint_t = yes; then
18830 for gl_func
in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth
; do
18831 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18833 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18834 if eval \
${$as_gl_Symbol+:} false
; then :
18835 $as_echo_n "(cached) " >&6
18837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18838 /* end confdefs.h. */
18840 /* Some systems require additional headers. */
18842 # include <stddef.h>
18843 # include <stdio.h>
18857 if ac_fn_c_try_compile
"$LINENO"; then :
18858 eval "$as_gl_Symbol=yes"
18860 eval "$as_gl_Symbol=no"
18862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18864 eval ac_res
=\$
$as_gl_Symbol
18865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18866 $as_echo "$ac_res" >&6; }
18867 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
18868 cat >>confdefs.h
<<_ACEOF
18869 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18872 eval ac_cv_have_decl_
$gl_func=yes
18877 # Code from module wcrtomb:
18888 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
18892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
18893 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
18894 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
18895 $as_echo_n "(cached) " >&6
18899 # Guess no on AIX and OSF/1.
18900 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
18901 # Guess yes otherwise.
18902 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
18904 if test $LOCALE_JA != none
; then
18905 if test "$cross_compiling" = yes; then :
18908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18909 /* end confdefs.h. */
18911 #include <locale.h>
18912 #include <string.h>
18916 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
18918 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
18922 memset (&state, '\0', sizeof (mbstate_t));
18923 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
18924 if (mbsinit (&state))
18930 if ac_fn_c_try_run
"$LINENO"; then :
18931 gl_cv_func_mbrtowc_incomplete_state
=yes
18933 gl_cv_func_mbrtowc_incomplete_state
=no
18935 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18936 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
18943 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
18948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
18949 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
18950 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
18951 $as_echo_n "(cached) " >&6
18955 # Guess no on Solaris 8.
18956 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
18957 # Guess yes otherwise.
18958 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
18960 if test $LOCALE_ZH_CN != none
; then
18961 if test "$cross_compiling" = yes; then :
18964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18965 /* end confdefs.h. */
18967 #include <locale.h>
18968 #include <stdlib.h>
18969 #include <string.h>
18973 /* This fails on Solaris 8:
18974 mbrtowc returns 2, and sets wc to 0x00F0.
18975 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
18976 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
18978 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
18982 memset (&state, '\0', sizeof (mbstate_t));
18983 if (mbrtowc (&wc, input + 3, 6, &state) != 4
18984 && mbtowc (&wc, input + 3, 6) == 4)
18990 if ac_fn_c_try_run
"$LINENO"; then :
18991 gl_cv_func_mbrtowc_sanitycheck
=yes
18993 gl_cv_func_mbrtowc_sanitycheck
=no
18995 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18996 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
19003 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
19005 REPLACE_MBSTATE_T
=0
19006 case "$gl_cv_func_mbrtowc_incomplete_state" in
19008 *) REPLACE_MBSTATE_T
=1 ;;
19010 case "$gl_cv_func_mbrtowc_sanitycheck" in
19012 *) REPLACE_MBSTATE_T
=1 ;;
19015 REPLACE_MBSTATE_T
=1
19017 if test $REPLACE_MBSTATE_T = 1; then
19025 if test $ac_cv_func_wcrtomb = no
; then
19028 if test $REPLACE_MBSTATE_T = 1; then
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
19037 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
19038 if ${gl_cv_func_wcrtomb_retval+:} false
; then :
19039 $as_echo_n "(cached) " >&6
19043 # Guess no on AIX 4, OSF/1 and Solaris.
19044 aix4
* | osf
* | solaris
*) gl_cv_func_wcrtomb_retval
="guessing no" ;;
19045 # Guess yes otherwise.
19046 *) gl_cv_func_wcrtomb_retval
="guessing yes" ;;
19048 if test $LOCALE_FR != none ||
test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none ||
test $LOCALE_ZH_CN != none
; then
19049 if test "$cross_compiling" = yes; then :
19052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19053 /* end confdefs.h. */
19055 #include <locale.h>
19057 #include <string.h>
19061 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
19063 if (wcrtomb (NULL, 0, NULL) != 1)
19066 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19068 if (wcrtomb (NULL, 0, NULL) != 1)
19071 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19073 if (wcrtomb (NULL, 0, NULL) != 1)
19076 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19078 if (wcrtomb (NULL, 0, NULL) != 1)
19084 if ac_fn_c_try_run
"$LINENO"; then :
19085 gl_cv_func_wcrtomb_retval
=yes
19087 gl_cv_func_wcrtomb_retval
=no
19089 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19090 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5
19097 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
19098 case "$gl_cv_func_wcrtomb_retval" in
19100 *) REPLACE_WCRTOMB
=1 ;;
19104 if test $HAVE_WCRTOMB = 0 ||
test $REPLACE_WCRTOMB = 1; then
19116 gl_LIBOBJS
="$gl_LIBOBJS wcrtomb.$ac_objext"
19130 $as_echo "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h
19134 # Code from module wctype:
19139 if test $ac_cv_func_iswcntrl = yes; then
19147 if test $ac_cv_func_iswblank = yes; then
19152 if test $ac_cv_have_decl_iswblank = yes; then
19165 if test $gt_cv_c_wint_t = yes; then
19172 if test $ac_cv_header_wctype_h = yes; then
19173 if test $ac_cv_func_iswcntrl = yes; then
19174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
19175 $as_echo_n "checking whether iswcntrl works... " >&6; }
19176 if ${gl_cv_func_iswcntrl_works+:} false
; then :
19177 $as_echo_n "(cached) " >&6
19180 if test "$cross_compiling" = yes; then :
19181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19182 /* end confdefs.h. */
19183 #include <stdlib.h>
19184 #if __GNU_LIBRARY__ == 1
19185 Linux libc5 i18n is broken.
19195 if ac_fn_c_try_compile
"$LINENO"; then :
19196 gl_cv_func_iswcntrl_works
=yes
19198 gl_cv_func_iswcntrl_works
=no
19200 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19204 /* end confdefs.h. */
19206 #include <stddef.h>
19210 #include <wctype.h>
19211 int main () { return iswprint ('x') == 0; }
19213 if ac_fn_c_try_run
"$LINENO"; then :
19214 gl_cv_func_iswcntrl_works
=yes
19216 gl_cv_func_iswcntrl_works
=no
19218 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19219 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
19225 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
19233 if test $gl_cv_have_include_next = yes; then
19234 gl_cv_next_wctype_h
='<'wctype.h
'>'
19236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
19237 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
19238 if ${gl_cv_next_wctype_h+:} false
; then :
19239 $as_echo_n "(cached) " >&6
19242 if test $ac_cv_header_wctype_h = yes; then
19243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19244 /* end confdefs.h. */
19245 #include <wctype.h>
19249 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19250 *) gl_absname_cpp
="$ac_cpp" ;;
19252 gl_cv_next_wctype_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19253 sed -n '\#/wctype.h#{
19254 s#.*"\(.*/wctype.h\)".*#\1#
19260 gl_cv_next_wctype_h
='<'wctype.h
'>'
19264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
19265 $as_echo "$gl_cv_next_wctype_h" >&6; }
19267 NEXT_WCTYPE_H
=$gl_cv_next_wctype_h
19269 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19270 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19271 gl_next_as_first_directive
='<'wctype.h
'>'
19273 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19274 gl_next_as_first_directive
=$gl_cv_next_wctype_h
19276 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
=$gl_next_as_first_directive
19286 if test "$gl_cv_func_iswcntrl_works" = no
; then
19293 # Code from module xsize:
19297 for ac_header
in stdint.h
19299 ac_fn_c_check_header_mongrel
"$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19300 if test "x$ac_cv_header_stdint_h" = xyes
; then :
19301 cat >>confdefs.h
<<_ACEOF
19302 #define HAVE_STDINT_H 1
19310 # End of code from modules
19331 gl_source_base
='tests'
19332 gltests_WITNESS
=IN_
`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
19334 gl_module_indicator_condition
=$gltests_WITNESS
19344 LIBGNU_LIBDEPS
="$gl_libdeps"
19346 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
19351 # Check for target programs.
19354 # Find tools for the target.
19355 if test "x$target_alias" != x
&& test "x$host_alias" != "x$target_alias"; then
19356 tmp_ac_tool_prefix
="$ac_tool_prefix"
19357 ac_tool_prefix
=$target_alias-
19359 if test -n "$ac_tool_prefix"; then
19360 for ac_prog
in gcc egcs cc
19362 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19363 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19365 $as_echo_n "checking for $ac_word... " >&6; }
19366 if ${ac_cv_prog_TARGET_CC+:} false
; then :
19367 $as_echo_n "(cached) " >&6
19369 if test -n "$TARGET_CC"; then
19370 ac_cv_prog_TARGET_CC
="$TARGET_CC" # Let the user override the test.
19372 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19373 for as_dir
in $PATH
19376 test -z "$as_dir" && as_dir
=.
19377 for ac_exec_ext
in '' $ac_executable_extensions; do
19378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19379 ac_cv_prog_TARGET_CC
="$ac_tool_prefix$ac_prog"
19380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19389 TARGET_CC
=$ac_cv_prog_TARGET_CC
19390 if test -n "$TARGET_CC"; then
19391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_CC" >&5
19392 $as_echo "$TARGET_CC" >&6; }
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19395 $as_echo "no" >&6; }
19399 test -n "$TARGET_CC" && break
19402 if test -z "$TARGET_CC"; then
19403 ac_ct_TARGET_CC
=$TARGET_CC
19404 for ac_prog
in gcc egcs cc
19406 # Extract the first word of "$ac_prog", so it can be a program name with args.
19407 set dummy
$ac_prog; ac_word
=$2
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19409 $as_echo_n "checking for $ac_word... " >&6; }
19410 if ${ac_cv_prog_ac_ct_TARGET_CC+:} false
; then :
19411 $as_echo_n "(cached) " >&6
19413 if test -n "$ac_ct_TARGET_CC"; then
19414 ac_cv_prog_ac_ct_TARGET_CC
="$ac_ct_TARGET_CC" # Let the user override the test.
19416 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19417 for as_dir
in $PATH
19420 test -z "$as_dir" && as_dir
=.
19421 for ac_exec_ext
in '' $ac_executable_extensions; do
19422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19423 ac_cv_prog_ac_ct_TARGET_CC
="$ac_prog"
19424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19433 ac_ct_TARGET_CC
=$ac_cv_prog_ac_ct_TARGET_CC
19434 if test -n "$ac_ct_TARGET_CC"; then
19435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_CC" >&5
19436 $as_echo "$ac_ct_TARGET_CC" >&6; }
19438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19439 $as_echo "no" >&6; }
19443 test -n "$ac_ct_TARGET_CC" && break
19446 if test "x$ac_ct_TARGET_CC" = x
; then
19447 TARGET_CC
="as_fn_error $? "none of gcc
, egcs and cc is found.
set TARGET_CC manually.
" "$LINENO" 5"
19449 case $cross_compiling:$ac_tool_warned in
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19453 ac_tool_warned
=yes ;;
19455 TARGET_CC
=$ac_ct_TARGET_CC
19459 if test -n "$ac_tool_prefix"; then
19460 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
19461 set dummy
${ac_tool_prefix}objcopy
; ac_word
=$2
19462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19463 $as_echo_n "checking for $ac_word... " >&6; }
19464 if ${ac_cv_prog_OBJCOPY+:} false
; then :
19465 $as_echo_n "(cached) " >&6
19467 if test -n "$OBJCOPY"; then
19468 ac_cv_prog_OBJCOPY
="$OBJCOPY" # Let the user override the test.
19470 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19471 for as_dir
in $PATH
19474 test -z "$as_dir" && as_dir
=.
19475 for ac_exec_ext
in '' $ac_executable_extensions; do
19476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19477 ac_cv_prog_OBJCOPY
="${ac_tool_prefix}objcopy"
19478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19487 OBJCOPY
=$ac_cv_prog_OBJCOPY
19488 if test -n "$OBJCOPY"; then
19489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
19490 $as_echo "$OBJCOPY" >&6; }
19492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19493 $as_echo "no" >&6; }
19498 if test -z "$ac_cv_prog_OBJCOPY"; then
19499 ac_ct_OBJCOPY
=$OBJCOPY
19500 # Extract the first word of "objcopy", so it can be a program name with args.
19501 set dummy objcopy
; ac_word
=$2
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19503 $as_echo_n "checking for $ac_word... " >&6; }
19504 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false
; then :
19505 $as_echo_n "(cached) " >&6
19507 if test -n "$ac_ct_OBJCOPY"; then
19508 ac_cv_prog_ac_ct_OBJCOPY
="$ac_ct_OBJCOPY" # Let the user override the test.
19510 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19511 for as_dir
in $PATH
19514 test -z "$as_dir" && as_dir
=.
19515 for ac_exec_ext
in '' $ac_executable_extensions; do
19516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19517 ac_cv_prog_ac_ct_OBJCOPY
="objcopy"
19518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19527 ac_ct_OBJCOPY
=$ac_cv_prog_ac_ct_OBJCOPY
19528 if test -n "$ac_ct_OBJCOPY"; then
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
19530 $as_echo "$ac_ct_OBJCOPY" >&6; }
19532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19533 $as_echo "no" >&6; }
19536 if test "x$ac_ct_OBJCOPY" = x
; then
19539 case $cross_compiling:$ac_tool_warned in
19541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19543 ac_tool_warned
=yes ;;
19545 OBJCOPY
=$ac_ct_OBJCOPY
19548 OBJCOPY
="$ac_cv_prog_OBJCOPY"
19551 if test -n "$ac_tool_prefix"; then
19552 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19553 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
19554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19555 $as_echo_n "checking for $ac_word... " >&6; }
19556 if ${ac_cv_prog_STRIP+:} false
; then :
19557 $as_echo_n "(cached) " >&6
19559 if test -n "$STRIP"; then
19560 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
19562 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19563 for as_dir
in $PATH
19566 test -z "$as_dir" && as_dir
=.
19567 for ac_exec_ext
in '' $ac_executable_extensions; do
19568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19569 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
19570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19579 STRIP
=$ac_cv_prog_STRIP
19580 if test -n "$STRIP"; then
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
19582 $as_echo "$STRIP" >&6; }
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19585 $as_echo "no" >&6; }
19590 if test -z "$ac_cv_prog_STRIP"; then
19592 # Extract the first word of "strip", so it can be a program name with args.
19593 set dummy strip
; ac_word
=$2
19594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19595 $as_echo_n "checking for $ac_word... " >&6; }
19596 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
19597 $as_echo_n "(cached) " >&6
19599 if test -n "$ac_ct_STRIP"; then
19600 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
19602 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19603 for as_dir
in $PATH
19606 test -z "$as_dir" && as_dir
=.
19607 for ac_exec_ext
in '' $ac_executable_extensions; do
19608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19609 ac_cv_prog_ac_ct_STRIP
="strip"
19610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19619 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
19620 if test -n "$ac_ct_STRIP"; then
19621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
19622 $as_echo "$ac_ct_STRIP" >&6; }
19624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19625 $as_echo "no" >&6; }
19628 if test "x$ac_ct_STRIP" = x
; then
19631 case $cross_compiling:$ac_tool_warned in
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19635 ac_tool_warned
=yes ;;
19640 STRIP
="$ac_cv_prog_STRIP"
19643 if test -n "$ac_tool_prefix"; then
19644 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
19645 set dummy
${ac_tool_prefix}nm
; ac_word
=$2
19646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19647 $as_echo_n "checking for $ac_word... " >&6; }
19648 if ${ac_cv_prog_NM+:} false
; then :
19649 $as_echo_n "(cached) " >&6
19651 if test -n "$NM"; then
19652 ac_cv_prog_NM
="$NM" # Let the user override the test.
19654 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19655 for as_dir
in $PATH
19658 test -z "$as_dir" && as_dir
=.
19659 for ac_exec_ext
in '' $ac_executable_extensions; do
19660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19661 ac_cv_prog_NM
="${ac_tool_prefix}nm"
19662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19672 if test -n "$NM"; then
19673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
19674 $as_echo "$NM" >&6; }
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19677 $as_echo "no" >&6; }
19682 if test -z "$ac_cv_prog_NM"; then
19684 # Extract the first word of "nm", so it can be a program name with args.
19685 set dummy nm
; ac_word
=$2
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19687 $as_echo_n "checking for $ac_word... " >&6; }
19688 if ${ac_cv_prog_ac_ct_NM+:} false
; then :
19689 $as_echo_n "(cached) " >&6
19691 if test -n "$ac_ct_NM"; then
19692 ac_cv_prog_ac_ct_NM
="$ac_ct_NM" # Let the user override the test.
19694 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19695 for as_dir
in $PATH
19698 test -z "$as_dir" && as_dir
=.
19699 for ac_exec_ext
in '' $ac_executable_extensions; do
19700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19701 ac_cv_prog_ac_ct_NM
="nm"
19702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19711 ac_ct_NM
=$ac_cv_prog_ac_ct_NM
19712 if test -n "$ac_ct_NM"; then
19713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
19714 $as_echo "$ac_ct_NM" >&6; }
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19717 $as_echo "no" >&6; }
19720 if test "x$ac_ct_NM" = x
; then
19723 case $cross_compiling:$ac_tool_warned in
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19727 ac_tool_warned
=yes ;;
19732 NM
="$ac_cv_prog_NM"
19735 if test -n "$ac_tool_prefix"; then
19736 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19737 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
19738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19739 $as_echo_n "checking for $ac_word... " >&6; }
19740 if ${ac_cv_prog_TARGET_RANLIB+:} false
; then :
19741 $as_echo_n "(cached) " >&6
19743 if test -n "$TARGET_RANLIB"; then
19744 ac_cv_prog_TARGET_RANLIB
="$TARGET_RANLIB" # Let the user override the test.
19746 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19747 for as_dir
in $PATH
19750 test -z "$as_dir" && as_dir
=.
19751 for ac_exec_ext
in '' $ac_executable_extensions; do
19752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19753 ac_cv_prog_TARGET_RANLIB
="${ac_tool_prefix}ranlib"
19754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19763 TARGET_RANLIB
=$ac_cv_prog_TARGET_RANLIB
19764 if test -n "$TARGET_RANLIB"; then
19765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_RANLIB" >&5
19766 $as_echo "$TARGET_RANLIB" >&6; }
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19769 $as_echo "no" >&6; }
19774 if test -z "$ac_cv_prog_TARGET_RANLIB"; then
19775 ac_ct_TARGET_RANLIB
=$TARGET_RANLIB
19776 # Extract the first word of "ranlib", so it can be a program name with args.
19777 set dummy ranlib
; ac_word
=$2
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19779 $as_echo_n "checking for $ac_word... " >&6; }
19780 if ${ac_cv_prog_ac_ct_TARGET_RANLIB+:} false
; then :
19781 $as_echo_n "(cached) " >&6
19783 if test -n "$ac_ct_TARGET_RANLIB"; then
19784 ac_cv_prog_ac_ct_TARGET_RANLIB
="$ac_ct_TARGET_RANLIB" # Let the user override the test.
19786 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19787 for as_dir
in $PATH
19790 test -z "$as_dir" && as_dir
=.
19791 for ac_exec_ext
in '' $ac_executable_extensions; do
19792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19793 ac_cv_prog_ac_ct_TARGET_RANLIB
="ranlib"
19794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19803 ac_ct_TARGET_RANLIB
=$ac_cv_prog_ac_ct_TARGET_RANLIB
19804 if test -n "$ac_ct_TARGET_RANLIB"; then
19805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_RANLIB" >&5
19806 $as_echo "$ac_ct_TARGET_RANLIB" >&6; }
19808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19809 $as_echo "no" >&6; }
19812 if test "x$ac_ct_TARGET_RANLIB" = x
; then
19815 case $cross_compiling:$ac_tool_warned in
19817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19819 ac_tool_warned
=yes ;;
19821 TARGET_RANLIB
=$ac_ct_TARGET_RANLIB
19824 TARGET_RANLIB
="$ac_cv_prog_TARGET_RANLIB"
19827 if test -n "$ac_tool_prefix"; then
19828 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19829 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
19830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19831 $as_echo_n "checking for $ac_word... " >&6; }
19832 if ${ac_cv_prog_TARGET_STRIP+:} false
; then :
19833 $as_echo_n "(cached) " >&6
19835 if test -n "$TARGET_STRIP"; then
19836 ac_cv_prog_TARGET_STRIP
="$TARGET_STRIP" # Let the user override the test.
19838 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19839 for as_dir
in $PATH
19842 test -z "$as_dir" && as_dir
=.
19843 for ac_exec_ext
in '' $ac_executable_extensions; do
19844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19845 ac_cv_prog_TARGET_STRIP
="${ac_tool_prefix}strip"
19846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19855 TARGET_STRIP
=$ac_cv_prog_TARGET_STRIP
19856 if test -n "$TARGET_STRIP"; then
19857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_STRIP" >&5
19858 $as_echo "$TARGET_STRIP" >&6; }
19860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19861 $as_echo "no" >&6; }
19866 if test -z "$ac_cv_prog_TARGET_STRIP"; then
19867 ac_ct_TARGET_STRIP
=$TARGET_STRIP
19868 # Extract the first word of "strip", so it can be a program name with args.
19869 set dummy strip
; ac_word
=$2
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19871 $as_echo_n "checking for $ac_word... " >&6; }
19872 if ${ac_cv_prog_ac_ct_TARGET_STRIP+:} false
; then :
19873 $as_echo_n "(cached) " >&6
19875 if test -n "$ac_ct_TARGET_STRIP"; then
19876 ac_cv_prog_ac_ct_TARGET_STRIP
="$ac_ct_TARGET_STRIP" # Let the user override the test.
19878 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19879 for as_dir
in $PATH
19882 test -z "$as_dir" && as_dir
=.
19883 for ac_exec_ext
in '' $ac_executable_extensions; do
19884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19885 ac_cv_prog_ac_ct_TARGET_STRIP
="strip"
19886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19895 ac_ct_TARGET_STRIP
=$ac_cv_prog_ac_ct_TARGET_STRIP
19896 if test -n "$ac_ct_TARGET_STRIP"; then
19897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_STRIP" >&5
19898 $as_echo "$ac_ct_TARGET_STRIP" >&6; }
19900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19901 $as_echo "no" >&6; }
19904 if test "x$ac_ct_TARGET_STRIP" = x
; then
19907 case $cross_compiling:$ac_tool_warned in
19909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19911 ac_tool_warned
=yes ;;
19913 TARGET_STRIP
=$ac_ct_TARGET_STRIP
19916 TARGET_STRIP
="$ac_cv_prog_TARGET_STRIP"
19919 if test -n "$ac_tool_prefix"; then
19920 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
19921 set dummy
${ac_tool_prefix}nm
; ac_word
=$2
19922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19923 $as_echo_n "checking for $ac_word... " >&6; }
19924 if ${ac_cv_prog_TARGET_NM+:} false
; then :
19925 $as_echo_n "(cached) " >&6
19927 if test -n "$TARGET_NM"; then
19928 ac_cv_prog_TARGET_NM
="$TARGET_NM" # Let the user override the test.
19930 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19931 for as_dir
in $PATH
19934 test -z "$as_dir" && as_dir
=.
19935 for ac_exec_ext
in '' $ac_executable_extensions; do
19936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19937 ac_cv_prog_TARGET_NM
="${ac_tool_prefix}nm"
19938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19947 TARGET_NM
=$ac_cv_prog_TARGET_NM
19948 if test -n "$TARGET_NM"; then
19949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_NM" >&5
19950 $as_echo "$TARGET_NM" >&6; }
19952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19953 $as_echo "no" >&6; }
19958 if test -z "$ac_cv_prog_TARGET_NM"; then
19959 ac_ct_TARGET_NM
=$TARGET_NM
19960 # Extract the first word of "nm", so it can be a program name with args.
19961 set dummy nm
; ac_word
=$2
19962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19963 $as_echo_n "checking for $ac_word... " >&6; }
19964 if ${ac_cv_prog_ac_ct_TARGET_NM+:} false
; then :
19965 $as_echo_n "(cached) " >&6
19967 if test -n "$ac_ct_TARGET_NM"; then
19968 ac_cv_prog_ac_ct_TARGET_NM
="$ac_ct_TARGET_NM" # Let the user override the test.
19970 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19971 for as_dir
in $PATH
19974 test -z "$as_dir" && as_dir
=.
19975 for ac_exec_ext
in '' $ac_executable_extensions; do
19976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19977 ac_cv_prog_ac_ct_TARGET_NM
="nm"
19978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19987 ac_ct_TARGET_NM
=$ac_cv_prog_ac_ct_TARGET_NM
19988 if test -n "$ac_ct_TARGET_NM"; then
19989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_NM" >&5
19990 $as_echo "$ac_ct_TARGET_NM" >&6; }
19992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19993 $as_echo "no" >&6; }
19996 if test "x$ac_ct_TARGET_NM" = x
; then
19999 case $cross_compiling:$ac_tool_warned in
20001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20003 ac_tool_warned
=yes ;;
20005 TARGET_NM
=$ac_ct_TARGET_NM
20008 TARGET_NM
="$ac_cv_prog_TARGET_NM"
20012 ac_tool_prefix
="$tmp_ac_tool_prefix"
20014 if test "x$TARGET_CC" = x
; then
20017 if test "x$TARGET_RANLIB" = x
; then
20018 TARGET_RANLIB
=$RANLIB
20020 if test -n "$ac_tool_prefix"; then
20021 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
20022 set dummy
${ac_tool_prefix}objcopy
; ac_word
=$2
20023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20024 $as_echo_n "checking for $ac_word... " >&6; }
20025 if ${ac_cv_prog_OBJCOPY+:} false
; then :
20026 $as_echo_n "(cached) " >&6
20028 if test -n "$OBJCOPY"; then
20029 ac_cv_prog_OBJCOPY
="$OBJCOPY" # Let the user override the test.
20031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20032 for as_dir
in $PATH
20035 test -z "$as_dir" && as_dir
=.
20036 for ac_exec_ext
in '' $ac_executable_extensions; do
20037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20038 ac_cv_prog_OBJCOPY
="${ac_tool_prefix}objcopy"
20039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20048 OBJCOPY
=$ac_cv_prog_OBJCOPY
20049 if test -n "$OBJCOPY"; then
20050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
20051 $as_echo "$OBJCOPY" >&6; }
20053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20054 $as_echo "no" >&6; }
20059 if test -z "$ac_cv_prog_OBJCOPY"; then
20060 ac_ct_OBJCOPY
=$OBJCOPY
20061 # Extract the first word of "objcopy", so it can be a program name with args.
20062 set dummy objcopy
; ac_word
=$2
20063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20064 $as_echo_n "checking for $ac_word... " >&6; }
20065 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false
; then :
20066 $as_echo_n "(cached) " >&6
20068 if test -n "$ac_ct_OBJCOPY"; then
20069 ac_cv_prog_ac_ct_OBJCOPY
="$ac_ct_OBJCOPY" # Let the user override the test.
20071 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20072 for as_dir
in $PATH
20075 test -z "$as_dir" && as_dir
=.
20076 for ac_exec_ext
in '' $ac_executable_extensions; do
20077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20078 ac_cv_prog_ac_ct_OBJCOPY
="objcopy"
20079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20088 ac_ct_OBJCOPY
=$ac_cv_prog_ac_ct_OBJCOPY
20089 if test -n "$ac_ct_OBJCOPY"; then
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
20091 $as_echo "$ac_ct_OBJCOPY" >&6; }
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20094 $as_echo "no" >&6; }
20097 if test "x$ac_ct_OBJCOPY" = x
; then
20100 case $cross_compiling:$ac_tool_warned in
20102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20104 ac_tool_warned
=yes ;;
20106 OBJCOPY
=$ac_ct_OBJCOPY
20109 OBJCOPY
="$ac_cv_prog_OBJCOPY"
20112 if test -n "$ac_tool_prefix"; then
20113 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
20114 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
20115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20116 $as_echo_n "checking for $ac_word... " >&6; }
20117 if ${ac_cv_prog_STRIP+:} false
; then :
20118 $as_echo_n "(cached) " >&6
20120 if test -n "$STRIP"; then
20121 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
20123 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20124 for as_dir
in $PATH
20127 test -z "$as_dir" && as_dir
=.
20128 for ac_exec_ext
in '' $ac_executable_extensions; do
20129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20130 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
20131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20140 STRIP
=$ac_cv_prog_STRIP
20141 if test -n "$STRIP"; then
20142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
20143 $as_echo "$STRIP" >&6; }
20145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20146 $as_echo "no" >&6; }
20151 if test -z "$ac_cv_prog_STRIP"; then
20153 # Extract the first word of "strip", so it can be a program name with args.
20154 set dummy strip
; ac_word
=$2
20155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20156 $as_echo_n "checking for $ac_word... " >&6; }
20157 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
20158 $as_echo_n "(cached) " >&6
20160 if test -n "$ac_ct_STRIP"; then
20161 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
20163 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20164 for as_dir
in $PATH
20167 test -z "$as_dir" && as_dir
=.
20168 for ac_exec_ext
in '' $ac_executable_extensions; do
20169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20170 ac_cv_prog_ac_ct_STRIP
="strip"
20171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20180 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
20181 if test -n "$ac_ct_STRIP"; then
20182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
20183 $as_echo "$ac_ct_STRIP" >&6; }
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20186 $as_echo "no" >&6; }
20189 if test "x$ac_ct_STRIP" = x
; then
20192 case $cross_compiling:$ac_tool_warned in
20194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20196 ac_tool_warned
=yes ;;
20201 STRIP
="$ac_cv_prog_STRIP"
20204 if test "x$TARGET_STRIP" = x
; then
20205 TARGET_STRIP
=$STRIP
20207 if test -n "$ac_tool_prefix"; then
20208 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
20209 set dummy
${ac_tool_prefix}nm
; ac_word
=$2
20210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20211 $as_echo_n "checking for $ac_word... " >&6; }
20212 if ${ac_cv_prog_NM+:} false
; then :
20213 $as_echo_n "(cached) " >&6
20215 if test -n "$NM"; then
20216 ac_cv_prog_NM
="$NM" # Let the user override the test.
20218 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20219 for as_dir
in $PATH
20222 test -z "$as_dir" && as_dir
=.
20223 for ac_exec_ext
in '' $ac_executable_extensions; do
20224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20225 ac_cv_prog_NM
="${ac_tool_prefix}nm"
20226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20236 if test -n "$NM"; then
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
20238 $as_echo "$NM" >&6; }
20240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20241 $as_echo "no" >&6; }
20246 if test -z "$ac_cv_prog_NM"; then
20248 # Extract the first word of "nm", so it can be a program name with args.
20249 set dummy nm
; ac_word
=$2
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20251 $as_echo_n "checking for $ac_word... " >&6; }
20252 if ${ac_cv_prog_ac_ct_NM+:} false
; then :
20253 $as_echo_n "(cached) " >&6
20255 if test -n "$ac_ct_NM"; then
20256 ac_cv_prog_ac_ct_NM
="$ac_ct_NM" # Let the user override the test.
20258 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20259 for as_dir
in $PATH
20262 test -z "$as_dir" && as_dir
=.
20263 for ac_exec_ext
in '' $ac_executable_extensions; do
20264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20265 ac_cv_prog_ac_ct_NM
="nm"
20266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20275 ac_ct_NM
=$ac_cv_prog_ac_ct_NM
20276 if test -n "$ac_ct_NM"; then
20277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
20278 $as_echo "$ac_ct_NM" >&6; }
20280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20281 $as_echo "no" >&6; }
20284 if test "x$ac_ct_NM" = x
; then
20287 case $cross_compiling:$ac_tool_warned in
20289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20291 ac_tool_warned
=yes ;;
20296 NM
="$ac_cv_prog_NM"
20299 if test "x$TARGET_NM" = x
; then
20310 # Test the C compiler for the target environment.
20312 tmp_CFLAGS
="$CFLAGS"
20313 tmp_LDFLAGS
="$LDFLAGS"
20314 tmp_CPPFLAGS
="$CPPFLAGS"
20317 CFLAGS
="$TARGET_CFLAGS"
20318 CPPFLAGS
="$TARGET_CPPFLAGS"
20319 LDFLAGS
="$TARGET_LDFLAGS"
20323 WARN_FLAGS
="-Wall -W -Wshadow -Wold-style-definition -Wpointer-arith -Wundef -Wextra -Waddress -Wattributes -Wcast-align -Wchar-subscripts -Wcomment -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wempty-body -Wendif-labels -Wfloat-equal -Wformat-extra-args -Wformat-security -Wformat-y2k -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmain -Wmissing-braces -Wmissing-field-initializers -Wmissing-format-attribute -Wmissing-noreturn -Wmultichar -Wnonnull -Woverflow -Wparentheses -Wpointer-arith -Wpointer-to-int-cast -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare -Wstrict-aliasing -Wswitch -Wtrigraphs -Wundef -Wunknown-pragmas -Wunused -Wunused-function -Wunused-label -Wunused-parameter -Wunused-value -Wunused-variable -Wvariadic-macros -Wvolatile-register-var -Wwrite-strings -Wnested-externs -Wstrict-prototypes -Wpointer-sign"
20324 HOST_CFLAGS
="$HOST_CFLAGS $WARN_FLAGS"
20325 TARGET_CFLAGS
="$TARGET_CFLAGS $WARN_FLAGS -g -Wredundant-decls -Wmissing-prototypes -Wmissing-declarations"
20326 TARGET_CCASFLAGS
="$TARGET_CCASFLAGS -g"
20328 # Force no alignment to save space on i386.
20329 if test "x$target_cpu" = xi386
; then
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -falign-loops works" >&5
20331 $as_echo_n "checking whether -falign-loops works... " >&6; }
20332 if ${grub_cv_cc_falign_loop+:} false
; then :
20333 $as_echo_n "(cached) " >&6
20336 CFLAGS
="$CFLAGS -falign-loops=1"
20337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20338 /* end confdefs.h. */
20348 if ac_fn_c_try_compile
"$LINENO"; then :
20349 grub_cv_cc_falign_loop
=yes
20351 grub_cv_cc_falign_loop
=no
20353 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_falign_loop" >&5
20357 $as_echo "$grub_cv_cc_falign_loop" >&6; }
20359 if test "x$grub_cv_cc_falign_loop" = xyes
; then
20360 TARGET_CFLAGS
="$TARGET_CFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
20362 TARGET_CFLAGS
="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
20365 # Some toolchains enable these features by default, but they need
20366 # registers that aren't set up properly in GRUB.
20367 TARGET_CFLAGS
="$TARGET_CFLAGS -mno-mmx -mno-sse -mno-sse2 -mno-3dnow"
20370 # By default, GCC 4.4 generates .eh_frame sections containing unwind
20371 # information in some cases where it previously did not. GRUB doesn't need
20372 # these and they just use up vital space. Restore the old compiler
20374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fno-dwarf2-cfi-asm works" >&5
20375 $as_echo_n "checking whether -fno-dwarf2-cfi-asm works... " >&6; }
20376 if ${grub_cv_cc_fno_dwarf2_cfi_asm+:} false
; then :
20377 $as_echo_n "(cached) " >&6
20380 SAVE_CFLAGS
="$CFLAGS"
20381 CFLAGS
="$CFLAGS -fno-dwarf2-cfi-asm"
20382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20383 /* end confdefs.h. */
20393 if ac_fn_c_try_compile
"$LINENO"; then :
20394 grub_cv_cc_fno_dwarf2_cfi_asm
=yes
20396 grub_cv_cc_fno_dwarf2_cfi_asm
=no
20398 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20399 CFLAGS
="$SAVE_CFLAGS"
20402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_fno_dwarf2_cfi_asm" >&5
20403 $as_echo "$grub_cv_cc_fno_dwarf2_cfi_asm" >&6; }
20405 if test "x$grub_cv_cc_fno_dwarf2_cfi_asm" = xyes
; then
20406 TARGET_CFLAGS
="$TARGET_CFLAGS -fno-dwarf2-cfi-asm"
20409 # By default, GCC 4.6 generates .eh_frame sections containing unwind
20410 # information in some cases where it previously did not. GRUB doesn't need
20411 # these and they just use up vital space. Restore the old compiler
20413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fno-asynchronous-unwind-tables works" >&5
20414 $as_echo_n "checking whether -fno-asynchronous-unwind-tables works... " >&6; }
20415 if ${grub_cv_cc_fno_asynchronous_unwind_tables+:} false
; then :
20416 $as_echo_n "(cached) " >&6
20419 SAVE_CFLAGS
="$CFLAGS"
20420 CFLAGS
="$CFLAGS -fno-dwarf2-cfi-asm"
20421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20422 /* end confdefs.h. */
20432 if ac_fn_c_try_compile
"$LINENO"; then :
20433 grub_cv_cc_fno_asynchronous_unwind_tables
=yes
20435 grub_cv_cc_fno_asynchronous_unwind_tables
=no
20437 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20438 CFLAGS
="$SAVE_CFLAGS"
20441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_fno_asynchronous_unwind_tables" >&5
20442 $as_echo "$grub_cv_cc_fno_asynchronous_unwind_tables" >&6; }
20444 if test "x$grub_cv_cc_fno_asynchronous_unwind_tables" = xyes
; then
20445 TARGET_CFLAGS
="$TARGET_CFLAGS -fno-asynchronous-unwind-tables"
20449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our target compiler is apple cc" >&5
20450 $as_echo_n "checking whether our target compiler is apple cc... " >&6; }
20451 if ${grub_cv_apple_target_cc+:} false
; then :
20452 $as_echo_n "(cached) " >&6
20454 if $CC -v 2>&1 |
grep "Apple Inc." > /dev
/null
; then
20455 grub_cv_apple_target_cc
=yes
20457 grub_cv_apple_target_cc
=no
20463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_apple_target_cc" >&5
20464 $as_echo "$grub_cv_apple_target_cc" >&6; }
20465 if test x
$grub_cv_apple_target_cc = xyes
; then
20466 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS -fnested-functions"
20468 CFLAGS
="$CFLAGS -fnested-functions"
20470 # Extract the first word of "objconv", so it can be a program name with args.
20471 set dummy objconv
; ac_word
=$2
20472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20473 $as_echo_n "checking for $ac_word... " >&6; }
20474 if ${ac_cv_prog_OBJCONV+:} false
; then :
20475 $as_echo_n "(cached) " >&6
20477 if test -n "$OBJCONV"; then
20478 ac_cv_prog_OBJCONV
="$OBJCONV" # Let the user override the test.
20480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20481 for as_dir
in $PATH
20484 test -z "$as_dir" && as_dir
=.
20485 for ac_exec_ext
in '' $ac_executable_extensions; do
20486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20487 ac_cv_prog_OBJCONV
="objconv"
20488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20497 OBJCONV
=$ac_cv_prog_OBJCONV
20498 if test -n "$OBJCONV"; then
20499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCONV" >&5
20500 $as_echo "$OBJCONV" >&6; }
20502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20503 $as_echo "no" >&6; }
20507 if test "x$OBJCONV" = x
; then
20508 # Extract the first word of "objconv", so it can be a program name with args.
20509 set dummy objconv
; ac_word
=$2
20510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20511 $as_echo_n "checking for $ac_word... " >&6; }
20512 if ${ac_cv_prog_OBJCONV+:} false
; then :
20513 $as_echo_n "(cached) " >&6
20515 if test -n "$OBJCONV"; then
20516 ac_cv_prog_OBJCONV
="$OBJCONV" # Let the user override the test.
20518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20522 test -z "$as_dir" && as_dir
=.
20523 for ac_exec_ext
in '' $ac_executable_extensions; do
20524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20525 ac_cv_prog_OBJCONV
="./objconv"
20526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20535 OBJCONV
=$ac_cv_prog_OBJCONV
20536 if test -n "$OBJCONV"; then
20537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCONV" >&5
20538 $as_echo "$OBJCONV" >&6; }
20540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20541 $as_echo "no" >&6; }
20546 if test "x$OBJCONV" = x
; then
20547 as_fn_error $?
"objconv not found which is required when building with apple compiler" "$LINENO" 5
20549 TARGET_IMG_LDSCRIPT
=
20550 TARGET_IMG_CFLAGS
="-static"
20551 TARGET_IMG_LDFLAGS
='-nostdlib -static -Wl,-preload -Wl,-segalign,20'
20552 TARGET_IMG_LDFLAGS_AC
='-nostdlib -static -Wl,-preload -Wl,-segalign,20'
20553 TARGET_IMG_BASE_LDOPT
="-Wl,-image_base"
20554 TARGET_LDFLAGS_OLDMAGIC
=""
20557 TARGET_LDFLAGS_OLDMAGIC
="-Wl,-N"
20558 # Use linker script if present, otherwise use builtin -N script.
20559 if test -f "${srcdir}/${grub_coredir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"; then
20560 TARGET_IMG_LDSCRIPT
='$(top_srcdir)'"/${grub_coredir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"
20561 TARGET_IMG_LDFLAGS
="-Wl,-T${TARGET_IMG_LDSCRIPT}"
20562 TARGET_IMG_LDFLAGS_AC
="-Wl,-T${srcdir}/${grub_coredir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"
20563 TARGET_IMG_BASE_LDOPT
="-Wl,-Ttext"
20565 TARGET_IMG_LDSCRIPT
=
20566 TARGET_IMG_LDFLAGS
='-Wl,-N'
20567 TARGET_IMG_LDFLAGS_AC
='-Wl,-N'
20568 TARGET_IMG_BASE_LDOPT
="-Wl,-Ttext"
20575 # For platforms where ELF is not the default link format.
20576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for command to convert module to ELF format" >&5
20577 $as_echo_n "checking for command to convert module to ELF format... " >&6; }
20578 case "${target_os}" in
20579 cygwin
) TARGET_OBJ2ELF
='$(top_builddir)/grub-pe2elf';
20580 # FIXME: put proper test here
20581 NEED_REGISTER_FRAME_INFO
=1
20583 *) NEED_REGISTER_FRAME_INFO
=0 ;;
20585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_OBJ2ELF" >&5
20586 $as_echo "$TARGET_OBJ2ELF" >&6; }
20589 # Check whether --enable-efiemu was given.
20590 if test "${enable_efiemu+set}" = set; then :
20591 enableval
=$enable_efiemu;
20594 if test x
"$enable_efiemu" = xno
; then
20595 efiemu_excuse
="explicitly disabled"
20597 if test x
"$target_cpu" != xi386
; then
20598 efiemu_excuse
="only available on i386"
20600 if test x
"$platform" = xefi
; then
20601 efiemu_excuse
="not available on efi"
20603 if test x
"$efiemu_excuse" = x
; then
20604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether options required for efiemu work" >&5
20605 $as_echo_n "checking whether options required for efiemu work... " >&6; }
20606 if ${grub_cv_cc_efiemu+:} false
; then :
20607 $as_echo_n "(cached) " >&6
20610 SAVED_CFLAGS
="$CFLAGS"
20611 CFLAGS
="$CFLAGS -m64 -mcmodel=large -mno-red-zone -nostdlib"
20612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20613 /* end confdefs.h. */
20623 if ac_fn_c_try_compile
"$LINENO"; then :
20624 grub_cv_cc_efiemu
=yes
20626 grub_cv_cc_efiemu
=no
20628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20629 CFLAGS
="$SAVED_CFLAGS"
20632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_efiemu" >&5
20633 $as_echo "$grub_cv_cc_efiemu" >&6; }
20634 if test x
$grub_cv_cc_efiemu = xno
; then
20635 efiemu_excuse
="cannot compile with -m64 -mcmodel=large -mno-red-zone -nostdlib"
20638 if test x
"$enable_efiemu" = xyes
&& test x
"$efiemu_excuse" != x
; then
20639 as_fn_error $?
"efiemu runtime was explicitly requested but can't be compiled" "$LINENO" 5
20641 if test x
"$efiemu_excuse" = x
; then
20648 if test "x$target_m32" = x1
; then
20649 # Force 32-bit mode.
20650 TARGET_CFLAGS
="$TARGET_CFLAGS -m32"
20651 TARGET_CCASFLAGS
="$TARGET_CCASFLAGS -m32"
20652 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS -m32"
20653 TARGET_LDFLAGS
="$TARGET_LDFLAGS -m32"
20654 TARGET_MODULE_FORMAT
="elf32"
20657 if test "x$target_m64" = x1
; then
20658 # Force 64-bit mode.
20659 TARGET_CFLAGS
="$TARGET_CFLAGS -m64"
20660 TARGET_CCASFLAGS
="$TARGET_CCASFLAGS -m64"
20661 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS -m64"
20662 TARGET_LDFLAGS
="$TARGET_LDFLAGS -m64"
20663 TARGET_MODULE_FORMAT
="elf64"
20666 if test "$target_cpu"-"$platform" = x86_64-efi
; then
20667 # Use large model to support 4G memory
20668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mcmodel=large works" >&5
20669 $as_echo_n "checking whether option -mcmodel=large works... " >&6; }
20670 if ${grub_cv_cc_mcmodel+:} false
; then :
20671 $as_echo_n "(cached) " >&6
20674 SAVED_CFLAGS
=$CFLAGS
20675 CFLAGS
="$CFLAGS -m64 -mcmodel=large"
20676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20677 /* end confdefs.h. */
20687 if ac_fn_c_try_compile
"$LINENO"; then :
20688 grub_cv_cc_mcmodel
=yes
20690 grub_cv_cc_mcmodel
=no
20692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_mcmodel" >&5
20696 $as_echo "$grub_cv_cc_mcmodel" >&6; }
20697 if test "x$grub_cv_cc_mcmodel" = xno
; then
20698 as_fn_error $?
"-mcmodel=large not supported. Upgrade your gcc." "$LINENO" 5
20700 TARGET_CFLAGS
="$TARGET_CFLAGS -mcmodel=large"
20703 # EFI writes to stack below %rsp, we must not use the red zone
20704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mno-red-zone works" >&5
20705 $as_echo_n "checking whether option -mno-red-zone works... " >&6; }
20706 if ${grub_cv_cc_no_red_zone+:} false
; then :
20707 $as_echo_n "(cached) " >&6
20710 CFLAGS
="$CFLAGS -m64 -mno-red-zone"
20711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20712 /* end confdefs.h. */
20722 if ac_fn_c_try_compile
"$LINENO"; then :
20723 grub_cv_cc_no_red_zone
=yes
20725 grub_cv_cc_no_red_zone
=no
20727 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_no_red_zone" >&5
20731 $as_echo "$grub_cv_cc_no_red_zone" >&6; }
20732 if test "x$grub_cv_cc_no_red_zone" = xno
; then
20733 as_fn_error $?
"-mno-red-zone not supported, upgrade your gcc" "$LINENO" 5
20736 TARGET_CFLAGS
="$TARGET_CFLAGS -mno-red-zone"
20740 # Compiler features.
20743 # Need __enable_execute_stack() for nested function trampolines?
20745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' generates calls to \`__enable_execute_stack()'" >&5
20746 $as_echo_n "checking whether \`$CC' generates calls to \`__enable_execute_stack()'... " >&6; }
20747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20748 /* end confdefs.h. */
20750 void f (int (*p) (void));
20753 int nestedfunc (void) { return i; }
20758 if { ac_try
='${CC-cc} ${CFLAGS} -S conftest.c'
20759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20760 (eval $ac_try) 2>&5
20762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20763 test $ac_status = 0; }; } && test -s conftest.s
; then
20766 as_fn_error $?
"${CC-cc} failed to produce assembly code" "$LINENO" 5
20768 if grep __enable_execute_stack conftest.s
>/dev
/null
2>&1; then
20769 NEED_ENABLE_EXECUTE_STACK
=1
20770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20771 $as_echo "yes" >&6; }
20773 NEED_ENABLE_EXECUTE_STACK
=0
20774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20775 $as_echo "no" >&6; }
20780 # Position independent executable.
20782 # Position independent executable.
20784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' has \`-fPIE' as default" >&5
20785 $as_echo_n "checking whether \`$CC' has \`-fPIE' as default... " >&6; }
20786 # Is this a reliable test case?
20787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20788 /* end confdefs.h. */
20795 #error NO __PIE__ DEFINED
20800 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
20801 # `ac_compile' like this correct, after all?
20802 if eval "$ac_compile -S -o conftest.s" 2> /dev
/null
; then
20803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20804 $as_echo "yes" >&6; }
20805 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
20809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20810 $as_echo "no" >&6; }
20813 # Need that, because some distributions ship compilers that include
20814 # `-fPIE' in the default specs.
20815 if [ x
"$pie_possible" = xyes
]; then
20816 TARGET_CFLAGS
="$TARGET_CFLAGS -fno-PIE"
20819 # Position independent executable.
20821 # Position independent executable.
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' has \`-fPIC' as default" >&5
20824 $as_echo_n "checking whether \`$CC' has \`-fPIC' as default... " >&6; }
20825 # Is this a reliable test case?
20826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20827 /* end confdefs.h. */
20834 #error NO __PIC__ DEFINED
20839 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
20840 # `ac_compile' like this correct, after all?
20841 if eval "$ac_compile -S -o conftest.s" 2> /dev
/null
; then
20842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20843 $as_echo "yes" >&6; }
20844 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20849 $as_echo "no" >&6; }
20852 # Need that, because some distributions ship compilers that include
20853 # `-fPIC' in the default specs.
20854 if [ x
"$pic_possible" = xyes
]; then
20855 TARGET_CFLAGS
="$TARGET_CFLAGS -fno-PIC"
20858 # Smashing stack protector.
20860 # Smashing stack protector.
20862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' accepts \`-fstack-protector'" >&5
20863 $as_echo_n "checking whether \`$CC' accepts \`-fstack-protector'... " >&6; }
20864 # Is this a reliable test case?
20865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20866 /* end confdefs.h. */
20868 void foo (void) { volatile char a[8]; a[3]; }
20871 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
20872 # `ac_compile' like this correct, after all?
20873 if eval "$ac_compile -S -fstack-protector -o conftest.s" 2> /dev
/null
; then
20874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20875 $as_echo "yes" >&6; }
20876 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20881 $as_echo "no" >&6; }
20884 # Need that, because some distributions ship compilers that include
20885 # `-fstack-protector' in the default specs.
20886 if test "x$ssp_possible" = xyes
; then
20887 TARGET_CFLAGS
="$TARGET_CFLAGS -fno-stack-protector"
20890 # Smashing stack arg probe.
20892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' accepts \`-mstack-arg-probe'" >&5
20893 $as_echo_n "checking whether \`$CC' accepts \`-mstack-arg-probe'... " >&6; }
20894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20895 /* end confdefs.h. */
20897 void foo (void) { volatile char a[8]; a[3]; }
20900 if eval "$ac_compile -S -mstack-arg-probe -o conftest.s" 2> /dev
/null
; then
20901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20902 $as_echo "yes" >&6; }
20903 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20908 $as_echo "no" >&6; }
20911 # Cygwin's GCC uses alloca() to probe the stackframe on static
20912 # stack allocations above some threshold.
20913 if test x
"$sap_possible" = xyes
; then
20914 TARGET_CFLAGS
="$TARGET_CFLAGS -mno-stack-arg-probe"
20917 # Check whether --enable-werror was given.
20918 if test "${enable_werror+set}" = set; then :
20919 enableval
=$enable_werror;
20922 if test x
"$enable_werror" != xno
; then
20923 TARGET_CFLAGS
="$TARGET_CFLAGS -Werror"
20924 HOST_CFLAGS
="$HOST_CFLAGS -Werror"
20927 TARGET_CPP
="$TARGET_CC -E"
20928 TARGET_CCAS
=$TARGET_CC
20930 GRUB_TARGET_CPU
="${target_cpu}"
20931 GRUB_PLATFORM
="${platform}"
20958 # Set them to their new values for the tests below.
20960 if test "x$TARGET_APPLE_CC" = x1
; then
20961 CFLAGS
="$TARGET_CFLAGS -nostdlib -Wno-error"
20963 CFLAGS
="$TARGET_CFLAGS -nostdlib -Wl,--defsym,___main=0x8100 -Wno-error"
20965 CPPFLAGS
="$TARGET_CPPFLAGS"
20966 if test x
$target_cpu = xi386 ||
test x
$target_cpu = xx86_64
; then
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C symbols get an underscore after compilation" >&5
20975 $as_echo_n "checking if C symbols get an underscore after compilation... " >&6; }
20976 if ${grub_cv_asm_uscore+:} false
; then :
20977 $as_echo_n "(cached) " >&6
20979 cat > conftest.c
<<\EOF
20989 if { ac_try
='${CC-cc} ${CFLAGS} -S conftest.c'
20990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20991 (eval $ac_try) 2>&5
20993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20994 test $ac_status = 0; }; } && test -s conftest.s
; then
20997 as_fn_error $?
"${CC-cc} failed to produce assembly code" "$LINENO" 5
21000 if $EGREP '(^|^_[:alnum])_func' conftest.s
>/dev
/null
2>&1; then
21002 grub_cv_asm_uscore
=yes
21005 grub_cv_asm_uscore
=no
21012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_asm_uscore" >&5
21013 $as_echo "$grub_cv_asm_uscore" >&6; }
21015 if test x
$grub_cv_asm_uscore = xyes
; then
21016 CFLAGS
="$CFLAGS -Wl,--defsym,_abort=_main"
21018 CFLAGS
="$CFLAGS -Wl,--defsym,abort=main"
21021 # Check for libgcc symbols
21022 for ac_func
in __bswapsi2 __bswapdi2 __ashldi3 __ashrdi3 __lshrdi3 __trampoline_setup __ucmpdi2 _restgpr_14_x __ia64_trampoline __udivsi3 __umoddi3 __udivdi3 __divsi3 __modsi3 __umodsi3 __moddi3 __divdi3 __ctzdi2 __ctzsi2
21024 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21025 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
21026 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
21027 cat >>confdefs.h
<<_ACEOF
21028 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21035 if test "x$TARGET_APPLE_CC" = x1
; then
21036 CFLAGS
="$TARGET_CFLAGS -nostdlib"
21038 CFLAGS
="$TARGET_CFLAGS -nostdlib -Wl,--defsym,___main=0x8100"
21042 # Defined in aclocal.m4.
21043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether target compiler is working" >&5
21044 $as_echo_n "checking whether target compiler is working... " >&6; }
21045 if ${grub_cv_prog_target_cc+:} false
; then :
21046 $as_echo_n "(cached) " >&6
21048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21049 /* end confdefs.h. */
21051 asm (".globl start; start:");
21062 if ac_fn_c_try_link
"$LINENO"; then :
21063 grub_cv_prog_target_cc
=yes
21065 grub_cv_prog_target_cc
=no
21067 rm -f core conftest.err conftest.
$ac_objext \
21068 conftest
$ac_exeext conftest.
$ac_ext
21072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_target_cc" >&5
21073 $as_echo "$grub_cv_prog_target_cc" >&6; }
21075 if test "x$grub_cv_prog_target_cc" = xno
; then
21076 as_fn_error $?
"cannot compile for the target" "$LINENO" 5
21079 if test "x$TARGET_APPLE_CC" != x1
; then
21080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${OBJCOPY} works for absolute addresses" >&5
21081 $as_echo_n "checking whether ${OBJCOPY} works for absolute addresses... " >&6; }
21082 if ${grub_cv_prog_objcopy_absolute+:} false
; then :
21083 $as_echo_n "(cached) " >&6
21085 cat > conftest.c
<<\EOF
21090 *((int
*) 0x1000) = 2;
21094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21095 (eval $ac_compile) 2>&5
21097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21098 test $ac_status = 0; } && test -s conftest.o
; then :
21100 as_fn_error $?
"${CC-cc} cannot compile C source code" "$LINENO" 5
21102 grub_cv_prog_objcopy_absolute
=yes
21103 for link_addr
in 0x2000 0x8000 0x7C00; do
21104 if { ac_try
='${CC-cc} ${CFLAGS} -nostdlib ${TARGET_IMG_LDFLAGS_AC} ${TARGET_IMG_BASE_LDOPT},$link_addr conftest.o -o conftest.exec'
21105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21106 (eval $ac_try) 2>&5
21108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21109 test $ac_status = 0; }; }; then :
21111 as_fn_error $?
"${CC-cc} cannot link at address $link_addr" "$LINENO" 5
21113 if { ac_try
='${OBJCOPY-objcopy} --only-section=.text -O binary conftest.exec conftest'
21114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21115 (eval $ac_try) 2>&5
21117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21118 test $ac_status = 0; }; }; then :
21120 as_fn_error $?
"${OBJCOPY-objcopy} cannot create binary files" "$LINENO" 5
21122 if test ! -f conftest.old ||
{ ac_try
='cmp -s conftest.old conftest'
21123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21124 (eval $ac_try) 2>&5
21126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21127 test $ac_status = 0; }; }; then
21128 mv -f conftest conftest.old
21130 grub_cv_prog_objcopy_absolute
=no
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_objcopy_absolute" >&5
21138 $as_echo "$grub_cv_prog_objcopy_absolute" >&6; }
21140 if test "x$grub_cv_prog_objcopy_absolute" = xno
; then
21141 as_fn_error $?
"GRUB requires a working absolute objcopy; upgrade your binutils" "$LINENO" 5
21145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts --build-id=none" >&5
21146 $as_echo_n "checking whether linker accepts --build-id=none... " >&6; }
21147 if ${grub_cv_prog_ld_build_id_none+:} false
; then :
21148 $as_echo_n "(cached) " >&6
21150 save_LDFLAGS
="$LDFLAGS"
21151 LDFLAGS
="$LDFLAGS -Wl,--build-id=none"
21152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21153 /* end confdefs.h. */
21163 if ac_fn_c_try_link
"$LINENO"; then :
21164 grub_cv_prog_ld_build_id_none
=yes
21166 grub_cv_prog_ld_build_id_none
=no
21168 rm -f core conftest.err conftest.
$ac_objext \
21169 conftest
$ac_exeext conftest.
$ac_ext
21170 LDFLAGS
="$save_LDFLAGS"
21174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_ld_build_id_none" >&5
21175 $as_echo "$grub_cv_prog_ld_build_id_none" >&6; }
21177 if test "x$grub_cv_prog_ld_build_id_none" = xyes
; then
21178 TARGET_LDFLAGS
="$TARGET_LDFLAGS -Wl,--build-id=none"
21181 if test "x$target_cpu" = xi386
; then
21182 if test "$platform" != emu
&& test "x$TARGET_APPLE_CC" != x1
; then
21183 if test ! -z "$TARGET_IMG_LDSCRIPT"; then
21184 # Check symbols provided by linker script.
21185 CFLAGS
="$TARGET_CFLAGS -nostdlib ${TARGET_IMG_LDFLAGS_AC} ${TARGET_IMG_BASE_LDOPT},8000 -Wl,--defsym,___main=0x8100"
21188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __bss_start is defined by the compiler" >&5
21189 $as_echo_n "checking if __bss_start is defined by the compiler... " >&6; }
21190 if ${grub_cv_check_uscore_uscore_bss_start_symbol+:} false
; then :
21191 $as_echo_n "(cached) " >&6
21193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21194 /* end confdefs.h. */
21199 asm ("incl __bss_start")
21204 if ac_fn_c_try_link
"$LINENO"; then :
21205 grub_cv_check_uscore_uscore_bss_start_symbol
=yes
21207 grub_cv_check_uscore_uscore_bss_start_symbol
=no
21209 rm -f core conftest.err conftest.
$ac_objext \
21210 conftest
$ac_exeext conftest.
$ac_ext
21214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
21215 $as_echo "$grub_cv_check_uscore_uscore_bss_start_symbol" >&6; }
21217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if edata is defined by the compiler" >&5
21218 $as_echo_n "checking if edata is defined by the compiler... " >&6; }
21219 if ${grub_cv_check_edata_symbol+:} false
; then :
21220 $as_echo_n "(cached) " >&6
21222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21223 /* end confdefs.h. */
21233 if ac_fn_c_try_link
"$LINENO"; then :
21234 grub_cv_check_edata_symbol
=yes
21236 grub_cv_check_edata_symbol
=no
21238 rm -f core conftest.err conftest.
$ac_objext \
21239 conftest
$ac_exeext conftest.
$ac_ext
21243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_edata_symbol" >&5
21244 $as_echo "$grub_cv_check_edata_symbol" >&6; }
21246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _edata is defined by the compiler" >&5
21247 $as_echo_n "checking if _edata is defined by the compiler... " >&6; }
21248 if ${grub_cv_check_uscore_edata_symbol+:} false
; then :
21249 $as_echo_n "(cached) " >&6
21251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21252 /* end confdefs.h. */
21257 asm ("incl _edata")
21262 if ac_fn_c_try_link
"$LINENO"; then :
21263 grub_cv_check_uscore_edata_symbol
=yes
21265 grub_cv_check_uscore_edata_symbol
=no
21267 rm -f core conftest.err conftest.
$ac_objext \
21268 conftest
$ac_exeext conftest.
$ac_ext
21272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_edata_symbol" >&5
21273 $as_echo "$grub_cv_check_uscore_edata_symbol" >&6; }
21275 if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes
; then
21276 BSS_START_SYMBOL
=__bss_start
21277 elif test "x$grub_cv_check_edata_symbol" = xyes
; then
21278 BSS_START_SYMBOL
=edata
21279 elif test "x$grub_cv_check_uscore_edata_symbol" = xyes
; then
21280 BSS_START_SYMBOL
=_edata
21282 as_fn_error $?
"none of __bss_start, edata or _edata is defined" "$LINENO" 5
21286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if end is defined by the compiler" >&5
21287 $as_echo_n "checking if end is defined by the compiler... " >&6; }
21288 if ${grub_cv_check_end_symbol+:} false
; then :
21289 $as_echo_n "(cached) " >&6
21291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21292 /* end confdefs.h. */
21302 if ac_fn_c_try_link
"$LINENO"; then :
21303 grub_cv_check_end_symbol
=yes
21305 grub_cv_check_end_symbol
=no
21307 rm -f core conftest.err conftest.
$ac_objext \
21308 conftest
$ac_exeext conftest.
$ac_ext
21312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_end_symbol" >&5
21313 $as_echo "$grub_cv_check_end_symbol" >&6; }
21315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _end is defined by the compiler" >&5
21316 $as_echo_n "checking if _end is defined by the compiler... " >&6; }
21317 if ${grub_cv_check_uscore_end_symbol+:} false
; then :
21318 $as_echo_n "(cached) " >&6
21320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21321 /* end confdefs.h. */
21331 if ac_fn_c_try_link
"$LINENO"; then :
21332 grub_cv_check_uscore_end_symbol
=yes
21334 grub_cv_check_uscore_end_symbol
=no
21336 rm -f core conftest.err conftest.
$ac_objext \
21337 conftest
$ac_exeext conftest.
$ac_ext
21341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_end_symbol" >&5
21342 $as_echo "$grub_cv_check_uscore_end_symbol" >&6; }
21344 if test "x$grub_cv_check_end_symbol" = xyes
; then
21346 elif test "x$grub_cv_check_uscore_end_symbol" = xyes
; then
21349 as_fn_error $?
"neither end nor _end is defined" "$LINENO" 5
21353 CFLAGS
="$TARGET_CFLAGS"
21355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether addr32 must be in the same line as the instruction" >&5
21356 $as_echo_n "checking whether addr32 must be in the same line as the instruction... " >&6; }
21357 if ${grub_cv_i386_asm_prefix_requirement+:} false
; then :
21358 $as_echo_n "(cached) " >&6
21360 cat > conftest.s
<<\EOF
21362 l1
: addr32 movb
%al
, l1
21365 if { ac_try
='${CC-cc} ${CFLAGS} -c conftest.s'
21366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21367 (eval $ac_try) 2>&5
21369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21370 test $ac_status = 0; }; } && test -s conftest.o
; then
21371 grub_cv_i386_asm_prefix_requirement
=yes
21373 grub_cv_i386_asm_prefix_requirement
=no
21380 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes
; then
21381 grub_tmp_addr32
="addr32"
21382 grub_tmp_data32
="data32"
21384 grub_tmp_addr32
="addr32;"
21385 grub_tmp_data32
="data32;"
21388 ADDR32
=$grub_tmp_addr32
21389 DATA32
=$grub_tmp_data32
21391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_i386_asm_prefix_requirement" >&5
21392 $as_echo "$grub_cv_i386_asm_prefix_requirement" >&6; }
21395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .code16 addr32 assembler support" >&5
21396 $as_echo_n "checking for .code16 addr32 assembler support... " >&6; }
21397 if ${grub_cv_i386_asm_addr32+:} false
; then :
21398 $as_echo_n "(cached) " >&6
21400 cat > conftest.s.
in <<\EOF
21402 l1
: @ADDR32@ movb
%al
, l1
21405 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes
; then
21406 sed -e s
/@ADDR32@
/addr32
/ < conftest.s.
in > conftest.s
21408 sed -e s
/@ADDR32@
/addr32\
;/ < conftest.s.
in > conftest.s
21411 if { ac_try
='${CC-cc} ${CFLAGS} -c conftest.s'
21412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21413 (eval $ac_try) 2>&5
21415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21416 test $ac_status = 0; }; } && test -s conftest.o
; then
21417 grub_cv_i386_asm_addr32
=yes
21419 grub_cv_i386_asm_addr32
=no
21426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_i386_asm_addr32" >&5
21427 $as_echo "$grub_cv_i386_asm_addr32" >&6; }
21430 if test "$platform" != emu
; then
21431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -nostdinc -isystem works" >&5
21432 $as_echo_n "checking whether -nostdinc -isystem works... " >&6; }
21433 if ${grub_cv_cc_isystem+:} false
; then :
21434 $as_echo_n "(cached) " >&6
21437 SAVED_CPPFLAGS
="$CPPFLAGS"
21438 CPPFLAGS
="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`"
21439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21440 /* end confdefs.h. */
21441 #include <stdarg.h>
21442 int va_arg_func (int fixed, va_list args);
21451 if ac_fn_c_try_compile
"$LINENO"; then :
21452 grub_cv_cc_isystem
=yes
21454 grub_cv_cc_isystem
=no
21456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21457 CPPFLAGS
="$SAVED_CPPFLAGS"
21460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_isystem" >&5
21461 $as_echo "$grub_cv_cc_isystem" >&6; }
21463 if test x
"$grub_cv_cc_isystem" = xyes
; then
21464 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`"
21468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-trampolines work" >&5
21469 $as_echo_n "checking whether -Wno-trampolines work... " >&6; }
21470 if ${grub_cv_cc_wnotrampolines+:} false
; then :
21471 $as_echo_n "(cached) " >&6
21474 SAVED_CFLAGS
="$CFLAGS"
21475 # Test for -Wtrampolines rather than -Wno-trampolines to reduce confusion
21476 # in the event of later failures (since -Wno-* is always accepted, but
21477 # produces a diagnostic if something else is wrong).
21478 CFLAGS
="$TARGET_CFLAGS -Wtrampolines"
21479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21480 /* end confdefs.h. */
21481 #include <stdarg.h>
21482 int va_arg_func (int fixed, va_list args);
21491 if ac_fn_c_try_compile
"$LINENO"; then :
21492 grub_cv_cc_wnotrampolines
=yes
21494 grub_cv_cc_wnotrampolines
=no
21496 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21497 CFLAGS
="$SAVED_CFLAGS"
21500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_wnotrampolines" >&5
21501 $as_echo "$grub_cv_cc_wnotrampolines" >&6; }
21503 if test x
"$grub_cv_cc_wnotrampolines" = xyes
; then
21504 TARGET_CFLAGS
="$TARGET_CFLAGS -Wno-trampolines"
21507 # Restore the flags.
21509 CFLAGS
="$tmp_CFLAGS"
21510 CPPFLAGS
="$tmp_CPPFLAGS"
21511 LDFLAGS
="$tmp_LDFLAGS"
21515 # Check for options.
21518 # Memory manager debugging.
21519 # Check whether --enable-mm-debug was given.
21520 if test "${enable_mm_debug+set}" = set; then :
21521 enableval
=$enable_mm_debug;
21522 $as_echo "#define MM_DEBUG 1" >>confdefs.h
21527 # Check whether --enable-cache-stats was given.
21528 if test "${enable_cache_stats+set}" = set; then :
21529 enableval
=$enable_cache_stats;
21533 if test x
$enable_cache_stats = xyes
; then
21540 # Check whether --enable-grub-emu-usb was given.
21541 if test "${enable_grub_emu_usb+set}" = set; then :
21542 enableval
=$enable_grub_emu_usb;
21546 # Check whether --enable-grub-emu-sdl was given.
21547 if test "${enable_grub_emu_sdl+set}" = set; then :
21548 enableval
=$enable_grub_emu_sdl;
21552 # Check whether --enable-grub-emu-pci was given.
21553 if test "${enable_grub_emu_pci+set}" = set; then :
21554 enableval
=$enable_grub_emu_pci;
21558 if test "$platform" = emu
; then
21560 # Check for curses libraries.
21561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wgetch in -lncurses" >&5
21562 $as_echo_n "checking for wgetch in -lncurses... " >&6; }
21563 if ${ac_cv_lib_ncurses_wgetch+:} false
; then :
21564 $as_echo_n "(cached) " >&6
21566 ac_check_lib_save_LIBS
=$LIBS
21567 LIBS
="-lncurses $LIBS"
21568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21569 /* end confdefs.h. */
21571 /* Override any GCC internal prototype to avoid an error.
21572 Use char because int might match the return type of a GCC
21573 builtin and then its argument prototype would still apply. */
21586 if ac_fn_c_try_link
"$LINENO"; then :
21587 ac_cv_lib_ncurses_wgetch
=yes
21589 ac_cv_lib_ncurses_wgetch
=no
21591 rm -f core conftest.err conftest.
$ac_objext \
21592 conftest
$ac_exeext conftest.
$ac_ext
21593 LIBS
=$ac_check_lib_save_LIBS
21595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_wgetch" >&5
21596 $as_echo "$ac_cv_lib_ncurses_wgetch" >&6; }
21597 if test "x$ac_cv_lib_ncurses_wgetch" = xyes
; then :
21598 LIBCURSES
="-lncurses"
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wgetch in -lcurses" >&5
21601 $as_echo_n "checking for wgetch in -lcurses... " >&6; }
21602 if ${ac_cv_lib_curses_wgetch+:} false
; then :
21603 $as_echo_n "(cached) " >&6
21605 ac_check_lib_save_LIBS
=$LIBS
21606 LIBS
="-lcurses $LIBS"
21607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21608 /* end confdefs.h. */
21610 /* Override any GCC internal prototype to avoid an error.
21611 Use char because int might match the return type of a GCC
21612 builtin and then its argument prototype would still apply. */
21625 if ac_fn_c_try_link
"$LINENO"; then :
21626 ac_cv_lib_curses_wgetch
=yes
21628 ac_cv_lib_curses_wgetch
=no
21630 rm -f core conftest.err conftest.
$ac_objext \
21631 conftest
$ac_exeext conftest.
$ac_ext
21632 LIBS
=$ac_check_lib_save_LIBS
21634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_wgetch" >&5
21635 $as_echo "$ac_cv_lib_curses_wgetch" >&6; }
21636 if test "x$ac_cv_lib_curses_wgetch" = xyes
; then :
21637 LIBCURSES
="-lcurses"
21639 missing_ncurses
=true
21645 if [ x
"$missing_ncurses" = x
]; then
21646 # Check for headers.
21647 for ac_header
in ncurses
/curses.h
21649 ac_fn_c_check_header_mongrel
"$LINENO" "ncurses/curses.h" "ac_cv_header_ncurses_curses_h" "$ac_includes_default"
21650 if test "x$ac_cv_header_ncurses_curses_h" = xyes
; then :
21651 cat >>confdefs.h
<<_ACEOF
21652 #define HAVE_NCURSES_CURSES_H 1
21656 for ac_header
in ncurses.h
21658 ac_fn_c_check_header_mongrel
"$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
21659 if test "x$ac_cv_header_ncurses_h" = xyes
; then :
21660 cat >>confdefs.h
<<_ACEOF
21661 #define HAVE_NCURSES_H 1
21665 for ac_header
in curses.h
21667 ac_fn_c_check_header_mongrel
"$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21668 if test "x$ac_cv_header_curses_h" = xyes
; then :
21669 cat >>confdefs.h
<<_ACEOF
21670 #define HAVE_CURSES_H 1
21674 missing_ncurses
=true
21688 if test x
"$missing_ncurses" = xtrue
; then
21689 as_fn_error $?
"grub-emu can't be compiled without ncurses" "$LINENO" 5
21692 if test x
"$enable_grub_emu_usb" != xyes
; then
21693 grub_emu_usb_excuse
="not enabled"
21696 if test x
"$enable_grub_emu_pci" = xyes
; then
21697 grub_emu_usb_excuse
="conflicts with PCI support"
21700 if [ x
"$grub_emu_usb_excuse" = x
]; then
21701 # Check for libusb libraries.
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_claim_interface in -lusb" >&5
21703 $as_echo_n "checking for usb_claim_interface in -lusb... " >&6; }
21704 if ${ac_cv_lib_usb_usb_claim_interface+:} false
; then :
21705 $as_echo_n "(cached) " >&6
21707 ac_check_lib_save_LIBS
=$LIBS
21709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21710 /* end confdefs.h. */
21712 /* Override any GCC internal prototype to avoid an error.
21713 Use char because int might match the return type of a GCC
21714 builtin and then its argument prototype would still apply. */
21718 char usb_claim_interface ();
21722 return usb_claim_interface ();
21727 if ac_fn_c_try_link
"$LINENO"; then :
21728 ac_cv_lib_usb_usb_claim_interface
=yes
21730 ac_cv_lib_usb_usb_claim_interface
=no
21732 rm -f core conftest.err conftest.
$ac_objext \
21733 conftest
$ac_exeext conftest.
$ac_ext
21734 LIBS
=$ac_check_lib_save_LIBS
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_claim_interface" >&5
21737 $as_echo "$ac_cv_lib_usb_usb_claim_interface" >&6; }
21738 if test "x$ac_cv_lib_usb_usb_claim_interface" = xyes
; then :
21741 grub_emu_usb_excuse
="need libusb library"
21746 if [ x
"$grub_emu_usb_excuse" = x
]; then
21747 # Check for headers.
21748 for ac_header
in usb.h
21750 ac_fn_c_check_header_mongrel
"$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
21751 if test "x$ac_cv_header_usb_h" = xyes
; then :
21752 cat >>confdefs.h
<<_ACEOF
21753 #define HAVE_USB_H 1
21757 grub_emu_usb_excuse
="need libusb headers"
21763 if test x
"$enable_grub_emu_usb" = xyes
&& test x
"$grub_emu_usb_excuse" != x
; then
21764 as_fn_error $?
"USB support for grub-emu was explicitly requested but can't be compiled" "$LINENO" 5
21766 if test x
"$grub_emu_usb_excuse" = x
; then
21767 enable_grub_emu_usb
=yes
21769 enable_grub_emu_usb
=no
21772 if test x
"$enable_grub_emu_sdl" = xno
; then
21773 grub_emu_sdl_excuse
="explicitely disabled"
21775 if [ x
"$grub_emu_sdl_excuse" = x
]; then
21776 # Check for libSDL libraries.
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL" >&5
21778 $as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
21779 if ${ac_cv_lib_SDL_SDL_Init+:} false
; then :
21780 $as_echo_n "(cached) " >&6
21782 ac_check_lib_save_LIBS
=$LIBS
21784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21785 /* end confdefs.h. */
21787 /* Override any GCC internal prototype to avoid an error.
21788 Use char because int might match the return type of a GCC
21789 builtin and then its argument prototype would still apply. */
21797 return SDL_Init ();
21802 if ac_fn_c_try_link
"$LINENO"; then :
21803 ac_cv_lib_SDL_SDL_Init
=yes
21805 ac_cv_lib_SDL_SDL_Init
=no
21807 rm -f core conftest.err conftest.
$ac_objext \
21808 conftest
$ac_exeext conftest.
$ac_ext
21809 LIBS
=$ac_check_lib_save_LIBS
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Init" >&5
21812 $as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
21813 if test "x$ac_cv_lib_SDL_SDL_Init" = xyes
; then :
21816 grub_emu_sdl_excuse
="libSDL libraries are required to build \`grub-emu' with SDL support"
21822 if [ x
"$grub_emu_sdl_excuse" = x
]; then
21823 # Check for headers.
21824 for ac_header
in SDL
/SDL.h
21826 ac_fn_c_check_header_mongrel
"$LINENO" "SDL/SDL.h" "ac_cv_header_SDL_SDL_h" "$ac_includes_default"
21827 if test "x$ac_cv_header_SDL_SDL_h" = xyes
; then :
21828 cat >>confdefs.h
<<_ACEOF
21829 #define HAVE_SDL_SDL_H 1
21833 grub_emu_sdl_excuse
="libSDL header file is required to build \`grub-emu' with SDL support"
21840 if test x
"enable_grub_emu_sdl" = xyes
&& test x
"$grub_emu_sdl_excuse" != x
; then
21841 as_fn_error $?
"SDL support for grub-emu was explicitely requested but can't be compiled" "$LINENO" 5
21843 if test x
"$grub_emu_sdl_excuse" = x
; then
21844 enable_grub_emu_sdl
=yes
21846 enable_grub_emu_sdl
=no
21849 if test x
"$enable_grub_emu_pci" != xyes
; then
21850 grub_emu_pci_excuse
="not enabled"
21853 if test x
"$enable_grub_emu_usb" = xyes
; then
21854 grub_emu_pci_excuse
="conflicts with USB support"
21857 if [ x
"$grub_emu_pci_excuse" = x
]; then
21858 # Check for libpci libraries.
21859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pci_system_init in -lpciaccess" >&5
21860 $as_echo_n "checking for pci_system_init in -lpciaccess... " >&6; }
21861 if ${ac_cv_lib_pciaccess_pci_system_init+:} false
; then :
21862 $as_echo_n "(cached) " >&6
21864 ac_check_lib_save_LIBS
=$LIBS
21865 LIBS
="-lpciaccess $LIBS"
21866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21867 /* end confdefs.h. */
21869 /* Override any GCC internal prototype to avoid an error.
21870 Use char because int might match the return type of a GCC
21871 builtin and then its argument prototype would still apply. */
21875 char pci_system_init ();
21879 return pci_system_init ();
21884 if ac_fn_c_try_link
"$LINENO"; then :
21885 ac_cv_lib_pciaccess_pci_system_init
=yes
21887 ac_cv_lib_pciaccess_pci_system_init
=no
21889 rm -f core conftest.err conftest.
$ac_objext \
21890 conftest
$ac_exeext conftest.
$ac_ext
21891 LIBS
=$ac_check_lib_save_LIBS
21893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pciaccess_pci_system_init" >&5
21894 $as_echo "$ac_cv_lib_pciaccess_pci_system_init" >&6; }
21895 if test "x$ac_cv_lib_pciaccess_pci_system_init" = xyes
; then :
21896 LIBPCIACCESS
="-lpciaccess"
21898 grub_emu_pci_excuse
="need libpciaccess library"
21903 if [ x
"$grub_emu_pci_excuse" = x
]; then
21904 # Check for headers.
21905 for ac_header
in pci
/pci.h
21907 ac_fn_c_check_header_mongrel
"$LINENO" "pci/pci.h" "ac_cv_header_pci_pci_h" "$ac_includes_default"
21908 if test "x$ac_cv_header_pci_pci_h" = xyes
; then :
21909 cat >>confdefs.h
<<_ACEOF
21910 #define HAVE_PCI_PCI_H 1
21914 grub_emu_pci_excuse
="need libpciaccess headers"
21921 if test x
"$grub_emu_pci_excuse" = x
; then
21922 enable_grub_emu_pci
=yes
21925 enable_grub_emu_pci
=no
21933 # Check whether --enable-grub-mkfont was given.
21934 if test "${enable_grub_mkfont+set}" = set; then :
21935 enableval
=$enable_grub_mkfont;
21938 if test x
"$enable_grub_mkfont" = xno
; then
21939 grub_mkfont_excuse
="explicitly disabled"
21942 if test x
"$grub_mkfont_excuse" = x
; then
21943 # Check for freetype libraries.
21944 for ac_prog
in freetype-config
21946 # Extract the first word of "$ac_prog", so it can be a program name with args.
21947 set dummy
$ac_prog; ac_word
=$2
21948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21949 $as_echo_n "checking for $ac_word... " >&6; }
21950 if ${ac_cv_prog_FREETYPE+:} false
; then :
21951 $as_echo_n "(cached) " >&6
21953 if test -n "$FREETYPE"; then
21954 ac_cv_prog_FREETYPE
="$FREETYPE" # Let the user override the test.
21956 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21957 for as_dir
in $PATH
21960 test -z "$as_dir" && as_dir
=.
21961 for ac_exec_ext
in '' $ac_executable_extensions; do
21962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21963 ac_cv_prog_FREETYPE
="$ac_prog"
21964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21973 FREETYPE
=$ac_cv_prog_FREETYPE
21974 if test -n "$FREETYPE"; then
21975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE" >&5
21976 $as_echo "$FREETYPE" >&6; }
21978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21979 $as_echo "no" >&6; }
21983 test -n "$FREETYPE" && break
21986 if test "x$FREETYPE" = x
; then
21987 grub_mkfont_excuse
="need freetype2 library"
21991 if test x
"$grub_mkfont_excuse" = x
; then
21992 # Check for freetype libraries.
21993 freetype_cflags
=`freetype-config --cflags`
21994 freetype_libs
=`freetype-config --libs`
21995 SAVED_CPPFLAGS
="$CPPFLAGS"
21996 CPPFLAGS
="$CPPFLAGS $freetype_cflags"
21997 for ac_header
in ft2build.h
21999 ac_fn_c_check_header_mongrel
"$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
22000 if test "x$ac_cv_header_ft2build_h" = xyes
; then :
22001 cat >>confdefs.h
<<_ACEOF
22002 #define HAVE_FT2BUILD_H 1
22006 grub_mkfont_excuse
="need freetype2 headers"
22011 CPPFLAGS
="$SAVED_CPPFLAGS"
22014 if test x
"$enable_grub_mkfont" = xyes
&& test x
"$grub_mkfont_excuse" != x
; then
22015 as_fn_error $?
"grub-mkfont was explicitly requested but can't be compiled" "$LINENO" 5
22017 if test x
"$grub_mkfont_excuse" = x
; then
22018 enable_grub_mkfont
=yes
22020 enable_grub_mkfont
=no
22022 if test x
"$enable_grub_mkfont" = xno
&& test "x$platform" = xloongson
; then
22023 as_fn_error $?
"loongson port needs grub-mkfont" "$LINENO" 5
22033 if test x
$enable_grub_mkfont = xno
; then
22034 starfield_excuse
="No grub-mkfont"
22037 if test x
"$starfield_excuse" = x
; then
22038 for ext
in pcf pcf.gz bdf bdf.gz ttf ttf.gz
; do
22039 for dir
in .
/usr
/src
/usr
/share
/fonts
/X11
/misc
/usr
/share
/fonts
/truetype
/ttf-dejavu
/usr
/share
/fonts
/dejavu
; do
22040 if test -f "$dir/DejaVuSans.$ext"; then
22041 DJVU_FONT_SOURCE
="$dir/DejaVuSans.$ext"
22047 if test "x$DJVU_FONT_SOURCE" = x
; then
22048 starfield_excuse
="No DejaVu found"
22054 # Check whether --enable-grub-mount was given.
22055 if test "${enable_grub_mount+set}" = set; then :
22056 enableval
=$enable_grub_mount;
22059 if test x
"$enable_grub_mount" = xno
; then
22060 grub_mount_excuse
="explicitly disabled"
22063 if test x
"$grub_mount_excuse" = x
; then
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main_real in -lfuse" >&5
22065 $as_echo_n "checking for fuse_main_real in -lfuse... " >&6; }
22066 if ${ac_cv_lib_fuse_fuse_main_real+:} false
; then :
22067 $as_echo_n "(cached) " >&6
22069 ac_check_lib_save_LIBS
=$LIBS
22070 LIBS
="-lfuse $LIBS"
22071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22072 /* end confdefs.h. */
22074 /* Override any GCC internal prototype to avoid an error.
22075 Use char because int might match the return type of a GCC
22076 builtin and then its argument prototype would still apply. */
22080 char fuse_main_real ();
22084 return fuse_main_real ();
22089 if ac_fn_c_try_link
"$LINENO"; then :
22090 ac_cv_lib_fuse_fuse_main_real
=yes
22092 ac_cv_lib_fuse_fuse_main_real
=no
22094 rm -f core conftest.err conftest.
$ac_objext \
22095 conftest
$ac_exeext conftest.
$ac_ext
22096 LIBS
=$ac_check_lib_save_LIBS
22098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main_real" >&5
22099 $as_echo "$ac_cv_lib_fuse_fuse_main_real" >&6; }
22100 if test "x$ac_cv_lib_fuse_fuse_main_real" = xyes
; then :
22101 cat >>confdefs.h
<<_ACEOF
22102 #define HAVE_LIBFUSE 1
22105 LIBS
="-lfuse $LIBS"
22108 grub_mount_excuse
="need FUSE library"
22113 if test x
"$grub_mount_excuse" = x
; then
22114 # Check for fuse headers.
22115 SAVED_CPPFLAGS
="$CPPFLAGS"
22116 CPPFLAGS
="$CPPFLAGS -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26"
22117 for ac_header
in fuse
/fuse.h
22119 ac_fn_c_check_header_mongrel
"$LINENO" "fuse/fuse.h" "ac_cv_header_fuse_fuse_h" "$ac_includes_default"
22120 if test "x$ac_cv_header_fuse_fuse_h" = xyes
; then :
22121 cat >>confdefs.h
<<_ACEOF
22122 #define HAVE_FUSE_FUSE_H 1
22126 grub_mount_excuse
="need FUSE headers"
22131 CPPFLAGS
="$SAVED_CPPFLAGS"
22134 if test x
"$enable_grub_mount" = xyes
&& test x
"$grub_mount_excuse" != x
; then
22135 as_fn_error $?
"grub-mount was explicitly requested but can't be compiled" "$LINENO" 5
22137 if test x
"$grub_mount_excuse" = x
; then
22138 enable_grub_mount
=yes
22140 enable_grub_mount
=no
22144 # Check whether --enable-device-mapper was given.
22145 if test "${enable_device_mapper+set}" = set; then :
22146 enableval
=$enable_device_mapper;
22149 if test x
"$enable_device_mapper" = xno
; then
22150 device_mapper_excuse
="explicitly disabled"
22153 if test x
"$device_mapper_excuse" = x
; then
22154 # Check for device-mapper header.
22155 ac_fn_c_check_header_mongrel
"$LINENO" "libdevmapper.h" "ac_cv_header_libdevmapper_h" "$ac_includes_default"
22156 if test "x$ac_cv_header_libdevmapper_h" = xyes
; then :
22159 device_mapper_excuse
="need libdevmapper header"
22165 if test x
"$device_mapper_excuse" = x
; then
22166 # Check for device-mapper library.
22167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_create in -ldevmapper" >&5
22168 $as_echo_n "checking for dm_task_create in -ldevmapper... " >&6; }
22169 if ${ac_cv_lib_devmapper_dm_task_create+:} false
; then :
22170 $as_echo_n "(cached) " >&6
22172 ac_check_lib_save_LIBS
=$LIBS
22173 LIBS
="-ldevmapper $LIBS"
22174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22175 /* end confdefs.h. */
22177 /* Override any GCC internal prototype to avoid an error.
22178 Use char because int might match the return type of a GCC
22179 builtin and then its argument prototype would still apply. */
22183 char dm_task_create ();
22187 return dm_task_create ();
22192 if ac_fn_c_try_link
"$LINENO"; then :
22193 ac_cv_lib_devmapper_dm_task_create
=yes
22195 ac_cv_lib_devmapper_dm_task_create
=no
22197 rm -f core conftest.err conftest.
$ac_objext \
22198 conftest
$ac_exeext conftest.
$ac_ext
22199 LIBS
=$ac_check_lib_save_LIBS
22201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_create" >&5
22202 $as_echo "$ac_cv_lib_devmapper_dm_task_create" >&6; }
22203 if test "x$ac_cv_lib_devmapper_dm_task_create" = xyes
; then :
22204 cat >>confdefs.h
<<_ACEOF
22205 #define HAVE_LIBDEVMAPPER 1
22208 LIBS
="-ldevmapper $LIBS"
22211 device_mapper_excuse
="need devmapper library"
22216 if test x
"$device_mapper_excuse" = x
; then
22217 # Check for device-mapper library.
22218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_log_with_errno_init in -ldevmapper" >&5
22219 $as_echo_n "checking for dm_log_with_errno_init in -ldevmapper... " >&6; }
22220 if ${ac_cv_lib_devmapper_dm_log_with_errno_init+:} false
; then :
22221 $as_echo_n "(cached) " >&6
22223 ac_check_lib_save_LIBS
=$LIBS
22224 LIBS
="-ldevmapper $LIBS"
22225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22226 /* end confdefs.h. */
22228 /* Override any GCC internal prototype to avoid an error.
22229 Use char because int might match the return type of a GCC
22230 builtin and then its argument prototype would still apply. */
22234 char dm_log_with_errno_init ();
22238 return dm_log_with_errno_init ();
22243 if ac_fn_c_try_link
"$LINENO"; then :
22244 ac_cv_lib_devmapper_dm_log_with_errno_init
=yes
22246 ac_cv_lib_devmapper_dm_log_with_errno_init
=no
22248 rm -f core conftest.err conftest.
$ac_objext \
22249 conftest
$ac_exeext conftest.
$ac_ext
22250 LIBS
=$ac_check_lib_save_LIBS
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_log_with_errno_init" >&5
22253 $as_echo "$ac_cv_lib_devmapper_dm_log_with_errno_init" >&6; }
22254 if test "x$ac_cv_lib_devmapper_dm_log_with_errno_init" = xyes
; then :
22255 cat >>confdefs.h
<<_ACEOF
22256 #define HAVE_LIBDEVMAPPER 1
22259 LIBS
="-ldevmapper $LIBS"
22262 device_mapper_excuse
="need devmapper library"
22267 if test x
"$device_mapper_excuse" = x
; then
22268 LIBDEVMAPPER
="-ldevmapper";
22270 $as_echo "#define HAVE_DEVICE_MAPPER 1" >>confdefs.h
22277 if test x
$host_kernel = xkfreebsd
; then
22278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for geom_gettree in -lgeom" >&5
22279 $as_echo_n "checking for geom_gettree in -lgeom... " >&6; }
22280 if ${ac_cv_lib_geom_geom_gettree+:} false
; then :
22281 $as_echo_n "(cached) " >&6
22283 ac_check_lib_save_LIBS
=$LIBS
22284 LIBS
="-lgeom $LIBS"
22285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22286 /* end confdefs.h. */
22288 /* Override any GCC internal prototype to avoid an error.
22289 Use char because int might match the return type of a GCC
22290 builtin and then its argument prototype would still apply. */
22294 char geom_gettree ();
22298 return geom_gettree ();
22303 if ac_fn_c_try_link
"$LINENO"; then :
22304 ac_cv_lib_geom_geom_gettree
=yes
22306 ac_cv_lib_geom_geom_gettree
=no
22308 rm -f core conftest.err conftest.
$ac_objext \
22309 conftest
$ac_exeext conftest.
$ac_ext
22310 LIBS
=$ac_check_lib_save_LIBS
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_geom_geom_gettree" >&5
22313 $as_echo "$ac_cv_lib_geom_geom_gettree" >&6; }
22314 if test "x$ac_cv_lib_geom_geom_gettree" = xyes
; then :
22315 cat >>confdefs.h
<<_ACEOF
22316 #define HAVE_LIBGEOM 1
22319 LIBS
="-lgeom $LIBS"
22322 as_fn_error $?
"Your platform requires libgeom" "$LINENO" 5
22330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
22331 $as_echo_n "checking for lzma_code in -llzma... " >&6; }
22332 if ${ac_cv_lib_lzma_lzma_code+:} false
; then :
22333 $as_echo_n "(cached) " >&6
22335 ac_check_lib_save_LIBS
=$LIBS
22336 LIBS
="-llzma $LIBS"
22337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22338 /* end confdefs.h. */
22340 /* Override any GCC internal prototype to avoid an error.
22341 Use char because int might match the return type of a GCC
22342 builtin and then its argument prototype would still apply. */
22350 return lzma_code ();
22355 if ac_fn_c_try_link
"$LINENO"; then :
22356 ac_cv_lib_lzma_lzma_code
=yes
22358 ac_cv_lib_lzma_lzma_code
=no
22360 rm -f core conftest.err conftest.
$ac_objext \
22361 conftest
$ac_exeext conftest.
$ac_ext
22362 LIBS
=$ac_check_lib_save_LIBS
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
22365 $as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
22366 if test "x$ac_cv_lib_lzma_lzma_code" = xyes
; then :
22369 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
22375 # Check whether --enable-libzfs was given.
22376 if test "${enable_libzfs+set}" = set; then :
22377 enableval
=$enable_libzfs;
22380 if test x
"$enable_libzfs" = xno
; then
22381 libzfs_excuse
="explicitly disabled"
22384 if test x
"$libzfs_excuse" = x
; then
22385 # Only check for system headers if libzfs support has not been disabled.
22386 for ac_header
in libzfs.h libnvpair.h
22388 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22389 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22390 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
22391 cat >>confdefs.h
<<_ACEOF
22392 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22401 if test x
"$libzfs_excuse" = x
; then
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzfs_init in -lzfs" >&5
22403 $as_echo_n "checking for libzfs_init in -lzfs... " >&6; }
22404 if ${ac_cv_lib_zfs_libzfs_init+:} false
; then :
22405 $as_echo_n "(cached) " >&6
22407 ac_check_lib_save_LIBS
=$LIBS
22409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22410 /* end confdefs.h. */
22412 /* Override any GCC internal prototype to avoid an error.
22413 Use char because int might match the return type of a GCC
22414 builtin and then its argument prototype would still apply. */
22418 char libzfs_init ();
22422 return libzfs_init ();
22427 if ac_fn_c_try_link
"$LINENO"; then :
22428 ac_cv_lib_zfs_libzfs_init
=yes
22430 ac_cv_lib_zfs_libzfs_init
=no
22432 rm -f core conftest.err conftest.
$ac_objext \
22433 conftest
$ac_exeext conftest.
$ac_ext
22434 LIBS
=$ac_check_lib_save_LIBS
22436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zfs_libzfs_init" >&5
22437 $as_echo "$ac_cv_lib_zfs_libzfs_init" >&6; }
22438 if test "x$ac_cv_lib_zfs_libzfs_init" = xyes
; then :
22439 cat >>confdefs.h
<<_ACEOF
22440 #define HAVE_LIBZFS 1
22446 libzfs_excuse
="need zfs library"
22451 if test x
"$libzfs_excuse" = x
; then
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_print in -lnvpair" >&5
22453 $as_echo_n "checking for nvlist_print in -lnvpair... " >&6; }
22454 if ${ac_cv_lib_nvpair_nvlist_print+:} false
; then :
22455 $as_echo_n "(cached) " >&6
22457 ac_check_lib_save_LIBS
=$LIBS
22458 LIBS
="-lnvpair $LIBS"
22459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22460 /* end confdefs.h. */
22462 /* Override any GCC internal prototype to avoid an error.
22463 Use char because int might match the return type of a GCC
22464 builtin and then its argument prototype would still apply. */
22468 char nvlist_print ();
22472 return nvlist_print ();
22477 if ac_fn_c_try_link
"$LINENO"; then :
22478 ac_cv_lib_nvpair_nvlist_print
=yes
22480 ac_cv_lib_nvpair_nvlist_print
=no
22482 rm -f core conftest.err conftest.
$ac_objext \
22483 conftest
$ac_exeext conftest.
$ac_ext
22484 LIBS
=$ac_check_lib_save_LIBS
22486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_print" >&5
22487 $as_echo "$ac_cv_lib_nvpair_nvlist_print" >&6; }
22488 if test "x$ac_cv_lib_nvpair_nvlist_print" = xyes
; then :
22489 cat >>confdefs.h
<<_ACEOF
22490 #define HAVE_LIBNVPAIR 1
22493 LIBS
="-lnvpair $LIBS"
22496 libzfs_excuse
="need nvpair library"
22501 if test x
"$enable_libzfs" = xyes
&& test x
"$libzfs_excuse" != x
; then
22502 as_fn_error $?
"libzfs support was explicitly requested but requirements are not satisfied" "$LINENO" 5
22505 if test x
"$libzfs_excuse" = x
; then
22506 # We need both libzfs and libnvpair for a successful build.
22509 $as_echo "#define HAVE_LIBZFS 1" >>confdefs.h
22511 LIBNVPAIR
="-lnvpair"
22513 $as_echo "#define HAVE_LIBNVPAIR 1" >>confdefs.h
22523 if test x
$target_cpu = xi386
-a x
$platform = xqemu
; then :
22524 GRUB_BOOT_MACHINE_LINK_ADDR
=0xffe00
22527 if test x
$TARGET_APPLE_CC = x1
; then :
22528 USE_APPLE_CC_FIXES
=yes
22543 # Automake conditionals
22546 if test x
$platform = xemu
; then
22554 if test x
$target_cpu = xi386
-a x
$platform = xpc
; then
22556 COND_i386_pc_FALSE
='#'
22558 COND_i386_pc_TRUE
='#'
22559 COND_i386_pc_FALSE
=
22562 if test x
$target_cpu = xi386
-a x
$platform = xefi
; then
22563 COND_i386_efi_TRUE
=
22564 COND_i386_efi_FALSE
='#'
22566 COND_i386_efi_TRUE
='#'
22567 COND_i386_efi_FALSE
=
22570 if test x
$target_cpu = xia64
-a x
$platform = xefi
; then
22571 COND_ia64_efi_TRUE
=
22572 COND_ia64_efi_FALSE
='#'
22574 COND_ia64_efi_TRUE
='#'
22575 COND_ia64_efi_FALSE
=
22578 if test x
$target_cpu = xi386
-a x
$platform = xqemu
; then
22579 COND_i386_qemu_TRUE
=
22580 COND_i386_qemu_FALSE
='#'
22582 COND_i386_qemu_TRUE
='#'
22583 COND_i386_qemu_FALSE
=
22586 if test x
$target_cpu = xi386
-a x
$platform = xieee1275
; then
22587 COND_i386_ieee1275_TRUE
=
22588 COND_i386_ieee1275_FALSE
='#'
22590 COND_i386_ieee1275_TRUE
='#'
22591 COND_i386_ieee1275_FALSE
=
22594 if test x
$target_cpu = xi386
-a x
$platform = xcoreboot
; then
22595 COND_i386_coreboot_TRUE
=
22596 COND_i386_coreboot_FALSE
='#'
22598 COND_i386_coreboot_TRUE
='#'
22599 COND_i386_coreboot_FALSE
=
22602 if test x
$target_cpu = xi386
-a x
$platform = xmultiboot
; then
22603 COND_i386_multiboot_TRUE
=
22604 COND_i386_multiboot_FALSE
='#'
22606 COND_i386_multiboot_TRUE
='#'
22607 COND_i386_multiboot_FALSE
=
22610 if test x
$target_cpu = xx86_64
-a x
$platform = xefi
; then
22611 COND_x86_64_efi_TRUE
=
22612 COND_x86_64_efi_FALSE
='#'
22614 COND_x86_64_efi_TRUE
='#'
22615 COND_x86_64_efi_FALSE
=
22618 if test x
$target_cpu = xmipsel
-a x
$platform = xloongson
; then
22619 COND_mips_loongson_TRUE
=
22620 COND_mips_loongson_FALSE
='#'
22622 COND_mips_loongson_TRUE
='#'
22623 COND_mips_loongson_FALSE
=
22626 if test "(" x
$target_cpu = xmips
-o x
$target_cpu = xmipsel
")" -a x
$platform = xqemu_mips
; then
22627 COND_mips_qemu_mips_TRUE
=
22628 COND_mips_qemu_mips_FALSE
='#'
22630 COND_mips_qemu_mips_TRUE
='#'
22631 COND_mips_qemu_mips_FALSE
=
22634 if test x
$target_cpu = xmips
-a x
$platform = xarc
; then
22635 COND_mips_arc_TRUE
=
22636 COND_mips_arc_FALSE
='#'
22638 COND_mips_arc_TRUE
='#'
22639 COND_mips_arc_FALSE
=
22642 if test x
$target_cpu = xsparc64
-a x
$platform = xieee1275
; then
22643 COND_sparc64_ieee1275_TRUE
=
22644 COND_sparc64_ieee1275_FALSE
='#'
22646 COND_sparc64_ieee1275_TRUE
='#'
22647 COND_sparc64_ieee1275_FALSE
=
22650 if test x
$target_cpu = xpowerpc
-a x
$platform = xieee1275
; then
22651 COND_powerpc_ieee1275_TRUE
=
22652 COND_powerpc_ieee1275_FALSE
='#'
22654 COND_powerpc_ieee1275_TRUE
='#'
22655 COND_powerpc_ieee1275_FALSE
=
22658 if test x
$target_cpu = xmips
-o x
$target_cpu = xmipsel
; then
22660 COND_mips_FALSE
='#'
22666 if test x
$target_cpu = xmipsel
; then
22668 COND_mipsel_FALSE
='#'
22670 COND_mipsel_TRUE
='#'
22674 if test x
$target_cpu = xmips
; then
22676 COND_mipseb_FALSE
='#'
22678 COND_mipseb_TRUE
='#'
22683 if test x
$host_kernel = xhurd
; then
22684 COND_HOST_HURD_TRUE
=
22685 COND_HOST_HURD_FALSE
='#'
22687 COND_HOST_HURD_TRUE
='#'
22688 COND_HOST_HURD_FALSE
=
22691 if test x
$host_kernel = xlinux
; then
22692 COND_HOST_LINUX_TRUE
=
22693 COND_HOST_LINUX_FALSE
='#'
22695 COND_HOST_LINUX_TRUE
='#'
22696 COND_HOST_LINUX_FALSE
=
22699 if test x
$host_kernel = xnetbsd
; then
22700 COND_HOST_NETBSD_TRUE
=
22701 COND_HOST_NETBSD_FALSE
='#'
22703 COND_HOST_NETBSD_TRUE
='#'
22704 COND_HOST_NETBSD_FALSE
=
22707 if test x
$host_kernel = xwindows
; then
22708 COND_HOST_WINDOWS_TRUE
=
22709 COND_HOST_WINDOWS_FALSE
='#'
22711 COND_HOST_WINDOWS_TRUE
='#'
22712 COND_HOST_WINDOWS_FALSE
=
22715 if test x
$host_kernel = xkfreebsd
; then
22716 COND_HOST_KFREEBSD_TRUE
=
22717 COND_HOST_KFREEBSD_FALSE
='#'
22719 COND_HOST_KFREEBSD_TRUE
='#'
22720 COND_HOST_KFREEBSD_FALSE
=
22723 if test x
$host_kernel = xxnu
; then
22724 COND_HOST_XNU_TRUE
=
22725 COND_HOST_XNU_FALSE
='#'
22727 COND_HOST_XNU_TRUE
='#'
22728 COND_HOST_XNU_FALSE
=
22731 if test x
$host_kernel = xillumos
; then
22732 COND_HOST_ILLUMOS_TRUE
=
22733 COND_HOST_ILLUMOS_FALSE
='#'
22735 COND_HOST_ILLUMOS_TRUE
='#'
22736 COND_HOST_ILLUMOS_FALSE
=
22740 if test x
$cross_compiling = xno
-a x
$HELP2MAN != x
; then
22741 COND_MAN_PAGES_TRUE
=
22742 COND_MAN_PAGES_FALSE
='#'
22744 COND_MAN_PAGES_TRUE
='#'
22745 COND_MAN_PAGES_FALSE
=
22748 if test x
$enable_grub_emu_usb = xyes
; then
22749 COND_GRUB_EMU_USB_TRUE
=
22750 COND_GRUB_EMU_USB_FALSE
='#'
22752 COND_GRUB_EMU_USB_TRUE
='#'
22753 COND_GRUB_EMU_USB_FALSE
=
22756 if test x
$enable_grub_emu_sdl = xyes
; then
22757 COND_GRUB_EMU_SDL_TRUE
=
22758 COND_GRUB_EMU_SDL_FALSE
='#'
22760 COND_GRUB_EMU_SDL_TRUE
='#'
22761 COND_GRUB_EMU_SDL_FALSE
=
22764 if test x
$enable_grub_emu_pci = xyes
; then
22765 COND_GRUB_EMU_PCI_TRUE
=
22766 COND_GRUB_EMU_PCI_FALSE
='#'
22768 COND_GRUB_EMU_PCI_TRUE
='#'
22769 COND_GRUB_EMU_PCI_FALSE
=
22772 if test x
$enable_grub_mkfont = xyes
; then
22773 COND_GRUB_MKFONT_TRUE
=
22774 COND_GRUB_MKFONT_FALSE
='#'
22776 COND_GRUB_MKFONT_TRUE
='#'
22777 COND_GRUB_MKFONT_FALSE
=
22780 if test x
$enable_grub_mount = xyes
; then
22781 COND_GRUB_MOUNT_TRUE
=
22782 COND_GRUB_MOUNT_FALSE
='#'
22784 COND_GRUB_MOUNT_TRUE
='#'
22785 COND_GRUB_MOUNT_FALSE
=
22788 if test x
$FONT_SOURCE != x
; then
22789 COND_HAVE_FONT_SOURCE_TRUE
=
22790 COND_HAVE_FONT_SOURCE_FALSE
='#'
22792 COND_HAVE_FONT_SOURCE_TRUE
='#'
22793 COND_HAVE_FONT_SOURCE_FALSE
=
22796 if test x
$TARGET_OBJ2ELF != x
; then
22797 COND_GRUB_PE2ELF_TRUE
=
22798 COND_GRUB_PE2ELF_FALSE
='#'
22800 COND_GRUB_PE2ELF_TRUE
='#'
22801 COND_GRUB_PE2ELF_FALSE
=
22804 if test x
$TARGET_APPLE_CC = x1
; then
22805 COND_APPLE_CC_TRUE
=
22806 COND_APPLE_CC_FALSE
='#'
22808 COND_APPLE_CC_TRUE
='#'
22809 COND_APPLE_CC_FALSE
=
22812 if test x
$enable_efiemu = xyes
; then
22813 COND_ENABLE_EFIEMU_TRUE
=
22814 COND_ENABLE_EFIEMU_FALSE
='#'
22816 COND_ENABLE_EFIEMU_TRUE
='#'
22817 COND_ENABLE_EFIEMU_FALSE
=
22820 if test x
$DISK_CACHE_STATS = x1
; then
22821 COND_ENABLE_CACHE_STATS_TRUE
=
22822 COND_ENABLE_CACHE_STATS_FALSE
='#'
22824 COND_ENABLE_CACHE_STATS_TRUE
='#'
22825 COND_ENABLE_CACHE_STATS_FALSE
=
22829 if test x
$HAVE_ASM_USCORE = x1
; then
22830 COND_HAVE_ASM_USCORE_TRUE
=
22831 COND_HAVE_ASM_USCORE_FALSE
='#'
22833 COND_HAVE_ASM_USCORE_TRUE
='#'
22834 COND_HAVE_ASM_USCORE_FALSE
=
22837 if test x
$host_os = xcygwin
; then
22839 COND_CYGWIN_FALSE
='#'
22841 COND_CYGWIN_TRUE
='#'
22845 if test "x$starfield_excuse" = x
; then
22846 COND_STARFIELD_TRUE
=
22847 COND_STARFIELD_FALSE
='#'
22849 COND_STARFIELD_TRUE
='#'
22850 COND_STARFIELD_FALSE
=
22855 cpudir
="${target_cpu}"
22856 if test x
${cpudir} = xmipsel
; then
22860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln can handle directories properly" >&5
22861 $as_echo_n "checking whether ln can handle directories properly... " >&6; }
22862 mkdir testdir
2>/dev
/null
22864 [\\/$
]* | ?
:[\\/]* ) reldir
=$srcdir/include
/grub
/util
;;
22865 *) reldir
=..
/$srcdir/include
/grub
/util
;;
22867 if ln -s $reldir testdir
/util
2>/dev
/null
; then
22868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22869 $as_echo "yes" >&6; }
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22874 $as_echo "no" >&6; }
22878 if test x
"$link_dir" = xyes
; then
22879 ac_config_links
="$ac_config_links include/grub/cpu:include/grub/$cpudir"
22881 if test "$platform" != emu
; then
22882 ac_config_links
="$ac_config_links include/grub/machine:include/grub/$cpudir/$platform"
22886 mkdir
-p include
/grub
2>/dev
/null
22887 rm -rf include
/grub
/cpu
22888 cp -rp $srcdir/include
/grub
/$cpudir include
/grub
/cpu
2>/dev
/null
22889 if test "$platform" != emu
; then
22890 rm -rf include
/grub
/machine
22891 cp -rp $srcdir/include
/grub
/$cpudir/$platform include
/grub
/machine
2>/dev
/null
22895 ac_config_files
="$ac_config_files Makefile"
22897 ac_config_files
="$ac_config_files grub-core/Makefile"
22899 ac_config_files
="$ac_config_files grub-core/gensyminfo.sh"
22901 ac_config_files
="$ac_config_files grub-core/gnulib/Makefile"
22903 ac_config_files
="$ac_config_files po/Makefile.in"
22905 ac_config_files
="$ac_config_files docs/Makefile"
22907 ac_config_files
="$ac_config_files util/bash-completion.d/Makefile"
22909 ac_config_files
="$ac_config_files stamp-h"
22911 ac_config_files
="$ac_config_files config.h"
22914 cat >confcache
<<\_ACEOF
22915 # This file is a shell script that caches the results of configure
22916 # tests run on this system so they can be shared between configure
22917 # scripts and configure runs, see configure's option --config-cache.
22918 # It is not useful on other systems. If it contains results you don't
22919 # want to keep, you may remove or edit it.
22921 # config.status only pays attention to the cache file if you give it
22922 # the --recheck option to rerun configure.
22924 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22925 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22926 # following values.
22930 # The following way of writing the cache mishandles newlines in values,
22931 # but we know of no workaround that is simple, portable, and efficient.
22932 # So, we kill variables containing newlines.
22933 # Ultrix sh set writes to stderr and can't be redirected directly,
22934 # and sets the high bit in the cache file unless we assign to the vars.
22936 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22937 eval ac_val
=\$
$ac_var
22941 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22942 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22945 _ | IFS | as_nl
) ;; #(
22946 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
22947 *) { eval $ac_var=; unset $ac_var;} ;;
22953 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22954 *${as_nl}ac_space
=\
*)
22955 # `set' does not quote correctly, so add quotes: double-quote
22956 # substitution turns \\\\ into \\, and sed turns \\ into \.
22959 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22962 # `set' quotes correctly as required by POSIX, so do not add quotes.
22963 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22972 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22974 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22976 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
22977 if test -w "$cache_file"; then
22978 if test "x$cache_file" != "x/dev/null"; then
22979 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22980 $as_echo "$as_me: updating cache $cache_file" >&6;}
22981 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
22982 cat confcache
>"$cache_file"
22984 case $cache_file in #(
22986 mv -f confcache
"$cache_file"$$
&&
22987 mv -f "$cache_file"$$
"$cache_file" ;; #(
22989 mv -f confcache
"$cache_file" ;;
22994 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22995 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23000 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
23001 # Let make expand exec_prefix.
23002 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
23004 DEFS
=-DHAVE_CONFIG_H
23009 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
23010 # 1. Remove the extension, and $U if already installed.
23011 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
23012 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
23013 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23014 # will be set to the directory where LIBOBJS objects are built.
23015 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23016 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
23018 LIBOBJS
=$ac_libobjs
23020 LTLIBOBJS
=$ac_ltlibobjs
23023 if test -n "$EXEEXT"; then
23025 am__EXEEXT_FALSE
='#'
23027 am__EXEEXT_TRUE
='#'
23031 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23032 as_fn_error $?
"conditional \"AMDEP\" was never defined.
23033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23035 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23036 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
23037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23039 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23040 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
23041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23043 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
23044 as_fn_error $?
"conditional \"am__fastdepCCAS\" was never defined.
23045 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23048 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
23049 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
23050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23055 if test -n "$gl_LIBOBJS"; then
23056 # Remove the extension.
23057 sed_drop_objext
='s/\.o$//;s/\.obj$//'
23058 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
23059 gl_libobjs
="$gl_libobjs $i.$ac_objext"
23060 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
23063 gl_LIBOBJS
=$gl_libobjs
23065 gl_LTLIBOBJS
=$gl_ltlibobjs
23071 if test -n "$gltests_LIBOBJS"; then
23072 # Remove the extension.
23073 sed_drop_objext
='s/\.o$//;s/\.obj$//'
23074 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
23075 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
23076 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
23079 gltests_LIBOBJS
=$gltests_libobjs
23081 gltests_LTLIBOBJS
=$gltests_ltlibobjs
23084 if test -z "${COND_emu_TRUE}" && test -z "${COND_emu_FALSE}"; then
23085 as_fn_error $?
"conditional \"COND_emu\" was never defined.
23086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23088 if test -z "${COND_i386_pc_TRUE}" && test -z "${COND_i386_pc_FALSE}"; then
23089 as_fn_error $?
"conditional \"COND_i386_pc\" was never defined.
23090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23092 if test -z "${COND_i386_efi_TRUE}" && test -z "${COND_i386_efi_FALSE}"; then
23093 as_fn_error $?
"conditional \"COND_i386_efi\" was never defined.
23094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23096 if test -z "${COND_ia64_efi_TRUE}" && test -z "${COND_ia64_efi_FALSE}"; then
23097 as_fn_error $?
"conditional \"COND_ia64_efi\" was never defined.
23098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23100 if test -z "${COND_i386_qemu_TRUE}" && test -z "${COND_i386_qemu_FALSE}"; then
23101 as_fn_error $?
"conditional \"COND_i386_qemu\" was never defined.
23102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23104 if test -z "${COND_i386_ieee1275_TRUE}" && test -z "${COND_i386_ieee1275_FALSE}"; then
23105 as_fn_error $?
"conditional \"COND_i386_ieee1275\" was never defined.
23106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23108 if test -z "${COND_i386_coreboot_TRUE}" && test -z "${COND_i386_coreboot_FALSE}"; then
23109 as_fn_error $?
"conditional \"COND_i386_coreboot\" was never defined.
23110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23112 if test -z "${COND_i386_multiboot_TRUE}" && test -z "${COND_i386_multiboot_FALSE}"; then
23113 as_fn_error $?
"conditional \"COND_i386_multiboot\" was never defined.
23114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23116 if test -z "${COND_x86_64_efi_TRUE}" && test -z "${COND_x86_64_efi_FALSE}"; then
23117 as_fn_error $?
"conditional \"COND_x86_64_efi\" was never defined.
23118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23120 if test -z "${COND_mips_loongson_TRUE}" && test -z "${COND_mips_loongson_FALSE}"; then
23121 as_fn_error $?
"conditional \"COND_mips_loongson\" was never defined.
23122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23124 if test -z "${COND_mips_qemu_mips_TRUE}" && test -z "${COND_mips_qemu_mips_FALSE}"; then
23125 as_fn_error $?
"conditional \"COND_mips_qemu_mips\" was never defined.
23126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23128 if test -z "${COND_mips_arc_TRUE}" && test -z "${COND_mips_arc_FALSE}"; then
23129 as_fn_error $?
"conditional \"COND_mips_arc\" was never defined.
23130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23132 if test -z "${COND_sparc64_ieee1275_TRUE}" && test -z "${COND_sparc64_ieee1275_FALSE}"; then
23133 as_fn_error $?
"conditional \"COND_sparc64_ieee1275\" was never defined.
23134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23136 if test -z "${COND_powerpc_ieee1275_TRUE}" && test -z "${COND_powerpc_ieee1275_FALSE}"; then
23137 as_fn_error $?
"conditional \"COND_powerpc_ieee1275\" was never defined.
23138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23140 if test -z "${COND_mips_TRUE}" && test -z "${COND_mips_FALSE}"; then
23141 as_fn_error $?
"conditional \"COND_mips\" was never defined.
23142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23144 if test -z "${COND_mipsel_TRUE}" && test -z "${COND_mipsel_FALSE}"; then
23145 as_fn_error $?
"conditional \"COND_mipsel\" was never defined.
23146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23148 if test -z "${COND_mipseb_TRUE}" && test -z "${COND_mipseb_FALSE}"; then
23149 as_fn_error $?
"conditional \"COND_mipseb\" was never defined.
23150 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23152 if test -z "${COND_HOST_HURD_TRUE}" && test -z "${COND_HOST_HURD_FALSE}"; then
23153 as_fn_error $?
"conditional \"COND_HOST_HURD\" was never defined.
23154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23156 if test -z "${COND_HOST_LINUX_TRUE}" && test -z "${COND_HOST_LINUX_FALSE}"; then
23157 as_fn_error $?
"conditional \"COND_HOST_LINUX\" was never defined.
23158 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23160 if test -z "${COND_HOST_NETBSD_TRUE}" && test -z "${COND_HOST_NETBSD_FALSE}"; then
23161 as_fn_error $?
"conditional \"COND_HOST_NETBSD\" was never defined.
23162 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23164 if test -z "${COND_HOST_WINDOWS_TRUE}" && test -z "${COND_HOST_WINDOWS_FALSE}"; then
23165 as_fn_error $?
"conditional \"COND_HOST_WINDOWS\" was never defined.
23166 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23168 if test -z "${COND_HOST_KFREEBSD_TRUE}" && test -z "${COND_HOST_KFREEBSD_FALSE}"; then
23169 as_fn_error $?
"conditional \"COND_HOST_KFREEBSD\" was never defined.
23170 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23172 if test -z "${COND_HOST_XNU_TRUE}" && test -z "${COND_HOST_XNU_FALSE}"; then
23173 as_fn_error $?
"conditional \"COND_HOST_XNU\" was never defined.
23174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23176 if test -z "${COND_HOST_ILLUMOS_TRUE}" && test -z "${COND_HOST_ILLUMOS_FALSE}"; then
23177 as_fn_error $?
"conditional \"COND_HOST_ILLUMOS\" was never defined.
23178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23180 if test -z "${COND_MAN_PAGES_TRUE}" && test -z "${COND_MAN_PAGES_FALSE}"; then
23181 as_fn_error $?
"conditional \"COND_MAN_PAGES\" was never defined.
23182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23184 if test -z "${COND_GRUB_EMU_USB_TRUE}" && test -z "${COND_GRUB_EMU_USB_FALSE}"; then
23185 as_fn_error $?
"conditional \"COND_GRUB_EMU_USB\" was never defined.
23186 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23188 if test -z "${COND_GRUB_EMU_SDL_TRUE}" && test -z "${COND_GRUB_EMU_SDL_FALSE}"; then
23189 as_fn_error $?
"conditional \"COND_GRUB_EMU_SDL\" was never defined.
23190 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23192 if test -z "${COND_GRUB_EMU_PCI_TRUE}" && test -z "${COND_GRUB_EMU_PCI_FALSE}"; then
23193 as_fn_error $?
"conditional \"COND_GRUB_EMU_PCI\" was never defined.
23194 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23196 if test -z "${COND_GRUB_MKFONT_TRUE}" && test -z "${COND_GRUB_MKFONT_FALSE}"; then
23197 as_fn_error $?
"conditional \"COND_GRUB_MKFONT\" was never defined.
23198 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23200 if test -z "${COND_GRUB_MOUNT_TRUE}" && test -z "${COND_GRUB_MOUNT_FALSE}"; then
23201 as_fn_error $?
"conditional \"COND_GRUB_MOUNT\" was never defined.
23202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23204 if test -z "${COND_HAVE_FONT_SOURCE_TRUE}" && test -z "${COND_HAVE_FONT_SOURCE_FALSE}"; then
23205 as_fn_error $?
"conditional \"COND_HAVE_FONT_SOURCE\" was never defined.
23206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23208 if test -z "${COND_GRUB_PE2ELF_TRUE}" && test -z "${COND_GRUB_PE2ELF_FALSE}"; then
23209 as_fn_error $?
"conditional \"COND_GRUB_PE2ELF\" was never defined.
23210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23212 if test -z "${COND_APPLE_CC_TRUE}" && test -z "${COND_APPLE_CC_FALSE}"; then
23213 as_fn_error $?
"conditional \"COND_APPLE_CC\" was never defined.
23214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23216 if test -z "${COND_ENABLE_EFIEMU_TRUE}" && test -z "${COND_ENABLE_EFIEMU_FALSE}"; then
23217 as_fn_error $?
"conditional \"COND_ENABLE_EFIEMU\" was never defined.
23218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23220 if test -z "${COND_ENABLE_CACHE_STATS_TRUE}" && test -z "${COND_ENABLE_CACHE_STATS_FALSE}"; then
23221 as_fn_error $?
"conditional \"COND_ENABLE_CACHE_STATS\" was never defined.
23222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23224 if test -z "${COND_HAVE_ASM_USCORE_TRUE}" && test -z "${COND_HAVE_ASM_USCORE_FALSE}"; then
23225 as_fn_error $?
"conditional \"COND_HAVE_ASM_USCORE\" was never defined.
23226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23228 if test -z "${COND_CYGWIN_TRUE}" && test -z "${COND_CYGWIN_FALSE}"; then
23229 as_fn_error $?
"conditional \"COND_CYGWIN\" was never defined.
23230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23232 if test -z "${COND_STARFIELD_TRUE}" && test -z "${COND_STARFIELD_FALSE}"; then
23233 as_fn_error $?
"conditional \"COND_STARFIELD\" was never defined.
23234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23237 : "${CONFIG_STATUS=./config.status}"
23239 ac_clean_files_save
=$ac_clean_files
23240 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
23241 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23242 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23244 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23246 # Generated by $as_me.
23247 # Run this file to recreate the current configuration.
23248 # Compiler output produced by configure, useful for debugging
23249 # configure, is in config.log if it exists.
23252 ac_cs_recheck=false
23255 SHELL=\${CONFIG_SHELL-$SHELL}
23258 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
23259 ## -------------------- ##
23260 ## M4sh Initialization. ##
23261 ## -------------------- ##
23263 # Be more Bourne compatible
23264 DUALCASE
=1; export DUALCASE
# for MKS sh
23265 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
23268 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23269 # is contrary to our usage. Disable this feature.
23270 alias -g '${1+"$@"}'='"$@"'
23271 setopt NO_GLOB_SUBST
23273 case `(set -o) 2>/dev/null` in #(
23285 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23286 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23287 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23288 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23289 # Prefer a ksh shell builtin over an external printf program on Solaris,
23290 # but without wasting forks for bash or zsh.
23291 if test -z "$BASH_VERSION$ZSH_VERSION" \
23292 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23293 as_echo='print
-r --'
23294 as_echo_n='print
-rn --'
23295 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23296 as_echo='printf %s
\n'
23297 as_echo_n='printf %s
'
23299 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23300 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
23301 as_echo_n='/usr
/ucb
/echo -n'
23303 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23304 as_echo_n_body='eval
23308 expr "X$arg" : "X\\(.*\\)$as_nl";
23309 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23311 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
23313 export as_echo_n_body
23314 as_echo_n='sh
-c $as_echo_n_body as_echo
'
23316 export as_echo_body
23317 as_echo='sh
-c $as_echo_body as_echo
'
23320 # The user is always right.
23321 if test "${PATH_SEPARATOR+set}" != set; then
23323 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23324 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23331 # We need space, tab and new line, in precisely that order. Quoting is
23332 # there to prevent editors from complaining about space-tab.
23333 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23334 # splitting by setting IFS to empty value.)
23337 # Find who we are. Look in the path if we contain no directory separator.
23340 *[\\/]* ) as_myself=$0 ;;
23341 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23342 for as_dir in $PATH
23345 test -z "$as_dir" && as_dir=.
23346 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23352 # We did not find ourselves, most probably we were run as `sh COMMAND'
23353 # in which case we are not to be found in the path.
23354 if test "x$as_myself" = x
; then
23357 if test ! -f "$as_myself"; then
23358 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23362 # Unset variables that we do not need and which cause bugs (e.g. in
23363 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
23364 # suppresses any "Segmentation fault" message there. '((' could
23365 # trigger a bug in pdksh 5.2.14.
23366 for as_var
in BASH_ENV ENV MAIL MAILPATH
23367 do eval test x\
${$as_var+set} = xset \
23368 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
23381 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
23384 # as_fn_error STATUS ERROR [LINENO LOG_FD]
23385 # ----------------------------------------
23386 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23387 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23388 # script with STATUS, using 1 if that was 0.
23391 as_status
=$1; test $as_status -eq 0 && as_status
=1
23393 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
23394 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23396 $as_echo "$as_me: error: $2" >&2
23397 as_fn_exit
$as_status
23401 # as_fn_set_status STATUS
23402 # -----------------------
23403 # Set $? to STATUS, without forking.
23404 as_fn_set_status
()
23407 } # as_fn_set_status
23409 # as_fn_exit STATUS
23410 # -----------------
23411 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23415 as_fn_set_status
$1
23421 # Portably unset VAR.
23424 { eval $1=; unset $1;}
23426 as_unset
=as_fn_unset
23427 # as_fn_append VAR VALUE
23428 # ----------------------
23429 # Append the text in VALUE to the end of the definition contained in VAR. Take
23430 # advantage of any shell optimizations that allow amortized linear growth over
23431 # repeated appends, instead of the typical quadratic growth present in naive
23433 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
23434 eval 'as_fn_append ()
23445 # as_fn_arith ARG...
23446 # ------------------
23447 # Perform arithmetic evaluation on the ARGs, and store the result in the
23448 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23449 # must be portable across $(()) and expr.
23450 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
23451 eval 'as_fn_arith ()
23458 as_val
=`expr "$@" || test $? -eq 1`
23463 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23464 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23470 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23471 as_basename
=basename
23476 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23482 as_me
=`$as_basename -- "$0" ||
23483 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23484 X"$0" : 'X\(//\)$' \| \
23485 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23487 sed '/^.*\/\([^/][^/]*\)\/*$/{
23501 # Avoid depending upon Character Ranges.
23502 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
23503 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23504 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
23505 as_cr_digits
='0123456789'
23506 as_cr_alnum
=$as_cr_Letters$as_cr_digits
23508 ECHO_C
= ECHO_N
= ECHO_T
=
23509 case `echo -n x` in #(((((
23511 case `echo 'xy\c'` in
23512 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23514 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
23521 rm -f conf$$ conf$$.exe conf$$.
file
23522 if test -d conf$$.dir
; then
23523 rm -f conf$$.dir
/conf$$.
file
23526 mkdir conf$$.dir
2>/dev
/null
23528 if (echo >conf$$.
file) 2>/dev
/null
; then
23529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23531 # ... but there are two gotchas:
23532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23534 # In both cases, we have to default to `cp -p'.
23535 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23537 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23545 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23546 rmdir conf$$.dir
2>/dev
/null
23551 # Create "$as_dir" as a directory, including parents if necessary.
23556 -*) as_dir
=.
/$as_dir;;
23558 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
23562 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23563 *) as_qdir
=$as_dir;;
23565 as_dirs
="'$as_qdir' $as_dirs"
23566 as_dir
=`$as_dirname -- "$as_dir" ||
23567 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23568 X"$as_dir" : 'X\(//\)[^/]' \| \
23569 X"$as_dir" : 'X\(//\)$' \| \
23570 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23571 $as_echo X"$as_dir" |
23572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23576 /^X\(\/\/\)[^/].*/{
23589 test -d "$as_dir" && break
23591 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
23592 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
23596 if mkdir
-p .
2>/dev
/null
; then
23597 as_mkdir_p
='mkdir -p "$as_dir"'
23599 test -d .
/-p && rmdir .
/-p
23603 if test -x / >/dev
/null
2>&1; then
23604 as_test_x
='test -x'
23606 if ls -dL / >/dev
/null
2>&1; then
23613 if test -d "$1"; then
23619 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23620 ???[sx]*):;;*)false;;esac;fi
23624 as_executable_p
=$as_test_x
23626 # Sed expression to map a string onto a valid CPP name.
23627 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23629 # Sed expression to map a string onto a valid variable name.
23630 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23634 ## ----------------------------------- ##
23635 ## Main body of $CONFIG_STATUS script. ##
23636 ## ----------------------------------- ##
23638 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
23640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23641 # Save the log message, to keep $0 and so on meaningful, and to
23642 # report actual input values of CONFIG_FILES etc. instead of their
23643 # values after options handling.
23645 This file was extended by GRUB $as_me 2.00, which was
23646 generated by GNU Autoconf 2.68. Invocation command line was
23648 CONFIG_FILES = $CONFIG_FILES
23649 CONFIG_HEADERS = $CONFIG_HEADERS
23650 CONFIG_LINKS = $CONFIG_LINKS
23651 CONFIG_COMMANDS = $CONFIG_COMMANDS
23654 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23659 case $ac_config_files in *"
23660 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
23663 case $ac_config_headers in *"
23664 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
23668 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23669 # Files that config.status was made for.
23670 config_files="$ac_config_files"
23671 config_headers="$ac_config_headers"
23672 config_links="$ac_config_links"
23673 config_commands="$ac_config_commands"
23677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23679 \`$as_me' instantiates files and other configuration actions
23680 from templates according to the current configuration. Unless the files
23681 and actions are specified as TAGs, all are instantiated by default.
23683 Usage: $0 [OPTION]... [TAG]...
23685 -h, --help print this help, then exit
23686 -V, --version print version number and configuration settings, then exit
23687 --config print configuration, then exit
23688 -q, --quiet, --silent
23689 do not print progress messages
23690 -d, --debug don't remove temporary files
23691 --recheck update $as_me by reconfiguring in the same conditions
23692 --file=FILE[:TEMPLATE]
23693 instantiate the configuration file FILE
23694 --header=FILE[:TEMPLATE]
23695 instantiate the configuration header FILE
23697 Configuration files:
23700 Configuration headers:
23703 Configuration links:
23706 Configuration commands:
23709 Report bugs to <bug-grub@gnu.org>."
23712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23713 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23715 GRUB config.status 2.00
23716 configured by $0, generated by GNU Autoconf 2.68,
23717 with options \\"\$ac_cs_config\\"
23719 Copyright (C) 2010 Free Software Foundation, Inc.
23720 This config.status script is free software; the Free Software Foundation
23721 gives unlimited permission to copy, distribute and modify it."
23728 test -n "\$AWK" || AWK=awk
23731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23732 # The default lists apply if the user does not specify any file.
23738 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23739 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23743 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23755 # Handling of the options.
23756 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23758 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23759 $as_echo "$ac_cs_version"; exit ;;
23760 --config |
--confi |
--conf |
--con |
--co |
--c )
23761 $as_echo "$ac_cs_config"; exit ;;
23762 --debug |
--debu |
--deb |
--de |
--d |
-d )
23764 --file |
--fil |
--fi |
--f )
23767 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23768 '') as_fn_error $?
"missing file argument" ;;
23770 as_fn_append CONFIG_FILES
" '$ac_optarg'"
23771 ac_need_defaults
=false
;;
23772 --header |
--heade |
--head |
--hea )
23775 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23777 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
23778 ac_need_defaults
=false
;;
23780 # Conflict between --help and --header
23781 as_fn_error $?
"ambiguous option: \`$1'
23782 Try \`$0 --help' for more information.";;
23783 --help |
--hel |
-h )
23784 $as_echo "$ac_cs_usage"; exit ;;
23785 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23786 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23789 # This is an error.
23790 -*) as_fn_error $?
"unrecognized option: \`$1'
23791 Try \`$0 --help' for more information." ;;
23793 *) as_fn_append ac_config_targets
" $1"
23794 ac_need_defaults
=false
;;
23800 ac_configure_extra_args
=
23802 if $ac_cs_silent; then
23804 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23809 if \$ac_cs_recheck; then
23810 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23812 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23813 CONFIG_SHELL='$SHELL'
23814 export CONFIG_SHELL
23819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23823 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23824 ## Running $as_me. ##
23830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23834 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23835 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
23836 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
23837 # from automake < 1.5.
23838 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
23839 # Capture the value of LINGUAS because we need it to compute CATALOGS.
23840 LINGUAS="${LINGUAS-%UNSET%}"
23845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23847 # Handling of arguments.
23848 for ac_config_target
in $ac_config_targets
23850 case $ac_config_target in
23851 "config-util.h") CONFIG_HEADERS
="$CONFIG_HEADERS config-util.h" ;;
23852 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
23853 "po-directories") CONFIG_COMMANDS
="$CONFIG_COMMANDS po-directories" ;;
23854 "include/grub/cpu") CONFIG_LINKS
="$CONFIG_LINKS include/grub/cpu:include/grub/$cpudir" ;;
23855 "include/grub/machine") CONFIG_LINKS
="$CONFIG_LINKS include/grub/machine:include/grub/$cpudir/$platform" ;;
23856 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23857 "grub-core/Makefile") CONFIG_FILES
="$CONFIG_FILES grub-core/Makefile" ;;
23858 "grub-core/gensyminfo.sh") CONFIG_FILES
="$CONFIG_FILES grub-core/gensyminfo.sh" ;;
23859 "grub-core/gnulib/Makefile") CONFIG_FILES
="$CONFIG_FILES grub-core/gnulib/Makefile" ;;
23860 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
23861 "docs/Makefile") CONFIG_FILES
="$CONFIG_FILES docs/Makefile" ;;
23862 "util/bash-completion.d/Makefile") CONFIG_FILES
="$CONFIG_FILES util/bash-completion.d/Makefile" ;;
23863 "stamp-h") CONFIG_FILES
="$CONFIG_FILES stamp-h" ;;
23864 "config.h") CONFIG_FILES
="$CONFIG_FILES config.h" ;;
23866 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23871 # If the user did not use the arguments to specify the items to instantiate,
23872 # then the envvar interface is used. Set only those that are not.
23873 # We use the long form for the default assignment because of an extremely
23874 # bizarre bug on SunOS 4.1.3.
23875 if $ac_need_defaults; then
23876 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23877 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23878 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
23879 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23882 # Have a temporary directory for convenience. Make it in the build tree
23883 # simply because there is no reason against having it here, and in addition,
23884 # creating and moving files from /tmp can sometimes cause problems.
23885 # Hook for its removal unless debugging.
23886 # Note that there is a small window in which the directory will not be cleaned:
23887 # after its creation but before its name has been assigned to `$tmp'.
23891 trap 'exit_status=$?
23892 : "${ac_tmp:=$tmp}"
23893 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23895 trap 'as_fn_exit 1' 1 2 13 15
23897 # Create a (secure) tmp directory for tmp files.
23900 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23904 tmp
=.
/conf$$
-$RANDOM
23905 (umask 077 && mkdir
"$tmp")
23906 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
23909 # Set up the scripts for CONFIG_FILES section.
23910 # No need to generate them if there are no CONFIG_FILES.
23911 # This happens for instance with `./config.status config.h'.
23912 if test -n "$CONFIG_FILES"; then
23915 ac_cr
=`echo X | tr X '\015'`
23916 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23917 # But we know of no other shell where ac_cr would be empty at this
23918 # point, so we can use a bashism as a fallback.
23919 if test "x$ac_cr" = x
; then
23920 eval ac_cr
=\$
\'\\r
\'
23922 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23923 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23926 ac_cs_awk_cr
=$ac_cr
23929 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23934 echo "cat >conf$$subs.awk <<_ACEOF" &&
23935 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23937 } >conf$$subs.sh ||
23938 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
23939 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23941 for ac_last_try in false false false false false :; do
23942 . ./conf$$subs.sh ||
23943 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
23945 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
23946 if test $ac_delim_n = $ac_delim_num; then
23948 elif $ac_last_try; then
23949 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
23951 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
23954 rm -f conf$$subs.sh
23956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23957 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
23961 s/^/S["/; s
/!.
*/"]=/
23971 s/\(.\{148\}\)..*/\1/
23973 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
23978 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
23985 s/\(.\{148\}\)..*/\1/
23987 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
23991 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
23996 ' <conf$$subs.awk | sed '
24001 ' >>$CONFIG_STATUS || ac_write_fail=1
24002 rm -f conf$$subs.awk
24003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24005 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
24006 for (key in S) S_is_set[key] = 1
24012 nfields = split(line, field, "@
")
24014 len = length(field[1])
24015 for (i = 2; i < nfields; i++) {
24017 keylen = length(key)
24018 if (S_is_set[key]) {
24020 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24021 len += length(value) + length(field[++i])
24032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24033 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24034 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
24037 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
24038 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
24041 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24042 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
24043 # trailing colons and then remove the whole line if VPATH becomes empty
24044 # (actually we leave an empty line to preserve line numbers).
24045 if test "x
$srcdir" = x.; then
24046 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
24064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24065 fi # test -n "$CONFIG_FILES"
24067 # Set up the scripts for CONFIG_HEADERS section.
24068 # No need to generate them if there are no CONFIG_HEADERS.
24069 # This happens for instance with `./config.status Makefile'.
24070 if test -n "$CONFIG_HEADERS"; then
24071 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
24075 # Transform confdefs.h into an awk script `defines.awk', embedded as
24076 # here-document in config.status, that substitutes the proper values into
24077 # config.h.in to produce config.h.
24079 # Create a delimiter string that does not exist in confdefs.h, to ease
24080 # handling of long lines.
24082 for ac_last_try in false false :; do
24083 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
24084 if test -z "$ac_tt"; then
24086 elif $ac_last_try; then
24087 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
24089 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
24093 # For the awk script, D is an array of macro values keyed by name,
24094 # likewise P contains macro parameters if any. Preserve backslash
24095 # newline sequences.
24097 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24099 s/.\{148\}/&'"$ac_delim"'/g
24102 s/^[ ]*#[ ]*define[ ][ ]*/ /
24109 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
24111 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
24115 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
24116 D["\
1"]=" \
3\\\\\\n
"\\/p
24118 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
24123 s/.\{148\}/&'"$ac_delim"'/g
24128 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
24131 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
24133 ' <confdefs.h | sed '
24134 s/'"$ac_delim"'/"\\\
24135 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24138 for (key in D) D_is_set[key] = 1
24141 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24143 split(line, arg, " ")
24144 if (arg[1] == "#") {
24148 defundef
= substr
(arg
[1], 2)
24151 split(mac1
, mac2
, "(") #)
24153 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
24154 if (D_is_set
[macro
]) {
24155 # Preserve the white space surrounding the "#".
24156 print prefix
"define", macro P
[macro
] D
[macro
]
24159 # Replace #undef with comments. This is necessary, for example,
24160 # in the case of _POSIX_SOURCE, which is predefined and required
24161 # on some systems where configure will not decide to define it.
24162 if (defundef
== "undef") {
24163 print
"/*", prefix defundef
, macro
, "*/"
24171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24172 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
24173 fi # test -n "$CONFIG_HEADERS"
24176 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
24181 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24183 case $ac_mode$ac_tag in
24185 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
24186 :[FH
]-) ac_tag
=-:-;;
24187 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24204 -) ac_f
="$ac_tmp/stdin";;
24205 *) # Look for the file first in the build tree, then in the source tree
24206 # (if the path is not absolute). The absolute path cannot be DOS-style,
24207 # because $ac_f cannot contain `:'.
24211 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24213 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24215 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24216 as_fn_append ac_file_inputs
" '$ac_f'"
24219 # Let's still pretend it is `configure' which instantiates (i.e., don't
24220 # use $as_me), people would be surprised to read:
24221 # /* config.h. Generated by config.status. */
24222 configure_input
='Generated from '`
24223 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24225 if test x
"$ac_file" != x-
; then
24226 configure_input
="$ac_file. $configure_input"
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24228 $as_echo "$as_me: creating $ac_file" >&6;}
24230 # Neutralize special characters interpreted by sed in replacement strings.
24231 case $configure_input in #(
24232 *\
&* |
*\|
* |
*\\* )
24233 ac_sed_conf_input
=`$as_echo "$configure_input" |
24234 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24235 *) ac_sed_conf_input
=$configure_input;;
24239 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
24240 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
24245 ac_dir
=`$as_dirname -- "$ac_file" ||
24246 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24247 X"$ac_file" : 'X\(//\)[^/]' \| \
24248 X"$ac_file" : 'X\(//\)$' \| \
24249 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24250 $as_echo X"$ac_file" |
24251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24255 /^X\(\/\/\)[^/].*/{
24268 as_dir
="$ac_dir"; as_fn_mkdir_p
24272 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24274 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24275 # A ".." for each directory in $ac_dir_suffix.
24276 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24277 case $ac_top_builddir_sub in
24278 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24279 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24282 ac_abs_top_builddir
=$ac_pwd
24283 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24284 # for backward compatibility:
24285 ac_top_builddir
=$ac_top_build_prefix
24288 .
) # We are building in place.
24290 ac_top_srcdir
=$ac_top_builddir_sub
24291 ac_abs_top_srcdir
=$ac_pwd ;;
24292 [\\/]* | ?
:[\\/]* ) # Absolute name.
24293 ac_srcdir
=$srcdir$ac_dir_suffix;
24294 ac_top_srcdir
=$srcdir
24295 ac_abs_top_srcdir
=$srcdir ;;
24296 *) # Relative name.
24297 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24298 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24299 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24301 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24311 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24312 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24314 ac_MKDIR_P
=$MKDIR_P
24316 [\\/$
]* | ?
:[\\/]* ) ;;
24317 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
24321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24322 # If the template does not know about datarootdir, expand it.
24323 # FIXME: This hack should be removed a few years after 2.60.
24324 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24335 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24336 *datarootdir
*) ac_datarootdir_seen
=yes;;
24337 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24339 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24342 ac_datarootdir_hack='
24343 s&@datadir@&$datadir&g
24344 s&@docdir@&$docdir&g
24345 s&@infodir@&$infodir&g
24346 s&@localedir@&$localedir&g
24347 s&@mandir@&$mandir&g
24348 s&\\\${datarootdir}&$datarootdir&g' ;;
24352 # Neutralize VPATH when `$srcdir' = `.'.
24353 # Shell code in configure.ac might set extrasub.
24354 # FIXME: do we really want to maintain this feature?
24355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24356 ac_sed_extra="$ac_vpsub
24359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24361 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24362 s|@configure_input@|
$ac_sed_conf_input|
;t t
24363 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24364 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
24365 s
&@srcdir@
&$ac_srcdir&;t t
24366 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24367 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24368 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24369 s
&@builddir@
&$ac_builddir&;t t
24370 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24371 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24372 s
&@INSTALL@
&$ac_INSTALL&;t t
24373 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
24374 $ac_datarootdir_hack
24376 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
24377 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
24379 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24380 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
24381 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24382 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
24383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24384 which seems to be undefined. Please make sure it is defined" >&5
24385 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24386 which seems to be undefined. Please make sure it is defined" >&2;}
24388 rm -f "$ac_tmp/stdin"
24390 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24391 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24393 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24399 if test x"$ac_file" != x-; then
24401 $as_echo "/* $configure_input */" \
24402 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24403 } >"$ac_tmp/config.h" \
24404 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24405 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24406 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24407 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24410 mv "$ac_tmp/config.h" "$ac_file" \
24411 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24414 $as_echo "/* $configure_input */" \
24415 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24416 || as_fn_error $? "could not create -" "$LINENO" 5
24418 # Compute "$ac_file"'s index
in $config_headers.
24421 for _am_header
in $config_headers :; do
24422 case $_am_header in
24423 $_am_arg |
$_am_arg:* )
24426 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
24429 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24430 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24431 X"$_am_arg" : 'X\(//\)[^/]' \| \
24432 X"$_am_arg" : 'X\(//\)$' \| \
24433 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24434 $as_echo X"$_am_arg" |
24435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24439 /^X\(\/\/\)[^/].*/{
24451 s/.*/./; q'`/stamp-h
$_am_stamp_count
24458 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
24461 # Prefer the file from the source tree if names are identical.
24462 if test "$ac_source" = "$ac_file" ||
test ! -r "$ac_source"; then
24463 ac_source
=$srcdir/$ac_source
24466 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
24467 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
24469 if test ! -r "$ac_source"; then
24470 as_fn_error $?
"$ac_source: file not found" "$LINENO" 5
24474 # Try a relative symlink, then a hard link, then a copy.
24476 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$ac_source ;;
24477 *) ac_rel_source
=$ac_top_build_prefix$ac_source ;;
24479 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
24480 ln "$ac_source" "$ac_file" 2>/dev
/null ||
24481 cp -p "$ac_source" "$ac_file" ||
24482 as_fn_error $?
"cannot link or copy $ac_source to $ac_file" "$LINENO" 5
24485 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24486 $as_echo "$as_me: executing $ac_file commands" >&6;}
24491 case $ac_file$ac_mode in
24492 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
24493 # Autoconf 2.62 quotes --file arguments for eval, but not when files
24494 # are listed without --file. Let's play safe and only enable the eval
24495 # if we detect the quoting.
24496 case $CONFIG_FILES in
24497 *\'*) eval set x
"$CONFIG_FILES" ;;
24498 *) set x
$CONFIG_FILES ;;
24503 # Strip MF so we end up with the name of the file.
24504 mf
=`echo "$mf" | sed -e 's/:.*$//'`
24505 # Check whether this is an Automake generated Makefile or not.
24506 # We used to match only the files named `Makefile.in', but
24507 # some people rename them; so instead we look at the file content.
24508 # Grep'ing the first line is not enough: some people post-process
24509 # each Makefile.in and add a new line on top of each file to say so.
24510 # Grep'ing the whole file is not good either: AIX grep has a line
24511 # limit of 2048, but all sed's we know have understand at least 4000.
24512 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
24513 dirpart
=`$as_dirname -- "$mf" ||
24514 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24515 X"$mf" : 'X\(//\)[^/]' \| \
24516 X"$mf" : 'X\(//\)$' \| \
24517 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24523 /^X\(\/\/\)[^/].*/{
24539 # Extract the definition of DEPDIR, am__include, and am__quote
24540 # from the Makefile without running `make'.
24541 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
24542 test -z "$DEPDIR" && continue
24543 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
24544 test -z "am__include" && continue
24545 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
24546 # When using ansi2knr, U may be empty or an underscore; expand it
24547 U
=`sed -n 's/^U = //p' < "$mf"`
24548 # Find all dependency output files, they are included files with
24549 # $(DEPDIR) in their names. We invoke sed twice because it is the
24550 # simplest approach to changing $(DEPDIR) to its actual value in the
24552 for file in `sed -n "
24553 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24554 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24555 # Make sure the directory exists.
24556 test -f "$dirpart/$file" && continue
24557 fdir
=`$as_dirname -- "$file" ||
24558 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24559 X"$file" : 'X\(//\)[^/]' \| \
24560 X"$file" : 'X\(//\)$' \| \
24561 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24562 $as_echo X"$file" |
24563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24567 /^X\(\/\/\)[^/].*/{
24580 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
24581 # echo "creating $dirpart/$file"
24582 echo '# dummy' > "$dirpart/$file"
24587 "po-directories":C
)
24588 for ac_file
in $CONFIG_FILES; do
24589 # Support "outfile[:infile[:infile...]]"
24591 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
24593 # PO directories have a Makefile.in generated from Makefile.in.in.
24594 case "$ac_file" in */Makefile.
in)
24595 # Adjust a relative srcdir.
24596 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24597 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
24598 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24599 # In autoconf-2.13 it is called $ac_given_srcdir.
24600 # In autoconf-2.50 it is called $srcdir.
24601 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
24602 case "$ac_given_srcdir" in
24603 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
24604 /*) top_srcdir
="$ac_given_srcdir" ;;
24605 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
24607 # Treat a directory as a PO directory if and only if it has a
24608 # POTFILES.in file. This allows packages to have multiple PO
24609 # directories under different names or in different locations.
24610 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24611 rm -f "$ac_dir/POTFILES"
24612 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
24613 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24614 POMAKEFILEDEPS
="POTFILES.in"
24615 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
24616 # on $ac_dir but don't depend on user-specified configuration
24618 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24619 # The LINGUAS file contains the set of available languages.
24620 if test -n "$OBSOLETE_ALL_LINGUAS"; then
24621 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
24623 ALL_LINGUAS_
=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24624 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24625 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24626 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
24628 # The set of available languages was given in configure.in.
24629 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24630 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24633 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
24634 # Compute UPDATEPOFILES
24635 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
24636 # Compute DUMMYPOFILES
24637 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
24639 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
24640 case "$ac_given_srcdir" in
24642 *) srcdirpre
='$(srcdir)/' ;;
24648 for lang
in $ALL_LINGUAS; do
24649 POFILES
="$POFILES $srcdirpre$lang.po"
24650 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
24651 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
24652 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
24654 # CATALOGS depends on both $ac_dir and the user's LINGUAS
24655 # environment variable.
24657 if test -n "$ALL_LINGUAS"; then
24658 for presentlang
in $ALL_LINGUAS; do
24660 if test "%UNSET%" != "$LINGUAS"; then
24661 desiredlanguages
="$LINGUAS"
24663 desiredlanguages
="$ALL_LINGUAS"
24665 for desiredlang
in $desiredlanguages; do
24666 # Use the presentlang catalog if desiredlang is
24667 # a. equal to presentlang, or
24668 # b. a variant of presentlang (because in this case,
24669 # presentlang can be used as a fallback for messages
24670 # which are not translated in the desiredlang catalog).
24671 case "$desiredlang" in
24672 "$presentlang"*) useit
=yes;;
24675 if test $useit = yes; then
24676 INST_LINGUAS
="$INST_LINGUAS $presentlang"
24681 if test -n "$INST_LINGUAS"; then
24682 for lang
in $INST_LINGUAS; do
24683 CATALOGS
="$CATALOGS $lang.gmo"
24686 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
24687 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"
24688 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
24689 if test -f "$f"; then
24691 *.orig |
*.bak |
*~
) ;;
24692 *) cat "$f" >> "$ac_dir/Makefile" ;;
24700 "stamp-h":F
) echo timestamp
> stamp-h
;;
24708 ac_clean_files
=$ac_clean_files_save
24710 test $ac_write_fail = 0 ||
24711 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
24714 # configure is writing to config.log, and then calls config.status.
24715 # config.status does its own redirection, appending to config.log.
24716 # Unfortunately, on DOS this fails, as config.log is still kept open
24717 # by configure, so config.status won't be able to write to it; its
24718 # output is simply discarded. So we exec the FD to /dev/null,
24719 # effectively closing config.log, so it can be properly (re)opened and
24720 # appended to by config.status. When coming back to configure, we
24721 # need to make the FD available again.
24722 if test "$no_create" != yes; then
24724 ac_config_status_args
=
24725 test "$silent" = yes &&
24726 ac_config_status_args
="$ac_config_status_args --quiet"
24728 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24730 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24731 # would make configure fail if this is the last instruction.
24732 $ac_cs_success || as_fn_exit
1
24734 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
24735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24736 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24740 echo "*******************************************************"
24741 echo GRUB2 will be compiled with following components
:
24742 echo Platform
: "$target_cpu"-"$platform"
24743 if [ x
"$platform" = xemu
]; then
24744 if [ x
"$grub_emu_usb_excuse" = x
]; then
24745 echo USB support
for grub-emu
: Yes
24747 echo USB support
for grub-emu
: No
"($grub_emu_usb_excuse)"
24749 if [ x
"$grub_emu_sdl_excuse" = x
]; then
24750 echo SDL support
for grub-emu
: Yes
24752 echo SDL support
for grub-emu
: No
"($grub_emu_sdl_excuse)"
24754 if [ x
"$grub_emu_pci_excuse" = x
]; then
24755 echo PCI support
for grub-emu
: Yes
24757 echo PCI support
for grub-emu
: No
"($grub_emu_pci_excuse)"
24760 if test x
"$device_mapper_excuse" = x
; then
24761 echo With devmapper support
: Yes
24763 echo With devmapper support
: No
"($device_mapper_excuse)"
24765 if [ x
"$enable_mm_debug" = xyes
]; then
24766 echo With memory debugging
: Yes
24768 echo With memory debugging
: No
24770 if [ x
"$enable_cache_stats" = xyes
]; then
24771 echo With disk cache statistics
: Yes
24773 echo With disk cache statistics
: No
24775 if [ x
"$efiemu_excuse" = x
]; then
24776 echo efiemu runtime
: Yes
24778 echo efiemu runtime
: No
"($efiemu_excuse)"
24780 if [ x
"$grub_mkfont_excuse" = x
]; then
24781 echo grub-mkfont
: Yes
24783 echo grub-mkfont
: No
"($grub_mkfont_excuse)"
24785 if [ x
"$grub_mount_excuse" = x
]; then
24786 echo grub-mount
: Yes
24788 echo grub-mount
: No
"($grub_mount_excuse)"
24790 if [ x
"$starfield_excuse" = x
]; then
24791 echo starfield theme
: Yes
24793 echo starfield theme
: No
"($starfield_excuse)"
24795 if [ x
"$libzfs_excuse" = x
]; then
24796 echo With libzfs support
: Yes
24798 echo With libzfs support
: No
"($libzfs_excuse)"
24800 echo "*******************************************************"