2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.67 for GRUB 1.99~20101119-1.
5
# Report bugs to <bug-grub@gnu.org>.
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13
# This configure script is free software; the Free Software Foundation
14
# gives unlimited permission to copy, distribute and modify it.
15
## -------------------- ##
16
## M4sh Initialization. ##
17
## -------------------- ##
19
# Be more Bourne compatible
20
DUALCASE=1; export DUALCASE # for MKS sh
21
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25
# is contrary to our usage. Disable this feature.
26
alias -g '${1+"$@"}'='"$@"'
29
case `(set -o) 2>/dev/null` in #(
41
# Printing a long string crashes Solaris 7 /usr/bin/printf.
42
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45
# Prefer a ksh shell builtin over an external printf program on Solaris,
46
# but without wasting forks for bash or zsh.
47
if test -z "$BASH_VERSION$ZSH_VERSION" \
48
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50
as_echo_n='print -rn --'
51
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57
as_echo_n='/usr/ucb/echo -n'
59
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64
expr "X$arg" : "X\\(.*\\)$as_nl";
65
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70
as_echo_n='sh -c $as_echo_n_body as_echo'
73
as_echo='sh -c $as_echo_body as_echo'
76
# The user is always right.
77
if test "${PATH_SEPARATOR+set}" != set; then
79
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87
# We need space, tab and new line, in precisely that order. Quoting is
88
# there to prevent editors from complaining about space-tab.
89
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90
# splitting by setting IFS to empty value.)
93
# Find who we are. Look in the path if we contain no directory separator.
95
*[\\/]* ) as_myself=$0 ;;
96
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100
test -z "$as_dir" && as_dir=.
101
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107
# We did not find ourselves, most probably we were run as `sh COMMAND'
108
# in which case we are not to be found in the path.
109
if test "x$as_myself" = x; then
112
if test ! -f "$as_myself"; then
113
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117
# Unset variables that we do not need and which cause bugs (e.g. in
118
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119
# suppresses any "Segmentation fault" message there. '((' could
120
# trigger a bug in pdksh 5.2.14.
121
for as_var in BASH_ENV ENV MAIL MAILPATH
122
do eval test x\${$as_var+set} = xset \
123
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
if test "x$CONFIG_SHELL" = x; then
139
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143
# is contrary to our usage. Disable this feature.
144
alias -g '\${1+\"\$@\"}'='\"\$@\"'
147
case \`(set -o) 2>/dev/null\` in #(
155
as_required="as_fn_return () { (exit \$1); }
156
as_fn_success () { as_fn_return 0; }
157
as_fn_failure () { as_fn_return 1; }
158
as_fn_ret_success () { return 0; }
159
as_fn_ret_failure () { return 1; }
162
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
exitcode=1; echo positional parameters were not saved.
171
test x\$exitcode = x0 || exit 1"
172
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
test \$(( 1 + 1 )) = 2 || exit 1"
177
if (eval "$as_required") 2>/dev/null; then :
182
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190
test -z "$as_dir" && as_dir=.
194
for as_base in sh bash ksh sh5; do
195
# Try only shells that exist, to save several forks.
196
as_shell=$as_dir/$as_base
197
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199
CONFIG_SHELL=$as_shell as_have_required=yes
200
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210
CONFIG_SHELL=$SHELL as_have_required=yes
215
if test "x$CONFIG_SHELL" != x; then :
216
# We cannot yet assume a decent shell, so we have to provide a
217
# neutralization value for shells without unset; and this also
218
# works around shells that cannot unset nonexistent variables.
221
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226
if test x$as_have_required = xno; then :
227
$as_echo "$0: This script requires a shell more modern than all"
228
$as_echo "$0: the shells that I found on your system."
229
if test x${ZSH_VERSION+set} = xset ; then
230
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
233
$as_echo "$0: Please tell bug-autoconf@gnu.org and bug-grub@gnu.org
234
$0: about your system, including any error possibly output
235
$0: before this message. Then install a modern shell, or
236
$0: manually run the script under such a shell if you do
243
SHELL=${CONFIG_SHELL-/bin/sh}
245
# Unset more variables known to interfere with behavior of common tools.
246
CLICOLOR_FORCE= GREP_OPTIONS=
247
unset CLICOLOR_FORCE GREP_OPTIONS
249
## --------------------- ##
250
## M4sh Shell Functions. ##
251
## --------------------- ##
254
# Portably unset VAR.
257
{ eval $1=; unset $1;}
261
# as_fn_set_status STATUS
262
# -----------------------
263
# Set $? to STATUS, without forking.
271
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281
# Create "$as_dir" as a directory, including parents if necessary.
286
-*) as_dir=./$as_dir;;
288
test -d "$as_dir" || eval $as_mkdir_p || {
292
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295
as_dirs="'$as_qdir' $as_dirs"
296
as_dir=`$as_dirname -- "$as_dir" ||
297
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298
X"$as_dir" : 'X\(//\)[^/]' \| \
299
X"$as_dir" : 'X\(//\)$' \| \
300
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301
$as_echo X"$as_dir" |
302
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319
test -d "$as_dir" && break
321
test -z "$as_dirs" || eval "mkdir $as_dirs"
322
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
326
# as_fn_append VAR VALUE
327
# ----------------------
328
# Append the text in VALUE to the end of the definition contained in VAR. Take
329
# advantage of any shell optimizations that allow amortized linear growth over
330
# repeated appends, instead of the typical quadratic growth present in naive
332
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333
eval 'as_fn_append ()
346
# Perform arithmetic evaluation on the ARGs, and store the result in the
347
# global $as_val. Take advantage of shells that can avoid forks. The arguments
348
# must be portable across $(()) and expr.
349
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357
as_val=`expr "$@" || test $? -eq 1`
362
# as_fn_error STATUS ERROR [LINENO LOG_FD]
363
# ----------------------------------------
364
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366
# script with STATUS, using 1 if that was 0.
369
as_status=$1; test $as_status -eq 0 && as_status=1
371
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
374
$as_echo "$as_me: error: $2" >&2
375
as_fn_exit $as_status
378
if expr a : '\(a\)' >/dev/null 2>&1 &&
379
test "X`expr 00001 : '.*\(...\)'`" = X001; then
385
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397
as_me=`$as_basename -- "$0" ||
398
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399
X"$0" : 'X\(//\)$' \| \
400
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402
sed '/^.*\/\([^/][^/]*\)\/*$/{
416
# Avoid depending upon Character Ranges.
417
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420
as_cr_digits='0123456789'
421
as_cr_alnum=$as_cr_Letters$as_cr_digits
424
as_lineno_1=$LINENO as_lineno_1a=$LINENO
425
as_lineno_2=$LINENO as_lineno_2a=$LINENO
426
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444
chmod +x "$as_me.lineno" ||
445
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
# Don't try to exec as it changes $[0], causing all sort of problems
448
# (the dirname of $[0] is not the place where we might find the
449
# original and so on. Autoconf is especially sensitive to this).
451
# Exit status is that of the last command.
455
ECHO_C= ECHO_N= ECHO_T=
456
case `echo -n x` in #(((((
458
case `echo 'xy\c'` in
459
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
461
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468
rm -f conf$$ conf$$.exe conf$$.file
469
if test -d conf$$.dir; then
470
rm -f conf$$.dir/conf$$.file
473
mkdir conf$$.dir 2>/dev/null
475
if (echo >conf$$.file) 2>/dev/null; then
476
if ln -s conf$$.file conf$$ 2>/dev/null; then
478
# ... but there are two gotchas:
479
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481
# In both cases, we have to default to `cp -p'.
482
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484
elif ln conf$$.file conf$$ 2>/dev/null; then
492
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493
rmdir conf$$.dir 2>/dev/null
495
if mkdir -p . 2>/dev/null; then
496
as_mkdir_p='mkdir -p "$as_dir"'
498
test -d ./-p && rmdir ./-p
502
if test -x / >/dev/null 2>&1; then
505
if ls -dL / >/dev/null 2>&1; then
512
if test -d "$1"; then
518
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519
???[sx]*):;;*)false;;esac;fi
523
as_executable_p=$as_test_x
525
# Sed expression to map a string onto a valid CPP name.
526
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
# Sed expression to map a string onto a valid variable name.
529
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532
test -n "$DJDIR" || exec 7<&0 </dev/null
536
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
537
# so uname gets run too.
538
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
ac_default_prefix=/usr/local
545
ac_config_libobj_dir=.
552
# Identity of this package.
554
PACKAGE_TARNAME='grub'
555
PACKAGE_VERSION='1.99~20101119-1'
556
PACKAGE_STRING='GRUB 1.99~20101119-1'
557
PACKAGE_BUGREPORT='bug-grub@gnu.org'
560
ac_unique_file="include/grub/dl.h"
561
# Factoring default headers for most tests.
562
ac_includes_default="\
564
#ifdef HAVE_SYS_TYPES_H
565
# include <sys/types.h>
567
#ifdef HAVE_SYS_STAT_H
568
# include <sys/stat.h>
574
# ifdef HAVE_STDLIB_H
579
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584
#ifdef HAVE_STRINGS_H
585
# include <strings.h>
587
#ifdef HAVE_INTTYPES_H
588
# include <inttypes.h>
600
gl_fnmatch_required=POSIX
601
gl_getopt_required=POSIX
602
gl_getopt_required=POSIX
603
ac_subst_vars='gltests_LTLIBOBJS
611
COND_HAVE_ASM_USCORE_FALSE
612
COND_HAVE_ASM_USCORE_TRUE
613
COND_ENABLE_EFIEMU_FALSE
614
COND_ENABLE_EFIEMU_TRUE
617
COND_GRUB_PE2ELF_FALSE
618
COND_GRUB_PE2ELF_TRUE
619
COND_HAVE_FONT_SOURCE_FALSE
620
COND_HAVE_FONT_SOURCE_TRUE
621
COND_GRUB_MKFONT_FALSE
622
COND_GRUB_MKFONT_TRUE
623
COND_GRUB_EMU_PCI_FALSE
624
COND_GRUB_EMU_PCI_TRUE
625
COND_GRUB_EMU_SDL_FALSE
626
COND_GRUB_EMU_SDL_TRUE
627
COND_GRUB_EMU_USB_FALSE
628
COND_GRUB_EMU_USB_TRUE
631
COND_HOST_KFREEBSD_FALSE
632
COND_HOST_KFREEBSD_TRUE
633
COND_HOST_WINDOWS_FALSE
634
COND_HOST_WINDOWS_TRUE
635
COND_HOST_NETBSD_FALSE
636
COND_HOST_NETBSD_TRUE
637
COND_HOST_LINUX_FALSE
643
COND_powerpc_ieee1275_FALSE
644
COND_powerpc_ieee1275_TRUE
645
COND_sparc64_ieee1275_FALSE
646
COND_sparc64_ieee1275_TRUE
647
COND_mips_qemu_mips_FALSE
648
COND_mips_qemu_mips_TRUE
649
COND_mips_yeeloong_FALSE
650
COND_mips_yeeloong_TRUE
651
COND_x86_64_efi_FALSE
653
COND_i386_multiboot_FALSE
654
COND_i386_multiboot_TRUE
655
COND_i386_coreboot_FALSE
656
COND_i386_coreboot_TRUE
657
COND_i386_ieee1275_FALSE
658
COND_i386_ieee1275_TRUE
667
NEED_REGISTER_FRAME_INFO
668
NEED_ENABLE_EXECUTE_STACK
675
GRUB_BOOT_MACHINE_LINK_ADDR
697
TARGET_IMG_BASE_LDOPT
721
NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
728
NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
731
NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
735
NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H
737
NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H
739
NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
741
NEXT_AS_FIRST_DIRECTIVE_STRING_H
743
HAVE_DECL_STRNCASECMP
746
NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
748
NEXT_AS_FIRST_DIRECTIVE_STDIO_H
759
HAVE_SIGNED_SIG_ATOMIC_T
762
BITSIZEOF_SIG_ATOMIC_T
768
NEXT_AS_FIRST_DIRECTIVE_STDINT_H
772
HAVE_UNSIGNED_LONG_LONG_INT
774
NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
781
APPLE_UNIVERSAL_BUILD
858
REPLACE_CANONICALIZE_FILE_NAME
863
HAVE_STRUCT_RANDOM_DATA
880
HAVE_CANONICALIZE_FILE_NAME
904
GNULIB_CANONICALIZE_FILE_NAME
908
LOCALCHARSET_TESTS_ENVIRONMENT
910
HAVE_LANGINFO_YESEXPR
912
HAVE_LANGINFO_T_FMT_AMPM
913
HAVE_LANGINFO_CODESET
915
NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
921
NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
923
UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
924
UNISTD_H_HAVE_WINSOCK2_H
950
HAVE_DECL_GETUSERSHELL
951
HAVE_DECL_GETPAGESIZE
987
GNULIB_UNISTD_H_SIGPIPE
988
GNULIB_UNISTD_H_GETOPT
1009
GNULIB_GETDTABLESIZE
1010
GNULIB_GETDOMAINNAME
1030
REPLACE_STDIO_WRITE_FUNCS
1039
REPLACE_OBSTACK_PRINTF
1061
HAVE_DECL_OBSTACK_PRINTF
1065
GNULIB_VSPRINTF_POSIX
1067
GNULIB_VPRINTF_POSIX
1069
GNULIB_VFPRINTF_POSIX
1074
GNULIB_STDIO_H_SIGPIPE
1075
GNULIB_SPRINTF_POSIX
1087
GNULIB_OBSTACK_PRINTF_POSIX
1088
GNULIB_OBSTACK_PRINTF
1100
GNULIB_FPRINTF_POSIX
1108
NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1117
NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1119
PRAGMA_SYSTEM_HEADER
1120
INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1160
GL_COND_LIBTOOL_FALSE
1161
GL_COND_LIBTOOL_TRUE
1172
XGETTEXT_EXTRA_OPTIONS
1180
GETTEXT_MACRO_VERSION
1182
am__fastdepCCAS_FALSE
1183
am__fastdepCCAS_TRUE
1227
INSTALL_STRIP_PROGRAM
1281
program_transform_name
1294
enable_option_checking
1296
enable_dependency_tracking
1300
with_libiconv_prefix
1311
enable_device_mapper
1313
ac_precious_vars='build_alias
1328
# Initialize some variables set by options.
1330
ac_init_version=false
1331
ac_unrecognized_opts=
1332
ac_unrecognized_sep=
1333
# The variables have the same names as the options, with
1334
# dashes changed to underlines.
1335
cache_file=/dev/null
1342
program_transform_name=s,x,x,
1350
# Installation directory options.
1351
# These are left unexpanded so users can "make install exec_prefix=/foo"
1352
# and all the variables that are supposed to be based on exec_prefix
1353
# by default will actually change.
1354
# Use braces instead of parens because sh, perl, etc. also accept them.
1355
# (The list follows the same order as the GNU Coding Standards.)
1356
bindir='${exec_prefix}/bin'
1357
sbindir='${exec_prefix}/sbin'
1358
libexecdir='${exec_prefix}/libexec'
1359
datarootdir='${prefix}/share'
1360
datadir='${datarootdir}'
1361
sysconfdir='${prefix}/etc'
1362
sharedstatedir='${prefix}/com'
1363
localstatedir='${prefix}/var'
1364
includedir='${prefix}/include'
1365
oldincludedir='/usr/include'
1366
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1367
infodir='${datarootdir}/info'
1372
libdir='${exec_prefix}/lib'
1373
localedir='${datarootdir}/locale'
1374
mandir='${datarootdir}/man'
1380
# If the previous option needs an argument, assign it.
1381
if test -n "$ac_prev"; then
1382
eval $ac_prev=\$ac_option
1388
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1393
# Accept the important Cygnus configure options, so we can diagnose typos.
1395
case $ac_dashdash$ac_option in
1399
-bindir | --bindir | --bindi | --bind | --bin | --bi)
1401
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1402
bindir=$ac_optarg ;;
1404
-build | --build | --buil | --bui | --bu)
1405
ac_prev=build_alias ;;
1406
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
1407
build_alias=$ac_optarg ;;
1409
-cache-file | --cache-file | --cache-fil | --cache-fi \
1410
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1411
ac_prev=cache_file ;;
1412
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1413
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1414
cache_file=$ac_optarg ;;
1416
--config-cache | -C)
1417
cache_file=config.cache ;;
1419
-datadir | --datadir | --datadi | --datad)
1421
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1422
datadir=$ac_optarg ;;
1424
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1425
| --dataroo | --dataro | --datar)
1426
ac_prev=datarootdir ;;
1427
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1428
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1429
datarootdir=$ac_optarg ;;
1431
-disable-* | --disable-*)
1432
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1433
# Reject names that are not valid shell variable names.
1434
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1435
as_fn_error $? "invalid feature name: $ac_useropt"
1436
ac_useropt_orig=$ac_useropt
1437
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1438
case $ac_user_opts in
1440
"enable_$ac_useropt"
1442
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1443
ac_unrecognized_sep=', ';;
1445
eval enable_$ac_useropt=no ;;
1447
-docdir | --docdir | --docdi | --doc | --do)
1449
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1450
docdir=$ac_optarg ;;
1452
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1454
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1455
dvidir=$ac_optarg ;;
1457
-enable-* | --enable-*)
1458
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1459
# Reject names that are not valid shell variable names.
1460
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1461
as_fn_error $? "invalid feature name: $ac_useropt"
1462
ac_useropt_orig=$ac_useropt
1463
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1464
case $ac_user_opts in
1466
"enable_$ac_useropt"
1468
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1469
ac_unrecognized_sep=', ';;
1471
eval enable_$ac_useropt=\$ac_optarg ;;
1473
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1474
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1475
| --exec | --exe | --ex)
1476
ac_prev=exec_prefix ;;
1477
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1478
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1479
| --exec=* | --exe=* | --ex=*)
1480
exec_prefix=$ac_optarg ;;
1482
-gas | --gas | --ga | --g)
1483
# Obsolete; use --with-gas.
1486
-help | --help | --hel | --he | -h)
1487
ac_init_help=long ;;
1488
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1489
ac_init_help=recursive ;;
1490
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1491
ac_init_help=short ;;
1493
-host | --host | --hos | --ho)
1494
ac_prev=host_alias ;;
1495
-host=* | --host=* | --hos=* | --ho=*)
1496
host_alias=$ac_optarg ;;
1498
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1500
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1502
htmldir=$ac_optarg ;;
1504
-includedir | --includedir | --includedi | --included | --include \
1505
| --includ | --inclu | --incl | --inc)
1506
ac_prev=includedir ;;
1507
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1508
| --includ=* | --inclu=* | --incl=* | --inc=*)
1509
includedir=$ac_optarg ;;
1511
-infodir | --infodir | --infodi | --infod | --info | --inf)
1513
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1514
infodir=$ac_optarg ;;
1516
-libdir | --libdir | --libdi | --libd)
1518
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1519
libdir=$ac_optarg ;;
1521
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1522
| --libexe | --libex | --libe)
1523
ac_prev=libexecdir ;;
1524
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1525
| --libexe=* | --libex=* | --libe=*)
1526
libexecdir=$ac_optarg ;;
1528
-localedir | --localedir | --localedi | --localed | --locale)
1529
ac_prev=localedir ;;
1530
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1531
localedir=$ac_optarg ;;
1533
-localstatedir | --localstatedir | --localstatedi | --localstated \
1534
| --localstate | --localstat | --localsta | --localst | --locals)
1535
ac_prev=localstatedir ;;
1536
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1537
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1538
localstatedir=$ac_optarg ;;
1540
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1542
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1543
mandir=$ac_optarg ;;
1545
-nfp | --nfp | --nf)
1546
# Obsolete; use --without-fp.
1549
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1550
| --no-cr | --no-c | -n)
1553
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1554
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1557
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1558
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1559
| --oldin | --oldi | --old | --ol | --o)
1560
ac_prev=oldincludedir ;;
1561
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1562
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1563
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1564
oldincludedir=$ac_optarg ;;
1566
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1568
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1569
prefix=$ac_optarg ;;
1571
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1572
| --program-pre | --program-pr | --program-p)
1573
ac_prev=program_prefix ;;
1574
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1575
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1576
program_prefix=$ac_optarg ;;
1578
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1579
| --program-suf | --program-su | --program-s)
1580
ac_prev=program_suffix ;;
1581
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1582
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1583
program_suffix=$ac_optarg ;;
1585
-program-transform-name | --program-transform-name \
1586
| --program-transform-nam | --program-transform-na \
1587
| --program-transform-n | --program-transform- \
1588
| --program-transform | --program-transfor \
1589
| --program-transfo | --program-transf \
1590
| --program-trans | --program-tran \
1591
| --progr-tra | --program-tr | --program-t)
1592
ac_prev=program_transform_name ;;
1593
-program-transform-name=* | --program-transform-name=* \
1594
| --program-transform-nam=* | --program-transform-na=* \
1595
| --program-transform-n=* | --program-transform-=* \
1596
| --program-transform=* | --program-transfor=* \
1597
| --program-transfo=* | --program-transf=* \
1598
| --program-trans=* | --program-tran=* \
1599
| --progr-tra=* | --program-tr=* | --program-t=*)
1600
program_transform_name=$ac_optarg ;;
1602
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1604
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1605
pdfdir=$ac_optarg ;;
1607
-psdir | --psdir | --psdi | --psd | --ps)
1609
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1612
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1613
| -silent | --silent | --silen | --sile | --sil)
1616
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1618
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1620
sbindir=$ac_optarg ;;
1622
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1623
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1624
| --sharedst | --shareds | --shared | --share | --shar \
1626
ac_prev=sharedstatedir ;;
1627
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1628
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1629
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1631
sharedstatedir=$ac_optarg ;;
1633
-site | --site | --sit)
1635
-site=* | --site=* | --sit=*)
1638
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1640
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1641
srcdir=$ac_optarg ;;
1643
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1644
| --syscon | --sysco | --sysc | --sys | --sy)
1645
ac_prev=sysconfdir ;;
1646
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1647
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1648
sysconfdir=$ac_optarg ;;
1650
-target | --target | --targe | --targ | --tar | --ta | --t)
1651
ac_prev=target_alias ;;
1652
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1653
target_alias=$ac_optarg ;;
1655
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1658
-version | --version | --versio | --versi | --vers | -V)
1659
ac_init_version=: ;;
1662
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1663
# Reject names that are not valid shell variable names.
1664
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1665
as_fn_error $? "invalid package name: $ac_useropt"
1666
ac_useropt_orig=$ac_useropt
1667
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1668
case $ac_user_opts in
1672
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1673
ac_unrecognized_sep=', ';;
1675
eval with_$ac_useropt=\$ac_optarg ;;
1677
-without-* | --without-*)
1678
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1679
# Reject names that are not valid shell variable names.
1680
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1681
as_fn_error $? "invalid package name: $ac_useropt"
1682
ac_useropt_orig=$ac_useropt
1683
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1684
case $ac_user_opts in
1688
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1689
ac_unrecognized_sep=', ';;
1691
eval with_$ac_useropt=no ;;
1694
# Obsolete; use --with-x.
1697
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1698
| --x-incl | --x-inc | --x-in | --x-i)
1699
ac_prev=x_includes ;;
1700
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1701
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1702
x_includes=$ac_optarg ;;
1704
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1705
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1706
ac_prev=x_libraries ;;
1707
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1708
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1709
x_libraries=$ac_optarg ;;
1711
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1712
Try \`$0 --help' for more information"
1716
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1717
# Reject names that are not valid shell variable names.
1718
case $ac_envvar in #(
1719
'' | [0-9]* | *[!_$as_cr_alnum]* )
1720
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1722
eval $ac_envvar=\$ac_optarg
1723
export $ac_envvar ;;
1726
# FIXME: should be removed in autoconf 3.0.
1727
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1728
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1729
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1730
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1736
if test -n "$ac_prev"; then
1737
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1738
as_fn_error $? "missing argument to $ac_option"
1741
if test -n "$ac_unrecognized_opts"; then
1742
case $enable_option_checking in
1744
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1745
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1749
# Check all directory arguments for consistency.
1750
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1751
datadir sysconfdir sharedstatedir localstatedir includedir \
1752
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1753
libdir localedir mandir
1755
eval ac_val=\$$ac_var
1756
# Remove trailing slashes.
1759
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1760
eval $ac_var=\$ac_val;;
1762
# Be sure to have absolute directory names.
1764
[\\/$]* | ?:[\\/]* ) continue;;
1765
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1767
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1770
# There might be people who depend on the old broken behavior: `$host'
1771
# used to hold the argument of --host etc.
1772
# FIXME: To remove some day.
1775
target=$target_alias
1777
# FIXME: To remove some day.
1778
if test "x$host_alias" != x; then
1779
if test "x$build_alias" = x; then
1780
cross_compiling=maybe
1781
$as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1782
If a cross compiler is detected then cross compile mode will be used" >&2
1783
elif test "x$build_alias" != "x$host_alias"; then
1789
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1791
test "$silent" = yes && exec 6>/dev/null
1794
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1795
ac_ls_di=`ls -di .` &&
1796
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1797
as_fn_error $? "working directory cannot be determined"
1798
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1799
as_fn_error $? "pwd does not report name of working directory"
1802
# Find the source files, if location was not specified.
1803
if test -z "$srcdir"; then
1804
ac_srcdir_defaulted=yes
1805
# Try the directory containing this script, then the parent directory.
1806
ac_confdir=`$as_dirname -- "$as_myself" ||
1807
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1808
X"$as_myself" : 'X\(//\)[^/]' \| \
1809
X"$as_myself" : 'X\(//\)$' \| \
1810
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1811
$as_echo X"$as_myself" |
1812
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1830
if test ! -r "$srcdir/$ac_unique_file"; then
1834
ac_srcdir_defaulted=no
1836
if test ! -r "$srcdir/$ac_unique_file"; then
1837
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1838
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1840
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1842
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1844
# When building in place, set srcdir=.
1845
if test "$ac_abs_confdir" = "$ac_pwd"; then
1848
# Remove unnecessary trailing slashes from srcdir.
1849
# Double slashes in file names in object file debugging info
1850
# mess up M-x gdb in Emacs.
1852
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1854
for ac_var in $ac_precious_vars; do
1855
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1856
eval ac_env_${ac_var}_value=\$${ac_var}
1857
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1858
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1862
# Report the --help message.
1864
if test "$ac_init_help" = "long"; then
1865
# Omit some internal or obsolete options to make the list less imposing.
1866
# This message is too long to be a string in the A/UX 3.1 sh.
1868
\`configure' configures GRUB 1.99~20101119-1 to adapt to many kinds of systems.
1870
Usage: $0 [OPTION]... [VAR=VALUE]...
1872
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1873
VAR=VALUE. See below for descriptions of some of the useful variables.
1875
Defaults for the options are specified in brackets.
1878
-h, --help display this help and exit
1879
--help=short display options specific to this package
1880
--help=recursive display the short help of all the included packages
1881
-V, --version display version information and exit
1882
-q, --quiet, --silent do not print \`checking ...' messages
1883
--cache-file=FILE cache test results in FILE [disabled]
1884
-C, --config-cache alias for \`--cache-file=config.cache'
1885
-n, --no-create do not create output files
1886
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1888
Installation directories:
1889
--prefix=PREFIX install architecture-independent files in PREFIX
1890
[$ac_default_prefix]
1891
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1894
By default, \`make install' will install all the files in
1895
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1896
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1897
for instance \`--prefix=\$HOME'.
1899
For better control, use the options below.
1901
Fine tuning of the installation directories:
1902
--bindir=DIR user executables [EPREFIX/bin]
1903
--sbindir=DIR system admin executables [EPREFIX/sbin]
1904
--libexecdir=DIR program executables [EPREFIX/libexec]
1905
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1906
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1907
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1908
--libdir=DIR object code libraries [EPREFIX/lib]
1909
--includedir=DIR C header files [PREFIX/include]
1910
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1911
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1912
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1913
--infodir=DIR info documentation [DATAROOTDIR/info]
1914
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1915
--mandir=DIR man documentation [DATAROOTDIR/man]
1916
--docdir=DIR documentation root [DATAROOTDIR/doc/grub]
1917
--htmldir=DIR html documentation [DOCDIR]
1918
--dvidir=DIR dvi documentation [DOCDIR]
1919
--pdfdir=DIR pdf documentation [DOCDIR]
1920
--psdir=DIR ps documentation [DOCDIR]
1926
--program-prefix=PREFIX prepend PREFIX to installed program names
1927
--program-suffix=SUFFIX append SUFFIX to installed program names
1928
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1931
--build=BUILD configure for building on BUILD [guessed]
1932
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1933
--target=TARGET configure for building compilers for TARGET [HOST]
1937
if test -n "$ac_init_help"; then
1938
case $ac_init_help in
1939
short | recursive ) echo "Configuration of GRUB 1.99~20101119-1:";;
1944
--disable-option-checking ignore unrecognized --enable/--with options
1945
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1946
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1947
--disable-dependency-tracking speeds up one-time build
1948
--enable-dependency-tracking do not reject slow dependency extractors
1949
--disable-nls do not use Native Language Support
1950
--disable-rpath do not hardcode runtime library paths
1951
--disable-largefile omit support for large files
1952
--disable-werror do not use -Werror when building GRUB
1953
--enable-efiemu build and install the efiemu runtimes
1955
--enable-mm-debug include memory manager debugging
1956
--enable-grub-emu-usb build and install the `grub-emu' debugging utility
1957
with USB support (default=guessed)
1958
--enable-grub-emu-sdl build and install the `grub-emu' debugging utility
1959
with SDL support (default=guessed)
1960
--enable-grub-emu-pci build and install the `grub-emu' debugging utility
1961
with PCI support (potentially dangerous)
1963
--enable-grub-mkfont build and install the `grub-mkfont' utility
1965
--enable-device-mapper enable Linux device-mapper support (default=guessed)
1968
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1969
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1970
--with-platform=PLATFORM
1971
select the host platform [[guessed]]
1972
--with-gnu-ld assume the C compiler uses GNU ld default=no
1973
--with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1974
--without-libiconv-prefix don't search for libiconv in includedir and libdir
1975
--with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1976
--without-libintl-prefix don't search for libintl in includedir and libdir
1977
--without-included-regex
1978
don't compile regex; this is the default on systems
1979
with recent-enough versions of the GNU C Library
1980
(use with caution on other systems).
1982
Some influential environment variables:
1983
CC C compiler command
1984
CFLAGS C compiler flags
1985
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1986
nonstandard directory <lib dir>
1987
LIBS libraries to pass to the linker, e.g. -l<library>
1988
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1989
you have headers in a nonstandard directory <include dir>
1990
YACC The `Yet Another C Compiler' implementation to use. Defaults to
1991
the first program found out of: `bison -y', `byacc', `yacc'.
1992
YFLAGS The list of arguments that will be passed by default to $YACC.
1993
This script will default YFLAGS to the empty string to avoid a
1994
default value of `-d' given by some make applications.
1996
CCAS assembler compiler command (defaults to CC)
1997
CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1999
Use these variables to override the choices made by `configure' or to help
2000
it to find libraries and programs with nonstandard names/locations.
2002
Report bugs to <bug-grub@gnu.org>.
2007
if test "$ac_init_help" = "recursive"; then
2008
# If there are subdirs, report their specific --help.
2009
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2010
test -d "$ac_dir" ||
2011
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2016
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2018
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2019
# A ".." for each directory in $ac_dir_suffix.
2020
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2021
case $ac_top_builddir_sub in
2022
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2023
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2026
ac_abs_top_builddir=$ac_pwd
2027
ac_abs_builddir=$ac_pwd$ac_dir_suffix
2028
# for backward compatibility:
2029
ac_top_builddir=$ac_top_build_prefix
2032
.) # We are building in place.
2034
ac_top_srcdir=$ac_top_builddir_sub
2035
ac_abs_top_srcdir=$ac_pwd ;;
2036
[\\/]* | ?:[\\/]* ) # Absolute name.
2037
ac_srcdir=$srcdir$ac_dir_suffix;
2038
ac_top_srcdir=$srcdir
2039
ac_abs_top_srcdir=$srcdir ;;
2041
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2042
ac_top_srcdir=$ac_top_build_prefix$srcdir
2043
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2045
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2047
cd "$ac_dir" || { ac_status=$?; continue; }
2048
# Check for guested configure.
2049
if test -f "$ac_srcdir/configure.gnu"; then
2051
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
2052
elif test -f "$ac_srcdir/configure"; then
2054
$SHELL "$ac_srcdir/configure" --help=recursive
2056
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2058
cd "$ac_pwd" || { ac_status=$?; break; }
2062
test -n "$ac_init_help" && exit $ac_status
2063
if $ac_init_version; then
2065
GRUB configure 1.99~20101119-1
2066
generated by GNU Autoconf 2.67
2068
Copyright (C) 2010 Free Software Foundation, Inc.
2069
This configure script is free software; the Free Software Foundation
2070
gives unlimited permission to copy, distribute and modify it.
2075
## ------------------------ ##
2076
## Autoconf initialization. ##
2077
## ------------------------ ##
2079
# ac_fn_c_try_compile LINENO
2080
# --------------------------
2081
# Try to compile conftest.$ac_ext, and return whether this succeeded.
2082
ac_fn_c_try_compile ()
2084
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085
rm -f conftest.$ac_objext
2086
if { { ac_try="$ac_compile"
2088
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2089
*) ac_try_echo=$ac_try;;
2091
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2092
$as_echo "$ac_try_echo"; } >&5
2093
(eval "$ac_compile") 2>conftest.err
2095
if test -s conftest.err; then
2096
grep -v '^ *+' conftest.err >conftest.er1
2097
cat conftest.er1 >&5
2098
mv -f conftest.er1 conftest.err
2100
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2101
test $ac_status = 0; } && {
2102
test -z "$ac_c_werror_flag" ||
2103
test ! -s conftest.err
2104
} && test -s conftest.$ac_objext; then :
2107
$as_echo "$as_me: failed program was:" >&5
2108
sed 's/^/| /' conftest.$ac_ext >&5
2112
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2113
as_fn_set_status $ac_retval
2115
} # ac_fn_c_try_compile
2117
# ac_fn_c_try_link LINENO
2118
# -----------------------
2119
# Try to link conftest.$ac_ext, and return whether this succeeded.
2122
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123
rm -f conftest.$ac_objext conftest$ac_exeext
2124
if { { ac_try="$ac_link"
2126
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127
*) ac_try_echo=$ac_try;;
2129
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2130
$as_echo "$ac_try_echo"; } >&5
2131
(eval "$ac_link") 2>conftest.err
2133
if test -s conftest.err; then
2134
grep -v '^ *+' conftest.err >conftest.er1
2135
cat conftest.er1 >&5
2136
mv -f conftest.er1 conftest.err
2138
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2139
test $ac_status = 0; } && {
2140
test -z "$ac_c_werror_flag" ||
2141
test ! -s conftest.err
2142
} && test -s conftest$ac_exeext && {
2143
test "$cross_compiling" = yes ||
2144
$as_test_x conftest$ac_exeext
2148
$as_echo "$as_me: failed program was:" >&5
2149
sed 's/^/| /' conftest.$ac_ext >&5
2153
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2154
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2155
# interfere with the next link command; also delete a directory that is
2156
# left behind by Apple's compiler. We do this before executing the actions.
2157
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2158
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2159
as_fn_set_status $ac_retval
2161
} # ac_fn_c_try_link
2163
# ac_fn_c_try_cpp LINENO
2164
# ----------------------
2165
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2168
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2169
if { { ac_try="$ac_cpp conftest.$ac_ext"
2171
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2172
*) ac_try_echo=$ac_try;;
2174
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2175
$as_echo "$ac_try_echo"; } >&5
2176
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2178
if test -s conftest.err; then
2179
grep -v '^ *+' conftest.err >conftest.er1
2180
cat conftest.er1 >&5
2181
mv -f conftest.er1 conftest.err
2183
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2184
test $ac_status = 0; } > conftest.i && {
2185
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2186
test ! -s conftest.err
2190
$as_echo "$as_me: failed program was:" >&5
2191
sed 's/^/| /' conftest.$ac_ext >&5
2195
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2196
as_fn_set_status $ac_retval
2200
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2201
# -------------------------------------------------------
2202
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2203
# the include files in INCLUDES and setting the cache variable VAR
2205
ac_fn_c_check_header_mongrel ()
2207
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2208
if eval "test \"\${$3+set}\"" = set; then :
2209
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2210
$as_echo_n "checking for $2... " >&6; }
2211
if eval "test \"\${$3+set}\"" = set; then :
2212
$as_echo_n "(cached) " >&6
2215
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2216
$as_echo "$ac_res" >&6; }
2218
# Is the header compilable?
2219
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2220
$as_echo_n "checking $2 usability... " >&6; }
2221
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222
/* end confdefs.h. */
2226
if ac_fn_c_try_compile "$LINENO"; then :
2227
ac_header_compiler=yes
2229
ac_header_compiler=no
2231
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2233
$as_echo "$ac_header_compiler" >&6; }
2235
# Is the header present?
2236
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2237
$as_echo_n "checking $2 presence... " >&6; }
2238
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239
/* end confdefs.h. */
2242
if ac_fn_c_try_cpp "$LINENO"; then :
2243
ac_header_preproc=yes
2245
ac_header_preproc=no
2247
rm -f conftest.err conftest.i conftest.$ac_ext
2248
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2249
$as_echo "$ac_header_preproc" >&6; }
2251
# So? What about this header?
2252
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2254
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2255
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2256
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2257
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2260
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2261
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2262
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2263
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2264
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2265
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2266
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2267
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2268
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2269
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2270
( $as_echo "## ------------------------------- ##
2271
## Report this to bug-grub@gnu.org ##
2272
## ------------------------------- ##"
2273
) | sed "s/^/$as_me: WARNING: /" >&2
2276
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2277
$as_echo_n "checking for $2... " >&6; }
2278
if eval "test \"\${$3+set}\"" = set; then :
2279
$as_echo_n "(cached) " >&6
2281
eval "$3=\$ac_header_compiler"
2284
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2285
$as_echo "$ac_res" >&6; }
2287
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2289
} # ac_fn_c_check_header_mongrel
2291
# ac_fn_c_try_run LINENO
2292
# ----------------------
2293
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2294
# that executables *can* be run.
2297
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2298
if { { ac_try="$ac_link"
2300
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2301
*) ac_try_echo=$ac_try;;
2303
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2304
$as_echo "$ac_try_echo"; } >&5
2305
(eval "$ac_link") 2>&5
2307
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2308
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2309
{ { case "(($ac_try" in
2310
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2311
*) ac_try_echo=$ac_try;;
2313
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2314
$as_echo "$ac_try_echo"; } >&5
2315
(eval "$ac_try") 2>&5
2317
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2318
test $ac_status = 0; }; }; then :
2321
$as_echo "$as_me: program exited with status $ac_status" >&5
2322
$as_echo "$as_me: failed program was:" >&5
2323
sed 's/^/| /' conftest.$ac_ext >&5
2325
ac_retval=$ac_status
2327
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2328
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2329
as_fn_set_status $ac_retval
2333
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2334
# -------------------------------------------------------
2335
# Tests whether HEADER exists and can be compiled using the include files in
2336
# INCLUDES, setting the cache variable VAR accordingly.
2337
ac_fn_c_check_header_compile ()
2339
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2340
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2341
$as_echo_n "checking for $2... " >&6; }
2342
if eval "test \"\${$3+set}\"" = set; then :
2343
$as_echo_n "(cached) " >&6
2345
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346
/* end confdefs.h. */
2350
if ac_fn_c_try_compile "$LINENO"; then :
2355
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2359
$as_echo "$ac_res" >&6; }
2360
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2362
} # ac_fn_c_check_header_compile
2364
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2365
# --------------------------------------------
2366
# Tries to find the compile-time value of EXPR in a program that includes
2367
# INCLUDES, setting VAR accordingly. Returns whether the value could be
2369
ac_fn_c_compute_int ()
2371
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2372
if test "$cross_compiling" = yes; then
2373
# Depending upon the size, compute the lo and hi bounds.
2374
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375
/* end confdefs.h. */
2380
static int test_array [1 - 2 * !(($2) >= 0)];
2387
if ac_fn_c_try_compile "$LINENO"; then :
2390
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391
/* end confdefs.h. */
2396
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2403
if ac_fn_c_try_compile "$LINENO"; then :
2404
ac_hi=$ac_mid; break
2406
as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2407
if test $ac_lo -le $ac_mid; then
2411
as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2413
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2416
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417
/* end confdefs.h. */
2422
static int test_array [1 - 2 * !(($2) < 0)];
2429
if ac_fn_c_try_compile "$LINENO"; then :
2432
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2433
/* end confdefs.h. */
2438
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2445
if ac_fn_c_try_compile "$LINENO"; then :
2446
ac_lo=$ac_mid; break
2448
as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2449
if test $ac_mid -le $ac_hi; then
2453
as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2455
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2460
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2462
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2463
# Binary search between lo and hi bounds.
2464
while test "x$ac_lo" != "x$ac_hi"; do
2465
as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2466
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467
/* end confdefs.h. */
2472
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2479
if ac_fn_c_try_compile "$LINENO"; then :
2482
as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2484
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2487
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2491
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2492
/* end confdefs.h. */
2494
static long int longval () { return $2; }
2495
static unsigned long int ulongval () { return $2; }
2502
FILE *f = fopen ("conftest.val", "w");
2507
long int i = longval ();
2510
fprintf (f, "%ld", i);
2514
unsigned long int i = ulongval ();
2517
fprintf (f, "%lu", i);
2519
/* Do not output a trailing newline, as this causes \r\n confusion
2520
on some platforms. */
2521
return ferror (f) || fclose (f) != 0;
2527
if ac_fn_c_try_run "$LINENO"; then :
2528
echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2532
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2533
conftest.$ac_objext conftest.beam conftest.$ac_ext
2537
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2538
as_fn_set_status $ac_retval
2540
} # ac_fn_c_compute_int
2542
# ac_fn_c_check_func LINENO FUNC VAR
2543
# ----------------------------------
2544
# Tests whether FUNC exists, setting the cache variable VAR accordingly
2545
ac_fn_c_check_func ()
2547
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2548
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2549
$as_echo_n "checking for $2... " >&6; }
2550
if eval "test \"\${$3+set}\"" = set; then :
2551
$as_echo_n "(cached) " >&6
2553
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554
/* end confdefs.h. */
2555
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2556
For example, HP-UX 11i <limits.h> declares gettimeofday. */
2557
#define $2 innocuous_$2
2559
/* System header to define __stub macros and hopefully few prototypes,
2560
which can conflict with char $2 (); below.
2561
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2562
<limits.h> exists even on freestanding compilers. */
2565
# include <limits.h>
2567
# include <assert.h>
2572
/* Override any GCC internal prototype to avoid an error.
2573
Use char because int might match the return type of a GCC
2574
builtin and then its argument prototype would still apply. */
2579
/* The GNU C library defines this for functions which it implements
2580
to always fail with ENOSYS. Some functions are actually named
2581
something starting with __ and the normal name is an alias. */
2582
#if defined __stub_$2 || defined __stub___$2
2594
if ac_fn_c_try_link "$LINENO"; then :
2599
rm -f core conftest.err conftest.$ac_objext \
2600
conftest$ac_exeext conftest.$ac_ext
2603
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2604
$as_echo "$ac_res" >&6; }
2605
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2607
} # ac_fn_c_check_func
2609
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2610
# ----------------------------------------------------
2611
# Tries to find if the field MEMBER exists in type AGGR, after including
2612
# INCLUDES, setting cache variable VAR accordingly.
2613
ac_fn_c_check_member ()
2615
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2616
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2617
$as_echo_n "checking for $2.$3... " >&6; }
2618
if eval "test \"\${$4+set}\"" = set; then :
2619
$as_echo_n "(cached) " >&6
2621
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2622
/* end confdefs.h. */
2634
if ac_fn_c_try_compile "$LINENO"; then :
2637
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2638
/* end confdefs.h. */
2644
if (sizeof ac_aggr.$3)
2650
if ac_fn_c_try_compile "$LINENO"; then :
2655
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2657
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2660
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2661
$as_echo "$ac_res" >&6; }
2662
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2664
} # ac_fn_c_check_member
2666
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2667
# ---------------------------------------------
2668
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2670
ac_fn_c_check_decl ()
2672
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2673
as_decl_name=`echo $2|sed 's/ *(.*//'`
2674
as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2675
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2676
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2677
if eval "test \"\${$3+set}\"" = set; then :
2678
$as_echo_n "(cached) " >&6
2680
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2681
/* end confdefs.h. */
2686
#ifndef $as_decl_name
2688
(void) $as_decl_use;
2690
(void) $as_decl_name;
2698
if ac_fn_c_try_compile "$LINENO"; then :
2703
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2706
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2707
$as_echo "$ac_res" >&6; }
2708
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2710
} # ac_fn_c_check_decl
2712
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2713
# -------------------------------------------
2714
# Tests whether TYPE exists after having included INCLUDES, setting cache
2715
# variable VAR accordingly.
2716
ac_fn_c_check_type ()
2718
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2719
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2720
$as_echo_n "checking for $2... " >&6; }
2721
if eval "test \"\${$3+set}\"" = set; then :
2722
$as_echo_n "(cached) " >&6
2725
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2726
/* end confdefs.h. */
2737
if ac_fn_c_try_compile "$LINENO"; then :
2738
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2739
/* end confdefs.h. */
2750
if ac_fn_c_try_compile "$LINENO"; then :
2755
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2757
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2760
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2761
$as_echo "$ac_res" >&6; }
2762
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2764
} # ac_fn_c_check_type
2765
cat >config.log <<_ACEOF
2766
This file contains any messages produced by compilers while
2767
running configure, to aid debugging if configure makes a mistake.
2769
It was created by GRUB $as_me 1.99~20101119-1, which was
2770
generated by GNU Autoconf 2.67. Invocation command line was
2782
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2783
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2784
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2785
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2786
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2788
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2789
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2791
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2792
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2793
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2794
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2795
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2796
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2797
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2801
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805
test -z "$as_dir" && as_dir=.
2806
$as_echo "PATH: $as_dir"
2822
# Keep a trace of the command line.
2823
# Strip out --no-create and --no-recursion so they do not pile up.
2824
# Strip out --silent because we don't want to record it for future runs.
2825
# Also quote any args containing shell meta-characters.
2826
# Make two passes to allow for proper duplicate-argument suppression.
2830
ac_must_keep_next=false
2836
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2837
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
2838
| -silent | --silent | --silen | --sile | --sil)
2841
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2844
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2846
as_fn_append ac_configure_args1 " '$ac_arg'"
2847
if test $ac_must_keep_next = true; then
2848
ac_must_keep_next=false # Got value, back to normal.
2851
*=* | --config-cache | -C | -disable-* | --disable-* \
2852
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2853
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2854
| -with-* | --with-* | -without-* | --without-* | --x)
2855
case "$ac_configure_args0 " in
2856
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2859
-* ) ac_must_keep_next=true ;;
2862
as_fn_append ac_configure_args " '$ac_arg'"
2867
{ ac_configure_args0=; unset ac_configure_args0;}
2868
{ ac_configure_args1=; unset ac_configure_args1;}
2870
# When interrupted or exit'd, cleanup temporary files, and complete
2871
# config.log. We remove comments because anyway the quotes in there
2872
# would cause problems or look ugly.
2873
# WARNING: Use '\'' to represent an apostrophe within the trap.
2874
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2875
trap 'exit_status=$?
2876
# Save into config.log some information that might help in debugging.
2880
$as_echo "## ---------------- ##
2881
## Cache variables. ##
2882
## ---------------- ##"
2884
# The following way of writing the cache mishandles newlines in values,
2886
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2887
eval ac_val=\$$ac_var
2891
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2892
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2895
_ | IFS | as_nl) ;; #(
2896
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2897
*) { eval $ac_var=; unset $ac_var;} ;;
2902
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2903
*${as_nl}ac_space=\ *)
2905
"s/'\''/'\''\\\\'\'''\''/g;
2906
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2909
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2916
$as_echo "## ----------------- ##
2917
## Output variables. ##
2918
## ----------------- ##"
2920
for ac_var in $ac_subst_vars
2922
eval ac_val=\$$ac_var
2924
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2926
$as_echo "$ac_var='\''$ac_val'\''"
2930
if test -n "$ac_subst_files"; then
2931
$as_echo "## ------------------- ##
2932
## File substitutions. ##
2933
## ------------------- ##"
2935
for ac_var in $ac_subst_files
2937
eval ac_val=\$$ac_var
2939
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2941
$as_echo "$ac_var='\''$ac_val'\''"
2946
if test -s confdefs.h; then
2947
$as_echo "## ----------- ##
2954
test "$ac_signal" != 0 &&
2955
$as_echo "$as_me: caught signal $ac_signal"
2956
$as_echo "$as_me: exit $exit_status"
2958
rm -f core *.core core.conftest.* &&
2959
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2962
for ac_signal in 1 2 13 15; do
2963
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2967
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2968
rm -f -r conftest* confdefs.h
2970
$as_echo "/* confdefs.h */" > confdefs.h
2972
# Predefined preprocessor variables.
2974
cat >>confdefs.h <<_ACEOF
2975
#define PACKAGE_NAME "$PACKAGE_NAME"
2978
cat >>confdefs.h <<_ACEOF
2979
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2982
cat >>confdefs.h <<_ACEOF
2983
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2986
cat >>confdefs.h <<_ACEOF
2987
#define PACKAGE_STRING "$PACKAGE_STRING"
2990
cat >>confdefs.h <<_ACEOF
2991
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2994
cat >>confdefs.h <<_ACEOF
2995
#define PACKAGE_URL "$PACKAGE_URL"
2999
# Let the site file select an alternate cache file if it wants to.
3000
# Prefer an explicitly selected file to automatically selected ones.
3003
if test -n "$CONFIG_SITE"; then
3004
# We do not want a PATH search for config.site.
3005
case $CONFIG_SITE in #((
3006
-*) ac_site_file1=./$CONFIG_SITE;;
3007
*/*) ac_site_file1=$CONFIG_SITE;;
3008
*) ac_site_file1=./$CONFIG_SITE;;
3010
elif test "x$prefix" != xNONE; then
3011
ac_site_file1=$prefix/share/config.site
3012
ac_site_file2=$prefix/etc/config.site
3014
ac_site_file1=$ac_default_prefix/share/config.site
3015
ac_site_file2=$ac_default_prefix/etc/config.site
3017
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3019
test "x$ac_site_file" = xNONE && continue
3020
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3021
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3022
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3023
sed 's/^/| /' "$ac_site_file" >&5
3025
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3026
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3027
as_fn_error $? "failed to load site script $ac_site_file
3028
See \`config.log' for more details" "$LINENO" 5 ; }
3032
if test -r "$cache_file"; then
3033
# Some versions of bash will fail to source /dev/null (special files
3034
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
3035
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3036
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3037
$as_echo "$as_me: loading cache $cache_file" >&6;}
3039
[\\/]* | ?:[\\/]* ) . "$cache_file";;
3040
*) . "./$cache_file";;
3044
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3045
$as_echo "$as_me: creating cache $cache_file" >&6;}
3049
gt_needs="$gt_needs "
3050
as_fn_append ac_func_list " flockfile"
3051
as_fn_append ac_func_list " funlockfile"
3052
as_fn_append ac_header_list " features.h"
3053
as_fn_append ac_header_list " linewrap.h"
3054
as_fn_append ac_func_list " btowc"
3055
as_fn_append ac_header_list " errno.h"
3056
as_fn_append ac_header_list " float.h"
3057
as_fn_append ac_func_list " isblank"
3058
as_fn_append ac_func_list " iswctype"
3059
as_fn_append ac_func_list " mbsrtowcs"
3060
as_fn_append ac_func_list " mempcpy"
3061
as_fn_append ac_func_list " wmemchr"
3062
as_fn_append ac_func_list " wmemcpy"
3063
as_fn_append ac_func_list " wmempcpy"
3064
as_fn_append ac_header_list " wctype.h"
3065
as_fn_append ac_func_list " getdelim"
3066
gl_getopt_required=GNU
3067
as_fn_append ac_header_list " getopt.h"
3068
as_fn_append ac_header_list " langinfo.h"
3069
as_fn_append ac_func_list " mbsinit"
3070
as_fn_append ac_func_list " mbrtowc"
3071
as_fn_append ac_header_list " sys/mman.h"
3072
as_fn_append ac_func_list " mprotect"
3073
as_fn_append ac_func_list " memchr"
3074
as_fn_append ac_func_list " nl_langinfo"
3075
as_fn_append ac_header_list " locale.h"
3076
as_fn_append ac_func_list " wcscoll"
3077
as_fn_append ac_func_list " sleep"
3078
as_fn_append ac_header_list " stddef.h"
3079
as_fn_append ac_header_list " stdint.h"
3080
as_fn_append ac_header_list " wchar.h"
3081
as_fn_append ac_header_list " stdio.h"
3082
as_fn_append ac_header_list " stdlib.h"
3083
as_fn_append ac_header_list " sys/socket.h"
3084
as_fn_append ac_header_list " string.h"
3085
as_fn_append ac_header_list " strings.h"
3086
as_fn_append ac_func_list " strndup"
3087
as_fn_append ac_header_list " sys/wait.h"
3088
as_fn_append ac_header_list " sysexits.h"
3089
as_fn_append ac_header_list " unistd.h"
3090
as_fn_append ac_func_list " vasnprintf"
3091
as_fn_append ac_func_list " wcrtomb"
3092
as_fn_append ac_func_list " iswcntrl"
3093
as_fn_append ac_func_list " iswblank"
3094
# Check that the precious variables saved in the cache have kept the same
3096
ac_cache_corrupted=false
3097
for ac_var in $ac_precious_vars; do
3098
eval ac_old_set=\$ac_cv_env_${ac_var}_set
3099
eval ac_new_set=\$ac_env_${ac_var}_set
3100
eval ac_old_val=\$ac_cv_env_${ac_var}_value
3101
eval ac_new_val=\$ac_env_${ac_var}_value
3102
case $ac_old_set,$ac_new_set in
3104
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3105
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3106
ac_cache_corrupted=: ;;
3108
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3109
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3110
ac_cache_corrupted=: ;;
3113
if test "x$ac_old_val" != "x$ac_new_val"; then
3114
# differences in whitespace do not lead to failure.
3115
ac_old_val_w=`echo x $ac_old_val`
3116
ac_new_val_w=`echo x $ac_new_val`
3117
if test "$ac_old_val_w" != "$ac_new_val_w"; then
3118
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3119
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3120
ac_cache_corrupted=:
3122
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3123
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3124
eval $ac_var=\$ac_old_val
3126
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3127
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3128
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3129
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3132
# Pass precious variables to config.status.
3133
if test "$ac_new_set" = set; then
3135
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3136
*) ac_arg=$ac_var=$ac_new_val ;;
3138
case " $ac_configure_args " in
3139
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3140
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
3144
if $ac_cache_corrupted; then
3145
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3146
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3147
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3148
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3149
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3151
## -------------------- ##
3152
## Main body of script. ##
3153
## -------------------- ##
3156
ac_cpp='$CPP $CPPFLAGS'
3157
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3158
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3159
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3164
for ac_dir in build-aux "$srcdir"/build-aux; do
3165
if test -f "$ac_dir/install-sh"; then
3167
ac_install_sh="$ac_aux_dir/install-sh -c"
3169
elif test -f "$ac_dir/install.sh"; then
3171
ac_install_sh="$ac_aux_dir/install.sh -c"
3173
elif test -f "$ac_dir/shtool"; then
3175
ac_install_sh="$ac_aux_dir/shtool install -c"
3179
if test -z "$ac_aux_dir"; then
3180
as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3183
# These three variables are undocumented and unsupported,
3184
# and are intended to be withdrawn in a future Autoconf release.
3185
# They can cause serious problems if a builder's source tree is in a directory
3186
# whose full name contains unusual characters.
3187
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3188
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3189
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3193
# We don't want -g -O2 by default in CFLAGS
3196
# Checks for host and target systems.
3197
# Make sure we can run config.sub.
3198
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3199
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3201
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3202
$as_echo_n "checking build system type... " >&6; }
3203
if test "${ac_cv_build+set}" = set; then :
3204
$as_echo_n "(cached) " >&6
3206
ac_build_alias=$build_alias
3207
test "x$ac_build_alias" = x &&
3208
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3209
test "x$ac_build_alias" = x &&
3210
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3211
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3212
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3215
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3216
$as_echo "$ac_cv_build" >&6; }
3217
case $ac_cv_build in
3219
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3222
ac_save_IFS=$IFS; IFS='-'
3228
# Remember, the first character of IFS is used to create $*,
3229
# except with old shells:
3232
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3235
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3236
$as_echo_n "checking host system type... " >&6; }
3237
if test "${ac_cv_host+set}" = set; then :
3238
$as_echo_n "(cached) " >&6
3240
if test "x$host_alias" = x; then
3241
ac_cv_host=$ac_cv_build
3243
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3244
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3248
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3249
$as_echo "$ac_cv_host" >&6; }
3252
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3255
ac_save_IFS=$IFS; IFS='-'
3261
# Remember, the first character of IFS is used to create $*,
3262
# except with old shells:
3265
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3268
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3269
$as_echo_n "checking target system type... " >&6; }
3270
if test "${ac_cv_target+set}" = set; then :
3271
$as_echo_n "(cached) " >&6
3273
if test "x$target_alias" = x; then
3274
ac_cv_target=$ac_cv_host
3276
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3277
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3281
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3282
$as_echo "$ac_cv_target" >&6; }
3283
case $ac_cv_target in
3285
*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
3287
target=$ac_cv_target
3288
ac_save_IFS=$IFS; IFS='-'
3294
# Remember, the first character of IFS is used to create $*,
3295
# except with old shells:
3298
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3301
# The aliases save the names the user supplied, while $host etc.
3302
# will get canonicalized.
3303
test -n "$target_alias" &&
3304
test "$program_prefix$program_suffix$program_transform_name" = \
3306
program_prefix=${target_alias}-
3308
am__api_version='1.11'
3310
# Find a good install program. We prefer a C program (faster),
3311
# so one script is as good as another. But avoid the broken or
3312
# incompatible versions:
3313
# SysV /etc/install, /usr/sbin/install
3314
# SunOS /usr/etc/install
3315
# IRIX /sbin/install
3317
# AmigaOS /C/install, which installs bootblocks on floppy discs
3318
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3319
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3320
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3321
# OS/2's system install, which has a completely different semantic
3322
# ./install, which can be erroneously created by make from ./install.sh.
3323
# Reject install programs that cannot install multiple files.
3324
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3325
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3326
if test -z "$INSTALL"; then
3327
if test "${ac_cv_path_install+set}" = set; then :
3328
$as_echo_n "(cached) " >&6
3330
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334
test -z "$as_dir" && as_dir=.
3335
# Account for people who put trailing slashes in PATH elements.
3336
case $as_dir/ in #((
3337
./ | .// | /[cC]/* | \
3338
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3339
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3342
# OSF1 and SCO ODT 3.0 have their own names for install.
3343
# Don't use installbsd from OSF since it installs stuff as root
3345
for ac_prog in ginstall scoinst install; do
3346
for ac_exec_ext in '' $ac_executable_extensions; do
3347
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3348
if test $ac_prog = install &&
3349
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3350
# AIX install. It has an incompatible calling convention.
3352
elif test $ac_prog = install &&
3353
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3354
# program-specific install script used by HP pwplus--don't use.
3357
rm -rf conftest.one conftest.two conftest.dir
3358
echo one > conftest.one
3359
echo two > conftest.two
3361
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3362
test -s conftest.one && test -s conftest.two &&
3363
test -s conftest.dir/conftest.one &&
3364
test -s conftest.dir/conftest.two
3366
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3379
rm -rf conftest.one conftest.two conftest.dir
3382
if test "${ac_cv_path_install+set}" = set; then
3383
INSTALL=$ac_cv_path_install
3385
# As a last resort, use the slow shell script. Don't cache a
3386
# value for INSTALL within a source directory, because that will
3387
# break other packages using the cache if that directory is
3388
# removed, or if the value is a relative name.
3389
INSTALL=$ac_install_sh
3392
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3393
$as_echo "$INSTALL" >&6; }
3395
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3396
# It thinks the first close brace ends the variable substitution.
3397
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3399
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3401
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3403
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3404
$as_echo_n "checking whether build environment is sane... " >&6; }
3407
echo timestamp > conftest.file
3408
# Reject unsafe characters in $srcdir or the absolute working directory
3409
# name. Accept space and tab only in the latter.
3413
*[\\\"\#\$\&\'\`$am_lf]*)
3414
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
3417
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3418
as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
3421
# Do `set' in a subshell so we don't clobber the current shell's
3422
# arguments. Must try -L first in case configure is actually a
3423
# symlink; some systems play weird games with the mod time of symlinks
3424
# (eg FreeBSD returns the mod time of the symlink's containing
3427
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3428
if test "$*" = "X"; then
3430
set X `ls -t "$srcdir/configure" conftest.file`
3433
if test "$*" != "X $srcdir/configure conftest.file" \
3434
&& test "$*" != "X conftest.file $srcdir/configure"; then
3436
# If neither matched, then we have a broken ls. This can happen
3437
# if, for instance, CONFIG_SHELL is bash and it inherits a
3438
# broken ls alias from the environment. This has actually
3439
# happened. Such a system could not be considered "sane".
3440
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3441
alias in your environment" "$LINENO" 5
3444
test "$2" = conftest.file
3450
as_fn_error $? "newly created file is older than distributed files!
3451
Check your system clock" "$LINENO" 5
3453
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3454
$as_echo "yes" >&6; }
3455
test "$program_prefix" != NONE &&
3456
program_transform_name="s&^&$program_prefix&;$program_transform_name"
3457
# Use a double $ so make ignores it.
3458
test "$program_suffix" != NONE &&
3459
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3460
# Double any \ or $.
3461
# By default was `s,x,x', remove it if useless.
3462
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3463
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3465
# expand $ac_aux_dir to an absolute path
3466
am_aux_dir=`cd $ac_aux_dir && pwd`
3468
if test x"${MISSING+set}" != xset; then
3471
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3473
MISSING="\${SHELL} $am_aux_dir/missing" ;;
3476
# Use eval to expand $SHELL
3477
if eval "$MISSING --run true"; then
3478
am_missing_run="$MISSING --run "
3481
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3482
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3485
if test x"${install_sh}" != xset; then
3488
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3490
install_sh="\${SHELL} $am_aux_dir/install-sh"
3494
# Installed binaries are usually stripped using `strip' when the user
3495
# run `make install-strip'. However `strip' might not be the right
3496
# tool to use in cross-compilation environments, therefore Automake
3497
# will honor the `STRIP' environment variable to overrule this program.
3498
if test "$cross_compiling" != no; then
3499
if test -n "$ac_tool_prefix"; then
3500
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3501
set dummy ${ac_tool_prefix}strip; ac_word=$2
3502
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3503
$as_echo_n "checking for $ac_word... " >&6; }
3504
if test "${ac_cv_prog_STRIP+set}" = set; then :
3505
$as_echo_n "(cached) " >&6
3507
if test -n "$STRIP"; then
3508
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3510
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514
test -z "$as_dir" && as_dir=.
3515
for ac_exec_ext in '' $ac_executable_extensions; do
3516
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3517
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3518
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3527
STRIP=$ac_cv_prog_STRIP
3528
if test -n "$STRIP"; then
3529
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3530
$as_echo "$STRIP" >&6; }
3532
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533
$as_echo "no" >&6; }
3538
if test -z "$ac_cv_prog_STRIP"; then
3540
# Extract the first word of "strip", so it can be a program name with args.
3541
set dummy strip; ac_word=$2
3542
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543
$as_echo_n "checking for $ac_word... " >&6; }
3544
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3545
$as_echo_n "(cached) " >&6
3547
if test -n "$ac_ct_STRIP"; then
3548
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3550
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554
test -z "$as_dir" && as_dir=.
3555
for ac_exec_ext in '' $ac_executable_extensions; do
3556
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3557
ac_cv_prog_ac_ct_STRIP="strip"
3558
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3567
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3568
if test -n "$ac_ct_STRIP"; then
3569
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3570
$as_echo "$ac_ct_STRIP" >&6; }
3572
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573
$as_echo "no" >&6; }
3576
if test "x$ac_ct_STRIP" = x; then
3579
case $cross_compiling:$ac_tool_warned in
3581
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3582
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3583
ac_tool_warned=yes ;;
3588
STRIP="$ac_cv_prog_STRIP"
3592
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3594
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3595
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3596
if test -z "$MKDIR_P"; then
3597
if test "${ac_cv_path_mkdir+set}" = set; then :
3598
$as_echo_n "(cached) " >&6
3600
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3604
test -z "$as_dir" && as_dir=.
3605
for ac_prog in mkdir gmkdir; do
3606
for ac_exec_ext in '' $ac_executable_extensions; do
3607
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3608
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3609
'mkdir (GNU coreutils) '* | \
3610
'mkdir (coreutils) '* | \
3611
'mkdir (fileutils) '4.1*)
3612
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3622
test -d ./--version && rmdir ./--version
3623
if test "${ac_cv_path_mkdir+set}" = set; then
3624
MKDIR_P="$ac_cv_path_mkdir -p"
3626
# As a last resort, use the slow shell script. Don't cache a
3627
# value for MKDIR_P within a source directory, because that will
3628
# break other packages using the cache if that directory is
3629
# removed, or if the value is a relative name.
3630
MKDIR_P="$ac_install_sh -d"
3633
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3634
$as_echo "$MKDIR_P" >&6; }
3639
[\\/$]* | ?:[\\/]*) ;;
3640
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3643
for ac_prog in gawk mawk nawk awk
3645
# Extract the first word of "$ac_prog", so it can be a program name with args.
3646
set dummy $ac_prog; ac_word=$2
3647
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3648
$as_echo_n "checking for $ac_word... " >&6; }
3649
if test "${ac_cv_prog_AWK+set}" = set; then :
3650
$as_echo_n "(cached) " >&6
3652
if test -n "$AWK"; then
3653
ac_cv_prog_AWK="$AWK" # Let the user override the test.
3655
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659
test -z "$as_dir" && as_dir=.
3660
for ac_exec_ext in '' $ac_executable_extensions; do
3661
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3662
ac_cv_prog_AWK="$ac_prog"
3663
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3673
if test -n "$AWK"; then
3674
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3675
$as_echo "$AWK" >&6; }
3677
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678
$as_echo "no" >&6; }
3682
test -n "$AWK" && break
3685
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3686
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3688
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3689
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3690
$as_echo_n "(cached) " >&6
3692
cat >conftest.make <<\_ACEOF
3695
@echo '@@@%%%=$(MAKE)=@@@%%%'
3697
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3698
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3700
eval ac_cv_prog_make_${ac_make}_set=yes;;
3702
eval ac_cv_prog_make_${ac_make}_set=no;;
3706
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3707
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3708
$as_echo "yes" >&6; }
3711
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712
$as_echo "no" >&6; }
3713
SET_MAKE="MAKE=${MAKE-make}"
3716
rm -rf .tst 2>/dev/null
3717
mkdir .tst 2>/dev/null
3718
if test -d .tst; then
3723
rmdir .tst 2>/dev/null
3725
if test "`cd $srcdir && pwd`" != "`pwd`"; then
3726
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3727
# is not polluted with repeated "-I."
3728
am__isrc=' -I$(srcdir)'
3729
# test to see if srcdir already configured
3730
if test -f $srcdir/config.status; then
3731
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3735
# test whether we have cygpath
3736
if test -z "$CYGPATH_W"; then
3737
if (cygpath --version) >/dev/null 2>/dev/null; then
3738
CYGPATH_W='cygpath -w'
3745
# Define the identity of the package.
3747
VERSION='1.99~20101119-1'
3750
cat >>confdefs.h <<_ACEOF
3751
#define PACKAGE "$PACKAGE"
3755
cat >>confdefs.h <<_ACEOF
3756
#define VERSION "$VERSION"
3759
# Some tools Automake needs.
3761
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3764
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3767
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3770
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3773
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3775
# We need awk for the "check" target. The system "awk" is bad on
3777
# Always define AMTAR for backward compatibility.
3779
AMTAR=${AMTAR-"${am_missing_run}tar"}
3781
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3789
ac_config_headers="$ac_config_headers config-util.h"
3792
# Program name transformations
3795
# Optimization flag. Allow user to override.
3796
if test "x$TARGET_CFLAGS" = x; then
3797
TARGET_CFLAGS="$TARGET_CFLAGS -Os"
3800
# Default HOST_CPPFLAGS
3801
HOST_CPPFLAGS="$HOST_CPPFLAGS -Wall -W"
3802
HOST_CPPFLAGS="$HOST_CPPFLAGS -I\$(top_builddir)/include"
3803
HOST_CPPFLAGS="$HOST_CPPFLAGS -DGRUB_UTIL=1"
3804
HOST_CPPFLAGS="$HOST_CPPFLAGS -DGRUB_LIBDIR=\\\"\$(pkglibdir)\\\""
3805
HOST_CPPFLAGS="$HOST_CPPFLAGS -DLOCALEDIR=\\\"\$(localedir)\\\""
3807
TARGET_CPPFLAGS="$TARGET_CPPFLAGS -Wall -W"
3808
TARGET_CPPFLAGS="$TARGET_CPPFLAGS -I\$(top_srcdir)/include"
3809
TARGET_CPPFLAGS="$TARGET_CPPFLAGS -I\$(top_builddir)/include"
3811
case "$target_cpu" in
3812
i[3456]86) target_cpu=i386 ;;
3813
amd64) target_cpu=x86_64 ;;
3814
sparc) target_cpu=sparc64 ;;
3817
machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_CPU_MIPSEL=1";
3821
machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_CPU_MIPS=1";
3825
# Specify the platform (such as firmware).
3827
# Check whether --with-platform was given.
3828
if test "${with_platform+set}" = set; then :
3829
withval=$with_platform;
3833
# Guess the platform if not specified.
3834
if test "x$with_platform" = x; then
3835
case "$target_cpu"-"$target_vendor" in
3836
i386-apple) platform=efi ;;
3837
i386-*) platform=pc ;;
3838
x86_64-apple) platform=efi ;;
3839
x86_64-*) platform=pc ;;
3840
powerpc-*) platform=ieee1275 ;;
3841
powerpc64-*) platform=ieee1275 ;;
3842
sparc64-*) platform=ieee1275 ;;
3843
mips-*) platform=yeeloong ;;
3844
*) as_fn_error $? "unsupported CPU: \"$target_cpu\"" "$LINENO" 5 ;;
3847
platform="$with_platform"
3850
# Adjust CPU unless target was explicitly specified.
3851
if test -z "$target_alias"; then
3852
case "$target_cpu"-"$platform" in
3855
x86_64-*) target_cpu=i386 ;;
3856
powerpc64-ieee1275) target_cpu=powerpc ;;
3860
# Check if the platform is supported, make final adjustments.
3861
case "$target_cpu"-"$platform" in
3867
i386-linuxbios) platform=coreboot ;;
3870
powerpc-ieee1275) ;;
3871
sparc64-ieee1275) ;;
3875
*) as_fn_error $? "platform \"$platform\" is not supported for target CPU \"$target_cpu\"" "$LINENO" 5 ;;
3878
case "$target_cpu" in
3879
i386 | powerpc) target_m32=1 ;;
3880
x86_64 | sparc64) target_m64=1 ;;
3884
mingw32*) host_os=cygwin ;;
3887
# This normalizes the names, and creates a new variable ("host_kernel")
3888
# while at it, since the mapping is not always 1:1 (e.g. different OSes
3889
# using the same kernel type).
3891
gnu*) host_kernel=hurd ;;
3892
linux*) host_kernel=linux ;;
3893
freebsd* | kfreebsd*-gnu) host_kernel=kfreebsd ;;
3894
netbsd*) host_kernel=netbsd ;;
3895
cygwin) host_kernel=windows ;;
3899
coreboot) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_COREBOOT=1" ;;
3900
multiboot) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MULTIBOOT=1" ;;
3901
efi) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_EFI=1" ;;
3902
ieee1275) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_IEEE1275=1" ;;
3903
qemu) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_QEMU=1" ;;
3904
pc) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_PCBIOS=1" ;;
3905
emu) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_EMU=1" ;;
3906
yeeloong) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_YEELOONG=1 -DGRUB_MACHINE_MIPS_BONITO=1" ;;
3907
qemu-mips) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_QEMU_MIPS=1 -DGRUB_MACHINE_MIPS_BONITO=1" ;;
3909
case "$target_cpu" in
3910
mips) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS=1" ;;
3911
sparc64) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_SPARC64=1" ;;
3913
machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE=`echo ${target_cpu}_$platform | sed y,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ,`"
3915
HOST_CPPFLAGS="$HOST_CPPFLAGS $machine_CPPFLAGS"
3916
TARGET_CPPFLAGS="$TARGET_CPPFLAGS $machine_CPPFLAGS"
3925
# Define default variables
3928
# Because /boot is used for the boot block in NetBSD and OpenBSD,
3930
*) bootdirname='boot' ;;
3932
bootdirname=`echo "$bootdirname" | sed "$program_transform_name"`
3935
cat >>confdefs.h <<_ACEOF
3936
#define GRUB_BOOT_DIR_NAME "$bootdirname"
3940
grubdirname=`echo "$PACKAGE" | sed "$program_transform_name"`
3943
cat >>confdefs.h <<_ACEOF
3944
#define GRUB_DIR_NAME "$grubdirname"
3949
# Checks for build programs.
3952
# Although cmp is listed in the GNU Coding Standards as a command which
3953
# can used directly, OpenBSD lacks cmp in the default installation.
3956
# Extract the first word of "$ac_prog", so it can be a program name with args.
3957
set dummy $ac_prog; ac_word=$2
3958
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3959
$as_echo_n "checking for $ac_word... " >&6; }
3960
if test "${ac_cv_prog_CMP+set}" = set; then :
3961
$as_echo_n "(cached) " >&6
3963
if test -n "$CMP"; then
3964
ac_cv_prog_CMP="$CMP" # Let the user override the test.
3966
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970
test -z "$as_dir" && as_dir=.
3971
for ac_exec_ext in '' $ac_executable_extensions; do
3972
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3973
ac_cv_prog_CMP="$ac_prog"
3974
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3984
if test -n "$CMP"; then
3985
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
3986
$as_echo "$CMP" >&6; }
3988
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3989
$as_echo "no" >&6; }
3993
test -n "$CMP" && break
3996
if test "x$CMP" = x; then
3997
as_fn_error $? "cmp is not found" "$LINENO" 5
4000
for ac_prog in bison
4002
# Extract the first word of "$ac_prog", so it can be a program name with args.
4003
set dummy $ac_prog; ac_word=$2
4004
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4005
$as_echo_n "checking for $ac_word... " >&6; }
4006
if test "${ac_cv_prog_YACC+set}" = set; then :
4007
$as_echo_n "(cached) " >&6
4009
if test -n "$YACC"; then
4010
ac_cv_prog_YACC="$YACC" # Let the user override the test.
4012
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016
test -z "$as_dir" && as_dir=.
4017
for ac_exec_ext in '' $ac_executable_extensions; do
4018
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4019
ac_cv_prog_YACC="$ac_prog"
4020
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4029
YACC=$ac_cv_prog_YACC
4030
if test -n "$YACC"; then
4031
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4032
$as_echo "$YACC" >&6; }
4034
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4035
$as_echo "no" >&6; }
4039
test -n "$YACC" && break
4042
if test "x$YACC" = x; then
4043
as_fn_error $? "bison is not found" "$LINENO" 5
4048
for ext in pcf pcf.gz bdf bdf.gz ttf ttf.gz; do
4049
for dir in . /usr/src /usr/share/fonts/X11/misc /usr/share/fonts/unifont; do
4050
if test -f "$dir/unifont.$ext"; then
4051
FONT_SOURCE="$dir/unifont.$ext"
4057
if test "x$FONT_SOURCE" = x && ( test "x$platform" = xqemu || test "x$platform" = xyeeloong ); then
4058
as_fn_error $? "qemu and yeeloong ports need unifont" "$LINENO" 5
4063
if test -n "$ac_tool_prefix"; then
4064
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4065
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4066
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4067
$as_echo_n "checking for $ac_word... " >&6; }
4068
if test "${ac_cv_prog_RANLIB+set}" = set; then :
4069
$as_echo_n "(cached) " >&6
4071
if test -n "$RANLIB"; then
4072
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4074
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078
test -z "$as_dir" && as_dir=.
4079
for ac_exec_ext in '' $ac_executable_extensions; do
4080
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4081
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4082
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4091
RANLIB=$ac_cv_prog_RANLIB
4092
if test -n "$RANLIB"; then
4093
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4094
$as_echo "$RANLIB" >&6; }
4096
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4097
$as_echo "no" >&6; }
4102
if test -z "$ac_cv_prog_RANLIB"; then
4103
ac_ct_RANLIB=$RANLIB
4104
# Extract the first word of "ranlib", so it can be a program name with args.
4105
set dummy ranlib; ac_word=$2
4106
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4107
$as_echo_n "checking for $ac_word... " >&6; }
4108
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4109
$as_echo_n "(cached) " >&6
4111
if test -n "$ac_ct_RANLIB"; then
4112
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4114
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118
test -z "$as_dir" && as_dir=.
4119
for ac_exec_ext in '' $ac_executable_extensions; do
4120
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4121
ac_cv_prog_ac_ct_RANLIB="ranlib"
4122
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4131
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4132
if test -n "$ac_ct_RANLIB"; then
4133
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4134
$as_echo "$ac_ct_RANLIB" >&6; }
4136
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4137
$as_echo "no" >&6; }
4140
if test "x$ac_ct_RANLIB" = x; then
4143
case $cross_compiling:$ac_tool_warned in
4145
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4146
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4147
ac_tool_warned=yes ;;
4149
RANLIB=$ac_ct_RANLIB
4152
RANLIB="$ac_cv_prog_RANLIB"
4156
for ac_prog in gawk mawk nawk awk
4158
# Extract the first word of "$ac_prog", so it can be a program name with args.
4159
set dummy $ac_prog; ac_word=$2
4160
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4161
$as_echo_n "checking for $ac_word... " >&6; }
4162
if test "${ac_cv_prog_AWK+set}" = set; then :
4163
$as_echo_n "(cached) " >&6
4165
if test -n "$AWK"; then
4166
ac_cv_prog_AWK="$AWK" # Let the user override the test.
4168
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172
test -z "$as_dir" && as_dir=.
4173
for ac_exec_ext in '' $ac_executable_extensions; do
4174
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4175
ac_cv_prog_AWK="$ac_prog"
4176
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4186
if test -n "$AWK"; then
4187
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4188
$as_echo "$AWK" >&6; }
4190
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4191
$as_echo "no" >&6; }
4195
test -n "$AWK" && break
4198
DEPDIR="${am__leading_dot}deps"
4200
ac_config_commands="$ac_config_commands depfiles"
4203
am_make=${MAKE-make}
4204
cat > confinc << 'END'
4206
@echo this is the am__doit target
4209
# If we don't find an include directive, just comment out the code.
4210
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4211
$as_echo_n "checking for style of include used by $am_make... " >&6; }
4215
# First try GNU make style include.
4216
echo "include confinc" > confmf
4217
# Ignore all kinds of additional output from `make'.
4218
case `$am_make -s -f confmf 2> /dev/null` in #(
4219
*the\ am__doit\ target*)
4225
# Now try BSD make style include.
4226
if test "$am__include" = "#"; then
4227
echo '.include "confinc"' > confmf
4228
case `$am_make -s -f confmf 2> /dev/null` in #(
4229
*the\ am__doit\ target*)
4230
am__include=.include
4238
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4239
$as_echo "$_am_result" >&6; }
4240
rm -f confinc confmf
4242
# Check whether --enable-dependency-tracking was given.
4243
if test "${enable_dependency_tracking+set}" = set; then :
4244
enableval=$enable_dependency_tracking;
4247
if test "x$enable_dependency_tracking" != xno; then
4248
am_depcomp="$ac_aux_dir/depcomp"
4251
if test "x$enable_dependency_tracking" != xno; then
4261
ac_cpp='$CPP $CPPFLAGS'
4262
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4263
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4264
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4265
if test -n "$ac_tool_prefix"; then
4266
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4267
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4268
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4269
$as_echo_n "checking for $ac_word... " >&6; }
4270
if test "${ac_cv_prog_CC+set}" = set; then :
4271
$as_echo_n "(cached) " >&6
4273
if test -n "$CC"; then
4274
ac_cv_prog_CC="$CC" # Let the user override the test.
4276
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280
test -z "$as_dir" && as_dir=.
4281
for ac_exec_ext in '' $ac_executable_extensions; do
4282
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4283
ac_cv_prog_CC="${ac_tool_prefix}gcc"
4284
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4294
if test -n "$CC"; then
4295
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4296
$as_echo "$CC" >&6; }
4298
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4299
$as_echo "no" >&6; }
4304
if test -z "$ac_cv_prog_CC"; then
4306
# Extract the first word of "gcc", so it can be a program name with args.
4307
set dummy gcc; ac_word=$2
4308
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4309
$as_echo_n "checking for $ac_word... " >&6; }
4310
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4311
$as_echo_n "(cached) " >&6
4313
if test -n "$ac_ct_CC"; then
4314
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4316
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320
test -z "$as_dir" && as_dir=.
4321
for ac_exec_ext in '' $ac_executable_extensions; do
4322
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4323
ac_cv_prog_ac_ct_CC="gcc"
4324
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4333
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4334
if test -n "$ac_ct_CC"; then
4335
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4336
$as_echo "$ac_ct_CC" >&6; }
4338
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339
$as_echo "no" >&6; }
4342
if test "x$ac_ct_CC" = x; then
4345
case $cross_compiling:$ac_tool_warned in
4347
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4348
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4349
ac_tool_warned=yes ;;
4357
if test -z "$CC"; then
4358
if test -n "$ac_tool_prefix"; then
4359
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4360
set dummy ${ac_tool_prefix}cc; ac_word=$2
4361
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362
$as_echo_n "checking for $ac_word... " >&6; }
4363
if test "${ac_cv_prog_CC+set}" = set; then :
4364
$as_echo_n "(cached) " >&6
4366
if test -n "$CC"; then
4367
ac_cv_prog_CC="$CC" # Let the user override the test.
4369
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373
test -z "$as_dir" && as_dir=.
4374
for ac_exec_ext in '' $ac_executable_extensions; do
4375
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4376
ac_cv_prog_CC="${ac_tool_prefix}cc"
4377
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4387
if test -n "$CC"; then
4388
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4389
$as_echo "$CC" >&6; }
4391
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392
$as_echo "no" >&6; }
4398
if test -z "$CC"; then
4399
# Extract the first word of "cc", so it can be a program name with args.
4400
set dummy cc; ac_word=$2
4401
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4402
$as_echo_n "checking for $ac_word... " >&6; }
4403
if test "${ac_cv_prog_CC+set}" = set; then :
4404
$as_echo_n "(cached) " >&6
4406
if test -n "$CC"; then
4407
ac_cv_prog_CC="$CC" # Let the user override the test.
4410
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414
test -z "$as_dir" && as_dir=.
4415
for ac_exec_ext in '' $ac_executable_extensions; do
4416
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4417
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4418
ac_prog_rejected=yes
4422
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4429
if test $ac_prog_rejected = yes; then
4430
# We found a bogon in the path, so make sure we never use it.
4431
set dummy $ac_cv_prog_CC
4433
if test $# != 0; then
4434
# We chose a different compiler from the bogus one.
4435
# However, it has the same basename, so the bogon will be chosen
4436
# first if we set CC to just the basename; use the full file name.
4438
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4444
if test -n "$CC"; then
4445
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4446
$as_echo "$CC" >&6; }
4448
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449
$as_echo "no" >&6; }
4454
if test -z "$CC"; then
4455
if test -n "$ac_tool_prefix"; then
4456
for ac_prog in cl.exe
4458
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4459
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4460
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4461
$as_echo_n "checking for $ac_word... " >&6; }
4462
if test "${ac_cv_prog_CC+set}" = set; then :
4463
$as_echo_n "(cached) " >&6
4465
if test -n "$CC"; then
4466
ac_cv_prog_CC="$CC" # Let the user override the test.
4468
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472
test -z "$as_dir" && as_dir=.
4473
for ac_exec_ext in '' $ac_executable_extensions; do
4474
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4476
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4486
if test -n "$CC"; then
4487
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4488
$as_echo "$CC" >&6; }
4490
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491
$as_echo "no" >&6; }
4495
test -n "$CC" && break
4498
if test -z "$CC"; then
4500
for ac_prog in cl.exe
4502
# Extract the first word of "$ac_prog", so it can be a program name with args.
4503
set dummy $ac_prog; ac_word=$2
4504
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4505
$as_echo_n "checking for $ac_word... " >&6; }
4506
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4507
$as_echo_n "(cached) " >&6
4509
if test -n "$ac_ct_CC"; then
4510
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4512
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516
test -z "$as_dir" && as_dir=.
4517
for ac_exec_ext in '' $ac_executable_extensions; do
4518
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4519
ac_cv_prog_ac_ct_CC="$ac_prog"
4520
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4529
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4530
if test -n "$ac_ct_CC"; then
4531
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4532
$as_echo "$ac_ct_CC" >&6; }
4534
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535
$as_echo "no" >&6; }
4539
test -n "$ac_ct_CC" && break
4542
if test "x$ac_ct_CC" = x; then
4545
case $cross_compiling:$ac_tool_warned in
4547
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4548
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4549
ac_tool_warned=yes ;;
4558
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4559
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4560
as_fn_error $? "no acceptable C compiler found in \$PATH
4561
See \`config.log' for more details" "$LINENO" 5 ; }
4563
# Provide some information about the compiler.
4564
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4567
for ac_option in --version -v -V -qversion; do
4568
{ { ac_try="$ac_compiler $ac_option >&5"
4570
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571
*) ac_try_echo=$ac_try;;
4573
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4574
$as_echo "$ac_try_echo"; } >&5
4575
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
4577
if test -s conftest.err; then
4579
... rest of stderr output deleted ...
4580
10q' conftest.err >conftest.er1
4581
cat conftest.er1 >&5
4583
rm -f conftest.er1 conftest.err
4584
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4585
test $ac_status = 0; }
4588
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589
/* end confdefs.h. */
4599
ac_clean_files_save=$ac_clean_files
4600
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4601
# Try to create an executable without -o first, disregard a.out.
4602
# It will help us diagnose broken compilers, and finding out an intuition
4604
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4605
$as_echo_n "checking whether the C compiler works... " >&6; }
4606
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4608
# The possible output files:
4609
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4612
for ac_file in $ac_files
4615
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4616
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
4621
if { { ac_try="$ac_link_default"
4623
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624
*) ac_try_echo=$ac_try;;
4626
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4627
$as_echo "$ac_try_echo"; } >&5
4628
(eval "$ac_link_default") 2>&5
4630
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4631
test $ac_status = 0; }; then :
4632
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4633
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4634
# in a Makefile. We should not override ac_cv_exeext if it was cached,
4635
# so that the user can short-circuit this test for compilers unknown to
4637
for ac_file in $ac_files ''
4639
test -f "$ac_file" || continue
4641
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4644
# We found the default executable, but exeext='' is most
4648
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4650
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4652
# We set ac_cv_exeext here because the later test for it is not
4653
# safe: cross compilers may not add the suffix if given an `-o'
4654
# argument, so we may need to know it at that point already.
4655
# Even if this section looks crufty: it has the advantage of
4662
test "$ac_cv_exeext" = no && ac_cv_exeext=
4667
if test -z "$ac_file"; then :
4668
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669
$as_echo "no" >&6; }
4670
$as_echo "$as_me: failed program was:" >&5
4671
sed 's/^/| /' conftest.$ac_ext >&5
4673
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4674
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4675
as_fn_error 77 "C compiler cannot create executables
4676
See \`config.log' for more details" "$LINENO" 5 ; }
4678
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4679
$as_echo "yes" >&6; }
4681
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4682
$as_echo_n "checking for C compiler default output file name... " >&6; }
4683
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4684
$as_echo "$ac_file" >&6; }
4685
ac_exeext=$ac_cv_exeext
4687
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4688
ac_clean_files=$ac_clean_files_save
4689
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4690
$as_echo_n "checking for suffix of executables... " >&6; }
4691
if { { ac_try="$ac_link"
4693
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4694
*) ac_try_echo=$ac_try;;
4696
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4697
$as_echo "$ac_try_echo"; } >&5
4698
(eval "$ac_link") 2>&5
4700
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4701
test $ac_status = 0; }; then :
4702
# If both `conftest.exe' and `conftest' are `present' (well, observable)
4703
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4704
# work properly (i.e., refer to `conftest.exe'), while it won't with
4706
for ac_file in conftest.exe conftest conftest.*; do
4707
test -f "$ac_file" || continue
4709
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4710
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4716
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4717
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4718
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4719
See \`config.log' for more details" "$LINENO" 5 ; }
4721
rm -f conftest conftest$ac_cv_exeext
4722
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4723
$as_echo "$ac_cv_exeext" >&6; }
4725
rm -f conftest.$ac_ext
4726
EXEEXT=$ac_cv_exeext
4728
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729
/* end confdefs.h. */
4734
FILE *f = fopen ("conftest.out", "w");
4735
return ferror (f) || fclose (f) != 0;
4741
ac_clean_files="$ac_clean_files conftest.out"
4742
# Check that the compiler produces executables we can run. If not, either
4743
# the compiler is broken, or we cross compile.
4744
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4745
$as_echo_n "checking whether we are cross compiling... " >&6; }
4746
if test "$cross_compiling" != yes; then
4747
{ { ac_try="$ac_link"
4749
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750
*) ac_try_echo=$ac_try;;
4752
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4753
$as_echo "$ac_try_echo"; } >&5
4754
(eval "$ac_link") 2>&5
4756
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4757
test $ac_status = 0; }
4758
if { ac_try='./conftest$ac_cv_exeext'
4759
{ { case "(($ac_try" in
4760
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4761
*) ac_try_echo=$ac_try;;
4763
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4764
$as_echo "$ac_try_echo"; } >&5
4765
(eval "$ac_try") 2>&5
4767
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4768
test $ac_status = 0; }; }; then
4771
if test "$cross_compiling" = maybe; then
4774
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4775
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4776
as_fn_error $? "cannot run C compiled programs.
4777
If you meant to cross compile, use \`--host'.
4778
See \`config.log' for more details" "$LINENO" 5 ; }
4782
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4783
$as_echo "$cross_compiling" >&6; }
4785
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4786
ac_clean_files=$ac_clean_files_save
4787
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4788
$as_echo_n "checking for suffix of object files... " >&6; }
4789
if test "${ac_cv_objext+set}" = set; then :
4790
$as_echo_n "(cached) " >&6
4792
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793
/* end confdefs.h. */
4803
rm -f conftest.o conftest.obj
4804
if { { ac_try="$ac_compile"
4806
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4807
*) ac_try_echo=$ac_try;;
4809
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4810
$as_echo "$ac_try_echo"; } >&5
4811
(eval "$ac_compile") 2>&5
4813
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4814
test $ac_status = 0; }; then :
4815
for ac_file in conftest.o conftest.obj conftest.*; do
4816
test -f "$ac_file" || continue;
4818
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4819
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4824
$as_echo "$as_me: failed program was:" >&5
4825
sed 's/^/| /' conftest.$ac_ext >&5
4827
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4828
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4829
as_fn_error $? "cannot compute suffix of object files: cannot compile
4830
See \`config.log' for more details" "$LINENO" 5 ; }
4832
rm -f conftest.$ac_cv_objext conftest.$ac_ext
4834
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4835
$as_echo "$ac_cv_objext" >&6; }
4836
OBJEXT=$ac_cv_objext
4838
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4839
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4840
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4841
$as_echo_n "(cached) " >&6
4843
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844
/* end confdefs.h. */
4857
if ac_fn_c_try_compile "$LINENO"; then :
4862
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4863
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4866
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4867
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4868
if test $ac_compiler_gnu = yes; then
4873
ac_test_CFLAGS=${CFLAGS+set}
4874
ac_save_CFLAGS=$CFLAGS
4875
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4876
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4877
if test "${ac_cv_prog_cc_g+set}" = set; then :
4878
$as_echo_n "(cached) " >&6
4880
ac_save_c_werror_flag=$ac_c_werror_flag
4881
ac_c_werror_flag=yes
4884
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885
/* end confdefs.h. */
4895
if ac_fn_c_try_compile "$LINENO"; then :
4899
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900
/* end confdefs.h. */
4910
if ac_fn_c_try_compile "$LINENO"; then :
4913
ac_c_werror_flag=$ac_save_c_werror_flag
4915
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916
/* end confdefs.h. */
4926
if ac_fn_c_try_compile "$LINENO"; then :
4929
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4931
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4933
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4934
ac_c_werror_flag=$ac_save_c_werror_flag
4936
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4937
$as_echo "$ac_cv_prog_cc_g" >&6; }
4938
if test "$ac_test_CFLAGS" = set; then
4939
CFLAGS=$ac_save_CFLAGS
4940
elif test $ac_cv_prog_cc_g = yes; then
4941
if test "$GCC" = yes; then
4947
if test "$GCC" = yes; then
4953
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4954
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4955
if test "${ac_cv_prog_cc_c89+set}" = set; then :
4956
$as_echo_n "(cached) " >&6
4958
ac_cv_prog_cc_c89=no
4960
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961
/* end confdefs.h. */
4964
#include <sys/types.h>
4965
#include <sys/stat.h>
4966
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4967
struct buf { int x; };
4968
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4969
static char *e (p, i)
4975
static char *f (char * (*g) (char **, int), char **p, ...)
4980
s = g (p, va_arg (v,int));
4985
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4986
function prototypes and stuff, but not '\xHH' hex character constants.
4987
These don't provoke an error unfortunately, instead are silently treated
4988
as 'x'. The following induces an error, until -std is added to get
4989
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4990
array size at least. It's necessary to write '\x00'==0 to get something
4991
that's true only with -std. */
4992
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4994
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4995
inside strings and character constants. */
4997
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4999
int test (int i, double x);
5000
struct s1 {int (*f) (int a);};
5001
struct s2 {int (*f) (double a);};
5002
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5008
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5013
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5014
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5016
CC="$ac_save_CC $ac_arg"
5017
if ac_fn_c_try_compile "$LINENO"; then :
5018
ac_cv_prog_cc_c89=$ac_arg
5020
rm -f core conftest.err conftest.$ac_objext
5021
test "x$ac_cv_prog_cc_c89" != "xno" && break
5023
rm -f conftest.$ac_ext
5028
case "x$ac_cv_prog_cc_c89" in
5030
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5031
$as_echo "none needed" >&6; } ;;
5033
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5034
$as_echo "unsupported" >&6; } ;;
5036
CC="$CC $ac_cv_prog_cc_c89"
5037
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5038
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5040
if test "x$ac_cv_prog_cc_c89" != xno; then :
5045
ac_cpp='$CPP $CPPFLAGS'
5046
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5047
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5048
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5050
depcc="$CC" am_compiler_list=
5052
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5053
$as_echo_n "checking dependency style of $depcc... " >&6; }
5054
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5055
$as_echo_n "(cached) " >&6
5057
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5058
# We make a subdir and do the tests there. Otherwise we can end up
5059
# making bogus files that we don't know about and never remove. For
5060
# instance it was reported that on HP-UX the gcc test will end up
5061
# making a dummy file named `D' -- because `-MD' means `put the output
5064
# Copy depcomp to subdir because otherwise we won't find it if we're
5065
# using a relative directory.
5066
cp "$am_depcomp" conftest.dir
5068
# We will build objects and dependencies in a subdirectory because
5069
# it helps to detect inapplicable dependency modes. For instance
5070
# both Tru64's cc and ICC support -MD to output dependencies as a
5071
# side effect of compilation, but ICC will put the dependencies in
5072
# the current directory while Tru64 will put them in the object
5076
am_cv_CC_dependencies_compiler_type=none
5077
if test "$am_compiler_list" = ""; then
5078
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5081
case " $depcc " in #(
5082
*\ -arch\ *\ -arch\ *) am__universal=true ;;
5085
for depmode in $am_compiler_list; do
5086
# Setup a source with many dependencies, because some compilers
5087
# like to wrap large dependency lists on column 80 (with \), and
5088
# we should not choose a depcomp mode which is confused by this.
5090
# We need to recreate these files for each test, as the compiler may
5091
# overwrite some of them when testing with obscure command lines.
5092
# This happens at least with the AIX C compiler.
5094
for i in 1 2 3 4 5 6; do
5095
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5096
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5097
# Solaris 8's {/usr,}/bin/sh.
5098
touch sub/conftst$i.h
5100
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5102
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5103
# mode. It turns out that the SunPro C++ compiler does not properly
5104
# handle `-M -o', and we need to detect this. Also, some Intel
5105
# versions had trouble with output in subdirs
5106
am__obj=sub/conftest.${OBJEXT-o}
5107
am__minus_obj="-o $am__obj"
5110
# This depmode causes a compiler race in universal mode.
5111
test "$am__universal" = false || continue
5114
# after this tag, mechanisms are not by side-effect, so they'll
5115
# only be used when explicitly requested
5116
if test "x$enable_dependency_tracking" = xyes; then
5122
msvisualcpp | msvcmsys)
5123
# This compiler won't grok `-c -o', but also, the minuso test has
5124
# not run yet. These depmodes are late enough in the game, and
5125
# so weak that their functioning should not be impacted.
5126
am__obj=conftest.${OBJEXT-o}
5131
if depmode=$depmode \
5132
source=sub/conftest.c object=$am__obj \
5133
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5134
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5135
>/dev/null 2>conftest.err &&
5136
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5137
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5138
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5139
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5140
# icc doesn't choke on unknown options, it will just issue warnings
5141
# or remarks (even with -Werror). So we grep stderr for any message
5142
# that says an option was ignored or not supported.
5143
# When given -MP, icc 7.0 and 7.1 complain thusly:
5144
# icc: Command line warning: ignoring option '-M'; no argument required
5145
# The diagnosis changed in icc 8.0:
5146
# icc: Command line remark: option '-MP' not supported
5147
if (grep 'ignoring option' conftest.err ||
5148
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5149
am_cv_CC_dependencies_compiler_type=$depmode
5158
am_cv_CC_dependencies_compiler_type=none
5162
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5163
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5164
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5167
test "x$enable_dependency_tracking" != xno \
5168
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5170
am__fastdepCC_FALSE='#'
5172
am__fastdepCC_TRUE='#'
5173
am__fastdepCC_FALSE=
5178
for ac_prog in flex lex
5180
# Extract the first word of "$ac_prog", so it can be a program name with args.
5181
set dummy $ac_prog; ac_word=$2
5182
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183
$as_echo_n "checking for $ac_word... " >&6; }
5184
if test "${ac_cv_prog_LEX+set}" = set; then :
5185
$as_echo_n "(cached) " >&6
5187
if test -n "$LEX"; then
5188
ac_cv_prog_LEX="$LEX" # Let the user override the test.
5190
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194
test -z "$as_dir" && as_dir=.
5195
for ac_exec_ext in '' $ac_executable_extensions; do
5196
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5197
ac_cv_prog_LEX="$ac_prog"
5198
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5208
if test -n "$LEX"; then
5209
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5210
$as_echo "$LEX" >&6; }
5212
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213
$as_echo "no" >&6; }
5217
test -n "$LEX" && break
5219
test -n "$LEX" || LEX=":"
5221
if test "x$LEX" != "x:"; then
5222
cat >conftest.l <<_ACEOF
5228
e { yyless (input () != 0); }
5229
f { unput (yytext[0]); }
5230
. { BEGIN INITIAL; }
5232
#ifdef YYTEXT_POINTER
5233
extern char *yytext;
5238
return ! yylex () + ! yywrap ();
5241
{ { ac_try="$LEX conftest.l"
5243
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5244
*) ac_try_echo=$ac_try;;
5246
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5247
$as_echo "$ac_try_echo"; } >&5
5248
(eval "$LEX conftest.l") 2>&5
5250
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5251
test $ac_status = 0; }
5252
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5253
$as_echo_n "checking lex output file root... " >&6; }
5254
if test "${ac_cv_prog_lex_root+set}" = set; then :
5255
$as_echo_n "(cached) " >&6
5258
if test -f lex.yy.c; then
5259
ac_cv_prog_lex_root=lex.yy
5260
elif test -f lexyy.c; then
5261
ac_cv_prog_lex_root=lexyy
5263
as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
5266
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5267
$as_echo "$ac_cv_prog_lex_root" >&6; }
5268
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5270
if test -z "${LEXLIB+set}"; then
5271
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5272
$as_echo_n "checking lex library... " >&6; }
5273
if test "${ac_cv_lib_lex+set}" = set; then :
5274
$as_echo_n "(cached) " >&6
5278
ac_cv_lib_lex='none needed'
5279
for ac_lib in '' -lfl -ll; do
5280
LIBS="$ac_lib $ac_save_LIBS"
5281
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5282
/* end confdefs.h. */
5283
`cat $LEX_OUTPUT_ROOT.c`
5285
if ac_fn_c_try_link "$LINENO"; then :
5286
ac_cv_lib_lex=$ac_lib
5288
rm -f core conftest.err conftest.$ac_objext \
5289
conftest$ac_exeext conftest.$ac_ext
5290
test "$ac_cv_lib_lex" != 'none needed' && break
5295
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5296
$as_echo "$ac_cv_lib_lex" >&6; }
5297
test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5301
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5302
$as_echo_n "checking whether yytext is a pointer... " >&6; }
5303
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
5304
$as_echo_n "(cached) " >&6
5306
# POSIX says lex can declare yytext either as a pointer or an array; the
5307
# default is implementation-dependent. Figure out which it is, since
5308
# not all implementations provide the %pointer and %array declarations.
5309
ac_cv_prog_lex_yytext_pointer=no
5311
LIBS="$LEXLIB $ac_save_LIBS"
5312
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313
/* end confdefs.h. */
5314
#define YYTEXT_POINTER 1
5315
`cat $LEX_OUTPUT_ROOT.c`
5317
if ac_fn_c_try_link "$LINENO"; then :
5318
ac_cv_prog_lex_yytext_pointer=yes
5320
rm -f core conftest.err conftest.$ac_objext \
5321
conftest$ac_exeext conftest.$ac_ext
5325
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5326
$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5327
if test $ac_cv_prog_lex_yytext_pointer = yes; then
5329
$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5332
rm -f conftest.l $LEX_OUTPUT_ROOT.c
5335
for ac_prog in 'bison -y' byacc
5337
# Extract the first word of "$ac_prog", so it can be a program name with args.
5338
set dummy $ac_prog; ac_word=$2
5339
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5340
$as_echo_n "checking for $ac_word... " >&6; }
5341
if test "${ac_cv_prog_YACC+set}" = set; then :
5342
$as_echo_n "(cached) " >&6
5344
if test -n "$YACC"; then
5345
ac_cv_prog_YACC="$YACC" # Let the user override the test.
5347
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351
test -z "$as_dir" && as_dir=.
5352
for ac_exec_ext in '' $ac_executable_extensions; do
5353
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5354
ac_cv_prog_YACC="$ac_prog"
5355
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5364
YACC=$ac_cv_prog_YACC
5365
if test -n "$YACC"; then
5366
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5367
$as_echo "$YACC" >&6; }
5369
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5370
$as_echo "no" >&6; }
5374
test -n "$YACC" && break
5376
test -n "$YACC" || YACC="yacc"
5378
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5379
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5381
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5382
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
5383
$as_echo_n "(cached) " >&6
5385
cat >conftest.make <<\_ACEOF
5388
@echo '@@@%%%=$(MAKE)=@@@%%%'
5390
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5391
case `${MAKE-make} -f conftest.make 2>/dev/null` in
5393
eval ac_cv_prog_make_${ac_make}_set=yes;;
5395
eval ac_cv_prog_make_${ac_make}_set=no;;
5399
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5400
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5401
$as_echo "yes" >&6; }
5404
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405
$as_echo "no" >&6; }
5406
SET_MAKE="MAKE=${MAKE-make}"
5410
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5411
$as_echo_n "checking whether ln -s works... " >&6; }
5413
if test "$LN_S" = "ln -s"; then
5414
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5415
$as_echo "yes" >&6; }
5417
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5418
$as_echo "no, using $LN_S" >&6; }
5422
if test "x$LEX" = "x:"; then
5423
as_fn_error $? "flex is not found" "$LINENO" 5
5425
version=`$LEX --version | $AWK '{ split($NF,x,"."); print x[1]*10000+x[2]*100+x[3]; }'`
5426
if test -n "$version" -a "$version" -ge 20535; then
5429
as_fn_error $? "flex is too old. GRUB requires 2.5.35 or above" "$LINENO" 5
5433
# These are not a "must".
5434
# Extract the first word of "makeinfo", so it can be a program name with args.
5435
set dummy makeinfo; ac_word=$2
5436
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5437
$as_echo_n "checking for $ac_word... " >&6; }
5438
if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5439
$as_echo_n "(cached) " >&6
5443
ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5446
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450
test -z "$as_dir" && as_dir=.
5451
for ac_exec_ext in '' $ac_executable_extensions; do
5452
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5453
ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5454
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464
MAKEINFO=$ac_cv_path_MAKEINFO
5465
if test -n "$MAKEINFO"; then
5466
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5467
$as_echo "$MAKEINFO" >&6; }
5469
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5470
$as_echo "no" >&6; }
5476
# Checks for host programs.
5480
ac_cpp='$CPP $CPPFLAGS'
5481
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5482
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5483
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5484
if test -n "$ac_tool_prefix"; then
5485
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5486
set dummy ${ac_tool_prefix}gcc; ac_word=$2
5487
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5488
$as_echo_n "checking for $ac_word... " >&6; }
5489
if test "${ac_cv_prog_CC+set}" = set; then :
5490
$as_echo_n "(cached) " >&6
5492
if test -n "$CC"; then
5493
ac_cv_prog_CC="$CC" # Let the user override the test.
5495
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499
test -z "$as_dir" && as_dir=.
5500
for ac_exec_ext in '' $ac_executable_extensions; do
5501
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5502
ac_cv_prog_CC="${ac_tool_prefix}gcc"
5503
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5513
if test -n "$CC"; then
5514
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5515
$as_echo "$CC" >&6; }
5517
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518
$as_echo "no" >&6; }
5523
if test -z "$ac_cv_prog_CC"; then
5525
# Extract the first word of "gcc", so it can be a program name with args.
5526
set dummy gcc; ac_word=$2
5527
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5528
$as_echo_n "checking for $ac_word... " >&6; }
5529
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5530
$as_echo_n "(cached) " >&6
5532
if test -n "$ac_ct_CC"; then
5533
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5535
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539
test -z "$as_dir" && as_dir=.
5540
for ac_exec_ext in '' $ac_executable_extensions; do
5541
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5542
ac_cv_prog_ac_ct_CC="gcc"
5543
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5552
ac_ct_CC=$ac_cv_prog_ac_ct_CC
5553
if test -n "$ac_ct_CC"; then
5554
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5555
$as_echo "$ac_ct_CC" >&6; }
5557
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558
$as_echo "no" >&6; }
5561
if test "x$ac_ct_CC" = x; then
5564
case $cross_compiling:$ac_tool_warned in
5566
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5567
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5568
ac_tool_warned=yes ;;
5576
if test -z "$CC"; then
5577
if test -n "$ac_tool_prefix"; then
5578
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5579
set dummy ${ac_tool_prefix}cc; ac_word=$2
5580
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5581
$as_echo_n "checking for $ac_word... " >&6; }
5582
if test "${ac_cv_prog_CC+set}" = set; then :
5583
$as_echo_n "(cached) " >&6
5585
if test -n "$CC"; then
5586
ac_cv_prog_CC="$CC" # Let the user override the test.
5588
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592
test -z "$as_dir" && as_dir=.
5593
for ac_exec_ext in '' $ac_executable_extensions; do
5594
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5595
ac_cv_prog_CC="${ac_tool_prefix}cc"
5596
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5606
if test -n "$CC"; then
5607
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5608
$as_echo "$CC" >&6; }
5610
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611
$as_echo "no" >&6; }
5617
if test -z "$CC"; then
5618
# Extract the first word of "cc", so it can be a program name with args.
5619
set dummy cc; ac_word=$2
5620
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621
$as_echo_n "checking for $ac_word... " >&6; }
5622
if test "${ac_cv_prog_CC+set}" = set; then :
5623
$as_echo_n "(cached) " >&6
5625
if test -n "$CC"; then
5626
ac_cv_prog_CC="$CC" # Let the user override the test.
5629
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633
test -z "$as_dir" && as_dir=.
5634
for ac_exec_ext in '' $ac_executable_extensions; do
5635
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5636
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5637
ac_prog_rejected=yes
5641
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5648
if test $ac_prog_rejected = yes; then
5649
# We found a bogon in the path, so make sure we never use it.
5650
set dummy $ac_cv_prog_CC
5652
if test $# != 0; then
5653
# We chose a different compiler from the bogus one.
5654
# However, it has the same basename, so the bogon will be chosen
5655
# first if we set CC to just the basename; use the full file name.
5657
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5663
if test -n "$CC"; then
5664
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5665
$as_echo "$CC" >&6; }
5667
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668
$as_echo "no" >&6; }
5673
if test -z "$CC"; then
5674
if test -n "$ac_tool_prefix"; then
5675
for ac_prog in cl.exe
5677
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5678
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5679
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5680
$as_echo_n "checking for $ac_word... " >&6; }
5681
if test "${ac_cv_prog_CC+set}" = set; then :
5682
$as_echo_n "(cached) " >&6
5684
if test -n "$CC"; then
5685
ac_cv_prog_CC="$CC" # Let the user override the test.
5687
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691
test -z "$as_dir" && as_dir=.
5692
for ac_exec_ext in '' $ac_executable_extensions; do
5693
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5694
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5695
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5705
if test -n "$CC"; then
5706
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5707
$as_echo "$CC" >&6; }
5709
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710
$as_echo "no" >&6; }
5714
test -n "$CC" && break
5717
if test -z "$CC"; then
5719
for ac_prog in cl.exe
5721
# Extract the first word of "$ac_prog", so it can be a program name with args.
5722
set dummy $ac_prog; ac_word=$2
5723
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5724
$as_echo_n "checking for $ac_word... " >&6; }
5725
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5726
$as_echo_n "(cached) " >&6
5728
if test -n "$ac_ct_CC"; then
5729
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5731
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735
test -z "$as_dir" && as_dir=.
5736
for ac_exec_ext in '' $ac_executable_extensions; do
5737
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5738
ac_cv_prog_ac_ct_CC="$ac_prog"
5739
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5748
ac_ct_CC=$ac_cv_prog_ac_ct_CC
5749
if test -n "$ac_ct_CC"; then
5750
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5751
$as_echo "$ac_ct_CC" >&6; }
5753
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5754
$as_echo "no" >&6; }
5758
test -n "$ac_ct_CC" && break
5761
if test "x$ac_ct_CC" = x; then
5764
case $cross_compiling:$ac_tool_warned in
5766
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5767
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5768
ac_tool_warned=yes ;;
5777
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5778
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5779
as_fn_error $? "no acceptable C compiler found in \$PATH
5780
See \`config.log' for more details" "$LINENO" 5 ; }
5782
# Provide some information about the compiler.
5783
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5786
for ac_option in --version -v -V -qversion; do
5787
{ { ac_try="$ac_compiler $ac_option >&5"
5789
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790
*) ac_try_echo=$ac_try;;
5792
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5793
$as_echo "$ac_try_echo"; } >&5
5794
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
5796
if test -s conftest.err; then
5798
... rest of stderr output deleted ...
5799
10q' conftest.err >conftest.er1
5800
cat conftest.er1 >&5
5802
rm -f conftest.er1 conftest.err
5803
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5804
test $ac_status = 0; }
5807
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5808
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5809
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5810
$as_echo_n "(cached) " >&6
5812
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813
/* end confdefs.h. */
5826
if ac_fn_c_try_compile "$LINENO"; then :
5831
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832
ac_cv_c_compiler_gnu=$ac_compiler_gnu
5835
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5836
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5837
if test $ac_compiler_gnu = yes; then
5842
ac_test_CFLAGS=${CFLAGS+set}
5843
ac_save_CFLAGS=$CFLAGS
5844
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5845
$as_echo_n "checking whether $CC accepts -g... " >&6; }
5846
if test "${ac_cv_prog_cc_g+set}" = set; then :
5847
$as_echo_n "(cached) " >&6
5849
ac_save_c_werror_flag=$ac_c_werror_flag
5850
ac_c_werror_flag=yes
5853
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854
/* end confdefs.h. */
5864
if ac_fn_c_try_compile "$LINENO"; then :
5868
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869
/* end confdefs.h. */
5879
if ac_fn_c_try_compile "$LINENO"; then :
5882
ac_c_werror_flag=$ac_save_c_werror_flag
5884
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885
/* end confdefs.h. */
5895
if ac_fn_c_try_compile "$LINENO"; then :
5898
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5900
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5902
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5903
ac_c_werror_flag=$ac_save_c_werror_flag
5905
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5906
$as_echo "$ac_cv_prog_cc_g" >&6; }
5907
if test "$ac_test_CFLAGS" = set; then
5908
CFLAGS=$ac_save_CFLAGS
5909
elif test $ac_cv_prog_cc_g = yes; then
5910
if test "$GCC" = yes; then
5916
if test "$GCC" = yes; then
5922
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5923
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5924
if test "${ac_cv_prog_cc_c89+set}" = set; then :
5925
$as_echo_n "(cached) " >&6
5927
ac_cv_prog_cc_c89=no
5929
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930
/* end confdefs.h. */
5933
#include <sys/types.h>
5934
#include <sys/stat.h>
5935
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5936
struct buf { int x; };
5937
FILE * (*rcsopen) (struct buf *, struct stat *, int);
5938
static char *e (p, i)
5944
static char *f (char * (*g) (char **, int), char **p, ...)
5949
s = g (p, va_arg (v,int));
5954
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5955
function prototypes and stuff, but not '\xHH' hex character constants.
5956
These don't provoke an error unfortunately, instead are silently treated
5957
as 'x'. The following induces an error, until -std is added to get
5958
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5959
array size at least. It's necessary to write '\x00'==0 to get something
5960
that's true only with -std. */
5961
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5963
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5964
inside strings and character constants. */
5966
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5968
int test (int i, double x);
5969
struct s1 {int (*f) (int a);};
5970
struct s2 {int (*f) (double a);};
5971
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5977
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5982
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5983
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5985
CC="$ac_save_CC $ac_arg"
5986
if ac_fn_c_try_compile "$LINENO"; then :
5987
ac_cv_prog_cc_c89=$ac_arg
5989
rm -f core conftest.err conftest.$ac_objext
5990
test "x$ac_cv_prog_cc_c89" != "xno" && break
5992
rm -f conftest.$ac_ext
5997
case "x$ac_cv_prog_cc_c89" in
5999
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6000
$as_echo "none needed" >&6; } ;;
6002
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6003
$as_echo "unsupported" >&6; } ;;
6005
CC="$CC $ac_cv_prog_cc_c89"
6006
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6007
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6009
if test "x$ac_cv_prog_cc_c89" != xno; then :
6014
ac_cpp='$CPP $CPPFLAGS'
6015
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6016
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6017
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6019
depcc="$CC" am_compiler_list=
6021
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6022
$as_echo_n "checking dependency style of $depcc... " >&6; }
6023
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6024
$as_echo_n "(cached) " >&6
6026
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6027
# We make a subdir and do the tests there. Otherwise we can end up
6028
# making bogus files that we don't know about and never remove. For
6029
# instance it was reported that on HP-UX the gcc test will end up
6030
# making a dummy file named `D' -- because `-MD' means `put the output
6033
# Copy depcomp to subdir because otherwise we won't find it if we're
6034
# using a relative directory.
6035
cp "$am_depcomp" conftest.dir
6037
# We will build objects and dependencies in a subdirectory because
6038
# it helps to detect inapplicable dependency modes. For instance
6039
# both Tru64's cc and ICC support -MD to output dependencies as a
6040
# side effect of compilation, but ICC will put the dependencies in
6041
# the current directory while Tru64 will put them in the object
6045
am_cv_CC_dependencies_compiler_type=none
6046
if test "$am_compiler_list" = ""; then
6047
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6050
case " $depcc " in #(
6051
*\ -arch\ *\ -arch\ *) am__universal=true ;;
6054
for depmode in $am_compiler_list; do
6055
# Setup a source with many dependencies, because some compilers
6056
# like to wrap large dependency lists on column 80 (with \), and
6057
# we should not choose a depcomp mode which is confused by this.
6059
# We need to recreate these files for each test, as the compiler may
6060
# overwrite some of them when testing with obscure command lines.
6061
# This happens at least with the AIX C compiler.
6063
for i in 1 2 3 4 5 6; do
6064
echo '#include "conftst'$i'.h"' >> sub/conftest.c
6065
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6066
# Solaris 8's {/usr,}/bin/sh.
6067
touch sub/conftst$i.h
6069
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6071
# We check with `-c' and `-o' for the sake of the "dashmstdout"
6072
# mode. It turns out that the SunPro C++ compiler does not properly
6073
# handle `-M -o', and we need to detect this. Also, some Intel
6074
# versions had trouble with output in subdirs
6075
am__obj=sub/conftest.${OBJEXT-o}
6076
am__minus_obj="-o $am__obj"
6079
# This depmode causes a compiler race in universal mode.
6080
test "$am__universal" = false || continue
6083
# after this tag, mechanisms are not by side-effect, so they'll
6084
# only be used when explicitly requested
6085
if test "x$enable_dependency_tracking" = xyes; then
6091
msvisualcpp | msvcmsys)
6092
# This compiler won't grok `-c -o', but also, the minuso test has
6093
# not run yet. These depmodes are late enough in the game, and
6094
# so weak that their functioning should not be impacted.
6095
am__obj=conftest.${OBJEXT-o}
6100
if depmode=$depmode \
6101
source=sub/conftest.c object=$am__obj \
6102
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6103
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6104
>/dev/null 2>conftest.err &&
6105
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6106
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6107
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6108
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6109
# icc doesn't choke on unknown options, it will just issue warnings
6110
# or remarks (even with -Werror). So we grep stderr for any message
6111
# that says an option was ignored or not supported.
6112
# When given -MP, icc 7.0 and 7.1 complain thusly:
6113
# icc: Command line warning: ignoring option '-M'; no argument required
6114
# The diagnosis changed in icc 8.0:
6115
# icc: Command line remark: option '-MP' not supported
6116
if (grep 'ignoring option' conftest.err ||
6117
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6118
am_cv_CC_dependencies_compiler_type=$depmode
6127
am_cv_CC_dependencies_compiler_type=none
6131
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6132
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6133
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6136
test "x$enable_dependency_tracking" != xno \
6137
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6139
am__fastdepCC_FALSE='#'
6141
am__fastdepCC_TRUE='#'
6142
am__fastdepCC_FALSE=
6147
ac_cpp='$CPP $CPPFLAGS'
6148
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6149
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6150
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6151
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6152
$as_echo_n "checking how to run the C preprocessor... " >&6; }
6153
# On Suns, sometimes $CPP names a directory.
6154
if test -n "$CPP" && test -d "$CPP"; then
6157
if test -z "$CPP"; then
6158
if test "${ac_cv_prog_CPP+set}" = set; then :
6159
$as_echo_n "(cached) " >&6
6161
# Double quotes because CPP needs to be expanded
6162
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6165
for ac_c_preproc_warn_flag in '' yes
6167
# Use a header file that comes with gcc, so configuring glibc
6168
# with a fresh cross-compiler works.
6169
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6170
# <limits.h> exists even on freestanding compilers.
6171
# On the NeXT, cc -E runs the code through the compiler's parser,
6172
# not just through cpp. "Syntax error" is here to catch this case.
6173
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6174
/* end confdefs.h. */
6176
# include <limits.h>
6178
# include <assert.h>
6182
if ac_fn_c_try_cpp "$LINENO"; then :
6185
# Broken: fails on valid input.
6188
rm -f conftest.err conftest.i conftest.$ac_ext
6190
# OK, works on sane cases. Now check whether nonexistent headers
6191
# can be detected and how.
6192
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193
/* end confdefs.h. */
6194
#include <ac_nonexistent.h>
6196
if ac_fn_c_try_cpp "$LINENO"; then :
6197
# Broken: success on invalid input.
6200
# Passes both tests.
6204
rm -f conftest.err conftest.i conftest.$ac_ext
6207
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6208
rm -f conftest.i conftest.err conftest.$ac_ext
6209
if $ac_preproc_ok; then :
6221
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6222
$as_echo "$CPP" >&6; }
6224
for ac_c_preproc_warn_flag in '' yes
6226
# Use a header file that comes with gcc, so configuring glibc
6227
# with a fresh cross-compiler works.
6228
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6229
# <limits.h> exists even on freestanding compilers.
6230
# On the NeXT, cc -E runs the code through the compiler's parser,
6231
# not just through cpp. "Syntax error" is here to catch this case.
6232
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233
/* end confdefs.h. */
6235
# include <limits.h>
6237
# include <assert.h>
6241
if ac_fn_c_try_cpp "$LINENO"; then :
6244
# Broken: fails on valid input.
6247
rm -f conftest.err conftest.i conftest.$ac_ext
6249
# OK, works on sane cases. Now check whether nonexistent headers
6250
# can be detected and how.
6251
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6252
/* end confdefs.h. */
6253
#include <ac_nonexistent.h>
6255
if ac_fn_c_try_cpp "$LINENO"; then :
6256
# Broken: success on invalid input.
6259
# Passes both tests.
6263
rm -f conftest.err conftest.i conftest.$ac_ext
6266
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6267
rm -f conftest.i conftest.err conftest.$ac_ext
6268
if $ac_preproc_ok; then :
6271
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6272
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6273
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6274
See \`config.log' for more details" "$LINENO" 5 ; }
6278
ac_cpp='$CPP $CPPFLAGS'
6279
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6280
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6281
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6284
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6285
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6286
if test "${ac_cv_path_GREP+set}" = set; then :
6287
$as_echo_n "(cached) " >&6
6289
if test -z "$GREP"; then
6290
ac_path_GREP_found=false
6291
# Loop through the user's path and test for each of PROGNAME-LIST
6292
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6296
test -z "$as_dir" && as_dir=.
6297
for ac_prog in grep ggrep; do
6298
for ac_exec_ext in '' $ac_executable_extensions; do
6299
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6300
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6301
# Check for GNU ac_path_GREP and select it if it is found.
6302
# Check for GNU $ac_path_GREP
6303
case `"$ac_path_GREP" --version 2>&1` in
6305
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6308
$as_echo_n 0123456789 >"conftest.in"
6311
cat "conftest.in" "conftest.in" >"conftest.tmp"
6312
mv "conftest.tmp" "conftest.in"
6313
cp "conftest.in" "conftest.nl"
6314
$as_echo 'GREP' >> "conftest.nl"
6315
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6316
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6317
as_fn_arith $ac_count + 1 && ac_count=$as_val
6318
if test $ac_count -gt ${ac_path_GREP_max-0}; then
6319
# Best one so far, save it but keep looking for a better one
6320
ac_cv_path_GREP="$ac_path_GREP"
6321
ac_path_GREP_max=$ac_count
6323
# 10*(2^10) chars as input seems more than enough
6324
test $ac_count -gt 10 && break
6326
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6329
$ac_path_GREP_found && break 3
6334
if test -z "$ac_cv_path_GREP"; then
6335
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6338
ac_cv_path_GREP=$GREP
6342
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6343
$as_echo "$ac_cv_path_GREP" >&6; }
6344
GREP="$ac_cv_path_GREP"
6347
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6348
$as_echo_n "checking for egrep... " >&6; }
6349
if test "${ac_cv_path_EGREP+set}" = set; then :
6350
$as_echo_n "(cached) " >&6
6352
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6353
then ac_cv_path_EGREP="$GREP -E"
6355
if test -z "$EGREP"; then
6356
ac_path_EGREP_found=false
6357
# Loop through the user's path and test for each of PROGNAME-LIST
6358
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6362
test -z "$as_dir" && as_dir=.
6363
for ac_prog in egrep; do
6364
for ac_exec_ext in '' $ac_executable_extensions; do
6365
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6366
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6367
# Check for GNU ac_path_EGREP and select it if it is found.
6368
# Check for GNU $ac_path_EGREP
6369
case `"$ac_path_EGREP" --version 2>&1` in
6371
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6374
$as_echo_n 0123456789 >"conftest.in"
6377
cat "conftest.in" "conftest.in" >"conftest.tmp"
6378
mv "conftest.tmp" "conftest.in"
6379
cp "conftest.in" "conftest.nl"
6380
$as_echo 'EGREP' >> "conftest.nl"
6381
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6382
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6383
as_fn_arith $ac_count + 1 && ac_count=$as_val
6384
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6385
# Best one so far, save it but keep looking for a better one
6386
ac_cv_path_EGREP="$ac_path_EGREP"
6387
ac_path_EGREP_max=$ac_count
6389
# 10*(2^10) chars as input seems more than enough
6390
test $ac_count -gt 10 && break
6392
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6395
$ac_path_EGREP_found && break 3
6400
if test -z "$ac_cv_path_EGREP"; then
6401
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6404
ac_cv_path_EGREP=$EGREP
6409
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6410
$as_echo "$ac_cv_path_EGREP" >&6; }
6411
EGREP="$ac_cv_path_EGREP"
6414
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6415
$as_echo_n "checking for ANSI C header files... " >&6; }
6416
if test "${ac_cv_header_stdc+set}" = set; then :
6417
$as_echo_n "(cached) " >&6
6419
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6420
/* end confdefs.h. */
6434
if ac_fn_c_try_compile "$LINENO"; then :
6435
ac_cv_header_stdc=yes
6437
ac_cv_header_stdc=no
6439
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6441
if test $ac_cv_header_stdc = yes; then
6442
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6443
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6444
/* end confdefs.h. */
6448
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6449
$EGREP "memchr" >/dev/null 2>&1; then :
6452
ac_cv_header_stdc=no
6458
if test $ac_cv_header_stdc = yes; then
6459
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6460
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461
/* end confdefs.h. */
6465
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6466
$EGREP "free" >/dev/null 2>&1; then :
6469
ac_cv_header_stdc=no
6475
if test $ac_cv_header_stdc = yes; then
6476
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6477
if test "$cross_compiling" = yes; then :
6480
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6481
/* end confdefs.h. */
6484
#if ((' ' & 0x0FF) == 0x020)
6485
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6486
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6488
# define ISLOWER(c) \
6489
(('a' <= (c) && (c) <= 'i') \
6490
|| ('j' <= (c) && (c) <= 'r') \
6491
|| ('s' <= (c) && (c) <= 'z'))
6492
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6495
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6500
for (i = 0; i < 256; i++)
6501
if (XOR (islower (i), ISLOWER (i))
6502
|| toupper (i) != TOUPPER (i))
6507
if ac_fn_c_try_run "$LINENO"; then :
6510
ac_cv_header_stdc=no
6512
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6513
conftest.$ac_objext conftest.beam conftest.$ac_ext
6518
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6519
$as_echo "$ac_cv_header_stdc" >&6; }
6520
if test $ac_cv_header_stdc = yes; then
6522
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6526
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6527
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6528
inttypes.h stdint.h unistd.h
6530
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6531
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6533
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6534
cat >>confdefs.h <<_ACEOF
6535
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6546
ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6547
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6554
if test "$MINIX" = yes; then
6556
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6559
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6562
$as_echo "#define _MINIX 1" >>confdefs.h
6569
$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6575
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6576
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6577
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6578
$as_echo_n "(cached) " >&6
6580
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581
/* end confdefs.h. */
6583
# define __EXTENSIONS__ 1
6584
$ac_includes_default
6593
if ac_fn_c_try_compile "$LINENO"; then :
6594
ac_cv_safe_to_define___extensions__=yes
6596
ac_cv_safe_to_define___extensions__=no
6598
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6601
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6602
test $ac_cv_safe_to_define___extensions__ = yes &&
6603
$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6605
$as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6607
$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6609
$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6611
$as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6622
# Code from module alloca:
6623
# Code from module alloca-opt:
6624
# Code from module arg-nonnull:
6625
# Code from module argp:
6626
# Code from module btowc:
6627
# Code from module c++defs:
6628
# Code from module configmake:
6629
# Code from module dirname-lgpl:
6630
# Code from module double-slash-root:
6631
# Code from module errno:
6632
# Code from module error:
6633
# Code from module extensions:
6635
# Code from module float:
6636
# Code from module fnmatch:
6637
# Code from module getdelim:
6638
# Code from module getline:
6639
# Code from module getopt-gnu:
6640
# Code from module getopt-posix:
6641
# Code from module gettext:
6642
# Code from module gettext-h:
6643
# Code from module havelib:
6644
# Code from module include_next:
6645
# Code from module intprops:
6646
# Code from module langinfo:
6647
# Code from module localcharset:
6648
# Code from module malloc-gnu:
6649
# Code from module malloc-posix:
6650
# Code from module mbrtowc:
6651
# Code from module mbsinit:
6652
# Code from module mbsrtowcs:
6653
# Code from module memchr:
6654
# Code from module mempcpy:
6655
# Code from module multiarch:
6656
# Code from module nl_langinfo:
6657
# Code from module progname:
6658
# Code from module rawmemchr:
6659
# Code from module realloc-posix:
6660
# Code from module regex:
6661
# Code from module size_max:
6662
# Code from module sleep:
6663
# Code from module ssize_t:
6664
# Code from module stdbool:
6665
# Code from module stddef:
6666
# Code from module stdint:
6667
# Code from module stdio:
6668
# Code from module stdlib:
6669
# Code from module strcase:
6670
# Code from module strchrnul:
6671
# Code from module streq:
6672
# Code from module strerror:
6673
# Code from module string:
6674
# Code from module strings:
6675
# Code from module strndup:
6676
# Code from module strnlen:
6677
# Code from module strnlen1:
6678
# Code from module sys_wait:
6679
# Code from module sysexits:
6680
# Code from module unistd:
6681
# Code from module vasnprintf:
6682
# Code from module verify:
6683
# Code from module vsnprintf:
6684
# Code from module warn-on-use:
6685
# Code from module wchar:
6686
# Code from module wcrtomb:
6687
# Code from module wctype:
6688
# Code from module xsize:
6690
if test "x$CC" != xcc; then
6691
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
6692
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
6694
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
6695
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
6697
set dummy $CC; ac_cc=`$as_echo "$2" |
6698
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6699
if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
6700
$as_echo_n "(cached) " >&6
6702
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703
/* end confdefs.h. */
6713
# Make sure it works both with $CC and with simple cc.
6714
# We do the test twice because some compilers refuse to overwrite an
6715
# existing .o file with -o, though they will create one.
6716
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6718
if { { case "(($ac_try" in
6719
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6720
*) ac_try_echo=$ac_try;;
6722
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6723
$as_echo "$ac_try_echo"; } >&5
6724
(eval "$ac_try") 2>&5
6726
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6727
test $ac_status = 0; } &&
6728
test -f conftest2.$ac_objext && { { case "(($ac_try" in
6729
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6730
*) ac_try_echo=$ac_try;;
6732
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6733
$as_echo "$ac_try_echo"; } >&5
6734
(eval "$ac_try") 2>&5
6736
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6737
test $ac_status = 0; };
6739
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6740
if test "x$CC" != xcc; then
6741
# Test first that cc exists at all.
6742
if { ac_try='cc -c conftest.$ac_ext >&5'
6743
{ { case "(($ac_try" in
6744
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6745
*) ac_try_echo=$ac_try;;
6747
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6748
$as_echo "$ac_try_echo"; } >&5
6749
(eval "$ac_try") 2>&5
6751
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6752
test $ac_status = 0; }; }; then
6753
ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6755
if { { case "(($ac_try" in
6756
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6757
*) ac_try_echo=$ac_try;;
6759
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6760
$as_echo "$ac_try_echo"; } >&5
6761
(eval "$ac_try") 2>&5
6763
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6764
test $ac_status = 0; } &&
6765
test -f conftest2.$ac_objext && { { case "(($ac_try" in
6766
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6767
*) ac_try_echo=$ac_try;;
6769
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6770
$as_echo "$ac_try_echo"; } >&5
6771
(eval "$ac_try") 2>&5
6773
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6774
test $ac_status = 0; };
6779
# cc exists but doesn't like -o.
6780
eval ac_cv_prog_cc_${ac_cc}_c_o=no
6785
eval ac_cv_prog_cc_${ac_cc}_c_o=no
6787
rm -f core conftest*
6790
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
6791
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6792
$as_echo "yes" >&6; }
6794
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795
$as_echo "no" >&6; }
6797
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
6801
# FIXME: we rely on the cache variable name because
6802
# there is no other way.
6804
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6805
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6806
if test "$am_t" != yes; then
6807
# Losing compiler, so override with the script.
6808
# FIXME: It is wrong to rewrite CC.
6809
# But if we don't then we get into trouble of one sort or another.
6810
# A longer-term fix would be to have automake use am__CC in this case,
6811
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6812
CC="$am_aux_dir/compile $CC"
6816
# By default we simply use the C compiler to build assembly code.
6818
test "${CCAS+set}" = set || CCAS=$CC
6819
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6823
depcc="$CCAS" am_compiler_list=
6825
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6826
$as_echo_n "checking dependency style of $depcc... " >&6; }
6827
if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
6828
$as_echo_n "(cached) " >&6
6830
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6831
# We make a subdir and do the tests there. Otherwise we can end up
6832
# making bogus files that we don't know about and never remove. For
6833
# instance it was reported that on HP-UX the gcc test will end up
6834
# making a dummy file named `D' -- because `-MD' means `put the output
6837
# Copy depcomp to subdir because otherwise we won't find it if we're
6838
# using a relative directory.
6839
cp "$am_depcomp" conftest.dir
6841
# We will build objects and dependencies in a subdirectory because
6842
# it helps to detect inapplicable dependency modes. For instance
6843
# both Tru64's cc and ICC support -MD to output dependencies as a
6844
# side effect of compilation, but ICC will put the dependencies in
6845
# the current directory while Tru64 will put them in the object
6849
am_cv_CCAS_dependencies_compiler_type=none
6850
if test "$am_compiler_list" = ""; then
6851
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6856
for depmode in $am_compiler_list; do
6857
# Setup a source with many dependencies, because some compilers
6858
# like to wrap large dependency lists on column 80 (with \), and
6859
# we should not choose a depcomp mode which is confused by this.
6861
# We need to recreate these files for each test, as the compiler may
6862
# overwrite some of them when testing with obscure command lines.
6863
# This happens at least with the AIX C compiler.
6865
for i in 1 2 3 4 5 6; do
6866
echo '#include "conftst'$i'.h"' >> sub/conftest.c
6867
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6868
# Solaris 8's {/usr,}/bin/sh.
6869
touch sub/conftst$i.h
6871
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6873
# We check with `-c' and `-o' for the sake of the "dashmstdout"
6874
# mode. It turns out that the SunPro C++ compiler does not properly
6875
# handle `-M -o', and we need to detect this. Also, some Intel
6876
# versions had trouble with output in subdirs
6877
am__obj=sub/conftest.${OBJEXT-o}
6878
am__minus_obj="-o $am__obj"
6881
# This depmode causes a compiler race in universal mode.
6882
test "$am__universal" = false || continue
6885
# after this tag, mechanisms are not by side-effect, so they'll
6886
# only be used when explicitly requested
6887
if test "x$enable_dependency_tracking" = xyes; then
6893
msvisualcpp | msvcmsys)
6894
# This compiler won't grok `-c -o', but also, the minuso test has
6895
# not run yet. These depmodes are late enough in the game, and
6896
# so weak that their functioning should not be impacted.
6897
am__obj=conftest.${OBJEXT-o}
6902
if depmode=$depmode \
6903
source=sub/conftest.c object=$am__obj \
6904
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6905
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6906
>/dev/null 2>conftest.err &&
6907
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6908
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6909
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6910
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6911
# icc doesn't choke on unknown options, it will just issue warnings
6912
# or remarks (even with -Werror). So we grep stderr for any message
6913
# that says an option was ignored or not supported.
6914
# When given -MP, icc 7.0 and 7.1 complain thusly:
6915
# icc: Command line warning: ignoring option '-M'; no argument required
6916
# The diagnosis changed in icc 8.0:
6917
# icc: Command line remark: option '-MP' not supported
6918
if (grep 'ignoring option' conftest.err ||
6919
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6920
am_cv_CCAS_dependencies_compiler_type=$depmode
6929
am_cv_CCAS_dependencies_compiler_type=none
6933
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
6934
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
6935
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
6938
test "x$enable_dependency_tracking" != xno \
6939
&& test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
6940
am__fastdepCCAS_TRUE=
6941
am__fastdepCCAS_FALSE='#'
6943
am__fastdepCCAS_TRUE='#'
6944
am__fastdepCCAS_FALSE=
6950
test "x$GCC" = xyes || as_fn_error $? "GCC is required" "$LINENO" 5
6954
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6955
$as_echo_n "checking whether NLS is requested... " >&6; }
6956
# Check whether --enable-nls was given.
6957
if test "${enable_nls+set}" = set; then :
6958
enableval=$enable_nls; USE_NLS=$enableval
6963
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6964
$as_echo "$USE_NLS" >&6; }
6969
GETTEXT_MACRO_VERSION=0.18
6974
# Prepare PATH_SEPARATOR.
6975
# The user is always right.
6976
if test "${PATH_SEPARATOR+set}" != set; then
6977
# Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6978
# contains only /bin. Note that ksh looks also at the FPATH variable,
6979
# so we have to set that as well for the test.
6981
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6982
&& { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6983
|| PATH_SEPARATOR=';'
6987
# Find out how to test for executable files. Don't use a zero-byte file,
6988
# as systems may use methods other than mode bits to determine executability.
6989
cat >conf$$.file <<_ASEOF
6993
chmod +x conf$$.file
6994
if test -x conf$$.file >/dev/null 2>&1; then
6995
ac_executable_p="test -x"
6997
ac_executable_p="test -f"
7001
# Extract the first word of "msgfmt", so it can be a program name with args.
7002
set dummy msgfmt; ac_word=$2
7003
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7004
$as_echo_n "checking for $ac_word... " >&6; }
7005
if test "${ac_cv_path_MSGFMT+set}" = set; then :
7006
$as_echo_n "(cached) " >&6
7010
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7013
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7014
for ac_dir in $PATH; do
7016
test -z "$ac_dir" && ac_dir=.
7017
for ac_exec_ext in '' $ac_executable_extensions; do
7018
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7019
echo "$as_me: trying $ac_dir/$ac_word..." >&5
7020
if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
7021
(if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7022
ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7029
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7033
MSGFMT="$ac_cv_path_MSGFMT"
7034
if test "$MSGFMT" != ":"; then
7035
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
7036
$as_echo "$MSGFMT" >&6; }
7038
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039
$as_echo "no" >&6; }
7042
# Extract the first word of "gmsgfmt", so it can be a program name with args.
7043
set dummy gmsgfmt; ac_word=$2
7044
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7045
$as_echo_n "checking for $ac_word... " >&6; }
7046
if test "${ac_cv_path_GMSGFMT+set}" = set; then :
7047
$as_echo_n "(cached) " >&6
7051
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7054
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058
test -z "$as_dir" && as_dir=.
7059
for ac_exec_ext in '' $ac_executable_extensions; do
7060
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7061
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7062
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7069
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7073
GMSGFMT=$ac_cv_path_GMSGFMT
7074
if test -n "$GMSGFMT"; then
7075
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7076
$as_echo "$GMSGFMT" >&6; }
7078
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079
$as_echo "no" >&6; }
7084
case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7085
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
7086
*) MSGFMT_015=$MSGFMT ;;
7089
case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7090
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
7091
*) GMSGFMT_015=$GMSGFMT ;;
7096
# Prepare PATH_SEPARATOR.
7097
# The user is always right.
7098
if test "${PATH_SEPARATOR+set}" != set; then
7099
# Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7100
# contains only /bin. Note that ksh looks also at the FPATH variable,
7101
# so we have to set that as well for the test.
7103
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7104
&& { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7105
|| PATH_SEPARATOR=';'
7109
# Find out how to test for executable files. Don't use a zero-byte file,
7110
# as systems may use methods other than mode bits to determine executability.
7111
cat >conf$$.file <<_ASEOF
7115
chmod +x conf$$.file
7116
if test -x conf$$.file >/dev/null 2>&1; then
7117
ac_executable_p="test -x"
7119
ac_executable_p="test -f"
7123
# Extract the first word of "xgettext", so it can be a program name with args.
7124
set dummy xgettext; ac_word=$2
7125
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7126
$as_echo_n "checking for $ac_word... " >&6; }
7127
if test "${ac_cv_path_XGETTEXT+set}" = set; then :
7128
$as_echo_n "(cached) " >&6
7132
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7135
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7136
for ac_dir in $PATH; do
7138
test -z "$ac_dir" && ac_dir=.
7139
for ac_exec_ext in '' $ac_executable_extensions; do
7140
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7141
echo "$as_me: trying $ac_dir/$ac_word..." >&5
7142
if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
7143
(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
7144
ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7151
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7155
XGETTEXT="$ac_cv_path_XGETTEXT"
7156
if test "$XGETTEXT" != ":"; then
7157
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7158
$as_echo "$XGETTEXT" >&6; }
7160
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7161
$as_echo "no" >&6; }
7166
case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7167
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
7168
*) XGETTEXT_015=$XGETTEXT ;;
7173
# Prepare PATH_SEPARATOR.
7174
# The user is always right.
7175
if test "${PATH_SEPARATOR+set}" != set; then
7176
# Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7177
# contains only /bin. Note that ksh looks also at the FPATH variable,
7178
# so we have to set that as well for the test.
7180
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7181
&& { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7182
|| PATH_SEPARATOR=';'
7186
# Find out how to test for executable files. Don't use a zero-byte file,
7187
# as systems may use methods other than mode bits to determine executability.
7188
cat >conf$$.file <<_ASEOF
7192
chmod +x conf$$.file
7193
if test -x conf$$.file >/dev/null 2>&1; then
7194
ac_executable_p="test -x"
7196
ac_executable_p="test -f"
7200
# Extract the first word of "msgmerge", so it can be a program name with args.
7201
set dummy msgmerge; ac_word=$2
7202
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7203
$as_echo_n "checking for $ac_word... " >&6; }
7204
if test "${ac_cv_path_MSGMERGE+set}" = set; then :
7205
$as_echo_n "(cached) " >&6
7209
ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7212
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7213
for ac_dir in $PATH; do
7215
test -z "$ac_dir" && ac_dir=.
7216
for ac_exec_ext in '' $ac_executable_extensions; do
7217
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7218
echo "$as_me: trying $ac_dir/$ac_word..." >&5
7219
if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
7220
ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7227
test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7231
MSGMERGE="$ac_cv_path_MSGMERGE"
7232
if test "$MSGMERGE" != ":"; then
7233
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7234
$as_echo "$MSGMERGE" >&6; }
7236
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237
$as_echo "no" >&6; }
7241
test -n "$localedir" || localedir='${datadir}/locale'
7244
test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
7247
ac_config_commands="$ac_config_commands po-directories"
7251
if test "X$prefix" = "XNONE"; then
7252
acl_final_prefix="$ac_default_prefix"
7254
acl_final_prefix="$prefix"
7256
if test "X$exec_prefix" = "XNONE"; then
7257
acl_final_exec_prefix='${prefix}'
7259
acl_final_exec_prefix="$exec_prefix"
7261
acl_save_prefix="$prefix"
7262
prefix="$acl_final_prefix"
7263
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7264
prefix="$acl_save_prefix"
7267
# Check whether --with-gnu-ld was given.
7268
if test "${with_gnu_ld+set}" = set; then :
7269
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7274
# Prepare PATH_SEPARATOR.
7275
# The user is always right.
7276
if test "${PATH_SEPARATOR+set}" != set; then
7277
# Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7278
# contains only /bin. Note that ksh looks also at the FPATH variable,
7279
# so we have to set that as well for the test.
7281
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7282
&& { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7283
|| PATH_SEPARATOR=';'
7287
if test "$GCC" = yes; then
7288
# Check if gcc -print-prog-name=ld gives a path.
7289
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7290
$as_echo_n "checking for ld used by GCC... " >&6; }
7293
# gcc leaves a trailing carriage return which upsets mingw
7294
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7296
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7299
# Accept absolute paths.
7300
[\\/]* | [A-Za-z]:[\\/]*)
7301
re_direlt='/[^/][^/]*/\.\./'
7302
# Canonicalize the path of ld
7303
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7304
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7305
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7307
test -z "$LD" && LD="$ac_prog"
7310
# If it fails, then pretend we aren't using GCC.
7314
# If it is relative, then search for the first ld in PATH.
7318
elif test "$with_gnu_ld" = yes; then
7319
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7320
$as_echo_n "checking for GNU ld... " >&6; }
7322
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7323
$as_echo_n "checking for non-GNU ld... " >&6; }
7325
if test "${acl_cv_path_LD+set}" = set; then :
7326
$as_echo_n "(cached) " >&6
7328
if test -z "$LD"; then
7329
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7330
for ac_dir in $PATH; do
7331
test -z "$ac_dir" && ac_dir=.
7332
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7333
acl_cv_path_LD="$ac_dir/$ac_prog"
7334
# Check to see if the program is GNU ld. I'd rather use --version,
7335
# but apparently some GNU ld's only accept -v.
7336
# Break only if it was the GNU/non-GNU ld that we prefer.
7337
case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7338
*GNU* | *'with BFD'*)
7339
test "$with_gnu_ld" != no && break ;;
7341
test "$with_gnu_ld" != yes && break ;;
7347
acl_cv_path_LD="$LD" # Let the user override the test with a path.
7351
LD="$acl_cv_path_LD"
7352
if test -n "$LD"; then
7353
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7354
$as_echo "$LD" >&6; }
7356
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357
$as_echo "no" >&6; }
7359
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7360
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7361
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7362
if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7363
$as_echo_n "(cached) " >&6
7365
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
7366
case `$LD -v 2>&1 </dev/null` in
7367
*GNU* | *'with BFD'*)
7368
acl_cv_prog_gnu_ld=yes ;;
7370
acl_cv_prog_gnu_ld=no ;;
7373
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7374
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
7375
with_gnu_ld=$acl_cv_prog_gnu_ld
7380
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7381
$as_echo_n "checking for shared library run path origin... " >&6; }
7382
if test "${acl_cv_rpath+set}" = set; then :
7383
$as_echo_n "(cached) " >&6
7386
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7387
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7393
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7394
$as_echo "$acl_cv_rpath" >&6; }
7396
acl_libext="$acl_cv_libext"
7397
acl_shlibext="$acl_cv_shlibext"
7398
acl_libname_spec="$acl_cv_libname_spec"
7399
acl_library_names_spec="$acl_cv_library_names_spec"
7400
acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7401
acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7402
acl_hardcode_direct="$acl_cv_hardcode_direct"
7403
acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7404
# Check whether --enable-rpath was given.
7405
if test "${enable_rpath+set}" = set; then :
7406
enableval=$enable_rpath; :
7418
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7419
$as_echo_n "checking for 64-bit host... " >&6; }
7420
if test "${gl_cv_solaris_64bit+set}" = set; then :
7421
$as_echo_n "(cached) " >&6
7423
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424
/* end confdefs.h. */
7431
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7432
$EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7433
gl_cv_solaris_64bit=yes
7435
gl_cv_solaris_64bit=no
7441
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7442
$as_echo "$gl_cv_solaris_64bit" >&6; }
7443
if test $gl_cv_solaris_64bit = yes; then
7444
acl_libdirstem=lib/64
7446
sparc*) acl_libdirstem2=lib/sparcv9 ;;
7447
i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7452
searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7453
if test -n "$searchpath"; then
7454
acl_save_IFS="${IFS= }"; IFS=":"
7455
for searchdir in $searchpath; do
7456
if test -d "$searchdir"; then
7457
case "$searchdir" in
7458
*/lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7460
# Better ignore directories of this form. They are misleading.
7462
*) searchdir=`cd "$searchdir" && pwd`
7463
case "$searchdir" in
7464
*/lib64 ) acl_libdirstem=lib64 ;;
7473
test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7488
acl_save_prefix="$prefix"
7489
prefix="$acl_final_prefix"
7490
acl_save_exec_prefix="$exec_prefix"
7491
exec_prefix="$acl_final_exec_prefix"
7493
eval additional_includedir=\"$includedir\"
7494
eval additional_libdir=\"$libdir\"
7496
exec_prefix="$acl_save_exec_prefix"
7497
prefix="$acl_save_prefix"
7500
# Check whether --with-libiconv-prefix was given.
7501
if test "${with_libiconv_prefix+set}" = set; then :
7502
withval=$with_libiconv_prefix;
7503
if test "X$withval" = "Xno"; then
7506
if test "X$withval" = "X"; then
7508
acl_save_prefix="$prefix"
7509
prefix="$acl_final_prefix"
7510
acl_save_exec_prefix="$exec_prefix"
7511
exec_prefix="$acl_final_exec_prefix"
7513
eval additional_includedir=\"$includedir\"
7514
eval additional_libdir=\"$libdir\"
7516
exec_prefix="$acl_save_exec_prefix"
7517
prefix="$acl_save_prefix"
7520
additional_includedir="$withval/include"
7521
additional_libdir="$withval/$acl_libdirstem"
7522
if test "$acl_libdirstem2" != "$acl_libdirstem" \
7523
&& ! test -d "$withval/$acl_libdirstem"; then
7524
additional_libdir="$withval/$acl_libdirstem2"
7538
names_already_handled=
7539
names_next_round='iconv '
7540
while test -n "$names_next_round"; do
7541
names_this_round="$names_next_round"
7543
for name in $names_this_round; do
7545
for n in $names_already_handled; do
7546
if test "$n" = "$name"; then
7551
if test -z "$already_handled"; then
7552
names_already_handled="$names_already_handled $name"
7553
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
7554
eval value=\"\$HAVE_LIB$uppername\"
7555
if test -n "$value"; then
7556
if test "$value" = yes; then
7557
eval value=\"\$LIB$uppername\"
7558
test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7559
eval value=\"\$LTLIB$uppername\"
7560
test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7569
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7570
if test -n "$acl_shlibext"; then
7571
shrext=".$acl_shlibext" # typically: shrext=.so
7575
if test $use_additional = yes; then
7576
dir="$additional_libdir"
7577
if test -n "$acl_shlibext"; then
7578
if test -f "$dir/$libname$shrext"; then
7580
found_so="$dir/$libname$shrext"
7582
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7583
ver=`(cd "$dir" && \
7584
for f in "$libname$shrext".*; do echo "$f"; done \
7585
| sed -e "s,^$libname$shrext\\\\.,," \
7586
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7587
| sed 1q ) 2>/dev/null`
7588
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7590
found_so="$dir/$libname$shrext.$ver"
7593
eval library_names=\"$acl_library_names_spec\"
7594
for f in $library_names; do
7595
if test -f "$dir/$f"; then
7604
if test "X$found_dir" = "X"; then
7605
if test -f "$dir/$libname.$acl_libext"; then
7607
found_a="$dir/$libname.$acl_libext"
7610
if test "X$found_dir" != "X"; then
7611
if test -f "$dir/$libname.la"; then
7612
found_la="$dir/$libname.la"
7616
if test "X$found_dir" = "X"; then
7617
for x in $LDFLAGS $LTLIBICONV; do
7619
acl_save_prefix="$prefix"
7620
prefix="$acl_final_prefix"
7621
acl_save_exec_prefix="$exec_prefix"
7622
exec_prefix="$acl_final_exec_prefix"
7624
exec_prefix="$acl_save_exec_prefix"
7625
prefix="$acl_save_prefix"
7629
dir=`echo "X$x" | sed -e 's/^X-L//'`
7630
if test -n "$acl_shlibext"; then
7631
if test -f "$dir/$libname$shrext"; then
7633
found_so="$dir/$libname$shrext"
7635
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7636
ver=`(cd "$dir" && \
7637
for f in "$libname$shrext".*; do echo "$f"; done \
7638
| sed -e "s,^$libname$shrext\\\\.,," \
7639
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7640
| sed 1q ) 2>/dev/null`
7641
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7643
found_so="$dir/$libname$shrext.$ver"
7646
eval library_names=\"$acl_library_names_spec\"
7647
for f in $library_names; do
7648
if test -f "$dir/$f"; then
7657
if test "X$found_dir" = "X"; then
7658
if test -f "$dir/$libname.$acl_libext"; then
7660
found_a="$dir/$libname.$acl_libext"
7663
if test "X$found_dir" != "X"; then
7664
if test -f "$dir/$libname.la"; then
7665
found_la="$dir/$libname.la"
7670
if test "X$found_dir" != "X"; then
7675
if test "X$found_dir" != "X"; then
7676
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7677
if test "X$found_so" != "X"; then
7678
if test "$enable_rpath" = no \
7679
|| test "X$found_dir" = "X/usr/$acl_libdirstem" \
7680
|| test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7681
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7684
for x in $ltrpathdirs; do
7685
if test "X$x" = "X$found_dir"; then
7690
if test -z "$haveit"; then
7691
ltrpathdirs="$ltrpathdirs $found_dir"
7693
if test "$acl_hardcode_direct" = yes; then
7694
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7696
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7697
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7699
for x in $rpathdirs; do
7700
if test "X$x" = "X$found_dir"; then
7705
if test -z "$haveit"; then
7706
rpathdirs="$rpathdirs $found_dir"
7710
for x in $LDFLAGS $LIBICONV; do
7712
acl_save_prefix="$prefix"
7713
prefix="$acl_final_prefix"
7714
acl_save_exec_prefix="$exec_prefix"
7715
exec_prefix="$acl_final_exec_prefix"
7717
exec_prefix="$acl_save_exec_prefix"
7718
prefix="$acl_save_prefix"
7720
if test "X$x" = "X-L$found_dir"; then
7725
if test -z "$haveit"; then
7726
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7728
if test "$acl_hardcode_minus_L" != no; then
7729
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7731
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7737
if test "X$found_a" != "X"; then
7738
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7740
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7743
additional_includedir=
7744
case "$found_dir" in
7745
*/$acl_libdirstem | */$acl_libdirstem/)
7746
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7747
if test "$name" = 'iconv'; then
7748
LIBICONV_PREFIX="$basedir"
7750
additional_includedir="$basedir/include"
7752
*/$acl_libdirstem2 | */$acl_libdirstem2/)
7753
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7754
if test "$name" = 'iconv'; then
7755
LIBICONV_PREFIX="$basedir"
7757
additional_includedir="$basedir/include"
7760
if test "X$additional_includedir" != "X"; then
7761
if test "X$additional_includedir" != "X/usr/include"; then
7763
if test "X$additional_includedir" = "X/usr/local/include"; then
7764
if test -n "$GCC"; then
7766
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7770
if test -z "$haveit"; then
7771
for x in $CPPFLAGS $INCICONV; do
7773
acl_save_prefix="$prefix"
7774
prefix="$acl_final_prefix"
7775
acl_save_exec_prefix="$exec_prefix"
7776
exec_prefix="$acl_final_exec_prefix"
7778
exec_prefix="$acl_save_exec_prefix"
7779
prefix="$acl_save_prefix"
7781
if test "X$x" = "X-I$additional_includedir"; then
7786
if test -z "$haveit"; then
7787
if test -d "$additional_includedir"; then
7788
INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7794
if test -n "$found_la"; then
7795
save_libdir="$libdir"
7797
*/* | *\\*) . "$found_la" ;;
7798
*) . "./$found_la" ;;
7800
libdir="$save_libdir"
7801
for dep in $dependency_libs; do
7804
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7805
if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7806
&& test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7808
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7809
|| test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7810
if test -n "$GCC"; then
7812
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7816
if test -z "$haveit"; then
7818
for x in $LDFLAGS $LIBICONV; do
7820
acl_save_prefix="$prefix"
7821
prefix="$acl_final_prefix"
7822
acl_save_exec_prefix="$exec_prefix"
7823
exec_prefix="$acl_final_exec_prefix"
7825
exec_prefix="$acl_save_exec_prefix"
7826
prefix="$acl_save_prefix"
7828
if test "X$x" = "X-L$additional_libdir"; then
7833
if test -z "$haveit"; then
7834
if test -d "$additional_libdir"; then
7835
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7839
for x in $LDFLAGS $LTLIBICONV; do
7841
acl_save_prefix="$prefix"
7842
prefix="$acl_final_prefix"
7843
acl_save_exec_prefix="$exec_prefix"
7844
exec_prefix="$acl_final_exec_prefix"
7846
exec_prefix="$acl_save_exec_prefix"
7847
prefix="$acl_save_prefix"
7849
if test "X$x" = "X-L$additional_libdir"; then
7854
if test -z "$haveit"; then
7855
if test -d "$additional_libdir"; then
7856
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7863
dir=`echo "X$dep" | sed -e 's/^X-R//'`
7864
if test "$enable_rpath" != no; then
7866
for x in $rpathdirs; do
7867
if test "X$x" = "X$dir"; then
7872
if test -z "$haveit"; then
7873
rpathdirs="$rpathdirs $dir"
7876
for x in $ltrpathdirs; do
7877
if test "X$x" = "X$dir"; then
7882
if test -z "$haveit"; then
7883
ltrpathdirs="$ltrpathdirs $dir"
7888
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7891
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7894
LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7895
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7901
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7902
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7908
if test "X$rpathdirs" != "X"; then
7909
if test -n "$acl_hardcode_libdir_separator"; then
7911
for found_dir in $rpathdirs; do
7912
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7914
acl_save_libdir="$libdir"
7916
eval flag=\"$acl_hardcode_libdir_flag_spec\"
7917
libdir="$acl_save_libdir"
7918
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7920
for found_dir in $rpathdirs; do
7921
acl_save_libdir="$libdir"
7923
eval flag=\"$acl_hardcode_libdir_flag_spec\"
7924
libdir="$acl_save_libdir"
7925
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7929
if test "X$ltrpathdirs" != "X"; then
7930
for found_dir in $ltrpathdirs; do
7931
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7965
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
7966
$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
7967
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
7968
$as_echo_n "(cached) " >&6
7970
gt_save_LIBS="$LIBS"
7971
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7972
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973
/* end confdefs.h. */
7974
#include <CoreFoundation/CFPreferences.h>
7978
CFPreferencesCopyAppValue(NULL, NULL)
7983
if ac_fn_c_try_link "$LINENO"; then :
7984
gt_cv_func_CFPreferencesCopyAppValue=yes
7986
gt_cv_func_CFPreferencesCopyAppValue=no
7988
rm -f core conftest.err conftest.$ac_objext \
7989
conftest$ac_exeext conftest.$ac_ext
7990
LIBS="$gt_save_LIBS"
7992
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
7993
$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
7994
if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
7996
$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
7999
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
8000
$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
8001
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
8002
$as_echo_n "(cached) " >&6
8004
gt_save_LIBS="$LIBS"
8005
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8006
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007
/* end confdefs.h. */
8008
#include <CoreFoundation/CFLocale.h>
8012
CFLocaleCopyCurrent();
8017
if ac_fn_c_try_link "$LINENO"; then :
8018
gt_cv_func_CFLocaleCopyCurrent=yes
8020
gt_cv_func_CFLocaleCopyCurrent=no
8022
rm -f core conftest.err conftest.$ac_objext \
8023
conftest$ac_exeext conftest.$ac_ext
8024
LIBS="$gt_save_LIBS"
8026
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8027
$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8028
if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8030
$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
8034
if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8035
INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8047
case " $gt_needs " in
8048
*" need-formatstring-macros "*) gt_api_version=3 ;;
8049
*" need-ngettext "*) gt_api_version=2 ;;
8050
*) gt_api_version=1 ;;
8052
gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
8053
gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
8055
if test "$USE_NLS" = "yes"; then
8056
gt_use_preinstalled_gnugettext=no
8059
if test $gt_api_version -ge 3; then
8060
gt_revision_test_code='
8061
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8062
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
8064
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
8067
gt_revision_test_code=
8069
if test $gt_api_version -ge 2; then
8070
gt_expression_test_code=' + * ngettext ("", "", 0)'
8072
gt_expression_test_code=
8075
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8076
$as_echo_n "checking for GNU gettext in libc... " >&6; }
8077
if eval "test \"\${$gt_func_gnugettext_libc+set}\"" = set; then :
8078
$as_echo_n "(cached) " >&6
8080
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8081
/* end confdefs.h. */
8083
#include <libintl.h>
8084
$gt_revision_test_code
8085
extern int _nl_msg_cat_cntr;
8086
extern int *_nl_domain_bindings;
8092
bindtextdomain ("", "");
8093
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
8099
if ac_fn_c_try_link "$LINENO"; then :
8100
eval "$gt_func_gnugettext_libc=yes"
8102
eval "$gt_func_gnugettext_libc=no"
8104
rm -f core conftest.err conftest.$ac_objext \
8105
conftest$ac_exeext conftest.$ac_ext
8107
eval ac_res=\$$gt_func_gnugettext_libc
8108
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8109
$as_echo "$ac_res" >&6; }
8111
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
8117
am_save_CPPFLAGS="$CPPFLAGS"
8119
for element in $INCICONV; do
8121
for x in $CPPFLAGS; do
8123
acl_save_prefix="$prefix"
8124
prefix="$acl_final_prefix"
8125
acl_save_exec_prefix="$exec_prefix"
8126
exec_prefix="$acl_final_exec_prefix"
8128
exec_prefix="$acl_save_exec_prefix"
8129
prefix="$acl_save_prefix"
8131
if test "X$x" = "X$element"; then
8136
if test -z "$haveit"; then
8137
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8142
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8143
$as_echo_n "checking for iconv... " >&6; }
8144
if test "${am_cv_func_iconv+set}" = set; then :
8145
$as_echo_n "(cached) " >&6
8148
am_cv_func_iconv="no, consider installing GNU libiconv"
8150
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8151
/* end confdefs.h. */
8159
iconv_t cd = iconv_open("","");
8160
iconv(cd,NULL,NULL,NULL,NULL);
8166
if ac_fn_c_try_link "$LINENO"; then :
8167
am_cv_func_iconv=yes
8169
rm -f core conftest.err conftest.$ac_objext \
8170
conftest$ac_exeext conftest.$ac_ext
8171
if test "$am_cv_func_iconv" != yes; then
8172
am_save_LIBS="$LIBS"
8173
LIBS="$LIBS $LIBICONV"
8174
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175
/* end confdefs.h. */
8183
iconv_t cd = iconv_open("","");
8184
iconv(cd,NULL,NULL,NULL,NULL);
8190
if ac_fn_c_try_link "$LINENO"; then :
8192
am_cv_func_iconv=yes
8194
rm -f core conftest.err conftest.$ac_objext \
8195
conftest$ac_exeext conftest.$ac_ext
8196
LIBS="$am_save_LIBS"
8200
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8201
$as_echo "$am_cv_func_iconv" >&6; }
8202
if test "$am_cv_func_iconv" = yes; then
8203
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
8204
$as_echo_n "checking for working iconv... " >&6; }
8205
if test "${am_cv_func_iconv_works+set}" = set; then :
8206
$as_echo_n "(cached) " >&6
8209
am_save_LIBS="$LIBS"
8210
if test $am_cv_lib_iconv = yes; then
8211
LIBS="$LIBS $LIBICONV"
8213
if test "$cross_compiling" = yes; then :
8216
aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
8217
*) am_cv_func_iconv_works="guessing yes" ;;
8221
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222
/* end confdefs.h. */
8228
/* Test against AIX 5.1 bug: Failures are not distinguishable from successful
8231
iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8232
if (cd_utf8_to_88591 != (iconv_t)(-1))
8234
static const char input[] = "\342\202\254"; /* EURO SIGN */
8236
const char *inptr = input;
8237
size_t inbytesleft = strlen (input);
8239
size_t outbytesleft = sizeof (buf);
8240
size_t res = iconv (cd_utf8_to_88591,
8241
(char **) &inptr, &inbytesleft,
8242
&outptr, &outbytesleft);
8247
/* Test against Solaris 10 bug: Failures are not distinguishable from
8248
successful returns. */
8250
iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8251
if (cd_ascii_to_88591 != (iconv_t)(-1))
8253
static const char input[] = "\263";
8255
const char *inptr = input;
8256
size_t inbytesleft = strlen (input);
8258
size_t outbytesleft = sizeof (buf);
8259
size_t res = iconv (cd_ascii_to_88591,
8260
(char **) &inptr, &inbytesleft,
8261
&outptr, &outbytesleft);
8266
/* Test against AIX 6.1..7.1 bug: Buffer overrun. */
8268
iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8269
if (cd_88591_to_utf8 != (iconv_t)(-1))
8271
static const char input[] = "\304";
8272
static char buf[2] = { (char)0xDE, (char)0xAD };
8273
const char *inptr = input;
8274
size_t inbytesleft = 1;
8276
size_t outbytesleft = 1;
8277
size_t res = iconv (cd_88591_to_utf8,
8278
(char **) &inptr, &inbytesleft,
8279
&outptr, &outbytesleft);
8280
if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8284
#if 0 /* This bug could be worked around by the caller. */
8285
/* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
8287
iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8288
if (cd_88591_to_utf8 != (iconv_t)(-1))
8290
static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8292
const char *inptr = input;
8293
size_t inbytesleft = strlen (input);
8295
size_t outbytesleft = sizeof (buf);
8296
size_t res = iconv (cd_88591_to_utf8,
8297
(char **) &inptr, &inbytesleft,
8298
&outptr, &outbytesleft);
8304
/* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8306
if (/* Try standardized names. */
8307
iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
8308
/* Try IRIX, OSF/1 names. */
8309
&& iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
8310
/* Try AIX names. */
8311
&& iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
8312
/* Try HP-UX names. */
8313
&& iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
8318
if ac_fn_c_try_run "$LINENO"; then :
8319
am_cv_func_iconv_works=yes
8321
am_cv_func_iconv_works=no
8323
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8324
conftest.$ac_objext conftest.beam conftest.$ac_ext
8327
LIBS="$am_save_LIBS"
8330
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8331
$as_echo "$am_cv_func_iconv_works" >&6; }
8332
case "$am_cv_func_iconv_works" in
8333
*no) am_func_iconv=no am_cv_lib_iconv=no ;;
8334
*) am_func_iconv=yes ;;
8337
am_func_iconv=no am_cv_lib_iconv=no
8339
if test "$am_func_iconv" = yes; then
8341
$as_echo "#define HAVE_ICONV 1" >>confdefs.h
8344
if test "$am_cv_lib_iconv" = yes; then
8345
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8346
$as_echo_n "checking how to link with libiconv... " >&6; }
8347
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8348
$as_echo "$LIBICONV" >&6; }
8350
CPPFLAGS="$am_save_CPPFLAGS"
8367
acl_save_prefix="$prefix"
8368
prefix="$acl_final_prefix"
8369
acl_save_exec_prefix="$exec_prefix"
8370
exec_prefix="$acl_final_exec_prefix"
8372
eval additional_includedir=\"$includedir\"
8373
eval additional_libdir=\"$libdir\"
8375
exec_prefix="$acl_save_exec_prefix"
8376
prefix="$acl_save_prefix"
8379
# Check whether --with-libintl-prefix was given.
8380
if test "${with_libintl_prefix+set}" = set; then :
8381
withval=$with_libintl_prefix;
8382
if test "X$withval" = "Xno"; then
8385
if test "X$withval" = "X"; then
8387
acl_save_prefix="$prefix"
8388
prefix="$acl_final_prefix"
8389
acl_save_exec_prefix="$exec_prefix"
8390
exec_prefix="$acl_final_exec_prefix"
8392
eval additional_includedir=\"$includedir\"
8393
eval additional_libdir=\"$libdir\"
8395
exec_prefix="$acl_save_exec_prefix"
8396
prefix="$acl_save_prefix"
8399
additional_includedir="$withval/include"
8400
additional_libdir="$withval/$acl_libdirstem"
8401
if test "$acl_libdirstem2" != "$acl_libdirstem" \
8402
&& ! test -d "$withval/$acl_libdirstem"; then
8403
additional_libdir="$withval/$acl_libdirstem2"
8417
names_already_handled=
8418
names_next_round='intl '
8419
while test -n "$names_next_round"; do
8420
names_this_round="$names_next_round"
8422
for name in $names_this_round; do
8424
for n in $names_already_handled; do
8425
if test "$n" = "$name"; then
8430
if test -z "$already_handled"; then
8431
names_already_handled="$names_already_handled $name"
8432
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8433
eval value=\"\$HAVE_LIB$uppername\"
8434
if test -n "$value"; then
8435
if test "$value" = yes; then
8436
eval value=\"\$LIB$uppername\"
8437
test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8438
eval value=\"\$LTLIB$uppername\"
8439
test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8448
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8449
if test -n "$acl_shlibext"; then
8450
shrext=".$acl_shlibext" # typically: shrext=.so
8454
if test $use_additional = yes; then
8455
dir="$additional_libdir"
8456
if test -n "$acl_shlibext"; then
8457
if test -f "$dir/$libname$shrext"; then
8459
found_so="$dir/$libname$shrext"
8461
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8462
ver=`(cd "$dir" && \
8463
for f in "$libname$shrext".*; do echo "$f"; done \
8464
| sed -e "s,^$libname$shrext\\\\.,," \
8465
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8466
| sed 1q ) 2>/dev/null`
8467
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8469
found_so="$dir/$libname$shrext.$ver"
8472
eval library_names=\"$acl_library_names_spec\"
8473
for f in $library_names; do
8474
if test -f "$dir/$f"; then
8483
if test "X$found_dir" = "X"; then
8484
if test -f "$dir/$libname.$acl_libext"; then
8486
found_a="$dir/$libname.$acl_libext"
8489
if test "X$found_dir" != "X"; then
8490
if test -f "$dir/$libname.la"; then
8491
found_la="$dir/$libname.la"
8495
if test "X$found_dir" = "X"; then
8496
for x in $LDFLAGS $LTLIBINTL; do
8498
acl_save_prefix="$prefix"
8499
prefix="$acl_final_prefix"
8500
acl_save_exec_prefix="$exec_prefix"
8501
exec_prefix="$acl_final_exec_prefix"
8503
exec_prefix="$acl_save_exec_prefix"
8504
prefix="$acl_save_prefix"
8508
dir=`echo "X$x" | sed -e 's/^X-L//'`
8509
if test -n "$acl_shlibext"; then
8510
if test -f "$dir/$libname$shrext"; then
8512
found_so="$dir/$libname$shrext"
8514
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8515
ver=`(cd "$dir" && \
8516
for f in "$libname$shrext".*; do echo "$f"; done \
8517
| sed -e "s,^$libname$shrext\\\\.,," \
8518
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8519
| sed 1q ) 2>/dev/null`
8520
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8522
found_so="$dir/$libname$shrext.$ver"
8525
eval library_names=\"$acl_library_names_spec\"
8526
for f in $library_names; do
8527
if test -f "$dir/$f"; then
8536
if test "X$found_dir" = "X"; then
8537
if test -f "$dir/$libname.$acl_libext"; then
8539
found_a="$dir/$libname.$acl_libext"
8542
if test "X$found_dir" != "X"; then
8543
if test -f "$dir/$libname.la"; then
8544
found_la="$dir/$libname.la"
8549
if test "X$found_dir" != "X"; then
8554
if test "X$found_dir" != "X"; then
8555
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8556
if test "X$found_so" != "X"; then
8557
if test "$enable_rpath" = no \
8558
|| test "X$found_dir" = "X/usr/$acl_libdirstem" \
8559
|| test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8560
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8563
for x in $ltrpathdirs; do
8564
if test "X$x" = "X$found_dir"; then
8569
if test -z "$haveit"; then
8570
ltrpathdirs="$ltrpathdirs $found_dir"
8572
if test "$acl_hardcode_direct" = yes; then
8573
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8575
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8576
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8578
for x in $rpathdirs; do
8579
if test "X$x" = "X$found_dir"; then
8584
if test -z "$haveit"; then
8585
rpathdirs="$rpathdirs $found_dir"
8589
for x in $LDFLAGS $LIBINTL; do
8591
acl_save_prefix="$prefix"
8592
prefix="$acl_final_prefix"
8593
acl_save_exec_prefix="$exec_prefix"
8594
exec_prefix="$acl_final_exec_prefix"
8596
exec_prefix="$acl_save_exec_prefix"
8597
prefix="$acl_save_prefix"
8599
if test "X$x" = "X-L$found_dir"; then
8604
if test -z "$haveit"; then
8605
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8607
if test "$acl_hardcode_minus_L" != no; then
8608
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8610
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8616
if test "X$found_a" != "X"; then
8617
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8619
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8622
additional_includedir=
8623
case "$found_dir" in
8624
*/$acl_libdirstem | */$acl_libdirstem/)
8625
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8626
if test "$name" = 'intl'; then
8627
LIBINTL_PREFIX="$basedir"
8629
additional_includedir="$basedir/include"
8631
*/$acl_libdirstem2 | */$acl_libdirstem2/)
8632
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8633
if test "$name" = 'intl'; then
8634
LIBINTL_PREFIX="$basedir"
8636
additional_includedir="$basedir/include"
8639
if test "X$additional_includedir" != "X"; then
8640
if test "X$additional_includedir" != "X/usr/include"; then
8642
if test "X$additional_includedir" = "X/usr/local/include"; then
8643
if test -n "$GCC"; then
8645
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8649
if test -z "$haveit"; then
8650
for x in $CPPFLAGS $INCINTL; do
8652
acl_save_prefix="$prefix"
8653
prefix="$acl_final_prefix"
8654
acl_save_exec_prefix="$exec_prefix"
8655
exec_prefix="$acl_final_exec_prefix"
8657
exec_prefix="$acl_save_exec_prefix"
8658
prefix="$acl_save_prefix"
8660
if test "X$x" = "X-I$additional_includedir"; then
8665
if test -z "$haveit"; then
8666
if test -d "$additional_includedir"; then
8667
INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8673
if test -n "$found_la"; then
8674
save_libdir="$libdir"
8676
*/* | *\\*) . "$found_la" ;;
8677
*) . "./$found_la" ;;
8679
libdir="$save_libdir"
8680
for dep in $dependency_libs; do
8683
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8684
if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8685
&& test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8687
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8688
|| test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8689
if test -n "$GCC"; then
8691
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8695
if test -z "$haveit"; then
8697
for x in $LDFLAGS $LIBINTL; do
8699
acl_save_prefix="$prefix"
8700
prefix="$acl_final_prefix"
8701
acl_save_exec_prefix="$exec_prefix"
8702
exec_prefix="$acl_final_exec_prefix"
8704
exec_prefix="$acl_save_exec_prefix"
8705
prefix="$acl_save_prefix"
8707
if test "X$x" = "X-L$additional_libdir"; then
8712
if test -z "$haveit"; then
8713
if test -d "$additional_libdir"; then
8714
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8718
for x in $LDFLAGS $LTLIBINTL; do
8720
acl_save_prefix="$prefix"
8721
prefix="$acl_final_prefix"
8722
acl_save_exec_prefix="$exec_prefix"
8723
exec_prefix="$acl_final_exec_prefix"
8725
exec_prefix="$acl_save_exec_prefix"
8726
prefix="$acl_save_prefix"
8728
if test "X$x" = "X-L$additional_libdir"; then
8733
if test -z "$haveit"; then
8734
if test -d "$additional_libdir"; then
8735
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8742
dir=`echo "X$dep" | sed -e 's/^X-R//'`
8743
if test "$enable_rpath" != no; then
8745
for x in $rpathdirs; do
8746
if test "X$x" = "X$dir"; then
8751
if test -z "$haveit"; then
8752
rpathdirs="$rpathdirs $dir"
8755
for x in $ltrpathdirs; do
8756
if test "X$x" = "X$dir"; then
8761
if test -z "$haveit"; then
8762
ltrpathdirs="$ltrpathdirs $dir"
8767
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8770
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8773
LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8774
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8780
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8781
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8787
if test "X$rpathdirs" != "X"; then
8788
if test -n "$acl_hardcode_libdir_separator"; then
8790
for found_dir in $rpathdirs; do
8791
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8793
acl_save_libdir="$libdir"
8795
eval flag=\"$acl_hardcode_libdir_flag_spec\"
8796
libdir="$acl_save_libdir"
8797
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8799
for found_dir in $rpathdirs; do
8800
acl_save_libdir="$libdir"
8802
eval flag=\"$acl_hardcode_libdir_flag_spec\"
8803
libdir="$acl_save_libdir"
8804
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8808
if test "X$ltrpathdirs" != "X"; then
8809
for found_dir in $ltrpathdirs; do
8810
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8819
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8820
$as_echo_n "checking for GNU gettext in libintl... " >&6; }
8821
if eval "test \"\${$gt_func_gnugettext_libintl+set}\"" = set; then :
8822
$as_echo_n "(cached) " >&6
8824
gt_save_CPPFLAGS="$CPPFLAGS"
8825
CPPFLAGS="$CPPFLAGS $INCINTL"
8826
gt_save_LIBS="$LIBS"
8827
LIBS="$LIBS $LIBINTL"
8828
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8829
/* end confdefs.h. */
8831
#include <libintl.h>
8832
$gt_revision_test_code
8833
extern int _nl_msg_cat_cntr;
8838
const char *_nl_expand_alias (const char *);
8844
bindtextdomain ("", "");
8845
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
8851
if ac_fn_c_try_link "$LINENO"; then :
8852
eval "$gt_func_gnugettext_libintl=yes"
8854
eval "$gt_func_gnugettext_libintl=no"
8856
rm -f core conftest.err conftest.$ac_objext \
8857
conftest$ac_exeext conftest.$ac_ext
8858
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
8859
LIBS="$LIBS $LIBICONV"
8860
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861
/* end confdefs.h. */
8863
#include <libintl.h>
8864
$gt_revision_test_code
8865
extern int _nl_msg_cat_cntr;
8870
const char *_nl_expand_alias (const char *);
8876
bindtextdomain ("", "");
8877
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
8883
if ac_fn_c_try_link "$LINENO"; then :
8884
LIBINTL="$LIBINTL $LIBICONV"
8885
LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8886
eval "$gt_func_gnugettext_libintl=yes"
8889
rm -f core conftest.err conftest.$ac_objext \
8890
conftest$ac_exeext conftest.$ac_ext
8892
CPPFLAGS="$gt_save_CPPFLAGS"
8893
LIBS="$gt_save_LIBS"
8895
eval ac_res=\$$gt_func_gnugettext_libintl
8896
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8897
$as_echo "$ac_res" >&6; }
8900
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
8901
|| { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
8902
&& test "$PACKAGE" != gettext-runtime \
8903
&& test "$PACKAGE" != gettext-tools; }; then
8904
gt_use_preinstalled_gnugettext=yes
8913
if test -n "$INTL_MACOSX_LIBS"; then
8914
if test "$gt_use_preinstalled_gnugettext" = "yes" \
8915
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
8916
LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
8917
LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
8921
if test "$gt_use_preinstalled_gnugettext" = "yes" \
8922
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
8924
$as_echo "#define ENABLE_NLS 1" >>confdefs.h
8931
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
8932
$as_echo_n "checking whether to use NLS... " >&6; }
8933
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8934
$as_echo "$USE_NLS" >&6; }
8935
if test "$USE_NLS" = "yes"; then
8936
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
8937
$as_echo_n "checking where the gettext function comes from... " >&6; }
8938
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8939
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8940
gt_source="external libintl"
8945
gt_source="included intl directory"
8947
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
8948
$as_echo "$gt_source" >&6; }
8951
if test "$USE_NLS" = "yes"; then
8953
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8954
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8955
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
8956
$as_echo_n "checking how to link with libintl... " >&6; }
8957
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
8958
$as_echo "$LIBINTL" >&6; }
8960
for element in $INCINTL; do
8962
for x in $CPPFLAGS; do
8964
acl_save_prefix="$prefix"
8965
prefix="$acl_final_prefix"
8966
acl_save_exec_prefix="$exec_prefix"
8967
exec_prefix="$acl_final_exec_prefix"
8969
exec_prefix="$acl_save_exec_prefix"
8970
prefix="$acl_save_prefix"
8972
if test "X$x" = "X$element"; then
8977
if test -z "$haveit"; then
8978
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8985
$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
8988
$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9004
# Check whether --enable-largefile was given.
9005
if test "${enable_largefile+set}" = set; then :
9006
enableval=$enable_largefile;
9009
if test "$enable_largefile" != no; then
9011
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9012
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9013
if test "${ac_cv_sys_largefile_CC+set}" = set; then :
9014
$as_echo_n "(cached) " >&6
9016
ac_cv_sys_largefile_CC=no
9017
if test "$GCC" != yes; then
9020
# IRIX 6.2 and later do not support large files by default,
9021
# so use the C compiler's -n32 option if that helps.
9022
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9023
/* end confdefs.h. */
9024
#include <sys/types.h>
9025
/* Check that off_t can represent 2**63 - 1 correctly.
9026
We can't simply define LARGE_OFF_T to be 9223372036854775807,
9027
since some C++ compilers masquerading as C compilers
9028
incorrectly reject 9223372036854775807. */
9029
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9030
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9031
&& LARGE_OFF_T % 2147483647 == 1)
9041
if ac_fn_c_try_compile "$LINENO"; then :
9044
rm -f core conftest.err conftest.$ac_objext
9046
if ac_fn_c_try_compile "$LINENO"; then :
9047
ac_cv_sys_largefile_CC=' -n32'; break
9049
rm -f core conftest.err conftest.$ac_objext
9053
rm -f conftest.$ac_ext
9056
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
9057
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9058
if test "$ac_cv_sys_largefile_CC" != no; then
9059
CC=$CC$ac_cv_sys_largefile_CC
9062
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9063
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
9064
if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
9065
$as_echo_n "(cached) " >&6
9068
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9069
/* end confdefs.h. */
9070
#include <sys/types.h>
9071
/* Check that off_t can represent 2**63 - 1 correctly.
9072
We can't simply define LARGE_OFF_T to be 9223372036854775807,
9073
since some C++ compilers masquerading as C compilers
9074
incorrectly reject 9223372036854775807. */
9075
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9076
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9077
&& LARGE_OFF_T % 2147483647 == 1)
9087
if ac_fn_c_try_compile "$LINENO"; then :
9088
ac_cv_sys_file_offset_bits=no; break
9090
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9091
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9092
/* end confdefs.h. */
9093
#define _FILE_OFFSET_BITS 64
9094
#include <sys/types.h>
9095
/* Check that off_t can represent 2**63 - 1 correctly.
9096
We can't simply define LARGE_OFF_T to be 9223372036854775807,
9097
since some C++ compilers masquerading as C compilers
9098
incorrectly reject 9223372036854775807. */
9099
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9100
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9101
&& LARGE_OFF_T % 2147483647 == 1)
9111
if ac_fn_c_try_compile "$LINENO"; then :
9112
ac_cv_sys_file_offset_bits=64; break
9114
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9115
ac_cv_sys_file_offset_bits=unknown
9119
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
9120
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9121
case $ac_cv_sys_file_offset_bits in #(
9124
cat >>confdefs.h <<_ACEOF
9125
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9130
if test $ac_cv_sys_file_offset_bits = unknown; then
9131
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
9132
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
9133
if test "${ac_cv_sys_large_files+set}" = set; then :
9134
$as_echo_n "(cached) " >&6
9137
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9138
/* end confdefs.h. */
9139
#include <sys/types.h>
9140
/* Check that off_t can represent 2**63 - 1 correctly.
9141
We can't simply define LARGE_OFF_T to be 9223372036854775807,
9142
since some C++ compilers masquerading as C compilers
9143
incorrectly reject 9223372036854775807. */
9144
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9145
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9146
&& LARGE_OFF_T % 2147483647 == 1)
9156
if ac_fn_c_try_compile "$LINENO"; then :
9157
ac_cv_sys_large_files=no; break
9159
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9160
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161
/* end confdefs.h. */
9162
#define _LARGE_FILES 1
9163
#include <sys/types.h>
9164
/* Check that off_t can represent 2**63 - 1 correctly.
9165
We can't simply define LARGE_OFF_T to be 9223372036854775807,
9166
since some C++ compilers masquerading as C compilers
9167
incorrectly reject 9223372036854775807. */
9168
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9169
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9170
&& LARGE_OFF_T % 2147483647 == 1)
9180
if ac_fn_c_try_compile "$LINENO"; then :
9181
ac_cv_sys_large_files=1; break
9183
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9184
ac_cv_sys_large_files=unknown
9188
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9189
$as_echo "$ac_cv_sys_large_files" >&6; }
9190
case $ac_cv_sys_large_files in #(
9193
cat >>confdefs.h <<_ACEOF
9194
#define _LARGE_FILES $ac_cv_sys_large_files
9203
# Identify characteristics of the host architecture.
9204
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9205
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9206
if test "${ac_cv_c_bigendian+set}" = set; then :
9207
$as_echo_n "(cached) " >&6
9209
ac_cv_c_bigendian=unknown
9210
# See if we're dealing with a universal compiler.
9211
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9212
/* end confdefs.h. */
9213
#ifndef __APPLE_CC__
9214
not a universal capable compiler
9219
if ac_fn_c_try_compile "$LINENO"; then :
9221
# Check for potential -arch flags. It is not universal unless
9222
# there are at least two -arch flags with different values.
9225
for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9226
if test -n "$ac_prev"; then
9228
i?86 | x86_64 | ppc | ppc64)
9229
if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9232
ac_cv_c_bigendian=universal
9238
elif test "x$ac_word" = "x-arch"; then
9243
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9244
if test $ac_cv_c_bigendian = unknown; then
9245
# See if sys/param.h defines the BYTE_ORDER macro.
9246
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9247
/* end confdefs.h. */
9248
#include <sys/types.h>
9249
#include <sys/param.h>
9254
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9255
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9264
if ac_fn_c_try_compile "$LINENO"; then :
9265
# It does; now see whether it defined to BIG_ENDIAN or not.
9266
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9267
/* end confdefs.h. */
9268
#include <sys/types.h>
9269
#include <sys/param.h>
9274
#if BYTE_ORDER != BIG_ENDIAN
9282
if ac_fn_c_try_compile "$LINENO"; then :
9283
ac_cv_c_bigendian=yes
9285
ac_cv_c_bigendian=no
9287
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9289
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9291
if test $ac_cv_c_bigendian = unknown; then
9292
# See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9293
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9294
/* end confdefs.h. */
9300
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9308
if ac_fn_c_try_compile "$LINENO"; then :
9309
# It does; now see whether it defined to _BIG_ENDIAN or not.
9310
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9311
/* end confdefs.h. */
9325
if ac_fn_c_try_compile "$LINENO"; then :
9326
ac_cv_c_bigendian=yes
9328
ac_cv_c_bigendian=no
9330
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9332
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9334
if test $ac_cv_c_bigendian = unknown; then
9335
# Compile a test program.
9336
if test "$cross_compiling" = yes; then :
9337
# Try to guess by grepping values from an object file.
9338
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9339
/* end confdefs.h. */
9340
short int ascii_mm[] =
9341
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9342
short int ascii_ii[] =
9343
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9344
int use_ascii (int i) {
9345
return ascii_mm[i] + ascii_ii[i];
9347
short int ebcdic_ii[] =
9348
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9349
short int ebcdic_mm[] =
9350
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9351
int use_ebcdic (int i) {
9352
return ebcdic_mm[i] + ebcdic_ii[i];
9359
return use_ascii (foo) == use_ebcdic (foo);
9364
if ac_fn_c_try_compile "$LINENO"; then :
9365
if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9366
ac_cv_c_bigendian=yes
9368
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9369
if test "$ac_cv_c_bigendian" = unknown; then
9370
ac_cv_c_bigendian=no
9372
# finding both strings is unlikely to happen, but who knows?
9373
ac_cv_c_bigendian=unknown
9377
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9379
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9380
/* end confdefs.h. */
9381
$ac_includes_default
9386
/* Are we little or big endian? From Harbison&Steele. */
9390
char c[sizeof (long int)];
9393
return u.c[sizeof (long int) - 1] == 1;
9399
if ac_fn_c_try_run "$LINENO"; then :
9400
ac_cv_c_bigendian=no
9402
ac_cv_c_bigendian=yes
9404
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9405
conftest.$ac_objext conftest.beam conftest.$ac_ext
9410
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9411
$as_echo "$ac_cv_c_bigendian" >&6; }
9412
case $ac_cv_c_bigendian in #(
9414
$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9420
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9424
as_fn_error $? "unknown endianness
9425
presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9428
# The cast to long int works around a bug in the HP C Compiler
9429
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9430
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9431
# This bug is HP SR number 8606223364.
9432
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
9433
$as_echo_n "checking size of void *... " >&6; }
9434
if test "${ac_cv_sizeof_void_p+set}" = set; then :
9435
$as_echo_n "(cached) " >&6
9437
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
9440
if test "$ac_cv_type_void_p" = yes; then
9441
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9442
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9443
as_fn_error 77 "cannot compute sizeof (void *)
9444
See \`config.log' for more details" "$LINENO" 5 ; }
9446
ac_cv_sizeof_void_p=0
9451
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
9452
$as_echo "$ac_cv_sizeof_void_p" >&6; }
9456
cat >>confdefs.h <<_ACEOF
9457
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
9461
# The cast to long int works around a bug in the HP C Compiler
9462
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9463
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9464
# This bug is HP SR number 8606223364.
9465
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
9466
$as_echo_n "checking size of long... " >&6; }
9467
if test "${ac_cv_sizeof_long+set}" = set; then :
9468
$as_echo_n "(cached) " >&6
9470
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
9473
if test "$ac_cv_type_long" = yes; then
9474
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9475
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9476
as_fn_error 77 "cannot compute sizeof (long)
9477
See \`config.log' for more details" "$LINENO" 5 ; }
9484
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
9485
$as_echo "$ac_cv_sizeof_long" >&6; }
9489
cat >>confdefs.h <<_ACEOF
9490
#define SIZEOF_LONG $ac_cv_sizeof_long
9496
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler is apple cc" >&5
9497
$as_echo_n "checking whether our compiler is apple cc... " >&6; }
9498
if test "${grub_cv_apple_cc+set}" = set; then :
9499
$as_echo_n "(cached) " >&6
9501
if $CC -v 2>&1 | grep "Apple Inc." > /dev/null; then
9502
grub_cv_apple_cc=yes
9510
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_apple_cc" >&5
9511
$as_echo "$grub_cv_apple_cc" >&6; }
9512
if test x$grub_cv_apple_cc = xyes ; then
9513
HOST_CPPFLAGS="$HOST_CPPFLAGS -DAPPLE_CC=1"
9514
HOST_CFLAGS="$HOST_CFLAGS -fnested-functions"
9517
if test "x$cross_compiling" = xyes; then
9518
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot generate manual pages while cross compiling" >&5
9519
$as_echo "$as_me: WARNING: cannot generate manual pages while cross compiling" >&2;}
9521
# Extract the first word of "help2man", so it can be a program name with args.
9522
set dummy help2man; ac_word=$2
9523
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9524
$as_echo_n "checking for $ac_word... " >&6; }
9525
if test "${ac_cv_path_HELP2MAN+set}" = set; then :
9526
$as_echo_n "(cached) " >&6
9530
ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
9533
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9537
test -z "$as_dir" && as_dir=.
9538
for ac_exec_ext in '' $ac_executable_extensions; do
9539
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9540
ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
9541
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9551
HELP2MAN=$ac_cv_path_HELP2MAN
9552
if test -n "$HELP2MAN"; then
9553
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
9554
$as_echo "$HELP2MAN" >&6; }
9556
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9557
$as_echo "no" >&6; }
9563
# Check for functions and headers.
9564
for ac_func in posix_memalign memalign asprintf vasprintf getextmntent
9566
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9567
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9568
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9569
cat >>confdefs.h <<_ACEOF
9570
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9576
for ac_header in libzfs.h libnvpair.h sys/param.h sys/mount.h sys/mnttab.h sys/mkdev.h
9578
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9579
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9580
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9581
cat >>confdefs.h <<_ACEOF
9582
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9590
ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "$ac_includes_default
9591
#include <sys/param.h>
9592
#include <sys/mount.h>
9594
if test "x$ac_cv_member_struct_statfs_f_fstypename" = x""yes; then :
9596
cat >>confdefs.h <<_ACEOF
9597
#define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
9604
ac_fn_c_check_member "$LINENO" "struct statfs" "f_mntfromname" "ac_cv_member_struct_statfs_f_mntfromname" "$ac_includes_default
9605
#include <sys/param.h>
9606
#include <sys/mount.h>
9608
if test "x$ac_cv_member_struct_statfs_f_mntfromname" = x""yes; then :
9610
cat >>confdefs.h <<_ACEOF
9611
#define HAVE_STRUCT_STATFS_F_MNTFROMNAME 1
9618
# For opendisk() and getrawpartition() on NetBSD.
9619
# Used in util/deviceiter.c and in util/hostdisk.c.
9620
ac_fn_c_check_header_mongrel "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default"
9621
if test "x$ac_cv_header_util_h" = x""yes; then :
9623
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for opendisk in -lutil" >&5
9624
$as_echo_n "checking for opendisk in -lutil... " >&6; }
9625
if test "${ac_cv_lib_util_opendisk+set}" = set; then :
9626
$as_echo_n "(cached) " >&6
9628
ac_check_lib_save_LIBS=$LIBS
9630
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9631
/* end confdefs.h. */
9633
/* Override any GCC internal prototype to avoid an error.
9634
Use char because int might match the return type of a GCC
9635
builtin and then its argument prototype would still apply. */
9648
if ac_fn_c_try_link "$LINENO"; then :
9649
ac_cv_lib_util_opendisk=yes
9651
ac_cv_lib_util_opendisk=no
9653
rm -f core conftest.err conftest.$ac_objext \
9654
conftest$ac_exeext conftest.$ac_ext
9655
LIBS=$ac_check_lib_save_LIBS
9657
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_opendisk" >&5
9658
$as_echo "$ac_cv_lib_util_opendisk" >&6; }
9659
if test "x$ac_cv_lib_util_opendisk" = x""yes; then :
9663
$as_echo "#define HAVE_OPENDISK 1" >>confdefs.h
9668
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getrawpartition in -lutil" >&5
9669
$as_echo_n "checking for getrawpartition in -lutil... " >&6; }
9670
if test "${ac_cv_lib_util_getrawpartition+set}" = set; then :
9671
$as_echo_n "(cached) " >&6
9673
ac_check_lib_save_LIBS=$LIBS
9675
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9676
/* end confdefs.h. */
9678
/* Override any GCC internal prototype to avoid an error.
9679
Use char because int might match the return type of a GCC
9680
builtin and then its argument prototype would still apply. */
9684
char getrawpartition ();
9688
return getrawpartition ();
9693
if ac_fn_c_try_link "$LINENO"; then :
9694
ac_cv_lib_util_getrawpartition=yes
9696
ac_cv_lib_util_getrawpartition=no
9698
rm -f core conftest.err conftest.$ac_objext \
9699
conftest$ac_exeext conftest.$ac_ext
9700
LIBS=$ac_check_lib_save_LIBS
9702
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getrawpartition" >&5
9703
$as_echo "$ac_cv_lib_util_getrawpartition" >&6; }
9704
if test "x$ac_cv_lib_util_getrawpartition" = x""yes; then :
9708
$as_echo "#define HAVE_GETRAWPARTITION 1" >>confdefs.h
9720
# Check for host and build compilers.
9723
for ac_prog in gcc egcs cc
9725
# Extract the first word of "$ac_prog", so it can be a program name with args.
9726
set dummy $ac_prog; ac_word=$2
9727
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9728
$as_echo_n "checking for $ac_word... " >&6; }
9729
if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
9730
$as_echo_n "(cached) " >&6
9732
if test -n "$BUILD_CC"; then
9733
ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
9735
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9739
test -z "$as_dir" && as_dir=.
9740
for ac_exec_ext in '' $ac_executable_extensions; do
9741
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9742
ac_cv_prog_BUILD_CC="$ac_prog"
9743
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9752
BUILD_CC=$ac_cv_prog_BUILD_CC
9753
if test -n "$BUILD_CC"; then
9754
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
9755
$as_echo "$BUILD_CC" >&6; }
9757
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9758
$as_echo "no" >&6; }
9762
test -n "$BUILD_CC" && break
9764
test -n "$BUILD_CC" || BUILD_CC="as_fn_error $? "none of gcc, egcs and cc is found. set BUILD_CC manually." "$LINENO" 5 "
9772
LIBC_FATAL_STDERR_=1
9773
export LIBC_FATAL_STDERR_
9775
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9776
# for constant arguments. Useless!
9777
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9778
$as_echo_n "checking for working alloca.h... " >&6; }
9779
if test "${ac_cv_working_alloca_h+set}" = set; then :
9780
$as_echo_n "(cached) " >&6
9782
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9783
/* end confdefs.h. */
9788
char *p = (char *) alloca (2 * sizeof (int));
9794
if ac_fn_c_try_link "$LINENO"; then :
9795
ac_cv_working_alloca_h=yes
9797
ac_cv_working_alloca_h=no
9799
rm -f core conftest.err conftest.$ac_objext \
9800
conftest$ac_exeext conftest.$ac_ext
9802
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9803
$as_echo "$ac_cv_working_alloca_h" >&6; }
9804
if test $ac_cv_working_alloca_h = yes; then
9806
$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9810
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9811
$as_echo_n "checking for alloca... " >&6; }
9812
if test "${ac_cv_func_alloca_works+set}" = set; then :
9813
$as_echo_n "(cached) " >&6
9815
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9816
/* end confdefs.h. */
9818
# define alloca __builtin_alloca
9821
# include <malloc.h>
9822
# define alloca _alloca
9824
# ifdef HAVE_ALLOCA_H
9825
# include <alloca.h>
9830
# ifndef alloca /* predefined by HP cc +Olibcalls */
9841
char *p = (char *) alloca (1);
9847
if ac_fn_c_try_link "$LINENO"; then :
9848
ac_cv_func_alloca_works=yes
9850
ac_cv_func_alloca_works=no
9852
rm -f core conftest.err conftest.$ac_objext \
9853
conftest$ac_exeext conftest.$ac_ext
9855
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9856
$as_echo "$ac_cv_func_alloca_works" >&6; }
9858
if test $ac_cv_func_alloca_works = yes; then
9860
$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9863
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
9864
# that cause trouble. Some versions do not even contain alloca or
9865
# contain a buggy version. If you still want to use their alloca,
9866
# use ar to extract alloca.o from them instead of compiling alloca.c.
9872
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9874
$as_echo "#define C_ALLOCA 1" >>confdefs.h
9877
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9878
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9879
if test "${ac_cv_os_cray+set}" = set; then :
9880
$as_echo_n "(cached) " >&6
9882
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9883
/* end confdefs.h. */
9884
#if defined CRAY && ! defined CRAY2
9891
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9892
$EGREP "webecray" >/dev/null 2>&1; then :
9900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9901
$as_echo "$ac_cv_os_cray" >&6; }
9902
if test $ac_cv_os_cray = yes; then
9903
for ac_func in _getb67 GETB67 getb67; do
9904
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9905
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9906
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9908
cat >>confdefs.h <<_ACEOF
9909
#define CRAY_STACKSEG_END $ac_func
9918
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9919
$as_echo_n "checking stack direction for C alloca... " >&6; }
9920
if test "${ac_cv_c_stack_direction+set}" = set; then :
9921
$as_echo_n "(cached) " >&6
9923
if test "$cross_compiling" = yes; then :
9924
ac_cv_c_stack_direction=0
9926
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927
/* end confdefs.h. */
9928
$ac_includes_default
9930
find_stack_direction ()
9932
static char *addr = 0;
9937
return find_stack_direction ();
9940
return (&dummy > addr) ? 1 : -1;
9946
return find_stack_direction () < 0;
9949
if ac_fn_c_try_run "$LINENO"; then :
9950
ac_cv_c_stack_direction=1
9952
ac_cv_c_stack_direction=-1
9954
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9955
conftest.$ac_objext conftest.beam conftest.$ac_ext
9959
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9960
$as_echo "$ac_cv_c_stack_direction" >&6; }
9961
cat >>confdefs.h <<_ACEOF
9962
#define STACK_DIRECTION $ac_cv_c_stack_direction
9968
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9969
$as_echo_n "checking for inline... " >&6; }
9970
if test "${ac_cv_c_inline+set}" = set; then :
9971
$as_echo_n "(cached) " >&6
9974
for ac_kw in inline __inline__ __inline; do
9975
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9976
/* end confdefs.h. */
9979
static $ac_kw foo_t static_foo () {return 0; }
9980
$ac_kw foo_t foo () {return 0; }
9984
if ac_fn_c_try_compile "$LINENO"; then :
9985
ac_cv_c_inline=$ac_kw
9987
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9988
test "$ac_cv_c_inline" != no && break
9992
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9993
$as_echo "$ac_cv_c_inline" >&6; }
9995
case $ac_cv_c_inline in
9998
case $ac_cv_c_inline in
10000
*) ac_val=$ac_cv_c_inline;;
10002
cat >>confdefs.h <<_ACEOF
10003
#ifndef __cplusplus
10004
#define inline $ac_val
10010
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
10011
$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
10012
if test "${ac_cv_c_restrict+set}" = set; then :
10013
$as_echo_n "(cached) " >&6
10015
ac_cv_c_restrict=no
10016
# The order here caters to the fact that C++ does not require restrict.
10017
for ac_kw in __restrict __restrict__ _Restrict restrict; do
10018
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10019
/* end confdefs.h. */
10020
typedef int * int_ptr;
10021
int foo (int_ptr $ac_kw ip) {
10028
int * $ac_kw t = s;
10035
if ac_fn_c_try_compile "$LINENO"; then :
10036
ac_cv_c_restrict=$ac_kw
10038
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10039
test "$ac_cv_c_restrict" != no && break
10043
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
10044
$as_echo "$ac_cv_c_restrict" >&6; }
10046
case $ac_cv_c_restrict in
10048
no) $as_echo "#define restrict /**/" >>confdefs.h
10050
*) cat >>confdefs.h <<_ACEOF
10051
#define restrict $ac_cv_c_restrict
10056
ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
10057
if test "x$ac_cv_have_decl_getenv" = x""yes; then :
10063
cat >>confdefs.h <<_ACEOF
10064
#define HAVE_DECL_GETENV $ac_have_decl
10067
ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
10068
if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then :
10074
cat >>confdefs.h <<_ACEOF
10075
#define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
10078
ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
10079
if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then :
10085
cat >>confdefs.h <<_ACEOF
10086
#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
10089
ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
10090
if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then :
10096
cat >>confdefs.h <<_ACEOF
10097
#define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
10100
ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
10101
if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then :
10107
cat >>confdefs.h <<_ACEOF
10108
#define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
10111
ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
10112
if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then :
10118
cat >>confdefs.h <<_ACEOF
10119
#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
10122
ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
10123
if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then :
10129
cat >>confdefs.h <<_ACEOF
10130
#define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
10133
ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
10134
if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then :
10140
cat >>confdefs.h <<_ACEOF
10141
#define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
10144
ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
10145
if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then :
10151
cat >>confdefs.h <<_ACEOF
10152
#define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
10155
ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
10156
if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then :
10162
cat >>confdefs.h <<_ACEOF
10163
#define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
10166
ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
10167
if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
10173
cat >>confdefs.h <<_ACEOF
10174
#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10177
ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
10178
if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then :
10184
cat >>confdefs.h <<_ACEOF
10185
#define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
10188
ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
10189
if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then :
10195
cat >>confdefs.h <<_ACEOF
10196
#define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
10199
ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
10200
if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then :
10206
cat >>confdefs.h <<_ACEOF
10207
#define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
10213
for ac_func in $ac_func_list
10215
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10216
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10217
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10218
cat >>confdefs.h <<_ACEOF
10219
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10232
for ac_header in $ac_header_list
10234
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10235
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10237
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10238
cat >>confdefs.h <<_ACEOF
10239
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10251
XGETTEXT_EXTRA_OPTIONS=
10259
GNULIB_MBSRTOWCS=0;
10260
GNULIB_MBSNRTOWCS=0;
10262
GNULIB_WCSRTOMBS=0;
10263
GNULIB_WCSNRTOMBS=0;
10275
HAVE_DECL_WCWIDTH=1;
10276
REPLACE_MBSTATE_T=0;
10282
REPLACE_MBSRTOWCS=0;
10283
REPLACE_MBSNRTOWCS=0;
10285
REPLACE_WCSRTOMBS=0;
10286
REPLACE_WCSNRTOMBS=0;
10290
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
10291
$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
10292
if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
10293
$as_echo_n "(cached) " >&6
10295
gl_cv_header_wchar_h_correct_inline=yes
10296
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10297
/* end confdefs.h. */
10299
#define wcstod renamed_wcstod
10301
extern int zero (void);
10302
int main () { return zero(); }
10305
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10306
(eval $ac_compile) 2>&5
10308
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10309
test $ac_status = 0; }; then
10310
mv conftest.$ac_objext conftest1.$ac_objext
10311
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10312
/* end confdefs.h. */
10314
#define wcstod renamed_wcstod
10316
int zero (void) { return 0; }
10319
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10320
(eval $ac_compile) 2>&5
10322
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10323
test $ac_status = 0; }; then
10324
mv conftest.$ac_objext conftest2.$ac_objext
10325
if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
10328
gl_cv_header_wchar_h_correct_inline=no
10332
rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
10335
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
10336
$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
10337
if test $gl_cv_header_wchar_h_correct_inline = no; then
10338
as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
10339
This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
10340
C99 mode. You have four options:
10341
- Add the flag -fgnu89-inline to CC and reconfigure, or
10342
- Fix your include files, using parts of
10343
<http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
10344
- Use a gcc version older than 4.3, or
10345
- Don't use the flags -std=c99 or -std=gnu99.
10346
Configuration aborted." "$LINENO" 5
10352
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10353
$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10354
if test "${am_cv_langinfo_codeset+set}" = set; then :
10355
$as_echo_n "(cached) " >&6
10357
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10358
/* end confdefs.h. */
10359
#include <langinfo.h>
10363
char* cs = nl_langinfo(CODESET); return !cs;
10368
if ac_fn_c_try_link "$LINENO"; then :
10369
am_cv_langinfo_codeset=yes
10371
am_cv_langinfo_codeset=no
10373
rm -f core conftest.err conftest.$ac_objext \
10374
conftest$ac_exeext conftest.$ac_ext
10377
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10378
$as_echo "$am_cv_langinfo_codeset" >&6; }
10379
if test $am_cv_langinfo_codeset = yes; then
10381
$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10388
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
10389
$as_echo_n "checking for a traditional french locale... " >&6; }
10390
if test "${gt_cv_locale_fr+set}" = set; then :
10391
$as_echo_n "(cached) " >&6
10394
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10395
/* end confdefs.h. */
10397
#include <locale.h>
10399
#if HAVE_LANGINFO_CODESET
10400
# include <langinfo.h>
10402
#include <stdlib.h>
10403
#include <string.h>
10407
/* Check whether the given locale name is recognized by the system. */
10408
if (setlocale (LC_ALL, "") == NULL) return 1;
10409
/* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10410
On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10411
is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10412
On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10413
succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10414
some unit tests fail. */
10415
#if HAVE_LANGINFO_CODESET
10417
const char *cs = nl_langinfo (CODESET);
10418
if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10423
/* On Cygwin, avoid locale names without encoding suffix, because the
10424
locale_charset() function relies on the encoding suffix. Note that
10425
LC_ALL is set on the command line. */
10426
if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10428
/* Check whether in the abbreviation of the second month, the second
10429
character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
10430
one byte long. This excludes the UTF-8 encoding. */
10431
t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10432
if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
10433
/* Check whether the decimal separator is a comma.
10434
On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10435
are nl_langinfo(RADIXCHAR) are both ".". */
10436
if (localeconv () ->decimal_point[0] != ',') return 1;
10441
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10442
(eval $ac_link) 2>&5
10444
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10445
test $ac_status = 0; } && test -s conftest$ac_exeext; then
10446
# Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10447
# otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
10448
# configure script would override the LC_ALL setting. Likewise for
10449
# LC_CTYPE, which is also set at the beginning of the configure script.
10450
# Test for the usual locale name.
10451
if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10452
gt_cv_locale_fr=fr_FR
10454
# Test for the locale name with explicit encoding suffix.
10455
if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10456
gt_cv_locale_fr=fr_FR.ISO-8859-1
10458
# Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
10459
if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10460
gt_cv_locale_fr=fr_FR.ISO8859-1
10462
# Test for the HP-UX locale name.
10463
if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10464
gt_cv_locale_fr=fr_FR.iso88591
10466
# Test for the Solaris 7 locale name.
10467
if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10471
gt_cv_locale_fr=none
10481
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
10482
$as_echo "$gt_cv_locale_fr" >&6; }
10483
LOCALE_FR=$gt_cv_locale_fr
10487
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system is Windows or MSDOS" >&5
10488
$as_echo_n "checking whether system is Windows or MSDOS... " >&6; }
10489
if test "${ac_cv_win_or_dos+set}" = set; then :
10490
$as_echo_n "(cached) " >&6
10493
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10494
/* end confdefs.h. */
10500
#if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
10501
neither MSDOS nor Windows
10507
if ac_fn_c_try_compile "$LINENO"; then :
10508
ac_cv_win_or_dos=yes
10510
ac_cv_win_or_dos=no
10512
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10515
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_win_or_dos" >&5
10516
$as_echo "$ac_cv_win_or_dos" >&6; }
10518
if test x"$ac_cv_win_or_dos" = xyes; then
10519
ac_fs_accepts_drive_letter_prefix=1
10520
ac_fs_backslash_is_file_name_separator=1
10521
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether drive letter can start relative path" >&5
10522
$as_echo_n "checking whether drive letter can start relative path... " >&6; }
10523
if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then :
10524
$as_echo_n "(cached) " >&6
10527
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10528
/* end confdefs.h. */
10534
#if defined __CYGWIN__
10535
drive letters are always absolute
10541
if ac_fn_c_try_compile "$LINENO"; then :
10542
ac_cv_drive_letter_can_be_relative=yes
10544
ac_cv_drive_letter_can_be_relative=no
10546
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10549
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_drive_letter_can_be_relative" >&5
10550
$as_echo "$ac_cv_drive_letter_can_be_relative" >&6; }
10551
if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
10552
ac_fs_drive_letter_can_be_relative=1
10554
ac_fs_drive_letter_can_be_relative=0
10557
ac_fs_accepts_drive_letter_prefix=0
10558
ac_fs_backslash_is_file_name_separator=0
10559
ac_fs_drive_letter_can_be_relative=0
10563
cat >>confdefs.h <<_ACEOF
10564
#define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
10571
cat >>confdefs.h <<_ACEOF
10572
#define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
10577
cat >>confdefs.h <<_ACEOF
10578
#define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
10584
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
10585
$as_echo_n "checking whether // is distinct from /... " >&6; }
10586
if test "${gl_cv_double_slash_root+set}" = set; then :
10587
$as_echo_n "(cached) " >&6
10589
if test x"$cross_compiling" = xyes ; then
10590
# When cross-compiling, there is no way to tell whether // is special
10591
# short of a list of hosts. However, the only known hosts to date
10592
# that have a distinct // are Apollo DomainOS (too old to port to),
10593
# Cygwin, and z/OS. If anyone knows of another system for which // has
10594
# special semantics and is distinct from /, please report it to
10595
# <bug-gnulib@gnu.org>.
10597
*-cygwin | i370-ibm-openedition)
10598
gl_cv_double_slash_root=yes ;;
10600
# Be optimistic and assume that / and // are the same when we
10602
gl_cv_double_slash_root='unknown, assuming no' ;;
10605
set x `ls -di / // 2>/dev/null`
10606
if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
10607
gl_cv_double_slash_root=no
10609
gl_cv_double_slash_root=yes
10613
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
10614
$as_echo "$gl_cv_double_slash_root" >&6; }
10615
if test "$gl_cv_double_slash_root" = yes; then
10617
$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
10623
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
10624
$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
10625
if test "${gl_cv_have_include_next+set}" = set; then :
10626
$as_echo_n "(cached) " >&6
10628
rm -rf conftestd1a conftestd1b conftestd2
10629
mkdir conftestd1a conftestd1b conftestd2
10630
cat <<EOF > conftestd1a/conftest.h
10631
#define DEFINED_IN_CONFTESTD1
10632
#include_next <conftest.h>
10633
#ifdef DEFINED_IN_CONFTESTD2
10636
#error "include_next doesn't work"
10639
cat <<EOF > conftestd1b/conftest.h
10640
#define DEFINED_IN_CONFTESTD1
10642
#include_next <conftest.h>
10643
#ifdef DEFINED_IN_CONFTESTD2
10646
#error "include_next doesn't work"
10649
cat <<EOF > conftestd2/conftest.h
10650
#ifndef DEFINED_IN_CONFTESTD1
10651
#error "include_next test doesn't work"
10653
#define DEFINED_IN_CONFTESTD2
10655
gl_save_CPPFLAGS="$CPPFLAGS"
10656
CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
10657
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10658
/* end confdefs.h. */
10659
#include <conftest.h>
10661
if ac_fn_c_try_compile "$LINENO"; then :
10662
gl_cv_have_include_next=yes
10664
CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
10665
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10666
/* end confdefs.h. */
10667
#include <conftest.h>
10669
if ac_fn_c_try_compile "$LINENO"; then :
10670
gl_cv_have_include_next=buggy
10672
gl_cv_have_include_next=no
10674
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10677
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10678
CPPFLAGS="$gl_save_CPPFLAGS"
10679
rm -rf conftestd1a conftestd1b conftestd2
10682
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
10683
$as_echo "$gl_cv_have_include_next" >&6; }
10684
PRAGMA_SYSTEM_HEADER=
10685
if test $gl_cv_have_include_next = yes; then
10686
INCLUDE_NEXT=include_next
10687
INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
10688
if test -n "$GCC"; then
10689
PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
10692
if test $gl_cv_have_include_next = buggy; then
10693
INCLUDE_NEXT=include
10694
INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
10696
INCLUDE_NEXT=include
10697
INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
10708
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
10709
$as_echo_n "checking for complete errno.h... " >&6; }
10710
if test "${gl_cv_header_errno_h_complete+set}" = set; then :
10711
$as_echo_n "(cached) " >&6
10714
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10715
/* end confdefs.h. */
10718
#if !defined ENOMSG
10724
#if !defined ENOLINK
10727
#if !defined EPROTO
10730
#if !defined EMULTIHOP
10733
#if !defined EBADMSG
10736
#if !defined EOVERFLOW
10739
#if !defined ENOTSUP
10742
#if !defined ESTALE
10745
#if !defined ECANCELED
10750
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10751
$EGREP "booboo" >/dev/null 2>&1; then :
10752
gl_cv_header_errno_h_complete=no
10754
gl_cv_header_errno_h_complete=yes
10760
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
10761
$as_echo "$gl_cv_header_errno_h_complete" >&6; }
10762
if test $gl_cv_header_errno_h_complete = yes; then
10771
if test $gl_cv_have_include_next = yes; then
10772
gl_cv_next_errno_h='<'errno.h'>'
10774
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
10775
$as_echo_n "checking absolute name of <errno.h>... " >&6; }
10776
if test "${gl_cv_next_errno_h+set}" = set; then :
10777
$as_echo_n "(cached) " >&6
10780
if test $ac_cv_header_errno_h = yes; then
10781
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10782
/* end confdefs.h. */
10787
aix*) gl_absname_cpp="$ac_cpp -C" ;;
10788
*) gl_absname_cpp="$ac_cpp" ;;
10790
gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10791
sed -n '\#/errno.h#{
10792
s#.*"\(.*/errno.h\)".*#\1#
10798
gl_cv_next_errno_h='<'errno.h'>'
10802
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
10803
$as_echo "$gl_cv_next_errno_h" >&6; }
10805
NEXT_ERRNO_H=$gl_cv_next_errno_h
10807
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10808
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10809
gl_next_as_first_directive='<'errno.h'>'
10811
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10812
gl_next_as_first_directive=$gl_cv_next_errno_h
10814
NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
10822
if test -n "$ERRNO_H"; then
10823
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
10824
$as_echo_n "checking for EMULTIHOP value... " >&6; }
10825
if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
10826
$as_echo_n "(cached) " >&6
10829
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10830
/* end confdefs.h. */
10838
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10839
$EGREP "yes" >/dev/null 2>&1; then :
10840
gl_cv_header_errno_h_EMULTIHOP=yes
10842
gl_cv_header_errno_h_EMULTIHOP=no
10846
if test $gl_cv_header_errno_h_EMULTIHOP = no; then
10847
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10848
/* end confdefs.h. */
10850
#define _XOPEN_SOURCE_EXTENDED 1
10857
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10858
$EGREP "yes" >/dev/null 2>&1; then :
10859
gl_cv_header_errno_h_EMULTIHOP=hidden
10863
if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
10864
if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
10865
#define _XOPEN_SOURCE_EXTENDED 1
10867
/* The following two lines are a workaround against an autoconf-2.52 bug. */
10869
#include <stdlib.h>
10878
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
10879
$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
10880
case $gl_cv_header_errno_h_EMULTIHOP in
10882
EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
10885
EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
10893
if test -n "$ERRNO_H"; then
10894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
10895
$as_echo_n "checking for ENOLINK value... " >&6; }
10896
if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
10897
$as_echo_n "(cached) " >&6
10900
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10901
/* end confdefs.h. */
10909
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10910
$EGREP "yes" >/dev/null 2>&1; then :
10911
gl_cv_header_errno_h_ENOLINK=yes
10913
gl_cv_header_errno_h_ENOLINK=no
10917
if test $gl_cv_header_errno_h_ENOLINK = no; then
10918
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10919
/* end confdefs.h. */
10921
#define _XOPEN_SOURCE_EXTENDED 1
10928
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10929
$EGREP "yes" >/dev/null 2>&1; then :
10930
gl_cv_header_errno_h_ENOLINK=hidden
10934
if test $gl_cv_header_errno_h_ENOLINK = hidden; then
10935
if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
10936
#define _XOPEN_SOURCE_EXTENDED 1
10938
/* The following two lines are a workaround against an autoconf-2.52 bug. */
10940
#include <stdlib.h>
10949
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
10950
$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
10951
case $gl_cv_header_errno_h_ENOLINK in
10953
ENOLINK_HIDDEN=0; ENOLINK_VALUE=
10956
ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
10964
if test -n "$ERRNO_H"; then
10965
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
10966
$as_echo_n "checking for EOVERFLOW value... " >&6; }
10967
if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
10968
$as_echo_n "(cached) " >&6
10971
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10972
/* end confdefs.h. */
10980
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10981
$EGREP "yes" >/dev/null 2>&1; then :
10982
gl_cv_header_errno_h_EOVERFLOW=yes
10984
gl_cv_header_errno_h_EOVERFLOW=no
10988
if test $gl_cv_header_errno_h_EOVERFLOW = no; then
10989
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990
/* end confdefs.h. */
10992
#define _XOPEN_SOURCE_EXTENDED 1
10999
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11000
$EGREP "yes" >/dev/null 2>&1; then :
11001
gl_cv_header_errno_h_EOVERFLOW=hidden
11005
if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
11006
if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
11007
#define _XOPEN_SOURCE_EXTENDED 1
11009
/* The following two lines are a workaround against an autoconf-2.52 bug. */
11011
#include <stdlib.h>
11020
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
11021
$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
11022
case $gl_cv_header_errno_h_EOVERFLOW in
11024
EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
11027
EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
11035
ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
11036
if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
11042
cat >>confdefs.h <<_ACEOF
11043
#define HAVE_DECL_STRERROR_R $ac_have_decl
11046
for ac_func in strerror_r
11048
ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
11049
if test "x$ac_cv_func_strerror_r" = x""yes; then :
11050
cat >>confdefs.h <<_ACEOF
11051
#define HAVE_STRERROR_R 1
11057
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
11058
$as_echo_n "checking whether strerror_r returns char *... " >&6; }
11059
if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
11060
$as_echo_n "(cached) " >&6
11063
ac_cv_func_strerror_r_char_p=no
11064
if test $ac_cv_have_decl_strerror_r = yes; then
11065
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066
/* end confdefs.h. */
11067
$ac_includes_default
11073
char x = *strerror_r (0, buf, sizeof buf);
11074
char *p = strerror_r (0, buf, sizeof buf);
11081
if ac_fn_c_try_compile "$LINENO"; then :
11082
ac_cv_func_strerror_r_char_p=yes
11084
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11086
# strerror_r is not declared. Choose between
11087
# systems that have relatively inaccessible declarations for the
11088
# function. BeOS and DEC UNIX 4.0 fall in this category, but the
11089
# former has a strerror_r that returns char*, while the latter
11090
# has a strerror_r that returns `int'.
11091
# This test should segfault on the DEC system.
11092
if test "$cross_compiling" = yes; then :
11095
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11096
/* end confdefs.h. */
11097
$ac_includes_default
11098
extern char *strerror_r ();
11103
char x = *strerror_r (0, buf, sizeof buf);
11104
return ! isalpha (x);
11109
if ac_fn_c_try_run "$LINENO"; then :
11110
ac_cv_func_strerror_r_char_p=yes
11112
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11113
conftest.$ac_objext conftest.beam conftest.$ac_ext
11119
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
11120
$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
11121
if test $ac_cv_func_strerror_r_char_p = yes; then
11123
$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
11131
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
11132
$as_echo_n "checking for mbstate_t... " >&6; }
11133
if test "${ac_cv_type_mbstate_t+set}" = set; then :
11134
$as_echo_n "(cached) " >&6
11136
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11137
/* end confdefs.h. */
11138
$ac_includes_default
11139
# include <wchar.h>
11143
mbstate_t x; return sizeof x;
11148
if ac_fn_c_try_compile "$LINENO"; then :
11149
ac_cv_type_mbstate_t=yes
11151
ac_cv_type_mbstate_t=no
11153
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11155
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
11156
$as_echo "$ac_cv_type_mbstate_t" >&6; }
11157
if test $ac_cv_type_mbstate_t = yes; then
11159
$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
11163
$as_echo "#define mbstate_t int" >>confdefs.h
11189
GNULIB_FPRINTF_POSIX=0;
11201
GNULIB_OBSTACK_PRINTF=0;
11202
GNULIB_OBSTACK_PRINTF_POSIX=0;
11206
GNULIB_PRINTF_POSIX=0;
11214
GNULIB_SPRINTF_POSIX=0;
11215
GNULIB_STDIO_H_SIGPIPE=0;
11217
GNULIB_VASPRINTF=0;
11220
GNULIB_VFPRINTF_POSIX=0;
11222
GNULIB_VPRINTF_POSIX=0;
11223
GNULIB_VSNPRINTF=0;
11224
GNULIB_VSPRINTF_POSIX=0;
11225
HAVE_DECL_FPURGE=1;
11226
HAVE_DECL_GETDELIM=1;
11227
HAVE_DECL_GETLINE=1;
11228
HAVE_DECL_OBSTACK_PRINTF=1;
11229
HAVE_DECL_SNPRINTF=1;
11230
HAVE_DECL_VSNPRINTF=1;
11248
REPLACE_GETDELIM=0;
11250
REPLACE_OBSTACK_PRINTF=0;
11256
REPLACE_RENAMEAT=0;
11257
REPLACE_SNPRINTF=0;
11259
REPLACE_STDIO_WRITE_FUNCS=0;
11261
REPLACE_VASPRINTF=0;
11262
REPLACE_VDPRINTF=0;
11263
REPLACE_VFPRINTF=0;
11265
REPLACE_VSNPRINTF=0;
11266
REPLACE_VSPRINTF=0;
11268
ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
11269
if test "x$ac_cv_have_decl_getdelim" = x""yes; then :
11275
cat >>confdefs.h <<_ACEOF
11276
#define HAVE_DECL_GETDELIM $ac_have_decl
11281
ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
11282
if test "x$ac_cv_have_decl_getline" = x""yes; then :
11288
cat >>confdefs.h <<_ACEOF
11289
#define HAVE_DECL_GETLINE $ac_have_decl
11298
GNULIB_EUIDACCESS=0;
11299
GNULIB_FACCESSAT=0;
11303
GNULIB_FTRUNCATE=0;
11305
GNULIB_GETDOMAINNAME=0;
11306
GNULIB_GETDTABLESIZE=0;
11307
GNULIB_GETGROUPS=0;
11308
GNULIB_GETHOSTNAME=0;
11310
GNULIB_GETLOGIN_R=0;
11311
GNULIB_GETPAGESIZE=0;
11312
GNULIB_GETUSERSHELL=0;
11321
GNULIB_READLINKAT=0;
11325
GNULIB_SYMLINKAT=0;
11326
GNULIB_TTYNAME_R=0;
11327
GNULIB_UNISTD_H_GETOPT=0;
11328
GNULIB_UNISTD_H_SIGPIPE=0;
11342
HAVE_GETDOMAINNAME=1;
11343
HAVE_GETDTABLESIZE=1;
11345
HAVE_GETHOSTNAME=1;
11347
HAVE_GETPAGESIZE=1;
11362
HAVE_DECL_ENVIRON=1;
11363
HAVE_DECL_GETLOGIN_R=1;
11364
HAVE_DECL_GETPAGESIZE=1;
11365
HAVE_DECL_GETUSERSHELL=1;
11367
HAVE_SYS_PARAM_H=0;
11372
REPLACE_FCHOWNAT=0;
11374
REPLACE_GETGROUPS=0;
11375
REPLACE_GETPAGESIZE=0;
11382
REPLACE_READLINK=0;
11386
REPLACE_TTYNAME_R=0;
11388
REPLACE_UNLINKAT=0;
11391
UNISTD_H_HAVE_WINSOCK2_H=0;
11392
UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
11407
if test $gl_cv_have_include_next = yes; then
11408
gl_cv_next_getopt_h='<'getopt.h'>'
11410
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
11411
$as_echo_n "checking absolute name of <getopt.h>... " >&6; }
11412
if test "${gl_cv_next_getopt_h+set}" = set; then :
11413
$as_echo_n "(cached) " >&6
11416
if test $ac_cv_header_getopt_h = yes; then
11417
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11418
/* end confdefs.h. */
11419
#include <getopt.h>
11423
aix*) gl_absname_cpp="$ac_cpp -C" ;;
11424
*) gl_absname_cpp="$ac_cpp" ;;
11426
gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11427
sed -n '\#/getopt.h#{
11428
s#.*"\(.*/getopt.h\)".*#\1#
11434
gl_cv_next_getopt_h='<'getopt.h'>'
11438
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
11439
$as_echo "$gl_cv_next_getopt_h" >&6; }
11441
NEXT_GETOPT_H=$gl_cv_next_getopt_h
11443
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11444
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11445
gl_next_as_first_directive='<'getopt.h'>'
11447
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11448
gl_next_as_first_directive=$gl_cv_next_getopt_h
11450
NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
11455
if test $ac_cv_header_getopt_h = yes; then
11464
if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
11465
for ac_header in getopt.h
11467
ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11468
if test "x$ac_cv_header_getopt_h" = x""yes; then :
11469
cat >>confdefs.h <<_ACEOF
11470
#define HAVE_GETOPT_H 1
11474
gl_replace_getopt=yes
11481
if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
11482
for ac_func in getopt_long_only
11484
ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
11485
if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
11486
cat >>confdefs.h <<_ACEOF
11487
#define HAVE_GETOPT_LONG_ONLY 1
11491
gl_replace_getopt=yes
11497
if test -z "$gl_replace_getopt"; then
11498
ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
11500
if test "x$ac_cv_have_decl_optreset" = x""yes; then :
11506
cat >>confdefs.h <<_ACEOF
11507
#define HAVE_DECL_OPTRESET $ac_have_decl
11509
if test $ac_have_decl = 1; then :
11512
ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
11514
if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
11520
cat >>confdefs.h <<_ACEOF
11521
#define HAVE_DECL_GETOPT_CLIP $ac_have_decl
11529
if test -z "$gl_replace_getopt"; then
11530
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
11531
$as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
11532
if test "${gl_cv_func_getopt_posix+set}" = set; then :
11533
$as_echo_n "(cached) " >&6
11536
if test "$cross_compiling" = yes; then :
11538
mingw*) gl_cv_func_getopt_posix="guessing no";;
11539
darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
11540
*) gl_cv_func_getopt_posix="guessing yes";;
11544
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11545
/* end confdefs.h. */
11547
#include <unistd.h>
11548
#include <stdlib.h>
11549
#include <string.h>
11551
#if !HAVE_DECL_OPTRESET && !HAVE_DECL_GETOPT_CLIP
11552
# define OPTIND_MIN 0
11554
# define OPTIND_MIN 1
11565
argv[argc++] = "program";
11566
argv[argc++] = "-a";
11567
argv[argc++] = "foo";
11568
argv[argc++] = "bar";
11570
optind = OPTIND_MIN;
11573
c = getopt (argc, argv, "ab");
11576
c = getopt (argc, argv, "ab");
11579
if (!(optind == 2))
11582
/* Some internal state exists at this point. */
11588
argv[argc++] = "program";
11589
argv[argc++] = "donald";
11590
argv[argc++] = "-p";
11591
argv[argc++] = "billy";
11592
argv[argc++] = "duck";
11593
argv[argc++] = "-a";
11594
argv[argc++] = "bar";
11596
optind = OPTIND_MIN;
11599
c = getopt (argc, argv, "+abp:q:");
11602
if (!(strcmp (argv[0], "program") == 0))
11604
if (!(strcmp (argv[1], "donald") == 0))
11606
if (!(strcmp (argv[2], "-p") == 0))
11608
if (!(strcmp (argv[3], "billy") == 0))
11610
if (!(strcmp (argv[4], "duck") == 0))
11612
if (!(strcmp (argv[5], "-a") == 0))
11614
if (!(strcmp (argv[6], "bar") == 0))
11616
if (!(optind == 1))
11619
/* Detect MacOS 10.5, AIX 7.1 bug. */
11621
char *argv[3] = { "program", "-ab", NULL };
11622
optind = OPTIND_MIN;
11624
if (getopt (2, argv, "ab:") != 'a')
11626
if (getopt (2, argv, "ab:") != '?')
11638
if ac_fn_c_try_run "$LINENO"; then :
11639
gl_cv_func_getopt_posix=yes
11641
gl_cv_func_getopt_posix=no
11643
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11644
conftest.$ac_objext conftest.beam conftest.$ac_ext
11649
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
11650
$as_echo "$gl_cv_func_getopt_posix" >&6; }
11651
case "$gl_cv_func_getopt_posix" in
11652
*no) gl_replace_getopt=yes ;;
11656
if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
11657
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
11658
$as_echo_n "checking for working GNU getopt function... " >&6; }
11659
if test "${gl_cv_func_getopt_gnu+set}" = set; then :
11660
$as_echo_n "(cached) " >&6
11662
# Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
11663
# optstring is necessary for programs like m4 that have POSIX-mandated
11664
# semantics for supporting options interspersed with files.
11665
# Also, since getopt_long is a GNU extension, we require optind=0.
11666
# Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
11667
# so take care to revert to the correct (non-)export state.
11668
gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
11669
case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
11670
xx) gl_had_POSIXLY_CORRECT=exported ;;
11671
x) gl_had_POSIXLY_CORRECT=yes ;;
11672
*) gl_had_POSIXLY_CORRECT= ;;
11675
export POSIXLY_CORRECT
11676
if test "$cross_compiling" = yes; then :
11677
case $host_os:$ac_cv_have_decl_optreset in
11678
*-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
11679
*:yes) gl_cv_func_getopt_gnu=no;;
11680
*) gl_cv_func_getopt_gnu=yes;;
11684
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11685
/* end confdefs.h. */
11686
#include <getopt.h>
11687
#include <stddef.h>
11688
#include <string.h>
11694
/* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
11695
and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
11696
OSF/1 5.1, Solaris 10. */
11699
myargv[0] = "conftest";
11703
if (getopt (2, myargv, "+a") != '?')
11706
/* This code succeeds on glibc 2.8, mingw,
11707
and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
11708
IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
11710
char *argv[] = { "program", "-p", "foo", "bar", NULL };
11713
if (getopt (4, argv, "p::") != 'p')
11715
if (optarg != NULL)
11717
if (getopt (4, argv, "p::") != -1)
11722
/* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
11724
char *argv[] = { "program", "foo", "-p", NULL };
11726
if (getopt (3, argv, "-p") != 1)
11728
if (getopt (3, argv, "-p") != 'p')
11731
/* This code fails on glibc 2.11. */
11733
char *argv[] = { "program", "-b", "-a", NULL };
11734
optind = opterr = 0;
11735
if (getopt (3, argv, "+:a:b") != 'b')
11737
if (getopt (3, argv, "+:a:b") != ':')
11746
if ac_fn_c_try_run "$LINENO"; then :
11747
gl_cv_func_getopt_gnu=yes
11749
gl_cv_func_getopt_gnu=no
11751
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11752
conftest.$ac_objext conftest.beam conftest.$ac_ext
11755
case $gl_had_POSIXLY_CORRECT in
11757
yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
11758
*) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
11762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
11763
$as_echo "$gl_cv_func_getopt_gnu" >&6; }
11764
if test "$gl_cv_func_getopt_gnu" = "no"; then
11765
gl_replace_getopt=yes
11774
if test -n "$gl_replace_getopt"; then :
11780
$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
11784
GNULIB_UNISTD_H_GETOPT=1
11793
gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
11803
gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
11814
GNULIB_NL_LANGINFO=0;
11815
HAVE_NL_LANGINFO=1;
11816
REPLACE_NL_LANGINFO=0;
11822
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
11823
$as_echo_n "checking for working fcntl.h... " >&6; }
11824
if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
11825
$as_echo_n "(cached) " >&6
11827
if test "$cross_compiling" = yes; then :
11828
gl_cv_header_working_fcntl_h=cross-compiling
11830
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11831
/* end confdefs.h. */
11832
#include <sys/types.h>
11833
#include <sys/stat.h>
11834
#include <unistd.h>
11837
#define O_NOATIME 0
11840
#define O_NOFOLLOW 0
11842
static int const constants[] =
11844
O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
11845
O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
11852
int status = !constants;
11854
static char const sym[] = "conftest.sym";
11855
if (symlink (".", sym) != 0
11856
|| close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
11861
static char const file[] = "confdefs.h";
11862
int fd = open (file, O_RDONLY | O_NOATIME);
11864
struct stat st0, st1;
11866
|| fstat (fd, &st0) != 0
11868
|| read (fd, &c, 1) != 1
11870
|| stat (file, &st1) != 0
11871
|| st0.st_atime != st1.st_atime)
11879
if ac_fn_c_try_run "$LINENO"; then :
11880
gl_cv_header_working_fcntl_h=yes
11883
32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
11884
64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
11885
96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
11886
*) gl_cv_header_working_fcntl_h='no';;
11889
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11890
conftest.$ac_objext conftest.beam conftest.$ac_ext
11894
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
11895
$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
11897
case $gl_cv_header_working_fcntl_h in #(
11898
*O_NOATIME* | no | cross-compiling) ac_val=0;; #(
11902
cat >>confdefs.h <<_ACEOF
11903
#define HAVE_WORKING_O_NOATIME $ac_val
11907
case $gl_cv_header_working_fcntl_h in #(
11908
*O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
11912
cat >>confdefs.h <<_ACEOF
11913
#define HAVE_WORKING_O_NOFOLLOW $ac_val
11918
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
11919
$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
11920
if test "${ac_cv_gnu_library_2_1+set}" = set; then :
11921
$as_echo_n "(cached) " >&6
11923
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11924
/* end confdefs.h. */
11926
#include <features.h>
11927
#ifdef __GNU_LIBRARY__
11928
#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11934
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11935
$EGREP "Lucky GNU user" >/dev/null 2>&1; then :
11936
ac_cv_gnu_library_2_1=yes
11938
ac_cv_gnu_library_2_1=no
11945
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
11946
$as_echo "$ac_cv_gnu_library_2_1" >&6; }
11948
GLIBC21="$ac_cv_gnu_library_2_1"
11954
GNULIB_CALLOC_POSIX=0;
11955
GNULIB_CANONICALIZE_FILE_NAME=0;
11956
GNULIB_GETLOADAVG=0;
11957
GNULIB_GETSUBOPT=0;
11959
GNULIB_MALLOC_POSIX=0;
11962
GNULIB_MKOSTEMPS=0;
11968
GNULIB_REALLOC_POSIX=0;
11979
HAVE_CANONICALIZE_FILE_NAME=1;
11980
HAVE_DECL_GETLOADAVG=1;
11996
HAVE_STRUCT_RANDOM_DATA=1;
11997
HAVE_SYS_LOADAVG_H=0;
12001
REPLACE_CANONICALIZE_FILE_NAME=0;
12006
REPLACE_REALPATH=0;
12009
REPLACE_UNSETENV=0;
12012
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
12013
$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
12014
if test "${gl_cv_func_malloc_posix+set}" = set; then :
12015
$as_echo_n "(cached) " >&6
12018
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019
/* end confdefs.h. */
12024
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
12032
if ac_fn_c_try_compile "$LINENO"; then :
12033
gl_cv_func_malloc_posix=yes
12035
gl_cv_func_malloc_posix=no
12037
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12040
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
12041
$as_echo "$gl_cv_func_malloc_posix" >&6; }
12050
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
12051
$as_echo_n "checking for a traditional japanese locale... " >&6; }
12052
if test "${gt_cv_locale_ja+set}" = set; then :
12053
$as_echo_n "(cached) " >&6
12056
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12057
/* end confdefs.h. */
12059
#include <locale.h>
12061
#if HAVE_LANGINFO_CODESET
12062
# include <langinfo.h>
12064
#include <stdlib.h>
12065
#include <string.h>
12071
/* Check whether the given locale name is recognized by the system. */
12072
if (setlocale (LC_ALL, "") == NULL) return 1;
12073
/* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12074
On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12075
is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12076
On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12077
succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12078
some unit tests fail. */
12079
#if HAVE_LANGINFO_CODESET
12081
const char *cs = nl_langinfo (CODESET);
12082
if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
12087
/* On Cygwin, avoid locale names without encoding suffix, because the
12088
locale_charset() function relies on the encoding suffix. Note that
12089
LC_ALL is set on the command line. */
12090
if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12092
/* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
12093
on Cygwin 1.5.x. */
12094
if (MB_CUR_MAX == 1)
12096
/* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
12097
This excludes the UTF-8 encoding. */
12098
t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12099
if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
12100
for (p = buf; *p != '\0'; p++)
12101
if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
12107
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12108
(eval $ac_link) 2>&5
12110
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12111
test $ac_status = 0; } && test -s conftest$ac_exeext; then
12112
# Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12113
# otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
12114
# configure script would override the LC_ALL setting. Likewise for
12115
# LC_CTYPE, which is also set at the beginning of the configure script.
12116
# Test for the AIX locale name.
12117
if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12118
gt_cv_locale_ja=ja_JP
12120
# Test for the locale name with explicit encoding suffix.
12121
if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12122
gt_cv_locale_ja=ja_JP.EUC-JP
12124
# Test for the HP-UX, OSF/1, NetBSD locale name.
12125
if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12126
gt_cv_locale_ja=ja_JP.eucJP
12128
# Test for the IRIX, FreeBSD locale name.
12129
if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12130
gt_cv_locale_ja=ja_JP.EUC
12132
# Test for the Solaris 7 locale name.
12133
if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12136
# Special test for NetBSD 1.6.
12137
if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
12138
gt_cv_locale_ja=ja_JP.eucJP
12141
gt_cv_locale_ja=none
12152
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
12153
$as_echo "$gt_cv_locale_ja" >&6; }
12154
LOCALE_JA=$gt_cv_locale_ja
12160
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
12161
$as_echo_n "checking for a transitional chinese locale... " >&6; }
12162
if test "${gt_cv_locale_zh_CN+set}" = set; then :
12163
$as_echo_n "(cached) " >&6
12166
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12167
/* end confdefs.h. */
12169
#include <locale.h>
12170
#include <stdlib.h>
12172
#if HAVE_LANGINFO_CODESET
12173
# include <langinfo.h>
12175
#include <stdlib.h>
12176
#include <string.h>
12182
/* Check whether the given locale name is recognized by the system. */
12183
if (setlocale (LC_ALL, "") == NULL) return 1;
12184
/* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12185
On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12186
is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12187
On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12188
succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12189
some unit tests fail. */
12190
#if HAVE_LANGINFO_CODESET
12192
const char *cs = nl_langinfo (CODESET);
12193
if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
12198
/* On Cygwin, avoid locale names without encoding suffix, because the
12199
locale_charset() function relies on the encoding suffix. Note that
12200
LC_ALL is set on the command line. */
12201
if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12203
/* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
12204
This excludes the UTF-8 encoding. */
12205
t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12206
if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
12207
for (p = buf; *p != '\0'; p++)
12208
if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
12210
/* Check whether a typical GB18030 multibyte sequence is recognized as a
12211
single wide character. This excludes the GB2312 and GBK encodings. */
12212
if (mblen ("\203\062\332\066", 5) != 4)
12218
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12219
(eval $ac_link) 2>&5
12221
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12222
test $ac_status = 0; } && test -s conftest$ac_exeext; then
12223
# Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12224
# otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
12225
# configure script would override the LC_ALL setting. Likewise for
12226
# LC_CTYPE, which is also set at the beginning of the configure script.
12227
# Test for the locale name without encoding suffix.
12228
if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12229
gt_cv_locale_zh_CN=zh_CN
12231
# Test for the locale name with explicit encoding suffix.
12232
if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12233
gt_cv_locale_zh_CN=zh_CN.GB18030
12236
gt_cv_locale_zh_CN=none
12240
# If there was a link error, due to mblen(), the system is so old that
12241
# it certainly doesn't have a chinese locale.
12242
gt_cv_locale_zh_CN=none
12247
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
12248
$as_echo "$gt_cv_locale_zh_CN" >&6; }
12249
LOCALE_ZH_CN=$gt_cv_locale_zh_CN
12254
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
12255
$as_echo_n "checking for a french Unicode locale... " >&6; }
12256
if test "${gt_cv_locale_fr_utf8+set}" = set; then :
12257
$as_echo_n "(cached) " >&6
12260
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12261
/* end confdefs.h. */
12263
#include <locale.h>
12265
#if HAVE_LANGINFO_CODESET
12266
# include <langinfo.h>
12268
#include <stdlib.h>
12269
#include <string.h>
12273
/* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
12274
imitates locale dependent behaviour by looking at the environment
12275
variables, and all locales use the UTF-8 encoding. */
12276
#if !(defined __BEOS__ || defined __HAIKU__)
12277
/* Check whether the given locale name is recognized by the system. */
12278
if (setlocale (LC_ALL, "") == NULL) return 1;
12279
/* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12280
On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12281
is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12282
On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12283
succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12284
some unit tests fail. */
12285
# if HAVE_LANGINFO_CODESET
12287
const char *cs = nl_langinfo (CODESET);
12288
if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
12293
/* On Cygwin, avoid locale names without encoding suffix, because the
12294
locale_charset() function relies on the encoding suffix. Note that
12295
LC_ALL is set on the command line. */
12296
if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12298
/* Check whether in the abbreviation of the second month, the second
12299
character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
12300
two bytes long, with UTF-8 encoding. */
12301
t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12302
if (strftime (buf, sizeof (buf), "%b", &t) < 4
12303
|| buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
12306
/* Check whether the decimal separator is a comma.
12307
On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
12308
are nl_langinfo(RADIXCHAR) are both ".". */
12309
if (localeconv () ->decimal_point[0] != ',') return 1;
12314
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12315
(eval $ac_link) 2>&5
12317
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12318
test $ac_status = 0; } && test -s conftest$ac_exeext; then
12319
# Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12320
# otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
12321
# configure script would override the LC_ALL setting. Likewise for
12322
# LC_CTYPE, which is also set at the beginning of the configure script.
12323
# Test for the usual locale name.
12324
if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12325
gt_cv_locale_fr_utf8=fr_FR
12327
# Test for the locale name with explicit encoding suffix.
12328
if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12329
gt_cv_locale_fr_utf8=fr_FR.UTF-8
12331
# Test for the Solaris 7 locale name.
12332
if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12333
gt_cv_locale_fr_utf8=fr.UTF-8
12336
gt_cv_locale_fr_utf8=none
12344
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
12345
$as_echo "$gt_cv_locale_fr_utf8" >&6; }
12346
LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
12358
GNULIB_RAWMEMCHR=0;
12361
GNULIB_STRCHRNUL=0;
12369
GNULIB_STRCASESTR=0;
12376
GNULIB_MBSCASECMP=0;
12377
GNULIB_MBSNCASECMP=0;
12378
GNULIB_MBSPCASECMP=0;
12379
GNULIB_MBSCASESTR=0;
12386
GNULIB_STRSIGNAL=0;
12387
GNULIB_STRVERSCMP=0;
12390
HAVE_DECL_MEMMEM=1;
12392
HAVE_DECL_MEMRCHR=1;
12397
HAVE_DECL_STRDUP=1;
12398
HAVE_DECL_STRNDUP=1;
12399
HAVE_DECL_STRNLEN=1;
12403
HAVE_DECL_STRTOK_R=1;
12404
HAVE_DECL_STRSIGNAL=1;
12411
REPLACE_STRCASESTR=0;
12412
REPLACE_STRERROR=0;
12416
REPLACE_STRSIGNAL=0;
12417
REPLACE_STRTOK_R=0;
12418
UNDEFINE_STRTOK_R=0;
12429
# Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
12430
# fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
12431
# irrelevant for anonymous mappings.
12432
ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
12433
if test "x$ac_cv_func_mmap" = x""yes; then :
12440
# Try to allow MAP_ANONYMOUS.
12441
gl_have_mmap_anonymous=no
12442
if test $gl_have_mmap = yes; then
12443
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
12444
$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
12445
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12446
/* end confdefs.h. */
12448
#include <sys/mman.h>
12449
#ifdef MAP_ANONYMOUS
12450
I cant identify this map.
12454
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12455
$EGREP "I cant identify this map." >/dev/null 2>&1; then :
12456
gl_have_mmap_anonymous=yes
12460
if test $gl_have_mmap_anonymous != yes; then
12461
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12462
/* end confdefs.h. */
12464
#include <sys/mman.h>
12466
I cant identify this map.
12470
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12471
$EGREP "I cant identify this map." >/dev/null 2>&1; then :
12473
$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
12475
gl_have_mmap_anonymous=yes
12480
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
12481
$as_echo "$gl_have_mmap_anonymous" >&6; }
12482
if test $gl_have_mmap_anonymous = yes; then
12484
$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
12494
if test $ac_cv_func_memchr = yes; then
12495
# Detect platform-specific bugs in some versions of glibc:
12496
# memchr should not dereference anything with length 0
12497
# http://bugzilla.redhat.com/499689
12498
# memchr should not dereference overestimated length after a match
12499
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
12500
# http://sourceware.org/bugzilla/show_bug.cgi?id=10162
12501
# Assume that memchr works on platforms that lack mprotect.
12502
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
12503
$as_echo_n "checking whether memchr works... " >&6; }
12504
if test "${gl_cv_func_memchr_works+set}" = set; then :
12505
$as_echo_n "(cached) " >&6
12507
if test "$cross_compiling" = yes; then :
12508
gl_cv_func_memchr_works="guessing no"
12510
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12511
/* end confdefs.h. */
12513
#include <string.h>
12514
#if HAVE_SYS_MMAN_H
12515
# include <fcntl.h>
12516
# include <unistd.h>
12517
# include <sys/types.h>
12518
# include <sys/mman.h>
12520
# define MAP_FILE 0
12528
char *fence = NULL;
12529
#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
12530
# if HAVE_MAP_ANONYMOUS
12531
const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
12533
# else /* !HAVE_MAP_ANONYMOUS */
12534
const int flags = MAP_FILE | MAP_PRIVATE;
12535
int fd = open ("/dev/zero", O_RDONLY, 0666);
12539
int pagesize = getpagesize ();
12541
(char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
12543
if (two_pages != (char *)(-1)
12544
&& mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
12545
fence = two_pages + pagesize;
12550
if (memchr (fence, 0, 0))
12552
strcpy (fence - 9, "12345678");
12553
if (memchr (fence - 9, 0, 79) != fence - 1)
12555
if (memchr (fence - 1, 0, 3) != fence - 1)
12564
if ac_fn_c_try_run "$LINENO"; then :
12565
gl_cv_func_memchr_works=yes
12567
gl_cv_func_memchr_works=no
12569
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12570
conftest.$ac_objext conftest.beam conftest.$ac_ext
12574
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
12575
$as_echo "$gl_cv_func_memchr_works" >&6; }
12576
if test "$gl_cv_func_memchr_works" != yes; then
12582
if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
12591
gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
12594
for ac_header in bp-sym.h
12596
ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
12597
if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
12598
cat >>confdefs.h <<_ACEOF
12599
#define HAVE_BP_SYM_H 1
12610
gl_cv_c_multiarch=no
12611
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12612
/* end confdefs.h. */
12613
#ifndef __APPLE_CC__
12614
not a universal capable compiler
12619
if ac_fn_c_try_compile "$LINENO"; then :
12623
for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
12624
if test -n "$prev"; then
12626
i?86 | x86_64 | ppc | ppc64)
12627
if test -z "$arch" || test "$arch" = "$word"; then
12630
gl_cv_c_multiarch=yes
12636
if test "x$word" = "x-arch"; then
12643
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12644
if test $gl_cv_c_multiarch = yes; then
12646
$as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12648
APPLE_UNIVERSAL_BUILD=1
12650
APPLE_UNIVERSAL_BUILD=0
12662
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
12663
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
12664
if test "${ac_cv_header_stdbool_h+set}" = set; then :
12665
$as_echo_n "(cached) " >&6
12667
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12668
/* end confdefs.h. */
12670
#include <stdbool.h>
12672
"error: bool is not defined"
12675
"error: false is not defined"
12678
"error: false is not 0"
12681
"error: true is not defined"
12684
"error: true is not 1"
12686
#ifndef __bool_true_false_are_defined
12687
"error: __bool_true_false_are_defined is not defined"
12690
struct s { _Bool s: 1; _Bool t; } s;
12692
char a[true == 1 ? 1 : -1];
12693
char b[false == 0 ? 1 : -1];
12694
char c[__bool_true_false_are_defined == 1 ? 1 : -1];
12695
char d[(bool) 0.5 == true ? 1 : -1];
12696
/* See body of main program for 'e'. */
12697
char f[(_Bool) 0.0 == false ? 1 : -1];
12699
char h[sizeof (_Bool)];
12700
char i[sizeof s.t];
12701
enum { j = false, k = true, l = false * true, m = true * 256 };
12702
/* The following fails for
12703
HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
12705
char o[sizeof n == m * sizeof n[0] ? 1 : -1];
12706
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
12707
/* Catch a bug in an HP-UX C compiler. See
12708
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
12709
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
12721
/* Refer to every declared value, to avoid compiler optimizations. */
12722
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
12723
+ !m + !n + !o + !p + !q + !pq);
12729
if ac_fn_c_try_compile "$LINENO"; then :
12730
ac_cv_header_stdbool_h=yes
12732
ac_cv_header_stdbool_h=no
12734
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12736
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
12737
$as_echo "$ac_cv_header_stdbool_h" >&6; }
12738
ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
12739
if test "x$ac_cv_type__Bool" = x""yes; then :
12741
cat >>confdefs.h <<_ACEOF
12742
#define HAVE__BOOL 1
12748
if test $ac_cv_header_stdbool_h = yes; then
12750
$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
12759
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
12760
$as_echo_n "checking for wchar_t... " >&6; }
12761
if test "${gt_cv_c_wchar_t+set}" = set; then :
12762
$as_echo_n "(cached) " >&6
12764
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12765
/* end confdefs.h. */
12766
#include <stddef.h>
12767
wchar_t foo = (wchar_t)'\0';
12776
if ac_fn_c_try_compile "$LINENO"; then :
12777
gt_cv_c_wchar_t=yes
12781
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12783
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
12784
$as_echo "$gt_cv_c_wchar_t" >&6; }
12785
if test $gt_cv_c_wchar_t = yes; then
12787
$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
12794
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
12795
$as_echo_n "checking for long long int... " >&6; }
12796
if test "${ac_cv_type_long_long_int+set}" = set; then :
12797
$as_echo_n "(cached) " >&6
12799
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12800
/* end confdefs.h. */
12802
/* For now, do not test the preprocessor; as of 2007 there are too many
12803
implementations with broken preprocessors. Perhaps this can
12804
be revisited in 2012. In the meantime, code should not expect
12805
#if to work with literals wider than 32 bits. */
12806
/* Test literals. */
12807
long long int ll = 9223372036854775807ll;
12808
long long int nll = -9223372036854775807LL;
12809
unsigned long long int ull = 18446744073709551615ULL;
12810
/* Test constant expressions. */
12811
typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
12813
typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
12819
/* Test availability of runtime routines for shift and division. */
12820
long long int llmax = 9223372036854775807ll;
12821
unsigned long long int ullmax = 18446744073709551615ull;
12822
return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
12823
| (llmax / ll) | (llmax % ll)
12824
| (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
12825
| (ullmax / ull) | (ullmax % ull));
12831
if ac_fn_c_try_link "$LINENO"; then :
12832
if test "$cross_compiling" = yes; then :
12833
ac_cv_type_long_long_int=yes
12835
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12836
/* end confdefs.h. */
12837
#include <limits.h>
12840
(1LL << (sizeof (long long int) * CHAR_BIT - 2))
12841
# define LLONG_MAX (HALF - 1 + HALF)
12846
long long int n = 1;
12850
long long int m = n << i;
12853
if (LLONG_MAX / 2 < m)
12861
if ac_fn_c_try_run "$LINENO"; then :
12862
ac_cv_type_long_long_int=yes
12864
ac_cv_type_long_long_int=no
12866
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12867
conftest.$ac_objext conftest.beam conftest.$ac_ext
12871
ac_cv_type_long_long_int=no
12873
rm -f core conftest.err conftest.$ac_objext \
12874
conftest$ac_exeext conftest.$ac_ext
12876
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
12877
$as_echo "$ac_cv_type_long_long_int" >&6; }
12878
if test $ac_cv_type_long_long_int = yes; then
12880
$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
12885
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
12886
$as_echo_n "checking for unsigned long long int... " >&6; }
12887
if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
12888
$as_echo_n "(cached) " >&6
12890
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12891
/* end confdefs.h. */
12893
/* For now, do not test the preprocessor; as of 2007 there are too many
12894
implementations with broken preprocessors. Perhaps this can
12895
be revisited in 2012. In the meantime, code should not expect
12896
#if to work with literals wider than 32 bits. */
12897
/* Test literals. */
12898
long long int ll = 9223372036854775807ll;
12899
long long int nll = -9223372036854775807LL;
12900
unsigned long long int ull = 18446744073709551615ULL;
12901
/* Test constant expressions. */
12902
typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
12904
typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
12910
/* Test availability of runtime routines for shift and division. */
12911
long long int llmax = 9223372036854775807ll;
12912
unsigned long long int ullmax = 18446744073709551615ull;
12913
return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
12914
| (llmax / ll) | (llmax % ll)
12915
| (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
12916
| (ullmax / ull) | (ullmax % ull));
12922
if ac_fn_c_try_link "$LINENO"; then :
12923
ac_cv_type_unsigned_long_long_int=yes
12925
ac_cv_type_unsigned_long_long_int=no
12927
rm -f core conftest.err conftest.$ac_objext \
12928
conftest$ac_exeext conftest.$ac_ext
12930
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
12931
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
12932
if test $ac_cv_type_unsigned_long_long_int = yes; then
12934
$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
12943
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5
12944
$as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
12945
if test "${gl_cv_prog_as_underscore+set}" = set; then :
12946
$as_echo_n "(cached) " >&6
12948
cat > conftest.c <<EOF
12950
extern "C" int foo (void);
12952
int foo(void) { return 0; }
12954
# Look for the assembly language name in the .s file.
12955
{ ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c'
12956
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12957
(eval $ac_try) 2>&5
12959
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12960
test $ac_status = 0; }; } >/dev/null 2>&1
12961
if grep _foo conftest.s >/dev/null ; then
12962
gl_cv_prog_as_underscore=yes
12964
gl_cv_prog_as_underscore=no
12969
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5
12970
$as_echo "$gl_cv_prog_as_underscore" >&6; }
12971
if test $gl_cv_prog_as_underscore = yes; then
12972
USER_LABEL_PREFIX=_
12977
cat >>confdefs.h <<_ACEOF
12978
#define USER_LABEL_PREFIX $USER_LABEL_PREFIX
12981
ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
12990
HAVE_DECL_STRNCASECMP=1;
12997
if test -z "$ERRNO_H"; then
12998
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
12999
$as_echo_n "checking for working strerror function... " >&6; }
13000
if test "${gl_cv_func_working_strerror+set}" = set; then :
13001
$as_echo_n "(cached) " >&6
13003
if test "$cross_compiling" = yes; then :
13004
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13005
/* end confdefs.h. */
13006
#include <string.h>
13011
return !*strerror (-2);
13016
if ac_fn_c_try_compile "$LINENO"; then :
13017
gl_cv_func_working_strerror=yes
13019
gl_cv_func_working_strerror=no
13021
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13024
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13025
/* end confdefs.h. */
13026
#include <string.h>
13031
return !*strerror (-2);
13036
if ac_fn_c_try_run "$LINENO"; then :
13037
gl_cv_func_working_strerror=yes
13039
gl_cv_func_working_strerror=no
13041
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13042
conftest.$ac_objext conftest.beam conftest.$ac_ext
13047
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
13048
$as_echo "$gl_cv_func_working_strerror" >&6; }
13049
if test $gl_cv_func_working_strerror = no; then
13055
if test $REPLACE_STRERROR = 1; then
13057
ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
13058
if test "x$ac_cv_have_decl_strerror" = x""yes; then :
13064
cat >>confdefs.h <<_ACEOF
13065
#define HAVE_DECL_STRERROR $ac_have_decl
13069
if test $ac_cv_header_sys_socket_h != yes; then
13070
for ac_header in winsock2.h
13072
ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
13073
if test "x$ac_cv_header_winsock2_h" = x""yes; then :
13074
cat >>confdefs.h <<_ACEOF
13075
#define HAVE_WINSOCK2_H 1
13097
if test $gl_cv_have_include_next = yes; then
13098
gl_cv_next_string_h='<'string.h'>'
13100
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
13101
$as_echo_n "checking absolute name of <string.h>... " >&6; }
13102
if test "${gl_cv_next_string_h+set}" = set; then :
13103
$as_echo_n "(cached) " >&6
13106
if test $ac_cv_header_string_h = yes; then
13107
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13108
/* end confdefs.h. */
13109
#include <string.h>
13113
aix*) gl_absname_cpp="$ac_cpp -C" ;;
13114
*) gl_absname_cpp="$ac_cpp" ;;
13116
gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13117
sed -n '\#/string.h#{
13118
s#.*"\(.*/string.h\)".*#\1#
13124
gl_cv_next_string_h='<'string.h'>'
13128
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
13129
$as_echo "$gl_cv_next_string_h" >&6; }
13131
NEXT_STRING_H=$gl_cv_next_string_h
13133
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13134
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13135
gl_next_as_first_directive='<'string.h'>'
13137
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13138
gl_next_as_first_directive=$gl_cv_next_string_h
13140
NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
13146
for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp; do
13147
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13148
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13149
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13150
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
13151
$as_echo_n "(cached) " >&6
13153
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13154
/* end confdefs.h. */
13155
#include <string.h>
13166
if ac_fn_c_try_compile "$LINENO"; then :
13167
eval "$as_gl_Symbol=yes"
13169
eval "$as_gl_Symbol=no"
13171
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13173
eval ac_res=\$$as_gl_Symbol
13174
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13175
$as_echo "$ac_res" >&6; }
13176
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
13177
cat >>confdefs.h <<_ACEOF
13178
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13181
eval ac_cv_have_decl_$gl_func=yes
13196
if test $gl_cv_have_include_next = yes; then
13197
gl_cv_next_strings_h='<'strings.h'>'
13199
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <strings.h>" >&5
13200
$as_echo_n "checking absolute name of <strings.h>... " >&6; }
13201
if test "${gl_cv_next_strings_h+set}" = set; then :
13202
$as_echo_n "(cached) " >&6
13205
if test $ac_cv_header_strings_h = yes; then
13206
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13207
/* end confdefs.h. */
13208
#include <strings.h>
13212
aix*) gl_absname_cpp="$ac_cpp -C" ;;
13213
*) gl_absname_cpp="$ac_cpp" ;;
13215
gl_cv_next_strings_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13216
sed -n '\#/strings.h#{
13217
s#.*"\(.*/strings.h\)".*#\1#
13223
gl_cv_next_strings_h='<'strings.h'>'
13227
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5
13228
$as_echo "$gl_cv_next_strings_h" >&6; }
13230
NEXT_STRINGS_H=$gl_cv_next_strings_h
13232
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13233
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13234
gl_next_as_first_directive='<'strings.h'>'
13236
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13237
gl_next_as_first_directive=$gl_cv_next_strings_h
13239
NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
13245
for gl_func in strcasecmp strncasecmp; do
13246
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13247
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13248
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13249
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
13250
$as_echo_n "(cached) " >&6
13252
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13253
/* end confdefs.h. */
13254
#include <strings.h>
13265
if ac_fn_c_try_compile "$LINENO"; then :
13266
eval "$as_gl_Symbol=yes"
13268
eval "$as_gl_Symbol=no"
13270
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13272
eval ac_res=\$$as_gl_Symbol
13273
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13274
$as_echo "$ac_res" >&6; }
13275
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
13276
cat >>confdefs.h <<_ACEOF
13277
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13280
eval ac_cv_have_decl_$gl_func=yes
13285
ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
13286
if test "x$ac_cv_have_decl_strndup" = x""yes; then :
13292
cat >>confdefs.h <<_ACEOF
13293
#define HAVE_DECL_STRNDUP $ac_have_decl
13298
ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
13299
if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
13305
cat >>confdefs.h <<_ACEOF
13306
#define HAVE_DECL_STRNLEN $ac_have_decl
13320
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
13321
$as_echo_n "checking for wint_t... " >&6; }
13322
if test "${gt_cv_c_wint_t+set}" = set; then :
13323
$as_echo_n "(cached) " >&6
13325
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13326
/* end confdefs.h. */
13328
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13330
BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
13331
before <wchar.h>. */
13332
#include <stddef.h>
13336
wint_t foo = (wchar_t)'\0';
13345
if ac_fn_c_try_compile "$LINENO"; then :
13350
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13352
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
13353
$as_echo "$gt_cv_c_wint_t" >&6; }
13354
if test $gt_cv_c_wint_t = yes; then
13356
$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
13360
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13361
if test "x$ac_cv_type_size_t" = x""yes; then :
13365
cat >>confdefs.h <<_ACEOF
13366
#define size_t unsigned int
13372
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
13373
$as_echo_n "checking for inttypes.h... " >&6; }
13374
if test "${gl_cv_header_inttypes_h+set}" = set; then :
13375
$as_echo_n "(cached) " >&6
13377
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13378
/* end confdefs.h. */
13380
#include <sys/types.h>
13381
#include <inttypes.h>
13386
uintmax_t i = (uintmax_t) -1; return !i;
13391
if ac_fn_c_try_compile "$LINENO"; then :
13392
gl_cv_header_inttypes_h=yes
13394
gl_cv_header_inttypes_h=no
13396
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13398
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
13399
$as_echo "$gl_cv_header_inttypes_h" >&6; }
13400
if test $gl_cv_header_inttypes_h = yes; then
13402
cat >>confdefs.h <<_ACEOF
13403
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
13409
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
13410
$as_echo_n "checking for stdint.h... " >&6; }
13411
if test "${gl_cv_header_stdint_h+set}" = set; then :
13412
$as_echo_n "(cached) " >&6
13414
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13415
/* end confdefs.h. */
13416
#include <sys/types.h>
13417
#include <stdint.h>
13421
uintmax_t i = (uintmax_t) -1; return !i;
13426
if ac_fn_c_try_compile "$LINENO"; then :
13427
gl_cv_header_stdint_h=yes
13429
gl_cv_header_stdint_h=no
13431
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13433
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
13434
$as_echo "$gl_cv_header_stdint_h" >&6; }
13435
if test $gl_cv_header_stdint_h = yes; then
13437
cat >>confdefs.h <<_ACEOF
13438
#define HAVE_STDINT_H_WITH_UINTMAX 1
13446
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
13447
$as_echo_n "checking for intmax_t... " >&6; }
13448
if test "${gt_cv_c_intmax_t+set}" = set; then :
13449
$as_echo_n "(cached) " >&6
13451
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13452
/* end confdefs.h. */
13454
#include <stddef.h>
13455
#include <stdlib.h>
13456
#if HAVE_STDINT_H_WITH_UINTMAX
13457
#include <stdint.h>
13459
#if HAVE_INTTYPES_H_WITH_UINTMAX
13460
#include <inttypes.h>
13466
intmax_t x = -1; return !x;
13471
if ac_fn_c_try_compile "$LINENO"; then :
13472
gt_cv_c_intmax_t=yes
13474
gt_cv_c_intmax_t=no
13476
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13478
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
13479
$as_echo "$gt_cv_c_intmax_t" >&6; }
13480
if test $gt_cv_c_intmax_t = yes; then
13482
$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
13486
test $ac_cv_type_long_long_int = yes \
13487
&& ac_type='long long' \
13490
cat >>confdefs.h <<_ACEOF
13491
#define intmax_t $ac_type
13498
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
13499
$as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
13500
if test "${gl_cv_func_snprintf_retval_c99+set}" = set; then :
13501
$as_echo_n "(cached) " >&6
13504
if test "$cross_compiling" = yes; then :
13507
# Guess yes on glibc systems.
13508
*-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13509
# Guess yes on FreeBSD >= 5.
13510
freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";;
13511
freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13512
# Guess yes on MacOS X >= 10.3.
13513
darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
13514
darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13515
# Guess yes on OpenBSD >= 3.9.
13516
openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
13517
gl_cv_func_snprintf_retval_c99="guessing no";;
13518
openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13519
# Guess yes on Solaris >= 2.6.
13520
solaris2.[0-5]*) gl_cv_func_snprintf_retval_c99="guessing no";;
13521
solaris*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13522
# Guess yes on AIX >= 4.
13523
aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
13524
aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13525
# Guess yes on NetBSD >= 3.
13526
netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
13527
gl_cv_func_snprintf_retval_c99="guessing no";;
13528
netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13529
# Guess yes on BeOS.
13530
beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13531
# If we don't know, assume the worst.
13532
*) gl_cv_func_snprintf_retval_c99="guessing no";;
13536
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13537
/* end confdefs.h. */
13540
#include <string.h>
13541
static char buf[100];
13544
strcpy (buf, "ABCDEF");
13545
if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
13550
if ac_fn_c_try_run "$LINENO"; then :
13551
gl_cv_func_snprintf_retval_c99=yes
13553
gl_cv_func_snprintf_retval_c99=no
13555
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13556
conftest.$ac_objext conftest.beam conftest.$ac_ext
13561
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
13562
$as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
13570
for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
13572
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13573
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13574
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13575
cat >>confdefs.h <<_ACEOF
13576
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13582
ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
13584
if test "x$ac_cv_have_decl__snprintf" = x""yes; then :
13590
cat >>confdefs.h <<_ACEOF
13591
#define HAVE_DECL__SNPRINTF $ac_have_decl
13595
case "$gl_cv_func_snprintf_retval_c99" in
13598
$as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
13603
ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13604
if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
13610
cat >>confdefs.h <<_ACEOF
13611
#define HAVE_DECL_VSNPRINTF $ac_have_decl
13620
ac_fn_c_check_decl "$LINENO" "iswblank" "ac_cv_have_decl_iswblank" "$ac_includes_default"
13621
if test "x$ac_cv_have_decl_iswblank" = x""yes; then :
13627
cat >>confdefs.h <<_ACEOF
13628
#define HAVE_DECL_ISWBLANK $ac_have_decl
13633
GL_COND_LIBTOOL_TRUE=
13634
GL_COND_LIBTOOL_FALSE='#'
13636
GL_COND_LIBTOOL_TRUE='#'
13637
GL_COND_LIBTOOL_FALSE=
13640
gl_cond_libtool=false
13653
gl_source_base='grub-core/gnulib'
13654
# Code from module alloca:
13655
# Code from module alloca-opt:
13661
if test $ac_cv_func_alloca_works = no; then
13665
# Define an additional variable used in the Makefile substitution.
13666
if test $ac_cv_working_alloca_h = yes; then
13667
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
13668
$as_echo_n "checking for alloca as a compiler built-in... " >&6; }
13669
if test "${gl_cv_rpl_alloca+set}" = set; then :
13670
$as_echo_n "(cached) " >&6
13673
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13674
/* end confdefs.h. */
13676
#if defined __GNUC__ || defined _AIX || defined _MSC_VER
13681
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13682
$EGREP "Need own alloca" >/dev/null 2>&1; then :
13683
gl_cv_rpl_alloca=yes
13685
gl_cv_rpl_alloca=no
13691
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
13692
$as_echo "$gl_cv_rpl_alloca" >&6; }
13693
if test $gl_cv_rpl_alloca = yes; then
13695
$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13706
# Code from module arg-nonnull:
13707
# Code from module argp:
13716
$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
13720
GNULIB_UNISTD_H_GETOPT=1
13729
gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
13739
gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
13746
ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
13748
if test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then :
13750
$as_echo "#define HAVE_DECL_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
13754
$as_echo "#define GNULIB_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
13758
ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
13760
if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then :
13762
$as_echo "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
13766
$as_echo "#define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
13771
# Check if program_invocation_name and program_invocation_short_name
13772
# are defined elsewhere. It is improbable that only one of them will
13773
# be defined and other not, I prefer to stay on the safe side and to
13774
# test each one separately.
13775
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_name is defined" >&5
13776
$as_echo_n "checking whether program_invocation_name is defined... " >&6; }
13777
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13778
/* end confdefs.h. */
13783
program_invocation_name = "test";
13788
if ac_fn_c_try_link "$LINENO"; then :
13790
$as_echo "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
13792
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13793
$as_echo "yes" >&6; }
13795
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13796
$as_echo "no" >&6; }
13798
rm -f core conftest.err conftest.$ac_objext \
13799
conftest$ac_exeext conftest.$ac_ext
13801
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_short_name is defined" >&5
13802
$as_echo_n "checking whether program_invocation_short_name is defined... " >&6; }
13803
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13804
/* end confdefs.h. */
13809
program_invocation_short_name = "test";
13814
if ac_fn_c_try_link "$LINENO"; then :
13816
$as_echo "#define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
13818
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13819
$as_echo "yes" >&6; }
13821
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13822
$as_echo "no" >&6; }
13824
rm -f core conftest.err conftest.$ac_objext \
13825
conftest$ac_exeext conftest.$ac_ext
13845
XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_error:2:c-format"
13849
XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_failure:4:c-format"
13851
# Code from module btowc:
13858
if test $ac_cv_func_btowc = no; then
13865
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
13866
$as_echo_n "checking whether btowc(0) is correct... " >&6; }
13867
if test "${gl_cv_func_btowc_nul+set}" = set; then :
13868
$as_echo_n "(cached) " >&6
13871
if test "$cross_compiling" = yes; then :
13874
# Guess no on Cygwin.
13875
cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
13876
# Guess yes otherwise.
13877
*) gl_cv_func_btowc_nul="guessing yes" ;;
13881
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13882
/* end confdefs.h. */
13885
#include <string.h>
13889
if (btowc ('\0') != 0)
13894
if ac_fn_c_try_run "$LINENO"; then :
13895
gl_cv_func_btowc_nul=yes
13897
gl_cv_func_btowc_nul=no
13899
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13900
conftest.$ac_objext conftest.beam conftest.$ac_ext
13905
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
13906
$as_echo "$gl_cv_func_btowc_nul" >&6; }
13908
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
13909
$as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
13910
if test "${gl_cv_func_btowc_eof+set}" = set; then :
13911
$as_echo_n "(cached) " >&6
13915
# Guess no on IRIX.
13916
irix*) gl_cv_func_btowc_eof="guessing no" ;;
13917
# Guess yes otherwise.
13918
*) gl_cv_func_btowc_eof="guessing yes" ;;
13920
if test $LOCALE_FR != none; then
13921
if test "$cross_compiling" = yes; then :
13924
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13925
/* end confdefs.h. */
13927
#include <locale.h>
13929
#include <string.h>
13933
if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
13935
if (btowc (EOF) != WEOF)
13941
if ac_fn_c_try_run "$LINENO"; then :
13942
gl_cv_func_btowc_eof=yes
13944
gl_cv_func_btowc_eof=no
13946
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13947
conftest.$ac_objext conftest.beam conftest.$ac_ext
13953
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
13954
$as_echo "$gl_cv_func_btowc_eof" >&6; }
13956
case "$gl_cv_func_btowc_nul" in
13958
*) REPLACE_BTOWC=1 ;;
13960
case "$gl_cv_func_btowc_eof" in
13962
*) REPLACE_BTOWC=1 ;;
13965
if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
13977
gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext"
13991
$as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
13995
# Code from module c++defs:
13996
# Code from module configmake:
13997
# Code from module dirname-lgpl:
14007
gl_LIBOBJS="$gl_LIBOBJS basename-lgpl.$ac_objext"
14017
gl_LIBOBJS="$gl_LIBOBJS dirname-lgpl.$ac_objext"
14027
gl_LIBOBJS="$gl_LIBOBJS stripslash.$ac_objext"
14034
# Code from module double-slash-root:
14037
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
14038
$as_echo_n "checking whether // is distinct from /... " >&6; }
14039
if test "${gl_cv_double_slash_root+set}" = set; then :
14040
$as_echo_n "(cached) " >&6
14042
if test x"$cross_compiling" = xyes ; then
14043
# When cross-compiling, there is no way to tell whether // is special
14044
# short of a list of hosts. However, the only known hosts to date
14045
# that have a distinct // are Apollo DomainOS (too old to port to),
14046
# Cygwin, and z/OS. If anyone knows of another system for which // has
14047
# special semantics and is distinct from /, please report it to
14048
# <bug-gnulib@gnu.org>.
14050
*-cygwin | i370-ibm-openedition)
14051
gl_cv_double_slash_root=yes ;;
14053
# Be optimistic and assume that / and // are the same when we
14055
gl_cv_double_slash_root='unknown, assuming no' ;;
14058
set x `ls -di / // 2>/dev/null`
14059
if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
14060
gl_cv_double_slash_root=no
14062
gl_cv_double_slash_root=yes
14066
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
14067
$as_echo "$gl_cv_double_slash_root" >&6; }
14068
if test "$gl_cv_double_slash_root" = yes; then
14070
$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
14074
# Code from module errno:
14076
# Code from module error:
14091
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
14092
$as_echo_n "checking for error_at_line... " >&6; }
14093
if test "${ac_cv_lib_error_at_line+set}" = set; then :
14094
$as_echo_n "(cached) " >&6
14096
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14097
/* end confdefs.h. */
14102
error_at_line (0, 0, "", 0, "an error occurred");
14107
if ac_fn_c_try_link "$LINENO"; then :
14108
ac_cv_lib_error_at_line=yes
14110
ac_cv_lib_error_at_line=no
14112
rm -f core conftest.err conftest.$ac_objext \
14113
conftest$ac_exeext conftest.$ac_ext
14115
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
14116
$as_echo "$ac_cv_lib_error_at_line" >&6; }
14117
if test $ac_cv_lib_error_at_line = no; then
14126
gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
14138
XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
14142
XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
14144
# Code from module extensions:
14145
# Code from module float:
14151
beos* | openbsd* | mirbsd*)
14159
if test $gl_cv_have_include_next = yes; then
14160
gl_cv_next_float_h='<'float.h'>'
14162
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
14163
$as_echo_n "checking absolute name of <float.h>... " >&6; }
14164
if test "${gl_cv_next_float_h+set}" = set; then :
14165
$as_echo_n "(cached) " >&6
14168
if test $ac_cv_header_float_h = yes; then
14169
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14170
/* end confdefs.h. */
14175
aix*) gl_absname_cpp="$ac_cpp -C" ;;
14176
*) gl_absname_cpp="$ac_cpp" ;;
14178
gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14179
sed -n '\#/float.h#{
14180
s#.*"\(.*/float.h\)".*#\1#
14186
gl_cv_next_float_h='<'float.h'>'
14190
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
14191
$as_echo "$gl_cv_next_float_h" >&6; }
14193
NEXT_FLOAT_H=$gl_cv_next_float_h
14195
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14196
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14197
gl_next_as_first_directive='<'float.h'>'
14199
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14200
gl_next_as_first_directive=$gl_cv_next_float_h
14202
NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
14210
# Code from module fnmatch:
14217
gl_fnmatch_required_lowercase=`echo $gl_fnmatch_required | tr 'A-Z' 'a-z'`
14218
gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
14219
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
14220
$as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
14221
if eval "test \"\${$gl_fnmatch_cache_var+set}\"" = set; then :
14222
$as_echo_n "(cached) " >&6
14224
if test $gl_fnmatch_required = GNU; then
14225
gl_fnmatch_gnu_start=
14226
gl_fnmatch_gnu_end=
14228
gl_fnmatch_gnu_start='#if 0'
14229
gl_fnmatch_gnu_end='#endif'
14231
if test "$cross_compiling" = yes; then :
14232
eval "$gl_fnmatch_cache_var=\"guessing no\""
14234
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14235
/* end confdefs.h. */
14236
#include <fnmatch.h>
14238
y (char const *pattern, char const *string, int flags)
14240
return fnmatch (pattern, string, flags) == 0;
14243
n (char const *pattern, char const *string, int flags)
14245
return fnmatch (pattern, string, flags) == FNM_NOMATCH;
14251
char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
14252
char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
14253
static char const A_1[] = { 'A' - 1, 0 };
14254
static char const A01[] = { 'A' + 1, 0 };
14255
static char const a_1[] = { 'a' - 1, 0 };
14256
static char const a01[] = { 'a' + 1, 0 };
14257
static char const bs_1[] = { '\\\\' - 1, 0 };
14258
static char const bs01[] = { '\\\\' + 1, 0 };
14261
&& y ("a*", "abc", 0)
14262
&& n ("d*/*1", "d/s/1", FNM_PATHNAME)
14263
&& y ("a\\\\bc", "abc", 0)
14264
&& n ("a\\\\bc", "abc", FNM_NOESCAPE)
14265
&& y ("*x", ".x", 0)
14266
&& n ("*x", ".x", FNM_PERIOD)
14267
&& y (Apat, "\\\\", 0) && y (Apat, "A", 0)
14268
&& y (apat, "\\\\", 0) && y (apat, "a", 0)
14269
&& n (Apat, A_1, 0) == ('A' < '\\\\')
14270
&& n (apat, a_1, 0) == ('a' < '\\\\')
14271
&& y (Apat, A01, 0) == ('A' < '\\\\')
14272
&& y (apat, a01, 0) == ('a' < '\\\\')
14273
&& y (Apat, bs_1, 0) == ('A' < '\\\\')
14274
&& y (apat, bs_1, 0) == ('a' < '\\\\')
14275
&& n (Apat, bs01, 0) == ('A' < '\\\\')
14276
&& n (apat, bs01, 0) == ('a' < '\\\\')
14277
$gl_fnmatch_gnu_start
14278
&& y ("xxXX", "xXxX", FNM_CASEFOLD)
14279
&& y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
14280
&& n ("d*/*1", "d/s/1", FNM_FILE_NAME)
14281
&& y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
14282
&& y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
14283
&& y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)
14284
$gl_fnmatch_gnu_end
14291
if ac_fn_c_try_run "$LINENO"; then :
14292
eval "$gl_fnmatch_cache_var=yes"
14294
eval "$gl_fnmatch_cache_var=no"
14296
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14297
conftest.$ac_objext conftest.beam conftest.$ac_ext
14302
eval ac_res=\$$gl_fnmatch_cache_var
14303
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14304
$as_echo "$ac_res" >&6; }
14305
eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
14306
if test "$gl_fnmatch_result" = yes; then
14307
rm -f "$gl_source_base/fnmatch.h"
14309
FNMATCH_H=fnmatch.h
14318
gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
14321
cat >>confdefs.h <<_ACEOF
14322
#define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
14326
ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
14328
if test "x$ac_cv_have_decl_isblank" = x""yes; then :
14334
cat >>confdefs.h <<_ACEOF
14335
#define HAVE_DECL_ISBLANK $ac_have_decl
14343
# Code from module getdelim:
14352
if test $ac_cv_func_getdelim = yes; then
14353
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
14354
$as_echo_n "checking for working getdelim function... " >&6; }
14355
if test "${gl_cv_func_working_getdelim+set}" = set; then :
14356
$as_echo_n "(cached) " >&6
14358
echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
14359
if test "$cross_compiling" = yes; then :
14360
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14361
/* end confdefs.h. */
14363
#include <features.h>
14364
#ifdef __GNU_LIBRARY__
14365
#if (__GLIBC__ >= 2)
14371
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14372
$EGREP "Lucky GNU user" >/dev/null 2>&1; then :
14373
gl_cv_func_working_getdelim=yes
14375
gl_cv_func_working_getdelim=no
14381
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14382
/* end confdefs.h. */
14384
# include <stdio.h>
14385
# include <stdlib.h>
14386
# include <string.h>
14389
FILE *in = fopen ("./conftest.data", "r");
14393
/* Test result for a NULL buffer and a zero size.
14394
Based on a test program from Karl Heuer. */
14397
int len = getdelim (&line, &siz, '\n', in);
14398
if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
14402
/* Test result for a NULL buffer and a non-zero size.
14403
This crashes on FreeBSD 8.0. */
14405
size_t siz = (size_t)(~0) / 4;
14406
if (getdelim (&line, &siz, '\n', in) == -1)
14413
if ac_fn_c_try_run "$LINENO"; then :
14414
gl_cv_func_working_getdelim=yes
14416
gl_cv_func_working_getdelim=no
14418
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14419
conftest.$ac_objext conftest.beam conftest.$ac_ext
14423
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
14424
$as_echo "$gl_cv_func_working_getdelim" >&6; }
14426
gl_cv_func_working_getdelim=no
14429
if test $ac_cv_have_decl_getdelim = no; then
14430
HAVE_DECL_GETDELIM=0
14433
if test $gl_cv_func_working_getdelim = no; then
14434
if test $ac_cv_func_getdelim = yes; then
14445
gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
14448
for ac_func in flockfile funlockfile
14450
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14451
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14452
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14453
cat >>confdefs.h <<_ACEOF
14454
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14460
ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
14461
if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
14467
cat >>confdefs.h <<_ACEOF
14468
#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
14481
$as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
14485
# Code from module getline:
14493
gl_getline_needs_run_time_check=no
14494
ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
14495
if test "x$ac_cv_func_getline" = x""yes; then :
14496
gl_getline_needs_run_time_check=yes
14498
am_cv_func_working_getline=no
14501
if test $gl_getline_needs_run_time_check = yes; then
14502
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
14503
$as_echo_n "checking for working getline function... " >&6; }
14504
if test "${am_cv_func_working_getline+set}" = set; then :
14505
$as_echo_n "(cached) " >&6
14507
echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
14508
if test "$cross_compiling" = yes; then :
14509
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14510
/* end confdefs.h. */
14512
#include <features.h>
14513
#ifdef __GNU_LIBRARY__
14514
#if (__GLIBC__ >= 2)
14520
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14521
$EGREP "Lucky GNU user" >/dev/null 2>&1; then :
14522
am_cv_func_working_getline=yes
14524
am_cv_func_working_getline=no
14530
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14531
/* end confdefs.h. */
14533
# include <stdio.h>
14534
# include <stdlib.h>
14535
# include <string.h>
14538
FILE *in = fopen ("./conftest.data", "r");
14542
/* Test result for a NULL buffer and a zero size.
14543
Based on a test program from Karl Heuer. */
14546
int len = getline (&line, &siz, in);
14547
if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
14551
/* Test result for a NULL buffer and a non-zero size.
14552
This crashes on FreeBSD 8.0. */
14554
size_t siz = (size_t)(~0) / 4;
14555
if (getline (&line, &siz, in) == -1)
14562
if ac_fn_c_try_run "$LINENO"; then :
14563
am_cv_func_working_getline=yes
14565
am_cv_func_working_getline=no
14567
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14568
conftest.$ac_objext conftest.beam conftest.$ac_ext
14572
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
14573
$as_echo "$am_cv_func_working_getline" >&6; }
14576
if test $ac_cv_have_decl_getline = no; then
14577
HAVE_DECL_GETLINE=0
14580
if test $am_cv_func_working_getline = no; then
14590
gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
14602
if test $ac_cv_func_getdelim = yes; then
14603
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
14604
$as_echo_n "checking for working getdelim function... " >&6; }
14605
if test "${gl_cv_func_working_getdelim+set}" = set; then :
14606
$as_echo_n "(cached) " >&6
14608
echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
14609
if test "$cross_compiling" = yes; then :
14610
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14611
/* end confdefs.h. */
14613
#include <features.h>
14614
#ifdef __GNU_LIBRARY__
14615
#if (__GLIBC__ >= 2)
14621
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14622
$EGREP "Lucky GNU user" >/dev/null 2>&1; then :
14623
gl_cv_func_working_getdelim=yes
14625
gl_cv_func_working_getdelim=no
14631
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14632
/* end confdefs.h. */
14634
# include <stdio.h>
14635
# include <stdlib.h>
14636
# include <string.h>
14639
FILE *in = fopen ("./conftest.data", "r");
14643
/* Test result for a NULL buffer and a zero size.
14644
Based on a test program from Karl Heuer. */
14647
int len = getdelim (&line, &siz, '\n', in);
14648
if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
14652
/* Test result for a NULL buffer and a non-zero size.
14653
This crashes on FreeBSD 8.0. */
14655
size_t siz = (size_t)(~0) / 4;
14656
if (getdelim (&line, &siz, '\n', in) == -1)
14663
if ac_fn_c_try_run "$LINENO"; then :
14664
gl_cv_func_working_getdelim=yes
14666
gl_cv_func_working_getdelim=no
14668
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14669
conftest.$ac_objext conftest.beam conftest.$ac_ext
14673
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
14674
$as_echo "$gl_cv_func_working_getdelim" >&6; }
14676
gl_cv_func_working_getdelim=no
14679
if test $ac_cv_have_decl_getdelim = no; then
14680
HAVE_DECL_GETDELIM=0
14683
if test $gl_cv_func_working_getdelim = no; then
14684
if test $ac_cv_func_getdelim = yes; then
14695
gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
14698
for ac_func in flockfile funlockfile
14700
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14701
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14702
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14703
cat >>confdefs.h <<_ACEOF
14704
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14710
ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
14711
if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
14717
cat >>confdefs.h <<_ACEOF
14718
#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
14734
$as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
14738
# Code from module getopt-gnu:
14746
$as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
14749
# Code from module getopt-posix:
14755
if test -n "$gl_replace_getopt"; then :
14761
$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14765
GNULIB_UNISTD_H_GETOPT=1
14774
gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14784
gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14794
# Code from module gettext:
14796
# Code from module gettext-h:
14799
# Code from module havelib:
14800
# Code from module include_next:
14801
# Code from module intprops:
14802
# Code from module langinfo:
14814
if test $gl_cv_have_include_next = yes; then
14815
gl_cv_next_langinfo_h='<'langinfo.h'>'
14817
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
14818
$as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
14819
if test "${gl_cv_next_langinfo_h+set}" = set; then :
14820
$as_echo_n "(cached) " >&6
14823
if test $ac_cv_header_langinfo_h = yes; then
14824
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14825
/* end confdefs.h. */
14826
#include <langinfo.h>
14830
aix*) gl_absname_cpp="$ac_cpp -C" ;;
14831
*) gl_absname_cpp="$ac_cpp" ;;
14833
gl_cv_next_langinfo_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14834
sed -n '\#/langinfo.h#{
14835
s#.*"\(.*/langinfo.h\)".*#\1#
14841
gl_cv_next_langinfo_h='<'langinfo.h'>'
14845
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
14846
$as_echo "$gl_cv_next_langinfo_h" >&6; }
14848
NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
14850
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14851
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14852
gl_next_as_first_directive='<'langinfo.h'>'
14854
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14855
gl_next_as_first_directive=$gl_cv_next_langinfo_h
14857
NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
14862
HAVE_LANGINFO_CODESET=0
14863
HAVE_LANGINFO_T_FMT_AMPM=0
14864
HAVE_LANGINFO_ERA=0
14865
HAVE_LANGINFO_YESEXPR=0
14867
if test $ac_cv_header_langinfo_h = yes; then
14869
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
14870
$as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
14871
if test "${gl_cv_header_langinfo_codeset+set}" = set; then :
14872
$as_echo_n "(cached) " >&6
14874
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14875
/* end confdefs.h. */
14876
#include <langinfo.h>
14887
if ac_fn_c_try_compile "$LINENO"; then :
14888
gl_cv_header_langinfo_codeset=yes
14890
gl_cv_header_langinfo_codeset=no
14892
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14895
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
14896
$as_echo "$gl_cv_header_langinfo_codeset" >&6; }
14897
if test $gl_cv_header_langinfo_codeset = yes; then
14898
HAVE_LANGINFO_CODESET=1
14900
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5
14901
$as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; }
14902
if test "${gl_cv_header_langinfo_t_fmt_ampm+set}" = set; then :
14903
$as_echo_n "(cached) " >&6
14905
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14906
/* end confdefs.h. */
14907
#include <langinfo.h>
14908
int a = T_FMT_AMPM;
14918
if ac_fn_c_try_compile "$LINENO"; then :
14919
gl_cv_header_langinfo_t_fmt_ampm=yes
14921
gl_cv_header_langinfo_t_fmt_ampm=no
14923
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14926
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5
14927
$as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; }
14928
if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
14929
HAVE_LANGINFO_T_FMT_AMPM=1
14931
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
14932
$as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
14933
if test "${gl_cv_header_langinfo_era+set}" = set; then :
14934
$as_echo_n "(cached) " >&6
14936
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14937
/* end confdefs.h. */
14938
#include <langinfo.h>
14949
if ac_fn_c_try_compile "$LINENO"; then :
14950
gl_cv_header_langinfo_era=yes
14952
gl_cv_header_langinfo_era=no
14954
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14957
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
14958
$as_echo "$gl_cv_header_langinfo_era" >&6; }
14959
if test $gl_cv_header_langinfo_era = yes; then
14960
HAVE_LANGINFO_ERA=1
14962
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5
14963
$as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; }
14964
if test "${gl_cv_header_langinfo_yesexpr+set}" = set; then :
14965
$as_echo_n "(cached) " >&6
14967
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14968
/* end confdefs.h. */
14969
#include <langinfo.h>
14980
if ac_fn_c_try_compile "$LINENO"; then :
14981
gl_cv_header_langinfo_yesexpr=yes
14983
gl_cv_header_langinfo_yesexpr=no
14985
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14988
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5
14989
$as_echo "$gl_cv_header_langinfo_yesexpr" >&6; }
14990
if test $gl_cv_header_langinfo_yesexpr = yes; then
14991
HAVE_LANGINFO_YESEXPR=1
15003
for gl_func in nl_langinfo; do
15004
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15005
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15006
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15007
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
15008
$as_echo_n "(cached) " >&6
15010
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15011
/* end confdefs.h. */
15012
#include <langinfo.h>
15023
if ac_fn_c_try_compile "$LINENO"; then :
15024
eval "$as_gl_Symbol=yes"
15026
eval "$as_gl_Symbol=no"
15028
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15030
eval ac_res=\$$as_gl_Symbol
15031
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15032
$as_echo "$ac_res" >&6; }
15033
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
15034
cat >>confdefs.h <<_ACEOF
15035
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15038
eval ac_cv_have_decl_$gl_func=yes
15043
# Code from module localcharset:
15052
LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
15054
# Code from module malloc-gnu:
15057
for ac_header in stdlib.h
15059
ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15060
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
15061
cat >>confdefs.h <<_ACEOF
15062
#define HAVE_STDLIB_H 1
15069
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15070
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15071
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
15072
$as_echo_n "(cached) " >&6
15074
if test "$cross_compiling" = yes; then :
15075
ac_cv_func_malloc_0_nonnull=no
15077
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15078
/* end confdefs.h. */
15079
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
15080
# include <stdlib.h>
15088
return ! malloc (0);
15093
if ac_fn_c_try_run "$LINENO"; then :
15094
ac_cv_func_malloc_0_nonnull=yes
15096
ac_cv_func_malloc_0_nonnull=no
15098
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15099
conftest.$ac_objext conftest.beam conftest.$ac_ext
15103
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15104
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15105
if test $ac_cv_func_malloc_0_nonnull = yes; then :
15107
$as_echo "#define HAVE_MALLOC_GNU 1" >>confdefs.h
15110
$as_echo "#define HAVE_MALLOC_GNU 0" >>confdefs.h
15121
gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
15131
cat >>confdefs.h <<_ACEOF
15132
#define GNULIB_MALLOC_GNU 1
15136
# Code from module malloc-posix:
15140
if test $gl_cv_func_malloc_posix = yes; then
15142
$as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
15154
gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
15163
GNULIB_MALLOC_POSIX=1
15167
$as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
15171
# Code from module mbrtowc:
15182
if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15186
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15187
$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15188
if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
15189
$as_echo_n "(cached) " >&6
15193
# Guess no on AIX and OSF/1.
15194
aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15195
# Guess yes otherwise.
15196
*) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15198
if test $LOCALE_JA != none; then
15199
if test "$cross_compiling" = yes; then :
15202
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203
/* end confdefs.h. */
15205
#include <locale.h>
15206
#include <string.h>
15210
if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15212
const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15216
memset (&state, '\0', sizeof (mbstate_t));
15217
if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15218
if (mbsinit (&state))
15224
if ac_fn_c_try_run "$LINENO"; then :
15225
gl_cv_func_mbrtowc_incomplete_state=yes
15227
gl_cv_func_mbrtowc_incomplete_state=no
15229
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15230
conftest.$ac_objext conftest.beam conftest.$ac_ext
15236
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15237
$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15242
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15243
$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15244
if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
15245
$as_echo_n "(cached) " >&6
15249
# Guess no on Solaris 8.
15250
solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15251
# Guess yes otherwise.
15252
*) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15254
if test $LOCALE_ZH_CN != none; then
15255
if test "$cross_compiling" = yes; then :
15258
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15259
/* end confdefs.h. */
15261
#include <locale.h>
15262
#include <stdlib.h>
15263
#include <string.h>
15267
/* This fails on Solaris 8:
15268
mbrtowc returns 2, and sets wc to 0x00F0.
15269
mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15270
if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15272
char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15276
memset (&state, '\0', sizeof (mbstate_t));
15277
if (mbrtowc (&wc, input + 3, 6, &state) != 4
15278
&& mbtowc (&wc, input + 3, 6) == 4)
15284
if ac_fn_c_try_run "$LINENO"; then :
15285
gl_cv_func_mbrtowc_sanitycheck=yes
15287
gl_cv_func_mbrtowc_sanitycheck=no
15289
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15290
conftest.$ac_objext conftest.beam conftest.$ac_ext
15296
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15297
$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15299
REPLACE_MBSTATE_T=0
15300
case "$gl_cv_func_mbrtowc_incomplete_state" in
15302
*) REPLACE_MBSTATE_T=1 ;;
15304
case "$gl_cv_func_mbrtowc_sanitycheck" in
15306
*) REPLACE_MBSTATE_T=1 ;;
15309
REPLACE_MBSTATE_T=1
15311
if test $REPLACE_MBSTATE_T = 1; then
15319
if test $ac_cv_func_mbrtowc = no; then
15322
if test $REPLACE_MBSTATE_T = 1; then
15328
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
15329
$as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
15330
if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then :
15331
$as_echo_n "(cached) " >&6
15335
# Guess no on OSF/1.
15336
osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
15337
# Guess yes otherwise.
15338
*) gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
15340
if test $LOCALE_FR_UTF8 != none; then
15341
if test "$cross_compiling" = yes; then :
15344
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15345
/* end confdefs.h. */
15347
#include <locale.h>
15348
#include <string.h>
15352
if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15358
memset (&state, '\0', sizeof (mbstate_t));
15359
wc = (wchar_t) 0xBADFACE;
15360
mbrtowc (&wc, NULL, 5, &state);
15361
/* Check that wc was not modified. */
15362
if (wc != (wchar_t) 0xBADFACE)
15368
if ac_fn_c_try_run "$LINENO"; then :
15369
gl_cv_func_mbrtowc_null_arg=yes
15371
gl_cv_func_mbrtowc_null_arg=no
15373
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15374
conftest.$ac_objext conftest.beam conftest.$ac_ext
15380
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg" >&5
15381
$as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
15387
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
15388
$as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
15389
if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
15390
$as_echo_n "(cached) " >&6
15394
# Guess no on HP-UX and Solaris.
15395
hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
15396
# Guess yes otherwise.
15397
*) gl_cv_func_mbrtowc_retval="guessing yes" ;;
15399
if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
15400
if test "$cross_compiling" = yes; then :
15403
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15404
/* end confdefs.h. */
15406
#include <locale.h>
15407
#include <string.h>
15411
/* This fails on Solaris. */
15412
if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15414
char input[] = "B\303\274\303\237er"; /* "Büßer" */
15418
memset (&state, '\0', sizeof (mbstate_t));
15419
if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15422
if (mbrtowc (&wc, input + 2, 5, &state) != 1)
15426
/* This fails on HP-UX 11.11. */
15427
if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15429
char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15433
memset (&state, '\0', sizeof (mbstate_t));
15434
if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15437
if (mbrtowc (&wc, input + 2, 5, &state) != 2)
15444
if ac_fn_c_try_run "$LINENO"; then :
15445
gl_cv_func_mbrtowc_retval=yes
15447
gl_cv_func_mbrtowc_retval=no
15449
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15450
conftest.$ac_objext conftest.beam conftest.$ac_ext
15456
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
15457
$as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
15462
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
15463
$as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
15464
if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
15465
$as_echo_n "(cached) " >&6
15469
# Guess no on Solaris 8 and 9.
15470
solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
15471
# Guess yes otherwise.
15472
*) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
15474
if test $LOCALE_ZH_CN != none; then
15475
if test "$cross_compiling" = yes; then :
15478
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15479
/* end confdefs.h. */
15481
#include <locale.h>
15482
#include <string.h>
15486
/* This fails on Solaris 8 and 9. */
15487
if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15492
memset (&state, '\0', sizeof (mbstate_t));
15493
if (mbrtowc (&wc, "", 1, &state) != 0)
15499
if ac_fn_c_try_run "$LINENO"; then :
15500
gl_cv_func_mbrtowc_nul_retval=yes
15502
gl_cv_func_mbrtowc_nul_retval=no
15504
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15505
conftest.$ac_objext conftest.beam conftest.$ac_ext
15511
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
15512
$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
15514
case "$gl_cv_func_mbrtowc_null_arg" in
15517
$as_echo "#define MBRTOWC_NULL_ARG_BUG 1" >>confdefs.h
15522
case "$gl_cv_func_mbrtowc_retval" in
15525
$as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
15530
case "$gl_cv_func_mbrtowc_nul_retval" in
15533
$as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
15540
if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
15552
gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
15566
$as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
15570
# Code from module mbsinit:
15581
if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15585
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15586
$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15587
if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
15588
$as_echo_n "(cached) " >&6
15592
# Guess no on AIX and OSF/1.
15593
aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15594
# Guess yes otherwise.
15595
*) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15597
if test $LOCALE_JA != none; then
15598
if test "$cross_compiling" = yes; then :
15601
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15602
/* end confdefs.h. */
15604
#include <locale.h>
15605
#include <string.h>
15609
if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15611
const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15615
memset (&state, '\0', sizeof (mbstate_t));
15616
if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15617
if (mbsinit (&state))
15623
if ac_fn_c_try_run "$LINENO"; then :
15624
gl_cv_func_mbrtowc_incomplete_state=yes
15626
gl_cv_func_mbrtowc_incomplete_state=no
15628
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15629
conftest.$ac_objext conftest.beam conftest.$ac_ext
15635
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15636
$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15641
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15642
$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15643
if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
15644
$as_echo_n "(cached) " >&6
15648
# Guess no on Solaris 8.
15649
solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15650
# Guess yes otherwise.
15651
*) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15653
if test $LOCALE_ZH_CN != none; then
15654
if test "$cross_compiling" = yes; then :
15657
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15658
/* end confdefs.h. */
15660
#include <locale.h>
15661
#include <stdlib.h>
15662
#include <string.h>
15666
/* This fails on Solaris 8:
15667
mbrtowc returns 2, and sets wc to 0x00F0.
15668
mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15669
if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15671
char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15675
memset (&state, '\0', sizeof (mbstate_t));
15676
if (mbrtowc (&wc, input + 3, 6, &state) != 4
15677
&& mbtowc (&wc, input + 3, 6) == 4)
15683
if ac_fn_c_try_run "$LINENO"; then :
15684
gl_cv_func_mbrtowc_sanitycheck=yes
15686
gl_cv_func_mbrtowc_sanitycheck=no
15688
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15689
conftest.$ac_objext conftest.beam conftest.$ac_ext
15695
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15696
$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15698
REPLACE_MBSTATE_T=0
15699
case "$gl_cv_func_mbrtowc_incomplete_state" in
15701
*) REPLACE_MBSTATE_T=1 ;;
15703
case "$gl_cv_func_mbrtowc_sanitycheck" in
15705
*) REPLACE_MBSTATE_T=1 ;;
15708
REPLACE_MBSTATE_T=1
15710
if test $REPLACE_MBSTATE_T = 1; then
15718
if test $ac_cv_func_mbsinit = no; then
15721
if test $REPLACE_MBSTATE_T = 1; then
15725
if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
15737
gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
15751
$as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
15755
# Code from module mbsrtowcs:
15766
if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15770
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15771
$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15772
if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
15773
$as_echo_n "(cached) " >&6
15777
# Guess no on AIX and OSF/1.
15778
aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15779
# Guess yes otherwise.
15780
*) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15782
if test $LOCALE_JA != none; then
15783
if test "$cross_compiling" = yes; then :
15786
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15787
/* end confdefs.h. */
15789
#include <locale.h>
15790
#include <string.h>
15794
if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15796
const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15800
memset (&state, '\0', sizeof (mbstate_t));
15801
if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15802
if (mbsinit (&state))
15808
if ac_fn_c_try_run "$LINENO"; then :
15809
gl_cv_func_mbrtowc_incomplete_state=yes
15811
gl_cv_func_mbrtowc_incomplete_state=no
15813
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15814
conftest.$ac_objext conftest.beam conftest.$ac_ext
15820
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15821
$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15826
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15827
$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15828
if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
15829
$as_echo_n "(cached) " >&6
15833
# Guess no on Solaris 8.
15834
solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15835
# Guess yes otherwise.
15836
*) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15838
if test $LOCALE_ZH_CN != none; then
15839
if test "$cross_compiling" = yes; then :
15842
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15843
/* end confdefs.h. */
15845
#include <locale.h>
15846
#include <stdlib.h>
15847
#include <string.h>
15851
/* This fails on Solaris 8:
15852
mbrtowc returns 2, and sets wc to 0x00F0.
15853
mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15854
if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15856
char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15860
memset (&state, '\0', sizeof (mbstate_t));
15861
if (mbrtowc (&wc, input + 3, 6, &state) != 4
15862
&& mbtowc (&wc, input + 3, 6) == 4)
15868
if ac_fn_c_try_run "$LINENO"; then :
15869
gl_cv_func_mbrtowc_sanitycheck=yes
15871
gl_cv_func_mbrtowc_sanitycheck=no
15873
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15874
conftest.$ac_objext conftest.beam conftest.$ac_ext
15880
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15881
$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15883
REPLACE_MBSTATE_T=0
15884
case "$gl_cv_func_mbrtowc_incomplete_state" in
15886
*) REPLACE_MBSTATE_T=1 ;;
15888
case "$gl_cv_func_mbrtowc_sanitycheck" in
15890
*) REPLACE_MBSTATE_T=1 ;;
15893
REPLACE_MBSTATE_T=1
15895
if test $REPLACE_MBSTATE_T = 1; then
15903
if test $ac_cv_func_mbsrtowcs = no; then
15906
if test $REPLACE_MBSTATE_T = 1; then
15907
REPLACE_MBSRTOWCS=1
15914
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
15915
$as_echo_n "checking whether mbsrtowcs works... " >&6; }
15916
if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
15917
$as_echo_n "(cached) " >&6
15921
# Guess no on HP-UX and Solaris.
15922
hpux* | solaris*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
15923
# Guess yes otherwise.
15924
*) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
15926
if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
15927
if test "$cross_compiling" = yes; then :
15930
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15931
/* end confdefs.h. */
15933
#include <locale.h>
15934
#include <string.h>
15938
/* Test whether the function works when started with a conversion state
15939
in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
15940
if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15942
const char input[] = "B\303\274\303\237er";
15945
memset (&state, '\0', sizeof (mbstate_t));
15946
if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
15947
if (!mbsinit (&state))
15949
const char *src = input + 2;
15950
if (mbsrtowcs (NULL, &src, 10, &state) != 4)
15954
if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15956
const char input[] = "<\306\374\313\334\270\354>";
15959
memset (&state, '\0', sizeof (mbstate_t));
15960
if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
15961
if (!mbsinit (&state))
15963
const char *src = input + 4;
15964
if (mbsrtowcs (NULL, &src, 10, &state) != 3)
15968
if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15970
const char input[] = "B\250\271\201\060\211\070er";
15973
memset (&state, '\0', sizeof (mbstate_t));
15974
if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
15975
if (!mbsinit (&state))
15977
const char *src = input + 2;
15978
if (mbsrtowcs (NULL, &src, 10, &state) != 4)
15985
if ac_fn_c_try_run "$LINENO"; then :
15986
gl_cv_func_mbsrtowcs_works=yes
15988
gl_cv_func_mbsrtowcs_works=no
15990
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15991
conftest.$ac_objext conftest.beam conftest.$ac_ext
15997
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
15998
$as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
16000
case "$gl_cv_func_mbsrtowcs_works" in
16002
*) REPLACE_MBSRTOWCS=1 ;;
16006
if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
16018
gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
16028
gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
16042
$as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
16046
# Code from module memchr:
16055
$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
16059
# Code from module mempcpy:
16074
for ac_func in mempcpy
16076
ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
16077
if test "x$ac_cv_func_mempcpy" = x""yes; then :
16078
cat >>confdefs.h <<_ACEOF
16079
#define HAVE_MEMPCPY 1
16084
gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
16090
if test $ac_cv_func_mempcpy = no; then
16104
$as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
16108
# Code from module multiarch:
16110
# Code from module nl_langinfo:
16115
if test $ac_cv_func_nl_langinfo = yes; then
16116
if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1; then
16119
REPLACE_NL_LANGINFO=1
16121
$as_echo "#define REPLACE_NL_LANGINFO 1" >>confdefs.h
16131
gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
16144
gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
16151
GNULIB_NL_LANGINFO=1
16155
$as_echo "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h
16159
# Code from module progname:
16160
ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
16162
if test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then :
16168
cat >>confdefs.h <<_ACEOF
16169
#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
16172
ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
16174
if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then :
16180
cat >>confdefs.h <<_ACEOF
16181
#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
16184
# Code from module rawmemchr:
16197
for ac_func in rawmemchr
16199
ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
16200
if test "x$ac_cv_func_rawmemchr" = x""yes; then :
16201
cat >>confdefs.h <<_ACEOF
16202
#define HAVE_RAWMEMCHR 1
16207
gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
16213
if test $ac_cv_func_rawmemchr = no; then
16225
$as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
16229
# Code from module realloc-posix:
16233
if test $gl_cv_func_malloc_posix = yes; then
16235
$as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
16247
gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
16256
GNULIB_REALLOC_POSIX=1
16260
$as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
16264
# Code from module regex:
16269
# Check whether --with-included-regex was given.
16270
if test "${with_included_regex+set}" = set; then :
16271
withval=$with_included_regex;
16275
case $with_included_regex in #(
16276
yes|no) ac_use_included_regex=$with_included_regex
16279
# If the system regex support is good enough that it passes the
16280
# following run test, then default to *not* using the included regex.c.
16281
# If cross compiling, assume the test would fail and use the included
16283
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5
16284
$as_echo_n "checking for working re_compile_pattern... " >&6; }
16285
if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then :
16286
$as_echo_n "(cached) " >&6
16288
if test "$cross_compiling" = yes; then :
16289
gl_cv_func_re_compile_pattern_working=no
16291
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16292
/* end confdefs.h. */
16293
$ac_includes_default
16295
#include <locale.h>
16297
#include <limits.h>
16303
static struct re_pattern_buffer regex;
16304
unsigned char folded_chars[UCHAR_MAX + 1];
16307
struct re_registers regs;
16310
/* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
16311
This test needs valgrind to catch the bug on Debian
16312
GNU/Linux 3.1 x86, but it might catch the bug better
16313
on other platforms and it shouldn't hurt to try the
16315
if (setlocale (LC_ALL, "en_US.UTF-8"))
16317
static char const pat[] = "insert into";
16318
static char const data[] =
16319
"\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
16320
re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
16322
memset (®ex, 0, sizeof regex);
16323
s = re_compile_pattern (pat, sizeof pat - 1, ®ex);
16326
if (re_search (®ex, data, sizeof data - 1,
16327
0, sizeof data - 1, ®s)
16330
if (! setlocale (LC_ALL, "C"))
16335
/* This test is from glibc bug 3957, reported by Andrew Mackey. */
16336
re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
16337
memset (®ex, 0, sizeof regex);
16338
s = re_compile_pattern ("a[^x]b", 6, ®ex);
16342
/* This should fail, but succeeds for glibc-2.5. */
16343
if (re_search (®ex, "a\nb", 3, 0, 3, ®s) != -1)
16346
/* This regular expression is from Spencer ere test number 75
16348
re_set_syntax (RE_SYNTAX_POSIX_EGREP);
16349
memset (®ex, 0, sizeof regex);
16350
for (i = 0; i <= UCHAR_MAX; i++)
16351
folded_chars[i] = i;
16352
regex.translate = folded_chars;
16353
s = re_compile_pattern ("a[[:]:]]b\n", 11, ®ex);
16354
/* This should fail with _Invalid character class name_ error. */
16358
/* Ensure that [b-a] is diagnosed as invalid, when
16359
using RE_NO_EMPTY_RANGES. */
16360
re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
16361
memset (®ex, 0, sizeof regex);
16362
s = re_compile_pattern ("a[b-a]", 6, ®ex);
16366
/* This should succeed, but does not for glibc-2.1.3. */
16367
memset (®ex, 0, sizeof regex);
16368
s = re_compile_pattern ("{1", 2, ®ex);
16373
/* The following example is derived from a problem report
16374
against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
16375
memset (®ex, 0, sizeof regex);
16376
s = re_compile_pattern ("[an\371]*n", 7, ®ex);
16380
/* This should match, but does not for glibc-2.2.1. */
16381
if (re_match (®ex, "an", 2, 0, ®s) != 2)
16384
memset (®ex, 0, sizeof regex);
16385
s = re_compile_pattern ("x", 1, ®ex);
16389
/* glibc-2.2.93 does not work with a negative RANGE argument. */
16390
if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
16393
/* The version of regex.c in older versions of gnulib
16394
ignored RE_ICASE. Detect that problem too. */
16395
re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
16396
memset (®ex, 0, sizeof regex);
16397
s = re_compile_pattern ("x", 1, ®ex);
16401
if (re_search (®ex, "WXY", 3, 0, 3, ®s) < 0)
16404
/* Catch a bug reported by Vin Shelton in
16405
http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
16407
re_set_syntax (RE_SYNTAX_POSIX_BASIC
16408
& ~RE_CONTEXT_INVALID_DUP
16409
& ~RE_NO_EMPTY_RANGES);
16410
memset (®ex, 0, sizeof regex);
16411
s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, ®ex);
16415
/* REG_STARTEND was added to glibc on 2004-01-15.
16416
Reject older versions. */
16417
if (! REG_STARTEND)
16421
/* It would be nice to reject hosts whose regoff_t values are too
16422
narrow (including glibc on hosts with 64-bit ptrdiff_t and
16423
32-bit int), but we should wait until glibc implements this
16424
feature. Otherwise, support for equivalence classes and
16425
multibyte collation symbols would always be broken except
16426
when compiling --without-included-regex. */
16427
if (sizeof (regoff_t) < sizeof (ptrdiff_t)
16428
|| sizeof (regoff_t) < sizeof (ssize_t))
16437
if ac_fn_c_try_run "$LINENO"; then :
16438
gl_cv_func_re_compile_pattern_working=yes
16440
gl_cv_func_re_compile_pattern_working=no
16442
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16443
conftest.$ac_objext conftest.beam conftest.$ac_ext
16447
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5
16448
$as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
16449
case $gl_cv_func_re_compile_pattern_working in #(
16450
yes) ac_use_included_regex=no;; #(
16451
no) ac_use_included_regex=yes;;
16454
*) as_fn_error $? "Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5
16458
if test $ac_use_included_regex = yes; then
16460
$as_echo "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h
16463
$as_echo "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h
16466
$as_echo "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h
16469
$as_echo "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h
16472
$as_echo "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h
16475
$as_echo "#define re_search rpl_re_search" >>confdefs.h
16478
$as_echo "#define re_search_2 rpl_re_search_2" >>confdefs.h
16481
$as_echo "#define re_match rpl_re_match" >>confdefs.h
16484
$as_echo "#define re_match_2 rpl_re_match_2" >>confdefs.h
16487
$as_echo "#define re_set_registers rpl_re_set_registers" >>confdefs.h
16490
$as_echo "#define re_comp rpl_re_comp" >>confdefs.h
16493
$as_echo "#define re_exec rpl_re_exec" >>confdefs.h
16496
$as_echo "#define regcomp rpl_regcomp" >>confdefs.h
16499
$as_echo "#define regexec rpl_regexec" >>confdefs.h
16502
$as_echo "#define regerror rpl_regerror" >>confdefs.h
16505
$as_echo "#define regfree rpl_regfree" >>confdefs.h
16515
gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
16522
for ac_header in libintl.h
16524
ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
16525
if test "x$ac_cv_header_libintl_h" = x""yes; then :
16526
cat >>confdefs.h <<_ACEOF
16527
#define HAVE_LIBINTL_H 1
16535
ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
16537
if test "x$ac_cv_have_decl_isblank" = x""yes; then :
16543
cat >>confdefs.h <<_ACEOF
16544
#define HAVE_DECL_ISBLANK $ac_have_decl
16550
# Code from module size_max:
16552
for ac_header in stdint.h
16554
ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
16555
if test "x$ac_cv_header_stdint_h" = x""yes; then :
16556
cat >>confdefs.h <<_ACEOF
16557
#define HAVE_STDINT_H 1
16564
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
16565
$as_echo_n "checking for SIZE_MAX... " >&6; }
16566
if test "${gl_cv_size_max+set}" = set; then :
16567
$as_echo_n "(cached) " >&6
16571
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16572
/* end confdefs.h. */
16574
#include <limits.h>
16576
#include <stdint.h>
16583
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16584
$EGREP "Found it" >/dev/null 2>&1; then :
16589
if test -z "$gl_cv_size_max"; then
16590
if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
16591
#include <limits.h>"; then :
16594
size_t_bits_minus_1=
16597
if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
16603
if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
16604
if test $fits_in_uint = 1; then
16605
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16606
/* end confdefs.h. */
16607
#include <stddef.h>
16609
extern unsigned long foo;
16619
if ac_fn_c_try_compile "$LINENO"; then :
16622
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16624
if test $fits_in_uint = 1; then
16625
gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
16627
gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
16630
gl_cv_size_max='((size_t)~(size_t)0)'
16635
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
16636
$as_echo "$gl_cv_size_max" >&6; }
16637
if test "$gl_cv_size_max" != yes; then
16639
cat >>confdefs.h <<_ACEOF
16640
#define SIZE_MAX $gl_cv_size_max
16646
# Code from module sleep:
16649
ac_fn_c_check_decl "$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h>
16651
if test "x$ac_cv_have_decl_sleep" = x""yes; then :
16657
cat >>confdefs.h <<_ACEOF
16658
#define HAVE_DECL_SLEEP $ac_have_decl
16662
if test $ac_cv_have_decl_sleep != yes; then
16672
gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
16675
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sleep" >&5
16676
$as_echo_n "checking for working sleep... " >&6; }
16677
if test "${gl_cv_func_sleep_works+set}" = set; then :
16678
$as_echo_n "(cached) " >&6
16680
if test "$cross_compiling" = yes; then :
16681
gl_cv_func_sleep_works="guessing no"
16683
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16684
/* end confdefs.h. */
16687
#include <unistd.h>
16688
#include <signal.h>
16690
handle_alarm (int sig)
16692
if (sig != SIGALRM)
16700
/* Failure to compile this test due to missing alarm is okay,
16701
since all such platforms (mingw) also lack sleep. */
16702
unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days. */
16703
unsigned int remaining;
16704
signal (SIGALRM, handle_alarm);
16706
remaining = sleep (pentecost);
16707
return !(pentecost - 10 < remaining && remaining <= pentecost);
16712
if ac_fn_c_try_run "$LINENO"; then :
16713
gl_cv_func_sleep_works=yes
16715
gl_cv_func_sleep_works=no
16717
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16718
conftest.$ac_objext conftest.beam conftest.$ac_ext
16722
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sleep_works" >&5
16723
$as_echo "$gl_cv_func_sleep_works" >&6; }
16724
if test "$gl_cv_func_sleep_works" != yes; then
16734
gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
16746
$as_echo "#define GNULIB_TEST_SLEEP 1" >>confdefs.h
16750
# Code from module ssize_t:
16752
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
16753
$as_echo_n "checking for ssize_t... " >&6; }
16754
if test "${gt_cv_ssize_t+set}" = set; then :
16755
$as_echo_n "(cached) " >&6
16757
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16758
/* end confdefs.h. */
16759
#include <sys/types.h>
16763
int x = sizeof (ssize_t *) + sizeof (ssize_t);
16769
if ac_fn_c_try_compile "$LINENO"; then :
16774
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16776
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
16777
$as_echo "$gt_cv_ssize_t" >&6; }
16778
if test $gt_cv_ssize_t = no; then
16780
$as_echo "#define ssize_t int" >>confdefs.h
16784
# Code from module stdbool:
16788
# Define two additional variables used in the Makefile substitution.
16790
if test "$ac_cv_header_stdbool_h" = yes; then
16793
STDBOOL_H='stdbool.h'
16797
if test "$ac_cv_type__Bool" = yes; then
16804
# Code from module stddef:
16808
if test $gt_cv_c_wchar_t = no; then
16812
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16813
$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
16814
if test "${gl_cv_decl_null_works+set}" = set; then :
16815
$as_echo_n "(cached) " >&6
16817
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16818
/* end confdefs.h. */
16819
#include <stddef.h>
16820
int test[2 * (sizeof NULL == sizeof (void *)) -1];
16830
if ac_fn_c_try_compile "$LINENO"; then :
16831
gl_cv_decl_null_works=yes
16833
gl_cv_decl_null_works=no
16835
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16837
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16838
$as_echo "$gl_cv_decl_null_works" >&6; }
16839
if test $gl_cv_decl_null_works = no; then
16843
if test -n "$STDDEF_H"; then
16850
if test $gl_cv_have_include_next = yes; then
16851
gl_cv_next_stddef_h='<'stddef.h'>'
16853
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16854
$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
16855
if test "${gl_cv_next_stddef_h+set}" = set; then :
16856
$as_echo_n "(cached) " >&6
16859
if test $ac_cv_header_stddef_h = yes; then
16860
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16861
/* end confdefs.h. */
16862
#include <stddef.h>
16866
aix*) gl_absname_cpp="$ac_cpp -C" ;;
16867
*) gl_absname_cpp="$ac_cpp" ;;
16869
gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16870
sed -n '\#/stddef.h#{
16871
s#.*"\(.*/stddef.h\)".*#\1#
16877
gl_cv_next_stddef_h='<'stddef.h'>'
16881
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16882
$as_echo "$gl_cv_next_stddef_h" >&6; }
16884
NEXT_STDDEF_H=$gl_cv_next_stddef_h
16886
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16887
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16888
gl_next_as_first_directive='<'stddef.h'>'
16890
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16891
gl_next_as_first_directive=$gl_cv_next_stddef_h
16893
NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
16899
# Code from module stdint:
16903
if test $ac_cv_type_long_long_int = yes; then
16904
HAVE_LONG_LONG_INT=1
16906
HAVE_LONG_LONG_INT=0
16910
if test $ac_cv_type_unsigned_long_long_int = yes; then
16911
HAVE_UNSIGNED_LONG_LONG_INT=1
16913
HAVE_UNSIGNED_LONG_LONG_INT=0
16917
if test $ac_cv_header_inttypes_h = yes; then
16924
if test $ac_cv_header_sys_types_h = yes; then
16937
if test $gl_cv_have_include_next = yes; then
16938
gl_cv_next_stdint_h='<'stdint.h'>'
16940
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16941
$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16942
if test "${gl_cv_next_stdint_h+set}" = set; then :
16943
$as_echo_n "(cached) " >&6
16946
if test $ac_cv_header_stdint_h = yes; then
16947
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16948
/* end confdefs.h. */
16949
#include <stdint.h>
16953
aix*) gl_absname_cpp="$ac_cpp -C" ;;
16954
*) gl_absname_cpp="$ac_cpp" ;;
16956
gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16957
sed -n '\#/stdint.h#{
16958
s#.*"\(.*/stdint.h\)".*#\1#
16964
gl_cv_next_stdint_h='<'stdint.h'>'
16968
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16969
$as_echo "$gl_cv_next_stdint_h" >&6; }
16971
NEXT_STDINT_H=$gl_cv_next_stdint_h
16973
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16974
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16975
gl_next_as_first_directive='<'stdint.h'>'
16977
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16978
gl_next_as_first_directive=$gl_cv_next_stdint_h
16980
NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16984
if test $ac_cv_header_stdint_h = yes; then
16991
if test $ac_cv_header_stdint_h = yes; then
16992
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16993
$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16994
if test "${gl_cv_header_working_stdint_h+set}" = set; then :
16995
$as_echo_n "(cached) " >&6
16997
gl_cv_header_working_stdint_h=no
16998
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16999
/* end confdefs.h. */
17002
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17003
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17004
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17005
#include <stdint.h>
17006
/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17007
#if !(defined WCHAR_MIN && defined WCHAR_MAX)
17008
#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17012
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17013
included before <wchar.h>. */
17014
#include <stddef.h>
17015
#include <signal.h>
17017
# include <stdio.h>
17019
# include <wchar.h>
17024
int8_t a1 = INT8_MAX;
17025
int8_t a1min = INT8_MIN;
17028
int16_t a2 = INT16_MAX;
17029
int16_t a2min = INT16_MIN;
17032
int32_t a3 = INT32_MAX;
17033
int32_t a3min = INT32_MIN;
17036
int64_t a4 = INT64_MAX;
17037
int64_t a4min = INT64_MIN;
17040
uint8_t b1 = UINT8_MAX;
17042
typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17045
uint16_t b2 = UINT16_MAX;
17048
uint32_t b3 = UINT32_MAX;
17051
uint64_t b4 = UINT64_MAX;
17053
int_least8_t c1 = INT8_C (0x7f);
17054
int_least8_t c1max = INT_LEAST8_MAX;
17055
int_least8_t c1min = INT_LEAST8_MIN;
17056
int_least16_t c2 = INT16_C (0x7fff);
17057
int_least16_t c2max = INT_LEAST16_MAX;
17058
int_least16_t c2min = INT_LEAST16_MIN;
17059
int_least32_t c3 = INT32_C (0x7fffffff);
17060
int_least32_t c3max = INT_LEAST32_MAX;
17061
int_least32_t c3min = INT_LEAST32_MIN;
17062
int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17063
int_least64_t c4max = INT_LEAST64_MAX;
17064
int_least64_t c4min = INT_LEAST64_MIN;
17065
uint_least8_t d1 = UINT8_C (0xff);
17066
uint_least8_t d1max = UINT_LEAST8_MAX;
17067
uint_least16_t d2 = UINT16_C (0xffff);
17068
uint_least16_t d2max = UINT_LEAST16_MAX;
17069
uint_least32_t d3 = UINT32_C (0xffffffff);
17070
uint_least32_t d3max = UINT_LEAST32_MAX;
17071
uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17072
uint_least64_t d4max = UINT_LEAST64_MAX;
17073
int_fast8_t e1 = INT_FAST8_MAX;
17074
int_fast8_t e1min = INT_FAST8_MIN;
17075
int_fast16_t e2 = INT_FAST16_MAX;
17076
int_fast16_t e2min = INT_FAST16_MIN;
17077
int_fast32_t e3 = INT_FAST32_MAX;
17078
int_fast32_t e3min = INT_FAST32_MIN;
17079
int_fast64_t e4 = INT_FAST64_MAX;
17080
int_fast64_t e4min = INT_FAST64_MIN;
17081
uint_fast8_t f1 = UINT_FAST8_MAX;
17082
uint_fast16_t f2 = UINT_FAST16_MAX;
17083
uint_fast32_t f3 = UINT_FAST32_MAX;
17084
uint_fast64_t f4 = UINT_FAST64_MAX;
17086
intptr_t g = INTPTR_MAX;
17087
intptr_t gmin = INTPTR_MIN;
17090
uintptr_t h = UINTPTR_MAX;
17092
intmax_t i = INTMAX_MAX;
17093
uintmax_t j = UINTMAX_MAX;
17095
#include <limits.h> /* for CHAR_BIT */
17096
#define TYPE_MINIMUM(t) \
17097
((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
17098
#define TYPE_MAXIMUM(t) \
17099
((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
17102
PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17103
&& PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17105
/* Detect bug in FreeBSD 6.0 / ia64. */
17106
int check_SIG_ATOMIC:
17107
SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17108
&& SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17110
int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17112
WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17113
&& WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17115
/* Detect bug in mingw. */
17117
WINT_MIN == TYPE_MINIMUM (wint_t)
17118
&& WINT_MAX == TYPE_MAXIMUM (wint_t)
17121
/* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17123
(-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17124
int check_UINT16_C:
17125
(-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17127
/* Detect bugs in OpenBSD 3.9 stdint.h. */
17129
int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17132
int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17135
int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17138
int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17140
int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17141
int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17142
int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17143
int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17144
int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17145
int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17146
int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17147
int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17148
int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17149
int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17150
int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17161
if ac_fn_c_try_compile "$LINENO"; then :
17162
if test "$cross_compiling" = yes; then :
17163
gl_cv_header_working_stdint_h=yes
17166
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17167
/* end confdefs.h. */
17170
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17171
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17172
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17173
#include <stdint.h>
17176
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17177
included before <wchar.h>. */
17178
#include <stddef.h>
17179
#include <signal.h>
17181
# include <stdio.h>
17183
# include <wchar.h>
17188
#include <string.h>
17189
#define MVAL(macro) MVAL1(macro)
17190
#define MVAL1(expression) #expression
17191
static const char *macro_values[] =
17225
for (mv = macro_values; *mv != NULL; mv++)
17227
const char *value = *mv;
17228
/* Test whether it looks like a cast expression. */
17229
if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17230
|| strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17231
|| strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17232
|| strncmp (value, "((int)"/*)*/, 6) == 0
17233
|| strncmp (value, "((signed short)"/*)*/, 15) == 0
17234
|| strncmp (value, "((signed char)"/*)*/, 14) == 0)
17243
if ac_fn_c_try_run "$LINENO"; then :
17244
gl_cv_header_working_stdint_h=yes
17246
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17247
conftest.$ac_objext conftest.beam conftest.$ac_ext
17252
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17255
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17256
$as_echo "$gl_cv_header_working_stdint_h" >&6; }
17258
if test "$gl_cv_header_working_stdint_h" = yes; then
17261
for ac_header in sys/inttypes.h sys/bitypes.h
17263
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17264
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17265
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17266
cat >>confdefs.h <<_ACEOF
17267
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17274
if test $ac_cv_header_sys_inttypes_h = yes; then
17275
HAVE_SYS_INTTYPES_H=1
17277
HAVE_SYS_INTTYPES_H=0
17280
if test $ac_cv_header_sys_bitypes_h = yes; then
17281
HAVE_SYS_BITYPES_H=1
17283
HAVE_SYS_BITYPES_H=0
17291
if test $APPLE_UNIVERSAL_BUILD = 0; then
17294
for gltype in ptrdiff_t size_t ; do
17295
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17296
$as_echo_n "checking for bit size of $gltype... " >&6; }
17297
if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\"" = set; then :
17298
$as_echo_n "(cached) " >&6
17300
if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17301
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17302
included before <wchar.h>. */
17303
#include <stddef.h>
17304
#include <signal.h>
17306
# include <stdio.h>
17308
# include <wchar.h>
17311
#include <limits.h>"; then :
17317
eval gl_cv_bitsizeof_${gltype}=\$result
17320
eval ac_res=\$gl_cv_bitsizeof_${gltype}
17321
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17322
$as_echo "$ac_res" >&6; }
17323
eval result=\$gl_cv_bitsizeof_${gltype}
17324
if test $result = unknown; then
17327
GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17328
cat >>confdefs.h <<_ACEOF
17329
#define BITSIZEOF_${GLTYPE} $result
17332
eval BITSIZEOF_${GLTYPE}=\$result
17339
for gltype in sig_atomic_t wchar_t wint_t ; do
17340
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17341
$as_echo_n "checking for bit size of $gltype... " >&6; }
17342
if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\"" = set; then :
17343
$as_echo_n "(cached) " >&6
17345
if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17346
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17347
included before <wchar.h>. */
17348
#include <stddef.h>
17349
#include <signal.h>
17351
# include <stdio.h>
17353
# include <wchar.h>
17356
#include <limits.h>"; then :
17362
eval gl_cv_bitsizeof_${gltype}=\$result
17365
eval ac_res=\$gl_cv_bitsizeof_${gltype}
17366
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17367
$as_echo "$ac_res" >&6; }
17368
eval result=\$gl_cv_bitsizeof_${gltype}
17369
if test $result = unknown; then
17372
GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17373
cat >>confdefs.h <<_ACEOF
17374
#define BITSIZEOF_${GLTYPE} $result
17377
eval BITSIZEOF_${GLTYPE}=\$result
17383
for gltype in sig_atomic_t wchar_t wint_t ; do
17384
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17385
$as_echo_n "checking whether $gltype is signed... " >&6; }
17386
if eval "test \"\${gl_cv_type_${gltype}_signed+set}\"" = set; then :
17387
$as_echo_n "(cached) " >&6
17389
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17390
/* end confdefs.h. */
17392
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17393
included before <wchar.h>. */
17394
#include <stddef.h>
17395
#include <signal.h>
17397
# include <stdio.h>
17399
# include <wchar.h>
17402
int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17411
if ac_fn_c_try_compile "$LINENO"; then :
17416
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17417
eval gl_cv_type_${gltype}_signed=\$result
17420
eval ac_res=\$gl_cv_type_${gltype}_signed
17421
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17422
$as_echo "$ac_res" >&6; }
17423
eval result=\$gl_cv_type_${gltype}_signed
17424
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17425
if test "$result" = yes; then
17426
cat >>confdefs.h <<_ACEOF
17427
#define HAVE_SIGNED_${GLTYPE} 1
17430
eval HAVE_SIGNED_${GLTYPE}=1
17432
eval HAVE_SIGNED_${GLTYPE}=0
17437
gl_cv_type_ptrdiff_t_signed=yes
17438
gl_cv_type_size_t_signed=no
17439
if test $APPLE_UNIVERSAL_BUILD = 0; then
17442
for gltype in ptrdiff_t size_t ; do
17443
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17444
$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17445
if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\"" = set; then :
17446
$as_echo_n "(cached) " >&6
17448
eval gl_cv_type_${gltype}_suffix=no
17449
eval result=\$gl_cv_type_${gltype}_signed
17450
if test "$result" = yes; then
17455
for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17457
'') gltype1='int';;
17458
l) gltype1='long int';;
17459
ll) gltype1='long long int';;
17460
i64) gltype1='__int64';;
17461
u) gltype1='unsigned int';;
17462
ul) gltype1='unsigned long int';;
17463
ull) gltype1='unsigned long long int';;
17464
ui64)gltype1='unsigned __int64';;
17466
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17467
/* end confdefs.h. */
17469
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17470
included before <wchar.h>. */
17471
#include <stddef.h>
17472
#include <signal.h>
17474
# include <stdio.h>
17476
# include <wchar.h>
17479
extern $gltype foo;
17480
extern $gltype1 foo;
17489
if ac_fn_c_try_compile "$LINENO"; then :
17490
eval gl_cv_type_${gltype}_suffix=\$glsuf
17492
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17493
eval result=\$gl_cv_type_${gltype}_suffix
17494
test "$result" != no && break
17497
eval ac_res=\$gl_cv_type_${gltype}_suffix
17498
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17499
$as_echo "$ac_res" >&6; }
17500
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17501
eval result=\$gl_cv_type_${gltype}_suffix
17502
test "$result" = no && result=
17503
eval ${GLTYPE}_SUFFIX=\$result
17504
cat >>confdefs.h <<_ACEOF
17505
#define ${GLTYPE}_SUFFIX $result
17514
for gltype in sig_atomic_t wchar_t wint_t ; do
17515
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17516
$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17517
if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\"" = set; then :
17518
$as_echo_n "(cached) " >&6
17520
eval gl_cv_type_${gltype}_suffix=no
17521
eval result=\$gl_cv_type_${gltype}_signed
17522
if test "$result" = yes; then
17527
for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17529
'') gltype1='int';;
17530
l) gltype1='long int';;
17531
ll) gltype1='long long int';;
17532
i64) gltype1='__int64';;
17533
u) gltype1='unsigned int';;
17534
ul) gltype1='unsigned long int';;
17535
ull) gltype1='unsigned long long int';;
17536
ui64)gltype1='unsigned __int64';;
17538
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17539
/* end confdefs.h. */
17541
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17542
included before <wchar.h>. */
17543
#include <stddef.h>
17544
#include <signal.h>
17546
# include <stdio.h>
17548
# include <wchar.h>
17551
extern $gltype foo;
17552
extern $gltype1 foo;
17561
if ac_fn_c_try_compile "$LINENO"; then :
17562
eval gl_cv_type_${gltype}_suffix=\$glsuf
17564
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17565
eval result=\$gl_cv_type_${gltype}_suffix
17566
test "$result" != no && break
17569
eval ac_res=\$gl_cv_type_${gltype}_suffix
17570
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17571
$as_echo "$ac_res" >&6; }
17572
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17573
eval result=\$gl_cv_type_${gltype}_suffix
17574
test "$result" = no && result=
17575
eval ${GLTYPE}_SUFFIX=\$result
17576
cat >>confdefs.h <<_ACEOF
17577
#define ${GLTYPE}_SUFFIX $result
17588
# Code from module stdio:
17599
if test $gl_cv_have_include_next = yes; then
17600
gl_cv_next_stdio_h='<'stdio.h'>'
17602
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
17603
$as_echo_n "checking absolute name of <stdio.h>... " >&6; }
17604
if test "${gl_cv_next_stdio_h+set}" = set; then :
17605
$as_echo_n "(cached) " >&6
17608
if test $ac_cv_header_stdio_h = yes; then
17609
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17610
/* end confdefs.h. */
17615
aix*) gl_absname_cpp="$ac_cpp -C" ;;
17616
*) gl_absname_cpp="$ac_cpp" ;;
17618
gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17619
sed -n '\#/stdio.h#{
17620
s#.*"\(.*/stdio.h\)".*#\1#
17626
gl_cv_next_stdio_h='<'stdio.h'>'
17630
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
17631
$as_echo "$gl_cv_next_stdio_h" >&6; }
17633
NEXT_STDIO_H=$gl_cv_next_stdio_h
17635
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17636
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17637
gl_next_as_first_directive='<'stdio.h'>'
17639
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17640
gl_next_as_first_directive=$gl_cv_next_stdio_h
17642
NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
17659
for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat snprintf tmpfile vdprintf vsnprintf; do
17660
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17661
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17662
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17663
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
17664
$as_echo_n "(cached) " >&6
17666
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17667
/* end confdefs.h. */
17679
if ac_fn_c_try_compile "$LINENO"; then :
17680
eval "$as_gl_Symbol=yes"
17682
eval "$as_gl_Symbol=no"
17684
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17686
eval ac_res=\$$as_gl_Symbol
17687
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17688
$as_echo "$ac_res" >&6; }
17689
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
17690
cat >>confdefs.h <<_ACEOF
17691
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17694
eval ac_cv_have_decl_$gl_func=yes
17699
# Code from module stdlib:
17708
if test $gl_cv_have_include_next = yes; then
17709
gl_cv_next_stdlib_h='<'stdlib.h'>'
17711
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
17712
$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
17713
if test "${gl_cv_next_stdlib_h+set}" = set; then :
17714
$as_echo_n "(cached) " >&6
17717
if test $ac_cv_header_stdlib_h = yes; then
17718
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17719
/* end confdefs.h. */
17720
#include <stdlib.h>
17724
aix*) gl_absname_cpp="$ac_cpp -C" ;;
17725
*) gl_absname_cpp="$ac_cpp" ;;
17727
gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17728
sed -n '\#/stdlib.h#{
17729
s#.*"\(.*/stdlib.h\)".*#\1#
17735
gl_cv_next_stdlib_h='<'stdlib.h'>'
17739
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
17740
$as_echo "$gl_cv_next_stdlib_h" >&6; }
17742
NEXT_STDLIB_H=$gl_cv_next_stdlib_h
17744
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17745
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17746
gl_next_as_first_directive='<'stdlib.h'>'
17748
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17749
gl_next_as_first_directive=$gl_cv_next_stdlib_h
17751
NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
17755
for ac_header in random.h
17757
ac_fn_c_check_header_compile "$LINENO" "random.h" "ac_cv_header_random_h" "$ac_includes_default
17759
if test "x$ac_cv_header_random_h" = x""yes; then :
17760
cat >>confdefs.h <<_ACEOF
17761
#define HAVE_RANDOM_H 1
17768
if test $ac_cv_header_random_h = yes; then
17774
ac_fn_c_check_type "$LINENO" "struct random_data" "ac_cv_type_struct_random_data" "#include <stdlib.h>
17776
# include <random.h>
17780
if test "x$ac_cv_type_struct_random_data" = x""yes; then :
17782
cat >>confdefs.h <<_ACEOF
17783
#define HAVE_STRUCT_RANDOM_DATA 1
17788
HAVE_STRUCT_RANDOM_DATA=0
17793
for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt mkdtemp mkostemp mkostemps mkstemp mkstemps ptsname random_r initstat_r srandom_r setstate_r realpath rpmatch setenv strtod strtoll strtoull unlockpt unsetenv; do
17794
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17795
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17796
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17797
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
17798
$as_echo_n "(cached) " >&6
17800
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17801
/* end confdefs.h. */
17802
#include <stdlib.h>
17803
#if HAVE_SYS_LOADAVG_H
17804
# include <sys/loadavg.h>
17807
# include <random.h>
17819
if ac_fn_c_try_compile "$LINENO"; then :
17820
eval "$as_gl_Symbol=yes"
17822
eval "$as_gl_Symbol=no"
17824
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17826
eval ac_res=\$$as_gl_Symbol
17827
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17828
$as_echo "$ac_res" >&6; }
17829
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
17830
cat >>confdefs.h <<_ACEOF
17831
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17834
eval ac_cv_have_decl_$gl_func=yes
17839
# Code from module strcase:
17851
for ac_func in strcasecmp
17853
ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
17854
if test "x$ac_cv_func_strcasecmp" = x""yes; then :
17855
cat >>confdefs.h <<_ACEOF
17856
#define HAVE_STRCASECMP 1
17861
gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
17867
if test $ac_cv_func_strcasecmp = no; then
17884
for ac_func in strncasecmp
17886
ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
17887
if test "x$ac_cv_func_strncasecmp" = x""yes; then :
17888
cat >>confdefs.h <<_ACEOF
17889
#define HAVE_STRNCASECMP 1
17894
gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
17900
if test $ac_cv_func_strncasecmp = no; then
17905
ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
17906
if test "x$ac_cv_have_decl_strncasecmp" = x""yes; then :
17912
cat >>confdefs.h <<_ACEOF
17913
#define HAVE_DECL_STRNCASECMP $ac_have_decl
17916
if test $ac_cv_have_decl_strncasecmp = no; then
17917
HAVE_DECL_STRNCASECMP=0
17921
# Code from module strchrnul:
17934
for ac_func in strchrnul
17936
ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
17937
if test "x$ac_cv_func_strchrnul" = x""yes; then :
17938
cat >>confdefs.h <<_ACEOF
17939
#define HAVE_STRCHRNUL 1
17944
gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
17950
if test $ac_cv_func_strchrnul = no; then
17962
$as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
17966
# Code from module streq:
17967
# Code from module strerror:
17970
if test $REPLACE_STRERROR = 1; then
17979
gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
17982
cat >>confdefs.h <<_ACEOF
17983
#define REPLACE_STRERROR $REPLACE_STRERROR
17995
$as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
17999
# Code from module string:
18003
# Code from module strings:
18007
# Code from module strndup:
18014
if test $ac_cv_have_decl_strndup = no; then
18015
HAVE_DECL_STRNDUP=0
18018
if test $ac_cv_func_strndup = yes; then
18019
# AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
18020
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
18021
$as_echo_n "checking for working strndup... " >&6; }
18022
if test "${gl_cv_func_strndup_works+set}" = set; then :
18023
$as_echo_n "(cached) " >&6
18025
if test "$cross_compiling" = yes; then :
18028
aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
18029
*) gl_cv_func_strndup_works="guessing yes";;
18033
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18034
/* end confdefs.h. */
18036
#include <string.h>
18037
#include <stdlib.h>
18042
#ifndef HAVE_DECL_STRNDUP
18043
extern char *strndup (const char *, size_t);
18046
s = strndup ("some longer string", 15);
18048
s = strndup ("shorter string", 13);
18049
return s[13] != '\0';
18054
if ac_fn_c_try_run "$LINENO"; then :
18055
gl_cv_func_strndup_works=yes
18057
gl_cv_func_strndup_works=no
18059
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18060
conftest.$ac_objext conftest.beam conftest.$ac_ext
18064
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
18065
$as_echo "$gl_cv_func_strndup_works" >&6; }
18066
case $gl_cv_func_strndup_works in
18077
gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
18090
gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
18101
$as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
18105
# Code from module strnlen:
18112
if test $ac_cv_have_decl_strnlen = no; then
18113
HAVE_DECL_STRNLEN=0
18115
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
18116
$as_echo_n "checking for working strnlen... " >&6; }
18117
if test "${ac_cv_func_strnlen_working+set}" = set; then :
18118
$as_echo_n "(cached) " >&6
18120
if test "$cross_compiling" = yes; then :
18121
ac_cv_func_strnlen_working=no
18123
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18124
/* end confdefs.h. */
18125
$ac_includes_default
18131
#define S_LEN (sizeof S - 1)
18133
/* At least one implementation is buggy: that of AIX 4.3 would
18134
give strnlen (S, 1) == 3. */
18137
for (i = 0; i < S_LEN + 1; ++i)
18139
int expected = i <= S_LEN ? i : S_LEN;
18140
if (strnlen (S, i) != expected)
18149
if ac_fn_c_try_run "$LINENO"; then :
18150
ac_cv_func_strnlen_working=yes
18152
ac_cv_func_strnlen_working=no
18154
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18155
conftest.$ac_objext conftest.beam conftest.$ac_ext
18159
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
18160
$as_echo "$ac_cv_func_strnlen_working" >&6; }
18161
test $ac_cv_func_strnlen_working = no &&
18169
gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
18172
if test $ac_cv_func_strnlen_working = no; then
18176
if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
18185
gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
18197
$as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
18201
# Code from module strnlen1:
18202
# Code from module sys_wait:
18212
if test $gl_cv_have_include_next = yes; then
18213
gl_cv_next_sys_wait_h='<'sys/wait.h'>'
18215
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
18216
$as_echo_n "checking absolute name of <sys/wait.h>... " >&6; }
18217
if test "${gl_cv_next_sys_wait_h+set}" = set; then :
18218
$as_echo_n "(cached) " >&6
18221
if test $ac_cv_header_sys_wait_h = yes; then
18222
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18223
/* end confdefs.h. */
18224
#include <sys/wait.h>
18228
aix*) gl_absname_cpp="$ac_cpp -C" ;;
18229
*) gl_absname_cpp="$ac_cpp" ;;
18231
gl_cv_next_sys_wait_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18232
sed -n '\#/sys/wait.h#{
18233
s#.*"\(.*/sys/wait.h\)".*#\1#
18239
gl_cv_next_sys_wait_h='<'sys/wait.h'>'
18243
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
18244
$as_echo "$gl_cv_next_sys_wait_h" >&6; }
18246
NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h
18248
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18249
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18250
gl_next_as_first_directive='<'sys/wait.h'>'
18252
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18253
gl_next_as_first_directive=$gl_cv_next_sys_wait_h
18255
NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive
18261
# Code from module sysexits:
18264
if test $ac_cv_header_sysexits_h = yes; then
18272
if test $gl_cv_have_include_next = yes; then
18273
gl_cv_next_sysexits_h='<'sysexits.h'>'
18275
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sysexits.h>" >&5
18276
$as_echo_n "checking absolute name of <sysexits.h>... " >&6; }
18277
if test "${gl_cv_next_sysexits_h+set}" = set; then :
18278
$as_echo_n "(cached) " >&6
18281
if test $ac_cv_header_sysexits_h = yes; then
18282
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18283
/* end confdefs.h. */
18284
#include <sysexits.h>
18288
aix*) gl_absname_cpp="$ac_cpp -C" ;;
18289
*) gl_absname_cpp="$ac_cpp" ;;
18291
gl_cv_next_sysexits_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18292
sed -n '\#/sysexits.h#{
18293
s#.*"\(.*/sysexits.h\)".*#\1#
18299
gl_cv_next_sysexits_h='<'sysexits.h'>'
18303
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sysexits_h" >&5
18304
$as_echo "$gl_cv_next_sysexits_h" >&6; }
18306
NEXT_SYSEXITS_H=$gl_cv_next_sysexits_h
18308
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18309
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18310
gl_next_as_first_directive='<'sysexits.h'>'
18312
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18313
gl_next_as_first_directive=$gl_cv_next_sysexits_h
18315
NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H=$gl_next_as_first_directive
18319
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18320
/* end confdefs.h. */
18321
#include <sysexits.h>
18333
case EX_UNAVAILABLE:
18350
if ac_fn_c_try_compile "$LINENO"; then :
18353
SYSEXITS_H=sysexits.h
18355
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18358
SYSEXITS_H=sysexits.h
18363
# Code from module unistd:
18374
if test $gl_cv_have_include_next = yes; then
18375
gl_cv_next_unistd_h='<'unistd.h'>'
18377
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
18378
$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
18379
if test "${gl_cv_next_unistd_h+set}" = set; then :
18380
$as_echo_n "(cached) " >&6
18383
if test $ac_cv_header_unistd_h = yes; then
18384
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18385
/* end confdefs.h. */
18386
#include <unistd.h>
18390
aix*) gl_absname_cpp="$ac_cpp -C" ;;
18391
*) gl_absname_cpp="$ac_cpp" ;;
18393
gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18394
sed -n '\#/unistd.h#{
18395
s#.*"\(.*/unistd.h\)".*#\1#
18401
gl_cv_next_unistd_h='<'unistd.h'>'
18405
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
18406
$as_echo "$gl_cv_next_unistd_h" >&6; }
18408
NEXT_UNISTD_H=$gl_cv_next_unistd_h
18410
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18411
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18412
gl_next_as_first_directive='<'unistd.h'>'
18414
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18415
gl_next_as_first_directive=$gl_cv_next_unistd_h
18417
NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
18423
if test $ac_cv_header_unistd_h = yes; then
18431
for gl_func in chown dup2 dup3 environ euidaccess faccessat fchdir fchownat fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell lchown link linkat lseek pipe2 pread pwrite readlink readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do
18432
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18433
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18434
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18435
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
18436
$as_echo_n "(cached) " >&6
18438
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18439
/* end confdefs.h. */
18440
#include <unistd.h>
18441
/* Some systems declare various items in the wrong headers. */
18443
# include <fcntl.h>
18444
# include <stdio.h>
18445
# include <stdlib.h>
18446
# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
18460
if ac_fn_c_try_compile "$LINENO"; then :
18461
eval "$as_gl_Symbol=yes"
18463
eval "$as_gl_Symbol=no"
18465
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18467
eval ac_res=\$$as_gl_Symbol
18468
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18469
$as_echo "$ac_res" >&6; }
18470
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18471
cat >>confdefs.h <<_ACEOF
18472
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18475
eval ac_cv_have_decl_$gl_func=yes
18480
# Code from module vasnprintf:
18483
if test $ac_cv_func_vasnprintf = no; then
18494
gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
18504
gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
18514
gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
18524
gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
18526
if test $ac_cv_func_vasnprintf = yes; then
18528
$as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
18541
ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
18542
if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
18546
$as_echo "#define ptrdiff_t long" >>confdefs.h
18559
# Code from module verify:
18560
# Code from module vsnprintf:
18563
gl_cv_func_vsnprintf_usable=no
18564
for ac_func in vsnprintf
18566
ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
18567
if test "x$ac_cv_func_vsnprintf" = x""yes; then :
18568
cat >>confdefs.h <<_ACEOF
18569
#define HAVE_VSNPRINTF 1
18575
if test $ac_cv_func_vsnprintf = yes; then
18578
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
18579
$as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
18580
if test "${gl_cv_func_snprintf_size1+set}" = set; then :
18581
$as_echo_n "(cached) " >&6
18584
if test "$cross_compiling" = yes; then :
18585
gl_cv_func_snprintf_size1="guessing yes"
18587
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18588
/* end confdefs.h. */
18593
static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
18594
snprintf (buf, 1, "%d", 12345);
18595
return buf[1] != 'E';
18598
if ac_fn_c_try_run "$LINENO"; then :
18599
gl_cv_func_snprintf_size1=yes
18601
gl_cv_func_snprintf_size1=no
18603
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18604
conftest.$ac_objext conftest.beam conftest.$ac_ext
18609
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
18610
$as_echo "$gl_cv_func_snprintf_size1" >&6; }
18612
case "$gl_cv_func_snprintf_size1" in
18614
gl_cv_func_vsnprintf_usable=yes
18618
if test $gl_cv_func_vsnprintf_usable = no; then
18629
gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
18631
if test $ac_cv_func_vsnprintf = yes; then
18632
REPLACE_VSNPRINTF=1
18638
if test $ac_cv_have_decl_vsnprintf = no; then
18639
HAVE_DECL_VSNPRINTF=0
18649
$as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
18653
# Code from module warn-on-use:
18654
# Code from module wchar:
18665
if test $gl_cv_have_include_next = yes; then
18666
gl_cv_next_wchar_h='<'wchar.h'>'
18668
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
18669
$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
18670
if test "${gl_cv_next_wchar_h+set}" = set; then :
18671
$as_echo_n "(cached) " >&6
18674
if test $ac_cv_header_wchar_h = yes; then
18675
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18676
/* end confdefs.h. */
18681
aix*) gl_absname_cpp="$ac_cpp -C" ;;
18682
*) gl_absname_cpp="$ac_cpp" ;;
18684
gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18685
sed -n '\#/wchar.h#{
18686
s#.*"\(.*/wchar.h\)".*#\1#
18692
gl_cv_next_wchar_h='<'wchar.h'>'
18696
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
18697
$as_echo "$gl_cv_next_wchar_h" >&6; }
18699
NEXT_WCHAR_H=$gl_cv_next_wchar_h
18701
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18702
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18703
gl_next_as_first_directive='<'wchar.h'>'
18705
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18706
gl_next_as_first_directive=$gl_cv_next_wchar_h
18708
NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
18712
if test $ac_cv_header_wchar_h = yes; then
18720
if test $gt_cv_c_wint_t = yes; then
18728
for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth; do
18729
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18730
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18731
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18732
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
18733
$as_echo_n "(cached) " >&6
18735
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18736
/* end confdefs.h. */
18738
/* Some systems require additional headers. */
18740
# include <stddef.h>
18741
# include <stdio.h>
18755
if ac_fn_c_try_compile "$LINENO"; then :
18756
eval "$as_gl_Symbol=yes"
18758
eval "$as_gl_Symbol=no"
18760
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18762
eval ac_res=\$$as_gl_Symbol
18763
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18764
$as_echo "$ac_res" >&6; }
18765
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18766
cat >>confdefs.h <<_ACEOF
18767
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18770
eval ac_cv_have_decl_$gl_func=yes
18775
# Code from module wcrtomb:
18786
if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
18790
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
18791
$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
18792
if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
18793
$as_echo_n "(cached) " >&6
18797
# Guess no on AIX and OSF/1.
18798
aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
18799
# Guess yes otherwise.
18800
*) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
18802
if test $LOCALE_JA != none; then
18803
if test "$cross_compiling" = yes; then :
18806
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18807
/* end confdefs.h. */
18809
#include <locale.h>
18810
#include <string.h>
18814
if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
18816
const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
18820
memset (&state, '\0', sizeof (mbstate_t));
18821
if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
18822
if (mbsinit (&state))
18828
if ac_fn_c_try_run "$LINENO"; then :
18829
gl_cv_func_mbrtowc_incomplete_state=yes
18831
gl_cv_func_mbrtowc_incomplete_state=no
18833
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18834
conftest.$ac_objext conftest.beam conftest.$ac_ext
18840
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
18841
$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
18846
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
18847
$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
18848
if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
18849
$as_echo_n "(cached) " >&6
18853
# Guess no on Solaris 8.
18854
solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
18855
# Guess yes otherwise.
18856
*) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
18858
if test $LOCALE_ZH_CN != none; then
18859
if test "$cross_compiling" = yes; then :
18862
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18863
/* end confdefs.h. */
18865
#include <locale.h>
18866
#include <stdlib.h>
18867
#include <string.h>
18871
/* This fails on Solaris 8:
18872
mbrtowc returns 2, and sets wc to 0x00F0.
18873
mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
18874
if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
18876
char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
18880
memset (&state, '\0', sizeof (mbstate_t));
18881
if (mbrtowc (&wc, input + 3, 6, &state) != 4
18882
&& mbtowc (&wc, input + 3, 6) == 4)
18888
if ac_fn_c_try_run "$LINENO"; then :
18889
gl_cv_func_mbrtowc_sanitycheck=yes
18891
gl_cv_func_mbrtowc_sanitycheck=no
18893
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18894
conftest.$ac_objext conftest.beam conftest.$ac_ext
18900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
18901
$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
18903
REPLACE_MBSTATE_T=0
18904
case "$gl_cv_func_mbrtowc_incomplete_state" in
18906
*) REPLACE_MBSTATE_T=1 ;;
18908
case "$gl_cv_func_mbrtowc_sanitycheck" in
18910
*) REPLACE_MBSTATE_T=1 ;;
18913
REPLACE_MBSTATE_T=1
18915
if test $REPLACE_MBSTATE_T = 1; then
18923
if test $ac_cv_func_wcrtomb = no; then
18926
if test $REPLACE_MBSTATE_T = 1; then
18934
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
18935
$as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
18936
if test "${gl_cv_func_wcrtomb_retval+set}" = set; then :
18937
$as_echo_n "(cached) " >&6
18941
# Guess no on AIX 4, OSF/1 and Solaris.
18942
aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
18943
# Guess yes otherwise.
18944
*) gl_cv_func_wcrtomb_retval="guessing yes" ;;
18946
if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
18947
if test "$cross_compiling" = yes; then :
18950
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18951
/* end confdefs.h. */
18953
#include <locale.h>
18955
#include <string.h>
18959
if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
18961
if (wcrtomb (NULL, 0, NULL) != 1)
18964
if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
18966
if (wcrtomb (NULL, 0, NULL) != 1)
18969
if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
18971
if (wcrtomb (NULL, 0, NULL) != 1)
18974
if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
18976
if (wcrtomb (NULL, 0, NULL) != 1)
18982
if ac_fn_c_try_run "$LINENO"; then :
18983
gl_cv_func_wcrtomb_retval=yes
18985
gl_cv_func_wcrtomb_retval=no
18987
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18988
conftest.$ac_objext conftest.beam conftest.$ac_ext
18994
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5
18995
$as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
18996
case "$gl_cv_func_wcrtomb_retval" in
18998
*) REPLACE_WCRTOMB=1 ;;
19002
if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
19014
gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext"
19028
$as_echo "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h
19032
# Code from module wctype:
19037
if test $ac_cv_func_iswcntrl = yes; then
19045
if test $ac_cv_func_iswblank = yes; then
19050
if test $ac_cv_have_decl_iswblank = yes; then
19063
if test $gt_cv_c_wint_t = yes; then
19070
if test $ac_cv_header_wctype_h = yes; then
19071
if test $ac_cv_func_iswcntrl = yes; then
19072
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
19073
$as_echo_n "checking whether iswcntrl works... " >&6; }
19074
if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
19075
$as_echo_n "(cached) " >&6
19078
if test "$cross_compiling" = yes; then :
19079
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19080
/* end confdefs.h. */
19081
#include <stdlib.h>
19082
#if __GNU_LIBRARY__ == 1
19083
Linux libc5 i18n is broken.
19093
if ac_fn_c_try_compile "$LINENO"; then :
19094
gl_cv_func_iswcntrl_works=yes
19096
gl_cv_func_iswcntrl_works=no
19098
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19101
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19102
/* end confdefs.h. */
19104
#include <stddef.h>
19108
#include <wctype.h>
19109
int main () { return iswprint ('x') == 0; }
19111
if ac_fn_c_try_run "$LINENO"; then :
19112
gl_cv_func_iswcntrl_works=yes
19114
gl_cv_func_iswcntrl_works=no
19116
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19117
conftest.$ac_objext conftest.beam conftest.$ac_ext
19122
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
19123
$as_echo "$gl_cv_func_iswcntrl_works" >&6; }
19131
if test $gl_cv_have_include_next = yes; then
19132
gl_cv_next_wctype_h='<'wctype.h'>'
19134
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
19135
$as_echo_n "checking absolute name of <wctype.h>... " >&6; }
19136
if test "${gl_cv_next_wctype_h+set}" = set; then :
19137
$as_echo_n "(cached) " >&6
19140
if test $ac_cv_header_wctype_h = yes; then
19141
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19142
/* end confdefs.h. */
19143
#include <wctype.h>
19147
aix*) gl_absname_cpp="$ac_cpp -C" ;;
19148
*) gl_absname_cpp="$ac_cpp" ;;
19150
gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19151
sed -n '\#/wctype.h#{
19152
s#.*"\(.*/wctype.h\)".*#\1#
19158
gl_cv_next_wctype_h='<'wctype.h'>'
19162
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
19163
$as_echo "$gl_cv_next_wctype_h" >&6; }
19165
NEXT_WCTYPE_H=$gl_cv_next_wctype_h
19167
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19168
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19169
gl_next_as_first_directive='<'wctype.h'>'
19171
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19172
gl_next_as_first_directive=$gl_cv_next_wctype_h
19174
NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
19184
if test "$gl_cv_func_iswcntrl_works" = no; then
19191
# Code from module xsize:
19195
for ac_header in stdint.h
19197
ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19198
if test "x$ac_cv_header_stdint_h" = x""yes; then :
19199
cat >>confdefs.h <<_ACEOF
19200
#define HAVE_STDINT_H 1
19208
# End of code from modules
19229
gl_source_base='tests'
19230
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
19232
gl_module_indicator_condition=$gltests_WITNESS
19242
LIBGNU_LIBDEPS="$gl_libdeps"
19244
LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
19249
# Check for target programs.
19252
# Find tools for the target.
19253
if test "x$target_alias" != x && test "x$host_alias" != "x$target_alias"; then
19254
tmp_ac_tool_prefix="$ac_tool_prefix"
19255
ac_tool_prefix=$target_alias-
19257
if test -n "$ac_tool_prefix"; then
19258
for ac_prog in gcc egcs cc
19260
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19261
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19262
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19263
$as_echo_n "checking for $ac_word... " >&6; }
19264
if test "${ac_cv_prog_TARGET_CC+set}" = set; then :
19265
$as_echo_n "(cached) " >&6
19267
if test -n "$TARGET_CC"; then
19268
ac_cv_prog_TARGET_CC="$TARGET_CC" # Let the user override the test.
19270
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19271
for as_dir in $PATH
19274
test -z "$as_dir" && as_dir=.
19275
for ac_exec_ext in '' $ac_executable_extensions; do
19276
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19277
ac_cv_prog_TARGET_CC="$ac_tool_prefix$ac_prog"
19278
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19287
TARGET_CC=$ac_cv_prog_TARGET_CC
19288
if test -n "$TARGET_CC"; then
19289
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_CC" >&5
19290
$as_echo "$TARGET_CC" >&6; }
19292
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19293
$as_echo "no" >&6; }
19297
test -n "$TARGET_CC" && break
19300
if test -z "$TARGET_CC"; then
19301
ac_ct_TARGET_CC=$TARGET_CC
19302
for ac_prog in gcc egcs cc
19304
# Extract the first word of "$ac_prog", so it can be a program name with args.
19305
set dummy $ac_prog; ac_word=$2
19306
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19307
$as_echo_n "checking for $ac_word... " >&6; }
19308
if test "${ac_cv_prog_ac_ct_TARGET_CC+set}" = set; then :
19309
$as_echo_n "(cached) " >&6
19311
if test -n "$ac_ct_TARGET_CC"; then
19312
ac_cv_prog_ac_ct_TARGET_CC="$ac_ct_TARGET_CC" # Let the user override the test.
19314
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19315
for as_dir in $PATH
19318
test -z "$as_dir" && as_dir=.
19319
for ac_exec_ext in '' $ac_executable_extensions; do
19320
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19321
ac_cv_prog_ac_ct_TARGET_CC="$ac_prog"
19322
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19331
ac_ct_TARGET_CC=$ac_cv_prog_ac_ct_TARGET_CC
19332
if test -n "$ac_ct_TARGET_CC"; then
19333
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_CC" >&5
19334
$as_echo "$ac_ct_TARGET_CC" >&6; }
19336
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19337
$as_echo "no" >&6; }
19341
test -n "$ac_ct_TARGET_CC" && break
19344
if test "x$ac_ct_TARGET_CC" = x; then
19345
TARGET_CC="as_fn_error $? "none of gcc, egcs and cc is found. set TARGET_CC manually." "$LINENO" 5 "
19347
case $cross_compiling:$ac_tool_warned in
19349
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19350
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19351
ac_tool_warned=yes ;;
19353
TARGET_CC=$ac_ct_TARGET_CC
19357
if test -n "$ac_tool_prefix"; then
19358
# Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
19359
set dummy ${ac_tool_prefix}objcopy; ac_word=$2
19360
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19361
$as_echo_n "checking for $ac_word... " >&6; }
19362
if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
19363
$as_echo_n "(cached) " >&6
19365
if test -n "$OBJCOPY"; then
19366
ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
19368
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19369
for as_dir in $PATH
19372
test -z "$as_dir" && as_dir=.
19373
for ac_exec_ext in '' $ac_executable_extensions; do
19374
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19375
ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
19376
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19385
OBJCOPY=$ac_cv_prog_OBJCOPY
19386
if test -n "$OBJCOPY"; then
19387
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
19388
$as_echo "$OBJCOPY" >&6; }
19390
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19391
$as_echo "no" >&6; }
19396
if test -z "$ac_cv_prog_OBJCOPY"; then
19397
ac_ct_OBJCOPY=$OBJCOPY
19398
# Extract the first word of "objcopy", so it can be a program name with args.
19399
set dummy objcopy; ac_word=$2
19400
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19401
$as_echo_n "checking for $ac_word... " >&6; }
19402
if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
19403
$as_echo_n "(cached) " >&6
19405
if test -n "$ac_ct_OBJCOPY"; then
19406
ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
19408
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19409
for as_dir in $PATH
19412
test -z "$as_dir" && as_dir=.
19413
for ac_exec_ext in '' $ac_executable_extensions; do
19414
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19415
ac_cv_prog_ac_ct_OBJCOPY="objcopy"
19416
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19425
ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
19426
if test -n "$ac_ct_OBJCOPY"; then
19427
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
19428
$as_echo "$ac_ct_OBJCOPY" >&6; }
19430
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19431
$as_echo "no" >&6; }
19434
if test "x$ac_ct_OBJCOPY" = x; then
19437
case $cross_compiling:$ac_tool_warned in
19439
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19440
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19441
ac_tool_warned=yes ;;
19443
OBJCOPY=$ac_ct_OBJCOPY
19446
OBJCOPY="$ac_cv_prog_OBJCOPY"
19449
if test -n "$ac_tool_prefix"; then
19450
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19451
set dummy ${ac_tool_prefix}strip; ac_word=$2
19452
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19453
$as_echo_n "checking for $ac_word... " >&6; }
19454
if test "${ac_cv_prog_STRIP+set}" = set; then :
19455
$as_echo_n "(cached) " >&6
19457
if test -n "$STRIP"; then
19458
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
19460
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19461
for as_dir in $PATH
19464
test -z "$as_dir" && as_dir=.
19465
for ac_exec_ext in '' $ac_executable_extensions; do
19466
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19467
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
19468
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19477
STRIP=$ac_cv_prog_STRIP
19478
if test -n "$STRIP"; then
19479
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
19480
$as_echo "$STRIP" >&6; }
19482
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19483
$as_echo "no" >&6; }
19488
if test -z "$ac_cv_prog_STRIP"; then
19490
# Extract the first word of "strip", so it can be a program name with args.
19491
set dummy strip; ac_word=$2
19492
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19493
$as_echo_n "checking for $ac_word... " >&6; }
19494
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
19495
$as_echo_n "(cached) " >&6
19497
if test -n "$ac_ct_STRIP"; then
19498
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
19500
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19501
for as_dir in $PATH
19504
test -z "$as_dir" && as_dir=.
19505
for ac_exec_ext in '' $ac_executable_extensions; do
19506
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19507
ac_cv_prog_ac_ct_STRIP="strip"
19508
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19517
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
19518
if test -n "$ac_ct_STRIP"; then
19519
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
19520
$as_echo "$ac_ct_STRIP" >&6; }
19522
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19523
$as_echo "no" >&6; }
19526
if test "x$ac_ct_STRIP" = x; then
19529
case $cross_compiling:$ac_tool_warned in
19531
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19532
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19533
ac_tool_warned=yes ;;
19538
STRIP="$ac_cv_prog_STRIP"
19541
if test -n "$ac_tool_prefix"; then
19542
# Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
19543
set dummy ${ac_tool_prefix}nm; ac_word=$2
19544
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19545
$as_echo_n "checking for $ac_word... " >&6; }
19546
if test "${ac_cv_prog_NM+set}" = set; then :
19547
$as_echo_n "(cached) " >&6
19549
if test -n "$NM"; then
19550
ac_cv_prog_NM="$NM" # Let the user override the test.
19552
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19553
for as_dir in $PATH
19556
test -z "$as_dir" && as_dir=.
19557
for ac_exec_ext in '' $ac_executable_extensions; do
19558
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19559
ac_cv_prog_NM="${ac_tool_prefix}nm"
19560
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19570
if test -n "$NM"; then
19571
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
19572
$as_echo "$NM" >&6; }
19574
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19575
$as_echo "no" >&6; }
19580
if test -z "$ac_cv_prog_NM"; then
19582
# Extract the first word of "nm", so it can be a program name with args.
19583
set dummy nm; ac_word=$2
19584
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19585
$as_echo_n "checking for $ac_word... " >&6; }
19586
if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
19587
$as_echo_n "(cached) " >&6
19589
if test -n "$ac_ct_NM"; then
19590
ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
19592
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19593
for as_dir in $PATH
19596
test -z "$as_dir" && as_dir=.
19597
for ac_exec_ext in '' $ac_executable_extensions; do
19598
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19599
ac_cv_prog_ac_ct_NM="nm"
19600
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19609
ac_ct_NM=$ac_cv_prog_ac_ct_NM
19610
if test -n "$ac_ct_NM"; then
19611
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
19612
$as_echo "$ac_ct_NM" >&6; }
19614
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19615
$as_echo "no" >&6; }
19618
if test "x$ac_ct_NM" = x; then
19621
case $cross_compiling:$ac_tool_warned in
19623
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19624
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19625
ac_tool_warned=yes ;;
19630
NM="$ac_cv_prog_NM"
19634
ac_tool_prefix="$tmp_ac_tool_prefix"
19636
if test "x$TARGET_CC" = x; then
19639
if test -n "$ac_tool_prefix"; then
19640
# Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
19641
set dummy ${ac_tool_prefix}objcopy; ac_word=$2
19642
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19643
$as_echo_n "checking for $ac_word... " >&6; }
19644
if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
19645
$as_echo_n "(cached) " >&6
19647
if test -n "$OBJCOPY"; then
19648
ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
19650
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19651
for as_dir in $PATH
19654
test -z "$as_dir" && as_dir=.
19655
for ac_exec_ext in '' $ac_executable_extensions; do
19656
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19657
ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
19658
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19667
OBJCOPY=$ac_cv_prog_OBJCOPY
19668
if test -n "$OBJCOPY"; then
19669
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
19670
$as_echo "$OBJCOPY" >&6; }
19672
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19673
$as_echo "no" >&6; }
19678
if test -z "$ac_cv_prog_OBJCOPY"; then
19679
ac_ct_OBJCOPY=$OBJCOPY
19680
# Extract the first word of "objcopy", so it can be a program name with args.
19681
set dummy objcopy; ac_word=$2
19682
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19683
$as_echo_n "checking for $ac_word... " >&6; }
19684
if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
19685
$as_echo_n "(cached) " >&6
19687
if test -n "$ac_ct_OBJCOPY"; then
19688
ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
19690
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19691
for as_dir in $PATH
19694
test -z "$as_dir" && as_dir=.
19695
for ac_exec_ext in '' $ac_executable_extensions; do
19696
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19697
ac_cv_prog_ac_ct_OBJCOPY="objcopy"
19698
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19707
ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
19708
if test -n "$ac_ct_OBJCOPY"; then
19709
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
19710
$as_echo "$ac_ct_OBJCOPY" >&6; }
19712
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19713
$as_echo "no" >&6; }
19716
if test "x$ac_ct_OBJCOPY" = x; then
19719
case $cross_compiling:$ac_tool_warned in
19721
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19722
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19723
ac_tool_warned=yes ;;
19725
OBJCOPY=$ac_ct_OBJCOPY
19728
OBJCOPY="$ac_cv_prog_OBJCOPY"
19731
if test -n "$ac_tool_prefix"; then
19732
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19733
set dummy ${ac_tool_prefix}strip; ac_word=$2
19734
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19735
$as_echo_n "checking for $ac_word... " >&6; }
19736
if test "${ac_cv_prog_STRIP+set}" = set; then :
19737
$as_echo_n "(cached) " >&6
19739
if test -n "$STRIP"; then
19740
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
19742
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19743
for as_dir in $PATH
19746
test -z "$as_dir" && as_dir=.
19747
for ac_exec_ext in '' $ac_executable_extensions; do
19748
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19749
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
19750
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19759
STRIP=$ac_cv_prog_STRIP
19760
if test -n "$STRIP"; then
19761
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
19762
$as_echo "$STRIP" >&6; }
19764
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19765
$as_echo "no" >&6; }
19770
if test -z "$ac_cv_prog_STRIP"; then
19772
# Extract the first word of "strip", so it can be a program name with args.
19773
set dummy strip; ac_word=$2
19774
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19775
$as_echo_n "checking for $ac_word... " >&6; }
19776
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
19777
$as_echo_n "(cached) " >&6
19779
if test -n "$ac_ct_STRIP"; then
19780
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
19782
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19783
for as_dir in $PATH
19786
test -z "$as_dir" && as_dir=.
19787
for ac_exec_ext in '' $ac_executable_extensions; do
19788
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19789
ac_cv_prog_ac_ct_STRIP="strip"
19790
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19799
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
19800
if test -n "$ac_ct_STRIP"; then
19801
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
19802
$as_echo "$ac_ct_STRIP" >&6; }
19804
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19805
$as_echo "no" >&6; }
19808
if test "x$ac_ct_STRIP" = x; then
19811
case $cross_compiling:$ac_tool_warned in
19813
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19814
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19815
ac_tool_warned=yes ;;
19820
STRIP="$ac_cv_prog_STRIP"
19823
if test -n "$ac_tool_prefix"; then
19824
# Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
19825
set dummy ${ac_tool_prefix}nm; ac_word=$2
19826
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19827
$as_echo_n "checking for $ac_word... " >&6; }
19828
if test "${ac_cv_prog_NM+set}" = set; then :
19829
$as_echo_n "(cached) " >&6
19831
if test -n "$NM"; then
19832
ac_cv_prog_NM="$NM" # Let the user override the test.
19834
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19835
for as_dir in $PATH
19838
test -z "$as_dir" && as_dir=.
19839
for ac_exec_ext in '' $ac_executable_extensions; do
19840
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19841
ac_cv_prog_NM="${ac_tool_prefix}nm"
19842
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19852
if test -n "$NM"; then
19853
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
19854
$as_echo "$NM" >&6; }
19856
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19857
$as_echo "no" >&6; }
19862
if test -z "$ac_cv_prog_NM"; then
19864
# Extract the first word of "nm", so it can be a program name with args.
19865
set dummy nm; ac_word=$2
19866
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19867
$as_echo_n "checking for $ac_word... " >&6; }
19868
if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
19869
$as_echo_n "(cached) " >&6
19871
if test -n "$ac_ct_NM"; then
19872
ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
19874
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19875
for as_dir in $PATH
19878
test -z "$as_dir" && as_dir=.
19879
for ac_exec_ext in '' $ac_executable_extensions; do
19880
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19881
ac_cv_prog_ac_ct_NM="nm"
19882
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19891
ac_ct_NM=$ac_cv_prog_ac_ct_NM
19892
if test -n "$ac_ct_NM"; then
19893
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
19894
$as_echo "$ac_ct_NM" >&6; }
19896
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19897
$as_echo "no" >&6; }
19900
if test "x$ac_ct_NM" = x; then
19903
case $cross_compiling:$ac_tool_warned in
19905
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19906
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19907
ac_tool_warned=yes ;;
19912
NM="$ac_cv_prog_NM"
19920
# Test the C compiler for the target environment.
19922
tmp_CFLAGS="$CFLAGS"
19923
tmp_LDFLAGS="$LDFLAGS"
19924
tmp_CPPFLAGS="$CPPFLAGS"
19927
CFLAGS="$TARGET_CFLAGS"
19928
CPPFLAGS="$TARGET_CPPFLAGS"
19929
LDFLAGS="$TARGET_LDFLAGS"
19933
TARGET_CFLAGS="$TARGET_CFLAGS -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g"
19934
TARGET_CCASFLAGS="$TARGET_CCASFLAGS -g"
19936
# Force no alignment to save space on i386.
19937
if test "x$target_cpu" = xi386; then
19938
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -falign-loops works" >&5
19939
$as_echo_n "checking whether -falign-loops works... " >&6; }
19940
if test "${grub_cv_cc_falign_loop+set}" = set; then :
19941
$as_echo_n "(cached) " >&6
19944
CFLAGS="$CFLAGS -falign-loops=1"
19945
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19946
/* end confdefs.h. */
19956
if ac_fn_c_try_compile "$LINENO"; then :
19957
grub_cv_cc_falign_loop=yes
19959
grub_cv_cc_falign_loop=no
19961
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19964
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_falign_loop" >&5
19965
$as_echo "$grub_cv_cc_falign_loop" >&6; }
19967
if test "x$grub_cv_cc_falign_loop" = xyes; then
19968
TARGET_CFLAGS="$TARGET_CFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
19970
TARGET_CFLAGS="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
19973
# Some toolchains enable these features by default, but they need
19974
# registers that aren't set up properly in GRUB.
19975
TARGET_CFLAGS="$TARGET_CFLAGS -mno-mmx -mno-sse -mno-sse2 -mno-3dnow"
19978
# By default, GCC 4.4 generates .eh_frame sections containing unwind
19979
# information in some cases where it previously did not. GRUB doesn't need
19980
# these and they just use up vital space. Restore the old compiler
19982
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fno-dwarf2-cfi-asm works" >&5
19983
$as_echo_n "checking whether -fno-dwarf2-cfi-asm works... " >&6; }
19984
if test "${grub_cv_cc_fno_dwarf2_cfi_asm+set}" = set; then :
19985
$as_echo_n "(cached) " >&6
19988
SAVE_CFLAGS="$CFLAGS"
19989
CFLAGS="$CFLAGS -fno-dwarf2-cfi-asm"
19990
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19991
/* end confdefs.h. */
20001
if ac_fn_c_try_compile "$LINENO"; then :
20002
grub_cv_cc_fno_dwarf2_cfi_asm=yes
20004
grub_cv_cc_fno_dwarf2_cfi_asm=no
20006
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20007
CFLAGS="$SAVE_CFLAGS"
20010
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_fno_dwarf2_cfi_asm" >&5
20011
$as_echo "$grub_cv_cc_fno_dwarf2_cfi_asm" >&6; }
20013
if test "x$grub_cv_cc_fno_dwarf2_cfi_asm" = xyes; then
20014
TARGET_CFLAGS="$TARGET_CFLAGS -fno-dwarf2-cfi-asm"
20017
if test "${target_cpu}-${platform}" = mips-yeeloong; then
20018
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -march=loongson2f works" >&5
20019
$as_echo_n "checking whether -march=loongson2f works... " >&6; }
20020
if test "${grub_cv_cc_march_loongson2f+set}" = set; then :
20021
$as_echo_n "(cached) " >&6
20024
SAVE_CFLAGS="$CFLAGS"
20025
CFLAGS="$CFLAGS -march=loongson2f"
20026
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20027
/* end confdefs.h. */
20037
if ac_fn_c_try_compile "$LINENO"; then :
20038
grub_cv_cc_march_loongson2f=yes
20040
grub_cv_cc_march_loongson2f=no
20042
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20043
CFLAGS="$SAVE_CFLAGS"
20046
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_march_loongson2f" >&5
20047
$as_echo "$grub_cv_cc_march_loongson2f" >&6; }
20049
if test "x$grub_cv_cc_march_loongson2f" = xyes; then
20050
TARGET_CFLAGS="$TARGET_CFLAGS -march=loongson2f"
20052
TARGET_CFLAGS="$TARGET_CFLAGS -march=mips3"
20057
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our target compiler is apple cc" >&5
20058
$as_echo_n "checking whether our target compiler is apple cc... " >&6; }
20059
if test "${grub_cv_apple_target_cc+set}" = set; then :
20060
$as_echo_n "(cached) " >&6
20062
if $CC -v 2>&1 | grep "Apple Inc." > /dev/null; then
20063
grub_cv_apple_target_cc=yes
20065
grub_cv_apple_target_cc=no
20071
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_apple_target_cc" >&5
20072
$as_echo "$grub_cv_apple_target_cc" >&6; }
20073
if test x$grub_cv_apple_target_cc = xyes ; then
20074
TARGET_CPPFLAGS="$TARGET_CPPFLAGS -DAPPLE_CC=1"
20075
TARGET_CFLAGS="$TARGET_CFLAGS -fnested-functions"
20077
CFLAGS="$CFLAGS -DAPPLE_CC=1 -fnested-functions"
20079
# Extract the first word of "objconv", so it can be a program name with args.
20080
set dummy objconv; ac_word=$2
20081
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20082
$as_echo_n "checking for $ac_word... " >&6; }
20083
if test "${ac_cv_prog_OBJCONV+set}" = set; then :
20084
$as_echo_n "(cached) " >&6
20086
if test -n "$OBJCONV"; then
20087
ac_cv_prog_OBJCONV="$OBJCONV" # Let the user override the test.
20089
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20090
for as_dir in $PATH
20093
test -z "$as_dir" && as_dir=.
20094
for ac_exec_ext in '' $ac_executable_extensions; do
20095
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20096
ac_cv_prog_OBJCONV="objconv"
20097
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20106
OBJCONV=$ac_cv_prog_OBJCONV
20107
if test -n "$OBJCONV"; then
20108
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCONV" >&5
20109
$as_echo "$OBJCONV" >&6; }
20111
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20112
$as_echo "no" >&6; }
20116
if test "x$OBJCONV" = x ; then
20117
# Extract the first word of "objconv", so it can be a program name with args.
20118
set dummy objconv; ac_word=$2
20119
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20120
$as_echo_n "checking for $ac_word... " >&6; }
20121
if test "${ac_cv_prog_OBJCONV+set}" = set; then :
20122
$as_echo_n "(cached) " >&6
20124
if test -n "$OBJCONV"; then
20125
ac_cv_prog_OBJCONV="$OBJCONV" # Let the user override the test.
20127
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20131
test -z "$as_dir" && as_dir=.
20132
for ac_exec_ext in '' $ac_executable_extensions; do
20133
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20134
ac_cv_prog_OBJCONV="./objconv"
20135
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20144
OBJCONV=$ac_cv_prog_OBJCONV
20145
if test -n "$OBJCONV"; then
20146
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCONV" >&5
20147
$as_echo "$OBJCONV" >&6; }
20149
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20150
$as_echo "no" >&6; }
20155
if test "x$OBJCONV" = x ; then
20156
as_fn_error $? "objconv not found which is required when building with apple compiler" "$LINENO" 5
20158
TARGET_IMG_LDSCRIPT=
20159
TARGET_IMG_CFLAGS="-static"
20160
TARGET_IMG_LDFLAGS='-nostdlib -static -Wl,-preload -Wl,-segalign,20'
20161
TARGET_IMG_LDFLAGS_AC='-nostdlib -static -Wl,-preload -Wl,-segalign,20'
20162
TARGET_IMG_BASE_LDOPT="-Wl,-image_base"
20165
# Use linker script if present, otherwise use builtin -N script.
20166
if test -f "${srcdir}/${grub_coredir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"; then
20167
TARGET_IMG_LDSCRIPT='$(top_srcdir)'"/${grub_coredir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"
20168
TARGET_IMG_LDFLAGS="-Wl,-T${TARGET_IMG_LDSCRIPT}"
20169
TARGET_IMG_LDFLAGS_AC="-Wl,-T${srcdir}/${grub_coredir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"
20170
TARGET_IMG_BASE_LDOPT="-Wl,-Ttext"
20172
TARGET_IMG_LDSCRIPT=
20173
TARGET_IMG_LDFLAGS='-Wl,-N'
20174
TARGET_IMG_LDFLAGS_AC='-Wl,-N'
20175
TARGET_IMG_BASE_LDOPT="-Wl,-Ttext"
20180
# For platforms where ELF is not the default link format.
20181
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for command to convert module to ELF format" >&5
20182
$as_echo_n "checking for command to convert module to ELF format... " >&6; }
20183
case "${host_os}" in
20184
cygwin) TARGET_OBJ2ELF='$(grub_utildir)/grub-pe2elf';
20185
# FIXME: put proper test here
20186
NEED_REGISTER_FRAME_INFO=1
20188
*) NEED_REGISTER_FRAME_INFO=0 ;;
20190
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_OBJ2ELF" >&5
20191
$as_echo "$TARGET_OBJ2ELF" >&6; }
20193
if test "x$target_m32" = x1; then
20194
# Force 32-bit mode.
20195
TARGET_CFLAGS="$TARGET_CFLAGS -m32"
20196
TARGET_CCASFLAGS="$TARGET_CCASFLAGS -m32"
20197
TARGET_LDFLAGS="$TARGET_LDFLAGS -m32"
20198
TARGET_MODULE_FORMAT="elf32"
20201
if test "x$target_m64" = x1; then
20202
# Force 64-bit mode.
20203
TARGET_CFLAGS="$TARGET_CFLAGS -m64"
20204
TARGET_CCASFLAGS="$TARGET_CCASFLAGS -m64"
20205
TARGET_LDFLAGS="$TARGET_LDFLAGS -m64"
20206
TARGET_MODULE_FORMAT="elf64"
20209
if test "$target_cpu"-"$platform" = x86_64-efi; then
20210
# Use large model to support 4G memory
20211
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mcmodel=large works" >&5
20212
$as_echo_n "checking whether option -mcmodel=large works... " >&6; }
20213
if test "${grub_cv_cc_mcmodel+set}" = set; then :
20214
$as_echo_n "(cached) " >&6
20217
SAVED_CFLAGS=$CFLAGS
20218
CFLAGS="$CFLAGS -m64 -mcmodel=large"
20219
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20220
/* end confdefs.h. */
20230
if ac_fn_c_try_compile "$LINENO"; then :
20231
grub_cv_cc_mcmodel=yes
20233
grub_cv_cc_mcmodel=no
20235
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20238
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_mcmodel" >&5
20239
$as_echo "$grub_cv_cc_mcmodel" >&6; }
20240
if test "x$grub_cv_cc_mcmodel" = xno; then
20241
as_fn_error $? "-mcmodel=large not supported. Upgrade your gcc." "$LINENO" 5
20243
TARGET_CFLAGS="$TARGET_CFLAGS -mcmodel=large"
20246
# EFI writes to stack below %rsp, we must not use the red zone
20247
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mno-red-zone works" >&5
20248
$as_echo_n "checking whether option -mno-red-zone works... " >&6; }
20249
if test "${grub_cv_cc_no_red_zone+set}" = set; then :
20250
$as_echo_n "(cached) " >&6
20253
CFLAGS="$CFLAGS -m64 -mno-red-zone"
20254
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20255
/* end confdefs.h. */
20265
if ac_fn_c_try_compile "$LINENO"; then :
20266
grub_cv_cc_no_red_zone=yes
20268
grub_cv_cc_no_red_zone=no
20270
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20273
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_no_red_zone" >&5
20274
$as_echo "$grub_cv_cc_no_red_zone" >&6; }
20275
if test "x$grub_cv_cc_no_red_zone" = xno; then
20276
as_fn_error $? "-mno-red-zone not supported, upgrade your gcc" "$LINENO" 5
20279
TARGET_CFLAGS="$TARGET_CFLAGS -mno-red-zone"
20283
# Compiler features.
20286
# Need __enable_execute_stack() for nested function trampolines?
20288
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' generates calls to \`__enable_execute_stack()'" >&5
20289
$as_echo_n "checking whether \`$CC' generates calls to \`__enable_execute_stack()'... " >&6; }
20290
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20291
/* end confdefs.h. */
20293
void f (int (*p) (void));
20296
int nestedfunc (void) { return i; }
20301
if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
20302
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20303
(eval $ac_try) 2>&5
20305
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20306
test $ac_status = 0; }; } && test -s conftest.s; then
20309
as_fn_error $? "${CC-cc} failed to produce assembly code" "$LINENO" 5
20311
if grep __enable_execute_stack conftest.s >/dev/null 2>&1; then
20312
NEED_ENABLE_EXECUTE_STACK=1
20313
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20314
$as_echo "yes" >&6; }
20316
NEED_ENABLE_EXECUTE_STACK=0
20317
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20318
$as_echo "no" >&6; }
20323
# Position independent executable.
20325
# Position independent executable.
20327
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' has \`-fPIE' as default" >&5
20328
$as_echo_n "checking whether \`$CC' has \`-fPIE' as default... " >&6; }
20329
# Is this a reliable test case?
20330
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20331
/* end confdefs.h. */
20338
#error NO __PIE__ DEFINED
20343
# `$CC -c -o ...' might not be portable. But, oh, well... Is calling
20344
# `ac_compile' like this correct, after all?
20345
if eval "$ac_compile -S -o conftest.s" 2> /dev/null; then
20346
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20347
$as_echo "yes" >&6; }
20348
# Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
20352
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20353
$as_echo "no" >&6; }
20356
# Need that, because some distributions ship compilers that include
20357
# `-fPIE' in the default specs.
20358
if [ x"$pie_possible" = xyes ]; then
20359
TARGET_CFLAGS="$TARGET_CFLAGS -fno-PIE"
20362
# Smashing stack protector.
20364
# Smashing stack protector.
20366
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' accepts \`-fstack-protector'" >&5
20367
$as_echo_n "checking whether \`$CC' accepts \`-fstack-protector'... " >&6; }
20368
# Is this a reliable test case?
20369
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20370
/* end confdefs.h. */
20371
void foo (void) { volatile char a[8]; a[3]; }
20373
# `$CC -c -o ...' might not be portable. But, oh, well... Is calling
20374
# `ac_compile' like this correct, after all?
20375
if eval "$ac_compile -S -fstack-protector -o conftest.s" 2> /dev/null; then
20376
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20377
$as_echo "yes" >&6; }
20378
# Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
20382
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20383
$as_echo "no" >&6; }
20386
# Need that, because some distributions ship compilers that include
20387
# `-fstack-protector' in the default specs.
20388
if test "x$ssp_possible" = xyes; then
20389
TARGET_CFLAGS="$TARGET_CFLAGS -fno-stack-protector"
20392
# Smashing stack arg probe.
20394
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' accepts \`-mstack-arg-probe'" >&5
20395
$as_echo_n "checking whether \`$CC' accepts \`-mstack-arg-probe'... " >&6; }
20396
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20397
/* end confdefs.h. */
20398
void foo (void) { volatile char a[8]; a[3]; }
20400
if eval "$ac_compile -S -mstack-arg-probe -o conftest.s" 2> /dev/null; then
20401
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20402
$as_echo "yes" >&6; }
20403
# Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
20407
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20408
$as_echo "no" >&6; }
20411
# Cygwin's GCC uses alloca() to probe the stackframe on static
20412
# stack allocations above some threshold.
20413
if test x"$sap_possible" = xyes; then
20414
TARGET_CFLAGS="$TARGET_CFLAGS -mno-stack-arg-probe"
20417
# Check whether --enable-werror was given.
20418
if test "${enable_werror+set}" = set; then :
20419
enableval=$enable_werror;
20422
if test x"$enable_werror" != xno ; then
20423
TARGET_CFLAGS="$TARGET_CFLAGS -Werror"
20426
TARGET_CPP="$TARGET_CC -E"
20427
TARGET_CCAS=$TARGET_CC
20451
# Set them to their new values for the tests below.
20453
if test "x$TARGET_APPLE_CC" = x1 ; then
20454
CFLAGS="$TARGET_CFLAGS -nostdlib -Wno-error"
20456
CFLAGS="$TARGET_CFLAGS -nostdlib -Wl,--defsym,___main=0x8100 -Wno-error"
20458
CPPFLAGS="$TARGET_CPPFLAGS"
20459
if test x$target_cpu = xi386 || test x$target_cpu = xx86_64 ; then
20467
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if C symbols get an underscore after compilation" >&5
20468
$as_echo_n "checking if C symbols get an underscore after compilation... " >&6; }
20469
if test "${grub_cv_asm_uscore+set}" = set; then :
20470
$as_echo_n "(cached) " >&6
20472
cat > conftest.c <<\EOF
20482
if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
20483
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20484
(eval $ac_try) 2>&5
20486
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20487
test $ac_status = 0; }; } && test -s conftest.s; then
20490
as_fn_error $? "${CC-cc} failed to produce assembly code" "$LINENO" 5
20493
if $EGREP '(^|^_[:alnum])_func' conftest.s >/dev/null 2>&1; then
20495
grub_cv_asm_uscore=yes
20498
grub_cv_asm_uscore=no
20505
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_asm_uscore" >&5
20506
$as_echo "$grub_cv_asm_uscore" >&6; }
20508
if test x$grub_cv_asm_uscore = xyes; then
20509
CFLAGS="$CFLAGS -Wl,--defsym,_abort=_main"
20511
CFLAGS="$CFLAGS -Wl,--defsym,abort=main"
20514
# Check for libgcc symbols
20515
for ac_func in __bswapsi2 __bswapdi2 __ashldi3 __ashrdi3 __lshrdi3 __trampoline_setup __ucmpdi2 _restgpr_14_x
20517
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20518
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20519
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20520
cat >>confdefs.h <<_ACEOF
20521
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20528
if test "x$TARGET_APPLE_CC" = x1 ; then
20529
CFLAGS="$TARGET_CFLAGS -nostdlib"
20531
CFLAGS="$TARGET_CFLAGS -nostdlib -Wl,--defsym,___main=0x8100"
20535
# Defined in aclocal.m4.
20536
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether target compiler is working" >&5
20537
$as_echo_n "checking whether target compiler is working... " >&6; }
20538
if test "${grub_cv_prog_target_cc+set}" = set; then :
20539
$as_echo_n "(cached) " >&6
20541
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20542
/* end confdefs.h. */
20544
asm (".globl start; start:");
20555
if ac_fn_c_try_link "$LINENO"; then :
20556
grub_cv_prog_target_cc=yes
20558
grub_cv_prog_target_cc=no
20560
rm -f core conftest.err conftest.$ac_objext \
20561
conftest$ac_exeext conftest.$ac_ext
20565
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_target_cc" >&5
20566
$as_echo "$grub_cv_prog_target_cc" >&6; }
20568
if test "x$grub_cv_prog_target_cc" = xno; then
20569
as_fn_error $? "cannot compile for the target" "$LINENO" 5
20572
if test "x$TARGET_APPLE_CC" != x1 ; then
20573
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${OBJCOPY} works for absolute addresses" >&5
20574
$as_echo_n "checking whether ${OBJCOPY} works for absolute addresses... " >&6; }
20575
if test "${grub_cv_prog_objcopy_absolute+set}" = set; then :
20576
$as_echo_n "(cached) " >&6
20578
cat > conftest.c <<\EOF
20583
*((int *) 0x1000) = 2;
20587
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20588
(eval $ac_compile) 2>&5
20590
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20591
test $ac_status = 0; } && test -s conftest.o; then :
20593
as_fn_error $? "${CC-cc} cannot compile C source code" "$LINENO" 5
20595
grub_cv_prog_objcopy_absolute=yes
20596
for link_addr in 0x2000 0x8000 0x7C00; do
20597
if { ac_try='${CC-cc} ${CFLAGS} -nostdlib ${TARGET_IMG_LDFLAGS_AC} ${TARGET_IMG_BASE_LDOPT},$link_addr conftest.o -o conftest.exec'
20598
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20599
(eval $ac_try) 2>&5
20601
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20602
test $ac_status = 0; }; }; then :
20604
as_fn_error $? "${CC-cc} cannot link at address $link_addr" "$LINENO" 5
20606
if { ac_try='${OBJCOPY-objcopy} --only-section=.text -O binary conftest.exec conftest'
20607
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20608
(eval $ac_try) 2>&5
20610
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20611
test $ac_status = 0; }; }; then :
20613
as_fn_error $? "${OBJCOPY-objcopy} cannot create binary files" "$LINENO" 5
20615
if test ! -f conftest.old || { ac_try='cmp -s conftest.old conftest'
20616
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20617
(eval $ac_try) 2>&5
20619
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20620
test $ac_status = 0; }; }; then
20621
mv -f conftest conftest.old
20623
grub_cv_prog_objcopy_absolute=no
20630
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_objcopy_absolute" >&5
20631
$as_echo "$grub_cv_prog_objcopy_absolute" >&6; }
20633
if test "x$grub_cv_prog_objcopy_absolute" = xno; then
20634
as_fn_error $? "GRUB requires a working absolute objcopy; upgrade your binutils" "$LINENO" 5
20638
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts --build-id=none" >&5
20639
$as_echo_n "checking whether linker accepts --build-id=none... " >&6; }
20640
if test "${grub_cv_prog_ld_build_id_none+set}" = set; then :
20641
$as_echo_n "(cached) " >&6
20643
save_LDFLAGS="$LDFLAGS"
20644
LDFLAGS="$LDFLAGS -Wl,--build-id=none"
20645
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20646
/* end confdefs.h. */
20656
if ac_fn_c_try_link "$LINENO"; then :
20657
grub_cv_prog_ld_build_id_none=yes
20659
grub_cv_prog_ld_build_id_none=no
20661
rm -f core conftest.err conftest.$ac_objext \
20662
conftest$ac_exeext conftest.$ac_ext
20663
LDFLAGS="$save_LDFLAGS"
20667
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_ld_build_id_none" >&5
20668
$as_echo "$grub_cv_prog_ld_build_id_none" >&6; }
20670
if test "x$grub_cv_prog_ld_build_id_none" = xyes; then
20671
TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,--build-id=none"
20674
if test "x$target_cpu" = xi386; then
20675
if test "$platform" != emu && test "x$TARGET_APPLE_CC" != x1 ; then
20676
if test ! -z "$TARGET_IMG_LDSCRIPT"; then
20677
# Check symbols provided by linker script.
20678
CFLAGS="$TARGET_CFLAGS -nostdlib ${TARGET_IMG_LDFLAGS_AC} ${TARGET_IMG_BASE_LDOPT},8000 -Wl,--defsym,___main=0x8100"
20681
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if __bss_start is defined by the compiler" >&5
20682
$as_echo_n "checking if __bss_start is defined by the compiler... " >&6; }
20683
if test "${grub_cv_check_uscore_uscore_bss_start_symbol+set}" = set; then :
20684
$as_echo_n "(cached) " >&6
20686
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20687
/* end confdefs.h. */
20692
asm ("incl __bss_start")
20697
if ac_fn_c_try_link "$LINENO"; then :
20698
grub_cv_check_uscore_uscore_bss_start_symbol=yes
20700
grub_cv_check_uscore_uscore_bss_start_symbol=no
20702
rm -f core conftest.err conftest.$ac_objext \
20703
conftest$ac_exeext conftest.$ac_ext
20707
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
20708
$as_echo "$grub_cv_check_uscore_uscore_bss_start_symbol" >&6; }
20710
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if edata is defined by the compiler" >&5
20711
$as_echo_n "checking if edata is defined by the compiler... " >&6; }
20712
if test "${grub_cv_check_edata_symbol+set}" = set; then :
20713
$as_echo_n "(cached) " >&6
20715
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20716
/* end confdefs.h. */
20726
if ac_fn_c_try_link "$LINENO"; then :
20727
grub_cv_check_edata_symbol=yes
20729
grub_cv_check_edata_symbol=no
20731
rm -f core conftest.err conftest.$ac_objext \
20732
conftest$ac_exeext conftest.$ac_ext
20736
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_edata_symbol" >&5
20737
$as_echo "$grub_cv_check_edata_symbol" >&6; }
20739
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if _edata is defined by the compiler" >&5
20740
$as_echo_n "checking if _edata is defined by the compiler... " >&6; }
20741
if test "${grub_cv_check_uscore_edata_symbol+set}" = set; then :
20742
$as_echo_n "(cached) " >&6
20744
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20745
/* end confdefs.h. */
20750
asm ("incl _edata")
20755
if ac_fn_c_try_link "$LINENO"; then :
20756
grub_cv_check_uscore_edata_symbol=yes
20758
grub_cv_check_uscore_edata_symbol=no
20760
rm -f core conftest.err conftest.$ac_objext \
20761
conftest$ac_exeext conftest.$ac_ext
20765
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_edata_symbol" >&5
20766
$as_echo "$grub_cv_check_uscore_edata_symbol" >&6; }
20768
if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then
20769
BSS_START_SYMBOL=__bss_start
20770
elif test "x$grub_cv_check_edata_symbol" = xyes; then
20771
BSS_START_SYMBOL=edata
20772
elif test "x$grub_cv_check_uscore_edata_symbol" = xyes; then
20773
BSS_START_SYMBOL=_edata
20775
as_fn_error $? "none of __bss_start, edata or _edata is defined" "$LINENO" 5
20779
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if end is defined by the compiler" >&5
20780
$as_echo_n "checking if end is defined by the compiler... " >&6; }
20781
if test "${grub_cv_check_end_symbol+set}" = set; then :
20782
$as_echo_n "(cached) " >&6
20784
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20785
/* end confdefs.h. */
20795
if ac_fn_c_try_link "$LINENO"; then :
20796
grub_cv_check_end_symbol=yes
20798
grub_cv_check_end_symbol=no
20800
rm -f core conftest.err conftest.$ac_objext \
20801
conftest$ac_exeext conftest.$ac_ext
20805
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_end_symbol" >&5
20806
$as_echo "$grub_cv_check_end_symbol" >&6; }
20808
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if _end is defined by the compiler" >&5
20809
$as_echo_n "checking if _end is defined by the compiler... " >&6; }
20810
if test "${grub_cv_check_uscore_end_symbol+set}" = set; then :
20811
$as_echo_n "(cached) " >&6
20813
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20814
/* end confdefs.h. */
20824
if ac_fn_c_try_link "$LINENO"; then :
20825
grub_cv_check_uscore_end_symbol=yes
20827
grub_cv_check_uscore_end_symbol=no
20829
rm -f core conftest.err conftest.$ac_objext \
20830
conftest$ac_exeext conftest.$ac_ext
20834
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_end_symbol" >&5
20835
$as_echo "$grub_cv_check_uscore_end_symbol" >&6; }
20837
if test "x$grub_cv_check_end_symbol" = xyes; then
20839
elif test "x$grub_cv_check_uscore_end_symbol" = xyes; then
20842
as_fn_error $? "neither end nor _end is defined" "$LINENO" 5
20846
CFLAGS="$TARGET_CFLAGS"
20848
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether addr32 must be in the same line as the instruction" >&5
20849
$as_echo_n "checking whether addr32 must be in the same line as the instruction... " >&6; }
20850
if test "${grub_cv_i386_asm_prefix_requirement+set}" = set; then :
20851
$as_echo_n "(cached) " >&6
20853
cat > conftest.s <<\EOF
20855
l1: addr32 movb %al, l1
20858
if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
20859
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20860
(eval $ac_try) 2>&5
20862
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20863
test $ac_status = 0; }; } && test -s conftest.o; then
20864
grub_cv_i386_asm_prefix_requirement=yes
20866
grub_cv_i386_asm_prefix_requirement=no
20873
if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
20874
grub_tmp_addr32="addr32"
20875
grub_tmp_data32="data32"
20877
grub_tmp_addr32="addr32;"
20878
grub_tmp_data32="data32;"
20881
ADDR32=$grub_tmp_addr32
20882
DATA32=$grub_tmp_data32
20884
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_i386_asm_prefix_requirement" >&5
20885
$as_echo "$grub_cv_i386_asm_prefix_requirement" >&6; }
20888
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .code16 addr32 assembler support" >&5
20889
$as_echo_n "checking for .code16 addr32 assembler support... " >&6; }
20890
if test "${grub_cv_i386_asm_addr32+set}" = set; then :
20891
$as_echo_n "(cached) " >&6
20893
cat > conftest.s.in <<\EOF
20895
l1: @ADDR32@ movb %al, l1
20898
if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
20899
sed -e s/@ADDR32@/addr32/ < conftest.s.in > conftest.s
20901
sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s
20904
if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
20905
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20906
(eval $ac_try) 2>&5
20908
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20909
test $ac_status = 0; }; } && test -s conftest.o; then
20910
grub_cv_i386_asm_addr32=yes
20912
grub_cv_i386_asm_addr32=no
20919
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_i386_asm_addr32" >&5
20920
$as_echo "$grub_cv_i386_asm_addr32" >&6; }
20923
# Check whether --enable-efiemu was given.
20924
if test "${enable_efiemu+set}" = set; then :
20925
enableval=$enable_efiemu;
20928
if test x"$enable_efiemu" = xno ; then
20929
efiemu_excuse="explicitly disabled"
20931
if test x"$target_cpu" != xi386 ; then
20932
efiemu_excuse="only available on i386"
20934
if test x"$platform" = xefi ; then
20935
efiemu_excuse="not available on efi"
20937
if test x"$efiemu_excuse" = x ; then
20938
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether options required for efiemu work" >&5
20939
$as_echo_n "checking whether options required for efiemu work... " >&6; }
20940
if test "${grub_cv_cc_efiemu+set}" = set; then :
20941
$as_echo_n "(cached) " >&6
20944
CFLAGS="$CFLAGS -m64 -mcmodel=large -mno-red-zone -nostdlib"
20945
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20946
/* end confdefs.h. */
20956
if ac_fn_c_try_compile "$LINENO"; then :
20957
grub_cv_cc_efiemu=yes
20959
grub_cv_cc_efiemu=no
20961
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20964
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_efiemu" >&5
20965
$as_echo "$grub_cv_cc_efiemu" >&6; }
20966
if test x$grub_cv_cc_efiemu = xno; then
20967
efiemu_excuse="cannot compile with -m64 -mcmodel=large -mno-red-zone -nostdlib"
20970
if test x"$enable_efiemu" = xyes && test x"$efiemu_excuse" != x ; then
20971
as_fn_error $? "efiemu runtime was explicitly requested but can't be compiled" "$LINENO" 5
20973
if test x"$efiemu_excuse" = x ; then
20980
if test "$platform" != emu; then
20981
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -nostdinc -isystem works" >&5
20982
$as_echo_n "checking whether -nostdinc -isystem works... " >&6; }
20983
if test "${grub_cv_cc_isystem+set}" = set; then :
20984
$as_echo_n "(cached) " >&6
20987
SAVED_CPPFLAGS="$CPPFLAGS"
20988
CPPFLAGS="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`"
20989
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20990
/* end confdefs.h. */
20991
#include <stdarg.h>
20992
int va_arg_func (int fixed, va_list args);
21001
if ac_fn_c_try_compile "$LINENO"; then :
21002
grub_cv_cc_isystem=yes
21004
grub_cv_cc_isystem=no
21006
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21007
CPPFLAGS="$SAVED_CPPFLAGS"
21010
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_isystem" >&5
21011
$as_echo "$grub_cv_cc_isystem" >&6; }
21013
if test x"$grub_cv_cc_isystem" = xyes ; then
21014
TARGET_CPPFLAGS="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`"
21018
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-trampolines work" >&5
21019
$as_echo_n "checking whether -Wno-trampolines work... " >&6; }
21020
if test "${grub_cv_cc_wnotrampolines+set}" = set; then :
21021
$as_echo_n "(cached) " >&6
21024
SAVED_CFLAGS="$CFLAGS"
21025
# Test for -Wtrampolines rather than -Wno-trampolines to reduce confusion
21026
# in the event of later failures (since -Wno-* is always accepted, but
21027
# produces a diagnostic if something else is wrong).
21028
CFLAGS="$TARGET_CFLAGS -Wtrampolines"
21029
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21030
/* end confdefs.h. */
21031
#include <stdarg.h>
21032
int va_arg_func (int fixed, va_list args);
21041
if ac_fn_c_try_compile "$LINENO"; then :
21042
grub_cv_cc_wnotrampolines=yes
21044
grub_cv_cc_wnotrampolines=no
21046
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21047
CFLAGS="$SAVED_CFLAGS"
21050
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_wnotrampolines" >&5
21051
$as_echo "$grub_cv_cc_wnotrampolines" >&6; }
21053
if test x"$grub_cv_cc_wnotrampolines" = xyes ; then
21054
TARGET_CFLAGS="$TARGET_CFLAGS -Wno-trampolines"
21057
# Restore the flags.
21059
CFLAGS="$tmp_CFLAGS"
21060
CPPFLAGS="$tmp_CPPFLAGS"
21061
LDFLAGS="$tmp_LDFLAGS"
21065
# Check for options.
21068
# Memory manager debugging.
21069
# Check whether --enable-mm-debug was given.
21070
if test "${enable_mm_debug+set}" = set; then :
21071
enableval=$enable_mm_debug;
21072
$as_echo "#define MM_DEBUG 1" >>confdefs.h
21077
# Check whether --enable-grub-emu-usb was given.
21078
if test "${enable_grub_emu_usb+set}" = set; then :
21079
enableval=$enable_grub_emu_usb;
21083
# Check whether --enable-grub-emu-sdl was given.
21084
if test "${enable_grub_emu_sdl+set}" = set; then :
21085
enableval=$enable_grub_emu_sdl;
21089
# Check whether --enable-grub-emu-pci was given.
21090
if test "${enable_grub_emu_pci+set}" = set; then :
21091
enableval=$enable_grub_emu_pci;
21095
if test "$platform" = emu; then
21097
# Check for curses libraries.
21098
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wgetch in -lncurses" >&5
21099
$as_echo_n "checking for wgetch in -lncurses... " >&6; }
21100
if test "${ac_cv_lib_ncurses_wgetch+set}" = set; then :
21101
$as_echo_n "(cached) " >&6
21103
ac_check_lib_save_LIBS=$LIBS
21104
LIBS="-lncurses $LIBS"
21105
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21106
/* end confdefs.h. */
21108
/* Override any GCC internal prototype to avoid an error.
21109
Use char because int might match the return type of a GCC
21110
builtin and then its argument prototype would still apply. */
21123
if ac_fn_c_try_link "$LINENO"; then :
21124
ac_cv_lib_ncurses_wgetch=yes
21126
ac_cv_lib_ncurses_wgetch=no
21128
rm -f core conftest.err conftest.$ac_objext \
21129
conftest$ac_exeext conftest.$ac_ext
21130
LIBS=$ac_check_lib_save_LIBS
21132
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_wgetch" >&5
21133
$as_echo "$ac_cv_lib_ncurses_wgetch" >&6; }
21134
if test "x$ac_cv_lib_ncurses_wgetch" = x""yes; then :
21135
LIBCURSES="-lncurses"
21137
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wgetch in -lcurses" >&5
21138
$as_echo_n "checking for wgetch in -lcurses... " >&6; }
21139
if test "${ac_cv_lib_curses_wgetch+set}" = set; then :
21140
$as_echo_n "(cached) " >&6
21142
ac_check_lib_save_LIBS=$LIBS
21143
LIBS="-lcurses $LIBS"
21144
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21145
/* end confdefs.h. */
21147
/* Override any GCC internal prototype to avoid an error.
21148
Use char because int might match the return type of a GCC
21149
builtin and then its argument prototype would still apply. */
21162
if ac_fn_c_try_link "$LINENO"; then :
21163
ac_cv_lib_curses_wgetch=yes
21165
ac_cv_lib_curses_wgetch=no
21167
rm -f core conftest.err conftest.$ac_objext \
21168
conftest$ac_exeext conftest.$ac_ext
21169
LIBS=$ac_check_lib_save_LIBS
21171
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_wgetch" >&5
21172
$as_echo "$ac_cv_lib_curses_wgetch" >&6; }
21173
if test "x$ac_cv_lib_curses_wgetch" = x""yes; then :
21174
LIBCURSES="-lcurses"
21176
missing_ncurses=true
21182
if [ x"$missing_ncurses" = x ]; then
21183
# Check for headers.
21184
for ac_header in ncurses/curses.h
21186
ac_fn_c_check_header_mongrel "$LINENO" "ncurses/curses.h" "ac_cv_header_ncurses_curses_h" "$ac_includes_default"
21187
if test "x$ac_cv_header_ncurses_curses_h" = x""yes; then :
21188
cat >>confdefs.h <<_ACEOF
21189
#define HAVE_NCURSES_CURSES_H 1
21193
for ac_header in ncurses.h
21195
ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
21196
if test "x$ac_cv_header_ncurses_h" = x""yes; then :
21197
cat >>confdefs.h <<_ACEOF
21198
#define HAVE_NCURSES_H 1
21202
for ac_header in curses.h
21204
ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21205
if test "x$ac_cv_header_curses_h" = x""yes; then :
21206
cat >>confdefs.h <<_ACEOF
21207
#define HAVE_CURSES_H 1
21211
missing_ncurses=true
21225
if test x"$missing_ncurses" = xtrue ; then
21226
as_fn_error $? "grub-emu can't be compiled without ncurses" "$LINENO" 5
21229
if test x"$enable_grub_emu_usb" != xyes ; then
21230
grub_emu_usb_excuse="not enabled"
21233
if test x"$enable_grub_emu_pci" = xyes ; then
21234
grub_emu_usb_excuse="conflicts with PCI support"
21237
if [ x"$grub_emu_usb_excuse" = x ]; then
21238
# Check for libusb libraries.
21239
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_claim_interface in -lusb" >&5
21240
$as_echo_n "checking for usb_claim_interface in -lusb... " >&6; }
21241
if test "${ac_cv_lib_usb_usb_claim_interface+set}" = set; then :
21242
$as_echo_n "(cached) " >&6
21244
ac_check_lib_save_LIBS=$LIBS
21246
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21247
/* end confdefs.h. */
21249
/* Override any GCC internal prototype to avoid an error.
21250
Use char because int might match the return type of a GCC
21251
builtin and then its argument prototype would still apply. */
21255
char usb_claim_interface ();
21259
return usb_claim_interface ();
21264
if ac_fn_c_try_link "$LINENO"; then :
21265
ac_cv_lib_usb_usb_claim_interface=yes
21267
ac_cv_lib_usb_usb_claim_interface=no
21269
rm -f core conftest.err conftest.$ac_objext \
21270
conftest$ac_exeext conftest.$ac_ext
21271
LIBS=$ac_check_lib_save_LIBS
21273
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_claim_interface" >&5
21274
$as_echo "$ac_cv_lib_usb_usb_claim_interface" >&6; }
21275
if test "x$ac_cv_lib_usb_usb_claim_interface" = x""yes; then :
21278
grub_emu_usb_excuse="need libusb library"
21283
if [ x"$grub_emu_usb_excuse" = x ]; then
21284
# Check for headers.
21285
for ac_header in usb.h
21287
ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
21288
if test "x$ac_cv_header_usb_h" = x""yes; then :
21289
cat >>confdefs.h <<_ACEOF
21290
#define HAVE_USB_H 1
21294
grub_emu_usb_excuse="need libusb headers"
21300
if test x"$enable_grub_emu_usb" = xyes && test x"$grub_emu_usb_excuse" != x ; then
21301
as_fn_error $? "USB support for grub-emu was explicitly requested but can't be compiled" "$LINENO" 5
21303
if test x"$grub_emu_usb_excuse" = x ; then
21304
enable_grub_emu_usb=yes
21306
enable_grub_emu_usb=no
21309
if test x"$enable_grub_emu_sdl" = xno ; then
21310
grub_emu_sdl_excuse="explicitely disabled"
21312
if [ x"$grub_emu_sdl_excuse" = x ]; then
21313
# Check for libSDL libraries.
21314
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL" >&5
21315
$as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
21316
if test "${ac_cv_lib_SDL_SDL_Init+set}" = set; then :
21317
$as_echo_n "(cached) " >&6
21319
ac_check_lib_save_LIBS=$LIBS
21321
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21322
/* end confdefs.h. */
21324
/* Override any GCC internal prototype to avoid an error.
21325
Use char because int might match the return type of a GCC
21326
builtin and then its argument prototype would still apply. */
21334
return SDL_Init ();
21339
if ac_fn_c_try_link "$LINENO"; then :
21340
ac_cv_lib_SDL_SDL_Init=yes
21342
ac_cv_lib_SDL_SDL_Init=no
21344
rm -f core conftest.err conftest.$ac_objext \
21345
conftest$ac_exeext conftest.$ac_ext
21346
LIBS=$ac_check_lib_save_LIBS
21348
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Init" >&5
21349
$as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
21350
if test "x$ac_cv_lib_SDL_SDL_Init" = x""yes; then :
21353
grub_emu_sdl_excuse="libSDL libraries are required to build \`grub-emu' with SDL support"
21359
if [ x"$grub_emu_sdl_excuse" = x ]; then
21360
# Check for headers.
21361
for ac_header in SDL/SDL.h
21363
ac_fn_c_check_header_mongrel "$LINENO" "SDL/SDL.h" "ac_cv_header_SDL_SDL_h" "$ac_includes_default"
21364
if test "x$ac_cv_header_SDL_SDL_h" = x""yes; then :
21365
cat >>confdefs.h <<_ACEOF
21366
#define HAVE_SDL_SDL_H 1
21370
grub_emu_sdl_excuse="libSDL header file is required to build \`grub-emu' with SDL support"
21377
if test x"enable_grub_emu_sdl" = xyes && test x"$grub_emu_sdl_excuse" != x ; then
21378
as_fn_error $? "SDL support for grub-emu was explicitely requested but can't be compiled" "$LINENO" 5
21380
if test x"$grub_emu_sdl_excuse" = x ; then
21381
enable_grub_emu_sdl=yes
21383
enable_grub_emu_sdl=no
21386
if test x"$enable_grub_emu_pci" != xyes ; then
21387
grub_emu_pci_excuse="not enabled"
21390
if test x"$enable_grub_emu_usb" = xyes ; then
21391
grub_emu_pci_excuse="conflicts with USB support"
21394
if [ x"$grub_emu_pci_excuse" = x ]; then
21395
# Check for libpci libraries.
21396
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pci_system_init in -lpciaccess" >&5
21397
$as_echo_n "checking for pci_system_init in -lpciaccess... " >&6; }
21398
if test "${ac_cv_lib_pciaccess_pci_system_init+set}" = set; then :
21399
$as_echo_n "(cached) " >&6
21401
ac_check_lib_save_LIBS=$LIBS
21402
LIBS="-lpciaccess $LIBS"
21403
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21404
/* end confdefs.h. */
21406
/* Override any GCC internal prototype to avoid an error.
21407
Use char because int might match the return type of a GCC
21408
builtin and then its argument prototype would still apply. */
21412
char pci_system_init ();
21416
return pci_system_init ();
21421
if ac_fn_c_try_link "$LINENO"; then :
21422
ac_cv_lib_pciaccess_pci_system_init=yes
21424
ac_cv_lib_pciaccess_pci_system_init=no
21426
rm -f core conftest.err conftest.$ac_objext \
21427
conftest$ac_exeext conftest.$ac_ext
21428
LIBS=$ac_check_lib_save_LIBS
21430
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pciaccess_pci_system_init" >&5
21431
$as_echo "$ac_cv_lib_pciaccess_pci_system_init" >&6; }
21432
if test "x$ac_cv_lib_pciaccess_pci_system_init" = x""yes; then :
21433
LIBPCIACCESS="-lpciaccess"
21435
grub_emu_pci_excuse="need libpciaccess library"
21440
if [ x"$grub_emu_pci_excuse" = x ]; then
21441
# Check for headers.
21442
for ac_header in pci/pci.h
21444
ac_fn_c_check_header_mongrel "$LINENO" "pci/pci.h" "ac_cv_header_pci_pci_h" "$ac_includes_default"
21445
if test "x$ac_cv_header_pci_pci_h" = x""yes; then :
21446
cat >>confdefs.h <<_ACEOF
21447
#define HAVE_PCI_PCI_H 1
21451
grub_emu_pci_excuse="need libpciaccess headers"
21458
if test x"$grub_emu_pci_excuse" = x ; then
21459
enable_grub_emu_pci=yes
21462
enable_grub_emu_pci=no
21470
# Check whether --enable-grub-mkfont was given.
21471
if test "${enable_grub_mkfont+set}" = set; then :
21472
enableval=$enable_grub_mkfont;
21475
if test x"$enable_grub_mkfont" = xno ; then
21476
grub_mkfont_excuse="explicitly disabled"
21479
if test x"$grub_mkfont_excuse" = x ; then
21480
# Check for freetype libraries.
21481
for ac_prog in freetype-config
21483
# Extract the first word of "$ac_prog", so it can be a program name with args.
21484
set dummy $ac_prog; ac_word=$2
21485
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21486
$as_echo_n "checking for $ac_word... " >&6; }
21487
if test "${ac_cv_prog_FREETYPE+set}" = set; then :
21488
$as_echo_n "(cached) " >&6
21490
if test -n "$FREETYPE"; then
21491
ac_cv_prog_FREETYPE="$FREETYPE" # Let the user override the test.
21493
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21494
for as_dir in $PATH
21497
test -z "$as_dir" && as_dir=.
21498
for ac_exec_ext in '' $ac_executable_extensions; do
21499
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21500
ac_cv_prog_FREETYPE="$ac_prog"
21501
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21510
FREETYPE=$ac_cv_prog_FREETYPE
21511
if test -n "$FREETYPE"; then
21512
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE" >&5
21513
$as_echo "$FREETYPE" >&6; }
21515
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21516
$as_echo "no" >&6; }
21520
test -n "$FREETYPE" && break
21523
if test "x$FREETYPE" = x ; then
21524
grub_mkfont_excuse="need freetype2 library"
21528
if test x"$grub_mkfont_excuse" = x ; then
21529
# Check for freetype libraries.
21530
freetype_cflags=`freetype-config --cflags`
21531
freetype_libs=`freetype-config --libs`
21532
SAVED_CPPFLAGS="$CPPFLAGS"
21533
CPPFLAGS="$CPPFLAGS $freetype_cflags"
21534
for ac_header in ft2build.h
21536
ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
21537
if test "x$ac_cv_header_ft2build_h" = x""yes; then :
21538
cat >>confdefs.h <<_ACEOF
21539
#define HAVE_FT2BUILD_H 1
21543
grub_mkfont_excuse="need freetype2 headers"
21548
CPPFLAGS="$SAVED_CPPFLAGS"
21551
if test x"$enable_grub_mkfont" = xyes && test x"$grub_mkfont_excuse" != x ; then
21552
as_fn_error $? "grub-mkfont was explicitly requested but can't be compiled" "$LINENO" 5
21554
if test x"$grub_mkfont_excuse" = x ; then
21555
enable_grub_mkfont=yes
21557
enable_grub_mkfont=no
21563
# Check whether --enable-device-mapper was given.
21564
if test "${enable_device_mapper+set}" = set; then :
21565
enableval=$enable_device_mapper;
21568
if test x"$enable_device_mapper" = xno ; then
21569
device_mapper_excuse="explicitly disabled"
21572
if test x"$device_mapper_excuse" = x ; then
21573
# Check for device-mapper library.
21574
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_create in -ldevmapper" >&5
21575
$as_echo_n "checking for dm_task_create in -ldevmapper... " >&6; }
21576
if test "${ac_cv_lib_devmapper_dm_task_create+set}" = set; then :
21577
$as_echo_n "(cached) " >&6
21579
ac_check_lib_save_LIBS=$LIBS
21580
LIBS="-ldevmapper $LIBS"
21581
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21582
/* end confdefs.h. */
21584
/* Override any GCC internal prototype to avoid an error.
21585
Use char because int might match the return type of a GCC
21586
builtin and then its argument prototype would still apply. */
21590
char dm_task_create ();
21594
return dm_task_create ();
21599
if ac_fn_c_try_link "$LINENO"; then :
21600
ac_cv_lib_devmapper_dm_task_create=yes
21602
ac_cv_lib_devmapper_dm_task_create=no
21604
rm -f core conftest.err conftest.$ac_objext \
21605
conftest$ac_exeext conftest.$ac_ext
21606
LIBS=$ac_check_lib_save_LIBS
21608
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_create" >&5
21609
$as_echo "$ac_cv_lib_devmapper_dm_task_create" >&6; }
21610
if test "x$ac_cv_lib_devmapper_dm_task_create" = x""yes; then :
21611
cat >>confdefs.h <<_ACEOF
21612
#define HAVE_LIBDEVMAPPER 1
21615
LIBS="-ldevmapper $LIBS"
21618
device_mapper_excuse="need devmapper library"
21623
if test x"$device_mapper_excuse" = x ; then
21624
# Check for device-mapper library.
21625
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_log_with_errno_init in -ldevmapper" >&5
21626
$as_echo_n "checking for dm_log_with_errno_init in -ldevmapper... " >&6; }
21627
if test "${ac_cv_lib_devmapper_dm_log_with_errno_init+set}" = set; then :
21628
$as_echo_n "(cached) " >&6
21630
ac_check_lib_save_LIBS=$LIBS
21631
LIBS="-ldevmapper $LIBS"
21632
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21633
/* end confdefs.h. */
21635
/* Override any GCC internal prototype to avoid an error.
21636
Use char because int might match the return type of a GCC
21637
builtin and then its argument prototype would still apply. */
21641
char dm_log_with_errno_init ();
21645
return dm_log_with_errno_init ();
21650
if ac_fn_c_try_link "$LINENO"; then :
21651
ac_cv_lib_devmapper_dm_log_with_errno_init=yes
21653
ac_cv_lib_devmapper_dm_log_with_errno_init=no
21655
rm -f core conftest.err conftest.$ac_objext \
21656
conftest$ac_exeext conftest.$ac_ext
21657
LIBS=$ac_check_lib_save_LIBS
21659
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_log_with_errno_init" >&5
21660
$as_echo "$ac_cv_lib_devmapper_dm_log_with_errno_init" >&6; }
21661
if test "x$ac_cv_lib_devmapper_dm_log_with_errno_init" = x""yes; then :
21662
cat >>confdefs.h <<_ACEOF
21663
#define HAVE_LIBDEVMAPPER 1
21666
LIBS="-ldevmapper $LIBS"
21669
device_mapper_excuse="need devmapper library"
21674
if test x"$device_mapper_excuse" = x ; then
21675
LIBDEVMAPPER="-ldevmapper";
21677
$as_echo "#define HAVE_DEVICE_MAPPER 1" >>confdefs.h
21683
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
21684
$as_echo_n "checking for lzma_code in -llzma... " >&6; }
21685
if test "${ac_cv_lib_lzma_lzma_code+set}" = set; then :
21686
$as_echo_n "(cached) " >&6
21688
ac_check_lib_save_LIBS=$LIBS
21689
LIBS="-llzma $LIBS"
21690
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21691
/* end confdefs.h. */
21693
/* Override any GCC internal prototype to avoid an error.
21694
Use char because int might match the return type of a GCC
21695
builtin and then its argument prototype would still apply. */
21703
return lzma_code ();
21708
if ac_fn_c_try_link "$LINENO"; then :
21709
ac_cv_lib_lzma_lzma_code=yes
21711
ac_cv_lib_lzma_lzma_code=no
21713
rm -f core conftest.err conftest.$ac_objext \
21714
conftest$ac_exeext conftest.$ac_ext
21715
LIBS=$ac_check_lib_save_LIBS
21717
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
21718
$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
21719
if test "x$ac_cv_lib_lzma_lzma_code" = x""yes; then :
21722
$as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
21728
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzfs_init in -lzfs" >&5
21729
$as_echo_n "checking for libzfs_init in -lzfs... " >&6; }
21730
if test "${ac_cv_lib_zfs_libzfs_init+set}" = set; then :
21731
$as_echo_n "(cached) " >&6
21733
ac_check_lib_save_LIBS=$LIBS
21735
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21736
/* end confdefs.h. */
21738
/* Override any GCC internal prototype to avoid an error.
21739
Use char because int might match the return type of a GCC
21740
builtin and then its argument prototype would still apply. */
21744
char libzfs_init ();
21748
return libzfs_init ();
21753
if ac_fn_c_try_link "$LINENO"; then :
21754
ac_cv_lib_zfs_libzfs_init=yes
21756
ac_cv_lib_zfs_libzfs_init=no
21758
rm -f core conftest.err conftest.$ac_objext \
21759
conftest$ac_exeext conftest.$ac_ext
21760
LIBS=$ac_check_lib_save_LIBS
21762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zfs_libzfs_init" >&5
21763
$as_echo "$ac_cv_lib_zfs_libzfs_init" >&6; }
21764
if test "x$ac_cv_lib_zfs_libzfs_init" = x""yes; then :
21767
$as_echo "#define HAVE_LIBZFS 1" >>confdefs.h
21773
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_print in -lnvpair" >&5
21774
$as_echo_n "checking for nvlist_print in -lnvpair... " >&6; }
21775
if test "${ac_cv_lib_nvpair_nvlist_print+set}" = set; then :
21776
$as_echo_n "(cached) " >&6
21778
ac_check_lib_save_LIBS=$LIBS
21779
LIBS="-lnvpair $LIBS"
21780
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21781
/* end confdefs.h. */
21783
/* Override any GCC internal prototype to avoid an error.
21784
Use char because int might match the return type of a GCC
21785
builtin and then its argument prototype would still apply. */
21789
char nvlist_print ();
21793
return nvlist_print ();
21798
if ac_fn_c_try_link "$LINENO"; then :
21799
ac_cv_lib_nvpair_nvlist_print=yes
21801
ac_cv_lib_nvpair_nvlist_print=no
21803
rm -f core conftest.err conftest.$ac_objext \
21804
conftest$ac_exeext conftest.$ac_ext
21805
LIBS=$ac_check_lib_save_LIBS
21807
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_print" >&5
21808
$as_echo "$ac_cv_lib_nvpair_nvlist_print" >&6; }
21809
if test "x$ac_cv_lib_nvpair_nvlist_print" = x""yes; then :
21810
LIBNVPAIR="-lnvpair"
21812
$as_echo "#define HAVE_LIBNVPAIR 1" >>confdefs.h
21820
pkglibrootdir='$(libdir)'/`echo $PACKAGE | sed "$program_transform_name"`
21824
if test x$target_cpu = xi386 -a x$platform = xqemu; then :
21825
GRUB_BOOT_MACHINE_LINK_ADDR=0xffe00
21828
if test x$TARGET_APPLE_CC = x1; then :
21829
USE_APPLE_CC_FIXES=yes
21844
# Automake conditionals
21847
if test x$platform = xemu; then
21855
if test x$target_cpu = xi386 -a x$platform = xpc; then
21857
COND_i386_pc_FALSE='#'
21859
COND_i386_pc_TRUE='#'
21860
COND_i386_pc_FALSE=
21863
if test x$target_cpu = xi386 -a x$platform = xefi; then
21864
COND_i386_efi_TRUE=
21865
COND_i386_efi_FALSE='#'
21867
COND_i386_efi_TRUE='#'
21868
COND_i386_efi_FALSE=
21871
if test x$target_cpu = xi386 -a x$platform = xqemu; then
21872
COND_i386_qemu_TRUE=
21873
COND_i386_qemu_FALSE='#'
21875
COND_i386_qemu_TRUE='#'
21876
COND_i386_qemu_FALSE=
21879
if test x$target_cpu = xi386 -a x$platform = xieee1275; then
21880
COND_i386_ieee1275_TRUE=
21881
COND_i386_ieee1275_FALSE='#'
21883
COND_i386_ieee1275_TRUE='#'
21884
COND_i386_ieee1275_FALSE=
21887
if test x$target_cpu = xi386 -a x$platform = xcoreboot; then
21888
COND_i386_coreboot_TRUE=
21889
COND_i386_coreboot_FALSE='#'
21891
COND_i386_coreboot_TRUE='#'
21892
COND_i386_coreboot_FALSE=
21895
if test x$target_cpu = xi386 -a x$platform = xmultiboot; then
21896
COND_i386_multiboot_TRUE=
21897
COND_i386_multiboot_FALSE='#'
21899
COND_i386_multiboot_TRUE='#'
21900
COND_i386_multiboot_FALSE=
21903
if test x$target_cpu = xx86_64 -a x$platform = xefi; then
21904
COND_x86_64_efi_TRUE=
21905
COND_x86_64_efi_FALSE='#'
21907
COND_x86_64_efi_TRUE='#'
21908
COND_x86_64_efi_FALSE=
21911
if test x$target_cpu = xmips -a x$platform = xyeeloong; then
21912
COND_mips_yeeloong_TRUE=
21913
COND_mips_yeeloong_FALSE='#'
21915
COND_mips_yeeloong_TRUE='#'
21916
COND_mips_yeeloong_FALSE=
21919
if test x$target_cpu = xmips -a x$platform = xqemu_mips; then
21920
COND_mips_qemu_mips_TRUE=
21921
COND_mips_qemu_mips_FALSE='#'
21923
COND_mips_qemu_mips_TRUE='#'
21924
COND_mips_qemu_mips_FALSE=
21927
if test x$target_cpu = xsparc64 -a x$platform = xieee1275; then
21928
COND_sparc64_ieee1275_TRUE=
21929
COND_sparc64_ieee1275_FALSE='#'
21931
COND_sparc64_ieee1275_TRUE='#'
21932
COND_sparc64_ieee1275_FALSE=
21935
if test x$target_cpu = xpowerpc -a x$platform = xieee1275; then
21936
COND_powerpc_ieee1275_TRUE=
21937
COND_powerpc_ieee1275_FALSE='#'
21939
COND_powerpc_ieee1275_TRUE='#'
21940
COND_powerpc_ieee1275_FALSE=
21943
if test x$target_cpu = xmips; then
21945
COND_mips_FALSE='#'
21952
if test x$host_kernel = xhurd; then
21953
COND_HOST_HURD_TRUE=
21954
COND_HOST_HURD_FALSE='#'
21956
COND_HOST_HURD_TRUE='#'
21957
COND_HOST_HURD_FALSE=
21960
if test x$host_kernel = xlinux; then
21961
COND_HOST_LINUX_TRUE=
21962
COND_HOST_LINUX_FALSE='#'
21964
COND_HOST_LINUX_TRUE='#'
21965
COND_HOST_LINUX_FALSE=
21968
if test x$host_kernel = xnetbsd; then
21969
COND_HOST_NETBSD_TRUE=
21970
COND_HOST_NETBSD_FALSE='#'
21972
COND_HOST_NETBSD_TRUE='#'
21973
COND_HOST_NETBSD_FALSE=
21976
if test x$host_kernel = xwindows; then
21977
COND_HOST_WINDOWS_TRUE=
21978
COND_HOST_WINDOWS_FALSE='#'
21980
COND_HOST_WINDOWS_TRUE='#'
21981
COND_HOST_WINDOWS_FALSE=
21984
if test x$host_kernel = xkfreebsd; then
21985
COND_HOST_KFREEBSD_TRUE=
21986
COND_HOST_KFREEBSD_FALSE='#'
21988
COND_HOST_KFREEBSD_TRUE='#'
21989
COND_HOST_KFREEBSD_FALSE=
21993
if test x$cross_compiling = xno -a x$HELP2MAN != x; then
21994
COND_MAN_PAGES_TRUE=
21995
COND_MAN_PAGES_FALSE='#'
21997
COND_MAN_PAGES_TRUE='#'
21998
COND_MAN_PAGES_FALSE=
22001
if test x$enable_grub_emu_usb = xyes; then
22002
COND_GRUB_EMU_USB_TRUE=
22003
COND_GRUB_EMU_USB_FALSE='#'
22005
COND_GRUB_EMU_USB_TRUE='#'
22006
COND_GRUB_EMU_USB_FALSE=
22009
if test x$enable_grub_emu_sdl = xyes; then
22010
COND_GRUB_EMU_SDL_TRUE=
22011
COND_GRUB_EMU_SDL_FALSE='#'
22013
COND_GRUB_EMU_SDL_TRUE='#'
22014
COND_GRUB_EMU_SDL_FALSE=
22017
if test x$enable_grub_emu_pci = xyes; then
22018
COND_GRUB_EMU_PCI_TRUE=
22019
COND_GRUB_EMU_PCI_FALSE='#'
22021
COND_GRUB_EMU_PCI_TRUE='#'
22022
COND_GRUB_EMU_PCI_FALSE=
22025
if test x$enable_grub_mkfont = xyes; then
22026
COND_GRUB_MKFONT_TRUE=
22027
COND_GRUB_MKFONT_FALSE='#'
22029
COND_GRUB_MKFONT_TRUE='#'
22030
COND_GRUB_MKFONT_FALSE=
22033
if test x$FONT_SOURCE != x; then
22034
COND_HAVE_FONT_SOURCE_TRUE=
22035
COND_HAVE_FONT_SOURCE_FALSE='#'
22037
COND_HAVE_FONT_SOURCE_TRUE='#'
22038
COND_HAVE_FONT_SOURCE_FALSE=
22041
if test x$TARGET_OBJ2ELF != x; then
22042
COND_GRUB_PE2ELF_TRUE=
22043
COND_GRUB_PE2ELF_FALSE='#'
22045
COND_GRUB_PE2ELF_TRUE='#'
22046
COND_GRUB_PE2ELF_FALSE=
22049
if test x$TARGET_APPLE_CC = x1; then
22050
COND_APPLE_CC_TRUE=
22051
COND_APPLE_CC_FALSE='#'
22053
COND_APPLE_CC_TRUE='#'
22054
COND_APPLE_CC_FALSE=
22057
if test x$enable_efiemu = xyes; then
22058
COND_ENABLE_EFIEMU_TRUE=
22059
COND_ENABLE_EFIEMU_FALSE='#'
22061
COND_ENABLE_EFIEMU_TRUE='#'
22062
COND_ENABLE_EFIEMU_FALSE=
22066
if test x$HAVE_ASM_USCORE = x1; then
22067
COND_HAVE_ASM_USCORE_TRUE=
22068
COND_HAVE_ASM_USCORE_FALSE='#'
22070
COND_HAVE_ASM_USCORE_TRUE='#'
22071
COND_HAVE_ASM_USCORE_FALSE=
22077
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln can handle directories properly" >&5
22078
$as_echo_n "checking whether ln can handle directories properly... " >&6; }
22079
mkdir testdir 2>/dev/null
22081
[\\/$]* | ?:[\\/]* ) reldir=$srcdir/include/grub/util ;;
22082
*) reldir=../$srcdir/include/grub/util ;;
22084
if ln -s $reldir testdir/util 2>/dev/null ; then
22085
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22086
$as_echo "yes" >&6; }
22090
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22091
$as_echo "no" >&6; }
22095
if test x"$link_dir" = xyes ; then
22096
ac_config_links="$ac_config_links include/grub/cpu:include/grub/$target_cpu"
22098
if test "$platform" != emu ; then
22099
ac_config_links="$ac_config_links include/grub/machine:include/grub/$target_cpu/$platform"
22103
mkdir -p include/grub 2>/dev/null
22104
rm -rf include/grub/cpu
22105
cp -rp $srcdir/include/grub/$target_cpu include/grub/cpu 2>/dev/null
22106
if test "$platform" != emu ; then
22107
rm -rf include/grub/machine
22108
cp -rp $srcdir/include/grub/$target_cpu/$platform include/grub/machine 2>/dev/null
22112
ac_config_files="$ac_config_files Makefile"
22114
ac_config_files="$ac_config_files grub-core/Makefile"
22116
ac_config_files="$ac_config_files grub-core/gnulib/Makefile"
22118
ac_config_files="$ac_config_files po/Makefile.in"
22120
ac_config_files="$ac_config_files docs/Makefile"
22122
ac_config_files="$ac_config_files util/bash-completion.d/Makefile"
22124
ac_config_files="$ac_config_files stamp-h"
22126
ac_config_files="$ac_config_files config.h"
22129
cat >confcache <<\_ACEOF
22130
# This file is a shell script that caches the results of configure
22131
# tests run on this system so they can be shared between configure
22132
# scripts and configure runs, see configure's option --config-cache.
22133
# It is not useful on other systems. If it contains results you don't
22134
# want to keep, you may remove or edit it.
22136
# config.status only pays attention to the cache file if you give it
22137
# the --recheck option to rerun configure.
22139
# `ac_cv_env_foo' variables (set or unset) will be overridden when
22140
# loading this file, other *unset* `ac_cv_foo' will be assigned the
22141
# following values.
22145
# The following way of writing the cache mishandles newlines in values,
22146
# but we know of no workaround that is simple, portable, and efficient.
22147
# So, we kill variables containing newlines.
22148
# Ultrix sh set writes to stderr and can't be redirected directly,
22149
# and sets the high bit in the cache file unless we assign to the vars.
22151
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22152
eval ac_val=\$$ac_var
22156
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22157
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22160
_ | IFS | as_nl) ;; #(
22161
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22162
*) { eval $ac_var=; unset $ac_var;} ;;
22168
case $as_nl`(ac_space=' '; set) 2>&1` in #(
22169
*${as_nl}ac_space=\ *)
22170
# `set' does not quote correctly, so add quotes: double-quote
22171
# substitution turns \\\\ into \\, and sed turns \\ into \.
22174
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22177
# `set' quotes correctly as required by POSIX, so do not add quotes.
22178
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22187
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22189
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22191
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22192
if test -w "$cache_file"; then
22193
test "x$cache_file" != "x/dev/null" &&
22194
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22195
$as_echo "$as_me: updating cache $cache_file" >&6;}
22196
cat confcache >$cache_file
22198
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22199
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22204
test "x$prefix" = xNONE && prefix=$ac_default_prefix
22205
# Let make expand exec_prefix.
22206
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22208
DEFS=-DHAVE_CONFIG_H
22213
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22214
# 1. Remove the extension, and $U if already installed.
22215
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22216
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22217
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22218
# will be set to the directory where LIBOBJS objects are built.
22219
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22220
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22222
LIBOBJS=$ac_libobjs
22224
LTLIBOBJS=$ac_ltlibobjs
22227
if test -n "$EXEEXT"; then
22229
am__EXEEXT_FALSE='#'
22231
am__EXEEXT_TRUE='#'
22235
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22236
as_fn_error $? "conditional \"AMDEP\" was never defined.
22237
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22239
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22240
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22241
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22243
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22244
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22245
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22247
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
22248
as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
22249
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22252
if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
22253
as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
22254
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22259
if test -n "$gl_LIBOBJS"; then
22260
# Remove the extension.
22261
sed_drop_objext='s/\.o$//;s/\.obj$//'
22262
for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22263
gl_libobjs="$gl_libobjs $i.$ac_objext"
22264
gl_ltlibobjs="$gl_ltlibobjs $i.lo"
22267
gl_LIBOBJS=$gl_libobjs
22269
gl_LTLIBOBJS=$gl_ltlibobjs
22275
if test -n "$gltests_LIBOBJS"; then
22276
# Remove the extension.
22277
sed_drop_objext='s/\.o$//;s/\.obj$//'
22278
for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22279
gltests_libobjs="$gltests_libobjs $i.$ac_objext"
22280
gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
22283
gltests_LIBOBJS=$gltests_libobjs
22285
gltests_LTLIBOBJS=$gltests_ltlibobjs
22288
if test -z "${COND_emu_TRUE}" && test -z "${COND_emu_FALSE}"; then
22289
as_fn_error $? "conditional \"COND_emu\" was never defined.
22290
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22292
if test -z "${COND_i386_pc_TRUE}" && test -z "${COND_i386_pc_FALSE}"; then
22293
as_fn_error $? "conditional \"COND_i386_pc\" was never defined.
22294
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22296
if test -z "${COND_i386_efi_TRUE}" && test -z "${COND_i386_efi_FALSE}"; then
22297
as_fn_error $? "conditional \"COND_i386_efi\" was never defined.
22298
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22300
if test -z "${COND_i386_qemu_TRUE}" && test -z "${COND_i386_qemu_FALSE}"; then
22301
as_fn_error $? "conditional \"COND_i386_qemu\" was never defined.
22302
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22304
if test -z "${COND_i386_ieee1275_TRUE}" && test -z "${COND_i386_ieee1275_FALSE}"; then
22305
as_fn_error $? "conditional \"COND_i386_ieee1275\" was never defined.
22306
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22308
if test -z "${COND_i386_coreboot_TRUE}" && test -z "${COND_i386_coreboot_FALSE}"; then
22309
as_fn_error $? "conditional \"COND_i386_coreboot\" was never defined.
22310
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22312
if test -z "${COND_i386_multiboot_TRUE}" && test -z "${COND_i386_multiboot_FALSE}"; then
22313
as_fn_error $? "conditional \"COND_i386_multiboot\" was never defined.
22314
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22316
if test -z "${COND_x86_64_efi_TRUE}" && test -z "${COND_x86_64_efi_FALSE}"; then
22317
as_fn_error $? "conditional \"COND_x86_64_efi\" was never defined.
22318
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22320
if test -z "${COND_mips_yeeloong_TRUE}" && test -z "${COND_mips_yeeloong_FALSE}"; then
22321
as_fn_error $? "conditional \"COND_mips_yeeloong\" was never defined.
22322
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22324
if test -z "${COND_mips_qemu_mips_TRUE}" && test -z "${COND_mips_qemu_mips_FALSE}"; then
22325
as_fn_error $? "conditional \"COND_mips_qemu_mips\" was never defined.
22326
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22328
if test -z "${COND_sparc64_ieee1275_TRUE}" && test -z "${COND_sparc64_ieee1275_FALSE}"; then
22329
as_fn_error $? "conditional \"COND_sparc64_ieee1275\" was never defined.
22330
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22332
if test -z "${COND_powerpc_ieee1275_TRUE}" && test -z "${COND_powerpc_ieee1275_FALSE}"; then
22333
as_fn_error $? "conditional \"COND_powerpc_ieee1275\" was never defined.
22334
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22336
if test -z "${COND_mips_TRUE}" && test -z "${COND_mips_FALSE}"; then
22337
as_fn_error $? "conditional \"COND_mips\" was never defined.
22338
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22340
if test -z "${COND_HOST_HURD_TRUE}" && test -z "${COND_HOST_HURD_FALSE}"; then
22341
as_fn_error $? "conditional \"COND_HOST_HURD\" was never defined.
22342
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22344
if test -z "${COND_HOST_LINUX_TRUE}" && test -z "${COND_HOST_LINUX_FALSE}"; then
22345
as_fn_error $? "conditional \"COND_HOST_LINUX\" was never defined.
22346
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22348
if test -z "${COND_HOST_NETBSD_TRUE}" && test -z "${COND_HOST_NETBSD_FALSE}"; then
22349
as_fn_error $? "conditional \"COND_HOST_NETBSD\" was never defined.
22350
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22352
if test -z "${COND_HOST_WINDOWS_TRUE}" && test -z "${COND_HOST_WINDOWS_FALSE}"; then
22353
as_fn_error $? "conditional \"COND_HOST_WINDOWS\" was never defined.
22354
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22356
if test -z "${COND_HOST_KFREEBSD_TRUE}" && test -z "${COND_HOST_KFREEBSD_FALSE}"; then
22357
as_fn_error $? "conditional \"COND_HOST_KFREEBSD\" was never defined.
22358
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22360
if test -z "${COND_MAN_PAGES_TRUE}" && test -z "${COND_MAN_PAGES_FALSE}"; then
22361
as_fn_error $? "conditional \"COND_MAN_PAGES\" was never defined.
22362
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22364
if test -z "${COND_GRUB_EMU_USB_TRUE}" && test -z "${COND_GRUB_EMU_USB_FALSE}"; then
22365
as_fn_error $? "conditional \"COND_GRUB_EMU_USB\" was never defined.
22366
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22368
if test -z "${COND_GRUB_EMU_SDL_TRUE}" && test -z "${COND_GRUB_EMU_SDL_FALSE}"; then
22369
as_fn_error $? "conditional \"COND_GRUB_EMU_SDL\" was never defined.
22370
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22372
if test -z "${COND_GRUB_EMU_PCI_TRUE}" && test -z "${COND_GRUB_EMU_PCI_FALSE}"; then
22373
as_fn_error $? "conditional \"COND_GRUB_EMU_PCI\" was never defined.
22374
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22376
if test -z "${COND_GRUB_MKFONT_TRUE}" && test -z "${COND_GRUB_MKFONT_FALSE}"; then
22377
as_fn_error $? "conditional \"COND_GRUB_MKFONT\" was never defined.
22378
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22380
if test -z "${COND_HAVE_FONT_SOURCE_TRUE}" && test -z "${COND_HAVE_FONT_SOURCE_FALSE}"; then
22381
as_fn_error $? "conditional \"COND_HAVE_FONT_SOURCE\" was never defined.
22382
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22384
if test -z "${COND_GRUB_PE2ELF_TRUE}" && test -z "${COND_GRUB_PE2ELF_FALSE}"; then
22385
as_fn_error $? "conditional \"COND_GRUB_PE2ELF\" was never defined.
22386
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22388
if test -z "${COND_APPLE_CC_TRUE}" && test -z "${COND_APPLE_CC_FALSE}"; then
22389
as_fn_error $? "conditional \"COND_APPLE_CC\" was never defined.
22390
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22392
if test -z "${COND_ENABLE_EFIEMU_TRUE}" && test -z "${COND_ENABLE_EFIEMU_FALSE}"; then
22393
as_fn_error $? "conditional \"COND_ENABLE_EFIEMU\" was never defined.
22394
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22396
if test -z "${COND_HAVE_ASM_USCORE_TRUE}" && test -z "${COND_HAVE_ASM_USCORE_FALSE}"; then
22397
as_fn_error $? "conditional \"COND_HAVE_ASM_USCORE\" was never defined.
22398
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22401
: ${CONFIG_STATUS=./config.status}
22403
ac_clean_files_save=$ac_clean_files
22404
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22405
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22406
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22408
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22410
# Generated by $as_me.
22411
# Run this file to recreate the current configuration.
22412
# Compiler output produced by configure, useful for debugging
22413
# configure, is in config.log if it exists.
22416
ac_cs_recheck=false
22419
SHELL=\${CONFIG_SHELL-$SHELL}
22422
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22423
## -------------------- ##
22424
## M4sh Initialization. ##
22425
## -------------------- ##
22427
# Be more Bourne compatible
22428
DUALCASE=1; export DUALCASE # for MKS sh
22429
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22432
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22433
# is contrary to our usage. Disable this feature.
22434
alias -g '${1+"$@"}'='"$@"'
22435
setopt NO_GLOB_SUBST
22437
case `(set -o) 2>/dev/null` in #(
22449
# Printing a long string crashes Solaris 7 /usr/bin/printf.
22450
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22451
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22452
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22453
# Prefer a ksh shell builtin over an external printf program on Solaris,
22454
# but without wasting forks for bash or zsh.
22455
if test -z "$BASH_VERSION$ZSH_VERSION" \
22456
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22457
as_echo='print -r --'
22458
as_echo_n='print -rn --'
22459
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22460
as_echo='printf %s\n'
22461
as_echo_n='printf %s'
22463
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22464
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22465
as_echo_n='/usr/ucb/echo -n'
22467
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22468
as_echo_n_body='eval
22472
expr "X$arg" : "X\\(.*\\)$as_nl";
22473
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22475
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22477
export as_echo_n_body
22478
as_echo_n='sh -c $as_echo_n_body as_echo'
22480
export as_echo_body
22481
as_echo='sh -c $as_echo_body as_echo'
22484
# The user is always right.
22485
if test "${PATH_SEPARATOR+set}" != set; then
22487
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22488
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22495
# We need space, tab and new line, in precisely that order. Quoting is
22496
# there to prevent editors from complaining about space-tab.
22497
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22498
# splitting by setting IFS to empty value.)
22501
# Find who we are. Look in the path if we contain no directory separator.
22503
*[\\/]* ) as_myself=$0 ;;
22504
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22505
for as_dir in $PATH
22508
test -z "$as_dir" && as_dir=.
22509
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22515
# We did not find ourselves, most probably we were run as `sh COMMAND'
22516
# in which case we are not to be found in the path.
22517
if test "x$as_myself" = x; then
22520
if test ! -f "$as_myself"; then
22521
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22525
# Unset variables that we do not need and which cause bugs (e.g. in
22526
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22527
# suppresses any "Segmentation fault" message there. '((' could
22528
# trigger a bug in pdksh 5.2.14.
22529
for as_var in BASH_ENV ENV MAIL MAILPATH
22530
do eval test x\${$as_var+set} = xset \
22531
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22544
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22547
# as_fn_error STATUS ERROR [LINENO LOG_FD]
22548
# ----------------------------------------
22549
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22550
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22551
# script with STATUS, using 1 if that was 0.
22554
as_status=$1; test $as_status -eq 0 && as_status=1
22556
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22557
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22559
$as_echo "$as_me: error: $2" >&2
22560
as_fn_exit $as_status
22564
# as_fn_set_status STATUS
22565
# -----------------------
22566
# Set $? to STATUS, without forking.
22567
as_fn_set_status ()
22570
} # as_fn_set_status
22572
# as_fn_exit STATUS
22573
# -----------------
22574
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22578
as_fn_set_status $1
22584
# Portably unset VAR.
22587
{ eval $1=; unset $1;}
22589
as_unset=as_fn_unset
22590
# as_fn_append VAR VALUE
22591
# ----------------------
22592
# Append the text in VALUE to the end of the definition contained in VAR. Take
22593
# advantage of any shell optimizations that allow amortized linear growth over
22594
# repeated appends, instead of the typical quadratic growth present in naive
22596
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22597
eval 'as_fn_append ()
22608
# as_fn_arith ARG...
22609
# ------------------
22610
# Perform arithmetic evaluation on the ARGs, and store the result in the
22611
# global $as_val. Take advantage of shells that can avoid forks. The arguments
22612
# must be portable across $(()) and expr.
22613
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22614
eval 'as_fn_arith ()
22621
as_val=`expr "$@" || test $? -eq 1`
22626
if expr a : '\(a\)' >/dev/null 2>&1 &&
22627
test "X`expr 00001 : '.*\(...\)'`" = X001; then
22633
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22634
as_basename=basename
22639
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22645
as_me=`$as_basename -- "$0" ||
22646
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22647
X"$0" : 'X\(//\)$' \| \
22648
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22650
sed '/^.*\/\([^/][^/]*\)\/*$/{
22664
# Avoid depending upon Character Ranges.
22665
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22666
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22667
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22668
as_cr_digits='0123456789'
22669
as_cr_alnum=$as_cr_Letters$as_cr_digits
22671
ECHO_C= ECHO_N= ECHO_T=
22672
case `echo -n x` in #(((((
22674
case `echo 'xy\c'` in
22675
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
22677
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22684
rm -f conf$$ conf$$.exe conf$$.file
22685
if test -d conf$$.dir; then
22686
rm -f conf$$.dir/conf$$.file
22689
mkdir conf$$.dir 2>/dev/null
22691
if (echo >conf$$.file) 2>/dev/null; then
22692
if ln -s conf$$.file conf$$ 2>/dev/null; then
22694
# ... but there are two gotchas:
22695
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22696
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22697
# In both cases, we have to default to `cp -p'.
22698
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22700
elif ln conf$$.file conf$$ 2>/dev/null; then
22708
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22709
rmdir conf$$.dir 2>/dev/null
22714
# Create "$as_dir" as a directory, including parents if necessary.
22719
-*) as_dir=./$as_dir;;
22721
test -d "$as_dir" || eval $as_mkdir_p || {
22725
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22726
*) as_qdir=$as_dir;;
22728
as_dirs="'$as_qdir' $as_dirs"
22729
as_dir=`$as_dirname -- "$as_dir" ||
22730
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22731
X"$as_dir" : 'X\(//\)[^/]' \| \
22732
X"$as_dir" : 'X\(//\)$' \| \
22733
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22734
$as_echo X"$as_dir" |
22735
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22739
/^X\(\/\/\)[^/].*/{
22752
test -d "$as_dir" && break
22754
test -z "$as_dirs" || eval "mkdir $as_dirs"
22755
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22759
if mkdir -p . 2>/dev/null; then
22760
as_mkdir_p='mkdir -p "$as_dir"'
22762
test -d ./-p && rmdir ./-p
22766
if test -x / >/dev/null 2>&1; then
22767
as_test_x='test -x'
22769
if ls -dL / >/dev/null 2>&1; then
22776
if test -d "$1"; then
22782
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
22783
???[sx]*):;;*)false;;esac;fi
22787
as_executable_p=$as_test_x
22789
# Sed expression to map a string onto a valid CPP name.
22790
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22792
# Sed expression to map a string onto a valid variable name.
22793
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22797
## ----------------------------------- ##
22798
## Main body of $CONFIG_STATUS script. ##
22799
## ----------------------------------- ##
22801
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22803
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22804
# Save the log message, to keep $0 and so on meaningful, and to
22805
# report actual input values of CONFIG_FILES etc. instead of their
22806
# values after options handling.
22808
This file was extended by GRUB $as_me 1.99~20101119-1, which was
22809
generated by GNU Autoconf 2.67. Invocation command line was
22811
CONFIG_FILES = $CONFIG_FILES
22812
CONFIG_HEADERS = $CONFIG_HEADERS
22813
CONFIG_LINKS = $CONFIG_LINKS
22814
CONFIG_COMMANDS = $CONFIG_COMMANDS
22817
on `(hostname || uname -n) 2>/dev/null | sed 1q`
22822
case $ac_config_files in *"
22823
"*) set x $ac_config_files; shift; ac_config_files=$*;;
22826
case $ac_config_headers in *"
22827
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22831
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22832
# Files that config.status was made for.
22833
config_files="$ac_config_files"
22834
config_headers="$ac_config_headers"
22835
config_links="$ac_config_links"
22836
config_commands="$ac_config_commands"
22840
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22842
\`$as_me' instantiates files and other configuration actions
22843
from templates according to the current configuration. Unless the files
22844
and actions are specified as TAGs, all are instantiated by default.
22846
Usage: $0 [OPTION]... [TAG]...
22848
-h, --help print this help, then exit
22849
-V, --version print version number and configuration settings, then exit
22850
--config print configuration, then exit
22851
-q, --quiet, --silent
22852
do not print progress messages
22853
-d, --debug don't remove temporary files
22854
--recheck update $as_me by reconfiguring in the same conditions
22855
--file=FILE[:TEMPLATE]
22856
instantiate the configuration file FILE
22857
--header=FILE[:TEMPLATE]
22858
instantiate the configuration header FILE
22860
Configuration files:
22863
Configuration headers:
22866
Configuration links:
22869
Configuration commands:
22872
Report bugs to <bug-grub@gnu.org>."
22875
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22876
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22878
GRUB config.status 1.99~20101119-1
22879
configured by $0, generated by GNU Autoconf 2.67,
22880
with options \\"\$ac_cs_config\\"
22882
Copyright (C) 2010 Free Software Foundation, Inc.
22883
This config.status script is free software; the Free Software Foundation
22884
gives unlimited permission to copy, distribute and modify it."
22891
test -n "\$AWK" || AWK=awk
22894
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22895
# The default lists apply if the user does not specify any file.
22901
ac_option=`expr "X$1" : 'X\([^=]*\)='`
22902
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22906
ac_option=`expr "X$1" : 'X\([^=]*\)='`
22918
# Handling of the options.
22919
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22921
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22922
$as_echo "$ac_cs_version"; exit ;;
22923
--config | --confi | --conf | --con | --co | --c )
22924
$as_echo "$ac_cs_config"; exit ;;
22925
--debug | --debu | --deb | --de | --d | -d )
22927
--file | --fil | --fi | --f )
22930
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22931
'') as_fn_error $? "missing file argument" ;;
22933
as_fn_append CONFIG_FILES " '$ac_optarg'"
22934
ac_need_defaults=false;;
22935
--header | --heade | --head | --hea )
22938
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22940
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22941
ac_need_defaults=false;;
22943
# Conflict between --help and --header
22944
as_fn_error $? "ambiguous option: \`$1'
22945
Try \`$0 --help' for more information.";;
22946
--help | --hel | -h )
22947
$as_echo "$ac_cs_usage"; exit ;;
22948
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
22949
| -silent | --silent | --silen | --sile | --sil | --si | --s)
22952
# This is an error.
22953
-*) as_fn_error $? "unrecognized option: \`$1'
22954
Try \`$0 --help' for more information." ;;
22956
*) as_fn_append ac_config_targets " $1"
22957
ac_need_defaults=false ;;
22963
ac_configure_extra_args=
22965
if $ac_cs_silent; then
22967
ac_configure_extra_args="$ac_configure_extra_args --silent"
22971
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22972
if \$ac_cs_recheck; then
22973
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22975
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22976
CONFIG_SHELL='$SHELL'
22977
export CONFIG_SHELL
22982
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22986
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22987
## Running $as_me. ##
22993
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22997
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22998
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
22999
# POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
23000
# from automake < 1.5.
23001
eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
23002
# Capture the value of LINGUAS because we need it to compute CATALOGS.
23003
LINGUAS="${LINGUAS-%UNSET%}"
23008
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23010
# Handling of arguments.
23011
for ac_config_target in $ac_config_targets
23013
case $ac_config_target in
23014
"config-util.h") CONFIG_HEADERS="$CONFIG_HEADERS config-util.h" ;;
23015
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23016
"po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
23017
"include/grub/cpu") CONFIG_LINKS="$CONFIG_LINKS include/grub/cpu:include/grub/$target_cpu" ;;
23018
"include/grub/machine") CONFIG_LINKS="$CONFIG_LINKS include/grub/machine:include/grub/$target_cpu/$platform" ;;
23019
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23020
"grub-core/Makefile") CONFIG_FILES="$CONFIG_FILES grub-core/Makefile" ;;
23021
"grub-core/gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES grub-core/gnulib/Makefile" ;;
23022
"po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
23023
"docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
23024
"util/bash-completion.d/Makefile") CONFIG_FILES="$CONFIG_FILES util/bash-completion.d/Makefile" ;;
23025
"stamp-h") CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
23026
"config.h") CONFIG_FILES="$CONFIG_FILES config.h" ;;
23028
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
23033
# If the user did not use the arguments to specify the items to instantiate,
23034
# then the envvar interface is used. Set only those that are not.
23035
# We use the long form for the default assignment because of an extremely
23036
# bizarre bug on SunOS 4.1.3.
23037
if $ac_need_defaults; then
23038
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23039
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23040
test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
23041
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23044
# Have a temporary directory for convenience. Make it in the build tree
23045
# simply because there is no reason against having it here, and in addition,
23046
# creating and moving files from /tmp can sometimes cause problems.
23047
# Hook for its removal unless debugging.
23048
# Note that there is a small window in which the directory will not be cleaned:
23049
# after its creation but before its name has been assigned to `$tmp'.
23053
trap 'exit_status=$?
23054
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23056
trap 'as_fn_exit 1' 1 2 13 15
23058
# Create a (secure) tmp directory for tmp files.
23061
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23062
test -n "$tmp" && test -d "$tmp"
23065
tmp=./conf$$-$RANDOM
23066
(umask 077 && mkdir "$tmp")
23067
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23069
# Set up the scripts for CONFIG_FILES section.
23070
# No need to generate them if there are no CONFIG_FILES.
23071
# This happens for instance with `./config.status config.h'.
23072
if test -n "$CONFIG_FILES"; then
23075
ac_cr=`echo X | tr X '\015'`
23076
# On cygwin, bash can eat \r inside `` if the user requested igncr.
23077
# But we know of no other shell where ac_cr would be empty at this
23078
# point, so we can use a bashism as a fallback.
23079
if test "x$ac_cr" = x; then
23080
eval ac_cr=\$\'\\r\'
23082
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23083
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23086
ac_cs_awk_cr=$ac_cr
23089
echo 'BEGIN {' >"$tmp/subs1.awk" &&
23094
echo "cat >conf$$subs.awk <<_ACEOF" &&
23095
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23097
} >conf$$subs.sh ||
23098
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23099
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23101
for ac_last_try in false false false false false :; do
23102
. ./conf$$subs.sh ||
23103
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23105
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23106
if test $ac_delim_n = $ac_delim_num; then
23108
elif $ac_last_try; then
23109
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23111
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23114
rm -f conf$$subs.sh
23116
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23117
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23121
s/^/S["/; s/!.*/"]=/
23131
s/\(.\{148\}\)..*/\1/
23133
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23138
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23145
s/\(.\{148\}\)..*/\1/
23147
s/["\\]/\\&/g; s/^/"/; s/$/"/
23151
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23156
' <conf$$subs.awk | sed '
23161
' >>$CONFIG_STATUS || ac_write_fail=1
23162
rm -f conf$$subs.awk
23163
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23165
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23166
for (key in S) S_is_set[key] = 1
23172
nfields = split(line, field, "@")
23174
len = length(field[1])
23175
for (i = 2; i < nfields; i++) {
23177
keylen = length(key)
23178
if (S_is_set[key]) {
23180
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23181
len += length(value) + length(field[++i])
23192
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23193
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23194
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23197
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23198
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23201
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23202
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23203
# trailing colons and then remove the whole line if VPATH becomes empty
23204
# (actually we leave an empty line to preserve line numbers).
23205
if test "x$srcdir" = x.; then
23206
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23224
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23225
fi # test -n "$CONFIG_FILES"
23227
# Set up the scripts for CONFIG_HEADERS section.
23228
# No need to generate them if there are no CONFIG_HEADERS.
23229
# This happens for instance with `./config.status Makefile'.
23230
if test -n "$CONFIG_HEADERS"; then
23231
cat >"$tmp/defines.awk" <<\_ACAWK ||
23235
# Transform confdefs.h into an awk script `defines.awk', embedded as
23236
# here-document in config.status, that substitutes the proper values into
23237
# config.h.in to produce config.h.
23239
# Create a delimiter string that does not exist in confdefs.h, to ease
23240
# handling of long lines.
23242
for ac_last_try in false false :; do
23243
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23244
if test -z "$ac_t"; then
23246
elif $ac_last_try; then
23247
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23249
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23253
# For the awk script, D is an array of macro values keyed by name,
23254
# likewise P contains macro parameters if any. Preserve backslash
23255
# newline sequences.
23257
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23259
s/.\{148\}/&'"$ac_delim"'/g
23262
s/^[ ]*#[ ]*define[ ][ ]*/ /
23269
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23271
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23275
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23276
D["\1"]=" \3\\\\\\n"\\/p
23278
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23283
s/.\{148\}/&'"$ac_delim"'/g
23288
s/["\\]/\\&/g; s/^/"/; s/$/"/p
23291
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23293
' <confdefs.h | sed '
23294
s/'"$ac_delim"'/"\\\
23295
"/g' >>$CONFIG_STATUS || ac_write_fail=1
23297
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23298
for (key in D) D_is_set[key] = 1
23301
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23303
split(line, arg, " ")
23304
if (arg[1] == "#") {
23308
defundef = substr(arg[1], 2)
23311
split(mac1, mac2, "(") #)
23313
prefix = substr(line, 1, index(line, defundef) - 1)
23314
if (D_is_set[macro]) {
23315
# Preserve the white space surrounding the "#".
23316
print prefix "define", macro P[macro] D[macro]
23319
# Replace #undef with comments. This is necessary, for example,
23320
# in the case of _POSIX_SOURCE, which is predefined and required
23321
# on some systems where configure will not decide to define it.
23322
if (defundef == "undef") {
23323
print "/*", prefix defundef, macro, "*/"
23331
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23332
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23333
fi # test -n "$CONFIG_HEADERS"
23336
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
23341
:[FHLC]) ac_mode=$ac_tag; continue;;
23343
case $ac_mode$ac_tag in
23345
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
23346
:[FH]-) ac_tag=-:-;;
23347
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23364
-) ac_f="$tmp/stdin";;
23365
*) # Look for the file first in the build tree, then in the source tree
23366
# (if the path is not absolute). The absolute path cannot be DOS-style,
23367
# because $ac_f cannot contain `:'.
23371
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23373
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
23375
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23376
as_fn_append ac_file_inputs " '$ac_f'"
23379
# Let's still pretend it is `configure' which instantiates (i.e., don't
23380
# use $as_me), people would be surprised to read:
23381
# /* config.h. Generated by config.status. */
23382
configure_input='Generated from '`
23383
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23385
if test x"$ac_file" != x-; then
23386
configure_input="$ac_file. $configure_input"
23387
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23388
$as_echo "$as_me: creating $ac_file" >&6;}
23390
# Neutralize special characters interpreted by sed in replacement strings.
23391
case $configure_input in #(
23392
*\&* | *\|* | *\\* )
23393
ac_sed_conf_input=`$as_echo "$configure_input" |
23394
sed 's/[\\\\&|]/\\\\&/g'`;; #(
23395
*) ac_sed_conf_input=$configure_input;;
23399
*:-:* | *:-) cat >"$tmp/stdin" \
23400
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23405
ac_dir=`$as_dirname -- "$ac_file" ||
23406
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23407
X"$ac_file" : 'X\(//\)[^/]' \| \
23408
X"$ac_file" : 'X\(//\)$' \| \
23409
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23410
$as_echo X"$ac_file" |
23411
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23415
/^X\(\/\/\)[^/].*/{
23428
as_dir="$ac_dir"; as_fn_mkdir_p
23432
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23434
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23435
# A ".." for each directory in $ac_dir_suffix.
23436
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23437
case $ac_top_builddir_sub in
23438
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23439
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23442
ac_abs_top_builddir=$ac_pwd
23443
ac_abs_builddir=$ac_pwd$ac_dir_suffix
23444
# for backward compatibility:
23445
ac_top_builddir=$ac_top_build_prefix
23448
.) # We are building in place.
23450
ac_top_srcdir=$ac_top_builddir_sub
23451
ac_abs_top_srcdir=$ac_pwd ;;
23452
[\\/]* | ?:[\\/]* ) # Absolute name.
23453
ac_srcdir=$srcdir$ac_dir_suffix;
23454
ac_top_srcdir=$srcdir
23455
ac_abs_top_srcdir=$srcdir ;;
23456
*) # Relative name.
23457
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23458
ac_top_srcdir=$ac_top_build_prefix$srcdir
23459
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23461
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23471
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23472
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23474
ac_MKDIR_P=$MKDIR_P
23476
[\\/$]* | ?:[\\/]* ) ;;
23477
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23481
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23482
# If the template does not know about datarootdir, expand it.
23483
# FIXME: This hack should be removed a few years after 2.60.
23484
ac_datarootdir_hack=; ac_datarootdir_seen=
23495
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23496
*datarootdir*) ac_datarootdir_seen=yes;;
23497
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23498
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23499
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23501
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23502
ac_datarootdir_hack='
23503
s&@datadir@&$datadir&g
23504
s&@docdir@&$docdir&g
23505
s&@infodir@&$infodir&g
23506
s&@localedir@&$localedir&g
23507
s&@mandir@&$mandir&g
23508
s&\\\${datarootdir}&$datarootdir&g' ;;
23512
# Neutralize VPATH when `$srcdir' = `.'.
23513
# Shell code in configure.ac might set extrasub.
23514
# FIXME: do we really want to maintain this feature?
23515
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23516
ac_sed_extra="$ac_vpsub
23519
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23521
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23522
s|@configure_input@|$ac_sed_conf_input|;t t
23523
s&@top_builddir@&$ac_top_builddir_sub&;t t
23524
s&@top_build_prefix@&$ac_top_build_prefix&;t t
23525
s&@srcdir@&$ac_srcdir&;t t
23526
s&@abs_srcdir@&$ac_abs_srcdir&;t t
23527
s&@top_srcdir@&$ac_top_srcdir&;t t
23528
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23529
s&@builddir@&$ac_builddir&;t t
23530
s&@abs_builddir@&$ac_abs_builddir&;t t
23531
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23532
s&@INSTALL@&$ac_INSTALL&;t t
23533
s&@MKDIR_P@&$ac_MKDIR_P&;t t
23534
$ac_datarootdir_hack
23536
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
23537
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
23539
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23540
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23541
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23542
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23543
which seems to be undefined. Please make sure it is defined" >&5
23544
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23545
which seems to be undefined. Please make sure it is defined" >&2;}
23549
-) cat "$tmp/out" && rm -f "$tmp/out";;
23550
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23552
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
23558
if test x"$ac_file" != x-; then
23560
$as_echo "/* $configure_input */" \
23561
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23562
} >"$tmp/config.h" \
23563
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
23564
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23565
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23566
$as_echo "$as_me: $ac_file is unchanged" >&6;}
23569
mv "$tmp/config.h" "$ac_file" \
23570
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
23573
$as_echo "/* $configure_input */" \
23574
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23575
|| as_fn_error $? "could not create -" "$LINENO" 5
23577
# Compute "$ac_file"'s index in $config_headers.
23580
for _am_header in $config_headers :; do
23581
case $_am_header in
23582
$_am_arg | $_am_arg:* )
23585
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
23588
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23589
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23590
X"$_am_arg" : 'X\(//\)[^/]' \| \
23591
X"$_am_arg" : 'X\(//\)$' \| \
23592
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23593
$as_echo X"$_am_arg" |
23594
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23598
/^X\(\/\/\)[^/].*/{
23610
s/.*/./; q'`/stamp-h$_am_stamp_count
23617
if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
23620
# Prefer the file from the source tree if names are identical.
23621
if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
23622
ac_source=$srcdir/$ac_source
23625
{ $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
23626
$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
23628
if test ! -r "$ac_source"; then
23629
as_fn_error $? "$ac_source: file not found" "$LINENO" 5
23633
# Try a relative symlink, then a hard link, then a copy.
23635
[\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
23636
*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
23638
ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
23639
ln "$ac_source" "$ac_file" 2>/dev/null ||
23640
cp -p "$ac_source" "$ac_file" ||
23641
as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
23644
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23645
$as_echo "$as_me: executing $ac_file commands" >&6;}
23650
case $ac_file$ac_mode in
23651
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23652
# Autoconf 2.62 quotes --file arguments for eval, but not when files
23653
# are listed without --file. Let's play safe and only enable the eval
23654
# if we detect the quoting.
23655
case $CONFIG_FILES in
23656
*\'*) eval set x "$CONFIG_FILES" ;;
23657
*) set x $CONFIG_FILES ;;
23662
# Strip MF so we end up with the name of the file.
23663
mf=`echo "$mf" | sed -e 's/:.*$//'`
23664
# Check whether this is an Automake generated Makefile or not.
23665
# We used to match only the files named `Makefile.in', but
23666
# some people rename them; so instead we look at the file content.
23667
# Grep'ing the first line is not enough: some people post-process
23668
# each Makefile.in and add a new line on top of each file to say so.
23669
# Grep'ing the whole file is not good either: AIX grep has a line
23670
# limit of 2048, but all sed's we know have understand at least 4000.
23671
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23672
dirpart=`$as_dirname -- "$mf" ||
23673
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23674
X"$mf" : 'X\(//\)[^/]' \| \
23675
X"$mf" : 'X\(//\)$' \| \
23676
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23678
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23682
/^X\(\/\/\)[^/].*/{
23698
# Extract the definition of DEPDIR, am__include, and am__quote
23699
# from the Makefile without running `make'.
23700
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23701
test -z "$DEPDIR" && continue
23702
am__include=`sed -n 's/^am__include = //p' < "$mf"`
23703
test -z "am__include" && continue
23704
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23705
# When using ansi2knr, U may be empty or an underscore; expand it
23706
U=`sed -n 's/^U = //p' < "$mf"`
23707
# Find all dependency output files, they are included files with
23708
# $(DEPDIR) in their names. We invoke sed twice because it is the
23709
# simplest approach to changing $(DEPDIR) to its actual value in the
23711
for file in `sed -n "
23712
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23713
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23714
# Make sure the directory exists.
23715
test -f "$dirpart/$file" && continue
23716
fdir=`$as_dirname -- "$file" ||
23717
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23718
X"$file" : 'X\(//\)[^/]' \| \
23719
X"$file" : 'X\(//\)$' \| \
23720
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23721
$as_echo X"$file" |
23722
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23726
/^X\(\/\/\)[^/].*/{
23739
as_dir=$dirpart/$fdir; as_fn_mkdir_p
23740
# echo "creating $dirpart/$file"
23741
echo '# dummy' > "$dirpart/$file"
23746
"po-directories":C)
23747
for ac_file in $CONFIG_FILES; do
23748
# Support "outfile[:infile[:infile...]]"
23750
*:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23752
# PO directories have a Makefile.in generated from Makefile.in.in.
23753
case "$ac_file" in */Makefile.in)
23754
# Adjust a relative srcdir.
23755
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23756
ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
23757
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23758
# In autoconf-2.13 it is called $ac_given_srcdir.
23759
# In autoconf-2.50 it is called $srcdir.
23760
test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23761
case "$ac_given_srcdir" in
23762
.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23763
/*) top_srcdir="$ac_given_srcdir" ;;
23764
*) top_srcdir="$ac_dots$ac_given_srcdir" ;;
23766
# Treat a directory as a PO directory if and only if it has a
23767
# POTFILES.in file. This allows packages to have multiple PO
23768
# directories under different names or in different locations.
23769
if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23770
rm -f "$ac_dir/POTFILES"
23771
test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23772
cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
23773
POMAKEFILEDEPS="POTFILES.in"
23774
# ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
23775
# on $ac_dir but don't depend on user-specified configuration
23777
if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23778
# The LINGUAS file contains the set of available languages.
23779
if test -n "$OBSOLETE_ALL_LINGUAS"; then
23780
test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23782
ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23783
# Hide the ALL_LINGUAS assigment from automake < 1.5.
23784
eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
23785
POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23787
# The set of available languages was given in configure.in.
23788
# Hide the ALL_LINGUAS assigment from automake < 1.5.
23789
eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
23792
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
23793
# Compute UPDATEPOFILES
23794
# as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
23795
# Compute DUMMYPOFILES
23796
# as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
23798
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
23799
case "$ac_given_srcdir" in
23801
*) srcdirpre='$(srcdir)/' ;;
23807
for lang in $ALL_LINGUAS; do
23808
POFILES="$POFILES $srcdirpre$lang.po"
23809
UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
23810
DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
23811
GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23813
# CATALOGS depends on both $ac_dir and the user's LINGUAS
23814
# environment variable.
23816
if test -n "$ALL_LINGUAS"; then
23817
for presentlang in $ALL_LINGUAS; do
23819
if test "%UNSET%" != "$LINGUAS"; then
23820
desiredlanguages="$LINGUAS"
23822
desiredlanguages="$ALL_LINGUAS"
23824
for desiredlang in $desiredlanguages; do
23825
# Use the presentlang catalog if desiredlang is
23826
# a. equal to presentlang, or
23827
# b. a variant of presentlang (because in this case,
23828
# presentlang can be used as a fallback for messages
23829
# which are not translated in the desiredlang catalog).
23830
case "$desiredlang" in
23831
"$presentlang"*) useit=yes;;
23834
if test $useit = yes; then
23835
INST_LINGUAS="$INST_LINGUAS $presentlang"
23840
if test -n "$INST_LINGUAS"; then
23841
for lang in $INST_LINGUAS; do
23842
CATALOGS="$CATALOGS $lang.gmo"
23845
test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
23846
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"
23847
for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
23848
if test -f "$f"; then
23850
*.orig | *.bak | *~) ;;
23851
*) cat "$f" >> "$ac_dir/Makefile" ;;
23859
"stamp-h":F) echo timestamp > stamp-h ;;
23867
ac_clean_files=$ac_clean_files_save
23869
test $ac_write_fail = 0 ||
23870
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23873
# configure is writing to config.log, and then calls config.status.
23874
# config.status does its own redirection, appending to config.log.
23875
# Unfortunately, on DOS this fails, as config.log is still kept open
23876
# by configure, so config.status won't be able to write to it; its
23877
# output is simply discarded. So we exec the FD to /dev/null,
23878
# effectively closing config.log, so it can be properly (re)opened and
23879
# appended to by config.status. When coming back to configure, we
23880
# need to make the FD available again.
23881
if test "$no_create" != yes; then
23883
ac_config_status_args=
23884
test "$silent" = yes &&
23885
ac_config_status_args="$ac_config_status_args --quiet"
23887
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23889
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
23890
# would make configure fail if this is the last instruction.
23891
$ac_cs_success || as_fn_exit 1
23893
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23894
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23895
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23899
echo "*******************************************************"
23900
echo GRUB2 will be compiled with following components:
23901
echo Platform: "$target_cpu"-"$platform"
23902
if [ x"$platform" = xemu ]; then
23903
if [ x"$grub_emu_usb_excuse" = x ]; then
23904
echo USB support for grub-emu: Yes
23906
echo USB support for grub-emu: No "($grub_emu_usb_excuse)"
23908
if [ x"$grub_emu_sdl_excuse" = x ]; then
23909
echo SDL support for grub-emu: Yes
23911
echo SDL support for grub-emu: No "($grub_emu_sdl_excuse)"
23913
if [ x"$grub_emu_pci_excuse" = x ]; then
23914
echo PCI support for grub-emu: Yes
23916
echo PCI support for grub-emu: No "($grub_emu_pci_excuse)"
23919
if test x"$device_mapper_excuse" = x ; then
23920
echo With devmapper support: Yes
23922
echo With devmapper support: No "($device_mapper_excuse)"
23924
if [ x"$enable_mm_debug" = xyes ]; then
23925
echo With memory debugging: Yes
23927
echo With memory debugging: No
23929
if [ x"$efiemu_excuse" = x ]; then
23930
echo efiemu runtime: Yes
23932
echo efiemu runtime: No "($efiemu_excuse)"
23934
if [ x"$grub_mkfont_excuse" = x ]; then
23935
echo grub-mkfont: Yes
23937
echo grub-mkfont: No "($grub_mkfont_excuse)"
23939
echo "*******************************************************"