2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GRUB 2.02~beta2.
5 # Report bugs to <bug-grub@gnu.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
140 _as_can_reexec
=no
; export _as_can_reexec
;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec
=; unset _as_can_reexec
;}
162 if test "x$CONFIG_SHELL" = x
; then
163 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required
="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev
/null
; then :
207 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
212 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir
=.
219 for as_base
in sh bash ksh sh5
; do
220 # Try only shells that exist, to save several forks.
221 as_shell
=$as_dir/$as_base
222 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
224 CONFIG_SHELL
=$as_shell as_have_required
=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
233 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
235 CONFIG_SHELL
=$SHELL as_have_required
=yes
240 if test "x$CONFIG_SHELL" != x
; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
250 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x
$as_have_required = xno
; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x
${ZSH_VERSION+set} = xset
; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-grub@gnu.org
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
279 SHELL
=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE
= GREP_OPTIONS
=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir
=.
/$as_dir;;
324 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
328 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs
="'$as_qdir' $as_dirs"
332 as_dir
=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
358 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p
()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
401 as_val
=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status
=$1; test $as_status -eq 0 && as_status
=1
415 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit
$as_status
422 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
429 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
441 as_me
=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits
='0123456789'
465 as_cr_alnum
=$as_cr_Letters$as_cr_digits
468 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
469 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x
"$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec
=no
; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C
= ECHO_N
= ECHO_T
=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
516 rm -f conf$$ conf$$.exe conf$$.
file
517 if test -d conf$$.dir
; then
518 rm -f conf$$.dir
/conf$$.
file
521 mkdir conf$$.dir
2>/dev
/null
523 if (echo >conf$$.
file) 2>/dev
/null
; then
524 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
532 elif ln conf$$.
file conf$$
2>/dev
/null
; then
540 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
541 rmdir conf$$.dir
2>/dev
/null
543 if mkdir
-p .
2>/dev
/null
; then
544 as_mkdir_p
='mkdir -p "$as_dir"'
546 test -d .
/-p && rmdir .
/-p
551 as_executable_p
=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix
=/usr
/local
573 ac_config_libobj_dir
=.
580 # Identity of this package.
582 PACKAGE_TARNAME
='grub'
583 PACKAGE_VERSION
='2.02~beta2'
584 PACKAGE_STRING
='GRUB 2.02~beta2'
585 PACKAGE_BUGREPORT
='bug-grub@gnu.org'
588 ac_unique_file
="include/grub/dl.h"
589 # Factoring default headers for most tests.
590 ac_includes_default
="\
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
602 # ifdef HAVE_STDLIB_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
628 gl_fnmatch_required
=POSIX
629 gl_getopt_required
=POSIX
630 gl_getopt_required
=POSIX
631 ac_subst_vars
='gltests_LTLIBOBJS
643 COND_HAVE_ASM_USCORE_FALSE
644 COND_HAVE_ASM_USCORE_TRUE
647 COND_ENABLE_BOOT_TIME_STATS_FALSE
648 COND_ENABLE_BOOT_TIME_STATS_TRUE
649 COND_ENABLE_CACHE_STATS_FALSE
650 COND_ENABLE_CACHE_STATS_TRUE
651 COND_ENABLE_EFIEMU_FALSE
652 COND_ENABLE_EFIEMU_TRUE
653 COND_APPLE_LINKER_FALSE
654 COND_APPLE_LINKER_TRUE
656 COND_HAVE_FONT_SOURCE_FALSE
657 COND_HAVE_FONT_SOURCE_TRUE
658 COND_GRUB_MOUNT_FALSE
660 COND_GRUB_MKFONT_FALSE
661 COND_GRUB_MKFONT_TRUE
662 COND_GRUB_EMU_PCI_FALSE
663 COND_GRUB_EMU_PCI_TRUE
664 COND_GRUB_EMU_SDL_FALSE
665 COND_GRUB_EMU_SDL_TRUE
666 COND_GRUB_EMU_USB_FALSE
667 COND_GRUB_EMU_USB_TRUE
670 COND_HOST_ILLUMOS_FALSE
671 COND_HOST_ILLUMOS_TRUE
674 COND_HOST_KFREEBSD_FALSE
675 COND_HOST_KFREEBSD_TRUE
676 COND_HOST_WINDOWS_FALSE
677 COND_HOST_WINDOWS_TRUE
678 COND_HOST_NETBSD_FALSE
679 COND_HOST_NETBSD_TRUE
680 COND_HOST_LINUX_FALSE
700 COND_powerpc_ieee1275_FALSE
701 COND_powerpc_ieee1275_TRUE
702 COND_sparc64_emu_FALSE
703 COND_sparc64_emu_TRUE
704 COND_sparc64_ieee1275_FALSE
705 COND_sparc64_ieee1275_TRUE
708 COND_mips_qemu_mips_FALSE
709 COND_mips_qemu_mips_TRUE
710 COND_mips_loongson_FALSE
711 COND_mips_loongson_TRUE
712 COND_x86_64_xen_FALSE
716 COND_x86_64_efi_FALSE
718 COND_i386_multiboot_FALSE
719 COND_i386_multiboot_TRUE
720 COND_i386_coreboot_FALSE
721 COND_i386_coreboot_TRUE
722 COND_i386_ieee1275_FALSE
723 COND_i386_ieee1275_TRUE
736 COND_real_platform_FALSE
737 COND_real_platform_TRUE
744 TARGET_IMG_BASE_LDOPT
756 TARGET_LDFLAGS_STATIC_LIBGCC
765 GRUB_BOOT_MACHINE_LINK_ADDR
775 build_freetype_cflags
777 BUILD_WORDS_BIGENDIAN
794 TARGET_NMFLAGS_DEFINED_ONLY
795 TARGET_NMFLAGS_MINUS_P
796 TARGET_LDFLAGS_OLDMAGIC
817 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
830 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
833 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE
834 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE
835 LIBUNISTRING_UNIWIDTH_H
836 LIBUNISTRING_UNITYPES_H
838 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
840 GL_GENERATE_SYSEXITS_H_FALSE
841 GL_GENERATE_SYSEXITS_H_TRUE
844 NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H
847 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
850 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
852 NEXT_AS_FIRST_DIRECTIVE_STRING_H
855 HAVE_DECL_STRNCASECMP
859 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
861 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
863 GL_GENERATE_STDINT_H_FALSE
864 GL_GENERATE_STDINT_H_TRUE
873 HAVE_SIGNED_SIG_ATOMIC_T
876 BITSIZEOF_SIG_ATOMIC_T
882 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
887 HAVE_UNSIGNED_LONG_LONG_INT
890 GL_GENERATE_STDBOOL_H_FALSE
891 GL_GENERATE_STDBOOL_H_TRUE
893 GL_GENERATE_STDALIGN_H_FALSE
894 GL_GENERATE_STDALIGN_H_TRUE
896 APPLE_UNIVERSAL_BUILD
897 HAVE_MSVC_INVALID_PARAMETER_HANDLER
987 REPLACE_CANONICALIZE_FILE_NAME
992 HAVE_STRUCT_RANDOM_DATA
1014 HAVE_DECL_GETLOADAVG
1015 HAVE_CANONICALIZE_FILE_NAME
1026 GNULIB_SECURE_GETENV
1029 GNULIB_REALLOC_POSIX
1046 GNULIB_CANONICALIZE_FILE_NAME
1050 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
1053 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
1055 GL_GENERATE_STDDEF_H_FALSE
1056 GL_GENERATE_STDDEF_H_TRUE
1060 REPLACE_STRUCT_LCONV
1068 LOCALCHARSET_TESTS_ENVIRONMENT
1070 HAVE_LANGINFO_YESEXPR
1072 HAVE_LANGINFO_T_FMT_AMPM
1073 HAVE_LANGINFO_CODESET
1075 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
1080 GNULIB_GL_UNISTD_H_GETOPT
1083 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1085 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1086 UNISTD_H_HAVE_WINSOCK2_H
1107 REPLACE_GETDOMAINNAME
1118 HAVE_DECL_SETHOSTNAME
1119 HAVE_DECL_GETUSERSHELL
1120 HAVE_DECL_GETPAGESIZE
1121 HAVE_DECL_GETLOGIN_R
1122 HAVE_DECL_GETDOMAINNAME
1161 GNULIB_UNISTD_H_SIGPIPE
1162 GNULIB_UNISTD_H_NONBLOCKING
1188 GNULIB_GETDTABLESIZE
1189 GNULIB_GETDOMAINNAME
1212 REPLACE_STDIO_WRITE_FUNCS
1213 REPLACE_STDIO_READ_FUNCS
1222 REPLACE_OBSTACK_PRINTF
1247 HAVE_DECL_OBSTACK_PRINTF
1253 GNULIB_VSPRINTF_POSIX
1255 GNULIB_VPRINTF_POSIX
1257 GNULIB_VFPRINTF_POSIX
1264 GNULIB_STDIO_H_SIGPIPE
1265 GNULIB_STDIO_H_NONBLOCKING
1266 GNULIB_SPRINTF_POSIX
1280 GNULIB_OBSTACK_PRINTF_POSIX
1281 GNULIB_OBSTACK_PRINTF
1297 GNULIB_FPRINTF_POSIX
1306 GL_GENERATE_FNMATCH_H_FALSE
1307 GL_GENERATE_FNMATCH_H_TRUE
1310 GL_GENERATE_FLOAT_H_FALSE
1311 GL_GENERATE_FLOAT_H_TRUE
1313 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1321 GL_GENERATE_ERRNO_H_FALSE
1322 GL_GENERATE_ERRNO_H_TRUE
1324 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1327 PRAGMA_SYSTEM_HEADER
1328 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1424 GL_GENERATE_ALLOCA_H_FALSE
1425 GL_GENERATE_ALLOCA_H_TRUE
1428 GL_COND_LIBTOOL_FALSE
1429 GL_COND_LIBTOOL_TRUE
1441 XGETTEXT_EXTRA_OPTIONS
1449 GETTEXT_MACRO_VERSION
1452 am__fastdepCCAS_FALSE
1453 am__fastdepCCAS_TRUE
1457 am__fastdepCXX_FALSE
1497 TARGET_DECOMPRESSOR_LINK_ADDR
1508 grub_mkpasswd_pbkdf2
1518 AM_DEFAULT_VERBOSITY
1529 INSTALL_STRIP_PROGRAM
1583 program_transform_name
1596 enable_option_checking
1601 enable_dependency_tracking
1605 with_libiconv_prefix
1613 enable_skip_platform
1620 enable_device_mapper
1625 ac_precious_vars
='build_alias
1643 # Initialize some variables set by options.
1645 ac_init_version
=false
1646 ac_unrecognized_opts
=
1647 ac_unrecognized_sep
=
1648 # The variables have the same names as the options, with
1649 # dashes changed to underlines.
1650 cache_file
=/dev
/null
1657 program_transform_name
=s
,x
,x
,
1665 # Installation directory options.
1666 # These are left unexpanded so users can "make install exec_prefix=/foo"
1667 # and all the variables that are supposed to be based on exec_prefix
1668 # by default will actually change.
1669 # Use braces instead of parens because sh, perl, etc. also accept them.
1670 # (The list follows the same order as the GNU Coding Standards.)
1671 bindir
='${exec_prefix}/bin'
1672 sbindir
='${exec_prefix}/sbin'
1673 libexecdir
='${exec_prefix}/libexec'
1674 datarootdir
='${prefix}/share'
1675 datadir
='${datarootdir}'
1676 sysconfdir
='${prefix}/etc'
1677 sharedstatedir
='${prefix}/com'
1678 localstatedir
='${prefix}/var'
1679 includedir
='${prefix}/include'
1680 oldincludedir
='/usr/include'
1681 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1682 infodir
='${datarootdir}/info'
1687 libdir
='${exec_prefix}/lib'
1688 localedir
='${datarootdir}/locale'
1689 mandir
='${datarootdir}/man'
1695 # If the previous option needs an argument, assign it.
1696 if test -n "$ac_prev"; then
1697 eval $ac_prev=\
$ac_option
1703 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1708 # Accept the important Cygnus configure options, so we can diagnose typos.
1710 case $ac_dashdash$ac_option in
1714 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1716 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1717 bindir
=$ac_optarg ;;
1719 -build |
--build |
--buil |
--bui |
--bu)
1720 ac_prev
=build_alias
;;
1721 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1722 build_alias
=$ac_optarg ;;
1724 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1725 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1726 ac_prev
=cache_file
;;
1727 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1728 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1729 cache_file
=$ac_optarg ;;
1731 --config-cache |
-C)
1732 cache_file
=config.cache
;;
1734 -datadir |
--datadir |
--datadi |
--datad)
1736 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1737 datadir
=$ac_optarg ;;
1739 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1740 |
--dataroo |
--dataro |
--datar)
1741 ac_prev
=datarootdir
;;
1742 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1743 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1744 datarootdir
=$ac_optarg ;;
1746 -disable-* |
--disable-*)
1747 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1748 # Reject names that are not valid shell variable names.
1749 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1750 as_fn_error $?
"invalid feature name: $ac_useropt"
1751 ac_useropt_orig
=$ac_useropt
1752 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1753 case $ac_user_opts in
1755 "enable_
$ac_useropt"
1757 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1758 ac_unrecognized_sep
=', ';;
1760 eval enable_
$ac_useropt=no
;;
1762 -docdir |
--docdir |
--docdi |
--doc |
--do)
1764 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1765 docdir
=$ac_optarg ;;
1767 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1769 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1770 dvidir
=$ac_optarg ;;
1772 -enable-* |
--enable-*)
1773 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1774 # Reject names that are not valid shell variable names.
1775 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1776 as_fn_error $?
"invalid feature name: $ac_useropt"
1777 ac_useropt_orig
=$ac_useropt
1778 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1779 case $ac_user_opts in
1781 "enable_
$ac_useropt"
1783 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1784 ac_unrecognized_sep
=', ';;
1786 eval enable_
$ac_useropt=\
$ac_optarg ;;
1788 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1789 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1790 |
--exec |
--exe |
--ex)
1791 ac_prev
=exec_prefix
;;
1792 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1793 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1794 |
--exec=* |
--exe=* |
--ex=*)
1795 exec_prefix
=$ac_optarg ;;
1797 -gas |
--gas |
--ga |
--g)
1798 # Obsolete; use --with-gas.
1801 -help |
--help |
--hel |
--he |
-h)
1802 ac_init_help
=long
;;
1803 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1804 ac_init_help
=recursive
;;
1805 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1806 ac_init_help
=short
;;
1808 -host |
--host |
--hos |
--ho)
1809 ac_prev
=host_alias
;;
1810 -host=* |
--host=* |
--hos=* |
--ho=*)
1811 host_alias
=$ac_optarg ;;
1813 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1815 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1817 htmldir
=$ac_optarg ;;
1819 -includedir |
--includedir |
--includedi |
--included |
--include \
1820 |
--includ |
--inclu |
--incl |
--inc)
1821 ac_prev
=includedir
;;
1822 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1823 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1824 includedir
=$ac_optarg ;;
1826 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1828 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1829 infodir
=$ac_optarg ;;
1831 -libdir |
--libdir |
--libdi |
--libd)
1833 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1834 libdir
=$ac_optarg ;;
1836 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1837 |
--libexe |
--libex |
--libe)
1838 ac_prev
=libexecdir
;;
1839 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1840 |
--libexe=* |
--libex=* |
--libe=*)
1841 libexecdir
=$ac_optarg ;;
1843 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1844 ac_prev
=localedir
;;
1845 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1846 localedir
=$ac_optarg ;;
1848 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1849 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1850 ac_prev
=localstatedir
;;
1851 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1852 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1853 localstatedir
=$ac_optarg ;;
1855 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1857 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1858 mandir
=$ac_optarg ;;
1860 -nfp |
--nfp |
--nf)
1861 # Obsolete; use --without-fp.
1864 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1865 |
--no-cr |
--no-c |
-n)
1868 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1869 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1872 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1873 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1874 |
--oldin |
--oldi |
--old |
--ol |
--o)
1875 ac_prev
=oldincludedir
;;
1876 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1877 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1878 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1879 oldincludedir
=$ac_optarg ;;
1881 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1883 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1884 prefix
=$ac_optarg ;;
1886 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1887 |
--program-pre |
--program-pr |
--program-p)
1888 ac_prev
=program_prefix
;;
1889 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1890 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1891 program_prefix
=$ac_optarg ;;
1893 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1894 |
--program-suf |
--program-su |
--program-s)
1895 ac_prev
=program_suffix
;;
1896 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1897 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1898 program_suffix
=$ac_optarg ;;
1900 -program-transform-name |
--program-transform-name \
1901 |
--program-transform-nam |
--program-transform-na \
1902 |
--program-transform-n |
--program-transform- \
1903 |
--program-transform |
--program-transfor \
1904 |
--program-transfo |
--program-transf \
1905 |
--program-trans |
--program-tran \
1906 |
--progr-tra |
--program-tr |
--program-t)
1907 ac_prev
=program_transform_name
;;
1908 -program-transform-name=* |
--program-transform-name=* \
1909 |
--program-transform-nam=* |
--program-transform-na=* \
1910 |
--program-transform-n=* |
--program-transform-=* \
1911 |
--program-transform=* |
--program-transfor=* \
1912 |
--program-transfo=* |
--program-transf=* \
1913 |
--program-trans=* |
--program-tran=* \
1914 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1915 program_transform_name
=$ac_optarg ;;
1917 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1919 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1920 pdfdir
=$ac_optarg ;;
1922 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1924 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1927 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1928 |
-silent |
--silent |
--silen |
--sile |
--sil)
1931 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1933 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1935 sbindir
=$ac_optarg ;;
1937 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1938 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1939 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1941 ac_prev
=sharedstatedir
;;
1942 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1943 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1944 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1946 sharedstatedir
=$ac_optarg ;;
1948 -site |
--site |
--sit)
1950 -site=* |
--site=* |
--sit=*)
1953 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1955 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1956 srcdir
=$ac_optarg ;;
1958 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1959 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1960 ac_prev
=sysconfdir
;;
1961 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1962 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1963 sysconfdir
=$ac_optarg ;;
1965 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1966 ac_prev
=target_alias
;;
1967 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1968 target_alias
=$ac_optarg ;;
1970 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1973 -version |
--version |
--versio |
--versi |
--vers |
-V)
1974 ac_init_version
=: ;;
1977 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1978 # Reject names that are not valid shell variable names.
1979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1980 as_fn_error $?
"invalid package name: $ac_useropt"
1981 ac_useropt_orig
=$ac_useropt
1982 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1983 case $ac_user_opts in
1987 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1988 ac_unrecognized_sep
=', ';;
1990 eval with_
$ac_useropt=\
$ac_optarg ;;
1992 -without-* |
--without-*)
1993 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1994 # Reject names that are not valid shell variable names.
1995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1996 as_fn_error $?
"invalid package name: $ac_useropt"
1997 ac_useropt_orig
=$ac_useropt
1998 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1999 case $ac_user_opts in
2003 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2004 ac_unrecognized_sep
=', ';;
2006 eval with_
$ac_useropt=no
;;
2009 # Obsolete; use --with-x.
2012 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
2013 |
--x-incl |
--x-inc |
--x-in |
--x-i)
2014 ac_prev
=x_includes
;;
2015 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
2016 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
2017 x_includes
=$ac_optarg ;;
2019 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
2020 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
2021 ac_prev
=x_libraries
;;
2022 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
2023 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
2024 x_libraries
=$ac_optarg ;;
2026 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
2027 Try \`$0 --help' for more information"
2031 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
2032 # Reject names that are not valid shell variable names.
2033 case $ac_envvar in #(
2034 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
2035 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
2037 eval $ac_envvar=\
$ac_optarg
2038 export $ac_envvar ;;
2041 # FIXME: should be removed in autoconf 3.0.
2042 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2043 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
2044 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2045 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2051 if test -n "$ac_prev"; then
2052 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
2053 as_fn_error $?
"missing argument to $ac_option"
2056 if test -n "$ac_unrecognized_opts"; then
2057 case $enable_option_checking in
2059 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
2060 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2064 # Check all directory arguments for consistency.
2065 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2066 datadir sysconfdir sharedstatedir localstatedir includedir \
2067 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2068 libdir localedir mandir
2070 eval ac_val
=\$
$ac_var
2071 # Remove trailing slashes.
2074 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2075 eval $ac_var=\
$ac_val;;
2077 # Be sure to have absolute directory names.
2079 [\\/$
]* | ?
:[\\/]* ) continue;;
2080 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
2082 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
2085 # There might be people who depend on the old broken behavior: `$host'
2086 # used to hold the argument of --host etc.
2087 # FIXME: To remove some day.
2090 target
=$target_alias
2092 # FIXME: To remove some day.
2093 if test "x$host_alias" != x
; then
2094 if test "x$build_alias" = x
; then
2095 cross_compiling
=maybe
2096 elif test "x$build_alias" != "x$host_alias"; then
2102 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2104 test "$silent" = yes && exec 6>/dev
/null
2107 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2108 ac_ls_di
=`ls -di .` &&
2109 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2110 as_fn_error $?
"working directory cannot be determined"
2111 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2112 as_fn_error $?
"pwd does not report name of working directory"
2115 # Find the source files, if location was not specified.
2116 if test -z "$srcdir"; then
2117 ac_srcdir_defaulted
=yes
2118 # Try the directory containing this script, then the parent directory.
2119 ac_confdir
=`$as_dirname -- "$as_myself" ||
2120 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2121 X"$as_myself" : 'X\(//\)[^/]' \| \
2122 X"$as_myself" : 'X\(//\)$' \| \
2123 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2124 $as_echo X"$as_myself" |
2125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2143 if test ! -r "$srcdir/$ac_unique_file"; then
2147 ac_srcdir_defaulted
=no
2149 if test ! -r "$srcdir/$ac_unique_file"; then
2150 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2151 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
2153 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2155 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2157 # When building in place, set srcdir=.
2158 if test "$ac_abs_confdir" = "$ac_pwd"; then
2161 # Remove unnecessary trailing slashes from srcdir.
2162 # Double slashes in file names in object file debugging info
2163 # mess up M-x gdb in Emacs.
2165 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2167 for ac_var
in $ac_precious_vars; do
2168 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2169 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2170 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2171 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2175 # Report the --help message.
2177 if test "$ac_init_help" = "long"; then
2178 # Omit some internal or obsolete options to make the list less imposing.
2179 # This message is too long to be a string in the A/UX 3.1 sh.
2181 \`configure' configures GRUB 2.02~beta2 to adapt to many kinds of systems.
2183 Usage: $0 [OPTION]... [VAR=VALUE]...
2185 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2186 VAR=VALUE. See below for descriptions of some of the useful variables.
2188 Defaults for the options are specified in brackets.
2191 -h, --help display this help and exit
2192 --help=short display options specific to this package
2193 --help=recursive display the short help of all the included packages
2194 -V, --version display version information and exit
2195 -q, --quiet, --silent do not print \`checking ...' messages
2196 --cache-file=FILE cache test results in FILE [disabled]
2197 -C, --config-cache alias for \`--cache-file=config.cache'
2198 -n, --no-create do not create output files
2199 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2201 Installation directories:
2202 --prefix=PREFIX install architecture-independent files in PREFIX
2203 [$ac_default_prefix]
2204 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2207 By default, \`make install' will install all the files in
2208 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2209 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2210 for instance \`--prefix=\$HOME'.
2212 For better control, use the options below.
2214 Fine tuning of the installation directories:
2215 --bindir=DIR user executables [EPREFIX/bin]
2216 --sbindir=DIR system admin executables [EPREFIX/sbin]
2217 --libexecdir=DIR program executables [EPREFIX/libexec]
2218 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2219 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2220 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2221 --libdir=DIR object code libraries [EPREFIX/lib]
2222 --includedir=DIR C header files [PREFIX/include]
2223 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2224 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2225 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2226 --infodir=DIR info documentation [DATAROOTDIR/info]
2227 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2228 --mandir=DIR man documentation [DATAROOTDIR/man]
2229 --docdir=DIR documentation root [DATAROOTDIR/doc/grub]
2230 --htmldir=DIR html documentation [DOCDIR]
2231 --dvidir=DIR dvi documentation [DOCDIR]
2232 --pdfdir=DIR pdf documentation [DOCDIR]
2233 --psdir=DIR ps documentation [DOCDIR]
2239 --program-prefix=PREFIX prepend PREFIX to installed program names
2240 --program-suffix=SUFFIX append SUFFIX to installed program names
2241 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2244 --build=BUILD configure
for building on BUILD
[guessed
]
2245 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2246 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
2250 if test -n "$ac_init_help"; then
2251 case $ac_init_help in
2252 short | recursive
) echo "Configuration of GRUB 2.02~beta2:";;
2257 --disable-option-checking ignore unrecognized
--enable/--with options
2258 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2259 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2260 --enable-silent-rules less verbose build output
(undo
: "make V=1")
2261 --disable-silent-rules verbose build output
(undo
: "make V=0")
2262 --enable-dependency-tracking
2263 do not reject slow dependency extractors
2264 --disable-dependency-tracking
2265 speeds up one-time build
2266 --disable-nls do not use Native Language Support
2267 --disable-rpath do not hardcode runtime library paths
2268 --disable-largefile omit support
for large files
2269 --enable-efiemu build and
install the efiemu runtimes
2271 --enable-mm-debug include memory manager debugging
2272 --enable-cache-stats enable disk cache statistics collection
2273 --enable-boot-time enable boot
time statistics collection
2274 --enable-skip-platform build only
host tools
2275 --enable-grub-emu-usb build and
install the
`grub-emu' debugging utility
2276 with USB support (default=guessed)
2277 --enable-grub-emu-sdl build and install the `grub-emu
' debugging utility
2278 with SDL support (default=guessed)
2279 --enable-grub-emu-pci build and install the `grub-emu' debugging utility
2280 with PCI support
(potentially dangerous
)
2282 --enable-grub-mkfont build and
install the
`grub-mkfont' utility
2284 --enable-grub-themes build and install GRUB themes (default=guessed)
2285 --enable-grub-mount build and install the `grub-mount
' utility
2287 --enable-device-mapper enable Linux device-mapper support (default=guessed)
2288 --enable-liblzma enable liblzma integration (default=guessed)
2289 --enable-libzfs enable libzfs integration (default=guessed)
2290 --disable-werror do not use -Werror when building GRUB
2293 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2294 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2295 --with-platform=PLATFORM
2296 select the host platform [[guessed]]
2297 --with-bootdir=DIR set the name of /boot directory [[guessed]]
2298 --with-grubdir=DIR set the name of grub directory [[guessed]]
2299 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2300 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
2301 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
2302 --with-libintl-prefix[=DIR
] search
for libintl
in DIR
/include and DIR
/lib
2303 --without-libintl-prefix don
't search for libintl in includedir and libdir
2304 --without-included-regex
2305 don't compile regex
; this is the default on systems
2306 with recent-enough versions of the GNU C Library
2307 (use with caution on other systems
).
2309 Some influential environment variables
:
2310 CC C compiler
command
2311 CFLAGS C compiler flags
2312 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2313 nonstandard directory
<lib dir
>
2314 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2315 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2316 you have headers
in a nonstandard directory
<include dir
>
2317 YACC The
`Yet Another Compiler Compiler' implementation to use.
2318 Defaults to the first program found out of: `bison
-y', `byacc',
2320 YFLAGS The list of arguments that will be passed by default to $YACC.
2321 This script will default YFLAGS to the empty string to avoid a
2322 default value of `-d' given by some make applications.
2324 CXX C++ compiler command
2325 CXXFLAGS C++ compiler flags
2326 CCAS assembler compiler command (defaults to CC)
2327 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
2329 Use these variables to override the choices made by `configure' or to
help
2330 it to
find libraries and programs with nonstandard names
/locations.
2332 Report bugs to
<bug-grub@gnu.org
>.
2337 if test "$ac_init_help" = "recursive"; then
2338 # If there are subdirs, report their specific --help.
2339 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
2340 test -d "$ac_dir" ||
2341 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
2346 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
2348 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2349 # A ".." for each directory in $ac_dir_suffix.
2350 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2351 case $ac_top_builddir_sub in
2352 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
2353 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
2356 ac_abs_top_builddir
=$ac_pwd
2357 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
2358 # for backward compatibility:
2359 ac_top_builddir
=$ac_top_build_prefix
2362 .
) # We are building in place.
2364 ac_top_srcdir
=$ac_top_builddir_sub
2365 ac_abs_top_srcdir
=$ac_pwd ;;
2366 [\\/]* | ?
:[\\/]* ) # Absolute name.
2367 ac_srcdir
=$srcdir$ac_dir_suffix;
2368 ac_top_srcdir
=$srcdir
2369 ac_abs_top_srcdir
=$srcdir ;;
2371 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
2372 ac_top_srcdir
=$ac_top_build_prefix$srcdir
2373 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
2375 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
2377 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
2378 # Check for guested configure.
2379 if test -f "$ac_srcdir/configure.gnu"; then
2381 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2382 elif test -f "$ac_srcdir/configure"; then
2384 $SHELL "$ac_srcdir/configure" --help=recursive
2386 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2388 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
2392 test -n "$ac_init_help" && exit $ac_status
2393 if $ac_init_version; then
2395 GRUB configure
2.02~beta2
2396 generated by GNU Autoconf
2.69
2398 Copyright
(C
) 2012 Free Software Foundation
, Inc.
2399 This configure
script is free software
; the Free Software Foundation
2400 gives unlimited permission to copy
, distribute and modify it.
2405 ## ------------------------ ##
2406 ## Autoconf initialization. ##
2407 ## ------------------------ ##
2409 # ac_fn_c_try_compile LINENO
2410 # --------------------------
2411 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2412 ac_fn_c_try_compile
()
2414 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2415 rm -f conftest.
$ac_objext
2416 if { { ac_try
="$ac_compile"
2418 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2419 *) ac_try_echo=$ac_try;;
2421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2422 $as_echo "$ac_try_echo"; } >&5
2423 (eval "$ac_compile") 2>conftest.err
2425 if test -s conftest.err; then
2426 grep -v '^ *+' conftest.err >conftest.er1
2427 cat conftest.er1 >&5
2428 mv -f conftest.er1 conftest.err
2430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2431 test $ac_status = 0; } && {
2432 test -z "$ac_c_werror_flag" ||
2433 test ! -s conftest.err
2434 } && test -s conftest.$ac_objext; then :
2437 $as_echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2442 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2443 as_fn_set_status $ac_retval
2445 } # ac_fn_c_try_compile
2447 # ac_fn_c_try_link LINENO
2448 # -----------------------
2449 # Try to link conftest.$ac_ext, and return whether this succeeded.
2452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453 rm -f conftest.$ac_objext conftest$ac_exeext
2454 if { { ac_try="$ac_link"
2456 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2457 *) ac_try_echo
=$ac_try;;
2459 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2460 $as_echo "$ac_try_echo"; } >&5
2461 (eval "$ac_link") 2>conftest.err
2463 if test -s conftest.err
; then
2464 grep -v '^ *+' conftest.err
>conftest.er1
2465 cat conftest.er1
>&5
2466 mv -f conftest.er1 conftest.err
2468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2469 test $ac_status = 0; } && {
2470 test -z "$ac_c_werror_flag" ||
2471 test ! -s conftest.err
2472 } && test -s conftest
$ac_exeext && {
2473 test "$cross_compiling" = yes ||
2474 test -x conftest
$ac_exeext
2478 $as_echo "$as_me: failed program was:" >&5
2479 sed 's/^/| /' conftest.
$ac_ext >&5
2483 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2484 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2485 # interfere with the next link command; also delete a directory that is
2486 # left behind by Apple's compiler. We do this before executing the actions.
2487 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2488 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2489 as_fn_set_status
$ac_retval
2491 } # ac_fn_c_try_link
2493 # ac_fn_c_try_cpp LINENO
2494 # ----------------------
2495 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2498 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2499 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2502 *) ac_try_echo=$ac_try;;
2504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2505 $as_echo "$ac_try_echo"; } >&5
2506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2508 if test -s conftest.err; then
2509 grep -v '^ *+' conftest.err >conftest.er1
2510 cat conftest.er1 >&5
2511 mv -f conftest.er1 conftest.err
2513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2514 test $ac_status = 0; } > conftest.i && {
2515 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2516 test ! -s conftest.err
2520 $as_echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.$ac_ext >&5
2525 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2526 as_fn_set_status $ac_retval
2530 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2531 # -------------------------------------------------------
2532 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2533 # the include files in INCLUDES and setting the cache variable VAR
2535 ac_fn_c_check_header_mongrel ()
2537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2538 if eval \${$3+:} false; then :
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2540 $as_echo_n "checking for $2... " >&6; }
2541 if eval \${$3+:} false; then :
2542 $as_echo_n "(cached) " >&6
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2546 $as_echo "$ac_res" >&6; }
2548 # Is the header compilable?
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2550 $as_echo_n "checking $2 usability... " >&6; }
2551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2552 /* end confdefs.h. */
2556 if ac_fn_c_try_compile "$LINENO"; then :
2557 ac_header_compiler=yes
2559 ac_header_compiler=no
2561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2563 $as_echo "$ac_header_compiler" >&6; }
2565 # Is the header present?
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2567 $as_echo_n "checking $2 presence... " >&6; }
2568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569 /* end confdefs.h. */
2572 if ac_fn_c_try_cpp "$LINENO"; then :
2573 ac_header_preproc=yes
2575 ac_header_preproc=no
2577 rm -f conftest.err conftest.i conftest.$ac_ext
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2579 $as_echo "$ac_header_preproc" >&6; }
2581 # So? What about this header?
2582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2585 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2587 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2591 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2593 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2595 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2597 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2599 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2600 ( $as_echo "## ------------------------------- ##
2601 ## Report this to bug-grub@gnu.org ##
2602 ## ------------------------------- ##"
2603 ) | sed "s/^/$as_me: WARNING: /" >&2
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2607 $as_echo_n "checking for $2... " >&6; }
2608 if eval \${$3+:} false; then :
2609 $as_echo_n "(cached) " >&6
2611 eval "$3=\$ac_header_compiler"
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2615 $as_echo "$ac_res" >&6; }
2617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2619 } # ac_fn_c_check_header_mongrel
2621 # ac_fn_c_try_run LINENO
2622 # ----------------------
2623 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2624 # that executables *can* be run.
2627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2628 if { { ac_try="$ac_link"
2630 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2631 *) ac_try_echo
=$ac_try;;
2633 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2634 $as_echo "$ac_try_echo"; } >&5
2635 (eval "$ac_link") 2>&5
2637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2638 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2639 { { case "(($ac_try" in
2640 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2641 *) ac_try_echo=$ac_try;;
2643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2644 $as_echo "$ac_try_echo"; } >&5
2645 (eval "$ac_try") 2>&5
2647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2648 test $ac_status = 0; }; }; then :
2651 $as_echo "$as_me: program exited with status $ac_status" >&5
2652 $as_echo "$as_me: failed program was:" >&5
2653 sed 's/^/| /' conftest.$ac_ext >&5
2655 ac_retval=$ac_status
2657 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2659 as_fn_set_status $ac_retval
2663 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2664 # -------------------------------------------------------
2665 # Tests whether HEADER exists and can be compiled using the include files in
2666 # INCLUDES, setting the cache variable VAR accordingly.
2667 ac_fn_c_check_header_compile ()
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" >&5
2671 $as_echo_n "checking for $2... " >&6; }
2672 if eval \${$3+:} false; then :
2673 $as_echo_n "(cached) " >&6
2675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2676 /* end confdefs.h. */
2680 if ac_fn_c_try_compile "$LINENO"; then :
2685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2689 $as_echo "$ac_res" >&6; }
2690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2692 } # ac_fn_c_check_header_compile
2694 # ac_fn_cxx_try_compile LINENO
2695 # ----------------------------
2696 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2697 ac_fn_cxx_try_compile ()
2699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2700 rm -f conftest.$ac_objext
2701 if { { ac_try="$ac_compile"
2703 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2704 *) ac_try_echo
=$ac_try;;
2706 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2707 $as_echo "$ac_try_echo"; } >&5
2708 (eval "$ac_compile") 2>conftest.err
2710 if test -s conftest.err
; then
2711 grep -v '^ *+' conftest.err
>conftest.er1
2712 cat conftest.er1
>&5
2713 mv -f conftest.er1 conftest.err
2715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2716 test $ac_status = 0; } && {
2717 test -z "$ac_cxx_werror_flag" ||
2718 test ! -s conftest.err
2719 } && test -s conftest.
$ac_objext; then :
2722 $as_echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.
$ac_ext >&5
2727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2728 as_fn_set_status
$ac_retval
2730 } # ac_fn_cxx_try_compile
2732 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2733 # --------------------------------------------
2734 # Tries to find the compile-time value of EXPR in a program that includes
2735 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2737 ac_fn_c_compute_int
()
2739 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2740 if test "$cross_compiling" = yes; then
2741 # Depending upon the size, compute the lo and hi bounds.
2742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2743 /* end confdefs.h. */
2748 static int test_array [1 - 2 * !(($2) >= 0)];
2750 return test_array [0];
2756 if ac_fn_c_try_compile
"$LINENO"; then :
2759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2760 /* end confdefs.h. */
2765 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2767 return test_array [0];
2773 if ac_fn_c_try_compile
"$LINENO"; then :
2774 ac_hi
=$ac_mid; break
2776 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2777 if test $ac_lo -le $ac_mid; then
2781 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2787 /* end confdefs.h. */
2792 static int test_array [1 - 2 * !(($2) < 0)];
2794 return test_array [0];
2800 if ac_fn_c_try_compile
"$LINENO"; then :
2803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2804 /* end confdefs.h. */
2809 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2811 return test_array [0];
2817 if ac_fn_c_try_compile
"$LINENO"; then :
2818 ac_lo
=$ac_mid; break
2820 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2821 if test $ac_mid -le $ac_hi; then
2825 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2835 # Binary search between lo and hi bounds.
2836 while test "x$ac_lo" != "x$ac_hi"; do
2837 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2839 /* end confdefs.h. */
2844 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2846 return test_array [0];
2852 if ac_fn_c_try_compile
"$LINENO"; then :
2855 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2860 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2865 /* end confdefs.h. */
2867 static long int longval () { return $2; }
2868 static unsigned long int ulongval () { return $2; }
2875 FILE *f = fopen ("conftest.val", "w");
2880 long int i = longval ();
2883 fprintf (f, "%ld", i);
2887 unsigned long int i = ulongval ();
2890 fprintf (f, "%lu", i);
2892 /* Do not output a trailing newline, as this causes \r\n confusion
2893 on some platforms. */
2894 return ferror (f) || fclose (f) != 0;
2900 if ac_fn_c_try_run
"$LINENO"; then :
2901 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2905 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2906 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2911 as_fn_set_status
$ac_retval
2913 } # ac_fn_c_compute_int
2915 # ac_fn_c_check_func LINENO FUNC VAR
2916 # ----------------------------------
2917 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2918 ac_fn_c_check_func
()
2920 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2922 $as_echo_n "checking for $2... " >&6; }
2923 if eval \
${$3+:} false
; then :
2924 $as_echo_n "(cached) " >&6
2926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2927 /* end confdefs.h. */
2928 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2930 #define $2 innocuous_$2
2932 /* System header to define __stub macros and hopefully few prototypes,
2933 which can conflict with char $2 (); below.
2934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2935 <limits.h> exists even on freestanding compilers. */
2938 # include <limits.h>
2940 # include <assert.h>
2945 /* Override any GCC internal prototype to avoid an error.
2946 Use char because int might match the return type of a GCC
2947 builtin and then its argument prototype would still apply. */
2952 /* The GNU C library defines this for functions which it implements
2953 to always fail with ENOSYS. Some functions are actually named
2954 something starting with __ and the normal name is an alias. */
2955 #if defined __stub_$2 || defined __stub___$2
2967 if ac_fn_c_try_link
"$LINENO"; then :
2972 rm -f core conftest.err conftest.
$ac_objext \
2973 conftest
$ac_exeext conftest.
$ac_ext
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2977 $as_echo "$ac_res" >&6; }
2978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2980 } # ac_fn_c_check_func
2982 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2983 # ----------------------------------------------------
2984 # Tries to find if the field MEMBER exists in type AGGR, after including
2985 # INCLUDES, setting cache variable VAR accordingly.
2986 ac_fn_c_check_member
()
2988 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2990 $as_echo_n "checking for $2.$3... " >&6; }
2991 if eval \
${$4+:} false
; then :
2992 $as_echo_n "(cached) " >&6
2994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2995 /* end confdefs.h. */
3007 if ac_fn_c_try_compile
"$LINENO"; then :
3010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3011 /* end confdefs.h. */
3017 if (sizeof ac_aggr.$3)
3023 if ac_fn_c_try_compile
"$LINENO"; then :
3028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3034 $as_echo "$ac_res" >&6; }
3035 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3037 } # ac_fn_c_check_member
3039 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3040 # -------------------------------------------
3041 # Tests whether TYPE exists after having included INCLUDES, setting cache
3042 # variable VAR accordingly.
3043 ac_fn_c_check_type
()
3045 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3047 $as_echo_n "checking for $2... " >&6; }
3048 if eval \
${$3+:} false
; then :
3049 $as_echo_n "(cached) " >&6
3052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3053 /* end confdefs.h. */
3064 if ac_fn_c_try_compile
"$LINENO"; then :
3065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3066 /* end confdefs.h. */
3077 if ac_fn_c_try_compile
"$LINENO"; then :
3082 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3084 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3088 $as_echo "$ac_res" >&6; }
3089 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3091 } # ac_fn_c_check_type
3093 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3094 # ---------------------------------------------
3095 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3097 ac_fn_c_check_decl
()
3099 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3100 as_decl_name
=`echo $2|sed 's/ *(.*//'`
3101 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3103 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3104 if eval \
${$3+:} false
; then :
3105 $as_echo_n "(cached) " >&6
3107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3108 /* end confdefs.h. */
3113 #ifndef $as_decl_name
3115 (void) $as_decl_use;
3117 (void) $as_decl_name;
3125 if ac_fn_c_try_compile
"$LINENO"; then :
3130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3134 $as_echo "$ac_res" >&6; }
3135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3137 } # ac_fn_c_check_decl
3138 cat >config.log
<<_ACEOF
3139 This file contains any messages produced by compilers while
3140 running configure, to aid debugging if configure makes a mistake.
3142 It was created by GRUB $as_me 2.02~beta2, which was
3143 generated by GNU Autoconf 2.69. Invocation command line was
3155 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3156 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3157 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3158 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3159 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3161 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3162 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3164 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3165 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3166 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3167 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3168 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3169 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3170 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3178 test -z "$as_dir" && as_dir
=.
3179 $as_echo "PATH: $as_dir"
3195 # Keep a trace of the command line.
3196 # Strip out --no-create and --no-recursion so they do not pile up.
3197 # Strip out --silent because we don't want to record it for future runs.
3198 # Also quote any args containing shell meta-characters.
3199 # Make two passes to allow for proper duplicate-argument suppression.
3203 ac_must_keep_next
=false
3209 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3210 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3211 |
-silent |
--silent |
--silen |
--sile |
--sil)
3214 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3217 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3219 as_fn_append ac_configure_args1
" '$ac_arg'"
3220 if test $ac_must_keep_next = true
; then
3221 ac_must_keep_next
=false
# Got value, back to normal.
3224 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3225 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3226 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3227 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3228 case "$ac_configure_args0 " in
3229 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3232 -* ) ac_must_keep_next
=true
;;
3235 as_fn_append ac_configure_args
" '$ac_arg'"
3240 { ac_configure_args0
=; unset ac_configure_args0
;}
3241 { ac_configure_args1
=; unset ac_configure_args1
;}
3243 # When interrupted or exit'd, cleanup temporary files, and complete
3244 # config.log. We remove comments because anyway the quotes in there
3245 # would cause problems or look ugly.
3246 # WARNING: Use '\'' to represent an apostrophe within the trap.
3247 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3248 trap 'exit_status=$?
3249 # Save into config.log some information that might help in debugging.
3253 $as_echo "## ---------------- ##
3254 ## Cache variables. ##
3255 ## ---------------- ##"
3257 # The following way of writing the cache mishandles newlines in values,
3259 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3260 eval ac_val=\$$ac_var
3264 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3265 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3268 _ | IFS | as_nl) ;; #(
3269 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3270 *) { eval $ac_var=; unset $ac_var;} ;;
3275 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3276 *${as_nl}ac_space=\ *)
3278 "s/'\''/'\''\\\\'\'''\''/g;
3279 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3282 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3289 $as_echo "## ----------------- ##
3290 ## Output variables. ##
3291 ## ----------------- ##"
3293 for ac_var in $ac_subst_vars
3295 eval ac_val=\$$ac_var
3297 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3299 $as_echo "$ac_var='\''$ac_val'\''"
3303 if test -n "$ac_subst_files"; then
3304 $as_echo "## ------------------- ##
3305 ## File substitutions. ##
3306 ## ------------------- ##"
3308 for ac_var
in $ac_subst_files
3310 eval ac_val
=\$
$ac_var
3312 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3314 $as_echo "$ac_var='\''$ac_val'\''"
3319 if test -s confdefs.h; then
3320 $as_echo "## ----------- ##
3327 test "$ac_signal" != 0 &&
3328 $as_echo "$as_me: caught signal $ac_signal"
3329 $as_echo "$as_me: exit $exit_status"
3331 rm -f core *.core core.conftest.* &&
3332 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3335 for ac_signal
in 1 2 13 15; do
3336 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3340 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3341 rm -f -r conftest
* confdefs.h
3343 $as_echo "/* confdefs.h */" > confdefs.h
3345 # Predefined preprocessor variables.
3347 cat >>confdefs.h
<<_ACEOF
3348 #define PACKAGE_NAME "$PACKAGE_NAME"
3351 cat >>confdefs.h
<<_ACEOF
3352 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3355 cat >>confdefs.h
<<_ACEOF
3356 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3359 cat >>confdefs.h
<<_ACEOF
3360 #define PACKAGE_STRING "$PACKAGE_STRING"
3363 cat >>confdefs.h
<<_ACEOF
3364 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3367 cat >>confdefs.h
<<_ACEOF
3368 #define PACKAGE_URL "$PACKAGE_URL"
3372 # Let the site file select an alternate cache file if it wants to.
3373 # Prefer an explicitly selected file to automatically selected ones.
3376 if test -n "$CONFIG_SITE"; then
3377 # We do not want a PATH search for config.site.
3378 case $CONFIG_SITE in #((
3379 -*) ac_site_file1
=.
/$CONFIG_SITE;;
3380 */*) ac_site_file1
=$CONFIG_SITE;;
3381 *) ac_site_file1
=.
/$CONFIG_SITE;;
3383 elif test "x$prefix" != xNONE
; then
3384 ac_site_file1
=$prefix/share
/config.site
3385 ac_site_file2
=$prefix/etc
/config.site
3387 ac_site_file1
=$ac_default_prefix/share
/config.site
3388 ac_site_file2
=$ac_default_prefix/etc
/config.site
3390 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3392 test "x$ac_site_file" = xNONE
&& continue
3393 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3395 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3396 sed 's/^/| /' "$ac_site_file" >&5
3398 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400 as_fn_error $?
"failed to load site script $ac_site_file
3401 See \`config.log' for more details" "$LINENO" 5; }
3405 if test -r "$cache_file"; then
3406 # Some versions of bash will fail to source /dev/null (special files
3407 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3408 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3410 $as_echo "$as_me: loading cache $cache_file" >&6;}
3412 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3413 *) .
"./$cache_file";;
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3418 $as_echo "$as_me: creating cache $cache_file" >&6;}
3422 gt_needs
="$gt_needs "
3423 as_fn_append ac_func_list
" flockfile"
3424 as_fn_append ac_func_list
" funlockfile"
3425 as_fn_append ac_header_list
" features.h"
3426 as_fn_append ac_header_list
" linewrap.h"
3427 as_fn_append ac_func_list
" btowc"
3428 as_fn_append ac_func_list
" isblank"
3429 as_fn_append ac_func_list
" iswctype"
3430 as_fn_append ac_func_list
" mbsrtowcs"
3431 as_fn_append ac_func_list
" mempcpy"
3432 as_fn_append ac_func_list
" wmemchr"
3433 as_fn_append ac_func_list
" wmemcpy"
3434 as_fn_append ac_func_list
" wmempcpy"
3435 as_fn_append ac_header_list
" wctype.h"
3436 as_fn_append ac_func_list
" getdelim"
3437 gl_getopt_required
=GNU
3438 as_fn_append ac_header_list
" getopt.h"
3439 as_fn_append ac_header_list
" langinfo.h"
3440 as_fn_append ac_header_list
" unistd.h"
3441 as_fn_append ac_func_list
" symlink"
3442 as_fn_append ac_header_list
" xlocale.h"
3443 as_fn_append ac_func_list
" mbsinit"
3444 as_fn_append ac_func_list
" mbrtowc"
3445 as_fn_append ac_header_list
" wchar.h"
3446 as_fn_append ac_func_list
" isascii"
3447 as_fn_append ac_header_list
" sys/mman.h"
3448 as_fn_append ac_func_list
" mprotect"
3449 as_fn_append ac_func_list
" _set_invalid_parameter_handler"
3450 as_fn_append ac_func_list
" nl_langinfo"
3451 as_fn_append ac_func_list
" wcscoll"
3452 as_fn_append ac_func_list
" sleep"
3453 as_fn_append ac_header_list
" stdint.h"
3454 as_fn_append ac_header_list
" sys/socket.h"
3455 as_fn_append ac_header_list
" strings.h"
3456 as_fn_append ac_func_list
" strndup"
3457 as_fn_append ac_header_list
" sysexits.h"
3458 as_fn_append ac_func_list
" vasnprintf"
3459 as_fn_append ac_func_list
" snprintf"
3460 as_fn_append ac_func_list
" wcrtomb"
3461 as_fn_append ac_func_list
" iswcntrl"
3462 as_fn_append ac_func_list
" wcwidth"
3463 # Check that the precious variables saved in the cache have kept the same
3465 ac_cache_corrupted
=false
3466 for ac_var
in $ac_precious_vars; do
3467 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3468 eval ac_new_set
=\
$ac_env_${ac_var}_set
3469 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3470 eval ac_new_val
=\
$ac_env_${ac_var}_value
3471 case $ac_old_set,$ac_new_set in
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3474 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3475 ac_cache_corrupted
=: ;;
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3478 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3479 ac_cache_corrupted
=: ;;
3482 if test "x$ac_old_val" != "x$ac_new_val"; then
3483 # differences in whitespace do not lead to failure.
3484 ac_old_val_w
=`echo x $ac_old_val`
3485 ac_new_val_w
=`echo x $ac_new_val`
3486 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3488 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3489 ac_cache_corrupted
=:
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3492 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3493 eval $ac_var=\
$ac_old_val
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3496 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3498 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3501 # Pass precious variables to config.status.
3502 if test "$ac_new_set" = set; then
3504 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3505 *) ac_arg
=$ac_var=$ac_new_val ;;
3507 case " $ac_configure_args " in
3508 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3509 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3513 if $ac_cache_corrupted; then
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3517 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3518 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3520 ## -------------------- ##
3521 ## Main body of script. ##
3522 ## -------------------- ##
3525 ac_cpp
='$CPP $CPPFLAGS'
3526 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3527 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3528 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3533 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
3534 if test -f "$ac_dir/install-sh"; then
3536 ac_install_sh
="$ac_aux_dir/install-sh -c"
3538 elif test -f "$ac_dir/install.sh"; then
3540 ac_install_sh
="$ac_aux_dir/install.sh -c"
3542 elif test -f "$ac_dir/shtool"; then
3544 ac_install_sh
="$ac_aux_dir/shtool install -c"
3548 if test -z "$ac_aux_dir"; then
3549 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3552 # These three variables are undocumented and unsupported,
3553 # and are intended to be withdrawn in a future Autoconf release.
3554 # They can cause serious problems if a builder's source tree is in a directory
3555 # whose full name contains unusual characters.
3556 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3557 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3558 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3562 # We don't want -g -O2 by default in CFLAGS
3565 # Checks for build, host and target systems.
3566 # Make sure we can run config.sub.
3567 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3568 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3571 $as_echo_n "checking build system type... " >&6; }
3572 if ${ac_cv_build+:} false
; then :
3573 $as_echo_n "(cached) " >&6
3575 ac_build_alias
=$build_alias
3576 test "x$ac_build_alias" = x
&&
3577 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3578 test "x$ac_build_alias" = x
&&
3579 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3580 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3581 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3585 $as_echo "$ac_cv_build" >&6; }
3586 case $ac_cv_build in
3588 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3591 ac_save_IFS
=$IFS; IFS
='-'
3597 # Remember, the first character of IFS is used to create $*,
3598 # except with old shells:
3601 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3605 $as_echo_n "checking host system type... " >&6; }
3606 if ${ac_cv_host+:} false
; then :
3607 $as_echo_n "(cached) " >&6
3609 if test "x$host_alias" = x
; then
3610 ac_cv_host
=$ac_cv_build
3612 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3613 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3618 $as_echo "$ac_cv_host" >&6; }
3621 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3624 ac_save_IFS
=$IFS; IFS
='-'
3630 # Remember, the first character of IFS is used to create $*,
3631 # except with old shells:
3634 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3637 save_program_prefix
="${program_prefix}"
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3639 $as_echo_n "checking target system type... " >&6; }
3640 if ${ac_cv_target+:} false
; then :
3641 $as_echo_n "(cached) " >&6
3643 if test "x$target_alias" = x
; then
3644 ac_cv_target
=$ac_cv_host
3646 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3647 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3652 $as_echo "$ac_cv_target" >&6; }
3653 case $ac_cv_target in
3655 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
3657 target
=$ac_cv_target
3658 ac_save_IFS
=$IFS; IFS
='-'
3664 # Remember, the first character of IFS is used to create $*,
3665 # except with old shells:
3668 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3671 # The aliases save the names the user supplied, while $host etc.
3672 # will get canonicalized.
3673 test -n "$target_alias" &&
3674 test "$program_prefix$program_suffix$program_transform_name" = \
3676 program_prefix
=${target_alias}-
3677 program_prefix
="${save_program_prefix}"
3679 am__api_version
='1.13'
3681 # Find a good install program. We prefer a C program (faster),
3682 # so one script is as good as another. But avoid the broken or
3683 # incompatible versions:
3684 # SysV /etc/install, /usr/sbin/install
3685 # SunOS /usr/etc/install
3686 # IRIX /sbin/install
3688 # AmigaOS /C/install, which installs bootblocks on floppy discs
3689 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3690 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3691 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3692 # OS/2's system install, which has a completely different semantic
3693 # ./install, which can be erroneously created by make from ./install.sh.
3694 # Reject install programs that cannot install multiple files.
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3696 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3697 if test -z "$INSTALL"; then
3698 if ${ac_cv_path_install+:} false
; then :
3699 $as_echo_n "(cached) " >&6
3701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3705 test -z "$as_dir" && as_dir
=.
3706 # Account for people who put trailing slashes in PATH elements.
3707 case $as_dir/ in #((
3708 .
/ | .
// |
/[cC
]/* | \
3709 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3710 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3713 # OSF1 and SCO ODT 3.0 have their own names for install.
3714 # Don't use installbsd from OSF since it installs stuff as root
3716 for ac_prog
in ginstall scoinst
install; do
3717 for ac_exec_ext
in '' $ac_executable_extensions; do
3718 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
3719 if test $ac_prog = install &&
3720 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3721 # AIX install. It has an incompatible calling convention.
3723 elif test $ac_prog = install &&
3724 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3725 # program-specific install script used by HP pwplus--don't use.
3728 rm -rf conftest.one conftest.two conftest.dir
3729 echo one
> conftest.one
3730 echo two
> conftest.two
3732 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3733 test -s conftest.one
&& test -s conftest.two
&&
3734 test -s conftest.dir
/conftest.one
&&
3735 test -s conftest.dir
/conftest.two
3737 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3750 rm -rf conftest.one conftest.two conftest.dir
3753 if test "${ac_cv_path_install+set}" = set; then
3754 INSTALL
=$ac_cv_path_install
3756 # As a last resort, use the slow shell script. Don't cache a
3757 # value for INSTALL within a source directory, because that will
3758 # break other packages using the cache if that directory is
3759 # removed, or if the value is a relative name.
3760 INSTALL
=$ac_install_sh
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3764 $as_echo "$INSTALL" >&6; }
3766 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3767 # It thinks the first close brace ends the variable substitution.
3768 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3770 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3772 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3775 $as_echo_n "checking whether build environment is sane... " >&6; }
3776 # Reject unsafe characters in $srcdir or the absolute working directory
3777 # name. Accept space and tab only in the latter.
3781 *[\\\"\
#\$\&\'\`$am_lf]*)
3782 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
3785 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3786 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3789 # Do 'set' in a subshell so we don't clobber the current shell's
3790 # arguments. Must try -L first in case configure is actually a
3791 # symlink; some systems play weird games with the mod time of symlinks
3792 # (eg FreeBSD returns the mod time of the symlink's containing
3796 for am_try
in 1 2; do
3797 echo "timestamp, slept: $am_has_slept" > conftest.
file
3798 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3799 if test "$*" = "X"; then
3801 set X
`ls -t "$srcdir/configure" conftest.file`
3803 if test "$*" != "X $srcdir/configure conftest.file" \
3804 && test "$*" != "X conftest.file $srcdir/configure"; then
3806 # If neither matched, then we have a broken ls. This can happen
3807 # if, for instance, CONFIG_SHELL is bash and it inherits a
3808 # broken ls alias from the environment. This has actually
3809 # happened. Such a system could not be considered "sane".
3810 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3811 alias in your environment" "$LINENO" 5
3813 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
3820 test "$2" = conftest.
file
3826 as_fn_error $?
"newly created file is older than distributed files!
3827 Check your system clock" "$LINENO" 5
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3830 $as_echo "yes" >&6; }
3831 # If we didn't sleep, we still need to ensure time stamps of config.status and
3832 # generated files are strictly newer.
3834 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
3841 test "$program_prefix" != NONE
&&
3842 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3843 # Use a double $ so make ignores it.
3844 test "$program_suffix" != NONE
&&
3845 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3846 # Double any \ or $.
3847 # By default was `s,x,x', remove it if useless.
3848 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3849 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3851 # expand $ac_aux_dir to an absolute path
3852 am_aux_dir
=`cd $ac_aux_dir && pwd`
3854 if test x
"${MISSING+set}" != xset
; then
3857 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3859 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3862 # Use eval to expand $SHELL
3863 if eval "$MISSING --is-lightweight"; then
3864 am_missing_run
="$MISSING "
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3868 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3871 if test x
"${install_sh}" != xset
; then
3874 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3876 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3880 # Installed binaries are usually stripped using 'strip' when the user
3881 # run "make install-strip". However 'strip' might not be the right
3882 # tool to use in cross-compilation environments, therefore Automake
3883 # will honor the 'STRIP' environment variable to overrule this program.
3884 if test "$cross_compiling" != no
; then
3885 if test -n "$ac_tool_prefix"; then
3886 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3887 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3889 $as_echo_n "checking for $ac_word... " >&6; }
3890 if ${ac_cv_prog_STRIP+:} false
; then :
3891 $as_echo_n "(cached) " >&6
3893 if test -n "$STRIP"; then
3894 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3896 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3900 test -z "$as_dir" && as_dir
=.
3901 for ac_exec_ext
in '' $ac_executable_extensions; do
3902 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3903 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3913 STRIP
=$ac_cv_prog_STRIP
3914 if test -n "$STRIP"; then
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3916 $as_echo "$STRIP" >&6; }
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3919 $as_echo "no" >&6; }
3924 if test -z "$ac_cv_prog_STRIP"; then
3926 # Extract the first word of "strip", so it can be a program name with args.
3927 set dummy strip
; ac_word
=$2
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3929 $as_echo_n "checking for $ac_word... " >&6; }
3930 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3931 $as_echo_n "(cached) " >&6
3933 if test -n "$ac_ct_STRIP"; then
3934 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3936 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3940 test -z "$as_dir" && as_dir
=.
3941 for ac_exec_ext
in '' $ac_executable_extensions; do
3942 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3943 ac_cv_prog_ac_ct_STRIP
="strip"
3944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3953 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3954 if test -n "$ac_ct_STRIP"; then
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3956 $as_echo "$ac_ct_STRIP" >&6; }
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 $as_echo "no" >&6; }
3962 if test "x$ac_ct_STRIP" = x
; then
3965 case $cross_compiling:$ac_tool_warned in
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3969 ac_tool_warned
=yes ;;
3974 STRIP
="$ac_cv_prog_STRIP"
3978 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3981 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3982 if test -z "$MKDIR_P"; then
3983 if ${ac_cv_path_mkdir+:} false
; then :
3984 $as_echo_n "(cached) " >&6
3986 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3987 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3990 test -z "$as_dir" && as_dir
=.
3991 for ac_prog
in mkdir gmkdir
; do
3992 for ac_exec_ext
in '' $ac_executable_extensions; do
3993 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3994 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3995 'mkdir (GNU coreutils) '* | \
3996 'mkdir (coreutils) '* | \
3997 'mkdir (fileutils) '4.1*)
3998 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
4008 test -d .
/--version && rmdir .
/--version
4009 if test "${ac_cv_path_mkdir+set}" = set; then
4010 MKDIR_P
="$ac_cv_path_mkdir -p"
4012 # As a last resort, use the slow shell script. Don't cache a
4013 # value for MKDIR_P within a source directory, because that will
4014 # break other packages using the cache if that directory is
4015 # removed, or if the value is a relative name.
4016 MKDIR_P
="$ac_install_sh -d"
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4020 $as_echo "$MKDIR_P" >&6; }
4022 for ac_prog
in gawk mawk nawk
awk
4024 # Extract the first word of "$ac_prog", so it can be a program name with args.
4025 set dummy
$ac_prog; ac_word
=$2
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4027 $as_echo_n "checking for $ac_word... " >&6; }
4028 if ${ac_cv_prog_AWK+:} false
; then :
4029 $as_echo_n "(cached) " >&6
4031 if test -n "$AWK"; then
4032 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4034 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4038 test -z "$as_dir" && as_dir
=.
4039 for ac_exec_ext
in '' $ac_executable_extensions; do
4040 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4041 ac_cv_prog_AWK
="$ac_prog"
4042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4052 if test -n "$AWK"; then
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4054 $as_echo "$AWK" >&6; }
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4057 $as_echo "no" >&6; }
4061 test -n "$AWK" && break
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4065 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4067 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4068 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
4069 $as_echo_n "(cached) " >&6
4071 cat >conftest.
make <<\_ACEOF
4074 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4076 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4077 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4079 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4081 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4085 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4087 $as_echo "yes" >&6; }
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4091 $as_echo "no" >&6; }
4092 SET_MAKE
="MAKE=${MAKE-make}"
4095 rm -rf .tst
2>/dev
/null
4096 mkdir .tst
2>/dev
/null
4097 if test -d .tst
; then
4102 rmdir .tst
2>/dev
/null
4104 # Check whether --enable-silent-rules was given.
4105 if test "${enable_silent_rules+set}" = set; then :
4106 enableval
=$enable_silent_rules;
4109 case $enable_silent_rules in # (((
4110 yes) AM_DEFAULT_VERBOSITY
=0;;
4111 no
) AM_DEFAULT_VERBOSITY
=1;;
4112 *) AM_DEFAULT_VERBOSITY
=1;;
4114 am_make
=${MAKE-make}
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4116 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4117 if ${am_cv_make_support_nested_variables+:} false
; then :
4118 $as_echo_n "(cached) " >&6
4120 if $as_echo 'TRUE=$(BAR$(V))
4126 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
4127 am_cv_make_support_nested_variables
=yes
4129 am_cv_make_support_nested_variables
=no
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4133 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4134 if test $am_cv_make_support_nested_variables = yes; then
4136 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
4138 AM_V
=$AM_DEFAULT_VERBOSITY
4139 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
4143 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4144 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4145 # is not polluted with repeated "-I."
4146 am__isrc
=' -I$(srcdir)'
4147 # test to see if srcdir already configured
4148 if test -f $srcdir/config.status
; then
4149 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4153 # test whether we have cygpath
4154 if test -z "$CYGPATH_W"; then
4155 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
4156 CYGPATH_W
='cygpath -w'
4163 # Define the identity of the package.
4165 VERSION
='2.02~beta2'
4168 cat >>confdefs.h
<<_ACEOF
4169 #define PACKAGE "$PACKAGE"
4173 cat >>confdefs.h
<<_ACEOF
4174 #define VERSION "$VERSION"
4177 # Some tools Automake needs.
4179 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4182 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
4185 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4188 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
4191 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
4193 # For better backward compatibility. To be removed once Automake 1.9.x
4194 # dies out for good. For more background, see:
4195 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4196 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4197 mkdir_p
='$(MKDIR_P)'
4199 # We need awk for the "check" target. The system "awk" is bad on
4201 # Always define AMTAR for backward compatibility. Yes, it's still used
4202 # in the wild :-( We should find a proper way to deprecate it ...
4206 # We'll loop over all known methods to create a tar archive until one works.
4207 _am_tools
='gnutar pax cpio none'
4209 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
4218 ac_config_headers
="$ac_config_headers config-util.h"
4221 # Program name transformations
4223 grub_bios_setup
=`$as_echo grub-bios-setup | sed "$program_transform_name"`
4225 grub_editenv
=`$as_echo grub-editenv | sed "$program_transform_name"`
4227 grub_install
=`$as_echo grub-install | sed "$program_transform_name"`
4229 grub_mkconfig
=`$as_echo grub-mkconfig | sed "$program_transform_name"`
4231 grub_mkfont
=`$as_echo grub-mkfont | sed "$program_transform_name"`
4233 grub_mkimage
=`$as_echo grub-mkimage | sed "$program_transform_name"`
4235 grub_glue_efi
=`$as_echo grub-glue-efi | sed "$program_transform_name"`
4237 grub_mklayout
=`$as_echo grub-mklayout | sed "$program_transform_name"`
4239 grub_mkpasswd_pbkdf2
=`$as_echo grub-mkpasswd-pbkdf2 | sed "$program_transform_name"`
4241 grub_mkrelpath
=`$as_echo grub-mkrelpath | sed "$program_transform_name"`
4243 grub_mkrescue
=`$as_echo grub-mkrescue | sed "$program_transform_name"`
4245 grub_probe
=`$as_echo grub-probe | sed "$program_transform_name"`
4247 grub_reboot
=`$as_echo grub-reboot | sed "$program_transform_name"`
4249 grub_script_check
=`$as_echo grub-script-check | sed "$program_transform_name"`
4251 grub_set_default
=`$as_echo grub-set-default | sed "$program_transform_name"`
4253 grub_sparc64_setup
=`$as_echo grub-sparc64-setup | sed "$program_transform_name"`
4255 grub_render_label
=`$as_echo grub-render-label | sed "$program_transform_name"`
4257 grub_file
=`$as_echo grub-file | sed "$program_transform_name"`
4260 # Optimization flag. Allow user to override.
4261 if test "x$TARGET_CFLAGS" = x
; then
4262 TARGET_CFLAGS
="$TARGET_CFLAGS -Os"
4265 # Default HOST_CPPFLAGS
4266 HOST_CPPFLAGS
="$HOST_CPPFLAGS -Wall -W"
4267 HOST_CPPFLAGS
="$HOST_CPPFLAGS -I\$(top_builddir)/include"
4268 HOST_CPPFLAGS
="$HOST_CPPFLAGS -DGRUB_UTIL=1"
4270 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS -Wall -W"
4271 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS -I\$(top_srcdir)/include"
4272 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS -I\$(top_builddir)/include"
4274 case "$target_cpu" in
4275 i
[3456]86) target_cpu
=i386
;;
4276 amd64
) target_cpu
=x86_64
;;
4277 sparc
) target_cpu
=sparc64
;;
4280 machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_CPU_MIPSEL=1"
4284 machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_CPU_MIPS=1"
4294 # Specify the platform (such as firmware).
4296 # Check whether --with-platform was given.
4297 if test "${with_platform+set}" = set; then :
4298 withval
=$with_platform;
4302 # Guess the platform if not specified.
4303 if test "x$with_platform" = x
; then
4304 case "$target_cpu"-"$target_vendor" in
4305 i386-apple
) platform
=efi
;;
4306 i386-
*) platform
=pc
;;
4307 x86_64-apple
) platform
=efi
;;
4308 x86_64-
*) platform
=pc
;;
4309 powerpc-
*) platform
=ieee1275
;;
4310 powerpc64-
*) platform
=ieee1275
;;
4311 sparc64-
*) platform
=ieee1275
;;
4312 mipsel-
*) platform
=loongson
;;
4313 mips-
*) platform
=arc
;;
4314 ia64-
*) platform
=efi
;;
4315 arm-
*) platform
=uboot
;;
4316 arm64-
*) platform
=efi
;;
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unsupported CPU: \"$target_cpu\" - only building utilities" >&5
4319 $as_echo "$as_me: WARNING: unsupported CPU: \"$target_cpu\" - only building utilities" >&2;}
4324 platform
="$with_platform"
4327 case "$target_cpu"-"$platform" in
4332 x86_64-
*) target_cpu
=i386
;;
4333 powerpc64-ieee1275
) target_cpu
=powerpc
;;
4336 # Check if the platform is supported, make final adjustments.
4337 case "$target_cpu"-"$platform" in
4345 i386-linuxbios
) platform
=coreboot
;;
4348 powerpc-ieee1275
) ;;
4349 sparc64-ieee1275
) ;;
4352 mips-qemu-mips
) platform
=qemu_mips
;;
4355 mipsel-qemu_mips
) ;;
4356 mipsel-qemu-mips
) platform
=qemu_mips
;;
4357 mipsel-yeeloong
) platform
=loongson
;;
4358 mipsel-fuloong
) platform
=loongson
;;
4365 *) as_fn_error $?
"platform \"$platform\" is not supported for target CPU \"$target_cpu\"" "$LINENO" 5 ;;
4368 if test x
$platform != xemu
; then
4369 case "$target_cpu" in
4370 i386 | powerpc
) target_m32
=1 ;;
4371 x86_64 | sparc64
) target_m64
=1 ;;
4375 if test x
"$target_cpu-$platform" = xsparc64-emu
; then
4379 case "$target_os" in
4380 windows
* | mingw32
*) target_os
=cygwin
;;
4383 # This normalizes the names, and creates a new variable ("host_kernel")
4384 # while at it, since the mapping is not always 1:1 (e.g. different OSes
4385 # using the same kernel type).
4387 gnu
*) host_kernel
=hurd
;;
4388 linux
*) host_kernel
=linux
;;
4389 freebsd
* | kfreebsd
*-gnu) host_kernel
=kfreebsd
;;
4390 netbsd
*) host_kernel
=netbsd
;;
4391 solaris
*) host_kernel
=illumos
;;
4392 darwin
*) host_kernel
=xnu
;;
4393 cygwin | windows
* | mingw32
*) host_kernel
=windows
;;
4397 cygwin | windows
* | mingw32
*) have_exec
=n
;;
4398 aros
*) have_exec
=n
;;
4403 coreboot
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_COREBOOT=1" ;;
4404 multiboot
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_MULTIBOOT=1" ;;
4405 efi
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_EFI=1" ;;
4406 xen
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_XEN=1" ;;
4407 ieee1275
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_IEEE1275=1" ;;
4408 uboot
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_UBOOT=1" ;;
4409 qemu
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_QEMU=1" ;;
4410 pc
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_PCBIOS=1" ;;
4411 emu
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_EMU=1" ;;
4412 loongson
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_LOONGSON=1" ;;
4413 qemu_mips
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_QEMU_MIPS=1" ;;
4414 arc
) machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE_ARC=1" ;;
4416 if test x
${target_cpu} = xmipsel
; then
4417 machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE=`echo mips_$platform | sed y,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ,`"
4419 machine_CPPFLAGS
="$machine_CPPFLAGS -DGRUB_MACHINE=`echo ${target_cpu}_$platform | sed y,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ,`"
4422 case "${target_cpu}-$platform" in
4424 TARGET_LINK_ADDR
=0x88200000
4425 TARGET_DECOMPRESSOR_LINK_ADDR
=0x88100000
4428 TARGET_LINK_ADDR
=0x80700000
4429 TARGET_DECOMPRESSOR_LINK_ADDR
=0x80600000
4431 mips
*-qemu_mips | mips
*-loongson)
4432 TARGET_DECOMPRESSOR_LINK_ADDR
=0x80100000
4439 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS $machine_CPPFLAGS"
4448 # Define default variables
4452 # Check whether --with-bootdir was given.
4453 if test "${with_bootdir+set}" = set; then :
4454 withval
=$with_bootdir; have_with_bootdir
=y
4459 if test x
$have_with_bootdir = xy
; then
4460 bootdirname
="$with_bootdir"
4464 # Because /boot is used for the boot block in NetBSD and OpenBSD,
4466 *) bootdirname
='boot' ;;
4472 cat >>confdefs.h
<<_ACEOF
4473 #define GRUB_BOOT_DIR_NAME "$bootdirname"
4478 # Check whether --with-grubdir was given.
4479 if test "${with_grubdir+set}" = set; then :
4480 withval
=$with_grubdir; grubdirname
="$with_grubdir"
4482 grubdirname
="$PACKAGE"
4488 cat >>confdefs.h
<<_ACEOF
4489 #define GRUB_DIR_NAME "$grubdirname"
4494 # Checks for build programs.
4497 # Although cmp is listed in the GNU Coding Standards as a command which
4498 # can used directly, OpenBSD lacks cmp in the default installation.
4501 # Extract the first word of "$ac_prog", so it can be a program name with args.
4502 set dummy
$ac_prog; ac_word
=$2
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4504 $as_echo_n "checking for $ac_word... " >&6; }
4505 if ${ac_cv_prog_CMP+:} false
; then :
4506 $as_echo_n "(cached) " >&6
4508 if test -n "$CMP"; then
4509 ac_cv_prog_CMP
="$CMP" # Let the user override the test.
4511 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4515 test -z "$as_dir" && as_dir
=.
4516 for ac_exec_ext
in '' $ac_executable_extensions; do
4517 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4518 ac_cv_prog_CMP
="$ac_prog"
4519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 if test -n "$CMP"; then
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
4531 $as_echo "$CMP" >&6; }
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4534 $as_echo "no" >&6; }
4538 test -n "$CMP" && break
4541 if test "x$CMP" = x
; then
4542 as_fn_error $?
"cmp is not found" "$LINENO" 5
4545 for ac_prog
in bison
4547 # Extract the first word of "$ac_prog", so it can be a program name with args.
4548 set dummy
$ac_prog; ac_word
=$2
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4550 $as_echo_n "checking for $ac_word... " >&6; }
4551 if ${ac_cv_prog_YACC+:} false
; then :
4552 $as_echo_n "(cached) " >&6
4554 if test -n "$YACC"; then
4555 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
4557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4561 test -z "$as_dir" && as_dir
=.
4562 for ac_exec_ext
in '' $ac_executable_extensions; do
4563 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4564 ac_cv_prog_YACC
="$ac_prog"
4565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 YACC
=$ac_cv_prog_YACC
4575 if test -n "$YACC"; then
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4577 $as_echo "$YACC" >&6; }
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580 $as_echo "no" >&6; }
4584 test -n "$YACC" && break
4587 if test "x$YACC" = x
; then
4588 as_fn_error $?
"bison is not found" "$LINENO" 5
4591 if test -n "$ac_tool_prefix"; then
4592 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4593 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4595 $as_echo_n "checking for $ac_word... " >&6; }
4596 if ${ac_cv_prog_RANLIB+:} false
; then :
4597 $as_echo_n "(cached) " >&6
4599 if test -n "$RANLIB"; then
4600 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4602 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4606 test -z "$as_dir" && as_dir
=.
4607 for ac_exec_ext
in '' $ac_executable_extensions; do
4608 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4609 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 RANLIB
=$ac_cv_prog_RANLIB
4620 if test -n "$RANLIB"; then
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4622 $as_echo "$RANLIB" >&6; }
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625 $as_echo "no" >&6; }
4630 if test -z "$ac_cv_prog_RANLIB"; then
4631 ac_ct_RANLIB
=$RANLIB
4632 # Extract the first word of "ranlib", so it can be a program name with args.
4633 set dummy ranlib
; ac_word
=$2
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635 $as_echo_n "checking for $ac_word... " >&6; }
4636 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
4637 $as_echo_n "(cached) " >&6
4639 if test -n "$ac_ct_RANLIB"; then
4640 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4642 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4646 test -z "$as_dir" && as_dir
=.
4647 for ac_exec_ext
in '' $ac_executable_extensions; do
4648 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4649 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4660 if test -n "$ac_ct_RANLIB"; then
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4662 $as_echo "$ac_ct_RANLIB" >&6; }
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665 $as_echo "no" >&6; }
4668 if test "x$ac_ct_RANLIB" = x
; then
4671 case $cross_compiling:$ac_tool_warned in
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4675 ac_tool_warned
=yes ;;
4677 RANLIB
=$ac_ct_RANLIB
4680 RANLIB
="$ac_cv_prog_RANLIB"
4684 for ac_prog
in gawk mawk nawk
awk
4686 # Extract the first word of "$ac_prog", so it can be a program name with args.
4687 set dummy
$ac_prog; ac_word
=$2
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4689 $as_echo_n "checking for $ac_word... " >&6; }
4690 if ${ac_cv_prog_AWK+:} false
; then :
4691 $as_echo_n "(cached) " >&6
4693 if test -n "$AWK"; then
4694 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4696 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4700 test -z "$as_dir" && as_dir
=.
4701 for ac_exec_ext
in '' $ac_executable_extensions; do
4702 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4703 ac_cv_prog_AWK
="$ac_prog"
4704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 if test -n "$AWK"; then
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4716 $as_echo "$AWK" >&6; }
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719 $as_echo "no" >&6; }
4723 test -n "$AWK" && break
4726 DEPDIR
="${am__leading_dot}deps"
4728 ac_config_commands
="$ac_config_commands depfiles"
4731 am_make
=${MAKE-make}
4732 cat > confinc
<< 'END'
4734 @
echo this is the am__doit target
4737 # If we don't find an include directive, just comment out the code.
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4739 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4743 # First try GNU make style include.
4744 echo "include confinc" > confmf
4745 # Ignore all kinds of additional output from 'make'.
4746 case `$am_make -s -f confmf 2> /dev/null` in #(
4747 *the\ am__doit\ target
*)
4753 # Now try BSD make style include.
4754 if test "$am__include" = "#"; then
4755 echo '.include "confinc"' > confmf
4756 case `$am_make -s -f confmf 2> /dev/null` in #(
4757 *the\ am__doit\ target
*)
4758 am__include
=.include
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4767 $as_echo "$_am_result" >&6; }
4768 rm -f confinc confmf
4770 # Check whether --enable-dependency-tracking was given.
4771 if test "${enable_dependency_tracking+set}" = set; then :
4772 enableval
=$enable_dependency_tracking;
4775 if test "x$enable_dependency_tracking" != xno
; then
4776 am_depcomp
="$ac_aux_dir/depcomp"
4780 if test "x$enable_dependency_tracking" != xno; then
4790 ac_cpp
='$CPP $CPPFLAGS'
4791 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4792 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4793 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4794 if test -n "$ac_tool_prefix"; then
4795 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4796 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4798 $as_echo_n "checking for $ac_word... " >&6; }
4799 if ${ac_cv_prog_CC+:} false
; then :
4800 $as_echo_n "(cached) " >&6
4802 if test -n "$CC"; then
4803 ac_cv_prog_CC
="$CC" # Let the user override the test.
4805 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4809 test -z "$as_dir" && as_dir
=.
4810 for ac_exec_ext
in '' $ac_executable_extensions; do
4811 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4812 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4823 if test -n "$CC"; then
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4825 $as_echo "$CC" >&6; }
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4828 $as_echo "no" >&6; }
4833 if test -z "$ac_cv_prog_CC"; then
4835 # Extract the first word of "gcc", so it can be a program name with args.
4836 set dummy gcc
; ac_word
=$2
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4838 $as_echo_n "checking for $ac_word... " >&6; }
4839 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4840 $as_echo_n "(cached) " >&6
4842 if test -n "$ac_ct_CC"; then
4843 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4845 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4849 test -z "$as_dir" && as_dir
=.
4850 for ac_exec_ext
in '' $ac_executable_extensions; do
4851 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4852 ac_cv_prog_ac_ct_CC
="gcc"
4853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4862 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4863 if test -n "$ac_ct_CC"; then
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4865 $as_echo "$ac_ct_CC" >&6; }
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4868 $as_echo "no" >&6; }
4871 if test "x$ac_ct_CC" = x
; then
4874 case $cross_compiling:$ac_tool_warned in
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4878 ac_tool_warned
=yes ;;
4886 if test -z "$CC"; then
4887 if test -n "$ac_tool_prefix"; then
4888 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4889 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4891 $as_echo_n "checking for $ac_word... " >&6; }
4892 if ${ac_cv_prog_CC+:} false
; then :
4893 $as_echo_n "(cached) " >&6
4895 if test -n "$CC"; then
4896 ac_cv_prog_CC
="$CC" # Let the user override the test.
4898 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4902 test -z "$as_dir" && as_dir
=.
4903 for ac_exec_ext
in '' $ac_executable_extensions; do
4904 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4905 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4916 if test -n "$CC"; then
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4918 $as_echo "$CC" >&6; }
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921 $as_echo "no" >&6; }
4927 if test -z "$CC"; then
4928 # Extract the first word of "cc", so it can be a program name with args.
4929 set dummy cc
; ac_word
=$2
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931 $as_echo_n "checking for $ac_word... " >&6; }
4932 if ${ac_cv_prog_CC+:} false
; then :
4933 $as_echo_n "(cached) " >&6
4935 if test -n "$CC"; then
4936 ac_cv_prog_CC
="$CC" # Let the user override the test.
4939 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4943 test -z "$as_dir" && as_dir
=.
4944 for ac_exec_ext
in '' $ac_executable_extensions; do
4945 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4946 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4947 ac_prog_rejected
=yes
4951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4958 if test $ac_prog_rejected = yes; then
4959 # We found a bogon in the path, so make sure we never use it.
4960 set dummy
$ac_cv_prog_CC
4962 if test $# != 0; then
4963 # We chose a different compiler from the bogus one.
4964 # However, it has the same basename, so the bogon will be chosen
4965 # first if we set CC to just the basename; use the full file name.
4967 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4973 if test -n "$CC"; then
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4975 $as_echo "$CC" >&6; }
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 $as_echo "no" >&6; }
4983 if test -z "$CC"; then
4984 if test -n "$ac_tool_prefix"; then
4985 for ac_prog
in cl.exe
4987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4988 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4990 $as_echo_n "checking for $ac_word... " >&6; }
4991 if ${ac_cv_prog_CC+:} false
; then :
4992 $as_echo_n "(cached) " >&6
4994 if test -n "$CC"; then
4995 ac_cv_prog_CC
="$CC" # Let the user override the test.
4997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5001 test -z "$as_dir" && as_dir
=.
5002 for ac_exec_ext
in '' $ac_executable_extensions; do
5003 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5004 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5015 if test -n "$CC"; then
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5017 $as_echo "$CC" >&6; }
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020 $as_echo "no" >&6; }
5024 test -n "$CC" && break
5027 if test -z "$CC"; then
5029 for ac_prog
in cl.exe
5031 # Extract the first word of "$ac_prog", so it can be a program name with args.
5032 set dummy
$ac_prog; ac_word
=$2
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
5036 $as_echo_n "(cached) " >&6
5038 if test -n "$ac_ct_CC"; then
5039 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5041 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5045 test -z "$as_dir" && as_dir
=.
5046 for ac_exec_ext
in '' $ac_executable_extensions; do
5047 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5048 ac_cv_prog_ac_ct_CC
="$ac_prog"
5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5059 if test -n "$ac_ct_CC"; then
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5061 $as_echo "$ac_ct_CC" >&6; }
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5068 test -n "$ac_ct_CC" && break
5071 if test "x$ac_ct_CC" = x
; then
5074 case $cross_compiling:$ac_tool_warned in
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5078 ac_tool_warned
=yes ;;
5087 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5089 as_fn_error $?
"no acceptable C compiler found in \$PATH
5090 See \`config.log' for more details" "$LINENO" 5; }
5092 # Provide some information about the compiler.
5093 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5096 for ac_option
in --version -v -V -qversion; do
5097 { { ac_try
="$ac_compiler $ac_option >&5"
5099 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5100 *) ac_try_echo=$ac_try;;
5102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5103 $as_echo "$ac_try_echo"; } >&5
5104 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5106 if test -s conftest.err; then
5108 ... rest of stderr output deleted ...
5109 10q' conftest.err >conftest.er1
5110 cat conftest.er1 >&5
5112 rm -f conftest.er1 conftest.err
5113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5114 test $ac_status = 0; }
5117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118 /* end confdefs.h. */
5128 ac_clean_files_save=$ac_clean_files
5129 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5130 # Try to create an executable without -o first, disregard a.out.
5131 # It will help us diagnose broken compilers, and finding out an intuition
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5134 $as_echo_n "checking whether the C compiler works... " >&6; }
5135 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
5137 # The possible output files:
5138 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5141 for ac_file in $ac_files
5144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5145 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5150 if { { ac_try="$ac_link_default"
5152 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5153 *) ac_try_echo
=$ac_try;;
5155 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5156 $as_echo "$ac_try_echo"; } >&5
5157 (eval "$ac_link_default") 2>&5
5159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5160 test $ac_status = 0; }; then :
5161 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5162 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5163 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5164 # so that the user can short-circuit this test for compilers unknown to
5166 for ac_file
in $ac_files ''
5168 test -f "$ac_file" ||
continue
5170 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
5173 # We found the default executable, but exeext='' is most
5177 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5179 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5181 # We set ac_cv_exeext here because the later test for it is not
5182 # safe: cross compilers may not add the suffix if given an `-o'
5183 # argument, so we may need to know it at that point already.
5184 # Even if this section looks crufty: it has the advantage of
5191 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5196 if test -z "$ac_file"; then :
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198 $as_echo "no" >&6; }
5199 $as_echo "$as_me: failed program was:" >&5
5200 sed 's/^/| /' conftest.
$ac_ext >&5
5202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5204 as_fn_error
77 "C compiler cannot create executables
5205 See \`config.log' for more details" "$LINENO" 5; }
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5208 $as_echo "yes" >&6; }
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5211 $as_echo_n "checking for C compiler default output file name... " >&6; }
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5213 $as_echo "$ac_file" >&6; }
5214 ac_exeext
=$ac_cv_exeext
5216 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5217 ac_clean_files
=$ac_clean_files_save
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5219 $as_echo_n "checking for suffix of executables... " >&6; }
5220 if { { ac_try
="$ac_link"
5222 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5223 *) ac_try_echo=$ac_try;;
5225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5226 $as_echo "$ac_try_echo"; } >&5
5227 (eval "$ac_link") 2>&5
5229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5230 test $ac_status = 0; }; then :
5231 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5232 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5233 # work properly (i.e., refer to `conftest.exe'), while it won't with
5235 for ac_file
in conftest.exe conftest conftest.
*; do
5236 test -f "$ac_file" ||
continue
5238 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5239 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5247 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
5248 See \`config.log' for more details" "$LINENO" 5; }
5250 rm -f conftest conftest
$ac_cv_exeext
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5252 $as_echo "$ac_cv_exeext" >&6; }
5254 rm -f conftest.
$ac_ext
5255 EXEEXT
=$ac_cv_exeext
5257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5263 FILE *f = fopen ("conftest.out", "w");
5264 return ferror (f) || fclose (f) != 0;
5270 ac_clean_files
="$ac_clean_files conftest.out"
5271 # Check that the compiler produces executables we can run. If not, either
5272 # the compiler is broken, or we cross compile.
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5274 $as_echo_n "checking whether we are cross compiling... " >&6; }
5275 if test "$cross_compiling" != yes; then
5276 { { ac_try
="$ac_link"
5278 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5279 *) ac_try_echo=$ac_try;;
5281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5282 $as_echo "$ac_try_echo"; } >&5
5283 (eval "$ac_link") 2>&5
5285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5286 test $ac_status = 0; }
5287 if { ac_try='./conftest$ac_cv_exeext'
5288 { { case "(($ac_try" in
5289 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5290 *) ac_try_echo
=$ac_try;;
5292 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5293 $as_echo "$ac_try_echo"; } >&5
5294 (eval "$ac_try") 2>&5
5296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5297 test $ac_status = 0; }; }; then
5300 if test "$cross_compiling" = maybe
; then
5303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5305 as_fn_error $?
"cannot run C compiled programs.
5306 If you meant to cross compile, use \`--host'.
5307 See \`config.log' for more details" "$LINENO" 5; }
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5312 $as_echo "$cross_compiling" >&6; }
5314 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5315 ac_clean_files
=$ac_clean_files_save
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5317 $as_echo_n "checking for suffix of object files... " >&6; }
5318 if ${ac_cv_objext+:} false
; then :
5319 $as_echo_n "(cached) " >&6
5321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5332 rm -f conftest.o conftest.obj
5333 if { { ac_try
="$ac_compile"
5335 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5336 *) ac_try_echo=$ac_try;;
5338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5339 $as_echo "$ac_try_echo"; } >&5
5340 (eval "$ac_compile") 2>&5
5342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5343 test $ac_status = 0; }; then :
5344 for ac_file in conftest.o conftest.obj conftest.*; do
5345 test -f "$ac_file" || continue;
5347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5348 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5353 $as_echo "$as_me: failed program was:" >&5
5354 sed 's/^/| /' conftest.$ac_ext >&5
5356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5358 as_fn_error $? "cannot compute suffix of object files
: cannot compile
5359 See \
`config.log' for more details" "$LINENO" 5; }
5361 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5364 $as_echo "$ac_cv_objext" >&6; }
5365 OBJEXT=$ac_cv_objext
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5368 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5369 if ${ac_cv_c_compiler_gnu+:} false; then :
5370 $as_echo_n "(cached) " >&6
5372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5373 /* end confdefs.h. */
5386 if ac_fn_c_try_compile "$LINENO"; then :
5391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5392 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5396 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5397 if test $ac_compiler_gnu = yes; then
5402 ac_test_CFLAGS=${CFLAGS+set}
5403 ac_save_CFLAGS=$CFLAGS
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5405 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5406 if ${ac_cv_prog_cc_g+:} false; then :
5407 $as_echo_n "(cached) " >&6
5409 ac_save_c_werror_flag=$ac_c_werror_flag
5410 ac_c_werror_flag=yes
5413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414 /* end confdefs.h. */
5424 if ac_fn_c_try_compile "$LINENO"; then :
5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h. */
5439 if ac_fn_c_try_compile "$LINENO"; then :
5442 ac_c_werror_flag=$ac_save_c_werror_flag
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5455 if ac_fn_c_try_compile "$LINENO"; then :
5458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463 ac_c_werror_flag=$ac_save_c_werror_flag
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5466 $as_echo "$ac_cv_prog_cc_g" >&6; }
5467 if test "$ac_test_CFLAGS" = set; then
5468 CFLAGS=$ac_save_CFLAGS
5469 elif test $ac_cv_prog_cc_g = yes; then
5470 if test "$GCC" = yes; then
5476 if test "$GCC" = yes; then
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5483 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5484 if ${ac_cv_prog_cc_c89+:} false; then :
5485 $as_echo_n "(cached) " >&6
5487 ac_cv_prog_cc_c89=no
5489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5490 /* end confdefs.h. */
5494 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5495 struct buf { int x; };
5496 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5497 static char *e (p, i)
5503 static char *f (char * (*g) (char **, int), char **p, ...)
5508 s = g (p, va_arg (v,int));
5513 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5514 function prototypes and stuff, but not '\xHH' hex character constants.
5515 These don't provoke an error unfortunately, instead are silently treated
5516 as 'x'. The following induces an error, until -std is added to get
5517 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5518 array size at least. It's necessary to write '\x00'==0 to get something
5519 that's true only with -std. */
5520 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5522 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5523 inside strings and character constants. */
5525 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5527 int test (int i, double x);
5528 struct s1 {int (*f) (int a);};
5529 struct s2 {int (*f) (double a);};
5530 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5536 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5541 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5542 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5544 CC="$ac_save_CC $ac_arg"
5545 if ac_fn_c_try_compile "$LINENO"; then :
5546 ac_cv_prog_cc_c89=$ac_arg
5548 rm -f core conftest.err conftest.$ac_objext
5549 test "x$ac_cv_prog_cc_c89" != "xno" && break
5551 rm -f conftest.$ac_ext
5556 case "x$ac_cv_prog_cc_c89" in
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5559 $as_echo "none needed" >&6; } ;;
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5562 $as_echo "unsupported" >&6; } ;;
5564 CC="$CC $ac_cv_prog_cc_c89"
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5566 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5568 if test "x$ac_cv_prog_cc_c89" != xno; then :
5573 ac_cpp='$CPP $CPPFLAGS'
5574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5578 depcc="$CC" am_compiler_list=
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5581 $as_echo_n "checking dependency style of $depcc... " >&6; }
5582 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5583 $as_echo_n "(cached) " >&6
5585 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5586 # We make a subdir and do the tests there. Otherwise we can end up
5587 # making bogus files that we don't know about and never remove. For
5588 # instance it was reported that on HP-UX the gcc test will end up
5589 # making a dummy file named 'D' -- because '-MD' means "put the output
5593 # Copy depcomp to subdir because otherwise we won't find it if we're
5594 # using a relative directory.
5595 cp "$am_depcomp" conftest.dir
5597 # We will build objects and dependencies in a subdirectory because
5598 # it helps to detect inapplicable dependency modes. For instance
5599 # both Tru64's cc and ICC support -MD to output dependencies as a
5600 # side effect of compilation, but ICC will put the dependencies in
5601 # the current directory while Tru64 will put them in the object
5605 am_cv_CC_dependencies_compiler_type=none
5606 if test "$am_compiler_list" = ""; then
5607 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
5610 case " $depcc " in #(
5611 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5614 for depmode in $am_compiler_list; do
5615 # Setup a source with many dependencies, because some compilers
5616 # like to wrap large dependency lists on column 80 (with \), and
5617 # we should not choose a depcomp mode which is confused by this.
5619 # We need to recreate these files for each test, as the compiler may
5620 # overwrite some of them when testing with obscure command lines.
5621 # This happens at least with the AIX C compiler.
5623 for i in 1 2 3 4 5 6; do
5624 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5625 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5626 # Solaris 10 /bin/sh.
5627 echo '/* dummy */' > sub/conftst$i.h
5629 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5631 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5632 # mode. It turns out that the SunPro C++ compiler does not properly
5633 # handle '-M -o', and we need to detect this. Also, some Intel
5634 # versions had trouble with output in subdirs.
5635 am__obj=sub/conftest.${OBJEXT-o}
5636 am__minus_obj="-o $am__obj"
5639 # This depmode causes a compiler race in universal mode.
5640 test "$am__universal" = false || continue
5643 # After this tag, mechanisms are not by side-effect, so they'll
5644 # only be used when explicitly requested.
5645 if test "x$enable_dependency_tracking" = xyes; then
5651 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5652 # This compiler won't grok '-c -o', but also, the minuso test has
5653 # not run yet. These depmodes are late enough in the game, and
5654 # so weak that their functioning should not be impacted.
5655 am__obj=conftest.${OBJEXT-o}
5660 if depmode=$depmode \
5661 source=sub/conftest.c object=$am__obj \
5662 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5663 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5664 >/dev/null 2>conftest.err &&
5665 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5666 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5667 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5668 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5669 # icc doesn't choke on unknown options, it will just issue warnings
5670 # or remarks (even with -Werror). So we grep stderr for any message
5671 # that says an option was ignored or not supported.
5672 # When given -MP, icc 7.0 and 7.1 complain thusly:
5673 # icc: Command line warning: ignoring option '-M'; no argument required
5674 # The diagnosis changed in icc 8.0:
5675 # icc: Command line remark: option '-MP' not supported
5676 if (grep 'ignoring option' conftest.err ||
5677 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5678 am_cv_CC_dependencies_compiler_type=$depmode
5687 am_cv_CC_dependencies_compiler_type=none
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5692 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5693 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5696 test "x$enable_dependency_tracking" != xno \
5697 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5699 am__fastdepCC_FALSE='#'
5701 am__fastdepCC_TRUE='#'
5702 am__fastdepCC_FALSE=
5707 for ac_prog in flex lex
5709 # Extract the first word of "$ac_prog", so it can be a program name with args.
5710 set dummy $ac_prog; ac_word=$2
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5712 $as_echo_n "checking for $ac_word... " >&6; }
5713 if ${ac_cv_prog_LEX+:} false; then :
5714 $as_echo_n "(cached) " >&6
5716 if test -n "$LEX"; then
5717 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 test -z "$as_dir" && as_dir=.
5724 for ac_exec_ext in '' $ac_executable_extensions; do
5725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5726 ac_cv_prog_LEX="$ac_prog"
5727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5737 if test -n "$LEX"; then
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5739 $as_echo "$LEX" >&6; }
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742 $as_echo "no" >&6; }
5746 test -n "$LEX" && break
5748 test -n "$LEX" || LEX=":"
5750 if test "x$LEX" != "x:"; then
5751 cat >conftest.l <<_ACEOF
5757 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
5758 yyless ((input () != 0)); }
5759 f { unput (yytext[0]); }
5760 . { BEGIN INITIAL; }
5762 #ifdef YYTEXT_POINTER
5763 extern char *yytext;
5768 return ! yylex () + ! yywrap ();
5771 { { ac_try="$LEX conftest.l"
5773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5774 *) ac_try_echo
=$ac_try;;
5776 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5777 $as_echo "$ac_try_echo"; } >&5
5778 (eval "$LEX conftest.l") 2>&5
5780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5781 test $ac_status = 0; }
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5783 $as_echo_n "checking lex output file root... " >&6; }
5784 if ${ac_cv_prog_lex_root+:} false
; then :
5785 $as_echo_n "(cached) " >&6
5788 if test -f lex.yy.c
; then
5789 ac_cv_prog_lex_root
=lex.yy
5790 elif test -f lexyy.c
; then
5791 ac_cv_prog_lex_root
=lexyy
5793 as_fn_error $?
"cannot find output from $LEX; giving up" "$LINENO" 5
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5797 $as_echo "$ac_cv_prog_lex_root" >&6; }
5798 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
5800 if test -z "${LEXLIB+set}"; then
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5802 $as_echo_n "checking lex library... " >&6; }
5803 if ${ac_cv_lib_lex+:} false
; then :
5804 $as_echo_n "(cached) " >&6
5808 ac_cv_lib_lex
='none needed'
5809 for ac_lib
in '' -lfl -ll; do
5810 LIBS
="$ac_lib $ac_save_LIBS"
5811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5812 /* end confdefs.h. */
5813 `cat $LEX_OUTPUT_ROOT.c`
5815 if ac_fn_c_try_link
"$LINENO"; then :
5816 ac_cv_lib_lex
=$ac_lib
5818 rm -f core conftest.err conftest.
$ac_objext \
5819 conftest
$ac_exeext conftest.
$ac_ext
5820 test "$ac_cv_lib_lex" != 'none needed' && break
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5826 $as_echo "$ac_cv_lib_lex" >&6; }
5827 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB
=$ac_cv_lib_lex
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5832 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5833 if ${ac_cv_prog_lex_yytext_pointer+:} false
; then :
5834 $as_echo_n "(cached) " >&6
5836 # POSIX says lex can declare yytext either as a pointer or an array; the
5837 # default is implementation-dependent. Figure out which it is, since
5838 # not all implementations provide the %pointer and %array declarations.
5839 ac_cv_prog_lex_yytext_pointer
=no
5841 LIBS
="$LEXLIB $ac_save_LIBS"
5842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5843 /* end confdefs.h. */
5845 #define YYTEXT_POINTER 1
5846 `cat $LEX_OUTPUT_ROOT.c`
5848 if ac_fn_c_try_link
"$LINENO"; then :
5849 ac_cv_prog_lex_yytext_pointer
=yes
5851 rm -f core conftest.err conftest.
$ac_objext \
5852 conftest
$ac_exeext conftest.
$ac_ext
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5857 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5858 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5860 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5863 rm -f conftest.l
$LEX_OUTPUT_ROOT.c
5866 for ac_prog
in 'bison -y' byacc
5868 # Extract the first word of "$ac_prog", so it can be a program name with args.
5869 set dummy
$ac_prog; ac_word
=$2
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5871 $as_echo_n "checking for $ac_word... " >&6; }
5872 if ${ac_cv_prog_YACC+:} false
; then :
5873 $as_echo_n "(cached) " >&6
5875 if test -n "$YACC"; then
5876 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
5878 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5882 test -z "$as_dir" && as_dir
=.
5883 for ac_exec_ext
in '' $ac_executable_extensions; do
5884 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5885 ac_cv_prog_YACC
="$ac_prog"
5886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5895 YACC
=$ac_cv_prog_YACC
5896 if test -n "$YACC"; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5898 $as_echo "$YACC" >&6; }
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901 $as_echo "no" >&6; }
5905 test -n "$YACC" && break
5907 test -n "$YACC" || YACC
="yacc"
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5910 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5912 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5913 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
5914 $as_echo_n "(cached) " >&6
5916 cat >conftest.
make <<\_ACEOF
5919 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5921 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5922 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5924 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5926 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5930 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5932 $as_echo "yes" >&6; }
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5936 $as_echo "no" >&6; }
5937 SET_MAKE
="MAKE=${MAKE-make}"
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5942 $as_echo_n "checking whether ln -s works... " >&6; }
5944 if test "$LN_S" = "ln -s"; then
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5946 $as_echo "yes" >&6; }
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5949 $as_echo "no, using $LN_S" >&6; }
5953 if test "x$LEX" = "x:"; then
5954 as_fn_error $?
"flex is not found" "$LINENO" 5
5956 version
=`$LEX --version | $AWK '{ split($0,tmp," "); split(tmp[2],x,"."); print x[1]*10000+x[2]*100+x[3]; }'`
5957 if test -n "$version" -a "$version" -ge 20535; then
5960 as_fn_error $?
"flex is too old. GRUB requires 2.5.35 or above" "$LINENO" 5
5964 # These are not a "must".
5965 for ac_prog
in makeinfo true
5967 # Extract the first word of "$ac_prog", so it can be a program name with args.
5968 set dummy
$ac_prog; ac_word
=$2
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5970 $as_echo_n "checking for $ac_word... " >&6; }
5971 if ${ac_cv_path_MAKEINFO+:} false
; then :
5972 $as_echo_n "(cached) " >&6
5976 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5979 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5983 test -z "$as_dir" && as_dir
=.
5984 for ac_exec_ext
in '' $ac_executable_extensions; do
5985 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5986 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5997 MAKEINFO
=$ac_cv_path_MAKEINFO
5998 if test -n "$MAKEINFO"; then
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6000 $as_echo "$MAKEINFO" >&6; }
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6003 $as_echo "no" >&6; }
6007 test -n "$MAKEINFO" && break
6012 # Checks for host programs.
6016 ac_cpp
='$CPP $CPPFLAGS'
6017 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6018 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6019 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6020 if test -n "$ac_tool_prefix"; then
6021 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6022 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6024 $as_echo_n "checking for $ac_word... " >&6; }
6025 if ${ac_cv_prog_CC+:} false
; then :
6026 $as_echo_n "(cached) " >&6
6028 if test -n "$CC"; then
6029 ac_cv_prog_CC
="$CC" # Let the user override the test.
6031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6035 test -z "$as_dir" && as_dir
=.
6036 for ac_exec_ext
in '' $ac_executable_extensions; do
6037 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6038 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
6039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6049 if test -n "$CC"; then
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6051 $as_echo "$CC" >&6; }
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6054 $as_echo "no" >&6; }
6059 if test -z "$ac_cv_prog_CC"; then
6061 # Extract the first word of "gcc", so it can be a program name with args.
6062 set dummy gcc
; ac_word
=$2
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6064 $as_echo_n "checking for $ac_word... " >&6; }
6065 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
6066 $as_echo_n "(cached) " >&6
6068 if test -n "$ac_ct_CC"; then
6069 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
6071 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6075 test -z "$as_dir" && as_dir
=.
6076 for ac_exec_ext
in '' $ac_executable_extensions; do
6077 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6078 ac_cv_prog_ac_ct_CC
="gcc"
6079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6088 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
6089 if test -n "$ac_ct_CC"; then
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6091 $as_echo "$ac_ct_CC" >&6; }
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6094 $as_echo "no" >&6; }
6097 if test "x$ac_ct_CC" = x
; then
6100 case $cross_compiling:$ac_tool_warned in
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6104 ac_tool_warned
=yes ;;
6112 if test -z "$CC"; then
6113 if test -n "$ac_tool_prefix"; then
6114 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6115 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6117 $as_echo_n "checking for $ac_word... " >&6; }
6118 if ${ac_cv_prog_CC+:} false
; then :
6119 $as_echo_n "(cached) " >&6
6121 if test -n "$CC"; then
6122 ac_cv_prog_CC
="$CC" # Let the user override the test.
6124 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6128 test -z "$as_dir" && as_dir
=.
6129 for ac_exec_ext
in '' $ac_executable_extensions; do
6130 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6131 ac_cv_prog_CC
="${ac_tool_prefix}cc"
6132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6142 if test -n "$CC"; then
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6144 $as_echo "$CC" >&6; }
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6147 $as_echo "no" >&6; }
6153 if test -z "$CC"; then
6154 # Extract the first word of "cc", so it can be a program name with args.
6155 set dummy cc
; ac_word
=$2
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6157 $as_echo_n "checking for $ac_word... " >&6; }
6158 if ${ac_cv_prog_CC+:} false
; then :
6159 $as_echo_n "(cached) " >&6
6161 if test -n "$CC"; then
6162 ac_cv_prog_CC
="$CC" # Let the user override the test.
6165 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6169 test -z "$as_dir" && as_dir
=.
6170 for ac_exec_ext
in '' $ac_executable_extensions; do
6171 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6172 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6173 ac_prog_rejected
=yes
6177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6184 if test $ac_prog_rejected = yes; then
6185 # We found a bogon in the path, so make sure we never use it.
6186 set dummy
$ac_cv_prog_CC
6188 if test $# != 0; then
6189 # We chose a different compiler from the bogus one.
6190 # However, it has the same basename, so the bogon will be chosen
6191 # first if we set CC to just the basename; use the full file name.
6193 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
6199 if test -n "$CC"; then
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6201 $as_echo "$CC" >&6; }
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6204 $as_echo "no" >&6; }
6209 if test -z "$CC"; then
6210 if test -n "$ac_tool_prefix"; then
6211 for ac_prog
in cl.exe
6213 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6214 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6216 $as_echo_n "checking for $ac_word... " >&6; }
6217 if ${ac_cv_prog_CC+:} false
; then :
6218 $as_echo_n "(cached) " >&6
6220 if test -n "$CC"; then
6221 ac_cv_prog_CC
="$CC" # Let the user override the test.
6223 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6227 test -z "$as_dir" && as_dir
=.
6228 for ac_exec_ext
in '' $ac_executable_extensions; do
6229 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6230 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
6231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6241 if test -n "$CC"; then
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6243 $as_echo "$CC" >&6; }
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6246 $as_echo "no" >&6; }
6250 test -n "$CC" && break
6253 if test -z "$CC"; then
6255 for ac_prog
in cl.exe
6257 # Extract the first word of "$ac_prog", so it can be a program name with args.
6258 set dummy
$ac_prog; ac_word
=$2
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6260 $as_echo_n "checking for $ac_word... " >&6; }
6261 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
6262 $as_echo_n "(cached) " >&6
6264 if test -n "$ac_ct_CC"; then
6265 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
6267 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6271 test -z "$as_dir" && as_dir
=.
6272 for ac_exec_ext
in '' $ac_executable_extensions; do
6273 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6274 ac_cv_prog_ac_ct_CC
="$ac_prog"
6275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6284 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
6285 if test -n "$ac_ct_CC"; then
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6287 $as_echo "$ac_ct_CC" >&6; }
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6290 $as_echo "no" >&6; }
6294 test -n "$ac_ct_CC" && break
6297 if test "x$ac_ct_CC" = x
; then
6300 case $cross_compiling:$ac_tool_warned in
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6304 ac_tool_warned
=yes ;;
6313 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6315 as_fn_error $?
"no acceptable C compiler found in \$PATH
6316 See \`config.log' for more details" "$LINENO" 5; }
6318 # Provide some information about the compiler.
6319 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6322 for ac_option
in --version -v -V -qversion; do
6323 { { ac_try
="$ac_compiler $ac_option >&5"
6325 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6326 *) ac_try_echo=$ac_try;;
6328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6329 $as_echo "$ac_try_echo"; } >&5
6330 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6332 if test -s conftest.err; then
6334 ... rest of stderr output deleted ...
6335 10q' conftest.err >conftest.er1
6336 cat conftest.er1 >&5
6338 rm -f conftest.er1 conftest.err
6339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6340 test $ac_status = 0; }
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6344 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6345 if ${ac_cv_c_compiler_gnu+:} false; then :
6346 $as_echo_n "(cached) " >&6
6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6362 if ac_fn_c_try_compile "$LINENO"; then :
6367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6372 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6373 if test $ac_compiler_gnu = yes; then
6378 ac_test_CFLAGS=${CFLAGS+set}
6379 ac_save_CFLAGS=$CFLAGS
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6381 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6382 if ${ac_cv_prog_cc_g+:} false; then :
6383 $as_echo_n "(cached) " >&6
6385 ac_save_c_werror_flag=$ac_c_werror_flag
6386 ac_c_werror_flag=yes
6389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6390 /* end confdefs.h. */
6400 if ac_fn_c_try_compile "$LINENO"; then :
6404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6405 /* end confdefs.h. */
6415 if ac_fn_c_try_compile "$LINENO"; then :
6418 ac_c_werror_flag=$ac_save_c_werror_flag
6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421 /* end confdefs.h. */
6431 if ac_fn_c_try_compile "$LINENO"; then :
6434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6439 ac_c_werror_flag=$ac_save_c_werror_flag
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6442 $as_echo "$ac_cv_prog_cc_g" >&6; }
6443 if test "$ac_test_CFLAGS" = set; then
6444 CFLAGS=$ac_save_CFLAGS
6445 elif test $ac_cv_prog_cc_g = yes; then
6446 if test "$GCC" = yes; then
6452 if test "$GCC" = yes; then
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6459 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6460 if ${ac_cv_prog_cc_c89+:} false; then :
6461 $as_echo_n "(cached) " >&6
6463 ac_cv_prog_cc_c89=no
6465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6466 /* end confdefs.h. */
6470 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6471 struct buf { int x; };
6472 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6473 static char *e (p, i)
6479 static char *f (char * (*g) (char **, int), char **p, ...)
6484 s = g (p, va_arg (v,int));
6489 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6490 function prototypes and stuff, but not '\xHH' hex character constants.
6491 These don't provoke an error unfortunately, instead are silently treated
6492 as 'x'. The following induces an error, until -std is added to get
6493 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6494 array size at least. It's necessary to write '\x00'==0 to get something
6495 that's true only with -std. */
6496 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6498 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6499 inside strings and character constants. */
6501 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6503 int test (int i, double x);
6504 struct s1 {int (*f) (int a);};
6505 struct s2 {int (*f) (double a);};
6506 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6512 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6517 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6518 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6520 CC="$ac_save_CC $ac_arg"
6521 if ac_fn_c_try_compile "$LINENO"; then :
6522 ac_cv_prog_cc_c89=$ac_arg
6524 rm -f core conftest.err conftest.$ac_objext
6525 test "x$ac_cv_prog_cc_c89" != "xno" && break
6527 rm -f conftest.$ac_ext
6532 case "x$ac_cv_prog_cc_c89" in
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6535 $as_echo "none needed" >&6; } ;;
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6538 $as_echo "unsupported" >&6; } ;;
6540 CC="$CC $ac_cv_prog_cc_c89"
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6542 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6544 if test "x$ac_cv_prog_cc_c89" != xno; then :
6549 ac_cpp='$CPP $CPPFLAGS'
6550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6554 depcc="$CC" am_compiler_list=
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6557 $as_echo_n "checking dependency style of $depcc... " >&6; }
6558 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6559 $as_echo_n "(cached) " >&6
6561 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6562 # We make a subdir and do the tests there. Otherwise we can end up
6563 # making bogus files that we don't know about and never remove. For
6564 # instance it was reported that on HP-UX the gcc test will end up
6565 # making a dummy file named 'D' -- because '-MD' means "put the output
6569 # Copy depcomp to subdir because otherwise we won't find it if we're
6570 # using a relative directory.
6571 cp "$am_depcomp" conftest.dir
6573 # We will build objects and dependencies in a subdirectory because
6574 # it helps to detect inapplicable dependency modes. For instance
6575 # both Tru64's cc and ICC support -MD to output dependencies as a
6576 # side effect of compilation, but ICC will put the dependencies in
6577 # the current directory while Tru64 will put them in the object
6581 am_cv_CC_dependencies_compiler_type=none
6582 if test "$am_compiler_list" = ""; then
6583 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
6586 case " $depcc " in #(
6587 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6590 for depmode in $am_compiler_list; do
6591 # Setup a source with many dependencies, because some compilers
6592 # like to wrap large dependency lists on column 80 (with \), and
6593 # we should not choose a depcomp mode which is confused by this.
6595 # We need to recreate these files for each test, as the compiler may
6596 # overwrite some of them when testing with obscure command lines.
6597 # This happens at least with the AIX C compiler.
6599 for i in 1 2 3 4 5 6; do
6600 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6601 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6602 # Solaris 10 /bin/sh.
6603 echo '/* dummy */' > sub/conftst$i.h
6605 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6607 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6608 # mode. It turns out that the SunPro C++ compiler does not properly
6609 # handle '-M -o', and we need to detect this. Also, some Intel
6610 # versions had trouble with output in subdirs.
6611 am__obj=sub/conftest.${OBJEXT-o}
6612 am__minus_obj="-o $am__obj"
6615 # This depmode causes a compiler race in universal mode.
6616 test "$am__universal" = false || continue
6619 # After this tag, mechanisms are not by side-effect, so they'll
6620 # only be used when explicitly requested.
6621 if test "x$enable_dependency_tracking" = xyes; then
6627 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6628 # This compiler won't grok '-c -o', but also, the minuso test has
6629 # not run yet. These depmodes are late enough in the game, and
6630 # so weak that their functioning should not be impacted.
6631 am__obj=conftest.${OBJEXT-o}
6636 if depmode=$depmode \
6637 source=sub/conftest.c object=$am__obj \
6638 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6639 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6640 >/dev/null 2>conftest.err &&
6641 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6642 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6643 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6644 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6645 # icc doesn't choke on unknown options, it will just issue warnings
6646 # or remarks (even with -Werror). So we grep stderr for any message
6647 # that says an option was ignored or not supported.
6648 # When given -MP, icc 7.0 and 7.1 complain thusly:
6649 # icc: Command line warning: ignoring option '-M'; no argument required
6650 # The diagnosis changed in icc 8.0:
6651 # icc: Command line remark: option '-MP' not supported
6652 if (grep 'ignoring option' conftest.err ||
6653 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6654 am_cv_CC_dependencies_compiler_type=$depmode
6663 am_cv_CC_dependencies_compiler_type=none
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6668 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6669 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6672 test "x$enable_dependency_tracking" != xno \
6673 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6675 am__fastdepCC_FALSE='#'
6677 am__fastdepCC_TRUE='#'
6678 am__fastdepCC_FALSE=
6683 ac_cpp='$CPP $CPPFLAGS'
6684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6688 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6689 # On Suns, sometimes $CPP names a directory.
6690 if test -n "$CPP" && test -d "$CPP"; then
6693 if test -z "$CPP"; then
6694 if ${ac_cv_prog_CPP+:} false; then :
6695 $as_echo_n "(cached) " >&6
6697 # Double quotes because CPP needs to be expanded
6698 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6701 for ac_c_preproc_warn_flag in '' yes
6703 # Use a header file that comes with gcc, so configuring glibc
6704 # with a fresh cross-compiler works.
6705 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6706 # <limits.h> exists even on freestanding compilers.
6707 # On the NeXT, cc -E runs the code through the compiler's parser,
6708 # not just through cpp. "Syntax error" is here to catch this case.
6709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6710 /* end confdefs.h. */
6712 # include <limits.h>
6714 # include <assert.h>
6718 if ac_fn_c_try_cpp "$LINENO"; then :
6721 # Broken: fails on valid input.
6724 rm -f conftest.err conftest.i conftest.$ac_ext
6726 # OK, works on sane cases. Now check whether nonexistent headers
6727 # can be detected and how.
6728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729 /* end confdefs.h. */
6730 #include <ac_nonexistent.h>
6732 if ac_fn_c_try_cpp "$LINENO"; then :
6733 # Broken: success on invalid input.
6736 # Passes both tests.
6740 rm -f conftest.err conftest.i conftest.$ac_ext
6743 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6744 rm -f conftest.i conftest.err conftest.
$ac_ext
6745 if $ac_preproc_ok; then :
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6758 $as_echo "$CPP" >&6; }
6760 for ac_c_preproc_warn_flag
in '' yes
6762 # Use a header file that comes with gcc, so configuring glibc
6763 # with a fresh cross-compiler works.
6764 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6765 # <limits.h> exists even on freestanding compilers.
6766 # On the NeXT, cc -E runs the code through the compiler's parser,
6767 # not just through cpp. "Syntax error" is here to catch this case.
6768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h. */
6771 # include <limits.h>
6773 # include <assert.h>
6777 if ac_fn_c_try_cpp
"$LINENO"; then :
6780 # Broken: fails on valid input.
6783 rm -f conftest.err conftest.i conftest.
$ac_ext
6785 # OK, works on sane cases. Now check whether nonexistent headers
6786 # can be detected and how.
6787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6788 /* end confdefs.h. */
6789 #include <ac_nonexistent.h>
6791 if ac_fn_c_try_cpp
"$LINENO"; then :
6792 # Broken: success on invalid input.
6795 # Passes both tests.
6799 rm -f conftest.err conftest.i conftest.
$ac_ext
6802 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6803 rm -f conftest.i conftest.err conftest.
$ac_ext
6804 if $ac_preproc_ok; then :
6807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6809 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6810 See \`config.log' for more details" "$LINENO" 5; }
6814 ac_cpp
='$CPP $CPPFLAGS'
6815 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6816 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6817 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6821 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6822 if ${ac_cv_path_GREP+:} false
; then :
6823 $as_echo_n "(cached) " >&6
6825 if test -z "$GREP"; then
6826 ac_path_GREP_found
=false
6827 # Loop through the user's path and test for each of PROGNAME-LIST
6828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6829 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6832 test -z "$as_dir" && as_dir
=.
6833 for ac_prog
in grep ggrep
; do
6834 for ac_exec_ext
in '' $ac_executable_extensions; do
6835 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6836 as_fn_executable_p
"$ac_path_GREP" ||
continue
6837 # Check for GNU ac_path_GREP and select it if it is found.
6838 # Check for GNU $ac_path_GREP
6839 case `"$ac_path_GREP" --version 2>&1` in
6841 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6844 $as_echo_n 0123456789 >"conftest.in"
6847 cat "conftest.in" "conftest.in" >"conftest.tmp"
6848 mv "conftest.tmp" "conftest.in"
6849 cp "conftest.in" "conftest.nl"
6850 $as_echo 'GREP' >> "conftest.nl"
6851 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6852 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6853 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6854 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6855 # Best one so far, save it but keep looking for a better one
6856 ac_cv_path_GREP
="$ac_path_GREP"
6857 ac_path_GREP_max
=$ac_count
6859 # 10*(2^10) chars as input seems more than enough
6860 test $ac_count -gt 10 && break
6862 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6865 $ac_path_GREP_found && break 3
6870 if test -z "$ac_cv_path_GREP"; then
6871 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6874 ac_cv_path_GREP
=$GREP
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6879 $as_echo "$ac_cv_path_GREP" >&6; }
6880 GREP
="$ac_cv_path_GREP"
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6884 $as_echo_n "checking for egrep... " >&6; }
6885 if ${ac_cv_path_EGREP+:} false
; then :
6886 $as_echo_n "(cached) " >&6
6888 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6889 then ac_cv_path_EGREP
="$GREP -E"
6891 if test -z "$EGREP"; then
6892 ac_path_EGREP_found
=false
6893 # Loop through the user's path and test for each of PROGNAME-LIST
6894 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6895 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6898 test -z "$as_dir" && as_dir
=.
6899 for ac_prog
in egrep; do
6900 for ac_exec_ext
in '' $ac_executable_extensions; do
6901 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6902 as_fn_executable_p
"$ac_path_EGREP" ||
continue
6903 # Check for GNU ac_path_EGREP and select it if it is found.
6904 # Check for GNU $ac_path_EGREP
6905 case `"$ac_path_EGREP" --version 2>&1` in
6907 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6910 $as_echo_n 0123456789 >"conftest.in"
6913 cat "conftest.in" "conftest.in" >"conftest.tmp"
6914 mv "conftest.tmp" "conftest.in"
6915 cp "conftest.in" "conftest.nl"
6916 $as_echo 'EGREP' >> "conftest.nl"
6917 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6918 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6919 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6920 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6921 # Best one so far, save it but keep looking for a better one
6922 ac_cv_path_EGREP
="$ac_path_EGREP"
6923 ac_path_EGREP_max
=$ac_count
6925 # 10*(2^10) chars as input seems more than enough
6926 test $ac_count -gt 10 && break
6928 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6931 $ac_path_EGREP_found && break 3
6936 if test -z "$ac_cv_path_EGREP"; then
6937 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6940 ac_cv_path_EGREP
=$EGREP
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6946 $as_echo "$ac_cv_path_EGREP" >&6; }
6947 EGREP
="$ac_cv_path_EGREP"
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6953 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6954 if ${gl_cv_c_amsterdam_compiler+:} false
; then :
6955 $as_echo_n "(cached) " >&6
6958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6959 /* end confdefs.h. */
6966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6967 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6968 gl_cv_c_amsterdam_compiler
=yes
6970 gl_cv_c_amsterdam_compiler
=no
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6977 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6978 if test -z "$AR"; then
6979 if test $gl_cv_c_amsterdam_compiler = yes; then
6981 if test -z "$ARFLAGS"; then
6985 if test -n "$ac_tool_prefix"; then
6986 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6987 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6989 $as_echo_n "checking for $ac_word... " >&6; }
6990 if ${ac_cv_prog_AR+:} false
; then :
6991 $as_echo_n "(cached) " >&6
6993 if test -n "$AR"; then
6994 ac_cv_prog_AR
="$AR" # Let the user override the test.
6996 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7000 test -z "$as_dir" && as_dir
=.
7001 for ac_exec_ext
in '' $ac_executable_extensions; do
7002 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7003 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 if test -n "$AR"; then
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7016 $as_echo "$AR" >&6; }
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019 $as_echo "no" >&6; }
7024 if test -z "$ac_cv_prog_AR"; then
7026 # Extract the first word of "ar", so it can be a program name with args.
7027 set dummy
ar; ac_word
=$2
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029 $as_echo_n "checking for $ac_word... " >&6; }
7030 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
7031 $as_echo_n "(cached) " >&6
7033 if test -n "$ac_ct_AR"; then
7034 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7036 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7040 test -z "$as_dir" && as_dir
=.
7041 for ac_exec_ext
in '' $ac_executable_extensions; do
7042 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7043 ac_cv_prog_ac_ct_AR
="ar"
7044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7053 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7054 if test -n "$ac_ct_AR"; then
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7056 $as_echo "$ac_ct_AR" >&6; }
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059 $as_echo "no" >&6; }
7062 if test "x$ac_ct_AR" = x
; then
7065 case $cross_compiling:$ac_tool_warned in
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7069 ac_tool_warned
=yes ;;
7077 if test -z "$ARFLAGS"; then
7082 if test -z "$ARFLAGS"; then
7088 if test -z "$RANLIB"; then
7089 if test $gl_cv_c_amsterdam_compiler = yes; then
7092 if test -n "$ac_tool_prefix"; then
7093 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7094 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7096 $as_echo_n "checking for $ac_word... " >&6; }
7097 if ${ac_cv_prog_RANLIB+:} false
; then :
7098 $as_echo_n "(cached) " >&6
7100 if test -n "$RANLIB"; then
7101 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7103 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7107 test -z "$as_dir" && as_dir
=.
7108 for ac_exec_ext
in '' $ac_executable_extensions; do
7109 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7110 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7120 RANLIB
=$ac_cv_prog_RANLIB
7121 if test -n "$RANLIB"; then
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7123 $as_echo "$RANLIB" >&6; }
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7126 $as_echo "no" >&6; }
7131 if test -z "$ac_cv_prog_RANLIB"; then
7132 ac_ct_RANLIB
=$RANLIB
7133 # Extract the first word of "ranlib", so it can be a program name with args.
7134 set dummy ranlib
; ac_word
=$2
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7136 $as_echo_n "checking for $ac_word... " >&6; }
7137 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7138 $as_echo_n "(cached) " >&6
7140 if test -n "$ac_ct_RANLIB"; then
7141 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7143 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7147 test -z "$as_dir" && as_dir
=.
7148 for ac_exec_ext
in '' $ac_executable_extensions; do
7149 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7150 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7160 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7161 if test -n "$ac_ct_RANLIB"; then
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7163 $as_echo "$ac_ct_RANLIB" >&6; }
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7166 $as_echo "no" >&6; }
7169 if test "x$ac_ct_RANLIB" = x
; then
7172 case $cross_compiling:$ac_tool_warned in
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7176 ac_tool_warned
=yes ;;
7178 RANLIB
=$ac_ct_RANLIB
7181 RANLIB
="$ac_cv_prog_RANLIB"
7188 if test "x$CC" != xcc
; then
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7190 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7193 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7195 set dummy
$CC; ac_cc
=`$as_echo "$2" |
7196 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7197 if eval \
${ac_cv_prog_cc_${ac_cc}_c_o+:} false
; then :
7198 $as_echo_n "(cached) " >&6
7200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7201 /* end confdefs.h. */
7211 # Make sure it works both with $CC and with simple cc.
7212 # We do the test twice because some compilers refuse to overwrite an
7213 # existing .o file with -o, though they will create one.
7214 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7216 if { { case "(($ac_try" in
7217 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7218 *) ac_try_echo=$ac_try;;
7220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7221 $as_echo "$ac_try_echo"; } >&5
7222 (eval "$ac_try") 2>&5
7224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7225 test $ac_status = 0; } &&
7226 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7227 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7228 *) ac_try_echo
=$ac_try;;
7230 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7231 $as_echo "$ac_try_echo"; } >&5
7232 (eval "$ac_try") 2>&5
7234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7235 test $ac_status = 0; };
7237 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
7238 if test "x$CC" != xcc
; then
7239 # Test first that cc exists at all.
7240 if { ac_try
='cc -c conftest.$ac_ext >&5'
7241 { { case "(($ac_try" in
7242 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7243 *) ac_try_echo=$ac_try;;
7245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7246 $as_echo "$ac_try_echo"; } >&5
7247 (eval "$ac_try") 2>&5
7249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7250 test $ac_status = 0; }; }; then
7251 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7253 if { { case "(($ac_try" in
7254 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7255 *) ac_try_echo
=$ac_try;;
7257 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7258 $as_echo "$ac_try_echo"; } >&5
7259 (eval "$ac_try") 2>&5
7261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7262 test $ac_status = 0; } &&
7263 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
7264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7265 *) ac_try_echo=$ac_try;;
7267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7268 $as_echo "$ac_try_echo"; } >&5
7269 (eval "$ac_try") 2>&5
7271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7272 test $ac_status = 0; };
7277 # cc exists but doesn't like -o.
7278 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7283 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7285 rm -f core conftest*
7288 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7290 $as_echo "yes" >&6; }
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293 $as_echo "no" >&6; }
7295 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7299 # FIXME: we rely on the cache variable name because
7300 # there is no other way.
7302 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7303 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7304 if test "$am_t" != yes; then
7305 # Losing compiler, so override with the script.
7306 # FIXME: It is wrong to rewrite CC.
7307 # But if we don't then we get into trouble of one sort or another.
7308 # A longer-term fix would be to have automake use am__CC in this case,
7309 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7310 CC="$am_aux_dir/compile $CC"
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7315 $as_echo_n "checking for ANSI C header files... " >&6; }
7316 if ${ac_cv_header_stdc+:} false; then :
7317 $as_echo_n "(cached) " >&6
7319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320 /* end confdefs.h. */
7334 if ac_fn_c_try_compile "$LINENO"; then :
7335 ac_cv_header_stdc=yes
7337 ac_cv_header_stdc=no
7339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7341 if test $ac_cv_header_stdc = yes; then
7342 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7344 /* end confdefs.h. */
7348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7349 $EGREP "memchr" >/dev/null 2>&1; then :
7352 ac_cv_header_stdc=no
7358 if test $ac_cv_header_stdc = yes; then
7359 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h. */
7365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7366 $EGREP "free" >/dev/null 2>&1; then :
7369 ac_cv_header_stdc=no
7375 if test $ac_cv_header_stdc = yes; then
7376 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7377 if test "$cross_compiling" = yes; then :
7380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7381 /* end confdefs.h. */
7384 #if ((' ' & 0x0FF) == 0x020)
7385 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7386 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7388 # define ISLOWER(c) \
7389 (('a' <= (c) && (c) <= 'i') \
7390 || ('j' <= (c) && (c) <= 'r') \
7391 || ('s' <= (c) && (c) <= 'z'))
7392 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7395 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7400 for (i = 0; i < 256; i++)
7401 if (XOR (islower (i), ISLOWER (i))
7402 || toupper (i) != TOUPPER (i))
7407 if ac_fn_c_try_run "$LINENO"; then :
7410 ac_cv_header_stdc=no
7412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7413 conftest.$ac_objext conftest.beam conftest.$ac_ext
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7419 $as_echo "$ac_cv_header_stdc" >&6; }
7420 if test $ac_cv_header_stdc = yes; then
7422 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7426 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7427 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7428 inttypes.h stdint.h unistd.h
7430 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7431 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7433 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7434 cat >>confdefs.h <<_ACEOF
7435 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7444 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
7445 if test "x$ac_cv_header_minix_config_h" = xyes; then :
7452 if test "$MINIX" = yes; then
7454 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
7457 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
7460 $as_echo "#define _MINIX 1" >>confdefs.h
7463 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
7469 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
7470 if ${ac_cv_safe_to_define___extensions__+:} false; then :
7471 $as_echo_n "(cached) " >&6
7473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474 /* end confdefs.h. */
7476 # define __EXTENSIONS__ 1
7477 $ac_includes_default
7486 if ac_fn_c_try_compile "$LINENO"; then :
7487 ac_cv_safe_to_define___extensions__=yes
7489 ac_cv_safe_to_define___extensions__=no
7491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
7494 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7495 test $ac_cv_safe_to_define___extensions__ = yes &&
7496 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
7498 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
7500 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
7502 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
7504 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
7506 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
7509 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
7510 if ${ac_cv_should_define__xopen_source+:} false; then :
7511 $as_echo_n "(cached) " >&6
7513 ac_cv_should_define__xopen_source=no
7514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7515 /* end confdefs.h. */
7527 if ac_fn_c_try_compile "$LINENO"; then :
7530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7531 /* end confdefs.h. */
7533 #define _XOPEN_SOURCE 500
7544 if ac_fn_c_try_compile "$LINENO"; then :
7545 ac_cv_should_define__xopen_source=yes
7547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
7552 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
7553 test $ac_cv_should_define__xopen_source = yes &&
7554 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
7566 # Code from module alloca:
7567 # Code from module alloca-opt:
7568 # Code from module argp:
7569 # Code from module btowc:
7570 # Code from module configmake:
7571 # Code from module dirname-lgpl:
7572 # Code from module dosname:
7573 # Code from module double-slash-root:
7574 # Code from module errno:
7575 # Code from module error:
7576 # Code from module extensions:
7578 # Code from module extern-inline:
7579 # Code from module float:
7580 # Code from module fnmatch:
7581 # Code from module getdelim:
7582 # Code from module getline:
7583 # Code from module getopt-gnu:
7584 # Code from module getopt-posix:
7585 # Code from module gettext:
7586 # Code from module gettext-h:
7587 # Code from module havelib:
7588 # Code from module include_next:
7589 # Code from module intprops:
7590 # Code from module langinfo:
7591 # Code from module localcharset:
7592 # Code from module locale:
7593 # Code from module localeconv:
7594 # Code from module malloc-gnu:
7595 # Code from module malloc-posix:
7596 # Code from module mbrtowc:
7597 # Code from module mbsinit:
7598 # Code from module mbsrtowcs:
7599 # Code from module mbswidth:
7600 # Code from module mbtowc:
7601 # Code from module memchr:
7602 # Code from module mempcpy:
7603 # Code from module msvc-inval:
7604 # Code from module msvc-nothrow:
7605 # Code from module multiarch:
7606 # Code from module nl_langinfo:
7607 # Code from module nocrash:
7608 # Code from module progname:
7609 # Code from module rawmemchr:
7610 # Code from module realloc-posix:
7611 # Code from module regex:
7612 # Code from module size_max:
7613 # Code from module sleep:
7614 # Code from module snippet/_Noreturn:
7615 # Code from module snippet/arg-nonnull:
7616 # Code from module snippet/c++defs:
7617 # Code from module snippet/warn-on-use:
7618 # Code from module ssize_t:
7619 # Code from module stdalign:
7620 # Code from module stdbool:
7621 # Code from module stddef:
7622 # Code from module stdint:
7623 # Code from module stdio:
7624 # Code from module stdlib:
7625 # Code from module strcase:
7626 # Code from module strchrnul:
7627 # Code from module streq:
7628 # Code from module strerror:
7629 # Code from module strerror-override:
7630 # Code from module string:
7631 # Code from module strings:
7632 # Code from module strndup:
7633 # Code from module strnlen:
7634 # Code from module strnlen1:
7635 # Code from module sys_types:
7636 # Code from module sysexits:
7637 # Code from module unistd:
7638 # Code from module unitypes:
7639 # Code from module uniwidth/base:
7640 # Code from module uniwidth/width:
7641 # Code from module vasnprintf:
7642 # Code from module verify:
7643 # Code from module vsnprintf:
7644 # Code from module wchar:
7645 # Code from module wcrtomb:
7646 # Code from module wctype-h:
7647 # Code from module wcwidth:
7648 # Code from module xsize:
7651 ac_cpp='$CXXCPP $CPPFLAGS'
7652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7655 if test -z "$CXX"; then
7656 if test -n "$CCC"; then
7659 if test -n "$ac_tool_prefix"; then
7660 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7662 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7663 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7665 $as_echo_n "checking for $ac_word... " >&6; }
7666 if ${ac_cv_prog_CXX+:} false; then :
7667 $as_echo_n "(cached) " >&6
7669 if test -n "$CXX"; then
7670 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676 test -z "$as_dir" && as_dir=.
7677 for ac_exec_ext in '' $ac_executable_extensions; do
7678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7679 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7690 if test -n "$CXX"; then
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7692 $as_echo "$CXX" >&6; }
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7695 $as_echo "no" >&6; }
7699 test -n "$CXX" && break
7702 if test -z "$CXX"; then
7704 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7706 # Extract the first word of "$ac_prog", so it can be a program name with args.
7707 set dummy $ac_prog; ac_word=$2
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7709 $as_echo_n "checking for $ac_word... " >&6; }
7710 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7711 $as_echo_n "(cached) " >&6
7713 if test -n "$ac_ct_CXX"; then
7714 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 test -z "$as_dir" && as_dir=.
7721 for ac_exec_ext in '' $ac_executable_extensions; do
7722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7723 ac_cv_prog_ac_ct_CXX="$ac_prog"
7724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7733 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7734 if test -n "$ac_ct_CXX"; then
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7736 $as_echo "$ac_ct_CXX" >&6; }
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7739 $as_echo "no" >&6; }
7743 test -n "$ac_ct_CXX" && break
7746 if test "x$ac_ct_CXX" = x; then
7749 case $cross_compiling:$ac_tool_warned in
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7753 ac_tool_warned=yes ;;
7761 # Provide some information about the compiler.
7762 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7765 for ac_option in --version -v -V -qversion; do
7766 { { ac_try="$ac_compiler $ac_option >&5"
7768 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7769 *) ac_try_echo
=$ac_try;;
7771 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7772 $as_echo "$ac_try_echo"; } >&5
7773 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7775 if test -s conftest.err
; then
7777 ... rest of stderr output deleted ...
7778 10q' conftest.err
>conftest.er1
7779 cat conftest.er1
>&5
7781 rm -f conftest.er1 conftest.err
7782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7783 test $ac_status = 0; }
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7787 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7788 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
7789 $as_echo_n "(cached) " >&6
7791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7792 /* end confdefs.h. */
7805 if ac_fn_cxx_try_compile
"$LINENO"; then :
7810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7811 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7815 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7816 if test $ac_compiler_gnu = yes; then
7821 ac_test_CXXFLAGS
=${CXXFLAGS+set}
7822 ac_save_CXXFLAGS
=$CXXFLAGS
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7824 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7825 if ${ac_cv_prog_cxx_g+:} false
; then :
7826 $as_echo_n "(cached) " >&6
7828 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
7829 ac_cxx_werror_flag
=yes
7832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h. */
7843 if ac_fn_cxx_try_compile
"$LINENO"; then :
7844 ac_cv_prog_cxx_g
=yes
7847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h. */
7858 if ac_fn_cxx_try_compile
"$LINENO"; then :
7861 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7864 /* end confdefs.h. */
7874 if ac_fn_cxx_try_compile
"$LINENO"; then :
7875 ac_cv_prog_cxx_g
=yes
7877 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7879 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7881 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7882 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7885 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7886 if test "$ac_test_CXXFLAGS" = set; then
7887 CXXFLAGS
=$ac_save_CXXFLAGS
7888 elif test $ac_cv_prog_cxx_g = yes; then
7889 if test "$GXX" = yes; then
7895 if test "$GXX" = yes; then
7902 ac_cpp
='$CPP $CPPFLAGS'
7903 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7904 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7905 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7907 depcc
="$CXX" am_compiler_list
=
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7910 $as_echo_n "checking dependency style of $depcc... " >&6; }
7911 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
7912 $as_echo_n "(cached) " >&6
7914 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7915 # We make a subdir and do the tests there. Otherwise we can end up
7916 # making bogus files that we don't know about and never remove. For
7917 # instance it was reported that on HP-UX the gcc test will end up
7918 # making a dummy file named 'D' -- because '-MD' means "put the output
7922 # Copy depcomp to subdir because otherwise we won't find it if we're
7923 # using a relative directory.
7924 cp "$am_depcomp" conftest.dir
7926 # We will build objects and dependencies in a subdirectory because
7927 # it helps to detect inapplicable dependency modes. For instance
7928 # both Tru64's cc and ICC support -MD to output dependencies as a
7929 # side effect of compilation, but ICC will put the dependencies in
7930 # the current directory while Tru64 will put them in the object
7934 am_cv_CXX_dependencies_compiler_type
=none
7935 if test "$am_compiler_list" = ""; then
7936 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7939 case " $depcc " in #(
7940 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
7943 for depmode
in $am_compiler_list; do
7944 # Setup a source with many dependencies, because some compilers
7945 # like to wrap large dependency lists on column 80 (with \), and
7946 # we should not choose a depcomp mode which is confused by this.
7948 # We need to recreate these files for each test, as the compiler may
7949 # overwrite some of them when testing with obscure command lines.
7950 # This happens at least with the AIX C compiler.
7952 for i
in 1 2 3 4 5 6; do
7953 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
7954 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7955 # Solaris 10 /bin/sh.
7956 echo '/* dummy */' > sub
/conftst
$i.h
7958 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7960 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7961 # mode. It turns out that the SunPro C++ compiler does not properly
7962 # handle '-M -o', and we need to detect this. Also, some Intel
7963 # versions had trouble with output in subdirs.
7964 am__obj
=sub
/conftest.
${OBJEXT-o}
7965 am__minus_obj
="-o $am__obj"
7968 # This depmode causes a compiler race in universal mode.
7969 test "$am__universal" = false ||
continue
7972 # After this tag, mechanisms are not by side-effect, so they'll
7973 # only be used when explicitly requested.
7974 if test "x$enable_dependency_tracking" = xyes
; then
7980 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
7981 # This compiler won't grok '-c -o', but also, the minuso test has
7982 # not run yet. These depmodes are late enough in the game, and
7983 # so weak that their functioning should not be impacted.
7984 am__obj
=conftest.
${OBJEXT-o}
7989 if depmode
=$depmode \
7990 source=sub
/conftest.c object
=$am__obj \
7991 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
7992 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
7993 >/dev
/null
2>conftest.err
&&
7994 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
7995 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
7996 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
7997 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
7998 # icc doesn't choke on unknown options, it will just issue warnings
7999 # or remarks (even with -Werror). So we grep stderr for any message
8000 # that says an option was ignored or not supported.
8001 # When given -MP, icc 7.0 and 7.1 complain thusly:
8002 # icc: Command line warning: ignoring option '-M'; no argument required
8003 # The diagnosis changed in icc 8.0:
8004 # icc: Command line remark: option '-MP' not supported
8005 if (grep 'ignoring option' conftest.err ||
8006 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
8007 am_cv_CXX_dependencies_compiler_type
=$depmode
8016 am_cv_CXX_dependencies_compiler_type
=none
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8021 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8022 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
8025 test "x$enable_dependency_tracking" != xno \
8026 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
8027 am__fastdepCXX_TRUE
=
8028 am__fastdepCXX_FALSE
='#'
8030 am__fastdepCXX_TRUE
='#'
8031 am__fastdepCXX_FALSE
=
8035 # FIXME: we rely on the cache variable name because
8036 # there is no other way.
8038 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
8039 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
8040 if test "$am_t" != yes; then
8041 # Losing compiler, so override with the script.
8042 # FIXME: It is wrong to rewrite CC.
8043 # But if we don't then we get into trouble of one sort or another.
8044 # A longer-term fix would be to have automake use am__CC in this case,
8045 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
8046 CC
="$am_aux_dir/compile $CC"
8050 # By default we simply use the C compiler to build assembly code.
8052 test "${CCAS+set}" = set || CCAS
=$CC
8053 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
8057 depcc
="$CCAS" am_compiler_list
=
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8060 $as_echo_n "checking dependency style of $depcc... " >&6; }
8061 if ${am_cv_CCAS_dependencies_compiler_type+:} false
; then :
8062 $as_echo_n "(cached) " >&6
8064 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8065 # We make a subdir and do the tests there. Otherwise we can end up
8066 # making bogus files that we don't know about and never remove. For
8067 # instance it was reported that on HP-UX the gcc test will end up
8068 # making a dummy file named 'D' -- because '-MD' means "put the output
8072 # Copy depcomp to subdir because otherwise we won't find it if we're
8073 # using a relative directory.
8074 cp "$am_depcomp" conftest.dir
8076 # We will build objects and dependencies in a subdirectory because
8077 # it helps to detect inapplicable dependency modes. For instance
8078 # both Tru64's cc and ICC support -MD to output dependencies as a
8079 # side effect of compilation, but ICC will put the dependencies in
8080 # the current directory while Tru64 will put them in the object
8084 am_cv_CCAS_dependencies_compiler_type
=none
8085 if test "$am_compiler_list" = ""; then
8086 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8091 for depmode
in $am_compiler_list; do
8092 # Setup a source with many dependencies, because some compilers
8093 # like to wrap large dependency lists on column 80 (with \), and
8094 # we should not choose a depcomp mode which is confused by this.
8096 # We need to recreate these files for each test, as the compiler may
8097 # overwrite some of them when testing with obscure command lines.
8098 # This happens at least with the AIX C compiler.
8100 for i
in 1 2 3 4 5 6; do
8101 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
8102 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
8103 # Solaris 10 /bin/sh.
8104 echo '/* dummy */' > sub
/conftst
$i.h
8106 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8108 # We check with '-c' and '-o' for the sake of the "dashmstdout"
8109 # mode. It turns out that the SunPro C++ compiler does not properly
8110 # handle '-M -o', and we need to detect this. Also, some Intel
8111 # versions had trouble with output in subdirs.
8112 am__obj
=sub
/conftest.
${OBJEXT-o}
8113 am__minus_obj
="-o $am__obj"
8116 # This depmode causes a compiler race in universal mode.
8117 test "$am__universal" = false ||
continue
8120 # After this tag, mechanisms are not by side-effect, so they'll
8121 # only be used when explicitly requested.
8122 if test "x$enable_dependency_tracking" = xyes
; then
8128 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
8129 # This compiler won't grok '-c -o', but also, the minuso test has
8130 # not run yet. These depmodes are late enough in the game, and
8131 # so weak that their functioning should not be impacted.
8132 am__obj
=conftest.
${OBJEXT-o}
8137 if depmode
=$depmode \
8138 source=sub
/conftest.c object
=$am__obj \
8139 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
8140 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
8141 >/dev
/null
2>conftest.err
&&
8142 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
8143 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
8144 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
8145 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
8146 # icc doesn't choke on unknown options, it will just issue warnings
8147 # or remarks (even with -Werror). So we grep stderr for any message
8148 # that says an option was ignored or not supported.
8149 # When given -MP, icc 7.0 and 7.1 complain thusly:
8150 # icc: Command line warning: ignoring option '-M'; no argument required
8151 # The diagnosis changed in icc 8.0:
8152 # icc: Command line remark: option '-MP' not supported
8153 if (grep 'ignoring option' conftest.err ||
8154 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
8155 am_cv_CCAS_dependencies_compiler_type
=$depmode
8164 am_cv_CCAS_dependencies_compiler_type
=none
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
8169 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
8170 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
8173 test "x$enable_dependency_tracking" != xno \
8174 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
8175 am__fastdepCCAS_TRUE
=
8176 am__fastdepCCAS_FALSE
='#'
8178 am__fastdepCCAS_TRUE
='#'
8179 am__fastdepCCAS_FALSE
=
8185 test "x$GCC" = xyes || as_fn_error $?
"GCC is required" "$LINENO" 5
8187 # Extract the first word of "$CXX", so it can be a program name with args.
8188 set dummy
$CXX; ac_word
=$2
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8190 $as_echo_n "checking for $ac_word... " >&6; }
8191 if ${ac_cv_prog_HAVE_CXX+:} false
; then :
8192 $as_echo_n "(cached) " >&6
8194 if test -n "$HAVE_CXX"; then
8195 ac_cv_prog_HAVE_CXX
="$HAVE_CXX" # Let the user override the test.
8197 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8201 test -z "$as_dir" && as_dir
=.
8202 for ac_exec_ext
in '' $ac_executable_extensions; do
8203 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8204 ac_cv_prog_HAVE_CXX
="yes"
8205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8212 test -z "$ac_cv_prog_HAVE_CXX" && ac_cv_prog_HAVE_CXX
="no"
8215 HAVE_CXX
=$ac_cv_prog_HAVE_CXX
8216 if test -n "$HAVE_CXX"; then
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CXX" >&5
8218 $as_echo "$HAVE_CXX" >&6; }
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221 $as_echo "no" >&6; }
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8229 $as_echo_n "checking whether NLS is requested... " >&6; }
8230 # Check whether --enable-nls was given.
8231 if test "${enable_nls+set}" = set; then :
8232 enableval
=$enable_nls; USE_NLS
=$enableval
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8238 $as_echo "$USE_NLS" >&6; }
8243 GETTEXT_MACRO_VERSION
=0.18
8248 # Prepare PATH_SEPARATOR.
8249 # The user is always right.
8250 if test "${PATH_SEPARATOR+set}" != set; then
8251 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8252 # contains only /bin. Note that ksh looks also at the FPATH variable,
8253 # so we have to set that as well for the test.
8255 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
8256 && { (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
8257 || PATH_SEPARATOR
=';'
8261 # Find out how to test for executable files. Don't use a zero-byte file,
8262 # as systems may use methods other than mode bits to determine executability.
8263 cat >conf$$.
file <<_ASEOF
8267 chmod +x conf$$.
file
8268 if test -x conf$$.
file >/dev
/null
2>&1; then
8269 ac_executable_p
="test -x"
8271 ac_executable_p
="test -f"
8275 # Extract the first word of "msgfmt", so it can be a program name with args.
8276 set dummy msgfmt
; ac_word
=$2
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8278 $as_echo_n "checking for $ac_word... " >&6; }
8279 if ${ac_cv_path_MSGFMT+:} false
; then :
8280 $as_echo_n "(cached) " >&6
8284 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8287 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
8288 for ac_dir
in $PATH; do
8290 test -z "$ac_dir" && ac_dir
=.
8291 for ac_exec_ext
in '' $ac_executable_extensions; do
8292 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8293 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8294 if $ac_dir/$ac_word --statistics /dev
/null
>&5 2>&1 &&
8295 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
8296 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
8303 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8307 MSGFMT
="$ac_cv_path_MSGFMT"
8308 if test "$MSGFMT" != ":"; then
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8310 $as_echo "$MSGFMT" >&6; }
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 $as_echo "no" >&6; }
8316 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8317 set dummy gmsgfmt
; ac_word
=$2
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8319 $as_echo_n "checking for $ac_word... " >&6; }
8320 if ${ac_cv_path_GMSGFMT+:} false
; then :
8321 $as_echo_n "(cached) " >&6
8325 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8328 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8332 test -z "$as_dir" && as_dir
=.
8333 for ac_exec_ext
in '' $ac_executable_extensions; do
8334 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8335 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8343 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8347 GMSGFMT
=$ac_cv_path_GMSGFMT
8348 if test -n "$GMSGFMT"; then
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8350 $as_echo "$GMSGFMT" >&6; }
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8353 $as_echo "no" >&6; }
8358 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8359 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) MSGFMT_015
=: ;;
8360 *) MSGFMT_015
=$MSGFMT ;;
8363 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8364 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) GMSGFMT_015
=: ;;
8365 *) GMSGFMT_015
=$GMSGFMT ;;
8370 # Prepare PATH_SEPARATOR.
8371 # The user is always right.
8372 if test "${PATH_SEPARATOR+set}" != set; then
8373 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8374 # contains only /bin. Note that ksh looks also at the FPATH variable,
8375 # so we have to set that as well for the test.
8377 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
8378 && { (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
8379 || PATH_SEPARATOR
=';'
8383 # Find out how to test for executable files. Don't use a zero-byte file,
8384 # as systems may use methods other than mode bits to determine executability.
8385 cat >conf$$.
file <<_ASEOF
8389 chmod +x conf$$.
file
8390 if test -x conf$$.
file >/dev
/null
2>&1; then
8391 ac_executable_p
="test -x"
8393 ac_executable_p
="test -f"
8397 # Extract the first word of "xgettext", so it can be a program name with args.
8398 set dummy xgettext
; ac_word
=$2
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8400 $as_echo_n "checking for $ac_word... " >&6; }
8401 if ${ac_cv_path_XGETTEXT+:} false
; then :
8402 $as_echo_n "(cached) " >&6
8406 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8409 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
8410 for ac_dir
in $PATH; do
8412 test -z "$ac_dir" && ac_dir
=.
8413 for ac_exec_ext
in '' $ac_executable_extensions; do
8414 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8415 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8416 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>&5 2>&1 &&
8417 (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
8418 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
8425 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8429 XGETTEXT
="$ac_cv_path_XGETTEXT"
8430 if test "$XGETTEXT" != ":"; then
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
8432 $as_echo "$XGETTEXT" >&6; }
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435 $as_echo "no" >&6; }
8440 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8441 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) XGETTEXT_015
=: ;;
8442 *) XGETTEXT_015
=$XGETTEXT ;;
8447 # Prepare PATH_SEPARATOR.
8448 # The user is always right.
8449 if test "${PATH_SEPARATOR+set}" != set; then
8450 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8451 # contains only /bin. Note that ksh looks also at the FPATH variable,
8452 # so we have to set that as well for the test.
8454 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
8455 && { (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
8456 || PATH_SEPARATOR
=';'
8460 # Find out how to test for executable files. Don't use a zero-byte file,
8461 # as systems may use methods other than mode bits to determine executability.
8462 cat >conf$$.
file <<_ASEOF
8466 chmod +x conf$$.
file
8467 if test -x conf$$.
file >/dev
/null
2>&1; then
8468 ac_executable_p
="test -x"
8470 ac_executable_p
="test -f"
8474 # Extract the first word of "msgmerge", so it can be a program name with args.
8475 set dummy msgmerge
; ac_word
=$2
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8477 $as_echo_n "checking for $ac_word... " >&6; }
8478 if ${ac_cv_path_MSGMERGE+:} false
; then :
8479 $as_echo_n "(cached) " >&6
8483 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
8486 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
8487 for ac_dir
in $PATH; do
8489 test -z "$ac_dir" && ac_dir
=.
8490 for ac_exec_ext
in '' $ac_executable_extensions; do
8491 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8492 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8493 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>&5 2>&1; then
8494 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
8501 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
8505 MSGMERGE
="$ac_cv_path_MSGMERGE"
8506 if test "$MSGMERGE" != ":"; then
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
8508 $as_echo "$MSGMERGE" >&6; }
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8511 $as_echo "no" >&6; }
8515 test -n "$localedir" || localedir
='${datadir}/locale'
8518 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS
=
8521 ac_config_commands
="$ac_config_commands po-directories"
8525 if test "X$prefix" = "XNONE"; then
8526 acl_final_prefix
="$ac_default_prefix"
8528 acl_final_prefix
="$prefix"
8530 if test "X$exec_prefix" = "XNONE"; then
8531 acl_final_exec_prefix
='${prefix}'
8533 acl_final_exec_prefix
="$exec_prefix"
8535 acl_save_prefix
="$prefix"
8536 prefix
="$acl_final_prefix"
8537 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8538 prefix
="$acl_save_prefix"
8542 # Check whether --with-gnu-ld was given.
8543 if test "${with_gnu_ld+set}" = set; then :
8544 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8549 # Prepare PATH_SEPARATOR.
8550 # The user is always right.
8551 if test "${PATH_SEPARATOR+set}" != set; then
8552 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8553 # contains only /bin. Note that ksh looks also at the FPATH variable,
8554 # so we have to set that as well for the test.
8556 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
8557 && { (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
8558 || PATH_SEPARATOR
=';'
8563 if test "$GCC" = yes; then
8564 # Check if gcc -print-prog-name=ld gives a path.
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8566 $as_echo_n "checking for ld used by $CC... " >&6; }
8569 # gcc leaves a trailing carriage return which upsets mingw
8570 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8572 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8575 # Accept absolute paths.
8577 re_direlt
='/[^/][^/]*/\.\./'
8578 # Canonicalize the pathname of ld
8579 ac_prog
=`echo "$ac_prog"| sed 's%\\\\%/%g'`
8580 while echo "$ac_prog" |
grep "$re_direlt" > /dev
/null
2>&1; do
8581 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8583 test -z "$LD" && LD
="$ac_prog"
8586 # If it fails, then pretend we aren't using GCC.
8590 # If it is relative, then search for the first ld in PATH.
8594 elif test "$with_gnu_ld" = yes; then
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8596 $as_echo_n "checking for GNU ld... " >&6; }
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8599 $as_echo_n "checking for non-GNU ld... " >&6; }
8601 if ${acl_cv_path_LD+:} false
; then :
8602 $as_echo_n "(cached) " >&6
8604 if test -z "$LD"; then
8605 acl_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8606 for ac_dir
in $PATH; do
8608 test -z "$ac_dir" && ac_dir
=.
8609 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8610 acl_cv_path_LD
="$ac_dir/$ac_prog"
8611 # Check to see if the program is GNU ld. I'd rather use --version,
8612 # but apparently some variants of GNU ld only accept -v.
8613 # Break only if it was the GNU/non-GNU ld that we prefer.
8614 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
8615 *GNU
* |
*'with BFD'*)
8616 test "$with_gnu_ld" != no
&& break
8619 test "$with_gnu_ld" != yes && break
8626 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8630 LD
="$acl_cv_path_LD"
8631 if test -n "$LD"; then
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8633 $as_echo "$LD" >&6; }
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636 $as_echo "no" >&6; }
8638 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8640 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8641 if ${acl_cv_prog_gnu_ld+:} false
; then :
8642 $as_echo_n "(cached) " >&6
8644 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8645 case `$LD -v 2>&1 </dev/null` in
8646 *GNU
* |
*'with BFD'*)
8647 acl_cv_prog_gnu_ld
=yes
8650 acl_cv_prog_gnu_ld
=no
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8655 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8656 with_gnu_ld
=$acl_cv_prog_gnu_ld
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8662 $as_echo_n "checking for shared library run path origin... " >&6; }
8663 if ${acl_cv_rpath+:} false
; then :
8664 $as_echo_n "(cached) " >&6
8667 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8668 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8675 $as_echo "$acl_cv_rpath" >&6; }
8677 acl_libext
="$acl_cv_libext"
8678 acl_shlibext
="$acl_cv_shlibext"
8679 acl_libname_spec
="$acl_cv_libname_spec"
8680 acl_library_names_spec
="$acl_cv_library_names_spec"
8681 acl_hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8682 acl_hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8683 acl_hardcode_direct
="$acl_cv_hardcode_direct"
8684 acl_hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8685 # Check whether --enable-rpath was given.
8686 if test "${enable_rpath+set}" = set; then :
8687 enableval
=$enable_rpath; :
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
8700 $as_echo_n "checking for 64-bit host... " >&6; }
8701 if ${gl_cv_solaris_64bit+:} false
; then :
8702 $as_echo_n "(cached) " >&6
8704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8705 /* end confdefs.h. */
8712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8713 $EGREP "sixtyfour bits" >/dev
/null
2>&1; then :
8714 gl_cv_solaris_64bit
=yes
8716 gl_cv_solaris_64bit
=no
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
8723 $as_echo "$gl_cv_solaris_64bit" >&6; }
8724 if test $gl_cv_solaris_64bit = yes; then
8725 acl_libdirstem
=lib
/64
8727 sparc
*) acl_libdirstem2
=lib
/sparcv9
;;
8728 i
*86 | x86_64
) acl_libdirstem2
=lib
/amd64
;;
8733 searchpath
=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
8734 if test -n "$searchpath"; then
8735 acl_save_IFS
="${IFS= }"; IFS
=":"
8736 for searchdir
in $searchpath; do
8737 if test -d "$searchdir"; then
8738 case "$searchdir" in
8739 */lib64
/ |
*/lib64
) acl_libdirstem
=lib64
;;
8741 # Better ignore directories of this form. They are misleading.
8743 *) searchdir
=`cd "$searchdir" && pwd`
8744 case "$searchdir" in
8745 */lib64
) acl_libdirstem
=lib64
;;
8754 test -n "$acl_libdirstem2" || acl_libdirstem2
="$acl_libdirstem"
8769 acl_save_prefix
="$prefix"
8770 prefix
="$acl_final_prefix"
8771 acl_save_exec_prefix
="$exec_prefix"
8772 exec_prefix
="$acl_final_exec_prefix"
8774 eval additional_includedir
=\"$includedir\"
8775 eval additional_libdir
=\"$libdir\"
8777 exec_prefix
="$acl_save_exec_prefix"
8778 prefix
="$acl_save_prefix"
8781 # Check whether --with-libiconv-prefix was given.
8782 if test "${with_libiconv_prefix+set}" = set; then :
8783 withval
=$with_libiconv_prefix;
8784 if test "X$withval" = "Xno"; then
8787 if test "X$withval" = "X"; then
8789 acl_save_prefix
="$prefix"
8790 prefix
="$acl_final_prefix"
8791 acl_save_exec_prefix
="$exec_prefix"
8792 exec_prefix
="$acl_final_exec_prefix"
8794 eval additional_includedir
=\"$includedir\"
8795 eval additional_libdir
=\"$libdir\"
8797 exec_prefix
="$acl_save_exec_prefix"
8798 prefix
="$acl_save_prefix"
8801 additional_includedir
="$withval/include"
8802 additional_libdir
="$withval/$acl_libdirstem"
8803 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8804 && ! test -d "$withval/$acl_libdirstem"; then
8805 additional_libdir
="$withval/$acl_libdirstem2"
8819 names_already_handled
=
8820 names_next_round
='iconv '
8821 while test -n "$names_next_round"; do
8822 names_this_round
="$names_next_round"
8824 for name
in $names_this_round; do
8826 for n
in $names_already_handled; do
8827 if test "$n" = "$name"; then
8832 if test -z "$already_handled"; then
8833 names_already_handled
="$names_already_handled $name"
8834 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8835 eval value
=\"\
$HAVE_LIB$uppername\"
8836 if test -n "$value"; then
8837 if test "$value" = yes; then
8838 eval value
=\"\
$LIB$uppername\"
8839 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8840 eval value
=\"\
$LTLIB$uppername\"
8841 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8850 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
8851 if test -n "$acl_shlibext"; then
8852 shrext
=".$acl_shlibext" # typically: shrext=.so
8856 if test $use_additional = yes; then
8857 dir
="$additional_libdir"
8858 if test -n "$acl_shlibext"; then
8859 if test -f "$dir/$libname$shrext"; then
8861 found_so
="$dir/$libname$shrext"
8863 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8864 ver
=`(cd "$dir" && \
8865 for f in "$libname$shrext".*; do echo "$f"; done \
8866 | sed -e "s,^$libname$shrext\\\\.,," \
8867 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8868 | sed 1q ) 2>/dev/null`
8869 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8871 found_so
="$dir/$libname$shrext.$ver"
8874 eval library_names
=\"$acl_library_names_spec\"
8875 for f
in $library_names; do
8876 if test -f "$dir/$f"; then
8885 if test "X$found_dir" = "X"; then
8886 if test -f "$dir/$libname.$acl_libext"; then
8888 found_a
="$dir/$libname.$acl_libext"
8891 if test "X$found_dir" != "X"; then
8892 if test -f "$dir/$libname.la"; then
8893 found_la
="$dir/$libname.la"
8897 if test "X$found_dir" = "X"; then
8898 for x
in $LDFLAGS $LTLIBICONV; do
8900 acl_save_prefix
="$prefix"
8901 prefix
="$acl_final_prefix"
8902 acl_save_exec_prefix
="$exec_prefix"
8903 exec_prefix
="$acl_final_exec_prefix"
8905 exec_prefix
="$acl_save_exec_prefix"
8906 prefix
="$acl_save_prefix"
8910 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8911 if test -n "$acl_shlibext"; then
8912 if test -f "$dir/$libname$shrext"; then
8914 found_so
="$dir/$libname$shrext"
8916 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8917 ver
=`(cd "$dir" && \
8918 for f in "$libname$shrext".*; do echo "$f"; done \
8919 | sed -e "s,^$libname$shrext\\\\.,," \
8920 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8921 | sed 1q ) 2>/dev/null`
8922 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8924 found_so
="$dir/$libname$shrext.$ver"
8927 eval library_names
=\"$acl_library_names_spec\"
8928 for f
in $library_names; do
8929 if test -f "$dir/$f"; then
8938 if test "X$found_dir" = "X"; then
8939 if test -f "$dir/$libname.$acl_libext"; then
8941 found_a
="$dir/$libname.$acl_libext"
8944 if test "X$found_dir" != "X"; then
8945 if test -f "$dir/$libname.la"; then
8946 found_la
="$dir/$libname.la"
8951 if test "X$found_dir" != "X"; then
8956 if test "X$found_dir" != "X"; then
8957 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8958 if test "X$found_so" != "X"; then
8959 if test "$enable_rpath" = no \
8960 ||
test "X$found_dir" = "X/usr/$acl_libdirstem" \
8961 ||
test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8962 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8965 for x
in $ltrpathdirs; do
8966 if test "X$x" = "X$found_dir"; then
8971 if test -z "$haveit"; then
8972 ltrpathdirs
="$ltrpathdirs $found_dir"
8974 if test "$acl_hardcode_direct" = yes; then
8975 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8977 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
8978 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8980 for x
in $rpathdirs; do
8981 if test "X$x" = "X$found_dir"; then
8986 if test -z "$haveit"; then
8987 rpathdirs
="$rpathdirs $found_dir"
8991 for x
in $LDFLAGS $LIBICONV; do
8993 acl_save_prefix
="$prefix"
8994 prefix
="$acl_final_prefix"
8995 acl_save_exec_prefix
="$exec_prefix"
8996 exec_prefix
="$acl_final_exec_prefix"
8998 exec_prefix
="$acl_save_exec_prefix"
8999 prefix
="$acl_save_prefix"
9001 if test "X$x" = "X-L$found_dir"; then
9006 if test -z "$haveit"; then
9007 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9009 if test "$acl_hardcode_minus_L" != no
; then
9010 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9012 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9018 if test "X$found_a" != "X"; then
9019 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9021 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9024 additional_includedir
=
9025 case "$found_dir" in
9026 */$acl_libdirstem |
*/$acl_libdirstem/)
9027 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9028 if test "$name" = 'iconv'; then
9029 LIBICONV_PREFIX
="$basedir"
9031 additional_includedir
="$basedir/include"
9033 */$acl_libdirstem2 |
*/$acl_libdirstem2/)
9034 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9035 if test "$name" = 'iconv'; then
9036 LIBICONV_PREFIX
="$basedir"
9038 additional_includedir
="$basedir/include"
9041 if test "X$additional_includedir" != "X"; then
9042 if test "X$additional_includedir" != "X/usr/include"; then
9044 if test "X$additional_includedir" = "X/usr/local/include"; then
9045 if test -n "$GCC"; then
9047 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
9051 if test -z "$haveit"; then
9052 for x
in $CPPFLAGS $INCICONV; do
9054 acl_save_prefix
="$prefix"
9055 prefix
="$acl_final_prefix"
9056 acl_save_exec_prefix
="$exec_prefix"
9057 exec_prefix
="$acl_final_exec_prefix"
9059 exec_prefix
="$acl_save_exec_prefix"
9060 prefix
="$acl_save_prefix"
9062 if test "X$x" = "X-I$additional_includedir"; then
9067 if test -z "$haveit"; then
9068 if test -d "$additional_includedir"; then
9069 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9075 if test -n "$found_la"; then
9076 save_libdir
="$libdir"
9078 */* |
*\\*) .
"$found_la" ;;
9079 *) .
"./$found_la" ;;
9081 libdir
="$save_libdir"
9082 for dep
in $dependency_libs; do
9085 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9086 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9087 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9089 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9090 ||
test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9091 if test -n "$GCC"; then
9093 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
9097 if test -z "$haveit"; then
9099 for x
in $LDFLAGS $LIBICONV; do
9101 acl_save_prefix
="$prefix"
9102 prefix
="$acl_final_prefix"
9103 acl_save_exec_prefix
="$exec_prefix"
9104 exec_prefix
="$acl_final_exec_prefix"
9106 exec_prefix
="$acl_save_exec_prefix"
9107 prefix
="$acl_save_prefix"
9109 if test "X$x" = "X-L$additional_libdir"; then
9114 if test -z "$haveit"; then
9115 if test -d "$additional_libdir"; then
9116 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9120 for x
in $LDFLAGS $LTLIBICONV; do
9122 acl_save_prefix
="$prefix"
9123 prefix
="$acl_final_prefix"
9124 acl_save_exec_prefix
="$exec_prefix"
9125 exec_prefix
="$acl_final_exec_prefix"
9127 exec_prefix
="$acl_save_exec_prefix"
9128 prefix
="$acl_save_prefix"
9130 if test "X$x" = "X-L$additional_libdir"; then
9135 if test -z "$haveit"; then
9136 if test -d "$additional_libdir"; then
9137 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9144 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9145 if test "$enable_rpath" != no
; then
9147 for x
in $rpathdirs; do
9148 if test "X$x" = "X$dir"; then
9153 if test -z "$haveit"; then
9154 rpathdirs
="$rpathdirs $dir"
9157 for x
in $ltrpathdirs; do
9158 if test "X$x" = "X$dir"; then
9163 if test -z "$haveit"; then
9164 ltrpathdirs
="$ltrpathdirs $dir"
9169 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9172 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9175 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
9176 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9182 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9183 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9189 if test "X$rpathdirs" != "X"; then
9190 if test -n "$acl_hardcode_libdir_separator"; then
9192 for found_dir
in $rpathdirs; do
9193 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9195 acl_save_libdir
="$libdir"
9197 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
9198 libdir
="$acl_save_libdir"
9199 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9201 for found_dir
in $rpathdirs; do
9202 acl_save_libdir
="$libdir"
9204 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
9205 libdir
="$acl_save_libdir"
9206 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9210 if test "X$ltrpathdirs" != "X"; then
9211 for found_dir
in $ltrpathdirs; do
9212 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
9247 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
9248 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false
; then :
9249 $as_echo_n "(cached) " >&6
9251 gt_save_LIBS
="$LIBS"
9252 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
9253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9254 /* end confdefs.h. */
9255 #include <CoreFoundation/CFPreferences.h>
9259 CFPreferencesCopyAppValue(NULL, NULL)
9264 if ac_fn_c_try_link
"$LINENO"; then :
9265 gt_cv_func_CFPreferencesCopyAppValue
=yes
9267 gt_cv_func_CFPreferencesCopyAppValue
=no
9269 rm -f core conftest.err conftest.
$ac_objext \
9270 conftest
$ac_exeext conftest.
$ac_ext
9271 LIBS
="$gt_save_LIBS"
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
9274 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
9275 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
9277 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
9281 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
9282 if ${gt_cv_func_CFLocaleCopyCurrent+:} false
; then :
9283 $as_echo_n "(cached) " >&6
9285 gt_save_LIBS
="$LIBS"
9286 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
9287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9288 /* end confdefs.h. */
9289 #include <CoreFoundation/CFLocale.h>
9293 CFLocaleCopyCurrent();
9298 if ac_fn_c_try_link
"$LINENO"; then :
9299 gt_cv_func_CFLocaleCopyCurrent
=yes
9301 gt_cv_func_CFLocaleCopyCurrent
=no
9303 rm -f core conftest.err conftest.
$ac_objext \
9304 conftest
$ac_exeext conftest.
$ac_ext
9305 LIBS
="$gt_save_LIBS"
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
9308 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
9309 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
9311 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
9315 if test $gt_cv_func_CFPreferencesCopyAppValue = yes ||
test $gt_cv_func_CFLocaleCopyCurrent = yes; then
9316 INTL_MACOSX_LIBS
="-Wl,-framework -Wl,CoreFoundation"
9328 case " $gt_needs " in
9329 *" need-formatstring-macros "*) gt_api_version
=3 ;;
9330 *" need-ngettext "*) gt_api_version
=2 ;;
9331 *) gt_api_version
=1 ;;
9333 gt_func_gnugettext_libc
="gt_cv_func_gnugettext${gt_api_version}_libc"
9334 gt_func_gnugettext_libintl
="gt_cv_func_gnugettext${gt_api_version}_libintl"
9336 if test "$USE_NLS" = "yes"; then
9337 gt_use_preinstalled_gnugettext
=no
9340 if test $gt_api_version -ge 3; then
9341 gt_revision_test_code
='
9342 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9343 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
9345 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
9348 gt_revision_test_code
=
9350 if test $gt_api_version -ge 2; then
9351 gt_expression_test_code
=' + * ngettext ("", "", 0)'
9353 gt_expression_test_code
=
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9357 $as_echo_n "checking for GNU gettext in libc... " >&6; }
9358 if eval \
${$gt_func_gnugettext_libc+:} false
; then :
9359 $as_echo_n "(cached) " >&6
9361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9362 /* end confdefs.h. */
9364 #include <libintl.h>
9365 $gt_revision_test_code
9366 extern int _nl_msg_cat_cntr;
9367 extern int *_nl_domain_bindings;
9373 bindtextdomain ("", "");
9374 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
9380 if ac_fn_c_try_link
"$LINENO"; then :
9381 eval "$gt_func_gnugettext_libc=yes"
9383 eval "$gt_func_gnugettext_libc=no"
9385 rm -f core conftest.err conftest.
$ac_objext \
9386 conftest
$ac_exeext conftest.
$ac_ext
9388 eval ac_res
=\$
$gt_func_gnugettext_libc
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9390 $as_echo "$ac_res" >&6; }
9392 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
9398 am_save_CPPFLAGS
="$CPPFLAGS"
9400 for element
in $INCICONV; do
9402 for x
in $CPPFLAGS; do
9404 acl_save_prefix
="$prefix"
9405 prefix
="$acl_final_prefix"
9406 acl_save_exec_prefix
="$exec_prefix"
9407 exec_prefix
="$acl_final_exec_prefix"
9409 exec_prefix
="$acl_save_exec_prefix"
9410 prefix
="$acl_save_prefix"
9412 if test "X$x" = "X$element"; then
9417 if test -z "$haveit"; then
9418 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9424 $as_echo_n "checking for iconv... " >&6; }
9425 if ${am_cv_func_iconv+:} false
; then :
9426 $as_echo_n "(cached) " >&6
9429 am_cv_func_iconv
="no, consider installing GNU libiconv"
9431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9432 /* end confdefs.h. */
9440 iconv_t cd = iconv_open("","");
9441 iconv(cd,NULL,NULL,NULL,NULL);
9447 if ac_fn_c_try_link
"$LINENO"; then :
9448 am_cv_func_iconv
=yes
9450 rm -f core conftest.err conftest.
$ac_objext \
9451 conftest
$ac_exeext conftest.
$ac_ext
9452 if test "$am_cv_func_iconv" != yes; then
9453 am_save_LIBS
="$LIBS"
9454 LIBS
="$LIBS $LIBICONV"
9455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9456 /* end confdefs.h. */
9464 iconv_t cd = iconv_open("","");
9465 iconv(cd,NULL,NULL,NULL,NULL);
9471 if ac_fn_c_try_link
"$LINENO"; then :
9473 am_cv_func_iconv
=yes
9475 rm -f core conftest.err conftest.
$ac_objext \
9476 conftest
$ac_exeext conftest.
$ac_ext
9477 LIBS
="$am_save_LIBS"
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9482 $as_echo "$am_cv_func_iconv" >&6; }
9483 if test "$am_cv_func_iconv" = yes; then
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9485 $as_echo_n "checking for working iconv... " >&6; }
9486 if ${am_cv_func_iconv_works+:} false
; then :
9487 $as_echo_n "(cached) " >&6
9490 am_save_LIBS
="$LIBS"
9491 if test $am_cv_lib_iconv = yes; then
9492 LIBS
="$LIBS $LIBICONV"
9494 if test "$cross_compiling" = yes; then :
9497 aix
* | hpux
*) am_cv_func_iconv_works
="guessing no" ;;
9498 *) am_cv_func_iconv_works
="guessing yes" ;;
9502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9503 /* end confdefs.h. */
9510 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9513 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9514 if (cd_utf8_to_88591 != (iconv_t)(-1))
9516 static const char input[] = "\342\202\254"; /* EURO SIGN */
9518 const char *inptr = input;
9519 size_t inbytesleft = strlen (input);
9521 size_t outbytesleft = sizeof (buf);
9522 size_t res = iconv (cd_utf8_to_88591,
9523 (char **) &inptr, &inbytesleft,
9524 &outptr, &outbytesleft);
9527 iconv_close (cd_utf8_to_88591);
9530 /* Test against Solaris 10 bug: Failures are not distinguishable from
9531 successful returns. */
9533 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9534 if (cd_ascii_to_88591 != (iconv_t)(-1))
9536 static const char input[] = "\263";
9538 const char *inptr = input;
9539 size_t inbytesleft = strlen (input);
9541 size_t outbytesleft = sizeof (buf);
9542 size_t res = iconv (cd_ascii_to_88591,
9543 (char **) &inptr, &inbytesleft,
9544 &outptr, &outbytesleft);
9547 iconv_close (cd_ascii_to_88591);
9550 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9552 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9553 if (cd_88591_to_utf8 != (iconv_t)(-1))
9555 static const char input[] = "\304";
9556 static char buf[2] = { (char)0xDE, (char)0xAD };
9557 const char *inptr = input;
9558 size_t inbytesleft = 1;
9560 size_t outbytesleft = 1;
9561 size_t res = iconv (cd_88591_to_utf8,
9562 (char **) &inptr, &inbytesleft,
9563 &outptr, &outbytesleft);
9564 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9566 iconv_close (cd_88591_to_utf8);
9569 #if 0 /* This bug could be worked around by the caller. */
9570 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9572 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9573 if (cd_88591_to_utf8 != (iconv_t)(-1))
9575 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9577 const char *inptr = input;
9578 size_t inbytesleft = strlen (input);
9580 size_t outbytesleft = sizeof (buf);
9581 size_t res = iconv (cd_88591_to_utf8,
9582 (char **) &inptr, &inbytesleft,
9583 &outptr, &outbytesleft);
9586 iconv_close (cd_88591_to_utf8);
9590 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9592 if (/* Try standardized names. */
9593 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9594 /* Try IRIX, OSF/1 names. */
9595 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9596 /* Try AIX names. */
9597 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9598 /* Try HP-UX names. */
9599 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9604 if ac_fn_c_try_run
"$LINENO"; then :
9605 am_cv_func_iconv_works
=yes
9607 am_cv_func_iconv_works
=no
9609 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9610 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9613 LIBS
="$am_save_LIBS"
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9617 $as_echo "$am_cv_func_iconv_works" >&6; }
9618 case "$am_cv_func_iconv_works" in
9619 *no
) am_func_iconv
=no am_cv_lib_iconv
=no
;;
9620 *) am_func_iconv
=yes ;;
9623 am_func_iconv
=no am_cv_lib_iconv
=no
9625 if test "$am_func_iconv" = yes; then
9627 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9630 if test "$am_cv_lib_iconv" = yes; then
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9632 $as_echo_n "checking how to link with libiconv... " >&6; }
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9634 $as_echo "$LIBICONV" >&6; }
9636 CPPFLAGS
="$am_save_CPPFLAGS"
9653 acl_save_prefix
="$prefix"
9654 prefix
="$acl_final_prefix"
9655 acl_save_exec_prefix
="$exec_prefix"
9656 exec_prefix
="$acl_final_exec_prefix"
9658 eval additional_includedir
=\"$includedir\"
9659 eval additional_libdir
=\"$libdir\"
9661 exec_prefix
="$acl_save_exec_prefix"
9662 prefix
="$acl_save_prefix"
9665 # Check whether --with-libintl-prefix was given.
9666 if test "${with_libintl_prefix+set}" = set; then :
9667 withval
=$with_libintl_prefix;
9668 if test "X$withval" = "Xno"; then
9671 if test "X$withval" = "X"; then
9673 acl_save_prefix
="$prefix"
9674 prefix
="$acl_final_prefix"
9675 acl_save_exec_prefix
="$exec_prefix"
9676 exec_prefix
="$acl_final_exec_prefix"
9678 eval additional_includedir
=\"$includedir\"
9679 eval additional_libdir
=\"$libdir\"
9681 exec_prefix
="$acl_save_exec_prefix"
9682 prefix
="$acl_save_prefix"
9685 additional_includedir
="$withval/include"
9686 additional_libdir
="$withval/$acl_libdirstem"
9687 if test "$acl_libdirstem2" != "$acl_libdirstem" \
9688 && ! test -d "$withval/$acl_libdirstem"; then
9689 additional_libdir
="$withval/$acl_libdirstem2"
9703 names_already_handled
=
9704 names_next_round
='intl '
9705 while test -n "$names_next_round"; do
9706 names_this_round
="$names_next_round"
9708 for name
in $names_this_round; do
9710 for n
in $names_already_handled; do
9711 if test "$n" = "$name"; then
9716 if test -z "$already_handled"; then
9717 names_already_handled
="$names_already_handled $name"
9718 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
9719 eval value
=\"\
$HAVE_LIB$uppername\"
9720 if test -n "$value"; then
9721 if test "$value" = yes; then
9722 eval value
=\"\
$LIB$uppername\"
9723 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
9724 eval value
=\"\
$LTLIB$uppername\"
9725 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
9734 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
9735 if test -n "$acl_shlibext"; then
9736 shrext
=".$acl_shlibext" # typically: shrext=.so
9740 if test $use_additional = yes; then
9741 dir
="$additional_libdir"
9742 if test -n "$acl_shlibext"; then
9743 if test -f "$dir/$libname$shrext"; then
9745 found_so
="$dir/$libname$shrext"
9747 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9748 ver
=`(cd "$dir" && \
9749 for f in "$libname$shrext".*; do echo "$f"; done \
9750 | sed -e "s,^$libname$shrext\\\\.,," \
9751 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9752 | sed 1q ) 2>/dev/null`
9753 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9755 found_so
="$dir/$libname$shrext.$ver"
9758 eval library_names
=\"$acl_library_names_spec\"
9759 for f
in $library_names; do
9760 if test -f "$dir/$f"; then
9769 if test "X$found_dir" = "X"; then
9770 if test -f "$dir/$libname.$acl_libext"; then
9772 found_a
="$dir/$libname.$acl_libext"
9775 if test "X$found_dir" != "X"; then
9776 if test -f "$dir/$libname.la"; then
9777 found_la
="$dir/$libname.la"
9781 if test "X$found_dir" = "X"; then
9782 for x
in $LDFLAGS $LTLIBINTL; do
9784 acl_save_prefix
="$prefix"
9785 prefix
="$acl_final_prefix"
9786 acl_save_exec_prefix
="$exec_prefix"
9787 exec_prefix
="$acl_final_exec_prefix"
9789 exec_prefix
="$acl_save_exec_prefix"
9790 prefix
="$acl_save_prefix"
9794 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9795 if test -n "$acl_shlibext"; then
9796 if test -f "$dir/$libname$shrext"; then
9798 found_so
="$dir/$libname$shrext"
9800 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9801 ver
=`(cd "$dir" && \
9802 for f in "$libname$shrext".*; do echo "$f"; done \
9803 | sed -e "s,^$libname$shrext\\\\.,," \
9804 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9805 | sed 1q ) 2>/dev/null`
9806 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9808 found_so
="$dir/$libname$shrext.$ver"
9811 eval library_names
=\"$acl_library_names_spec\"
9812 for f
in $library_names; do
9813 if test -f "$dir/$f"; then
9822 if test "X$found_dir" = "X"; then
9823 if test -f "$dir/$libname.$acl_libext"; then
9825 found_a
="$dir/$libname.$acl_libext"
9828 if test "X$found_dir" != "X"; then
9829 if test -f "$dir/$libname.la"; then
9830 found_la
="$dir/$libname.la"
9835 if test "X$found_dir" != "X"; then
9840 if test "X$found_dir" != "X"; then
9841 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9842 if test "X$found_so" != "X"; then
9843 if test "$enable_rpath" = no \
9844 ||
test "X$found_dir" = "X/usr/$acl_libdirstem" \
9845 ||
test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9846 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
9849 for x
in $ltrpathdirs; do
9850 if test "X$x" = "X$found_dir"; then
9855 if test -z "$haveit"; then
9856 ltrpathdirs
="$ltrpathdirs $found_dir"
9858 if test "$acl_hardcode_direct" = yes; then
9859 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
9861 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
9862 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
9864 for x
in $rpathdirs; do
9865 if test "X$x" = "X$found_dir"; then
9870 if test -z "$haveit"; then
9871 rpathdirs
="$rpathdirs $found_dir"
9875 for x
in $LDFLAGS $LIBINTL; do
9877 acl_save_prefix
="$prefix"
9878 prefix
="$acl_final_prefix"
9879 acl_save_exec_prefix
="$exec_prefix"
9880 exec_prefix
="$acl_final_exec_prefix"
9882 exec_prefix
="$acl_save_exec_prefix"
9883 prefix
="$acl_save_prefix"
9885 if test "X$x" = "X-L$found_dir"; then
9890 if test -z "$haveit"; then
9891 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9893 if test "$acl_hardcode_minus_L" != no
; then
9894 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
9896 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
9902 if test "X$found_a" != "X"; then
9903 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
9905 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9908 additional_includedir
=
9909 case "$found_dir" in
9910 */$acl_libdirstem |
*/$acl_libdirstem/)
9911 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9912 if test "$name" = 'intl'; then
9913 LIBINTL_PREFIX
="$basedir"
9915 additional_includedir
="$basedir/include"
9917 */$acl_libdirstem2 |
*/$acl_libdirstem2/)
9918 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9919 if test "$name" = 'intl'; then
9920 LIBINTL_PREFIX
="$basedir"
9922 additional_includedir
="$basedir/include"
9925 if test "X$additional_includedir" != "X"; then
9926 if test "X$additional_includedir" != "X/usr/include"; then
9928 if test "X$additional_includedir" = "X/usr/local/include"; then
9929 if test -n "$GCC"; then
9931 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
9935 if test -z "$haveit"; then
9936 for x
in $CPPFLAGS $INCINTL; do
9938 acl_save_prefix
="$prefix"
9939 prefix
="$acl_final_prefix"
9940 acl_save_exec_prefix
="$exec_prefix"
9941 exec_prefix
="$acl_final_exec_prefix"
9943 exec_prefix
="$acl_save_exec_prefix"
9944 prefix
="$acl_save_prefix"
9946 if test "X$x" = "X-I$additional_includedir"; then
9951 if test -z "$haveit"; then
9952 if test -d "$additional_includedir"; then
9953 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9959 if test -n "$found_la"; then
9960 save_libdir
="$libdir"
9962 */* |
*\\*) .
"$found_la" ;;
9963 *) .
"./$found_la" ;;
9965 libdir
="$save_libdir"
9966 for dep
in $dependency_libs; do
9969 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9970 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9971 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9973 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9974 ||
test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9975 if test -n "$GCC"; then
9977 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
9981 if test -z "$haveit"; then
9983 for x
in $LDFLAGS $LIBINTL; do
9985 acl_save_prefix
="$prefix"
9986 prefix
="$acl_final_prefix"
9987 acl_save_exec_prefix
="$exec_prefix"
9988 exec_prefix
="$acl_final_exec_prefix"
9990 exec_prefix
="$acl_save_exec_prefix"
9991 prefix
="$acl_save_prefix"
9993 if test "X$x" = "X-L$additional_libdir"; then
9998 if test -z "$haveit"; then
9999 if test -d "$additional_libdir"; then
10000 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10004 for x
in $LDFLAGS $LTLIBINTL; do
10006 acl_save_prefix
="$prefix"
10007 prefix
="$acl_final_prefix"
10008 acl_save_exec_prefix
="$exec_prefix"
10009 exec_prefix
="$acl_final_exec_prefix"
10011 exec_prefix
="$acl_save_exec_prefix"
10012 prefix
="$acl_save_prefix"
10014 if test "X$x" = "X-L$additional_libdir"; then
10019 if test -z "$haveit"; then
10020 if test -d "$additional_libdir"; then
10021 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10028 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10029 if test "$enable_rpath" != no
; then
10031 for x
in $rpathdirs; do
10032 if test "X$x" = "X$dir"; then
10037 if test -z "$haveit"; then
10038 rpathdirs
="$rpathdirs $dir"
10041 for x
in $ltrpathdirs; do
10042 if test "X$x" = "X$dir"; then
10047 if test -z "$haveit"; then
10048 ltrpathdirs
="$ltrpathdirs $dir"
10053 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10056 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10059 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
10060 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10066 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
10067 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10073 if test "X$rpathdirs" != "X"; then
10074 if test -n "$acl_hardcode_libdir_separator"; then
10076 for found_dir
in $rpathdirs; do
10077 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10079 acl_save_libdir
="$libdir"
10081 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
10082 libdir
="$acl_save_libdir"
10083 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
10085 for found_dir
in $rpathdirs; do
10086 acl_save_libdir
="$libdir"
10087 libdir
="$found_dir"
10088 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
10089 libdir
="$acl_save_libdir"
10090 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
10094 if test "X$ltrpathdirs" != "X"; then
10095 for found_dir
in $ltrpathdirs; do
10096 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
10106 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
10107 if eval \
${$gt_func_gnugettext_libintl+:} false
; then :
10108 $as_echo_n "(cached) " >&6
10110 gt_save_CPPFLAGS
="$CPPFLAGS"
10111 CPPFLAGS
="$CPPFLAGS $INCINTL"
10112 gt_save_LIBS
="$LIBS"
10113 LIBS
="$LIBS $LIBINTL"
10114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10115 /* end confdefs.h. */
10117 #include <libintl.h>
10118 $gt_revision_test_code
10119 extern int _nl_msg_cat_cntr;
10124 const char *_nl_expand_alias (const char *);
10130 bindtextdomain ("", "");
10131 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
10137 if ac_fn_c_try_link
"$LINENO"; then :
10138 eval "$gt_func_gnugettext_libintl=yes"
10140 eval "$gt_func_gnugettext_libintl=no"
10142 rm -f core conftest.err conftest.
$ac_objext \
10143 conftest
$ac_exeext conftest.
$ac_ext
10144 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
10145 LIBS
="$LIBS $LIBICONV"
10146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10147 /* end confdefs.h. */
10149 #include <libintl.h>
10150 $gt_revision_test_code
10151 extern int _nl_msg_cat_cntr;
10156 const char *_nl_expand_alias (const char *);
10162 bindtextdomain ("", "");
10163 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
10169 if ac_fn_c_try_link
"$LINENO"; then :
10170 LIBINTL
="$LIBINTL $LIBICONV"
10171 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
10172 eval "$gt_func_gnugettext_libintl=yes"
10175 rm -f core conftest.err conftest.
$ac_objext \
10176 conftest
$ac_exeext conftest.
$ac_ext
10178 CPPFLAGS
="$gt_save_CPPFLAGS"
10179 LIBS
="$gt_save_LIBS"
10181 eval ac_res
=\$
$gt_func_gnugettext_libintl
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10183 $as_echo "$ac_res" >&6; }
10186 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
10187 ||
{ { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
10188 && test "$PACKAGE" != gettext-runtime \
10189 && test "$PACKAGE" != gettext-tools
; }; then
10190 gt_use_preinstalled_gnugettext
=yes
10199 if test -n "$INTL_MACOSX_LIBS"; then
10200 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10201 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
10202 LIBINTL
="$LIBINTL $INTL_MACOSX_LIBS"
10203 LTLIBINTL
="$LTLIBINTL $INTL_MACOSX_LIBS"
10207 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10208 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
10210 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
10218 $as_echo_n "checking whether to use NLS... " >&6; }
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
10220 $as_echo "$USE_NLS" >&6; }
10221 if test "$USE_NLS" = "yes"; then
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
10223 $as_echo_n "checking where the gettext function comes from... " >&6; }
10224 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10225 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10226 gt_source
="external libintl"
10231 gt_source
="included intl directory"
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
10234 $as_echo "$gt_source" >&6; }
10237 if test "$USE_NLS" = "yes"; then
10239 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10240 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
10242 $as_echo_n "checking how to link with libintl... " >&6; }
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
10244 $as_echo "$LIBINTL" >&6; }
10246 for element
in $INCINTL; do
10248 for x
in $CPPFLAGS; do
10250 acl_save_prefix
="$prefix"
10251 prefix
="$acl_final_prefix"
10252 acl_save_exec_prefix
="$exec_prefix"
10253 exec_prefix
="$acl_final_exec_prefix"
10255 exec_prefix
="$acl_save_exec_prefix"
10256 prefix
="$acl_save_prefix"
10258 if test "X$x" = "X$element"; then
10263 if test -z "$haveit"; then
10264 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10271 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
10274 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
10283 INTLLIBS
="$LIBINTL"
10290 # Check whether --enable-largefile was given.
10291 if test "${enable_largefile+set}" = set; then :
10292 enableval
=$enable_largefile;
10295 if test "$enable_largefile" != no
; then
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
10298 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10299 if ${ac_cv_sys_largefile_CC+:} false
; then :
10300 $as_echo_n "(cached) " >&6
10302 ac_cv_sys_largefile_CC
=no
10303 if test "$GCC" != yes; then
10306 # IRIX 6.2 and later do not support large files by default,
10307 # so use the C compiler's -n32 option if that helps.
10308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10309 /* end confdefs.h. */
10310 #include <sys/types.h>
10311 /* Check that off_t can represent 2**63 - 1 correctly.
10312 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10313 since some C++ compilers masquerading as C compilers
10314 incorrectly reject 9223372036854775807. */
10315 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10316 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10317 && LARGE_OFF_T % 2147483647 == 1)
10327 if ac_fn_c_try_compile
"$LINENO"; then :
10330 rm -f core conftest.err conftest.
$ac_objext
10332 if ac_fn_c_try_compile
"$LINENO"; then :
10333 ac_cv_sys_largefile_CC
=' -n32'; break
10335 rm -f core conftest.err conftest.
$ac_objext
10339 rm -f conftest.
$ac_ext
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10343 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
10344 if test "$ac_cv_sys_largefile_CC" != no
; then
10345 CC
=$CC$ac_cv_sys_largefile_CC
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10349 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10350 if ${ac_cv_sys_file_offset_bits+:} false
; then :
10351 $as_echo_n "(cached) " >&6
10354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10355 /* end confdefs.h. */
10356 #include <sys/types.h>
10357 /* Check that off_t can represent 2**63 - 1 correctly.
10358 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10359 since some C++ compilers masquerading as C compilers
10360 incorrectly reject 9223372036854775807. */
10361 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10362 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10363 && LARGE_OFF_T % 2147483647 == 1)
10373 if ac_fn_c_try_compile
"$LINENO"; then :
10374 ac_cv_sys_file_offset_bits
=no
; break
10376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10378 /* end confdefs.h. */
10379 #define _FILE_OFFSET_BITS 64
10380 #include <sys/types.h>
10381 /* Check that off_t can represent 2**63 - 1 correctly.
10382 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10383 since some C++ compilers masquerading as C compilers
10384 incorrectly reject 9223372036854775807. */
10385 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10386 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10387 && LARGE_OFF_T % 2147483647 == 1)
10397 if ac_fn_c_try_compile
"$LINENO"; then :
10398 ac_cv_sys_file_offset_bits
=64; break
10400 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10401 ac_cv_sys_file_offset_bits
=unknown
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10406 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10407 case $ac_cv_sys_file_offset_bits in #(
10410 cat >>confdefs.h
<<_ACEOF
10411 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10416 if test $ac_cv_sys_file_offset_bits = unknown
; then
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10418 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10419 if ${ac_cv_sys_large_files+:} false
; then :
10420 $as_echo_n "(cached) " >&6
10423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10424 /* end confdefs.h. */
10425 #include <sys/types.h>
10426 /* Check that off_t can represent 2**63 - 1 correctly.
10427 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10428 since some C++ compilers masquerading as C compilers
10429 incorrectly reject 9223372036854775807. */
10430 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10431 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10432 && LARGE_OFF_T % 2147483647 == 1)
10442 if ac_fn_c_try_compile
"$LINENO"; then :
10443 ac_cv_sys_large_files
=no
; break
10445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10447 /* end confdefs.h. */
10448 #define _LARGE_FILES 1
10449 #include <sys/types.h>
10450 /* Check that off_t can represent 2**63 - 1 correctly.
10451 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10452 since some C++ compilers masquerading as C compilers
10453 incorrectly reject 9223372036854775807. */
10454 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10455 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10456 && LARGE_OFF_T % 2147483647 == 1)
10466 if ac_fn_c_try_compile
"$LINENO"; then :
10467 ac_cv_sys_large_files
=1; break
10469 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10470 ac_cv_sys_large_files
=unknown
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10475 $as_echo "$ac_cv_sys_large_files" >&6; }
10476 case $ac_cv_sys_large_files in #(
10479 cat >>confdefs.h
<<_ACEOF
10480 #define _LARGE_FILES $ac_cv_sys_large_files
10491 # Identify characteristics of the host architecture.
10492 unset ac_cv_c_bigendian
10494 if test x
"$target_cpu-$platform" = xsparc64-emu
; then
10495 CFLAGS
="$CFLAGS -m64"
10496 HOST_CFLAGS
="$HOST_CFLAGS -m64"
10499 CPPFLAGS
="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
10500 HOST_CPPFLAGS
="$HOST_CPPFLAGS -D_FILE_OFFSET_BITS=64"
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10503 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10504 if ${ac_cv_c_bigendian+:} false
; then :
10505 $as_echo_n "(cached) " >&6
10507 ac_cv_c_bigendian
=unknown
10508 # See if we're dealing with a universal compiler.
10509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10510 /* end confdefs.h. */
10511 #ifndef __APPLE_CC__
10512 not a universal capable compiler
10517 if ac_fn_c_try_compile
"$LINENO"; then :
10519 # Check for potential -arch flags. It is not universal unless
10520 # there are at least two -arch flags with different values.
10523 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10524 if test -n "$ac_prev"; then
10526 i?
86 | x86_64 | ppc | ppc64
)
10527 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
10530 ac_cv_c_bigendian
=universal
10536 elif test "x$ac_word" = "x-arch"; then
10541 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10542 if test $ac_cv_c_bigendian = unknown
; then
10543 # See if sys/param.h defines the BYTE_ORDER macro.
10544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10545 /* end confdefs.h. */
10546 #include <sys/types.h>
10547 #include <sys/param.h>
10552 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10553 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10555 bogus endian macros
10562 if ac_fn_c_try_compile
"$LINENO"; then :
10563 # It does; now see whether it defined to BIG_ENDIAN or not.
10564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10565 /* end confdefs.h. */
10566 #include <sys/types.h>
10567 #include <sys/param.h>
10572 #if BYTE_ORDER != BIG_ENDIAN
10580 if ac_fn_c_try_compile
"$LINENO"; then :
10581 ac_cv_c_bigendian
=yes
10583 ac_cv_c_bigendian
=no
10585 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10589 if test $ac_cv_c_bigendian = unknown
; then
10590 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10592 /* end confdefs.h. */
10593 #include <limits.h>
10598 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10599 bogus endian macros
10606 if ac_fn_c_try_compile
"$LINENO"; then :
10607 # It does; now see whether it defined to _BIG_ENDIAN or not.
10608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10609 /* end confdefs.h. */
10610 #include <limits.h>
10615 #ifndef _BIG_ENDIAN
10623 if ac_fn_c_try_compile
"$LINENO"; then :
10624 ac_cv_c_bigendian
=yes
10626 ac_cv_c_bigendian
=no
10628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10630 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10632 if test $ac_cv_c_bigendian = unknown
; then
10633 # Compile a test program.
10634 if test "$cross_compiling" = yes; then :
10635 # Try to guess by grepping values from an object file.
10636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10637 /* end confdefs.h. */
10638 short int ascii_mm[] =
10639 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10640 short int ascii_ii[] =
10641 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10642 int use_ascii (int i) {
10643 return ascii_mm[i] + ascii_ii[i];
10645 short int ebcdic_ii[] =
10646 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10647 short int ebcdic_mm[] =
10648 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10649 int use_ebcdic (int i) {
10650 return ebcdic_mm[i] + ebcdic_ii[i];
10657 return use_ascii (foo) == use_ebcdic (foo);
10662 if ac_fn_c_try_compile
"$LINENO"; then :
10663 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
10664 ac_cv_c_bigendian
=yes
10666 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
10667 if test "$ac_cv_c_bigendian" = unknown
; then
10668 ac_cv_c_bigendian
=no
10670 # finding both strings is unlikely to happen, but who knows?
10671 ac_cv_c_bigendian
=unknown
10675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10678 /* end confdefs.h. */
10679 $ac_includes_default
10684 /* Are we little or big endian? From Harbison&Steele. */
10688 char c[sizeof (long int)];
10691 return u.c[sizeof (long int) - 1] == 1;
10697 if ac_fn_c_try_run
"$LINENO"; then :
10698 ac_cv_c_bigendian
=no
10700 ac_cv_c_bigendian
=yes
10702 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10703 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10709 $as_echo "$ac_cv_c_bigendian" >&6; }
10710 case $ac_cv_c_bigendian in #(
10712 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10718 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10722 as_fn_error $?
"unknown endianness
10723 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10726 # The cast to long int works around a bug in the HP C Compiler
10727 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10728 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10729 # This bug is HP SR number 8606223364.
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
10731 $as_echo_n "checking size of void *... " >&6; }
10732 if ${ac_cv_sizeof_void_p+:} false
; then :
10733 $as_echo_n "(cached) " >&6
10735 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
10738 if test "$ac_cv_type_void_p" = yes; then
10739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10741 as_fn_error
77 "cannot compute sizeof (void *)
10742 See \`config.log' for more details" "$LINENO" 5; }
10744 ac_cv_sizeof_void_p
=0
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
10750 $as_echo "$ac_cv_sizeof_void_p" >&6; }
10754 cat >>confdefs.h
<<_ACEOF
10755 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10759 # The cast to long int works around a bug in the HP C Compiler
10760 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10761 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10762 # This bug is HP SR number 8606223364.
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10764 $as_echo_n "checking size of long... " >&6; }
10765 if ${ac_cv_sizeof_long+:} false
; then :
10766 $as_echo_n "(cached) " >&6
10768 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10771 if test "$ac_cv_type_long" = yes; then
10772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10774 as_fn_error
77 "cannot compute sizeof (long)
10775 See \`config.log' for more details" "$LINENO" 5; }
10777 ac_cv_sizeof_long
=0
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10783 $as_echo "$ac_cv_sizeof_long" >&6; }
10787 cat >>confdefs.h
<<_ACEOF
10788 #define SIZEOF_LONG $ac_cv_sizeof_long
10794 cygwin | windows
* | mingw32
*)
10795 HOST_CPPFLAGS
="$HOST_CPPFLAGS -DUNICODE=1 -D_WIN32_WINNT=0x0500"
10796 CPPFLAGS
="$CPPFLAGS -DUNICODE=1 -D_WIN32_WINNT=0x0500"
10797 # The cast to long int works around a bug in the HP C Compiler
10798 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10799 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10800 # This bug is HP SR number 8606223364.
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of TCHAR" >&5
10802 $as_echo_n "checking size of TCHAR... " >&6; }
10803 if ${ac_cv_sizeof_TCHAR+:} false
; then :
10804 $as_echo_n "(cached) " >&6
10806 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (TCHAR))" "ac_cv_sizeof_TCHAR" "#include <windows.h>
10810 if test "$ac_cv_type_TCHAR" = yes; then
10811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10813 as_fn_error
77 "cannot compute sizeof (TCHAR)
10814 See \`config.log' for more details" "$LINENO" 5; }
10816 ac_cv_sizeof_TCHAR
=0
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_TCHAR" >&5
10822 $as_echo "$ac_cv_sizeof_TCHAR" >&6; }
10826 cat >>confdefs.h
<<_ACEOF
10827 #define SIZEOF_TCHAR $ac_cv_sizeof_TCHAR
10835 cygwin | windows
* | mingw32
* | aros
*)
10838 # The cast to long int works around a bug in the HP C Compiler
10839 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10840 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10841 # This bug is HP SR number 8606223364.
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10843 $as_echo_n "checking size of off_t... " >&6; }
10844 if ${ac_cv_sizeof_off_t+:} false
; then :
10845 $as_echo_n "(cached) " >&6
10847 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
10850 if test "$ac_cv_type_off_t" = yes; then
10851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10853 as_fn_error
77 "cannot compute sizeof (off_t)
10854 See \`config.log' for more details" "$LINENO" 5; }
10856 ac_cv_sizeof_off_t
=0
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10862 $as_echo "$ac_cv_sizeof_off_t" >&6; }
10866 cat >>confdefs.h
<<_ACEOF
10867 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10871 test x
"$ac_cv_sizeof_off_t" = x8 || as_fn_error $?
"Large file support is required" "$LINENO" 5;;
10874 if test x
$USE_NLS = xno
; then
10875 HOST_CFLAGS
="$HOST_CFLAGS -fno-builtin-gettext"
10878 if test "x$cross_compiling" = xyes
; then
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot generate manual pages while cross compiling" >&5
10880 $as_echo "$as_me: WARNING: cannot generate manual pages while cross compiling" >&2;}
10882 # Extract the first word of "help2man", so it can be a program name with args.
10883 set dummy help2man
; ac_word
=$2
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10885 $as_echo_n "checking for $ac_word... " >&6; }
10886 if ${ac_cv_path_HELP2MAN+:} false
; then :
10887 $as_echo_n "(cached) " >&6
10891 ac_cv_path_HELP2MAN
="$HELP2MAN" # Let the user override the test with a path.
10894 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10895 for as_dir
in $PATH
10898 test -z "$as_dir" && as_dir
=.
10899 for ac_exec_ext
in '' $ac_executable_extensions; do
10900 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10901 ac_cv_path_HELP2MAN
="$as_dir/$ac_word$ac_exec_ext"
10902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10912 HELP2MAN
=$ac_cv_path_HELP2MAN
10913 if test -n "$HELP2MAN"; then
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
10915 $as_echo "$HELP2MAN" >&6; }
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10918 $as_echo "no" >&6; }
10924 # Check for functions and headers.
10925 for ac_func
in posix_memalign memalign getextmntent
10927 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10928 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10929 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10930 cat >>confdefs.h
<<_ACEOF
10931 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10937 for ac_header
in sys
/param.h sys
/mount.h sys
/mnttab.h sys
/mkdev.h limits.h
10939 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10940 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10941 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10942 cat >>confdefs.h
<<_ACEOF
10943 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10951 ac_fn_c_check_member
"$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "$ac_includes_default
10952 #include <sys/param.h>
10953 #include <sys/mount.h>
10955 if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes
; then :
10957 cat >>confdefs.h
<<_ACEOF
10958 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
10965 ac_fn_c_check_member
"$LINENO" "struct statfs" "f_mntfromname" "ac_cv_member_struct_statfs_f_mntfromname" "$ac_includes_default
10966 #include <sys/param.h>
10967 #include <sys/mount.h>
10969 if test "x$ac_cv_member_struct_statfs_f_mntfromname" = xyes
; then :
10971 cat >>confdefs.h
<<_ACEOF
10972 #define HAVE_STRUCT_STATFS_F_MNTFROMNAME 1
10979 # For opendisk() and getrawpartition() on NetBSD.
10980 # Used in util/deviceiter.c and in util/hostdisk.c.
10981 ac_fn_c_check_header_mongrel
"$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default"
10982 if test "x$ac_cv_header_util_h" = xyes
; then :
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opendisk in -lutil" >&5
10985 $as_echo_n "checking for opendisk in -lutil... " >&6; }
10986 if ${ac_cv_lib_util_opendisk+:} false
; then :
10987 $as_echo_n "(cached) " >&6
10989 ac_check_lib_save_LIBS
=$LIBS
10990 LIBS
="-lutil $LIBS"
10991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10992 /* end confdefs.h. */
10994 /* Override any GCC internal prototype to avoid an error.
10995 Use char because int might match the return type of a GCC
10996 builtin and then its argument prototype would still apply. */
11004 return opendisk ();
11009 if ac_fn_c_try_link
"$LINENO"; then :
11010 ac_cv_lib_util_opendisk
=yes
11012 ac_cv_lib_util_opendisk
=no
11014 rm -f core conftest.err conftest.
$ac_objext \
11015 conftest
$ac_exeext conftest.
$ac_ext
11016 LIBS
=$ac_check_lib_save_LIBS
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_opendisk" >&5
11019 $as_echo "$ac_cv_lib_util_opendisk" >&6; }
11020 if test "x$ac_cv_lib_util_opendisk" = xyes
; then :
11024 $as_echo "#define HAVE_OPENDISK 1" >>confdefs.h
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getrawpartition in -lutil" >&5
11030 $as_echo_n "checking for getrawpartition in -lutil... " >&6; }
11031 if ${ac_cv_lib_util_getrawpartition+:} false
; then :
11032 $as_echo_n "(cached) " >&6
11034 ac_check_lib_save_LIBS
=$LIBS
11035 LIBS
="-lutil $LIBS"
11036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11037 /* end confdefs.h. */
11039 /* Override any GCC internal prototype to avoid an error.
11040 Use char because int might match the return type of a GCC
11041 builtin and then its argument prototype would still apply. */
11045 char getrawpartition ();
11049 return getrawpartition ();
11054 if ac_fn_c_try_link
"$LINENO"; then :
11055 ac_cv_lib_util_getrawpartition
=yes
11057 ac_cv_lib_util_getrawpartition
=no
11059 rm -f core conftest.err conftest.
$ac_objext \
11060 conftest
$ac_exeext conftest.
$ac_ext
11061 LIBS
=$ac_check_lib_save_LIBS
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getrawpartition" >&5
11064 $as_echo "$ac_cv_lib_util_getrawpartition" >&6; }
11065 if test "x$ac_cv_lib_util_getrawpartition" = xyes
; then :
11069 $as_echo "#define HAVE_GETRAWPARTITION 1" >>confdefs.h
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wtrampolines work" >&5
11081 $as_echo_n "checking whether -Wtrampolines work... " >&6; }
11082 if ${grub_cv_host_cc_wtrampolines+:} false
; then :
11083 $as_echo_n "(cached) " >&6
11086 SAVED_CFLAGS
="$CFLAGS"
11087 CFLAGS
="$HOST_CFLAGS -Wtrampolines -Werror"
11088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11089 /* end confdefs.h. */
11090 #include <stdarg.h>
11091 int va_arg_func (int fixed, va_list args);
11100 if ac_fn_c_try_compile
"$LINENO"; then :
11101 grub_cv_host_cc_wtrampolines
=yes
11103 grub_cv_host_cc_wtrampolines
=no
11105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11106 CFLAGS
="$SAVED_CFLAGS"
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_host_cc_wtrampolines" >&5
11110 $as_echo "$grub_cv_host_cc_wtrampolines" >&6; }
11112 if test x
"$grub_host_cv_cc_wtrampolines" = xyes
; then
11113 HOST_CFLAGS
="$HOST_CFLAGS -Wtrampolines"
11117 # Check for host and build compilers.
11120 for ac_prog
in gcc egcs cc
11122 # Extract the first word of "$ac_prog", so it can be a program name with args.
11123 set dummy
$ac_prog; ac_word
=$2
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11125 $as_echo_n "checking for $ac_word... " >&6; }
11126 if ${ac_cv_prog_BUILD_CC+:} false
; then :
11127 $as_echo_n "(cached) " >&6
11129 if test -n "$BUILD_CC"; then
11130 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
11132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11133 for as_dir
in $PATH
11136 test -z "$as_dir" && as_dir
=.
11137 for ac_exec_ext
in '' $ac_executable_extensions; do
11138 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11139 ac_cv_prog_BUILD_CC
="$ac_prog"
11140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11149 BUILD_CC
=$ac_cv_prog_BUILD_CC
11150 if test -n "$BUILD_CC"; then
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
11152 $as_echo "$BUILD_CC" >&6; }
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11155 $as_echo "no" >&6; }
11159 test -n "$BUILD_CC" && break
11162 test -z "$BUILD_CC" && as_fn_error $?
"none of gcc, egcs and cc is found. set BUILD_CC manually." "$LINENO" 5
11163 BUILD_CPP
="$BUILD_CC -E"
11165 case "$build_os" in
11166 haiku
*) BUILD_LIBM
= ;;
11167 *) BUILD_LIBM
=-lm ;;
11171 case "$build_os" in
11172 cygwin
*|mingw32
*|mingw64
*) BUILD_EXEEXT
=.exe
;;
11173 *) BUILD_EXEEXT
= ;;
11183 LIBC_FATAL_STDERR_
=1
11184 export LIBC_FATAL_STDERR_
11186 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11187 if test "x$ac_cv_type_size_t" = xyes
; then :
11191 cat >>confdefs.h
<<_ACEOF
11192 #define size_t unsigned int
11197 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11198 # for constant arguments. Useless!
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11200 $as_echo_n "checking for working alloca.h... " >&6; }
11201 if ${ac_cv_working_alloca_h+:} false
; then :
11202 $as_echo_n "(cached) " >&6
11204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11205 /* end confdefs.h. */
11206 #include <alloca.h>
11210 char *p = (char *) alloca (2 * sizeof (int));
11216 if ac_fn_c_try_link
"$LINENO"; then :
11217 ac_cv_working_alloca_h
=yes
11219 ac_cv_working_alloca_h
=no
11221 rm -f core conftest.err conftest.
$ac_objext \
11222 conftest
$ac_exeext conftest.
$ac_ext
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11225 $as_echo "$ac_cv_working_alloca_h" >&6; }
11226 if test $ac_cv_working_alloca_h = yes; then
11228 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11233 $as_echo_n "checking for alloca... " >&6; }
11234 if ${ac_cv_func_alloca_works+:} false
; then :
11235 $as_echo_n "(cached) " >&6
11237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11238 /* end confdefs.h. */
11240 # define alloca __builtin_alloca
11243 # include <malloc.h>
11244 # define alloca _alloca
11246 # ifdef HAVE_ALLOCA_H
11247 # include <alloca.h>
11252 # ifndef alloca /* predefined by HP cc +Olibcalls */
11253 void *alloca (size_t);
11263 char *p = (char *) alloca (1);
11269 if ac_fn_c_try_link
"$LINENO"; then :
11270 ac_cv_func_alloca_works
=yes
11272 ac_cv_func_alloca_works
=no
11274 rm -f core conftest.err conftest.
$ac_objext \
11275 conftest
$ac_exeext conftest.
$ac_ext
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11278 $as_echo "$ac_cv_func_alloca_works" >&6; }
11280 if test $ac_cv_func_alloca_works = yes; then
11282 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11285 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11286 # that cause trouble. Some versions do not even contain alloca or
11287 # contain a buggy version. If you still want to use their alloca,
11288 # use ar to extract alloca.o from them instead of compiling alloca.c.
11294 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
11296 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11300 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11301 if ${ac_cv_os_cray+:} false
; then :
11302 $as_echo_n "(cached) " >&6
11304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11305 /* end confdefs.h. */
11306 #if defined CRAY && ! defined CRAY2
11313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11314 $EGREP "webecray" >/dev
/null
2>&1; then :
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11323 $as_echo "$ac_cv_os_cray" >&6; }
11324 if test $ac_cv_os_cray = yes; then
11325 for ac_func
in _getb67 GETB67 getb67
; do
11326 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11327 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11328 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11330 cat >>confdefs.h
<<_ACEOF
11331 #define CRAY_STACKSEG_END $ac_func
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11341 $as_echo_n "checking stack direction for C alloca... " >&6; }
11342 if ${ac_cv_c_stack_direction+:} false
; then :
11343 $as_echo_n "(cached) " >&6
11345 if test "$cross_compiling" = yes; then :
11346 ac_cv_c_stack_direction
=0
11348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11349 /* end confdefs.h. */
11350 $ac_includes_default
11352 find_stack_direction (int *addr, int depth)
11354 int dir, dummy = 0;
11357 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
11358 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
11359 return dir + dummy;
11363 main (int argc, char **argv)
11365 return find_stack_direction (0, argc + !argv + 20) < 0;
11368 if ac_fn_c_try_run
"$LINENO"; then :
11369 ac_cv_c_stack_direction
=1
11371 ac_cv_c_stack_direction
=-1
11373 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11374 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11379 $as_echo "$ac_cv_c_stack_direction" >&6; }
11380 cat >>confdefs.h
<<_ACEOF
11381 #define STACK_DIRECTION $ac_cv_c_stack_direction
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11388 $as_echo_n "checking for inline... " >&6; }
11389 if ${ac_cv_c_inline+:} false
; then :
11390 $as_echo_n "(cached) " >&6
11393 for ac_kw
in inline __inline__ __inline
; do
11394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11395 /* end confdefs.h. */
11396 #ifndef __cplusplus
11398 static $ac_kw foo_t static_foo () {return 0; }
11399 $ac_kw foo_t foo () {return 0; }
11403 if ac_fn_c_try_compile
"$LINENO"; then :
11404 ac_cv_c_inline
=$ac_kw
11406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11407 test "$ac_cv_c_inline" != no
&& break
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11412 $as_echo "$ac_cv_c_inline" >&6; }
11414 case $ac_cv_c_inline in
11417 case $ac_cv_c_inline in
11419 *) ac_val
=$ac_cv_c_inline;;
11421 cat >>confdefs.h
<<_ACEOF
11422 #ifndef __cplusplus
11423 #define inline $ac_val
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
11430 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
11431 if ${ac_cv_c_restrict+:} false
; then :
11432 $as_echo_n "(cached) " >&6
11434 ac_cv_c_restrict
=no
11435 # The order here caters to the fact that C++ does not require restrict.
11436 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
11437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11438 /* end confdefs.h. */
11439 typedef int * int_ptr;
11440 int foo (int_ptr $ac_kw ip) {
11447 int * $ac_kw t = s;
11454 if ac_fn_c_try_compile
"$LINENO"; then :
11455 ac_cv_c_restrict
=$ac_kw
11457 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11458 test "$ac_cv_c_restrict" != no
&& break
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
11463 $as_echo "$ac_cv_c_restrict" >&6; }
11465 case $ac_cv_c_restrict in
11467 no
) $as_echo "#define restrict /**/" >>confdefs.h
11469 *) cat >>confdefs.h
<<_ACEOF
11470 #define restrict $ac_cv_c_restrict
11475 ac_fn_c_check_decl
"$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
11476 if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes
; then :
11482 cat >>confdefs.h
<<_ACEOF
11483 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
11486 ac_fn_c_check_decl
"$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
11487 if test "x$ac_cv_have_decl_feof_unlocked" = xyes
; then :
11493 cat >>confdefs.h
<<_ACEOF
11494 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
11497 ac_fn_c_check_decl
"$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
11498 if test "x$ac_cv_have_decl_ferror_unlocked" = xyes
; then :
11504 cat >>confdefs.h
<<_ACEOF
11505 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
11508 ac_fn_c_check_decl
"$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
11509 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes
; then :
11515 cat >>confdefs.h
<<_ACEOF
11516 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
11519 ac_fn_c_check_decl
"$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
11520 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes
; then :
11526 cat >>confdefs.h
<<_ACEOF
11527 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
11530 ac_fn_c_check_decl
"$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
11531 if test "x$ac_cv_have_decl_fputc_unlocked" = xyes
; then :
11537 cat >>confdefs.h
<<_ACEOF
11538 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
11541 ac_fn_c_check_decl
"$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
11542 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes
; then :
11548 cat >>confdefs.h
<<_ACEOF
11549 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
11552 ac_fn_c_check_decl
"$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
11553 if test "x$ac_cv_have_decl_fread_unlocked" = xyes
; then :
11559 cat >>confdefs.h
<<_ACEOF
11560 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
11563 ac_fn_c_check_decl
"$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
11564 if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes
; then :
11570 cat >>confdefs.h
<<_ACEOF
11571 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
11574 ac_fn_c_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
11575 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
; then :
11581 cat >>confdefs.h
<<_ACEOF
11582 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
11585 ac_fn_c_check_decl
"$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
11586 if test "x$ac_cv_have_decl_getchar_unlocked" = xyes
; then :
11592 cat >>confdefs.h
<<_ACEOF
11593 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
11596 ac_fn_c_check_decl
"$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
11597 if test "x$ac_cv_have_decl_putc_unlocked" = xyes
; then :
11603 cat >>confdefs.h
<<_ACEOF
11604 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
11607 ac_fn_c_check_decl
"$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
11608 if test "x$ac_cv_have_decl_putchar_unlocked" = xyes
; then :
11614 cat >>confdefs.h
<<_ACEOF
11615 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
11621 for ac_func
in $ac_func_list
11623 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11624 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11625 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11626 cat >>confdefs.h
<<_ACEOF
11627 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11640 for ac_header
in $ac_header_list
11642 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11643 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11645 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11646 cat >>confdefs.h
<<_ACEOF
11647 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11659 XGETTEXT_EXTRA_OPTIONS
=
11667 GNULIB_MBSRTOWCS
=0;
11668 GNULIB_MBSNRTOWCS
=0;
11670 GNULIB_WCSRTOMBS
=0;
11671 GNULIB_WCSNRTOMBS
=0;
11688 GNULIB_WCSCASECMP
=0;
11689 GNULIB_WCSNCASECMP
=0;
11726 HAVE_WCSNCASECMP
=1;
11739 HAVE_DECL_WCWIDTH
=1;
11740 REPLACE_MBSTATE_T
=0;
11746 REPLACE_MBSRTOWCS
=0;
11747 REPLACE_MBSNRTOWCS
=0;
11749 REPLACE_WCSRTOMBS
=0;
11750 REPLACE_WCSNRTOMBS
=0;
11752 REPLACE_WCSWIDTH
=0;
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
11756 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
11757 if ${gl_cv_header_wchar_h_correct_inline+:} false
; then :
11758 $as_echo_n "(cached) " >&6
11760 gl_cv_header_wchar_h_correct_inline
=yes
11761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11762 /* end confdefs.h. */
11764 #define wcstod renamed_wcstod
11765 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11767 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11768 included before <wchar.h>. */
11769 #include <stddef.h>
11773 extern int zero (void);
11774 int main () { return zero(); }
11777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11778 (eval $ac_compile) 2>&5
11780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11781 test $ac_status = 0; }; then
11782 mv conftest.
$ac_objext conftest1.
$ac_objext
11783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11784 /* end confdefs.h. */
11786 #define wcstod renamed_wcstod
11787 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11789 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11790 included before <wchar.h>. */
11791 #include <stddef.h>
11795 int zero (void) { return 0; }
11798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11799 (eval $ac_compile) 2>&5
11801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11802 test $ac_status = 0; }; then
11803 mv conftest.
$ac_objext conftest2.
$ac_objext
11804 if $CC -o conftest
$ac_exeext $CFLAGS $LDFLAGS conftest1.
$ac_objext conftest2.
$ac_objext $LIBS >&5 2>&1; then
11807 gl_cv_header_wchar_h_correct_inline
=no
11811 rm -f conftest1.
$ac_objext conftest2.
$ac_objext conftest
$ac_exeext
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
11815 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
11816 if test $gl_cv_header_wchar_h_correct_inline = no
; then
11817 as_fn_error $?
"<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
11818 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
11819 C99 mode. You have four options:
11820 - Add the flag -fgnu89-inline to CC and reconfigure, or
11821 - Fix your include files, using parts of
11822 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
11823 - Use a gcc version older than 4.3, or
11824 - Don't use the flags -std=c99 or -std=gnu99.
11825 Configuration aborted." "$LINENO" 5
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11832 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11833 if ${am_cv_langinfo_codeset+:} false
; then :
11834 $as_echo_n "(cached) " >&6
11836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11837 /* end confdefs.h. */
11838 #include <langinfo.h>
11842 char* cs = nl_langinfo(CODESET); return !cs;
11847 if ac_fn_c_try_link
"$LINENO"; then :
11848 am_cv_langinfo_codeset
=yes
11850 am_cv_langinfo_codeset
=no
11852 rm -f core conftest.err conftest.
$ac_objext \
11853 conftest
$ac_exeext conftest.
$ac_ext
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11857 $as_echo "$am_cv_langinfo_codeset" >&6; }
11858 if test $am_cv_langinfo_codeset = yes; then
11860 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
11868 $as_echo_n "checking for a traditional french locale... " >&6; }
11869 if ${gt_cv_locale_fr+:} false
; then :
11870 $as_echo_n "(cached) " >&6
11873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11874 /* end confdefs.h. */
11876 #include <locale.h>
11878 #if HAVE_LANGINFO_CODESET
11879 # include <langinfo.h>
11881 #include <stdlib.h>
11882 #include <string.h>
11886 /* Check whether the given locale name is recognized by the system. */
11887 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
11888 /* On native Windows, setlocale(category, "") looks at the system settings,
11889 not at the environment variables. Also, when an encoding suffix such
11890 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
11891 category of the locale to "C". */
11892 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
11893 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
11896 if (setlocale (LC_ALL, "") == NULL) return 1;
11898 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
11899 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
11900 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
11901 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
11902 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
11903 some unit tests fail.
11904 On MirBSD 10, when an unsupported locale is specified, setlocale()
11905 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
11906 #if HAVE_LANGINFO_CODESET
11908 const char *cs = nl_langinfo (CODESET);
11909 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
11910 || strcmp (cs, "UTF-8") == 0)
11915 /* On Cygwin, avoid locale names without encoding suffix, because the
11916 locale_charset() function relies on the encoding suffix. Note that
11917 LC_ALL is set on the command line. */
11918 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
11920 /* Check whether in the abbreviation of the second month, the second
11921 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
11922 one byte long. This excludes the UTF-8 encoding. */
11923 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
11924 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
11925 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
11926 /* Check whether the decimal separator is a comma.
11927 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
11928 are nl_langinfo(RADIXCHAR) are both ".". */
11929 if (localeconv () ->decimal_point[0] != ',') return 1;
11935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11936 (eval $ac_link) 2>&5
11938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11939 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
11941 # Handle native Windows specially, because there setlocale() interprets
11942 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
11943 # "fr" or "fra" as "French" or "French_France.1252",
11944 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
11945 # "ja" as "Japanese" or "Japanese_Japan.932",
11948 # Test for the native Windows locale name.
11949 if (LC_ALL
=French_France
.1252 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11950 gt_cv_locale_fr
=French_France
.1252
11953 gt_cv_locale_fr
=none
11957 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
11958 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
11959 # configure script would override the LC_ALL setting. Likewise for
11960 # LC_CTYPE, which is also set at the beginning of the configure script.
11961 # Test for the usual locale name.
11962 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11963 gt_cv_locale_fr
=fr_FR
11965 # Test for the locale name with explicit encoding suffix.
11966 if (LC_ALL
=fr_FR.ISO-8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11967 gt_cv_locale_fr
=fr_FR.ISO-8859-1
11969 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
11970 if (LC_ALL
=fr_FR.ISO8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11971 gt_cv_locale_fr
=fr_FR.ISO8859-1
11973 # Test for the HP-UX locale name.
11974 if (LC_ALL
=fr_FR.iso88591 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11975 gt_cv_locale_fr
=fr_FR.iso88591
11977 # Test for the Solaris 7 locale name.
11978 if (LC_ALL
=fr LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11982 gt_cv_locale_fr
=none
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
11995 $as_echo "$gt_cv_locale_fr" >&6; }
11996 LOCALE_FR
=$gt_cv_locale_fr
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
12002 $as_echo_n "checking whether // is distinct from /... " >&6; }
12003 if ${gl_cv_double_slash_root+:} false
; then :
12004 $as_echo_n "(cached) " >&6
12006 if test x
"$cross_compiling" = xyes
; then
12007 # When cross-compiling, there is no way to tell whether // is special
12008 # short of a list of hosts. However, the only known hosts to date
12009 # that have a distinct // are Apollo DomainOS (too old to port to),
12010 # Cygwin, and z/OS. If anyone knows of another system for which // has
12011 # special semantics and is distinct from /, please report it to
12012 # <bug-gnulib@gnu.org>.
12014 *-cygwin | i370-ibm-openedition
)
12015 gl_cv_double_slash_root
=yes ;;
12017 # Be optimistic and assume that / and // are the same when we
12019 gl_cv_double_slash_root
='unknown, assuming no' ;;
12022 set x
`ls -di / // 2>/dev/null`
12023 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
12024 gl_cv_double_slash_root
=no
12026 gl_cv_double_slash_root
=yes
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
12031 $as_echo "$gl_cv_double_slash_root" >&6; }
12032 if test "$gl_cv_double_slash_root" = yes; then
12034 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
12041 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
12042 if ${gl_cv_have_include_next+:} false
; then :
12043 $as_echo_n "(cached) " >&6
12045 rm -rf conftestd1a conftestd1b conftestd2
12046 mkdir conftestd1a conftestd1b conftestd2
12047 cat <<EOF > conftestd1a/conftest.h
12048 #define DEFINED_IN_CONFTESTD1
12049 #include_next <conftest.h>
12050 #ifdef DEFINED_IN_CONFTESTD2
12053 #error "include_next doesn't work"
12056 cat <<EOF > conftestd1b/conftest.h
12057 #define DEFINED_IN_CONFTESTD1
12059 #include_next <conftest.h>
12060 #ifdef DEFINED_IN_CONFTESTD2
12063 #error "include_next doesn't work"
12066 cat <<EOF > conftestd2/conftest.h
12067 #ifndef DEFINED_IN_CONFTESTD1
12068 #error "include_next test doesn't work"
12070 #define DEFINED_IN_CONFTESTD2
12072 gl_save_CPPFLAGS
="$CPPFLAGS"
12073 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
12074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12075 /* end confdefs.h. */
12076 #include <conftest.h>
12078 if ac_fn_c_try_compile
"$LINENO"; then :
12079 gl_cv_have_include_next
=yes
12081 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
12082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12083 /* end confdefs.h. */
12084 #include <conftest.h>
12086 if ac_fn_c_try_compile
"$LINENO"; then :
12087 gl_cv_have_include_next
=buggy
12089 gl_cv_have_include_next
=no
12091 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12095 CPPFLAGS
="$gl_save_CPPFLAGS"
12096 rm -rf conftestd1a conftestd1b conftestd2
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
12100 $as_echo "$gl_cv_have_include_next" >&6; }
12101 PRAGMA_SYSTEM_HEADER
=
12102 if test $gl_cv_have_include_next = yes; then
12103 INCLUDE_NEXT
=include_next
12104 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
12105 if test -n "$GCC"; then
12106 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
12109 if test $gl_cv_have_include_next = buggy
; then
12110 INCLUDE_NEXT
=include
12111 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
12113 INCLUDE_NEXT
=include
12114 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
12121 $as_echo_n "checking whether system header files limit the line length... " >&6; }
12122 if ${gl_cv_pragma_columns+:} false
; then :
12123 $as_echo_n "(cached) " >&6
12125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12126 /* end confdefs.h. */
12133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12134 $EGREP "choke me" >/dev
/null
2>&1; then :
12135 gl_cv_pragma_columns
=yes
12137 gl_cv_pragma_columns
=no
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
12144 $as_echo "$gl_cv_pragma_columns" >&6; }
12145 if test $gl_cv_pragma_columns = yes; then
12146 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
12155 $as_echo_n "checking for complete errno.h... " >&6; }
12156 if ${gl_cv_header_errno_h_complete+:} false
; then :
12157 $as_echo_n "(cached) " >&6
12160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12161 /* end confdefs.h. */
12164 #if !defined ETXTBSY
12167 #if !defined ENOMSG
12173 #if !defined ENOLINK
12176 #if !defined EPROTO
12179 #if !defined EMULTIHOP
12182 #if !defined EBADMSG
12185 #if !defined EOVERFLOW
12188 #if !defined ENOTSUP
12191 #if !defined ENETRESET
12194 #if !defined ECONNABORTED
12197 #if !defined ESTALE
12200 #if !defined EDQUOT
12203 #if !defined ECANCELED
12206 #if !defined EOWNERDEAD
12209 #if !defined ENOTRECOVERABLE
12212 #if !defined EILSEQ
12217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12218 $EGREP "booboo" >/dev
/null
2>&1; then :
12219 gl_cv_header_errno_h_complete
=no
12221 gl_cv_header_errno_h_complete
=yes
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
12228 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
12229 if test $gl_cv_header_errno_h_complete = yes; then
12240 if test $gl_cv_have_include_next = yes; then
12241 gl_cv_next_errno_h
='<'errno.h
'>'
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
12244 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
12245 if ${gl_cv_next_errno_h+:} false
; then :
12246 $as_echo_n "(cached) " >&6
12249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12250 /* end confdefs.h. */
12255 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
12256 *) gl_absname_cpp
="$ac_cpp" ;;
12261 gl_dirsep_regex
='[/\\]'
12264 gl_dirsep_regex
='\/'
12267 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
12269 gl_header_literal_regex
=`echo 'errno.h' \
12270 | sed -e "$gl_make_literal_regex_sed"`
12271 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12272 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12277 gl_cv_next_errno_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12278 sed -n "$gl_absolute_header_sed"`'"'
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
12283 $as_echo "$gl_cv_next_errno_h" >&6; }
12285 NEXT_ERRNO_H
=$gl_cv_next_errno_h
12287 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
12288 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12289 gl_next_as_first_directive
='<'errno.h
'>'
12291 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12292 gl_next_as_first_directive
=$gl_cv_next_errno_h
12294 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
=$gl_next_as_first_directive
12302 if test -n "$ERRNO_H"; then
12303 GL_GENERATE_ERRNO_H_TRUE
=
12304 GL_GENERATE_ERRNO_H_FALSE
='#'
12306 GL_GENERATE_ERRNO_H_TRUE
='#'
12307 GL_GENERATE_ERRNO_H_FALSE
=
12311 if test -n "$ERRNO_H"; then
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
12313 $as_echo_n "checking for EMULTIHOP value... " >&6; }
12314 if ${gl_cv_header_errno_h_EMULTIHOP+:} false
; then :
12315 $as_echo_n "(cached) " >&6
12318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h. */
12327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12328 $EGREP "yes" >/dev
/null
2>&1; then :
12329 gl_cv_header_errno_h_EMULTIHOP
=yes
12331 gl_cv_header_errno_h_EMULTIHOP
=no
12335 if test $gl_cv_header_errno_h_EMULTIHOP = no
; then
12336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12337 /* end confdefs.h. */
12339 #define _XOPEN_SOURCE_EXTENDED 1
12346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12347 $EGREP "yes" >/dev
/null
2>&1; then :
12348 gl_cv_header_errno_h_EMULTIHOP
=hidden
12352 if test $gl_cv_header_errno_h_EMULTIHOP = hidden
; then
12353 if ac_fn_c_compute_int
"$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
12354 #define _XOPEN_SOURCE_EXTENDED 1
12356 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12358 #include <stdlib.h>
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
12368 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
12369 case $gl_cv_header_errno_h_EMULTIHOP in
12371 EMULTIHOP_HIDDEN
=0; EMULTIHOP_VALUE
=
12374 EMULTIHOP_HIDDEN
=1; EMULTIHOP_VALUE
="$gl_cv_header_errno_h_EMULTIHOP"
12382 if test -n "$ERRNO_H"; then
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
12384 $as_echo_n "checking for ENOLINK value... " >&6; }
12385 if ${gl_cv_header_errno_h_ENOLINK+:} false
; then :
12386 $as_echo_n "(cached) " >&6
12389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12390 /* end confdefs.h. */
12398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12399 $EGREP "yes" >/dev
/null
2>&1; then :
12400 gl_cv_header_errno_h_ENOLINK
=yes
12402 gl_cv_header_errno_h_ENOLINK
=no
12406 if test $gl_cv_header_errno_h_ENOLINK = no
; then
12407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12408 /* end confdefs.h. */
12410 #define _XOPEN_SOURCE_EXTENDED 1
12417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12418 $EGREP "yes" >/dev
/null
2>&1; then :
12419 gl_cv_header_errno_h_ENOLINK
=hidden
12423 if test $gl_cv_header_errno_h_ENOLINK = hidden
; then
12424 if ac_fn_c_compute_int
"$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
12425 #define _XOPEN_SOURCE_EXTENDED 1
12427 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12429 #include <stdlib.h>
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
12439 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
12440 case $gl_cv_header_errno_h_ENOLINK in
12442 ENOLINK_HIDDEN
=0; ENOLINK_VALUE
=
12445 ENOLINK_HIDDEN
=1; ENOLINK_VALUE
="$gl_cv_header_errno_h_ENOLINK"
12453 if test -n "$ERRNO_H"; then
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
12455 $as_echo_n "checking for EOVERFLOW value... " >&6; }
12456 if ${gl_cv_header_errno_h_EOVERFLOW+:} false
; then :
12457 $as_echo_n "(cached) " >&6
12460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12461 /* end confdefs.h. */
12469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12470 $EGREP "yes" >/dev
/null
2>&1; then :
12471 gl_cv_header_errno_h_EOVERFLOW
=yes
12473 gl_cv_header_errno_h_EOVERFLOW
=no
12477 if test $gl_cv_header_errno_h_EOVERFLOW = no
; then
12478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12479 /* end confdefs.h. */
12481 #define _XOPEN_SOURCE_EXTENDED 1
12488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12489 $EGREP "yes" >/dev
/null
2>&1; then :
12490 gl_cv_header_errno_h_EOVERFLOW
=hidden
12494 if test $gl_cv_header_errno_h_EOVERFLOW = hidden
; then
12495 if ac_fn_c_compute_int
"$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
12496 #define _XOPEN_SOURCE_EXTENDED 1
12498 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12500 #include <stdlib.h>
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
12510 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
12511 case $gl_cv_header_errno_h_EOVERFLOW in
12513 EOVERFLOW_HIDDEN
=0; EOVERFLOW_VALUE
=
12516 EOVERFLOW_HIDDEN
=1; EOVERFLOW_VALUE
="$gl_cv_header_errno_h_EOVERFLOW"
12524 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
12525 if test "x$ac_cv_have_decl_strerror_r" = xyes
; then :
12531 cat >>confdefs.h
<<_ACEOF
12532 #define HAVE_DECL_STRERROR_R $ac_have_decl
12535 for ac_func
in strerror_r
12537 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
12538 if test "x$ac_cv_func_strerror_r" = xyes
; then :
12539 cat >>confdefs.h
<<_ACEOF
12540 #define HAVE_STRERROR_R 1
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
12547 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
12548 if ${ac_cv_func_strerror_r_char_p+:} false
; then :
12549 $as_echo_n "(cached) " >&6
12552 ac_cv_func_strerror_r_char_p
=no
12553 if test $ac_cv_have_decl_strerror_r = yes; then
12554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12555 /* end confdefs.h. */
12556 $ac_includes_default
12562 char x = *strerror_r (0, buf, sizeof buf);
12563 char *p = strerror_r (0, buf, sizeof buf);
12570 if ac_fn_c_try_compile
"$LINENO"; then :
12571 ac_cv_func_strerror_r_char_p
=yes
12573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12575 # strerror_r is not declared. Choose between
12576 # systems that have relatively inaccessible declarations for the
12577 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
12578 # former has a strerror_r that returns char*, while the latter
12579 # has a strerror_r that returns `int'.
12580 # This test should segfault on the DEC system.
12581 if test "$cross_compiling" = yes; then :
12584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12585 /* end confdefs.h. */
12586 $ac_includes_default
12587 extern char *strerror_r ();
12592 char x = *strerror_r (0, buf, sizeof buf);
12593 return ! isalpha (x);
12598 if ac_fn_c_try_run
"$LINENO"; then :
12599 ac_cv_func_strerror_r_char_p
=yes
12601 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12602 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
12609 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
12610 if test $ac_cv_func_strerror_r_char_p = yes; then
12612 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
12622 $as_echo_n "checking for mbstate_t... " >&6; }
12623 if ${ac_cv_type_mbstate_t+:} false
; then :
12624 $as_echo_n "(cached) " >&6
12626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12627 /* end confdefs.h. */
12628 $ac_includes_default
12629 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12631 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12632 included before <wchar.h>. */
12633 #include <stddef.h>
12640 mbstate_t x; return sizeof x;
12645 if ac_fn_c_try_compile
"$LINENO"; then :
12646 ac_cv_type_mbstate_t
=yes
12648 ac_cv_type_mbstate_t
=no
12650 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
12653 $as_echo "$ac_cv_type_mbstate_t" >&6; }
12654 if test $ac_cv_type_mbstate_t = yes; then
12656 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
12660 $as_echo "#define mbstate_t int" >>confdefs.h
12689 GNULIB_FPRINTF_POSIX
=0;
12705 GNULIB_OBSTACK_PRINTF
=0;
12706 GNULIB_OBSTACK_PRINTF_POSIX
=0;
12711 GNULIB_PRINTF_POSIX
=0;
12720 GNULIB_SPRINTF_POSIX
=0;
12721 GNULIB_STDIO_H_NONBLOCKING
=0;
12722 GNULIB_STDIO_H_SIGPIPE
=0;
12724 GNULIB_VASPRINTF
=0;
12729 GNULIB_VFPRINTF_POSIX
=0;
12731 GNULIB_VPRINTF_POSIX
=0;
12732 GNULIB_VSNPRINTF
=0;
12733 GNULIB_VSPRINTF_POSIX
=0;
12734 HAVE_DECL_FPURGE
=1;
12735 HAVE_DECL_FSEEKO
=1;
12736 HAVE_DECL_FTELLO
=1;
12737 HAVE_DECL_GETDELIM
=1;
12738 HAVE_DECL_GETLINE
=1;
12739 HAVE_DECL_OBSTACK_PRINTF
=1;
12740 HAVE_DECL_SNPRINTF
=1;
12741 HAVE_DECL_VSNPRINTF
=1;
12762 REPLACE_GETDELIM
=0;
12764 REPLACE_OBSTACK_PRINTF
=0;
12770 REPLACE_RENAMEAT
=0;
12771 REPLACE_SNPRINTF
=0;
12773 REPLACE_STDIO_READ_FUNCS
=0;
12774 REPLACE_STDIO_WRITE_FUNCS
=0;
12776 REPLACE_VASPRINTF
=0;
12777 REPLACE_VDPRINTF
=0;
12778 REPLACE_VFPRINTF
=0;
12780 REPLACE_VSNPRINTF
=0;
12781 REPLACE_VSPRINTF
=0;
12783 ac_fn_c_check_decl
"$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
12784 if test "x$ac_cv_have_decl_getdelim" = xyes
; then :
12790 cat >>confdefs.h
<<_ACEOF
12791 #define HAVE_DECL_GETDELIM $ac_have_decl
12796 ac_fn_c_check_decl
"$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
12797 if test "x$ac_cv_have_decl_getline" = xyes
; then :
12803 cat >>confdefs.h
<<_ACEOF
12804 #define HAVE_DECL_GETLINE $ac_have_decl
12815 GNULIB_EUIDACCESS
=0;
12816 GNULIB_FACCESSAT
=0;
12819 GNULIB_FDATASYNC
=0;
12821 GNULIB_FTRUNCATE
=0;
12823 GNULIB_GETDOMAINNAME
=0;
12824 GNULIB_GETDTABLESIZE
=0;
12825 GNULIB_GETGROUPS
=0;
12826 GNULIB_GETHOSTNAME
=0;
12828 GNULIB_GETLOGIN_R
=0;
12829 GNULIB_GETPAGESIZE
=0;
12830 GNULIB_GETUSERSHELL
=0;
12831 GNULIB_GROUP_MEMBER
=0;
12843 GNULIB_READLINKAT
=0;
12845 GNULIB_SETHOSTNAME
=0;
12848 GNULIB_SYMLINKAT
=0;
12849 GNULIB_TTYNAME_R
=0;
12850 GNULIB_UNISTD_H_NONBLOCKING
=0;
12851 GNULIB_UNISTD_H_SIGPIPE
=0;
12866 HAVE_GETDTABLESIZE
=1;
12868 HAVE_GETHOSTNAME
=1;
12870 HAVE_GETPAGESIZE
=1;
12871 HAVE_GROUP_MEMBER
=1;
12881 HAVE_SETHOSTNAME
=1;
12887 HAVE_DECL_ENVIRON
=1;
12888 HAVE_DECL_FCHDIR
=1;
12889 HAVE_DECL_FDATASYNC
=1;
12890 HAVE_DECL_GETDOMAINNAME
=1;
12891 HAVE_DECL_GETLOGIN_R
=1;
12892 HAVE_DECL_GETPAGESIZE
=1;
12893 HAVE_DECL_GETUSERSHELL
=1;
12894 HAVE_DECL_SETHOSTNAME
=1;
12895 HAVE_DECL_TTYNAME_R
=1;
12897 HAVE_SYS_PARAM_H
=0;
12902 REPLACE_FCHOWNAT
=0;
12903 REPLACE_FTRUNCATE
=0;
12905 REPLACE_GETDOMAINNAME
=0;
12906 REPLACE_GETLOGIN_R
=0;
12907 REPLACE_GETGROUPS
=0;
12908 REPLACE_GETPAGESIZE
=0;
12917 REPLACE_READLINK
=0;
12921 REPLACE_TTYNAME_R
=0;
12923 REPLACE_UNLINKAT
=0;
12926 UNISTD_H_HAVE_WINSOCK2_H
=0;
12927 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
12945 if test $gl_cv_have_include_next = yes; then
12946 gl_cv_next_getopt_h
='<'getopt.h
'>'
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
12949 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
12950 if ${gl_cv_next_getopt_h+:} false
; then :
12951 $as_echo_n "(cached) " >&6
12954 if test $ac_cv_header_getopt_h = yes; then
12957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12958 /* end confdefs.h. */
12959 #include <getopt.h>
12963 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
12964 *) gl_absname_cpp
="$ac_cpp" ;;
12969 gl_dirsep_regex
='[/\\]'
12972 gl_dirsep_regex
='\/'
12975 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
12977 gl_header_literal_regex
=`echo 'getopt.h' \
12978 | sed -e "$gl_make_literal_regex_sed"`
12979 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12980 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12985 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12986 sed -n "$gl_absolute_header_sed"`'"'
12988 gl_cv_next_getopt_h
='<'getopt.h
'>'
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
12994 $as_echo "$gl_cv_next_getopt_h" >&6; }
12996 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
12998 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
12999 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13000 gl_next_as_first_directive
='<'getopt.h
'>'
13002 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13003 gl_next_as_first_directive
=$gl_cv_next_getopt_h
13005 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
13010 if test $ac_cv_header_getopt_h = yes; then
13019 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
13020 for ac_header
in getopt.h
13022 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
13023 if test "x$ac_cv_header_getopt_h" = xyes
; then :
13024 cat >>confdefs.h
<<_ACEOF
13025 #define HAVE_GETOPT_H 1
13029 gl_replace_getopt
=yes
13036 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
13037 for ac_func
in getopt_long_only
13039 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
13040 if test "x$ac_cv_func_getopt_long_only" = xyes
; then :
13041 cat >>confdefs.h
<<_ACEOF
13042 #define HAVE_GETOPT_LONG_ONLY 1
13046 gl_replace_getopt
=yes
13052 if test -z "$gl_replace_getopt"; then
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
13054 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
13055 if ${gl_cv_func_getopt_posix+:} false
; then :
13056 $as_echo_n "(cached) " >&6
13059 if test $cross_compiling = no
; then
13060 if test "$cross_compiling" = yes; then :
13061 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13063 as_fn_error $?
"cannot run test program while cross compiling
13064 See \`config.log' for more details" "$LINENO" 5; }
13066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13067 /* end confdefs.h. */
13069 #include <unistd.h>
13070 #include <stdlib.h>
13071 #include <string.h>
13076 static char program[] = "program";
13077 static char a[] = "-a";
13078 static char foo[] = "foo";
13079 static char bar[] = "bar";
13080 char *argv[] = { program, a, foo, bar, NULL };
13083 c = getopt (4, argv, "ab");
13086 c = getopt (4, argv, "ab");
13089 if (!(optind == 2))
13095 if ac_fn_c_try_run
"$LINENO"; then :
13096 gl_cv_func_getopt_posix
=maybe
13098 gl_cv_func_getopt_posix
=no
13100 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13101 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13104 if test $gl_cv_func_getopt_posix = maybe
; then
13105 if test "$cross_compiling" = yes; then :
13106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13108 as_fn_error $?
"cannot run test program while cross compiling
13109 See \`config.log' for more details" "$LINENO" 5; }
13111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13112 /* end confdefs.h. */
13114 #include <unistd.h>
13115 #include <stdlib.h>
13116 #include <string.h>
13121 static char program[] = "program";
13122 static char donald[] = "donald";
13123 static char p[] = "-p";
13124 static char billy[] = "billy";
13125 static char duck[] = "duck";
13126 static char a[] = "-a";
13127 static char bar[] = "bar";
13128 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
13131 c = getopt (7, argv, "+abp:q:");
13134 if (!(strcmp (argv[0], "program") == 0))
13136 if (!(strcmp (argv[1], "donald") == 0))
13138 if (!(strcmp (argv[2], "-p") == 0))
13140 if (!(strcmp (argv[3], "billy") == 0))
13142 if (!(strcmp (argv[4], "duck") == 0))
13144 if (!(strcmp (argv[5], "-a") == 0))
13146 if (!(strcmp (argv[6], "bar") == 0))
13148 if (!(optind == 1))
13154 if ac_fn_c_try_run
"$LINENO"; then :
13155 gl_cv_func_getopt_posix
=maybe
13157 gl_cv_func_getopt_posix
=no
13159 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13160 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13164 if test $gl_cv_func_getopt_posix = maybe
; then
13165 if test "$cross_compiling" = yes; then :
13166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13168 as_fn_error $?
"cannot run test program while cross compiling
13169 See \`config.log' for more details" "$LINENO" 5; }
13171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13172 /* end confdefs.h. */
13174 #include <unistd.h>
13175 #include <stdlib.h>
13176 #include <string.h>
13181 static char program[] = "program";
13182 static char ab[] = "-ab";
13183 char *argv[3] = { program, ab, NULL };
13184 if (getopt (2, argv, "ab:") != 'a')
13186 if (getopt (2, argv, "ab:") != '?')
13196 if ac_fn_c_try_run
"$LINENO"; then :
13197 gl_cv_func_getopt_posix
=yes
13199 gl_cv_func_getopt_posix
=no
13201 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13202 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13208 darwin
* | aix
* | mingw
*) gl_cv_func_getopt_posix
="guessing no";;
13209 *) gl_cv_func_getopt_posix
="guessing yes";;
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
13215 $as_echo "$gl_cv_func_getopt_posix" >&6; }
13216 case "$gl_cv_func_getopt_posix" in
13217 *no
) gl_replace_getopt
=yes ;;
13221 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
13223 $as_echo_n "checking for working GNU getopt function... " >&6; }
13224 if ${gl_cv_func_getopt_gnu+:} false
; then :
13225 $as_echo_n "(cached) " >&6
13227 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
13228 # optstring is necessary for programs like m4 that have POSIX-mandated
13229 # semantics for supporting options interspersed with files.
13230 # Also, since getopt_long is a GNU extension, we require optind=0.
13231 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
13232 # so take care to revert to the correct (non-)export state.
13233 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
13234 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
13235 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
13236 x
) gl_had_POSIXLY_CORRECT
=yes ;;
13237 *) gl_had_POSIXLY_CORRECT
= ;;
13240 export POSIXLY_CORRECT
13241 if test "$cross_compiling" = yes; then :
13242 gl_cv_func_getopt_gnu
="guessing no"
13245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13246 /* end confdefs.h. */
13247 #include <getopt.h>
13248 #include <stddef.h>
13249 #include <string.h>
13251 #include <stdlib.h>
13252 #if defined __MACH__ && defined __APPLE__
13253 /* Avoid a crash on Mac OS X. */
13254 #include <mach/mach.h>
13255 #include <mach/mach_error.h>
13256 #include <mach/thread_status.h>
13257 #include <mach/exception.h>
13258 #include <mach/task.h>
13259 #include <pthread.h>
13260 /* The exception port on which our thread listens. */
13261 static mach_port_t our_exception_port;
13262 /* The main function of the thread listening for exceptions of type
13265 mach_exception_thread (void *arg)
13267 /* Buffer for a message to be received. */
13269 mach_msg_header_t head;
13270 mach_msg_body_t msgh_body;
13273 mach_msg_return_t retval;
13274 /* Wait for a message on the exception port. */
13275 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
13276 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
13277 if (retval != MACH_MSG_SUCCESS)
13282 nocrash_init (void)
13284 mach_port_t self = mach_task_self ();
13285 /* Allocate a port on which the thread shall listen for exceptions. */
13286 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
13288 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
13289 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
13290 MACH_MSG_TYPE_MAKE_SEND)
13292 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
13294 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
13295 /* Create the thread listening on the exception port. */
13296 pthread_attr_t attr;
13298 if (pthread_attr_init (&attr) == 0
13299 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
13300 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
13301 pthread_attr_destroy (&attr);
13302 /* Replace the exception port info for these exceptions with our own.
13303 Note that we replace the exception port for the entire task, not only
13304 for a particular thread. This has the effect that when our exception
13305 port gets the message, the thread specific exception port has already
13306 been asked, and we don't need to bother about it.
13307 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
13308 task_set_exception_ports (self, mask, our_exception_port,
13309 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
13314 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
13315 /* Avoid a crash on native Windows. */
13316 #define WIN32_LEAN_AND_MEAN
13317 #include <windows.h>
13318 #include <winerror.h>
13320 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
13322 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
13324 case EXCEPTION_ACCESS_VIOLATION:
13325 case EXCEPTION_IN_PAGE_ERROR:
13326 case EXCEPTION_STACK_OVERFLOW:
13327 case EXCEPTION_GUARD_PAGE:
13328 case EXCEPTION_PRIV_INSTRUCTION:
13329 case EXCEPTION_ILLEGAL_INSTRUCTION:
13330 case EXCEPTION_DATATYPE_MISALIGNMENT:
13331 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
13332 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
13335 return EXCEPTION_CONTINUE_SEARCH;
13338 nocrash_init (void)
13340 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
13343 /* Avoid a crash on POSIX systems. */
13344 #include <signal.h>
13345 /* A POSIX signal handler. */
13347 exception_handler (int sig)
13352 nocrash_init (void)
13355 signal (SIGSEGV, exception_handler);
13358 signal (SIGBUS, exception_handler);
13372 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
13373 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
13374 OSF/1 5.1, Solaris 10. */
13376 static char conftest[] = "conftest";
13377 static char plus[] = "-+";
13378 char *argv[3] = { conftest, plus, NULL };
13380 if (getopt (2, argv, "+a") != '?')
13383 /* This code succeeds on glibc 2.8, mingw,
13384 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
13385 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
13387 static char program[] = "program";
13388 static char p[] = "-p";
13389 static char foo[] = "foo";
13390 static char bar[] = "bar";
13391 char *argv[] = { program, p, foo, bar, NULL };
13394 if (getopt (4, argv, "p::") != 'p')
13396 else if (optarg != NULL)
13398 else if (getopt (4, argv, "p::") != -1)
13400 else if (optind != 2)
13403 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
13405 static char program[] = "program";
13406 static char foo[] = "foo";
13407 static char p[] = "-p";
13408 char *argv[] = { program, foo, p, NULL };
13410 if (getopt (3, argv, "-p") != 1)
13412 else if (getopt (3, argv, "-p") != 'p')
13415 /* This code fails on glibc 2.11. */
13417 static char program[] = "program";
13418 static char b[] = "-b";
13419 static char a[] = "-a";
13420 char *argv[] = { program, b, a, NULL };
13421 optind = opterr = 0;
13422 if (getopt (3, argv, "+:a:b") != 'b')
13424 else if (getopt (3, argv, "+:a:b") != ':')
13427 /* This code dumps core on glibc 2.14. */
13429 static char program[] = "program";
13430 static char w[] = "-W";
13431 static char dummy[] = "dummy";
13432 char *argv[] = { program, w, dummy, NULL };
13433 optind = opterr = 1;
13434 if (getopt (3, argv, "W;") != 'W')
13443 if ac_fn_c_try_run
"$LINENO"; then :
13444 gl_cv_func_getopt_gnu
=yes
13446 gl_cv_func_getopt_gnu
=no
13448 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13449 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13452 case $gl_had_POSIXLY_CORRECT in
13454 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
13455 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
13460 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
13461 if test "$gl_cv_func_getopt_gnu" != yes; then
13462 gl_replace_getopt
=yes
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
13465 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
13466 if ${gl_cv_func_getopt_long_gnu+:} false
; then :
13467 $as_echo_n "(cached) " >&6
13469 if test "$cross_compiling" = yes; then :
13471 openbsd
*) gl_cv_func_getopt_long_gnu
="guessing no";;
13472 *) gl_cv_func_getopt_long_gnu
="guessing yes";;
13476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13477 /* end confdefs.h. */
13478 #include <getopt.h>
13479 #include <stddef.h>
13480 #include <string.h>
13485 static const struct option long_options[] =
13487 { "xtremely-",no_argument, NULL, 1003 },
13488 { "xtra", no_argument, NULL, 1001 },
13489 { "xtreme", no_argument, NULL, 1002 },
13490 { "xtremely", no_argument, NULL, 1003 },
13491 { NULL, 0, NULL, 0 }
13493 /* This code fails on OpenBSD 5.0. */
13495 static char program[] = "program";
13496 static char xtremel[] = "--xtremel";
13497 char *argv[] = { program, xtremel, NULL };
13499 optind = 1; opterr = 0;
13500 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
13509 if ac_fn_c_try_run
"$LINENO"; then :
13510 gl_cv_func_getopt_long_gnu
=yes
13512 gl_cv_func_getopt_long_gnu
=no
13514 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13515 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
13521 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
13522 case "$gl_cv_func_getopt_long_gnu" in
13524 *) gl_replace_getopt
=yes ;;
13536 if test $REPLACE_GETOPT = 1; then
13540 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
13546 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
13547 if test "x$ac_cv_have_decl_getenv" = xyes
; then :
13553 cat >>confdefs.h
<<_ACEOF
13554 #define HAVE_DECL_GETENV $ac_have_decl
13558 GNULIB_NL_LANGINFO
=0;
13559 HAVE_NL_LANGINFO
=1;
13560 REPLACE_NL_LANGINFO
=0;
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
13574 $as_echo_n "checking for working fcntl.h... " >&6; }
13575 if ${gl_cv_header_working_fcntl_h+:} false
; then :
13576 $as_echo_n "(cached) " >&6
13578 if test "$cross_compiling" = yes; then :
13579 gl_cv_header_working_fcntl_h
=cross-compiling
13581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13582 /* end confdefs.h. */
13583 #include <sys/types.h>
13584 #include <sys/stat.h>
13586 # include <unistd.h>
13587 #else /* on Windows with MSVC */
13589 # include <stdlib.h>
13590 # defined sleep(n) _sleep ((n) * 1000)
13594 #define O_NOATIME 0
13597 #define O_NOFOLLOW 0
13599 static int const constants[] =
13601 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
13602 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
13609 int result = !constants;
13612 static char const sym[] = "conftest.sym";
13613 if (symlink ("/dev/null", sym) != 0)
13617 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
13624 if (unlink (sym) != 0 || symlink (".", sym) != 0)
13628 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
13639 static char const file[] = "confdefs.h";
13640 int fd = open (file, O_RDONLY | O_NOATIME);
13646 if (fstat (fd, &st0) != 0)
13652 if (read (fd, &c, 1) != 1)
13656 if (close (fd) != 0)
13661 if (stat (file, &st1) != 0)
13664 if (st0.st_atime != st1.st_atime)
13676 if ac_fn_c_try_run
"$LINENO"; then :
13677 gl_cv_header_working_fcntl_h
=yes
13680 4) gl_cv_header_working_fcntl_h
='no (bad O_NOFOLLOW)';; #(
13681 64) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME)';; #(
13682 68) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME, O_NOFOLLOW)';; #(
13683 *) gl_cv_header_working_fcntl_h
='no';;
13686 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13687 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
13692 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
13694 case $gl_cv_header_working_fcntl_h in #(
13695 *O_NOATIME
* | no | cross-compiling
) ac_val
=0;; #(
13699 cat >>confdefs.h
<<_ACEOF
13700 #define HAVE_WORKING_O_NOATIME $ac_val
13704 case $gl_cv_header_working_fcntl_h in #(
13705 *O_NOFOLLOW
* | no | cross-compiling
) ac_val
=0;; #(
13709 cat >>confdefs.h
<<_ACEOF
13710 #define HAVE_WORKING_O_NOFOLLOW $ac_val
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
13716 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
13717 if ${ac_cv_gnu_library_2_1+:} false
; then :
13718 $as_echo_n "(cached) " >&6
13720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13721 /* end confdefs.h. */
13723 #include <features.h>
13724 #ifdef __GNU_LIBRARY__
13725 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
13734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13735 $EGREP "Lucky" >/dev
/null
2>&1; then :
13736 ac_cv_gnu_library_2_1
=yes
13738 ac_cv_gnu_library_2_1
=no
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
13746 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
13748 GLIBC21
="$ac_cv_gnu_library_2_1"
13752 GNULIB_LOCALECONV
=0;
13753 GNULIB_SETLOCALE
=0;
13754 GNULIB_DUPLOCALE
=0;
13756 REPLACE_LOCALECONV
=0;
13757 REPLACE_SETLOCALE
=0;
13758 REPLACE_DUPLOCALE
=0;
13759 REPLACE_STRUCT_LCONV
=0;
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
13767 $as_echo_n "checking for wchar_t... " >&6; }
13768 if ${gt_cv_c_wchar_t+:} false
; then :
13769 $as_echo_n "(cached) " >&6
13771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13772 /* end confdefs.h. */
13773 #include <stddef.h>
13774 wchar_t foo = (wchar_t)'\0';
13783 if ac_fn_c_try_compile
"$LINENO"; then :
13784 gt_cv_c_wchar_t
=yes
13788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
13791 $as_echo "$gt_cv_c_wchar_t" >&6; }
13792 if test $gt_cv_c_wchar_t = yes; then
13794 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
13802 if test $gt_cv_c_wchar_t = no
; then
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
13807 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
13808 if ${gl_cv_decl_null_works+:} false
; then :
13809 $as_echo_n "(cached) " >&6
13811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13812 /* end confdefs.h. */
13813 #include <stddef.h>
13814 int test[2 * (sizeof NULL == sizeof (void *)) -1];
13824 if ac_fn_c_try_compile
"$LINENO"; then :
13825 gl_cv_decl_null_works
=yes
13827 gl_cv_decl_null_works
=no
13829 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
13832 $as_echo "$gl_cv_decl_null_works" >&6; }
13833 if test $gl_cv_decl_null_works = no
; then
13838 if test -n "$STDDEF_H"; then
13839 GL_GENERATE_STDDEF_H_TRUE
=
13840 GL_GENERATE_STDDEF_H_FALSE
='#'
13842 GL_GENERATE_STDDEF_H_TRUE
='#'
13843 GL_GENERATE_STDDEF_H_FALSE
=
13846 if test -n "$STDDEF_H"; then
13855 if test $gl_cv_have_include_next = yes; then
13856 gl_cv_next_stddef_h
='<'stddef.h
'>'
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
13859 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
13860 if ${gl_cv_next_stddef_h+:} false
; then :
13861 $as_echo_n "(cached) " >&6
13864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13865 /* end confdefs.h. */
13866 #include <stddef.h>
13870 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
13871 *) gl_absname_cpp
="$ac_cpp" ;;
13876 gl_dirsep_regex
='[/\\]'
13879 gl_dirsep_regex
='\/'
13882 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
13884 gl_header_literal_regex
=`echo 'stddef.h' \
13885 | sed -e "$gl_make_literal_regex_sed"`
13886 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13887 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13892 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13893 sed -n "$gl_absolute_header_sed"`'"'
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
13898 $as_echo "$gl_cv_next_stddef_h" >&6; }
13900 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
13902 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
13903 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13904 gl_next_as_first_directive
='<'stddef.h
'>'
13906 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13907 gl_next_as_first_directive
=$gl_cv_next_stddef_h
13909 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
13921 GNULIB_CALLOC_POSIX
=0;
13922 GNULIB_CANONICALIZE_FILE_NAME
=0;
13923 GNULIB_GETLOADAVG
=0;
13924 GNULIB_GETSUBOPT
=0;
13926 GNULIB_MALLOC_POSIX
=0;
13930 GNULIB_MKOSTEMPS
=0;
13933 GNULIB_POSIX_OPENPT
=0;
13935 GNULIB_PTSNAME_R
=0;
13939 GNULIB_REALLOC_POSIX
=0;
13942 GNULIB_SECURE_GETENV
=0;
13947 GNULIB_SYSTEM_POSIX
=0;
13953 HAVE_CANONICALIZE_FILE_NAME
=1;
13954 HAVE_DECL_GETLOADAVG
=1;
13962 HAVE_POSIX_OPENPT
=1;
13970 HAVE_SECURE_GETENV
=1;
13972 HAVE_DECL_SETENV
=1;
13976 HAVE_STRUCT_RANDOM_DATA
=1;
13977 HAVE_SYS_LOADAVG_H
=0;
13979 HAVE_DECL_UNSETENV
=1;
13981 REPLACE_CANONICALIZE_FILE_NAME
=0;
13986 REPLACE_PTSNAME_R
=0;
13988 REPLACE_RANDOM_R
=0;
13990 REPLACE_REALPATH
=0;
13993 REPLACE_UNSETENV
=0;
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
13998 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
13999 if ${gl_cv_func_malloc_posix+:} false
; then :
14000 $as_echo_n "(cached) " >&6
14003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14004 /* end confdefs.h. */
14009 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
14017 if ac_fn_c_try_compile
"$LINENO"; then :
14018 gl_cv_func_malloc_posix
=yes
14020 gl_cv_func_malloc_posix
=no
14022 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
14026 $as_echo "$gl_cv_func_malloc_posix" >&6; }
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
14036 $as_echo_n "checking for a traditional japanese locale... " >&6; }
14037 if ${gt_cv_locale_ja+:} false
; then :
14038 $as_echo_n "(cached) " >&6
14041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14042 /* end confdefs.h. */
14044 #include <locale.h>
14046 #if HAVE_LANGINFO_CODESET
14047 # include <langinfo.h>
14049 #include <stdlib.h>
14050 #include <string.h>
14056 /* Check whether the given locale name is recognized by the system. */
14057 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
14058 /* On native Windows, setlocale(category, "") looks at the system settings,
14059 not at the environment variables. Also, when an encoding suffix such
14060 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14061 category of the locale to "C". */
14062 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14063 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14066 if (setlocale (LC_ALL, "") == NULL) return 1;
14068 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14069 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14070 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14071 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14072 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14073 some unit tests fail.
14074 On MirBSD 10, when an unsupported locale is specified, setlocale()
14075 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
14076 #if HAVE_LANGINFO_CODESET
14078 const char *cs = nl_langinfo (CODESET);
14079 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
14080 || strcmp (cs, "UTF-8") == 0)
14085 /* On Cygwin, avoid locale names without encoding suffix, because the
14086 locale_charset() function relies on the encoding suffix. Note that
14087 LC_ALL is set on the command line. */
14088 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14090 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
14091 on Cygwin 1.5.x. */
14092 if (MB_CUR_MAX == 1)
14094 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
14095 This excludes the UTF-8 encoding (except on MirBSD). */
14096 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14097 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
14098 for (p = buf; *p != '\0'; p++)
14099 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
14105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14106 (eval $ac_link) 2>&5
14108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14109 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
14111 # Handle native Windows specially, because there setlocale() interprets
14112 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
14113 # "fr" or "fra" as "French" or "French_France.1252",
14114 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
14115 # "ja" as "Japanese" or "Japanese_Japan.932",
14118 # Note that on native Windows, the Japanese locale is
14119 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
14120 # cannot use it here.
14121 gt_cv_locale_ja
=none
14124 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14125 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
14126 # configure script would override the LC_ALL setting. Likewise for
14127 # LC_CTYPE, which is also set at the beginning of the configure script.
14128 # Test for the AIX locale name.
14129 if (LC_ALL
=ja_JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14130 gt_cv_locale_ja
=ja_JP
14132 # Test for the locale name with explicit encoding suffix.
14133 if (LC_ALL
=ja_JP.EUC-JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14134 gt_cv_locale_ja
=ja_JP.EUC-JP
14136 # Test for the HP-UX, OSF/1, NetBSD locale name.
14137 if (LC_ALL
=ja_JP.eucJP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14138 gt_cv_locale_ja
=ja_JP.eucJP
14140 # Test for the IRIX, FreeBSD locale name.
14141 if (LC_ALL
=ja_JP.EUC LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14142 gt_cv_locale_ja
=ja_JP.EUC
14144 # Test for the Solaris 7 locale name.
14145 if (LC_ALL
=ja LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14148 # Special test for NetBSD 1.6.
14149 if test -f /usr
/share
/locale
/ja_JP.eucJP
/LC_CTYPE
; then
14150 gt_cv_locale_ja
=ja_JP.eucJP
14153 gt_cv_locale_ja
=none
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
14167 $as_echo "$gt_cv_locale_ja" >&6; }
14168 LOCALE_JA
=$gt_cv_locale_ja
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
14175 $as_echo_n "checking for a transitional chinese locale... " >&6; }
14176 if ${gt_cv_locale_zh_CN+:} false
; then :
14177 $as_echo_n "(cached) " >&6
14180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14181 /* end confdefs.h. */
14183 #include <locale.h>
14184 #include <stdlib.h>
14186 #if HAVE_LANGINFO_CODESET
14187 # include <langinfo.h>
14189 #include <stdlib.h>
14190 #include <string.h>
14196 /* Check whether the given locale name is recognized by the system. */
14197 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
14198 /* On native Windows, setlocale(category, "") looks at the system settings,
14199 not at the environment variables. Also, when an encoding suffix such
14200 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14201 category of the locale to "C". */
14202 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14203 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14206 if (setlocale (LC_ALL, "") == NULL) return 1;
14208 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14209 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14210 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14211 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14212 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14213 some unit tests fail.
14214 On MirBSD 10, when an unsupported locale is specified, setlocale()
14215 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
14216 #if HAVE_LANGINFO_CODESET
14218 const char *cs = nl_langinfo (CODESET);
14219 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
14220 || strcmp (cs, "UTF-8") == 0)
14225 /* On Cygwin, avoid locale names without encoding suffix, because the
14226 locale_charset() function relies on the encoding suffix. Note that
14227 LC_ALL is set on the command line. */
14228 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14230 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
14231 This excludes the UTF-8 encoding (except on MirBSD). */
14232 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14233 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
14234 for (p = buf; *p != '\0'; p++)
14235 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
14237 /* Check whether a typical GB18030 multibyte sequence is recognized as a
14238 single wide character. This excludes the GB2312 and GBK encodings. */
14239 if (mblen ("\203\062\332\066", 5) != 4)
14245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14246 (eval $ac_link) 2>&5
14248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14249 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
14251 # Handle native Windows specially, because there setlocale() interprets
14252 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
14253 # "fr" or "fra" as "French" or "French_France.1252",
14254 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
14255 # "ja" as "Japanese" or "Japanese_Japan.932",
14258 # Test for the hypothetical native Windows locale name.
14259 if (LC_ALL
=Chinese_China
.54936 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14260 gt_cv_locale_zh_CN
=Chinese_China
.54936
14263 gt_cv_locale_zh_CN
=none
14267 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
14268 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
14269 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
14270 gt_cv_locale_zh_CN
=none
14273 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14274 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
14275 # configure script would override the LC_ALL setting. Likewise for
14276 # LC_CTYPE, which is also set at the beginning of the configure script.
14277 # Test for the locale name without encoding suffix.
14278 if (LC_ALL
=zh_CN LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14279 gt_cv_locale_zh_CN
=zh_CN
14281 # Test for the locale name with explicit encoding suffix.
14282 if (LC_ALL
=zh_CN.GB18030 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14283 gt_cv_locale_zh_CN
=zh_CN.GB18030
14286 gt_cv_locale_zh_CN
=none
14292 # If there was a link error, due to mblen(), the system is so old that
14293 # it certainly doesn't have a chinese locale.
14294 gt_cv_locale_zh_CN
=none
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
14300 $as_echo "$gt_cv_locale_zh_CN" >&6; }
14301 LOCALE_ZH_CN
=$gt_cv_locale_zh_CN
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
14307 $as_echo_n "checking for a french Unicode locale... " >&6; }
14308 if ${gt_cv_locale_fr_utf8+:} false
; then :
14309 $as_echo_n "(cached) " >&6
14312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14313 /* end confdefs.h. */
14315 #include <locale.h>
14317 #if HAVE_LANGINFO_CODESET
14318 # include <langinfo.h>
14320 #include <stdlib.h>
14321 #include <string.h>
14325 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
14326 imitates locale dependent behaviour by looking at the environment
14327 variables, and all locales use the UTF-8 encoding. */
14328 #if !(defined __BEOS__ || defined __HAIKU__)
14329 /* Check whether the given locale name is recognized by the system. */
14330 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
14331 /* On native Windows, setlocale(category, "") looks at the system settings,
14332 not at the environment variables. Also, when an encoding suffix such
14333 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14334 category of the locale to "C". */
14335 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14336 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14339 if (setlocale (LC_ALL, "") == NULL) return 1;
14341 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14342 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14343 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14344 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14345 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14346 some unit tests fail. */
14347 # if HAVE_LANGINFO_CODESET
14349 const char *cs = nl_langinfo (CODESET);
14350 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
14355 /* On Cygwin, avoid locale names without encoding suffix, because the
14356 locale_charset() function relies on the encoding suffix. Note that
14357 LC_ALL is set on the command line. */
14358 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14360 /* Check whether in the abbreviation of the second month, the second
14361 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
14362 two bytes long, with UTF-8 encoding. */
14363 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14364 if (strftime (buf, sizeof (buf), "%b", &t) < 4
14365 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
14368 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
14369 /* Check whether the decimal separator is a comma.
14370 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
14371 are nl_langinfo(RADIXCHAR) are both ".". */
14372 if (localeconv () ->decimal_point[0] != ',') return 1;
14378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14379 (eval $ac_link) 2>&5
14381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14382 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
14384 # Handle native Windows specially, because there setlocale() interprets
14385 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
14386 # "fr" or "fra" as "French" or "French_France.1252",
14387 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
14388 # "ja" as "Japanese" or "Japanese_Japan.932",
14391 # Test for the hypothetical native Windows locale name.
14392 if (LC_ALL
=French_France
.65001 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14393 gt_cv_locale_fr_utf8
=French_France
.65001
14396 gt_cv_locale_fr_utf8
=none
14400 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14401 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
14402 # configure script would override the LC_ALL setting. Likewise for
14403 # LC_CTYPE, which is also set at the beginning of the configure script.
14404 # Test for the usual locale name.
14405 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14406 gt_cv_locale_fr_utf8
=fr_FR
14408 # Test for the locale name with explicit encoding suffix.
14409 if (LC_ALL
=fr_FR.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14410 gt_cv_locale_fr_utf8
=fr_FR.UTF-8
14412 # Test for the Solaris 7 locale name.
14413 if (LC_ALL
=fr.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14414 gt_cv_locale_fr_utf8
=fr.UTF-8
14417 gt_cv_locale_fr_utf8
=none
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
14428 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
14429 LOCALE_FR_UTF8
=$gt_cv_locale_fr_utf8
14447 GNULIB_RAWMEMCHR
=0;
14450 GNULIB_STRCHRNUL
=0;
14458 GNULIB_STRCASESTR
=0;
14465 GNULIB_MBSCASECMP
=0;
14466 GNULIB_MBSNCASECMP
=0;
14467 GNULIB_MBSPCASECMP
=0;
14468 GNULIB_MBSCASESTR
=0;
14475 GNULIB_STRERROR_R
=0;
14476 GNULIB_STRSIGNAL
=0;
14477 GNULIB_STRVERSCMP
=0;
14482 HAVE_DECL_MEMMEM
=1;
14484 HAVE_DECL_MEMRCHR
=1;
14489 HAVE_DECL_STRDUP
=1;
14490 HAVE_DECL_STRNDUP
=1;
14491 HAVE_DECL_STRNLEN
=1;
14495 HAVE_DECL_STRTOK_R
=1;
14496 HAVE_DECL_STRERROR_R
=1;
14497 HAVE_DECL_STRSIGNAL
=1;
14504 REPLACE_STRCASESTR
=0;
14505 REPLACE_STRCHRNUL
=0;
14506 REPLACE_STRERROR
=0;
14507 REPLACE_STRERROR_R
=0;
14511 REPLACE_STRSIGNAL
=0;
14512 REPLACE_STRTOK_R
=0;
14513 UNDEFINE_STRTOK_R
=0;
14519 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
14520 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
14521 # irrelevant for anonymous mappings.
14522 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
14523 if test "x$ac_cv_func_mmap" = xyes
; then :
14530 # Try to allow MAP_ANONYMOUS.
14531 gl_have_mmap_anonymous
=no
14532 if test $gl_have_mmap = yes; then
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
14534 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
14535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14536 /* end confdefs.h. */
14538 #include <sys/mman.h>
14539 #ifdef MAP_ANONYMOUS
14540 I cannot identify this map
14544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14545 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
14546 gl_have_mmap_anonymous
=yes
14550 if test $gl_have_mmap_anonymous != yes; then
14551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14552 /* end confdefs.h. */
14554 #include <sys/mman.h>
14556 I cannot identify this map
14560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14561 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
14563 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
14565 gl_have_mmap_anonymous
=yes
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
14571 $as_echo "$gl_have_mmap_anonymous" >&6; }
14572 if test $gl_have_mmap_anonymous = yes; then
14574 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
14584 if test $HAVE_MEMCHR = 1; then
14585 # Detect platform-specific bugs in some versions of glibc:
14586 # memchr should not dereference anything with length 0
14587 # http://bugzilla.redhat.com/499689
14588 # memchr should not dereference overestimated length after a match
14589 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
14590 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
14591 # Assume that memchr works on platforms that lack mprotect.
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
14593 $as_echo_n "checking whether memchr works... " >&6; }
14594 if ${gl_cv_func_memchr_works+:} false
; then :
14595 $as_echo_n "(cached) " >&6
14597 if test "$cross_compiling" = yes; then :
14598 gl_cv_func_memchr_works
="guessing no"
14600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14601 /* end confdefs.h. */
14603 #include <string.h>
14604 #if HAVE_SYS_MMAN_H
14605 # include <fcntl.h>
14606 # include <unistd.h>
14607 # include <sys/types.h>
14608 # include <sys/mman.h>
14610 # define MAP_FILE 0
14619 char *fence = NULL;
14620 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
14621 # if HAVE_MAP_ANONYMOUS
14622 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
14624 # else /* !HAVE_MAP_ANONYMOUS */
14625 const int flags = MAP_FILE | MAP_PRIVATE;
14626 int fd = open ("/dev/zero", O_RDONLY, 0666);
14630 int pagesize = getpagesize ();
14632 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
14634 if (two_pages != (char *)(-1)
14635 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
14636 fence = two_pages + pagesize;
14641 if (memchr (fence, 0, 0))
14643 strcpy (fence - 9, "12345678");
14644 if (memchr (fence - 9, 0, 79) != fence - 1)
14646 if (memchr (fence - 1, 0, 3) != fence - 1)
14655 if ac_fn_c_try_run
"$LINENO"; then :
14656 gl_cv_func_memchr_works
=yes
14658 gl_cv_func_memchr_works
=no
14660 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14661 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
14666 $as_echo "$gl_cv_func_memchr_works" >&6; }
14667 if test "$gl_cv_func_memchr_works" != yes; then
14675 gl_cv_c_multiarch
=no
14676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14677 /* end confdefs.h. */
14678 #ifndef __APPLE_CC__
14679 not a universal capable compiler
14684 if ac_fn_c_try_compile
"$LINENO"; then :
14688 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14689 if test -n "$prev"; then
14691 i?
86 | x86_64 | ppc | ppc64
)
14692 if test -z "$arch" ||
test "$arch" = "$word"; then
14695 gl_cv_c_multiarch
=yes
14701 if test "x$word" = "x-arch"; then
14708 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14709 if test $gl_cv_c_multiarch = yes; then
14710 APPLE_UNIVERSAL_BUILD
=1
14712 APPLE_UNIVERSAL_BUILD
=0
14718 ac_fn_c_check_decl
"$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
14719 if test "x$ac_cv_have_decl_alarm" = xyes
; then :
14725 cat >>confdefs.h
<<_ACEOF
14726 #define HAVE_DECL_ALARM $ac_have_decl
14731 for ac_header
in stdlib.h
14733 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
14734 if test "x$ac_cv_header_stdlib_h" = xyes
; then :
14735 cat >>confdefs.h
<<_ACEOF
14736 #define HAVE_STDLIB_H 1
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
14744 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14745 if ${ac_cv_func_malloc_0_nonnull+:} false
; then :
14746 $as_echo_n "(cached) " >&6
14748 if test "$cross_compiling" = yes; then :
14750 # Guess yes on platforms where we know the result.
14751 *-gnu* | freebsd
* | netbsd
* | openbsd
* \
14752 | hpux
* | solaris
* | cygwin
* | mingw
*)
14753 ac_cv_func_malloc_0_nonnull
=yes ;;
14754 # If we don't know, assume the worst.
14755 *) ac_cv_func_malloc_0_nonnull
=no
;;
14759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14760 /* end confdefs.h. */
14761 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
14762 # include <stdlib.h>
14770 return ! malloc (0);
14776 if ac_fn_c_try_run
"$LINENO"; then :
14777 ac_cv_func_malloc_0_nonnull
=yes
14779 ac_cv_func_malloc_0_nonnull
=no
14781 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14782 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
14788 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
14789 if test $ac_cv_func_malloc_0_nonnull = yes; then :
14790 gl_cv_func_malloc_0_nonnull
=1
14792 gl_cv_func_malloc_0_nonnull
=0
14796 cat >>confdefs.h
<<_ACEOF
14797 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14806 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14807 if ${ac_cv_header_stdbool_h+:} false
; then :
14808 $as_echo_n "(cached) " >&6
14810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14811 /* end confdefs.h. */
14813 #include <stdbool.h>
14815 "error: bool is not defined"
14818 "error: false is not defined"
14821 "error: false is not 0"
14824 "error: true is not defined"
14827 "error: true is not 1"
14829 #ifndef __bool_true_false_are_defined
14830 "error: __bool_true_false_are_defined is not defined"
14833 struct s { _Bool s: 1; _Bool t; } s;
14835 char a[true == 1 ? 1 : -1];
14836 char b[false == 0 ? 1 : -1];
14837 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14838 char d[(bool) 0.5 == true ? 1 : -1];
14839 /* See body of main program for 'e'. */
14840 char f[(_Bool) 0.0 == false ? 1 : -1];
14842 char h[sizeof (_Bool)];
14843 char i[sizeof s.t];
14844 enum { j = false, k = true, l = false * true, m = true * 256 };
14845 /* The following fails for
14846 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14848 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14849 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14850 /* Catch a bug in an HP-UX C compiler. See
14851 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14852 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14864 /* Refer to every declared value, to avoid compiler optimizations. */
14865 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14866 + !m + !n + !o + !p + !q + !pq);
14872 if ac_fn_c_try_compile
"$LINENO"; then :
14873 ac_cv_header_stdbool_h
=yes
14875 ac_cv_header_stdbool_h
=no
14877 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14880 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14881 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14882 if test "x$ac_cv_type__Bool" = xyes
; then :
14884 cat >>confdefs.h
<<_ACEOF
14885 #define HAVE__BOOL 1
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14894 $as_echo_n "checking for unsigned long long int... " >&6; }
14895 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
14896 $as_echo_n "(cached) " >&6
14898 ac_cv_type_unsigned_long_long_int
=yes
14899 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
14900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14901 /* end confdefs.h. */
14903 /* For now, do not test the preprocessor; as of 2007 there are too many
14904 implementations with broken preprocessors. Perhaps this can
14905 be revisited in 2012. In the meantime, code should not expect
14906 #if to work with literals wider than 32 bits. */
14907 /* Test literals. */
14908 long long int ll = 9223372036854775807ll;
14909 long long int nll = -9223372036854775807LL;
14910 unsigned long long int ull = 18446744073709551615ULL;
14911 /* Test constant expressions. */
14912 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14914 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14920 /* Test availability of runtime routines for shift and division. */
14921 long long int llmax = 9223372036854775807ll;
14922 unsigned long long int ullmax = 18446744073709551615ull;
14923 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14924 | (llmax / ll) | (llmax % ll)
14925 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14926 | (ullmax / ull) | (ullmax % ull));
14932 if ac_fn_c_try_link
"$LINENO"; then :
14935 ac_cv_type_unsigned_long_long_int
=no
14937 rm -f core conftest.err conftest.
$ac_objext \
14938 conftest
$ac_exeext conftest.
$ac_ext
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
14942 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
14943 if test $ac_cv_type_unsigned_long_long_int = yes; then
14945 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14952 $as_echo_n "checking for long long int... " >&6; }
14953 if ${ac_cv_type_long_long_int+:} false
; then :
14954 $as_echo_n "(cached) " >&6
14956 ac_cv_type_long_long_int
=yes
14957 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
14958 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
14959 if test $ac_cv_type_long_long_int = yes; then
14960 if test "$cross_compiling" = yes; then :
14963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14964 /* end confdefs.h. */
14965 #include <limits.h>
14968 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14969 # define LLONG_MAX (HALF - 1 + HALF)
14974 long long int n = 1;
14978 long long int m = n << i;
14981 if (LLONG_MAX / 2 < m)
14989 if ac_fn_c_try_run
"$LINENO"; then :
14992 ac_cv_type_long_long_int
=no
14994 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14995 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
15002 $as_echo "$ac_cv_type_long_long_int" >&6; }
15003 if test $ac_cv_type_long_long_int = yes; then
15005 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
15014 if test $ac_cv_type_long_long_int = yes; then
15015 HAVE_LONG_LONG_INT
=1
15017 HAVE_LONG_LONG_INT
=0
15021 if test $ac_cv_type_unsigned_long_long_int = yes; then
15022 HAVE_UNSIGNED_LONG_LONG_INT
=1
15024 HAVE_UNSIGNED_LONG_LONG_INT
=0
15029 if test $ac_cv_header_wchar_h = yes; then
15036 if test $ac_cv_header_inttypes_h = yes; then
15043 if test $ac_cv_header_sys_types_h = yes; then
15059 if test $gl_cv_have_include_next = yes; then
15060 gl_cv_next_stdint_h
='<'stdint.h
'>'
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
15063 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
15064 if ${gl_cv_next_stdint_h+:} false
; then :
15065 $as_echo_n "(cached) " >&6
15068 if test $ac_cv_header_stdint_h = yes; then
15071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15072 /* end confdefs.h. */
15073 #include <stdint.h>
15077 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15078 *) gl_absname_cpp
="$ac_cpp" ;;
15083 gl_dirsep_regex
='[/\\]'
15086 gl_dirsep_regex
='\/'
15089 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15091 gl_header_literal_regex
=`echo 'stdint.h' \
15092 | sed -e "$gl_make_literal_regex_sed"`
15093 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15094 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15099 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15100 sed -n "$gl_absolute_header_sed"`'"'
15102 gl_cv_next_stdint_h
='<'stdint.h
'>'
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
15108 $as_echo "$gl_cv_next_stdint_h" >&6; }
15110 NEXT_STDINT_H
=$gl_cv_next_stdint_h
15112 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15113 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15114 gl_next_as_first_directive
='<'stdint.h
'>'
15116 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15117 gl_next_as_first_directive
=$gl_cv_next_stdint_h
15119 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
15124 if test $ac_cv_header_stdint_h = yes; then
15131 if test $ac_cv_header_stdint_h = yes; then
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
15133 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
15134 if ${gl_cv_header_working_stdint_h+:} false
; then :
15135 $as_echo_n "(cached) " >&6
15137 gl_cv_header_working_stdint_h
=no
15138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h. */
15142 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
15143 #include <stdint.h>
15144 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
15145 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
15146 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
15150 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15151 included before <wchar.h>. */
15152 #include <stddef.h>
15153 #include <signal.h>
15155 # include <stdio.h>
15157 # include <wchar.h>
15162 int8_t a1 = INT8_MAX;
15163 int8_t a1min = INT8_MIN;
15166 int16_t a2 = INT16_MAX;
15167 int16_t a2min = INT16_MIN;
15170 int32_t a3 = INT32_MAX;
15171 int32_t a3min = INT32_MIN;
15174 int64_t a4 = INT64_MAX;
15175 int64_t a4min = INT64_MIN;
15178 uint8_t b1 = UINT8_MAX;
15180 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
15183 uint16_t b2 = UINT16_MAX;
15186 uint32_t b3 = UINT32_MAX;
15189 uint64_t b4 = UINT64_MAX;
15191 int_least8_t c1 = INT8_C (0x7f);
15192 int_least8_t c1max = INT_LEAST8_MAX;
15193 int_least8_t c1min = INT_LEAST8_MIN;
15194 int_least16_t c2 = INT16_C (0x7fff);
15195 int_least16_t c2max = INT_LEAST16_MAX;
15196 int_least16_t c2min = INT_LEAST16_MIN;
15197 int_least32_t c3 = INT32_C (0x7fffffff);
15198 int_least32_t c3max = INT_LEAST32_MAX;
15199 int_least32_t c3min = INT_LEAST32_MIN;
15200 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
15201 int_least64_t c4max = INT_LEAST64_MAX;
15202 int_least64_t c4min = INT_LEAST64_MIN;
15203 uint_least8_t d1 = UINT8_C (0xff);
15204 uint_least8_t d1max = UINT_LEAST8_MAX;
15205 uint_least16_t d2 = UINT16_C (0xffff);
15206 uint_least16_t d2max = UINT_LEAST16_MAX;
15207 uint_least32_t d3 = UINT32_C (0xffffffff);
15208 uint_least32_t d3max = UINT_LEAST32_MAX;
15209 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
15210 uint_least64_t d4max = UINT_LEAST64_MAX;
15211 int_fast8_t e1 = INT_FAST8_MAX;
15212 int_fast8_t e1min = INT_FAST8_MIN;
15213 int_fast16_t e2 = INT_FAST16_MAX;
15214 int_fast16_t e2min = INT_FAST16_MIN;
15215 int_fast32_t e3 = INT_FAST32_MAX;
15216 int_fast32_t e3min = INT_FAST32_MIN;
15217 int_fast64_t e4 = INT_FAST64_MAX;
15218 int_fast64_t e4min = INT_FAST64_MIN;
15219 uint_fast8_t f1 = UINT_FAST8_MAX;
15220 uint_fast16_t f2 = UINT_FAST16_MAX;
15221 uint_fast32_t f3 = UINT_FAST32_MAX;
15222 uint_fast64_t f4 = UINT_FAST64_MAX;
15224 intptr_t g = INTPTR_MAX;
15225 intptr_t gmin = INTPTR_MIN;
15228 uintptr_t h = UINTPTR_MAX;
15230 intmax_t i = INTMAX_MAX;
15231 uintmax_t j = UINTMAX_MAX;
15233 #include <limits.h> /* for CHAR_BIT */
15234 #define TYPE_MINIMUM(t) \
15235 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
15236 #define TYPE_MAXIMUM(t) \
15237 ((t) ((t) 0 < (t) -1 \
15239 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
15242 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
15243 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
15245 /* Detect bug in FreeBSD 6.0 / ia64. */
15246 int check_SIG_ATOMIC:
15247 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
15248 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
15250 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
15252 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
15253 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
15255 /* Detect bug in mingw. */
15257 WINT_MIN == TYPE_MINIMUM (wint_t)
15258 && WINT_MAX == TYPE_MAXIMUM (wint_t)
15261 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
15263 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
15264 int check_UINT16_C:
15265 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
15267 /* Detect bugs in OpenBSD 3.9 stdint.h. */
15269 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
15272 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
15275 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
15278 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
15280 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
15281 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
15282 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
15283 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
15284 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
15285 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
15286 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
15287 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
15288 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
15289 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
15290 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
15301 if ac_fn_c_try_compile
"$LINENO"; then :
15302 if test "$cross_compiling" = yes; then :
15303 gl_cv_header_working_stdint_h
=yes
15306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15307 /* end confdefs.h. */
15310 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
15311 #include <stdint.h>
15314 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15315 included before <wchar.h>. */
15316 #include <stddef.h>
15317 #include <signal.h>
15319 # include <stdio.h>
15321 # include <wchar.h>
15326 #include <string.h>
15327 #define MVAL(macro) MVAL1(macro)
15328 #define MVAL1(expression) #expression
15329 static const char *macro_values[] =
15363 for (mv = macro_values; *mv != NULL; mv++)
15365 const char *value = *mv;
15366 /* Test whether it looks like a cast expression. */
15367 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
15368 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
15369 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
15370 || strncmp (value, "((int)"/*)*/, 6) == 0
15371 || strncmp (value, "((signed short)"/*)*/, 15) == 0
15372 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
15373 return mv - macro_values + 1;
15381 if ac_fn_c_try_run
"$LINENO"; then :
15382 gl_cv_header_working_stdint_h
=yes
15384 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15385 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
15394 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
15396 if test "$gl_cv_header_working_stdint_h" = yes; then
15399 for ac_header
in sys
/inttypes.h sys
/bitypes.h
15401 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15402 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15403 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15404 cat >>confdefs.h
<<_ACEOF
15405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15412 if test $ac_cv_header_sys_inttypes_h = yes; then
15413 HAVE_SYS_INTTYPES_H
=1
15415 HAVE_SYS_INTTYPES_H
=0
15418 if test $ac_cv_header_sys_bitypes_h = yes; then
15419 HAVE_SYS_BITYPES_H
=1
15421 HAVE_SYS_BITYPES_H
=0
15427 if test $APPLE_UNIVERSAL_BUILD = 0; then
15430 for gltype
in ptrdiff_t size_t
; do
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
15432 $as_echo_n "checking for bit size of $gltype... " >&6; }
15433 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
15434 $as_echo_n "(cached) " >&6
15436 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
15437 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15438 included before <wchar.h>. */
15439 #include <stddef.h>
15440 #include <signal.h>
15442 # include <stdio.h>
15444 # include <wchar.h>
15447 #include <limits.h>"; then :
15453 eval gl_cv_bitsizeof_
${gltype}=\
$result
15456 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15458 $as_echo "$ac_res" >&6; }
15459 eval result
=\
$gl_cv_bitsizeof_${gltype}
15460 if test $result = unknown
; then
15463 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15464 cat >>confdefs.h
<<_ACEOF
15465 #define BITSIZEOF_${GLTYPE} $result
15468 eval BITSIZEOF_
${GLTYPE}=\
$result
15475 for gltype
in sig_atomic_t wchar_t wint_t
; do
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
15477 $as_echo_n "checking for bit size of $gltype... " >&6; }
15478 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
15479 $as_echo_n "(cached) " >&6
15481 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
15482 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15483 included before <wchar.h>. */
15484 #include <stddef.h>
15485 #include <signal.h>
15487 # include <stdio.h>
15489 # include <wchar.h>
15492 #include <limits.h>"; then :
15498 eval gl_cv_bitsizeof_
${gltype}=\
$result
15501 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15503 $as_echo "$ac_res" >&6; }
15504 eval result
=\
$gl_cv_bitsizeof_${gltype}
15505 if test $result = unknown
; then
15508 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15509 cat >>confdefs.h
<<_ACEOF
15510 #define BITSIZEOF_${GLTYPE} $result
15513 eval BITSIZEOF_
${GLTYPE}=\
$result
15519 for gltype
in sig_atomic_t wchar_t wint_t
; do
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
15521 $as_echo_n "checking whether $gltype is signed... " >&6; }
15522 if eval \
${gl_cv_type_${gltype}_signed+:} false
; then :
15523 $as_echo_n "(cached) " >&6
15525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15526 /* end confdefs.h. */
15528 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15529 included before <wchar.h>. */
15530 #include <stddef.h>
15531 #include <signal.h>
15533 # include <stdio.h>
15535 # include <wchar.h>
15538 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
15547 if ac_fn_c_try_compile
"$LINENO"; then :
15552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15553 eval gl_cv_type_
${gltype}_signed
=\
$result
15556 eval ac_res
=\
$gl_cv_type_${gltype}_signed
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15558 $as_echo "$ac_res" >&6; }
15559 eval result
=\
$gl_cv_type_${gltype}_signed
15560 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15561 if test "$result" = yes; then
15562 cat >>confdefs.h
<<_ACEOF
15563 #define HAVE_SIGNED_${GLTYPE} 1
15566 eval HAVE_SIGNED_
${GLTYPE}=1
15568 eval HAVE_SIGNED_
${GLTYPE}=0
15573 gl_cv_type_ptrdiff_t_signed
=yes
15574 gl_cv_type_size_t_signed
=no
15575 if test $APPLE_UNIVERSAL_BUILD = 0; then
15578 for gltype
in ptrdiff_t size_t
; do
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
15580 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
15581 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
15582 $as_echo_n "(cached) " >&6
15584 eval gl_cv_type_
${gltype}_suffix
=no
15585 eval result
=\
$gl_cv_type_${gltype}_signed
15586 if test "$result" = yes; then
15591 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
15593 '') gltype1
='int';;
15594 l
) gltype1
='long int';;
15595 ll
) gltype1
='long long int';;
15596 i64
) gltype1
='__int64';;
15597 u
) gltype1
='unsigned int';;
15598 ul
) gltype1
='unsigned long int';;
15599 ull
) gltype1
='unsigned long long int';;
15600 ui64
)gltype1
='unsigned __int64';;
15602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15603 /* end confdefs.h. */
15605 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15606 included before <wchar.h>. */
15607 #include <stddef.h>
15608 #include <signal.h>
15610 # include <stdio.h>
15612 # include <wchar.h>
15615 extern $gltype foo;
15616 extern $gltype1 foo;
15625 if ac_fn_c_try_compile
"$LINENO"; then :
15626 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
15628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15629 eval result
=\
$gl_cv_type_${gltype}_suffix
15630 test "$result" != no
&& break
15633 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15635 $as_echo "$ac_res" >&6; }
15636 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15637 eval result
=\
$gl_cv_type_${gltype}_suffix
15638 test "$result" = no
&& result
=
15639 eval ${GLTYPE}_SUFFIX
=\
$result
15640 cat >>confdefs.h
<<_ACEOF
15641 #define ${GLTYPE}_SUFFIX $result
15650 for gltype
in sig_atomic_t wchar_t wint_t
; do
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
15652 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
15653 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
15654 $as_echo_n "(cached) " >&6
15656 eval gl_cv_type_
${gltype}_suffix
=no
15657 eval result
=\
$gl_cv_type_${gltype}_signed
15658 if test "$result" = yes; then
15663 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
15665 '') gltype1
='int';;
15666 l
) gltype1
='long int';;
15667 ll
) gltype1
='long long int';;
15668 i64
) gltype1
='__int64';;
15669 u
) gltype1
='unsigned int';;
15670 ul
) gltype1
='unsigned long int';;
15671 ull
) gltype1
='unsigned long long int';;
15672 ui64
)gltype1
='unsigned __int64';;
15674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15675 /* end confdefs.h. */
15677 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15678 included before <wchar.h>. */
15679 #include <stddef.h>
15680 #include <signal.h>
15682 # include <stdio.h>
15684 # include <wchar.h>
15687 extern $gltype foo;
15688 extern $gltype1 foo;
15697 if ac_fn_c_try_compile
"$LINENO"; then :
15698 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
15700 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15701 eval result
=\
$gl_cv_type_${gltype}_suffix
15702 test "$result" != no
&& break
15705 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15707 $as_echo "$ac_res" >&6; }
15708 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15709 eval result
=\
$gl_cv_type_${gltype}_suffix
15710 test "$result" = no
&& result
=
15711 eval ${GLTYPE}_SUFFIX
=\
$result
15712 cat >>confdefs.h
<<_ACEOF
15713 #define ${GLTYPE}_SUFFIX $result
15720 if test $BITSIZEOF_WINT_T -lt 32; then
15721 BITSIZEOF_WINT_T
=32
15727 if test -n "$STDINT_H"; then
15728 GL_GENERATE_STDINT_H_TRUE
=
15729 GL_GENERATE_STDINT_H_FALSE
='#'
15731 GL_GENERATE_STDINT_H_TRUE
='#'
15732 GL_GENERATE_STDINT_H_FALSE
=
15740 HAVE_DECL_STRNCASECMP
=1;
15743 REPLACE_STRERROR_0
=0
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
15745 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
15746 if ${gl_cv_func_strerror_0_works+:} false
; then :
15747 $as_echo_n "(cached) " >&6
15749 if test "$cross_compiling" = yes; then :
15751 # Guess yes on glibc systems.
15752 *-gnu*) gl_cv_func_strerror_0_works
="guessing yes" ;;
15753 # If we don't know, assume the worst.
15754 *) gl_cv_func_strerror_0_works
="guessing no" ;;
15758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15759 /* end confdefs.h. */
15760 #include <string.h>
15769 str = strerror (0);
15770 if (!*str) result |= 1;
15771 if (errno) result |= 2;
15772 if (strstr (str, "nknown") || strstr (str, "ndefined"))
15779 if ac_fn_c_try_run
"$LINENO"; then :
15780 gl_cv_func_strerror_0_works
=yes
15782 gl_cv_func_strerror_0_works
=no
15784 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15785 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
15791 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
15792 case "$gl_cv_func_strerror_0_works" in
15795 REPLACE_STRERROR_0
=1
15797 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
15815 if test $gl_cv_have_include_next = yes; then
15816 gl_cv_next_string_h
='<'string.h
'>'
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
15819 $as_echo_n "checking absolute name of <string.h>... " >&6; }
15820 if ${gl_cv_next_string_h+:} false
; then :
15821 $as_echo_n "(cached) " >&6
15824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15825 /* end confdefs.h. */
15826 #include <string.h>
15830 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15831 *) gl_absname_cpp
="$ac_cpp" ;;
15836 gl_dirsep_regex
='[/\\]'
15839 gl_dirsep_regex
='\/'
15842 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15844 gl_header_literal_regex
=`echo 'string.h' \
15845 | sed -e "$gl_make_literal_regex_sed"`
15846 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15847 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15852 gl_cv_next_string_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15853 sed -n "$gl_absolute_header_sed"`'"'
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
15858 $as_echo "$gl_cv_next_string_h" >&6; }
15860 NEXT_STRING_H
=$gl_cv_next_string_h
15862 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15863 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15864 gl_next_as_first_directive
='<'string.h
'>'
15866 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15867 gl_next_as_first_directive
=$gl_cv_next_string_h
15869 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
15876 for gl_func
in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r strsignal strverscmp
; do
15877 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15879 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15880 if eval \
${$as_gl_Symbol+:} false
; then :
15881 $as_echo_n "(cached) " >&6
15883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15884 /* end confdefs.h. */
15885 #include <string.h>
15896 if ac_fn_c_try_compile
"$LINENO"; then :
15897 eval "$as_gl_Symbol=yes"
15899 eval "$as_gl_Symbol=no"
15901 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15903 eval ac_res
=\$
$as_gl_Symbol
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15905 $as_echo "$ac_res" >&6; }
15906 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
15907 cat >>confdefs.h
<<_ACEOF
15908 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15911 eval ac_cv_have_decl_
$gl_func=yes
15930 if test $gl_cv_have_include_next = yes; then
15931 gl_cv_next_strings_h
='<'strings.h
'>'
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <strings.h>" >&5
15934 $as_echo_n "checking absolute name of <strings.h>... " >&6; }
15935 if ${gl_cv_next_strings_h+:} false
; then :
15936 $as_echo_n "(cached) " >&6
15939 if test $ac_cv_header_strings_h = yes; then
15942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15943 /* end confdefs.h. */
15944 #include <strings.h>
15948 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15949 *) gl_absname_cpp
="$ac_cpp" ;;
15954 gl_dirsep_regex
='[/\\]'
15957 gl_dirsep_regex
='\/'
15960 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15962 gl_header_literal_regex
=`echo 'strings.h' \
15963 | sed -e "$gl_make_literal_regex_sed"`
15964 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15965 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15970 gl_cv_next_strings_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15971 sed -n "$gl_absolute_header_sed"`'"'
15973 gl_cv_next_strings_h
='<'strings.h
'>'
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5
15979 $as_echo "$gl_cv_next_strings_h" >&6; }
15981 NEXT_STRINGS_H
=$gl_cv_next_strings_h
15983 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15984 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15985 gl_next_as_first_directive
='<'strings.h
'>'
15987 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15988 gl_next_as_first_directive
=$gl_cv_next_strings_h
15990 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
=$gl_next_as_first_directive
15995 if test $ac_cv_header_strings_h = yes; then
16003 for gl_func
in ffs strcasecmp strncasecmp
; do
16004 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16006 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16007 if eval \
${$as_gl_Symbol+:} false
; then :
16008 $as_echo_n "(cached) " >&6
16010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16011 /* end confdefs.h. */
16013 /* Minix 3.1.8 has a bug: <sys/types.h> must be included before
16015 #include <sys/types.h>
16016 #include <strings.h>
16027 if ac_fn_c_try_compile
"$LINENO"; then :
16028 eval "$as_gl_Symbol=yes"
16030 eval "$as_gl_Symbol=no"
16032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16034 eval ac_res
=\$
$as_gl_Symbol
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16036 $as_echo "$ac_res" >&6; }
16037 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
16038 cat >>confdefs.h
<<_ACEOF
16039 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16042 eval ac_cv_have_decl_
$gl_func=yes
16047 ac_fn_c_check_decl
"$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
16048 if test "x$ac_cv_have_decl_strndup" = xyes
; then :
16054 cat >>confdefs.h
<<_ACEOF
16055 #define HAVE_DECL_STRNDUP $ac_have_decl
16060 ac_fn_c_check_decl
"$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
16061 if test "x$ac_cv_have_decl_strnlen" = xyes
; then :
16067 cat >>confdefs.h
<<_ACEOF
16068 #define HAVE_DECL_STRNLEN $ac_have_decl
16073 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16074 if test "x$ac_cv_type_pid_t" = xyes
; then :
16078 cat >>confdefs.h
<<_ACEOF
16084 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
16085 if test "x$ac_cv_type_mode_t" = xyes
; then :
16089 cat >>confdefs.h
<<_ACEOF
16097 WINDOWS_64_BIT_OFF_T
=0
16111 if test $gl_cv_have_include_next = yes; then
16112 gl_cv_next_sys_types_h
='<'sys
/types.h
'>'
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
16115 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
16116 if ${gl_cv_next_sys_types_h+:} false
; then :
16117 $as_echo_n "(cached) " >&6
16120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16121 /* end confdefs.h. */
16122 #include <sys/types.h>
16126 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16127 *) gl_absname_cpp
="$ac_cpp" ;;
16132 gl_dirsep_regex
='[/\\]'
16135 gl_dirsep_regex
='\/'
16138 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16140 gl_header_literal_regex
=`echo 'sys/types.h' \
16141 | sed -e "$gl_make_literal_regex_sed"`
16142 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16143 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16148 gl_cv_next_sys_types_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16149 sed -n "$gl_absolute_header_sed"`'"'
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
16154 $as_echo "$gl_cv_next_sys_types_h" >&6; }
16156 NEXT_SYS_TYPES_H
=$gl_cv_next_sys_types_h
16158 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16159 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16160 gl_next_as_first_directive
='<'sys
/types.h
'>'
16162 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16163 gl_next_as_first_directive
=$gl_cv_next_sys_types_h
16165 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
=$gl_next_as_first_directive
16185 gl_libunistring_sed_extract_major
='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
16190 gl_libunistring_sed_extract_minor
='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
16195 gl_libunistring_sed_extract_subminor
='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q;}
16202 if test "$HAVE_LIBUNISTRING" = yes; then
16203 LIBUNISTRING_VERSION_MAJOR
=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"`
16204 LIBUNISTRING_VERSION_MINOR
=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"`
16205 LIBUNISTRING_VERSION_SUBMINOR
=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"`
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
16212 $as_echo_n "checking for wint_t... " >&6; }
16213 if ${gt_cv_c_wint_t+:} false
; then :
16214 $as_echo_n "(cached) " >&6
16216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16217 /* end confdefs.h. */
16219 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16221 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
16222 before <wchar.h>. */
16223 #include <stddef.h>
16227 wint_t foo = (wchar_t)'\0';
16236 if ac_fn_c_try_compile
"$LINENO"; then :
16241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
16244 $as_echo "$gt_cv_c_wint_t" >&6; }
16245 if test $gt_cv_c_wint_t = yes; then
16247 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
16253 if test $ac_cv_header_features_h = yes; then
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
16262 $as_echo_n "checking for inttypes.h... " >&6; }
16263 if ${gl_cv_header_inttypes_h+:} false
; then :
16264 $as_echo_n "(cached) " >&6
16266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16267 /* end confdefs.h. */
16269 #include <sys/types.h>
16270 #include <inttypes.h>
16275 uintmax_t i = (uintmax_t) -1; return !i;
16280 if ac_fn_c_try_compile
"$LINENO"; then :
16281 gl_cv_header_inttypes_h
=yes
16283 gl_cv_header_inttypes_h
=no
16285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
16288 $as_echo "$gl_cv_header_inttypes_h" >&6; }
16289 if test $gl_cv_header_inttypes_h = yes; then
16291 cat >>confdefs.h
<<_ACEOF
16292 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
16299 $as_echo_n "checking for stdint.h... " >&6; }
16300 if ${gl_cv_header_stdint_h+:} false
; then :
16301 $as_echo_n "(cached) " >&6
16303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16304 /* end confdefs.h. */
16305 #include <sys/types.h>
16306 #include <stdint.h>
16310 uintmax_t i = (uintmax_t) -1; return !i;
16315 if ac_fn_c_try_compile
"$LINENO"; then :
16316 gl_cv_header_stdint_h
=yes
16318 gl_cv_header_stdint_h
=no
16320 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
16323 $as_echo "$gl_cv_header_stdint_h" >&6; }
16324 if test $gl_cv_header_stdint_h = yes; then
16326 cat >>confdefs.h
<<_ACEOF
16327 #define HAVE_STDINT_H_WITH_UINTMAX 1
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
16336 $as_echo_n "checking for intmax_t... " >&6; }
16337 if ${gt_cv_c_intmax_t+:} false
; then :
16338 $as_echo_n "(cached) " >&6
16340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16341 /* end confdefs.h. */
16343 #include <stddef.h>
16344 #include <stdlib.h>
16345 #if HAVE_STDINT_H_WITH_UINTMAX
16346 #include <stdint.h>
16348 #if HAVE_INTTYPES_H_WITH_UINTMAX
16349 #include <inttypes.h>
16355 intmax_t x = -1; return !x;
16360 if ac_fn_c_try_compile
"$LINENO"; then :
16361 gt_cv_c_intmax_t
=yes
16363 gt_cv_c_intmax_t
=no
16365 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
16368 $as_echo "$gt_cv_c_intmax_t" >&6; }
16369 if test $gt_cv_c_intmax_t = yes; then
16371 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
16375 test $ac_cv_type_long_long_int = yes \
16376 && ac_type
='long long' \
16379 cat >>confdefs.h
<<_ACEOF
16380 #define intmax_t $ac_type
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
16387 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
16388 if ${gl_cv_cc_double_expbit0+:} false
; then :
16389 $as_echo_n "(cached) " >&6
16392 if test "$cross_compiling" = yes; then :
16394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16395 /* end confdefs.h. */
16397 #if defined arm || defined __arm || defined __arm__
16402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16403 $EGREP "mixed_endianness" >/dev
/null
2>&1; then :
16404 gl_cv_cc_double_expbit0
="unknown"
16408 if ${ac_cv_c_bigendian+:} false
; then :
16409 $as_echo_n "(cached) " >&6
16411 ac_cv_c_bigendian
=unknown
16412 # See if we're dealing with a universal compiler.
16413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16414 /* end confdefs.h. */
16415 #ifndef __APPLE_CC__
16416 not a universal capable compiler
16421 if ac_fn_c_try_compile
"$LINENO"; then :
16423 # Check for potential -arch flags. It is not universal unless
16424 # there are at least two -arch flags with different values.
16427 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16428 if test -n "$ac_prev"; then
16430 i?
86 | x86_64 | ppc | ppc64
)
16431 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
16434 ac_cv_c_bigendian
=universal
16440 elif test "x$ac_word" = "x-arch"; then
16445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16446 if test $ac_cv_c_bigendian = unknown
; then
16447 # See if sys/param.h defines the BYTE_ORDER macro.
16448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16449 /* end confdefs.h. */
16450 #include <sys/types.h>
16451 #include <sys/param.h>
16456 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16457 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16459 bogus endian macros
16466 if ac_fn_c_try_compile
"$LINENO"; then :
16467 # It does; now see whether it defined to BIG_ENDIAN or not.
16468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16469 /* end confdefs.h. */
16470 #include <sys/types.h>
16471 #include <sys/param.h>
16476 #if BYTE_ORDER != BIG_ENDIAN
16484 if ac_fn_c_try_compile
"$LINENO"; then :
16485 ac_cv_c_bigendian
=yes
16487 ac_cv_c_bigendian
=no
16489 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16491 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16493 if test $ac_cv_c_bigendian = unknown
; then
16494 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16496 /* end confdefs.h. */
16497 #include <limits.h>
16502 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16503 bogus endian macros
16510 if ac_fn_c_try_compile
"$LINENO"; then :
16511 # It does; now see whether it defined to _BIG_ENDIAN or not.
16512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16513 /* end confdefs.h. */
16514 #include <limits.h>
16519 #ifndef _BIG_ENDIAN
16527 if ac_fn_c_try_compile
"$LINENO"; then :
16528 ac_cv_c_bigendian
=yes
16530 ac_cv_c_bigendian
=no
16532 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16536 if test $ac_cv_c_bigendian = unknown
; then
16537 # Compile a test program.
16538 if test "$cross_compiling" = yes; then :
16539 # Try to guess by grepping values from an object file.
16540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16541 /* end confdefs.h. */
16542 short int ascii_mm[] =
16543 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16544 short int ascii_ii[] =
16545 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16546 int use_ascii (int i) {
16547 return ascii_mm[i] + ascii_ii[i];
16549 short int ebcdic_ii[] =
16550 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16551 short int ebcdic_mm[] =
16552 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16553 int use_ebcdic (int i) {
16554 return ebcdic_mm[i] + ebcdic_ii[i];
16561 return use_ascii (foo) == use_ebcdic (foo);
16566 if ac_fn_c_try_compile
"$LINENO"; then :
16567 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
16568 ac_cv_c_bigendian
=yes
16570 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
16571 if test "$ac_cv_c_bigendian" = unknown
; then
16572 ac_cv_c_bigendian
=no
16574 # finding both strings is unlikely to happen, but who knows?
16575 ac_cv_c_bigendian
=unknown
16579 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16582 /* end confdefs.h. */
16583 $ac_includes_default
16588 /* Are we little or big endian? From Harbison&Steele. */
16592 char c[sizeof (long int)];
16595 return u.c[sizeof (long int) - 1] == 1;
16601 if ac_fn_c_try_run
"$LINENO"; then :
16602 ac_cv_c_bigendian
=no
16604 ac_cv_c_bigendian
=yes
16606 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16607 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16613 case $ac_cv_c_bigendian in #(
16615 gl_cv_cc_double_expbit0
="word 0 bit 20";; #(
16617 gl_cv_cc_double_expbit0
="word 1 bit 20" ;; #(
16620 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16624 gl_cv_cc_double_expbit0
="unknown" ;;
16633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16634 /* end confdefs.h. */
16637 #include <stddef.h>
16639 #include <string.h>
16641 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
16642 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
16643 static unsigned int ored_words[NWORDS];
16644 static unsigned int anded_words[NWORDS];
16645 static void add_to_ored_words (double x)
16649 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
16650 memset (&m, 0, sizeof (memory_double));
16652 for (i = 0; i < NWORDS; i++)
16654 ored_words[i] |= m.word[i];
16655 anded_words[i] &= m.word[i];
16661 FILE *fp = fopen ("conftest.out", "w");
16664 for (j = 0; j < NWORDS; j++)
16665 anded_words[j] = ~ (unsigned int) 0;
16666 add_to_ored_words (0.25);
16667 add_to_ored_words (0.5);
16668 add_to_ored_words (1.0);
16669 add_to_ored_words (2.0);
16670 add_to_ored_words (4.0);
16671 /* Remove bits that are common (e.g. if representation of the first mantissa
16672 bit is explicit). */
16673 for (j = 0; j < NWORDS; j++)
16674 ored_words[j] &= ~anded_words[j];
16675 /* Now find the nonzero word. */
16676 for (j = 0; j < NWORDS; j++)
16677 if (ored_words[j] != 0)
16682 for (i = j + 1; i < NWORDS; i++)
16683 if (ored_words[i] != 0)
16685 fprintf (fp, "unknown");
16686 return (fclose (fp) != 0);
16689 if ((ored_words[j] >> i) & 1)
16691 fprintf (fp, "word %d bit %d", (int) j, (int) i);
16692 return (fclose (fp) != 0);
16695 fprintf (fp, "unknown");
16696 return (fclose (fp) != 0);
16700 if ac_fn_c_try_run
"$LINENO"; then :
16701 gl_cv_cc_double_expbit0
=`cat conftest.out`
16703 gl_cv_cc_double_expbit0
="unknown"
16705 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16706 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
16713 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
16714 case "$gl_cv_cc_double_expbit0" in
16716 word
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
16717 bit
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
16719 cat >>confdefs.h
<<_ACEOF
16720 #define DBL_EXPBIT0_WORD $word
16724 cat >>confdefs.h
<<_ACEOF
16725 #define DBL_EXPBIT0_BIT $bit
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
16740 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
16741 if ${gl_cv_func_snprintf_retval_c99+:} false
; then :
16742 $as_echo_n "(cached) " >&6
16745 if test "$cross_compiling" = yes; then :
16748 # Guess yes on glibc systems.
16749 *-gnu*) gl_cv_func_snprintf_retval_c99
="guessing yes";;
16750 # Guess yes on FreeBSD >= 5.
16751 freebsd
[1-4]*) gl_cv_func_snprintf_retval_c99
="guessing no";;
16752 freebsd
* | kfreebsd
*) gl_cv_func_snprintf_retval_c99
="guessing yes";;
16753 # Guess yes on Mac OS X >= 10.3.
16754 darwin
[1-6].
*) gl_cv_func_snprintf_retval_c99
="guessing no";;
16755 darwin
*) gl_cv_func_snprintf_retval_c99
="guessing yes";;
16756 # Guess yes on OpenBSD >= 3.9.
16757 openbsd
[1-2].
* | openbsd3.
[0-8] | openbsd3.
[0-8].
*)
16758 gl_cv_func_snprintf_retval_c99
="guessing no";;
16759 openbsd
*) gl_cv_func_snprintf_retval_c99
="guessing yes";;
16760 # Guess yes on Solaris >= 2.10.
16761 solaris2.
[1-9][0-9]*) gl_cv_func_printf_sizes_c99
="guessing yes";;
16762 solaris
*) gl_cv_func_printf_sizes_c99
="guessing no";;
16763 # Guess yes on AIX >= 4.
16764 aix
[1-3]*) gl_cv_func_snprintf_retval_c99
="guessing no";;
16765 aix
*) gl_cv_func_snprintf_retval_c99
="guessing yes";;
16766 # Guess yes on NetBSD >= 3.
16767 netbsd
[1-2]* | netbsdelf
[1-2]* | netbsdaout
[1-2]* | netbsdcoff
[1-2]*)
16768 gl_cv_func_snprintf_retval_c99
="guessing no";;
16769 netbsd
*) gl_cv_func_snprintf_retval_c99
="guessing yes";;
16770 # Guess yes on BeOS.
16771 beos
*) gl_cv_func_snprintf_retval_c99
="guessing yes";;
16772 # If we don't know, assume the worst.
16773 *) gl_cv_func_snprintf_retval_c99
="guessing no";;
16777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16778 /* end confdefs.h. */
16781 #include <string.h>
16783 # define my_snprintf snprintf
16785 # include <stdarg.h>
16786 static int my_snprintf (char *buf, int size, const char *format, ...)
16790 va_start (args, format);
16791 ret = vsnprintf (buf, size, format, args);
16796 static char buf[100];
16799 strcpy (buf, "ABCDEF");
16800 if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
16802 if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
16804 if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
16809 if ac_fn_c_try_run
"$LINENO"; then :
16810 gl_cv_func_snprintf_retval_c99
=yes
16812 gl_cv_func_snprintf_retval_c99
=no
16814 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16815 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
16821 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
16828 for ac_func
in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
16830 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16831 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16832 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16833 cat >>confdefs.h
<<_ACEOF
16834 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16840 ac_fn_c_check_decl
"$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
16842 if test "x$ac_cv_have_decl__snprintf" = xyes
; then :
16848 cat >>confdefs.h
<<_ACEOF
16849 #define HAVE_DECL__SNPRINTF $ac_have_decl
16854 case "$gl_cv_func_snprintf_retval_c99" in
16857 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
16862 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
16863 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
16869 cat >>confdefs.h
<<_ACEOF
16870 #define HAVE_DECL_VSNPRINTF $ac_have_decl
16880 GNULIB_TOWCTRANS
=0;
16884 REPLACE_ISWBLANK
=0;
16892 GL_COND_LIBTOOL_TRUE
=
16893 GL_COND_LIBTOOL_FALSE
='#'
16895 GL_COND_LIBTOOL_TRUE
='#'
16896 GL_COND_LIBTOOL_FALSE
=
16899 gl_cond_libtool
=false
16912 gl_source_base
='grub-core/gnulib'
16915 if test $ac_cv_func_alloca_works = no
; then
16919 # Define an additional variable used in the Makefile substitution.
16920 if test $ac_cv_working_alloca_h = yes; then
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
16922 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
16923 if ${gl_cv_rpl_alloca+:} false
; then :
16924 $as_echo_n "(cached) " >&6
16927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16928 /* end confdefs.h. */
16930 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
16935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16936 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
16937 gl_cv_rpl_alloca
=yes
16939 gl_cv_rpl_alloca
=no
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
16946 $as_echo "$gl_cv_rpl_alloca" >&6; }
16947 if test $gl_cv_rpl_alloca = yes; then
16949 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16959 if test -n "$ALLOCA_H"; then
16960 GL_GENERATE_ALLOCA_H_TRUE
=
16961 GL_GENERATE_ALLOCA_H_FALSE
='#'
16963 GL_GENERATE_ALLOCA_H_TRUE
='#'
16964 GL_GENERATE_ALLOCA_H_FALSE
=
16973 ac_fn_c_check_decl
"$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
16975 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
; then :
16981 cat >>confdefs.h
<<_ACEOF
16982 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
16984 if test $ac_have_decl = 1; then :
16988 $as_echo "#define GNULIB_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
16992 ac_fn_c_check_decl
"$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
16994 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
; then :
17000 cat >>confdefs.h
<<_ACEOF
17001 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
17003 if test $ac_have_decl = 1; then :
17007 $as_echo "#define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
17012 # Check if program_invocation_name and program_invocation_short_name
17013 # are defined elsewhere. It is improbable that only one of them will
17014 # be defined and other not, I prefer to stay on the safe side and to
17015 # test each one separately.
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_name is defined" >&5
17017 $as_echo_n "checking whether program_invocation_name is defined... " >&6; }
17018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17019 /* end confdefs.h. */
17024 program_invocation_name = "test";
17029 if ac_fn_c_try_link
"$LINENO"; then :
17031 $as_echo "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17034 $as_echo "yes" >&6; }
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17037 $as_echo "no" >&6; }
17039 rm -f core conftest.err conftest.
$ac_objext \
17040 conftest
$ac_exeext conftest.
$ac_ext
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_short_name is defined" >&5
17043 $as_echo_n "checking whether program_invocation_short_name is defined... " >&6; }
17044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17045 /* end confdefs.h. */
17050 program_invocation_short_name = "test";
17055 if ac_fn_c_try_link
"$LINENO"; then :
17057 $as_echo "#define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17060 $as_echo "yes" >&6; }
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17063 $as_echo "no" >&6; }
17065 rm -f core conftest.err conftest.
$ac_objext \
17066 conftest
$ac_exeext conftest.
$ac_ext
17086 XGETTEXT_EXTRA_OPTIONS
="$XGETTEXT_EXTRA_OPTIONS --flag=argp_error:2:c-format"
17090 XGETTEXT_EXTRA_OPTIONS
="$XGETTEXT_EXTRA_OPTIONS --flag=argp_failure:4:c-format"
17098 if test $ac_cv_func_btowc = no
; then
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
17106 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
17107 if ${gl_cv_func_btowc_nul+:} false
; then :
17108 $as_echo_n "(cached) " >&6
17111 if test "$cross_compiling" = yes; then :
17114 # Guess no on Cygwin.
17115 cygwin
*) gl_cv_func_btowc_nul
="guessing no" ;;
17116 # Guess yes otherwise.
17117 *) gl_cv_func_btowc_nul
="guessing yes" ;;
17121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17122 /* end confdefs.h. */
17124 #include <string.h>
17125 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17127 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17128 included before <wchar.h>. */
17129 #include <stddef.h>
17135 if (btowc ('\0') != 0)
17140 if ac_fn_c_try_run
"$LINENO"; then :
17141 gl_cv_func_btowc_nul
=yes
17143 gl_cv_func_btowc_nul
=no
17145 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17146 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
17152 $as_echo "$gl_cv_func_btowc_nul" >&6; }
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
17155 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
17156 if ${gl_cv_func_btowc_eof+:} false
; then :
17157 $as_echo_n "(cached) " >&6
17161 # Guess no on IRIX.
17162 irix
*) gl_cv_func_btowc_eof
="guessing no" ;;
17163 # Guess yes otherwise.
17164 *) gl_cv_func_btowc_eof
="guessing yes" ;;
17166 if test $LOCALE_FR != none
; then
17167 if test "$cross_compiling" = yes; then :
17170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17171 /* end confdefs.h. */
17173 #include <locale.h>
17174 #include <string.h>
17175 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17177 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17178 included before <wchar.h>. */
17179 #include <stddef.h>
17185 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
17187 if (btowc (EOF) != WEOF)
17193 if ac_fn_c_try_run
"$LINENO"; then :
17194 gl_cv_func_btowc_eof
=yes
17196 gl_cv_func_btowc_eof
=no
17198 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17199 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
17206 $as_echo "$gl_cv_func_btowc_eof" >&6; }
17208 case "$gl_cv_func_btowc_nul" in
17210 *) REPLACE_BTOWC
=1 ;;
17212 case "$gl_cv_func_btowc_eof" in
17214 *) REPLACE_BTOWC
=1 ;;
17218 if test $HAVE_BTOWC = 0 ||
test $REPLACE_BTOWC = 1; then
17227 gl_LIBOBJS
="$gl_LIBOBJS btowc.$ac_objext"
17244 $as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
17249 if test "x$datarootdir" = x
; then
17250 datarootdir
='${datadir}'
17253 if test "x$docdir" = x
; then
17254 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
17257 if test "x$htmldir" = x
; then
17258 htmldir
='${docdir}'
17261 if test "x$dvidir" = x
; then
17265 if test "x$pdfdir" = x
; then
17269 if test "x$psdir" = x
; then
17273 if test "x$lispdir" = x
; then
17274 lispdir
='${datarootdir}/emacs/site-lisp'
17277 if test "x$localedir" = x
; then
17278 localedir
='${datarootdir}/locale'
17282 pkglibexecdir
='${libexecdir}/${PACKAGE}'
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
17292 $as_echo_n "checking whether // is distinct from /... " >&6; }
17293 if ${gl_cv_double_slash_root+:} false
; then :
17294 $as_echo_n "(cached) " >&6
17296 if test x
"$cross_compiling" = xyes
; then
17297 # When cross-compiling, there is no way to tell whether // is special
17298 # short of a list of hosts. However, the only known hosts to date
17299 # that have a distinct // are Apollo DomainOS (too old to port to),
17300 # Cygwin, and z/OS. If anyone knows of another system for which // has
17301 # special semantics and is distinct from /, please report it to
17302 # <bug-gnulib@gnu.org>.
17304 *-cygwin | i370-ibm-openedition
)
17305 gl_cv_double_slash_root
=yes ;;
17307 # Be optimistic and assume that / and // are the same when we
17309 gl_cv_double_slash_root
='unknown, assuming no' ;;
17312 set x
`ls -di / // 2>/dev/null`
17313 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
17314 gl_cv_double_slash_root
=no
17316 gl_cv_double_slash_root
=yes
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
17321 $as_echo "$gl_cv_double_slash_root" >&6; }
17322 if test "$gl_cv_double_slash_root" = yes; then
17324 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
17331 $as_echo_n "checking for error_at_line... " >&6; }
17332 if ${ac_cv_lib_error_at_line+:} false
; then :
17333 $as_echo_n "(cached) " >&6
17335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17336 /* end confdefs.h. */
17341 error_at_line (0, 0, "", 0, "an error occurred");
17346 if ac_fn_c_try_link
"$LINENO"; then :
17347 ac_cv_lib_error_at_line
=yes
17349 ac_cv_lib_error_at_line
=no
17351 rm -f core conftest.err conftest.
$ac_objext \
17352 conftest
$ac_exeext conftest.
$ac_ext
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
17355 $as_echo "$ac_cv_lib_error_at_line" >&6; }
17357 if test $ac_cv_lib_error_at_line = no
; then
17366 gl_LIBOBJS
="$gl_LIBOBJS error.$ac_objext"
17375 XGETTEXT_EXTRA_OPTIONS
="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
17379 XGETTEXT_EXTRA_OPTIONS
="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
17386 REPLACE_FLOAT_LDBL
=0
17388 aix
* | beos
* | openbsd
* | mirbsd
* | irix
*)
17392 case "$host_cpu" in
17397 # On x86_64 systems, the C compiler may still be generating
17399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17400 /* end confdefs.h. */
17401 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
17405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17406 $EGREP "yes" >/dev
/null
2>&1; then :
17417 case "$host_cpu" in
17425 aix
* | freebsd
* | linux
*)
17426 if test -n "$FLOAT_H"; then
17427 REPLACE_FLOAT_LDBL
=1
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
17434 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
17435 if ${gl_cv_func_itold_works+:} false
; then :
17436 $as_echo_n "(cached) " >&6
17439 if test "$cross_compiling" = yes; then :
17442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17443 /* end confdefs.h. */
17444 #if defined __LP64__ || defined __arch64__
17448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17449 $EGREP "yes" >/dev
/null
2>&1; then :
17450 gl_cv_func_itold_works
="guessing no"
17452 gl_cv_func_itold_works
="guessing yes"
17457 *) gl_cv_func_itold_works
="guessing yes" ;;
17461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17462 /* end confdefs.h. */
17465 volatile long double ld;
17474 if ac_fn_c_try_run
"$LINENO"; then :
17475 gl_cv_func_itold_works
=yes
17477 gl_cv_func_itold_works
=no
17479 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17480 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
17486 $as_echo "$gl_cv_func_itold_works" >&6; }
17487 case "$gl_cv_func_itold_works" in
17494 if test -n "$FLOAT_H"; then
17503 if test $gl_cv_have_include_next = yes; then
17504 gl_cv_next_float_h
='<'float.h
'>'
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
17507 $as_echo_n "checking absolute name of <float.h>... " >&6; }
17508 if ${gl_cv_next_float_h+:} false
; then :
17509 $as_echo_n "(cached) " >&6
17512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17513 /* end confdefs.h. */
17518 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17519 *) gl_absname_cpp
="$ac_cpp" ;;
17524 gl_dirsep_regex
='[/\\]'
17527 gl_dirsep_regex
='\/'
17530 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17532 gl_header_literal_regex
=`echo 'float.h' \
17533 | sed -e "$gl_make_literal_regex_sed"`
17534 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17535 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17540 gl_cv_next_float_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17541 sed -n "$gl_absolute_header_sed"`'"'
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
17546 $as_echo "$gl_cv_next_float_h" >&6; }
17548 NEXT_FLOAT_H
=$gl_cv_next_float_h
17550 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17551 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17552 gl_next_as_first_directive
='<'float.h
'>'
17554 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17555 gl_next_as_first_directive
=$gl_cv_next_float_h
17557 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
=$gl_next_as_first_directive
17564 if test -n "$FLOAT_H"; then
17565 GL_GENERATE_FLOAT_H_TRUE
=
17566 GL_GENERATE_FLOAT_H_FALSE
='#'
17568 GL_GENERATE_FLOAT_H_TRUE
='#'
17569 GL_GENERATE_FLOAT_H_FALSE
=
17574 if test $REPLACE_FLOAT_LDBL = 1; then
17583 gl_LIBOBJS
="$gl_LIBOBJS float.$ac_objext"
17586 if test $REPLACE_ITOLD = 1; then
17595 gl_LIBOBJS
="$gl_LIBOBJS itold.$ac_objext"
17604 gl_fnmatch_required_lowercase
=`
17605 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
17607 gl_fnmatch_cache_var
="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
17609 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
17610 if eval \
${$gl_fnmatch_cache_var+:} false
; then :
17611 $as_echo_n "(cached) " >&6
17613 if test $gl_fnmatch_required = GNU
; then
17614 gl_fnmatch_gnu_start
=
17615 gl_fnmatch_gnu_end
=
17617 gl_fnmatch_gnu_start
='#if 0'
17618 gl_fnmatch_gnu_end
='#endif'
17620 if test "$cross_compiling" = yes; then :
17621 eval "$gl_fnmatch_cache_var=\"guessing no\""
17623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17624 /* end confdefs.h. */
17625 #include <fnmatch.h>
17627 y (char const *pattern, char const *string, int flags)
17629 return fnmatch (pattern, string, flags) == 0;
17632 n (char const *pattern, char const *string, int flags)
17634 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
17640 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
17641 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
17642 static char const A_1[] = { 'A' - 1, 0 };
17643 static char const A01[] = { 'A' + 1, 0 };
17644 static char const a_1[] = { 'a' - 1, 0 };
17645 static char const a01[] = { 'a' + 1, 0 };
17646 static char const bs_1[] = { '\\\\' - 1, 0 };
17647 static char const bs01[] = { '\\\\' + 1, 0 };
17649 if (!n ("a*", "", 0))
17651 if (!y ("a*", "abc", 0))
17653 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
17655 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
17657 if (!y ("a\\\\bc", "abc", 0))
17659 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
17661 if (!y ("*x", ".x", 0))
17663 if (!n ("*x", ".x", FNM_PERIOD))
17665 if (!y (Apat, "\\\\", 0))
17667 if (!y (Apat, "A", 0))
17669 if (!y (apat, "\\\\", 0))
17671 if (!y (apat, "a", 0))
17673 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
17675 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
17677 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
17679 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
17681 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
17683 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
17685 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
17687 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
17689 $gl_fnmatch_gnu_start
17690 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
17692 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
17694 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
17696 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
17698 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
17700 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
17702 $gl_fnmatch_gnu_end
17709 if ac_fn_c_try_run
"$LINENO"; then :
17710 eval "$gl_fnmatch_cache_var=yes"
17712 eval "$gl_fnmatch_cache_var=no"
17714 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17715 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17720 eval ac_res
=\$
$gl_fnmatch_cache_var
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17722 $as_echo "$ac_res" >&6; }
17723 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
17724 if test "$gl_fnmatch_result" = yes; then
17725 rm -f "$gl_source_base/fnmatch.h"
17727 FNMATCH_H
=fnmatch.h
17730 if test -n "$FNMATCH_H"; then
17731 GL_GENERATE_FNMATCH_H_TRUE
=
17732 GL_GENERATE_FNMATCH_H_FALSE
='#'
17734 GL_GENERATE_FNMATCH_H_TRUE
='#'
17735 GL_GENERATE_FNMATCH_H_FALSE
=
17739 if test -n "$FNMATCH_H"; then
17748 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
17752 cat >>confdefs.h
<<_ACEOF
17753 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
17757 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
17759 if test "x$ac_cv_have_decl_isblank" = xyes
; then :
17765 cat >>confdefs.h
<<_ACEOF
17766 #define HAVE_DECL_ISBLANK $ac_have_decl
17781 if test $ac_cv_func_getdelim = yes; then
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
17784 $as_echo_n "checking for working getdelim function... " >&6; }
17785 if ${gl_cv_func_working_getdelim+:} false
; then :
17786 $as_echo_n "(cached) " >&6
17788 echo fooNbarN |
tr -d '\012' |
tr N
'\012' > conftest.data
17789 if test "$cross_compiling" = yes; then :
17790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17791 /* end confdefs.h. */
17793 #include <features.h>
17794 #ifdef __GNU_LIBRARY__
17795 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
17801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17802 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then :
17803 gl_cv_func_working_getdelim
="guessing yes"
17805 gl_cv_func_working_getdelim
="guessing no"
17811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17812 /* end confdefs.h. */
17814 # include <stdio.h>
17815 # include <stdlib.h>
17816 # include <string.h>
17819 FILE *in = fopen ("./conftest.data", "r");
17823 /* Test result for a NULL buffer and a zero size.
17824 Based on a test program from Karl Heuer. */
17827 int len = getdelim (&line, &siz, '\n', in);
17828 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
17832 /* Test result for a NULL buffer and a non-zero size.
17833 This crashes on FreeBSD 8.0. */
17835 size_t siz = (size_t)(~0) / 4;
17836 if (getdelim (&line, &siz, '\n', in) == -1)
17843 if ac_fn_c_try_run
"$LINENO"; then :
17844 gl_cv_func_working_getdelim
=yes
17846 gl_cv_func_working_getdelim
=no
17848 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17849 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
17854 $as_echo "$gl_cv_func_working_getdelim" >&6; }
17855 case "$gl_cv_func_working_getdelim" in
17864 if test $ac_cv_have_decl_getdelim = no
; then
17865 HAVE_DECL_GETDELIM
=0
17868 if test $HAVE_GETDELIM = 0 ||
test $REPLACE_GETDELIM = 1; then
17877 gl_LIBOBJS
="$gl_LIBOBJS getdelim.$ac_objext"
17880 for ac_func
in flockfile funlockfile
17882 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17883 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
17884 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
17885 cat >>confdefs.h
<<_ACEOF
17886 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17892 ac_fn_c_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
17893 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
; then :
17899 cat >>confdefs.h
<<_ACEOF
17900 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
17916 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
17927 gl_getline_needs_run_time_check
=no
17928 ac_fn_c_check_func
"$LINENO" "getline" "ac_cv_func_getline"
17929 if test "x$ac_cv_func_getline" = xyes
; then :
17930 gl_getline_needs_run_time_check
=yes
17932 am_cv_func_working_getline
=no
17935 if test $gl_getline_needs_run_time_check = yes; then
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
17937 $as_echo_n "checking for working getline function... " >&6; }
17938 if ${am_cv_func_working_getline+:} false
; then :
17939 $as_echo_n "(cached) " >&6
17941 echo fooNbarN |
tr -d '\012' |
tr N
'\012' > conftest.data
17942 if test "$cross_compiling" = yes; then :
17943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17944 /* end confdefs.h. */
17946 #include <features.h>
17947 #ifdef __GNU_LIBRARY__
17948 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
17954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17955 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then :
17956 am_cv_func_working_getline
="guessing yes"
17958 am_cv_func_working_getline
="guessing no"
17964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17965 /* end confdefs.h. */
17967 # include <stdio.h>
17968 # include <stdlib.h>
17969 # include <string.h>
17972 FILE *in = fopen ("./conftest.data", "r");
17976 /* Test result for a NULL buffer and a zero size.
17977 Based on a test program from Karl Heuer. */
17980 int len = getline (&line, &siz, in);
17981 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
17985 /* Test result for a NULL buffer and a non-zero size.
17986 This crashes on FreeBSD 8.0. */
17988 size_t siz = (size_t)(~0) / 4;
17989 if (getline (&line, &siz, in) == -1)
17996 if ac_fn_c_try_run
"$LINENO"; then :
17997 am_cv_func_working_getline
=yes
17999 am_cv_func_working_getline
=no
18001 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18002 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
18007 $as_echo "$am_cv_func_working_getline" >&6; }
18010 if test $ac_cv_have_decl_getline = no
; then
18011 HAVE_DECL_GETLINE
=0
18014 case "$am_cv_func_working_getline" in
18020 if test $REPLACE_GETLINE = 1; then
18029 gl_LIBOBJS
="$gl_LIBOBJS getline.$ac_objext"
18046 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
18055 if test $REPLACE_GETOPT = 1; then
18064 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
18074 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
18079 GNULIB_GL_UNISTD_H_GETOPT
=1
18084 $as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
18094 if test $REPLACE_GETOPT = 1; then
18098 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
18104 if test $REPLACE_GETOPT = 1; then
18113 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
18123 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
18128 GNULIB_GL_UNISTD_H_GETOPT
=1
18148 if test $gl_cv_have_include_next = yes; then
18149 gl_cv_next_langinfo_h
='<'langinfo.h
'>'
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
18152 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
18153 if ${gl_cv_next_langinfo_h+:} false
; then :
18154 $as_echo_n "(cached) " >&6
18157 if test $ac_cv_header_langinfo_h = yes; then
18160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18161 /* end confdefs.h. */
18162 #include <langinfo.h>
18166 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18167 *) gl_absname_cpp
="$ac_cpp" ;;
18172 gl_dirsep_regex
='[/\\]'
18175 gl_dirsep_regex
='\/'
18178 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18180 gl_header_literal_regex
=`echo 'langinfo.h' \
18181 | sed -e "$gl_make_literal_regex_sed"`
18182 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18183 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18188 gl_cv_next_langinfo_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18189 sed -n "$gl_absolute_header_sed"`'"'
18191 gl_cv_next_langinfo_h
='<'langinfo.h
'>'
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
18197 $as_echo "$gl_cv_next_langinfo_h" >&6; }
18199 NEXT_LANGINFO_H
=$gl_cv_next_langinfo_h
18201 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18202 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18203 gl_next_as_first_directive
='<'langinfo.h
'>'
18205 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18206 gl_next_as_first_directive
=$gl_cv_next_langinfo_h
18208 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
=$gl_next_as_first_directive
18214 HAVE_LANGINFO_CODESET
=0
18215 HAVE_LANGINFO_T_FMT_AMPM
=0
18216 HAVE_LANGINFO_ERA
=0
18217 HAVE_LANGINFO_YESEXPR
=0
18219 if test $ac_cv_header_langinfo_h = yes; then
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
18222 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
18223 if ${gl_cv_header_langinfo_codeset+:} false
; then :
18224 $as_echo_n "(cached) " >&6
18226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18227 /* end confdefs.h. */
18228 #include <langinfo.h>
18239 if ac_fn_c_try_compile
"$LINENO"; then :
18240 gl_cv_header_langinfo_codeset
=yes
18242 gl_cv_header_langinfo_codeset
=no
18244 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
18248 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
18249 if test $gl_cv_header_langinfo_codeset = yes; then
18250 HAVE_LANGINFO_CODESET
=1
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5
18253 $as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; }
18254 if ${gl_cv_header_langinfo_t_fmt_ampm+:} false
; then :
18255 $as_echo_n "(cached) " >&6
18257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18258 /* end confdefs.h. */
18259 #include <langinfo.h>
18260 int a = T_FMT_AMPM;
18270 if ac_fn_c_try_compile
"$LINENO"; then :
18271 gl_cv_header_langinfo_t_fmt_ampm
=yes
18273 gl_cv_header_langinfo_t_fmt_ampm
=no
18275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5
18279 $as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; }
18280 if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
18281 HAVE_LANGINFO_T_FMT_AMPM
=1
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
18284 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
18285 if ${gl_cv_header_langinfo_era+:} false
; then :
18286 $as_echo_n "(cached) " >&6
18288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18289 /* end confdefs.h. */
18290 #include <langinfo.h>
18301 if ac_fn_c_try_compile
"$LINENO"; then :
18302 gl_cv_header_langinfo_era
=yes
18304 gl_cv_header_langinfo_era
=no
18306 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
18310 $as_echo "$gl_cv_header_langinfo_era" >&6; }
18311 if test $gl_cv_header_langinfo_era = yes; then
18312 HAVE_LANGINFO_ERA
=1
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5
18315 $as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; }
18316 if ${gl_cv_header_langinfo_yesexpr+:} false
; then :
18317 $as_echo_n "(cached) " >&6
18319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18320 /* end confdefs.h. */
18321 #include <langinfo.h>
18332 if ac_fn_c_try_compile
"$LINENO"; then :
18333 gl_cv_header_langinfo_yesexpr
=yes
18335 gl_cv_header_langinfo_yesexpr
=no
18337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5
18341 $as_echo "$gl_cv_header_langinfo_yesexpr" >&6; }
18342 if test $gl_cv_header_langinfo_yesexpr = yes; then
18343 HAVE_LANGINFO_YESEXPR
=1
18355 for gl_func
in nl_langinfo
; do
18356 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18358 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18359 if eval \
${$as_gl_Symbol+:} false
; then :
18360 $as_echo_n "(cached) " >&6
18362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18363 /* end confdefs.h. */
18364 #include <langinfo.h>
18375 if ac_fn_c_try_compile
"$LINENO"; then :
18376 eval "$as_gl_Symbol=yes"
18378 eval "$as_gl_Symbol=no"
18380 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18382 eval ac_res
=\$
$as_gl_Symbol
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18384 $as_echo "$ac_res" >&6; }
18385 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
18386 cat >>confdefs.h
<<_ACEOF
18387 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18390 eval ac_cv_have_decl_
$gl_func=yes
18403 LOCALCHARSET_TESTS_ENVIRONMENT
="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
18416 $as_echo "#define _LCONV_C99 1" >>confdefs.h
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
18422 $as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; }
18423 if ${gl_cv_header_locale_h_posix2001+:} false
; then :
18424 $as_echo_n "(cached) " >&6
18426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18427 /* end confdefs.h. */
18428 #include <locale.h>
18429 int x = LC_MESSAGES;
18430 int y = sizeof (((struct lconv *) 0)->decimal_point);
18439 if ac_fn_c_try_compile
"$LINENO"; then :
18440 gl_cv_header_locale_h_posix2001
=yes
18442 gl_cv_header_locale_h_posix2001
=no
18444 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
18447 $as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
18450 if test $ac_cv_header_xlocale_h = yes; then
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
18453 $as_echo_n "checking whether locale.h defines locale_t... " >&6; }
18454 if ${gl_cv_header_locale_has_locale_t+:} false
; then :
18455 $as_echo_n "(cached) " >&6
18457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18458 /* end confdefs.h. */
18459 #include <locale.h>
18469 if ac_fn_c_try_compile
"$LINENO"; then :
18470 gl_cv_header_locale_has_locale_t
=yes
18472 gl_cv_header_locale_has_locale_t
=no
18474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
18478 $as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
18479 if test $gl_cv_header_locale_has_locale_t = yes; then
18480 gl_cv_header_locale_h_needs_xlocale_h
=no
18482 gl_cv_header_locale_h_needs_xlocale_h
=yes
18486 gl_cv_header_locale_h_needs_xlocale_h
=no
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
18491 $as_echo_n "checking whether struct lconv is properly defined... " >&6; }
18492 if ${gl_cv_sys_struct_lconv_ok+:} false
; then :
18493 $as_echo_n "(cached) " >&6
18495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18496 /* end confdefs.h. */
18497 #include <locale.h>
18499 int x = sizeof (l.decimal_point);
18500 int y = sizeof (l.int_p_cs_precedes);
18509 if ac_fn_c_try_compile
"$LINENO"; then :
18510 gl_cv_sys_struct_lconv_ok
=yes
18512 gl_cv_sys_struct_lconv_ok
=no
18514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
18518 $as_echo "$gl_cv_sys_struct_lconv_ok" >&6; }
18519 if test $gl_cv_sys_struct_lconv_ok = no
; then
18520 REPLACE_STRUCT_LCONV
=1
18531 if test $gl_cv_have_include_next = yes; then
18532 gl_cv_next_locale_h
='<'locale.h
'>'
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
18535 $as_echo_n "checking absolute name of <locale.h>... " >&6; }
18536 if ${gl_cv_next_locale_h+:} false
; then :
18537 $as_echo_n "(cached) " >&6
18540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18541 /* end confdefs.h. */
18542 #include <locale.h>
18546 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18547 *) gl_absname_cpp
="$ac_cpp" ;;
18552 gl_dirsep_regex
='[/\\]'
18555 gl_dirsep_regex
='\/'
18558 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18560 gl_header_literal_regex
=`echo 'locale.h' \
18561 | sed -e "$gl_make_literal_regex_sed"`
18562 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18563 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18568 gl_cv_next_locale_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18569 sed -n "$gl_absolute_header_sed"`'"'
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
18574 $as_echo "$gl_cv_next_locale_h" >&6; }
18576 NEXT_LOCALE_H
=$gl_cv_next_locale_h
18578 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18579 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18580 gl_next_as_first_directive
='<'locale.h
'>'
18582 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18583 gl_next_as_first_directive
=$gl_cv_next_locale_h
18585 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
=$gl_next_as_first_directive
18592 for gl_func
in setlocale duplocale
; do
18593 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18595 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18596 if eval \
${$as_gl_Symbol+:} false
; then :
18597 $as_echo_n "(cached) " >&6
18599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18600 /* end confdefs.h. */
18601 #include <locale.h>
18602 /* Some systems provide declarations in a non-standard header. */
18604 # include <xlocale.h>
18616 if ac_fn_c_try_compile
"$LINENO"; then :
18617 eval "$as_gl_Symbol=yes"
18619 eval "$as_gl_Symbol=no"
18621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18623 eval ac_res
=\$
$as_gl_Symbol
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18625 $as_echo "$ac_res" >&6; }
18626 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
18627 cat >>confdefs.h
<<_ACEOF
18628 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18631 eval ac_cv_have_decl_
$gl_func=yes
18640 if test $REPLACE_STRUCT_LCONV = 1; then
18641 REPLACE_LOCALECONV
=1
18644 if test $REPLACE_LOCALECONV = 1; then
18653 gl_LIBOBJS
="$gl_LIBOBJS localeconv.$ac_objext"
18656 ac_fn_c_check_member
"$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
18658 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes
; then :
18660 cat >>confdefs.h
<<_ACEOF
18661 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
18674 GNULIB_LOCALECONV
=1
18680 $as_echo "#define GNULIB_TEST_LOCALECONV 1" >>confdefs.h
18687 for ac_header
in stdlib.h
18689 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
18690 if test "x$ac_cv_header_stdlib_h" = xyes
; then :
18691 cat >>confdefs.h
<<_ACEOF
18692 #define HAVE_STDLIB_H 1
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
18700 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
18701 if ${ac_cv_func_malloc_0_nonnull+:} false
; then :
18702 $as_echo_n "(cached) " >&6
18704 if test "$cross_compiling" = yes; then :
18706 # Guess yes on platforms where we know the result.
18707 *-gnu* | freebsd
* | netbsd
* | openbsd
* \
18708 | hpux
* | solaris
* | cygwin
* | mingw
*)
18709 ac_cv_func_malloc_0_nonnull
=yes ;;
18710 # If we don't know, assume the worst.
18711 *) ac_cv_func_malloc_0_nonnull
=no
;;
18715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18716 /* end confdefs.h. */
18717 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
18718 # include <stdlib.h>
18726 return ! malloc (0);
18732 if ac_fn_c_try_run
"$LINENO"; then :
18733 ac_cv_func_malloc_0_nonnull
=yes
18735 ac_cv_func_malloc_0_nonnull
=no
18737 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18738 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
18744 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
18745 if test $ac_cv_func_malloc_0_nonnull = yes; then :
18747 $as_echo "#define HAVE_MALLOC_GNU 1" >>confdefs.h
18750 $as_echo "#define HAVE_MALLOC_GNU 0" >>confdefs.h
18757 if test $REPLACE_MALLOC = 1; then
18766 gl_LIBOBJS
="$gl_LIBOBJS malloc.$ac_objext"
18771 cat >>confdefs.h
<<_ACEOF
18772 #define GNULIB_MALLOC_GNU 1
18779 if test $gl_cv_func_malloc_posix = yes; then
18781 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
18787 if test $REPLACE_MALLOC = 1; then
18796 gl_LIBOBJS
="$gl_LIBOBJS malloc.$ac_objext"
18804 GNULIB_MALLOC_POSIX
=1
18810 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
18824 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
18828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
18829 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
18830 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
18831 $as_echo_n "(cached) " >&6
18835 # Guess no on AIX and OSF/1.
18836 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
18837 # Guess yes otherwise.
18838 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
18840 if test $LOCALE_JA != none
; then
18841 if test "$cross_compiling" = yes; then :
18844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18845 /* end confdefs.h. */
18847 #include <locale.h>
18848 #include <string.h>
18849 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18851 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18852 included before <wchar.h>. */
18853 #include <stddef.h>
18859 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
18861 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
18865 memset (&state, '\0', sizeof (mbstate_t));
18866 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
18867 if (mbsinit (&state))
18873 if ac_fn_c_try_run
"$LINENO"; then :
18874 gl_cv_func_mbrtowc_incomplete_state
=yes
18876 gl_cv_func_mbrtowc_incomplete_state
=no
18878 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18879 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
18886 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
18892 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
18893 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
18894 $as_echo_n "(cached) " >&6
18898 # Guess no on Solaris 8.
18899 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
18900 # Guess yes otherwise.
18901 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
18903 if test $LOCALE_ZH_CN != none
; then
18904 if test "$cross_compiling" = yes; then :
18907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18908 /* end confdefs.h. */
18910 #include <locale.h>
18911 #include <stdlib.h>
18912 #include <string.h>
18913 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18915 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18916 included before <wchar.h>. */
18917 #include <stddef.h>
18923 /* This fails on Solaris 8:
18924 mbrtowc returns 2, and sets wc to 0x00F0.
18925 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
18926 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
18928 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
18932 memset (&state, '\0', sizeof (mbstate_t));
18933 if (mbrtowc (&wc, input + 3, 6, &state) != 4
18934 && mbtowc (&wc, input + 3, 6) == 4)
18940 if ac_fn_c_try_run
"$LINENO"; then :
18941 gl_cv_func_mbrtowc_sanitycheck
=yes
18943 gl_cv_func_mbrtowc_sanitycheck
=no
18945 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18946 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
18953 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
18955 REPLACE_MBSTATE_T
=0
18956 case "$gl_cv_func_mbrtowc_incomplete_state" in
18958 *) REPLACE_MBSTATE_T
=1 ;;
18960 case "$gl_cv_func_mbrtowc_sanitycheck" in
18962 *) REPLACE_MBSTATE_T
=1 ;;
18965 REPLACE_MBSTATE_T
=1
18970 if test $ac_cv_func_mbrtowc = no
; then
18972 ac_fn_c_check_decl
"$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
18973 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18975 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18976 included before <wchar.h>. */
18977 #include <stddef.h>
18983 if test "x$ac_cv_have_decl_mbrtowc" = xyes
; then :
18989 cat >>confdefs.h
<<_ACEOF
18990 #define HAVE_DECL_MBRTOWC $ac_have_decl
18993 if test $ac_cv_have_decl_mbrtowc = yes; then
18997 if test $REPLACE_MBSTATE_T = 1; then
19003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
19004 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
19005 if ${gl_cv_func_mbrtowc_null_arg1+:} false
; then :
19006 $as_echo_n "(cached) " >&6
19010 # Guess no on Solaris.
19011 solaris
*) gl_cv_func_mbrtowc_null_arg1
="guessing no" ;;
19012 # Guess yes otherwise.
19013 *) gl_cv_func_mbrtowc_null_arg1
="guessing yes" ;;
19015 if test $LOCALE_FR_UTF8 != none
; then
19016 if test "$cross_compiling" = yes; then :
19019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19020 /* end confdefs.h. */
19022 #include <locale.h>
19023 #include <stdlib.h>
19024 #include <string.h>
19025 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19027 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19028 included before <wchar.h>. */
19029 #include <stddef.h>
19037 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19039 char input[] = "\303\237er";
19044 memset (&state, '\0', sizeof (mbstate_t));
19045 wc = (wchar_t) 0xBADFACE;
19046 ret = mbrtowc (&wc, input, 5, &state);
19049 if (!mbsinit (&state))
19052 memset (&state, '\0', sizeof (mbstate_t));
19053 ret = mbrtowc (NULL, input, 5, &state);
19054 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
19056 if (!mbsinit (&state))
19062 if ac_fn_c_try_run
"$LINENO"; then :
19063 gl_cv_func_mbrtowc_null_arg1
=yes
19065 gl_cv_func_mbrtowc_null_arg1
=no
19067 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19068 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
19075 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
19080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
19081 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
19082 if ${gl_cv_func_mbrtowc_null_arg2+:} false
; then :
19083 $as_echo_n "(cached) " >&6
19087 # Guess no on OSF/1.
19088 osf
*) gl_cv_func_mbrtowc_null_arg2
="guessing no" ;;
19089 # Guess yes otherwise.
19090 *) gl_cv_func_mbrtowc_null_arg2
="guessing yes" ;;
19092 if test $LOCALE_FR_UTF8 != none
; then
19093 if test "$cross_compiling" = yes; then :
19096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19097 /* end confdefs.h. */
19099 #include <locale.h>
19100 #include <string.h>
19101 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19103 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19104 included before <wchar.h>. */
19105 #include <stddef.h>
19111 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19117 memset (&state, '\0', sizeof (mbstate_t));
19118 wc = (wchar_t) 0xBADFACE;
19119 mbrtowc (&wc, NULL, 5, &state);
19120 /* Check that wc was not modified. */
19121 if (wc != (wchar_t) 0xBADFACE)
19127 if ac_fn_c_try_run
"$LINENO"; then :
19128 gl_cv_func_mbrtowc_null_arg2
=yes
19130 gl_cv_func_mbrtowc_null_arg2
=no
19132 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19133 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
19140 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
19148 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
19149 if ${gl_cv_func_mbrtowc_retval+:} false
; then :
19150 $as_echo_n "(cached) " >&6
19154 # Guess no on HP-UX, Solaris, native Windows.
19155 hpux
* | solaris
* | mingw
*) gl_cv_func_mbrtowc_retval
="guessing no" ;;
19156 # Guess yes otherwise.
19157 *) gl_cv_func_mbrtowc_retval
="guessing yes" ;;
19159 if test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none \
19160 ||
{ case "$host_os" in mingw
*) true
;; *) false
;; esac; }; then
19161 if test "$cross_compiling" = yes; then :
19164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19165 /* end confdefs.h. */
19167 #include <locale.h>
19168 #include <string.h>
19169 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19171 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19172 included before <wchar.h>. */
19173 #include <stddef.h>
19180 int found_some_locale = 0;
19181 /* This fails on Solaris. */
19182 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19184 char input[] = "B\303\274\303\237er"; /* "Büßer" */
19188 memset (&state, '\0', sizeof (mbstate_t));
19189 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19192 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
19195 found_some_locale = 1;
19197 /* This fails on HP-UX 11.11. */
19198 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19200 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19204 memset (&state, '\0', sizeof (mbstate_t));
19205 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19208 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
19211 found_some_locale = 1;
19213 /* This fails on native Windows. */
19214 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
19216 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
19220 memset (&state, '\0', sizeof (mbstate_t));
19221 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
19224 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
19227 found_some_locale = 1;
19229 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
19231 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
19235 memset (&state, '\0', sizeof (mbstate_t));
19236 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
19239 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
19242 found_some_locale = 1;
19244 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
19246 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
19250 memset (&state, '\0', sizeof (mbstate_t));
19251 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
19254 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
19257 found_some_locale = 1;
19259 return (found_some_locale ? result : 77);
19262 if ac_fn_c_try_run
"$LINENO"; then :
19263 gl_cv_func_mbrtowc_retval
=yes
19265 if test $?
!= 77; then
19266 gl_cv_func_mbrtowc_retval
=no
19270 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19271 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
19278 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
19284 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
19285 if ${gl_cv_func_mbrtowc_nul_retval+:} false
; then :
19286 $as_echo_n "(cached) " >&6
19290 # Guess no on Solaris 8 and 9.
19291 solaris2.
[89]) gl_cv_func_mbrtowc_nul_retval
="guessing no" ;;
19292 # Guess yes otherwise.
19293 *) gl_cv_func_mbrtowc_nul_retval
="guessing yes" ;;
19295 if test $LOCALE_ZH_CN != none
; then
19296 if test "$cross_compiling" = yes; then :
19299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19300 /* end confdefs.h. */
19302 #include <locale.h>
19303 #include <string.h>
19304 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19306 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19307 included before <wchar.h>. */
19308 #include <stddef.h>
19314 /* This fails on Solaris 8 and 9. */
19315 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19320 memset (&state, '\0', sizeof (mbstate_t));
19321 if (mbrtowc (&wc, "", 1, &state) != 0)
19327 if ac_fn_c_try_run
"$LINENO"; then :
19328 gl_cv_func_mbrtowc_nul_retval
=yes
19330 gl_cv_func_mbrtowc_nul_retval
=no
19332 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19333 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
19340 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
19342 case "$gl_cv_func_mbrtowc_null_arg1" in
19345 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
19350 case "$gl_cv_func_mbrtowc_null_arg2" in
19353 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
19358 case "$gl_cv_func_mbrtowc_retval" in
19361 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
19366 case "$gl_cv_func_mbrtowc_nul_retval" in
19369 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
19377 if test $HAVE_MBRTOWC = 0 ||
test $REPLACE_MBRTOWC = 1; then
19386 gl_LIBOBJS
="$gl_LIBOBJS mbrtowc.$ac_objext"
19403 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
19418 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
19423 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
19424 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
19425 $as_echo_n "(cached) " >&6
19429 # Guess no on AIX and OSF/1.
19430 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
19431 # Guess yes otherwise.
19432 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
19434 if test $LOCALE_JA != none
; then
19435 if test "$cross_compiling" = yes; then :
19438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19439 /* end confdefs.h. */
19441 #include <locale.h>
19442 #include <string.h>
19443 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19445 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19446 included before <wchar.h>. */
19447 #include <stddef.h>
19453 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19455 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19459 memset (&state, '\0', sizeof (mbstate_t));
19460 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19461 if (mbsinit (&state))
19467 if ac_fn_c_try_run
"$LINENO"; then :
19468 gl_cv_func_mbrtowc_incomplete_state
=yes
19470 gl_cv_func_mbrtowc_incomplete_state
=no
19472 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19473 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
19480 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
19486 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
19487 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
19488 $as_echo_n "(cached) " >&6
19492 # Guess no on Solaris 8.
19493 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
19494 # Guess yes otherwise.
19495 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
19497 if test $LOCALE_ZH_CN != none
; then
19498 if test "$cross_compiling" = yes; then :
19501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19502 /* end confdefs.h. */
19504 #include <locale.h>
19505 #include <stdlib.h>
19506 #include <string.h>
19507 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19509 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19510 included before <wchar.h>. */
19511 #include <stddef.h>
19517 /* This fails on Solaris 8:
19518 mbrtowc returns 2, and sets wc to 0x00F0.
19519 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
19520 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19522 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
19526 memset (&state, '\0', sizeof (mbstate_t));
19527 if (mbrtowc (&wc, input + 3, 6, &state) != 4
19528 && mbtowc (&wc, input + 3, 6) == 4)
19534 if ac_fn_c_try_run
"$LINENO"; then :
19535 gl_cv_func_mbrtowc_sanitycheck
=yes
19537 gl_cv_func_mbrtowc_sanitycheck
=no
19539 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19540 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
19547 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
19549 REPLACE_MBSTATE_T
=0
19550 case "$gl_cv_func_mbrtowc_incomplete_state" in
19552 *) REPLACE_MBSTATE_T
=1 ;;
19554 case "$gl_cv_func_mbrtowc_sanitycheck" in
19556 *) REPLACE_MBSTATE_T
=1 ;;
19559 REPLACE_MBSTATE_T
=1
19564 if test $ac_cv_func_mbsinit = no
; then
19566 ac_fn_c_check_decl
"$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
19567 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19569 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19570 included before <wchar.h>. */
19571 #include <stddef.h>
19577 if test "x$ac_cv_have_decl_mbsinit" = xyes
; then :
19583 cat >>confdefs.h
<<_ACEOF
19584 #define HAVE_DECL_MBSINIT $ac_have_decl
19587 if test $ac_cv_have_decl_mbsinit = yes; then
19591 if test $REPLACE_MBSTATE_T = 1; then
19595 mingw
*) REPLACE_MBSINIT
=1 ;;
19600 if test $HAVE_MBSINIT = 0 ||
test $REPLACE_MBSINIT = 1; then
19609 gl_LIBOBJS
="$gl_LIBOBJS mbsinit.$ac_objext"
19626 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
19640 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
19645 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
19646 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
19647 $as_echo_n "(cached) " >&6
19651 # Guess no on AIX and OSF/1.
19652 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
19653 # Guess yes otherwise.
19654 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
19656 if test $LOCALE_JA != none
; then
19657 if test "$cross_compiling" = yes; then :
19660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19661 /* end confdefs.h. */
19663 #include <locale.h>
19664 #include <string.h>
19665 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19667 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19668 included before <wchar.h>. */
19669 #include <stddef.h>
19675 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19677 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19681 memset (&state, '\0', sizeof (mbstate_t));
19682 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19683 if (mbsinit (&state))
19689 if ac_fn_c_try_run
"$LINENO"; then :
19690 gl_cv_func_mbrtowc_incomplete_state
=yes
19692 gl_cv_func_mbrtowc_incomplete_state
=no
19694 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19695 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
19702 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
19707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
19708 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
19709 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
19710 $as_echo_n "(cached) " >&6
19714 # Guess no on Solaris 8.
19715 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
19716 # Guess yes otherwise.
19717 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
19719 if test $LOCALE_ZH_CN != none
; then
19720 if test "$cross_compiling" = yes; then :
19723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19724 /* end confdefs.h. */
19726 #include <locale.h>
19727 #include <stdlib.h>
19728 #include <string.h>
19729 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19731 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19732 included before <wchar.h>. */
19733 #include <stddef.h>
19739 /* This fails on Solaris 8:
19740 mbrtowc returns 2, and sets wc to 0x00F0.
19741 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
19742 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19744 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
19748 memset (&state, '\0', sizeof (mbstate_t));
19749 if (mbrtowc (&wc, input + 3, 6, &state) != 4
19750 && mbtowc (&wc, input + 3, 6) == 4)
19756 if ac_fn_c_try_run
"$LINENO"; then :
19757 gl_cv_func_mbrtowc_sanitycheck
=yes
19759 gl_cv_func_mbrtowc_sanitycheck
=no
19761 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19762 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
19769 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
19771 REPLACE_MBSTATE_T
=0
19772 case "$gl_cv_func_mbrtowc_incomplete_state" in
19774 *) REPLACE_MBSTATE_T
=1 ;;
19776 case "$gl_cv_func_mbrtowc_sanitycheck" in
19778 *) REPLACE_MBSTATE_T
=1 ;;
19781 REPLACE_MBSTATE_T
=1
19786 if test $ac_cv_func_mbsrtowcs = no
; then
19788 ac_fn_c_check_decl
"$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
19789 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19791 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19792 included before <wchar.h>. */
19793 #include <stddef.h>
19799 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes
; then :
19805 cat >>confdefs.h
<<_ACEOF
19806 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
19809 if test $ac_cv_have_decl_mbsrtowcs = yes; then
19810 REPLACE_MBSRTOWCS
=1
19813 if test $REPLACE_MBSTATE_T = 1; then
19814 REPLACE_MBSRTOWCS
=1
19822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
19823 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
19824 if ${gl_cv_func_mbsrtowcs_works+:} false
; then :
19825 $as_echo_n "(cached) " >&6
19829 # Guess no on HP-UX, Solaris, mingw.
19830 hpux
* | solaris
* | mingw
*) gl_cv_func_mbsrtowcs_works
="guessing no" ;;
19831 # Guess yes otherwise.
19832 *) gl_cv_func_mbsrtowcs_works
="guessing yes" ;;
19834 if test $LOCALE_FR != none ||
test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none ||
test $LOCALE_ZH_CN != none
; then
19835 if test "$cross_compiling" = yes; then :
19838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19839 /* end confdefs.h. */
19841 #include <locale.h>
19842 #include <string.h>
19843 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19845 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19846 included before <wchar.h>. */
19847 #include <stddef.h>
19854 /* Test whether the function supports a NULL destination argument.
19855 This fails on native Windows. */
19856 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
19858 const char input[] = "\337er";
19859 const char *src = input;
19862 memset (&state, '\0', sizeof (mbstate_t));
19863 if (mbsrtowcs (NULL, &src, 1, &state) != 3
19867 /* Test whether the function works when started with a conversion state
19868 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
19869 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19871 const char input[] = "B\303\274\303\237er";
19874 memset (&state, '\0', sizeof (mbstate_t));
19875 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
19876 if (!mbsinit (&state))
19878 const char *src = input + 2;
19879 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
19883 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19885 const char input[] = "<\306\374\313\334\270\354>";
19888 memset (&state, '\0', sizeof (mbstate_t));
19889 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
19890 if (!mbsinit (&state))
19892 const char *src = input + 4;
19893 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
19897 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19899 const char input[] = "B\250\271\201\060\211\070er";
19902 memset (&state, '\0', sizeof (mbstate_t));
19903 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
19904 if (!mbsinit (&state))
19906 const char *src = input + 2;
19907 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
19914 if ac_fn_c_try_run
"$LINENO"; then :
19915 gl_cv_func_mbsrtowcs_works
=yes
19917 gl_cv_func_mbsrtowcs_works
=no
19919 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19920 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
19927 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
19929 case "$gl_cv_func_mbsrtowcs_works" in
19931 *) REPLACE_MBSRTOWCS
=1 ;;
19936 if test $HAVE_MBSRTOWCS = 0 ||
test $REPLACE_MBSRTOWCS = 1; then
19945 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs.$ac_objext"
19955 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
19972 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
19980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbswidth is declared in <wchar.h>" >&5
19981 $as_echo_n "checking whether mbswidth is declared in <wchar.h>... " >&6; }
19982 if ${ac_cv_have_decl_mbswidth+:} false
; then :
19983 $as_echo_n "(cached) " >&6
19985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19986 /* end confdefs.h. */
19988 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19990 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
19991 before <wchar.h>. */
19992 #include <stddef.h>
20001 char *p = (char *) mbswidth;
20008 if ac_fn_c_try_compile
"$LINENO"; then :
20009 ac_cv_have_decl_mbswidth
=yes
20011 ac_cv_have_decl_mbswidth
=no
20013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_mbswidth" >&5
20016 $as_echo "$ac_cv_have_decl_mbswidth" >&6; }
20017 if test $ac_cv_have_decl_mbswidth = yes; then
20023 cat >>confdefs.h
<<_ACEOF
20024 #define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val
20030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
20031 $as_echo_n "checking for mbstate_t... " >&6; }
20032 if ${ac_cv_type_mbstate_t+:} false
; then :
20033 $as_echo_n "(cached) " >&6
20035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20036 /* end confdefs.h. */
20037 $ac_includes_default
20038 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20040 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20041 included before <wchar.h>. */
20042 #include <stddef.h>
20049 mbstate_t x; return sizeof x;
20054 if ac_fn_c_try_compile
"$LINENO"; then :
20055 ac_cv_type_mbstate_t
=yes
20057 ac_cv_type_mbstate_t
=no
20059 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
20062 $as_echo "$ac_cv_type_mbstate_t" >&6; }
20063 if test $ac_cv_type_mbstate_t = yes; then
20065 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
20069 $as_echo "#define mbstate_t int" >>confdefs.h
20081 if test $REPLACE_MBTOWC = 1; then
20090 gl_LIBOBJS
="$gl_LIBOBJS mbtowc.$ac_objext"
20107 $as_echo "#define GNULIB_TEST_MBTOWC 1" >>confdefs.h
20112 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
20121 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
20124 for ac_header
in bp-sym.h
20126 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
20127 if test "x$ac_cv_header_bp_sym_h" = xyes
; then :
20128 cat >>confdefs.h
<<_ACEOF
20129 #define HAVE_BP_SYM_H 1
20149 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
20159 for ac_func
in mempcpy
20161 ac_fn_c_check_func
"$LINENO" "mempcpy" "ac_cv_func_mempcpy"
20162 if test "x$ac_cv_func_mempcpy" = xyes
; then :
20163 cat >>confdefs.h
<<_ACEOF
20164 #define HAVE_MEMPCPY 1
20170 if test $ac_cv_func_mempcpy = no
; then
20174 if test $HAVE_MEMPCPY = 0; then
20183 gl_LIBOBJS
="$gl_LIBOBJS mempcpy.$ac_objext"
20200 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
20206 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
20207 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=1
20209 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
20212 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=0
20216 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
20225 gl_LIBOBJS
="$gl_LIBOBJS msvc-inval.$ac_objext"
20231 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
20240 gl_LIBOBJS
="$gl_LIBOBJS msvc-nothrow.$ac_objext"
20248 if test $ac_cv_func_nl_langinfo = yes; then
20249 # On Irix 6.5, YESEXPR is defined, but nl_langinfo(YESEXPR) is broken.
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether YESEXPR works" >&5
20251 $as_echo_n "checking whether YESEXPR works... " >&6; }
20252 if ${gl_cv_func_nl_langinfo_yesexpr_works+:} false
; then :
20253 $as_echo_n "(cached) " >&6
20255 if test "$cross_compiling" = yes; then :
20258 # Guess no on irix systems.
20259 irix
*) gl_cv_func_nl_langinfo_yesexpr_works
="guessing no";;
20260 # Guess yes elsewhere.
20261 *) gl_cv_func_nl_langinfo_yesexpr_works
="guessing yes";;
20265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20266 /* end confdefs.h. */
20267 #include <langinfo.h>
20272 return !*nl_langinfo(YESEXPR);
20278 if ac_fn_c_try_run
"$LINENO"; then :
20279 gl_cv_func_nl_langinfo_yesexpr_works
=yes
20281 gl_cv_func_nl_langinfo_yesexpr_works
=no
20283 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20284 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_nl_langinfo_yesexpr_works" >&5
20290 $as_echo "$gl_cv_func_nl_langinfo_yesexpr_works" >&6; }
20291 case $gl_cv_func_nl_langinfo_yesexpr_works in
20292 *yes) FUNC_NL_LANGINFO_YESEXPR_WORKS
=1 ;;
20293 *) FUNC_NL_LANGINFO_YESEXPR_WORKS
=0 ;;
20296 cat >>confdefs.h
<<_ACEOF
20297 #define FUNC_NL_LANGINFO_YESEXPR_WORKS $FUNC_NL_LANGINFO_YESEXPR_WORKS
20300 if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1 \
20301 && test $FUNC_NL_LANGINFO_YESEXPR_WORKS = 1; then
20304 REPLACE_NL_LANGINFO
=1
20306 $as_echo "#define REPLACE_NL_LANGINFO 1" >>confdefs.h
20313 if test $HAVE_NL_LANGINFO = 0 ||
test $REPLACE_NL_LANGINFO = 1; then
20322 gl_LIBOBJS
="$gl_LIBOBJS nl_langinfo.$ac_objext"
20330 GNULIB_NL_LANGINFO
=1
20336 $as_echo "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h
20340 ac_fn_c_check_decl
"$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
20342 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
; then :
20348 cat >>confdefs.h
<<_ACEOF
20349 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
20352 ac_fn_c_check_decl
"$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
20354 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
; then :
20360 cat >>confdefs.h
<<_ACEOF
20361 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
20368 for ac_func
in rawmemchr
20370 ac_fn_c_check_func
"$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
20371 if test "x$ac_cv_func_rawmemchr" = xyes
; then :
20372 cat >>confdefs.h
<<_ACEOF
20373 #define HAVE_RAWMEMCHR 1
20379 if test $ac_cv_func_rawmemchr = no
; then
20383 if test $HAVE_RAWMEMCHR = 0; then
20392 gl_LIBOBJS
="$gl_LIBOBJS rawmemchr.$ac_objext"
20407 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
20414 if test $gl_cv_func_malloc_posix = yes; then
20416 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
20422 if test $REPLACE_REALLOC = 1; then
20431 gl_LIBOBJS
="$gl_LIBOBJS realloc.$ac_objext"
20439 GNULIB_REALLOC_POSIX
=1
20445 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
20451 # Check whether --with-included-regex was given.
20452 if test "${with_included_regex+set}" = set; then :
20453 withval
=$with_included_regex;
20457 case $with_included_regex in #(
20458 yes|no
) ac_use_included_regex
=$with_included_regex
20461 # If the system regex support is good enough that it passes the
20462 # following run test, then default to *not* using the included regex.c.
20463 # If cross compiling, assume the test would fail and use the included
20466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5
20467 $as_echo_n "checking for working re_compile_pattern... " >&6; }
20468 if ${gl_cv_func_re_compile_pattern_working+:} false
; then :
20469 $as_echo_n "(cached) " >&6
20471 if test "$cross_compiling" = yes; then :
20472 gl_cv_func_re_compile_pattern_working
=no
20474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20475 /* end confdefs.h. */
20478 #include <locale.h>
20479 #include <limits.h>
20480 #include <string.h>
20481 #if HAVE_DECL_ALARM
20482 # include <unistd.h>
20483 # include <signal.h>
20490 static struct re_pattern_buffer regex;
20491 unsigned char folded_chars[UCHAR_MAX + 1];
20494 struct re_registers regs;
20496 #if HAVE_DECL_ALARM
20497 /* Some builds of glibc go into an infinite loop on this test. */
20498 signal (SIGALRM, SIG_DFL);
20501 if (setlocale (LC_ALL, "en_US.UTF-8"))
20504 /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
20505 This test needs valgrind to catch the bug on Debian
20506 GNU/Linux 3.1 x86, but it might catch the bug better
20507 on other platforms and it shouldn't hurt to try the
20509 static char const pat[] = "insert into";
20510 static char const data[] =
20511 "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
20512 re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
20514 memset (®ex, 0, sizeof regex);
20515 s = re_compile_pattern (pat, sizeof pat - 1, ®ex);
20518 else if (re_search (®ex, data, sizeof data - 1,
20519 0, sizeof data - 1, ®s)
20525 /* This test is from glibc bug 15078.
20526 The test case is from Andreas Schwab in
20527 <http://www.sourceware.org/ml/libc-alpha/2013-01/msg00967.html>.
20529 static char const pat[] = "[^x]x";
20530 static char const data[] =
20531 "\xe1\x80\x80\xe1\x80\xbb\xe1\x80\xbd\xe1\x80\x94\xe1\x80"
20532 "\xba\xe1\x80\xaf\xe1\x80\x95\xe1\x80\xbax";
20534 memset (®ex, 0, sizeof regex);
20535 s = re_compile_pattern (pat, sizeof pat - 1, ®ex);
20538 else if (re_search (®ex, data, sizeof data - 1,
20539 0, sizeof data - 1, 0)
20544 if (! setlocale (LC_ALL, "C"))
20548 /* This test is from glibc bug 3957, reported by Andrew Mackey. */
20549 re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
20550 memset (®ex, 0, sizeof regex);
20551 s = re_compile_pattern ("a[^x]b", 6, ®ex);
20554 /* This should fail, but succeeds for glibc-2.5. */
20555 else if (re_search (®ex, "a\nb", 3, 0, 3, ®s) != -1)
20558 /* This regular expression is from Spencer ere test number 75
20560 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
20561 memset (®ex, 0, sizeof regex);
20562 for (i = 0; i <= UCHAR_MAX; i++)
20563 folded_chars[i] = i;
20564 regex.translate = folded_chars;
20565 s = re_compile_pattern ("a[[:]:]]b\n", 11, ®ex);
20566 /* This should fail with _Invalid character class name_ error. */
20570 /* Ensure that [b-a] is diagnosed as invalid, when
20571 using RE_NO_EMPTY_RANGES. */
20572 re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
20573 memset (®ex, 0, sizeof regex);
20574 s = re_compile_pattern ("a[b-a]", 6, ®ex);
20578 /* This should succeed, but does not for glibc-2.1.3. */
20579 memset (®ex, 0, sizeof regex);
20580 s = re_compile_pattern ("{1", 2, ®ex);
20584 /* The following example is derived from a problem report
20585 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
20586 memset (®ex, 0, sizeof regex);
20587 s = re_compile_pattern ("[an\371]*n", 7, ®ex);
20590 /* This should match, but does not for glibc-2.2.1. */
20591 else if (re_match (®ex, "an", 2, 0, ®s) != 2)
20594 memset (®ex, 0, sizeof regex);
20595 s = re_compile_pattern ("x", 1, ®ex);
20598 /* glibc-2.2.93 does not work with a negative RANGE argument. */
20599 else if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
20602 /* The version of regex.c in older versions of gnulib
20603 ignored RE_ICASE. Detect that problem too. */
20604 re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
20605 memset (®ex, 0, sizeof regex);
20606 s = re_compile_pattern ("x", 1, ®ex);
20609 else if (re_search (®ex, "WXY", 3, 0, 3, ®s) < 0)
20612 /* Catch a bug reported by Vin Shelton in
20613 http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
20615 re_set_syntax (RE_SYNTAX_POSIX_BASIC
20616 & ~RE_CONTEXT_INVALID_DUP
20617 & ~RE_NO_EMPTY_RANGES);
20618 memset (®ex, 0, sizeof regex);
20619 s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, ®ex);
20623 /* REG_STARTEND was added to glibc on 2004-01-15.
20624 Reject older versions. */
20625 if (! REG_STARTEND)
20629 /* It would be nice to reject hosts whose regoff_t values are too
20630 narrow (including glibc on hosts with 64-bit ptrdiff_t and
20631 32-bit int), but we should wait until glibc implements this
20632 feature. Otherwise, support for equivalence classes and
20633 multibyte collation symbols would always be broken except
20634 when compiling --without-included-regex. */
20635 if (sizeof (regoff_t) < sizeof (ptrdiff_t)
20636 || sizeof (regoff_t) < sizeof (ssize_t))
20646 if ac_fn_c_try_run
"$LINENO"; then :
20647 gl_cv_func_re_compile_pattern_working
=yes
20649 gl_cv_func_re_compile_pattern_working
=no
20651 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20652 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5
20657 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
20658 case $gl_cv_func_re_compile_pattern_working in #(
20659 yes) ac_use_included_regex
=no
;; #(
20660 no
) ac_use_included_regex
=yes;;
20663 *) as_fn_error $?
"Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5
20667 if test $ac_use_included_regex = yes; then
20669 $as_echo "#define _REGEX_INCLUDE_LIMITS_H 1" >>confdefs.h
20672 $as_echo "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h
20675 $as_echo "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h
20678 $as_echo "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h
20681 $as_echo "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h
20684 $as_echo "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h
20687 $as_echo "#define re_search rpl_re_search" >>confdefs.h
20690 $as_echo "#define re_search_2 rpl_re_search_2" >>confdefs.h
20693 $as_echo "#define re_match rpl_re_match" >>confdefs.h
20696 $as_echo "#define re_match_2 rpl_re_match_2" >>confdefs.h
20699 $as_echo "#define re_set_registers rpl_re_set_registers" >>confdefs.h
20702 $as_echo "#define re_comp rpl_re_comp" >>confdefs.h
20705 $as_echo "#define re_exec rpl_re_exec" >>confdefs.h
20708 $as_echo "#define regcomp rpl_regcomp" >>confdefs.h
20711 $as_echo "#define regexec rpl_regexec" >>confdefs.h
20714 $as_echo "#define regerror rpl_regerror" >>confdefs.h
20717 $as_echo "#define regfree rpl_regfree" >>confdefs.h
20721 if test $ac_use_included_regex = yes; then
20730 gl_LIBOBJS
="$gl_LIBOBJS regex.$ac_objext"
20738 for ac_header
in libintl.h
20740 ac_fn_c_check_header_mongrel
"$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
20741 if test "x$ac_cv_header_libintl_h" = xyes
; then :
20742 cat >>confdefs.h
<<_ACEOF
20743 #define HAVE_LIBINTL_H 1
20751 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
20753 if test "x$ac_cv_have_decl_isblank" = xyes
; then :
20759 cat >>confdefs.h
<<_ACEOF
20760 #define HAVE_DECL_ISBLANK $ac_have_decl
20766 for ac_header
in stdint.h
20768 ac_fn_c_check_header_mongrel
"$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20769 if test "x$ac_cv_header_stdint_h" = xyes
; then :
20770 cat >>confdefs.h
<<_ACEOF
20771 #define HAVE_STDINT_H 1
20778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20779 $as_echo_n "checking for SIZE_MAX... " >&6; }
20780 if ${gl_cv_size_max+:} false
; then :
20781 $as_echo_n "(cached) " >&6
20785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20786 /* end confdefs.h. */
20788 #include <limits.h>
20790 #include <stdint.h>
20797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20798 $EGREP "Found it" >/dev
/null
2>&1; then :
20803 if test -z "$gl_cv_size_max"; then
20804 if ac_fn_c_compute_int
"$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
20805 #include <limits.h>"; then :
20808 size_t_bits_minus_1
=
20811 if ac_fn_c_compute_int
"$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
20817 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
20818 if test $fits_in_uint = 1; then
20819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20820 /* end confdefs.h. */
20821 #include <stddef.h>
20823 extern unsigned long foo;
20833 if ac_fn_c_try_compile
"$LINENO"; then :
20836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20838 if test $fits_in_uint = 1; then
20839 gl_cv_size_max
="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
20841 gl_cv_size_max
="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
20844 gl_cv_size_max
='((size_t)~(size_t)0)'
20849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
20850 $as_echo "$gl_cv_size_max" >&6; }
20851 if test "$gl_cv_size_max" != yes; then
20853 cat >>confdefs.h
<<_ACEOF
20854 #define SIZE_MAX $gl_cv_size_max
20862 ac_fn_c_check_decl
"$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h>
20864 if test "x$ac_cv_have_decl_sleep" = xyes
; then :
20870 cat >>confdefs.h
<<_ACEOF
20871 #define HAVE_DECL_SLEEP $ac_have_decl
20875 if test $ac_cv_have_decl_sleep != yes; then
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sleep" >&5
20879 $as_echo_n "checking for working sleep... " >&6; }
20880 if ${gl_cv_func_sleep_works+:} false
; then :
20881 $as_echo_n "(cached) " >&6
20883 if test "$cross_compiling" = yes; then :
20885 # Guess yes on glibc systems.
20886 *-gnu*) gl_cv_func_sleep_works
="guessing yes" ;;
20887 # If we don't know, assume the worst.
20888 *) gl_cv_func_sleep_works
="guessing no" ;;
20892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20893 /* end confdefs.h. */
20896 #include <unistd.h>
20897 #include <signal.h>
20899 handle_alarm (int sig)
20901 if (sig != SIGALRM)
20909 /* Failure to compile this test due to missing alarm is okay,
20910 since all such platforms (mingw) also lack sleep. */
20911 unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days. */
20912 unsigned int remaining;
20913 signal (SIGALRM, handle_alarm);
20915 remaining = sleep (pentecost);
20916 if (remaining > pentecost)
20918 if (remaining <= pentecost - 10)
20926 if ac_fn_c_try_run
"$LINENO"; then :
20927 gl_cv_func_sleep_works
=yes
20929 gl_cv_func_sleep_works
=no
20931 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20932 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sleep_works" >&5
20937 $as_echo "$gl_cv_func_sleep_works" >&6; }
20938 case "$gl_cv_func_sleep_works" in
20946 if test $HAVE_SLEEP = 0 ||
test $REPLACE_SLEEP = 1; then
20955 gl_LIBOBJS
="$gl_LIBOBJS sleep.$ac_objext"
20969 $as_echo "#define GNULIB_TEST_SLEEP 1" >>confdefs.h
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20975 $as_echo_n "checking for ssize_t... " >&6; }
20976 if ${gt_cv_ssize_t+:} false
; then :
20977 $as_echo_n "(cached) " >&6
20979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20980 /* end confdefs.h. */
20981 #include <sys/types.h>
20985 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20991 if ac_fn_c_try_compile
"$LINENO"; then :
20996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20999 $as_echo "$gt_cv_ssize_t" >&6; }
21000 if test $gt_cv_ssize_t = no
; then
21002 $as_echo "#define ssize_t int" >>confdefs.h
21007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
21008 $as_echo_n "checking for working stdalign.h... " >&6; }
21009 if ${gl_cv_header_working_stdalign_h+:} false
; then :
21010 $as_echo_n "(cached) " >&6
21012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21013 /* end confdefs.h. */
21014 #include <stdalign.h>
21015 #include <stddef.h>
21017 /* Test that alignof yields a result consistent with offsetof.
21018 This catches GCC bug 52023
21019 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
21021 template <class t> struct alignof_helper { char a; t b; };
21022 # define ao(type) offsetof (alignof_helper<type>, b)
21024 # define ao(type) offsetof (struct { char a; type b; }, b)
21026 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
21027 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
21028 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
21030 /* Test _Alignas only on platforms where gnulib can help. */
21032 (__GNUC__ || __IBMC__ || __IBMCPP__ \
21033 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
21034 struct alignas_test { char c; char alignas (8) alignas_8; };
21035 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
21047 if ac_fn_c_try_compile
"$LINENO"; then :
21048 gl_cv_header_working_stdalign_h
=yes
21050 gl_cv_header_working_stdalign_h
=no
21052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
21055 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
21057 if test $gl_cv_header_working_stdalign_h = yes; then
21060 STDALIGN_H
='stdalign.h'
21064 if test -n "$STDALIGN_H"; then
21065 GL_GENERATE_STDALIGN_H_TRUE
=
21066 GL_GENERATE_STDALIGN_H_FALSE
='#'
21068 GL_GENERATE_STDALIGN_H_TRUE
='#'
21069 GL_GENERATE_STDALIGN_H_FALSE
=
21076 # Define two additional variables used in the Makefile substitution.
21078 if test "$ac_cv_header_stdbool_h" = yes; then
21081 STDBOOL_H
='stdbool.h'
21084 if test -n "$STDBOOL_H"; then
21085 GL_GENERATE_STDBOOL_H_TRUE
=
21086 GL_GENERATE_STDBOOL_H_FALSE
='#'
21088 GL_GENERATE_STDBOOL_H_TRUE
='#'
21089 GL_GENERATE_STDBOOL_H_FALSE
=
21093 if test "$ac_cv_type__Bool" = yes; then
21104 if test $gt_cv_c_wchar_t = no
; then
21108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
21109 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21110 if ${gl_cv_decl_null_works+:} false
; then :
21111 $as_echo_n "(cached) " >&6
21113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21114 /* end confdefs.h. */
21115 #include <stddef.h>
21116 int test[2 * (sizeof NULL == sizeof (void *)) -1];
21126 if ac_fn_c_try_compile
"$LINENO"; then :
21127 gl_cv_decl_null_works
=yes
21129 gl_cv_decl_null_works
=no
21131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
21134 $as_echo "$gl_cv_decl_null_works" >&6; }
21135 if test $gl_cv_decl_null_works = no
; then
21140 if test -n "$STDDEF_H"; then
21141 GL_GENERATE_STDDEF_H_TRUE
=
21142 GL_GENERATE_STDDEF_H_FALSE
='#'
21144 GL_GENERATE_STDDEF_H_TRUE
='#'
21145 GL_GENERATE_STDDEF_H_FALSE
=
21148 if test -n "$STDDEF_H"; then
21157 if test $gl_cv_have_include_next = yes; then
21158 gl_cv_next_stddef_h
='<'stddef.h
'>'
21160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
21161 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21162 if ${gl_cv_next_stddef_h+:} false
; then :
21163 $as_echo_n "(cached) " >&6
21166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21167 /* end confdefs.h. */
21168 #include <stddef.h>
21172 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21173 *) gl_absname_cpp
="$ac_cpp" ;;
21178 gl_dirsep_regex
='[/\\]'
21181 gl_dirsep_regex
='\/'
21184 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21186 gl_header_literal_regex
=`echo 'stddef.h' \
21187 | sed -e "$gl_make_literal_regex_sed"`
21188 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21189 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21194 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21195 sed -n "$gl_absolute_header_sed"`'"'
21199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21200 $as_echo "$gl_cv_next_stddef_h" >&6; }
21202 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
21204 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21205 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21206 gl_next_as_first_directive
='<'stddef.h
'>'
21208 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21209 gl_next_as_first_directive
=$gl_cv_next_stddef_h
21211 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
21229 if test $gl_cv_have_include_next = yes; then
21230 gl_cv_next_stdio_h
='<'stdio.h
'>'
21232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21233 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21234 if ${gl_cv_next_stdio_h+:} false
; then :
21235 $as_echo_n "(cached) " >&6
21238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21239 /* end confdefs.h. */
21244 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21245 *) gl_absname_cpp
="$ac_cpp" ;;
21250 gl_dirsep_regex
='[/\\]'
21253 gl_dirsep_regex
='\/'
21256 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21258 gl_header_literal_regex
=`echo 'stdio.h' \
21259 | sed -e "$gl_make_literal_regex_sed"`
21260 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21261 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21266 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21267 sed -n "$gl_absolute_header_sed"`'"'
21271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21272 $as_echo "$gl_cv_next_stdio_h" >&6; }
21274 NEXT_STDIO_H
=$gl_cv_next_stdio_h
21276 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21277 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21278 gl_next_as_first_directive
='<'stdio.h
'>'
21280 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21281 gl_next_as_first_directive
=$gl_cv_next_stdio_h
21283 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
21292 cat >>confdefs.h
<<_ACEOF
21293 #define GNULIB_FSCANF 1
21300 cat >>confdefs.h
<<_ACEOF
21301 #define GNULIB_SCANF 1
21326 for gl_func
in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf
; do
21327 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21329 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21330 if eval \
${$as_gl_Symbol+:} false
; then :
21331 $as_echo_n "(cached) " >&6
21333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21334 /* end confdefs.h. */
21346 if ac_fn_c_try_compile
"$LINENO"; then :
21347 eval "$as_gl_Symbol=yes"
21349 eval "$as_gl_Symbol=no"
21351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21353 eval ac_res
=\$
$as_gl_Symbol
21354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21355 $as_echo "$ac_res" >&6; }
21356 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
21357 cat >>confdefs.h
<<_ACEOF
21358 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21361 eval ac_cv_have_decl_
$gl_func=yes
21376 if test $gl_cv_have_include_next = yes; then
21377 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
21379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21380 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21381 if ${gl_cv_next_stdlib_h+:} false
; then :
21382 $as_echo_n "(cached) " >&6
21385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21386 /* end confdefs.h. */
21387 #include <stdlib.h>
21391 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21392 *) gl_absname_cpp
="$ac_cpp" ;;
21397 gl_dirsep_regex
='[/\\]'
21400 gl_dirsep_regex
='\/'
21403 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21405 gl_header_literal_regex
=`echo 'stdlib.h' \
21406 | sed -e "$gl_make_literal_regex_sed"`
21407 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21408 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21413 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21414 sed -n "$gl_absolute_header_sed"`'"'
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21419 $as_echo "$gl_cv_next_stdlib_h" >&6; }
21421 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
21423 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21424 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21425 gl_next_as_first_directive
='<'stdlib.h
'>'
21427 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21428 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
21430 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
21437 for gl_func
in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps posix_openpt ptsname ptsname_r random random_r realpath rpmatch secure_getenv setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv
; do
21438 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21440 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21441 if eval \
${$as_gl_Symbol+:} false
; then :
21442 $as_echo_n "(cached) " >&6
21444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21445 /* end confdefs.h. */
21446 #include <stdlib.h>
21447 #if HAVE_SYS_LOADAVG_H
21448 # include <sys/loadavg.h>
21451 # include <random.h>
21463 if ac_fn_c_try_compile
"$LINENO"; then :
21464 eval "$as_gl_Symbol=yes"
21466 eval "$as_gl_Symbol=no"
21468 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21470 eval ac_res
=\$
$as_gl_Symbol
21471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21472 $as_echo "$ac_res" >&6; }
21473 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
21474 cat >>confdefs.h
<<_ACEOF
21475 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21478 eval ac_cv_have_decl_
$gl_func=yes
21486 for ac_func
in strcasecmp
21488 ac_fn_c_check_func
"$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
21489 if test "x$ac_cv_func_strcasecmp" = xyes
; then :
21490 cat >>confdefs.h
<<_ACEOF
21491 #define HAVE_STRCASECMP 1
21497 if test $ac_cv_func_strcasecmp = no
; then
21503 for ac_func
in strncasecmp
21505 ac_fn_c_check_func
"$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
21506 if test "x$ac_cv_func_strncasecmp" = xyes
; then :
21507 cat >>confdefs.h
<<_ACEOF
21508 #define HAVE_STRNCASECMP 1
21514 if test $ac_cv_func_strncasecmp = yes; then
21519 ac_fn_c_check_decl
"$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
21520 if test "x$ac_cv_have_decl_strncasecmp" = xyes
; then :
21526 cat >>confdefs.h
<<_ACEOF
21527 #define HAVE_DECL_STRNCASECMP $ac_have_decl
21530 if test $ac_cv_have_decl_strncasecmp = no
; then
21531 HAVE_DECL_STRNCASECMP
=0
21535 if test $HAVE_STRCASECMP = 0; then
21544 gl_LIBOBJS
="$gl_LIBOBJS strcasecmp.$ac_objext"
21550 if test $HAVE_STRNCASECMP = 0; then
21559 gl_LIBOBJS
="$gl_LIBOBJS strncasecmp.$ac_objext"
21569 for ac_func
in strchrnul
21571 ac_fn_c_check_func
"$LINENO" "strchrnul" "ac_cv_func_strchrnul"
21572 if test "x$ac_cv_func_strchrnul" = xyes
; then :
21573 cat >>confdefs.h
<<_ACEOF
21574 #define HAVE_STRCHRNUL 1
21580 if test $ac_cv_func_strchrnul = no
; then
21583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
21584 $as_echo_n "checking whether strchrnul works... " >&6; }
21585 if ${gl_cv_func_strchrnul_works+:} false
; then :
21586 $as_echo_n "(cached) " >&6
21588 if test "$cross_compiling" = yes; then :
21589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21590 /* end confdefs.h. */
21592 #if defined __CYGWIN__
21593 #include <cygwin/version.h>
21594 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
21602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21603 $EGREP "Lucky user" >/dev
/null
2>&1; then :
21604 gl_cv_func_strchrnul_works
="guessing yes"
21606 gl_cv_func_strchrnul_works
="guessing no"
21612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21613 /* end confdefs.h. */
21615 #include <string.h> /* for strchrnul */
21620 const char *buf = "a";
21621 return strchrnul (buf, 'b') != buf + 1;
21627 if ac_fn_c_try_run
"$LINENO"; then :
21628 gl_cv_func_strchrnul_works
=yes
21630 gl_cv_func_strchrnul_works
=no
21632 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21633 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
21639 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
21640 case "$gl_cv_func_strchrnul_works" in
21642 *) REPLACE_STRCHRNUL
=1 ;;
21646 if test $HAVE_STRCHRNUL = 0 ||
test $REPLACE_STRCHRNUL = 1; then
21655 gl_LIBOBJS
="$gl_LIBOBJS strchrnul.$ac_objext"
21670 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
21679 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
21680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
21681 $as_echo_n "checking for working strerror function... " >&6; }
21682 if ${gl_cv_func_working_strerror+:} false
; then :
21683 $as_echo_n "(cached) " >&6
21685 if test "$cross_compiling" = yes; then :
21687 # Guess yes on glibc systems.
21688 *-gnu*) gl_cv_func_working_strerror
="guessing yes" ;;
21689 # If we don't know, assume the worst.
21690 *) gl_cv_func_working_strerror
="guessing no" ;;
21694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21695 /* end confdefs.h. */
21696 #include <string.h>
21701 if (!*strerror (-2)) return 1;
21706 if ac_fn_c_try_run
"$LINENO"; then :
21707 gl_cv_func_working_strerror
=yes
21709 gl_cv_func_working_strerror
=no
21711 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21712 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
21718 $as_echo "$gl_cv_func_working_strerror" >&6; }
21719 case "$gl_cv_func_working_strerror" in
21730 if test $REPLACE_STRERROR = 1; then
21739 gl_LIBOBJS
="$gl_LIBOBJS strerror.$ac_objext"
21744 cat >>confdefs.h
<<_ACEOF
21745 #define GNULIB_STRERROR 1
21760 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
21766 if test -n "$ERRNO_H" ||
test $REPLACE_STRERROR_0 = 1; then
21775 gl_LIBOBJS
="$gl_LIBOBJS strerror-override.$ac_objext"
21781 if test $ac_cv_header_sys_socket_h != yes; then
21782 for ac_header
in winsock2.h
21784 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21785 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
21786 cat >>confdefs.h
<<_ACEOF
21787 #define HAVE_WINSOCK2_H 1
21795 if test "$ac_cv_header_winsock2_h" = yes; then
21797 UNISTD_H_HAVE_WINSOCK2_H
=1
21798 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
21817 if test $ac_cv_have_decl_strndup = no
; then
21818 HAVE_DECL_STRNDUP
=0
21821 if test $ac_cv_func_strndup = yes; then
21823 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
21824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
21825 $as_echo_n "checking for working strndup... " >&6; }
21826 if ${gl_cv_func_strndup_works+:} false
; then :
21827 $as_echo_n "(cached) " >&6
21829 if test "$cross_compiling" = yes; then :
21832 aix | aix
[3-6]*) gl_cv_func_strndup_works
="guessing no";;
21833 *) gl_cv_func_strndup_works
="guessing yes";;
21837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21838 /* end confdefs.h. */
21840 #include <string.h>
21841 #include <stdlib.h>
21846 #if !HAVE_DECL_STRNDUP
21851 char *strndup (const char *, size_t);
21854 s = strndup ("some longer string", 15);
21856 s = strndup ("shorter string", 13);
21857 return s[13] != '\0';
21862 if ac_fn_c_try_run
"$LINENO"; then :
21863 gl_cv_func_strndup_works
=yes
21865 gl_cv_func_strndup_works
=no
21867 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21868 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
21873 $as_echo "$gl_cv_func_strndup_works" >&6; }
21874 case $gl_cv_func_strndup_works in
21875 *no
) REPLACE_STRNDUP
=1 ;;
21881 if test $HAVE_STRNDUP = 0 ||
test $REPLACE_STRNDUP = 1; then
21890 gl_LIBOBJS
="$gl_LIBOBJS strndup.$ac_objext"
21904 $as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
21914 if test $ac_cv_have_decl_strnlen = no
; then
21915 HAVE_DECL_STRNLEN
=0
21918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
21919 $as_echo_n "checking for working strnlen... " >&6; }
21920 if ${ac_cv_func_strnlen_working+:} false
; then :
21921 $as_echo_n "(cached) " >&6
21923 if test "$cross_compiling" = yes; then :
21924 # Guess no on AIX systems, yes otherwise.
21926 aix
*) ac_cv_func_strnlen_working
=no
;;
21927 *) ac_cv_func_strnlen_working
=yes;;
21930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21931 /* end confdefs.h. */
21932 $ac_includes_default
21938 #define S_LEN (sizeof S - 1)
21940 /* At least one implementation is buggy: that of AIX 4.3 would
21941 give strnlen (S, 1) == 3. */
21944 for (i = 0; i < S_LEN + 1; ++i)
21946 int expected = i <= S_LEN ? i : S_LEN;
21947 if (strnlen (S, i) != expected)
21956 if ac_fn_c_try_run
"$LINENO"; then :
21957 ac_cv_func_strnlen_working
=yes
21959 ac_cv_func_strnlen_working
=no
21961 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21962 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
21967 $as_echo "$ac_cv_func_strnlen_working" >&6; }
21968 test $ac_cv_func_strnlen_working = no
&& :
21971 if test $ac_cv_func_strnlen_working = no
; then
21976 if test $HAVE_DECL_STRNLEN = 0 ||
test $REPLACE_STRNLEN = 1; then
21985 gl_LIBOBJS
="$gl_LIBOBJS strnlen.$ac_objext"
22000 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
22008 if test $ac_cv_header_sysexits_h = yes; then
22019 if test $gl_cv_have_include_next = yes; then
22020 gl_cv_next_sysexits_h
='<'sysexits.h
'>'
22022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sysexits.h>" >&5
22023 $as_echo_n "checking absolute name of <sysexits.h>... " >&6; }
22024 if ${gl_cv_next_sysexits_h+:} false
; then :
22025 $as_echo_n "(cached) " >&6
22028 if test $ac_cv_header_sysexits_h = yes; then
22031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22032 /* end confdefs.h. */
22033 #include <sysexits.h>
22037 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22038 *) gl_absname_cpp
="$ac_cpp" ;;
22043 gl_dirsep_regex
='[/\\]'
22046 gl_dirsep_regex
='\/'
22049 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22051 gl_header_literal_regex
=`echo 'sysexits.h' \
22052 | sed -e "$gl_make_literal_regex_sed"`
22053 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22054 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22059 gl_cv_next_sysexits_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22060 sed -n "$gl_absolute_header_sed"`'"'
22062 gl_cv_next_sysexits_h
='<'sysexits.h
'>'
22067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sysexits_h" >&5
22068 $as_echo "$gl_cv_next_sysexits_h" >&6; }
22070 NEXT_SYSEXITS_H
=$gl_cv_next_sysexits_h
22072 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22073 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22074 gl_next_as_first_directive
='<'sysexits.h
'>'
22076 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22077 gl_next_as_first_directive
=$gl_cv_next_sysexits_h
22079 NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H
=$gl_next_as_first_directive
22084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22085 /* end confdefs.h. */
22086 #include <sysexits.h>
22098 case EX_UNAVAILABLE:
22115 if ac_fn_c_try_compile
"$LINENO"; then :
22118 SYSEXITS_H
=sysexits.h
22120 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22123 SYSEXITS_H
=sysexits.h
22127 if test -n "$SYSEXITS_H"; then
22128 GL_GENERATE_SYSEXITS_H_TRUE
=
22129 GL_GENERATE_SYSEXITS_H_FALSE
='#'
22131 GL_GENERATE_SYSEXITS_H_TRUE
='#'
22132 GL_GENERATE_SYSEXITS_H_FALSE
=
22148 if test $gl_cv_have_include_next = yes; then
22149 gl_cv_next_unistd_h
='<'unistd.h
'>'
22151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
22152 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
22153 if ${gl_cv_next_unistd_h+:} false
; then :
22154 $as_echo_n "(cached) " >&6
22157 if test $ac_cv_header_unistd_h = yes; then
22160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22161 /* end confdefs.h. */
22162 #include <unistd.h>
22166 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22167 *) gl_absname_cpp
="$ac_cpp" ;;
22172 gl_dirsep_regex
='[/\\]'
22175 gl_dirsep_regex
='\/'
22178 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22180 gl_header_literal_regex
=`echo 'unistd.h' \
22181 | sed -e "$gl_make_literal_regex_sed"`
22182 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22183 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22188 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22189 sed -n "$gl_absolute_header_sed"`'"'
22191 gl_cv_next_unistd_h
='<'unistd.h
'>'
22196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
22197 $as_echo "$gl_cv_next_unistd_h" >&6; }
22199 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
22201 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22202 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22203 gl_next_as_first_directive
='<'unistd.h
'>'
22205 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22206 gl_next_as_first_directive
=$gl_cv_next_unistd_h
22208 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
22213 if test $ac_cv_header_unistd_h = yes; then
22225 for gl_func
in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat
rmdir sethostname
sleep symlink symlinkat ttyname_r unlink unlinkat
usleep; do
22226 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22228 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22229 if eval \
${$as_gl_Symbol+:} false
; then :
22230 $as_echo_n "(cached) " >&6
22232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22233 /* end confdefs.h. */
22236 # include <unistd.h>
22238 /* Some systems declare various items in the wrong headers. */
22239 #if !(defined __GLIBC__ && !defined __UCLIBC__)
22240 # include <fcntl.h>
22241 # include <stdio.h>
22242 # include <stdlib.h>
22243 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
22257 if ac_fn_c_try_compile
"$LINENO"; then :
22258 eval "$as_gl_Symbol=yes"
22260 eval "$as_gl_Symbol=no"
22262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22264 eval ac_res
=\$
$as_gl_Symbol
22265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22266 $as_echo "$ac_res" >&6; }
22267 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
22268 cat >>confdefs.h
<<_ACEOF
22269 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22272 eval ac_cv_have_decl_
$gl_func=yes
22279 if { test "$HAVE_LIBUNISTRING" != yes \
22284 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
22285 ||
{ test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
22286 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
22287 ||
{ test $LIBUNISTRING_VERSION_MINOR -eq 9 \
22288 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
22298 LIBUNISTRING_UNITYPES_H
='unitypes.h'
22300 LIBUNISTRING_UNITYPES_H
=
22306 if { test "$HAVE_LIBUNISTRING" != yes \
22311 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
22312 ||
{ test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
22313 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
22314 ||
{ test $LIBUNISTRING_VERSION_MINOR -eq 9 \
22315 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
22325 LIBUNISTRING_UNIWIDTH_H
='uniwidth.h'
22327 LIBUNISTRING_UNIWIDTH_H
=
22333 if { test "$HAVE_LIBUNISTRING" != yes \
22338 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
22339 ||
{ test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
22340 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
22341 ||
{ test $LIBUNISTRING_VERSION_MINOR -eq 9 \
22342 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
22352 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE
=
22353 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE
='#'
22355 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE
='#'
22356 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE
=
22362 if test $ac_cv_func_vasnprintf = no
; then
22373 gl_LIBOBJS
="$gl_LIBOBJS vasnprintf.$ac_objext"
22383 gl_LIBOBJS
="$gl_LIBOBJS printf-args.$ac_objext"
22393 gl_LIBOBJS
="$gl_LIBOBJS printf-parse.$ac_objext"
22403 gl_LIBOBJS
="$gl_LIBOBJS asnprintf.$ac_objext"
22405 if test $ac_cv_func_vasnprintf = yes; then
22407 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
22421 ac_fn_c_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
22422 if test "x$ac_cv_type_ptrdiff_t" = xyes
; then :
22426 $as_echo "#define ptrdiff_t long" >>confdefs.h
22441 gl_cv_func_vsnprintf_usable
=no
22442 for ac_func
in vsnprintf
22444 ac_fn_c_check_func
"$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
22445 if test "x$ac_cv_func_vsnprintf" = xyes
; then :
22446 cat >>confdefs.h
<<_ACEOF
22447 #define HAVE_VSNPRINTF 1
22453 if test $ac_cv_func_vsnprintf = yes; then
22457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
22458 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
22459 if ${gl_cv_func_snprintf_size1+:} false
; then :
22460 $as_echo_n "(cached) " >&6
22463 if test "$cross_compiling" = yes; then :
22464 gl_cv_func_snprintf_size1
="guessing yes"
22466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22467 /* end confdefs.h. */
22471 # define my_snprintf snprintf
22473 # include <stdarg.h>
22474 static int my_snprintf (char *buf, int size, const char *format, ...)
22478 va_start (args, format);
22479 ret = vsnprintf (buf, size, format, args);
22486 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
22487 my_snprintf (buf, 1, "%d", 12345);
22488 return buf[1] != 'E';
22491 if ac_fn_c_try_run
"$LINENO"; then :
22492 gl_cv_func_snprintf_size1
=yes
22494 gl_cv_func_snprintf_size1
=no
22496 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22497 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
22503 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
22505 case "$gl_cv_func_snprintf_size1" in
22508 case "$gl_cv_func_snprintf_retval_c99" in
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
22513 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
22514 if ${gl_cv_func_printf_positions+:} false
; then :
22515 $as_echo_n "(cached) " >&6
22518 if test "$cross_compiling" = yes; then :
22521 netbsd
[1-3]* | netbsdelf
[1-3]* | netbsdaout
[1-3]* | netbsdcoff
[1-3]*)
22522 gl_cv_func_printf_positions
="guessing no";;
22523 beos
*) gl_cv_func_printf_positions
="guessing no";;
22524 mingw
* | pw
*) gl_cv_func_printf_positions
="guessing no";;
22525 *) gl_cv_func_printf_positions
="guessing yes";;
22529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22530 /* end confdefs.h. */
22533 #include <string.h>
22534 /* The string "%2$d %1$d", with dollar characters protected from the shell's
22535 dollar expansion (possibly an autoconf bug). */
22536 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
22537 static char buf[100];
22540 sprintf (buf, format, 33, 55);
22541 return (strcmp (buf, "55 33") != 0);
22544 if ac_fn_c_try_run
"$LINENO"; then :
22545 gl_cv_func_printf_positions
=yes
22547 gl_cv_func_printf_positions
=no
22549 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22550 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
22556 $as_echo "$gl_cv_func_printf_positions" >&6; }
22558 case "$gl_cv_func_printf_positions" in
22560 gl_cv_func_vsnprintf_usable
=yes
22568 if test $gl_cv_func_vsnprintf_usable = no
; then
22579 gl_LIBOBJS
="$gl_LIBOBJS vsnprintf.$ac_objext"
22581 if test $ac_cv_func_vsnprintf = yes; then
22582 REPLACE_VSNPRINTF
=1
22588 if test $ac_cv_have_decl_vsnprintf = no
; then
22589 HAVE_DECL_VSNPRINTF
=0
22603 $as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
22619 if test $gl_cv_have_include_next = yes; then
22620 gl_cv_next_wchar_h
='<'wchar.h
'>'
22622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
22623 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
22624 if ${gl_cv_next_wchar_h+:} false
; then :
22625 $as_echo_n "(cached) " >&6
22628 if test $ac_cv_header_wchar_h = yes; then
22631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22632 /* end confdefs.h. */
22637 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22638 *) gl_absname_cpp
="$ac_cpp" ;;
22643 gl_dirsep_regex
='[/\\]'
22646 gl_dirsep_regex
='\/'
22649 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22651 gl_header_literal_regex
=`echo 'wchar.h' \
22652 | sed -e "$gl_make_literal_regex_sed"`
22653 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22654 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22659 gl_cv_next_wchar_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22660 sed -n "$gl_absolute_header_sed"`'"'
22662 gl_cv_next_wchar_h
='<'wchar.h
'>'
22667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
22668 $as_echo "$gl_cv_next_wchar_h" >&6; }
22670 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
22672 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22673 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22674 gl_next_as_first_directive
='<'wchar.h
'>'
22676 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22677 gl_next_as_first_directive
=$gl_cv_next_wchar_h
22679 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
22684 if test $ac_cv_header_wchar_h = yes; then
22694 if test $gt_cv_c_wint_t = yes; then
22702 for gl_func
in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth
; do
22703 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22705 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22706 if eval \
${$as_gl_Symbol+:} false
; then :
22707 $as_echo_n "(cached) " >&6
22709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22710 /* end confdefs.h. */
22712 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22714 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22715 included before <wchar.h>. */
22716 #if !(defined __GLIBC__ && !defined __UCLIBC__)
22717 # include <stddef.h>
22718 # include <stdio.h>
22732 if ac_fn_c_try_compile
"$LINENO"; then :
22733 eval "$as_gl_Symbol=yes"
22735 eval "$as_gl_Symbol=no"
22737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22739 eval ac_res
=\$
$as_gl_Symbol
22740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22741 $as_echo "$ac_res" >&6; }
22742 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
22743 cat >>confdefs.h
<<_ACEOF
22744 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22747 eval ac_cv_have_decl_
$gl_func=yes
22762 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
22766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
22767 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
22768 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
22769 $as_echo_n "(cached) " >&6
22773 # Guess no on AIX and OSF/1.
22774 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
22775 # Guess yes otherwise.
22776 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
22778 if test $LOCALE_JA != none
; then
22779 if test "$cross_compiling" = yes; then :
22782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22783 /* end confdefs.h. */
22785 #include <locale.h>
22786 #include <string.h>
22787 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22789 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22790 included before <wchar.h>. */
22791 #include <stddef.h>
22797 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
22799 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
22803 memset (&state, '\0', sizeof (mbstate_t));
22804 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
22805 if (mbsinit (&state))
22811 if ac_fn_c_try_run
"$LINENO"; then :
22812 gl_cv_func_mbrtowc_incomplete_state
=yes
22814 gl_cv_func_mbrtowc_incomplete_state
=no
22816 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22817 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
22824 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
22829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
22830 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
22831 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
22832 $as_echo_n "(cached) " >&6
22836 # Guess no on Solaris 8.
22837 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
22838 # Guess yes otherwise.
22839 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
22841 if test $LOCALE_ZH_CN != none
; then
22842 if test "$cross_compiling" = yes; then :
22845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22846 /* end confdefs.h. */
22848 #include <locale.h>
22849 #include <stdlib.h>
22850 #include <string.h>
22851 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22853 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22854 included before <wchar.h>. */
22855 #include <stddef.h>
22861 /* This fails on Solaris 8:
22862 mbrtowc returns 2, and sets wc to 0x00F0.
22863 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
22864 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
22866 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
22870 memset (&state, '\0', sizeof (mbstate_t));
22871 if (mbrtowc (&wc, input + 3, 6, &state) != 4
22872 && mbtowc (&wc, input + 3, 6) == 4)
22878 if ac_fn_c_try_run
"$LINENO"; then :
22879 gl_cv_func_mbrtowc_sanitycheck
=yes
22881 gl_cv_func_mbrtowc_sanitycheck
=no
22883 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22884 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
22891 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
22893 REPLACE_MBSTATE_T
=0
22894 case "$gl_cv_func_mbrtowc_incomplete_state" in
22896 *) REPLACE_MBSTATE_T
=1 ;;
22898 case "$gl_cv_func_mbrtowc_sanitycheck" in
22900 *) REPLACE_MBSTATE_T
=1 ;;
22903 REPLACE_MBSTATE_T
=1
22908 if test $ac_cv_func_wcrtomb = no
; then
22910 ac_fn_c_check_decl
"$LINENO" "wcrtomb" "ac_cv_have_decl_wcrtomb" "
22911 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22913 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22914 included before <wchar.h>. */
22915 #include <stddef.h>
22921 if test "x$ac_cv_have_decl_wcrtomb" = xyes
; then :
22927 cat >>confdefs.h
<<_ACEOF
22928 #define HAVE_DECL_WCRTOMB $ac_have_decl
22931 if test $ac_cv_have_decl_wcrtomb = yes; then
22935 if test $REPLACE_MBSTATE_T = 1; then
22943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
22944 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
22945 if ${gl_cv_func_wcrtomb_retval+:} false
; then :
22946 $as_echo_n "(cached) " >&6
22950 # Guess no on AIX 4, OSF/1 and Solaris.
22951 aix4
* | osf
* | solaris
*) gl_cv_func_wcrtomb_retval
="guessing no" ;;
22952 # Guess yes otherwise.
22953 *) gl_cv_func_wcrtomb_retval
="guessing yes" ;;
22955 if test $LOCALE_FR != none ||
test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none ||
test $LOCALE_ZH_CN != none
; then
22956 if test "$cross_compiling" = yes; then :
22959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22960 /* end confdefs.h. */
22962 #include <locale.h>
22963 #include <string.h>
22964 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22966 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22967 included before <wchar.h>. */
22968 #include <stddef.h>
22975 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
22977 if (wcrtomb (NULL, 0, NULL) != 1)
22980 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
22982 if (wcrtomb (NULL, 0, NULL) != 1)
22985 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
22987 if (wcrtomb (NULL, 0, NULL) != 1)
22990 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
22992 if (wcrtomb (NULL, 0, NULL) != 1)
22998 if ac_fn_c_try_run
"$LINENO"; then :
22999 gl_cv_func_wcrtomb_retval
=yes
23001 gl_cv_func_wcrtomb_retval
=no
23003 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23004 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5
23011 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
23012 case "$gl_cv_func_wcrtomb_retval" in
23014 *) REPLACE_WCRTOMB
=1 ;;
23019 if test $HAVE_WCRTOMB = 0 ||
test $REPLACE_WCRTOMB = 1; then
23028 gl_LIBOBJS
="$gl_LIBOBJS wcrtomb.$ac_objext"
23045 $as_echo "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h
23054 if test $ac_cv_func_iswcntrl = yes; then
23062 if test $gt_cv_c_wint_t = yes; then
23078 if test $gl_cv_have_include_next = yes; then
23079 gl_cv_next_wctype_h
='<'wctype.h
'>'
23081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
23082 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
23083 if ${gl_cv_next_wctype_h+:} false
; then :
23084 $as_echo_n "(cached) " >&6
23087 if test $ac_cv_header_wctype_h = yes; then
23090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23091 /* end confdefs.h. */
23092 #include <wctype.h>
23096 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23097 *) gl_absname_cpp
="$ac_cpp" ;;
23102 gl_dirsep_regex
='[/\\]'
23105 gl_dirsep_regex
='\/'
23108 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23110 gl_header_literal_regex
=`echo 'wctype.h' \
23111 | sed -e "$gl_make_literal_regex_sed"`
23112 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23113 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23118 gl_cv_next_wctype_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23119 sed -n "$gl_absolute_header_sed"`'"'
23121 gl_cv_next_wctype_h
='<'wctype.h
'>'
23126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
23127 $as_echo "$gl_cv_next_wctype_h" >&6; }
23129 NEXT_WCTYPE_H
=$gl_cv_next_wctype_h
23131 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23132 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23133 gl_next_as_first_directive
='<'wctype.h
'>'
23135 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23136 gl_next_as_first_directive
=$gl_cv_next_wctype_h
23138 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
=$gl_next_as_first_directive
23143 if test $ac_cv_header_wctype_h = yes; then
23144 if test $ac_cv_func_iswcntrl = yes; then
23145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
23146 $as_echo_n "checking whether iswcntrl works... " >&6; }
23147 if ${gl_cv_func_iswcntrl_works+:} false
; then :
23148 $as_echo_n "(cached) " >&6
23151 if test "$cross_compiling" = yes; then :
23152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23153 /* end confdefs.h. */
23154 #include <stdlib.h>
23155 #if __GNU_LIBRARY__ == 1
23156 Linux libc5 i18n is broken.
23166 if ac_fn_c_try_compile
"$LINENO"; then :
23167 gl_cv_func_iswcntrl_works
="guessing yes"
23169 gl_cv_func_iswcntrl_works
="guessing no"
23171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23175 /* end confdefs.h. */
23177 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
23178 included before <wchar.h>.
23179 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
23180 must be included before <wchar.h>. */
23181 #include <stddef.h>
23185 #include <wctype.h>
23186 int main () { return iswprint ('x') == 0; }
23189 if ac_fn_c_try_run
"$LINENO"; then :
23190 gl_cv_func_iswcntrl_works
=yes
23192 gl_cv_func_iswcntrl_works
=no
23194 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23195 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
23201 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
23209 case "$gl_cv_func_iswcntrl_works" in
23210 *yes) REPLACE_ISWCNTRL
=0 ;;
23211 *) REPLACE_ISWCNTRL
=1 ;;
23215 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_ISWCNTRL = 1; then
23219 if test $REPLACE_ISWCNTRL = 1; then
23222 for ac_func
in towlower
23224 ac_fn_c_check_func
"$LINENO" "towlower" "ac_cv_func_towlower"
23225 if test "x$ac_cv_func_towlower" = xyes
; then :
23226 cat >>confdefs.h
<<_ACEOF
23227 #define HAVE_TOWLOWER 1
23233 if test $ac_cv_func_towlower = yes; then
23236 ac_fn_c_check_decl
"$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
23237 included before <wchar.h>.
23238 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
23239 must be included before <wchar.h>. */
23240 #include <stddef.h>
23245 # include <wctype.h>
23249 if test "x$ac_cv_have_decl_towlower" = xyes
; then :
23255 cat >>confdefs.h
<<_ACEOF
23256 #define HAVE_DECL_TOWLOWER $ac_have_decl
23259 if test $ac_cv_have_decl_towlower = yes; then
23268 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_TOWLOWER = 1; then
23272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
23273 $as_echo_n "checking for wctype_t... " >&6; }
23274 if ${gl_cv_type_wctype_t+:} false
; then :
23275 $as_echo_n "(cached) " >&6
23277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23278 /* end confdefs.h. */
23279 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
23280 included before <wchar.h>.
23281 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
23282 must be included before <wchar.h>. */
23283 #include <stddef.h>
23288 # include <wctype.h>
23300 if ac_fn_c_try_compile
"$LINENO"; then :
23301 gl_cv_type_wctype_t
=yes
23303 gl_cv_type_wctype_t
=no
23305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
23309 $as_echo "$gl_cv_type_wctype_t" >&6; }
23310 if test $gl_cv_type_wctype_t = no
; then
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
23315 $as_echo_n "checking for wctrans_t... " >&6; }
23316 if ${gl_cv_type_wctrans_t+:} false
; then :
23317 $as_echo_n "(cached) " >&6
23319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23320 /* end confdefs.h. */
23321 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
23322 included before <wchar.h>.
23323 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
23324 must be included before <wchar.h>. */
23325 #include <stddef.h>
23329 #include <wctype.h>
23340 if ac_fn_c_try_compile
"$LINENO"; then :
23341 gl_cv_type_wctrans_t
=yes
23343 gl_cv_type_wctrans_t
=no
23345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
23349 $as_echo "$gl_cv_type_wctrans_t" >&6; }
23350 if test $gl_cv_type_wctrans_t = no
; then
23355 for gl_func
in wctype iswctype wctrans towctrans
; do
23356 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23358 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23359 if eval \
${$as_gl_Symbol+:} false
; then :
23360 $as_echo_n "(cached) " >&6
23362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23363 /* end confdefs.h. */
23365 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23367 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23368 included before <wchar.h>. */
23369 #if !(defined __GLIBC__ && !defined __UCLIBC__)
23370 # include <stddef.h>
23371 # include <stdio.h>
23373 # include <wchar.h>
23375 #include <wctype.h>
23386 if ac_fn_c_try_compile
"$LINENO"; then :
23387 eval "$as_gl_Symbol=yes"
23389 eval "$as_gl_Symbol=no"
23391 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23393 eval ac_res
=\$
$as_gl_Symbol
23394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23395 $as_echo "$ac_res" >&6; }
23396 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
23397 cat >>confdefs.h
<<_ACEOF
23398 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23401 eval ac_cv_have_decl_
$gl_func=yes
23417 ac_fn_c_check_decl
"$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "
23418 /* AIX 3.2.5 declares wcwidth in <string.h>. */
23419 #include <string.h>
23420 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23422 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
23423 before <wchar.h>. */
23424 #include <stddef.h>
23430 if test "x$ac_cv_have_decl_wcwidth" = xyes
; then :
23436 cat >>confdefs.h
<<_ACEOF
23437 #define HAVE_DECL_WCWIDTH $ac_have_decl
23440 if test $ac_cv_have_decl_wcwidth != yes; then
23441 HAVE_DECL_WCWIDTH
=0
23444 if test $ac_cv_func_wcwidth = yes; then
23446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5
23447 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
23448 if ${gl_cv_func_wcwidth_works+:} false
; then :
23449 $as_echo_n "(cached) " >&6
23452 if test "$cross_compiling" = yes; then :
23455 # Guess yes on glibc and AIX 7 systems.
23456 *-gnu* | aix
[7-9]*) gl_cv_func_wcwidth_works
="guessing yes";;
23457 *) gl_cv_func_wcwidth_works
="guessing no";;
23461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23462 /* end confdefs.h. */
23464 #include <locale.h>
23465 /* AIX 3.2.5 declares wcwidth in <string.h>. */
23466 #include <string.h>
23467 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23469 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
23470 before <wchar.h>. */
23471 #include <stddef.h>
23475 #if !HAVE_DECL_WCWIDTH
23477 # ifdef __cplusplus
23485 if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
23487 if (wcwidth (0x0301) > 0)
23489 if (wcwidth (0x05B0) > 0)
23491 if (wcwidth (0x200B) > 0)
23497 if ac_fn_c_try_run
"$LINENO"; then :
23498 gl_cv_func_wcwidth_works
=yes
23500 gl_cv_func_wcwidth_works
=no
23502 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23503 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_works" >&5
23509 $as_echo "$gl_cv_func_wcwidth_works" >&6; }
23510 case "$gl_cv_func_wcwidth_works" in
23512 *no
) REPLACE_WCWIDTH
=1 ;;
23518 if test $HAVE_WCWIDTH = 0 ||
test $REPLACE_WCWIDTH = 1; then
23527 gl_LIBOBJS
="$gl_LIBOBJS wcwidth.$ac_objext"
23541 $as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h
23547 for ac_header
in stdint.h
23549 ac_fn_c_check_header_mongrel
"$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
23550 if test "x$ac_cv_header_stdint_h" = xyes
; then :
23551 cat >>confdefs.h
<<_ACEOF
23552 #define HAVE_STDINT_H 1
23560 # End of code from modules
23581 gl_source_base
='tests'
23582 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
23584 gl_module_indicator_condition
=$gltests_WITNESS
23594 LIBGNU_LIBDEPS
="$gl_libdeps"
23596 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
23600 WARN_FLAGS
="-Wall -W -Wshadow -Wpointer-arith -Wundef -Wchar-subscripts -Wcomment -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wfloat-equal -Wformat-extra-args -Wformat-security -Wformat-y2k -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Wmain -Wmissing-braces -Wmissing-format-attribute -Wmultichar -Wparentheses -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare -Wswitch -Wtrigraphs -Wunknown-pragmas -Wunused -Wunused-function -Wunused-label -Wunused-parameter -Wunused-value -Wunused-variable -Wwrite-strings -Wnested-externs -Wstrict-prototypes"
23601 EXTRA_WARN_FLAGS
="-Wextra -Wattributes -Wendif-labels -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmissing-field-initializers -Wnonnull -Woverflow -Wvla -Wpointer-to-int-cast -Wstrict-aliasing -Wvariadic-macros -Wvolatile-register-var -Wpointer-sign -Wmissing-include-dirs -Wmissing-prototypes -Wmissing-declarations -Wformat=2"
23603 HOST_CFLAGS
="$HOST_CFLAGS $WARN_FLAGS -Wcast-align"
23605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extra warnings work" >&5
23606 $as_echo_n "checking which extra warnings work... " >&6; }
23607 if ${grub_cv_cc_w_extra_flags+:} false
; then :
23608 $as_echo_n "(cached) " >&6
23611 SAVED_CFLAGS
="$CFLAGS"
23612 grub_cv_cc_w_extra_flags
=
23613 for x
in $EXTRA_WARN_FLAGS; do
23614 CFLAGS
="$HOST_CFLAGS $x -Werror"
23615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23616 /* end confdefs.h. */
23626 if ac_fn_c_try_link
"$LINENO"; then :
23631 rm -f core conftest.err conftest.
$ac_objext \
23632 conftest
$ac_exeext conftest.
$ac_ext
23633 if test x
$flag = x1
; then
23634 grub_cv_cc_w_extra_flags
="$grub_cv_cc_w_extra_flags $x"
23637 CFLAGS
="$SAVED_CFLAGS"
23640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_w_extra_flags" >&5
23641 $as_echo "$grub_cv_cc_w_extra_flags" >&6; }
23643 HOST_CFLAGS
="$HOST_CFLAGS $grub_cv_cc_w_extra_flags"
23646 # Check for target programs.
23649 # Find tools for the target.
23650 if test "x$target_alias" != x
&& test "x$host_alias" != "x$target_alias"; then
23651 tmp_ac_tool_prefix
="$ac_tool_prefix"
23652 ac_tool_prefix
=$target_alias-
23654 if test -n "$ac_tool_prefix"; then
23655 for ac_prog
in gcc egcs cc
23657 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23658 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
23659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23660 $as_echo_n "checking for $ac_word... " >&6; }
23661 if ${ac_cv_prog_TARGET_CC+:} false
; then :
23662 $as_echo_n "(cached) " >&6
23664 if test -n "$TARGET_CC"; then
23665 ac_cv_prog_TARGET_CC
="$TARGET_CC" # Let the user override the test.
23667 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23668 for as_dir
in $PATH
23671 test -z "$as_dir" && as_dir
=.
23672 for ac_exec_ext
in '' $ac_executable_extensions; do
23673 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23674 ac_cv_prog_TARGET_CC
="$ac_tool_prefix$ac_prog"
23675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23684 TARGET_CC
=$ac_cv_prog_TARGET_CC
23685 if test -n "$TARGET_CC"; then
23686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_CC" >&5
23687 $as_echo "$TARGET_CC" >&6; }
23689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23690 $as_echo "no" >&6; }
23694 test -n "$TARGET_CC" && break
23697 if test -z "$TARGET_CC"; then
23698 ac_ct_TARGET_CC
=$TARGET_CC
23699 for ac_prog
in gcc egcs cc
23701 # Extract the first word of "$ac_prog", so it can be a program name with args.
23702 set dummy
$ac_prog; ac_word
=$2
23703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23704 $as_echo_n "checking for $ac_word... " >&6; }
23705 if ${ac_cv_prog_ac_ct_TARGET_CC+:} false
; then :
23706 $as_echo_n "(cached) " >&6
23708 if test -n "$ac_ct_TARGET_CC"; then
23709 ac_cv_prog_ac_ct_TARGET_CC
="$ac_ct_TARGET_CC" # Let the user override the test.
23711 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23712 for as_dir
in $PATH
23715 test -z "$as_dir" && as_dir
=.
23716 for ac_exec_ext
in '' $ac_executable_extensions; do
23717 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23718 ac_cv_prog_ac_ct_TARGET_CC
="$ac_prog"
23719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23728 ac_ct_TARGET_CC
=$ac_cv_prog_ac_ct_TARGET_CC
23729 if test -n "$ac_ct_TARGET_CC"; then
23730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_CC" >&5
23731 $as_echo "$ac_ct_TARGET_CC" >&6; }
23733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23734 $as_echo "no" >&6; }
23738 test -n "$ac_ct_TARGET_CC" && break
23741 if test "x$ac_ct_TARGET_CC" = x
; then
23742 TARGET_CC
="as_fn_error $? "none of gcc
, egcs and cc is found.
set TARGET_CC manually.
" "$LINENO" 5"
23744 case $cross_compiling:$ac_tool_warned in
23746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23748 ac_tool_warned
=yes ;;
23750 TARGET_CC
=$ac_ct_TARGET_CC
23754 if test -n "$ac_tool_prefix"; then
23755 for ac_prog
in gobjcopy objcopy
23757 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23758 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
23759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23760 $as_echo_n "checking for $ac_word... " >&6; }
23761 if ${ac_cv_prog_TARGET_OBJCOPY+:} false
; then :
23762 $as_echo_n "(cached) " >&6
23764 if test -n "$TARGET_OBJCOPY"; then
23765 ac_cv_prog_TARGET_OBJCOPY
="$TARGET_OBJCOPY" # Let the user override the test.
23767 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23768 for as_dir
in $PATH
23771 test -z "$as_dir" && as_dir
=.
23772 for ac_exec_ext
in '' $ac_executable_extensions; do
23773 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23774 ac_cv_prog_TARGET_OBJCOPY
="$ac_tool_prefix$ac_prog"
23775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23784 TARGET_OBJCOPY
=$ac_cv_prog_TARGET_OBJCOPY
23785 if test -n "$TARGET_OBJCOPY"; then
23786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_OBJCOPY" >&5
23787 $as_echo "$TARGET_OBJCOPY" >&6; }
23789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23790 $as_echo "no" >&6; }
23794 test -n "$TARGET_OBJCOPY" && break
23797 if test -z "$TARGET_OBJCOPY"; then
23798 ac_ct_TARGET_OBJCOPY
=$TARGET_OBJCOPY
23799 for ac_prog
in gobjcopy objcopy
23801 # Extract the first word of "$ac_prog", so it can be a program name with args.
23802 set dummy
$ac_prog; ac_word
=$2
23803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23804 $as_echo_n "checking for $ac_word... " >&6; }
23805 if ${ac_cv_prog_ac_ct_TARGET_OBJCOPY+:} false
; then :
23806 $as_echo_n "(cached) " >&6
23808 if test -n "$ac_ct_TARGET_OBJCOPY"; then
23809 ac_cv_prog_ac_ct_TARGET_OBJCOPY
="$ac_ct_TARGET_OBJCOPY" # Let the user override the test.
23811 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23812 for as_dir
in $PATH
23815 test -z "$as_dir" && as_dir
=.
23816 for ac_exec_ext
in '' $ac_executable_extensions; do
23817 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23818 ac_cv_prog_ac_ct_TARGET_OBJCOPY
="$ac_prog"
23819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23828 ac_ct_TARGET_OBJCOPY
=$ac_cv_prog_ac_ct_TARGET_OBJCOPY
23829 if test -n "$ac_ct_TARGET_OBJCOPY"; then
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_OBJCOPY" >&5
23831 $as_echo "$ac_ct_TARGET_OBJCOPY" >&6; }
23833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23834 $as_echo "no" >&6; }
23838 test -n "$ac_ct_TARGET_OBJCOPY" && break
23841 if test "x$ac_ct_TARGET_OBJCOPY" = x
; then
23844 case $cross_compiling:$ac_tool_warned in
23846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23848 ac_tool_warned
=yes ;;
23850 TARGET_OBJCOPY
=$ac_ct_TARGET_OBJCOPY
23854 if test -n "$ac_tool_prefix"; then
23855 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
23856 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
23857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23858 $as_echo_n "checking for $ac_word... " >&6; }
23859 if ${ac_cv_prog_TARGET_STRIP+:} false
; then :
23860 $as_echo_n "(cached) " >&6
23862 if test -n "$TARGET_STRIP"; then
23863 ac_cv_prog_TARGET_STRIP
="$TARGET_STRIP" # Let the user override the test.
23865 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23866 for as_dir
in $PATH
23869 test -z "$as_dir" && as_dir
=.
23870 for ac_exec_ext
in '' $ac_executable_extensions; do
23871 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23872 ac_cv_prog_TARGET_STRIP
="${ac_tool_prefix}strip"
23873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23882 TARGET_STRIP
=$ac_cv_prog_TARGET_STRIP
23883 if test -n "$TARGET_STRIP"; then
23884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_STRIP" >&5
23885 $as_echo "$TARGET_STRIP" >&6; }
23887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23888 $as_echo "no" >&6; }
23893 if test -z "$ac_cv_prog_TARGET_STRIP"; then
23894 ac_ct_TARGET_STRIP
=$TARGET_STRIP
23895 # Extract the first word of "strip", so it can be a program name with args.
23896 set dummy strip
; ac_word
=$2
23897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23898 $as_echo_n "checking for $ac_word... " >&6; }
23899 if ${ac_cv_prog_ac_ct_TARGET_STRIP+:} false
; then :
23900 $as_echo_n "(cached) " >&6
23902 if test -n "$ac_ct_TARGET_STRIP"; then
23903 ac_cv_prog_ac_ct_TARGET_STRIP
="$ac_ct_TARGET_STRIP" # Let the user override the test.
23905 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23906 for as_dir
in $PATH
23909 test -z "$as_dir" && as_dir
=.
23910 for ac_exec_ext
in '' $ac_executable_extensions; do
23911 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23912 ac_cv_prog_ac_ct_TARGET_STRIP
="strip"
23913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23922 ac_ct_TARGET_STRIP
=$ac_cv_prog_ac_ct_TARGET_STRIP
23923 if test -n "$ac_ct_TARGET_STRIP"; then
23924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_STRIP" >&5
23925 $as_echo "$ac_ct_TARGET_STRIP" >&6; }
23927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23928 $as_echo "no" >&6; }
23931 if test "x$ac_ct_TARGET_STRIP" = x
; then
23934 case $cross_compiling:$ac_tool_warned in
23936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23938 ac_tool_warned
=yes ;;
23940 TARGET_STRIP
=$ac_ct_TARGET_STRIP
23943 TARGET_STRIP
="$ac_cv_prog_TARGET_STRIP"
23946 if test -n "$ac_tool_prefix"; then
23947 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
23948 set dummy
${ac_tool_prefix}nm
; ac_word
=$2
23949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23950 $as_echo_n "checking for $ac_word... " >&6; }
23951 if ${ac_cv_prog_TARGET_NM+:} false
; then :
23952 $as_echo_n "(cached) " >&6
23954 if test -n "$TARGET_NM"; then
23955 ac_cv_prog_TARGET_NM
="$TARGET_NM" # Let the user override the test.
23957 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23958 for as_dir
in $PATH
23961 test -z "$as_dir" && as_dir
=.
23962 for ac_exec_ext
in '' $ac_executable_extensions; do
23963 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23964 ac_cv_prog_TARGET_NM
="${ac_tool_prefix}nm"
23965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23974 TARGET_NM
=$ac_cv_prog_TARGET_NM
23975 if test -n "$TARGET_NM"; then
23976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_NM" >&5
23977 $as_echo "$TARGET_NM" >&6; }
23979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23980 $as_echo "no" >&6; }
23985 if test -z "$ac_cv_prog_TARGET_NM"; then
23986 ac_ct_TARGET_NM
=$TARGET_NM
23987 # Extract the first word of "nm", so it can be a program name with args.
23988 set dummy nm
; ac_word
=$2
23989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23990 $as_echo_n "checking for $ac_word... " >&6; }
23991 if ${ac_cv_prog_ac_ct_TARGET_NM+:} false
; then :
23992 $as_echo_n "(cached) " >&6
23994 if test -n "$ac_ct_TARGET_NM"; then
23995 ac_cv_prog_ac_ct_TARGET_NM
="$ac_ct_TARGET_NM" # Let the user override the test.
23997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23998 for as_dir
in $PATH
24001 test -z "$as_dir" && as_dir
=.
24002 for ac_exec_ext
in '' $ac_executable_extensions; do
24003 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24004 ac_cv_prog_ac_ct_TARGET_NM
="nm"
24005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24014 ac_ct_TARGET_NM
=$ac_cv_prog_ac_ct_TARGET_NM
24015 if test -n "$ac_ct_TARGET_NM"; then
24016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_NM" >&5
24017 $as_echo "$ac_ct_TARGET_NM" >&6; }
24019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24020 $as_echo "no" >&6; }
24023 if test "x$ac_ct_TARGET_NM" = x
; then
24026 case $cross_compiling:$ac_tool_warned in
24028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24030 ac_tool_warned
=yes ;;
24032 TARGET_NM
=$ac_ct_TARGET_NM
24035 TARGET_NM
="$ac_cv_prog_TARGET_NM"
24038 if test -n "$ac_tool_prefix"; then
24039 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
24040 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
24041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24042 $as_echo_n "checking for $ac_word... " >&6; }
24043 if ${ac_cv_prog_TARGET_RANLIB+:} false
; then :
24044 $as_echo_n "(cached) " >&6
24046 if test -n "$TARGET_RANLIB"; then
24047 ac_cv_prog_TARGET_RANLIB
="$TARGET_RANLIB" # Let the user override the test.
24049 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24050 for as_dir
in $PATH
24053 test -z "$as_dir" && as_dir
=.
24054 for ac_exec_ext
in '' $ac_executable_extensions; do
24055 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24056 ac_cv_prog_TARGET_RANLIB
="${ac_tool_prefix}ranlib"
24057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24066 TARGET_RANLIB
=$ac_cv_prog_TARGET_RANLIB
24067 if test -n "$TARGET_RANLIB"; then
24068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_RANLIB" >&5
24069 $as_echo "$TARGET_RANLIB" >&6; }
24071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24072 $as_echo "no" >&6; }
24077 if test -z "$ac_cv_prog_TARGET_RANLIB"; then
24078 ac_ct_TARGET_RANLIB
=$TARGET_RANLIB
24079 # Extract the first word of "ranlib", so it can be a program name with args.
24080 set dummy ranlib
; ac_word
=$2
24081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24082 $as_echo_n "checking for $ac_word... " >&6; }
24083 if ${ac_cv_prog_ac_ct_TARGET_RANLIB+:} false
; then :
24084 $as_echo_n "(cached) " >&6
24086 if test -n "$ac_ct_TARGET_RANLIB"; then
24087 ac_cv_prog_ac_ct_TARGET_RANLIB
="$ac_ct_TARGET_RANLIB" # Let the user override the test.
24089 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24090 for as_dir
in $PATH
24093 test -z "$as_dir" && as_dir
=.
24094 for ac_exec_ext
in '' $ac_executable_extensions; do
24095 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24096 ac_cv_prog_ac_ct_TARGET_RANLIB
="ranlib"
24097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24106 ac_ct_TARGET_RANLIB
=$ac_cv_prog_ac_ct_TARGET_RANLIB
24107 if test -n "$ac_ct_TARGET_RANLIB"; then
24108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_RANLIB" >&5
24109 $as_echo "$ac_ct_TARGET_RANLIB" >&6; }
24111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24112 $as_echo "no" >&6; }
24115 if test "x$ac_ct_TARGET_RANLIB" = x
; then
24118 case $cross_compiling:$ac_tool_warned in
24120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24122 ac_tool_warned
=yes ;;
24124 TARGET_RANLIB
=$ac_ct_TARGET_RANLIB
24127 TARGET_RANLIB
="$ac_cv_prog_TARGET_RANLIB"
24131 ac_tool_prefix
="$tmp_ac_tool_prefix"
24133 if test "x$TARGET_CC" = x
; then
24136 if test -n "$ac_tool_prefix"; then
24137 for ac_prog
in gobjcopy objcopy
24139 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24140 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
24141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24142 $as_echo_n "checking for $ac_word... " >&6; }
24143 if ${ac_cv_prog_TARGET_OBJCOPY+:} false
; then :
24144 $as_echo_n "(cached) " >&6
24146 if test -n "$TARGET_OBJCOPY"; then
24147 ac_cv_prog_TARGET_OBJCOPY
="$TARGET_OBJCOPY" # Let the user override the test.
24149 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24150 for as_dir
in $PATH
24153 test -z "$as_dir" && as_dir
=.
24154 for ac_exec_ext
in '' $ac_executable_extensions; do
24155 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24156 ac_cv_prog_TARGET_OBJCOPY
="$ac_tool_prefix$ac_prog"
24157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24166 TARGET_OBJCOPY
=$ac_cv_prog_TARGET_OBJCOPY
24167 if test -n "$TARGET_OBJCOPY"; then
24168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_OBJCOPY" >&5
24169 $as_echo "$TARGET_OBJCOPY" >&6; }
24171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24172 $as_echo "no" >&6; }
24176 test -n "$TARGET_OBJCOPY" && break
24179 if test -z "$TARGET_OBJCOPY"; then
24180 ac_ct_TARGET_OBJCOPY
=$TARGET_OBJCOPY
24181 for ac_prog
in gobjcopy objcopy
24183 # Extract the first word of "$ac_prog", so it can be a program name with args.
24184 set dummy
$ac_prog; ac_word
=$2
24185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24186 $as_echo_n "checking for $ac_word... " >&6; }
24187 if ${ac_cv_prog_ac_ct_TARGET_OBJCOPY+:} false
; then :
24188 $as_echo_n "(cached) " >&6
24190 if test -n "$ac_ct_TARGET_OBJCOPY"; then
24191 ac_cv_prog_ac_ct_TARGET_OBJCOPY
="$ac_ct_TARGET_OBJCOPY" # Let the user override the test.
24193 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24194 for as_dir
in $PATH
24197 test -z "$as_dir" && as_dir
=.
24198 for ac_exec_ext
in '' $ac_executable_extensions; do
24199 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24200 ac_cv_prog_ac_ct_TARGET_OBJCOPY
="$ac_prog"
24201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24210 ac_ct_TARGET_OBJCOPY
=$ac_cv_prog_ac_ct_TARGET_OBJCOPY
24211 if test -n "$ac_ct_TARGET_OBJCOPY"; then
24212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_OBJCOPY" >&5
24213 $as_echo "$ac_ct_TARGET_OBJCOPY" >&6; }
24215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24216 $as_echo "no" >&6; }
24220 test -n "$ac_ct_TARGET_OBJCOPY" && break
24223 if test "x$ac_ct_TARGET_OBJCOPY" = x
; then
24226 case $cross_compiling:$ac_tool_warned in
24228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24230 ac_tool_warned
=yes ;;
24232 TARGET_OBJCOPY
=$ac_ct_TARGET_OBJCOPY
24236 if test -n "$ac_tool_prefix"; then
24237 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
24238 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
24239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24240 $as_echo_n "checking for $ac_word... " >&6; }
24241 if ${ac_cv_prog_TARGET_STRIP+:} false
; then :
24242 $as_echo_n "(cached) " >&6
24244 if test -n "$TARGET_STRIP"; then
24245 ac_cv_prog_TARGET_STRIP
="$TARGET_STRIP" # Let the user override the test.
24247 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24248 for as_dir
in $PATH
24251 test -z "$as_dir" && as_dir
=.
24252 for ac_exec_ext
in '' $ac_executable_extensions; do
24253 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24254 ac_cv_prog_TARGET_STRIP
="${ac_tool_prefix}strip"
24255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24264 TARGET_STRIP
=$ac_cv_prog_TARGET_STRIP
24265 if test -n "$TARGET_STRIP"; then
24266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_STRIP" >&5
24267 $as_echo "$TARGET_STRIP" >&6; }
24269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24270 $as_echo "no" >&6; }
24275 if test -z "$ac_cv_prog_TARGET_STRIP"; then
24276 ac_ct_TARGET_STRIP
=$TARGET_STRIP
24277 # Extract the first word of "strip", so it can be a program name with args.
24278 set dummy strip
; ac_word
=$2
24279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24280 $as_echo_n "checking for $ac_word... " >&6; }
24281 if ${ac_cv_prog_ac_ct_TARGET_STRIP+:} false
; then :
24282 $as_echo_n "(cached) " >&6
24284 if test -n "$ac_ct_TARGET_STRIP"; then
24285 ac_cv_prog_ac_ct_TARGET_STRIP
="$ac_ct_TARGET_STRIP" # Let the user override the test.
24287 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24288 for as_dir
in $PATH
24291 test -z "$as_dir" && as_dir
=.
24292 for ac_exec_ext
in '' $ac_executable_extensions; do
24293 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24294 ac_cv_prog_ac_ct_TARGET_STRIP
="strip"
24295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24304 ac_ct_TARGET_STRIP
=$ac_cv_prog_ac_ct_TARGET_STRIP
24305 if test -n "$ac_ct_TARGET_STRIP"; then
24306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_STRIP" >&5
24307 $as_echo "$ac_ct_TARGET_STRIP" >&6; }
24309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24310 $as_echo "no" >&6; }
24313 if test "x$ac_ct_TARGET_STRIP" = x
; then
24316 case $cross_compiling:$ac_tool_warned in
24318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24320 ac_tool_warned
=yes ;;
24322 TARGET_STRIP
=$ac_ct_TARGET_STRIP
24325 TARGET_STRIP
="$ac_cv_prog_TARGET_STRIP"
24328 if test -n "$ac_tool_prefix"; then
24329 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
24330 set dummy
${ac_tool_prefix}nm
; ac_word
=$2
24331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24332 $as_echo_n "checking for $ac_word... " >&6; }
24333 if ${ac_cv_prog_TARGET_NM+:} false
; then :
24334 $as_echo_n "(cached) " >&6
24336 if test -n "$TARGET_NM"; then
24337 ac_cv_prog_TARGET_NM
="$TARGET_NM" # Let the user override the test.
24339 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24340 for as_dir
in $PATH
24343 test -z "$as_dir" && as_dir
=.
24344 for ac_exec_ext
in '' $ac_executable_extensions; do
24345 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24346 ac_cv_prog_TARGET_NM
="${ac_tool_prefix}nm"
24347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24356 TARGET_NM
=$ac_cv_prog_TARGET_NM
24357 if test -n "$TARGET_NM"; then
24358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_NM" >&5
24359 $as_echo "$TARGET_NM" >&6; }
24361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24362 $as_echo "no" >&6; }
24367 if test -z "$ac_cv_prog_TARGET_NM"; then
24368 ac_ct_TARGET_NM
=$TARGET_NM
24369 # Extract the first word of "nm", so it can be a program name with args.
24370 set dummy nm
; ac_word
=$2
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24372 $as_echo_n "checking for $ac_word... " >&6; }
24373 if ${ac_cv_prog_ac_ct_TARGET_NM+:} false
; then :
24374 $as_echo_n "(cached) " >&6
24376 if test -n "$ac_ct_TARGET_NM"; then
24377 ac_cv_prog_ac_ct_TARGET_NM
="$ac_ct_TARGET_NM" # Let the user override the test.
24379 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24380 for as_dir
in $PATH
24383 test -z "$as_dir" && as_dir
=.
24384 for ac_exec_ext
in '' $ac_executable_extensions; do
24385 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24386 ac_cv_prog_ac_ct_TARGET_NM
="nm"
24387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24396 ac_ct_TARGET_NM
=$ac_cv_prog_ac_ct_TARGET_NM
24397 if test -n "$ac_ct_TARGET_NM"; then
24398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_NM" >&5
24399 $as_echo "$ac_ct_TARGET_NM" >&6; }
24401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24402 $as_echo "no" >&6; }
24405 if test "x$ac_ct_TARGET_NM" = x
; then
24408 case $cross_compiling:$ac_tool_warned in
24410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24412 ac_tool_warned
=yes ;;
24414 TARGET_NM
=$ac_ct_TARGET_NM
24417 TARGET_NM
="$ac_cv_prog_TARGET_NM"
24420 if test -n "$ac_tool_prefix"; then
24421 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
24422 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
24423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24424 $as_echo_n "checking for $ac_word... " >&6; }
24425 if ${ac_cv_prog_TARGET_RANLIB+:} false
; then :
24426 $as_echo_n "(cached) " >&6
24428 if test -n "$TARGET_RANLIB"; then
24429 ac_cv_prog_TARGET_RANLIB
="$TARGET_RANLIB" # Let the user override the test.
24431 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24432 for as_dir
in $PATH
24435 test -z "$as_dir" && as_dir
=.
24436 for ac_exec_ext
in '' $ac_executable_extensions; do
24437 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24438 ac_cv_prog_TARGET_RANLIB
="${ac_tool_prefix}ranlib"
24439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24448 TARGET_RANLIB
=$ac_cv_prog_TARGET_RANLIB
24449 if test -n "$TARGET_RANLIB"; then
24450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_RANLIB" >&5
24451 $as_echo "$TARGET_RANLIB" >&6; }
24453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24454 $as_echo "no" >&6; }
24459 if test -z "$ac_cv_prog_TARGET_RANLIB"; then
24460 ac_ct_TARGET_RANLIB
=$TARGET_RANLIB
24461 # Extract the first word of "ranlib", so it can be a program name with args.
24462 set dummy ranlib
; ac_word
=$2
24463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24464 $as_echo_n "checking for $ac_word... " >&6; }
24465 if ${ac_cv_prog_ac_ct_TARGET_RANLIB+:} false
; then :
24466 $as_echo_n "(cached) " >&6
24468 if test -n "$ac_ct_TARGET_RANLIB"; then
24469 ac_cv_prog_ac_ct_TARGET_RANLIB
="$ac_ct_TARGET_RANLIB" # Let the user override the test.
24471 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24472 for as_dir
in $PATH
24475 test -z "$as_dir" && as_dir
=.
24476 for ac_exec_ext
in '' $ac_executable_extensions; do
24477 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24478 ac_cv_prog_ac_ct_TARGET_RANLIB
="ranlib"
24479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24488 ac_ct_TARGET_RANLIB
=$ac_cv_prog_ac_ct_TARGET_RANLIB
24489 if test -n "$ac_ct_TARGET_RANLIB"; then
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_RANLIB" >&5
24491 $as_echo "$ac_ct_TARGET_RANLIB" >&6; }
24493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24494 $as_echo "no" >&6; }
24497 if test "x$ac_ct_TARGET_RANLIB" = x
; then
24500 case $cross_compiling:$ac_tool_warned in
24502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24504 ac_tool_warned
=yes ;;
24506 TARGET_RANLIB
=$ac_ct_TARGET_RANLIB
24509 TARGET_RANLIB
="$ac_cv_prog_TARGET_RANLIB"
24525 # Test the C compiler for the target environment.
24527 tmp_CFLAGS
="$CFLAGS"
24528 tmp_LDFLAGS
="$LDFLAGS"
24529 tmp_CPPFLAGS
="$CPPFLAGS"
24532 CFLAGS
="$TARGET_CFLAGS"
24533 CPPFLAGS
="$TARGET_CPPFLAGS"
24534 LDFLAGS
="$TARGET_LDFLAGS"
24538 TARGET_CFLAGS
="$TARGET_CFLAGS $WARN_FLAGS -g -Wredundant-decls -Wmissing-prototypes -Wmissing-declarations"
24539 TARGET_CCASFLAGS
="$TARGET_CCASFLAGS -g"
24541 if test "x$target_cpu" != xi386
&& test "x$target_cpu" != xx86_64
; then
24542 TARGET_CFLAGS
="$TARGET_CFLAGS -Wcast-align"
24545 TARGET_CC_VERSION
="$(LC_ALL=C $TARGET_CC --version | head -n1)"
24547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extra warnings work" >&5
24548 $as_echo_n "checking which extra warnings work... " >&6; }
24549 if ${grub_cv_target_cc_w_extra_flags+:} false
; then :
24550 $as_echo_n "(cached) " >&6
24553 LDFLAGS
="$TARGET_LDFLAGS -nostdlib -static"
24555 grub_cv_target_cc_w_extra_flags
=
24556 for x
in $EXTRA_WARN_FLAGS; do
24557 CFLAGS
="$TARGET_CFLAGS $x -Werror"
24558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24559 /* end confdefs.h. */
24561 asm (".globl start; start:");
24562 void __main (void);
24563 void __main (void) {}
24574 if ac_fn_c_try_link
"$LINENO"; then :
24579 rm -f core conftest.err conftest.
$ac_objext \
24580 conftest
$ac_exeext conftest.
$ac_ext
24581 if test x
$flag = x1
; then
24582 grub_cv_target_cc_w_extra_flags
="$grub_cv_target_cc_w_extra_flags $x"
24587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_w_extra_flags" >&5
24588 $as_echo "$grub_cv_target_cc_w_extra_flags" >&6; }
24590 TARGET_CFLAGS
="$TARGET_CFLAGS $grub_cv_target_cc_w_extra_flags"
24592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiling with clang" >&5
24593 $as_echo_n "checking if compiling with clang... " >&6; }
24594 if { as_var
=grub_cv_cc_target_clang
24596 CFLAGS
="$TARGET_CFLAGS"
24597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24598 /* end confdefs.h. */
24612 if ac_fn_c_try_compile
"$LINENO"; then :
24613 grub_cv_cc_target_clang
=no
24615 grub_cv_cc_target_clang
=yes
24617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext; eval \
${$as_var+:} false
; }; then :
24618 $as_echo_n "(cached) " >&6
24620 eval ac_res
=\
$grub_cv_cc_target_clang
24622 CFLAGS
="$TARGET_CFLAGS"
24623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24624 /* end confdefs.h. */
24638 if ac_fn_c_try_compile
"$LINENO"; then :
24639 grub_cv_cc_target_clang
=no
24641 grub_cv_cc_target_clang
=yes
24643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24645 $as_echo "$ac_res" >&6; }
24647 # on x86 clang doesn't support .code16
24648 # on arm clang doesn't support .arch directive
24649 # on mips clang doesn't support privilegied instructions, doubleword store/load
24650 # and crashes with hand-written assembly
24651 if test "x$grub_cv_cc_target_clang" = xyes
&& ( test "x$target_cpu" = xi386 \
24652 ||
test "x$target_cpu" = xx86_64 ||
test "x$target_cpu" = xarm \
24653 ||
test "x$target_cpu" = xmips ||
test "x$target_cpu" = xmipsel
); then
24654 TARGET_CCASFLAGS
="$TARGET_CCASFLAGS -no-integrated-as"
24657 if test "x$grub_cv_cc_target_clang" = xyes
&& test "x$target_cpu" = xpowerpc
; then
24658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if clang can handle ame instruction" >&5
24659 $as_echo_n "checking if clang can handle ame instruction... " >&6; }
24660 if { as_var
=grub_cv_cc_target_clang_ame
24662 CFLAGS
="$TARGET_CFLAGS"
24663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24664 /* end confdefs.h. */
24670 unsigned int a = 0, b = 0;
24671 asm volatile ("{ame|addme} %0,%1" : "=r" (a) : "r" (b));
24679 if ac_fn_c_try_compile
"$LINENO"; then :
24680 grub_cv_cc_target_clang_ame
=yes
24682 grub_cv_cc_target_clang_ame
=no
24684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext; eval \
${$as_var+:} false
; }; then :
24685 $as_echo_n "(cached) " >&6
24687 eval ac_res
=\
$grub_cv_cc_target_clang_ame
24689 CFLAGS
="$TARGET_CFLAGS"
24690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24691 /* end confdefs.h. */
24697 unsigned int a = 0, b = 0;
24698 asm volatile ("{ame|addme} %0,%1" : "=r" (a) : "r" (b));
24706 if ac_fn_c_try_compile
"$LINENO"; then :
24707 grub_cv_cc_target_clang_ame
=yes
24709 grub_cv_cc_target_clang_ame
=no
24711 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24713 $as_echo "$ac_res" >&6; }
24714 # clang <= 3.3 doesn't handle most of ppc assembly, not even inline assembly
24716 if test x
$grub_cv_cc_target_clang_ame = xno
; then
24717 TARGET_CCASFLAGS
="$TARGET_CCASFLAGS -no-integrated-as"
24718 TARGET_CFLAGS
="$TARGET_CFLAGS -no-integrated-as"
24722 if test "x$target_cpu" = xi386
&& test "x$platform" != xemu
; then
24723 TARGET_CFLAGS
="$TARGET_CFLAGS -march=i386"
24726 if test "x$target_m32" = x1
; then
24727 # Force 32-bit mode.
24728 TARGET_CFLAGS
="$TARGET_CFLAGS -m32"
24729 TARGET_CCASFLAGS
="$TARGET_CCASFLAGS -m32"
24730 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS -m32"
24731 TARGET_LDFLAGS
="$TARGET_LDFLAGS -m32"
24732 TARGET_MODULE_FORMAT
="elf32"
24735 if test "x$target_m64" = x1
; then
24736 # Force 64-bit mode.
24737 TARGET_CFLAGS
="$TARGET_CFLAGS -m64"
24738 TARGET_CCASFLAGS
="$TARGET_CCASFLAGS -m64"
24739 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS -m64"
24740 TARGET_LDFLAGS
="$TARGET_LDFLAGS -m64"
24741 TARGET_MODULE_FORMAT
="elf64"
24744 if test "x$grub_cv_cc_target_clang" = xno
&& test "x$target_cpu" = xi386
&& test "x$platform" != xemu
&& test "x$platform" != xefi
; then
24745 TARGET_CFLAGS
="$TARGET_CFLAGS -mrtd -mregparm=3"
24748 # on mips redirect cache flushing function to non-existant one.
24749 if test "x$target_cpu" = xmips ||
test "x$target_cpu" = xmipsel
; then
24750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -mflush-func=grub_red_herring works" >&5
24751 $as_echo_n "checking whether -mflush-func=grub_red_herring works... " >&6; }
24752 if ${grub_cv_cc_mflush_func+:} false
; then :
24753 $as_echo_n "(cached) " >&6
24756 CFLAGS
="$TARGET_CFLAGS -mflush-func=grub_red_herring -Werror"
24757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24758 /* end confdefs.h. */
24768 if ac_fn_c_try_compile
"$LINENO"; then :
24769 grub_cv_cc_mflush_func
=yes
24771 grub_cv_cc_mflush_func
=no
24773 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_mflush_func" >&5
24777 $as_echo "$grub_cv_cc_mflush_func" >&6; }
24779 if test "x$grub_cv_cc_mflush_func" = xyes
; then
24780 TARGET_CFLAGS
="$TARGET_CFLAGS -mflush-func=grub_red_herring"
24785 # Force no alignment to save space on i386.
24786 if test "x$target_cpu" = xi386
; then
24787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -falign-loops works" >&5
24788 $as_echo_n "checking whether -falign-loops works... " >&6; }
24789 if ${grub_cv_cc_falign_loop+:} false
; then :
24790 $as_echo_n "(cached) " >&6
24793 CFLAGS
="$TARGET_CFLAGS -falign-loops=1 -Werror"
24794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24795 /* end confdefs.h. */
24805 if ac_fn_c_try_compile
"$LINENO"; then :
24806 grub_cv_cc_falign_loop
=yes
24808 grub_cv_cc_falign_loop
=no
24810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_falign_loop" >&5
24814 $as_echo "$grub_cv_cc_falign_loop" >&6; }
24816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -malign-loops works" >&5
24817 $as_echo_n "checking whether -malign-loops works... " >&6; }
24818 if ${grub_cv_cc_malign_loop+:} false
; then :
24819 $as_echo_n "(cached) " >&6
24822 CFLAGS
="$TARGET_CFLAGS -malign-loops=1 -Werror"
24823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24824 /* end confdefs.h. */
24834 if ac_fn_c_try_compile
"$LINENO"; then :
24835 grub_cv_cc_malign_loop
=yes
24837 grub_cv_cc_malign_loop
=no
24839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_malign_loop" >&5
24843 $as_echo "$grub_cv_cc_malign_loop" >&6; }
24845 if test "x$grub_cv_cc_falign_loop" = xyes
; then
24846 TARGET_CFLAGS
="$TARGET_CFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
24847 elif test "x$grub_cv_cc_malign_loop" = xyes
; then
24848 TARGET_CFLAGS
="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
24852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -freg-struct-return works" >&5
24853 $as_echo_n "checking whether -freg-struct-return works... " >&6; }
24854 if ${grub_cv_cc_freg_struct_return+:} false
; then :
24855 $as_echo_n "(cached) " >&6
24858 CFLAGS
="$TARGET_CFLAGS -freg-struct-return -Werror"
24859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24860 /* end confdefs.h. */
24870 if ac_fn_c_try_compile
"$LINENO"; then :
24871 grub_cv_cc_freg_struct_return
=yes
24873 grub_cv_cc_freg_struct_return
=no
24875 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_freg_struct_return" >&5
24879 $as_echo "$grub_cv_cc_freg_struct_return" >&6; }
24881 if test "x$grub_cv_cc_freg_struct_return" = xyes
; then
24882 TARGET_CFLAGS
="$TARGET_CFLAGS -freg-struct-return"
24885 if ( test "x$target_cpu" = xi386 ||
test "x$target_cpu" = xx86_64
) && test "x$platform" != xemu
; then
24886 # Some toolchains enable these features by default, but they need
24887 # registers that aren't set up properly in GRUB.
24888 TARGET_CFLAGS
="$TARGET_CFLAGS -mno-mmx -mno-sse -mno-sse2 -mno-3dnow"
24891 # GRUB doesn't use float or doubles at all. Yet some toolchains may decide
24892 # that floats are a good fit to run instead of what's written in the code.
24893 # Given that floating point unit is disabled (if present to begin with)
24894 # when GRUB is running which may result in various hard crashes.
24895 if test "x$target_cpu" = xarm64
; then
24896 TARGET_CFLAGS
="$TARGET_CFLAGS -march=armv8-a+nofp+nosimd"
24898 TARGET_CFLAGS
="$TARGET_CFLAGS -msoft-float"
24901 # By default, GCC 4.4 generates .eh_frame sections containing unwind
24902 # information in some cases where it previously did not. GRUB doesn't need
24903 # these and they just use up vital space. Restore the old compiler
24905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fno-dwarf2-cfi-asm works" >&5
24906 $as_echo_n "checking whether -fno-dwarf2-cfi-asm works... " >&6; }
24907 if ${grub_cv_cc_fno_dwarf2_cfi_asm+:} false
; then :
24908 $as_echo_n "(cached) " >&6
24911 CFLAGS
="$TARGET_CFLAGS -fno-dwarf2-cfi-asm"
24912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24913 /* end confdefs.h. */
24923 if ac_fn_c_try_compile
"$LINENO"; then :
24924 grub_cv_cc_fno_dwarf2_cfi_asm
=yes
24926 grub_cv_cc_fno_dwarf2_cfi_asm
=no
24928 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_fno_dwarf2_cfi_asm" >&5
24932 $as_echo "$grub_cv_cc_fno_dwarf2_cfi_asm" >&6; }
24934 if test "x$grub_cv_cc_fno_dwarf2_cfi_asm" = xyes
; then
24935 TARGET_CFLAGS
="$TARGET_CFLAGS -fno-dwarf2-cfi-asm"
24938 if test x
"$target_os" = xcygwin
; then
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -fno-reorder-functions works" >&5
24940 $as_echo_n "checking whether option -fno-reorder-functions works... " >&6; }
24941 if ${grub_cv_cc_no_reorder_functions+:} false
; then :
24942 $as_echo_n "(cached) " >&6
24945 CFLAGS
="$TARGET_CFLAGS -fno-reorder-functions"
24946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24947 /* end confdefs.h. */
24957 if ac_fn_c_try_compile
"$LINENO"; then :
24958 grub_cv_cc_no_reorder_functions
=yes
24960 grub_cv_cc_no_reorder_functions
=no
24962 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_no_reorder_functions" >&5
24966 $as_echo "$grub_cv_cc_no_reorder_functions" >&6; }
24969 if test x
"$target_os" = xcygwin
&& test "x$grub_cv_cc_no_reorder_functions" = xyes
; then
24970 TARGET_CFLAGS
="$TARGET_CFLAGS -fno-reorder-functions"
24973 # By default, GCC 4.6 generates .eh_frame sections containing unwind
24974 # information in some cases where it previously did not. GRUB doesn't need
24975 # these and they just use up vital space. Restore the old compiler
24977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fno-asynchronous-unwind-tables works" >&5
24978 $as_echo_n "checking whether -fno-asynchronous-unwind-tables works... " >&6; }
24979 if ${grub_cv_cc_fno_asynchronous_unwind_tables+:} false
; then :
24980 $as_echo_n "(cached) " >&6
24983 CFLAGS
="$TARGET_CFLAGS -fno-dwarf2-cfi-asm"
24984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24985 /* end confdefs.h. */
24995 if ac_fn_c_try_compile
"$LINENO"; then :
24996 grub_cv_cc_fno_asynchronous_unwind_tables
=yes
24998 grub_cv_cc_fno_asynchronous_unwind_tables
=no
25000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_fno_asynchronous_unwind_tables" >&5
25004 $as_echo "$grub_cv_cc_fno_asynchronous_unwind_tables" >&6; }
25006 if test "x$grub_cv_cc_fno_asynchronous_unwind_tables" = xyes
; then
25007 TARGET_CFLAGS
="$TARGET_CFLAGS -fno-asynchronous-unwind-tables"
25010 # Check whether --enable-efiemu was given.
25011 if test "${enable_efiemu+set}" = set; then :
25012 enableval
=$enable_efiemu;
25015 if test x
"$enable_efiemu" = xno
; then
25016 efiemu_excuse
="explicitly disabled"
25018 if test x
"$grub_cv_target_cc_link_format" = x-mi386pe ||
test x
"$grub_cv_target_cc_link_format" = x-mi386pep
; then
25019 efiemu_excuse
="not available on cygwin"
25021 if test x
"$target_cpu" != xi386
; then
25022 efiemu_excuse
="only available on i386"
25024 if test x
"$platform" = xefi
; then
25025 efiemu_excuse
="not available on efi"
25027 if test x
"$efiemu_excuse" = x
; then
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether options required for efiemu work" >&5
25029 $as_echo_n "checking whether options required for efiemu work... " >&6; }
25030 if ${grub_cv_cc_efiemu+:} false
; then :
25031 $as_echo_n "(cached) " >&6
25034 CFLAGS
="-m64 -nostdlib -O2 -mcmodel=large -mno-red-zone"
25035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25036 /* end confdefs.h. */
25046 if ac_fn_c_try_compile
"$LINENO"; then :
25047 grub_cv_cc_efiemu
=yes
25049 grub_cv_cc_efiemu
=no
25051 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_efiemu" >&5
25055 $as_echo "$grub_cv_cc_efiemu" >&6; }
25056 if test x
$grub_cv_cc_efiemu = xno
; then
25057 efiemu_excuse
="cannot compile with -m64 -mcmodel=large -mno-red-zone -nostdlib"
25060 if test x
"$efiemu_excuse" = x
; then
25061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for efiemu64 linking format" >&5
25062 $as_echo_n "checking for efiemu64 linking format... " >&6; }
25063 if ${grub_cv_target_cc_efiemu64_link_format+:} false
; then :
25064 $as_echo_n "(cached) " >&6
25067 grub_cv_target_cc_efiemu64_link_format
=unknown
25068 for format
in -melf_x86_64 -melf_x86_64_fbsd -melf_x86_64_obsd -melf_x86_64_haiku -arch,x86_64
; do
25069 CFLAGS
="-m64 -nostdlib -O2 -mcmodel=large -mno-red-zone"
25070 LDFLAGS
="-m64 -Wl,$format -nostdlib -static"
25071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25072 /* end confdefs.h. */
25074 asm (".globl start; start:");
25075 asm (".globl _start; _start:");
25076 asm (".globl __start; __start:");
25077 void __main (void);
25078 void __main (void) {}
25088 if ac_fn_c_try_link
"$LINENO"; then :
25093 rm -f core conftest.err conftest.
$ac_objext \
25094 conftest
$ac_exeext conftest.
$ac_ext
25095 if test x
"$flag" = x1
; then
25096 grub_cv_target_cc_efiemu64_link_format
="$format"
25101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_efiemu64_link_format" >&5
25102 $as_echo "$grub_cv_target_cc_efiemu64_link_format" >&6; }
25103 if test x
"$grub_cv_target_cc_efiemu64_link_format" = xunknown
; then
25104 efiemu_excuse
="no suitable link format for efiemu64 found"
25106 EFIEMU64_LINK_FORMAT
="-Wl,$grub_cv_target_cc_efiemu64_link_format"
25109 if test x
"$enable_efiemu" = xyes
&& test x
"$efiemu_excuse" != x
; then
25110 as_fn_error $?
"efiemu runtime was explicitly requested but can't be compiled ($efiemu_excuse)" "$LINENO" 5
25112 if test x
"$efiemu_excuse" = x
; then
25120 CFLAGS
="$TARGET_CFLAGS"
25123 if test x
"$platform" = xemu
; then
25125 grub_cv_target_cc_link_format
=
25128 grub_cv_target_cc_link_format
="-arch,${target_cpu}"
25129 TARGET_LDFLAGS
="$TARGET_LDFLAGS -Wl,$grub_cv_target_cc_link_format"
25131 *windows
* |
*cygwin
* |
*mingw
*)
25132 if test x
${target_cpu} = xi386
; then
25133 grub_cv_target_cc_link_format
=-mi386pe
25134 TARGET_OBJ2ELF
='./build-grub-pe2elf$(BUILD_EXEEXT)'
25136 if test x
${target_cpu} = xx86_64
; then
25137 grub_cv_target_cc_link_format
=-mi386pep
25138 TARGET_OBJ2ELF
='./build-grub-pep2elf$(BUILD_EXEEXT)'
25140 TARGET_LDFLAGS
="$TARGET_LDFLAGS -Wl,$grub_cv_target_cc_link_format"
25143 elif test x
"$target_cpu" = xi386 ||
test x
"$target_cpu" = xx86_64
; then
25144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target linking format" >&5
25145 $as_echo_n "checking for target linking format... " >&6; }
25146 if ${grub_cv_target_cc_link_format+:} false
; then :
25147 $as_echo_n "(cached) " >&6
25150 grub_cv_target_cc_link_format
=unknown
25151 for format
in -melf_${target_cpu} -melf_${target_cpu}_fbsd -melf_${target_cpu}_obsd -melf_${target_cpu}_haiku -mi386pe -mi386pep -arch,${target_cpu}; do
25152 if test x
${target_cpu} != xi386
&& test x
$format = x-mi386pe
; then
25155 if test x
${target_cpu} != xx86_64
&& test x
$format = x-mi386pep
; then
25158 CFLAGS
="$TARGET_CFLAGS"
25159 LDFLAGS
="$TARGET_LDFLAGS -Wl,$format -nostdlib -static"
25160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25161 /* end confdefs.h. */
25163 asm (".globl start; start:");
25164 asm (".globl _start; _start:");
25165 asm (".globl __start; __start:");
25166 void __main (void);
25167 void __main (void) {}
25177 if ac_fn_c_try_link
"$LINENO"; then :
25182 rm -f core conftest.err conftest.
$ac_objext \
25183 conftest
$ac_exeext conftest.
$ac_ext
25184 if test x
"$flag" = x1
; then
25185 grub_cv_target_cc_link_format
="$format"
25190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_link_format" >&5
25191 $as_echo "$grub_cv_target_cc_link_format" >&6; }
25192 if test x
"$grub_cv_target_cc_link_format" = xunknown
; then
25193 as_fn_error $?
"no suitable link format found" "$LINENO" 5
25195 TARGET_LDFLAGS
="$TARGET_LDFLAGS -Wl,$grub_cv_target_cc_link_format"
25196 if test x
"$grub_cv_target_cc_link_format" = x-mi386pe
; then
25197 TARGET_OBJ2ELF
='./build-grub-pe2elf$(BUILD_EXEEXT)'
25199 if test x
"$grub_cv_target_cc_link_format" = x-mi386pep
; then
25200 TARGET_OBJ2ELF
='./build-grub-pep2elf$(BUILD_EXEEXT)'
25204 if test x
$grub_cv_target_cc_link_format = x-arch
,i386 ||
test x
$grub_cv_target_cc_link_format = x-arch
,x86_64
; then
25205 TARGET_APPLE_LINKER
=1
25206 # Extract the first word of "objconv", so it can be a program name with args.
25207 set dummy objconv
; ac_word
=$2
25208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25209 $as_echo_n "checking for $ac_word... " >&6; }
25210 if ${ac_cv_prog_TARGET_OBJCONV+:} false
; then :
25211 $as_echo_n "(cached) " >&6
25213 if test -n "$TARGET_OBJCONV"; then
25214 ac_cv_prog_TARGET_OBJCONV
="$TARGET_OBJCONV" # Let the user override the test.
25216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25217 for as_dir
in $PATH
25220 test -z "$as_dir" && as_dir
=.
25221 for ac_exec_ext
in '' $ac_executable_extensions; do
25222 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25223 ac_cv_prog_TARGET_OBJCONV
="objconv"
25224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25233 TARGET_OBJCONV
=$ac_cv_prog_TARGET_OBJCONV
25234 if test -n "$TARGET_OBJCONV"; then
25235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_OBJCONV" >&5
25236 $as_echo "$TARGET_OBJCONV" >&6; }
25238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25239 $as_echo "no" >&6; }
25243 if test "x$TARGET_OBJCONV" = x
; then
25244 # Extract the first word of "objconv", so it can be a program name with args.
25245 set dummy objconv
; ac_word
=$2
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25247 $as_echo_n "checking for $ac_word... " >&6; }
25248 if ${ac_cv_prog_TARGET_OBJCONV+:} false
; then :
25249 $as_echo_n "(cached) " >&6
25251 if test -n "$TARGET_OBJCONV"; then
25252 ac_cv_prog_TARGET_OBJCONV
="$TARGET_OBJCONV" # Let the user override the test.
25254 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25258 test -z "$as_dir" && as_dir
=.
25259 for ac_exec_ext
in '' $ac_executable_extensions; do
25260 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25261 ac_cv_prog_TARGET_OBJCONV
="./objconv"
25262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25271 TARGET_OBJCONV
=$ac_cv_prog_TARGET_OBJCONV
25272 if test -n "$TARGET_OBJCONV"; then
25273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_OBJCONV" >&5
25274 $as_echo "$TARGET_OBJCONV" >&6; }
25276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25277 $as_echo "no" >&6; }
25282 if test "x$TARGET_OBJCONV" = x
; then
25283 as_fn_error $?
"objconv not found which is required when building with apple compiler" "$LINENO" 5
25285 TARGET_IMG_LDSCRIPT
=
25286 TARGET_IMG_CFLAGS
="-static"
25287 TARGET_IMG_LDFLAGS
='-nostdlib -static -Wl,-preload -Wl,-segalign,20'
25288 TARGET_IMG_LDFLAGS_AC
='-nostdlib -static -Wl,-preload -Wl,-segalign,20'
25289 TARGET_IMG_BASE_LDOPT
="-Wl,-image_base"
25290 TARGET_LDFLAGS_OLDMAGIC
=""
25291 elif test x
$grub_cv_target_cc_link_format = x-mi386pe ||
test x
$grub_cv_target_cc_link_format = x-mi386pep
; then
25292 TARGET_APPLE_LINKER
=0
25293 TARGET_LDFLAGS_OLDMAGIC
="-Wl,-N"
25294 TARGET_IMG_LDSCRIPT
='$(top_srcdir)'"/${grub_coredir}/conf/i386-cygwin-img-ld.sc"
25295 TARGET_IMG_LDFLAGS
="-Wl,-T${TARGET_IMG_LDSCRIPT}"
25296 TARGET_IMG_LDFLAGS_AC
="-Wl,-T${srcdir}/${grub_coredir}/conf/i386-cygwin-img-ld.sc"
25297 TARGET_IMG_BASE_LDOPT
="-Wl,-Ttext"
25300 TARGET_APPLE_LINKER
=0
25301 TARGET_LDFLAGS_OLDMAGIC
="-Wl,-N"
25302 TARGET_IMG_LDSCRIPT
=
25303 TARGET_IMG_LDFLAGS
='-Wl,-N'
25304 TARGET_IMG_LDFLAGS_AC
='-Wl,-N'
25305 TARGET_IMG_BASE_LDOPT
="-Wl,-Ttext"
25312 LDFLAGS
="$TARGET_LDFLAGS"
25314 if test "$target_cpu" = x86_64 ||
test "$target_cpu-$platform" = sparc64-emu
; then
25315 # Use large model to support 4G memory
25316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mcmodel=large works" >&5
25317 $as_echo_n "checking whether option -mcmodel=large works... " >&6; }
25318 if ${grub_cv_cc_mcmodel+:} false
; then :
25319 $as_echo_n "(cached) " >&6
25322 CFLAGS
="$TARGET_CFLAGS -mcmodel=large"
25323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25324 /* end confdefs.h. */
25334 if ac_fn_c_try_compile
"$LINENO"; then :
25335 grub_cv_cc_mcmodel
=yes
25337 grub_cv_cc_mcmodel
=no
25339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_mcmodel" >&5
25343 $as_echo "$grub_cv_cc_mcmodel" >&6; }
25344 if test "x$grub_cv_cc_mcmodel" = xyes
; then
25345 TARGET_CFLAGS
="$TARGET_CFLAGS -mcmodel=large"
25346 elif test "$target_cpu-$platform" = sparc64-emu
; then
25347 TARGET_CFLAGS
="$TARGET_CFLAGS -mcmodel=medany"
25351 if test "$target_cpu"-"$platform" = x86_64-efi
; then
25352 # EFI writes to stack below %rsp, we must not use the red zone
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mno-red-zone works" >&5
25354 $as_echo_n "checking whether option -mno-red-zone works... " >&6; }
25355 if ${grub_cv_cc_no_red_zone+:} false
; then :
25356 $as_echo_n "(cached) " >&6
25359 CFLAGS
="$TARGET_CFLAGS -mno-red-zone"
25360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25361 /* end confdefs.h. */
25371 if ac_fn_c_try_compile
"$LINENO"; then :
25372 grub_cv_cc_no_red_zone
=yes
25374 grub_cv_cc_no_red_zone
=no
25376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_no_red_zone" >&5
25380 $as_echo "$grub_cv_cc_no_red_zone" >&6; }
25381 if test "x$grub_cv_cc_no_red_zone" = xno
; then
25382 as_fn_error $?
"-mno-red-zone not supported, upgrade your gcc" "$LINENO" 5
25385 TARGET_CFLAGS
="$TARGET_CFLAGS -mno-red-zone"
25388 if test "x$target_cpu" = xarm
; then
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mlong-calls works" >&5
25390 $as_echo_n "checking whether option -mlong-calls works... " >&6; }
25391 if ${grub_cv_cc_mlong_calls+:} false
; then :
25392 $as_echo_n "(cached) " >&6
25395 CFLAGS
="$TARGET_CFLAGS -mlong-calls -Werror"
25396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25397 /* end confdefs.h. */
25407 if ac_fn_c_try_compile
"$LINENO"; then :
25408 grub_cv_cc_mlong_calls
=yes
25410 grub_cv_cc_mlong_calls
=no
25412 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_mlong_calls" >&5
25416 $as_echo "$grub_cv_cc_mlong_calls" >&6; }
25417 if test "x$grub_cv_cc_mlong_calls" = xyes
; then
25418 TARGET_CFLAGS
="$TARGET_CFLAGS -mlong-calls"
25420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mthumb-interwork works" >&5
25421 $as_echo_n "checking whether option -mthumb-interwork works... " >&6; }
25422 if ${grub_cv_cc_mthumb_interwork+:} false
; then :
25423 $as_echo_n "(cached) " >&6
25426 CFLAGS
="$TARGET_CFLAGS -mthumb-interwork -Werror"
25427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25428 /* end confdefs.h. */
25438 if ac_fn_c_try_compile
"$LINENO"; then :
25439 grub_cv_cc_mthumb_interwork
=yes
25441 grub_cv_cc_mthumb_interwork
=no
25443 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_mthumb_interwork" >&5
25447 $as_echo "$grub_cv_cc_mthumb_interwork" >&6; }
25448 if test "x$grub_cv_cc_mthumb_interwork" = xyes
; then
25449 TARGET_CFLAGS
="$TARGET_CFLAGS -mthumb-interwork"
25450 elif test "x$grub_cv_cc_target_clang" = xno
; then
25451 as_fn_error $?
"your compiler doesn't support -mthumb-interwork" "$LINENO" 5
25453 CFLAGS
="$TARGET_CFLAGS"
25454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25455 /* end confdefs.h. */
25461 #if defined (__thumb__) && !defined (__thumb2__)
25462 #error thumb without interworking
25469 if ac_fn_c_try_compile
"$LINENO"; then :
25470 no_interwork_ok
=yes
25474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25475 if test x
$no_interwork_ok = xno
; then
25476 as_fn_error $?
"attempt to compile to thumb with no thumb interwork" "$LINENO" 5
25481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -Qn works" >&5
25482 $as_echo_n "checking whether option -Qn works... " >&6; }
25483 if ${grub_cv_target_cc_qn+:} false
; then :
25484 $as_echo_n "(cached) " >&6
25487 CFLAGS
="$TARGET_CFLAGS -Qn -Werror"
25488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25489 /* end confdefs.h. */
25499 if ac_fn_c_try_compile
"$LINENO"; then :
25500 grub_cv_target_cc_qn
=yes
25502 grub_cv_target_cc_qn
=no
25504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_qn" >&5
25507 $as_echo "$grub_cv_target_cc_qn" >&6; }
25508 if test "x$grub_cv_target_cc_qn" = xyes
; then
25509 TARGET_CFLAGS
="$TARGET_CFLAGS -Qn"
25513 # Compiler features.
25516 CFLAGS
="$TARGET_CFLAGS"
25518 # Position independent executable.
25520 # Position independent executable.
25522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' has \`-fPIE' as default" >&5
25523 $as_echo_n "checking whether \`$CC' has \`-fPIE' as default... " >&6; }
25524 # Is this a reliable test case?
25525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25526 /* end confdefs.h. */
25533 #error NO __PIE__ DEFINED
25538 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
25539 # `ac_compile' like this correct, after all?
25540 if eval "$ac_compile -S -o conftest.s" 2> /dev
/null
; then
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25542 $as_echo "yes" >&6; }
25543 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
25547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25548 $as_echo "no" >&6; }
25551 # Need that, because some distributions ship compilers that include
25552 # `-fPIE' in the default specs.
25553 if [ x
"$pie_possible" = xyes
]; then
25554 TARGET_CFLAGS
="$TARGET_CFLAGS -fno-PIE"
25557 CFLAGS
="$TARGET_CFLAGS"
25559 # Position independent executable.
25561 # Position independent executable.
25563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' has \`-fPIC' as default" >&5
25564 $as_echo_n "checking whether \`$CC' has \`-fPIC' as default... " >&6; }
25565 # Is this a reliable test case?
25566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25567 /* end confdefs.h. */
25574 #error NO __PIC__ DEFINED
25579 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
25580 # `ac_compile' like this correct, after all?
25581 if eval "$ac_compile -S -o conftest.s" 2> /dev
/null
; then
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25583 $as_echo "yes" >&6; }
25584 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
25588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25589 $as_echo "no" >&6; }
25592 # On most platforms we don't want PIC as it only makes relocations harder
25593 # and code less efficient. On mips we want to have one got table per module
25594 # and reload $gp in every function.
25595 # GCC implements it using symbol __gnu_local_gp in non-PIC as well.
25596 # However with clang we need PIC for this reloading to happen.
25597 # Since default varies across dictributions use either -fPIC or -fno-PIC
25599 if ( test x
$target_cpu = xmips ||
test x
$target_cpu = xmipsel
) && test "x$grub_cv_cc_target_clang" = xyes
; then
25600 TARGET_CFLAGS
="$TARGET_CFLAGS -fPIC"
25601 elif [ x
"$pic_possible" = xyes
]; then
25602 TARGET_CFLAGS
="$TARGET_CFLAGS -fno-PIC"
25605 CFLAGS
="$TARGET_CFLAGS"
25607 # Smashing stack protector.
25609 # Smashing stack protector.
25611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' accepts \`-fstack-protector'" >&5
25612 $as_echo_n "checking whether \`$CC' accepts \`-fstack-protector'... " >&6; }
25613 # Is this a reliable test case?
25614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25615 /* end confdefs.h. */
25617 void foo (void) { volatile char a[8]; a[3]; }
25620 # `$CC -c -o ...' might not be portable. But, oh, well... Is calling
25621 # `ac_compile' like this correct, after all?
25622 if eval "$ac_compile -S -fstack-protector -o conftest.s" 2> /dev
/null
; then
25623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25624 $as_echo "yes" >&6; }
25625 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
25629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25630 $as_echo "no" >&6; }
25633 # Need that, because some distributions ship compilers that include
25634 # `-fstack-protector' in the default specs.
25635 if test "x$ssp_possible" = xyes
; then
25636 TARGET_CFLAGS
="$TARGET_CFLAGS -fno-stack-protector"
25639 CFLAGS
="$TARGET_CFLAGS"
25642 # Smashing stack arg probe.
25644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' accepts \`-mstack-arg-probe'" >&5
25645 $as_echo_n "checking whether \`$CC' accepts \`-mstack-arg-probe'... " >&6; }
25646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25647 /* end confdefs.h. */
25649 void foo (void) { volatile char a[8]; a[3]; }
25652 if eval "$ac_compile -S -mstack-arg-probe -Werror -o conftest.s" 2> /dev
/null
; then
25653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25654 $as_echo "yes" >&6; }
25655 # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
25659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25660 $as_echo "no" >&6; }
25663 # Cygwin's GCC uses alloca() to probe the stackframe on static
25664 # stack allocations above some threshold.
25665 if test x
"$sap_possible" = xyes
; then
25666 TARGET_CFLAGS
="$TARGET_CFLAGS -mno-stack-arg-probe"
25669 CFLAGS
="$TARGET_CFLAGS"
25671 # -mno-unaligned-access -mstrict-align
25672 if test "$target_cpu" = arm
; then
25673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile options to get strict alignment" >&5
25674 $as_echo_n "checking for compile options to get strict alignment... " >&6; }
25675 if ${grub_cv_target_cc_strict_align+:} false
; then :
25676 $as_echo_n "(cached) " >&6
25679 grub_cv_target_cc_strict_align
=
25680 for arg
in -mno-unaligned-access "-Xclang -mstrict-align" -mstrict-align; do
25681 CFLAGS
="$TARGET_CFLAGS $arg -Werror"
25682 LDFLAGS
="$TARGET_LDFLAGS"
25683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25684 /* end confdefs.h. */
25694 if ac_fn_c_try_compile
"$LINENO"; then :
25699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25700 if test x
"$flag" = x1
; then
25701 grub_cv_target_cc_strict_align
="$arg"
25706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_target_cc_strict_align" >&5
25707 $as_echo "$grub_cv_target_cc_strict_align" >&6; }
25709 TARGET_CFLAGS
="$TARGET_CFLAGS $grub_cv_target_cc_strict_align"
25710 if test x
"$grub_cv_target_cc_strict_align" = x
"-Xclang -mstrict-align"; then
25711 TARGET_LDFLAGS
="$TARGET_LDFLAGS -Qunused-arguments"
25713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler generates unaligned accesses" >&5
25714 $as_echo_n "checking if compiler generates unaligned accesses... " >&6; }
25715 if ${grub_cv_cc_target_emits_unaligned+:} false
; then :
25716 $as_echo_n "(cached) " >&6
25718 CFLAGS
="$TARGET_CFLAGS"
25719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25720 /* end confdefs.h. */
25726 #ifdef __ARM_FEATURE_UNALIGNED
25734 if ac_fn_c_try_compile
"$LINENO"; then :
25735 grub_cv_cc_target_emits_unaligned
=no
25737 grub_cv_cc_target_emits_unaligned
=yes
25739 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_target_emits_unaligned" >&5
25742 $as_echo "$grub_cv_cc_target_emits_unaligned" >&6; }
25743 if test x
$grub_cv_cc_target_emits_unaligned = xyes
; then
25744 as_fn_error $?
"compiler generates unaligned accesses" "$LINENO" 5
25748 # Set them to their new values for the tests below.
25750 if test "x$TARGET_APPLE_LINKER" = x1
; then
25751 CFLAGS
="$TARGET_CFLAGS -nostdlib -static -Wno-error"
25753 CFLAGS
="$TARGET_CFLAGS -nostdlib -Wno-error"
25755 CPPFLAGS
="$TARGET_CPPFLAGS"
25756 if test x
$target_cpu = xi386 ||
test x
$target_cpu = xx86_64 ||
test "x$grub_cv_cc_target_clang" = xyes
; then
25759 TARGET_LIBGCC
=-lgcc
25762 LIBS
="$TARGET_LIBGCC"
25766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C symbols get an underscore after compilation" >&5
25767 $as_echo_n "checking if C symbols get an underscore after compilation... " >&6; }
25768 if ${grub_cv_asm_uscore+:} false
; then :
25769 $as_echo_n "(cached) " >&6
25771 cat > conftest.c
<<\EOF
25781 if { ac_try
='${CC-cc} ${CFLAGS} -S conftest.c'
25782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25783 (eval $ac_try) 2>&5
25785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25786 test $ac_status = 0; }; } && test -s conftest.s
; then
25789 as_fn_error $?
"${CC-cc} failed to produce assembly code" "$LINENO" 5
25792 if $EGREP '(^|^_[:alnum])_func' conftest.s
>/dev
/null
2>&1; then
25794 grub_cv_asm_uscore
=yes
25797 grub_cv_asm_uscore
=no
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_asm_uscore" >&5
25805 $as_echo "$grub_cv_asm_uscore" >&6; }
25807 if test "x$TARGET_APPLE_LINKER" = x0
; then
25808 if test x
$grub_cv_asm_uscore = xyes
; then
25809 DEFSYM
="-Wl,--defsym,_abort=_main -Wl,--defsym,__main=_main"
25811 DEFSYM
="-Wl,--defsym,abort=main -Wl,--defsym,_main=main -Wl,--defsym,__main=main"
25813 CFLAGS
="$TARGET_CFLAGS -nostdlib $DEFSYM"
25816 # Check for libgcc symbols
25817 for ac_func
in __bswapsi2 __bswapdi2 __ashldi3 __ashrdi3 __lshrdi3 __ucmpdi2 _restgpr_14_x
25819 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25820 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
25821 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
25822 cat >>confdefs.h
<<_ACEOF
25823 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25830 if test "x$TARGET_APPLE_LINKER" = x1
; then
25831 CFLAGS
="$TARGET_CFLAGS -nostdlib -static"
25833 CFLAGS
="$TARGET_CFLAGS -nostdlib"
25837 # Defined in aclocal.m4.
25838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether target compiler is working" >&5
25839 $as_echo_n "checking whether target compiler is working... " >&6; }
25840 if ${grub_cv_prog_target_cc+:} false
; then :
25841 $as_echo_n "(cached) " >&6
25843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25844 /* end confdefs.h. */
25846 asm (".globl start; start:");
25847 void __main (void);
25848 void __main (void) {}
25859 if ac_fn_c_try_link
"$LINENO"; then :
25860 grub_cv_prog_target_cc
=yes
25862 grub_cv_prog_target_cc
=no
25864 rm -f core conftest.err conftest.
$ac_objext \
25865 conftest
$ac_exeext conftest.
$ac_ext
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_target_cc" >&5
25870 $as_echo "$grub_cv_prog_target_cc" >&6; }
25872 if test "x$grub_cv_prog_target_cc" = xno
; then
25873 as_fn_error $?
"cannot compile for the target" "$LINENO" 5
25876 if test "x$TARGET_APPLE_LINKER" != x1
; then
25877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${TARGET_OBJCOPY} works for absolute addresses" >&5
25878 $as_echo_n "checking whether ${TARGET_OBJCOPY} works for absolute addresses... " >&6; }
25879 if ${grub_cv_prog_objcopy_absolute+:} false
; then :
25880 $as_echo_n "(cached) " >&6
25882 cat > conftest.c
<<\EOF
25887 *((int
*) 0x1000) = 2;
25891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
25892 (eval $ac_compile) 2>&5
25894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25895 test $ac_status = 0; } && test -s conftest.o
; then :
25897 as_fn_error $?
"${CC-cc} cannot compile C source code" "$LINENO" 5
25899 grub_cv_prog_objcopy_absolute
=yes
25900 for link_addr
in 0x2000 0x8000 0x7C00; do
25901 if { ac_try
='${CC-cc} ${CFLAGS} -nostdlib ${TARGET_IMG_LDFLAGS_AC} ${TARGET_IMG_BASE_LDOPT},$link_addr conftest.o -o conftest.exec'
25902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25903 (eval $ac_try) 2>&5
25905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25906 test $ac_status = 0; }; }; then :
25908 as_fn_error $?
"${CC-cc} cannot link at address $link_addr" "$LINENO" 5
25910 if { ac_try
='${TARGET_OBJCOPY-objcopy} --only-section=.text -O binary conftest.exec conftest'
25911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25912 (eval $ac_try) 2>&5
25914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25915 test $ac_status = 0; }; }; then :
25917 as_fn_error $?
"${TARGET_OBJCOPY-objcopy} cannot create binary files" "$LINENO" 5
25919 if test ! -f conftest.old ||
{ ac_try
='cmp -s conftest.old conftest'
25920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25921 (eval $ac_try) 2>&5
25923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25924 test $ac_status = 0; }; }; then
25925 mv -f conftest conftest.old
25927 grub_cv_prog_objcopy_absolute
=no
25934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_objcopy_absolute" >&5
25935 $as_echo "$grub_cv_prog_objcopy_absolute" >&6; }
25937 if test "x$grub_cv_prog_objcopy_absolute" = xno
; then
25938 as_fn_error $?
"GRUB requires a working absolute objcopy; upgrade your binutils" "$LINENO" 5
25942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts --build-id=none" >&5
25943 $as_echo_n "checking whether linker accepts --build-id=none... " >&6; }
25944 if ${grub_cv_prog_ld_build_id_none+:} false
; then :
25945 $as_echo_n "(cached) " >&6
25947 save_LDFLAGS
="$LDFLAGS"
25948 LDFLAGS
="$LDFLAGS -Wl,--build-id=none"
25949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25950 /* end confdefs.h. */
25960 if ac_fn_c_try_link
"$LINENO"; then :
25961 grub_cv_prog_ld_build_id_none
=yes
25963 grub_cv_prog_ld_build_id_none
=no
25965 rm -f core conftest.err conftest.
$ac_objext \
25966 conftest
$ac_exeext conftest.
$ac_ext
25967 LDFLAGS
="$save_LDFLAGS"
25971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_ld_build_id_none" >&5
25972 $as_echo "$grub_cv_prog_ld_build_id_none" >&6; }
25974 if test "x$grub_cv_prog_ld_build_id_none" = xyes
; then
25975 TARGET_LDFLAGS
="$TARGET_LDFLAGS -Wl,--build-id=none"
25978 if test "x$target_cpu" = xi386
; then
25979 if test "$platform" != emu
&& test "x$TARGET_APPLE_LINKER" != x1
; then
25980 if test ! -z "$TARGET_IMG_LDSCRIPT"; then
25981 # Check symbols provided by linker script.
25982 CFLAGS
="$TARGET_CFLAGS -nostdlib ${TARGET_IMG_LDFLAGS_AC} ${TARGET_IMG_BASE_LDOPT},0x8000"
25985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __bss_start is defined by the compiler" >&5
25986 $as_echo_n "checking if __bss_start is defined by the compiler... " >&6; }
25987 if ${grub_cv_check_uscore_uscore_bss_start_symbol+:} false
; then :
25988 $as_echo_n "(cached) " >&6
25990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25991 /* end confdefs.h. */
25993 asm (".globl start; start:");
25994 void __main (void);
25995 void __main (void) {}
26001 asm ("incl __bss_start")
26006 if ac_fn_c_try_link
"$LINENO"; then :
26007 grub_cv_check_uscore_uscore_bss_start_symbol
=yes
26009 grub_cv_check_uscore_uscore_bss_start_symbol
=no
26011 rm -f core conftest.err conftest.
$ac_objext \
26012 conftest
$ac_exeext conftest.
$ac_ext
26016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
26017 $as_echo "$grub_cv_check_uscore_uscore_bss_start_symbol" >&6; }
26019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if edata is defined by the compiler" >&5
26020 $as_echo_n "checking if edata is defined by the compiler... " >&6; }
26021 if ${grub_cv_check_edata_symbol+:} false
; then :
26022 $as_echo_n "(cached) " >&6
26024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26025 /* end confdefs.h. */
26027 asm (".globl start; start:");
26028 void __main (void);
26029 void __main (void) {}
26039 if ac_fn_c_try_link
"$LINENO"; then :
26040 grub_cv_check_edata_symbol
=yes
26042 grub_cv_check_edata_symbol
=no
26044 rm -f core conftest.err conftest.
$ac_objext \
26045 conftest
$ac_exeext conftest.
$ac_ext
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_edata_symbol" >&5
26050 $as_echo "$grub_cv_check_edata_symbol" >&6; }
26052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _edata is defined by the compiler" >&5
26053 $as_echo_n "checking if _edata is defined by the compiler... " >&6; }
26054 if ${grub_cv_check_uscore_edata_symbol+:} false
; then :
26055 $as_echo_n "(cached) " >&6
26057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26058 /* end confdefs.h. */
26060 asm (".globl start; start:");
26061 void __main (void);
26062 void __main (void) {}
26067 asm ("incl _edata")
26072 if ac_fn_c_try_link
"$LINENO"; then :
26073 grub_cv_check_uscore_edata_symbol
=yes
26075 grub_cv_check_uscore_edata_symbol
=no
26077 rm -f core conftest.err conftest.
$ac_objext \
26078 conftest
$ac_exeext conftest.
$ac_ext
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_edata_symbol" >&5
26083 $as_echo "$grub_cv_check_uscore_edata_symbol" >&6; }
26085 if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes
; then
26086 BSS_START_SYMBOL
=__bss_start
26087 elif test "x$grub_cv_check_edata_symbol" = xyes
; then
26088 BSS_START_SYMBOL
=edata
26089 elif test "x$grub_cv_check_uscore_edata_symbol" = xyes
; then
26090 BSS_START_SYMBOL
=_edata
26092 as_fn_error $?
"none of __bss_start, edata or _edata is defined" "$LINENO" 5
26096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if end is defined by the compiler" >&5
26097 $as_echo_n "checking if end is defined by the compiler... " >&6; }
26098 if ${grub_cv_check_end_symbol+:} false
; then :
26099 $as_echo_n "(cached) " >&6
26101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26102 /* end confdefs.h. */
26104 asm (".globl start; start:");
26105 void __main (void);
26106 void __main (void) {}
26116 if ac_fn_c_try_link
"$LINENO"; then :
26117 grub_cv_check_end_symbol
=yes
26119 grub_cv_check_end_symbol
=no
26121 rm -f core conftest.err conftest.
$ac_objext \
26122 conftest
$ac_exeext conftest.
$ac_ext
26126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_end_symbol" >&5
26127 $as_echo "$grub_cv_check_end_symbol" >&6; }
26129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _end is defined by the compiler" >&5
26130 $as_echo_n "checking if _end is defined by the compiler... " >&6; }
26131 if ${grub_cv_check_uscore_end_symbol+:} false
; then :
26132 $as_echo_n "(cached) " >&6
26134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26135 /* end confdefs.h. */
26137 asm (".globl start; start:");
26138 void __main (void);
26139 void __main (void) {}
26149 if ac_fn_c_try_link
"$LINENO"; then :
26150 grub_cv_check_uscore_end_symbol
=yes
26152 grub_cv_check_uscore_end_symbol
=no
26154 rm -f core conftest.err conftest.
$ac_objext \
26155 conftest
$ac_exeext conftest.
$ac_ext
26159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_end_symbol" >&5
26160 $as_echo "$grub_cv_check_uscore_end_symbol" >&6; }
26162 if test "x$grub_cv_check_end_symbol" = xyes
; then
26164 elif test "x$grub_cv_check_uscore_end_symbol" = xyes
; then
26167 as_fn_error $?
"neither end nor _end is defined" "$LINENO" 5
26171 CFLAGS
="$TARGET_CFLAGS"
26173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether addr32 must be in the same line as the instruction" >&5
26174 $as_echo_n "checking whether addr32 must be in the same line as the instruction... " >&6; }
26175 if ${grub_cv_i386_asm_prefix_requirement+:} false
; then :
26176 $as_echo_n "(cached) " >&6
26178 cat > conftest.s
<<\EOF
26180 l1
: addr32 movb
%al
, l1
26183 if { ac_try
='${CC-cc} ${TARGET_CCASFLAGS} ${CFLAGS} -c conftest.s'
26184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26185 (eval $ac_try) 2>&5
26187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26188 test $ac_status = 0; }; } && test -s conftest.o
; then
26189 grub_cv_i386_asm_prefix_requirement
=yes
26191 grub_cv_i386_asm_prefix_requirement
=no
26198 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes
; then
26199 grub_tmp_addr32
="addr32"
26200 grub_tmp_data32
="data32"
26202 grub_tmp_addr32
="addr32;"
26203 grub_tmp_data32
="data32;"
26206 ADDR32
=$grub_tmp_addr32
26207 DATA32
=$grub_tmp_data32
26209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_i386_asm_prefix_requirement" >&5
26210 $as_echo "$grub_cv_i386_asm_prefix_requirement" >&6; }
26213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .code16 addr32 assembler support" >&5
26214 $as_echo_n "checking for .code16 addr32 assembler support... " >&6; }
26215 if ${grub_cv_i386_asm_addr32+:} false
; then :
26216 $as_echo_n "(cached) " >&6
26218 cat > conftest.s.
in <<\EOF
26220 l1
: @ADDR32@ movb
%al
, l1
26223 if test "x$grub_cv_i386_asm_prefix_requirement" = xyes
; then
26224 sed -e s
/@ADDR32@
/addr32
/ < conftest.s.
in > conftest.s
26226 sed -e s
/@ADDR32@
/addr32\
;/ < conftest.s.
in > conftest.s
26229 if { ac_try
='${CC-cc} ${TARGET_CCASFLAGS} ${CFLAGS} -c conftest.s'
26230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26231 (eval $ac_try) 2>&5
26233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26234 test $ac_status = 0; }; } && test -s conftest.o
; then
26235 grub_cv_i386_asm_addr32
=yes
26237 grub_cv_i386_asm_addr32
=no
26244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_i386_asm_addr32" >&5
26245 $as_echo "$grub_cv_i386_asm_addr32" >&6; }
26248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nm works" >&5
26249 $as_echo_n "checking whether nm works... " >&6; }
26250 if ${grub_cv_prog_nm_works+:} false
; then :
26251 $as_echo_n "(cached) " >&6
26254 nm_works_tmp_dir
="$(mktemp -d ".
/confXXXXXX
")"
26255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26256 /* end confdefs.h. */
26266 $TARGET_CC $TARGET_CFLAGS -c conftest.c
-o "$nm_works_tmp_dir/ef"
26267 if $TARGET_NM "$nm_works_tmp_dir/ef" > /dev
/null
; then
26268 grub_cv_prog_nm_works
=yes
26270 grub_cv_prog_nm_minus_p
=no
26272 rm "$nm_works_tmp_dir/ef"
26273 rmdir "$nm_works_tmp_dir"
26277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_nm_works" >&5
26278 $as_echo "$grub_cv_prog_nm_works" >&6; }
26280 if test "x$grub_cv_prog_nm_works" != xyes
; then
26281 as_fn_error $?
"nm does not work" "$LINENO" 5
26284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nm accepts -P" >&5
26285 $as_echo_n "checking whether nm accepts -P... " >&6; }
26286 if ${grub_cv_prog_nm_minus_p+:} false
; then :
26287 $as_echo_n "(cached) " >&6
26290 nm_minus_p_tmp_dir
="$(mktemp -d ".
/confXXXXXX
")"
26291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26292 /* end confdefs.h. */
26302 $TARGET_CC $TARGET_CFLAGS -c conftest.c
-o "$nm_minus_p_tmp_dir/ef"
26303 if $TARGET_NM -P "$nm_minus_p_tmp_dir/ef" 2>&1 > /dev
/null
; then
26304 grub_cv_prog_nm_minus_p
=yes
26306 grub_cv_prog_nm_minus_p
=no
26308 rm "$nm_minus_p_tmp_dir/ef"
26309 rmdir "$nm_minus_p_tmp_dir"
26313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_nm_minus_p" >&5
26314 $as_echo "$grub_cv_prog_nm_minus_p" >&6; }
26316 if test "x$grub_cv_prog_nm_minus_p" = xyes
; then
26317 TARGET_NMFLAGS_MINUS_P
="-P"
26319 TARGET_NMFLAGS_MINUS_P
=
26322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nm accepts --defined-only" >&5
26323 $as_echo_n "checking whether nm accepts --defined-only... " >&6; }
26324 if ${grub_cv_prog_nm_defined_only+:} false
; then :
26325 $as_echo_n "(cached) " >&6
26328 nm_defined_only_tmp_dir
="$(mktemp -d ".
/confXXXXXX
")"
26329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26330 /* end confdefs.h. */
26340 $TARGET_CC $TARGET_CFLAGS -c conftest.c
-o "$nm_defined_only_tmp_dir/ef"
26341 if $TARGET_NM --defined-only "$nm_defined_only_tmp_dir/ef" 2>&1 > /dev
/null
; then
26342 grub_cv_prog_nm_defined_only
=yes
26344 grub_cv_prog_nm_defined_only
=no
26346 rm "$nm_defined_only_tmp_dir/ef"
26347 rmdir "$nm_defined_only_tmp_dir"
26351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_nm_defined_only" >&5
26352 $as_echo "$grub_cv_prog_nm_defined_only" >&6; }
26354 if test "x$grub_cv_prog_nm_defined_only" = xyes
; then
26355 TARGET_NMFLAGS_DEFINED_ONLY
=--defined-only
26357 TARGET_NMFLAGS_DEFINED_ONLY
=
26363 if test "$platform" != emu
; then
26364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -nostdinc -isystem works" >&5
26365 $as_echo_n "checking whether -nostdinc -isystem works... " >&6; }
26366 if ${grub_cv_cc_isystem+:} false
; then :
26367 $as_echo_n "(cached) " >&6
26370 SAVED_CPPFLAGS
="$CPPFLAGS"
26371 CPPFLAGS
="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`"
26372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26373 /* end confdefs.h. */
26374 #include <stdarg.h>
26375 #include <stddef.h>
26376 int va_arg_func (int fixed, va_list args);
26385 if ac_fn_c_try_compile
"$LINENO"; then :
26386 grub_cv_cc_isystem
=yes
26388 grub_cv_cc_isystem
=no
26390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26391 CPPFLAGS
="$SAVED_CPPFLAGS"
26394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_isystem" >&5
26395 $as_echo "$grub_cv_cc_isystem" >&6; }
26397 if test x
"$grub_cv_cc_isystem" = xyes
; then
26398 TARGET_CPPFLAGS
="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`"
26402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wtrampolines work" >&5
26403 $as_echo_n "checking whether -Wtrampolines work... " >&6; }
26404 if ${grub_cv_cc_wtrampolines+:} false
; then :
26405 $as_echo_n "(cached) " >&6
26408 CFLAGS
="$TARGET_CFLAGS -Wtrampolines -Werror"
26409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26410 /* end confdefs.h. */
26411 #include <stdarg.h>
26412 int va_arg_func (int fixed, va_list args);
26421 if ac_fn_c_try_compile
"$LINENO"; then :
26422 grub_cv_cc_wtrampolines
=yes
26424 grub_cv_cc_wtrampolines
=no
26426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_wtrampolines" >&5
26430 $as_echo "$grub_cv_cc_wtrampolines" >&6; }
26432 if test x
"$grub_cv_cc_wtrampolines" = xyes
; then
26433 TARGET_CFLAGS
="$TARGET_CFLAGS -Wtrampolines"
26436 # Restore the flags.
26438 CFLAGS
="$tmp_CFLAGS"
26439 CPPFLAGS
="$tmp_CPPFLAGS"
26440 LDFLAGS
="$tmp_LDFLAGS"
26444 # Check for options.
26447 # Memory manager debugging.
26448 # Check whether --enable-mm-debug was given.
26449 if test "${enable_mm_debug+set}" = set; then :
26450 enableval
=$enable_mm_debug;
26451 $as_echo "#define MM_DEBUG 1" >>confdefs.h
26456 # Check whether --enable-cache-stats was given.
26457 if test "${enable_cache_stats+set}" = set; then :
26458 enableval
=$enable_cache_stats;
26462 if test x
$enable_cache_stats = xyes
; then
26469 # Check whether --enable-boot-time was given.
26470 if test "${enable_boot_time+set}" = set; then :
26471 enableval
=$enable_boot_time;
26475 if test x
$enable_boot_time = xyes
; then
26482 # Check whether --enable-skip-platform was given.
26483 if test "${enable_skip_platform+set}" = set; then :
26484 enableval
=$enable_skip_platform;
26488 if test x
$enable_skip_platform = xyes
; then
26495 # Check whether --enable-grub-emu-usb was given.
26496 if test "${enable_grub_emu_usb+set}" = set; then :
26497 enableval
=$enable_grub_emu_usb;
26501 # Check whether --enable-grub-emu-sdl was given.
26502 if test "${enable_grub_emu_sdl+set}" = set; then :
26503 enableval
=$enable_grub_emu_sdl;
26507 # Check whether --enable-grub-emu-pci was given.
26508 if test "${enable_grub_emu_pci+set}" = set; then :
26509 enableval
=$enable_grub_emu_pci;
26513 if test "$platform" = emu
; then
26515 if test x
"$enable_grub_emu_usb" != xyes
; then
26516 grub_emu_usb_excuse
="not enabled"
26519 if test x
"$enable_grub_emu_pci" = xyes
; then
26520 grub_emu_usb_excuse
="conflicts with PCI support"
26523 if [ x
"$grub_emu_usb_excuse" = x
]; then
26524 # Check for libusb libraries.
26525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_claim_interface in -lusb" >&5
26526 $as_echo_n "checking for usb_claim_interface in -lusb... " >&6; }
26527 if ${ac_cv_lib_usb_usb_claim_interface+:} false
; then :
26528 $as_echo_n "(cached) " >&6
26530 ac_check_lib_save_LIBS
=$LIBS
26532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26533 /* end confdefs.h. */
26535 /* Override any GCC internal prototype to avoid an error.
26536 Use char because int might match the return type of a GCC
26537 builtin and then its argument prototype would still apply. */
26541 char usb_claim_interface ();
26545 return usb_claim_interface ();
26550 if ac_fn_c_try_link
"$LINENO"; then :
26551 ac_cv_lib_usb_usb_claim_interface
=yes
26553 ac_cv_lib_usb_usb_claim_interface
=no
26555 rm -f core conftest.err conftest.
$ac_objext \
26556 conftest
$ac_exeext conftest.
$ac_ext
26557 LIBS
=$ac_check_lib_save_LIBS
26559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_claim_interface" >&5
26560 $as_echo "$ac_cv_lib_usb_usb_claim_interface" >&6; }
26561 if test "x$ac_cv_lib_usb_usb_claim_interface" = xyes
; then :
26564 grub_emu_usb_excuse
="need libusb library"
26569 if [ x
"$grub_emu_usb_excuse" = x
]; then
26570 # Check for headers.
26571 for ac_header
in usb.h
26573 ac_fn_c_check_header_mongrel
"$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
26574 if test "x$ac_cv_header_usb_h" = xyes
; then :
26575 cat >>confdefs.h
<<_ACEOF
26576 #define HAVE_USB_H 1
26580 grub_emu_usb_excuse
="need libusb headers"
26586 if test x
"$enable_grub_emu_usb" = xyes
&& test x
"$grub_emu_usb_excuse" != x
; then
26587 as_fn_error $?
"USB support for grub-emu was explicitly requested but can't be compiled ($grub_emu_usb_excuse)" "$LINENO" 5
26589 if test x
"$grub_emu_usb_excuse" = x
; then
26590 enable_grub_emu_usb
=yes
26592 enable_grub_emu_usb
=no
26595 if test x
"$enable_grub_emu_sdl" = xno
; then
26596 grub_emu_sdl_excuse
="explicitly disabled"
26598 if [ x
"$grub_emu_sdl_excuse" = x
]; then
26599 # Check for libSDL libraries.
26600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL" >&5
26601 $as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
26602 if ${ac_cv_lib_SDL_SDL_Init+:} false
; then :
26603 $as_echo_n "(cached) " >&6
26605 ac_check_lib_save_LIBS
=$LIBS
26607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26608 /* end confdefs.h. */
26610 /* Override any GCC internal prototype to avoid an error.
26611 Use char because int might match the return type of a GCC
26612 builtin and then its argument prototype would still apply. */
26620 return SDL_Init ();
26625 if ac_fn_c_try_link
"$LINENO"; then :
26626 ac_cv_lib_SDL_SDL_Init
=yes
26628 ac_cv_lib_SDL_SDL_Init
=no
26630 rm -f core conftest.err conftest.
$ac_objext \
26631 conftest
$ac_exeext conftest.
$ac_ext
26632 LIBS
=$ac_check_lib_save_LIBS
26634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Init" >&5
26635 $as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
26636 if test "x$ac_cv_lib_SDL_SDL_Init" = xyes
; then :
26639 grub_emu_sdl_excuse
="libSDL libraries are required to build \`grub-emu' with SDL support"
26645 if [ x
"$grub_emu_sdl_excuse" = x
]; then
26646 # Check for headers.
26647 for ac_header
in SDL
/SDL.h
26649 ac_fn_c_check_header_mongrel
"$LINENO" "SDL/SDL.h" "ac_cv_header_SDL_SDL_h" "$ac_includes_default"
26650 if test "x$ac_cv_header_SDL_SDL_h" = xyes
; then :
26651 cat >>confdefs.h
<<_ACEOF
26652 #define HAVE_SDL_SDL_H 1
26656 grub_emu_sdl_excuse
="libSDL header file is required to build \`grub-emu' with SDL support"
26663 if test x
"enable_grub_emu_sdl" = xyes
&& test x
"$grub_emu_sdl_excuse" != x
; then
26664 as_fn_error $?
"SDL support for grub-emu was explicitly requested but can't be compiled ($grub_emu_sdl_excuse)" "$LINENO" 5
26666 if test x
"$grub_emu_sdl_excuse" = x
; then
26667 enable_grub_emu_sdl
=yes
26669 enable_grub_emu_sdl
=no
26672 if test x
"$enable_grub_emu_pci" != xyes
; then
26673 grub_emu_pci_excuse
="not enabled"
26676 if test x
"$enable_grub_emu_usb" = xyes
; then
26677 grub_emu_pci_excuse
="conflicts with USB support"
26680 if [ x
"$grub_emu_pci_excuse" = x
]; then
26681 # Check for libpci libraries.
26682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pci_system_init in -lpciaccess" >&5
26683 $as_echo_n "checking for pci_system_init in -lpciaccess... " >&6; }
26684 if ${ac_cv_lib_pciaccess_pci_system_init+:} false
; then :
26685 $as_echo_n "(cached) " >&6
26687 ac_check_lib_save_LIBS
=$LIBS
26688 LIBS
="-lpciaccess $LIBS"
26689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26690 /* end confdefs.h. */
26692 /* Override any GCC internal prototype to avoid an error.
26693 Use char because int might match the return type of a GCC
26694 builtin and then its argument prototype would still apply. */
26698 char pci_system_init ();
26702 return pci_system_init ();
26707 if ac_fn_c_try_link
"$LINENO"; then :
26708 ac_cv_lib_pciaccess_pci_system_init
=yes
26710 ac_cv_lib_pciaccess_pci_system_init
=no
26712 rm -f core conftest.err conftest.
$ac_objext \
26713 conftest
$ac_exeext conftest.
$ac_ext
26714 LIBS
=$ac_check_lib_save_LIBS
26716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pciaccess_pci_system_init" >&5
26717 $as_echo "$ac_cv_lib_pciaccess_pci_system_init" >&6; }
26718 if test "x$ac_cv_lib_pciaccess_pci_system_init" = xyes
; then :
26719 LIBPCIACCESS
="-lpciaccess"
26721 grub_emu_pci_excuse
="need libpciaccess library"
26726 if [ x
"$grub_emu_pci_excuse" = x
]; then
26727 # Check for headers.
26728 for ac_header
in pci
/pci.h
26730 ac_fn_c_check_header_mongrel
"$LINENO" "pci/pci.h" "ac_cv_header_pci_pci_h" "$ac_includes_default"
26731 if test "x$ac_cv_header_pci_pci_h" = xyes
; then :
26732 cat >>confdefs.h
<<_ACEOF
26733 #define HAVE_PCI_PCI_H 1
26737 grub_emu_pci_excuse
="need libpciaccess headers"
26744 if test x
"$grub_emu_pci_excuse" = x
; then
26745 enable_grub_emu_pci
=yes
26748 enable_grub_emu_pci
=no
26757 # Ignore --enable-emu-* if platform is not emu
26758 enable_grub_emu_sdl
=no
26759 enable_grub_emu_usb
=no
26760 enable_grub_emu_pci
=no
26763 # Check whether --enable-grub-mkfont was given.
26764 if test "${enable_grub_mkfont+set}" = set; then :
26765 enableval
=$enable_grub_mkfont;
26768 if test x
"$enable_grub_mkfont" = xno
; then
26769 grub_mkfont_excuse
="explicitly disabled"
26772 if test x
"$grub_mkfont_excuse" = x
; then
26773 # Check for freetype libraries.
26774 if test -n "$ac_tool_prefix"; then
26775 for ac_prog
in freetype-config
26777 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
26778 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
26779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26780 $as_echo_n "checking for $ac_word... " >&6; }
26781 if ${ac_cv_prog_FREETYPE+:} false
; then :
26782 $as_echo_n "(cached) " >&6
26784 if test -n "$FREETYPE"; then
26785 ac_cv_prog_FREETYPE
="$FREETYPE" # Let the user override the test.
26787 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26788 for as_dir
in $PATH
26791 test -z "$as_dir" && as_dir
=.
26792 for ac_exec_ext
in '' $ac_executable_extensions; do
26793 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26794 ac_cv_prog_FREETYPE
="$ac_tool_prefix$ac_prog"
26795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26804 FREETYPE
=$ac_cv_prog_FREETYPE
26805 if test -n "$FREETYPE"; then
26806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE" >&5
26807 $as_echo "$FREETYPE" >&6; }
26809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26810 $as_echo "no" >&6; }
26814 test -n "$FREETYPE" && break
26817 if test -z "$FREETYPE"; then
26818 ac_ct_FREETYPE
=$FREETYPE
26819 for ac_prog
in freetype-config
26821 # Extract the first word of "$ac_prog", so it can be a program name with args.
26822 set dummy
$ac_prog; ac_word
=$2
26823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26824 $as_echo_n "checking for $ac_word... " >&6; }
26825 if ${ac_cv_prog_ac_ct_FREETYPE+:} false
; then :
26826 $as_echo_n "(cached) " >&6
26828 if test -n "$ac_ct_FREETYPE"; then
26829 ac_cv_prog_ac_ct_FREETYPE
="$ac_ct_FREETYPE" # Let the user override the test.
26831 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26832 for as_dir
in $PATH
26835 test -z "$as_dir" && as_dir
=.
26836 for ac_exec_ext
in '' $ac_executable_extensions; do
26837 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26838 ac_cv_prog_ac_ct_FREETYPE
="$ac_prog"
26839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26848 ac_ct_FREETYPE
=$ac_cv_prog_ac_ct_FREETYPE
26849 if test -n "$ac_ct_FREETYPE"; then
26850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FREETYPE" >&5
26851 $as_echo "$ac_ct_FREETYPE" >&6; }
26853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26854 $as_echo "no" >&6; }
26858 test -n "$ac_ct_FREETYPE" && break
26861 if test "x$ac_ct_FREETYPE" = x
; then
26864 case $cross_compiling:$ac_tool_warned in
26866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26868 ac_tool_warned
=yes ;;
26870 FREETYPE
=$ac_ct_FREETYPE
26874 if test "x$FREETYPE" = x
; then
26875 grub_mkfont_excuse
="need freetype2 library"
26879 unset ac_cv_header_ft2build_h
26881 if test x
"$grub_mkfont_excuse" = x
; then
26882 # Check for freetype libraries.
26883 freetype_cflags
=`$FREETYPE --cflags`
26884 freetype_libs
=`$FREETYPE --libs`
26885 SAVED_CPPFLAGS
="$CPPFLAGS"
26887 CPPFLAGS
="$CPPFLAGS $freetype_cflags"
26888 LIBS
="$LIBS $freetype_libs"
26889 for ac_header
in ft2build.h
26891 ac_fn_c_check_header_mongrel
"$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
26892 if test "x$ac_cv_header_ft2build_h" = xyes
; then :
26893 cat >>confdefs.h
<<_ACEOF
26894 #define HAVE_FT2BUILD_H 1
26898 grub_mkfont_excuse
="need freetype2 headers"
26903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26904 /* end confdefs.h. */
26906 /* Override any GCC internal prototype to avoid an error.
26907 Use char because int might match the return type of a GCC
26908 builtin and then its argument prototype would still apply. */
26912 char FT_Load_Glyph ();
26916 return FT_Load_Glyph ();
26921 if ac_fn_c_try_link
"$LINENO"; then :
26924 grub_mkfont_excuse
="freetype2 library unusable"
26926 rm -f core conftest.err conftest.
$ac_objext \
26927 conftest
$ac_exeext conftest.
$ac_ext
26928 CPPFLAGS
="$SAVED_CPPFLAGS"
26932 if test x
"$enable_grub_mkfont" = xyes
&& test x
"$grub_mkfont_excuse" != x
; then
26933 as_fn_error $?
"grub-mkfont was explicitly requested but can't be compiled ($grub_mkfont_excuse)" "$LINENO" 5
26935 if test x
"$grub_mkfont_excuse" = x
; then
26936 enable_grub_mkfont
=yes
26938 enable_grub_mkfont
=no
26946 SAVED_CFLAGS
="$CFLAGS"
26947 SAVED_CPPFLAGS
="$CPPFLAGS"
26948 SAVED_LDFLAGS
="$LDFLAGS"
26951 CFLAGS
="$BUILD_CFLAGS"
26952 CPPFLAGS
="$BUILD_CPPFLAGS"
26953 LDFLAGS
="$BUILD_LDFAGS"
26955 unset ac_cv_c_bigendian
26956 unset ac_cv_header_ft2build_h
26958 if ac_fn_c_compute_int
"$LINENO" "sizeof (void *)" "BUILD_SIZEOF_VOID_P" ""; then :
26962 if ac_fn_c_compute_int
"$LINENO" "sizeof (long)" "BUILD_SIZEOF_LONG" ""; then :
26966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26967 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26968 if ${ac_cv_c_bigendian+:} false
; then :
26969 $as_echo_n "(cached) " >&6
26971 ac_cv_c_bigendian
=unknown
26972 # See if we're dealing with a universal compiler.
26973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26974 /* end confdefs.h. */
26975 #ifndef __APPLE_CC__
26976 not a universal capable compiler
26981 if ac_fn_c_try_compile
"$LINENO"; then :
26983 # Check for potential -arch flags. It is not universal unless
26984 # there are at least two -arch flags with different values.
26987 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26988 if test -n "$ac_prev"; then
26990 i?
86 | x86_64 | ppc | ppc64
)
26991 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
26994 ac_cv_c_bigendian
=universal
27000 elif test "x$ac_word" = "x-arch"; then
27005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27006 if test $ac_cv_c_bigendian = unknown
; then
27007 # See if sys/param.h defines the BYTE_ORDER macro.
27008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27009 /* end confdefs.h. */
27010 #include <sys/types.h>
27011 #include <sys/param.h>
27016 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
27017 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
27019 bogus endian macros
27026 if ac_fn_c_try_compile
"$LINENO"; then :
27027 # It does; now see whether it defined to BIG_ENDIAN or not.
27028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27029 /* end confdefs.h. */
27030 #include <sys/types.h>
27031 #include <sys/param.h>
27036 #if BYTE_ORDER != BIG_ENDIAN
27044 if ac_fn_c_try_compile
"$LINENO"; then :
27045 ac_cv_c_bigendian
=yes
27047 ac_cv_c_bigendian
=no
27049 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27051 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27053 if test $ac_cv_c_bigendian = unknown
; then
27054 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
27055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27056 /* end confdefs.h. */
27057 #include <limits.h>
27062 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
27063 bogus endian macros
27070 if ac_fn_c_try_compile
"$LINENO"; then :
27071 # It does; now see whether it defined to _BIG_ENDIAN or not.
27072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27073 /* end confdefs.h. */
27074 #include <limits.h>
27079 #ifndef _BIG_ENDIAN
27087 if ac_fn_c_try_compile
"$LINENO"; then :
27088 ac_cv_c_bigendian
=yes
27090 ac_cv_c_bigendian
=no
27092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27096 if test $ac_cv_c_bigendian = unknown
; then
27097 # Compile a test program.
27098 if test "$cross_compiling" = yes; then :
27099 # Try to guess by grepping values from an object file.
27100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27101 /* end confdefs.h. */
27102 short int ascii_mm[] =
27103 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
27104 short int ascii_ii[] =
27105 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
27106 int use_ascii (int i) {
27107 return ascii_mm[i] + ascii_ii[i];
27109 short int ebcdic_ii[] =
27110 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
27111 short int ebcdic_mm[] =
27112 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
27113 int use_ebcdic (int i) {
27114 return ebcdic_mm[i] + ebcdic_ii[i];
27121 return use_ascii (foo) == use_ebcdic (foo);
27126 if ac_fn_c_try_compile
"$LINENO"; then :
27127 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
27128 ac_cv_c_bigendian
=yes
27130 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
27131 if test "$ac_cv_c_bigendian" = unknown
; then
27132 ac_cv_c_bigendian
=no
27134 # finding both strings is unlikely to happen, but who knows?
27135 ac_cv_c_bigendian
=unknown
27139 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27142 /* end confdefs.h. */
27143 $ac_includes_default
27148 /* Are we little or big endian? From Harbison&Steele. */
27152 char c[sizeof (long int)];
27155 return u.c[sizeof (long int) - 1] == 1;
27161 if ac_fn_c_try_run
"$LINENO"; then :
27162 ac_cv_c_bigendian
=no
27164 ac_cv_c_bigendian
=yes
27166 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27167 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
27173 $as_echo "$ac_cv_c_bigendian" >&6; }
27174 case $ac_cv_c_bigendian in #(
27176 BUILD_WORDS_BIGENDIAN
=1;; #(
27178 BUILD_WORDS_BIGENDIAN
=0 ;; #(
27180 BUILD_WORDS_BIGENDIAN
=err
27183 BUILD_WORDS_BIGENDIAN
=err
;;
27187 if test x
$BUILD_WORDS_BIGENDIAN = xerr
; then
27188 as_fn_error $?
"couldnt determine build endianness" "$LINENO" 5
27195 if test x
"$grub_build_mkfont_excuse" = x
; then
27196 # Check for freetype libraries.
27197 for ac_prog
in freetype-config
27199 # Extract the first word of "$ac_prog", so it can be a program name with args.
27200 set dummy
$ac_prog; ac_word
=$2
27201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27202 $as_echo_n "checking for $ac_word... " >&6; }
27203 if ${ac_cv_prog_BUILD_FREETYPE+:} false
; then :
27204 $as_echo_n "(cached) " >&6
27206 if test -n "$BUILD_FREETYPE"; then
27207 ac_cv_prog_BUILD_FREETYPE
="$BUILD_FREETYPE" # Let the user override the test.
27209 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27210 for as_dir
in $PATH
27213 test -z "$as_dir" && as_dir
=.
27214 for ac_exec_ext
in '' $ac_executable_extensions; do
27215 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
27216 ac_cv_prog_BUILD_FREETYPE
="$ac_prog"
27217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27226 BUILD_FREETYPE
=$ac_cv_prog_BUILD_FREETYPE
27227 if test -n "$BUILD_FREETYPE"; then
27228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_FREETYPE" >&5
27229 $as_echo "$BUILD_FREETYPE" >&6; }
27231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27232 $as_echo "no" >&6; }
27236 test -n "$BUILD_FREETYPE" && break
27239 if test "x$BUILD_FREETYPE" = x
; then
27240 grub_build_mkfont_excuse
="need freetype2 library"
27244 if test x
"$grub_build_mkfont_excuse" = x
; then
27245 # Check for freetype libraries.
27246 build_freetype_cflags
=`$BUILD_FREETYPE --cflags`
27247 build_freetype_libs
=`$BUILD_FREETYPE --libs`
27248 SAVED_CPPFLAGS_2
="$CPPFLAGS"
27250 CPPFLAGS
="$CPPFLAGS $build_freetype_cflags"
27251 LIBS
="$LIBS $build_freetype_libs"
27252 for ac_header
in ft2build.h
27254 ac_fn_c_check_header_mongrel
"$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27255 if test "x$ac_cv_header_ft2build_h" = xyes
; then :
27256 cat >>confdefs.h
<<_ACEOF
27257 #define HAVE_FT2BUILD_H 1
27261 grub_build_mkfont_excuse
="need freetype2 headers"
27266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27267 /* end confdefs.h. */
27269 /* Override any GCC internal prototype to avoid an error.
27270 Use char because int might match the return type of a GCC
27271 builtin and then its argument prototype would still apply. */
27275 char FT_Load_Glyph ();
27279 return FT_Load_Glyph ();
27284 if ac_fn_c_try_link
"$LINENO"; then :
27287 grub_build_mkfont_excuse
="freetype2 library unusable"
27289 rm -f core conftest.err conftest.
$ac_objext \
27290 conftest
$ac_exeext conftest.
$ac_ext
27292 CPPFLAGS
="$SAVED_CPPFLAGS_2"
27295 if test x
"$enable_build_grub_mkfont" = xyes
&& test x
"$grub_build_mkfont_excuse" != x
; then
27296 as_fn_error $?
"build-grub-mkfont was explicitly requested but can't be compiled ($grub_build_mkfont_excuse)" "$LINENO" 5
27298 if test x
"$grub_build_mkfont_excuse" = x
; then
27299 enable_build_grub_mkfont
=yes
27301 enable_build_grub_mkfont
=no
27303 if test x
"$enable_build_grub_mkfont" = xno
&& ( test "x$platform" = xqemu ||
test "x$platform" = xloongson ||
test "x$platform" = xqemu_mips ||
test "x$target_cpu"-"$platform" = xpowerpc-ieee1275 ||
test "x$platform" = xcoreboot
); then
27304 if test x
"$grub_build_mkfont_excuse" = x
; then
27305 as_fn_error $?
"qemu, powerpc-ieee1275, coreboot and loongson ports needs build-time grub-mkfont" "$LINENO" 5
27307 as_fn_error $?
"qemu, powerpc-ieee1275, coreboot and loongson ports needs build-time grub-mkfont ($grub_build_mkfont_excuse)" "$LINENO" 5
27316 CFLAGS
="$SAVED_CFLAGS"
27317 CPPFLAGS
="$SAVED_CPPFLAGS"
27318 LDFLAGS
="$SAVED_LDFLAGS"
27325 # Check whether --enable-grub-themes was given.
27326 if test "${enable_grub_themes+set}" = set; then :
27327 enableval
=$enable_grub_themes;
27330 if test x
"$enable_grub_themes" = xno
; then
27331 starfield_excuse
="explicitly disabled"
27334 if test x
"$starfield_excuse" = x
&& test x
"$enable_build_grub_mkfont" = xno
; then
27335 starfield_excuse
="No build-time grub-mkfont"
27338 if test x
"$starfield_excuse" = x
; then
27339 for ext
in pcf pcf.gz bdf bdf.gz ttf ttf.gz
; do
27340 for dir
in .
/usr
/src
/usr
/share
/fonts
/X11
/misc
/usr
/share
/fonts
/truetype
/ttf-dejavu
/usr
/share
/fonts
/dejavu
/usr
/share
/fonts
/truetype
; do
27341 if test -f "$dir/DejaVuSans.$ext"; then
27342 DJVU_FONT_SOURCE
="$dir/DejaVuSans.$ext"
27348 if test "x$DJVU_FONT_SOURCE" = x
; then
27349 starfield_excuse
="No DejaVu found"
27353 if test x
"$enable_grub_themes" = xyes
&& test x
"$starfield_excuse" != x
; then
27354 as_fn_error $?
"themes were explicitly requested but requirements are not satisfied ($starfield_excuse)" "$LINENO" 5
27361 for ext
in pcf pcf.gz bdf bdf.gz ttf ttf.gz
; do
27362 for dir
in .
/usr
/src
/usr
/share
/fonts
/X11
/misc
/usr
/share
/fonts
/unifont
/usr
/share
/fonts
/uni
/usr
/share
/fonts
/truetype
/unifont
/usr
/share
/fonts
/misc
; do
27363 if test -f "$dir/unifont.$ext"; then
27364 md5
="$(md5sum "$dir/unifont.
$ext"|awk '{ print $1; }')"
27365 # PCF and BDF from version 6.3 isn't hanled properly by libfreetype.
27366 if test "$md5" = 0a54834d2788c83886a3e1785a6a1e61 ||
test "$md5" = 28f2565c7a41d8d407e2551159385edb ||
test "$md5" = dae5e588461b3b92b87b6ffee734f936 ||
test "$md5" = 4a3d687aa5bb329ed05f4263a1016791
; then
27369 FONT_SOURCE
="$dir/unifont.$ext"
27375 if test x
"$enable_build_grub_mkfont" = xno
; then
27379 if test "x$FONT_SOURCE" = x
&& ( test "x$platform" = xqemu ||
test "x$platform" = xloongson ||
test "x$platform" = xqemu_mips ||
test "x$target_cpu"-"$platform" = xpowerpc-ieee1275 ||
test "x$platform" = xcoreboot
); then
27380 if test x
"$grub_build_mkfont_excuse" = x
; then
27381 as_fn_error $?
"qemu, powerpc-ieee1275, coreboot and loongson ports need unifont" "$LINENO" 5
27383 as_fn_error $?
"qemu, powerpc-ieee1275, coreboot and loongson ports need unifont ($grub_build_mkfont_excuse)" "$LINENO" 5
27389 if test x
"$FONT_SOURCE" = x
&& test x
"$DJVU_FONT_SOURCE" = x
&& test x
"$grub_build_mkfont_excuse" = x
; then
27390 grub_build_mkfont_excuse
="no fonts"
27394 # Check whether --enable-grub-mount was given.
27395 if test "${enable_grub_mount+set}" = set; then :
27396 enableval
=$enable_grub_mount;
27399 if test x
"$enable_grub_mount" = xno
; then
27400 grub_mount_excuse
="explicitly disabled"
27403 if test x
"$grub_mount_excuse" = x
; then
27404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main_real in -lfuse" >&5
27405 $as_echo_n "checking for fuse_main_real in -lfuse... " >&6; }
27406 if ${ac_cv_lib_fuse_fuse_main_real+:} false
; then :
27407 $as_echo_n "(cached) " >&6
27409 ac_check_lib_save_LIBS
=$LIBS
27410 LIBS
="-lfuse $LIBS"
27411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27412 /* end confdefs.h. */
27414 /* Override any GCC internal prototype to avoid an error.
27415 Use char because int might match the return type of a GCC
27416 builtin and then its argument prototype would still apply. */
27420 char fuse_main_real ();
27424 return fuse_main_real ();
27429 if ac_fn_c_try_link
"$LINENO"; then :
27430 ac_cv_lib_fuse_fuse_main_real
=yes
27432 ac_cv_lib_fuse_fuse_main_real
=no
27434 rm -f core conftest.err conftest.
$ac_objext \
27435 conftest
$ac_exeext conftest.
$ac_ext
27436 LIBS
=$ac_check_lib_save_LIBS
27438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main_real" >&5
27439 $as_echo "$ac_cv_lib_fuse_fuse_main_real" >&6; }
27440 if test "x$ac_cv_lib_fuse_fuse_main_real" = xyes
; then :
27441 cat >>confdefs.h
<<_ACEOF
27442 #define HAVE_LIBFUSE 1
27445 LIBS
="-lfuse $LIBS"
27448 grub_mount_excuse
="need FUSE library"
27453 if test x
"$grub_mount_excuse" = x
; then
27454 # Check for fuse headers.
27455 SAVED_CPPFLAGS
="$CPPFLAGS"
27456 CPPFLAGS
="$CPPFLAGS -DFUSE_USE_VERSION=26"
27457 for ac_header
in fuse
/fuse.h
27459 ac_fn_c_check_header_mongrel
"$LINENO" "fuse/fuse.h" "ac_cv_header_fuse_fuse_h" "$ac_includes_default"
27460 if test "x$ac_cv_header_fuse_fuse_h" = xyes
; then :
27461 cat >>confdefs.h
<<_ACEOF
27462 #define HAVE_FUSE_FUSE_H 1
27466 grub_mount_excuse
="need FUSE headers"
27471 CPPFLAGS
="$SAVED_CPPFLAGS"
27474 if test x
"$enable_grub_mount" = xyes
&& test x
"$grub_mount_excuse" != x
; then
27475 as_fn_error $?
"grub-mount was explicitly requested but can't be compiled ($grub_mount_excuse)" "$LINENO" 5
27477 if test x
"$grub_mount_excuse" = x
; then
27478 enable_grub_mount
=yes
27480 enable_grub_mount
=no
27484 # Check whether --enable-device-mapper was given.
27485 if test "${enable_device_mapper+set}" = set; then :
27486 enableval
=$enable_device_mapper;
27489 if test x
"$enable_device_mapper" = xno
; then
27490 device_mapper_excuse
="explicitly disabled"
27493 if test x
"$device_mapper_excuse" = x
; then
27494 # Check for device-mapper header.
27495 ac_fn_c_check_header_mongrel
"$LINENO" "libdevmapper.h" "ac_cv_header_libdevmapper_h" "$ac_includes_default"
27496 if test "x$ac_cv_header_libdevmapper_h" = xyes
; then :
27499 device_mapper_excuse
="need libdevmapper header"
27505 if test x
"$device_mapper_excuse" = x
; then
27506 # Check for device-mapper library.
27507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_create in -ldevmapper" >&5
27508 $as_echo_n "checking for dm_task_create in -ldevmapper... " >&6; }
27509 if ${ac_cv_lib_devmapper_dm_task_create+:} false
; then :
27510 $as_echo_n "(cached) " >&6
27512 ac_check_lib_save_LIBS
=$LIBS
27513 LIBS
="-ldevmapper $LIBS"
27514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27515 /* end confdefs.h. */
27517 /* Override any GCC internal prototype to avoid an error.
27518 Use char because int might match the return type of a GCC
27519 builtin and then its argument prototype would still apply. */
27523 char dm_task_create ();
27527 return dm_task_create ();
27532 if ac_fn_c_try_link
"$LINENO"; then :
27533 ac_cv_lib_devmapper_dm_task_create
=yes
27535 ac_cv_lib_devmapper_dm_task_create
=no
27537 rm -f core conftest.err conftest.
$ac_objext \
27538 conftest
$ac_exeext conftest.
$ac_ext
27539 LIBS
=$ac_check_lib_save_LIBS
27541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_create" >&5
27542 $as_echo "$ac_cv_lib_devmapper_dm_task_create" >&6; }
27543 if test "x$ac_cv_lib_devmapper_dm_task_create" = xyes
; then :
27544 cat >>confdefs.h
<<_ACEOF
27545 #define HAVE_LIBDEVMAPPER 1
27548 LIBS
="-ldevmapper $LIBS"
27551 device_mapper_excuse
="need devmapper library"
27556 if test x
"$device_mapper_excuse" = x
; then
27557 # Check for device-mapper library.
27558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_log_with_errno_init in -ldevmapper" >&5
27559 $as_echo_n "checking for dm_log_with_errno_init in -ldevmapper... " >&6; }
27560 if ${ac_cv_lib_devmapper_dm_log_with_errno_init+:} false
; then :
27561 $as_echo_n "(cached) " >&6
27563 ac_check_lib_save_LIBS
=$LIBS
27564 LIBS
="-ldevmapper $LIBS"
27565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27566 /* end confdefs.h. */
27568 /* Override any GCC internal prototype to avoid an error.
27569 Use char because int might match the return type of a GCC
27570 builtin and then its argument prototype would still apply. */
27574 char dm_log_with_errno_init ();
27578 return dm_log_with_errno_init ();
27583 if ac_fn_c_try_link
"$LINENO"; then :
27584 ac_cv_lib_devmapper_dm_log_with_errno_init
=yes
27586 ac_cv_lib_devmapper_dm_log_with_errno_init
=no
27588 rm -f core conftest.err conftest.
$ac_objext \
27589 conftest
$ac_exeext conftest.
$ac_ext
27590 LIBS
=$ac_check_lib_save_LIBS
27592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_log_with_errno_init" >&5
27593 $as_echo "$ac_cv_lib_devmapper_dm_log_with_errno_init" >&6; }
27594 if test "x$ac_cv_lib_devmapper_dm_log_with_errno_init" = xyes
; then :
27595 cat >>confdefs.h
<<_ACEOF
27596 #define HAVE_LIBDEVMAPPER 1
27599 LIBS
="-ldevmapper $LIBS"
27602 device_mapper_excuse
="need devmapper library"
27607 if test x
"$device_mapper_excuse" = x
; then
27608 LIBDEVMAPPER
="-ldevmapper"
27610 $as_echo "#define HAVE_DEVICE_MAPPER 1" >>confdefs.h
27617 if test x
$host_kernel = xkfreebsd
; then
27618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for geom_gettree in -lgeom" >&5
27619 $as_echo_n "checking for geom_gettree in -lgeom... " >&6; }
27620 if ${ac_cv_lib_geom_geom_gettree+:} false
; then :
27621 $as_echo_n "(cached) " >&6
27623 ac_check_lib_save_LIBS
=$LIBS
27624 LIBS
="-lgeom $LIBS"
27625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27626 /* end confdefs.h. */
27628 /* Override any GCC internal prototype to avoid an error.
27629 Use char because int might match the return type of a GCC
27630 builtin and then its argument prototype would still apply. */
27634 char geom_gettree ();
27638 return geom_gettree ();
27643 if ac_fn_c_try_link
"$LINENO"; then :
27644 ac_cv_lib_geom_geom_gettree
=yes
27646 ac_cv_lib_geom_geom_gettree
=no
27648 rm -f core conftest.err conftest.
$ac_objext \
27649 conftest
$ac_exeext conftest.
$ac_ext
27650 LIBS
=$ac_check_lib_save_LIBS
27652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_geom_geom_gettree" >&5
27653 $as_echo "$ac_cv_lib_geom_geom_gettree" >&6; }
27654 if test "x$ac_cv_lib_geom_geom_gettree" = xyes
; then :
27655 cat >>confdefs.h
<<_ACEOF
27656 #define HAVE_LIBGEOM 1
27659 LIBS
="-lgeom $LIBS"
27662 as_fn_error $?
"Your platform requires libgeom" "$LINENO" 5
27670 # Check whether --enable-liblzma was given.
27671 if test "${enable_liblzma+set}" = set; then :
27672 enableval
=$enable_liblzma;
27675 if test x
"$enable_liblzma" = xno
; then
27676 liblzma_excuse
="explicitly disabled"
27679 if test x
"$liblzma_excuse" = x
; then
27680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
27681 $as_echo_n "checking for lzma_code in -llzma... " >&6; }
27682 if ${ac_cv_lib_lzma_lzma_code+:} false
; then :
27683 $as_echo_n "(cached) " >&6
27685 ac_check_lib_save_LIBS
=$LIBS
27686 LIBS
="-llzma $LIBS"
27687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27688 /* end confdefs.h. */
27690 /* Override any GCC internal prototype to avoid an error.
27691 Use char because int might match the return type of a GCC
27692 builtin and then its argument prototype would still apply. */
27700 return lzma_code ();
27705 if ac_fn_c_try_link
"$LINENO"; then :
27706 ac_cv_lib_lzma_lzma_code
=yes
27708 ac_cv_lib_lzma_lzma_code
=no
27710 rm -f core conftest.err conftest.
$ac_objext \
27711 conftest
$ac_exeext conftest.
$ac_ext
27712 LIBS
=$ac_check_lib_save_LIBS
27714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
27715 $as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
27716 if test "x$ac_cv_lib_lzma_lzma_code" = xyes
; then :
27717 cat >>confdefs.h
<<_ACEOF
27718 #define HAVE_LIBLZMA 1
27721 LIBS
="-llzma $LIBS"
27724 liblzma_excuse
="need lzma library"
27728 if test x
"$liblzma_excuse" = x
; then
27729 ac_fn_c_check_header_mongrel
"$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
27730 if test "x$ac_cv_header_lzma_h" = xyes
; then :
27733 liblzma_excuse
="need lzma header"
27739 if test x
"$enable_liblzma" = xyes
&& test x
"$liblzma_excuse" != x
; then
27740 as_fn_error $?
"liblzma support was explicitly requested but requirements are not satisfied ($liblzma_excuse)" "$LINENO" 5
27744 if test x
"$liblzma_excuse" = x
; then
27747 $as_echo "#define USE_LIBLZMA 1" >>confdefs.h
27753 # Check whether --enable-libzfs was given.
27754 if test "${enable_libzfs+set}" = set; then :
27755 enableval
=$enable_libzfs;
27758 if test x
"$enable_libzfs" = xno
; then
27759 libzfs_excuse
="explicitly disabled"
27762 if test x
"$libzfs_excuse" = x
; then
27763 # Only check for system headers if libzfs support has not been disabled.
27764 for ac_header
in libzfs.h libnvpair.h
27766 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27767 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27768 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
27769 cat >>confdefs.h
<<_ACEOF
27770 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27779 if test x
"$libzfs_excuse" = x
; then
27780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzfs_init in -lzfs" >&5
27781 $as_echo_n "checking for libzfs_init in -lzfs... " >&6; }
27782 if ${ac_cv_lib_zfs_libzfs_init+:} false
; then :
27783 $as_echo_n "(cached) " >&6
27785 ac_check_lib_save_LIBS
=$LIBS
27787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27788 /* end confdefs.h. */
27790 /* Override any GCC internal prototype to avoid an error.
27791 Use char because int might match the return type of a GCC
27792 builtin and then its argument prototype would still apply. */
27796 char libzfs_init ();
27800 return libzfs_init ();
27805 if ac_fn_c_try_link
"$LINENO"; then :
27806 ac_cv_lib_zfs_libzfs_init
=yes
27808 ac_cv_lib_zfs_libzfs_init
=no
27810 rm -f core conftest.err conftest.
$ac_objext \
27811 conftest
$ac_exeext conftest.
$ac_ext
27812 LIBS
=$ac_check_lib_save_LIBS
27814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zfs_libzfs_init" >&5
27815 $as_echo "$ac_cv_lib_zfs_libzfs_init" >&6; }
27816 if test "x$ac_cv_lib_zfs_libzfs_init" = xyes
; then :
27817 cat >>confdefs.h
<<_ACEOF
27818 #define HAVE_LIBZFS 1
27824 libzfs_excuse
="need zfs library"
27829 if test x
"$libzfs_excuse" = x
; then
27830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_lookup_string in -lnvpair" >&5
27831 $as_echo_n "checking for nvlist_lookup_string in -lnvpair... " >&6; }
27832 if ${ac_cv_lib_nvpair_nvlist_lookup_string+:} false
; then :
27833 $as_echo_n "(cached) " >&6
27835 ac_check_lib_save_LIBS
=$LIBS
27836 LIBS
="-lnvpair $LIBS"
27837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27838 /* end confdefs.h. */
27840 /* Override any GCC internal prototype to avoid an error.
27841 Use char because int might match the return type of a GCC
27842 builtin and then its argument prototype would still apply. */
27846 char nvlist_lookup_string ();
27850 return nvlist_lookup_string ();
27855 if ac_fn_c_try_link
"$LINENO"; then :
27856 ac_cv_lib_nvpair_nvlist_lookup_string
=yes
27858 ac_cv_lib_nvpair_nvlist_lookup_string
=no
27860 rm -f core conftest.err conftest.
$ac_objext \
27861 conftest
$ac_exeext conftest.
$ac_ext
27862 LIBS
=$ac_check_lib_save_LIBS
27864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_lookup_string" >&5
27865 $as_echo "$ac_cv_lib_nvpair_nvlist_lookup_string" >&6; }
27866 if test "x$ac_cv_lib_nvpair_nvlist_lookup_string" = xyes
; then :
27867 cat >>confdefs.h
<<_ACEOF
27868 #define HAVE_LIBNVPAIR 1
27871 LIBS
="-lnvpair $LIBS"
27874 libzfs_excuse
="need nvpair library"
27879 if test x
"$enable_libzfs" = xyes
&& test x
"$libzfs_excuse" != x
; then
27880 as_fn_error $?
"libzfs support was explicitly requested but requirements are not satisfied ($libzfs_excuse)" "$LINENO" 5
27883 if test x
"$libzfs_excuse" = x
; then
27884 # We need both libzfs and libnvpair for a successful build.
27887 $as_echo "#define HAVE_LIBZFS 1" >>confdefs.h
27889 LIBNVPAIR
="-lnvpair"
27891 $as_echo "#define HAVE_LIBNVPAIR 1" >>confdefs.h
27901 if test x
$target_cpu = xi386
-a x
$platform = xqemu
; then :
27902 GRUB_BOOT_MACHINE_LINK_ADDR
=0xffe00
27914 # Check whether --enable-werror was given.
27915 if test "${enable_werror+set}" = set; then :
27916 enableval
=$enable_werror;
27919 if test x
"$enable_werror" != xno
; then
27920 TARGET_CFLAGS
="$TARGET_CFLAGS -Werror"
27921 HOST_CFLAGS
="$HOST_CFLAGS -Werror"
27924 if test "x$grub_cv_cc_target_clang" = xno
; then
27925 TARGET_LDFLAGS_STATIC_LIBGCC
="-static-libgcc"
27927 TARGET_LDFLAGS_STATIC_LIBGCC
=
27930 TARGET_CPP
="$TARGET_CC -E"
27931 TARGET_CCAS
=$TARGET_CC
27933 GRUB_TARGET_CPU
="${target_cpu}"
27934 GRUB_PLATFORM
="${platform}"
27966 # Automake conditionals
27969 if test x
$platform != xnone
; then
27970 COND_real_platform_TRUE
=
27971 COND_real_platform_FALSE
='#'
27973 COND_real_platform_TRUE
='#'
27974 COND_real_platform_FALSE
=
27977 if test x
$platform = xemu
; then
27985 if test x
$grub_cv_cc_target_clang = xyes
; then
27987 COND_clang_FALSE
='#'
27989 COND_clang_TRUE
='#'
27993 if test x
$target_cpu = xi386
-a x
$platform = xpc
; then
27995 COND_i386_pc_FALSE
='#'
27997 COND_i386_pc_TRUE
='#'
27998 COND_i386_pc_FALSE
=
28001 if test x
$target_cpu = xi386
-a x
$platform = xefi
; then
28002 COND_i386_efi_TRUE
=
28003 COND_i386_efi_FALSE
='#'
28005 COND_i386_efi_TRUE
='#'
28006 COND_i386_efi_FALSE
=
28009 if test x
$target_cpu = xia64
-a x
$platform = xefi
; then
28010 COND_ia64_efi_TRUE
=
28011 COND_ia64_efi_FALSE
='#'
28013 COND_ia64_efi_TRUE
='#'
28014 COND_ia64_efi_FALSE
=
28017 if test x
$target_cpu = xi386
-a x
$platform = xqemu
; then
28018 COND_i386_qemu_TRUE
=
28019 COND_i386_qemu_FALSE
='#'
28021 COND_i386_qemu_TRUE
='#'
28022 COND_i386_qemu_FALSE
=
28025 if test x
$target_cpu = xi386
-a x
$platform = xieee1275
; then
28026 COND_i386_ieee1275_TRUE
=
28027 COND_i386_ieee1275_FALSE
='#'
28029 COND_i386_ieee1275_TRUE
='#'
28030 COND_i386_ieee1275_FALSE
=
28033 if test x
$target_cpu = xi386
-a x
$platform = xcoreboot
; then
28034 COND_i386_coreboot_TRUE
=
28035 COND_i386_coreboot_FALSE
='#'
28037 COND_i386_coreboot_TRUE
='#'
28038 COND_i386_coreboot_FALSE
=
28041 if test x
$target_cpu = xi386
-a x
$platform = xmultiboot
; then
28042 COND_i386_multiboot_TRUE
=
28043 COND_i386_multiboot_FALSE
='#'
28045 COND_i386_multiboot_TRUE
='#'
28046 COND_i386_multiboot_FALSE
=
28049 if test x
$target_cpu = xx86_64
-a x
$platform = xefi
; then
28050 COND_x86_64_efi_TRUE
=
28051 COND_x86_64_efi_FALSE
='#'
28053 COND_x86_64_efi_TRUE
='#'
28054 COND_x86_64_efi_FALSE
=
28057 if test x
$target_cpu = xi386
-a x
$platform = xxen
; then
28058 COND_i386_xen_TRUE
=
28059 COND_i386_xen_FALSE
='#'
28061 COND_i386_xen_TRUE
='#'
28062 COND_i386_xen_FALSE
=
28065 if test x
$target_cpu = xx86_64
-a x
$platform = xxen
; then
28066 COND_x86_64_xen_TRUE
=
28067 COND_x86_64_xen_FALSE
='#'
28069 COND_x86_64_xen_TRUE
='#'
28070 COND_x86_64_xen_FALSE
=
28073 if test x
$target_cpu = xmipsel
-a x
$platform = xloongson
; then
28074 COND_mips_loongson_TRUE
=
28075 COND_mips_loongson_FALSE
='#'
28077 COND_mips_loongson_TRUE
='#'
28078 COND_mips_loongson_FALSE
=
28081 if test "(" x
$target_cpu = xmips
-o x
$target_cpu = xmipsel
")" -a x
$platform = xqemu_mips
; then
28082 COND_mips_qemu_mips_TRUE
=
28083 COND_mips_qemu_mips_FALSE
='#'
28085 COND_mips_qemu_mips_TRUE
='#'
28086 COND_mips_qemu_mips_FALSE
=
28089 if test "(" x
$target_cpu = xmips
-o x
$target_cpu = xmipsel
")" -a x
$platform = xarc
; then
28090 COND_mips_arc_TRUE
=
28091 COND_mips_arc_FALSE
='#'
28093 COND_mips_arc_TRUE
='#'
28094 COND_mips_arc_FALSE
=
28097 if test x
$target_cpu = xsparc64
-a x
$platform = xieee1275
; then
28098 COND_sparc64_ieee1275_TRUE
=
28099 COND_sparc64_ieee1275_FALSE
='#'
28101 COND_sparc64_ieee1275_TRUE
='#'
28102 COND_sparc64_ieee1275_FALSE
=
28105 if test x
$target_cpu = xsparc64
-a x
$platform = xemu
; then
28106 COND_sparc64_emu_TRUE
=
28107 COND_sparc64_emu_FALSE
='#'
28109 COND_sparc64_emu_TRUE
='#'
28110 COND_sparc64_emu_FALSE
=
28113 if test x
$target_cpu = xpowerpc
-a x
$platform = xieee1275
; then
28114 COND_powerpc_ieee1275_TRUE
=
28115 COND_powerpc_ieee1275_FALSE
='#'
28117 COND_powerpc_ieee1275_TRUE
='#'
28118 COND_powerpc_ieee1275_FALSE
=
28121 if test x
$target_cpu = xmips
-o x
$target_cpu = xmipsel
; then
28123 COND_mips_FALSE
='#'
28129 if test x
$target_cpu = xmipsel
; then
28131 COND_mipsel_FALSE
='#'
28133 COND_mipsel_TRUE
='#'
28137 if test x
$target_cpu = xmips
; then
28139 COND_mipseb_FALSE
='#'
28141 COND_mipseb_TRUE
='#'
28145 if test x
$target_cpu = xarm
; then
28153 if test x
$target_cpu = xarm
-a x
$platform = xuboot
; then
28154 COND_arm_uboot_TRUE
=
28155 COND_arm_uboot_FALSE
='#'
28157 COND_arm_uboot_TRUE
='#'
28158 COND_arm_uboot_FALSE
=
28161 if test x
$target_cpu = xarm
-a x
$platform = xefi
; then
28163 COND_arm_efi_FALSE
='#'
28165 COND_arm_efi_TRUE
='#'
28166 COND_arm_efi_FALSE
=
28169 if test x
$target_cpu = xarm64
; then
28171 COND_arm64_FALSE
='#'
28173 COND_arm64_TRUE
='#'
28177 if test x
$target_cpu = xarm64
-a x
$platform = xefi
; then
28178 COND_arm64_efi_TRUE
=
28179 COND_arm64_efi_FALSE
='#'
28181 COND_arm64_efi_TRUE
='#'
28182 COND_arm64_efi_FALSE
=
28186 if test x
$host_kernel = xhurd
; then
28187 COND_HOST_HURD_TRUE
=
28188 COND_HOST_HURD_FALSE
='#'
28190 COND_HOST_HURD_TRUE
='#'
28191 COND_HOST_HURD_FALSE
=
28194 if test x
$host_kernel = xlinux
; then
28195 COND_HOST_LINUX_TRUE
=
28196 COND_HOST_LINUX_FALSE
='#'
28198 COND_HOST_LINUX_TRUE
='#'
28199 COND_HOST_LINUX_FALSE
=
28202 if test x
$host_kernel = xnetbsd
; then
28203 COND_HOST_NETBSD_TRUE
=
28204 COND_HOST_NETBSD_FALSE
='#'
28206 COND_HOST_NETBSD_TRUE
='#'
28207 COND_HOST_NETBSD_FALSE
=
28210 if test x
$host_kernel = xwindows
; then
28211 COND_HOST_WINDOWS_TRUE
=
28212 COND_HOST_WINDOWS_FALSE
='#'
28214 COND_HOST_WINDOWS_TRUE
='#'
28215 COND_HOST_WINDOWS_FALSE
=
28218 if test x
$host_kernel = xkfreebsd
; then
28219 COND_HOST_KFREEBSD_TRUE
=
28220 COND_HOST_KFREEBSD_FALSE
='#'
28222 COND_HOST_KFREEBSD_TRUE
='#'
28223 COND_HOST_KFREEBSD_FALSE
=
28226 if test x
$host_kernel = xxnu
; then
28227 COND_HOST_XNU_TRUE
=
28228 COND_HOST_XNU_FALSE
='#'
28230 COND_HOST_XNU_TRUE
='#'
28231 COND_HOST_XNU_FALSE
=
28234 if test x
$host_kernel = xillumos
; then
28235 COND_HOST_ILLUMOS_TRUE
=
28236 COND_HOST_ILLUMOS_FALSE
='#'
28238 COND_HOST_ILLUMOS_TRUE
='#'
28239 COND_HOST_ILLUMOS_FALSE
=
28243 if test x
$cross_compiling = xno
-a x
$HELP2MAN != x
; then
28244 COND_MAN_PAGES_TRUE
=
28245 COND_MAN_PAGES_FALSE
='#'
28247 COND_MAN_PAGES_TRUE
='#'
28248 COND_MAN_PAGES_FALSE
=
28251 if test x
$enable_grub_emu_usb = xyes
; then
28252 COND_GRUB_EMU_USB_TRUE
=
28253 COND_GRUB_EMU_USB_FALSE
='#'
28255 COND_GRUB_EMU_USB_TRUE
='#'
28256 COND_GRUB_EMU_USB_FALSE
=
28259 if test x
$enable_grub_emu_sdl = xyes
; then
28260 COND_GRUB_EMU_SDL_TRUE
=
28261 COND_GRUB_EMU_SDL_FALSE
='#'
28263 COND_GRUB_EMU_SDL_TRUE
='#'
28264 COND_GRUB_EMU_SDL_FALSE
=
28267 if test x
$enable_grub_emu_pci = xyes
; then
28268 COND_GRUB_EMU_PCI_TRUE
=
28269 COND_GRUB_EMU_PCI_FALSE
='#'
28271 COND_GRUB_EMU_PCI_TRUE
='#'
28272 COND_GRUB_EMU_PCI_FALSE
=
28275 if test x
$enable_grub_mkfont = xyes
; then
28276 COND_GRUB_MKFONT_TRUE
=
28277 COND_GRUB_MKFONT_FALSE
='#'
28279 COND_GRUB_MKFONT_TRUE
='#'
28280 COND_GRUB_MKFONT_FALSE
=
28283 if test x
$enable_grub_mount = xyes
; then
28284 COND_GRUB_MOUNT_TRUE
=
28285 COND_GRUB_MOUNT_FALSE
='#'
28287 COND_GRUB_MOUNT_TRUE
='#'
28288 COND_GRUB_MOUNT_FALSE
=
28291 if test x
$FONT_SOURCE != x
; then
28292 COND_HAVE_FONT_SOURCE_TRUE
=
28293 COND_HAVE_FONT_SOURCE_FALSE
='#'
28295 COND_HAVE_FONT_SOURCE_TRUE
='#'
28296 COND_HAVE_FONT_SOURCE_FALSE
=
28299 if test x
$FONT_SOURCE != x
; then
28305 if test x
$TARGET_APPLE_LINKER = x1
; then
28306 COND_APPLE_LINKER_TRUE
=
28307 COND_APPLE_LINKER_FALSE
='#'
28309 COND_APPLE_LINKER_TRUE
='#'
28310 COND_APPLE_LINKER_FALSE
=
28313 if test x
$enable_efiemu = xyes
; then
28314 COND_ENABLE_EFIEMU_TRUE
=
28315 COND_ENABLE_EFIEMU_FALSE
='#'
28317 COND_ENABLE_EFIEMU_TRUE
='#'
28318 COND_ENABLE_EFIEMU_FALSE
=
28321 if test x
$DISK_CACHE_STATS = x1
; then
28322 COND_ENABLE_CACHE_STATS_TRUE
=
28323 COND_ENABLE_CACHE_STATS_FALSE
='#'
28325 COND_ENABLE_CACHE_STATS_TRUE
='#'
28326 COND_ENABLE_CACHE_STATS_FALSE
=
28329 if test x
$BOOT_TIME_STATS = x1
; then
28330 COND_ENABLE_BOOT_TIME_STATS_TRUE
=
28331 COND_ENABLE_BOOT_TIME_STATS_FALSE
='#'
28333 COND_ENABLE_BOOT_TIME_STATS_TRUE
='#'
28334 COND_ENABLE_BOOT_TIME_STATS_FALSE
=
28338 if test x
$HAVE_CXX = xyes
; then
28339 COND_HAVE_CXX_TRUE
=
28340 COND_HAVE_CXX_FALSE
='#'
28342 COND_HAVE_CXX_TRUE
='#'
28343 COND_HAVE_CXX_FALSE
=
28347 if test x
$HAVE_ASM_USCORE = x1
; then
28348 COND_HAVE_ASM_USCORE_TRUE
=
28349 COND_HAVE_ASM_USCORE_FALSE
='#'
28351 COND_HAVE_ASM_USCORE_TRUE
='#'
28352 COND_HAVE_ASM_USCORE_FALSE
=
28355 if test "x$starfield_excuse" = x
; then
28356 COND_STARFIELD_TRUE
=
28357 COND_STARFIELD_FALSE
='#'
28359 COND_STARFIELD_TRUE
='#'
28360 COND_STARFIELD_FALSE
=
28363 if test "x$have_exec" = xy
; then
28364 COND_HAVE_EXEC_TRUE
=
28365 COND_HAVE_EXEC_FALSE
='#'
28367 COND_HAVE_EXEC_TRUE
='#'
28368 COND_HAVE_EXEC_FALSE
=
28372 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
28373 test "x$exec_prefix" = xNONE
&& exec_prefix
="${prefix}"
28374 datarootdir
="$(eval echo "$datarootdir")"
28375 grub_libdir
="$(eval echo "$libdir")"
28376 grub_localedir
="$(eval echo "$localedir")"
28377 grub_datadir
="$(eval echo "$datadir")"
28378 grub_sysconfdir
="$(eval echo "$sysconfdir")"
28380 cat >>confdefs.h
<<_ACEOF
28381 #define LOCALEDIR "$grub_localedir"
28385 cat >>confdefs.h
<<_ACEOF
28386 #define GRUB_LIBDIR "$grub_libdir"
28390 cat >>confdefs.h
<<_ACEOF
28391 #define GRUB_DATADIR "$grub_datadir"
28395 cat >>confdefs.h
<<_ACEOF
28396 #define GRUB_SYSCONFDIR "$grub_sysconfdir"
28402 if test "$platform" != none
; then
28403 cpudir
="${target_cpu}"
28404 if test x
${cpudir} = xmipsel
; then
28408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s can handle directories properly" >&5
28409 $as_echo_n "checking whether ln -s can handle directories properly... " >&6; }
28410 mkdir testdir
2>/dev
/null
28412 [\\/$
]* | ?
:[\\/]* ) reldir
=$srcdir/include
/grub
/util
;;
28413 *) reldir
=..
/$srcdir/include
/grub
/util
;;
28415 if ln -s $reldir testdir
/util
2>/dev
/null
&& rm -f testdir
/util
2>/dev
/null
; then
28416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28417 $as_echo "yes" >&6; }
28421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28422 $as_echo "no" >&6; }
28426 if test x
"$link_dir" = xyes
; then
28427 ac_config_links
="$ac_config_links include/grub/cpu:include/grub/$cpudir"
28429 if test "$platform" != emu
; then
28430 ac_config_links
="$ac_config_links include/grub/machine:include/grub/$cpudir/$platform"
28434 mkdir
-p include
/grub
2>/dev
/null
28435 rm -rf include
/grub
/cpu
28436 cp -rp $srcdir/include
/grub
/$cpudir include
/grub
/cpu
2>/dev
/null
28437 if test "$platform" != emu
; then
28438 rm -rf include
/grub
/machine
28439 cp -rp $srcdir/include
/grub
/$cpudir/$platform include
/grub
/machine
2>/dev
/null
28443 # Just enough to stop the compiler failing with -I$(srcdir)/include.
28444 mkdir
-p include
2>/dev
/null
28445 rm -rf include
/grub
/cpu include
/grub
/machine
28448 ac_config_files
="$ac_config_files Makefile"
28450 ac_config_files
="$ac_config_files grub-core/Makefile"
28452 ac_config_files
="$ac_config_files grub-core/gnulib/Makefile"
28454 ac_config_files
="$ac_config_files po/Makefile.in"
28456 ac_config_files
="$ac_config_files docs/Makefile"
28458 ac_config_files
="$ac_config_files util/bash-completion.d/Makefile"
28460 ac_config_files
="$ac_config_files stamp-h"
28462 ac_config_files
="$ac_config_files config.h"
28465 cat >confcache
<<\_ACEOF
28466 # This file is a shell script that caches the results of configure
28467 # tests run on this system so they can be shared between configure
28468 # scripts and configure runs, see configure's option --config-cache.
28469 # It is not useful on other systems. If it contains results you don't
28470 # want to keep, you may remove or edit it.
28472 # config.status only pays attention to the cache file if you give it
28473 # the --recheck option to rerun configure.
28475 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28476 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28477 # following values.
28481 # The following way of writing the cache mishandles newlines in values,
28482 # but we know of no workaround that is simple, portable, and efficient.
28483 # So, we kill variables containing newlines.
28484 # Ultrix sh set writes to stderr and can't be redirected directly,
28485 # and sets the high bit in the cache file unless we assign to the vars.
28487 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28488 eval ac_val
=\$
$ac_var
28492 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28493 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28496 _ | IFS | as_nl
) ;; #(
28497 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
28498 *) { eval $ac_var=; unset $ac_var;} ;;
28504 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28505 *${as_nl}ac_space
=\
*)
28506 # `set' does not quote correctly, so add quotes: double-quote
28507 # substitution turns \\\\ into \\, and sed turns \\ into \.
28510 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28513 # `set' quotes correctly as required by POSIX, so do not add quotes.
28514 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28523 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28525 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28527 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
28528 if test -w "$cache_file"; then
28529 if test "x$cache_file" != "x/dev/null"; then
28530 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28531 $as_echo "$as_me: updating cache $cache_file" >&6;}
28532 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
28533 cat confcache
>"$cache_file"
28535 case $cache_file in #(
28537 mv -f confcache
"$cache_file"$$
&&
28538 mv -f "$cache_file"$$
"$cache_file" ;; #(
28540 mv -f confcache
"$cache_file" ;;
28545 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28546 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28551 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
28552 # Let make expand exec_prefix.
28553 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
28555 DEFS
=-DHAVE_CONFIG_H
28560 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
28561 # 1. Remove the extension, and $U if already installed.
28562 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
28563 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
28564 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28565 # will be set to the directory where LIBOBJS objects are built.
28566 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28567 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
28569 LIBOBJS
=$ac_libobjs
28571 LTLIBOBJS
=$ac_ltlibobjs
28574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
28575 $as_echo_n "checking that generated files are newer than configure... " >&6; }
28576 if test -n "$am_sleep_pid"; then
28577 # Hide warnings about reused PIDs.
28578 wait $am_sleep_pid 2>/dev
/null
28580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
28581 $as_echo "done" >&6; }
28582 if test -n "$EXEEXT"; then
28584 am__EXEEXT_FALSE
='#'
28586 am__EXEEXT_TRUE
='#'
28590 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28591 as_fn_error $?
"conditional \"AMDEP\" was never defined.
28592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28594 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28595 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
28596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28598 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28599 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
28600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28602 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28603 as_fn_error $?
"conditional \"am__fastdepCXX\" was never defined.
28604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28606 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
28607 as_fn_error $?
"conditional \"am__fastdepCCAS\" was never defined.
28608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28611 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
28612 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
28613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28615 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
28616 as_fn_error $?
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
28617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28619 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
28620 as_fn_error $?
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
28621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28623 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
28624 as_fn_error $?
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
28625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28627 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
28628 as_fn_error $?
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
28629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28631 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
28632 as_fn_error $?
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
28633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28635 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
28636 as_fn_error $?
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
28637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28639 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
28640 as_fn_error $?
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
28641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28643 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
28644 as_fn_error $?
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
28645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28647 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
28648 as_fn_error $?
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
28649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28651 if test -z "${GL_GENERATE_SYSEXITS_H_TRUE}" && test -z "${GL_GENERATE_SYSEXITS_H_FALSE}"; then
28652 as_fn_error $?
"conditional \"GL_GENERATE_SYSEXITS_H\" was never defined.
28653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28655 if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then
28656 as_fn_error $?
"conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
28657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28663 if test -n "$gl_LIBOBJS"; then
28664 # Remove the extension.
28665 sed_drop_objext
='s/\.o$//;s/\.obj$//'
28666 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
28667 gl_libobjs
="$gl_libobjs $i.$ac_objext"
28668 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
28671 gl_LIBOBJS
=$gl_libobjs
28673 gl_LTLIBOBJS
=$gl_ltlibobjs
28679 if test -n "$gltests_LIBOBJS"; then
28680 # Remove the extension.
28681 sed_drop_objext
='s/\.o$//;s/\.obj$//'
28682 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
28683 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
28684 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
28687 gltests_LIBOBJS
=$gltests_libobjs
28689 gltests_LTLIBOBJS
=$gltests_ltlibobjs
28692 if test -z "${COND_real_platform_TRUE}" && test -z "${COND_real_platform_FALSE}"; then
28693 as_fn_error $?
"conditional \"COND_real_platform\" was never defined.
28694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28696 if test -z "${COND_emu_TRUE}" && test -z "${COND_emu_FALSE}"; then
28697 as_fn_error $?
"conditional \"COND_emu\" was never defined.
28698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28700 if test -z "${COND_clang_TRUE}" && test -z "${COND_clang_FALSE}"; then
28701 as_fn_error $?
"conditional \"COND_clang\" was never defined.
28702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28704 if test -z "${COND_i386_pc_TRUE}" && test -z "${COND_i386_pc_FALSE}"; then
28705 as_fn_error $?
"conditional \"COND_i386_pc\" was never defined.
28706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28708 if test -z "${COND_i386_efi_TRUE}" && test -z "${COND_i386_efi_FALSE}"; then
28709 as_fn_error $?
"conditional \"COND_i386_efi\" was never defined.
28710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28712 if test -z "${COND_ia64_efi_TRUE}" && test -z "${COND_ia64_efi_FALSE}"; then
28713 as_fn_error $?
"conditional \"COND_ia64_efi\" was never defined.
28714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28716 if test -z "${COND_i386_qemu_TRUE}" && test -z "${COND_i386_qemu_FALSE}"; then
28717 as_fn_error $?
"conditional \"COND_i386_qemu\" was never defined.
28718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28720 if test -z "${COND_i386_ieee1275_TRUE}" && test -z "${COND_i386_ieee1275_FALSE}"; then
28721 as_fn_error $?
"conditional \"COND_i386_ieee1275\" was never defined.
28722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28724 if test -z "${COND_i386_coreboot_TRUE}" && test -z "${COND_i386_coreboot_FALSE}"; then
28725 as_fn_error $?
"conditional \"COND_i386_coreboot\" was never defined.
28726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28728 if test -z "${COND_i386_multiboot_TRUE}" && test -z "${COND_i386_multiboot_FALSE}"; then
28729 as_fn_error $?
"conditional \"COND_i386_multiboot\" was never defined.
28730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28732 if test -z "${COND_x86_64_efi_TRUE}" && test -z "${COND_x86_64_efi_FALSE}"; then
28733 as_fn_error $?
"conditional \"COND_x86_64_efi\" was never defined.
28734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28736 if test -z "${COND_i386_xen_TRUE}" && test -z "${COND_i386_xen_FALSE}"; then
28737 as_fn_error $?
"conditional \"COND_i386_xen\" was never defined.
28738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28740 if test -z "${COND_x86_64_xen_TRUE}" && test -z "${COND_x86_64_xen_FALSE}"; then
28741 as_fn_error $?
"conditional \"COND_x86_64_xen\" was never defined.
28742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28744 if test -z "${COND_mips_loongson_TRUE}" && test -z "${COND_mips_loongson_FALSE}"; then
28745 as_fn_error $?
"conditional \"COND_mips_loongson\" was never defined.
28746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28748 if test -z "${COND_mips_qemu_mips_TRUE}" && test -z "${COND_mips_qemu_mips_FALSE}"; then
28749 as_fn_error $?
"conditional \"COND_mips_qemu_mips\" was never defined.
28750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28752 if test -z "${COND_mips_arc_TRUE}" && test -z "${COND_mips_arc_FALSE}"; then
28753 as_fn_error $?
"conditional \"COND_mips_arc\" was never defined.
28754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28756 if test -z "${COND_sparc64_ieee1275_TRUE}" && test -z "${COND_sparc64_ieee1275_FALSE}"; then
28757 as_fn_error $?
"conditional \"COND_sparc64_ieee1275\" was never defined.
28758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28760 if test -z "${COND_sparc64_emu_TRUE}" && test -z "${COND_sparc64_emu_FALSE}"; then
28761 as_fn_error $?
"conditional \"COND_sparc64_emu\" was never defined.
28762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28764 if test -z "${COND_powerpc_ieee1275_TRUE}" && test -z "${COND_powerpc_ieee1275_FALSE}"; then
28765 as_fn_error $?
"conditional \"COND_powerpc_ieee1275\" was never defined.
28766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28768 if test -z "${COND_mips_TRUE}" && test -z "${COND_mips_FALSE}"; then
28769 as_fn_error $?
"conditional \"COND_mips\" was never defined.
28770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28772 if test -z "${COND_mipsel_TRUE}" && test -z "${COND_mipsel_FALSE}"; then
28773 as_fn_error $?
"conditional \"COND_mipsel\" was never defined.
28774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28776 if test -z "${COND_mipseb_TRUE}" && test -z "${COND_mipseb_FALSE}"; then
28777 as_fn_error $?
"conditional \"COND_mipseb\" was never defined.
28778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28780 if test -z "${COND_arm_TRUE}" && test -z "${COND_arm_FALSE}"; then
28781 as_fn_error $?
"conditional \"COND_arm\" was never defined.
28782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28784 if test -z "${COND_arm_uboot_TRUE}" && test -z "${COND_arm_uboot_FALSE}"; then
28785 as_fn_error $?
"conditional \"COND_arm_uboot\" was never defined.
28786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28788 if test -z "${COND_arm_efi_TRUE}" && test -z "${COND_arm_efi_FALSE}"; then
28789 as_fn_error $?
"conditional \"COND_arm_efi\" was never defined.
28790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28792 if test -z "${COND_arm64_TRUE}" && test -z "${COND_arm64_FALSE}"; then
28793 as_fn_error $?
"conditional \"COND_arm64\" was never defined.
28794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28796 if test -z "${COND_arm64_efi_TRUE}" && test -z "${COND_arm64_efi_FALSE}"; then
28797 as_fn_error $?
"conditional \"COND_arm64_efi\" was never defined.
28798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28800 if test -z "${COND_HOST_HURD_TRUE}" && test -z "${COND_HOST_HURD_FALSE}"; then
28801 as_fn_error $?
"conditional \"COND_HOST_HURD\" was never defined.
28802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28804 if test -z "${COND_HOST_LINUX_TRUE}" && test -z "${COND_HOST_LINUX_FALSE}"; then
28805 as_fn_error $?
"conditional \"COND_HOST_LINUX\" was never defined.
28806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28808 if test -z "${COND_HOST_NETBSD_TRUE}" && test -z "${COND_HOST_NETBSD_FALSE}"; then
28809 as_fn_error $?
"conditional \"COND_HOST_NETBSD\" was never defined.
28810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28812 if test -z "${COND_HOST_WINDOWS_TRUE}" && test -z "${COND_HOST_WINDOWS_FALSE}"; then
28813 as_fn_error $?
"conditional \"COND_HOST_WINDOWS\" was never defined.
28814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28816 if test -z "${COND_HOST_KFREEBSD_TRUE}" && test -z "${COND_HOST_KFREEBSD_FALSE}"; then
28817 as_fn_error $?
"conditional \"COND_HOST_KFREEBSD\" was never defined.
28818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28820 if test -z "${COND_HOST_XNU_TRUE}" && test -z "${COND_HOST_XNU_FALSE}"; then
28821 as_fn_error $?
"conditional \"COND_HOST_XNU\" was never defined.
28822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28824 if test -z "${COND_HOST_ILLUMOS_TRUE}" && test -z "${COND_HOST_ILLUMOS_FALSE}"; then
28825 as_fn_error $?
"conditional \"COND_HOST_ILLUMOS\" was never defined.
28826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28828 if test -z "${COND_MAN_PAGES_TRUE}" && test -z "${COND_MAN_PAGES_FALSE}"; then
28829 as_fn_error $?
"conditional \"COND_MAN_PAGES\" was never defined.
28830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28832 if test -z "${COND_GRUB_EMU_USB_TRUE}" && test -z "${COND_GRUB_EMU_USB_FALSE}"; then
28833 as_fn_error $?
"conditional \"COND_GRUB_EMU_USB\" was never defined.
28834 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28836 if test -z "${COND_GRUB_EMU_SDL_TRUE}" && test -z "${COND_GRUB_EMU_SDL_FALSE}"; then
28837 as_fn_error $?
"conditional \"COND_GRUB_EMU_SDL\" was never defined.
28838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28840 if test -z "${COND_GRUB_EMU_PCI_TRUE}" && test -z "${COND_GRUB_EMU_PCI_FALSE}"; then
28841 as_fn_error $?
"conditional \"COND_GRUB_EMU_PCI\" was never defined.
28842 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28844 if test -z "${COND_GRUB_MKFONT_TRUE}" && test -z "${COND_GRUB_MKFONT_FALSE}"; then
28845 as_fn_error $?
"conditional \"COND_GRUB_MKFONT\" was never defined.
28846 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28848 if test -z "${COND_GRUB_MOUNT_TRUE}" && test -z "${COND_GRUB_MOUNT_FALSE}"; then
28849 as_fn_error $?
"conditional \"COND_GRUB_MOUNT\" was never defined.
28850 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28852 if test -z "${COND_HAVE_FONT_SOURCE_TRUE}" && test -z "${COND_HAVE_FONT_SOURCE_FALSE}"; then
28853 as_fn_error $?
"conditional \"COND_HAVE_FONT_SOURCE\" was never defined.
28854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28856 if test -z "${COND_APPLE_LINKER_TRUE}" && test -z "${COND_APPLE_LINKER_FALSE}"; then
28857 as_fn_error $?
"conditional \"COND_APPLE_LINKER\" was never defined.
28858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28860 if test -z "${COND_ENABLE_EFIEMU_TRUE}" && test -z "${COND_ENABLE_EFIEMU_FALSE}"; then
28861 as_fn_error $?
"conditional \"COND_ENABLE_EFIEMU\" was never defined.
28862 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28864 if test -z "${COND_ENABLE_CACHE_STATS_TRUE}" && test -z "${COND_ENABLE_CACHE_STATS_FALSE}"; then
28865 as_fn_error $?
"conditional \"COND_ENABLE_CACHE_STATS\" was never defined.
28866 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28868 if test -z "${COND_ENABLE_BOOT_TIME_STATS_TRUE}" && test -z "${COND_ENABLE_BOOT_TIME_STATS_FALSE}"; then
28869 as_fn_error $?
"conditional \"COND_ENABLE_BOOT_TIME_STATS\" was never defined.
28870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28872 if test -z "${COND_HAVE_CXX_TRUE}" && test -z "${COND_HAVE_CXX_FALSE}"; then
28873 as_fn_error $?
"conditional \"COND_HAVE_CXX\" was never defined.
28874 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28876 if test -z "${COND_HAVE_ASM_USCORE_TRUE}" && test -z "${COND_HAVE_ASM_USCORE_FALSE}"; then
28877 as_fn_error $?
"conditional \"COND_HAVE_ASM_USCORE\" was never defined.
28878 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28880 if test -z "${COND_STARFIELD_TRUE}" && test -z "${COND_STARFIELD_FALSE}"; then
28881 as_fn_error $?
"conditional \"COND_STARFIELD\" was never defined.
28882 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28884 if test -z "${COND_HAVE_EXEC_TRUE}" && test -z "${COND_HAVE_EXEC_FALSE}"; then
28885 as_fn_error $?
"conditional \"COND_HAVE_EXEC\" was never defined.
28886 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28889 : "${CONFIG_STATUS=./config.status}"
28891 ac_clean_files_save
=$ac_clean_files
28892 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
28893 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28894 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28896 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28898 # Generated by $as_me.
28899 # Run this file to recreate the current configuration.
28900 # Compiler output produced by configure, useful for debugging
28901 # configure, is in config.log if it exists.
28904 ac_cs_recheck=false
28907 SHELL=\${CONFIG_SHELL-$SHELL}
28910 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
28911 ## -------------------- ##
28912 ## M4sh Initialization. ##
28913 ## -------------------- ##
28915 # Be more Bourne compatible
28916 DUALCASE
=1; export DUALCASE
# for MKS sh
28917 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
28920 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28921 # is contrary to our usage. Disable this feature.
28922 alias -g '${1+"$@"}'='"$@"'
28923 setopt NO_GLOB_SUBST
28925 case `(set -o) 2>/dev/null` in #(
28937 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28938 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28939 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28940 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28941 # Prefer a ksh shell builtin over an external printf program on Solaris,
28942 # but without wasting forks for bash or zsh.
28943 if test -z "$BASH_VERSION$ZSH_VERSION" \
28944 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28945 as_echo='print
-r --'
28946 as_echo_n='print
-rn --'
28947 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28948 as_echo='printf %s
\n'
28949 as_echo_n='printf %s
'
28951 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28952 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
28953 as_echo_n='/usr
/ucb
/echo -n'
28955 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28956 as_echo_n_body='eval
28960 expr "X$arg" : "X\\(.*\\)$as_nl";
28961 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28963 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
28965 export as_echo_n_body
28966 as_echo_n='sh
-c $as_echo_n_body as_echo
'
28968 export as_echo_body
28969 as_echo='sh
-c $as_echo_body as_echo
'
28972 # The user is always right.
28973 if test "${PATH_SEPARATOR+set}" != set; then
28975 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28976 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28983 # We need space, tab and new line, in precisely that order. Quoting is
28984 # there to prevent editors from complaining about space-tab.
28985 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28986 # splitting by setting IFS to empty value.)
28989 # Find who we are. Look in the path if we contain no directory separator.
28992 *[\\/]* ) as_myself=$0 ;;
28993 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28994 for as_dir in $PATH
28997 test -z "$as_dir" && as_dir=.
28998 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29004 # We did not find ourselves, most probably we were run as `sh COMMAND'
29005 # in which case we are not to be found in the path.
29006 if test "x$as_myself" = x
; then
29009 if test ! -f "$as_myself"; then
29010 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29014 # Unset variables that we do not need and which cause bugs (e.g. in
29015 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29016 # suppresses any "Segmentation fault" message there. '((' could
29017 # trigger a bug in pdksh 5.2.14.
29018 for as_var
in BASH_ENV ENV MAIL MAILPATH
29019 do eval test x\
${$as_var+set} = xset \
29020 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
29033 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
29036 # as_fn_error STATUS ERROR [LINENO LOG_FD]
29037 # ----------------------------------------
29038 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29039 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29040 # script with STATUS, using 1 if that was 0.
29043 as_status
=$1; test $as_status -eq 0 && as_status
=1
29045 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
29046 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
29048 $as_echo "$as_me: error: $2" >&2
29049 as_fn_exit
$as_status
29053 # as_fn_set_status STATUS
29054 # -----------------------
29055 # Set $? to STATUS, without forking.
29056 as_fn_set_status
()
29059 } # as_fn_set_status
29061 # as_fn_exit STATUS
29062 # -----------------
29063 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29067 as_fn_set_status
$1
29073 # Portably unset VAR.
29076 { eval $1=; unset $1;}
29078 as_unset
=as_fn_unset
29079 # as_fn_append VAR VALUE
29080 # ----------------------
29081 # Append the text in VALUE to the end of the definition contained in VAR. Take
29082 # advantage of any shell optimizations that allow amortized linear growth over
29083 # repeated appends, instead of the typical quadratic growth present in naive
29085 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
29086 eval 'as_fn_append ()
29097 # as_fn_arith ARG...
29098 # ------------------
29099 # Perform arithmetic evaluation on the ARGs, and store the result in the
29100 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29101 # must be portable across $(()) and expr.
29102 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
29103 eval 'as_fn_arith ()
29110 as_val
=`expr "$@" || test $? -eq 1`
29115 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29116 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29122 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29123 as_basename
=basename
29128 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
29134 as_me
=`$as_basename -- "$0" ||
29135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29136 X"$0" : 'X\(//\)$' \| \
29137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29139 sed '/^.*\/\([^/][^/]*\)\/*$/{
29153 # Avoid depending upon Character Ranges.
29154 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
29155 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29156 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
29157 as_cr_digits
='0123456789'
29158 as_cr_alnum
=$as_cr_Letters$as_cr_digits
29160 ECHO_C
= ECHO_N
= ECHO_T
=
29161 case `echo -n x` in #(((((
29163 case `echo 'xy\c'` in
29164 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
29166 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
29173 rm -f conf$$ conf$$.exe conf$$.
file
29174 if test -d conf$$.dir
; then
29175 rm -f conf$$.dir
/conf$$.
file
29178 mkdir conf$$.dir
2>/dev
/null
29180 if (echo >conf$$.
file) 2>/dev
/null
; then
29181 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
29183 # ... but there are two gotchas:
29184 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29185 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29186 # In both cases, we have to default to `cp -pR'.
29187 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
29189 elif ln conf$$.
file conf$$
2>/dev
/null
; then
29197 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
29198 rmdir conf$$.dir
2>/dev
/null
29203 # Create "$as_dir" as a directory, including parents if necessary.
29208 -*) as_dir
=.
/$as_dir;;
29210 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
29214 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29215 *) as_qdir
=$as_dir;;
29217 as_dirs
="'$as_qdir' $as_dirs"
29218 as_dir
=`$as_dirname -- "$as_dir" ||
29219 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29220 X"$as_dir" : 'X\(//\)[^/]' \| \
29221 X"$as_dir" : 'X\(//\)$' \| \
29222 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29223 $as_echo X"$as_dir" |
29224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29228 /^X\(\/\/\)[^/].*/{
29241 test -d "$as_dir" && break
29243 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
29244 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
29248 if mkdir
-p .
2>/dev
/null
; then
29249 as_mkdir_p
='mkdir -p "$as_dir"'
29251 test -d .
/-p && rmdir .
/-p
29256 # as_fn_executable_p FILE
29257 # -----------------------
29258 # Test if FILE is an executable regular file.
29259 as_fn_executable_p
()
29261 test -f "$1" && test -x "$1"
29262 } # as_fn_executable_p
29263 as_test_x
='test -x'
29264 as_executable_p
=as_fn_executable_p
29266 # Sed expression to map a string onto a valid CPP name.
29267 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29269 # Sed expression to map a string onto a valid variable name.
29270 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29274 ## ----------------------------------- ##
29275 ## Main body of $CONFIG_STATUS script. ##
29276 ## ----------------------------------- ##
29278 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
29280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29281 # Save the log message, to keep $0 and so on meaningful, and to
29282 # report actual input values of CONFIG_FILES etc. instead of their
29283 # values after options handling.
29285 This file was extended by GRUB $as_me 2.02~beta2, which was
29286 generated by GNU Autoconf 2.69. Invocation command line was
29288 CONFIG_FILES = $CONFIG_FILES
29289 CONFIG_HEADERS = $CONFIG_HEADERS
29290 CONFIG_LINKS = $CONFIG_LINKS
29291 CONFIG_COMMANDS = $CONFIG_COMMANDS
29294 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29299 case $ac_config_files in *"
29300 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
29303 case $ac_config_headers in *"
29304 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
29308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29309 # Files that config.status was made for.
29310 config_files="$ac_config_files"
29311 config_headers="$ac_config_headers"
29312 config_links="$ac_config_links"
29313 config_commands="$ac_config_commands"
29317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29319 \`$as_me' instantiates files and other configuration actions
29320 from templates according to the current configuration. Unless the files
29321 and actions are specified as TAGs, all are instantiated by default.
29323 Usage: $0 [OPTION]... [TAG]...
29325 -h, --help print this help, then exit
29326 -V, --version print version number and configuration settings, then exit
29327 --config print configuration, then exit
29328 -q, --quiet, --silent
29329 do not print progress messages
29330 -d, --debug don't remove temporary files
29331 --recheck update $as_me by reconfiguring in the same conditions
29332 --file=FILE[:TEMPLATE]
29333 instantiate the configuration file FILE
29334 --header=FILE[:TEMPLATE]
29335 instantiate the configuration header FILE
29337 Configuration files:
29340 Configuration headers:
29343 Configuration links:
29346 Configuration commands:
29349 Report bugs to <bug-grub@gnu.org>."
29352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29353 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29355 GRUB config.status 2.02~beta2
29356 configured by $0, generated by GNU Autoconf 2.69,
29357 with options \\"\$ac_cs_config\\"
29359 Copyright (C) 2012 Free Software Foundation, Inc.
29360 This config.status script is free software; the Free Software Foundation
29361 gives unlimited permission to copy, distribute and modify it."
29368 test -n "\$AWK" || AWK=awk
29371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29372 # The default lists apply if the user does not specify any file.
29378 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
29379 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
29383 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
29395 # Handling of the options.
29396 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
29398 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
29399 $as_echo "$ac_cs_version"; exit ;;
29400 --config |
--confi |
--conf |
--con |
--co |
--c )
29401 $as_echo "$ac_cs_config"; exit ;;
29402 --debug |
--debu |
--deb |
--de |
--d |
-d )
29404 --file |
--fil |
--fi |
--f )
29407 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29408 '') as_fn_error $?
"missing file argument" ;;
29410 as_fn_append CONFIG_FILES
" '$ac_optarg'"
29411 ac_need_defaults
=false
;;
29412 --header |
--heade |
--head |
--hea )
29415 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29417 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
29418 ac_need_defaults
=false
;;
29420 # Conflict between --help and --header
29421 as_fn_error $?
"ambiguous option: \`$1'
29422 Try \`$0 --help' for more information.";;
29423 --help |
--hel |
-h )
29424 $as_echo "$ac_cs_usage"; exit ;;
29425 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
29426 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
29429 # This is an error.
29430 -*) as_fn_error $?
"unrecognized option: \`$1'
29431 Try \`$0 --help' for more information." ;;
29433 *) as_fn_append ac_config_targets
" $1"
29434 ac_need_defaults
=false
;;
29440 ac_configure_extra_args
=
29442 if $ac_cs_silent; then
29444 ac_configure_extra_args
="$ac_configure_extra_args --silent"
29448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29449 if \$ac_cs_recheck; then
29450 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29452 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29453 CONFIG_SHELL='$SHELL'
29454 export CONFIG_SHELL
29459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29463 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29464 ## Running $as_me. ##
29470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29474 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29475 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
29476 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
29477 # from automake < 1.5.
29478 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
29479 # Capture the value of LINGUAS because we need it to compute CATALOGS.
29480 LINGUAS="${LINGUAS-%UNSET%}"
29485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29487 # Handling of arguments.
29488 for ac_config_target
in $ac_config_targets
29490 case $ac_config_target in
29491 "config-util.h") CONFIG_HEADERS
="$CONFIG_HEADERS config-util.h" ;;
29492 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
29493 "po-directories") CONFIG_COMMANDS
="$CONFIG_COMMANDS po-directories" ;;
29494 "include/grub/cpu") CONFIG_LINKS
="$CONFIG_LINKS include/grub/cpu:include/grub/$cpudir" ;;
29495 "include/grub/machine") CONFIG_LINKS
="$CONFIG_LINKS include/grub/machine:include/grub/$cpudir/$platform" ;;
29496 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
29497 "grub-core/Makefile") CONFIG_FILES
="$CONFIG_FILES grub-core/Makefile" ;;
29498 "grub-core/gnulib/Makefile") CONFIG_FILES
="$CONFIG_FILES grub-core/gnulib/Makefile" ;;
29499 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
29500 "docs/Makefile") CONFIG_FILES
="$CONFIG_FILES docs/Makefile" ;;
29501 "util/bash-completion.d/Makefile") CONFIG_FILES
="$CONFIG_FILES util/bash-completion.d/Makefile" ;;
29502 "stamp-h") CONFIG_FILES
="$CONFIG_FILES stamp-h" ;;
29503 "config.h") CONFIG_FILES
="$CONFIG_FILES config.h" ;;
29505 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29510 # If the user did not use the arguments to specify the items to instantiate,
29511 # then the envvar interface is used. Set only those that are not.
29512 # We use the long form for the default assignment because of an extremely
29513 # bizarre bug on SunOS 4.1.3.
29514 if $ac_need_defaults; then
29515 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
29516 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
29517 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
29518 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
29521 # Have a temporary directory for convenience. Make it in the build tree
29522 # simply because there is no reason against having it here, and in addition,
29523 # creating and moving files from /tmp can sometimes cause problems.
29524 # Hook for its removal unless debugging.
29525 # Note that there is a small window in which the directory will not be cleaned:
29526 # after its creation but before its name has been assigned to `$tmp'.
29530 trap 'exit_status=$?
29531 : "${ac_tmp:=$tmp}"
29532 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
29534 trap 'as_fn_exit 1' 1 2 13 15
29536 # Create a (secure) tmp directory for tmp files.
29539 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29543 tmp
=.
/conf$$
-$RANDOM
29544 (umask 077 && mkdir
"$tmp")
29545 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
29548 # Set up the scripts for CONFIG_FILES section.
29549 # No need to generate them if there are no CONFIG_FILES.
29550 # This happens for instance with `./config.status config.h'.
29551 if test -n "$CONFIG_FILES"; then
29554 ac_cr
=`echo X | tr X '\015'`
29555 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29556 # But we know of no other shell where ac_cr would be empty at this
29557 # point, so we can use a bashism as a fallback.
29558 if test "x$ac_cr" = x
; then
29559 eval ac_cr
=\$
\'\\r
\'
29561 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29562 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29565 ac_cs_awk_cr
=$ac_cr
29568 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
29573 echo "cat >conf$$subs.awk <<_ACEOF" &&
29574 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29576 } >conf$$subs.sh ||
29577 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
29578 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
29580 for ac_last_try in false false false false false :; do
29581 . ./conf$$subs.sh ||
29582 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
29584 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
29585 if test $ac_delim_n = $ac_delim_num; then
29587 elif $ac_last_try; then
29588 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
29590 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29593 rm -f conf$$subs.sh
29595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29596 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
29600 s/^/S["/; s
/!.
*/"]=/
29610 s/\(.\{148\}\)..*/\1/
29612 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
29617 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29624 s/\(.\{148\}\)..*/\1/
29626 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
29630 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29635 ' <conf$$subs.awk | sed '
29640 ' >>$CONFIG_STATUS || ac_write_fail=1
29641 rm -f conf$$subs.awk
29642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29644 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
29645 for (key in S) S_is_set[key] = 1
29651 nfields = split(line, field, "@
")
29653 len = length(field[1])
29654 for (i = 2; i < nfields; i++) {
29656 keylen = length(key)
29657 if (S_is_set[key]) {
29659 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29660 len += length(value) + length(field[++i])
29671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29672 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29673 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
29676 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
29677 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
29680 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
29681 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
29682 # trailing colons and then remove the whole line if VPATH becomes empty
29683 # (actually we leave an empty line to preserve line numbers).
29684 if test "x
$srcdir" = x.; then
29685 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
29703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29704 fi # test -n "$CONFIG_FILES"
29706 # Set up the scripts for CONFIG_HEADERS section.
29707 # No need to generate them if there are no CONFIG_HEADERS.
29708 # This happens for instance with `./config.status Makefile'.
29709 if test -n "$CONFIG_HEADERS"; then
29710 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
29714 # Transform confdefs.h into an awk script `defines.awk', embedded as
29715 # here-document in config.status, that substitutes the proper values into
29716 # config.h.in to produce config.h.
29718 # Create a delimiter string that does not exist in confdefs.h, to ease
29719 # handling of long lines.
29721 for ac_last_try in false false :; do
29722 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
29723 if test -z "$ac_tt"; then
29725 elif $ac_last_try; then
29726 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
29728 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29732 # For the awk script, D is an array of macro values keyed by name,
29733 # likewise P contains macro parameters if any. Preserve backslash
29734 # newline sequences.
29736 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29738 s/.\{148\}/&'"$ac_delim"'/g
29741 s/^[ ]*#[ ]*define[ ][ ]*/ /
29748 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
29750 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
29754 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
29755 D["\
1"]=" \
3\\\\\\n
"\\/p
29757 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
29762 s/.\{148\}/&'"$ac_delim"'/g
29767 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
29770 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
29772 ' <confdefs.h | sed '
29773 s/'"$ac_delim"'/"\\\
29774 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29777 for (key in D) D_is_set[key] = 1
29780 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29782 split(line, arg, " ")
29783 if (arg[1] == "#") {
29787 defundef
= substr
(arg
[1], 2)
29790 split(mac1
, mac2
, "(") #)
29792 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
29793 if (D_is_set
[macro
]) {
29794 # Preserve the white space surrounding the "#".
29795 print prefix
"define", macro P
[macro
] D
[macro
]
29798 # Replace #undef with comments. This is necessary, for example,
29799 # in the case of _POSIX_SOURCE, which is predefined and required
29800 # on some systems where configure will not decide to define it.
29801 if (defundef
== "undef") {
29802 print
"/*", prefix defundef
, macro
, "*/"
29810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29811 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
29812 fi # test -n "$CONFIG_HEADERS"
29815 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29820 :[FHLC
]) ac_mode
=$ac_tag; continue;;
29822 case $ac_mode$ac_tag in
29824 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
29825 :[FH
]-) ac_tag
=-:-;;
29826 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
29843 -) ac_f
="$ac_tmp/stdin";;
29844 *) # Look for the file first in the build tree, then in the source tree
29845 # (if the path is not absolute). The absolute path cannot be DOS-style,
29846 # because $ac_f cannot contain `:'.
29850 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
29852 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29854 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29855 as_fn_append ac_file_inputs
" '$ac_f'"
29858 # Let's still pretend it is `configure' which instantiates (i.e., don't
29859 # use $as_me), people would be surprised to read:
29860 # /* config.h. Generated by config.status. */
29861 configure_input
='Generated from '`
29862 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29864 if test x
"$ac_file" != x-
; then
29865 configure_input
="$ac_file. $configure_input"
29866 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29867 $as_echo "$as_me: creating $ac_file" >&6;}
29869 # Neutralize special characters interpreted by sed in replacement strings.
29870 case $configure_input in #(
29871 *\
&* |
*\|
* |
*\\* )
29872 ac_sed_conf_input
=`$as_echo "$configure_input" |
29873 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29874 *) ac_sed_conf_input
=$configure_input;;
29878 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
29879 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
29884 ac_dir
=`$as_dirname -- "$ac_file" ||
29885 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29886 X"$ac_file" : 'X\(//\)[^/]' \| \
29887 X"$ac_file" : 'X\(//\)$' \| \
29888 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29889 $as_echo X"$ac_file" |
29890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29894 /^X\(\/\/\)[^/].*/{
29907 as_dir
="$ac_dir"; as_fn_mkdir_p
29911 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29913 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29914 # A ".." for each directory in $ac_dir_suffix.
29915 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29916 case $ac_top_builddir_sub in
29917 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29918 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
29921 ac_abs_top_builddir
=$ac_pwd
29922 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
29923 # for backward compatibility:
29924 ac_top_builddir
=$ac_top_build_prefix
29927 .
) # We are building in place.
29929 ac_top_srcdir
=$ac_top_builddir_sub
29930 ac_abs_top_srcdir
=$ac_pwd ;;
29931 [\\/]* | ?
:[\\/]* ) # Absolute name.
29932 ac_srcdir
=$srcdir$ac_dir_suffix;
29933 ac_top_srcdir
=$srcdir
29934 ac_abs_top_srcdir
=$srcdir ;;
29935 *) # Relative name.
29936 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
29937 ac_top_srcdir
=$ac_top_build_prefix$srcdir
29938 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
29940 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
29950 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
29951 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
29953 ac_MKDIR_P
=$MKDIR_P
29955 [\\/$
]* | ?
:[\\/]* ) ;;
29956 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
29960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29961 # If the template does not know about datarootdir, expand it.
29962 # FIXME: This hack should be removed a few years after 2.60.
29963 ac_datarootdir_hack
=; ac_datarootdir_seen
=
29974 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29975 *datarootdir
*) ac_datarootdir_seen
=yes;;
29976 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
29977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29978 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29981 ac_datarootdir_hack='
29982 s&@datadir@&$datadir&g
29983 s&@docdir@&$docdir&g
29984 s&@infodir@&$infodir&g
29985 s&@localedir@&$localedir&g
29986 s&@mandir@&$mandir&g
29987 s&\\\${datarootdir}&$datarootdir&g' ;;
29991 # Neutralize VPATH when `$srcdir' = `.'.
29992 # Shell code in configure.ac might set extrasub.
29993 # FIXME: do we really want to maintain this feature?
29994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29995 ac_sed_extra="$ac_vpsub
29998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30000 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
30001 s|@configure_input@|
$ac_sed_conf_input|
;t t
30002 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
30003 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
30004 s
&@srcdir@
&$ac_srcdir&;t t
30005 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
30006 s
&@top_srcdir@
&$ac_top_srcdir&;t t
30007 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
30008 s
&@builddir@
&$ac_builddir&;t t
30009 s
&@abs_builddir@
&$ac_abs_builddir&;t t
30010 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
30011 s
&@INSTALL@
&$ac_INSTALL&;t t
30012 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
30013 $ac_datarootdir_hack
30015 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
30016 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
30018 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30019 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
30020 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
30021 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
30022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
30023 which seems to be undefined. Please make sure it is defined" >&5
30024 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
30025 which seems to be undefined. Please make sure it is defined" >&2;}
30027 rm -f "$ac_tmp/stdin"
30029 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
30030 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
30032 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30038 if test x"$ac_file" != x-; then
30040 $as_echo "/* $configure_input */" \
30041 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
30042 } >"$ac_tmp/config.h" \
30043 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30044 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
30045 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30046 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30049 mv "$ac_tmp/config.h" "$ac_file" \
30050 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30053 $as_echo "/* $configure_input */" \
30054 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
30055 || as_fn_error $? "could not create -" "$LINENO" 5
30057 # Compute "$ac_file"'s index
in $config_headers.
30060 for _am_header
in $config_headers :; do
30061 case $_am_header in
30062 $_am_arg |
$_am_arg:* )
30065 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
30068 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30069 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30070 X"$_am_arg" : 'X\(//\)[^/]' \| \
30071 X"$_am_arg" : 'X\(//\)$' \| \
30072 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30073 $as_echo X"$_am_arg" |
30074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30078 /^X\(\/\/\)[^/].*/{
30090 s/.*/./; q'`/stamp-h
$_am_stamp_count
30097 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30100 # Prefer the file from the source tree if names are identical.
30101 if test "$ac_source" = "$ac_file" ||
test ! -r "$ac_source"; then
30102 ac_source
=$srcdir/$ac_source
30105 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30106 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30108 if test ! -r "$ac_source"; then
30109 as_fn_error $?
"$ac_source: file not found" "$LINENO" 5
30113 # Try a relative symlink, then a hard link, then a copy.
30115 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$ac_source ;;
30116 *) ac_rel_source
=$ac_top_build_prefix$ac_source ;;
30118 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
30119 ln "$ac_source" "$ac_file" 2>/dev
/null ||
30120 cp -p "$ac_source" "$ac_file" ||
30121 as_fn_error $?
"cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30124 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30125 $as_echo "$as_me: executing $ac_file commands" >&6;}
30130 case $ac_file$ac_mode in
30131 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
30132 # Older Autoconf quotes --file arguments for eval, but not when files
30133 # are listed without --file. Let's play safe and only enable the eval
30134 # if we detect the quoting.
30135 case $CONFIG_FILES in
30136 *\'*) eval set x
"$CONFIG_FILES" ;;
30137 *) set x
$CONFIG_FILES ;;
30142 # Strip MF so we end up with the name of the file.
30143 mf
=`echo "$mf" | sed -e 's/:.*$//'`
30144 # Check whether this is an Automake generated Makefile or not.
30145 # We used to match only the files named 'Makefile.in', but
30146 # some people rename them; so instead we look at the file content.
30147 # Grep'ing the first line is not enough: some people post-process
30148 # each Makefile.in and add a new line on top of each file to say so.
30149 # Grep'ing the whole file is not good either: AIX grep has a line
30150 # limit of 2048, but all sed's we know have understand at least 4000.
30151 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
30152 dirpart
=`$as_dirname -- "$mf" ||
30153 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30154 X"$mf" : 'X\(//\)[^/]' \| \
30155 X"$mf" : 'X\(//\)$' \| \
30156 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30162 /^X\(\/\/\)[^/].*/{
30178 # Extract the definition of DEPDIR, am__include, and am__quote
30179 # from the Makefile without running 'make'.
30180 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
30181 test -z "$DEPDIR" && continue
30182 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
30183 test -z "$am__include" && continue
30184 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
30185 # Find all dependency output files, they are included files with
30186 # $(DEPDIR) in their names. We invoke sed twice because it is the
30187 # simplest approach to changing $(DEPDIR) to its actual value in the
30189 for file in `sed -n "
30190 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30191 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
30192 # Make sure the directory exists.
30193 test -f "$dirpart/$file" && continue
30194 fdir
=`$as_dirname -- "$file" ||
30195 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30196 X"$file" : 'X\(//\)[^/]' \| \
30197 X"$file" : 'X\(//\)$' \| \
30198 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30199 $as_echo X"$file" |
30200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30204 /^X\(\/\/\)[^/].*/{
30217 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
30218 # echo "creating $dirpart/$file"
30219 echo '# dummy' > "$dirpart/$file"
30224 "po-directories":C
)
30225 for ac_file
in $CONFIG_FILES; do
30226 # Support "outfile[:infile[:infile...]]"
30228 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
30230 # PO directories have a Makefile.in generated from Makefile.in.in.
30231 case "$ac_file" in */Makefile.
in)
30232 # Adjust a relative srcdir.
30233 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
30234 ac_dir_suffix
=/`echo "$ac_dir"|sed 's%^\./%%'`
30235 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
30236 # In autoconf-2.13 it is called $ac_given_srcdir.
30237 # In autoconf-2.50 it is called $srcdir.
30238 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
30239 case "$ac_given_srcdir" in
30240 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
30241 /*) top_srcdir
="$ac_given_srcdir" ;;
30242 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
30244 # Treat a directory as a PO directory if and only if it has a
30245 # POTFILES.in file. This allows packages to have multiple PO
30246 # directories under different names or in different locations.
30247 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
30248 rm -f "$ac_dir/POTFILES"
30249 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
30250 gt_tab
=`printf '\t'`
30251 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
30252 POMAKEFILEDEPS
="POTFILES.in"
30253 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
30254 # on $ac_dir but don't depend on user-specified configuration
30256 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
30257 # The LINGUAS file contains the set of available languages.
30258 if test -n "$OBSOLETE_ALL_LINGUAS"; then
30259 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
30261 ALL_LINGUAS_
=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
30262 # Hide the ALL_LINGUAS assignment from automake < 1.5.
30263 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
30264 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
30266 # The set of available languages was given in configure.in.
30267 # Hide the ALL_LINGUAS assignment from automake < 1.5.
30268 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
30271 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
30272 # Compute UPDATEPOFILES
30273 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
30274 # Compute DUMMYPOFILES
30275 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
30277 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
30278 case "$ac_given_srcdir" in
30280 *) srcdirpre
='$(srcdir)/' ;;
30286 for lang
in $ALL_LINGUAS; do
30287 POFILES
="$POFILES $srcdirpre$lang.po"
30288 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
30289 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
30290 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
30292 # CATALOGS depends on both $ac_dir and the user's LINGUAS
30293 # environment variable.
30295 if test -n "$ALL_LINGUAS"; then
30296 for presentlang
in $ALL_LINGUAS; do
30298 if test "%UNSET%" != "$LINGUAS"; then
30299 desiredlanguages
="$LINGUAS"
30301 desiredlanguages
="$ALL_LINGUAS"
30303 for desiredlang
in $desiredlanguages; do
30304 # Use the presentlang catalog if desiredlang is
30305 # a. equal to presentlang, or
30306 # b. a variant of presentlang (because in this case,
30307 # presentlang can be used as a fallback for messages
30308 # which are not translated in the desiredlang catalog).
30309 case "$desiredlang" in
30310 "$presentlang"*) useit
=yes;;
30313 if test $useit = yes; then
30314 INST_LINGUAS
="$INST_LINGUAS $presentlang"
30319 if test -n "$INST_LINGUAS"; then
30320 for lang
in $INST_LINGUAS; do
30321 CATALOGS
="$CATALOGS $lang.gmo"
30324 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
30325 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"
30326 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
30327 if test -f "$f"; then
30329 *.orig |
*.bak |
*~
) ;;
30330 *) cat "$f" >> "$ac_dir/Makefile" ;;
30338 "stamp-h":F
) echo timestamp
> stamp-h
;;
30346 ac_clean_files
=$ac_clean_files_save
30348 test $ac_write_fail = 0 ||
30349 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
30352 # configure is writing to config.log, and then calls config.status.
30353 # config.status does its own redirection, appending to config.log.
30354 # Unfortunately, on DOS this fails, as config.log is still kept open
30355 # by configure, so config.status won't be able to write to it; its
30356 # output is simply discarded. So we exec the FD to /dev/null,
30357 # effectively closing config.log, so it can be properly (re)opened and
30358 # appended to by config.status. When coming back to configure, we
30359 # need to make the FD available again.
30360 if test "$no_create" != yes; then
30362 ac_config_status_args
=
30363 test "$silent" = yes &&
30364 ac_config_status_args
="$ac_config_status_args --quiet"
30366 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
30368 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30369 # would make configure fail if this is the last instruction.
30370 $ac_cs_success || as_fn_exit
1
30372 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
30373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30374 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30378 echo "*******************************************************"
30379 echo GRUB2 will be compiled with following components
:
30380 echo Platform
: "$target_cpu"-"$platform"
30381 if [ x
"$platform" = xemu
]; then
30382 if [ x
"$grub_emu_usb_excuse" = x
]; then
30383 echo USB support
for grub-emu
: Yes
30385 echo USB support
for grub-emu
: No
"($grub_emu_usb_excuse)"
30387 if [ x
"$grub_emu_sdl_excuse" = x
]; then
30388 echo SDL support
for grub-emu
: Yes
30390 echo SDL support
for grub-emu
: No
"($grub_emu_sdl_excuse)"
30392 if [ x
"$grub_emu_pci_excuse" = x
]; then
30393 echo PCI support
for grub-emu
: Yes
30395 echo PCI support
for grub-emu
: No
"($grub_emu_pci_excuse)"
30398 if test x
"$device_mapper_excuse" = x
; then
30399 echo With devmapper support
: Yes
30401 echo With devmapper support
: No
"($device_mapper_excuse)"
30403 if [ x
"$enable_mm_debug" = xyes
]; then
30404 echo With memory debugging
: Yes
30406 echo With memory debugging
: No
30408 if [ x
"$enable_cache_stats" = xyes
]; then
30409 echo With disk cache statistics
: Yes
30411 echo With disk cache statistics
: No
30414 if [ x
"$enable_boot_time" = xyes
]; then
30415 echo With boot
time statistics
: Yes
30417 echo With boot
time statistics
: No
30420 if [ x
"$efiemu_excuse" = x
]; then
30421 echo efiemu runtime
: Yes
30423 echo efiemu runtime
: No
"($efiemu_excuse)"
30425 if [ x
"$grub_mkfont_excuse" = x
]; then
30426 echo grub-mkfont
: Yes
30428 echo grub-mkfont
: No
"($grub_mkfont_excuse)"
30430 if [ x
"$grub_mount_excuse" = x
]; then
30431 echo grub-mount
: Yes
30433 echo grub-mount
: No
"($grub_mount_excuse)"
30435 if [ x
"$starfield_excuse" = x
]; then
30436 echo starfield theme
: Yes
30437 echo With DejaVuSans font from
$DJVU_FONT_SOURCE
30439 echo starfield theme
: No
"($starfield_excuse)"
30441 if [ x
"$libzfs_excuse" = x
]; then
30442 echo With libzfs support
: Yes
30444 echo With libzfs support
: No
"($libzfs_excuse)"
30446 if [ x
"$grub_build_mkfont_excuse" = x
]; then
30447 echo Build-time grub-mkfont
: Yes
30448 if test "x$FONT_SOURCE" = x
; then
30449 echo "Without unifont"
30451 echo "With unifont from $FONT_SOURCE"
30454 echo Build-time grub-mkfont
: No
"($grub_build_mkfont_excuse)"
30455 echo "Without unifont (no build-time grub-mkfont)"
30457 if test x
"$liblzma_excuse" != x
; then
30458 echo "Without liblzma (no support for XZ-compressed mips images) ($liblzma_excuse)"
30460 echo "With liblzma from $LIBLZMA (support for XZ-compressed mips images)"
30462 echo "*******************************************************"