2
@%:@ Guess values for system-dependent variables and create Makefiles.
3
@%:@ Generated by GNU Autoconf 2.67 for GRUB 1.99~rc1.
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 @%:@(
149
set -o posix ;; @%:@(
155
as_required="as_fn_return () { (exit \$1); }
156
as_fn_success () { as_fn_return 0; }
157
as_fn_failure () { as_fn_return 1; }
158
as_fn_ret_success () { return 0; }
159
as_fn_ret_failure () { return 1; }
162
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
exitcode=1; echo positional parameters were not saved.
171
test x\$exitcode = x0 || exit 1"
172
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
test \$(( 1 + 1 )) = 2 || exit 1"
177
if (eval "$as_required") 2>/dev/null; then :
182
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190
test -z "$as_dir" && as_dir=.
192
case $as_dir in @%:@(
194
for as_base in sh bash ksh sh5; do
195
# Try only shells that exist, to save several forks.
196
as_shell=$as_dir/$as_base
197
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199
CONFIG_SHELL=$as_shell as_have_required=yes
200
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210
CONFIG_SHELL=$SHELL as_have_required=yes
215
if test "x$CONFIG_SHELL" != x; then :
216
# We cannot yet assume a decent shell, so we have to provide a
217
# neutralization value for shells without unset; and this also
218
# works around shells that cannot unset nonexistent variables.
221
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226
if test x$as_have_required = xno; then :
227
$as_echo "$0: This script requires a shell more modern than all"
228
$as_echo "$0: the shells that I found on your system."
229
if test x${ZSH_VERSION+set} = xset ; then
230
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
233
$as_echo "$0: Please tell bug-autoconf@gnu.org and bug-grub@gnu.org
234
$0: about your system, including any error possibly output
235
$0: before this message. Then install a modern shell, or
236
$0: manually run the script under such a shell if you do
243
SHELL=${CONFIG_SHELL-/bin/sh}
245
# Unset more variables known to interfere with behavior of common tools.
246
CLICOLOR_FORCE= GREP_OPTIONS=
247
unset CLICOLOR_FORCE GREP_OPTIONS
249
## --------------------- ##
250
## M4sh Shell Functions. ##
251
## --------------------- ##
254
@%:@ Portably unset VAR.
257
{ eval $1=; unset $1;}
261
@%:@ as_fn_set_status STATUS
262
@%:@ -----------------------
263
@%:@ Set @S|@? to STATUS, without forking.
267
} @%:@ as_fn_set_status
269
@%:@ as_fn_exit STATUS
270
@%:@ -----------------
271
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281
@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
286
-*) as_dir=./$as_dir;;
288
test -d "$as_dir" || eval $as_mkdir_p || {
292
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295
as_dirs="'$as_qdir' $as_dirs"
296
as_dir=`$as_dirname -- "$as_dir" ||
297
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298
X"$as_dir" : 'X\(//\)[^/]' \| \
299
X"$as_dir" : 'X\(//\)$' \| \
300
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301
$as_echo X"$as_dir" |
302
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319
test -d "$as_dir" && break
321
test -z "$as_dirs" || eval "mkdir $as_dirs"
322
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
326
@%:@ as_fn_append VAR VALUE
327
@%:@ ----------------------
328
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
329
@%:@ advantage of any shell optimizations that allow amortized linear growth over
330
@%:@ repeated appends, instead of the typical quadratic growth present in naive
331
@%:@ implementations.
332
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333
eval 'as_fn_append ()
344
@%:@ as_fn_arith ARG...
345
@%:@ ------------------
346
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
347
@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
348
@%:@ must be portable across @S|@(()) and expr.
349
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357
as_val=`expr "$@" || test $? -eq 1`
362
@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
363
@%:@ ----------------------------------------
364
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366
@%:@ script with STATUS, 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~rc1'
556
PACKAGE_STRING='GRUB 1.99~rc1'
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
613
COND_HAVE_ASM_USCORE_FALSE
614
COND_HAVE_ASM_USCORE_TRUE
615
COND_ENABLE_EFIEMU_FALSE
616
COND_ENABLE_EFIEMU_TRUE
619
COND_GRUB_PE2ELF_FALSE
620
COND_GRUB_PE2ELF_TRUE
621
COND_HAVE_FONT_SOURCE_FALSE
622
COND_HAVE_FONT_SOURCE_TRUE
623
COND_GRUB_MKFONT_FALSE
624
COND_GRUB_MKFONT_TRUE
625
COND_GRUB_EMU_PCI_FALSE
626
COND_GRUB_EMU_PCI_TRUE
627
COND_GRUB_EMU_SDL_FALSE
628
COND_GRUB_EMU_SDL_TRUE
629
COND_GRUB_EMU_USB_FALSE
630
COND_GRUB_EMU_USB_TRUE
633
COND_HOST_KFREEBSD_FALSE
634
COND_HOST_KFREEBSD_TRUE
635
COND_HOST_WINDOWS_FALSE
636
COND_HOST_WINDOWS_TRUE
637
COND_HOST_NETBSD_FALSE
638
COND_HOST_NETBSD_TRUE
639
COND_HOST_LINUX_FALSE
645
COND_powerpc_ieee1275_FALSE
646
COND_powerpc_ieee1275_TRUE
647
COND_sparc64_ieee1275_FALSE
648
COND_sparc64_ieee1275_TRUE
649
COND_mips_qemu_mips_FALSE
650
COND_mips_qemu_mips_TRUE
651
COND_mips_yeeloong_FALSE
652
COND_mips_yeeloong_TRUE
653
COND_x86_64_efi_FALSE
655
COND_i386_multiboot_FALSE
656
COND_i386_multiboot_TRUE
657
COND_i386_coreboot_FALSE
658
COND_i386_coreboot_TRUE
659
COND_i386_ieee1275_FALSE
660
COND_i386_ieee1275_TRUE
669
NEED_REGISTER_FRAME_INFO
670
NEED_ENABLE_EXECUTE_STACK
677
GRUB_BOOT_MACHINE_LINK_ADDR
699
TARGET_IMG_BASE_LDOPT
723
NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
730
NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
733
NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
737
NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H
739
NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H
741
NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
743
NEXT_AS_FIRST_DIRECTIVE_STRING_H
745
HAVE_DECL_STRNCASECMP
748
NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
750
NEXT_AS_FIRST_DIRECTIVE_STDIO_H
761
HAVE_SIGNED_SIG_ATOMIC_T
764
BITSIZEOF_SIG_ATOMIC_T
770
NEXT_AS_FIRST_DIRECTIVE_STDINT_H
774
HAVE_UNSIGNED_LONG_LONG_INT
776
NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
783
APPLE_UNIVERSAL_BUILD
860
REPLACE_CANONICALIZE_FILE_NAME
865
HAVE_STRUCT_RANDOM_DATA
882
HAVE_CANONICALIZE_FILE_NAME
906
GNULIB_CANONICALIZE_FILE_NAME
910
LOCALCHARSET_TESTS_ENVIRONMENT
912
HAVE_LANGINFO_YESEXPR
914
HAVE_LANGINFO_T_FMT_AMPM
915
HAVE_LANGINFO_CODESET
917
NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
923
NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
925
UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
926
UNISTD_H_HAVE_WINSOCK2_H
952
HAVE_DECL_GETUSERSHELL
953
HAVE_DECL_GETPAGESIZE
989
GNULIB_UNISTD_H_SIGPIPE
990
GNULIB_UNISTD_H_GETOPT
1011
GNULIB_GETDTABLESIZE
1012
GNULIB_GETDOMAINNAME
1032
REPLACE_STDIO_WRITE_FUNCS
1041
REPLACE_OBSTACK_PRINTF
1063
HAVE_DECL_OBSTACK_PRINTF
1067
GNULIB_VSPRINTF_POSIX
1069
GNULIB_VPRINTF_POSIX
1071
GNULIB_VFPRINTF_POSIX
1076
GNULIB_STDIO_H_SIGPIPE
1077
GNULIB_SPRINTF_POSIX
1089
GNULIB_OBSTACK_PRINTF_POSIX
1090
GNULIB_OBSTACK_PRINTF
1102
GNULIB_FPRINTF_POSIX
1110
NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1119
NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1121
PRAGMA_SYSTEM_HEADER
1122
INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1162
GL_COND_LIBTOOL_FALSE
1163
GL_COND_LIBTOOL_TRUE
1174
XGETTEXT_EXTRA_OPTIONS
1182
GETTEXT_MACRO_VERSION
1184
am__fastdepCCAS_FALSE
1185
am__fastdepCCAS_TRUE
1229
INSTALL_STRIP_PROGRAM
1283
program_transform_name
1296
enable_option_checking
1298
enable_dependency_tracking
1302
with_libiconv_prefix
1313
enable_device_mapper
1315
ac_precious_vars='build_alias
1330
# Initialize some variables set by options.
1332
ac_init_version=false
1333
ac_unrecognized_opts=
1334
ac_unrecognized_sep=
1335
# The variables have the same names as the options, with
1336
# dashes changed to underlines.
1337
cache_file=/dev/null
1344
program_transform_name=s,x,x,
1352
# Installation directory options.
1353
# These are left unexpanded so users can "make install exec_prefix=/foo"
1354
# and all the variables that are supposed to be based on exec_prefix
1355
# by default will actually change.
1356
# Use braces instead of parens because sh, perl, etc. also accept them.
1357
# (The list follows the same order as the GNU Coding Standards.)
1358
bindir='${exec_prefix}/bin'
1359
sbindir='${exec_prefix}/sbin'
1360
libexecdir='${exec_prefix}/libexec'
1361
datarootdir='${prefix}/share'
1362
datadir='${datarootdir}'
1363
sysconfdir='${prefix}/etc'
1364
sharedstatedir='${prefix}/com'
1365
localstatedir='${prefix}/var'
1366
includedir='${prefix}/include'
1367
oldincludedir='/usr/include'
1368
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1369
infodir='${datarootdir}/info'
1374
libdir='${exec_prefix}/lib'
1375
localedir='${datarootdir}/locale'
1376
mandir='${datarootdir}/man'
1382
# If the previous option needs an argument, assign it.
1383
if test -n "$ac_prev"; then
1384
eval $ac_prev=\$ac_option
1390
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1395
# Accept the important Cygnus configure options, so we can diagnose typos.
1397
case $ac_dashdash$ac_option in
1401
-bindir | --bindir | --bindi | --bind | --bin | --bi)
1403
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1404
bindir=$ac_optarg ;;
1406
-build | --build | --buil | --bui | --bu)
1407
ac_prev=build_alias ;;
1408
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
1409
build_alias=$ac_optarg ;;
1411
-cache-file | --cache-file | --cache-fil | --cache-fi \
1412
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1413
ac_prev=cache_file ;;
1414
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1415
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1416
cache_file=$ac_optarg ;;
1418
--config-cache | -C)
1419
cache_file=config.cache ;;
1421
-datadir | --datadir | --datadi | --datad)
1423
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1424
datadir=$ac_optarg ;;
1426
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1427
| --dataroo | --dataro | --datar)
1428
ac_prev=datarootdir ;;
1429
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1430
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1431
datarootdir=$ac_optarg ;;
1433
-disable-* | --disable-*)
1434
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1435
# Reject names that are not valid shell variable names.
1436
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1437
as_fn_error $? "invalid feature name: $ac_useropt"
1438
ac_useropt_orig=$ac_useropt
1439
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1440
case $ac_user_opts in
1442
"enable_$ac_useropt"
1444
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1445
ac_unrecognized_sep=', ';;
1447
eval enable_$ac_useropt=no ;;
1449
-docdir | --docdir | --docdi | --doc | --do)
1451
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1452
docdir=$ac_optarg ;;
1454
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1456
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1457
dvidir=$ac_optarg ;;
1459
-enable-* | --enable-*)
1460
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1461
# Reject names that are not valid shell variable names.
1462
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1463
as_fn_error $? "invalid feature name: $ac_useropt"
1464
ac_useropt_orig=$ac_useropt
1465
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1466
case $ac_user_opts in
1468
"enable_$ac_useropt"
1470
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1471
ac_unrecognized_sep=', ';;
1473
eval enable_$ac_useropt=\$ac_optarg ;;
1475
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1476
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1477
| --exec | --exe | --ex)
1478
ac_prev=exec_prefix ;;
1479
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1480
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1481
| --exec=* | --exe=* | --ex=*)
1482
exec_prefix=$ac_optarg ;;
1484
-gas | --gas | --ga | --g)
1485
# Obsolete; use --with-gas.
1488
-help | --help | --hel | --he | -h)
1489
ac_init_help=long ;;
1490
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1491
ac_init_help=recursive ;;
1492
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1493
ac_init_help=short ;;
1495
-host | --host | --hos | --ho)
1496
ac_prev=host_alias ;;
1497
-host=* | --host=* | --hos=* | --ho=*)
1498
host_alias=$ac_optarg ;;
1500
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1502
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1504
htmldir=$ac_optarg ;;
1506
-includedir | --includedir | --includedi | --included | --include \
1507
| --includ | --inclu | --incl | --inc)
1508
ac_prev=includedir ;;
1509
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1510
| --includ=* | --inclu=* | --incl=* | --inc=*)
1511
includedir=$ac_optarg ;;
1513
-infodir | --infodir | --infodi | --infod | --info | --inf)
1515
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1516
infodir=$ac_optarg ;;
1518
-libdir | --libdir | --libdi | --libd)
1520
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1521
libdir=$ac_optarg ;;
1523
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1524
| --libexe | --libex | --libe)
1525
ac_prev=libexecdir ;;
1526
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1527
| --libexe=* | --libex=* | --libe=*)
1528
libexecdir=$ac_optarg ;;
1530
-localedir | --localedir | --localedi | --localed | --locale)
1531
ac_prev=localedir ;;
1532
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1533
localedir=$ac_optarg ;;
1535
-localstatedir | --localstatedir | --localstatedi | --localstated \
1536
| --localstate | --localstat | --localsta | --localst | --locals)
1537
ac_prev=localstatedir ;;
1538
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1539
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1540
localstatedir=$ac_optarg ;;
1542
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1544
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1545
mandir=$ac_optarg ;;
1547
-nfp | --nfp | --nf)
1548
# Obsolete; use --without-fp.
1551
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1552
| --no-cr | --no-c | -n)
1555
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1556
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1559
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1560
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1561
| --oldin | --oldi | --old | --ol | --o)
1562
ac_prev=oldincludedir ;;
1563
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1564
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1565
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1566
oldincludedir=$ac_optarg ;;
1568
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1570
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1571
prefix=$ac_optarg ;;
1573
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1574
| --program-pre | --program-pr | --program-p)
1575
ac_prev=program_prefix ;;
1576
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1577
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1578
program_prefix=$ac_optarg ;;
1580
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1581
| --program-suf | --program-su | --program-s)
1582
ac_prev=program_suffix ;;
1583
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1584
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1585
program_suffix=$ac_optarg ;;
1587
-program-transform-name | --program-transform-name \
1588
| --program-transform-nam | --program-transform-na \
1589
| --program-transform-n | --program-transform- \
1590
| --program-transform | --program-transfor \
1591
| --program-transfo | --program-transf \
1592
| --program-trans | --program-tran \
1593
| --progr-tra | --program-tr | --program-t)
1594
ac_prev=program_transform_name ;;
1595
-program-transform-name=* | --program-transform-name=* \
1596
| --program-transform-nam=* | --program-transform-na=* \
1597
| --program-transform-n=* | --program-transform-=* \
1598
| --program-transform=* | --program-transfor=* \
1599
| --program-transfo=* | --program-transf=* \
1600
| --program-trans=* | --program-tran=* \
1601
| --progr-tra=* | --program-tr=* | --program-t=*)
1602
program_transform_name=$ac_optarg ;;
1604
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1606
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1607
pdfdir=$ac_optarg ;;
1609
-psdir | --psdir | --psdi | --psd | --ps)
1611
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1614
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1615
| -silent | --silent | --silen | --sile | --sil)
1618
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1620
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1622
sbindir=$ac_optarg ;;
1624
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1625
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1626
| --sharedst | --shareds | --shared | --share | --shar \
1628
ac_prev=sharedstatedir ;;
1629
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1630
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1631
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1633
sharedstatedir=$ac_optarg ;;
1635
-site | --site | --sit)
1637
-site=* | --site=* | --sit=*)
1640
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1642
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1643
srcdir=$ac_optarg ;;
1645
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1646
| --syscon | --sysco | --sysc | --sys | --sy)
1647
ac_prev=sysconfdir ;;
1648
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1649
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1650
sysconfdir=$ac_optarg ;;
1652
-target | --target | --targe | --targ | --tar | --ta | --t)
1653
ac_prev=target_alias ;;
1654
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1655
target_alias=$ac_optarg ;;
1657
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1660
-version | --version | --versio | --versi | --vers | -V)
1661
ac_init_version=: ;;
1664
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1665
# Reject names that are not valid shell variable names.
1666
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1667
as_fn_error $? "invalid package name: $ac_useropt"
1668
ac_useropt_orig=$ac_useropt
1669
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1670
case $ac_user_opts in
1674
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1675
ac_unrecognized_sep=', ';;
1677
eval with_$ac_useropt=\$ac_optarg ;;
1679
-without-* | --without-*)
1680
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1681
# Reject names that are not valid shell variable names.
1682
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1683
as_fn_error $? "invalid package name: $ac_useropt"
1684
ac_useropt_orig=$ac_useropt
1685
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1686
case $ac_user_opts in
1690
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1691
ac_unrecognized_sep=', ';;
1693
eval with_$ac_useropt=no ;;
1696
# Obsolete; use --with-x.
1699
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1700
| --x-incl | --x-inc | --x-in | --x-i)
1701
ac_prev=x_includes ;;
1702
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1703
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1704
x_includes=$ac_optarg ;;
1706
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1707
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1708
ac_prev=x_libraries ;;
1709
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1710
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1711
x_libraries=$ac_optarg ;;
1713
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1714
Try \`$0 --help' for more information"
1718
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1719
# Reject names that are not valid shell variable names.
1720
case $ac_envvar in #(
1721
'' | [0-9]* | *[!_$as_cr_alnum]* )
1722
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1724
eval $ac_envvar=\$ac_optarg
1725
export $ac_envvar ;;
1728
# FIXME: should be removed in autoconf 3.0.
1729
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1730
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1731
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1732
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1738
if test -n "$ac_prev"; then
1739
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1740
as_fn_error $? "missing argument to $ac_option"
1743
if test -n "$ac_unrecognized_opts"; then
1744
case $enable_option_checking in
1746
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1747
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1751
# Check all directory arguments for consistency.
1752
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1753
datadir sysconfdir sharedstatedir localstatedir includedir \
1754
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1755
libdir localedir mandir
1757
eval ac_val=\$$ac_var
1758
# Remove trailing slashes.
1761
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1762
eval $ac_var=\$ac_val;;
1764
# Be sure to have absolute directory names.
1766
[\\/$]* | ?:[\\/]* ) continue;;
1767
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1769
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1772
# There might be people who depend on the old broken behavior: `$host'
1773
# used to hold the argument of --host etc.
1774
# FIXME: To remove some day.
1777
target=$target_alias
1779
# FIXME: To remove some day.
1780
if test "x$host_alias" != x; then
1781
if test "x$build_alias" = x; then
1782
cross_compiling=maybe
1783
$as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1784
If a cross compiler is detected then cross compile mode will be used" >&2
1785
elif test "x$build_alias" != "x$host_alias"; then
1791
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1793
test "$silent" = yes && exec 6>/dev/null
1796
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1797
ac_ls_di=`ls -di .` &&
1798
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1799
as_fn_error $? "working directory cannot be determined"
1800
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1801
as_fn_error $? "pwd does not report name of working directory"
1804
# Find the source files, if location was not specified.
1805
if test -z "$srcdir"; then
1806
ac_srcdir_defaulted=yes
1807
# Try the directory containing this script, then the parent directory.
1808
ac_confdir=`$as_dirname -- "$as_myself" ||
1809
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1810
X"$as_myself" : 'X\(//\)[^/]' \| \
1811
X"$as_myself" : 'X\(//\)$' \| \
1812
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1813
$as_echo X"$as_myself" |
1814
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1832
if test ! -r "$srcdir/$ac_unique_file"; then
1836
ac_srcdir_defaulted=no
1838
if test ! -r "$srcdir/$ac_unique_file"; then
1839
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1840
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1842
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1844
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1846
# When building in place, set srcdir=.
1847
if test "$ac_abs_confdir" = "$ac_pwd"; then
1850
# Remove unnecessary trailing slashes from srcdir.
1851
# Double slashes in file names in object file debugging info
1852
# mess up M-x gdb in Emacs.
1854
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1856
for ac_var in $ac_precious_vars; do
1857
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1858
eval ac_env_${ac_var}_value=\$${ac_var}
1859
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1860
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1864
# Report the --help message.
1866
if test "$ac_init_help" = "long"; then
1867
# Omit some internal or obsolete options to make the list less imposing.
1868
# This message is too long to be a string in the A/UX 3.1 sh.
1870
\`configure' configures GRUB 1.99~rc1 to adapt to many kinds of systems.
1872
Usage: $0 [OPTION]... [VAR=VALUE]...
1874
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1875
VAR=VALUE. See below for descriptions of some of the useful variables.
1877
Defaults for the options are specified in brackets.
1880
-h, --help display this help and exit
1881
--help=short display options specific to this package
1882
--help=recursive display the short help of all the included packages
1883
-V, --version display version information and exit
1884
-q, --quiet, --silent do not print \`checking ...' messages
1885
--cache-file=FILE cache test results in FILE [disabled]
1886
-C, --config-cache alias for \`--cache-file=config.cache'
1887
-n, --no-create do not create output files
1888
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1890
Installation directories:
1891
--prefix=PREFIX install architecture-independent files in PREFIX
1892
@<:@@S|@ac_default_prefix@:>@
1893
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1896
By default, \`make install' will install all the files in
1897
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1898
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1899
for instance \`--prefix=\$HOME'.
1901
For better control, use the options below.
1903
Fine tuning of the installation directories:
1904
--bindir=DIR user executables [EPREFIX/bin]
1905
--sbindir=DIR system admin executables [EPREFIX/sbin]
1906
--libexecdir=DIR program executables [EPREFIX/libexec]
1907
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1908
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1909
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1910
--libdir=DIR object code libraries [EPREFIX/lib]
1911
--includedir=DIR C header files [PREFIX/include]
1912
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1913
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1914
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1915
--infodir=DIR info documentation [DATAROOTDIR/info]
1916
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1917
--mandir=DIR man documentation [DATAROOTDIR/man]
1918
--docdir=DIR documentation root @<:@DATAROOTDIR/doc/grub@:>@
1919
--htmldir=DIR html documentation [DOCDIR]
1920
--dvidir=DIR dvi documentation [DOCDIR]
1921
--pdfdir=DIR pdf documentation [DOCDIR]
1922
--psdir=DIR ps documentation [DOCDIR]
1928
--program-prefix=PREFIX prepend PREFIX to installed program names
1929
--program-suffix=SUFFIX append SUFFIX to installed program names
1930
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1933
--build=BUILD configure for building on BUILD [guessed]
1934
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1935
--target=TARGET configure for building compilers for TARGET [HOST]
1939
if test -n "$ac_init_help"; then
1940
case $ac_init_help in
1941
short | recursive ) echo "Configuration of GRUB 1.99~rc1:";;
1946
--disable-option-checking ignore unrecognized --enable/--with options
1947
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1948
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1949
--disable-dependency-tracking speeds up one-time build
1950
--enable-dependency-tracking do not reject slow dependency extractors
1951
--disable-nls do not use Native Language Support
1952
--disable-rpath do not hardcode runtime library paths
1953
--disable-largefile omit support for large files
1954
--disable-werror do not use -Werror when building GRUB
1955
--enable-efiemu build and install the efiemu runtimes
1957
--enable-mm-debug include memory manager debugging
1958
--enable-grub-emu-usb build and install the `grub-emu' debugging utility
1959
with USB support (default=guessed)
1960
--enable-grub-emu-sdl build and install the `grub-emu' debugging utility
1961
with SDL support (default=guessed)
1962
--enable-grub-emu-pci build and install the `grub-emu' debugging utility
1963
with PCI support (potentially dangerous)
1965
--enable-grub-mkfont build and install the `grub-mkfont' utility
1967
--enable-device-mapper enable Linux device-mapper support (default=guessed)
1970
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1971
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1972
--with-platform=PLATFORM
1973
select the host platform @<:@@<:@guessed@:>@@:>@
1974
--with-gnu-ld assume the C compiler uses GNU ld default=no
1975
--with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1976
--without-libiconv-prefix don't search for libiconv in includedir and libdir
1977
--with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1978
--without-libintl-prefix don't search for libintl in includedir and libdir
1979
--without-included-regex
1980
don't compile regex; this is the default on systems
1981
with recent-enough versions of the GNU C Library
1982
(use with caution on other systems).
1984
Some influential environment variables:
1985
CC C compiler command
1986
CFLAGS C compiler flags
1987
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1988
nonstandard directory <lib dir>
1989
LIBS libraries to pass to the linker, e.g. -l<library>
1990
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1991
you have headers in a nonstandard directory <include dir>
1992
YACC The `Yet Another C Compiler' implementation to use. Defaults to
1993
the first program found out of: `bison -y', `byacc', `yacc'.
1994
YFLAGS The list of arguments that will be passed by default to @S|@YACC.
1995
This script will default YFLAGS to the empty string to avoid a
1996
default value of `-d' given by some make applications.
1998
CCAS assembler compiler command (defaults to CC)
1999
CCASFLAGS assembler compiler flags (defaults to CFLAGS)
2001
Use these variables to override the choices made by `configure' or to help
2002
it to find libraries and programs with nonstandard names/locations.
2004
Report bugs to <bug-grub@gnu.org>.
2009
if test "$ac_init_help" = "recursive"; then
2010
# If there are subdirs, report their specific --help.
2011
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2012
test -d "$ac_dir" ||
2013
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2018
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2020
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2021
# A ".." for each directory in $ac_dir_suffix.
2022
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2023
case $ac_top_builddir_sub in
2024
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2025
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2028
ac_abs_top_builddir=$ac_pwd
2029
ac_abs_builddir=$ac_pwd$ac_dir_suffix
2030
# for backward compatibility:
2031
ac_top_builddir=$ac_top_build_prefix
2034
.) # We are building in place.
2036
ac_top_srcdir=$ac_top_builddir_sub
2037
ac_abs_top_srcdir=$ac_pwd ;;
2038
[\\/]* | ?:[\\/]* ) # Absolute name.
2039
ac_srcdir=$srcdir$ac_dir_suffix;
2040
ac_top_srcdir=$srcdir
2041
ac_abs_top_srcdir=$srcdir ;;
2043
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2044
ac_top_srcdir=$ac_top_build_prefix$srcdir
2045
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2047
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2049
cd "$ac_dir" || { ac_status=$?; continue; }
2050
# Check for guested configure.
2051
if test -f "$ac_srcdir/configure.gnu"; then
2053
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
2054
elif test -f "$ac_srcdir/configure"; then
2056
$SHELL "$ac_srcdir/configure" --help=recursive
2058
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2060
cd "$ac_pwd" || { ac_status=$?; break; }
2064
test -n "$ac_init_help" && exit $ac_status
2065
if $ac_init_version; then
2067
GRUB configure 1.99~rc1
2068
generated by GNU Autoconf 2.67
2070
Copyright (C) 2010 Free Software Foundation, Inc.
2071
This configure script is free software; the Free Software Foundation
2072
gives unlimited permission to copy, distribute and modify it.
2077
## ------------------------ ##
2078
## Autoconf initialization. ##
2079
## ------------------------ ##
2081
@%:@ ac_fn_c_try_compile LINENO
2082
@%:@ --------------------------
2083
@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
2084
ac_fn_c_try_compile ()
2086
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2087
rm -f conftest.$ac_objext
2088
if { { ac_try="$ac_compile"
2090
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091
*) ac_try_echo=$ac_try;;
2093
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2094
$as_echo "$ac_try_echo"; } >&5
2095
(eval "$ac_compile") 2>conftest.err
2097
if test -s conftest.err; then
2098
grep -v '^ *+' conftest.err >conftest.er1
2099
cat conftest.er1 >&5
2100
mv -f conftest.er1 conftest.err
2102
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2103
test $ac_status = 0; } && {
2104
test -z "$ac_c_werror_flag" ||
2105
test ! -s conftest.err
2106
} && test -s conftest.$ac_objext; then :
2109
$as_echo "$as_me: failed program was:" >&5
2110
sed 's/^/| /' conftest.$ac_ext >&5
2114
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2115
as_fn_set_status $ac_retval
2117
} @%:@ ac_fn_c_try_compile
2119
@%:@ ac_fn_c_try_link LINENO
2120
@%:@ -----------------------
2121
@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
2124
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125
rm -f conftest.$ac_objext conftest$ac_exeext
2126
if { { ac_try="$ac_link"
2128
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2129
*) ac_try_echo=$ac_try;;
2131
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2132
$as_echo "$ac_try_echo"; } >&5
2133
(eval "$ac_link") 2>conftest.err
2135
if test -s conftest.err; then
2136
grep -v '^ *+' conftest.err >conftest.er1
2137
cat conftest.er1 >&5
2138
mv -f conftest.er1 conftest.err
2140
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2141
test $ac_status = 0; } && {
2142
test -z "$ac_c_werror_flag" ||
2143
test ! -s conftest.err
2144
} && test -s conftest$ac_exeext && {
2145
test "$cross_compiling" = yes ||
2146
$as_test_x conftest$ac_exeext
2150
$as_echo "$as_me: failed program was:" >&5
2151
sed 's/^/| /' conftest.$ac_ext >&5
2155
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2156
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2157
# interfere with the next link command; also delete a directory that is
2158
# left behind by Apple's compiler. We do this before executing the actions.
2159
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2160
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2161
as_fn_set_status $ac_retval
2163
} @%:@ ac_fn_c_try_link
2165
@%:@ ac_fn_c_try_cpp LINENO
2166
@%:@ ----------------------
2167
@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
2170
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2171
if { { ac_try="$ac_cpp conftest.$ac_ext"
2173
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2174
*) ac_try_echo=$ac_try;;
2176
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2177
$as_echo "$ac_try_echo"; } >&5
2178
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2180
if test -s conftest.err; then
2181
grep -v '^ *+' conftest.err >conftest.er1
2182
cat conftest.er1 >&5
2183
mv -f conftest.er1 conftest.err
2185
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2186
test $ac_status = 0; } > conftest.i && {
2187
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2188
test ! -s conftest.err
2192
$as_echo "$as_me: failed program was:" >&5
2193
sed 's/^/| /' conftest.$ac_ext >&5
2197
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2198
as_fn_set_status $ac_retval
2200
} @%:@ ac_fn_c_try_cpp
2202
@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2203
@%:@ -------------------------------------------------------
2204
@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
2205
@%:@ the include files in INCLUDES and setting the cache variable VAR
2207
ac_fn_c_check_header_mongrel ()
2209
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2210
if eval "test \"\${$3+set}\"" = set; then :
2211
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2212
$as_echo_n "checking for $2... " >&6; }
2213
if eval "test \"\${$3+set}\"" = set; then :
2214
$as_echo_n "(cached) " >&6
2217
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2218
$as_echo "$ac_res" >&6; }
2220
# Is the header compilable?
2221
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2222
$as_echo_n "checking $2 usability... " >&6; }
2223
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224
/* end confdefs.h. */
2228
if ac_fn_c_try_compile "$LINENO"; then :
2229
ac_header_compiler=yes
2231
ac_header_compiler=no
2233
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2235
$as_echo "$ac_header_compiler" >&6; }
2237
# Is the header present?
2238
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2239
$as_echo_n "checking $2 presence... " >&6; }
2240
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241
/* end confdefs.h. */
2244
if ac_fn_c_try_cpp "$LINENO"; then :
2245
ac_header_preproc=yes
2247
ac_header_preproc=no
2249
rm -f conftest.err conftest.i conftest.$ac_ext
2250
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2251
$as_echo "$ac_header_preproc" >&6; }
2253
# So? What about this header?
2254
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2256
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2257
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2258
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2259
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2262
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2263
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2264
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2265
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2266
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2267
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2268
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2269
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2270
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2271
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2272
( $as_echo "## ------------------------------- ##
2273
## Report this to bug-grub@gnu.org ##
2274
## ------------------------------- ##"
2275
) | sed "s/^/$as_me: WARNING: /" >&2
2278
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2279
$as_echo_n "checking for $2... " >&6; }
2280
if eval "test \"\${$3+set}\"" = set; then :
2281
$as_echo_n "(cached) " >&6
2283
eval "$3=\$ac_header_compiler"
2286
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2287
$as_echo "$ac_res" >&6; }
2289
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2291
} @%:@ ac_fn_c_check_header_mongrel
2293
@%:@ ac_fn_c_try_run LINENO
2294
@%:@ ----------------------
2295
@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
2296
@%:@ that executables *can* be run.
2299
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2300
if { { ac_try="$ac_link"
2302
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303
*) ac_try_echo=$ac_try;;
2305
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2306
$as_echo "$ac_try_echo"; } >&5
2307
(eval "$ac_link") 2>&5
2309
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2310
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2311
{ { case "(($ac_try" in
2312
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2313
*) ac_try_echo=$ac_try;;
2315
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2316
$as_echo "$ac_try_echo"; } >&5
2317
(eval "$ac_try") 2>&5
2319
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2320
test $ac_status = 0; }; }; then :
2323
$as_echo "$as_me: program exited with status $ac_status" >&5
2324
$as_echo "$as_me: failed program was:" >&5
2325
sed 's/^/| /' conftest.$ac_ext >&5
2327
ac_retval=$ac_status
2329
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2330
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2331
as_fn_set_status $ac_retval
2333
} @%:@ ac_fn_c_try_run
2335
@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2336
@%:@ -------------------------------------------------------
2337
@%:@ Tests whether HEADER exists and can be compiled using the include files in
2338
@%:@ INCLUDES, setting the cache variable VAR accordingly.
2339
ac_fn_c_check_header_compile ()
2341
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2342
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2343
$as_echo_n "checking for $2... " >&6; }
2344
if eval "test \"\${$3+set}\"" = set; then :
2345
$as_echo_n "(cached) " >&6
2347
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348
/* end confdefs.h. */
2352
if ac_fn_c_try_compile "$LINENO"; then :
2357
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2360
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2361
$as_echo "$ac_res" >&6; }
2362
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2364
} @%:@ ac_fn_c_check_header_compile
2366
@%:@ ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2367
@%:@ --------------------------------------------
2368
@%:@ Tries to find the compile-time value of EXPR in a program that includes
2369
@%:@ INCLUDES, setting VAR accordingly. Returns whether the value could be
2371
ac_fn_c_compute_int ()
2373
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2374
if test "$cross_compiling" = yes; then
2375
# Depending upon the size, compute the lo and hi bounds.
2376
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377
/* end confdefs.h. */
2382
static int test_array @<:@1 - 2 * !(($2) >= 0)@:>@;
2383
test_array @<:@0@:>@ = 0
2389
if ac_fn_c_try_compile "$LINENO"; then :
2392
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2393
/* end confdefs.h. */
2398
static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2399
test_array @<:@0@:>@ = 0
2405
if ac_fn_c_try_compile "$LINENO"; then :
2406
ac_hi=$ac_mid; break
2408
as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2409
if test $ac_lo -le $ac_mid; then
2413
as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2415
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2418
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2419
/* end confdefs.h. */
2424
static int test_array @<:@1 - 2 * !(($2) < 0)@:>@;
2425
test_array @<:@0@:>@ = 0
2431
if ac_fn_c_try_compile "$LINENO"; then :
2434
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2435
/* end confdefs.h. */
2440
static int test_array @<:@1 - 2 * !(($2) >= $ac_mid)@:>@;
2441
test_array @<:@0@:>@ = 0
2447
if ac_fn_c_try_compile "$LINENO"; then :
2448
ac_lo=$ac_mid; break
2450
as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2451
if test $ac_mid -le $ac_hi; then
2455
as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2457
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2462
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2464
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2465
# Binary search between lo and hi bounds.
2466
while test "x$ac_lo" != "x$ac_hi"; do
2467
as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2468
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2469
/* end confdefs.h. */
2474
static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2475
test_array @<:@0@:>@ = 0
2481
if ac_fn_c_try_compile "$LINENO"; then :
2484
as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2486
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2488
case $ac_lo in @%:@((
2489
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2493
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2494
/* end confdefs.h. */
2496
static long int longval () { return $2; }
2497
static unsigned long int ulongval () { return $2; }
2498
@%:@include <stdio.h>
2499
@%:@include <stdlib.h>
2504
FILE *f = fopen ("conftest.val", "w");
2509
long int i = longval ();
2512
fprintf (f, "%ld", i);
2516
unsigned long int i = ulongval ();
2519
fprintf (f, "%lu", i);
2521
/* Do not output a trailing newline, as this causes \r\n confusion
2522
on some platforms. */
2523
return ferror (f) || fclose (f) != 0;
2529
if ac_fn_c_try_run "$LINENO"; then :
2530
echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2534
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2535
conftest.$ac_objext conftest.beam conftest.$ac_ext
2539
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2540
as_fn_set_status $ac_retval
2542
} @%:@ ac_fn_c_compute_int
2544
@%:@ ac_fn_c_check_func LINENO FUNC VAR
2545
@%:@ ----------------------------------
2546
@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
2547
ac_fn_c_check_func ()
2549
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2550
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2551
$as_echo_n "checking for $2... " >&6; }
2552
if eval "test \"\${$3+set}\"" = set; then :
2553
$as_echo_n "(cached) " >&6
2555
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556
/* end confdefs.h. */
2557
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2558
For example, HP-UX 11i <limits.h> declares gettimeofday. */
2559
#define $2 innocuous_$2
2561
/* System header to define __stub macros and hopefully few prototypes,
2562
which can conflict with char $2 (); below.
2563
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2564
<limits.h> exists even on freestanding compilers. */
2567
# include <limits.h>
2569
# include <assert.h>
2574
/* Override any GCC internal prototype to avoid an error.
2575
Use char because int might match the return type of a GCC
2576
builtin and then its argument prototype would still apply. */
2581
/* The GNU C library defines this for functions which it implements
2582
to always fail with ENOSYS. Some functions are actually named
2583
something starting with __ and the normal name is an alias. */
2584
#if defined __stub_$2 || defined __stub___$2
2596
if ac_fn_c_try_link "$LINENO"; then :
2601
rm -f core conftest.err conftest.$ac_objext \
2602
conftest$ac_exeext conftest.$ac_ext
2605
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2606
$as_echo "$ac_res" >&6; }
2607
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2609
} @%:@ ac_fn_c_check_func
2611
@%:@ ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2612
@%:@ ----------------------------------------------------
2613
@%:@ Tries to find if the field MEMBER exists in type AGGR, after including
2614
@%:@ INCLUDES, setting cache variable VAR accordingly.
2615
ac_fn_c_check_member ()
2617
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2618
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2619
$as_echo_n "checking for $2.$3... " >&6; }
2620
if eval "test \"\${$4+set}\"" = set; then :
2621
$as_echo_n "(cached) " >&6
2623
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624
/* end confdefs.h. */
2636
if ac_fn_c_try_compile "$LINENO"; then :
2639
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2640
/* end confdefs.h. */
2646
if (sizeof ac_aggr.$3)
2652
if ac_fn_c_try_compile "$LINENO"; then :
2657
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2659
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2662
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2663
$as_echo "$ac_res" >&6; }
2664
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2666
} @%:@ ac_fn_c_check_member
2668
@%:@ ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2669
@%:@ ---------------------------------------------
2670
@%:@ Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2672
ac_fn_c_check_decl ()
2674
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2675
as_decl_name=`echo $2|sed 's/ *(.*//'`
2676
as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2677
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2678
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2679
if eval "test \"\${$3+set}\"" = set; then :
2680
$as_echo_n "(cached) " >&6
2682
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2683
/* end confdefs.h. */
2688
@%:@ifndef $as_decl_name
2689
@%:@ifdef __cplusplus
2690
(void) $as_decl_use;
2692
(void) $as_decl_name;
2700
if ac_fn_c_try_compile "$LINENO"; then :
2705
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2708
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2709
$as_echo "$ac_res" >&6; }
2710
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2712
} @%:@ ac_fn_c_check_decl
2714
@%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2715
@%:@ -------------------------------------------
2716
@%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
2717
@%:@ variable VAR accordingly.
2718
ac_fn_c_check_type ()
2720
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2721
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2722
$as_echo_n "checking for $2... " >&6; }
2723
if eval "test \"\${$3+set}\"" = set; then :
2724
$as_echo_n "(cached) " >&6
2727
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2728
/* end confdefs.h. */
2739
if ac_fn_c_try_compile "$LINENO"; then :
2740
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2741
/* end confdefs.h. */
2752
if ac_fn_c_try_compile "$LINENO"; then :
2757
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2759
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2763
$as_echo "$ac_res" >&6; }
2764
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2766
} @%:@ ac_fn_c_check_type
2767
cat >config.log <<_ACEOF
2768
This file contains any messages produced by compilers while
2769
running configure, to aid debugging if configure makes a mistake.
2771
It was created by GRUB $as_me 1.99~rc1, which was
2772
generated by GNU Autoconf 2.67. Invocation command line was
2784
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2785
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2786
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2787
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2788
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2790
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2791
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2793
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2794
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2795
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2796
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2797
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2798
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2799
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2803
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807
test -z "$as_dir" && as_dir=.
2808
$as_echo "PATH: $as_dir"
2824
# Keep a trace of the command line.
2825
# Strip out --no-create and --no-recursion so they do not pile up.
2826
# Strip out --silent because we don't want to record it for future runs.
2827
# Also quote any args containing shell meta-characters.
2828
# Make two passes to allow for proper duplicate-argument suppression.
2832
ac_must_keep_next=false
2838
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2839
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
2840
| -silent | --silent | --silen | --sile | --sil)
2843
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2846
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2848
as_fn_append ac_configure_args1 " '$ac_arg'"
2849
if test $ac_must_keep_next = true; then
2850
ac_must_keep_next=false # Got value, back to normal.
2853
*=* | --config-cache | -C | -disable-* | --disable-* \
2854
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2855
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2856
| -with-* | --with-* | -without-* | --without-* | --x)
2857
case "$ac_configure_args0 " in
2858
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2861
-* ) ac_must_keep_next=true ;;
2864
as_fn_append ac_configure_args " '$ac_arg'"
2869
{ ac_configure_args0=; unset ac_configure_args0;}
2870
{ ac_configure_args1=; unset ac_configure_args1;}
2872
# When interrupted or exit'd, cleanup temporary files, and complete
2873
# config.log. We remove comments because anyway the quotes in there
2874
# would cause problems or look ugly.
2875
# WARNING: Use '\'' to represent an apostrophe within the trap.
2876
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2877
trap 'exit_status=$?
2878
# Save into config.log some information that might help in debugging.
2882
$as_echo "## ---------------- ##
2883
## Cache variables. ##
2884
## ---------------- ##"
2886
# The following way of writing the cache mishandles newlines in values,
2888
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2889
eval ac_val=\$$ac_var
2893
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2894
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2897
_ | IFS | as_nl) ;; #(
2898
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2899
*) { eval $ac_var=; unset $ac_var;} ;;
2904
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2905
*${as_nl}ac_space=\ *)
2907
"s/'\''/'\''\\\\'\'''\''/g;
2908
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2911
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2918
$as_echo "## ----------------- ##
2919
## Output variables. ##
2920
## ----------------- ##"
2922
for ac_var in $ac_subst_vars
2924
eval ac_val=\$$ac_var
2926
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2928
$as_echo "$ac_var='\''$ac_val'\''"
2932
if test -n "$ac_subst_files"; then
2933
$as_echo "## ------------------- ##
2934
## File substitutions. ##
2935
## ------------------- ##"
2937
for ac_var in $ac_subst_files
2939
eval ac_val=\$$ac_var
2941
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2943
$as_echo "$ac_var='\''$ac_val'\''"
2948
if test -s confdefs.h; then
2949
$as_echo "## ----------- ##
2956
test "$ac_signal" != 0 &&
2957
$as_echo "$as_me: caught signal $ac_signal"
2958
$as_echo "$as_me: exit $exit_status"
2960
rm -f core *.core core.conftest.* &&
2961
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2964
for ac_signal in 1 2 13 15; do
2965
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2969
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2970
rm -f -r conftest* confdefs.h
2972
$as_echo "/* confdefs.h */" > confdefs.h
2974
# Predefined preprocessor variables.
2976
cat >>confdefs.h <<_ACEOF
2977
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
2980
cat >>confdefs.h <<_ACEOF
2981
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2984
cat >>confdefs.h <<_ACEOF
2985
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2988
cat >>confdefs.h <<_ACEOF
2989
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
2992
cat >>confdefs.h <<_ACEOF
2993
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2996
cat >>confdefs.h <<_ACEOF
2997
@%:@define PACKAGE_URL "$PACKAGE_URL"
3001
# Let the site file select an alternate cache file if it wants to.
3002
# Prefer an explicitly selected file to automatically selected ones.
3005
if test -n "$CONFIG_SITE"; then
3006
# We do not want a PATH search for config.site.
3007
case $CONFIG_SITE in @%:@((
3008
-*) ac_site_file1=./$CONFIG_SITE;;
3009
*/*) ac_site_file1=$CONFIG_SITE;;
3010
*) ac_site_file1=./$CONFIG_SITE;;
3012
elif test "x$prefix" != xNONE; then
3013
ac_site_file1=$prefix/share/config.site
3014
ac_site_file2=$prefix/etc/config.site
3016
ac_site_file1=$ac_default_prefix/share/config.site
3017
ac_site_file2=$ac_default_prefix/etc/config.site
3019
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3021
test "x$ac_site_file" = xNONE && continue
3022
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3023
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3024
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3025
sed 's/^/| /' "$ac_site_file" >&5
3027
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3028
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3029
as_fn_error $? "failed to load site script $ac_site_file
3030
See \`config.log' for more details" "$LINENO" 5 ; }
3034
if test -r "$cache_file"; then
3035
# Some versions of bash will fail to source /dev/null (special files
3036
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
3037
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3038
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3039
$as_echo "$as_me: loading cache $cache_file" >&6;}
3041
[\\/]* | ?:[\\/]* ) . "$cache_file";;
3042
*) . "./$cache_file";;
3046
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3047
$as_echo "$as_me: creating cache $cache_file" >&6;}
3051
gt_needs="$gt_needs "
3052
as_fn_append ac_func_list " flockfile"
3053
as_fn_append ac_func_list " funlockfile"
3054
as_fn_append ac_header_list " features.h"
3055
as_fn_append ac_header_list " linewrap.h"
3056
as_fn_append ac_func_list " btowc"
3057
as_fn_append ac_header_list " errno.h"
3058
as_fn_append ac_header_list " float.h"
3059
as_fn_append ac_func_list " isblank"
3060
as_fn_append ac_func_list " iswctype"
3061
as_fn_append ac_func_list " mbsrtowcs"
3062
as_fn_append ac_func_list " mempcpy"
3063
as_fn_append ac_func_list " wmemchr"
3064
as_fn_append ac_func_list " wmemcpy"
3065
as_fn_append ac_func_list " wmempcpy"
3066
as_fn_append ac_header_list " wctype.h"
3067
as_fn_append ac_func_list " getdelim"
3068
gl_getopt_required=GNU
3069
as_fn_append ac_header_list " getopt.h"
3070
as_fn_append ac_header_list " langinfo.h"
3071
as_fn_append ac_func_list " mbsinit"
3072
as_fn_append ac_func_list " mbrtowc"
3073
as_fn_append ac_header_list " sys/mman.h"
3074
as_fn_append ac_func_list " mprotect"
3075
as_fn_append ac_func_list " memchr"
3076
as_fn_append ac_func_list " nl_langinfo"
3077
as_fn_append ac_header_list " locale.h"
3078
as_fn_append ac_func_list " wcscoll"
3079
as_fn_append ac_func_list " sleep"
3080
as_fn_append ac_header_list " stddef.h"
3081
as_fn_append ac_header_list " stdint.h"
3082
as_fn_append ac_header_list " wchar.h"
3083
as_fn_append ac_header_list " stdio.h"
3084
as_fn_append ac_header_list " stdlib.h"
3085
as_fn_append ac_header_list " sys/socket.h"
3086
as_fn_append ac_header_list " string.h"
3087
as_fn_append ac_header_list " strings.h"
3088
as_fn_append ac_func_list " strndup"
3089
as_fn_append ac_header_list " sys/wait.h"
3090
as_fn_append ac_header_list " sysexits.h"
3091
as_fn_append ac_header_list " unistd.h"
3092
as_fn_append ac_func_list " vasnprintf"
3093
as_fn_append ac_func_list " wcrtomb"
3094
as_fn_append ac_func_list " iswcntrl"
3095
as_fn_append ac_func_list " iswblank"
3096
# Check that the precious variables saved in the cache have kept the same
3098
ac_cache_corrupted=false
3099
for ac_var in $ac_precious_vars; do
3100
eval ac_old_set=\$ac_cv_env_${ac_var}_set
3101
eval ac_new_set=\$ac_env_${ac_var}_set
3102
eval ac_old_val=\$ac_cv_env_${ac_var}_value
3103
eval ac_new_val=\$ac_env_${ac_var}_value
3104
case $ac_old_set,$ac_new_set in
3106
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3107
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3108
ac_cache_corrupted=: ;;
3110
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3111
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3112
ac_cache_corrupted=: ;;
3115
if test "x$ac_old_val" != "x$ac_new_val"; then
3116
# differences in whitespace do not lead to failure.
3117
ac_old_val_w=`echo x $ac_old_val`
3118
ac_new_val_w=`echo x $ac_new_val`
3119
if test "$ac_old_val_w" != "$ac_new_val_w"; then
3120
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3121
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3122
ac_cache_corrupted=:
3124
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3125
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3126
eval $ac_var=\$ac_old_val
3128
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3129
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3130
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3131
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3134
# Pass precious variables to config.status.
3135
if test "$ac_new_set" = set; then
3137
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3138
*) ac_arg=$ac_var=$ac_new_val ;;
3140
case " $ac_configure_args " in
3141
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3142
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
3146
if $ac_cache_corrupted; then
3147
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3148
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3149
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3150
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3151
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3153
## -------------------- ##
3154
## Main body of script. ##
3155
## -------------------- ##
3158
ac_cpp='$CPP $CPPFLAGS'
3159
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3160
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3161
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3166
for ac_dir in build-aux "$srcdir"/build-aux; do
3167
if test -f "$ac_dir/install-sh"; then
3169
ac_install_sh="$ac_aux_dir/install-sh -c"
3171
elif test -f "$ac_dir/install.sh"; then
3173
ac_install_sh="$ac_aux_dir/install.sh -c"
3175
elif test -f "$ac_dir/shtool"; then
3177
ac_install_sh="$ac_aux_dir/shtool install -c"
3181
if test -z "$ac_aux_dir"; then
3182
as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3185
# These three variables are undocumented and unsupported,
3186
# and are intended to be withdrawn in a future Autoconf release.
3187
# They can cause serious problems if a builder's source tree is in a directory
3188
# whose full name contains unusual characters.
3189
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3190
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3191
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3195
# We don't want -g -O2 by default in CFLAGS
3198
# Checks for host and target systems.
3199
# Make sure we can run config.sub.
3200
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3201
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3203
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3204
$as_echo_n "checking build system type... " >&6; }
3205
if test "${ac_cv_build+set}" = set; then :
3206
$as_echo_n "(cached) " >&6
3208
ac_build_alias=$build_alias
3209
test "x$ac_build_alias" = x &&
3210
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3211
test "x$ac_build_alias" = x &&
3212
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3213
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3214
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3217
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3218
$as_echo "$ac_cv_build" >&6; }
3219
case $ac_cv_build in
3221
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3224
ac_save_IFS=$IFS; IFS='-'
3230
# Remember, the first character of IFS is used to create $*,
3231
# except with old shells:
3234
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3237
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3238
$as_echo_n "checking host system type... " >&6; }
3239
if test "${ac_cv_host+set}" = set; then :
3240
$as_echo_n "(cached) " >&6
3242
if test "x$host_alias" = x; then
3243
ac_cv_host=$ac_cv_build
3245
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3246
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3250
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3251
$as_echo "$ac_cv_host" >&6; }
3254
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3257
ac_save_IFS=$IFS; IFS='-'
3263
# Remember, the first character of IFS is used to create $*,
3264
# except with old shells:
3267
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3270
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3271
$as_echo_n "checking target system type... " >&6; }
3272
if test "${ac_cv_target+set}" = set; then :
3273
$as_echo_n "(cached) " >&6
3275
if test "x$target_alias" = x; then
3276
ac_cv_target=$ac_cv_host
3278
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3279
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3283
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3284
$as_echo "$ac_cv_target" >&6; }
3285
case $ac_cv_target in
3287
*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
3289
target=$ac_cv_target
3290
ac_save_IFS=$IFS; IFS='-'
3296
# Remember, the first character of IFS is used to create $*,
3297
# except with old shells:
3300
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3303
# The aliases save the names the user supplied, while $host etc.
3304
# will get canonicalized.
3305
test -n "$target_alias" &&
3306
test "$program_prefix$program_suffix$program_transform_name" = \
3308
program_prefix=${target_alias}-
3310
am__api_version='1.11'
3312
# Find a good install program. We prefer a C program (faster),
3313
# so one script is as good as another. But avoid the broken or
3314
# incompatible versions:
3315
# SysV /etc/install, /usr/sbin/install
3316
# SunOS /usr/etc/install
3317
# IRIX /sbin/install
3319
# AmigaOS /C/install, which installs bootblocks on floppy discs
3320
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3321
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3322
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3323
# OS/2's system install, which has a completely different semantic
3324
# ./install, which can be erroneously created by make from ./install.sh.
3325
# Reject install programs that cannot install multiple files.
3326
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3327
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3328
if test -z "$INSTALL"; then
3329
if test "${ac_cv_path_install+set}" = set; then :
3330
$as_echo_n "(cached) " >&6
3332
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336
test -z "$as_dir" && as_dir=.
3337
# Account for people who put trailing slashes in PATH elements.
3338
case $as_dir/ in @%:@((
3339
./ | .// | /[cC]/* | \
3340
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3341
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3344
# OSF1 and SCO ODT 3.0 have their own names for install.
3345
# Don't use installbsd from OSF since it installs stuff as root
3347
for ac_prog in ginstall scoinst install; do
3348
for ac_exec_ext in '' $ac_executable_extensions; do
3349
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3350
if test $ac_prog = install &&
3351
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3352
# AIX install. It has an incompatible calling convention.
3354
elif test $ac_prog = install &&
3355
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3356
# program-specific install script used by HP pwplus--don't use.
3359
rm -rf conftest.one conftest.two conftest.dir
3360
echo one > conftest.one
3361
echo two > conftest.two
3363
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3364
test -s conftest.one && test -s conftest.two &&
3365
test -s conftest.dir/conftest.one &&
3366
test -s conftest.dir/conftest.two
3368
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3381
rm -rf conftest.one conftest.two conftest.dir
3384
if test "${ac_cv_path_install+set}" = set; then
3385
INSTALL=$ac_cv_path_install
3387
# As a last resort, use the slow shell script. Don't cache a
3388
# value for INSTALL within a source directory, because that will
3389
# break other packages using the cache if that directory is
3390
# removed, or if the value is a relative name.
3391
INSTALL=$ac_install_sh
3394
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3395
$as_echo "$INSTALL" >&6; }
3397
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3398
# It thinks the first close brace ends the variable substitution.
3399
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3401
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3403
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3405
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3406
$as_echo_n "checking whether build environment is sane... " >&6; }
3409
echo timestamp > conftest.file
3410
# Reject unsafe characters in $srcdir or the absolute working directory
3411
# name. Accept space and tab only in the latter.
3415
*[\\\"\#\$\&\'\`$am_lf]*)
3416
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
3419
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3420
as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
3423
# Do `set' in a subshell so we don't clobber the current shell's
3424
# arguments. Must try -L first in case configure is actually a
3425
# symlink; some systems play weird games with the mod time of symlinks
3426
# (eg FreeBSD returns the mod time of the symlink's containing
3429
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3430
if test "$*" = "X"; then
3432
set X `ls -t "$srcdir/configure" conftest.file`
3435
if test "$*" != "X $srcdir/configure conftest.file" \
3436
&& test "$*" != "X conftest.file $srcdir/configure"; then
3438
# If neither matched, then we have a broken ls. This can happen
3439
# if, for instance, CONFIG_SHELL is bash and it inherits a
3440
# broken ls alias from the environment. This has actually
3441
# happened. Such a system could not be considered "sane".
3442
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3443
alias in your environment" "$LINENO" 5
3446
test "$2" = conftest.file
3452
as_fn_error $? "newly created file is older than distributed files!
3453
Check your system clock" "$LINENO" 5
3455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3456
$as_echo "yes" >&6; }
3457
test "$program_prefix" != NONE &&
3458
program_transform_name="s&^&$program_prefix&;$program_transform_name"
3459
# Use a double $ so make ignores it.
3460
test "$program_suffix" != NONE &&
3461
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3462
# Double any \ or $.
3463
# By default was `s,x,x', remove it if useless.
3464
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3465
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3467
# expand $ac_aux_dir to an absolute path
3468
am_aux_dir=`cd $ac_aux_dir && pwd`
3470
if test x"${MISSING+set}" != xset; then
3473
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3475
MISSING="\${SHELL} $am_aux_dir/missing" ;;
3478
# Use eval to expand $SHELL
3479
if eval "$MISSING --run true"; then
3480
am_missing_run="$MISSING --run "
3483
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3484
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3487
if test x"${install_sh}" != xset; then
3490
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3492
install_sh="\${SHELL} $am_aux_dir/install-sh"
3496
# Installed binaries are usually stripped using `strip' when the user
3497
# run `make install-strip'. However `strip' might not be the right
3498
# tool to use in cross-compilation environments, therefore Automake
3499
# will honor the `STRIP' environment variable to overrule this program.
3500
if test "$cross_compiling" != no; then
3501
if test -n "$ac_tool_prefix"; then
3502
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3503
set dummy ${ac_tool_prefix}strip; ac_word=$2
3504
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3505
$as_echo_n "checking for $ac_word... " >&6; }
3506
if test "${ac_cv_prog_STRIP+set}" = set; then :
3507
$as_echo_n "(cached) " >&6
3509
if test -n "$STRIP"; then
3510
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3512
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516
test -z "$as_dir" && as_dir=.
3517
for ac_exec_ext in '' $ac_executable_extensions; do
3518
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3519
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3520
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3529
STRIP=$ac_cv_prog_STRIP
3530
if test -n "$STRIP"; then
3531
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3532
$as_echo "$STRIP" >&6; }
3534
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535
$as_echo "no" >&6; }
3540
if test -z "$ac_cv_prog_STRIP"; then
3542
# Extract the first word of "strip", so it can be a program name with args.
3543
set dummy strip; ac_word=$2
3544
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545
$as_echo_n "checking for $ac_word... " >&6; }
3546
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3547
$as_echo_n "(cached) " >&6
3549
if test -n "$ac_ct_STRIP"; then
3550
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3552
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556
test -z "$as_dir" && as_dir=.
3557
for ac_exec_ext in '' $ac_executable_extensions; do
3558
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3559
ac_cv_prog_ac_ct_STRIP="strip"
3560
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3569
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3570
if test -n "$ac_ct_STRIP"; then
3571
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3572
$as_echo "$ac_ct_STRIP" >&6; }
3574
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575
$as_echo "no" >&6; }
3578
if test "x$ac_ct_STRIP" = x; then
3581
case $cross_compiling:$ac_tool_warned in
3583
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3584
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3585
ac_tool_warned=yes ;;
3590
STRIP="$ac_cv_prog_STRIP"
3594
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3596
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3597
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3598
if test -z "$MKDIR_P"; then
3599
if test "${ac_cv_path_mkdir+set}" = set; then :
3600
$as_echo_n "(cached) " >&6
3602
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3606
test -z "$as_dir" && as_dir=.
3607
for ac_prog in mkdir gmkdir; do
3608
for ac_exec_ext in '' $ac_executable_extensions; do
3609
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3610
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3611
'mkdir (GNU coreutils) '* | \
3612
'mkdir (coreutils) '* | \
3613
'mkdir (fileutils) '4.1*)
3614
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3624
test -d ./--version && rmdir ./--version
3625
if test "${ac_cv_path_mkdir+set}" = set; then
3626
MKDIR_P="$ac_cv_path_mkdir -p"
3628
# As a last resort, use the slow shell script. Don't cache a
3629
# value for MKDIR_P within a source directory, because that will
3630
# break other packages using the cache if that directory is
3631
# removed, or if the value is a relative name.
3632
MKDIR_P="$ac_install_sh -d"
3635
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3636
$as_echo "$MKDIR_P" >&6; }
3641
[\\/$]* | ?:[\\/]*) ;;
3642
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3645
for ac_prog in gawk mawk nawk awk
3647
# Extract the first word of "$ac_prog", so it can be a program name with args.
3648
set dummy $ac_prog; ac_word=$2
3649
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3650
$as_echo_n "checking for $ac_word... " >&6; }
3651
if test "${ac_cv_prog_AWK+set}" = set; then :
3652
$as_echo_n "(cached) " >&6
3654
if test -n "$AWK"; then
3655
ac_cv_prog_AWK="$AWK" # Let the user override the test.
3657
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661
test -z "$as_dir" && as_dir=.
3662
for ac_exec_ext in '' $ac_executable_extensions; do
3663
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3664
ac_cv_prog_AWK="$ac_prog"
3665
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3675
if test -n "$AWK"; then
3676
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3677
$as_echo "$AWK" >&6; }
3679
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3680
$as_echo "no" >&6; }
3684
test -n "$AWK" && break
3687
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3688
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3690
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3691
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3692
$as_echo_n "(cached) " >&6
3694
cat >conftest.make <<\_ACEOF
3697
@echo '@@@%%%=$(MAKE)=@@@%%%'
3699
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3700
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3702
eval ac_cv_prog_make_${ac_make}_set=yes;;
3704
eval ac_cv_prog_make_${ac_make}_set=no;;
3708
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3709
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3710
$as_echo "yes" >&6; }
3713
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3714
$as_echo "no" >&6; }
3715
SET_MAKE="MAKE=${MAKE-make}"
3718
rm -rf .tst 2>/dev/null
3719
mkdir .tst 2>/dev/null
3720
if test -d .tst; then
3725
rmdir .tst 2>/dev/null
3727
if test "`cd $srcdir && pwd`" != "`pwd`"; then
3728
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3729
# is not polluted with repeated "-I."
3730
am__isrc=' -I$(srcdir)'
3731
# test to see if srcdir already configured
3732
if test -f $srcdir/config.status; then
3733
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3737
# test whether we have cygpath
3738
if test -z "$CYGPATH_W"; then
3739
if (cygpath --version) >/dev/null 2>/dev/null; then
3740
CYGPATH_W='cygpath -w'
3747
# Define the identity of the package.
3752
cat >>confdefs.h <<_ACEOF
3753
@%:@define PACKAGE "$PACKAGE"
3757
cat >>confdefs.h <<_ACEOF
3758
@%:@define VERSION "$VERSION"
3761
# Some tools Automake needs.
3763
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3766
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3769
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3772
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3775
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3777
# We need awk for the "check" target. The system "awk" is bad on
3779
# Always define AMTAR for backward compatibility.
3781
AMTAR=${AMTAR-"${am_missing_run}tar"}
3783
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3791
ac_config_headers="$ac_config_headers config-util.h"
3794
# Program name transformations
3797
# Optimization flag. Allow user to override.
3798
if test "x$TARGET_CFLAGS" = x; then
3799
TARGET_CFLAGS="$TARGET_CFLAGS -Os"
3802
# Default HOST_CPPFLAGS
3803
HOST_CPPFLAGS="$HOST_CPPFLAGS -Wall -W"
3804
HOST_CPPFLAGS="$HOST_CPPFLAGS -I\$(top_builddir)/include"
3805
HOST_CPPFLAGS="$HOST_CPPFLAGS -DGRUB_UTIL=1"
3806
HOST_CPPFLAGS="$HOST_CPPFLAGS -DGRUB_LIBDIR=\\\"\$(pkglibdir)\\\""
3807
HOST_CPPFLAGS="$HOST_CPPFLAGS -DLOCALEDIR=\\\"\$(localedir)\\\""
3809
TARGET_CPPFLAGS="$TARGET_CPPFLAGS -Wall -W"
3810
TARGET_CPPFLAGS="$TARGET_CPPFLAGS -I\$(top_srcdir)/include"
3811
TARGET_CPPFLAGS="$TARGET_CPPFLAGS -I\$(top_builddir)/include"
3813
case "$target_cpu" in
3814
i[3456]86) target_cpu=i386 ;;
3815
amd64) target_cpu=x86_64 ;;
3816
sparc) target_cpu=sparc64 ;;
3819
machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_CPU_MIPSEL=1";
3823
machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_CPU_MIPS=1";
3827
# Specify the platform (such as firmware).
3829
@%:@ Check whether --with-platform was given.
3830
if test "${with_platform+set}" = set; then :
3831
withval=$with_platform;
3835
# Guess the platform if not specified.
3836
if test "x$with_platform" = x; then
3837
case "$target_cpu"-"$target_vendor" in
3838
i386-apple) platform=efi ;;
3839
i386-*) platform=pc ;;
3840
x86_64-apple) platform=efi ;;
3841
x86_64-*) platform=pc ;;
3842
powerpc-*) platform=ieee1275 ;;
3843
powerpc64-*) platform=ieee1275 ;;
3844
sparc64-*) platform=ieee1275 ;;
3845
mips-*) platform=yeeloong ;;
3846
*) as_fn_error $? "unsupported CPU: \"$target_cpu\"" "$LINENO" 5 ;;
3849
platform="$with_platform"
3852
case "$target_cpu"-"$platform" in
3855
x86_64-*) target_cpu=i386 ;;
3856
powerpc64-ieee1275) target_cpu=powerpc ;;
3859
# Check if the platform is supported, make final adjustments.
3860
case "$target_cpu"-"$platform" in
3866
i386-linuxbios) platform=coreboot ;;
3869
powerpc-ieee1275) ;;
3870
sparc64-ieee1275) ;;
3874
*) as_fn_error $? "platform \"$platform\" is not supported for target CPU \"$target_cpu\"" "$LINENO" 5 ;;
3877
case "$target_cpu" in
3878
i386 | powerpc) target_m32=1 ;;
3879
x86_64 | sparc64) target_m64=1 ;;
3883
mingw32*) host_os=cygwin ;;
3886
# This normalizes the names, and creates a new variable ("host_kernel")
3887
# while at it, since the mapping is not always 1:1 (e.g. different OSes
3888
# using the same kernel type).
3890
gnu*) host_kernel=hurd ;;
3891
linux*) host_kernel=linux ;;
3892
freebsd* | kfreebsd*-gnu) host_kernel=kfreebsd ;;
3893
netbsd*) host_kernel=netbsd ;;
3894
cygwin) host_kernel=windows ;;
3898
coreboot) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_COREBOOT=1" ;;
3899
multiboot) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MULTIBOOT=1" ;;
3900
efi) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_EFI=1" ;;
3901
ieee1275) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_IEEE1275=1" ;;
3902
qemu) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_QEMU=1" ;;
3903
pc) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_PCBIOS=1" ;;
3904
emu) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_EMU=1" ;;
3905
yeeloong) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_YEELOONG=1 -DGRUB_MACHINE_MIPS_BONITO=1" ;;
3906
qemu-mips) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_QEMU_MIPS=1 -DGRUB_MACHINE_MIPS_BONITO=1" ;;
3908
case "$target_cpu" in
3909
mips) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS=1" ;;
3910
sparc64) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_SPARC64=1" ;;
3912
machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE=`echo ${target_cpu}_$platform | sed y,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ,`"
3914
HOST_CPPFLAGS="$HOST_CPPFLAGS $machine_CPPFLAGS"
3915
TARGET_CPPFLAGS="$TARGET_CPPFLAGS $machine_CPPFLAGS"
3924
# Define default variables
3927
# Because /boot is used for the boot block in NetBSD and OpenBSD,
3929
*) bootdirname='boot' ;;
3931
bootdirname=`echo "$bootdirname" | sed "$program_transform_name"`
3934
cat >>confdefs.h <<_ACEOF
3935
@%:@define GRUB_BOOT_DIR_NAME "$bootdirname"
3939
grubdirname=`echo "$PACKAGE" | sed "$program_transform_name"`
3942
cat >>confdefs.h <<_ACEOF
3943
@%:@define GRUB_DIR_NAME "$grubdirname"
3948
# Checks for build programs.
3951
# Although cmp is listed in the GNU Coding Standards as a command which
3952
# can used directly, OpenBSD lacks cmp in the default installation.
3955
# Extract the first word of "$ac_prog", so it can be a program name with args.
3956
set dummy $ac_prog; ac_word=$2
3957
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3958
$as_echo_n "checking for $ac_word... " >&6; }
3959
if test "${ac_cv_prog_CMP+set}" = set; then :
3960
$as_echo_n "(cached) " >&6
3962
if test -n "$CMP"; then
3963
ac_cv_prog_CMP="$CMP" # Let the user override the test.
3965
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969
test -z "$as_dir" && as_dir=.
3970
for ac_exec_ext in '' $ac_executable_extensions; do
3971
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3972
ac_cv_prog_CMP="$ac_prog"
3973
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3983
if test -n "$CMP"; then
3984
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
3985
$as_echo "$CMP" >&6; }
3987
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3988
$as_echo "no" >&6; }
3992
test -n "$CMP" && break
3995
if test "x$CMP" = x; then
3996
as_fn_error $? "cmp is not found" "$LINENO" 5
3999
for ac_prog in bison
4001
# Extract the first word of "$ac_prog", so it can be a program name with args.
4002
set dummy $ac_prog; ac_word=$2
4003
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4004
$as_echo_n "checking for $ac_word... " >&6; }
4005
if test "${ac_cv_prog_YACC+set}" = set; then :
4006
$as_echo_n "(cached) " >&6
4008
if test -n "$YACC"; then
4009
ac_cv_prog_YACC="$YACC" # Let the user override the test.
4011
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015
test -z "$as_dir" && as_dir=.
4016
for ac_exec_ext in '' $ac_executable_extensions; do
4017
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4018
ac_cv_prog_YACC="$ac_prog"
4019
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4028
YACC=$ac_cv_prog_YACC
4029
if test -n "$YACC"; then
4030
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4031
$as_echo "$YACC" >&6; }
4033
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4034
$as_echo "no" >&6; }
4038
test -n "$YACC" && break
4041
if test "x$YACC" = x; then
4042
as_fn_error $? "bison is not found" "$LINENO" 5
4047
for ext in pcf pcf.gz bdf bdf.gz ttf ttf.gz; do
4048
for dir in . /usr/src /usr/share/fonts/X11/misc /usr/share/fonts/unifont; do
4049
if test -f "$dir/unifont.$ext"; then
4050
FONT_SOURCE="$dir/unifont.$ext"
4056
if test "x$FONT_SOURCE" = x && ( test "x$platform" = xqemu || test "x$platform" = xyeeloong ); then
4057
as_fn_error $? "qemu and yeeloong ports need unifont" "$LINENO" 5
4062
if test -n "$ac_tool_prefix"; then
4063
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4064
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4065
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4066
$as_echo_n "checking for $ac_word... " >&6; }
4067
if test "${ac_cv_prog_RANLIB+set}" = set; then :
4068
$as_echo_n "(cached) " >&6
4070
if test -n "$RANLIB"; then
4071
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4073
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077
test -z "$as_dir" && as_dir=.
4078
for ac_exec_ext in '' $ac_executable_extensions; do
4079
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4080
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4081
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4090
RANLIB=$ac_cv_prog_RANLIB
4091
if test -n "$RANLIB"; then
4092
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4093
$as_echo "$RANLIB" >&6; }
4095
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4096
$as_echo "no" >&6; }
4101
if test -z "$ac_cv_prog_RANLIB"; then
4102
ac_ct_RANLIB=$RANLIB
4103
# Extract the first word of "ranlib", so it can be a program name with args.
4104
set dummy ranlib; ac_word=$2
4105
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4106
$as_echo_n "checking for $ac_word... " >&6; }
4107
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4108
$as_echo_n "(cached) " >&6
4110
if test -n "$ac_ct_RANLIB"; then
4111
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4113
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117
test -z "$as_dir" && as_dir=.
4118
for ac_exec_ext in '' $ac_executable_extensions; do
4119
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4120
ac_cv_prog_ac_ct_RANLIB="ranlib"
4121
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4130
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4131
if test -n "$ac_ct_RANLIB"; then
4132
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4133
$as_echo "$ac_ct_RANLIB" >&6; }
4135
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4136
$as_echo "no" >&6; }
4139
if test "x$ac_ct_RANLIB" = x; then
4142
case $cross_compiling:$ac_tool_warned in
4144
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4145
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4146
ac_tool_warned=yes ;;
4148
RANLIB=$ac_ct_RANLIB
4151
RANLIB="$ac_cv_prog_RANLIB"
4155
for ac_prog in gawk mawk nawk awk
4157
# Extract the first word of "$ac_prog", so it can be a program name with args.
4158
set dummy $ac_prog; ac_word=$2
4159
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4160
$as_echo_n "checking for $ac_word... " >&6; }
4161
if test "${ac_cv_prog_AWK+set}" = set; then :
4162
$as_echo_n "(cached) " >&6
4164
if test -n "$AWK"; then
4165
ac_cv_prog_AWK="$AWK" # Let the user override the test.
4167
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171
test -z "$as_dir" && as_dir=.
4172
for ac_exec_ext in '' $ac_executable_extensions; do
4173
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4174
ac_cv_prog_AWK="$ac_prog"
4175
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4185
if test -n "$AWK"; then
4186
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4187
$as_echo "$AWK" >&6; }
4189
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4190
$as_echo "no" >&6; }
4194
test -n "$AWK" && break
4197
DEPDIR="${am__leading_dot}deps"
4199
ac_config_commands="$ac_config_commands depfiles"
4202
am_make=${MAKE-make}
4203
cat > confinc << 'END'
4205
@echo this is the am__doit target
4208
# If we don't find an include directive, just comment out the code.
4209
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4210
$as_echo_n "checking for style of include used by $am_make... " >&6; }
4214
# First try GNU make style include.
4215
echo "include confinc" > confmf
4216
# Ignore all kinds of additional output from `make'.
4217
case `$am_make -s -f confmf 2> /dev/null` in #(
4218
*the\ am__doit\ target*)
4224
# Now try BSD make style include.
4225
if test "$am__include" = "#"; then
4226
echo '.include "confinc"' > confmf
4227
case `$am_make -s -f confmf 2> /dev/null` in #(
4228
*the\ am__doit\ target*)
4229
am__include=.include
4237
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4238
$as_echo "$_am_result" >&6; }
4239
rm -f confinc confmf
4241
@%:@ Check whether --enable-dependency-tracking was given.
4242
if test "${enable_dependency_tracking+set}" = set; then :
4243
enableval=$enable_dependency_tracking;
4246
if test "x$enable_dependency_tracking" != xno; then
4247
am_depcomp="$ac_aux_dir/depcomp"
4250
if test "x$enable_dependency_tracking" != xno; then
4260
ac_cpp='$CPP $CPPFLAGS'
4261
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4262
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4263
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4264
if test -n "$ac_tool_prefix"; then
4265
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4266
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4267
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268
$as_echo_n "checking for $ac_word... " >&6; }
4269
if test "${ac_cv_prog_CC+set}" = set; then :
4270
$as_echo_n "(cached) " >&6
4272
if test -n "$CC"; then
4273
ac_cv_prog_CC="$CC" # Let the user override the test.
4275
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279
test -z "$as_dir" && as_dir=.
4280
for ac_exec_ext in '' $ac_executable_extensions; do
4281
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4282
ac_cv_prog_CC="${ac_tool_prefix}gcc"
4283
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4293
if test -n "$CC"; then
4294
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4295
$as_echo "$CC" >&6; }
4297
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298
$as_echo "no" >&6; }
4303
if test -z "$ac_cv_prog_CC"; then
4305
# Extract the first word of "gcc", so it can be a program name with args.
4306
set dummy gcc; ac_word=$2
4307
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308
$as_echo_n "checking for $ac_word... " >&6; }
4309
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4310
$as_echo_n "(cached) " >&6
4312
if test -n "$ac_ct_CC"; then
4313
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4315
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319
test -z "$as_dir" && as_dir=.
4320
for ac_exec_ext in '' $ac_executable_extensions; do
4321
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4322
ac_cv_prog_ac_ct_CC="gcc"
4323
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4332
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4333
if test -n "$ac_ct_CC"; then
4334
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4335
$as_echo "$ac_ct_CC" >&6; }
4337
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338
$as_echo "no" >&6; }
4341
if test "x$ac_ct_CC" = x; then
4344
case $cross_compiling:$ac_tool_warned in
4346
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4347
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4348
ac_tool_warned=yes ;;
4356
if test -z "$CC"; then
4357
if test -n "$ac_tool_prefix"; then
4358
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4359
set dummy ${ac_tool_prefix}cc; ac_word=$2
4360
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361
$as_echo_n "checking for $ac_word... " >&6; }
4362
if test "${ac_cv_prog_CC+set}" = set; then :
4363
$as_echo_n "(cached) " >&6
4365
if test -n "$CC"; then
4366
ac_cv_prog_CC="$CC" # Let the user override the test.
4368
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372
test -z "$as_dir" && as_dir=.
4373
for ac_exec_ext in '' $ac_executable_extensions; do
4374
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4375
ac_cv_prog_CC="${ac_tool_prefix}cc"
4376
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4386
if test -n "$CC"; then
4387
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4388
$as_echo "$CC" >&6; }
4390
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391
$as_echo "no" >&6; }
4397
if test -z "$CC"; then
4398
# Extract the first word of "cc", so it can be a program name with args.
4399
set dummy cc; ac_word=$2
4400
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401
$as_echo_n "checking for $ac_word... " >&6; }
4402
if test "${ac_cv_prog_CC+set}" = set; then :
4403
$as_echo_n "(cached) " >&6
4405
if test -n "$CC"; then
4406
ac_cv_prog_CC="$CC" # Let the user override the test.
4409
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413
test -z "$as_dir" && as_dir=.
4414
for ac_exec_ext in '' $ac_executable_extensions; do
4415
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4416
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4417
ac_prog_rejected=yes
4421
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4428
if test $ac_prog_rejected = yes; then
4429
# We found a bogon in the path, so make sure we never use it.
4430
set dummy $ac_cv_prog_CC
4432
if test $@%:@ != 0; then
4433
# We chose a different compiler from the bogus one.
4434
# However, it has the same basename, so the bogon will be chosen
4435
# first if we set CC to just the basename; use the full file name.
4437
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4443
if test -n "$CC"; then
4444
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4445
$as_echo "$CC" >&6; }
4447
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4448
$as_echo "no" >&6; }
4453
if test -z "$CC"; then
4454
if test -n "$ac_tool_prefix"; then
4455
for ac_prog in cl.exe
4457
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4458
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4459
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4460
$as_echo_n "checking for $ac_word... " >&6; }
4461
if test "${ac_cv_prog_CC+set}" = set; then :
4462
$as_echo_n "(cached) " >&6
4464
if test -n "$CC"; then
4465
ac_cv_prog_CC="$CC" # Let the user override the test.
4467
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471
test -z "$as_dir" && as_dir=.
4472
for ac_exec_ext in '' $ac_executable_extensions; do
4473
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4474
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4475
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4485
if test -n "$CC"; then
4486
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4487
$as_echo "$CC" >&6; }
4489
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4490
$as_echo "no" >&6; }
4494
test -n "$CC" && break
4497
if test -z "$CC"; then
4499
for ac_prog in cl.exe
4501
# Extract the first word of "$ac_prog", so it can be a program name with args.
4502
set dummy $ac_prog; ac_word=$2
4503
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4504
$as_echo_n "checking for $ac_word... " >&6; }
4505
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4506
$as_echo_n "(cached) " >&6
4508
if test -n "$ac_ct_CC"; then
4509
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4511
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515
test -z "$as_dir" && as_dir=.
4516
for ac_exec_ext in '' $ac_executable_extensions; do
4517
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4518
ac_cv_prog_ac_ct_CC="$ac_prog"
4519
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4528
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4529
if test -n "$ac_ct_CC"; then
4530
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4531
$as_echo "$ac_ct_CC" >&6; }
4533
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4534
$as_echo "no" >&6; }
4538
test -n "$ac_ct_CC" && break
4541
if test "x$ac_ct_CC" = x; then
4544
case $cross_compiling:$ac_tool_warned in
4546
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4547
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4548
ac_tool_warned=yes ;;
4557
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4558
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4559
as_fn_error $? "no acceptable C compiler found in \$PATH
4560
See \`config.log' for more details" "$LINENO" 5 ; }
4562
# Provide some information about the compiler.
4563
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4566
for ac_option in --version -v -V -qversion; do
4567
{ { ac_try="$ac_compiler $ac_option >&5"
4569
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570
*) ac_try_echo=$ac_try;;
4572
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4573
$as_echo "$ac_try_echo"; } >&5
4574
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
4576
if test -s conftest.err; then
4578
... rest of stderr output deleted ...
4579
10q' conftest.err >conftest.er1
4580
cat conftest.er1 >&5
4582
rm -f conftest.er1 conftest.err
4583
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4584
test $ac_status = 0; }
4587
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588
/* end confdefs.h. */
4598
ac_clean_files_save=$ac_clean_files
4599
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4600
# Try to create an executable without -o first, disregard a.out.
4601
# It will help us diagnose broken compilers, and finding out an intuition
4603
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4604
$as_echo_n "checking whether the C compiler works... " >&6; }
4605
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4607
# The possible output files:
4608
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4611
for ac_file in $ac_files
4614
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4615
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
4620
if { { ac_try="$ac_link_default"
4622
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623
*) ac_try_echo=$ac_try;;
4625
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4626
$as_echo "$ac_try_echo"; } >&5
4627
(eval "$ac_link_default") 2>&5
4629
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4630
test $ac_status = 0; }; then :
4631
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4632
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4633
# in a Makefile. We should not override ac_cv_exeext if it was cached,
4634
# so that the user can short-circuit this test for compilers unknown to
4636
for ac_file in $ac_files ''
4638
test -f "$ac_file" || continue
4640
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4643
# We found the default executable, but exeext='' is most
4647
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4649
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4651
# We set ac_cv_exeext here because the later test for it is not
4652
# safe: cross compilers may not add the suffix if given an `-o'
4653
# argument, so we may need to know it at that point already.
4654
# Even if this section looks crufty: it has the advantage of
4661
test "$ac_cv_exeext" = no && ac_cv_exeext=
4666
if test -z "$ac_file"; then :
4667
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4668
$as_echo "no" >&6; }
4669
$as_echo "$as_me: failed program was:" >&5
4670
sed 's/^/| /' conftest.$ac_ext >&5
4672
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4673
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4674
as_fn_error 77 "C compiler cannot create executables
4675
See \`config.log' for more details" "$LINENO" 5 ; }
4677
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4678
$as_echo "yes" >&6; }
4680
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4681
$as_echo_n "checking for C compiler default output file name... " >&6; }
4682
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4683
$as_echo "$ac_file" >&6; }
4684
ac_exeext=$ac_cv_exeext
4686
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4687
ac_clean_files=$ac_clean_files_save
4688
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4689
$as_echo_n "checking for suffix of executables... " >&6; }
4690
if { { ac_try="$ac_link"
4692
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4693
*) ac_try_echo=$ac_try;;
4695
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4696
$as_echo "$ac_try_echo"; } >&5
4697
(eval "$ac_link") 2>&5
4699
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4700
test $ac_status = 0; }; then :
4701
# If both `conftest.exe' and `conftest' are `present' (well, observable)
4702
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4703
# work properly (i.e., refer to `conftest.exe'), while it won't with
4705
for ac_file in conftest.exe conftest conftest.*; do
4706
test -f "$ac_file" || continue
4708
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4709
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4715
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4716
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4717
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4718
See \`config.log' for more details" "$LINENO" 5 ; }
4720
rm -f conftest conftest$ac_cv_exeext
4721
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4722
$as_echo "$ac_cv_exeext" >&6; }
4724
rm -f conftest.$ac_ext
4725
EXEEXT=$ac_cv_exeext
4727
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728
/* end confdefs.h. */
4729
@%:@include <stdio.h>
4733
FILE *f = fopen ("conftest.out", "w");
4734
return ferror (f) || fclose (f) != 0;
4740
ac_clean_files="$ac_clean_files conftest.out"
4741
# Check that the compiler produces executables we can run. If not, either
4742
# the compiler is broken, or we cross compile.
4743
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4744
$as_echo_n "checking whether we are cross compiling... " >&6; }
4745
if test "$cross_compiling" != yes; then
4746
{ { ac_try="$ac_link"
4748
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4749
*) ac_try_echo=$ac_try;;
4751
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4752
$as_echo "$ac_try_echo"; } >&5
4753
(eval "$ac_link") 2>&5
4755
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4756
test $ac_status = 0; }
4757
if { ac_try='./conftest$ac_cv_exeext'
4758
{ { case "(($ac_try" in
4759
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4760
*) ac_try_echo=$ac_try;;
4762
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4763
$as_echo "$ac_try_echo"; } >&5
4764
(eval "$ac_try") 2>&5
4766
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4767
test $ac_status = 0; }; }; then
4770
if test "$cross_compiling" = maybe; then
4773
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4774
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4775
as_fn_error $? "cannot run C compiled programs.
4776
If you meant to cross compile, use \`--host'.
4777
See \`config.log' for more details" "$LINENO" 5 ; }
4781
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4782
$as_echo "$cross_compiling" >&6; }
4784
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4785
ac_clean_files=$ac_clean_files_save
4786
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4787
$as_echo_n "checking for suffix of object files... " >&6; }
4788
if test "${ac_cv_objext+set}" = set; then :
4789
$as_echo_n "(cached) " >&6
4791
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4792
/* end confdefs.h. */
4802
rm -f conftest.o conftest.obj
4803
if { { ac_try="$ac_compile"
4805
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4806
*) ac_try_echo=$ac_try;;
4808
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4809
$as_echo "$ac_try_echo"; } >&5
4810
(eval "$ac_compile") 2>&5
4812
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4813
test $ac_status = 0; }; then :
4814
for ac_file in conftest.o conftest.obj conftest.*; do
4815
test -f "$ac_file" || continue;
4817
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4818
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4823
$as_echo "$as_me: failed program was:" >&5
4824
sed 's/^/| /' conftest.$ac_ext >&5
4826
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4827
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4828
as_fn_error $? "cannot compute suffix of object files: cannot compile
4829
See \`config.log' for more details" "$LINENO" 5 ; }
4831
rm -f conftest.$ac_cv_objext conftest.$ac_ext
4833
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4834
$as_echo "$ac_cv_objext" >&6; }
4835
OBJEXT=$ac_cv_objext
4837
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4838
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4839
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4840
$as_echo_n "(cached) " >&6
4842
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843
/* end confdefs.h. */
4856
if ac_fn_c_try_compile "$LINENO"; then :
4861
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4862
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4865
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4866
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4867
if test $ac_compiler_gnu = yes; then
4872
ac_test_CFLAGS=${CFLAGS+set}
4873
ac_save_CFLAGS=$CFLAGS
4874
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4875
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4876
if test "${ac_cv_prog_cc_g+set}" = set; then :
4877
$as_echo_n "(cached) " >&6
4879
ac_save_c_werror_flag=$ac_c_werror_flag
4880
ac_c_werror_flag=yes
4883
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884
/* end confdefs.h. */
4894
if ac_fn_c_try_compile "$LINENO"; then :
4898
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4899
/* end confdefs.h. */
4909
if ac_fn_c_try_compile "$LINENO"; then :
4912
ac_c_werror_flag=$ac_save_c_werror_flag
4914
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915
/* end confdefs.h. */
4925
if ac_fn_c_try_compile "$LINENO"; then :
4928
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4930
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4932
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4933
ac_c_werror_flag=$ac_save_c_werror_flag
4935
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4936
$as_echo "$ac_cv_prog_cc_g" >&6; }
4937
if test "$ac_test_CFLAGS" = set; then
4938
CFLAGS=$ac_save_CFLAGS
4939
elif test $ac_cv_prog_cc_g = yes; then
4940
if test "$GCC" = yes; then
4946
if test "$GCC" = yes; then
4952
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4953
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4954
if test "${ac_cv_prog_cc_c89+set}" = set; then :
4955
$as_echo_n "(cached) " >&6
4957
ac_cv_prog_cc_c89=no
4959
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4960
/* end confdefs.h. */
4963
#include <sys/types.h>
4964
#include <sys/stat.h>
4965
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4966
struct buf { int x; };
4967
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4968
static char *e (p, i)
4974
static char *f (char * (*g) (char **, int), char **p, ...)
4979
s = g (p, va_arg (v,int));
4984
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4985
function prototypes and stuff, but not '\xHH' hex character constants.
4986
These don't provoke an error unfortunately, instead are silently treated
4987
as 'x'. The following induces an error, until -std is added to get
4988
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4989
array size at least. It's necessary to write '\x00'==0 to get something
4990
that's true only with -std. */
4991
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4993
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4994
inside strings and character constants. */
4996
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4998
int test (int i, double x);
4999
struct s1 {int (*f) (int a);};
5000
struct s2 {int (*f) (double a);};
5001
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5007
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5012
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5013
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5015
CC="$ac_save_CC $ac_arg"
5016
if ac_fn_c_try_compile "$LINENO"; then :
5017
ac_cv_prog_cc_c89=$ac_arg
5019
rm -f core conftest.err conftest.$ac_objext
5020
test "x$ac_cv_prog_cc_c89" != "xno" && break
5022
rm -f conftest.$ac_ext
5027
case "x$ac_cv_prog_cc_c89" in
5029
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5030
$as_echo "none needed" >&6; } ;;
5032
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5033
$as_echo "unsupported" >&6; } ;;
5035
CC="$CC $ac_cv_prog_cc_c89"
5036
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5037
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5039
if test "x$ac_cv_prog_cc_c89" != xno; then :
5044
ac_cpp='$CPP $CPPFLAGS'
5045
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5046
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5047
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5049
depcc="$CC" am_compiler_list=
5051
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5052
$as_echo_n "checking dependency style of $depcc... " >&6; }
5053
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5054
$as_echo_n "(cached) " >&6
5056
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5057
# We make a subdir and do the tests there. Otherwise we can end up
5058
# making bogus files that we don't know about and never remove. For
5059
# instance it was reported that on HP-UX the gcc test will end up
5060
# making a dummy file named `D' -- because `-MD' means `put the output
5063
# Copy depcomp to subdir because otherwise we won't find it if we're
5064
# using a relative directory.
5065
cp "$am_depcomp" conftest.dir
5067
# We will build objects and dependencies in a subdirectory because
5068
# it helps to detect inapplicable dependency modes. For instance
5069
# both Tru64's cc and ICC support -MD to output dependencies as a
5070
# side effect of compilation, but ICC will put the dependencies in
5071
# the current directory while Tru64 will put them in the object
5075
am_cv_CC_dependencies_compiler_type=none
5076
if test "$am_compiler_list" = ""; then
5077
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5080
case " $depcc " in #(
5081
*\ -arch\ *\ -arch\ *) am__universal=true ;;
5084
for depmode in $am_compiler_list; do
5085
# Setup a source with many dependencies, because some compilers
5086
# like to wrap large dependency lists on column 80 (with \), and
5087
# we should not choose a depcomp mode which is confused by this.
5089
# We need to recreate these files for each test, as the compiler may
5090
# overwrite some of them when testing with obscure command lines.
5091
# This happens at least with the AIX C compiler.
5093
for i in 1 2 3 4 5 6; do
5094
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5095
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5096
# Solaris 8's {/usr,}/bin/sh.
5097
touch sub/conftst$i.h
5099
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5101
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5102
# mode. It turns out that the SunPro C++ compiler does not properly
5103
# handle `-M -o', and we need to detect this. Also, some Intel
5104
# versions had trouble with output in subdirs
5105
am__obj=sub/conftest.${OBJEXT-o}
5106
am__minus_obj="-o $am__obj"
5109
# This depmode causes a compiler race in universal mode.
5110
test "$am__universal" = false || continue
5113
# after this tag, mechanisms are not by side-effect, so they'll
5114
# only be used when explicitly requested
5115
if test "x$enable_dependency_tracking" = xyes; then
5121
msvisualcpp | msvcmsys)
5122
# This compiler won't grok `-c -o', but also, the minuso test has
5123
# not run yet. These depmodes are late enough in the game, and
5124
# so weak that their functioning should not be impacted.
5125
am__obj=conftest.${OBJEXT-o}
5130
if depmode=$depmode \
5131
source=sub/conftest.c object=$am__obj \
5132
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5133
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5134
>/dev/null 2>conftest.err &&
5135
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5136
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5137
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5138
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5139
# icc doesn't choke on unknown options, it will just issue warnings
5140
# or remarks (even with -Werror). So we grep stderr for any message
5141
# that says an option was ignored or not supported.
5142
# When given -MP, icc 7.0 and 7.1 complain thusly:
5143
# icc: Command line warning: ignoring option '-M'; no argument required
5144
# The diagnosis changed in icc 8.0:
5145
# icc: Command line remark: option '-MP' not supported
5146
if (grep 'ignoring option' conftest.err ||
5147
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5148
am_cv_CC_dependencies_compiler_type=$depmode
5157
am_cv_CC_dependencies_compiler_type=none
5161
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5162
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5163
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5166
test "x$enable_dependency_tracking" != xno \
5167
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5169
am__fastdepCC_FALSE='#'
5171
am__fastdepCC_TRUE='#'
5172
am__fastdepCC_FALSE=
5177
for ac_prog in flex lex
5179
# Extract the first word of "$ac_prog", so it can be a program name with args.
5180
set dummy $ac_prog; ac_word=$2
5181
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182
$as_echo_n "checking for $ac_word... " >&6; }
5183
if test "${ac_cv_prog_LEX+set}" = set; then :
5184
$as_echo_n "(cached) " >&6
5186
if test -n "$LEX"; then
5187
ac_cv_prog_LEX="$LEX" # Let the user override the test.
5189
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193
test -z "$as_dir" && as_dir=.
5194
for ac_exec_ext in '' $ac_executable_extensions; do
5195
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5196
ac_cv_prog_LEX="$ac_prog"
5197
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5207
if test -n "$LEX"; then
5208
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5209
$as_echo "$LEX" >&6; }
5211
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212
$as_echo "no" >&6; }
5216
test -n "$LEX" && break
5218
test -n "$LEX" || LEX=":"
5220
if test "x$LEX" != "x:"; then
5221
cat >conftest.l <<_ACEOF
5227
e { yyless (input () != 0); }
5228
f { unput (yytext[0]); }
5229
. { BEGIN INITIAL; }
5231
#ifdef YYTEXT_POINTER
5232
extern char *yytext;
5237
return ! yylex () + ! yywrap ();
5240
{ { ac_try="$LEX conftest.l"
5242
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5243
*) ac_try_echo=$ac_try;;
5245
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5246
$as_echo "$ac_try_echo"; } >&5
5247
(eval "$LEX conftest.l") 2>&5
5249
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5250
test $ac_status = 0; }
5251
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5252
$as_echo_n "checking lex output file root... " >&6; }
5253
if test "${ac_cv_prog_lex_root+set}" = set; then :
5254
$as_echo_n "(cached) " >&6
5257
if test -f lex.yy.c; then
5258
ac_cv_prog_lex_root=lex.yy
5259
elif test -f lexyy.c; then
5260
ac_cv_prog_lex_root=lexyy
5262
as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
5265
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5266
$as_echo "$ac_cv_prog_lex_root" >&6; }
5267
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5269
if test -z "${LEXLIB+set}"; then
5270
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5271
$as_echo_n "checking lex library... " >&6; }
5272
if test "${ac_cv_lib_lex+set}" = set; then :
5273
$as_echo_n "(cached) " >&6
5277
ac_cv_lib_lex='none needed'
5278
for ac_lib in '' -lfl -ll; do
5279
LIBS="$ac_lib $ac_save_LIBS"
5280
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281
/* end confdefs.h. */
5282
`cat $LEX_OUTPUT_ROOT.c`
5284
if ac_fn_c_try_link "$LINENO"; then :
5285
ac_cv_lib_lex=$ac_lib
5287
rm -f core conftest.err conftest.$ac_objext \
5288
conftest$ac_exeext conftest.$ac_ext
5289
test "$ac_cv_lib_lex" != 'none needed' && break
5294
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5295
$as_echo "$ac_cv_lib_lex" >&6; }
5296
test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5300
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5301
$as_echo_n "checking whether yytext is a pointer... " >&6; }
5302
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
5303
$as_echo_n "(cached) " >&6
5305
# POSIX says lex can declare yytext either as a pointer or an array; the
5306
# default is implementation-dependent. Figure out which it is, since
5307
# not all implementations provide the %pointer and %array declarations.
5308
ac_cv_prog_lex_yytext_pointer=no
5310
LIBS="$LEXLIB $ac_save_LIBS"
5311
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312
/* end confdefs.h. */
5313
#define YYTEXT_POINTER 1
5314
`cat $LEX_OUTPUT_ROOT.c`
5316
if ac_fn_c_try_link "$LINENO"; then :
5317
ac_cv_prog_lex_yytext_pointer=yes
5319
rm -f core conftest.err conftest.$ac_objext \
5320
conftest$ac_exeext conftest.$ac_ext
5324
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5325
$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5326
if test $ac_cv_prog_lex_yytext_pointer = yes; then
5328
$as_echo "@%:@define YYTEXT_POINTER 1" >>confdefs.h
5331
rm -f conftest.l $LEX_OUTPUT_ROOT.c
5334
for ac_prog in 'bison -y' byacc
5336
# Extract the first word of "$ac_prog", so it can be a program name with args.
5337
set dummy $ac_prog; ac_word=$2
5338
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5339
$as_echo_n "checking for $ac_word... " >&6; }
5340
if test "${ac_cv_prog_YACC+set}" = set; then :
5341
$as_echo_n "(cached) " >&6
5343
if test -n "$YACC"; then
5344
ac_cv_prog_YACC="$YACC" # Let the user override the test.
5346
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350
test -z "$as_dir" && as_dir=.
5351
for ac_exec_ext in '' $ac_executable_extensions; do
5352
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5353
ac_cv_prog_YACC="$ac_prog"
5354
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5363
YACC=$ac_cv_prog_YACC
5364
if test -n "$YACC"; then
5365
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5366
$as_echo "$YACC" >&6; }
5368
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5369
$as_echo "no" >&6; }
5373
test -n "$YACC" && break
5375
test -n "$YACC" || YACC="yacc"
5377
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5378
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5380
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5381
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
5382
$as_echo_n "(cached) " >&6
5384
cat >conftest.make <<\_ACEOF
5387
@echo '@@@%%%=$(MAKE)=@@@%%%'
5389
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5390
case `${MAKE-make} -f conftest.make 2>/dev/null` in
5392
eval ac_cv_prog_make_${ac_make}_set=yes;;
5394
eval ac_cv_prog_make_${ac_make}_set=no;;
5398
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5399
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5400
$as_echo "yes" >&6; }
5403
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5404
$as_echo "no" >&6; }
5405
SET_MAKE="MAKE=${MAKE-make}"
5409
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5410
$as_echo_n "checking whether ln -s works... " >&6; }
5412
if test "$LN_S" = "ln -s"; then
5413
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5414
$as_echo "yes" >&6; }
5416
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5417
$as_echo "no, using $LN_S" >&6; }
5421
if test "x$LEX" = "x:"; then
5422
as_fn_error $? "flex is not found" "$LINENO" 5
5424
version=`$LEX --version | $AWK '{ split($NF,x,"."); print x[1]*10000+x[2]*100+x[3]; }'`
5425
if test -n "$version" -a "$version" -ge 20535; then
5428
as_fn_error $? "flex is too old. GRUB requires 2.5.35 or above" "$LINENO" 5
5432
# These are not a "must".
5433
for ac_prog in makeinfo true
5435
# Extract the first word of "$ac_prog", so it can be a program name with args.
5436
set dummy $ac_prog; ac_word=$2
5437
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5438
$as_echo_n "checking for $ac_word... " >&6; }
5439
if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5440
$as_echo_n "(cached) " >&6
5444
ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5447
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451
test -z "$as_dir" && as_dir=.
5452
for ac_exec_ext in '' $ac_executable_extensions; do
5453
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5454
ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5455
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5465
MAKEINFO=$ac_cv_path_MAKEINFO
5466
if test -n "$MAKEINFO"; then
5467
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5468
$as_echo "$MAKEINFO" >&6; }
5470
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5471
$as_echo "no" >&6; }
5475
test -n "$MAKEINFO" && break
5480
# Checks for host programs.
5484
ac_cpp='$CPP $CPPFLAGS'
5485
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5486
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5487
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5488
if test -n "$ac_tool_prefix"; then
5489
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5490
set dummy ${ac_tool_prefix}gcc; ac_word=$2
5491
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5492
$as_echo_n "checking for $ac_word... " >&6; }
5493
if test "${ac_cv_prog_CC+set}" = set; then :
5494
$as_echo_n "(cached) " >&6
5496
if test -n "$CC"; then
5497
ac_cv_prog_CC="$CC" # Let the user override the test.
5499
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503
test -z "$as_dir" && as_dir=.
5504
for ac_exec_ext in '' $ac_executable_extensions; do
5505
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5506
ac_cv_prog_CC="${ac_tool_prefix}gcc"
5507
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5517
if test -n "$CC"; then
5518
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5519
$as_echo "$CC" >&6; }
5521
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5522
$as_echo "no" >&6; }
5527
if test -z "$ac_cv_prog_CC"; then
5529
# Extract the first word of "gcc", so it can be a program name with args.
5530
set dummy gcc; ac_word=$2
5531
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5532
$as_echo_n "checking for $ac_word... " >&6; }
5533
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5534
$as_echo_n "(cached) " >&6
5536
if test -n "$ac_ct_CC"; then
5537
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5539
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543
test -z "$as_dir" && as_dir=.
5544
for ac_exec_ext in '' $ac_executable_extensions; do
5545
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5546
ac_cv_prog_ac_ct_CC="gcc"
5547
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5556
ac_ct_CC=$ac_cv_prog_ac_ct_CC
5557
if test -n "$ac_ct_CC"; then
5558
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5559
$as_echo "$ac_ct_CC" >&6; }
5561
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5562
$as_echo "no" >&6; }
5565
if test "x$ac_ct_CC" = x; then
5568
case $cross_compiling:$ac_tool_warned in
5570
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5571
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5572
ac_tool_warned=yes ;;
5580
if test -z "$CC"; then
5581
if test -n "$ac_tool_prefix"; then
5582
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5583
set dummy ${ac_tool_prefix}cc; ac_word=$2
5584
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5585
$as_echo_n "checking for $ac_word... " >&6; }
5586
if test "${ac_cv_prog_CC+set}" = set; then :
5587
$as_echo_n "(cached) " >&6
5589
if test -n "$CC"; then
5590
ac_cv_prog_CC="$CC" # Let the user override the test.
5592
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596
test -z "$as_dir" && as_dir=.
5597
for ac_exec_ext in '' $ac_executable_extensions; do
5598
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5599
ac_cv_prog_CC="${ac_tool_prefix}cc"
5600
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5610
if test -n "$CC"; then
5611
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5612
$as_echo "$CC" >&6; }
5614
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615
$as_echo "no" >&6; }
5621
if test -z "$CC"; then
5622
# Extract the first word of "cc", so it can be a program name with args.
5623
set dummy cc; ac_word=$2
5624
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5625
$as_echo_n "checking for $ac_word... " >&6; }
5626
if test "${ac_cv_prog_CC+set}" = set; then :
5627
$as_echo_n "(cached) " >&6
5629
if test -n "$CC"; then
5630
ac_cv_prog_CC="$CC" # Let the user override the test.
5633
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637
test -z "$as_dir" && as_dir=.
5638
for ac_exec_ext in '' $ac_executable_extensions; do
5639
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5640
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5641
ac_prog_rejected=yes
5645
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5652
if test $ac_prog_rejected = yes; then
5653
# We found a bogon in the path, so make sure we never use it.
5654
set dummy $ac_cv_prog_CC
5656
if test $@%:@ != 0; then
5657
# We chose a different compiler from the bogus one.
5658
# However, it has the same basename, so the bogon will be chosen
5659
# first if we set CC to just the basename; use the full file name.
5661
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5667
if test -n "$CC"; then
5668
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5669
$as_echo "$CC" >&6; }
5671
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672
$as_echo "no" >&6; }
5677
if test -z "$CC"; then
5678
if test -n "$ac_tool_prefix"; then
5679
for ac_prog in cl.exe
5681
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5682
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5683
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684
$as_echo_n "checking for $ac_word... " >&6; }
5685
if test "${ac_cv_prog_CC+set}" = set; then :
5686
$as_echo_n "(cached) " >&6
5688
if test -n "$CC"; then
5689
ac_cv_prog_CC="$CC" # Let the user override the test.
5691
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695
test -z "$as_dir" && as_dir=.
5696
for ac_exec_ext in '' $ac_executable_extensions; do
5697
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5698
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5699
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5709
if test -n "$CC"; then
5710
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5711
$as_echo "$CC" >&6; }
5713
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714
$as_echo "no" >&6; }
5718
test -n "$CC" && break
5721
if test -z "$CC"; then
5723
for ac_prog in cl.exe
5725
# Extract the first word of "$ac_prog", so it can be a program name with args.
5726
set dummy $ac_prog; ac_word=$2
5727
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5728
$as_echo_n "checking for $ac_word... " >&6; }
5729
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5730
$as_echo_n "(cached) " >&6
5732
if test -n "$ac_ct_CC"; then
5733
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5735
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739
test -z "$as_dir" && as_dir=.
5740
for ac_exec_ext in '' $ac_executable_extensions; do
5741
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5742
ac_cv_prog_ac_ct_CC="$ac_prog"
5743
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5752
ac_ct_CC=$ac_cv_prog_ac_ct_CC
5753
if test -n "$ac_ct_CC"; then
5754
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5755
$as_echo "$ac_ct_CC" >&6; }
5757
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5758
$as_echo "no" >&6; }
5762
test -n "$ac_ct_CC" && break
5765
if test "x$ac_ct_CC" = x; then
5768
case $cross_compiling:$ac_tool_warned in
5770
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5771
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5772
ac_tool_warned=yes ;;
5781
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5782
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5783
as_fn_error $? "no acceptable C compiler found in \$PATH
5784
See \`config.log' for more details" "$LINENO" 5 ; }
5786
# Provide some information about the compiler.
5787
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5790
for ac_option in --version -v -V -qversion; do
5791
{ { ac_try="$ac_compiler $ac_option >&5"
5793
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794
*) ac_try_echo=$ac_try;;
5796
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5797
$as_echo "$ac_try_echo"; } >&5
5798
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
5800
if test -s conftest.err; then
5802
... rest of stderr output deleted ...
5803
10q' conftest.err >conftest.er1
5804
cat conftest.er1 >&5
5806
rm -f conftest.er1 conftest.err
5807
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5808
test $ac_status = 0; }
5811
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5812
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5813
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5814
$as_echo_n "(cached) " >&6
5816
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817
/* end confdefs.h. */
5830
if ac_fn_c_try_compile "$LINENO"; then :
5835
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5836
ac_cv_c_compiler_gnu=$ac_compiler_gnu
5839
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5840
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5841
if test $ac_compiler_gnu = yes; then
5846
ac_test_CFLAGS=${CFLAGS+set}
5847
ac_save_CFLAGS=$CFLAGS
5848
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5849
$as_echo_n "checking whether $CC accepts -g... " >&6; }
5850
if test "${ac_cv_prog_cc_g+set}" = set; then :
5851
$as_echo_n "(cached) " >&6
5853
ac_save_c_werror_flag=$ac_c_werror_flag
5854
ac_c_werror_flag=yes
5857
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5858
/* end confdefs.h. */
5868
if ac_fn_c_try_compile "$LINENO"; then :
5872
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5873
/* end confdefs.h. */
5883
if ac_fn_c_try_compile "$LINENO"; then :
5886
ac_c_werror_flag=$ac_save_c_werror_flag
5888
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5889
/* end confdefs.h. */
5899
if ac_fn_c_try_compile "$LINENO"; then :
5902
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5904
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5906
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5907
ac_c_werror_flag=$ac_save_c_werror_flag
5909
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5910
$as_echo "$ac_cv_prog_cc_g" >&6; }
5911
if test "$ac_test_CFLAGS" = set; then
5912
CFLAGS=$ac_save_CFLAGS
5913
elif test $ac_cv_prog_cc_g = yes; then
5914
if test "$GCC" = yes; then
5920
if test "$GCC" = yes; then
5926
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5927
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5928
if test "${ac_cv_prog_cc_c89+set}" = set; then :
5929
$as_echo_n "(cached) " >&6
5931
ac_cv_prog_cc_c89=no
5933
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5934
/* end confdefs.h. */
5937
#include <sys/types.h>
5938
#include <sys/stat.h>
5939
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5940
struct buf { int x; };
5941
FILE * (*rcsopen) (struct buf *, struct stat *, int);
5942
static char *e (p, i)
5948
static char *f (char * (*g) (char **, int), char **p, ...)
5953
s = g (p, va_arg (v,int));
5958
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5959
function prototypes and stuff, but not '\xHH' hex character constants.
5960
These don't provoke an error unfortunately, instead are silently treated
5961
as 'x'. The following induces an error, until -std is added to get
5962
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5963
array size at least. It's necessary to write '\x00'==0 to get something
5964
that's true only with -std. */
5965
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5967
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5968
inside strings and character constants. */
5970
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5972
int test (int i, double x);
5973
struct s1 {int (*f) (int a);};
5974
struct s2 {int (*f) (double a);};
5975
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5981
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5986
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5987
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5989
CC="$ac_save_CC $ac_arg"
5990
if ac_fn_c_try_compile "$LINENO"; then :
5991
ac_cv_prog_cc_c89=$ac_arg
5993
rm -f core conftest.err conftest.$ac_objext
5994
test "x$ac_cv_prog_cc_c89" != "xno" && break
5996
rm -f conftest.$ac_ext
6001
case "x$ac_cv_prog_cc_c89" in
6003
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6004
$as_echo "none needed" >&6; } ;;
6006
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6007
$as_echo "unsupported" >&6; } ;;
6009
CC="$CC $ac_cv_prog_cc_c89"
6010
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6011
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6013
if test "x$ac_cv_prog_cc_c89" != xno; then :
6018
ac_cpp='$CPP $CPPFLAGS'
6019
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6020
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6021
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6023
depcc="$CC" am_compiler_list=
6025
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6026
$as_echo_n "checking dependency style of $depcc... " >&6; }
6027
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6028
$as_echo_n "(cached) " >&6
6030
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6031
# We make a subdir and do the tests there. Otherwise we can end up
6032
# making bogus files that we don't know about and never remove. For
6033
# instance it was reported that on HP-UX the gcc test will end up
6034
# making a dummy file named `D' -- because `-MD' means `put the output
6037
# Copy depcomp to subdir because otherwise we won't find it if we're
6038
# using a relative directory.
6039
cp "$am_depcomp" conftest.dir
6041
# We will build objects and dependencies in a subdirectory because
6042
# it helps to detect inapplicable dependency modes. For instance
6043
# both Tru64's cc and ICC support -MD to output dependencies as a
6044
# side effect of compilation, but ICC will put the dependencies in
6045
# the current directory while Tru64 will put them in the object
6049
am_cv_CC_dependencies_compiler_type=none
6050
if test "$am_compiler_list" = ""; then
6051
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6054
case " $depcc " in #(
6055
*\ -arch\ *\ -arch\ *) am__universal=true ;;
6058
for depmode in $am_compiler_list; do
6059
# Setup a source with many dependencies, because some compilers
6060
# like to wrap large dependency lists on column 80 (with \), and
6061
# we should not choose a depcomp mode which is confused by this.
6063
# We need to recreate these files for each test, as the compiler may
6064
# overwrite some of them when testing with obscure command lines.
6065
# This happens at least with the AIX C compiler.
6067
for i in 1 2 3 4 5 6; do
6068
echo '#include "conftst'$i'.h"' >> sub/conftest.c
6069
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6070
# Solaris 8's {/usr,}/bin/sh.
6071
touch sub/conftst$i.h
6073
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6075
# We check with `-c' and `-o' for the sake of the "dashmstdout"
6076
# mode. It turns out that the SunPro C++ compiler does not properly
6077
# handle `-M -o', and we need to detect this. Also, some Intel
6078
# versions had trouble with output in subdirs
6079
am__obj=sub/conftest.${OBJEXT-o}
6080
am__minus_obj="-o $am__obj"
6083
# This depmode causes a compiler race in universal mode.
6084
test "$am__universal" = false || continue
6087
# after this tag, mechanisms are not by side-effect, so they'll
6088
# only be used when explicitly requested
6089
if test "x$enable_dependency_tracking" = xyes; then
6095
msvisualcpp | msvcmsys)
6096
# This compiler won't grok `-c -o', but also, the minuso test has
6097
# not run yet. These depmodes are late enough in the game, and
6098
# so weak that their functioning should not be impacted.
6099
am__obj=conftest.${OBJEXT-o}
6104
if depmode=$depmode \
6105
source=sub/conftest.c object=$am__obj \
6106
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6107
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6108
>/dev/null 2>conftest.err &&
6109
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6110
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6111
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6112
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6113
# icc doesn't choke on unknown options, it will just issue warnings
6114
# or remarks (even with -Werror). So we grep stderr for any message
6115
# that says an option was ignored or not supported.
6116
# When given -MP, icc 7.0 and 7.1 complain thusly:
6117
# icc: Command line warning: ignoring option '-M'; no argument required
6118
# The diagnosis changed in icc 8.0:
6119
# icc: Command line remark: option '-MP' not supported
6120
if (grep 'ignoring option' conftest.err ||
6121
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6122
am_cv_CC_dependencies_compiler_type=$depmode
6131
am_cv_CC_dependencies_compiler_type=none
6135
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6136
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6137
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6140
test "x$enable_dependency_tracking" != xno \
6141
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6143
am__fastdepCC_FALSE='#'
6145
am__fastdepCC_TRUE='#'
6146
am__fastdepCC_FALSE=
6151
ac_cpp='$CPP $CPPFLAGS'
6152
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6153
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6154
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6155
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6156
$as_echo_n "checking how to run the C preprocessor... " >&6; }
6157
# On Suns, sometimes $CPP names a directory.
6158
if test -n "$CPP" && test -d "$CPP"; then
6161
if test -z "$CPP"; then
6162
if test "${ac_cv_prog_CPP+set}" = set; then :
6163
$as_echo_n "(cached) " >&6
6165
# Double quotes because CPP needs to be expanded
6166
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6169
for ac_c_preproc_warn_flag in '' yes
6171
# Use a header file that comes with gcc, so configuring glibc
6172
# with a fresh cross-compiler works.
6173
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6174
# <limits.h> exists even on freestanding compilers.
6175
# On the NeXT, cc -E runs the code through the compiler's parser,
6176
# not just through cpp. "Syntax error" is here to catch this case.
6177
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6178
/* end confdefs.h. */
6180
@%:@ include <limits.h>
6182
@%:@ include <assert.h>
6186
if ac_fn_c_try_cpp "$LINENO"; then :
6189
# Broken: fails on valid input.
6192
rm -f conftest.err conftest.i conftest.$ac_ext
6194
# OK, works on sane cases. Now check whether nonexistent headers
6195
# can be detected and how.
6196
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197
/* end confdefs.h. */
6198
@%:@include <ac_nonexistent.h>
6200
if ac_fn_c_try_cpp "$LINENO"; then :
6201
# Broken: success on invalid input.
6204
# Passes both tests.
6208
rm -f conftest.err conftest.i conftest.$ac_ext
6211
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6212
rm -f conftest.i conftest.err conftest.$ac_ext
6213
if $ac_preproc_ok; then :
6225
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6226
$as_echo "$CPP" >&6; }
6228
for ac_c_preproc_warn_flag in '' yes
6230
# Use a header file that comes with gcc, so configuring glibc
6231
# with a fresh cross-compiler works.
6232
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6233
# <limits.h> exists even on freestanding compilers.
6234
# On the NeXT, cc -E runs the code through the compiler's parser,
6235
# not just through cpp. "Syntax error" is here to catch this case.
6236
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237
/* end confdefs.h. */
6239
@%:@ include <limits.h>
6241
@%:@ include <assert.h>
6245
if ac_fn_c_try_cpp "$LINENO"; then :
6248
# Broken: fails on valid input.
6251
rm -f conftest.err conftest.i conftest.$ac_ext
6253
# OK, works on sane cases. Now check whether nonexistent headers
6254
# can be detected and how.
6255
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256
/* end confdefs.h. */
6257
@%:@include <ac_nonexistent.h>
6259
if ac_fn_c_try_cpp "$LINENO"; then :
6260
# Broken: success on invalid input.
6263
# Passes both tests.
6267
rm -f conftest.err conftest.i conftest.$ac_ext
6270
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6271
rm -f conftest.i conftest.err conftest.$ac_ext
6272
if $ac_preproc_ok; then :
6275
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6276
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6277
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6278
See \`config.log' for more details" "$LINENO" 5 ; }
6282
ac_cpp='$CPP $CPPFLAGS'
6283
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6284
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6285
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6288
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6289
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6290
if test "${ac_cv_path_GREP+set}" = set; then :
6291
$as_echo_n "(cached) " >&6
6293
if test -z "$GREP"; then
6294
ac_path_GREP_found=false
6295
# Loop through the user's path and test for each of PROGNAME-LIST
6296
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6300
test -z "$as_dir" && as_dir=.
6301
for ac_prog in grep ggrep; do
6302
for ac_exec_ext in '' $ac_executable_extensions; do
6303
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6304
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6305
# Check for GNU ac_path_GREP and select it if it is found.
6306
# Check for GNU $ac_path_GREP
6307
case `"$ac_path_GREP" --version 2>&1` in
6309
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6312
$as_echo_n 0123456789 >"conftest.in"
6315
cat "conftest.in" "conftest.in" >"conftest.tmp"
6316
mv "conftest.tmp" "conftest.in"
6317
cp "conftest.in" "conftest.nl"
6318
$as_echo 'GREP' >> "conftest.nl"
6319
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6320
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6321
as_fn_arith $ac_count + 1 && ac_count=$as_val
6322
if test $ac_count -gt ${ac_path_GREP_max-0}; then
6323
# Best one so far, save it but keep looking for a better one
6324
ac_cv_path_GREP="$ac_path_GREP"
6325
ac_path_GREP_max=$ac_count
6327
# 10*(2^10) chars as input seems more than enough
6328
test $ac_count -gt 10 && break
6330
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6333
$ac_path_GREP_found && break 3
6338
if test -z "$ac_cv_path_GREP"; then
6339
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6342
ac_cv_path_GREP=$GREP
6346
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6347
$as_echo "$ac_cv_path_GREP" >&6; }
6348
GREP="$ac_cv_path_GREP"
6351
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6352
$as_echo_n "checking for egrep... " >&6; }
6353
if test "${ac_cv_path_EGREP+set}" = set; then :
6354
$as_echo_n "(cached) " >&6
6356
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6357
then ac_cv_path_EGREP="$GREP -E"
6359
if test -z "$EGREP"; then
6360
ac_path_EGREP_found=false
6361
# Loop through the user's path and test for each of PROGNAME-LIST
6362
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6366
test -z "$as_dir" && as_dir=.
6367
for ac_prog in egrep; do
6368
for ac_exec_ext in '' $ac_executable_extensions; do
6369
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6370
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6371
# Check for GNU ac_path_EGREP and select it if it is found.
6372
# Check for GNU $ac_path_EGREP
6373
case `"$ac_path_EGREP" --version 2>&1` in
6375
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6378
$as_echo_n 0123456789 >"conftest.in"
6381
cat "conftest.in" "conftest.in" >"conftest.tmp"
6382
mv "conftest.tmp" "conftest.in"
6383
cp "conftest.in" "conftest.nl"
6384
$as_echo 'EGREP' >> "conftest.nl"
6385
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6386
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6387
as_fn_arith $ac_count + 1 && ac_count=$as_val
6388
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6389
# Best one so far, save it but keep looking for a better one
6390
ac_cv_path_EGREP="$ac_path_EGREP"
6391
ac_path_EGREP_max=$ac_count
6393
# 10*(2^10) chars as input seems more than enough
6394
test $ac_count -gt 10 && break
6396
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6399
$ac_path_EGREP_found && break 3
6404
if test -z "$ac_cv_path_EGREP"; then
6405
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6408
ac_cv_path_EGREP=$EGREP
6413
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6414
$as_echo "$ac_cv_path_EGREP" >&6; }
6415
EGREP="$ac_cv_path_EGREP"
6418
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6419
$as_echo_n "checking for ANSI C header files... " >&6; }
6420
if test "${ac_cv_header_stdc+set}" = set; then :
6421
$as_echo_n "(cached) " >&6
6423
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424
/* end confdefs.h. */
6438
if ac_fn_c_try_compile "$LINENO"; then :
6439
ac_cv_header_stdc=yes
6441
ac_cv_header_stdc=no
6443
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6445
if test $ac_cv_header_stdc = yes; then
6446
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6447
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448
/* end confdefs.h. */
6452
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6453
$EGREP "memchr" >/dev/null 2>&1; then :
6456
ac_cv_header_stdc=no
6462
if test $ac_cv_header_stdc = yes; then
6463
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6464
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6465
/* end confdefs.h. */
6469
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6470
$EGREP "free" >/dev/null 2>&1; then :
6473
ac_cv_header_stdc=no
6479
if test $ac_cv_header_stdc = yes; then
6480
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6481
if test "$cross_compiling" = yes; then :
6484
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485
/* end confdefs.h. */
6488
#if ((' ' & 0x0FF) == 0x020)
6489
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6490
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6492
# define ISLOWER(c) \
6493
(('a' <= (c) && (c) <= 'i') \
6494
|| ('j' <= (c) && (c) <= 'r') \
6495
|| ('s' <= (c) && (c) <= 'z'))
6496
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6499
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6504
for (i = 0; i < 256; i++)
6505
if (XOR (islower (i), ISLOWER (i))
6506
|| toupper (i) != TOUPPER (i))
6511
if ac_fn_c_try_run "$LINENO"; then :
6514
ac_cv_header_stdc=no
6516
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6517
conftest.$ac_objext conftest.beam conftest.$ac_ext
6522
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6523
$as_echo "$ac_cv_header_stdc" >&6; }
6524
if test $ac_cv_header_stdc = yes; then
6526
$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
6530
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6531
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6532
inttypes.h stdint.h unistd.h
6534
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6535
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6537
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6538
cat >>confdefs.h <<_ACEOF
6539
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6550
ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6551
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6558
if test "$MINIX" = yes; then
6560
$as_echo "@%:@define _POSIX_SOURCE 1" >>confdefs.h
6563
$as_echo "@%:@define _POSIX_1_SOURCE 2" >>confdefs.h
6566
$as_echo "@%:@define _MINIX 1" >>confdefs.h
6573
$as_echo "@%:@define _XOPEN_SOURCE 500" >>confdefs.h
6579
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6580
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6581
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6582
$as_echo_n "(cached) " >&6
6584
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6585
/* end confdefs.h. */
6587
# define __EXTENSIONS__ 1
6588
$ac_includes_default
6597
if ac_fn_c_try_compile "$LINENO"; then :
6598
ac_cv_safe_to_define___extensions__=yes
6600
ac_cv_safe_to_define___extensions__=no
6602
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6604
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6605
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6606
test $ac_cv_safe_to_define___extensions__ = yes &&
6607
$as_echo "@%:@define __EXTENSIONS__ 1" >>confdefs.h
6609
$as_echo "@%:@define _ALL_SOURCE 1" >>confdefs.h
6611
$as_echo "@%:@define _GNU_SOURCE 1" >>confdefs.h
6613
$as_echo "@%:@define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6615
$as_echo "@%:@define _TANDEM_SOURCE 1" >>confdefs.h
6626
# Code from module alloca:
6627
# Code from module alloca-opt:
6628
# Code from module arg-nonnull:
6629
# Code from module argp:
6630
# Code from module btowc:
6631
# Code from module c++defs:
6632
# Code from module configmake:
6633
# Code from module dirname-lgpl:
6634
# Code from module double-slash-root:
6635
# Code from module errno:
6636
# Code from module error:
6637
# Code from module extensions:
6639
# Code from module float:
6640
# Code from module fnmatch:
6641
# Code from module getdelim:
6642
# Code from module getline:
6643
# Code from module getopt-gnu:
6644
# Code from module getopt-posix:
6645
# Code from module gettext:
6646
# Code from module gettext-h:
6647
# Code from module havelib:
6648
# Code from module include_next:
6649
# Code from module intprops:
6650
# Code from module langinfo:
6651
# Code from module localcharset:
6652
# Code from module malloc-gnu:
6653
# Code from module malloc-posix:
6654
# Code from module mbrtowc:
6655
# Code from module mbsinit:
6656
# Code from module mbsrtowcs:
6657
# Code from module memchr:
6658
# Code from module mempcpy:
6659
# Code from module multiarch:
6660
# Code from module nl_langinfo:
6661
# Code from module progname:
6662
# Code from module rawmemchr:
6663
# Code from module realloc-posix:
6664
# Code from module regex:
6665
# Code from module size_max:
6666
# Code from module sleep:
6667
# Code from module ssize_t:
6668
# Code from module stdbool:
6669
# Code from module stddef:
6670
# Code from module stdint:
6671
# Code from module stdio:
6672
# Code from module stdlib:
6673
# Code from module strcase:
6674
# Code from module strchrnul:
6675
# Code from module streq:
6676
# Code from module strerror:
6677
# Code from module string:
6678
# Code from module strings:
6679
# Code from module strndup:
6680
# Code from module strnlen:
6681
# Code from module strnlen1:
6682
# Code from module sys_wait:
6683
# Code from module sysexits:
6684
# Code from module unistd:
6685
# Code from module vasnprintf:
6686
# Code from module verify:
6687
# Code from module vsnprintf:
6688
# Code from module warn-on-use:
6689
# Code from module wchar:
6690
# Code from module wcrtomb:
6691
# Code from module wctype:
6692
# Code from module xsize:
6694
if test "x$CC" != xcc; then
6695
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
6696
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
6698
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
6699
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
6701
set dummy $CC; ac_cc=`$as_echo "$2" |
6702
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6703
if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
6704
$as_echo_n "(cached) " >&6
6706
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707
/* end confdefs.h. */
6717
# Make sure it works both with $CC and with simple cc.
6718
# We do the test twice because some compilers refuse to overwrite an
6719
# existing .o file with -o, though they will create one.
6720
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6722
if { { case "(($ac_try" in
6723
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6724
*) ac_try_echo=$ac_try;;
6726
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6727
$as_echo "$ac_try_echo"; } >&5
6728
(eval "$ac_try") 2>&5
6730
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6731
test $ac_status = 0; } &&
6732
test -f conftest2.$ac_objext && { { case "(($ac_try" in
6733
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734
*) ac_try_echo=$ac_try;;
6736
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6737
$as_echo "$ac_try_echo"; } >&5
6738
(eval "$ac_try") 2>&5
6740
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6741
test $ac_status = 0; };
6743
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6744
if test "x$CC" != xcc; then
6745
# Test first that cc exists at all.
6746
if { ac_try='cc -c conftest.$ac_ext >&5'
6747
{ { case "(($ac_try" in
6748
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6749
*) ac_try_echo=$ac_try;;
6751
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6752
$as_echo "$ac_try_echo"; } >&5
6753
(eval "$ac_try") 2>&5
6755
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6756
test $ac_status = 0; }; }; then
6757
ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6759
if { { case "(($ac_try" in
6760
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6761
*) ac_try_echo=$ac_try;;
6763
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6764
$as_echo "$ac_try_echo"; } >&5
6765
(eval "$ac_try") 2>&5
6767
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6768
test $ac_status = 0; } &&
6769
test -f conftest2.$ac_objext && { { case "(($ac_try" in
6770
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6771
*) ac_try_echo=$ac_try;;
6773
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6774
$as_echo "$ac_try_echo"; } >&5
6775
(eval "$ac_try") 2>&5
6777
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6778
test $ac_status = 0; };
6783
# cc exists but doesn't like -o.
6784
eval ac_cv_prog_cc_${ac_cc}_c_o=no
6789
eval ac_cv_prog_cc_${ac_cc}_c_o=no
6791
rm -f core conftest*
6794
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
6795
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6796
$as_echo "yes" >&6; }
6798
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6799
$as_echo "no" >&6; }
6801
$as_echo "@%:@define NO_MINUS_C_MINUS_O 1" >>confdefs.h
6805
# FIXME: we rely on the cache variable name because
6806
# there is no other way.
6808
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6809
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6810
if test "$am_t" != yes; then
6811
# Losing compiler, so override with the script.
6812
# FIXME: It is wrong to rewrite CC.
6813
# But if we don't then we get into trouble of one sort or another.
6814
# A longer-term fix would be to have automake use am__CC in this case,
6815
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6816
CC="$am_aux_dir/compile $CC"
6820
# By default we simply use the C compiler to build assembly code.
6822
test "${CCAS+set}" = set || CCAS=$CC
6823
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6827
depcc="$CCAS" am_compiler_list=
6829
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6830
$as_echo_n "checking dependency style of $depcc... " >&6; }
6831
if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
6832
$as_echo_n "(cached) " >&6
6834
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6835
# We make a subdir and do the tests there. Otherwise we can end up
6836
# making bogus files that we don't know about and never remove. For
6837
# instance it was reported that on HP-UX the gcc test will end up
6838
# making a dummy file named `D' -- because `-MD' means `put the output
6841
# Copy depcomp to subdir because otherwise we won't find it if we're
6842
# using a relative directory.
6843
cp "$am_depcomp" conftest.dir
6845
# We will build objects and dependencies in a subdirectory because
6846
# it helps to detect inapplicable dependency modes. For instance
6847
# both Tru64's cc and ICC support -MD to output dependencies as a
6848
# side effect of compilation, but ICC will put the dependencies in
6849
# the current directory while Tru64 will put them in the object
6853
am_cv_CCAS_dependencies_compiler_type=none
6854
if test "$am_compiler_list" = ""; then
6855
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6860
for depmode in $am_compiler_list; do
6861
# Setup a source with many dependencies, because some compilers
6862
# like to wrap large dependency lists on column 80 (with \), and
6863
# we should not choose a depcomp mode which is confused by this.
6865
# We need to recreate these files for each test, as the compiler may
6866
# overwrite some of them when testing with obscure command lines.
6867
# This happens at least with the AIX C compiler.
6869
for i in 1 2 3 4 5 6; do
6870
echo '#include "conftst'$i'.h"' >> sub/conftest.c
6871
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6872
# Solaris 8's {/usr,}/bin/sh.
6873
touch sub/conftst$i.h
6875
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6877
# We check with `-c' and `-o' for the sake of the "dashmstdout"
6878
# mode. It turns out that the SunPro C++ compiler does not properly
6879
# handle `-M -o', and we need to detect this. Also, some Intel
6880
# versions had trouble with output in subdirs
6881
am__obj=sub/conftest.${OBJEXT-o}
6882
am__minus_obj="-o $am__obj"
6885
# This depmode causes a compiler race in universal mode.
6886
test "$am__universal" = false || continue
6889
# after this tag, mechanisms are not by side-effect, so they'll
6890
# only be used when explicitly requested
6891
if test "x$enable_dependency_tracking" = xyes; then
6897
msvisualcpp | msvcmsys)
6898
# This compiler won't grok `-c -o', but also, the minuso test has
6899
# not run yet. These depmodes are late enough in the game, and
6900
# so weak that their functioning should not be impacted.
6901
am__obj=conftest.${OBJEXT-o}
6906
if depmode=$depmode \
6907
source=sub/conftest.c object=$am__obj \
6908
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6909
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6910
>/dev/null 2>conftest.err &&
6911
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6912
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6913
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6914
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6915
# icc doesn't choke on unknown options, it will just issue warnings
6916
# or remarks (even with -Werror). So we grep stderr for any message
6917
# that says an option was ignored or not supported.
6918
# When given -MP, icc 7.0 and 7.1 complain thusly:
6919
# icc: Command line warning: ignoring option '-M'; no argument required
6920
# The diagnosis changed in icc 8.0:
6921
# icc: Command line remark: option '-MP' not supported
6922
if (grep 'ignoring option' conftest.err ||
6923
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6924
am_cv_CCAS_dependencies_compiler_type=$depmode
6933
am_cv_CCAS_dependencies_compiler_type=none
6937
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
6938
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
6939
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
6942
test "x$enable_dependency_tracking" != xno \
6943
&& test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
6944
am__fastdepCCAS_TRUE=
6945
am__fastdepCCAS_FALSE='#'
6947
am__fastdepCCAS_TRUE='#'
6948
am__fastdepCCAS_FALSE=
6954
test "x$GCC" = xyes || as_fn_error $? "GCC is required" "$LINENO" 5
6958
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6959
$as_echo_n "checking whether NLS is requested... " >&6; }
6960
@%:@ Check whether --enable-nls was given.
6961
if test "${enable_nls+set}" = set; then :
6962
enableval=$enable_nls; USE_NLS=$enableval
6967
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6968
$as_echo "$USE_NLS" >&6; }
6973
GETTEXT_MACRO_VERSION=0.18
6978
# Prepare PATH_SEPARATOR.
6979
# The user is always right.
6980
if test "${PATH_SEPARATOR+set}" != set; then
6981
# Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6982
# contains only /bin. Note that ksh looks also at the FPATH variable,
6983
# so we have to set that as well for the test.
6985
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6986
&& { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6987
|| PATH_SEPARATOR=';'
6991
# Find out how to test for executable files. Don't use a zero-byte file,
6992
# as systems may use methods other than mode bits to determine executability.
6993
cat >conf$$.file <<_ASEOF
6997
chmod +x conf$$.file
6998
if test -x conf$$.file >/dev/null 2>&1; then
6999
ac_executable_p="test -x"
7001
ac_executable_p="test -f"
7005
# Extract the first word of "msgfmt", so it can be a program name with args.
7006
set dummy msgfmt; ac_word=$2
7007
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7008
$as_echo_n "checking for $ac_word... " >&6; }
7009
if test "${ac_cv_path_MSGFMT+set}" = set; then :
7010
$as_echo_n "(cached) " >&6
7014
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7017
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7018
for ac_dir in $PATH; do
7020
test -z "$ac_dir" && ac_dir=.
7021
for ac_exec_ext in '' $ac_executable_extensions; do
7022
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7023
echo "$as_me: trying $ac_dir/$ac_word..." >&5
7024
if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
7025
(if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7026
ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7033
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7037
MSGFMT="$ac_cv_path_MSGFMT"
7038
if test "$MSGFMT" != ":"; then
7039
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
7040
$as_echo "$MSGFMT" >&6; }
7042
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7043
$as_echo "no" >&6; }
7046
# Extract the first word of "gmsgfmt", so it can be a program name with args.
7047
set dummy gmsgfmt; ac_word=$2
7048
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7049
$as_echo_n "checking for $ac_word... " >&6; }
7050
if test "${ac_cv_path_GMSGFMT+set}" = set; then :
7051
$as_echo_n "(cached) " >&6
7055
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7058
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062
test -z "$as_dir" && as_dir=.
7063
for ac_exec_ext in '' $ac_executable_extensions; do
7064
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7065
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7066
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7073
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7077
GMSGFMT=$ac_cv_path_GMSGFMT
7078
if test -n "$GMSGFMT"; then
7079
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7080
$as_echo "$GMSGFMT" >&6; }
7082
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083
$as_echo "no" >&6; }
7088
case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7089
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
7090
*) MSGFMT_015=$MSGFMT ;;
7093
case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7094
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
7095
*) GMSGFMT_015=$GMSGFMT ;;
7100
# Prepare PATH_SEPARATOR.
7101
# The user is always right.
7102
if test "${PATH_SEPARATOR+set}" != set; then
7103
# Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7104
# contains only /bin. Note that ksh looks also at the FPATH variable,
7105
# so we have to set that as well for the test.
7107
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7108
&& { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7109
|| PATH_SEPARATOR=';'
7113
# Find out how to test for executable files. Don't use a zero-byte file,
7114
# as systems may use methods other than mode bits to determine executability.
7115
cat >conf$$.file <<_ASEOF
7119
chmod +x conf$$.file
7120
if test -x conf$$.file >/dev/null 2>&1; then
7121
ac_executable_p="test -x"
7123
ac_executable_p="test -f"
7127
# Extract the first word of "xgettext", so it can be a program name with args.
7128
set dummy xgettext; ac_word=$2
7129
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7130
$as_echo_n "checking for $ac_word... " >&6; }
7131
if test "${ac_cv_path_XGETTEXT+set}" = set; then :
7132
$as_echo_n "(cached) " >&6
7136
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7139
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7140
for ac_dir in $PATH; do
7142
test -z "$ac_dir" && ac_dir=.
7143
for ac_exec_ext in '' $ac_executable_extensions; do
7144
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7145
echo "$as_me: trying $ac_dir/$ac_word..." >&5
7146
if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
7147
(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
7148
ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7155
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7159
XGETTEXT="$ac_cv_path_XGETTEXT"
7160
if test "$XGETTEXT" != ":"; then
7161
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7162
$as_echo "$XGETTEXT" >&6; }
7164
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7165
$as_echo "no" >&6; }
7170
case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7171
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
7172
*) XGETTEXT_015=$XGETTEXT ;;
7177
# Prepare PATH_SEPARATOR.
7178
# The user is always right.
7179
if test "${PATH_SEPARATOR+set}" != set; then
7180
# Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7181
# contains only /bin. Note that ksh looks also at the FPATH variable,
7182
# so we have to set that as well for the test.
7184
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7185
&& { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7186
|| PATH_SEPARATOR=';'
7190
# Find out how to test for executable files. Don't use a zero-byte file,
7191
# as systems may use methods other than mode bits to determine executability.
7192
cat >conf$$.file <<_ASEOF
7196
chmod +x conf$$.file
7197
if test -x conf$$.file >/dev/null 2>&1; then
7198
ac_executable_p="test -x"
7200
ac_executable_p="test -f"
7204
# Extract the first word of "msgmerge", so it can be a program name with args.
7205
set dummy msgmerge; ac_word=$2
7206
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207
$as_echo_n "checking for $ac_word... " >&6; }
7208
if test "${ac_cv_path_MSGMERGE+set}" = set; then :
7209
$as_echo_n "(cached) " >&6
7213
ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7216
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7217
for ac_dir in $PATH; do
7219
test -z "$ac_dir" && ac_dir=.
7220
for ac_exec_ext in '' $ac_executable_extensions; do
7221
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7222
echo "$as_me: trying $ac_dir/$ac_word..." >&5
7223
if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
7224
ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7231
test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7235
MSGMERGE="$ac_cv_path_MSGMERGE"
7236
if test "$MSGMERGE" != ":"; then
7237
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7238
$as_echo "$MSGMERGE" >&6; }
7240
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241
$as_echo "no" >&6; }
7245
test -n "$localedir" || localedir='${datadir}/locale'
7248
test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
7251
ac_config_commands="$ac_config_commands po-directories"
7255
if test "X$prefix" = "XNONE"; then
7256
acl_final_prefix="$ac_default_prefix"
7258
acl_final_prefix="$prefix"
7260
if test "X$exec_prefix" = "XNONE"; then
7261
acl_final_exec_prefix='${prefix}'
7263
acl_final_exec_prefix="$exec_prefix"
7265
acl_save_prefix="$prefix"
7266
prefix="$acl_final_prefix"
7267
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7268
prefix="$acl_save_prefix"
7271
@%:@ Check whether --with-gnu-ld was given.
7272
if test "${with_gnu_ld+set}" = set; then :
7273
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7278
# Prepare PATH_SEPARATOR.
7279
# The user is always right.
7280
if test "${PATH_SEPARATOR+set}" != set; then
7281
# Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7282
# contains only /bin. Note that ksh looks also at the FPATH variable,
7283
# so we have to set that as well for the test.
7285
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7286
&& { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7287
|| PATH_SEPARATOR=';'
7291
if test "$GCC" = yes; then
7292
# Check if gcc -print-prog-name=ld gives a path.
7293
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7294
$as_echo_n "checking for ld used by GCC... " >&6; }
7297
# gcc leaves a trailing carriage return which upsets mingw
7298
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7300
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7303
# Accept absolute paths.
7304
[\\/]* | [A-Za-z]:[\\/]*)
7305
re_direlt='/[^/][^/]*/\.\./'
7306
# Canonicalize the path of ld
7307
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7308
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7309
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7311
test -z "$LD" && LD="$ac_prog"
7314
# If it fails, then pretend we aren't using GCC.
7318
# If it is relative, then search for the first ld in PATH.
7322
elif test "$with_gnu_ld" = yes; then
7323
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7324
$as_echo_n "checking for GNU ld... " >&6; }
7326
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7327
$as_echo_n "checking for non-GNU ld... " >&6; }
7329
if test "${acl_cv_path_LD+set}" = set; then :
7330
$as_echo_n "(cached) " >&6
7332
if test -z "$LD"; then
7333
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7334
for ac_dir in $PATH; do
7335
test -z "$ac_dir" && ac_dir=.
7336
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7337
acl_cv_path_LD="$ac_dir/$ac_prog"
7338
# Check to see if the program is GNU ld. I'd rather use --version,
7339
# but apparently some GNU ld's only accept -v.
7340
# Break only if it was the GNU/non-GNU ld that we prefer.
7341
case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7342
*GNU* | *'with BFD'*)
7343
test "$with_gnu_ld" != no && break ;;
7345
test "$with_gnu_ld" != yes && break ;;
7351
acl_cv_path_LD="$LD" # Let the user override the test with a path.
7355
LD="$acl_cv_path_LD"
7356
if test -n "$LD"; then
7357
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7358
$as_echo "$LD" >&6; }
7360
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361
$as_echo "no" >&6; }
7363
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7364
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7365
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7366
if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7367
$as_echo_n "(cached) " >&6
7369
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
7370
case `$LD -v 2>&1 </dev/null` in
7371
*GNU* | *'with BFD'*)
7372
acl_cv_prog_gnu_ld=yes ;;
7374
acl_cv_prog_gnu_ld=no ;;
7377
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7378
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
7379
with_gnu_ld=$acl_cv_prog_gnu_ld
7384
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7385
$as_echo_n "checking for shared library run path origin... " >&6; }
7386
if test "${acl_cv_rpath+set}" = set; then :
7387
$as_echo_n "(cached) " >&6
7390
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7391
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7397
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7398
$as_echo "$acl_cv_rpath" >&6; }
7400
acl_libext="$acl_cv_libext"
7401
acl_shlibext="$acl_cv_shlibext"
7402
acl_libname_spec="$acl_cv_libname_spec"
7403
acl_library_names_spec="$acl_cv_library_names_spec"
7404
acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7405
acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7406
acl_hardcode_direct="$acl_cv_hardcode_direct"
7407
acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7408
@%:@ Check whether --enable-rpath was given.
7409
if test "${enable_rpath+set}" = set; then :
7410
enableval=$enable_rpath; :
7422
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7423
$as_echo_n "checking for 64-bit host... " >&6; }
7424
if test "${gl_cv_solaris_64bit+set}" = set; then :
7425
$as_echo_n "(cached) " >&6
7427
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7428
/* end confdefs.h. */
7435
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7436
$EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7437
gl_cv_solaris_64bit=yes
7439
gl_cv_solaris_64bit=no
7445
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7446
$as_echo "$gl_cv_solaris_64bit" >&6; }
7447
if test $gl_cv_solaris_64bit = yes; then
7448
acl_libdirstem=lib/64
7450
sparc*) acl_libdirstem2=lib/sparcv9 ;;
7451
i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7456
searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7457
if test -n "$searchpath"; then
7458
acl_save_IFS="${IFS= }"; IFS=":"
7459
for searchdir in $searchpath; do
7460
if test -d "$searchdir"; then
7461
case "$searchdir" in
7462
*/lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7464
# Better ignore directories of this form. They are misleading.
7466
*) searchdir=`cd "$searchdir" && pwd`
7467
case "$searchdir" in
7468
*/lib64 ) acl_libdirstem=lib64 ;;
7477
test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7492
acl_save_prefix="$prefix"
7493
prefix="$acl_final_prefix"
7494
acl_save_exec_prefix="$exec_prefix"
7495
exec_prefix="$acl_final_exec_prefix"
7497
eval additional_includedir=\"$includedir\"
7498
eval additional_libdir=\"$libdir\"
7500
exec_prefix="$acl_save_exec_prefix"
7501
prefix="$acl_save_prefix"
7504
@%:@ Check whether --with-libiconv-prefix was given.
7505
if test "${with_libiconv_prefix+set}" = set; then :
7506
withval=$with_libiconv_prefix;
7507
if test "X$withval" = "Xno"; then
7510
if test "X$withval" = "X"; then
7512
acl_save_prefix="$prefix"
7513
prefix="$acl_final_prefix"
7514
acl_save_exec_prefix="$exec_prefix"
7515
exec_prefix="$acl_final_exec_prefix"
7517
eval additional_includedir=\"$includedir\"
7518
eval additional_libdir=\"$libdir\"
7520
exec_prefix="$acl_save_exec_prefix"
7521
prefix="$acl_save_prefix"
7524
additional_includedir="$withval/include"
7525
additional_libdir="$withval/$acl_libdirstem"
7526
if test "$acl_libdirstem2" != "$acl_libdirstem" \
7527
&& ! test -d "$withval/$acl_libdirstem"; then
7528
additional_libdir="$withval/$acl_libdirstem2"
7542
names_already_handled=
7543
names_next_round='iconv '
7544
while test -n "$names_next_round"; do
7545
names_this_round="$names_next_round"
7547
for name in $names_this_round; do
7549
for n in $names_already_handled; do
7550
if test "$n" = "$name"; then
7555
if test -z "$already_handled"; then
7556
names_already_handled="$names_already_handled $name"
7557
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
7558
eval value=\"\$HAVE_LIB$uppername\"
7559
if test -n "$value"; then
7560
if test "$value" = yes; then
7561
eval value=\"\$LIB$uppername\"
7562
test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7563
eval value=\"\$LTLIB$uppername\"
7564
test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7573
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7574
if test -n "$acl_shlibext"; then
7575
shrext=".$acl_shlibext" # typically: shrext=.so
7579
if test $use_additional = yes; then
7580
dir="$additional_libdir"
7581
if test -n "$acl_shlibext"; then
7582
if test -f "$dir/$libname$shrext"; then
7584
found_so="$dir/$libname$shrext"
7586
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7587
ver=`(cd "$dir" && \
7588
for f in "$libname$shrext".*; do echo "$f"; done \
7589
| sed -e "s,^$libname$shrext\\\\.,," \
7590
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7591
| sed 1q ) 2>/dev/null`
7592
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7594
found_so="$dir/$libname$shrext.$ver"
7597
eval library_names=\"$acl_library_names_spec\"
7598
for f in $library_names; do
7599
if test -f "$dir/$f"; then
7608
if test "X$found_dir" = "X"; then
7609
if test -f "$dir/$libname.$acl_libext"; then
7611
found_a="$dir/$libname.$acl_libext"
7614
if test "X$found_dir" != "X"; then
7615
if test -f "$dir/$libname.la"; then
7616
found_la="$dir/$libname.la"
7620
if test "X$found_dir" = "X"; then
7621
for x in $LDFLAGS $LTLIBICONV; do
7623
acl_save_prefix="$prefix"
7624
prefix="$acl_final_prefix"
7625
acl_save_exec_prefix="$exec_prefix"
7626
exec_prefix="$acl_final_exec_prefix"
7628
exec_prefix="$acl_save_exec_prefix"
7629
prefix="$acl_save_prefix"
7633
dir=`echo "X$x" | sed -e 's/^X-L//'`
7634
if test -n "$acl_shlibext"; then
7635
if test -f "$dir/$libname$shrext"; then
7637
found_so="$dir/$libname$shrext"
7639
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7640
ver=`(cd "$dir" && \
7641
for f in "$libname$shrext".*; do echo "$f"; done \
7642
| sed -e "s,^$libname$shrext\\\\.,," \
7643
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7644
| sed 1q ) 2>/dev/null`
7645
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7647
found_so="$dir/$libname$shrext.$ver"
7650
eval library_names=\"$acl_library_names_spec\"
7651
for f in $library_names; do
7652
if test -f "$dir/$f"; then
7661
if test "X$found_dir" = "X"; then
7662
if test -f "$dir/$libname.$acl_libext"; then
7664
found_a="$dir/$libname.$acl_libext"
7667
if test "X$found_dir" != "X"; then
7668
if test -f "$dir/$libname.la"; then
7669
found_la="$dir/$libname.la"
7674
if test "X$found_dir" != "X"; then
7679
if test "X$found_dir" != "X"; then
7680
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7681
if test "X$found_so" != "X"; then
7682
if test "$enable_rpath" = no \
7683
|| test "X$found_dir" = "X/usr/$acl_libdirstem" \
7684
|| test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7685
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7688
for x in $ltrpathdirs; do
7689
if test "X$x" = "X$found_dir"; then
7694
if test -z "$haveit"; then
7695
ltrpathdirs="$ltrpathdirs $found_dir"
7697
if test "$acl_hardcode_direct" = yes; then
7698
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7700
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7701
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7703
for x in $rpathdirs; do
7704
if test "X$x" = "X$found_dir"; then
7709
if test -z "$haveit"; then
7710
rpathdirs="$rpathdirs $found_dir"
7714
for x in $LDFLAGS $LIBICONV; do
7716
acl_save_prefix="$prefix"
7717
prefix="$acl_final_prefix"
7718
acl_save_exec_prefix="$exec_prefix"
7719
exec_prefix="$acl_final_exec_prefix"
7721
exec_prefix="$acl_save_exec_prefix"
7722
prefix="$acl_save_prefix"
7724
if test "X$x" = "X-L$found_dir"; then
7729
if test -z "$haveit"; then
7730
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7732
if test "$acl_hardcode_minus_L" != no; then
7733
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7735
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7741
if test "X$found_a" != "X"; then
7742
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7744
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7747
additional_includedir=
7748
case "$found_dir" in
7749
*/$acl_libdirstem | */$acl_libdirstem/)
7750
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7751
if test "$name" = 'iconv'; then
7752
LIBICONV_PREFIX="$basedir"
7754
additional_includedir="$basedir/include"
7756
*/$acl_libdirstem2 | */$acl_libdirstem2/)
7757
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7758
if test "$name" = 'iconv'; then
7759
LIBICONV_PREFIX="$basedir"
7761
additional_includedir="$basedir/include"
7764
if test "X$additional_includedir" != "X"; then
7765
if test "X$additional_includedir" != "X/usr/include"; then
7767
if test "X$additional_includedir" = "X/usr/local/include"; then
7768
if test -n "$GCC"; then
7770
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7774
if test -z "$haveit"; then
7775
for x in $CPPFLAGS $INCICONV; do
7777
acl_save_prefix="$prefix"
7778
prefix="$acl_final_prefix"
7779
acl_save_exec_prefix="$exec_prefix"
7780
exec_prefix="$acl_final_exec_prefix"
7782
exec_prefix="$acl_save_exec_prefix"
7783
prefix="$acl_save_prefix"
7785
if test "X$x" = "X-I$additional_includedir"; then
7790
if test -z "$haveit"; then
7791
if test -d "$additional_includedir"; then
7792
INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7798
if test -n "$found_la"; then
7799
save_libdir="$libdir"
7801
*/* | *\\*) . "$found_la" ;;
7802
*) . "./$found_la" ;;
7804
libdir="$save_libdir"
7805
for dep in $dependency_libs; do
7808
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7809
if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7810
&& test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7812
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7813
|| test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7814
if test -n "$GCC"; then
7816
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7820
if test -z "$haveit"; then
7822
for x in $LDFLAGS $LIBICONV; do
7824
acl_save_prefix="$prefix"
7825
prefix="$acl_final_prefix"
7826
acl_save_exec_prefix="$exec_prefix"
7827
exec_prefix="$acl_final_exec_prefix"
7829
exec_prefix="$acl_save_exec_prefix"
7830
prefix="$acl_save_prefix"
7832
if test "X$x" = "X-L$additional_libdir"; then
7837
if test -z "$haveit"; then
7838
if test -d "$additional_libdir"; then
7839
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7843
for x in $LDFLAGS $LTLIBICONV; do
7845
acl_save_prefix="$prefix"
7846
prefix="$acl_final_prefix"
7847
acl_save_exec_prefix="$exec_prefix"
7848
exec_prefix="$acl_final_exec_prefix"
7850
exec_prefix="$acl_save_exec_prefix"
7851
prefix="$acl_save_prefix"
7853
if test "X$x" = "X-L$additional_libdir"; then
7858
if test -z "$haveit"; then
7859
if test -d "$additional_libdir"; then
7860
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7867
dir=`echo "X$dep" | sed -e 's/^X-R//'`
7868
if test "$enable_rpath" != no; then
7870
for x in $rpathdirs; do
7871
if test "X$x" = "X$dir"; then
7876
if test -z "$haveit"; then
7877
rpathdirs="$rpathdirs $dir"
7880
for x in $ltrpathdirs; do
7881
if test "X$x" = "X$dir"; then
7886
if test -z "$haveit"; then
7887
ltrpathdirs="$ltrpathdirs $dir"
7892
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7895
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7898
LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7899
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7905
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7906
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7912
if test "X$rpathdirs" != "X"; then
7913
if test -n "$acl_hardcode_libdir_separator"; then
7915
for found_dir in $rpathdirs; do
7916
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7918
acl_save_libdir="$libdir"
7920
eval flag=\"$acl_hardcode_libdir_flag_spec\"
7921
libdir="$acl_save_libdir"
7922
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7924
for found_dir in $rpathdirs; do
7925
acl_save_libdir="$libdir"
7927
eval flag=\"$acl_hardcode_libdir_flag_spec\"
7928
libdir="$acl_save_libdir"
7929
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7933
if test "X$ltrpathdirs" != "X"; then
7934
for found_dir in $ltrpathdirs; do
7935
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7969
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
7970
$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
7971
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
7972
$as_echo_n "(cached) " >&6
7974
gt_save_LIBS="$LIBS"
7975
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7976
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977
/* end confdefs.h. */
7978
#include <CoreFoundation/CFPreferences.h>
7982
CFPreferencesCopyAppValue(NULL, NULL)
7987
if ac_fn_c_try_link "$LINENO"; then :
7988
gt_cv_func_CFPreferencesCopyAppValue=yes
7990
gt_cv_func_CFPreferencesCopyAppValue=no
7992
rm -f core conftest.err conftest.$ac_objext \
7993
conftest$ac_exeext conftest.$ac_ext
7994
LIBS="$gt_save_LIBS"
7996
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
7997
$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
7998
if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8000
$as_echo "@%:@define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8003
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
8004
$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
8005
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
8006
$as_echo_n "(cached) " >&6
8008
gt_save_LIBS="$LIBS"
8009
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8010
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011
/* end confdefs.h. */
8012
#include <CoreFoundation/CFLocale.h>
8016
CFLocaleCopyCurrent();
8021
if ac_fn_c_try_link "$LINENO"; then :
8022
gt_cv_func_CFLocaleCopyCurrent=yes
8024
gt_cv_func_CFLocaleCopyCurrent=no
8026
rm -f core conftest.err conftest.$ac_objext \
8027
conftest$ac_exeext conftest.$ac_ext
8028
LIBS="$gt_save_LIBS"
8030
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8031
$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8032
if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8034
$as_echo "@%:@define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
8038
if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8039
INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8051
case " $gt_needs " in
8052
*" need-formatstring-macros "*) gt_api_version=3 ;;
8053
*" need-ngettext "*) gt_api_version=2 ;;
8054
*) gt_api_version=1 ;;
8056
gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
8057
gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
8059
if test "$USE_NLS" = "yes"; then
8060
gt_use_preinstalled_gnugettext=no
8063
if test $gt_api_version -ge 3; then
8064
gt_revision_test_code='
8065
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8066
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
8068
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
8071
gt_revision_test_code=
8073
if test $gt_api_version -ge 2; then
8074
gt_expression_test_code=' + * ngettext ("", "", 0)'
8076
gt_expression_test_code=
8079
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8080
$as_echo_n "checking for GNU gettext in libc... " >&6; }
8081
if eval "test \"\${$gt_func_gnugettext_libc+set}\"" = set; then :
8082
$as_echo_n "(cached) " >&6
8084
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8085
/* end confdefs.h. */
8087
#include <libintl.h>
8088
$gt_revision_test_code
8089
extern int _nl_msg_cat_cntr;
8090
extern int *_nl_domain_bindings;
8096
bindtextdomain ("", "");
8097
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
8103
if ac_fn_c_try_link "$LINENO"; then :
8104
eval "$gt_func_gnugettext_libc=yes"
8106
eval "$gt_func_gnugettext_libc=no"
8108
rm -f core conftest.err conftest.$ac_objext \
8109
conftest$ac_exeext conftest.$ac_ext
8111
eval ac_res=\$$gt_func_gnugettext_libc
8112
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8113
$as_echo "$ac_res" >&6; }
8115
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
8121
am_save_CPPFLAGS="$CPPFLAGS"
8123
for element in $INCICONV; do
8125
for x in $CPPFLAGS; do
8127
acl_save_prefix="$prefix"
8128
prefix="$acl_final_prefix"
8129
acl_save_exec_prefix="$exec_prefix"
8130
exec_prefix="$acl_final_exec_prefix"
8132
exec_prefix="$acl_save_exec_prefix"
8133
prefix="$acl_save_prefix"
8135
if test "X$x" = "X$element"; then
8140
if test -z "$haveit"; then
8141
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8146
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8147
$as_echo_n "checking for iconv... " >&6; }
8148
if test "${am_cv_func_iconv+set}" = set; then :
8149
$as_echo_n "(cached) " >&6
8152
am_cv_func_iconv="no, consider installing GNU libiconv"
8154
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155
/* end confdefs.h. */
8163
iconv_t cd = iconv_open("","");
8164
iconv(cd,NULL,NULL,NULL,NULL);
8170
if ac_fn_c_try_link "$LINENO"; then :
8171
am_cv_func_iconv=yes
8173
rm -f core conftest.err conftest.$ac_objext \
8174
conftest$ac_exeext conftest.$ac_ext
8175
if test "$am_cv_func_iconv" != yes; then
8176
am_save_LIBS="$LIBS"
8177
LIBS="$LIBS $LIBICONV"
8178
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8179
/* end confdefs.h. */
8187
iconv_t cd = iconv_open("","");
8188
iconv(cd,NULL,NULL,NULL,NULL);
8194
if ac_fn_c_try_link "$LINENO"; then :
8196
am_cv_func_iconv=yes
8198
rm -f core conftest.err conftest.$ac_objext \
8199
conftest$ac_exeext conftest.$ac_ext
8200
LIBS="$am_save_LIBS"
8204
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8205
$as_echo "$am_cv_func_iconv" >&6; }
8206
if test "$am_cv_func_iconv" = yes; then
8207
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
8208
$as_echo_n "checking for working iconv... " >&6; }
8209
if test "${am_cv_func_iconv_works+set}" = set; then :
8210
$as_echo_n "(cached) " >&6
8213
am_save_LIBS="$LIBS"
8214
if test $am_cv_lib_iconv = yes; then
8215
LIBS="$LIBS $LIBICONV"
8217
if test "$cross_compiling" = yes; then :
8220
aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
8221
*) am_cv_func_iconv_works="guessing yes" ;;
8225
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8226
/* end confdefs.h. */
8232
/* Test against AIX 5.1 bug: Failures are not distinguishable from successful
8235
iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8236
if (cd_utf8_to_88591 != (iconv_t)(-1))
8238
static const char input[] = "\342\202\254"; /* EURO SIGN */
8240
const char *inptr = input;
8241
size_t inbytesleft = strlen (input);
8243
size_t outbytesleft = sizeof (buf);
8244
size_t res = iconv (cd_utf8_to_88591,
8245
(char **) &inptr, &inbytesleft,
8246
&outptr, &outbytesleft);
8251
/* Test against Solaris 10 bug: Failures are not distinguishable from
8252
successful returns. */
8254
iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8255
if (cd_ascii_to_88591 != (iconv_t)(-1))
8257
static const char input[] = "\263";
8259
const char *inptr = input;
8260
size_t inbytesleft = strlen (input);
8262
size_t outbytesleft = sizeof (buf);
8263
size_t res = iconv (cd_ascii_to_88591,
8264
(char **) &inptr, &inbytesleft,
8265
&outptr, &outbytesleft);
8270
/* Test against AIX 6.1..7.1 bug: Buffer overrun. */
8272
iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8273
if (cd_88591_to_utf8 != (iconv_t)(-1))
8275
static const char input[] = "\304";
8276
static char buf[2] = { (char)0xDE, (char)0xAD };
8277
const char *inptr = input;
8278
size_t inbytesleft = 1;
8280
size_t outbytesleft = 1;
8281
size_t res = iconv (cd_88591_to_utf8,
8282
(char **) &inptr, &inbytesleft,
8283
&outptr, &outbytesleft);
8284
if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8288
#if 0 /* This bug could be worked around by the caller. */
8289
/* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
8291
iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8292
if (cd_88591_to_utf8 != (iconv_t)(-1))
8294
static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8296
const char *inptr = input;
8297
size_t inbytesleft = strlen (input);
8299
size_t outbytesleft = sizeof (buf);
8300
size_t res = iconv (cd_88591_to_utf8,
8301
(char **) &inptr, &inbytesleft,
8302
&outptr, &outbytesleft);
8308
/* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8310
if (/* Try standardized names. */
8311
iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
8312
/* Try IRIX, OSF/1 names. */
8313
&& iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
8314
/* Try AIX names. */
8315
&& iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
8316
/* Try HP-UX names. */
8317
&& iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
8322
if ac_fn_c_try_run "$LINENO"; then :
8323
am_cv_func_iconv_works=yes
8325
am_cv_func_iconv_works=no
8327
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8328
conftest.$ac_objext conftest.beam conftest.$ac_ext
8331
LIBS="$am_save_LIBS"
8334
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8335
$as_echo "$am_cv_func_iconv_works" >&6; }
8336
case "$am_cv_func_iconv_works" in
8337
*no) am_func_iconv=no am_cv_lib_iconv=no ;;
8338
*) am_func_iconv=yes ;;
8341
am_func_iconv=no am_cv_lib_iconv=no
8343
if test "$am_func_iconv" = yes; then
8345
$as_echo "@%:@define HAVE_ICONV 1" >>confdefs.h
8348
if test "$am_cv_lib_iconv" = yes; then
8349
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8350
$as_echo_n "checking how to link with libiconv... " >&6; }
8351
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8352
$as_echo "$LIBICONV" >&6; }
8354
CPPFLAGS="$am_save_CPPFLAGS"
8371
acl_save_prefix="$prefix"
8372
prefix="$acl_final_prefix"
8373
acl_save_exec_prefix="$exec_prefix"
8374
exec_prefix="$acl_final_exec_prefix"
8376
eval additional_includedir=\"$includedir\"
8377
eval additional_libdir=\"$libdir\"
8379
exec_prefix="$acl_save_exec_prefix"
8380
prefix="$acl_save_prefix"
8383
@%:@ Check whether --with-libintl-prefix was given.
8384
if test "${with_libintl_prefix+set}" = set; then :
8385
withval=$with_libintl_prefix;
8386
if test "X$withval" = "Xno"; then
8389
if test "X$withval" = "X"; then
8391
acl_save_prefix="$prefix"
8392
prefix="$acl_final_prefix"
8393
acl_save_exec_prefix="$exec_prefix"
8394
exec_prefix="$acl_final_exec_prefix"
8396
eval additional_includedir=\"$includedir\"
8397
eval additional_libdir=\"$libdir\"
8399
exec_prefix="$acl_save_exec_prefix"
8400
prefix="$acl_save_prefix"
8403
additional_includedir="$withval/include"
8404
additional_libdir="$withval/$acl_libdirstem"
8405
if test "$acl_libdirstem2" != "$acl_libdirstem" \
8406
&& ! test -d "$withval/$acl_libdirstem"; then
8407
additional_libdir="$withval/$acl_libdirstem2"
8421
names_already_handled=
8422
names_next_round='intl '
8423
while test -n "$names_next_round"; do
8424
names_this_round="$names_next_round"
8426
for name in $names_this_round; do
8428
for n in $names_already_handled; do
8429
if test "$n" = "$name"; then
8434
if test -z "$already_handled"; then
8435
names_already_handled="$names_already_handled $name"
8436
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8437
eval value=\"\$HAVE_LIB$uppername\"
8438
if test -n "$value"; then
8439
if test "$value" = yes; then
8440
eval value=\"\$LIB$uppername\"
8441
test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8442
eval value=\"\$LTLIB$uppername\"
8443
test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8452
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8453
if test -n "$acl_shlibext"; then
8454
shrext=".$acl_shlibext" # typically: shrext=.so
8458
if test $use_additional = yes; then
8459
dir="$additional_libdir"
8460
if test -n "$acl_shlibext"; then
8461
if test -f "$dir/$libname$shrext"; then
8463
found_so="$dir/$libname$shrext"
8465
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8466
ver=`(cd "$dir" && \
8467
for f in "$libname$shrext".*; do echo "$f"; done \
8468
| sed -e "s,^$libname$shrext\\\\.,," \
8469
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8470
| sed 1q ) 2>/dev/null`
8471
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8473
found_so="$dir/$libname$shrext.$ver"
8476
eval library_names=\"$acl_library_names_spec\"
8477
for f in $library_names; do
8478
if test -f "$dir/$f"; then
8487
if test "X$found_dir" = "X"; then
8488
if test -f "$dir/$libname.$acl_libext"; then
8490
found_a="$dir/$libname.$acl_libext"
8493
if test "X$found_dir" != "X"; then
8494
if test -f "$dir/$libname.la"; then
8495
found_la="$dir/$libname.la"
8499
if test "X$found_dir" = "X"; then
8500
for x in $LDFLAGS $LTLIBINTL; do
8502
acl_save_prefix="$prefix"
8503
prefix="$acl_final_prefix"
8504
acl_save_exec_prefix="$exec_prefix"
8505
exec_prefix="$acl_final_exec_prefix"
8507
exec_prefix="$acl_save_exec_prefix"
8508
prefix="$acl_save_prefix"
8512
dir=`echo "X$x" | sed -e 's/^X-L//'`
8513
if test -n "$acl_shlibext"; then
8514
if test -f "$dir/$libname$shrext"; then
8516
found_so="$dir/$libname$shrext"
8518
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8519
ver=`(cd "$dir" && \
8520
for f in "$libname$shrext".*; do echo "$f"; done \
8521
| sed -e "s,^$libname$shrext\\\\.,," \
8522
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8523
| sed 1q ) 2>/dev/null`
8524
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8526
found_so="$dir/$libname$shrext.$ver"
8529
eval library_names=\"$acl_library_names_spec\"
8530
for f in $library_names; do
8531
if test -f "$dir/$f"; then
8540
if test "X$found_dir" = "X"; then
8541
if test -f "$dir/$libname.$acl_libext"; then
8543
found_a="$dir/$libname.$acl_libext"
8546
if test "X$found_dir" != "X"; then
8547
if test -f "$dir/$libname.la"; then
8548
found_la="$dir/$libname.la"
8553
if test "X$found_dir" != "X"; then
8558
if test "X$found_dir" != "X"; then
8559
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8560
if test "X$found_so" != "X"; then
8561
if test "$enable_rpath" = no \
8562
|| test "X$found_dir" = "X/usr/$acl_libdirstem" \
8563
|| test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8564
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8567
for x in $ltrpathdirs; do
8568
if test "X$x" = "X$found_dir"; then
8573
if test -z "$haveit"; then
8574
ltrpathdirs="$ltrpathdirs $found_dir"
8576
if test "$acl_hardcode_direct" = yes; then
8577
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8579
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8580
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8582
for x in $rpathdirs; do
8583
if test "X$x" = "X$found_dir"; then
8588
if test -z "$haveit"; then
8589
rpathdirs="$rpathdirs $found_dir"
8593
for x in $LDFLAGS $LIBINTL; do
8595
acl_save_prefix="$prefix"
8596
prefix="$acl_final_prefix"
8597
acl_save_exec_prefix="$exec_prefix"
8598
exec_prefix="$acl_final_exec_prefix"
8600
exec_prefix="$acl_save_exec_prefix"
8601
prefix="$acl_save_prefix"
8603
if test "X$x" = "X-L$found_dir"; then
8608
if test -z "$haveit"; then
8609
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8611
if test "$acl_hardcode_minus_L" != no; then
8612
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8614
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8620
if test "X$found_a" != "X"; then
8621
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8623
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8626
additional_includedir=
8627
case "$found_dir" in
8628
*/$acl_libdirstem | */$acl_libdirstem/)
8629
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8630
if test "$name" = 'intl'; then
8631
LIBINTL_PREFIX="$basedir"
8633
additional_includedir="$basedir/include"
8635
*/$acl_libdirstem2 | */$acl_libdirstem2/)
8636
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8637
if test "$name" = 'intl'; then
8638
LIBINTL_PREFIX="$basedir"
8640
additional_includedir="$basedir/include"
8643
if test "X$additional_includedir" != "X"; then
8644
if test "X$additional_includedir" != "X/usr/include"; then
8646
if test "X$additional_includedir" = "X/usr/local/include"; then
8647
if test -n "$GCC"; then
8649
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8653
if test -z "$haveit"; then
8654
for x in $CPPFLAGS $INCINTL; do
8656
acl_save_prefix="$prefix"
8657
prefix="$acl_final_prefix"
8658
acl_save_exec_prefix="$exec_prefix"
8659
exec_prefix="$acl_final_exec_prefix"
8661
exec_prefix="$acl_save_exec_prefix"
8662
prefix="$acl_save_prefix"
8664
if test "X$x" = "X-I$additional_includedir"; then
8669
if test -z "$haveit"; then
8670
if test -d "$additional_includedir"; then
8671
INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8677
if test -n "$found_la"; then
8678
save_libdir="$libdir"
8680
*/* | *\\*) . "$found_la" ;;
8681
*) . "./$found_la" ;;
8683
libdir="$save_libdir"
8684
for dep in $dependency_libs; do
8687
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8688
if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8689
&& test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8691
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8692
|| test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8693
if test -n "$GCC"; then
8695
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8699
if test -z "$haveit"; then
8701
for x in $LDFLAGS $LIBINTL; do
8703
acl_save_prefix="$prefix"
8704
prefix="$acl_final_prefix"
8705
acl_save_exec_prefix="$exec_prefix"
8706
exec_prefix="$acl_final_exec_prefix"
8708
exec_prefix="$acl_save_exec_prefix"
8709
prefix="$acl_save_prefix"
8711
if test "X$x" = "X-L$additional_libdir"; then
8716
if test -z "$haveit"; then
8717
if test -d "$additional_libdir"; then
8718
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8722
for x in $LDFLAGS $LTLIBINTL; do
8724
acl_save_prefix="$prefix"
8725
prefix="$acl_final_prefix"
8726
acl_save_exec_prefix="$exec_prefix"
8727
exec_prefix="$acl_final_exec_prefix"
8729
exec_prefix="$acl_save_exec_prefix"
8730
prefix="$acl_save_prefix"
8732
if test "X$x" = "X-L$additional_libdir"; then
8737
if test -z "$haveit"; then
8738
if test -d "$additional_libdir"; then
8739
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8746
dir=`echo "X$dep" | sed -e 's/^X-R//'`
8747
if test "$enable_rpath" != no; then
8749
for x in $rpathdirs; do
8750
if test "X$x" = "X$dir"; then
8755
if test -z "$haveit"; then
8756
rpathdirs="$rpathdirs $dir"
8759
for x in $ltrpathdirs; do
8760
if test "X$x" = "X$dir"; then
8765
if test -z "$haveit"; then
8766
ltrpathdirs="$ltrpathdirs $dir"
8771
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8774
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8777
LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8778
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8784
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8785
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8791
if test "X$rpathdirs" != "X"; then
8792
if test -n "$acl_hardcode_libdir_separator"; then
8794
for found_dir in $rpathdirs; do
8795
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8797
acl_save_libdir="$libdir"
8799
eval flag=\"$acl_hardcode_libdir_flag_spec\"
8800
libdir="$acl_save_libdir"
8801
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8803
for found_dir in $rpathdirs; do
8804
acl_save_libdir="$libdir"
8806
eval flag=\"$acl_hardcode_libdir_flag_spec\"
8807
libdir="$acl_save_libdir"
8808
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8812
if test "X$ltrpathdirs" != "X"; then
8813
for found_dir in $ltrpathdirs; do
8814
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8823
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8824
$as_echo_n "checking for GNU gettext in libintl... " >&6; }
8825
if eval "test \"\${$gt_func_gnugettext_libintl+set}\"" = set; then :
8826
$as_echo_n "(cached) " >&6
8828
gt_save_CPPFLAGS="$CPPFLAGS"
8829
CPPFLAGS="$CPPFLAGS $INCINTL"
8830
gt_save_LIBS="$LIBS"
8831
LIBS="$LIBS $LIBINTL"
8832
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833
/* end confdefs.h. */
8835
#include <libintl.h>
8836
$gt_revision_test_code
8837
extern int _nl_msg_cat_cntr;
8842
const char *_nl_expand_alias (const char *);
8848
bindtextdomain ("", "");
8849
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
8855
if ac_fn_c_try_link "$LINENO"; then :
8856
eval "$gt_func_gnugettext_libintl=yes"
8858
eval "$gt_func_gnugettext_libintl=no"
8860
rm -f core conftest.err conftest.$ac_objext \
8861
conftest$ac_exeext conftest.$ac_ext
8862
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
8863
LIBS="$LIBS $LIBICONV"
8864
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8865
/* end confdefs.h. */
8867
#include <libintl.h>
8868
$gt_revision_test_code
8869
extern int _nl_msg_cat_cntr;
8874
const char *_nl_expand_alias (const char *);
8880
bindtextdomain ("", "");
8881
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
8887
if ac_fn_c_try_link "$LINENO"; then :
8888
LIBINTL="$LIBINTL $LIBICONV"
8889
LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8890
eval "$gt_func_gnugettext_libintl=yes"
8893
rm -f core conftest.err conftest.$ac_objext \
8894
conftest$ac_exeext conftest.$ac_ext
8896
CPPFLAGS="$gt_save_CPPFLAGS"
8897
LIBS="$gt_save_LIBS"
8899
eval ac_res=\$$gt_func_gnugettext_libintl
8900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8901
$as_echo "$ac_res" >&6; }
8904
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
8905
|| { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
8906
&& test "$PACKAGE" != gettext-runtime \
8907
&& test "$PACKAGE" != gettext-tools; }; then
8908
gt_use_preinstalled_gnugettext=yes
8917
if test -n "$INTL_MACOSX_LIBS"; then
8918
if test "$gt_use_preinstalled_gnugettext" = "yes" \
8919
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
8920
LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
8921
LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
8925
if test "$gt_use_preinstalled_gnugettext" = "yes" \
8926
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
8928
$as_echo "@%:@define ENABLE_NLS 1" >>confdefs.h
8935
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
8936
$as_echo_n "checking whether to use NLS... " >&6; }
8937
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8938
$as_echo "$USE_NLS" >&6; }
8939
if test "$USE_NLS" = "yes"; then
8940
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
8941
$as_echo_n "checking where the gettext function comes from... " >&6; }
8942
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8943
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8944
gt_source="external libintl"
8949
gt_source="included intl directory"
8951
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
8952
$as_echo "$gt_source" >&6; }
8955
if test "$USE_NLS" = "yes"; then
8957
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8958
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8959
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
8960
$as_echo_n "checking how to link with libintl... " >&6; }
8961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
8962
$as_echo "$LIBINTL" >&6; }
8964
for element in $INCINTL; do
8966
for x in $CPPFLAGS; do
8968
acl_save_prefix="$prefix"
8969
prefix="$acl_final_prefix"
8970
acl_save_exec_prefix="$exec_prefix"
8971
exec_prefix="$acl_final_exec_prefix"
8973
exec_prefix="$acl_save_exec_prefix"
8974
prefix="$acl_save_prefix"
8976
if test "X$x" = "X$element"; then
8981
if test -z "$haveit"; then
8982
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8989
$as_echo "@%:@define HAVE_GETTEXT 1" >>confdefs.h
8992
$as_echo "@%:@define HAVE_DCGETTEXT 1" >>confdefs.h
9008
@%:@ Check whether --enable-largefile was given.
9009
if test "${enable_largefile+set}" = set; then :
9010
enableval=$enable_largefile;
9013
if test "$enable_largefile" != no; then
9015
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9016
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9017
if test "${ac_cv_sys_largefile_CC+set}" = set; then :
9018
$as_echo_n "(cached) " >&6
9020
ac_cv_sys_largefile_CC=no
9021
if test "$GCC" != yes; then
9024
# IRIX 6.2 and later do not support large files by default,
9025
# so use the C compiler's -n32 option if that helps.
9026
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9027
/* end confdefs.h. */
9028
@%:@include <sys/types.h>
9029
/* Check that off_t can represent 2**63 - 1 correctly.
9030
We can't simply define LARGE_OFF_T to be 9223372036854775807,
9031
since some C++ compilers masquerading as C compilers
9032
incorrectly reject 9223372036854775807. */
9033
@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9034
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9035
&& LARGE_OFF_T % 2147483647 == 1)
9045
if ac_fn_c_try_compile "$LINENO"; then :
9048
rm -f core conftest.err conftest.$ac_objext
9050
if ac_fn_c_try_compile "$LINENO"; then :
9051
ac_cv_sys_largefile_CC=' -n32'; break
9053
rm -f core conftest.err conftest.$ac_objext
9057
rm -f conftest.$ac_ext
9060
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
9061
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9062
if test "$ac_cv_sys_largefile_CC" != no; then
9063
CC=$CC$ac_cv_sys_largefile_CC
9066
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9067
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
9068
if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
9069
$as_echo_n "(cached) " >&6
9072
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9073
/* end confdefs.h. */
9074
@%:@include <sys/types.h>
9075
/* Check that off_t can represent 2**63 - 1 correctly.
9076
We can't simply define LARGE_OFF_T to be 9223372036854775807,
9077
since some C++ compilers masquerading as C compilers
9078
incorrectly reject 9223372036854775807. */
9079
@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9080
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9081
&& LARGE_OFF_T % 2147483647 == 1)
9091
if ac_fn_c_try_compile "$LINENO"; then :
9092
ac_cv_sys_file_offset_bits=no; break
9094
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9095
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9096
/* end confdefs.h. */
9097
@%:@define _FILE_OFFSET_BITS 64
9098
@%:@include <sys/types.h>
9099
/* Check that off_t can represent 2**63 - 1 correctly.
9100
We can't simply define LARGE_OFF_T to be 9223372036854775807,
9101
since some C++ compilers masquerading as C compilers
9102
incorrectly reject 9223372036854775807. */
9103
@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9104
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9105
&& LARGE_OFF_T % 2147483647 == 1)
9115
if ac_fn_c_try_compile "$LINENO"; then :
9116
ac_cv_sys_file_offset_bits=64; break
9118
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9119
ac_cv_sys_file_offset_bits=unknown
9123
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
9124
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9125
case $ac_cv_sys_file_offset_bits in #(
9128
cat >>confdefs.h <<_ACEOF
9129
@%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9134
if test $ac_cv_sys_file_offset_bits = unknown; then
9135
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
9136
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
9137
if test "${ac_cv_sys_large_files+set}" = set; then :
9138
$as_echo_n "(cached) " >&6
9141
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9142
/* end confdefs.h. */
9143
@%:@include <sys/types.h>
9144
/* Check that off_t can represent 2**63 - 1 correctly.
9145
We can't simply define LARGE_OFF_T to be 9223372036854775807,
9146
since some C++ compilers masquerading as C compilers
9147
incorrectly reject 9223372036854775807. */
9148
@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9149
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9150
&& LARGE_OFF_T % 2147483647 == 1)
9160
if ac_fn_c_try_compile "$LINENO"; then :
9161
ac_cv_sys_large_files=no; break
9163
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9164
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165
/* end confdefs.h. */
9166
@%:@define _LARGE_FILES 1
9167
@%:@include <sys/types.h>
9168
/* Check that off_t can represent 2**63 - 1 correctly.
9169
We can't simply define LARGE_OFF_T to be 9223372036854775807,
9170
since some C++ compilers masquerading as C compilers
9171
incorrectly reject 9223372036854775807. */
9172
@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9173
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9174
&& LARGE_OFF_T % 2147483647 == 1)
9184
if ac_fn_c_try_compile "$LINENO"; then :
9185
ac_cv_sys_large_files=1; break
9187
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9188
ac_cv_sys_large_files=unknown
9192
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9193
$as_echo "$ac_cv_sys_large_files" >&6; }
9194
case $ac_cv_sys_large_files in #(
9197
cat >>confdefs.h <<_ACEOF
9198
@%:@define _LARGE_FILES $ac_cv_sys_large_files
9207
# Identify characteristics of the host architecture.
9208
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9209
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9210
if test "${ac_cv_c_bigendian+set}" = set; then :
9211
$as_echo_n "(cached) " >&6
9213
ac_cv_c_bigendian=unknown
9214
# See if we're dealing with a universal compiler.
9215
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9216
/* end confdefs.h. */
9217
#ifndef __APPLE_CC__
9218
not a universal capable compiler
9223
if ac_fn_c_try_compile "$LINENO"; then :
9225
# Check for potential -arch flags. It is not universal unless
9226
# there are at least two -arch flags with different values.
9229
for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9230
if test -n "$ac_prev"; then
9232
i?86 | x86_64 | ppc | ppc64)
9233
if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9236
ac_cv_c_bigendian=universal
9242
elif test "x$ac_word" = "x-arch"; then
9247
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9248
if test $ac_cv_c_bigendian = unknown; then
9249
# See if sys/param.h defines the BYTE_ORDER macro.
9250
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9251
/* end confdefs.h. */
9252
#include <sys/types.h>
9253
#include <sys/param.h>
9258
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9259
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9268
if ac_fn_c_try_compile "$LINENO"; then :
9269
# It does; now see whether it defined to BIG_ENDIAN or not.
9270
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9271
/* end confdefs.h. */
9272
#include <sys/types.h>
9273
#include <sys/param.h>
9278
#if BYTE_ORDER != BIG_ENDIAN
9286
if ac_fn_c_try_compile "$LINENO"; then :
9287
ac_cv_c_bigendian=yes
9289
ac_cv_c_bigendian=no
9291
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9293
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9295
if test $ac_cv_c_bigendian = unknown; then
9296
# See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9297
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298
/* end confdefs.h. */
9304
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9312
if ac_fn_c_try_compile "$LINENO"; then :
9313
# It does; now see whether it defined to _BIG_ENDIAN or not.
9314
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9315
/* end confdefs.h. */
9329
if ac_fn_c_try_compile "$LINENO"; then :
9330
ac_cv_c_bigendian=yes
9332
ac_cv_c_bigendian=no
9334
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9336
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9338
if test $ac_cv_c_bigendian = unknown; then
9339
# Compile a test program.
9340
if test "$cross_compiling" = yes; then :
9341
# Try to guess by grepping values from an object file.
9342
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9343
/* end confdefs.h. */
9344
short int ascii_mm[] =
9345
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9346
short int ascii_ii[] =
9347
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9348
int use_ascii (int i) {
9349
return ascii_mm[i] + ascii_ii[i];
9351
short int ebcdic_ii[] =
9352
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9353
short int ebcdic_mm[] =
9354
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9355
int use_ebcdic (int i) {
9356
return ebcdic_mm[i] + ebcdic_ii[i];
9363
return use_ascii (foo) == use_ebcdic (foo);
9368
if ac_fn_c_try_compile "$LINENO"; then :
9369
if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9370
ac_cv_c_bigendian=yes
9372
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9373
if test "$ac_cv_c_bigendian" = unknown; then
9374
ac_cv_c_bigendian=no
9376
# finding both strings is unlikely to happen, but who knows?
9377
ac_cv_c_bigendian=unknown
9381
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9383
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9384
/* end confdefs.h. */
9385
$ac_includes_default
9390
/* Are we little or big endian? From Harbison&Steele. */
9394
char c[sizeof (long int)];
9397
return u.c[sizeof (long int) - 1] == 1;
9403
if ac_fn_c_try_run "$LINENO"; then :
9404
ac_cv_c_bigendian=no
9406
ac_cv_c_bigendian=yes
9408
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9409
conftest.$ac_objext conftest.beam conftest.$ac_ext
9414
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9415
$as_echo "$ac_cv_c_bigendian" >&6; }
9416
case $ac_cv_c_bigendian in #(
9418
$as_echo "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h
9424
$as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9428
as_fn_error $? "unknown endianness
9429
presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9432
# The cast to long int works around a bug in the HP C Compiler
9433
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9434
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9435
# This bug is HP SR number 8606223364.
9436
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
9437
$as_echo_n "checking size of void *... " >&6; }
9438
if test "${ac_cv_sizeof_void_p+set}" = set; then :
9439
$as_echo_n "(cached) " >&6
9441
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
9444
if test "$ac_cv_type_void_p" = yes; then
9445
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9446
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9447
as_fn_error 77 "cannot compute sizeof (void *)
9448
See \`config.log' for more details" "$LINENO" 5 ; }
9450
ac_cv_sizeof_void_p=0
9455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
9456
$as_echo "$ac_cv_sizeof_void_p" >&6; }
9460
cat >>confdefs.h <<_ACEOF
9461
@%:@define SIZEOF_VOID_P $ac_cv_sizeof_void_p
9465
# The cast to long int works around a bug in the HP C Compiler
9466
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9467
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9468
# This bug is HP SR number 8606223364.
9469
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
9470
$as_echo_n "checking size of long... " >&6; }
9471
if test "${ac_cv_sizeof_long+set}" = set; then :
9472
$as_echo_n "(cached) " >&6
9474
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
9477
if test "$ac_cv_type_long" = yes; then
9478
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9479
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9480
as_fn_error 77 "cannot compute sizeof (long)
9481
See \`config.log' for more details" "$LINENO" 5 ; }
9488
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
9489
$as_echo "$ac_cv_sizeof_long" >&6; }
9493
cat >>confdefs.h <<_ACEOF
9494
@%:@define SIZEOF_LONG $ac_cv_sizeof_long
9500
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler is apple cc" >&5
9501
$as_echo_n "checking whether our compiler is apple cc... " >&6; }
9502
if test "${grub_cv_apple_cc+set}" = set; then :
9503
$as_echo_n "(cached) " >&6
9505
if $CC -v 2>&1 | grep "Apple Inc." > /dev/null; then
9506
grub_cv_apple_cc=yes
9514
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_apple_cc" >&5
9515
$as_echo "$grub_cv_apple_cc" >&6; }
9516
if test x$grub_cv_apple_cc = xyes ; then
9517
HOST_CPPFLAGS="$HOST_CPPFLAGS -DAPPLE_CC=1"
9518
HOST_CFLAGS="$HOST_CFLAGS -fnested-functions"
9521
if test "x$cross_compiling" = xyes; then
9522
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot generate manual pages while cross compiling" >&5
9523
$as_echo "$as_me: WARNING: cannot generate manual pages while cross compiling" >&2;}
9525
# Extract the first word of "help2man", so it can be a program name with args.
9526
set dummy help2man; ac_word=$2
9527
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9528
$as_echo_n "checking for $ac_word... " >&6; }
9529
if test "${ac_cv_path_HELP2MAN+set}" = set; then :
9530
$as_echo_n "(cached) " >&6
9534
ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
9537
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9541
test -z "$as_dir" && as_dir=.
9542
for ac_exec_ext in '' $ac_executable_extensions; do
9543
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9544
ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
9545
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9555
HELP2MAN=$ac_cv_path_HELP2MAN
9556
if test -n "$HELP2MAN"; then
9557
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
9558
$as_echo "$HELP2MAN" >&6; }
9560
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561
$as_echo "no" >&6; }
9567
# Check for functions and headers.
9568
for ac_func in posix_memalign memalign asprintf vasprintf getextmntent
9570
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9571
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9572
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9573
cat >>confdefs.h <<_ACEOF
9574
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9580
for ac_header in libzfs.h libnvpair.h sys/param.h sys/mount.h sys/mnttab.h sys/mkdev.h
9582
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9583
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9584
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9585
cat >>confdefs.h <<_ACEOF
9586
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9594
ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "$ac_includes_default
9595
#include <sys/param.h>
9596
#include <sys/mount.h>
9598
if test "x$ac_cv_member_struct_statfs_f_fstypename" = x""yes; then :
9600
cat >>confdefs.h <<_ACEOF
9601
@%:@define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
9608
ac_fn_c_check_member "$LINENO" "struct statfs" "f_mntfromname" "ac_cv_member_struct_statfs_f_mntfromname" "$ac_includes_default
9609
#include <sys/param.h>
9610
#include <sys/mount.h>
9612
if test "x$ac_cv_member_struct_statfs_f_mntfromname" = x""yes; then :
9614
cat >>confdefs.h <<_ACEOF
9615
@%:@define HAVE_STRUCT_STATFS_F_MNTFROMNAME 1
9622
# For opendisk() and getrawpartition() on NetBSD.
9623
# Used in util/deviceiter.c and in util/hostdisk.c.
9624
ac_fn_c_check_header_mongrel "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default"
9625
if test "x$ac_cv_header_util_h" = x""yes; then :
9627
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for opendisk in -lutil" >&5
9628
$as_echo_n "checking for opendisk in -lutil... " >&6; }
9629
if test "${ac_cv_lib_util_opendisk+set}" = set; then :
9630
$as_echo_n "(cached) " >&6
9632
ac_check_lib_save_LIBS=$LIBS
9634
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9635
/* end confdefs.h. */
9637
/* Override any GCC internal prototype to avoid an error.
9638
Use char because int might match the return type of a GCC
9639
builtin and then its argument prototype would still apply. */
9652
if ac_fn_c_try_link "$LINENO"; then :
9653
ac_cv_lib_util_opendisk=yes
9655
ac_cv_lib_util_opendisk=no
9657
rm -f core conftest.err conftest.$ac_objext \
9658
conftest$ac_exeext conftest.$ac_ext
9659
LIBS=$ac_check_lib_save_LIBS
9661
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_opendisk" >&5
9662
$as_echo "$ac_cv_lib_util_opendisk" >&6; }
9663
if test "x$ac_cv_lib_util_opendisk" = x""yes; then :
9667
$as_echo "@%:@define HAVE_OPENDISK 1" >>confdefs.h
9672
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getrawpartition in -lutil" >&5
9673
$as_echo_n "checking for getrawpartition in -lutil... " >&6; }
9674
if test "${ac_cv_lib_util_getrawpartition+set}" = set; then :
9675
$as_echo_n "(cached) " >&6
9677
ac_check_lib_save_LIBS=$LIBS
9679
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9680
/* end confdefs.h. */
9682
/* Override any GCC internal prototype to avoid an error.
9683
Use char because int might match the return type of a GCC
9684
builtin and then its argument prototype would still apply. */
9688
char getrawpartition ();
9692
return getrawpartition ();
9697
if ac_fn_c_try_link "$LINENO"; then :
9698
ac_cv_lib_util_getrawpartition=yes
9700
ac_cv_lib_util_getrawpartition=no
9702
rm -f core conftest.err conftest.$ac_objext \
9703
conftest$ac_exeext conftest.$ac_ext
9704
LIBS=$ac_check_lib_save_LIBS
9706
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getrawpartition" >&5
9707
$as_echo "$ac_cv_lib_util_getrawpartition" >&6; }
9708
if test "x$ac_cv_lib_util_getrawpartition" = x""yes; then :
9712
$as_echo "@%:@define HAVE_GETRAWPARTITION 1" >>confdefs.h
9724
# Check for host and build compilers.
9727
for ac_prog in gcc egcs cc
9729
# Extract the first word of "$ac_prog", so it can be a program name with args.
9730
set dummy $ac_prog; ac_word=$2
9731
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9732
$as_echo_n "checking for $ac_word... " >&6; }
9733
if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
9734
$as_echo_n "(cached) " >&6
9736
if test -n "$BUILD_CC"; then
9737
ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
9739
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9743
test -z "$as_dir" && as_dir=.
9744
for ac_exec_ext in '' $ac_executable_extensions; do
9745
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9746
ac_cv_prog_BUILD_CC="$ac_prog"
9747
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9756
BUILD_CC=$ac_cv_prog_BUILD_CC
9757
if test -n "$BUILD_CC"; then
9758
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
9759
$as_echo "$BUILD_CC" >&6; }
9761
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9762
$as_echo "no" >&6; }
9766
test -n "$BUILD_CC" && break
9768
test -n "$BUILD_CC" || BUILD_CC="as_fn_error $? "none of gcc, egcs and cc is found. set BUILD_CC manually." "$LINENO" 5 "
9776
LIBC_FATAL_STDERR_=1
9777
export LIBC_FATAL_STDERR_
9779
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9780
# for constant arguments. Useless!
9781
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9782
$as_echo_n "checking for working alloca.h... " >&6; }
9783
if test "${ac_cv_working_alloca_h+set}" = set; then :
9784
$as_echo_n "(cached) " >&6
9786
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9787
/* end confdefs.h. */
9788
@%:@include <alloca.h>
9792
char *p = (char *) alloca (2 * sizeof (int));
9798
if ac_fn_c_try_link "$LINENO"; then :
9799
ac_cv_working_alloca_h=yes
9801
ac_cv_working_alloca_h=no
9803
rm -f core conftest.err conftest.$ac_objext \
9804
conftest$ac_exeext conftest.$ac_ext
9806
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9807
$as_echo "$ac_cv_working_alloca_h" >&6; }
9808
if test $ac_cv_working_alloca_h = yes; then
9810
$as_echo "@%:@define HAVE_ALLOCA_H 1" >>confdefs.h
9814
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9815
$as_echo_n "checking for alloca... " >&6; }
9816
if test "${ac_cv_func_alloca_works+set}" = set; then :
9817
$as_echo_n "(cached) " >&6
9819
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9820
/* end confdefs.h. */
9822
# define alloca __builtin_alloca
9825
# include <malloc.h>
9826
# define alloca _alloca
9828
# ifdef HAVE_ALLOCA_H
9829
# include <alloca.h>
9834
# ifndef alloca /* predefined by HP cc +Olibcalls */
9845
char *p = (char *) alloca (1);
9851
if ac_fn_c_try_link "$LINENO"; then :
9852
ac_cv_func_alloca_works=yes
9854
ac_cv_func_alloca_works=no
9856
rm -f core conftest.err conftest.$ac_objext \
9857
conftest$ac_exeext conftest.$ac_ext
9859
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9860
$as_echo "$ac_cv_func_alloca_works" >&6; }
9862
if test $ac_cv_func_alloca_works = yes; then
9864
$as_echo "@%:@define HAVE_ALLOCA 1" >>confdefs.h
9867
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
9868
# that cause trouble. Some versions do not even contain alloca or
9869
# contain a buggy version. If you still want to use their alloca,
9870
# use ar to extract alloca.o from them instead of compiling alloca.c.
9876
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9878
$as_echo "@%:@define C_ALLOCA 1" >>confdefs.h
9881
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9882
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9883
if test "${ac_cv_os_cray+set}" = set; then :
9884
$as_echo_n "(cached) " >&6
9886
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9887
/* end confdefs.h. */
9888
#if defined CRAY && ! defined CRAY2
9895
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9896
$EGREP "webecray" >/dev/null 2>&1; then :
9904
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9905
$as_echo "$ac_cv_os_cray" >&6; }
9906
if test $ac_cv_os_cray = yes; then
9907
for ac_func in _getb67 GETB67 getb67; do
9908
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9909
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9910
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9912
cat >>confdefs.h <<_ACEOF
9913
@%:@define CRAY_STACKSEG_END $ac_func
9922
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9923
$as_echo_n "checking stack direction for C alloca... " >&6; }
9924
if test "${ac_cv_c_stack_direction+set}" = set; then :
9925
$as_echo_n "(cached) " >&6
9927
if test "$cross_compiling" = yes; then :
9928
ac_cv_c_stack_direction=0
9930
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9931
/* end confdefs.h. */
9932
$ac_includes_default
9934
find_stack_direction ()
9936
static char *addr = 0;
9941
return find_stack_direction ();
9944
return (&dummy > addr) ? 1 : -1;
9950
return find_stack_direction () < 0;
9953
if ac_fn_c_try_run "$LINENO"; then :
9954
ac_cv_c_stack_direction=1
9956
ac_cv_c_stack_direction=-1
9958
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9959
conftest.$ac_objext conftest.beam conftest.$ac_ext
9963
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9964
$as_echo "$ac_cv_c_stack_direction" >&6; }
9965
cat >>confdefs.h <<_ACEOF
9966
@%:@define STACK_DIRECTION $ac_cv_c_stack_direction
9972
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9973
$as_echo_n "checking for inline... " >&6; }
9974
if test "${ac_cv_c_inline+set}" = set; then :
9975
$as_echo_n "(cached) " >&6
9978
for ac_kw in inline __inline__ __inline; do
9979
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9980
/* end confdefs.h. */
9983
static $ac_kw foo_t static_foo () {return 0; }
9984
$ac_kw foo_t foo () {return 0; }
9988
if ac_fn_c_try_compile "$LINENO"; then :
9989
ac_cv_c_inline=$ac_kw
9991
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9992
test "$ac_cv_c_inline" != no && break
9996
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9997
$as_echo "$ac_cv_c_inline" >&6; }
9999
case $ac_cv_c_inline in
10002
case $ac_cv_c_inline in
10004
*) ac_val=$ac_cv_c_inline;;
10006
cat >>confdefs.h <<_ACEOF
10007
#ifndef __cplusplus
10008
#define inline $ac_val
10014
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
10015
$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
10016
if test "${ac_cv_c_restrict+set}" = set; then :
10017
$as_echo_n "(cached) " >&6
10019
ac_cv_c_restrict=no
10020
# The order here caters to the fact that C++ does not require restrict.
10021
for ac_kw in __restrict __restrict__ _Restrict restrict; do
10022
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10023
/* end confdefs.h. */
10024
typedef int * int_ptr;
10025
int foo (int_ptr $ac_kw ip) {
10032
int * $ac_kw t = s;
10039
if ac_fn_c_try_compile "$LINENO"; then :
10040
ac_cv_c_restrict=$ac_kw
10042
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10043
test "$ac_cv_c_restrict" != no && break
10047
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
10048
$as_echo "$ac_cv_c_restrict" >&6; }
10050
case $ac_cv_c_restrict in
10052
no) $as_echo "@%:@define restrict /**/" >>confdefs.h
10054
*) cat >>confdefs.h <<_ACEOF
10055
@%:@define restrict $ac_cv_c_restrict
10060
ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
10061
if test "x$ac_cv_have_decl_getenv" = x""yes; then :
10067
cat >>confdefs.h <<_ACEOF
10068
@%:@define HAVE_DECL_GETENV $ac_have_decl
10071
ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
10072
if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then :
10078
cat >>confdefs.h <<_ACEOF
10079
@%:@define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
10082
ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
10083
if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then :
10089
cat >>confdefs.h <<_ACEOF
10090
@%:@define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
10093
ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
10094
if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then :
10100
cat >>confdefs.h <<_ACEOF
10101
@%:@define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
10104
ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
10105
if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then :
10111
cat >>confdefs.h <<_ACEOF
10112
@%:@define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
10115
ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
10116
if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then :
10122
cat >>confdefs.h <<_ACEOF
10123
@%:@define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
10126
ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
10127
if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then :
10133
cat >>confdefs.h <<_ACEOF
10134
@%:@define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
10137
ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
10138
if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then :
10144
cat >>confdefs.h <<_ACEOF
10145
@%:@define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
10148
ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
10149
if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then :
10155
cat >>confdefs.h <<_ACEOF
10156
@%:@define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
10159
ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
10160
if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then :
10166
cat >>confdefs.h <<_ACEOF
10167
@%:@define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
10170
ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
10171
if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
10177
cat >>confdefs.h <<_ACEOF
10178
@%:@define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10181
ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
10182
if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then :
10188
cat >>confdefs.h <<_ACEOF
10189
@%:@define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
10192
ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
10193
if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then :
10199
cat >>confdefs.h <<_ACEOF
10200
@%:@define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
10203
ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
10204
if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then :
10210
cat >>confdefs.h <<_ACEOF
10211
@%:@define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
10217
for ac_func in $ac_func_list
10219
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10220
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10221
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10222
cat >>confdefs.h <<_ACEOF
10223
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10236
for ac_header in $ac_header_list
10238
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10239
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10241
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10242
cat >>confdefs.h <<_ACEOF
10243
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10255
XGETTEXT_EXTRA_OPTIONS=
10263
GNULIB_MBSRTOWCS=0;
10264
GNULIB_MBSNRTOWCS=0;
10266
GNULIB_WCSRTOMBS=0;
10267
GNULIB_WCSNRTOMBS=0;
10279
HAVE_DECL_WCWIDTH=1;
10280
REPLACE_MBSTATE_T=0;
10286
REPLACE_MBSRTOWCS=0;
10287
REPLACE_MBSNRTOWCS=0;
10289
REPLACE_WCSRTOMBS=0;
10290
REPLACE_WCSNRTOMBS=0;
10294
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
10295
$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
10296
if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
10297
$as_echo_n "(cached) " >&6
10299
gl_cv_header_wchar_h_correct_inline=yes
10300
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10301
/* end confdefs.h. */
10303
#define wcstod renamed_wcstod
10305
extern int zero (void);
10306
int main () { return zero(); }
10309
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10310
(eval $ac_compile) 2>&5
10312
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10313
test $ac_status = 0; }; then
10314
mv conftest.$ac_objext conftest1.$ac_objext
10315
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10316
/* end confdefs.h. */
10318
#define wcstod renamed_wcstod
10320
int zero (void) { return 0; }
10323
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10324
(eval $ac_compile) 2>&5
10326
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10327
test $ac_status = 0; }; then
10328
mv conftest.$ac_objext conftest2.$ac_objext
10329
if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
10332
gl_cv_header_wchar_h_correct_inline=no
10336
rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
10339
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
10340
$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
10341
if test $gl_cv_header_wchar_h_correct_inline = no; then
10342
as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
10343
This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
10344
C99 mode. You have four options:
10345
- Add the flag -fgnu89-inline to CC and reconfigure, or
10346
- Fix your include files, using parts of
10347
<http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
10348
- Use a gcc version older than 4.3, or
10349
- Don't use the flags -std=c99 or -std=gnu99.
10350
Configuration aborted." "$LINENO" 5
10356
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10357
$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10358
if test "${am_cv_langinfo_codeset+set}" = set; then :
10359
$as_echo_n "(cached) " >&6
10361
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10362
/* end confdefs.h. */
10363
#include <langinfo.h>
10367
char* cs = nl_langinfo(CODESET); return !cs;
10372
if ac_fn_c_try_link "$LINENO"; then :
10373
am_cv_langinfo_codeset=yes
10375
am_cv_langinfo_codeset=no
10377
rm -f core conftest.err conftest.$ac_objext \
10378
conftest$ac_exeext conftest.$ac_ext
10381
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10382
$as_echo "$am_cv_langinfo_codeset" >&6; }
10383
if test $am_cv_langinfo_codeset = yes; then
10385
$as_echo "@%:@define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10392
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
10393
$as_echo_n "checking for a traditional french locale... " >&6; }
10394
if test "${gt_cv_locale_fr+set}" = set; then :
10395
$as_echo_n "(cached) " >&6
10398
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10399
/* end confdefs.h. */
10401
#include <locale.h>
10403
#if HAVE_LANGINFO_CODESET
10404
# include <langinfo.h>
10406
#include <stdlib.h>
10407
#include <string.h>
10411
/* Check whether the given locale name is recognized by the system. */
10412
if (setlocale (LC_ALL, "") == NULL) return 1;
10413
/* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10414
On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10415
is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10416
On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10417
succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10418
some unit tests fail. */
10419
#if HAVE_LANGINFO_CODESET
10421
const char *cs = nl_langinfo (CODESET);
10422
if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10427
/* On Cygwin, avoid locale names without encoding suffix, because the
10428
locale_charset() function relies on the encoding suffix. Note that
10429
LC_ALL is set on the command line. */
10430
if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10432
/* Check whether in the abbreviation of the second month, the second
10433
character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
10434
one byte long. This excludes the UTF-8 encoding. */
10435
t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10436
if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
10437
/* Check whether the decimal separator is a comma.
10438
On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10439
are nl_langinfo(RADIXCHAR) are both ".". */
10440
if (localeconv () ->decimal_point[0] != ',') return 1;
10445
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10446
(eval $ac_link) 2>&5
10448
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10449
test $ac_status = 0; } && test -s conftest$ac_exeext; then
10450
# Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10451
# otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
10452
# configure script would override the LC_ALL setting. Likewise for
10453
# LC_CTYPE, which is also set at the beginning of the configure script.
10454
# Test for the usual locale name.
10455
if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10456
gt_cv_locale_fr=fr_FR
10458
# Test for the locale name with explicit encoding suffix.
10459
if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10460
gt_cv_locale_fr=fr_FR.ISO-8859-1
10462
# Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
10463
if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10464
gt_cv_locale_fr=fr_FR.ISO8859-1
10466
# Test for the HP-UX locale name.
10467
if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10468
gt_cv_locale_fr=fr_FR.iso88591
10470
# Test for the Solaris 7 locale name.
10471
if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10475
gt_cv_locale_fr=none
10485
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
10486
$as_echo "$gt_cv_locale_fr" >&6; }
10487
LOCALE_FR=$gt_cv_locale_fr
10491
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system is Windows or MSDOS" >&5
10492
$as_echo_n "checking whether system is Windows or MSDOS... " >&6; }
10493
if test "${ac_cv_win_or_dos+set}" = set; then :
10494
$as_echo_n "(cached) " >&6
10497
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10498
/* end confdefs.h. */
10504
#if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
10505
neither MSDOS nor Windows
10511
if ac_fn_c_try_compile "$LINENO"; then :
10512
ac_cv_win_or_dos=yes
10514
ac_cv_win_or_dos=no
10516
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10519
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_win_or_dos" >&5
10520
$as_echo "$ac_cv_win_or_dos" >&6; }
10522
if test x"$ac_cv_win_or_dos" = xyes; then
10523
ac_fs_accepts_drive_letter_prefix=1
10524
ac_fs_backslash_is_file_name_separator=1
10525
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether drive letter can start relative path" >&5
10526
$as_echo_n "checking whether drive letter can start relative path... " >&6; }
10527
if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then :
10528
$as_echo_n "(cached) " >&6
10531
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10532
/* end confdefs.h. */
10538
#if defined __CYGWIN__
10539
drive letters are always absolute
10545
if ac_fn_c_try_compile "$LINENO"; then :
10546
ac_cv_drive_letter_can_be_relative=yes
10548
ac_cv_drive_letter_can_be_relative=no
10550
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10553
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_drive_letter_can_be_relative" >&5
10554
$as_echo "$ac_cv_drive_letter_can_be_relative" >&6; }
10555
if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
10556
ac_fs_drive_letter_can_be_relative=1
10558
ac_fs_drive_letter_can_be_relative=0
10561
ac_fs_accepts_drive_letter_prefix=0
10562
ac_fs_backslash_is_file_name_separator=0
10563
ac_fs_drive_letter_can_be_relative=0
10567
cat >>confdefs.h <<_ACEOF
10568
@%:@define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
10575
cat >>confdefs.h <<_ACEOF
10576
@%:@define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
10581
cat >>confdefs.h <<_ACEOF
10582
@%:@define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
10588
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
10589
$as_echo_n "checking whether // is distinct from /... " >&6; }
10590
if test "${gl_cv_double_slash_root+set}" = set; then :
10591
$as_echo_n "(cached) " >&6
10593
if test x"$cross_compiling" = xyes ; then
10594
# When cross-compiling, there is no way to tell whether // is special
10595
# short of a list of hosts. However, the only known hosts to date
10596
# that have a distinct // are Apollo DomainOS (too old to port to),
10597
# Cygwin, and z/OS. If anyone knows of another system for which // has
10598
# special semantics and is distinct from /, please report it to
10599
# <bug-gnulib@gnu.org>.
10601
*-cygwin | i370-ibm-openedition)
10602
gl_cv_double_slash_root=yes ;;
10604
# Be optimistic and assume that / and // are the same when we
10606
gl_cv_double_slash_root='unknown, assuming no' ;;
10609
set x `ls -di / // 2>/dev/null`
10610
if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
10611
gl_cv_double_slash_root=no
10613
gl_cv_double_slash_root=yes
10617
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
10618
$as_echo "$gl_cv_double_slash_root" >&6; }
10619
if test "$gl_cv_double_slash_root" = yes; then
10621
$as_echo "@%:@define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
10627
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
10628
$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
10629
if test "${gl_cv_have_include_next+set}" = set; then :
10630
$as_echo_n "(cached) " >&6
10632
rm -rf conftestd1a conftestd1b conftestd2
10633
mkdir conftestd1a conftestd1b conftestd2
10634
cat <<EOF > conftestd1a/conftest.h
10635
#define DEFINED_IN_CONFTESTD1
10636
#include_next <conftest.h>
10637
#ifdef DEFINED_IN_CONFTESTD2
10640
#error "include_next doesn't work"
10643
cat <<EOF > conftestd1b/conftest.h
10644
#define DEFINED_IN_CONFTESTD1
10646
#include_next <conftest.h>
10647
#ifdef DEFINED_IN_CONFTESTD2
10650
#error "include_next doesn't work"
10653
cat <<EOF > conftestd2/conftest.h
10654
#ifndef DEFINED_IN_CONFTESTD1
10655
#error "include_next test doesn't work"
10657
#define DEFINED_IN_CONFTESTD2
10659
gl_save_CPPFLAGS="$CPPFLAGS"
10660
CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
10661
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10662
/* end confdefs.h. */
10663
#include <conftest.h>
10665
if ac_fn_c_try_compile "$LINENO"; then :
10666
gl_cv_have_include_next=yes
10668
CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
10669
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10670
/* end confdefs.h. */
10671
#include <conftest.h>
10673
if ac_fn_c_try_compile "$LINENO"; then :
10674
gl_cv_have_include_next=buggy
10676
gl_cv_have_include_next=no
10678
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10681
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10682
CPPFLAGS="$gl_save_CPPFLAGS"
10683
rm -rf conftestd1a conftestd1b conftestd2
10686
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
10687
$as_echo "$gl_cv_have_include_next" >&6; }
10688
PRAGMA_SYSTEM_HEADER=
10689
if test $gl_cv_have_include_next = yes; then
10690
INCLUDE_NEXT=include_next
10691
INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
10692
if test -n "$GCC"; then
10693
PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
10696
if test $gl_cv_have_include_next = buggy; then
10697
INCLUDE_NEXT=include
10698
INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
10700
INCLUDE_NEXT=include
10701
INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
10712
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
10713
$as_echo_n "checking for complete errno.h... " >&6; }
10714
if test "${gl_cv_header_errno_h_complete+set}" = set; then :
10715
$as_echo_n "(cached) " >&6
10718
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10719
/* end confdefs.h. */
10722
#if !defined ENOMSG
10728
#if !defined ENOLINK
10731
#if !defined EPROTO
10734
#if !defined EMULTIHOP
10737
#if !defined EBADMSG
10740
#if !defined EOVERFLOW
10743
#if !defined ENOTSUP
10746
#if !defined ESTALE
10749
#if !defined ECANCELED
10754
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10755
$EGREP "booboo" >/dev/null 2>&1; then :
10756
gl_cv_header_errno_h_complete=no
10758
gl_cv_header_errno_h_complete=yes
10764
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
10765
$as_echo "$gl_cv_header_errno_h_complete" >&6; }
10766
if test $gl_cv_header_errno_h_complete = yes; then
10775
if test $gl_cv_have_include_next = yes; then
10776
gl_cv_next_errno_h='<'errno.h'>'
10778
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
10779
$as_echo_n "checking absolute name of <errno.h>... " >&6; }
10780
if test "${gl_cv_next_errno_h+set}" = set; then :
10781
$as_echo_n "(cached) " >&6
10784
if test $ac_cv_header_errno_h = yes; then
10785
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10786
/* end confdefs.h. */
10791
aix*) gl_absname_cpp="$ac_cpp -C" ;;
10792
*) gl_absname_cpp="$ac_cpp" ;;
10794
gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10795
sed -n '\#/errno.h#{
10796
s#.*"\(.*/errno.h\)".*#\1#
10802
gl_cv_next_errno_h='<'errno.h'>'
10806
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
10807
$as_echo "$gl_cv_next_errno_h" >&6; }
10809
NEXT_ERRNO_H=$gl_cv_next_errno_h
10811
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10812
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10813
gl_next_as_first_directive='<'errno.h'>'
10815
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10816
gl_next_as_first_directive=$gl_cv_next_errno_h
10818
NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
10826
if test -n "$ERRNO_H"; then
10827
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
10828
$as_echo_n "checking for EMULTIHOP value... " >&6; }
10829
if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
10830
$as_echo_n "(cached) " >&6
10833
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10834
/* end confdefs.h. */
10842
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10843
$EGREP "yes" >/dev/null 2>&1; then :
10844
gl_cv_header_errno_h_EMULTIHOP=yes
10846
gl_cv_header_errno_h_EMULTIHOP=no
10850
if test $gl_cv_header_errno_h_EMULTIHOP = no; then
10851
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10852
/* end confdefs.h. */
10854
#define _XOPEN_SOURCE_EXTENDED 1
10861
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10862
$EGREP "yes" >/dev/null 2>&1; then :
10863
gl_cv_header_errno_h_EMULTIHOP=hidden
10867
if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
10868
if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
10869
#define _XOPEN_SOURCE_EXTENDED 1
10871
/* The following two lines are a workaround against an autoconf-2.52 bug. */
10873
#include <stdlib.h>
10882
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
10883
$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
10884
case $gl_cv_header_errno_h_EMULTIHOP in
10886
EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
10889
EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
10897
if test -n "$ERRNO_H"; then
10898
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
10899
$as_echo_n "checking for ENOLINK value... " >&6; }
10900
if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
10901
$as_echo_n "(cached) " >&6
10904
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10905
/* end confdefs.h. */
10913
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10914
$EGREP "yes" >/dev/null 2>&1; then :
10915
gl_cv_header_errno_h_ENOLINK=yes
10917
gl_cv_header_errno_h_ENOLINK=no
10921
if test $gl_cv_header_errno_h_ENOLINK = no; then
10922
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10923
/* end confdefs.h. */
10925
#define _XOPEN_SOURCE_EXTENDED 1
10932
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10933
$EGREP "yes" >/dev/null 2>&1; then :
10934
gl_cv_header_errno_h_ENOLINK=hidden
10938
if test $gl_cv_header_errno_h_ENOLINK = hidden; then
10939
if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
10940
#define _XOPEN_SOURCE_EXTENDED 1
10942
/* The following two lines are a workaround against an autoconf-2.52 bug. */
10944
#include <stdlib.h>
10953
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
10954
$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
10955
case $gl_cv_header_errno_h_ENOLINK in
10957
ENOLINK_HIDDEN=0; ENOLINK_VALUE=
10960
ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
10968
if test -n "$ERRNO_H"; then
10969
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
10970
$as_echo_n "checking for EOVERFLOW value... " >&6; }
10971
if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
10972
$as_echo_n "(cached) " >&6
10975
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10976
/* end confdefs.h. */
10984
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10985
$EGREP "yes" >/dev/null 2>&1; then :
10986
gl_cv_header_errno_h_EOVERFLOW=yes
10988
gl_cv_header_errno_h_EOVERFLOW=no
10992
if test $gl_cv_header_errno_h_EOVERFLOW = no; then
10993
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10994
/* end confdefs.h. */
10996
#define _XOPEN_SOURCE_EXTENDED 1
11003
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11004
$EGREP "yes" >/dev/null 2>&1; then :
11005
gl_cv_header_errno_h_EOVERFLOW=hidden
11009
if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
11010
if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
11011
#define _XOPEN_SOURCE_EXTENDED 1
11013
/* The following two lines are a workaround against an autoconf-2.52 bug. */
11015
#include <stdlib.h>
11024
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
11025
$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
11026
case $gl_cv_header_errno_h_EOVERFLOW in
11028
EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
11031
EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
11039
ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
11040
if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
11046
cat >>confdefs.h <<_ACEOF
11047
@%:@define HAVE_DECL_STRERROR_R $ac_have_decl
11050
for ac_func in strerror_r
11052
ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
11053
if test "x$ac_cv_func_strerror_r" = x""yes; then :
11054
cat >>confdefs.h <<_ACEOF
11055
@%:@define HAVE_STRERROR_R 1
11061
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
11062
$as_echo_n "checking whether strerror_r returns char *... " >&6; }
11063
if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
11064
$as_echo_n "(cached) " >&6
11067
ac_cv_func_strerror_r_char_p=no
11068
if test $ac_cv_have_decl_strerror_r = yes; then
11069
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11070
/* end confdefs.h. */
11071
$ac_includes_default
11077
char x = *strerror_r (0, buf, sizeof buf);
11078
char *p = strerror_r (0, buf, sizeof buf);
11085
if ac_fn_c_try_compile "$LINENO"; then :
11086
ac_cv_func_strerror_r_char_p=yes
11088
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11090
# strerror_r is not declared. Choose between
11091
# systems that have relatively inaccessible declarations for the
11092
# function. BeOS and DEC UNIX 4.0 fall in this category, but the
11093
# former has a strerror_r that returns char*, while the latter
11094
# has a strerror_r that returns `int'.
11095
# This test should segfault on the DEC system.
11096
if test "$cross_compiling" = yes; then :
11099
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11100
/* end confdefs.h. */
11101
$ac_includes_default
11102
extern char *strerror_r ();
11107
char x = *strerror_r (0, buf, sizeof buf);
11108
return ! isalpha (x);
11113
if ac_fn_c_try_run "$LINENO"; then :
11114
ac_cv_func_strerror_r_char_p=yes
11116
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11117
conftest.$ac_objext conftest.beam conftest.$ac_ext
11123
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
11124
$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
11125
if test $ac_cv_func_strerror_r_char_p = yes; then
11127
$as_echo "@%:@define STRERROR_R_CHAR_P 1" >>confdefs.h
11135
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
11136
$as_echo_n "checking for mbstate_t... " >&6; }
11137
if test "${ac_cv_type_mbstate_t+set}" = set; then :
11138
$as_echo_n "(cached) " >&6
11140
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11141
/* end confdefs.h. */
11142
$ac_includes_default
11143
# include <wchar.h>
11147
mbstate_t x; return sizeof x;
11152
if ac_fn_c_try_compile "$LINENO"; then :
11153
ac_cv_type_mbstate_t=yes
11155
ac_cv_type_mbstate_t=no
11157
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11159
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
11160
$as_echo "$ac_cv_type_mbstate_t" >&6; }
11161
if test $ac_cv_type_mbstate_t = yes; then
11163
$as_echo "@%:@define HAVE_MBSTATE_T 1" >>confdefs.h
11167
$as_echo "@%:@define mbstate_t int" >>confdefs.h
11193
GNULIB_FPRINTF_POSIX=0;
11205
GNULIB_OBSTACK_PRINTF=0;
11206
GNULIB_OBSTACK_PRINTF_POSIX=0;
11210
GNULIB_PRINTF_POSIX=0;
11218
GNULIB_SPRINTF_POSIX=0;
11219
GNULIB_STDIO_H_SIGPIPE=0;
11221
GNULIB_VASPRINTF=0;
11224
GNULIB_VFPRINTF_POSIX=0;
11226
GNULIB_VPRINTF_POSIX=0;
11227
GNULIB_VSNPRINTF=0;
11228
GNULIB_VSPRINTF_POSIX=0;
11229
HAVE_DECL_FPURGE=1;
11230
HAVE_DECL_GETDELIM=1;
11231
HAVE_DECL_GETLINE=1;
11232
HAVE_DECL_OBSTACK_PRINTF=1;
11233
HAVE_DECL_SNPRINTF=1;
11234
HAVE_DECL_VSNPRINTF=1;
11252
REPLACE_GETDELIM=0;
11254
REPLACE_OBSTACK_PRINTF=0;
11260
REPLACE_RENAMEAT=0;
11261
REPLACE_SNPRINTF=0;
11263
REPLACE_STDIO_WRITE_FUNCS=0;
11265
REPLACE_VASPRINTF=0;
11266
REPLACE_VDPRINTF=0;
11267
REPLACE_VFPRINTF=0;
11269
REPLACE_VSNPRINTF=0;
11270
REPLACE_VSPRINTF=0;
11272
ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
11273
if test "x$ac_cv_have_decl_getdelim" = x""yes; then :
11279
cat >>confdefs.h <<_ACEOF
11280
@%:@define HAVE_DECL_GETDELIM $ac_have_decl
11285
ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
11286
if test "x$ac_cv_have_decl_getline" = x""yes; then :
11292
cat >>confdefs.h <<_ACEOF
11293
@%:@define HAVE_DECL_GETLINE $ac_have_decl
11302
GNULIB_EUIDACCESS=0;
11303
GNULIB_FACCESSAT=0;
11307
GNULIB_FTRUNCATE=0;
11309
GNULIB_GETDOMAINNAME=0;
11310
GNULIB_GETDTABLESIZE=0;
11311
GNULIB_GETGROUPS=0;
11312
GNULIB_GETHOSTNAME=0;
11314
GNULIB_GETLOGIN_R=0;
11315
GNULIB_GETPAGESIZE=0;
11316
GNULIB_GETUSERSHELL=0;
11325
GNULIB_READLINKAT=0;
11329
GNULIB_SYMLINKAT=0;
11330
GNULIB_TTYNAME_R=0;
11331
GNULIB_UNISTD_H_GETOPT=0;
11332
GNULIB_UNISTD_H_SIGPIPE=0;
11346
HAVE_GETDOMAINNAME=1;
11347
HAVE_GETDTABLESIZE=1;
11349
HAVE_GETHOSTNAME=1;
11351
HAVE_GETPAGESIZE=1;
11366
HAVE_DECL_ENVIRON=1;
11367
HAVE_DECL_GETLOGIN_R=1;
11368
HAVE_DECL_GETPAGESIZE=1;
11369
HAVE_DECL_GETUSERSHELL=1;
11371
HAVE_SYS_PARAM_H=0;
11376
REPLACE_FCHOWNAT=0;
11378
REPLACE_GETGROUPS=0;
11379
REPLACE_GETPAGESIZE=0;
11386
REPLACE_READLINK=0;
11390
REPLACE_TTYNAME_R=0;
11392
REPLACE_UNLINKAT=0;
11395
UNISTD_H_HAVE_WINSOCK2_H=0;
11396
UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
11411
if test $gl_cv_have_include_next = yes; then
11412
gl_cv_next_getopt_h='<'getopt.h'>'
11414
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
11415
$as_echo_n "checking absolute name of <getopt.h>... " >&6; }
11416
if test "${gl_cv_next_getopt_h+set}" = set; then :
11417
$as_echo_n "(cached) " >&6
11420
if test $ac_cv_header_getopt_h = yes; then
11421
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11422
/* end confdefs.h. */
11423
#include <getopt.h>
11427
aix*) gl_absname_cpp="$ac_cpp -C" ;;
11428
*) gl_absname_cpp="$ac_cpp" ;;
11430
gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11431
sed -n '\#/getopt.h#{
11432
s#.*"\(.*/getopt.h\)".*#\1#
11438
gl_cv_next_getopt_h='<'getopt.h'>'
11442
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
11443
$as_echo "$gl_cv_next_getopt_h" >&6; }
11445
NEXT_GETOPT_H=$gl_cv_next_getopt_h
11447
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11448
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11449
gl_next_as_first_directive='<'getopt.h'>'
11451
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11452
gl_next_as_first_directive=$gl_cv_next_getopt_h
11454
NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
11459
if test $ac_cv_header_getopt_h = yes; then
11468
if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
11469
for ac_header in getopt.h
11471
ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11472
if test "x$ac_cv_header_getopt_h" = x""yes; then :
11473
cat >>confdefs.h <<_ACEOF
11474
@%:@define HAVE_GETOPT_H 1
11478
gl_replace_getopt=yes
11485
if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
11486
for ac_func in getopt_long_only
11488
ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
11489
if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
11490
cat >>confdefs.h <<_ACEOF
11491
@%:@define HAVE_GETOPT_LONG_ONLY 1
11495
gl_replace_getopt=yes
11501
if test -z "$gl_replace_getopt"; then
11502
ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
11504
if test "x$ac_cv_have_decl_optreset" = x""yes; then :
11510
cat >>confdefs.h <<_ACEOF
11511
@%:@define HAVE_DECL_OPTRESET $ac_have_decl
11513
if test $ac_have_decl = 1; then :
11516
ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
11518
if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
11524
cat >>confdefs.h <<_ACEOF
11525
@%:@define HAVE_DECL_GETOPT_CLIP $ac_have_decl
11533
if test -z "$gl_replace_getopt"; then
11534
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
11535
$as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
11536
if test "${gl_cv_func_getopt_posix+set}" = set; then :
11537
$as_echo_n "(cached) " >&6
11540
if test "$cross_compiling" = yes; then :
11542
mingw*) gl_cv_func_getopt_posix="guessing no";;
11543
darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
11544
*) gl_cv_func_getopt_posix="guessing yes";;
11548
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11549
/* end confdefs.h. */
11551
#include <unistd.h>
11552
#include <stdlib.h>
11553
#include <string.h>
11555
#if !HAVE_DECL_OPTRESET && !HAVE_DECL_GETOPT_CLIP
11556
# define OPTIND_MIN 0
11558
# define OPTIND_MIN 1
11569
argv[argc++] = "program";
11570
argv[argc++] = "-a";
11571
argv[argc++] = "foo";
11572
argv[argc++] = "bar";
11574
optind = OPTIND_MIN;
11577
c = getopt (argc, argv, "ab");
11580
c = getopt (argc, argv, "ab");
11583
if (!(optind == 2))
11586
/* Some internal state exists at this point. */
11592
argv[argc++] = "program";
11593
argv[argc++] = "donald";
11594
argv[argc++] = "-p";
11595
argv[argc++] = "billy";
11596
argv[argc++] = "duck";
11597
argv[argc++] = "-a";
11598
argv[argc++] = "bar";
11600
optind = OPTIND_MIN;
11603
c = getopt (argc, argv, "+abp:q:");
11606
if (!(strcmp (argv[0], "program") == 0))
11608
if (!(strcmp (argv[1], "donald") == 0))
11610
if (!(strcmp (argv[2], "-p") == 0))
11612
if (!(strcmp (argv[3], "billy") == 0))
11614
if (!(strcmp (argv[4], "duck") == 0))
11616
if (!(strcmp (argv[5], "-a") == 0))
11618
if (!(strcmp (argv[6], "bar") == 0))
11620
if (!(optind == 1))
11623
/* Detect MacOS 10.5, AIX 7.1 bug. */
11625
char *argv[3] = { "program", "-ab", NULL };
11626
optind = OPTIND_MIN;
11628
if (getopt (2, argv, "ab:") != 'a')
11630
if (getopt (2, argv, "ab:") != '?')
11642
if ac_fn_c_try_run "$LINENO"; then :
11643
gl_cv_func_getopt_posix=yes
11645
gl_cv_func_getopt_posix=no
11647
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11648
conftest.$ac_objext conftest.beam conftest.$ac_ext
11653
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
11654
$as_echo "$gl_cv_func_getopt_posix" >&6; }
11655
case "$gl_cv_func_getopt_posix" in
11656
*no) gl_replace_getopt=yes ;;
11660
if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
11661
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
11662
$as_echo_n "checking for working GNU getopt function... " >&6; }
11663
if test "${gl_cv_func_getopt_gnu+set}" = set; then :
11664
$as_echo_n "(cached) " >&6
11666
# Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
11667
# optstring is necessary for programs like m4 that have POSIX-mandated
11668
# semantics for supporting options interspersed with files.
11669
# Also, since getopt_long is a GNU extension, we require optind=0.
11670
# Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
11671
# so take care to revert to the correct (non-)export state.
11672
gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
11673
case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
11674
xx) gl_had_POSIXLY_CORRECT=exported ;;
11675
x) gl_had_POSIXLY_CORRECT=yes ;;
11676
*) gl_had_POSIXLY_CORRECT= ;;
11679
export POSIXLY_CORRECT
11680
if test "$cross_compiling" = yes; then :
11681
case $host_os:$ac_cv_have_decl_optreset in
11682
*-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
11683
*:yes) gl_cv_func_getopt_gnu=no;;
11684
*) gl_cv_func_getopt_gnu=yes;;
11688
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11689
/* end confdefs.h. */
11690
#include <getopt.h>
11691
#include <stddef.h>
11692
#include <string.h>
11698
/* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
11699
and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
11700
OSF/1 5.1, Solaris 10. */
11703
myargv[0] = "conftest";
11707
if (getopt (2, myargv, "+a") != '?')
11710
/* This code succeeds on glibc 2.8, mingw,
11711
and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
11712
IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
11714
char *argv[] = { "program", "-p", "foo", "bar", NULL };
11717
if (getopt (4, argv, "p::") != 'p')
11719
if (optarg != NULL)
11721
if (getopt (4, argv, "p::") != -1)
11726
/* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
11728
char *argv[] = { "program", "foo", "-p", NULL };
11730
if (getopt (3, argv, "-p") != 1)
11732
if (getopt (3, argv, "-p") != 'p')
11735
/* This code fails on glibc 2.11. */
11737
char *argv[] = { "program", "-b", "-a", NULL };
11738
optind = opterr = 0;
11739
if (getopt (3, argv, "+:a:b") != 'b')
11741
if (getopt (3, argv, "+:a:b") != ':')
11750
if ac_fn_c_try_run "$LINENO"; then :
11751
gl_cv_func_getopt_gnu=yes
11753
gl_cv_func_getopt_gnu=no
11755
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11756
conftest.$ac_objext conftest.beam conftest.$ac_ext
11759
case $gl_had_POSIXLY_CORRECT in
11761
yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
11762
*) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
11766
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
11767
$as_echo "$gl_cv_func_getopt_gnu" >&6; }
11768
if test "$gl_cv_func_getopt_gnu" = "no"; then
11769
gl_replace_getopt=yes
11778
if test -n "$gl_replace_getopt"; then :
11784
$as_echo "@%:@define __GETOPT_PREFIX rpl_" >>confdefs.h
11788
GNULIB_UNISTD_H_GETOPT=1
11797
gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
11807
gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
11818
GNULIB_NL_LANGINFO=0;
11819
HAVE_NL_LANGINFO=1;
11820
REPLACE_NL_LANGINFO=0;
11826
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
11827
$as_echo_n "checking for working fcntl.h... " >&6; }
11828
if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
11829
$as_echo_n "(cached) " >&6
11831
if test "$cross_compiling" = yes; then :
11832
gl_cv_header_working_fcntl_h=cross-compiling
11834
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11835
/* end confdefs.h. */
11836
#include <sys/types.h>
11837
#include <sys/stat.h>
11838
#include <unistd.h>
11841
#define O_NOATIME 0
11844
#define O_NOFOLLOW 0
11846
static int const constants[] =
11848
O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
11849
O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
11856
int status = !constants;
11858
static char const sym[] = "conftest.sym";
11859
if (symlink (".", sym) != 0
11860
|| close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
11865
static char const file[] = "confdefs.h";
11866
int fd = open (file, O_RDONLY | O_NOATIME);
11868
struct stat st0, st1;
11870
|| fstat (fd, &st0) != 0
11872
|| read (fd, &c, 1) != 1
11874
|| stat (file, &st1) != 0
11875
|| st0.st_atime != st1.st_atime)
11883
if ac_fn_c_try_run "$LINENO"; then :
11884
gl_cv_header_working_fcntl_h=yes
11887
32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
11888
64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
11889
96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
11890
*) gl_cv_header_working_fcntl_h='no';;
11893
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11894
conftest.$ac_objext conftest.beam conftest.$ac_ext
11898
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
11899
$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
11901
case $gl_cv_header_working_fcntl_h in #(
11902
*O_NOATIME* | no | cross-compiling) ac_val=0;; #(
11906
cat >>confdefs.h <<_ACEOF
11907
@%:@define HAVE_WORKING_O_NOATIME $ac_val
11911
case $gl_cv_header_working_fcntl_h in #(
11912
*O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
11916
cat >>confdefs.h <<_ACEOF
11917
@%:@define HAVE_WORKING_O_NOFOLLOW $ac_val
11922
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
11923
$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
11924
if test "${ac_cv_gnu_library_2_1+set}" = set; then :
11925
$as_echo_n "(cached) " >&6
11927
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11928
/* end confdefs.h. */
11930
#include <features.h>
11931
#ifdef __GNU_LIBRARY__
11932
#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11938
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11939
$EGREP "Lucky GNU user" >/dev/null 2>&1; then :
11940
ac_cv_gnu_library_2_1=yes
11942
ac_cv_gnu_library_2_1=no
11949
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
11950
$as_echo "$ac_cv_gnu_library_2_1" >&6; }
11952
GLIBC21="$ac_cv_gnu_library_2_1"
11958
GNULIB_CALLOC_POSIX=0;
11959
GNULIB_CANONICALIZE_FILE_NAME=0;
11960
GNULIB_GETLOADAVG=0;
11961
GNULIB_GETSUBOPT=0;
11963
GNULIB_MALLOC_POSIX=0;
11966
GNULIB_MKOSTEMPS=0;
11972
GNULIB_REALLOC_POSIX=0;
11983
HAVE_CANONICALIZE_FILE_NAME=1;
11984
HAVE_DECL_GETLOADAVG=1;
12000
HAVE_STRUCT_RANDOM_DATA=1;
12001
HAVE_SYS_LOADAVG_H=0;
12005
REPLACE_CANONICALIZE_FILE_NAME=0;
12010
REPLACE_REALPATH=0;
12013
REPLACE_UNSETENV=0;
12016
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
12017
$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
12018
if test "${gl_cv_func_malloc_posix+set}" = set; then :
12019
$as_echo_n "(cached) " >&6
12022
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12023
/* end confdefs.h. */
12028
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
12036
if ac_fn_c_try_compile "$LINENO"; then :
12037
gl_cv_func_malloc_posix=yes
12039
gl_cv_func_malloc_posix=no
12041
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12044
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
12045
$as_echo "$gl_cv_func_malloc_posix" >&6; }
12054
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
12055
$as_echo_n "checking for a traditional japanese locale... " >&6; }
12056
if test "${gt_cv_locale_ja+set}" = set; then :
12057
$as_echo_n "(cached) " >&6
12060
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12061
/* end confdefs.h. */
12063
#include <locale.h>
12065
#if HAVE_LANGINFO_CODESET
12066
# include <langinfo.h>
12068
#include <stdlib.h>
12069
#include <string.h>
12075
/* Check whether the given locale name is recognized by the system. */
12076
if (setlocale (LC_ALL, "") == NULL) return 1;
12077
/* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12078
On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12079
is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12080
On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12081
succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12082
some unit tests fail. */
12083
#if HAVE_LANGINFO_CODESET
12085
const char *cs = nl_langinfo (CODESET);
12086
if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
12091
/* On Cygwin, avoid locale names without encoding suffix, because the
12092
locale_charset() function relies on the encoding suffix. Note that
12093
LC_ALL is set on the command line. */
12094
if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12096
/* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
12097
on Cygwin 1.5.x. */
12098
if (MB_CUR_MAX == 1)
12100
/* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
12101
This excludes the UTF-8 encoding. */
12102
t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12103
if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
12104
for (p = buf; *p != '\0'; p++)
12105
if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
12111
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12112
(eval $ac_link) 2>&5
12114
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12115
test $ac_status = 0; } && test -s conftest$ac_exeext; then
12116
# Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12117
# otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
12118
# configure script would override the LC_ALL setting. Likewise for
12119
# LC_CTYPE, which is also set at the beginning of the configure script.
12120
# Test for the AIX locale name.
12121
if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12122
gt_cv_locale_ja=ja_JP
12124
# Test for the locale name with explicit encoding suffix.
12125
if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12126
gt_cv_locale_ja=ja_JP.EUC-JP
12128
# Test for the HP-UX, OSF/1, NetBSD locale name.
12129
if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12130
gt_cv_locale_ja=ja_JP.eucJP
12132
# Test for the IRIX, FreeBSD locale name.
12133
if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12134
gt_cv_locale_ja=ja_JP.EUC
12136
# Test for the Solaris 7 locale name.
12137
if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12140
# Special test for NetBSD 1.6.
12141
if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
12142
gt_cv_locale_ja=ja_JP.eucJP
12145
gt_cv_locale_ja=none
12156
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
12157
$as_echo "$gt_cv_locale_ja" >&6; }
12158
LOCALE_JA=$gt_cv_locale_ja
12164
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
12165
$as_echo_n "checking for a transitional chinese locale... " >&6; }
12166
if test "${gt_cv_locale_zh_CN+set}" = set; then :
12167
$as_echo_n "(cached) " >&6
12170
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12171
/* end confdefs.h. */
12173
#include <locale.h>
12174
#include <stdlib.h>
12176
#if HAVE_LANGINFO_CODESET
12177
# include <langinfo.h>
12179
#include <stdlib.h>
12180
#include <string.h>
12186
/* Check whether the given locale name is recognized by the system. */
12187
if (setlocale (LC_ALL, "") == NULL) return 1;
12188
/* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12189
On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12190
is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12191
On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12192
succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12193
some unit tests fail. */
12194
#if HAVE_LANGINFO_CODESET
12196
const char *cs = nl_langinfo (CODESET);
12197
if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
12202
/* On Cygwin, avoid locale names without encoding suffix, because the
12203
locale_charset() function relies on the encoding suffix. Note that
12204
LC_ALL is set on the command line. */
12205
if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12207
/* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
12208
This excludes the UTF-8 encoding. */
12209
t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12210
if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
12211
for (p = buf; *p != '\0'; p++)
12212
if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
12214
/* Check whether a typical GB18030 multibyte sequence is recognized as a
12215
single wide character. This excludes the GB2312 and GBK encodings. */
12216
if (mblen ("\203\062\332\066", 5) != 4)
12222
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12223
(eval $ac_link) 2>&5
12225
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12226
test $ac_status = 0; } && test -s conftest$ac_exeext; then
12227
# Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12228
# otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
12229
# configure script would override the LC_ALL setting. Likewise for
12230
# LC_CTYPE, which is also set at the beginning of the configure script.
12231
# Test for the locale name without encoding suffix.
12232
if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12233
gt_cv_locale_zh_CN=zh_CN
12235
# Test for the locale name with explicit encoding suffix.
12236
if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12237
gt_cv_locale_zh_CN=zh_CN.GB18030
12240
gt_cv_locale_zh_CN=none
12244
# If there was a link error, due to mblen(), the system is so old that
12245
# it certainly doesn't have a chinese locale.
12246
gt_cv_locale_zh_CN=none
12251
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
12252
$as_echo "$gt_cv_locale_zh_CN" >&6; }
12253
LOCALE_ZH_CN=$gt_cv_locale_zh_CN
12258
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
12259
$as_echo_n "checking for a french Unicode locale... " >&6; }
12260
if test "${gt_cv_locale_fr_utf8+set}" = set; then :
12261
$as_echo_n "(cached) " >&6
12264
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12265
/* end confdefs.h. */
12267
#include <locale.h>
12269
#if HAVE_LANGINFO_CODESET
12270
# include <langinfo.h>
12272
#include <stdlib.h>
12273
#include <string.h>
12277
/* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
12278
imitates locale dependent behaviour by looking at the environment
12279
variables, and all locales use the UTF-8 encoding. */
12280
#if !(defined __BEOS__ || defined __HAIKU__)
12281
/* Check whether the given locale name is recognized by the system. */
12282
if (setlocale (LC_ALL, "") == NULL) return 1;
12283
/* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12284
On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12285
is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12286
On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12287
succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12288
some unit tests fail. */
12289
# if HAVE_LANGINFO_CODESET
12291
const char *cs = nl_langinfo (CODESET);
12292
if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
12297
/* On Cygwin, avoid locale names without encoding suffix, because the
12298
locale_charset() function relies on the encoding suffix. Note that
12299
LC_ALL is set on the command line. */
12300
if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12302
/* Check whether in the abbreviation of the second month, the second
12303
character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
12304
two bytes long, with UTF-8 encoding. */
12305
t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12306
if (strftime (buf, sizeof (buf), "%b", &t) < 4
12307
|| buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
12310
/* Check whether the decimal separator is a comma.
12311
On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
12312
are nl_langinfo(RADIXCHAR) are both ".". */
12313
if (localeconv () ->decimal_point[0] != ',') return 1;
12318
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12319
(eval $ac_link) 2>&5
12321
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12322
test $ac_status = 0; } && test -s conftest$ac_exeext; then
12323
# Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12324
# otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
12325
# configure script would override the LC_ALL setting. Likewise for
12326
# LC_CTYPE, which is also set at the beginning of the configure script.
12327
# Test for the usual locale name.
12328
if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12329
gt_cv_locale_fr_utf8=fr_FR
12331
# Test for the locale name with explicit encoding suffix.
12332
if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12333
gt_cv_locale_fr_utf8=fr_FR.UTF-8
12335
# Test for the Solaris 7 locale name.
12336
if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12337
gt_cv_locale_fr_utf8=fr.UTF-8
12340
gt_cv_locale_fr_utf8=none
12348
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
12349
$as_echo "$gt_cv_locale_fr_utf8" >&6; }
12350
LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
12362
GNULIB_RAWMEMCHR=0;
12365
GNULIB_STRCHRNUL=0;
12373
GNULIB_STRCASESTR=0;
12380
GNULIB_MBSCASECMP=0;
12381
GNULIB_MBSNCASECMP=0;
12382
GNULIB_MBSPCASECMP=0;
12383
GNULIB_MBSCASESTR=0;
12390
GNULIB_STRSIGNAL=0;
12391
GNULIB_STRVERSCMP=0;
12394
HAVE_DECL_MEMMEM=1;
12396
HAVE_DECL_MEMRCHR=1;
12401
HAVE_DECL_STRDUP=1;
12402
HAVE_DECL_STRNDUP=1;
12403
HAVE_DECL_STRNLEN=1;
12407
HAVE_DECL_STRTOK_R=1;
12408
HAVE_DECL_STRSIGNAL=1;
12415
REPLACE_STRCASESTR=0;
12416
REPLACE_STRERROR=0;
12420
REPLACE_STRSIGNAL=0;
12421
REPLACE_STRTOK_R=0;
12422
UNDEFINE_STRTOK_R=0;
12433
# Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
12434
# fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
12435
# irrelevant for anonymous mappings.
12436
ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
12437
if test "x$ac_cv_func_mmap" = x""yes; then :
12444
# Try to allow MAP_ANONYMOUS.
12445
gl_have_mmap_anonymous=no
12446
if test $gl_have_mmap = yes; then
12447
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
12448
$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
12449
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12450
/* end confdefs.h. */
12452
#include <sys/mman.h>
12453
#ifdef MAP_ANONYMOUS
12454
I cant identify this map.
12458
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12459
$EGREP "I cant identify this map." >/dev/null 2>&1; then :
12460
gl_have_mmap_anonymous=yes
12464
if test $gl_have_mmap_anonymous != yes; then
12465
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12466
/* end confdefs.h. */
12468
#include <sys/mman.h>
12470
I cant identify this map.
12474
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12475
$EGREP "I cant identify this map." >/dev/null 2>&1; then :
12477
$as_echo "@%:@define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
12479
gl_have_mmap_anonymous=yes
12484
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
12485
$as_echo "$gl_have_mmap_anonymous" >&6; }
12486
if test $gl_have_mmap_anonymous = yes; then
12488
$as_echo "@%:@define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
12498
if test $ac_cv_func_memchr = yes; then
12499
# Detect platform-specific bugs in some versions of glibc:
12500
# memchr should not dereference anything with length 0
12501
# http://bugzilla.redhat.com/499689
12502
# memchr should not dereference overestimated length after a match
12503
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
12504
# http://sourceware.org/bugzilla/show_bug.cgi?id=10162
12505
# Assume that memchr works on platforms that lack mprotect.
12506
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
12507
$as_echo_n "checking whether memchr works... " >&6; }
12508
if test "${gl_cv_func_memchr_works+set}" = set; then :
12509
$as_echo_n "(cached) " >&6
12511
if test "$cross_compiling" = yes; then :
12512
gl_cv_func_memchr_works="guessing no"
12514
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12515
/* end confdefs.h. */
12517
#include <string.h>
12518
#if HAVE_SYS_MMAN_H
12519
# include <fcntl.h>
12520
# include <unistd.h>
12521
# include <sys/types.h>
12522
# include <sys/mman.h>
12524
# define MAP_FILE 0
12532
char *fence = NULL;
12533
#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
12534
# if HAVE_MAP_ANONYMOUS
12535
const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
12537
# else /* !HAVE_MAP_ANONYMOUS */
12538
const int flags = MAP_FILE | MAP_PRIVATE;
12539
int fd = open ("/dev/zero", O_RDONLY, 0666);
12543
int pagesize = getpagesize ();
12545
(char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
12547
if (two_pages != (char *)(-1)
12548
&& mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
12549
fence = two_pages + pagesize;
12554
if (memchr (fence, 0, 0))
12556
strcpy (fence - 9, "12345678");
12557
if (memchr (fence - 9, 0, 79) != fence - 1)
12559
if (memchr (fence - 1, 0, 3) != fence - 1)
12568
if ac_fn_c_try_run "$LINENO"; then :
12569
gl_cv_func_memchr_works=yes
12571
gl_cv_func_memchr_works=no
12573
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12574
conftest.$ac_objext conftest.beam conftest.$ac_ext
12578
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
12579
$as_echo "$gl_cv_func_memchr_works" >&6; }
12580
if test "$gl_cv_func_memchr_works" != yes; then
12586
if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
12595
gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
12598
for ac_header in bp-sym.h
12600
ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
12601
if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
12602
cat >>confdefs.h <<_ACEOF
12603
@%:@define HAVE_BP_SYM_H 1
12614
gl_cv_c_multiarch=no
12615
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12616
/* end confdefs.h. */
12617
#ifndef __APPLE_CC__
12618
not a universal capable compiler
12623
if ac_fn_c_try_compile "$LINENO"; then :
12627
for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
12628
if test -n "$prev"; then
12630
i?86 | x86_64 | ppc | ppc64)
12631
if test -z "$arch" || test "$arch" = "$word"; then
12634
gl_cv_c_multiarch=yes
12640
if test "x$word" = "x-arch"; then
12647
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12648
if test $gl_cv_c_multiarch = yes; then
12650
$as_echo "@%:@define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12652
APPLE_UNIVERSAL_BUILD=1
12654
APPLE_UNIVERSAL_BUILD=0
12666
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
12667
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
12668
if test "${ac_cv_header_stdbool_h+set}" = set; then :
12669
$as_echo_n "(cached) " >&6
12671
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12672
/* end confdefs.h. */
12674
#include <stdbool.h>
12676
"error: bool is not defined"
12679
"error: false is not defined"
12682
"error: false is not 0"
12685
"error: true is not defined"
12688
"error: true is not 1"
12690
#ifndef __bool_true_false_are_defined
12691
"error: __bool_true_false_are_defined is not defined"
12694
struct s { _Bool s: 1; _Bool t; } s;
12696
char a[true == 1 ? 1 : -1];
12697
char b[false == 0 ? 1 : -1];
12698
char c[__bool_true_false_are_defined == 1 ? 1 : -1];
12699
char d[(bool) 0.5 == true ? 1 : -1];
12700
/* See body of main program for 'e'. */
12701
char f[(_Bool) 0.0 == false ? 1 : -1];
12703
char h[sizeof (_Bool)];
12704
char i[sizeof s.t];
12705
enum { j = false, k = true, l = false * true, m = true * 256 };
12706
/* The following fails for
12707
HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
12709
char o[sizeof n == m * sizeof n[0] ? 1 : -1];
12710
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
12711
/* Catch a bug in an HP-UX C compiler. See
12712
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
12713
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
12725
/* Refer to every declared value, to avoid compiler optimizations. */
12726
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
12727
+ !m + !n + !o + !p + !q + !pq);
12733
if ac_fn_c_try_compile "$LINENO"; then :
12734
ac_cv_header_stdbool_h=yes
12736
ac_cv_header_stdbool_h=no
12738
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12740
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
12741
$as_echo "$ac_cv_header_stdbool_h" >&6; }
12742
ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
12743
if test "x$ac_cv_type__Bool" = x""yes; then :
12745
cat >>confdefs.h <<_ACEOF
12746
@%:@define HAVE__BOOL 1
12752
if test $ac_cv_header_stdbool_h = yes; then
12754
$as_echo "@%:@define HAVE_STDBOOL_H 1" >>confdefs.h
12763
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
12764
$as_echo_n "checking for wchar_t... " >&6; }
12765
if test "${gt_cv_c_wchar_t+set}" = set; then :
12766
$as_echo_n "(cached) " >&6
12768
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12769
/* end confdefs.h. */
12770
#include <stddef.h>
12771
wchar_t foo = (wchar_t)'\0';
12780
if ac_fn_c_try_compile "$LINENO"; then :
12781
gt_cv_c_wchar_t=yes
12785
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12787
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
12788
$as_echo "$gt_cv_c_wchar_t" >&6; }
12789
if test $gt_cv_c_wchar_t = yes; then
12791
$as_echo "@%:@define HAVE_WCHAR_T 1" >>confdefs.h
12798
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
12799
$as_echo_n "checking for long long int... " >&6; }
12800
if test "${ac_cv_type_long_long_int+set}" = set; then :
12801
$as_echo_n "(cached) " >&6
12803
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12804
/* end confdefs.h. */
12806
/* For now, do not test the preprocessor; as of 2007 there are too many
12807
implementations with broken preprocessors. Perhaps this can
12808
be revisited in 2012. In the meantime, code should not expect
12809
#if to work with literals wider than 32 bits. */
12810
/* Test literals. */
12811
long long int ll = 9223372036854775807ll;
12812
long long int nll = -9223372036854775807LL;
12813
unsigned long long int ull = 18446744073709551615ULL;
12814
/* Test constant expressions. */
12815
typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
12817
typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
12823
/* Test availability of runtime routines for shift and division. */
12824
long long int llmax = 9223372036854775807ll;
12825
unsigned long long int ullmax = 18446744073709551615ull;
12826
return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
12827
| (llmax / ll) | (llmax % ll)
12828
| (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
12829
| (ullmax / ull) | (ullmax % ull));
12835
if ac_fn_c_try_link "$LINENO"; then :
12836
if test "$cross_compiling" = yes; then :
12837
ac_cv_type_long_long_int=yes
12839
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12840
/* end confdefs.h. */
12841
@%:@include <limits.h>
12842
@%:@ifndef LLONG_MAX
12844
(1LL << (sizeof (long long int) * CHAR_BIT - 2))
12845
@%:@ define LLONG_MAX (HALF - 1 + HALF)
12850
long long int n = 1;
12854
long long int m = n << i;
12857
if (LLONG_MAX / 2 < m)
12865
if ac_fn_c_try_run "$LINENO"; then :
12866
ac_cv_type_long_long_int=yes
12868
ac_cv_type_long_long_int=no
12870
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12871
conftest.$ac_objext conftest.beam conftest.$ac_ext
12875
ac_cv_type_long_long_int=no
12877
rm -f core conftest.err conftest.$ac_objext \
12878
conftest$ac_exeext conftest.$ac_ext
12880
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
12881
$as_echo "$ac_cv_type_long_long_int" >&6; }
12882
if test $ac_cv_type_long_long_int = yes; then
12884
$as_echo "@%:@define HAVE_LONG_LONG_INT 1" >>confdefs.h
12889
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
12890
$as_echo_n "checking for unsigned long long int... " >&6; }
12891
if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
12892
$as_echo_n "(cached) " >&6
12894
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12895
/* end confdefs.h. */
12897
/* For now, do not test the preprocessor; as of 2007 there are too many
12898
implementations with broken preprocessors. Perhaps this can
12899
be revisited in 2012. In the meantime, code should not expect
12900
#if to work with literals wider than 32 bits. */
12901
/* Test literals. */
12902
long long int ll = 9223372036854775807ll;
12903
long long int nll = -9223372036854775807LL;
12904
unsigned long long int ull = 18446744073709551615ULL;
12905
/* Test constant expressions. */
12906
typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
12908
typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
12914
/* Test availability of runtime routines for shift and division. */
12915
long long int llmax = 9223372036854775807ll;
12916
unsigned long long int ullmax = 18446744073709551615ull;
12917
return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
12918
| (llmax / ll) | (llmax % ll)
12919
| (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
12920
| (ullmax / ull) | (ullmax % ull));
12926
if ac_fn_c_try_link "$LINENO"; then :
12927
ac_cv_type_unsigned_long_long_int=yes
12929
ac_cv_type_unsigned_long_long_int=no
12931
rm -f core conftest.err conftest.$ac_objext \
12932
conftest$ac_exeext conftest.$ac_ext
12934
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
12935
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
12936
if test $ac_cv_type_unsigned_long_long_int = yes; then
12938
$as_echo "@%:@define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
12947
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5
12948
$as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
12949
if test "${gl_cv_prog_as_underscore+set}" = set; then :
12950
$as_echo_n "(cached) " >&6
12952
cat > conftest.c <<EOF
12954
extern "C" int foo (void);
12956
int foo(void) { return 0; }
12958
# Look for the assembly language name in the .s file.
12959
{ ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c'
12960
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12961
(eval $ac_try) 2>&5
12963
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12964
test $ac_status = 0; }; } >/dev/null 2>&1
12965
if grep _foo conftest.s >/dev/null ; then
12966
gl_cv_prog_as_underscore=yes
12968
gl_cv_prog_as_underscore=no
12973
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5
12974
$as_echo "$gl_cv_prog_as_underscore" >&6; }
12975
if test $gl_cv_prog_as_underscore = yes; then
12976
USER_LABEL_PREFIX=_
12981
cat >>confdefs.h <<_ACEOF
12982
@%:@define USER_LABEL_PREFIX $USER_LABEL_PREFIX
12985
ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
12994
HAVE_DECL_STRNCASECMP=1;
13001
if test -z "$ERRNO_H"; then
13002
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
13003
$as_echo_n "checking for working strerror function... " >&6; }
13004
if test "${gl_cv_func_working_strerror+set}" = set; then :
13005
$as_echo_n "(cached) " >&6
13007
if test "$cross_compiling" = yes; then :
13008
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13009
/* end confdefs.h. */
13010
#include <string.h>
13015
return !*strerror (-2);
13020
if ac_fn_c_try_compile "$LINENO"; then :
13021
gl_cv_func_working_strerror=yes
13023
gl_cv_func_working_strerror=no
13025
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13028
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13029
/* end confdefs.h. */
13030
#include <string.h>
13035
return !*strerror (-2);
13040
if ac_fn_c_try_run "$LINENO"; then :
13041
gl_cv_func_working_strerror=yes
13043
gl_cv_func_working_strerror=no
13045
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13046
conftest.$ac_objext conftest.beam conftest.$ac_ext
13051
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
13052
$as_echo "$gl_cv_func_working_strerror" >&6; }
13053
if test $gl_cv_func_working_strerror = no; then
13059
if test $REPLACE_STRERROR = 1; then
13061
ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
13062
if test "x$ac_cv_have_decl_strerror" = x""yes; then :
13068
cat >>confdefs.h <<_ACEOF
13069
@%:@define HAVE_DECL_STRERROR $ac_have_decl
13073
if test $ac_cv_header_sys_socket_h != yes; then
13074
for ac_header in winsock2.h
13076
ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
13077
if test "x$ac_cv_header_winsock2_h" = x""yes; then :
13078
cat >>confdefs.h <<_ACEOF
13079
@%:@define HAVE_WINSOCK2_H 1
13101
if test $gl_cv_have_include_next = yes; then
13102
gl_cv_next_string_h='<'string.h'>'
13104
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
13105
$as_echo_n "checking absolute name of <string.h>... " >&6; }
13106
if test "${gl_cv_next_string_h+set}" = set; then :
13107
$as_echo_n "(cached) " >&6
13110
if test $ac_cv_header_string_h = yes; then
13111
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13112
/* end confdefs.h. */
13113
#include <string.h>
13117
aix*) gl_absname_cpp="$ac_cpp -C" ;;
13118
*) gl_absname_cpp="$ac_cpp" ;;
13120
gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13121
sed -n '\#/string.h#{
13122
s#.*"\(.*/string.h\)".*#\1#
13128
gl_cv_next_string_h='<'string.h'>'
13132
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
13133
$as_echo "$gl_cv_next_string_h" >&6; }
13135
NEXT_STRING_H=$gl_cv_next_string_h
13137
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13138
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13139
gl_next_as_first_directive='<'string.h'>'
13141
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13142
gl_next_as_first_directive=$gl_cv_next_string_h
13144
NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
13150
for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp; do
13151
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13152
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13153
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13154
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
13155
$as_echo_n "(cached) " >&6
13157
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13158
/* end confdefs.h. */
13159
#include <string.h>
13170
if ac_fn_c_try_compile "$LINENO"; then :
13171
eval "$as_gl_Symbol=yes"
13173
eval "$as_gl_Symbol=no"
13175
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13177
eval ac_res=\$$as_gl_Symbol
13178
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13179
$as_echo "$ac_res" >&6; }
13180
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
13181
cat >>confdefs.h <<_ACEOF
13182
@%:@define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13185
eval ac_cv_have_decl_$gl_func=yes
13200
if test $gl_cv_have_include_next = yes; then
13201
gl_cv_next_strings_h='<'strings.h'>'
13203
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <strings.h>" >&5
13204
$as_echo_n "checking absolute name of <strings.h>... " >&6; }
13205
if test "${gl_cv_next_strings_h+set}" = set; then :
13206
$as_echo_n "(cached) " >&6
13209
if test $ac_cv_header_strings_h = yes; then
13210
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13211
/* end confdefs.h. */
13212
#include <strings.h>
13216
aix*) gl_absname_cpp="$ac_cpp -C" ;;
13217
*) gl_absname_cpp="$ac_cpp" ;;
13219
gl_cv_next_strings_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13220
sed -n '\#/strings.h#{
13221
s#.*"\(.*/strings.h\)".*#\1#
13227
gl_cv_next_strings_h='<'strings.h'>'
13231
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5
13232
$as_echo "$gl_cv_next_strings_h" >&6; }
13234
NEXT_STRINGS_H=$gl_cv_next_strings_h
13236
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13237
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13238
gl_next_as_first_directive='<'strings.h'>'
13240
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13241
gl_next_as_first_directive=$gl_cv_next_strings_h
13243
NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
13249
for gl_func in strcasecmp strncasecmp; do
13250
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13251
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13252
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13253
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
13254
$as_echo_n "(cached) " >&6
13256
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13257
/* end confdefs.h. */
13258
#include <strings.h>
13269
if ac_fn_c_try_compile "$LINENO"; then :
13270
eval "$as_gl_Symbol=yes"
13272
eval "$as_gl_Symbol=no"
13274
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13276
eval ac_res=\$$as_gl_Symbol
13277
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13278
$as_echo "$ac_res" >&6; }
13279
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
13280
cat >>confdefs.h <<_ACEOF
13281
@%:@define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13284
eval ac_cv_have_decl_$gl_func=yes
13289
ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
13290
if test "x$ac_cv_have_decl_strndup" = x""yes; then :
13296
cat >>confdefs.h <<_ACEOF
13297
@%:@define HAVE_DECL_STRNDUP $ac_have_decl
13302
ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
13303
if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
13309
cat >>confdefs.h <<_ACEOF
13310
@%:@define HAVE_DECL_STRNLEN $ac_have_decl
13324
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
13325
$as_echo_n "checking for wint_t... " >&6; }
13326
if test "${gt_cv_c_wint_t+set}" = set; then :
13327
$as_echo_n "(cached) " >&6
13329
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13330
/* end confdefs.h. */
13332
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13334
BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
13335
before <wchar.h>. */
13336
#include <stddef.h>
13340
wint_t foo = (wchar_t)'\0';
13349
if ac_fn_c_try_compile "$LINENO"; then :
13354
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13356
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
13357
$as_echo "$gt_cv_c_wint_t" >&6; }
13358
if test $gt_cv_c_wint_t = yes; then
13360
$as_echo "@%:@define HAVE_WINT_T 1" >>confdefs.h
13364
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13365
if test "x$ac_cv_type_size_t" = x""yes; then :
13369
cat >>confdefs.h <<_ACEOF
13370
@%:@define size_t unsigned int
13376
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
13377
$as_echo_n "checking for inttypes.h... " >&6; }
13378
if test "${gl_cv_header_inttypes_h+set}" = set; then :
13379
$as_echo_n "(cached) " >&6
13381
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13382
/* end confdefs.h. */
13384
#include <sys/types.h>
13385
#include <inttypes.h>
13390
uintmax_t i = (uintmax_t) -1; return !i;
13395
if ac_fn_c_try_compile "$LINENO"; then :
13396
gl_cv_header_inttypes_h=yes
13398
gl_cv_header_inttypes_h=no
13400
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13402
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
13403
$as_echo "$gl_cv_header_inttypes_h" >&6; }
13404
if test $gl_cv_header_inttypes_h = yes; then
13406
cat >>confdefs.h <<_ACEOF
13407
@%:@define HAVE_INTTYPES_H_WITH_UINTMAX 1
13413
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
13414
$as_echo_n "checking for stdint.h... " >&6; }
13415
if test "${gl_cv_header_stdint_h+set}" = set; then :
13416
$as_echo_n "(cached) " >&6
13418
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13419
/* end confdefs.h. */
13420
#include <sys/types.h>
13421
#include <stdint.h>
13425
uintmax_t i = (uintmax_t) -1; return !i;
13430
if ac_fn_c_try_compile "$LINENO"; then :
13431
gl_cv_header_stdint_h=yes
13433
gl_cv_header_stdint_h=no
13435
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13437
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
13438
$as_echo "$gl_cv_header_stdint_h" >&6; }
13439
if test $gl_cv_header_stdint_h = yes; then
13441
cat >>confdefs.h <<_ACEOF
13442
@%:@define HAVE_STDINT_H_WITH_UINTMAX 1
13450
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
13451
$as_echo_n "checking for intmax_t... " >&6; }
13452
if test "${gt_cv_c_intmax_t+set}" = set; then :
13453
$as_echo_n "(cached) " >&6
13455
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13456
/* end confdefs.h. */
13458
#include <stddef.h>
13459
#include <stdlib.h>
13460
#if HAVE_STDINT_H_WITH_UINTMAX
13461
#include <stdint.h>
13463
#if HAVE_INTTYPES_H_WITH_UINTMAX
13464
#include <inttypes.h>
13470
intmax_t x = -1; return !x;
13475
if ac_fn_c_try_compile "$LINENO"; then :
13476
gt_cv_c_intmax_t=yes
13478
gt_cv_c_intmax_t=no
13480
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13482
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
13483
$as_echo "$gt_cv_c_intmax_t" >&6; }
13484
if test $gt_cv_c_intmax_t = yes; then
13486
$as_echo "@%:@define HAVE_INTMAX_T 1" >>confdefs.h
13490
test $ac_cv_type_long_long_int = yes \
13491
&& ac_type='long long' \
13494
cat >>confdefs.h <<_ACEOF
13495
@%:@define intmax_t $ac_type
13502
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
13503
$as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
13504
if test "${gl_cv_func_snprintf_retval_c99+set}" = set; then :
13505
$as_echo_n "(cached) " >&6
13508
if test "$cross_compiling" = yes; then :
13511
# Guess yes on glibc systems.
13512
*-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13513
# Guess yes on FreeBSD >= 5.
13514
freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";;
13515
freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13516
# Guess yes on MacOS X >= 10.3.
13517
darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
13518
darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13519
# Guess yes on OpenBSD >= 3.9.
13520
openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
13521
gl_cv_func_snprintf_retval_c99="guessing no";;
13522
openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13523
# Guess yes on Solaris >= 2.6.
13524
solaris2.[0-5]*) gl_cv_func_snprintf_retval_c99="guessing no";;
13525
solaris*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13526
# Guess yes on AIX >= 4.
13527
aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
13528
aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13529
# Guess yes on NetBSD >= 3.
13530
netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
13531
gl_cv_func_snprintf_retval_c99="guessing no";;
13532
netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13533
# Guess yes on BeOS.
13534
beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13535
# If we don't know, assume the worst.
13536
*) gl_cv_func_snprintf_retval_c99="guessing no";;
13540
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13541
/* end confdefs.h. */
13544
#include <string.h>
13545
static char buf[100];
13548
strcpy (buf, "ABCDEF");
13549
if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
13554
if ac_fn_c_try_run "$LINENO"; then :
13555
gl_cv_func_snprintf_retval_c99=yes
13557
gl_cv_func_snprintf_retval_c99=no
13559
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13560
conftest.$ac_objext conftest.beam conftest.$ac_ext
13565
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
13566
$as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
13574
for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
13576
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13577
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13578
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13579
cat >>confdefs.h <<_ACEOF
13580
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13586
ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
13588
if test "x$ac_cv_have_decl__snprintf" = x""yes; then :
13594
cat >>confdefs.h <<_ACEOF
13595
@%:@define HAVE_DECL__SNPRINTF $ac_have_decl
13599
case "$gl_cv_func_snprintf_retval_c99" in
13602
$as_echo "@%:@define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
13607
ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13608
if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
13614
cat >>confdefs.h <<_ACEOF
13615
@%:@define HAVE_DECL_VSNPRINTF $ac_have_decl
13624
ac_fn_c_check_decl "$LINENO" "iswblank" "ac_cv_have_decl_iswblank" "$ac_includes_default"
13625
if test "x$ac_cv_have_decl_iswblank" = x""yes; then :
13631
cat >>confdefs.h <<_ACEOF
13632
@%:@define HAVE_DECL_ISWBLANK $ac_have_decl
13637
GL_COND_LIBTOOL_TRUE=
13638
GL_COND_LIBTOOL_FALSE='#'
13640
GL_COND_LIBTOOL_TRUE='#'
13641
GL_COND_LIBTOOL_FALSE=
13644
gl_cond_libtool=false
13657
gl_source_base='grub-core/gnulib'
13658
# Code from module alloca:
13659
# Code from module alloca-opt:
13665
if test $ac_cv_func_alloca_works = no; then
13669
# Define an additional variable used in the Makefile substitution.
13670
if test $ac_cv_working_alloca_h = yes; then
13671
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
13672
$as_echo_n "checking for alloca as a compiler built-in... " >&6; }
13673
if test "${gl_cv_rpl_alloca+set}" = set; then :
13674
$as_echo_n "(cached) " >&6
13677
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13678
/* end confdefs.h. */
13680
#if defined __GNUC__ || defined _AIX || defined _MSC_VER
13685
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13686
$EGREP "Need own alloca" >/dev/null 2>&1; then :
13687
gl_cv_rpl_alloca=yes
13689
gl_cv_rpl_alloca=no
13695
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
13696
$as_echo "$gl_cv_rpl_alloca" >&6; }
13697
if test $gl_cv_rpl_alloca = yes; then
13699
$as_echo "@%:@define HAVE_ALLOCA 1" >>confdefs.h
13710
# Code from module arg-nonnull:
13711
# Code from module argp:
13720
$as_echo "@%:@define __GETOPT_PREFIX rpl_" >>confdefs.h
13724
GNULIB_UNISTD_H_GETOPT=1
13733
gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
13743
gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
13750
ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
13752
if test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then :
13754
$as_echo "@%:@define HAVE_DECL_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
13758
$as_echo "@%:@define GNULIB_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
13762
ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
13764
if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then :
13766
$as_echo "@%:@define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
13770
$as_echo "@%:@define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
13775
# Check if program_invocation_name and program_invocation_short_name
13776
# are defined elsewhere. It is improbable that only one of them will
13777
# be defined and other not, I prefer to stay on the safe side and to
13778
# test each one separately.
13779
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_name is defined" >&5
13780
$as_echo_n "checking whether program_invocation_name is defined... " >&6; }
13781
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13782
/* end confdefs.h. */
13787
program_invocation_name = "test";
13792
if ac_fn_c_try_link "$LINENO"; then :
13794
$as_echo "@%:@define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
13796
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13797
$as_echo "yes" >&6; }
13799
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13800
$as_echo "no" >&6; }
13802
rm -f core conftest.err conftest.$ac_objext \
13803
conftest$ac_exeext conftest.$ac_ext
13805
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_short_name is defined" >&5
13806
$as_echo_n "checking whether program_invocation_short_name is defined... " >&6; }
13807
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13808
/* end confdefs.h. */
13813
program_invocation_short_name = "test";
13818
if ac_fn_c_try_link "$LINENO"; then :
13820
$as_echo "@%:@define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
13822
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13823
$as_echo "yes" >&6; }
13825
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13826
$as_echo "no" >&6; }
13828
rm -f core conftest.err conftest.$ac_objext \
13829
conftest$ac_exeext conftest.$ac_ext
13849
XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_error:2:c-format"
13853
XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_failure:4:c-format"
13855
# Code from module btowc:
13862
if test $ac_cv_func_btowc = no; then
13869
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
13870
$as_echo_n "checking whether btowc(0) is correct... " >&6; }
13871
if test "${gl_cv_func_btowc_nul+set}" = set; then :
13872
$as_echo_n "(cached) " >&6
13875
if test "$cross_compiling" = yes; then :
13878
# Guess no on Cygwin.
13879
cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
13880
# Guess yes otherwise.
13881
*) gl_cv_func_btowc_nul="guessing yes" ;;
13885
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13886
/* end confdefs.h. */
13889
#include <string.h>
13893
if (btowc ('\0') != 0)
13898
if ac_fn_c_try_run "$LINENO"; then :
13899
gl_cv_func_btowc_nul=yes
13901
gl_cv_func_btowc_nul=no
13903
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13904
conftest.$ac_objext conftest.beam conftest.$ac_ext
13909
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
13910
$as_echo "$gl_cv_func_btowc_nul" >&6; }
13912
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
13913
$as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
13914
if test "${gl_cv_func_btowc_eof+set}" = set; then :
13915
$as_echo_n "(cached) " >&6
13919
# Guess no on IRIX.
13920
irix*) gl_cv_func_btowc_eof="guessing no" ;;
13921
# Guess yes otherwise.
13922
*) gl_cv_func_btowc_eof="guessing yes" ;;
13924
if test $LOCALE_FR != none; then
13925
if test "$cross_compiling" = yes; then :
13928
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929
/* end confdefs.h. */
13931
#include <locale.h>
13933
#include <string.h>
13937
if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
13939
if (btowc (EOF) != WEOF)
13945
if ac_fn_c_try_run "$LINENO"; then :
13946
gl_cv_func_btowc_eof=yes
13948
gl_cv_func_btowc_eof=no
13950
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13951
conftest.$ac_objext conftest.beam conftest.$ac_ext
13957
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
13958
$as_echo "$gl_cv_func_btowc_eof" >&6; }
13960
case "$gl_cv_func_btowc_nul" in
13962
*) REPLACE_BTOWC=1 ;;
13964
case "$gl_cv_func_btowc_eof" in
13966
*) REPLACE_BTOWC=1 ;;
13969
if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
13981
gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext"
13995
$as_echo "@%:@define GNULIB_TEST_BTOWC 1" >>confdefs.h
13999
# Code from module c++defs:
14000
# Code from module configmake:
14001
# Code from module dirname-lgpl:
14011
gl_LIBOBJS="$gl_LIBOBJS basename-lgpl.$ac_objext"
14021
gl_LIBOBJS="$gl_LIBOBJS dirname-lgpl.$ac_objext"
14031
gl_LIBOBJS="$gl_LIBOBJS stripslash.$ac_objext"
14038
# Code from module double-slash-root:
14041
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
14042
$as_echo_n "checking whether // is distinct from /... " >&6; }
14043
if test "${gl_cv_double_slash_root+set}" = set; then :
14044
$as_echo_n "(cached) " >&6
14046
if test x"$cross_compiling" = xyes ; then
14047
# When cross-compiling, there is no way to tell whether // is special
14048
# short of a list of hosts. However, the only known hosts to date
14049
# that have a distinct // are Apollo DomainOS (too old to port to),
14050
# Cygwin, and z/OS. If anyone knows of another system for which // has
14051
# special semantics and is distinct from /, please report it to
14052
# <bug-gnulib@gnu.org>.
14054
*-cygwin | i370-ibm-openedition)
14055
gl_cv_double_slash_root=yes ;;
14057
# Be optimistic and assume that / and // are the same when we
14059
gl_cv_double_slash_root='unknown, assuming no' ;;
14062
set x `ls -di / // 2>/dev/null`
14063
if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
14064
gl_cv_double_slash_root=no
14066
gl_cv_double_slash_root=yes
14070
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
14071
$as_echo "$gl_cv_double_slash_root" >&6; }
14072
if test "$gl_cv_double_slash_root" = yes; then
14074
$as_echo "@%:@define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
14078
# Code from module errno:
14080
# Code from module error:
14095
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
14096
$as_echo_n "checking for error_at_line... " >&6; }
14097
if test "${ac_cv_lib_error_at_line+set}" = set; then :
14098
$as_echo_n "(cached) " >&6
14100
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14101
/* end confdefs.h. */
14106
error_at_line (0, 0, "", 0, "an error occurred");
14111
if ac_fn_c_try_link "$LINENO"; then :
14112
ac_cv_lib_error_at_line=yes
14114
ac_cv_lib_error_at_line=no
14116
rm -f core conftest.err conftest.$ac_objext \
14117
conftest$ac_exeext conftest.$ac_ext
14119
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
14120
$as_echo "$ac_cv_lib_error_at_line" >&6; }
14121
if test $ac_cv_lib_error_at_line = no; then
14130
gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
14142
XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
14146
XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
14148
# Code from module extensions:
14149
# Code from module float:
14155
beos* | openbsd* | mirbsd*)
14163
if test $gl_cv_have_include_next = yes; then
14164
gl_cv_next_float_h='<'float.h'>'
14166
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
14167
$as_echo_n "checking absolute name of <float.h>... " >&6; }
14168
if test "${gl_cv_next_float_h+set}" = set; then :
14169
$as_echo_n "(cached) " >&6
14172
if test $ac_cv_header_float_h = yes; then
14173
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14174
/* end confdefs.h. */
14179
aix*) gl_absname_cpp="$ac_cpp -C" ;;
14180
*) gl_absname_cpp="$ac_cpp" ;;
14182
gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14183
sed -n '\#/float.h#{
14184
s#.*"\(.*/float.h\)".*#\1#
14190
gl_cv_next_float_h='<'float.h'>'
14194
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
14195
$as_echo "$gl_cv_next_float_h" >&6; }
14197
NEXT_FLOAT_H=$gl_cv_next_float_h
14199
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14200
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14201
gl_next_as_first_directive='<'float.h'>'
14203
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14204
gl_next_as_first_directive=$gl_cv_next_float_h
14206
NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
14214
# Code from module fnmatch:
14221
gl_fnmatch_required_lowercase=`echo $gl_fnmatch_required | tr 'A-Z' 'a-z'`
14222
gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
14223
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
14224
$as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
14225
if eval "test \"\${$gl_fnmatch_cache_var+set}\"" = set; then :
14226
$as_echo_n "(cached) " >&6
14228
if test $gl_fnmatch_required = GNU; then
14229
gl_fnmatch_gnu_start=
14230
gl_fnmatch_gnu_end=
14232
gl_fnmatch_gnu_start='#if 0'
14233
gl_fnmatch_gnu_end='#endif'
14235
if test "$cross_compiling" = yes; then :
14236
eval "$gl_fnmatch_cache_var=\"guessing no\""
14238
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14239
/* end confdefs.h. */
14240
#include <fnmatch.h>
14242
y (char const *pattern, char const *string, int flags)
14244
return fnmatch (pattern, string, flags) == 0;
14247
n (char const *pattern, char const *string, int flags)
14249
return fnmatch (pattern, string, flags) == FNM_NOMATCH;
14255
char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
14256
char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
14257
static char const A_1[] = { 'A' - 1, 0 };
14258
static char const A01[] = { 'A' + 1, 0 };
14259
static char const a_1[] = { 'a' - 1, 0 };
14260
static char const a01[] = { 'a' + 1, 0 };
14261
static char const bs_1[] = { '\\\\' - 1, 0 };
14262
static char const bs01[] = { '\\\\' + 1, 0 };
14265
&& y ("a*", "abc", 0)
14266
&& n ("d*/*1", "d/s/1", FNM_PATHNAME)
14267
&& y ("a\\\\bc", "abc", 0)
14268
&& n ("a\\\\bc", "abc", FNM_NOESCAPE)
14269
&& y ("*x", ".x", 0)
14270
&& n ("*x", ".x", FNM_PERIOD)
14271
&& y (Apat, "\\\\", 0) && y (Apat, "A", 0)
14272
&& y (apat, "\\\\", 0) && y (apat, "a", 0)
14273
&& n (Apat, A_1, 0) == ('A' < '\\\\')
14274
&& n (apat, a_1, 0) == ('a' < '\\\\')
14275
&& y (Apat, A01, 0) == ('A' < '\\\\')
14276
&& y (apat, a01, 0) == ('a' < '\\\\')
14277
&& y (Apat, bs_1, 0) == ('A' < '\\\\')
14278
&& y (apat, bs_1, 0) == ('a' < '\\\\')
14279
&& n (Apat, bs01, 0) == ('A' < '\\\\')
14280
&& n (apat, bs01, 0) == ('a' < '\\\\')
14281
$gl_fnmatch_gnu_start
14282
&& y ("xxXX", "xXxX", FNM_CASEFOLD)
14283
&& y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
14284
&& n ("d*/*1", "d/s/1", FNM_FILE_NAME)
14285
&& y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
14286
&& y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
14287
&& y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)
14288
$gl_fnmatch_gnu_end
14295
if ac_fn_c_try_run "$LINENO"; then :
14296
eval "$gl_fnmatch_cache_var=yes"
14298
eval "$gl_fnmatch_cache_var=no"
14300
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14301
conftest.$ac_objext conftest.beam conftest.$ac_ext
14306
eval ac_res=\$$gl_fnmatch_cache_var
14307
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14308
$as_echo "$ac_res" >&6; }
14309
eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
14310
if test "$gl_fnmatch_result" = yes; then
14311
rm -f "$gl_source_base/fnmatch.h"
14313
FNMATCH_H=fnmatch.h
14322
gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
14325
cat >>confdefs.h <<_ACEOF
14326
@%:@define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
14330
ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
14332
if test "x$ac_cv_have_decl_isblank" = x""yes; then :
14338
cat >>confdefs.h <<_ACEOF
14339
@%:@define HAVE_DECL_ISBLANK $ac_have_decl
14347
# Code from module getdelim:
14356
if test $ac_cv_func_getdelim = yes; then
14357
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
14358
$as_echo_n "checking for working getdelim function... " >&6; }
14359
if test "${gl_cv_func_working_getdelim+set}" = set; then :
14360
$as_echo_n "(cached) " >&6
14362
echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
14363
if test "$cross_compiling" = yes; then :
14364
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14365
/* end confdefs.h. */
14367
#include <features.h>
14368
#ifdef __GNU_LIBRARY__
14369
#if (__GLIBC__ >= 2)
14375
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14376
$EGREP "Lucky GNU user" >/dev/null 2>&1; then :
14377
gl_cv_func_working_getdelim=yes
14379
gl_cv_func_working_getdelim=no
14385
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14386
/* end confdefs.h. */
14388
# include <stdio.h>
14389
# include <stdlib.h>
14390
# include <string.h>
14393
FILE *in = fopen ("./conftest.data", "r");
14397
/* Test result for a NULL buffer and a zero size.
14398
Based on a test program from Karl Heuer. */
14401
int len = getdelim (&line, &siz, '\n', in);
14402
if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
14406
/* Test result for a NULL buffer and a non-zero size.
14407
This crashes on FreeBSD 8.0. */
14409
size_t siz = (size_t)(~0) / 4;
14410
if (getdelim (&line, &siz, '\n', in) == -1)
14417
if ac_fn_c_try_run "$LINENO"; then :
14418
gl_cv_func_working_getdelim=yes
14420
gl_cv_func_working_getdelim=no
14422
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14423
conftest.$ac_objext conftest.beam conftest.$ac_ext
14427
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
14428
$as_echo "$gl_cv_func_working_getdelim" >&6; }
14430
gl_cv_func_working_getdelim=no
14433
if test $ac_cv_have_decl_getdelim = no; then
14434
HAVE_DECL_GETDELIM=0
14437
if test $gl_cv_func_working_getdelim = no; then
14438
if test $ac_cv_func_getdelim = yes; then
14449
gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
14452
for ac_func in flockfile funlockfile
14454
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14455
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14456
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14457
cat >>confdefs.h <<_ACEOF
14458
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14464
ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
14465
if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
14471
cat >>confdefs.h <<_ACEOF
14472
@%:@define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
14485
$as_echo "@%:@define GNULIB_TEST_GETDELIM 1" >>confdefs.h
14489
# Code from module getline:
14497
gl_getline_needs_run_time_check=no
14498
ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
14499
if test "x$ac_cv_func_getline" = x""yes; then :
14500
gl_getline_needs_run_time_check=yes
14502
am_cv_func_working_getline=no
14505
if test $gl_getline_needs_run_time_check = yes; then
14506
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
14507
$as_echo_n "checking for working getline function... " >&6; }
14508
if test "${am_cv_func_working_getline+set}" = set; then :
14509
$as_echo_n "(cached) " >&6
14511
echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
14512
if test "$cross_compiling" = yes; then :
14513
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14514
/* end confdefs.h. */
14516
#include <features.h>
14517
#ifdef __GNU_LIBRARY__
14518
#if (__GLIBC__ >= 2)
14524
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14525
$EGREP "Lucky GNU user" >/dev/null 2>&1; then :
14526
am_cv_func_working_getline=yes
14528
am_cv_func_working_getline=no
14534
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14535
/* end confdefs.h. */
14537
# include <stdio.h>
14538
# include <stdlib.h>
14539
# include <string.h>
14542
FILE *in = fopen ("./conftest.data", "r");
14546
/* Test result for a NULL buffer and a zero size.
14547
Based on a test program from Karl Heuer. */
14550
int len = getline (&line, &siz, in);
14551
if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
14555
/* Test result for a NULL buffer and a non-zero size.
14556
This crashes on FreeBSD 8.0. */
14558
size_t siz = (size_t)(~0) / 4;
14559
if (getline (&line, &siz, in) == -1)
14566
if ac_fn_c_try_run "$LINENO"; then :
14567
am_cv_func_working_getline=yes
14569
am_cv_func_working_getline=no
14571
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14572
conftest.$ac_objext conftest.beam conftest.$ac_ext
14576
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
14577
$as_echo "$am_cv_func_working_getline" >&6; }
14580
if test $ac_cv_have_decl_getline = no; then
14581
HAVE_DECL_GETLINE=0
14584
if test $am_cv_func_working_getline = no; then
14594
gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
14606
if test $ac_cv_func_getdelim = yes; then
14607
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
14608
$as_echo_n "checking for working getdelim function... " >&6; }
14609
if test "${gl_cv_func_working_getdelim+set}" = set; then :
14610
$as_echo_n "(cached) " >&6
14612
echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
14613
if test "$cross_compiling" = yes; then :
14614
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14615
/* end confdefs.h. */
14617
#include <features.h>
14618
#ifdef __GNU_LIBRARY__
14619
#if (__GLIBC__ >= 2)
14625
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14626
$EGREP "Lucky GNU user" >/dev/null 2>&1; then :
14627
gl_cv_func_working_getdelim=yes
14629
gl_cv_func_working_getdelim=no
14635
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14636
/* end confdefs.h. */
14638
# include <stdio.h>
14639
# include <stdlib.h>
14640
# include <string.h>
14643
FILE *in = fopen ("./conftest.data", "r");
14647
/* Test result for a NULL buffer and a zero size.
14648
Based on a test program from Karl Heuer. */
14651
int len = getdelim (&line, &siz, '\n', in);
14652
if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
14656
/* Test result for a NULL buffer and a non-zero size.
14657
This crashes on FreeBSD 8.0. */
14659
size_t siz = (size_t)(~0) / 4;
14660
if (getdelim (&line, &siz, '\n', in) == -1)
14667
if ac_fn_c_try_run "$LINENO"; then :
14668
gl_cv_func_working_getdelim=yes
14670
gl_cv_func_working_getdelim=no
14672
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14673
conftest.$ac_objext conftest.beam conftest.$ac_ext
14677
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
14678
$as_echo "$gl_cv_func_working_getdelim" >&6; }
14680
gl_cv_func_working_getdelim=no
14683
if test $ac_cv_have_decl_getdelim = no; then
14684
HAVE_DECL_GETDELIM=0
14687
if test $gl_cv_func_working_getdelim = no; then
14688
if test $ac_cv_func_getdelim = yes; then
14699
gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
14702
for ac_func in flockfile funlockfile
14704
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14705
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14706
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14707
cat >>confdefs.h <<_ACEOF
14708
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14714
ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
14715
if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
14721
cat >>confdefs.h <<_ACEOF
14722
@%:@define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
14738
$as_echo "@%:@define GNULIB_TEST_GETLINE 1" >>confdefs.h
14742
# Code from module getopt-gnu:
14750
$as_echo "@%:@define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
14753
# Code from module getopt-posix:
14759
if test -n "$gl_replace_getopt"; then :
14765
$as_echo "@%:@define __GETOPT_PREFIX rpl_" >>confdefs.h
14769
GNULIB_UNISTD_H_GETOPT=1
14778
gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14788
gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14798
# Code from module gettext:
14800
# Code from module gettext-h:
14803
# Code from module havelib:
14804
# Code from module include_next:
14805
# Code from module intprops:
14806
# Code from module langinfo:
14818
if test $gl_cv_have_include_next = yes; then
14819
gl_cv_next_langinfo_h='<'langinfo.h'>'
14821
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
14822
$as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
14823
if test "${gl_cv_next_langinfo_h+set}" = set; then :
14824
$as_echo_n "(cached) " >&6
14827
if test $ac_cv_header_langinfo_h = yes; then
14828
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14829
/* end confdefs.h. */
14830
#include <langinfo.h>
14834
aix*) gl_absname_cpp="$ac_cpp -C" ;;
14835
*) gl_absname_cpp="$ac_cpp" ;;
14837
gl_cv_next_langinfo_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14838
sed -n '\#/langinfo.h#{
14839
s#.*"\(.*/langinfo.h\)".*#\1#
14845
gl_cv_next_langinfo_h='<'langinfo.h'>'
14849
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
14850
$as_echo "$gl_cv_next_langinfo_h" >&6; }
14852
NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
14854
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14855
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14856
gl_next_as_first_directive='<'langinfo.h'>'
14858
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14859
gl_next_as_first_directive=$gl_cv_next_langinfo_h
14861
NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
14866
HAVE_LANGINFO_CODESET=0
14867
HAVE_LANGINFO_T_FMT_AMPM=0
14868
HAVE_LANGINFO_ERA=0
14869
HAVE_LANGINFO_YESEXPR=0
14871
if test $ac_cv_header_langinfo_h = yes; then
14873
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
14874
$as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
14875
if test "${gl_cv_header_langinfo_codeset+set}" = set; then :
14876
$as_echo_n "(cached) " >&6
14878
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14879
/* end confdefs.h. */
14880
#include <langinfo.h>
14891
if ac_fn_c_try_compile "$LINENO"; then :
14892
gl_cv_header_langinfo_codeset=yes
14894
gl_cv_header_langinfo_codeset=no
14896
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14899
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
14900
$as_echo "$gl_cv_header_langinfo_codeset" >&6; }
14901
if test $gl_cv_header_langinfo_codeset = yes; then
14902
HAVE_LANGINFO_CODESET=1
14904
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5
14905
$as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; }
14906
if test "${gl_cv_header_langinfo_t_fmt_ampm+set}" = set; then :
14907
$as_echo_n "(cached) " >&6
14909
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14910
/* end confdefs.h. */
14911
#include <langinfo.h>
14912
int a = T_FMT_AMPM;
14922
if ac_fn_c_try_compile "$LINENO"; then :
14923
gl_cv_header_langinfo_t_fmt_ampm=yes
14925
gl_cv_header_langinfo_t_fmt_ampm=no
14927
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14930
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5
14931
$as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; }
14932
if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
14933
HAVE_LANGINFO_T_FMT_AMPM=1
14935
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
14936
$as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
14937
if test "${gl_cv_header_langinfo_era+set}" = set; then :
14938
$as_echo_n "(cached) " >&6
14940
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14941
/* end confdefs.h. */
14942
#include <langinfo.h>
14953
if ac_fn_c_try_compile "$LINENO"; then :
14954
gl_cv_header_langinfo_era=yes
14956
gl_cv_header_langinfo_era=no
14958
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
14962
$as_echo "$gl_cv_header_langinfo_era" >&6; }
14963
if test $gl_cv_header_langinfo_era = yes; then
14964
HAVE_LANGINFO_ERA=1
14966
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5
14967
$as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; }
14968
if test "${gl_cv_header_langinfo_yesexpr+set}" = set; then :
14969
$as_echo_n "(cached) " >&6
14971
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14972
/* end confdefs.h. */
14973
#include <langinfo.h>
14984
if ac_fn_c_try_compile "$LINENO"; then :
14985
gl_cv_header_langinfo_yesexpr=yes
14987
gl_cv_header_langinfo_yesexpr=no
14989
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14992
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5
14993
$as_echo "$gl_cv_header_langinfo_yesexpr" >&6; }
14994
if test $gl_cv_header_langinfo_yesexpr = yes; then
14995
HAVE_LANGINFO_YESEXPR=1
15007
for gl_func in nl_langinfo; do
15008
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15009
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15010
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15011
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
15012
$as_echo_n "(cached) " >&6
15014
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15015
/* end confdefs.h. */
15016
#include <langinfo.h>
15027
if ac_fn_c_try_compile "$LINENO"; then :
15028
eval "$as_gl_Symbol=yes"
15030
eval "$as_gl_Symbol=no"
15032
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15034
eval ac_res=\$$as_gl_Symbol
15035
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15036
$as_echo "$ac_res" >&6; }
15037
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
15038
cat >>confdefs.h <<_ACEOF
15039
@%:@define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15042
eval ac_cv_have_decl_$gl_func=yes
15047
# Code from module localcharset:
15056
LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
15058
# Code from module malloc-gnu:
15061
for ac_header in stdlib.h
15063
ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15064
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
15065
cat >>confdefs.h <<_ACEOF
15066
@%:@define HAVE_STDLIB_H 1
15073
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15074
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15075
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
15076
$as_echo_n "(cached) " >&6
15078
if test "$cross_compiling" = yes; then :
15079
ac_cv_func_malloc_0_nonnull=no
15081
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15082
/* end confdefs.h. */
15083
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
15084
# include <stdlib.h>
15092
return ! malloc (0);
15097
if ac_fn_c_try_run "$LINENO"; then :
15098
ac_cv_func_malloc_0_nonnull=yes
15100
ac_cv_func_malloc_0_nonnull=no
15102
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15103
conftest.$ac_objext conftest.beam conftest.$ac_ext
15107
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15108
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15109
if test $ac_cv_func_malloc_0_nonnull = yes; then :
15111
$as_echo "@%:@define HAVE_MALLOC_GNU 1" >>confdefs.h
15114
$as_echo "@%:@define HAVE_MALLOC_GNU 0" >>confdefs.h
15125
gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
15135
cat >>confdefs.h <<_ACEOF
15136
@%:@define GNULIB_MALLOC_GNU 1
15140
# Code from module malloc-posix:
15144
if test $gl_cv_func_malloc_posix = yes; then
15146
$as_echo "@%:@define HAVE_MALLOC_POSIX 1" >>confdefs.h
15158
gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
15167
GNULIB_MALLOC_POSIX=1
15171
$as_echo "@%:@define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
15175
# Code from module mbrtowc:
15186
if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15190
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15191
$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15192
if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
15193
$as_echo_n "(cached) " >&6
15197
# Guess no on AIX and OSF/1.
15198
aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15199
# Guess yes otherwise.
15200
*) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15202
if test $LOCALE_JA != none; then
15203
if test "$cross_compiling" = yes; then :
15206
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15207
/* end confdefs.h. */
15209
#include <locale.h>
15210
#include <string.h>
15214
if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15216
const char input[] = "B\217\253\344\217\251\316er"; /* "BĆ¼Ćer" */
15220
memset (&state, '\0', sizeof (mbstate_t));
15221
if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15222
if (mbsinit (&state))
15228
if ac_fn_c_try_run "$LINENO"; then :
15229
gl_cv_func_mbrtowc_incomplete_state=yes
15231
gl_cv_func_mbrtowc_incomplete_state=no
15233
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15234
conftest.$ac_objext conftest.beam conftest.$ac_ext
15240
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15241
$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15246
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15247
$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15248
if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
15249
$as_echo_n "(cached) " >&6
15253
# Guess no on Solaris 8.
15254
solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15255
# Guess yes otherwise.
15256
*) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15258
if test $LOCALE_ZH_CN != none; then
15259
if test "$cross_compiling" = yes; then :
15262
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15263
/* end confdefs.h. */
15265
#include <locale.h>
15266
#include <stdlib.h>
15267
#include <string.h>
15271
/* This fails on Solaris 8:
15272
mbrtowc returns 2, and sets wc to 0x00F0.
15273
mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15274
if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15276
char input[] = "B\250\271\201\060\211\070er"; /* "BĆ¼Ćer" */
15280
memset (&state, '\0', sizeof (mbstate_t));
15281
if (mbrtowc (&wc, input + 3, 6, &state) != 4
15282
&& mbtowc (&wc, input + 3, 6) == 4)
15288
if ac_fn_c_try_run "$LINENO"; then :
15289
gl_cv_func_mbrtowc_sanitycheck=yes
15291
gl_cv_func_mbrtowc_sanitycheck=no
15293
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15294
conftest.$ac_objext conftest.beam conftest.$ac_ext
15300
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15301
$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15303
REPLACE_MBSTATE_T=0
15304
case "$gl_cv_func_mbrtowc_incomplete_state" in
15306
*) REPLACE_MBSTATE_T=1 ;;
15308
case "$gl_cv_func_mbrtowc_sanitycheck" in
15310
*) REPLACE_MBSTATE_T=1 ;;
15313
REPLACE_MBSTATE_T=1
15315
if test $REPLACE_MBSTATE_T = 1; then
15323
if test $ac_cv_func_mbrtowc = no; then
15326
if test $REPLACE_MBSTATE_T = 1; then
15332
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
15333
$as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
15334
if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then :
15335
$as_echo_n "(cached) " >&6
15339
# Guess no on OSF/1.
15340
osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
15341
# Guess yes otherwise.
15342
*) gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
15344
if test $LOCALE_FR_UTF8 != none; then
15345
if test "$cross_compiling" = yes; then :
15348
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15349
/* end confdefs.h. */
15351
#include <locale.h>
15352
#include <string.h>
15356
if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15362
memset (&state, '\0', sizeof (mbstate_t));
15363
wc = (wchar_t) 0xBADFACE;
15364
mbrtowc (&wc, NULL, 5, &state);
15365
/* Check that wc was not modified. */
15366
if (wc != (wchar_t) 0xBADFACE)
15372
if ac_fn_c_try_run "$LINENO"; then :
15373
gl_cv_func_mbrtowc_null_arg=yes
15375
gl_cv_func_mbrtowc_null_arg=no
15377
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15378
conftest.$ac_objext conftest.beam conftest.$ac_ext
15384
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg" >&5
15385
$as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
15391
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
15392
$as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
15393
if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
15394
$as_echo_n "(cached) " >&6
15398
# Guess no on HP-UX and Solaris.
15399
hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
15400
# Guess yes otherwise.
15401
*) gl_cv_func_mbrtowc_retval="guessing yes" ;;
15403
if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
15404
if test "$cross_compiling" = yes; then :
15407
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15408
/* end confdefs.h. */
15410
#include <locale.h>
15411
#include <string.h>
15415
/* This fails on Solaris. */
15416
if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15418
char input[] = "B\303\274\303\237er"; /* "BĆ¼Ćer" */
15422
memset (&state, '\0', sizeof (mbstate_t));
15423
if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15426
if (mbrtowc (&wc, input + 2, 5, &state) != 1)
15430
/* This fails on HP-UX 11.11. */
15431
if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15433
char input[] = "B\217\253\344\217\251\316er"; /* "BĆ¼Ćer" */
15437
memset (&state, '\0', sizeof (mbstate_t));
15438
if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15441
if (mbrtowc (&wc, input + 2, 5, &state) != 2)
15448
if ac_fn_c_try_run "$LINENO"; then :
15449
gl_cv_func_mbrtowc_retval=yes
15451
gl_cv_func_mbrtowc_retval=no
15453
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15454
conftest.$ac_objext conftest.beam conftest.$ac_ext
15460
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
15461
$as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
15466
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
15467
$as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
15468
if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
15469
$as_echo_n "(cached) " >&6
15473
# Guess no on Solaris 8 and 9.
15474
solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
15475
# Guess yes otherwise.
15476
*) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
15478
if test $LOCALE_ZH_CN != none; then
15479
if test "$cross_compiling" = yes; then :
15482
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15483
/* end confdefs.h. */
15485
#include <locale.h>
15486
#include <string.h>
15490
/* This fails on Solaris 8 and 9. */
15491
if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15496
memset (&state, '\0', sizeof (mbstate_t));
15497
if (mbrtowc (&wc, "", 1, &state) != 0)
15503
if ac_fn_c_try_run "$LINENO"; then :
15504
gl_cv_func_mbrtowc_nul_retval=yes
15506
gl_cv_func_mbrtowc_nul_retval=no
15508
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15509
conftest.$ac_objext conftest.beam conftest.$ac_ext
15515
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
15516
$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
15518
case "$gl_cv_func_mbrtowc_null_arg" in
15521
$as_echo "@%:@define MBRTOWC_NULL_ARG_BUG 1" >>confdefs.h
15526
case "$gl_cv_func_mbrtowc_retval" in
15529
$as_echo "@%:@define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
15534
case "$gl_cv_func_mbrtowc_nul_retval" in
15537
$as_echo "@%:@define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
15544
if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
15556
gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
15570
$as_echo "@%:@define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
15574
# Code from module mbsinit:
15585
if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15589
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15590
$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15591
if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
15592
$as_echo_n "(cached) " >&6
15596
# Guess no on AIX and OSF/1.
15597
aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15598
# Guess yes otherwise.
15599
*) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15601
if test $LOCALE_JA != none; then
15602
if test "$cross_compiling" = yes; then :
15605
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15606
/* end confdefs.h. */
15608
#include <locale.h>
15609
#include <string.h>
15613
if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15615
const char input[] = "B\217\253\344\217\251\316er"; /* "BĆ¼Ćer" */
15619
memset (&state, '\0', sizeof (mbstate_t));
15620
if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15621
if (mbsinit (&state))
15627
if ac_fn_c_try_run "$LINENO"; then :
15628
gl_cv_func_mbrtowc_incomplete_state=yes
15630
gl_cv_func_mbrtowc_incomplete_state=no
15632
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15633
conftest.$ac_objext conftest.beam conftest.$ac_ext
15639
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15640
$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15645
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15646
$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15647
if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
15648
$as_echo_n "(cached) " >&6
15652
# Guess no on Solaris 8.
15653
solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15654
# Guess yes otherwise.
15655
*) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15657
if test $LOCALE_ZH_CN != none; then
15658
if test "$cross_compiling" = yes; then :
15661
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15662
/* end confdefs.h. */
15664
#include <locale.h>
15665
#include <stdlib.h>
15666
#include <string.h>
15670
/* This fails on Solaris 8:
15671
mbrtowc returns 2, and sets wc to 0x00F0.
15672
mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15673
if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15675
char input[] = "B\250\271\201\060\211\070er"; /* "BĆ¼Ćer" */
15679
memset (&state, '\0', sizeof (mbstate_t));
15680
if (mbrtowc (&wc, input + 3, 6, &state) != 4
15681
&& mbtowc (&wc, input + 3, 6) == 4)
15687
if ac_fn_c_try_run "$LINENO"; then :
15688
gl_cv_func_mbrtowc_sanitycheck=yes
15690
gl_cv_func_mbrtowc_sanitycheck=no
15692
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15693
conftest.$ac_objext conftest.beam conftest.$ac_ext
15699
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15700
$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15702
REPLACE_MBSTATE_T=0
15703
case "$gl_cv_func_mbrtowc_incomplete_state" in
15705
*) REPLACE_MBSTATE_T=1 ;;
15707
case "$gl_cv_func_mbrtowc_sanitycheck" in
15709
*) REPLACE_MBSTATE_T=1 ;;
15712
REPLACE_MBSTATE_T=1
15714
if test $REPLACE_MBSTATE_T = 1; then
15722
if test $ac_cv_func_mbsinit = no; then
15725
if test $REPLACE_MBSTATE_T = 1; then
15729
if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
15741
gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
15755
$as_echo "@%:@define GNULIB_TEST_MBSINIT 1" >>confdefs.h
15759
# Code from module mbsrtowcs:
15770
if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15774
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15775
$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15776
if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
15777
$as_echo_n "(cached) " >&6
15781
# Guess no on AIX and OSF/1.
15782
aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15783
# Guess yes otherwise.
15784
*) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15786
if test $LOCALE_JA != none; then
15787
if test "$cross_compiling" = yes; then :
15790
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15791
/* end confdefs.h. */
15793
#include <locale.h>
15794
#include <string.h>
15798
if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15800
const char input[] = "B\217\253\344\217\251\316er"; /* "BĆ¼Ćer" */
15804
memset (&state, '\0', sizeof (mbstate_t));
15805
if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15806
if (mbsinit (&state))
15812
if ac_fn_c_try_run "$LINENO"; then :
15813
gl_cv_func_mbrtowc_incomplete_state=yes
15815
gl_cv_func_mbrtowc_incomplete_state=no
15817
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15818
conftest.$ac_objext conftest.beam conftest.$ac_ext
15824
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15825
$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15830
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15831
$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15832
if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
15833
$as_echo_n "(cached) " >&6
15837
# Guess no on Solaris 8.
15838
solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15839
# Guess yes otherwise.
15840
*) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15842
if test $LOCALE_ZH_CN != none; then
15843
if test "$cross_compiling" = yes; then :
15846
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15847
/* end confdefs.h. */
15849
#include <locale.h>
15850
#include <stdlib.h>
15851
#include <string.h>
15855
/* This fails on Solaris 8:
15856
mbrtowc returns 2, and sets wc to 0x00F0.
15857
mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15858
if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15860
char input[] = "B\250\271\201\060\211\070er"; /* "BĆ¼Ćer" */
15864
memset (&state, '\0', sizeof (mbstate_t));
15865
if (mbrtowc (&wc, input + 3, 6, &state) != 4
15866
&& mbtowc (&wc, input + 3, 6) == 4)
15872
if ac_fn_c_try_run "$LINENO"; then :
15873
gl_cv_func_mbrtowc_sanitycheck=yes
15875
gl_cv_func_mbrtowc_sanitycheck=no
15877
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15878
conftest.$ac_objext conftest.beam conftest.$ac_ext
15884
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15885
$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15887
REPLACE_MBSTATE_T=0
15888
case "$gl_cv_func_mbrtowc_incomplete_state" in
15890
*) REPLACE_MBSTATE_T=1 ;;
15892
case "$gl_cv_func_mbrtowc_sanitycheck" in
15894
*) REPLACE_MBSTATE_T=1 ;;
15897
REPLACE_MBSTATE_T=1
15899
if test $REPLACE_MBSTATE_T = 1; then
15907
if test $ac_cv_func_mbsrtowcs = no; then
15910
if test $REPLACE_MBSTATE_T = 1; then
15911
REPLACE_MBSRTOWCS=1
15918
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
15919
$as_echo_n "checking whether mbsrtowcs works... " >&6; }
15920
if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
15921
$as_echo_n "(cached) " >&6
15925
# Guess no on HP-UX and Solaris.
15926
hpux* | solaris*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
15927
# Guess yes otherwise.
15928
*) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
15930
if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
15931
if test "$cross_compiling" = yes; then :
15934
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15935
/* end confdefs.h. */
15937
#include <locale.h>
15938
#include <string.h>
15942
/* Test whether the function works when started with a conversion state
15943
in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
15944
if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15946
const char input[] = "B\303\274\303\237er";
15949
memset (&state, '\0', sizeof (mbstate_t));
15950
if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
15951
if (!mbsinit (&state))
15953
const char *src = input + 2;
15954
if (mbsrtowcs (NULL, &src, 10, &state) != 4)
15958
if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15960
const char input[] = "<\306\374\313\334\270\354>";
15963
memset (&state, '\0', sizeof (mbstate_t));
15964
if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
15965
if (!mbsinit (&state))
15967
const char *src = input + 4;
15968
if (mbsrtowcs (NULL, &src, 10, &state) != 3)
15972
if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15974
const char input[] = "B\250\271\201\060\211\070er";
15977
memset (&state, '\0', sizeof (mbstate_t));
15978
if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
15979
if (!mbsinit (&state))
15981
const char *src = input + 2;
15982
if (mbsrtowcs (NULL, &src, 10, &state) != 4)
15989
if ac_fn_c_try_run "$LINENO"; then :
15990
gl_cv_func_mbsrtowcs_works=yes
15992
gl_cv_func_mbsrtowcs_works=no
15994
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15995
conftest.$ac_objext conftest.beam conftest.$ac_ext
16001
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
16002
$as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
16004
case "$gl_cv_func_mbsrtowcs_works" in
16006
*) REPLACE_MBSRTOWCS=1 ;;
16010
if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
16022
gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
16032
gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
16046
$as_echo "@%:@define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
16050
# Code from module memchr:
16059
$as_echo "@%:@define GNULIB_TEST_MEMCHR 1" >>confdefs.h
16063
# Code from module mempcpy:
16078
for ac_func in mempcpy
16080
ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
16081
if test "x$ac_cv_func_mempcpy" = x""yes; then :
16082
cat >>confdefs.h <<_ACEOF
16083
@%:@define HAVE_MEMPCPY 1
16088
gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
16094
if test $ac_cv_func_mempcpy = no; then
16108
$as_echo "@%:@define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
16112
# Code from module multiarch:
16114
# Code from module nl_langinfo:
16119
if test $ac_cv_func_nl_langinfo = yes; then
16120
if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1; then
16123
REPLACE_NL_LANGINFO=1
16125
$as_echo "@%:@define REPLACE_NL_LANGINFO 1" >>confdefs.h
16135
gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
16148
gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
16155
GNULIB_NL_LANGINFO=1
16159
$as_echo "@%:@define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h
16163
# Code from module progname:
16164
ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
16166
if test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then :
16172
cat >>confdefs.h <<_ACEOF
16173
@%:@define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
16176
ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
16178
if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then :
16184
cat >>confdefs.h <<_ACEOF
16185
@%:@define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
16188
# Code from module rawmemchr:
16201
for ac_func in rawmemchr
16203
ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
16204
if test "x$ac_cv_func_rawmemchr" = x""yes; then :
16205
cat >>confdefs.h <<_ACEOF
16206
@%:@define HAVE_RAWMEMCHR 1
16211
gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
16217
if test $ac_cv_func_rawmemchr = no; then
16229
$as_echo "@%:@define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
16233
# Code from module realloc-posix:
16237
if test $gl_cv_func_malloc_posix = yes; then
16239
$as_echo "@%:@define HAVE_REALLOC_POSIX 1" >>confdefs.h
16251
gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
16260
GNULIB_REALLOC_POSIX=1
16264
$as_echo "@%:@define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
16268
# Code from module regex:
16273
@%:@ Check whether --with-included-regex was given.
16274
if test "${with_included_regex+set}" = set; then :
16275
withval=$with_included_regex;
16279
case $with_included_regex in #(
16280
yes|no) ac_use_included_regex=$with_included_regex
16283
# If the system regex support is good enough that it passes the
16284
# following run test, then default to *not* using the included regex.c.
16285
# If cross compiling, assume the test would fail and use the included
16287
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5
16288
$as_echo_n "checking for working re_compile_pattern... " >&6; }
16289
if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then :
16290
$as_echo_n "(cached) " >&6
16292
if test "$cross_compiling" = yes; then :
16293
gl_cv_func_re_compile_pattern_working=no
16295
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16296
/* end confdefs.h. */
16297
$ac_includes_default
16299
#include <locale.h>
16301
#include <limits.h>
16307
static struct re_pattern_buffer regex;
16308
unsigned char folded_chars[UCHAR_MAX + 1];
16311
struct re_registers regs;
16314
/* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
16315
This test needs valgrind to catch the bug on Debian
16316
GNU/Linux 3.1 x86, but it might catch the bug better
16317
on other platforms and it shouldn't hurt to try the
16319
if (setlocale (LC_ALL, "en_US.UTF-8"))
16321
static char const pat[] = "insert into";
16322
static char const data[] =
16323
"\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
16324
re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
16326
memset (®ex, 0, sizeof regex);
16327
s = re_compile_pattern (pat, sizeof pat - 1, ®ex);
16330
if (re_search (®ex, data, sizeof data - 1,
16331
0, sizeof data - 1, ®s)
16334
if (! setlocale (LC_ALL, "C"))
16339
/* This test is from glibc bug 3957, reported by Andrew Mackey. */
16340
re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
16341
memset (®ex, 0, sizeof regex);
16342
s = re_compile_pattern ("a[^x]b", 6, ®ex);
16346
/* This should fail, but succeeds for glibc-2.5. */
16347
if (re_search (®ex, "a\nb", 3, 0, 3, ®s) != -1)
16350
/* This regular expression is from Spencer ere test number 75
16352
re_set_syntax (RE_SYNTAX_POSIX_EGREP);
16353
memset (®ex, 0, sizeof regex);
16354
for (i = 0; i <= UCHAR_MAX; i++)
16355
folded_chars[i] = i;
16356
regex.translate = folded_chars;
16357
s = re_compile_pattern ("a[[:@:>@:]]b\n", 11, ®ex);
16358
/* This should fail with _Invalid character class name_ error. */
16362
/* Ensure that [b-a] is diagnosed as invalid, when
16363
using RE_NO_EMPTY_RANGES. */
16364
re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
16365
memset (®ex, 0, sizeof regex);
16366
s = re_compile_pattern ("a[b-a]", 6, ®ex);
16370
/* This should succeed, but does not for glibc-2.1.3. */
16371
memset (®ex, 0, sizeof regex);
16372
s = re_compile_pattern ("{1", 2, ®ex);
16377
/* The following example is derived from a problem report
16378
against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
16379
memset (®ex, 0, sizeof regex);
16380
s = re_compile_pattern ("[an\371]*n", 7, ®ex);
16384
/* This should match, but does not for glibc-2.2.1. */
16385
if (re_match (®ex, "an", 2, 0, ®s) != 2)
16388
memset (®ex, 0, sizeof regex);
16389
s = re_compile_pattern ("x", 1, ®ex);
16393
/* glibc-2.2.93 does not work with a negative RANGE argument. */
16394
if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
16397
/* The version of regex.c in older versions of gnulib
16398
ignored RE_ICASE. Detect that problem too. */
16399
re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
16400
memset (®ex, 0, sizeof regex);
16401
s = re_compile_pattern ("x", 1, ®ex);
16405
if (re_search (®ex, "WXY", 3, 0, 3, ®s) < 0)
16408
/* Catch a bug reported by Vin Shelton in
16409
http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
16411
re_set_syntax (RE_SYNTAX_POSIX_BASIC
16412
& ~RE_CONTEXT_INVALID_DUP
16413
& ~RE_NO_EMPTY_RANGES);
16414
memset (®ex, 0, sizeof regex);
16415
s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, ®ex);
16419
/* REG_STARTEND was added to glibc on 2004-01-15.
16420
Reject older versions. */
16421
if (! REG_STARTEND)
16425
/* It would be nice to reject hosts whose regoff_t values are too
16426
narrow (including glibc on hosts with 64-bit ptrdiff_t and
16427
32-bit int), but we should wait until glibc implements this
16428
feature. Otherwise, support for equivalence classes and
16429
multibyte collation symbols would always be broken except
16430
when compiling --without-included-regex. */
16431
if (sizeof (regoff_t) < sizeof (ptrdiff_t)
16432
|| sizeof (regoff_t) < sizeof (ssize_t))
16441
if ac_fn_c_try_run "$LINENO"; then :
16442
gl_cv_func_re_compile_pattern_working=yes
16444
gl_cv_func_re_compile_pattern_working=no
16446
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16447
conftest.$ac_objext conftest.beam conftest.$ac_ext
16451
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5
16452
$as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
16453
case $gl_cv_func_re_compile_pattern_working in #(
16454
yes) ac_use_included_regex=no;; #(
16455
no) ac_use_included_regex=yes;;
16458
*) as_fn_error $? "Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5
16462
if test $ac_use_included_regex = yes; then
16464
$as_echo "@%:@define _REGEX_LARGE_OFFSETS 1" >>confdefs.h
16467
$as_echo "@%:@define re_syntax_options rpl_re_syntax_options" >>confdefs.h
16470
$as_echo "@%:@define re_set_syntax rpl_re_set_syntax" >>confdefs.h
16473
$as_echo "@%:@define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h
16476
$as_echo "@%:@define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h
16479
$as_echo "@%:@define re_search rpl_re_search" >>confdefs.h
16482
$as_echo "@%:@define re_search_2 rpl_re_search_2" >>confdefs.h
16485
$as_echo "@%:@define re_match rpl_re_match" >>confdefs.h
16488
$as_echo "@%:@define re_match_2 rpl_re_match_2" >>confdefs.h
16491
$as_echo "@%:@define re_set_registers rpl_re_set_registers" >>confdefs.h
16494
$as_echo "@%:@define re_comp rpl_re_comp" >>confdefs.h
16497
$as_echo "@%:@define re_exec rpl_re_exec" >>confdefs.h
16500
$as_echo "@%:@define regcomp rpl_regcomp" >>confdefs.h
16503
$as_echo "@%:@define regexec rpl_regexec" >>confdefs.h
16506
$as_echo "@%:@define regerror rpl_regerror" >>confdefs.h
16509
$as_echo "@%:@define regfree rpl_regfree" >>confdefs.h
16519
gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
16526
for ac_header in libintl.h
16528
ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
16529
if test "x$ac_cv_header_libintl_h" = x""yes; then :
16530
cat >>confdefs.h <<_ACEOF
16531
@%:@define HAVE_LIBINTL_H 1
16539
ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
16541
if test "x$ac_cv_have_decl_isblank" = x""yes; then :
16547
cat >>confdefs.h <<_ACEOF
16548
@%:@define HAVE_DECL_ISBLANK $ac_have_decl
16554
# Code from module size_max:
16556
for ac_header in stdint.h
16558
ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
16559
if test "x$ac_cv_header_stdint_h" = x""yes; then :
16560
cat >>confdefs.h <<_ACEOF
16561
@%:@define HAVE_STDINT_H 1
16568
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
16569
$as_echo_n "checking for SIZE_MAX... " >&6; }
16570
if test "${gl_cv_size_max+set}" = set; then :
16571
$as_echo_n "(cached) " >&6
16575
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16576
/* end confdefs.h. */
16578
#include <limits.h>
16580
#include <stdint.h>
16587
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16588
$EGREP "Found it" >/dev/null 2>&1; then :
16593
if test -z "$gl_cv_size_max"; then
16594
if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
16595
#include <limits.h>"; then :
16598
size_t_bits_minus_1=
16601
if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
16607
if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
16608
if test $fits_in_uint = 1; then
16609
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16610
/* end confdefs.h. */
16611
#include <stddef.h>
16613
extern unsigned long foo;
16623
if ac_fn_c_try_compile "$LINENO"; then :
16626
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16628
if test $fits_in_uint = 1; then
16629
gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
16631
gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
16634
gl_cv_size_max='((size_t)~(size_t)0)'
16639
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
16640
$as_echo "$gl_cv_size_max" >&6; }
16641
if test "$gl_cv_size_max" != yes; then
16643
cat >>confdefs.h <<_ACEOF
16644
@%:@define SIZE_MAX $gl_cv_size_max
16650
# Code from module sleep:
16653
ac_fn_c_check_decl "$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h>
16655
if test "x$ac_cv_have_decl_sleep" = x""yes; then :
16661
cat >>confdefs.h <<_ACEOF
16662
@%:@define HAVE_DECL_SLEEP $ac_have_decl
16666
if test $ac_cv_have_decl_sleep != yes; then
16676
gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
16679
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sleep" >&5
16680
$as_echo_n "checking for working sleep... " >&6; }
16681
if test "${gl_cv_func_sleep_works+set}" = set; then :
16682
$as_echo_n "(cached) " >&6
16684
if test "$cross_compiling" = yes; then :
16685
gl_cv_func_sleep_works="guessing no"
16687
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16688
/* end confdefs.h. */
16691
#include <unistd.h>
16692
#include <signal.h>
16694
handle_alarm (int sig)
16696
if (sig != SIGALRM)
16704
/* Failure to compile this test due to missing alarm is okay,
16705
since all such platforms (mingw) also lack sleep. */
16706
unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days. */
16707
unsigned int remaining;
16708
signal (SIGALRM, handle_alarm);
16710
remaining = sleep (pentecost);
16711
return !(pentecost - 10 < remaining && remaining <= pentecost);
16716
if ac_fn_c_try_run "$LINENO"; then :
16717
gl_cv_func_sleep_works=yes
16719
gl_cv_func_sleep_works=no
16721
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16722
conftest.$ac_objext conftest.beam conftest.$ac_ext
16726
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sleep_works" >&5
16727
$as_echo "$gl_cv_func_sleep_works" >&6; }
16728
if test "$gl_cv_func_sleep_works" != yes; then
16738
gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
16750
$as_echo "@%:@define GNULIB_TEST_SLEEP 1" >>confdefs.h
16754
# Code from module ssize_t:
16756
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
16757
$as_echo_n "checking for ssize_t... " >&6; }
16758
if test "${gt_cv_ssize_t+set}" = set; then :
16759
$as_echo_n "(cached) " >&6
16761
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16762
/* end confdefs.h. */
16763
#include <sys/types.h>
16767
int x = sizeof (ssize_t *) + sizeof (ssize_t);
16773
if ac_fn_c_try_compile "$LINENO"; then :
16778
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16780
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
16781
$as_echo "$gt_cv_ssize_t" >&6; }
16782
if test $gt_cv_ssize_t = no; then
16784
$as_echo "@%:@define ssize_t int" >>confdefs.h
16788
# Code from module stdbool:
16792
# Define two additional variables used in the Makefile substitution.
16794
if test "$ac_cv_header_stdbool_h" = yes; then
16797
STDBOOL_H='stdbool.h'
16801
if test "$ac_cv_type__Bool" = yes; then
16808
# Code from module stddef:
16812
if test $gt_cv_c_wchar_t = no; then
16816
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16817
$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
16818
if test "${gl_cv_decl_null_works+set}" = set; then :
16819
$as_echo_n "(cached) " >&6
16821
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16822
/* end confdefs.h. */
16823
#include <stddef.h>
16824
int test[2 * (sizeof NULL == sizeof (void *)) -1];
16834
if ac_fn_c_try_compile "$LINENO"; then :
16835
gl_cv_decl_null_works=yes
16837
gl_cv_decl_null_works=no
16839
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16841
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16842
$as_echo "$gl_cv_decl_null_works" >&6; }
16843
if test $gl_cv_decl_null_works = no; then
16847
if test -n "$STDDEF_H"; then
16854
if test $gl_cv_have_include_next = yes; then
16855
gl_cv_next_stddef_h='<'stddef.h'>'
16857
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16858
$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
16859
if test "${gl_cv_next_stddef_h+set}" = set; then :
16860
$as_echo_n "(cached) " >&6
16863
if test $ac_cv_header_stddef_h = yes; then
16864
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16865
/* end confdefs.h. */
16866
#include <stddef.h>
16870
aix*) gl_absname_cpp="$ac_cpp -C" ;;
16871
*) gl_absname_cpp="$ac_cpp" ;;
16873
gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16874
sed -n '\#/stddef.h#{
16875
s#.*"\(.*/stddef.h\)".*#\1#
16881
gl_cv_next_stddef_h='<'stddef.h'>'
16885
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16886
$as_echo "$gl_cv_next_stddef_h" >&6; }
16888
NEXT_STDDEF_H=$gl_cv_next_stddef_h
16890
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16891
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16892
gl_next_as_first_directive='<'stddef.h'>'
16894
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16895
gl_next_as_first_directive=$gl_cv_next_stddef_h
16897
NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
16903
# Code from module stdint:
16907
if test $ac_cv_type_long_long_int = yes; then
16908
HAVE_LONG_LONG_INT=1
16910
HAVE_LONG_LONG_INT=0
16914
if test $ac_cv_type_unsigned_long_long_int = yes; then
16915
HAVE_UNSIGNED_LONG_LONG_INT=1
16917
HAVE_UNSIGNED_LONG_LONG_INT=0
16921
if test $ac_cv_header_inttypes_h = yes; then
16928
if test $ac_cv_header_sys_types_h = yes; then
16941
if test $gl_cv_have_include_next = yes; then
16942
gl_cv_next_stdint_h='<'stdint.h'>'
16944
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16945
$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16946
if test "${gl_cv_next_stdint_h+set}" = set; then :
16947
$as_echo_n "(cached) " >&6
16950
if test $ac_cv_header_stdint_h = yes; then
16951
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16952
/* end confdefs.h. */
16953
#include <stdint.h>
16957
aix*) gl_absname_cpp="$ac_cpp -C" ;;
16958
*) gl_absname_cpp="$ac_cpp" ;;
16960
gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16961
sed -n '\#/stdint.h#{
16962
s#.*"\(.*/stdint.h\)".*#\1#
16968
gl_cv_next_stdint_h='<'stdint.h'>'
16972
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16973
$as_echo "$gl_cv_next_stdint_h" >&6; }
16975
NEXT_STDINT_H=$gl_cv_next_stdint_h
16977
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16978
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16979
gl_next_as_first_directive='<'stdint.h'>'
16981
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16982
gl_next_as_first_directive=$gl_cv_next_stdint_h
16984
NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16988
if test $ac_cv_header_stdint_h = yes; then
16995
if test $ac_cv_header_stdint_h = yes; then
16996
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16997
$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16998
if test "${gl_cv_header_working_stdint_h+set}" = set; then :
16999
$as_echo_n "(cached) " >&6
17001
gl_cv_header_working_stdint_h=no
17002
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17003
/* end confdefs.h. */
17006
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17007
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17008
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17009
#include <stdint.h>
17010
/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17011
#if !(defined WCHAR_MIN && defined WCHAR_MAX)
17012
#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17016
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17017
included before <wchar.h>. */
17018
#include <stddef.h>
17019
#include <signal.h>
17021
# include <stdio.h>
17023
# include <wchar.h>
17028
int8_t a1 = INT8_MAX;
17029
int8_t a1min = INT8_MIN;
17032
int16_t a2 = INT16_MAX;
17033
int16_t a2min = INT16_MIN;
17036
int32_t a3 = INT32_MAX;
17037
int32_t a3min = INT32_MIN;
17040
int64_t a4 = INT64_MAX;
17041
int64_t a4min = INT64_MIN;
17044
uint8_t b1 = UINT8_MAX;
17046
typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17049
uint16_t b2 = UINT16_MAX;
17052
uint32_t b3 = UINT32_MAX;
17055
uint64_t b4 = UINT64_MAX;
17057
int_least8_t c1 = INT8_C (0x7f);
17058
int_least8_t c1max = INT_LEAST8_MAX;
17059
int_least8_t c1min = INT_LEAST8_MIN;
17060
int_least16_t c2 = INT16_C (0x7fff);
17061
int_least16_t c2max = INT_LEAST16_MAX;
17062
int_least16_t c2min = INT_LEAST16_MIN;
17063
int_least32_t c3 = INT32_C (0x7fffffff);
17064
int_least32_t c3max = INT_LEAST32_MAX;
17065
int_least32_t c3min = INT_LEAST32_MIN;
17066
int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17067
int_least64_t c4max = INT_LEAST64_MAX;
17068
int_least64_t c4min = INT_LEAST64_MIN;
17069
uint_least8_t d1 = UINT8_C (0xff);
17070
uint_least8_t d1max = UINT_LEAST8_MAX;
17071
uint_least16_t d2 = UINT16_C (0xffff);
17072
uint_least16_t d2max = UINT_LEAST16_MAX;
17073
uint_least32_t d3 = UINT32_C (0xffffffff);
17074
uint_least32_t d3max = UINT_LEAST32_MAX;
17075
uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17076
uint_least64_t d4max = UINT_LEAST64_MAX;
17077
int_fast8_t e1 = INT_FAST8_MAX;
17078
int_fast8_t e1min = INT_FAST8_MIN;
17079
int_fast16_t e2 = INT_FAST16_MAX;
17080
int_fast16_t e2min = INT_FAST16_MIN;
17081
int_fast32_t e3 = INT_FAST32_MAX;
17082
int_fast32_t e3min = INT_FAST32_MIN;
17083
int_fast64_t e4 = INT_FAST64_MAX;
17084
int_fast64_t e4min = INT_FAST64_MIN;
17085
uint_fast8_t f1 = UINT_FAST8_MAX;
17086
uint_fast16_t f2 = UINT_FAST16_MAX;
17087
uint_fast32_t f3 = UINT_FAST32_MAX;
17088
uint_fast64_t f4 = UINT_FAST64_MAX;
17090
intptr_t g = INTPTR_MAX;
17091
intptr_t gmin = INTPTR_MIN;
17094
uintptr_t h = UINTPTR_MAX;
17096
intmax_t i = INTMAX_MAX;
17097
uintmax_t j = UINTMAX_MAX;
17099
#include <limits.h> /* for CHAR_BIT */
17100
#define TYPE_MINIMUM(t) \
17101
((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
17102
#define TYPE_MAXIMUM(t) \
17103
((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
17106
PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17107
&& PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17109
/* Detect bug in FreeBSD 6.0 / ia64. */
17110
int check_SIG_ATOMIC:
17111
SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17112
&& SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17114
int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17116
WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17117
&& WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17119
/* Detect bug in mingw. */
17121
WINT_MIN == TYPE_MINIMUM (wint_t)
17122
&& WINT_MAX == TYPE_MAXIMUM (wint_t)
17125
/* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17127
(-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17128
int check_UINT16_C:
17129
(-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17131
/* Detect bugs in OpenBSD 3.9 stdint.h. */
17133
int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17136
int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17139
int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17142
int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17144
int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17145
int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17146
int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17147
int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17148
int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17149
int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17150
int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17151
int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17152
int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17153
int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17154
int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17165
if ac_fn_c_try_compile "$LINENO"; then :
17166
if test "$cross_compiling" = yes; then :
17167
gl_cv_header_working_stdint_h=yes
17170
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17171
/* end confdefs.h. */
17174
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17175
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17176
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17177
#include <stdint.h>
17180
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17181
included before <wchar.h>. */
17182
#include <stddef.h>
17183
#include <signal.h>
17185
# include <stdio.h>
17187
# include <wchar.h>
17192
#include <string.h>
17193
#define MVAL(macro) MVAL1(macro)
17194
#define MVAL1(expression) #expression
17195
static const char *macro_values[] =
17229
for (mv = macro_values; *mv != NULL; mv++)
17231
const char *value = *mv;
17232
/* Test whether it looks like a cast expression. */
17233
if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17234
|| strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17235
|| strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17236
|| strncmp (value, "((int)"/*)*/, 6) == 0
17237
|| strncmp (value, "((signed short)"/*)*/, 15) == 0
17238
|| strncmp (value, "((signed char)"/*)*/, 14) == 0)
17247
if ac_fn_c_try_run "$LINENO"; then :
17248
gl_cv_header_working_stdint_h=yes
17250
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17251
conftest.$ac_objext conftest.beam conftest.$ac_ext
17256
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17259
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17260
$as_echo "$gl_cv_header_working_stdint_h" >&6; }
17262
if test "$gl_cv_header_working_stdint_h" = yes; then
17265
for ac_header in sys/inttypes.h sys/bitypes.h
17267
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17268
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17269
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17270
cat >>confdefs.h <<_ACEOF
17271
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17278
if test $ac_cv_header_sys_inttypes_h = yes; then
17279
HAVE_SYS_INTTYPES_H=1
17281
HAVE_SYS_INTTYPES_H=0
17284
if test $ac_cv_header_sys_bitypes_h = yes; then
17285
HAVE_SYS_BITYPES_H=1
17287
HAVE_SYS_BITYPES_H=0
17295
if test $APPLE_UNIVERSAL_BUILD = 0; then
17298
for gltype in ptrdiff_t size_t ; do
17299
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17300
$as_echo_n "checking for bit size of $gltype... " >&6; }
17301
if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\"" = set; then :
17302
$as_echo_n "(cached) " >&6
17304
if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17305
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17306
included before <wchar.h>. */
17307
#include <stddef.h>
17308
#include <signal.h>
17310
# include <stdio.h>
17312
# include <wchar.h>
17315
#include <limits.h>"; then :
17321
eval gl_cv_bitsizeof_${gltype}=\$result
17324
eval ac_res=\$gl_cv_bitsizeof_${gltype}
17325
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17326
$as_echo "$ac_res" >&6; }
17327
eval result=\$gl_cv_bitsizeof_${gltype}
17328
if test $result = unknown; then
17331
GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17332
cat >>confdefs.h <<_ACEOF
17333
@%:@define BITSIZEOF_${GLTYPE} $result
17336
eval BITSIZEOF_${GLTYPE}=\$result
17343
for gltype in sig_atomic_t wchar_t wint_t ; do
17344
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17345
$as_echo_n "checking for bit size of $gltype... " >&6; }
17346
if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\"" = set; then :
17347
$as_echo_n "(cached) " >&6
17349
if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17350
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17351
included before <wchar.h>. */
17352
#include <stddef.h>
17353
#include <signal.h>
17355
# include <stdio.h>
17357
# include <wchar.h>
17360
#include <limits.h>"; then :
17366
eval gl_cv_bitsizeof_${gltype}=\$result
17369
eval ac_res=\$gl_cv_bitsizeof_${gltype}
17370
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17371
$as_echo "$ac_res" >&6; }
17372
eval result=\$gl_cv_bitsizeof_${gltype}
17373
if test $result = unknown; then
17376
GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17377
cat >>confdefs.h <<_ACEOF
17378
@%:@define BITSIZEOF_${GLTYPE} $result
17381
eval BITSIZEOF_${GLTYPE}=\$result
17387
for gltype in sig_atomic_t wchar_t wint_t ; do
17388
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17389
$as_echo_n "checking whether $gltype is signed... " >&6; }
17390
if eval "test \"\${gl_cv_type_${gltype}_signed+set}\"" = set; then :
17391
$as_echo_n "(cached) " >&6
17393
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17394
/* end confdefs.h. */
17396
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17397
included before <wchar.h>. */
17398
#include <stddef.h>
17399
#include <signal.h>
17401
# include <stdio.h>
17403
# include <wchar.h>
17406
int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17415
if ac_fn_c_try_compile "$LINENO"; then :
17420
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17421
eval gl_cv_type_${gltype}_signed=\$result
17424
eval ac_res=\$gl_cv_type_${gltype}_signed
17425
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17426
$as_echo "$ac_res" >&6; }
17427
eval result=\$gl_cv_type_${gltype}_signed
17428
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17429
if test "$result" = yes; then
17430
cat >>confdefs.h <<_ACEOF
17431
@%:@define HAVE_SIGNED_${GLTYPE} 1
17434
eval HAVE_SIGNED_${GLTYPE}=1
17436
eval HAVE_SIGNED_${GLTYPE}=0
17441
gl_cv_type_ptrdiff_t_signed=yes
17442
gl_cv_type_size_t_signed=no
17443
if test $APPLE_UNIVERSAL_BUILD = 0; then
17446
for gltype in ptrdiff_t size_t ; do
17447
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17448
$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17449
if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\"" = set; then :
17450
$as_echo_n "(cached) " >&6
17452
eval gl_cv_type_${gltype}_suffix=no
17453
eval result=\$gl_cv_type_${gltype}_signed
17454
if test "$result" = yes; then
17459
for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17461
'') gltype1='int';;
17462
l) gltype1='long int';;
17463
ll) gltype1='long long int';;
17464
i64) gltype1='__int64';;
17465
u) gltype1='unsigned int';;
17466
ul) gltype1='unsigned long int';;
17467
ull) gltype1='unsigned long long int';;
17468
ui64)gltype1='unsigned __int64';;
17470
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17471
/* end confdefs.h. */
17473
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17474
included before <wchar.h>. */
17475
#include <stddef.h>
17476
#include <signal.h>
17478
# include <stdio.h>
17480
# include <wchar.h>
17483
extern $gltype foo;
17484
extern $gltype1 foo;
17493
if ac_fn_c_try_compile "$LINENO"; then :
17494
eval gl_cv_type_${gltype}_suffix=\$glsuf
17496
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17497
eval result=\$gl_cv_type_${gltype}_suffix
17498
test "$result" != no && break
17501
eval ac_res=\$gl_cv_type_${gltype}_suffix
17502
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17503
$as_echo "$ac_res" >&6; }
17504
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17505
eval result=\$gl_cv_type_${gltype}_suffix
17506
test "$result" = no && result=
17507
eval ${GLTYPE}_SUFFIX=\$result
17508
cat >>confdefs.h <<_ACEOF
17509
@%:@define ${GLTYPE}_SUFFIX $result
17518
for gltype in sig_atomic_t wchar_t wint_t ; do
17519
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17520
$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17521
if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\"" = set; then :
17522
$as_echo_n "(cached) " >&6
17524
eval gl_cv_type_${gltype}_suffix=no
17525
eval result=\$gl_cv_type_${gltype}_signed
17526
if test "$result" = yes; then
17531
for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17533
'') gltype1='int';;
17534
l) gltype1='long int';;
17535
ll) gltype1='long long int';;
17536
i64) gltype1='__int64';;
17537
u) gltype1='unsigned int';;
17538
ul) gltype1='unsigned long int';;
17539
ull) gltype1='unsigned long long int';;
17540
ui64)gltype1='unsigned __int64';;
17542
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17543
/* end confdefs.h. */
17545
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17546
included before <wchar.h>. */
17547
#include <stddef.h>
17548
#include <signal.h>
17550
# include <stdio.h>
17552
# include <wchar.h>
17555
extern $gltype foo;
17556
extern $gltype1 foo;
17565
if ac_fn_c_try_compile "$LINENO"; then :
17566
eval gl_cv_type_${gltype}_suffix=\$glsuf
17568
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17569
eval result=\$gl_cv_type_${gltype}_suffix
17570
test "$result" != no && break
17573
eval ac_res=\$gl_cv_type_${gltype}_suffix
17574
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17575
$as_echo "$ac_res" >&6; }
17576
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17577
eval result=\$gl_cv_type_${gltype}_suffix
17578
test "$result" = no && result=
17579
eval ${GLTYPE}_SUFFIX=\$result
17580
cat >>confdefs.h <<_ACEOF
17581
@%:@define ${GLTYPE}_SUFFIX $result
17592
# Code from module stdio:
17603
if test $gl_cv_have_include_next = yes; then
17604
gl_cv_next_stdio_h='<'stdio.h'>'
17606
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
17607
$as_echo_n "checking absolute name of <stdio.h>... " >&6; }
17608
if test "${gl_cv_next_stdio_h+set}" = set; then :
17609
$as_echo_n "(cached) " >&6
17612
if test $ac_cv_header_stdio_h = yes; then
17613
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17614
/* end confdefs.h. */
17619
aix*) gl_absname_cpp="$ac_cpp -C" ;;
17620
*) gl_absname_cpp="$ac_cpp" ;;
17622
gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17623
sed -n '\#/stdio.h#{
17624
s#.*"\(.*/stdio.h\)".*#\1#
17630
gl_cv_next_stdio_h='<'stdio.h'>'
17634
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
17635
$as_echo "$gl_cv_next_stdio_h" >&6; }
17637
NEXT_STDIO_H=$gl_cv_next_stdio_h
17639
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17640
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17641
gl_next_as_first_directive='<'stdio.h'>'
17643
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17644
gl_next_as_first_directive=$gl_cv_next_stdio_h
17646
NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
17663
for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat snprintf tmpfile vdprintf vsnprintf; do
17664
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17665
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17666
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17667
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
17668
$as_echo_n "(cached) " >&6
17670
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17671
/* end confdefs.h. */
17683
if ac_fn_c_try_compile "$LINENO"; then :
17684
eval "$as_gl_Symbol=yes"
17686
eval "$as_gl_Symbol=no"
17688
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17690
eval ac_res=\$$as_gl_Symbol
17691
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17692
$as_echo "$ac_res" >&6; }
17693
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
17694
cat >>confdefs.h <<_ACEOF
17695
@%:@define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17698
eval ac_cv_have_decl_$gl_func=yes
17703
# Code from module stdlib:
17712
if test $gl_cv_have_include_next = yes; then
17713
gl_cv_next_stdlib_h='<'stdlib.h'>'
17715
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
17716
$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
17717
if test "${gl_cv_next_stdlib_h+set}" = set; then :
17718
$as_echo_n "(cached) " >&6
17721
if test $ac_cv_header_stdlib_h = yes; then
17722
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17723
/* end confdefs.h. */
17724
#include <stdlib.h>
17728
aix*) gl_absname_cpp="$ac_cpp -C" ;;
17729
*) gl_absname_cpp="$ac_cpp" ;;
17731
gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17732
sed -n '\#/stdlib.h#{
17733
s#.*"\(.*/stdlib.h\)".*#\1#
17739
gl_cv_next_stdlib_h='<'stdlib.h'>'
17743
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
17744
$as_echo "$gl_cv_next_stdlib_h" >&6; }
17746
NEXT_STDLIB_H=$gl_cv_next_stdlib_h
17748
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17749
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17750
gl_next_as_first_directive='<'stdlib.h'>'
17752
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17753
gl_next_as_first_directive=$gl_cv_next_stdlib_h
17755
NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
17759
for ac_header in random.h
17761
ac_fn_c_check_header_compile "$LINENO" "random.h" "ac_cv_header_random_h" "$ac_includes_default
17763
if test "x$ac_cv_header_random_h" = x""yes; then :
17764
cat >>confdefs.h <<_ACEOF
17765
@%:@define HAVE_RANDOM_H 1
17772
if test $ac_cv_header_random_h = yes; then
17778
ac_fn_c_check_type "$LINENO" "struct random_data" "ac_cv_type_struct_random_data" "#include <stdlib.h>
17780
# include <random.h>
17784
if test "x$ac_cv_type_struct_random_data" = x""yes; then :
17786
cat >>confdefs.h <<_ACEOF
17787
@%:@define HAVE_STRUCT_RANDOM_DATA 1
17792
HAVE_STRUCT_RANDOM_DATA=0
17797
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
17798
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17799
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17800
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17801
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
17802
$as_echo_n "(cached) " >&6
17804
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17805
/* end confdefs.h. */
17806
#include <stdlib.h>
17807
#if HAVE_SYS_LOADAVG_H
17808
# include <sys/loadavg.h>
17811
# include <random.h>
17823
if ac_fn_c_try_compile "$LINENO"; then :
17824
eval "$as_gl_Symbol=yes"
17826
eval "$as_gl_Symbol=no"
17828
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17830
eval ac_res=\$$as_gl_Symbol
17831
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17832
$as_echo "$ac_res" >&6; }
17833
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
17834
cat >>confdefs.h <<_ACEOF
17835
@%:@define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17838
eval ac_cv_have_decl_$gl_func=yes
17843
# Code from module strcase:
17855
for ac_func in strcasecmp
17857
ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
17858
if test "x$ac_cv_func_strcasecmp" = x""yes; then :
17859
cat >>confdefs.h <<_ACEOF
17860
@%:@define HAVE_STRCASECMP 1
17865
gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
17871
if test $ac_cv_func_strcasecmp = no; then
17888
for ac_func in strncasecmp
17890
ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
17891
if test "x$ac_cv_func_strncasecmp" = x""yes; then :
17892
cat >>confdefs.h <<_ACEOF
17893
@%:@define HAVE_STRNCASECMP 1
17898
gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
17904
if test $ac_cv_func_strncasecmp = no; then
17909
ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
17910
if test "x$ac_cv_have_decl_strncasecmp" = x""yes; then :
17916
cat >>confdefs.h <<_ACEOF
17917
@%:@define HAVE_DECL_STRNCASECMP $ac_have_decl
17920
if test $ac_cv_have_decl_strncasecmp = no; then
17921
HAVE_DECL_STRNCASECMP=0
17925
# Code from module strchrnul:
17938
for ac_func in strchrnul
17940
ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
17941
if test "x$ac_cv_func_strchrnul" = x""yes; then :
17942
cat >>confdefs.h <<_ACEOF
17943
@%:@define HAVE_STRCHRNUL 1
17948
gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
17954
if test $ac_cv_func_strchrnul = no; then
17966
$as_echo "@%:@define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
17970
# Code from module streq:
17971
# Code from module strerror:
17974
if test $REPLACE_STRERROR = 1; then
17983
gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
17986
cat >>confdefs.h <<_ACEOF
17987
@%:@define REPLACE_STRERROR $REPLACE_STRERROR
17999
$as_echo "@%:@define GNULIB_TEST_STRERROR 1" >>confdefs.h
18003
# Code from module string:
18007
# Code from module strings:
18011
# Code from module strndup:
18018
if test $ac_cv_have_decl_strndup = no; then
18019
HAVE_DECL_STRNDUP=0
18022
if test $ac_cv_func_strndup = yes; then
18023
# AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
18024
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
18025
$as_echo_n "checking for working strndup... " >&6; }
18026
if test "${gl_cv_func_strndup_works+set}" = set; then :
18027
$as_echo_n "(cached) " >&6
18029
if test "$cross_compiling" = yes; then :
18032
aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
18033
*) gl_cv_func_strndup_works="guessing yes";;
18037
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18038
/* end confdefs.h. */
18040
#include <string.h>
18041
#include <stdlib.h>
18046
#ifndef HAVE_DECL_STRNDUP
18047
extern char *strndup (const char *, size_t);
18050
s = strndup ("some longer string", 15);
18052
s = strndup ("shorter string", 13);
18053
return s[13] != '\0';
18058
if ac_fn_c_try_run "$LINENO"; then :
18059
gl_cv_func_strndup_works=yes
18061
gl_cv_func_strndup_works=no
18063
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18064
conftest.$ac_objext conftest.beam conftest.$ac_ext
18068
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
18069
$as_echo "$gl_cv_func_strndup_works" >&6; }
18070
case $gl_cv_func_strndup_works in
18081
gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
18094
gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
18105
$as_echo "@%:@define GNULIB_TEST_STRNDUP 1" >>confdefs.h
18109
# Code from module strnlen:
18116
if test $ac_cv_have_decl_strnlen = no; then
18117
HAVE_DECL_STRNLEN=0
18119
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
18120
$as_echo_n "checking for working strnlen... " >&6; }
18121
if test "${ac_cv_func_strnlen_working+set}" = set; then :
18122
$as_echo_n "(cached) " >&6
18124
if test "$cross_compiling" = yes; then :
18125
ac_cv_func_strnlen_working=no
18127
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18128
/* end confdefs.h. */
18129
$ac_includes_default
18135
#define S_LEN (sizeof S - 1)
18137
/* At least one implementation is buggy: that of AIX 4.3 would
18138
give strnlen (S, 1) == 3. */
18141
for (i = 0; i < S_LEN + 1; ++i)
18143
int expected = i <= S_LEN ? i : S_LEN;
18144
if (strnlen (S, i) != expected)
18153
if ac_fn_c_try_run "$LINENO"; then :
18154
ac_cv_func_strnlen_working=yes
18156
ac_cv_func_strnlen_working=no
18158
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18159
conftest.$ac_objext conftest.beam conftest.$ac_ext
18163
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
18164
$as_echo "$ac_cv_func_strnlen_working" >&6; }
18165
test $ac_cv_func_strnlen_working = no &&
18173
gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
18176
if test $ac_cv_func_strnlen_working = no; then
18180
if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
18189
gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
18201
$as_echo "@%:@define GNULIB_TEST_STRNLEN 1" >>confdefs.h
18205
# Code from module strnlen1:
18206
# Code from module sys_wait:
18216
if test $gl_cv_have_include_next = yes; then
18217
gl_cv_next_sys_wait_h='<'sys/wait.h'>'
18219
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
18220
$as_echo_n "checking absolute name of <sys/wait.h>... " >&6; }
18221
if test "${gl_cv_next_sys_wait_h+set}" = set; then :
18222
$as_echo_n "(cached) " >&6
18225
if test $ac_cv_header_sys_wait_h = yes; then
18226
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18227
/* end confdefs.h. */
18228
#include <sys/wait.h>
18232
aix*) gl_absname_cpp="$ac_cpp -C" ;;
18233
*) gl_absname_cpp="$ac_cpp" ;;
18235
gl_cv_next_sys_wait_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18236
sed -n '\#/sys/wait.h#{
18237
s#.*"\(.*/sys/wait.h\)".*#\1#
18243
gl_cv_next_sys_wait_h='<'sys/wait.h'>'
18247
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
18248
$as_echo "$gl_cv_next_sys_wait_h" >&6; }
18250
NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h
18252
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18253
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18254
gl_next_as_first_directive='<'sys/wait.h'>'
18256
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18257
gl_next_as_first_directive=$gl_cv_next_sys_wait_h
18259
NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive
18265
# Code from module sysexits:
18268
if test $ac_cv_header_sysexits_h = yes; then
18276
if test $gl_cv_have_include_next = yes; then
18277
gl_cv_next_sysexits_h='<'sysexits.h'>'
18279
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sysexits.h>" >&5
18280
$as_echo_n "checking absolute name of <sysexits.h>... " >&6; }
18281
if test "${gl_cv_next_sysexits_h+set}" = set; then :
18282
$as_echo_n "(cached) " >&6
18285
if test $ac_cv_header_sysexits_h = yes; then
18286
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18287
/* end confdefs.h. */
18288
#include <sysexits.h>
18292
aix*) gl_absname_cpp="$ac_cpp -C" ;;
18293
*) gl_absname_cpp="$ac_cpp" ;;
18295
gl_cv_next_sysexits_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18296
sed -n '\#/sysexits.h#{
18297
s#.*"\(.*/sysexits.h\)".*#\1#
18303
gl_cv_next_sysexits_h='<'sysexits.h'>'
18307
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sysexits_h" >&5
18308
$as_echo "$gl_cv_next_sysexits_h" >&6; }
18310
NEXT_SYSEXITS_H=$gl_cv_next_sysexits_h
18312
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18313
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18314
gl_next_as_first_directive='<'sysexits.h'>'
18316
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18317
gl_next_as_first_directive=$gl_cv_next_sysexits_h
18319
NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H=$gl_next_as_first_directive
18323
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18324
/* end confdefs.h. */
18325
#include <sysexits.h>
18337
case EX_UNAVAILABLE:
18354
if ac_fn_c_try_compile "$LINENO"; then :
18357
SYSEXITS_H=sysexits.h
18359
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18362
SYSEXITS_H=sysexits.h
18367
# Code from module unistd:
18378
if test $gl_cv_have_include_next = yes; then
18379
gl_cv_next_unistd_h='<'unistd.h'>'
18381
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
18382
$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
18383
if test "${gl_cv_next_unistd_h+set}" = set; then :
18384
$as_echo_n "(cached) " >&6
18387
if test $ac_cv_header_unistd_h = yes; then
18388
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18389
/* end confdefs.h. */
18390
#include <unistd.h>
18394
aix*) gl_absname_cpp="$ac_cpp -C" ;;
18395
*) gl_absname_cpp="$ac_cpp" ;;
18397
gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18398
sed -n '\#/unistd.h#{
18399
s#.*"\(.*/unistd.h\)".*#\1#
18405
gl_cv_next_unistd_h='<'unistd.h'>'
18409
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
18410
$as_echo "$gl_cv_next_unistd_h" >&6; }
18412
NEXT_UNISTD_H=$gl_cv_next_unistd_h
18414
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18415
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18416
gl_next_as_first_directive='<'unistd.h'>'
18418
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18419
gl_next_as_first_directive=$gl_cv_next_unistd_h
18421
NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
18427
if test $ac_cv_header_unistd_h = yes; then
18435
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
18436
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18437
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18438
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18439
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
18440
$as_echo_n "(cached) " >&6
18442
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18443
/* end confdefs.h. */
18444
#include <unistd.h>
18445
/* Some systems declare various items in the wrong headers. */
18447
# include <fcntl.h>
18448
# include <stdio.h>
18449
# include <stdlib.h>
18450
# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
18464
if ac_fn_c_try_compile "$LINENO"; then :
18465
eval "$as_gl_Symbol=yes"
18467
eval "$as_gl_Symbol=no"
18469
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18471
eval ac_res=\$$as_gl_Symbol
18472
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18473
$as_echo "$ac_res" >&6; }
18474
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18475
cat >>confdefs.h <<_ACEOF
18476
@%:@define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18479
eval ac_cv_have_decl_$gl_func=yes
18484
# Code from module vasnprintf:
18487
if test $ac_cv_func_vasnprintf = no; then
18498
gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
18508
gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
18518
gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
18528
gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
18530
if test $ac_cv_func_vasnprintf = yes; then
18532
$as_echo "@%:@define REPLACE_VASNPRINTF 1" >>confdefs.h
18545
ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
18546
if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
18550
$as_echo "@%:@define ptrdiff_t long" >>confdefs.h
18563
# Code from module verify:
18564
# Code from module vsnprintf:
18567
gl_cv_func_vsnprintf_usable=no
18568
for ac_func in vsnprintf
18570
ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
18571
if test "x$ac_cv_func_vsnprintf" = x""yes; then :
18572
cat >>confdefs.h <<_ACEOF
18573
@%:@define HAVE_VSNPRINTF 1
18579
if test $ac_cv_func_vsnprintf = yes; then
18582
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
18583
$as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
18584
if test "${gl_cv_func_snprintf_size1+set}" = set; then :
18585
$as_echo_n "(cached) " >&6
18588
if test "$cross_compiling" = yes; then :
18589
gl_cv_func_snprintf_size1="guessing yes"
18591
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18592
/* end confdefs.h. */
18597
static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
18598
snprintf (buf, 1, "%d", 12345);
18599
return buf[1] != 'E';
18602
if ac_fn_c_try_run "$LINENO"; then :
18603
gl_cv_func_snprintf_size1=yes
18605
gl_cv_func_snprintf_size1=no
18607
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18608
conftest.$ac_objext conftest.beam conftest.$ac_ext
18613
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
18614
$as_echo "$gl_cv_func_snprintf_size1" >&6; }
18616
case "$gl_cv_func_snprintf_size1" in
18618
gl_cv_func_vsnprintf_usable=yes
18622
if test $gl_cv_func_vsnprintf_usable = no; then
18633
gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
18635
if test $ac_cv_func_vsnprintf = yes; then
18636
REPLACE_VSNPRINTF=1
18642
if test $ac_cv_have_decl_vsnprintf = no; then
18643
HAVE_DECL_VSNPRINTF=0
18653
$as_echo "@%:@define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
18657
# Code from module warn-on-use:
18658
# Code from module wchar:
18669
if test $gl_cv_have_include_next = yes; then
18670
gl_cv_next_wchar_h='<'wchar.h'>'
18672
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
18673
$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
18674
if test "${gl_cv_next_wchar_h+set}" = set; then :
18675
$as_echo_n "(cached) " >&6
18678
if test $ac_cv_header_wchar_h = yes; then
18679
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18680
/* end confdefs.h. */
18685
aix*) gl_absname_cpp="$ac_cpp -C" ;;
18686
*) gl_absname_cpp="$ac_cpp" ;;
18688
gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18689
sed -n '\#/wchar.h#{
18690
s#.*"\(.*/wchar.h\)".*#\1#
18696
gl_cv_next_wchar_h='<'wchar.h'>'
18700
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
18701
$as_echo "$gl_cv_next_wchar_h" >&6; }
18703
NEXT_WCHAR_H=$gl_cv_next_wchar_h
18705
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18706
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18707
gl_next_as_first_directive='<'wchar.h'>'
18709
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18710
gl_next_as_first_directive=$gl_cv_next_wchar_h
18712
NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
18716
if test $ac_cv_header_wchar_h = yes; then
18724
if test $gt_cv_c_wint_t = yes; then
18732
for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth; do
18733
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18734
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18735
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18736
if eval "test \"\${$as_gl_Symbol+set}\"" = set; then :
18737
$as_echo_n "(cached) " >&6
18739
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18740
/* end confdefs.h. */
18742
/* Some systems require additional headers. */
18744
# include <stddef.h>
18745
# include <stdio.h>
18759
if ac_fn_c_try_compile "$LINENO"; then :
18760
eval "$as_gl_Symbol=yes"
18762
eval "$as_gl_Symbol=no"
18764
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18766
eval ac_res=\$$as_gl_Symbol
18767
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18768
$as_echo "$ac_res" >&6; }
18769
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18770
cat >>confdefs.h <<_ACEOF
18771
@%:@define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18774
eval ac_cv_have_decl_$gl_func=yes
18779
# Code from module wcrtomb:
18790
if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
18794
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
18795
$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
18796
if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
18797
$as_echo_n "(cached) " >&6
18801
# Guess no on AIX and OSF/1.
18802
aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
18803
# Guess yes otherwise.
18804
*) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
18806
if test $LOCALE_JA != none; then
18807
if test "$cross_compiling" = yes; then :
18810
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18811
/* end confdefs.h. */
18813
#include <locale.h>
18814
#include <string.h>
18818
if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
18820
const char input[] = "B\217\253\344\217\251\316er"; /* "BĆ¼Ćer" */
18824
memset (&state, '\0', sizeof (mbstate_t));
18825
if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
18826
if (mbsinit (&state))
18832
if ac_fn_c_try_run "$LINENO"; then :
18833
gl_cv_func_mbrtowc_incomplete_state=yes
18835
gl_cv_func_mbrtowc_incomplete_state=no
18837
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18838
conftest.$ac_objext conftest.beam conftest.$ac_ext
18844
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
18845
$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
18850
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
18851
$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
18852
if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
18853
$as_echo_n "(cached) " >&6
18857
# Guess no on Solaris 8.
18858
solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
18859
# Guess yes otherwise.
18860
*) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
18862
if test $LOCALE_ZH_CN != none; then
18863
if test "$cross_compiling" = yes; then :
18866
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18867
/* end confdefs.h. */
18869
#include <locale.h>
18870
#include <stdlib.h>
18871
#include <string.h>
18875
/* This fails on Solaris 8:
18876
mbrtowc returns 2, and sets wc to 0x00F0.
18877
mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
18878
if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
18880
char input[] = "B\250\271\201\060\211\070er"; /* "BĆ¼Ćer" */
18884
memset (&state, '\0', sizeof (mbstate_t));
18885
if (mbrtowc (&wc, input + 3, 6, &state) != 4
18886
&& mbtowc (&wc, input + 3, 6) == 4)
18892
if ac_fn_c_try_run "$LINENO"; then :
18893
gl_cv_func_mbrtowc_sanitycheck=yes
18895
gl_cv_func_mbrtowc_sanitycheck=no
18897
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18898
conftest.$ac_objext conftest.beam conftest.$ac_ext
18904
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
18905
$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
18907
REPLACE_MBSTATE_T=0
18908
case "$gl_cv_func_mbrtowc_incomplete_state" in
18910
*) REPLACE_MBSTATE_T=1 ;;
18912
case "$gl_cv_func_mbrtowc_sanitycheck" in
18914
*) REPLACE_MBSTATE_T=1 ;;
18917
REPLACE_MBSTATE_T=1
18919
if test $REPLACE_MBSTATE_T = 1; then
18927
if test $ac_cv_func_wcrtomb = no; then
18930
if test $REPLACE_MBSTATE_T = 1; then
18938
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
18939
$as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
18940
if test "${gl_cv_func_wcrtomb_retval+set}" = set; then :
18941
$as_echo_n "(cached) " >&6
18945
# Guess no on AIX 4, OSF/1 and Solaris.
18946
aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
18947
# Guess yes otherwise.
18948
*) gl_cv_func_wcrtomb_retval="guessing yes" ;;
18950
if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
18951
if test "$cross_compiling" = yes; then :
18954
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18955
/* end confdefs.h. */
18957
#include <locale.h>
18959
#include <string.h>
18963
if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
18965
if (wcrtomb (NULL, 0, NULL) != 1)
18968
if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
18970
if (wcrtomb (NULL, 0, NULL) != 1)
18973
if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
18975
if (wcrtomb (NULL, 0, NULL) != 1)
18978
if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
18980
if (wcrtomb (NULL, 0, NULL) != 1)
18986
if ac_fn_c_try_run "$LINENO"; then :
18987
gl_cv_func_wcrtomb_retval=yes
18989
gl_cv_func_wcrtomb_retval=no
18991
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18992
conftest.$ac_objext conftest.beam conftest.$ac_ext
18998
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5
18999
$as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
19000
case "$gl_cv_func_wcrtomb_retval" in
19002
*) REPLACE_WCRTOMB=1 ;;
19006
if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
19018
gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext"
19032
$as_echo "@%:@define GNULIB_TEST_WCRTOMB 1" >>confdefs.h
19036
# Code from module wctype:
19041
if test $ac_cv_func_iswcntrl = yes; then
19049
if test $ac_cv_func_iswblank = yes; then
19054
if test $ac_cv_have_decl_iswblank = yes; then
19067
if test $gt_cv_c_wint_t = yes; then
19074
if test $ac_cv_header_wctype_h = yes; then
19075
if test $ac_cv_func_iswcntrl = yes; then
19076
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
19077
$as_echo_n "checking whether iswcntrl works... " >&6; }
19078
if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
19079
$as_echo_n "(cached) " >&6
19082
if test "$cross_compiling" = yes; then :
19083
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19084
/* end confdefs.h. */
19085
#include <stdlib.h>
19086
#if __GNU_LIBRARY__ == 1
19087
Linux libc5 i18n is broken.
19097
if ac_fn_c_try_compile "$LINENO"; then :
19098
gl_cv_func_iswcntrl_works=yes
19100
gl_cv_func_iswcntrl_works=no
19102
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19105
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19106
/* end confdefs.h. */
19108
#include <stddef.h>
19112
#include <wctype.h>
19113
int main () { return iswprint ('x') == 0; }
19115
if ac_fn_c_try_run "$LINENO"; then :
19116
gl_cv_func_iswcntrl_works=yes
19118
gl_cv_func_iswcntrl_works=no
19120
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19121
conftest.$ac_objext conftest.beam conftest.$ac_ext
19126
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
19127
$as_echo "$gl_cv_func_iswcntrl_works" >&6; }
19135
if test $gl_cv_have_include_next = yes; then
19136
gl_cv_next_wctype_h='<'wctype.h'>'
19138
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
19139
$as_echo_n "checking absolute name of <wctype.h>... " >&6; }
19140
if test "${gl_cv_next_wctype_h+set}" = set; then :
19141
$as_echo_n "(cached) " >&6
19144
if test $ac_cv_header_wctype_h = yes; then
19145
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19146
/* end confdefs.h. */
19147
#include <wctype.h>
19151
aix*) gl_absname_cpp="$ac_cpp -C" ;;
19152
*) gl_absname_cpp="$ac_cpp" ;;
19154
gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19155
sed -n '\#/wctype.h#{
19156
s#.*"\(.*/wctype.h\)".*#\1#
19162
gl_cv_next_wctype_h='<'wctype.h'>'
19166
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
19167
$as_echo "$gl_cv_next_wctype_h" >&6; }
19169
NEXT_WCTYPE_H=$gl_cv_next_wctype_h
19171
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19172
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19173
gl_next_as_first_directive='<'wctype.h'>'
19175
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19176
gl_next_as_first_directive=$gl_cv_next_wctype_h
19178
NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
19188
if test "$gl_cv_func_iswcntrl_works" = no; then
19195
# Code from module xsize:
19199
for ac_header in stdint.h
19201
ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19202
if test "x$ac_cv_header_stdint_h" = x""yes; then :
19203
cat >>confdefs.h <<_ACEOF
19204
@%:@define HAVE_STDINT_H 1
19212
# End of code from modules
19233
gl_source_base='tests'
19234
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
19236
gl_module_indicator_condition=$gltests_WITNESS
19246
LIBGNU_LIBDEPS="$gl_libdeps"
19248
LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
19253
# Check for target programs.
19256
# Find tools for the target.
19257
if test "x$target_alias" != x && test "x$host_alias" != "x$target_alias"; then
19258
tmp_ac_tool_prefix="$ac_tool_prefix"
19259
ac_tool_prefix=$target_alias-
19261
if test -n "$ac_tool_prefix"; then
19262
for ac_prog in gcc egcs cc
19264
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19265
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19266
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19267
$as_echo_n "checking for $ac_word... " >&6; }
19268
if test "${ac_cv_prog_TARGET_CC+set}" = set; then :
19269
$as_echo_n "(cached) " >&6
19271
if test -n "$TARGET_CC"; then
19272
ac_cv_prog_TARGET_CC="$TARGET_CC" # Let the user override the test.
19274
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19275
for as_dir in $PATH
19278
test -z "$as_dir" && as_dir=.
19279
for ac_exec_ext in '' $ac_executable_extensions; do
19280
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19281
ac_cv_prog_TARGET_CC="$ac_tool_prefix$ac_prog"
19282
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19291
TARGET_CC=$ac_cv_prog_TARGET_CC
19292
if test -n "$TARGET_CC"; then
19293
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_CC" >&5
19294
$as_echo "$TARGET_CC" >&6; }
19296
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19297
$as_echo "no" >&6; }
19301
test -n "$TARGET_CC" && break
19304
if test -z "$TARGET_CC"; then
19305
ac_ct_TARGET_CC=$TARGET_CC
19306
for ac_prog in gcc egcs cc
19308
# Extract the first word of "$ac_prog", so it can be a program name with args.
19309
set dummy $ac_prog; ac_word=$2
19310
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19311
$as_echo_n "checking for $ac_word... " >&6; }
19312
if test "${ac_cv_prog_ac_ct_TARGET_CC+set}" = set; then :
19313
$as_echo_n "(cached) " >&6
19315
if test -n "$ac_ct_TARGET_CC"; then
19316
ac_cv_prog_ac_ct_TARGET_CC="$ac_ct_TARGET_CC" # Let the user override the test.
19318
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19319
for as_dir in $PATH
19322
test -z "$as_dir" && as_dir=.
19323
for ac_exec_ext in '' $ac_executable_extensions; do
19324
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19325
ac_cv_prog_ac_ct_TARGET_CC="$ac_prog"
19326
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19335
ac_ct_TARGET_CC=$ac_cv_prog_ac_ct_TARGET_CC
19336
if test -n "$ac_ct_TARGET_CC"; then
19337
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_TARGET_CC" >&5
19338
$as_echo "$ac_ct_TARGET_CC" >&6; }
19340
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19341
$as_echo "no" >&6; }
19345
test -n "$ac_ct_TARGET_CC" && break
19348
if test "x$ac_ct_TARGET_CC" = x; then
19349
TARGET_CC="as_fn_error $? "none of gcc, egcs and cc is found. set TARGET_CC manually." "$LINENO" 5 "
19351
case $cross_compiling:$ac_tool_warned in
19353
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19354
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19355
ac_tool_warned=yes ;;
19357
TARGET_CC=$ac_ct_TARGET_CC
19361
if test -n "$ac_tool_prefix"; then
19362
# Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
19363
set dummy ${ac_tool_prefix}objcopy; ac_word=$2
19364
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19365
$as_echo_n "checking for $ac_word... " >&6; }
19366
if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
19367
$as_echo_n "(cached) " >&6
19369
if test -n "$OBJCOPY"; then
19370
ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
19372
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19373
for as_dir in $PATH
19376
test -z "$as_dir" && as_dir=.
19377
for ac_exec_ext in '' $ac_executable_extensions; do
19378
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19379
ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
19380
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19389
OBJCOPY=$ac_cv_prog_OBJCOPY
19390
if test -n "$OBJCOPY"; then
19391
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
19392
$as_echo "$OBJCOPY" >&6; }
19394
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19395
$as_echo "no" >&6; }
19400
if test -z "$ac_cv_prog_OBJCOPY"; then
19401
ac_ct_OBJCOPY=$OBJCOPY
19402
# Extract the first word of "objcopy", so it can be a program name with args.
19403
set dummy objcopy; ac_word=$2
19404
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19405
$as_echo_n "checking for $ac_word... " >&6; }
19406
if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
19407
$as_echo_n "(cached) " >&6
19409
if test -n "$ac_ct_OBJCOPY"; then
19410
ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
19412
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19413
for as_dir in $PATH
19416
test -z "$as_dir" && as_dir=.
19417
for ac_exec_ext in '' $ac_executable_extensions; do
19418
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19419
ac_cv_prog_ac_ct_OBJCOPY="objcopy"
19420
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19429
ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
19430
if test -n "$ac_ct_OBJCOPY"; then
19431
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
19432
$as_echo "$ac_ct_OBJCOPY" >&6; }
19434
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19435
$as_echo "no" >&6; }
19438
if test "x$ac_ct_OBJCOPY" = x; then
19441
case $cross_compiling:$ac_tool_warned in
19443
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19444
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19445
ac_tool_warned=yes ;;
19447
OBJCOPY=$ac_ct_OBJCOPY
19450
OBJCOPY="$ac_cv_prog_OBJCOPY"
19453
if test -n "$ac_tool_prefix"; then
19454
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19455
set dummy ${ac_tool_prefix}strip; ac_word=$2
19456
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19457
$as_echo_n "checking for $ac_word... " >&6; }
19458
if test "${ac_cv_prog_STRIP+set}" = set; then :
19459
$as_echo_n "(cached) " >&6
19461
if test -n "$STRIP"; then
19462
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
19464
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19465
for as_dir in $PATH
19468
test -z "$as_dir" && as_dir=.
19469
for ac_exec_ext in '' $ac_executable_extensions; do
19470
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19471
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
19472
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19481
STRIP=$ac_cv_prog_STRIP
19482
if test -n "$STRIP"; then
19483
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
19484
$as_echo "$STRIP" >&6; }
19486
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19487
$as_echo "no" >&6; }
19492
if test -z "$ac_cv_prog_STRIP"; then
19494
# Extract the first word of "strip", so it can be a program name with args.
19495
set dummy strip; ac_word=$2
19496
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19497
$as_echo_n "checking for $ac_word... " >&6; }
19498
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
19499
$as_echo_n "(cached) " >&6
19501
if test -n "$ac_ct_STRIP"; then
19502
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
19504
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19505
for as_dir in $PATH
19508
test -z "$as_dir" && as_dir=.
19509
for ac_exec_ext in '' $ac_executable_extensions; do
19510
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19511
ac_cv_prog_ac_ct_STRIP="strip"
19512
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19521
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
19522
if test -n "$ac_ct_STRIP"; then
19523
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
19524
$as_echo "$ac_ct_STRIP" >&6; }
19526
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19527
$as_echo "no" >&6; }
19530
if test "x$ac_ct_STRIP" = x; then
19533
case $cross_compiling:$ac_tool_warned in
19535
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19536
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19537
ac_tool_warned=yes ;;
19542
STRIP="$ac_cv_prog_STRIP"
19545
if test -n "$ac_tool_prefix"; then
19546
# Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
19547
set dummy ${ac_tool_prefix}nm; ac_word=$2
19548
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19549
$as_echo_n "checking for $ac_word... " >&6; }
19550
if test "${ac_cv_prog_NM+set}" = set; then :
19551
$as_echo_n "(cached) " >&6
19553
if test -n "$NM"; then
19554
ac_cv_prog_NM="$NM" # Let the user override the test.
19556
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19557
for as_dir in $PATH
19560
test -z "$as_dir" && as_dir=.
19561
for ac_exec_ext in '' $ac_executable_extensions; do
19562
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19563
ac_cv_prog_NM="${ac_tool_prefix}nm"
19564
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19574
if test -n "$NM"; then
19575
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
19576
$as_echo "$NM" >&6; }
19578
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19579
$as_echo "no" >&6; }
19584
if test -z "$ac_cv_prog_NM"; then
19586
# Extract the first word of "nm", so it can be a program name with args.
19587
set dummy nm; ac_word=$2
19588
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19589
$as_echo_n "checking for $ac_word... " >&6; }
19590
if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
19591
$as_echo_n "(cached) " >&6
19593
if test -n "$ac_ct_NM"; then
19594
ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
19596
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19597
for as_dir in $PATH
19600
test -z "$as_dir" && as_dir=.
19601
for ac_exec_ext in '' $ac_executable_extensions; do
19602
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19603
ac_cv_prog_ac_ct_NM="nm"
19604
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19613
ac_ct_NM=$ac_cv_prog_ac_ct_NM
19614
if test -n "$ac_ct_NM"; then
19615
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
19616
$as_echo "$ac_ct_NM" >&6; }
19618
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19619
$as_echo "no" >&6; }
19622
if test "x$ac_ct_NM" = x; then
19625
case $cross_compiling:$ac_tool_warned in
19627
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19628
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19629
ac_tool_warned=yes ;;
19634
NM="$ac_cv_prog_NM"
19638
ac_tool_prefix="$tmp_ac_tool_prefix"
19640
if test "x$TARGET_CC" = x; then
19643
if test -n "$ac_tool_prefix"; then
19644
# Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
19645
set dummy ${ac_tool_prefix}objcopy; ac_word=$2
19646
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19647
$as_echo_n "checking for $ac_word... " >&6; }
19648
if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
19649
$as_echo_n "(cached) " >&6
19651
if test -n "$OBJCOPY"; then
19652
ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
19654
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19655
for as_dir in $PATH
19658
test -z "$as_dir" && as_dir=.
19659
for ac_exec_ext in '' $ac_executable_extensions; do
19660
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19661
ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
19662
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19671
OBJCOPY=$ac_cv_prog_OBJCOPY
19672
if test -n "$OBJCOPY"; then
19673
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
19674
$as_echo "$OBJCOPY" >&6; }
19676
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19677
$as_echo "no" >&6; }
19682
if test -z "$ac_cv_prog_OBJCOPY"; then
19683
ac_ct_OBJCOPY=$OBJCOPY
19684
# Extract the first word of "objcopy", so it can be a program name with args.
19685
set dummy objcopy; ac_word=$2
19686
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19687
$as_echo_n "checking for $ac_word... " >&6; }
19688
if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
19689
$as_echo_n "(cached) " >&6
19691
if test -n "$ac_ct_OBJCOPY"; then
19692
ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
19694
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19695
for as_dir in $PATH
19698
test -z "$as_dir" && as_dir=.
19699
for ac_exec_ext in '' $ac_executable_extensions; do
19700
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19701
ac_cv_prog_ac_ct_OBJCOPY="objcopy"
19702
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19711
ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
19712
if test -n "$ac_ct_OBJCOPY"; then
19713
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
19714
$as_echo "$ac_ct_OBJCOPY" >&6; }
19716
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19717
$as_echo "no" >&6; }
19720
if test "x$ac_ct_OBJCOPY" = x; then
19723
case $cross_compiling:$ac_tool_warned in
19725
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19726
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19727
ac_tool_warned=yes ;;
19729
OBJCOPY=$ac_ct_OBJCOPY
19732
OBJCOPY="$ac_cv_prog_OBJCOPY"
19735
if test -n "$ac_tool_prefix"; then
19736
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19737
set dummy ${ac_tool_prefix}strip; ac_word=$2
19738
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19739
$as_echo_n "checking for $ac_word... " >&6; }
19740
if test "${ac_cv_prog_STRIP+set}" = set; then :
19741
$as_echo_n "(cached) " >&6
19743
if test -n "$STRIP"; then
19744
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
19746
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19747
for as_dir in $PATH
19750
test -z "$as_dir" && as_dir=.
19751
for ac_exec_ext in '' $ac_executable_extensions; do
19752
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19753
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
19754
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19763
STRIP=$ac_cv_prog_STRIP
19764
if test -n "$STRIP"; then
19765
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
19766
$as_echo "$STRIP" >&6; }
19768
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19769
$as_echo "no" >&6; }
19774
if test -z "$ac_cv_prog_STRIP"; then
19776
# Extract the first word of "strip", so it can be a program name with args.
19777
set dummy strip; ac_word=$2
19778
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19779
$as_echo_n "checking for $ac_word... " >&6; }
19780
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
19781
$as_echo_n "(cached) " >&6
19783
if test -n "$ac_ct_STRIP"; then
19784
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
19786
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19787
for as_dir in $PATH
19790
test -z "$as_dir" && as_dir=.
19791
for ac_exec_ext in '' $ac_executable_extensions; do
19792
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19793
ac_cv_prog_ac_ct_STRIP="strip"
19794
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19803
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
19804
if test -n "$ac_ct_STRIP"; then
19805
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
19806
$as_echo "$ac_ct_STRIP" >&6; }
19808
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19809
$as_echo "no" >&6; }
19812
if test "x$ac_ct_STRIP" = x; then
19815
case $cross_compiling:$ac_tool_warned in
19817
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19818
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19819
ac_tool_warned=yes ;;
19824
STRIP="$ac_cv_prog_STRIP"
19827
if test -n "$ac_tool_prefix"; then
19828
# Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
19829
set dummy ${ac_tool_prefix}nm; ac_word=$2
19830
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19831
$as_echo_n "checking for $ac_word... " >&6; }
19832
if test "${ac_cv_prog_NM+set}" = set; then :
19833
$as_echo_n "(cached) " >&6
19835
if test -n "$NM"; then
19836
ac_cv_prog_NM="$NM" # Let the user override the test.
19838
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19839
for as_dir in $PATH
19842
test -z "$as_dir" && as_dir=.
19843
for ac_exec_ext in '' $ac_executable_extensions; do
19844
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19845
ac_cv_prog_NM="${ac_tool_prefix}nm"
19846
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19856
if test -n "$NM"; then
19857
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
19858
$as_echo "$NM" >&6; }
19860
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19861
$as_echo "no" >&6; }
19866
if test -z "$ac_cv_prog_NM"; then
19868
# Extract the first word of "nm", so it can be a program name with args.
19869
set dummy nm; ac_word=$2
19870
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19871
$as_echo_n "checking for $ac_word... " >&6; }
19872
if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
19873
$as_echo_n "(cached) " >&6
19875
if test -n "$ac_ct_NM"; then
19876
ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
19878
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19879
for as_dir in $PATH
19882
test -z "$as_dir" && as_dir=.
19883
for ac_exec_ext in '' $ac_executable_extensions; do
19884
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19885
ac_cv_prog_ac_ct_NM="nm"
19886
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19895
ac_ct_NM=$ac_cv_prog_ac_ct_NM
19896
if test -n "$ac_ct_NM"; then
19897
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
19898
$as_echo "$ac_ct_NM" >&6; }
19900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19901
$as_echo "no" >&6; }
19904
if test "x$ac_ct_NM" = x; then
19907
case $cross_compiling:$ac_tool_warned in
19909
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19910
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19911
ac_tool_warned=yes ;;
19916
NM="$ac_cv_prog_NM"
19924
# Test the C compiler for the target environment.
19926
tmp_CFLAGS="$CFLAGS"
19927
tmp_LDFLAGS="$LDFLAGS"
19928
tmp_CPPFLAGS="$CPPFLAGS"
19931
CFLAGS="$TARGET_CFLAGS"
19932
CPPFLAGS="$TARGET_CPPFLAGS"
19933
LDFLAGS="$TARGET_LDFLAGS"
19937
TARGET_CFLAGS="$TARGET_CFLAGS -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g"
19938
TARGET_CCASFLAGS="$TARGET_CCASFLAGS -g"
19940
# Force no alignment to save space on i386.
19941
if test "x$target_cpu" = xi386; then
19942
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -falign-loops works" >&5
19943
$as_echo_n "checking whether -falign-loops works... " >&6; }
19944
if test "${grub_cv_cc_falign_loop+set}" = set; then :
19945
$as_echo_n "(cached) " >&6
19948
CFLAGS="$CFLAGS -falign-loops=1"
19949
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19950
/* end confdefs.h. */
19960
if ac_fn_c_try_compile "$LINENO"; then :
19961
grub_cv_cc_falign_loop=yes
19963
grub_cv_cc_falign_loop=no
19965
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19968
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_falign_loop" >&5
19969
$as_echo "$grub_cv_cc_falign_loop" >&6; }
19971
if test "x$grub_cv_cc_falign_loop" = xyes; then
19972
TARGET_CFLAGS="$TARGET_CFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
19974
TARGET_CFLAGS="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
19977
# Some toolchains enable these features by default, but they need
19978
# registers that aren't set up properly in GRUB.
19979
TARGET_CFLAGS="$TARGET_CFLAGS -mno-mmx -mno-sse -mno-sse2 -mno-3dnow"
19982
# By default, GCC 4.4 generates .eh_frame sections containing unwind
19983
# information in some cases where it previously did not. GRUB doesn't need
19984
# these and they just use up vital space. Restore the old compiler
19986
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fno-dwarf2-cfi-asm works" >&5
19987
$as_echo_n "checking whether -fno-dwarf2-cfi-asm works... " >&6; }
19988
if test "${grub_cv_cc_fno_dwarf2_cfi_asm+set}" = set; then :
19989
$as_echo_n "(cached) " >&6
19992
SAVE_CFLAGS="$CFLAGS"
19993
CFLAGS="$CFLAGS -fno-dwarf2-cfi-asm"
19994
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19995
/* end confdefs.h. */
20005
if ac_fn_c_try_compile "$LINENO"; then :
20006
grub_cv_cc_fno_dwarf2_cfi_asm=yes
20008
grub_cv_cc_fno_dwarf2_cfi_asm=no
20010
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20011
CFLAGS="$SAVE_CFLAGS"
20014
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_fno_dwarf2_cfi_asm" >&5
20015
$as_echo "$grub_cv_cc_fno_dwarf2_cfi_asm" >&6; }
20017
if test "x$grub_cv_cc_fno_dwarf2_cfi_asm" = xyes; then
20018
TARGET_CFLAGS="$TARGET_CFLAGS -fno-dwarf2-cfi-asm"
20021
if test "${target_cpu}-${platform}" = mips-yeeloong; then
20022
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -march=loongson2f works" >&5
20023
$as_echo_n "checking whether -march=loongson2f works... " >&6; }
20024
if test "${grub_cv_cc_march_loongson2f+set}" = set; then :
20025
$as_echo_n "(cached) " >&6
20028
SAVE_CFLAGS="$CFLAGS"
20029
CFLAGS="$CFLAGS -march=loongson2f"
20030
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20031
/* end confdefs.h. */
20041
if ac_fn_c_try_compile "$LINENO"; then :
20042
grub_cv_cc_march_loongson2f=yes
20044
grub_cv_cc_march_loongson2f=no
20046
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20047
CFLAGS="$SAVE_CFLAGS"
20050
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_march_loongson2f" >&5
20051
$as_echo "$grub_cv_cc_march_loongson2f" >&6; }
20053
if test "x$grub_cv_cc_march_loongson2f" = xyes; then
20054
TARGET_CFLAGS="$TARGET_CFLAGS -march=loongson2f"
20056
TARGET_CFLAGS="$TARGET_CFLAGS -march=mips3"
20061
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our target compiler is apple cc" >&5
20062
$as_echo_n "checking whether our target compiler is apple cc... " >&6; }
20063
if test "${grub_cv_apple_target_cc+set}" = set; then :
20064
$as_echo_n "(cached) " >&6
20066
if $CC -v 2>&1 | grep "Apple Inc." > /dev/null; then
20067
grub_cv_apple_target_cc=yes
20069
grub_cv_apple_target_cc=no
20075
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_apple_target_cc" >&5
20076
$as_echo "$grub_cv_apple_target_cc" >&6; }
20077
if test x$grub_cv_apple_target_cc = xyes ; then
20078
TARGET_CPPFLAGS="$TARGET_CPPFLAGS -DAPPLE_CC=1"
20079
TARGET_CFLAGS="$TARGET_CFLAGS -fnested-functions"
20081
CFLAGS="$CFLAGS -DAPPLE_CC=1 -fnested-functions"
20083
# Extract the first word of "objconv", so it can be a program name with args.
20084
set dummy objconv; ac_word=$2
20085
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20086
$as_echo_n "checking for $ac_word... " >&6; }
20087
if test "${ac_cv_prog_OBJCONV+set}" = set; then :
20088
$as_echo_n "(cached) " >&6
20090
if test -n "$OBJCONV"; then
20091
ac_cv_prog_OBJCONV="$OBJCONV" # Let the user override the test.
20093
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20094
for as_dir in $PATH
20097
test -z "$as_dir" && as_dir=.
20098
for ac_exec_ext in '' $ac_executable_extensions; do
20099
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20100
ac_cv_prog_OBJCONV="objconv"
20101
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20110
OBJCONV=$ac_cv_prog_OBJCONV
20111
if test -n "$OBJCONV"; then
20112
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCONV" >&5
20113
$as_echo "$OBJCONV" >&6; }
20115
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20116
$as_echo "no" >&6; }
20120
if test "x$OBJCONV" = x ; then
20121
# Extract the first word of "objconv", so it can be a program name with args.
20122
set dummy objconv; ac_word=$2
20123
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20124
$as_echo_n "checking for $ac_word... " >&6; }
20125
if test "${ac_cv_prog_OBJCONV+set}" = set; then :
20126
$as_echo_n "(cached) " >&6
20128
if test -n "$OBJCONV"; then
20129
ac_cv_prog_OBJCONV="$OBJCONV" # Let the user override the test.
20131
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20135
test -z "$as_dir" && as_dir=.
20136
for ac_exec_ext in '' $ac_executable_extensions; do
20137
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20138
ac_cv_prog_OBJCONV="./objconv"
20139
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20148
OBJCONV=$ac_cv_prog_OBJCONV
20149
if test -n "$OBJCONV"; then
20150
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCONV" >&5
20151
$as_echo "$OBJCONV" >&6; }
20153
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20154
$as_echo "no" >&6; }
20159
if test "x$OBJCONV" = x ; then
20160
as_fn_error $? "objconv not found which is required when building with apple compiler" "$LINENO" 5
20162
TARGET_IMG_LDSCRIPT=
20163
TARGET_IMG_CFLAGS="-static"
20164
TARGET_IMG_LDFLAGS='-nostdlib -static -Wl,-preload -Wl,-segalign,20'
20165
TARGET_IMG_LDFLAGS_AC='-nostdlib -static -Wl,-preload -Wl,-segalign,20'
20166
TARGET_IMG_BASE_LDOPT="-Wl,-image_base"
20169
# Use linker script if present, otherwise use builtin -N script.
20170
if test -f "${srcdir}/${grub_coredir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"; then
20171
TARGET_IMG_LDSCRIPT='$(top_srcdir)'"/${grub_coredir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"
20172
TARGET_IMG_LDFLAGS="-Wl,-T${TARGET_IMG_LDSCRIPT}"
20173
TARGET_IMG_LDFLAGS_AC="-Wl,-T${srcdir}/${grub_coredir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"
20174
TARGET_IMG_BASE_LDOPT="-Wl,-Ttext"
20176
TARGET_IMG_LDSCRIPT=
20177
TARGET_IMG_LDFLAGS='-Wl,-N'
20178
TARGET_IMG_LDFLAGS_AC='-Wl,-N'
20179
TARGET_IMG_BASE_LDOPT="-Wl,-Ttext"
20184
# For platforms where ELF is not the default link format.
20185
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for command to convert module to ELF format" >&5
20186
$as_echo_n "checking for command to convert module to ELF format... " >&6; }
20187
case "${host_os}" in
20188
cygwin) TARGET_OBJ2ELF='$(top_builddir)/grub-pe2elf';
20189
# FIXME: put proper test here
20190
NEED_REGISTER_FRAME_INFO=1
20192
*) NEED_REGISTER_FRAME_INFO=0 ;;
20194
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_OBJ2ELF" >&5
20195
$as_echo "$TARGET_OBJ2ELF" >&6; }
20197
if test "x$target_m32" = x1; then
20198
# Force 32-bit mode.
20199
TARGET_CFLAGS="$TARGET_CFLAGS -m32"
20200
TARGET_CCASFLAGS="$TARGET_CCASFLAGS -m32"
20201
TARGET_LDFLAGS="$TARGET_LDFLAGS -m32"
20202
TARGET_MODULE_FORMAT="elf32"
20205
if test "x$target_m64" = x1; then
20206
# Force 64-bit mode.
20207
TARGET_CFLAGS="$TARGET_CFLAGS -m64"
20208
TARGET_CCASFLAGS="$TARGET_CCASFLAGS -m64"
20209
TARGET_LDFLAGS="$TARGET_LDFLAGS -m64"
20210
TARGET_MODULE_FORMAT="elf64"
20213
if test "$target_cpu"-"$platform" = x86_64-efi; then
20214
# Use large model to support 4G memory
20215
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mcmodel=large works" >&5
20216
$as_echo_n "checking whether option -mcmodel=large works... " >&6; }
20217
if test "${grub_cv_cc_mcmodel+set}" = set; then :
20218
$as_echo_n "(cached) " >&6
20221
SAVED_CFLAGS=$CFLAGS
20222
CFLAGS="$CFLAGS -m64 -mcmodel=large"
20223
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20224
/* end confdefs.h. */
20234
if ac_fn_c_try_compile "$LINENO"; then :
20235
grub_cv_cc_mcmodel=yes
20237
grub_cv_cc_mcmodel=no
20239
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20242
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_mcmodel" >&5
20243
$as_echo "$grub_cv_cc_mcmodel" >&6; }
20244
if test "x$grub_cv_cc_mcmodel" = xno; then
20245
as_fn_error $? "-mcmodel=large not supported. Upgrade your gcc." "$LINENO" 5
20247
TARGET_CFLAGS="$TARGET_CFLAGS -mcmodel=large"
20250
# EFI writes to stack below %rsp, we must not use the red zone
20251
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether option -mno-red-zone works" >&5
20252
$as_echo_n "checking whether option -mno-red-zone works... " >&6; }
20253
if test "${grub_cv_cc_no_red_zone+set}" = set; then :
20254
$as_echo_n "(cached) " >&6
20257
CFLAGS="$CFLAGS -m64 -mno-red-zone"
20258
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20259
/* end confdefs.h. */
20269
if ac_fn_c_try_compile "$LINENO"; then :
20270
grub_cv_cc_no_red_zone=yes
20272
grub_cv_cc_no_red_zone=no
20274
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20277
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_no_red_zone" >&5
20278
$as_echo "$grub_cv_cc_no_red_zone" >&6; }
20279
if test "x$grub_cv_cc_no_red_zone" = xno; then
20280
as_fn_error $? "-mno-red-zone not supported, upgrade your gcc" "$LINENO" 5
20283
TARGET_CFLAGS="$TARGET_CFLAGS -mno-red-zone"
20287
# Compiler features.
20290
# Need __enable_execute_stack() for nested function trampolines?
20292
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' generates calls to \`__enable_execute_stack()'" >&5
20293
$as_echo_n "checking whether \`$CC' generates calls to \`__enable_execute_stack()'... " >&6; }
20294
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20295
/* end confdefs.h. */
20297
void f (int (*p) (void));
20300
int nestedfunc (void) { return i; }
20305
if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
20306
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20307
(eval $ac_try) 2>&5
20309
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20310
test $ac_status = 0; }; } && test -s conftest.s; then
20313
as_fn_error $? "${CC-cc} failed to produce assembly code" "$LINENO" 5
20315
if grep __enable_execute_stack conftest.s >/dev/null 2>&1; then
20316
NEED_ENABLE_EXECUTE_STACK=1
20317
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20318
$as_echo "yes" >&6; }
20320
NEED_ENABLE_EXECUTE_STACK=0
20321
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20322
$as_echo "no" >&6; }
20327
# Position independent executable.
20329
# Position independent executable.
20331
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' has \`-fPIE' as default" >&5
20332
$as_echo_n "checking whether \`$CC' has \`-fPIE' as default... " >&6; }
20333
# Is this a reliable test case?
20334
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20335
/* end confdefs.h. */
20342
#error NO __PIE__ DEFINED
20347
# `$CC -c -o ...' might not be portable. But, oh, well... Is calling
20348
# `ac_compile' like this correct, after all?
20349
if eval "$ac_compile -S -o conftest.s" 2> /dev/null; then
20350
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20351
$as_echo "yes" >&6; }
20352
# Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
20356
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20357
$as_echo "no" >&6; }
20360
# Need that, because some distributions ship compilers that include
20361
# `-fPIE' in the default specs.
20362
if [ x"$pie_possible" = xyes ]; then
20363
TARGET_CFLAGS="$TARGET_CFLAGS -fno-PIE"
20366
# Smashing stack protector.
20368
# Smashing stack protector.
20370
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' accepts \`-fstack-protector'" >&5
20371
$as_echo_n "checking whether \`$CC' accepts \`-fstack-protector'... " >&6; }
20372
# Is this a reliable test case?
20373
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20374
/* end confdefs.h. */
20375
void foo (void) { volatile char a[8]; a[3]; }
20377
# `$CC -c -o ...' might not be portable. But, oh, well... Is calling
20378
# `ac_compile' like this correct, after all?
20379
if eval "$ac_compile -S -fstack-protector -o conftest.s" 2> /dev/null; then
20380
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20381
$as_echo "yes" >&6; }
20382
# Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
20386
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20387
$as_echo "no" >&6; }
20390
# Need that, because some distributions ship compilers that include
20391
# `-fstack-protector' in the default specs.
20392
if test "x$ssp_possible" = xyes; then
20393
TARGET_CFLAGS="$TARGET_CFLAGS -fno-stack-protector"
20396
# Smashing stack arg probe.
20398
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`$CC' accepts \`-mstack-arg-probe'" >&5
20399
$as_echo_n "checking whether \`$CC' accepts \`-mstack-arg-probe'... " >&6; }
20400
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20401
/* end confdefs.h. */
20402
void foo (void) { volatile char a[8]; a[3]; }
20404
if eval "$ac_compile -S -mstack-arg-probe -o conftest.s" 2> /dev/null; then
20405
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20406
$as_echo "yes" >&6; }
20407
# Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
20411
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20412
$as_echo "no" >&6; }
20415
# Cygwin's GCC uses alloca() to probe the stackframe on static
20416
# stack allocations above some threshold.
20417
if test x"$sap_possible" = xyes; then
20418
TARGET_CFLAGS="$TARGET_CFLAGS -mno-stack-arg-probe"
20421
@%:@ Check whether --enable-werror was given.
20422
if test "${enable_werror+set}" = set; then :
20423
enableval=$enable_werror;
20426
if test x"$enable_werror" != xno ; then
20427
TARGET_CFLAGS="$TARGET_CFLAGS -Werror"
20430
TARGET_CPP="$TARGET_CC -E"
20431
TARGET_CCAS=$TARGET_CC
20455
# Set them to their new values for the tests below.
20457
if test "x$TARGET_APPLE_CC" = x1 ; then
20458
CFLAGS="$TARGET_CFLAGS -nostdlib -Wno-error"
20460
CFLAGS="$TARGET_CFLAGS -nostdlib -Wl,--defsym,___main=0x8100 -Wno-error"
20462
CPPFLAGS="$TARGET_CPPFLAGS"
20463
if test x$target_cpu = xi386 || test x$target_cpu = xx86_64 ; then
20471
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if C symbols get an underscore after compilation" >&5
20472
$as_echo_n "checking if C symbols get an underscore after compilation... " >&6; }
20473
if test "${grub_cv_asm_uscore+set}" = set; then :
20474
$as_echo_n "(cached) " >&6
20476
cat > conftest.c <<\EOF
20486
if { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
20487
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20488
(eval $ac_try) 2>&5
20490
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20491
test $ac_status = 0; }; } && test -s conftest.s; then
20494
as_fn_error $? "${CC-cc} failed to produce assembly code" "$LINENO" 5
20497
if $EGREP '(^|^_[:alnum])_func' conftest.s >/dev/null 2>&1; then
20499
grub_cv_asm_uscore=yes
20502
grub_cv_asm_uscore=no
20509
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_asm_uscore" >&5
20510
$as_echo "$grub_cv_asm_uscore" >&6; }
20512
if test x$grub_cv_asm_uscore = xyes; then
20513
CFLAGS="$CFLAGS -Wl,--defsym,_abort=_main"
20515
CFLAGS="$CFLAGS -Wl,--defsym,abort=main"
20518
# Check for libgcc symbols
20519
for ac_func in __bswapsi2 __bswapdi2 __ashldi3 __ashrdi3 __lshrdi3 __trampoline_setup __ucmpdi2 _restgpr_14_x
20521
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20522
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20523
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20524
cat >>confdefs.h <<_ACEOF
20525
@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20532
if test "x$TARGET_APPLE_CC" = x1 ; then
20533
CFLAGS="$TARGET_CFLAGS -nostdlib"
20535
CFLAGS="$TARGET_CFLAGS -nostdlib -Wl,--defsym,___main=0x8100"
20539
# Defined in aclocal.m4.
20540
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether target compiler is working" >&5
20541
$as_echo_n "checking whether target compiler is working... " >&6; }
20542
if test "${grub_cv_prog_target_cc+set}" = set; then :
20543
$as_echo_n "(cached) " >&6
20545
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20546
/* end confdefs.h. */
20548
asm (".globl start; start:");
20559
if ac_fn_c_try_link "$LINENO"; then :
20560
grub_cv_prog_target_cc=yes
20562
grub_cv_prog_target_cc=no
20564
rm -f core conftest.err conftest.$ac_objext \
20565
conftest$ac_exeext conftest.$ac_ext
20569
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_target_cc" >&5
20570
$as_echo "$grub_cv_prog_target_cc" >&6; }
20572
if test "x$grub_cv_prog_target_cc" = xno; then
20573
as_fn_error $? "cannot compile for the target" "$LINENO" 5
20576
if test "x$TARGET_APPLE_CC" != x1 ; then
20577
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${OBJCOPY} works for absolute addresses" >&5
20578
$as_echo_n "checking whether ${OBJCOPY} works for absolute addresses... " >&6; }
20579
if test "${grub_cv_prog_objcopy_absolute+set}" = set; then :
20580
$as_echo_n "(cached) " >&6
20582
cat > conftest.c <<\EOF
20587
*((int *) 0x1000) = 2;
20591
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20592
(eval $ac_compile) 2>&5
20594
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20595
test $ac_status = 0; } && test -s conftest.o; then :
20597
as_fn_error $? "${CC-cc} cannot compile C source code" "$LINENO" 5
20599
grub_cv_prog_objcopy_absolute=yes
20600
for link_addr in 0x2000 0x8000 0x7C00; do
20601
if { ac_try='${CC-cc} ${CFLAGS} -nostdlib ${TARGET_IMG_LDFLAGS_AC} ${TARGET_IMG_BASE_LDOPT},$link_addr conftest.o -o conftest.exec'
20602
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20603
(eval $ac_try) 2>&5
20605
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20606
test $ac_status = 0; }; }; then :
20608
as_fn_error $? "${CC-cc} cannot link at address $link_addr" "$LINENO" 5
20610
if { ac_try='${OBJCOPY-objcopy} --only-section=.text -O binary conftest.exec conftest'
20611
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20612
(eval $ac_try) 2>&5
20614
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20615
test $ac_status = 0; }; }; then :
20617
as_fn_error $? "${OBJCOPY-objcopy} cannot create binary files" "$LINENO" 5
20619
if test ! -f conftest.old || { ac_try='cmp -s conftest.old conftest'
20620
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20621
(eval $ac_try) 2>&5
20623
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20624
test $ac_status = 0; }; }; then
20625
mv -f conftest conftest.old
20627
grub_cv_prog_objcopy_absolute=no
20634
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_objcopy_absolute" >&5
20635
$as_echo "$grub_cv_prog_objcopy_absolute" >&6; }
20637
if test "x$grub_cv_prog_objcopy_absolute" = xno; then
20638
as_fn_error $? "GRUB requires a working absolute objcopy; upgrade your binutils" "$LINENO" 5
20642
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts --build-id=none" >&5
20643
$as_echo_n "checking whether linker accepts --build-id=none... " >&6; }
20644
if test "${grub_cv_prog_ld_build_id_none+set}" = set; then :
20645
$as_echo_n "(cached) " >&6
20647
save_LDFLAGS="$LDFLAGS"
20648
LDFLAGS="$LDFLAGS -Wl,--build-id=none"
20649
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20650
/* end confdefs.h. */
20660
if ac_fn_c_try_link "$LINENO"; then :
20661
grub_cv_prog_ld_build_id_none=yes
20663
grub_cv_prog_ld_build_id_none=no
20665
rm -f core conftest.err conftest.$ac_objext \
20666
conftest$ac_exeext conftest.$ac_ext
20667
LDFLAGS="$save_LDFLAGS"
20671
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_prog_ld_build_id_none" >&5
20672
$as_echo "$grub_cv_prog_ld_build_id_none" >&6; }
20674
if test "x$grub_cv_prog_ld_build_id_none" = xyes; then
20675
TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,--build-id=none"
20678
if test "x$target_cpu" = xi386; then
20679
if test "$platform" != emu && test "x$TARGET_APPLE_CC" != x1 ; then
20680
if test ! -z "$TARGET_IMG_LDSCRIPT"; then
20681
# Check symbols provided by linker script.
20682
CFLAGS="$TARGET_CFLAGS -nostdlib ${TARGET_IMG_LDFLAGS_AC} ${TARGET_IMG_BASE_LDOPT},8000 -Wl,--defsym,___main=0x8100"
20685
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if __bss_start is defined by the compiler" >&5
20686
$as_echo_n "checking if __bss_start is defined by the compiler... " >&6; }
20687
if test "${grub_cv_check_uscore_uscore_bss_start_symbol+set}" = set; then :
20688
$as_echo_n "(cached) " >&6
20690
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20691
/* end confdefs.h. */
20696
asm ("incl __bss_start")
20701
if ac_fn_c_try_link "$LINENO"; then :
20702
grub_cv_check_uscore_uscore_bss_start_symbol=yes
20704
grub_cv_check_uscore_uscore_bss_start_symbol=no
20706
rm -f core conftest.err conftest.$ac_objext \
20707
conftest$ac_exeext conftest.$ac_ext
20711
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
20712
$as_echo "$grub_cv_check_uscore_uscore_bss_start_symbol" >&6; }
20714
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if edata is defined by the compiler" >&5
20715
$as_echo_n "checking if edata is defined by the compiler... " >&6; }
20716
if test "${grub_cv_check_edata_symbol+set}" = set; then :
20717
$as_echo_n "(cached) " >&6
20719
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20720
/* end confdefs.h. */
20730
if ac_fn_c_try_link "$LINENO"; then :
20731
grub_cv_check_edata_symbol=yes
20733
grub_cv_check_edata_symbol=no
20735
rm -f core conftest.err conftest.$ac_objext \
20736
conftest$ac_exeext conftest.$ac_ext
20740
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_edata_symbol" >&5
20741
$as_echo "$grub_cv_check_edata_symbol" >&6; }
20743
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if _edata is defined by the compiler" >&5
20744
$as_echo_n "checking if _edata is defined by the compiler... " >&6; }
20745
if test "${grub_cv_check_uscore_edata_symbol+set}" = set; then :
20746
$as_echo_n "(cached) " >&6
20748
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20749
/* end confdefs.h. */
20754
asm ("incl _edata")
20759
if ac_fn_c_try_link "$LINENO"; then :
20760
grub_cv_check_uscore_edata_symbol=yes
20762
grub_cv_check_uscore_edata_symbol=no
20764
rm -f core conftest.err conftest.$ac_objext \
20765
conftest$ac_exeext conftest.$ac_ext
20769
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_edata_symbol" >&5
20770
$as_echo "$grub_cv_check_uscore_edata_symbol" >&6; }
20772
if test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then
20773
BSS_START_SYMBOL=__bss_start
20774
elif test "x$grub_cv_check_edata_symbol" = xyes; then
20775
BSS_START_SYMBOL=edata
20776
elif test "x$grub_cv_check_uscore_edata_symbol" = xyes; then
20777
BSS_START_SYMBOL=_edata
20779
as_fn_error $? "none of __bss_start, edata or _edata is defined" "$LINENO" 5
20783
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if end is defined by the compiler" >&5
20784
$as_echo_n "checking if end is defined by the compiler... " >&6; }
20785
if test "${grub_cv_check_end_symbol+set}" = set; then :
20786
$as_echo_n "(cached) " >&6
20788
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20789
/* end confdefs.h. */
20799
if ac_fn_c_try_link "$LINENO"; then :
20800
grub_cv_check_end_symbol=yes
20802
grub_cv_check_end_symbol=no
20804
rm -f core conftest.err conftest.$ac_objext \
20805
conftest$ac_exeext conftest.$ac_ext
20809
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_end_symbol" >&5
20810
$as_echo "$grub_cv_check_end_symbol" >&6; }
20812
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if _end is defined by the compiler" >&5
20813
$as_echo_n "checking if _end is defined by the compiler... " >&6; }
20814
if test "${grub_cv_check_uscore_end_symbol+set}" = set; then :
20815
$as_echo_n "(cached) " >&6
20817
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20818
/* end confdefs.h. */
20828
if ac_fn_c_try_link "$LINENO"; then :
20829
grub_cv_check_uscore_end_symbol=yes
20831
grub_cv_check_uscore_end_symbol=no
20833
rm -f core conftest.err conftest.$ac_objext \
20834
conftest$ac_exeext conftest.$ac_ext
20838
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_check_uscore_end_symbol" >&5
20839
$as_echo "$grub_cv_check_uscore_end_symbol" >&6; }
20841
if test "x$grub_cv_check_end_symbol" = xyes; then
20843
elif test "x$grub_cv_check_uscore_end_symbol" = xyes; then
20846
as_fn_error $? "neither end nor _end is defined" "$LINENO" 5
20850
CFLAGS="$TARGET_CFLAGS"
20852
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether addr32 must be in the same line as the instruction" >&5
20853
$as_echo_n "checking whether addr32 must be in the same line as the instruction... " >&6; }
20854
if test "${grub_cv_i386_asm_prefix_requirement+set}" = set; then :
20855
$as_echo_n "(cached) " >&6
20857
cat > conftest.s <<\EOF
20859
l1: addr32 movb %al, l1
20862
if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
20863
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20864
(eval $ac_try) 2>&5
20866
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20867
test $ac_status = 0; }; } && test -s conftest.o; then
20868
grub_cv_i386_asm_prefix_requirement=yes
20870
grub_cv_i386_asm_prefix_requirement=no
20877
if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
20878
grub_tmp_addr32="addr32"
20879
grub_tmp_data32="data32"
20881
grub_tmp_addr32="addr32;"
20882
grub_tmp_data32="data32;"
20885
ADDR32=$grub_tmp_addr32
20886
DATA32=$grub_tmp_data32
20888
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_i386_asm_prefix_requirement" >&5
20889
$as_echo "$grub_cv_i386_asm_prefix_requirement" >&6; }
20892
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .code16 addr32 assembler support" >&5
20893
$as_echo_n "checking for .code16 addr32 assembler support... " >&6; }
20894
if test "${grub_cv_i386_asm_addr32+set}" = set; then :
20895
$as_echo_n "(cached) " >&6
20897
cat > conftest.s.in <<\EOF
20899
l1: @ADDR32@ movb %al, l1
20902
if test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
20903
sed -e s/@ADDR32@/addr32/ < conftest.s.in > conftest.s
20905
sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s
20908
if { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
20909
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20910
(eval $ac_try) 2>&5
20912
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20913
test $ac_status = 0; }; } && test -s conftest.o; then
20914
grub_cv_i386_asm_addr32=yes
20916
grub_cv_i386_asm_addr32=no
20923
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_i386_asm_addr32" >&5
20924
$as_echo "$grub_cv_i386_asm_addr32" >&6; }
20927
@%:@ Check whether --enable-efiemu was given.
20928
if test "${enable_efiemu+set}" = set; then :
20929
enableval=$enable_efiemu;
20932
if test x"$enable_efiemu" = xno ; then
20933
efiemu_excuse="explicitly disabled"
20935
if test x"$target_cpu" != xi386 ; then
20936
efiemu_excuse="only available on i386"
20938
if test x"$platform" = xefi ; then
20939
efiemu_excuse="not available on efi"
20941
if test x"$efiemu_excuse" = x ; then
20942
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether options required for efiemu work" >&5
20943
$as_echo_n "checking whether options required for efiemu work... " >&6; }
20944
if test "${grub_cv_cc_efiemu+set}" = set; then :
20945
$as_echo_n "(cached) " >&6
20948
CFLAGS="$CFLAGS -m64 -mcmodel=large -mno-red-zone -nostdlib"
20949
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20950
/* end confdefs.h. */
20960
if ac_fn_c_try_compile "$LINENO"; then :
20961
grub_cv_cc_efiemu=yes
20963
grub_cv_cc_efiemu=no
20965
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20968
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_efiemu" >&5
20969
$as_echo "$grub_cv_cc_efiemu" >&6; }
20970
if test x$grub_cv_cc_efiemu = xno; then
20971
efiemu_excuse="cannot compile with -m64 -mcmodel=large -mno-red-zone -nostdlib"
20974
if test x"$enable_efiemu" = xyes && test x"$efiemu_excuse" != x ; then
20975
as_fn_error $? "efiemu runtime was explicitly requested but can't be compiled" "$LINENO" 5
20977
if test x"$efiemu_excuse" = x ; then
20984
if test "$platform" != emu; then
20985
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -nostdinc -isystem works" >&5
20986
$as_echo_n "checking whether -nostdinc -isystem works... " >&6; }
20987
if test "${grub_cv_cc_isystem+set}" = set; then :
20988
$as_echo_n "(cached) " >&6
20991
SAVED_CPPFLAGS="$CPPFLAGS"
20992
CPPFLAGS="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`"
20993
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20994
/* end confdefs.h. */
20995
#include <stdarg.h>
20996
int va_arg_func (int fixed, va_list args);
21005
if ac_fn_c_try_compile "$LINENO"; then :
21006
grub_cv_cc_isystem=yes
21008
grub_cv_cc_isystem=no
21010
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21011
CPPFLAGS="$SAVED_CPPFLAGS"
21014
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_isystem" >&5
21015
$as_echo "$grub_cv_cc_isystem" >&6; }
21017
if test x"$grub_cv_cc_isystem" = xyes ; then
21018
TARGET_CPPFLAGS="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`"
21022
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-trampolines work" >&5
21023
$as_echo_n "checking whether -Wno-trampolines work... " >&6; }
21024
if test "${grub_cv_cc_wnotrampolines+set}" = set; then :
21025
$as_echo_n "(cached) " >&6
21028
SAVED_CFLAGS="$CFLAGS"
21029
# Test for -Wtrampolines rather than -Wno-trampolines to reduce confusion
21030
# in the event of later failures (since -Wno-* is always accepted, but
21031
# produces a diagnostic if something else is wrong).
21032
CFLAGS="$TARGET_CFLAGS -Wtrampolines"
21033
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21034
/* end confdefs.h. */
21035
#include <stdarg.h>
21036
int va_arg_func (int fixed, va_list args);
21045
if ac_fn_c_try_compile "$LINENO"; then :
21046
grub_cv_cc_wnotrampolines=yes
21048
grub_cv_cc_wnotrampolines=no
21050
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21051
CFLAGS="$SAVED_CFLAGS"
21054
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grub_cv_cc_wnotrampolines" >&5
21055
$as_echo "$grub_cv_cc_wnotrampolines" >&6; }
21057
if test x"$grub_cv_cc_wnotrampolines" = xyes ; then
21058
TARGET_CFLAGS="$TARGET_CFLAGS -Wno-trampolines"
21061
# Restore the flags.
21063
CFLAGS="$tmp_CFLAGS"
21064
CPPFLAGS="$tmp_CPPFLAGS"
21065
LDFLAGS="$tmp_LDFLAGS"
21069
# Check for options.
21072
# Memory manager debugging.
21073
@%:@ Check whether --enable-mm-debug was given.
21074
if test "${enable_mm_debug+set}" = set; then :
21075
enableval=$enable_mm_debug;
21076
$as_echo "@%:@define MM_DEBUG 1" >>confdefs.h
21081
@%:@ Check whether --enable-grub-emu-usb was given.
21082
if test "${enable_grub_emu_usb+set}" = set; then :
21083
enableval=$enable_grub_emu_usb;
21087
@%:@ Check whether --enable-grub-emu-sdl was given.
21088
if test "${enable_grub_emu_sdl+set}" = set; then :
21089
enableval=$enable_grub_emu_sdl;
21093
@%:@ Check whether --enable-grub-emu-pci was given.
21094
if test "${enable_grub_emu_pci+set}" = set; then :
21095
enableval=$enable_grub_emu_pci;
21099
if test "$platform" = emu; then
21101
# Check for curses libraries.
21102
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wgetch in -lncurses" >&5
21103
$as_echo_n "checking for wgetch in -lncurses... " >&6; }
21104
if test "${ac_cv_lib_ncurses_wgetch+set}" = set; then :
21105
$as_echo_n "(cached) " >&6
21107
ac_check_lib_save_LIBS=$LIBS
21108
LIBS="-lncurses $LIBS"
21109
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21110
/* end confdefs.h. */
21112
/* Override any GCC internal prototype to avoid an error.
21113
Use char because int might match the return type of a GCC
21114
builtin and then its argument prototype would still apply. */
21127
if ac_fn_c_try_link "$LINENO"; then :
21128
ac_cv_lib_ncurses_wgetch=yes
21130
ac_cv_lib_ncurses_wgetch=no
21132
rm -f core conftest.err conftest.$ac_objext \
21133
conftest$ac_exeext conftest.$ac_ext
21134
LIBS=$ac_check_lib_save_LIBS
21136
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_wgetch" >&5
21137
$as_echo "$ac_cv_lib_ncurses_wgetch" >&6; }
21138
if test "x$ac_cv_lib_ncurses_wgetch" = x""yes; then :
21139
LIBCURSES="-lncurses"
21141
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wgetch in -lcurses" >&5
21142
$as_echo_n "checking for wgetch in -lcurses... " >&6; }
21143
if test "${ac_cv_lib_curses_wgetch+set}" = set; then :
21144
$as_echo_n "(cached) " >&6
21146
ac_check_lib_save_LIBS=$LIBS
21147
LIBS="-lcurses $LIBS"
21148
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21149
/* end confdefs.h. */
21151
/* Override any GCC internal prototype to avoid an error.
21152
Use char because int might match the return type of a GCC
21153
builtin and then its argument prototype would still apply. */
21166
if ac_fn_c_try_link "$LINENO"; then :
21167
ac_cv_lib_curses_wgetch=yes
21169
ac_cv_lib_curses_wgetch=no
21171
rm -f core conftest.err conftest.$ac_objext \
21172
conftest$ac_exeext conftest.$ac_ext
21173
LIBS=$ac_check_lib_save_LIBS
21175
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_wgetch" >&5
21176
$as_echo "$ac_cv_lib_curses_wgetch" >&6; }
21177
if test "x$ac_cv_lib_curses_wgetch" = x""yes; then :
21178
LIBCURSES="-lcurses"
21180
missing_ncurses=true
21186
if [ x"$missing_ncurses" = x ]; then
21187
# Check for headers.
21188
for ac_header in ncurses/curses.h
21190
ac_fn_c_check_header_mongrel "$LINENO" "ncurses/curses.h" "ac_cv_header_ncurses_curses_h" "$ac_includes_default"
21191
if test "x$ac_cv_header_ncurses_curses_h" = x""yes; then :
21192
cat >>confdefs.h <<_ACEOF
21193
@%:@define HAVE_NCURSES_CURSES_H 1
21197
for ac_header in ncurses.h
21199
ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
21200
if test "x$ac_cv_header_ncurses_h" = x""yes; then :
21201
cat >>confdefs.h <<_ACEOF
21202
@%:@define HAVE_NCURSES_H 1
21206
for ac_header in curses.h
21208
ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21209
if test "x$ac_cv_header_curses_h" = x""yes; then :
21210
cat >>confdefs.h <<_ACEOF
21211
@%:@define HAVE_CURSES_H 1
21215
missing_ncurses=true
21229
if test x"$missing_ncurses" = xtrue ; then
21230
as_fn_error $? "grub-emu can't be compiled without ncurses" "$LINENO" 5
21233
if test x"$enable_grub_emu_usb" != xyes ; then
21234
grub_emu_usb_excuse="not enabled"
21237
if test x"$enable_grub_emu_pci" = xyes ; then
21238
grub_emu_usb_excuse="conflicts with PCI support"
21241
if [ x"$grub_emu_usb_excuse" = x ]; then
21242
# Check for libusb libraries.
21243
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_claim_interface in -lusb" >&5
21244
$as_echo_n "checking for usb_claim_interface in -lusb... " >&6; }
21245
if test "${ac_cv_lib_usb_usb_claim_interface+set}" = set; then :
21246
$as_echo_n "(cached) " >&6
21248
ac_check_lib_save_LIBS=$LIBS
21250
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21251
/* end confdefs.h. */
21253
/* Override any GCC internal prototype to avoid an error.
21254
Use char because int might match the return type of a GCC
21255
builtin and then its argument prototype would still apply. */
21259
char usb_claim_interface ();
21263
return usb_claim_interface ();
21268
if ac_fn_c_try_link "$LINENO"; then :
21269
ac_cv_lib_usb_usb_claim_interface=yes
21271
ac_cv_lib_usb_usb_claim_interface=no
21273
rm -f core conftest.err conftest.$ac_objext \
21274
conftest$ac_exeext conftest.$ac_ext
21275
LIBS=$ac_check_lib_save_LIBS
21277
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_claim_interface" >&5
21278
$as_echo "$ac_cv_lib_usb_usb_claim_interface" >&6; }
21279
if test "x$ac_cv_lib_usb_usb_claim_interface" = x""yes; then :
21282
grub_emu_usb_excuse="need libusb library"
21287
if [ x"$grub_emu_usb_excuse" = x ]; then
21288
# Check for headers.
21289
for ac_header in usb.h
21291
ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
21292
if test "x$ac_cv_header_usb_h" = x""yes; then :
21293
cat >>confdefs.h <<_ACEOF
21294
@%:@define HAVE_USB_H 1
21298
grub_emu_usb_excuse="need libusb headers"
21304
if test x"$enable_grub_emu_usb" = xyes && test x"$grub_emu_usb_excuse" != x ; then
21305
as_fn_error $? "USB support for grub-emu was explicitly requested but can't be compiled" "$LINENO" 5
21307
if test x"$grub_emu_usb_excuse" = x ; then
21308
enable_grub_emu_usb=yes
21310
enable_grub_emu_usb=no
21313
if test x"$enable_grub_emu_sdl" = xno ; then
21314
grub_emu_sdl_excuse="explicitely disabled"
21316
if [ x"$grub_emu_sdl_excuse" = x ]; then
21317
# Check for libSDL libraries.
21318
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL" >&5
21319
$as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
21320
if test "${ac_cv_lib_SDL_SDL_Init+set}" = set; then :
21321
$as_echo_n "(cached) " >&6
21323
ac_check_lib_save_LIBS=$LIBS
21325
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21326
/* end confdefs.h. */
21328
/* Override any GCC internal prototype to avoid an error.
21329
Use char because int might match the return type of a GCC
21330
builtin and then its argument prototype would still apply. */
21338
return SDL_Init ();
21343
if ac_fn_c_try_link "$LINENO"; then :
21344
ac_cv_lib_SDL_SDL_Init=yes
21346
ac_cv_lib_SDL_SDL_Init=no
21348
rm -f core conftest.err conftest.$ac_objext \
21349
conftest$ac_exeext conftest.$ac_ext
21350
LIBS=$ac_check_lib_save_LIBS
21352
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Init" >&5
21353
$as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
21354
if test "x$ac_cv_lib_SDL_SDL_Init" = x""yes; then :
21357
grub_emu_sdl_excuse="libSDL libraries are required to build \`grub-emu' with SDL support"
21363
if [ x"$grub_emu_sdl_excuse" = x ]; then
21364
# Check for headers.
21365
for ac_header in SDL/SDL.h
21367
ac_fn_c_check_header_mongrel "$LINENO" "SDL/SDL.h" "ac_cv_header_SDL_SDL_h" "$ac_includes_default"
21368
if test "x$ac_cv_header_SDL_SDL_h" = x""yes; then :
21369
cat >>confdefs.h <<_ACEOF
21370
@%:@define HAVE_SDL_SDL_H 1
21374
grub_emu_sdl_excuse="libSDL header file is required to build \`grub-emu' with SDL support"
21381
if test x"enable_grub_emu_sdl" = xyes && test x"$grub_emu_sdl_excuse" != x ; then
21382
as_fn_error $? "SDL support for grub-emu was explicitely requested but can't be compiled" "$LINENO" 5
21384
if test x"$grub_emu_sdl_excuse" = x ; then
21385
enable_grub_emu_sdl=yes
21387
enable_grub_emu_sdl=no
21390
if test x"$enable_grub_emu_pci" != xyes ; then
21391
grub_emu_pci_excuse="not enabled"
21394
if test x"$enable_grub_emu_usb" = xyes ; then
21395
grub_emu_pci_excuse="conflicts with USB support"
21398
if [ x"$grub_emu_pci_excuse" = x ]; then
21399
# Check for libpci libraries.
21400
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pci_system_init in -lpciaccess" >&5
21401
$as_echo_n "checking for pci_system_init in -lpciaccess... " >&6; }
21402
if test "${ac_cv_lib_pciaccess_pci_system_init+set}" = set; then :
21403
$as_echo_n "(cached) " >&6
21405
ac_check_lib_save_LIBS=$LIBS
21406
LIBS="-lpciaccess $LIBS"
21407
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21408
/* end confdefs.h. */
21410
/* Override any GCC internal prototype to avoid an error.
21411
Use char because int might match the return type of a GCC
21412
builtin and then its argument prototype would still apply. */
21416
char pci_system_init ();
21420
return pci_system_init ();
21425
if ac_fn_c_try_link "$LINENO"; then :
21426
ac_cv_lib_pciaccess_pci_system_init=yes
21428
ac_cv_lib_pciaccess_pci_system_init=no
21430
rm -f core conftest.err conftest.$ac_objext \
21431
conftest$ac_exeext conftest.$ac_ext
21432
LIBS=$ac_check_lib_save_LIBS
21434
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pciaccess_pci_system_init" >&5
21435
$as_echo "$ac_cv_lib_pciaccess_pci_system_init" >&6; }
21436
if test "x$ac_cv_lib_pciaccess_pci_system_init" = x""yes; then :
21437
LIBPCIACCESS="-lpciaccess"
21439
grub_emu_pci_excuse="need libpciaccess library"
21444
if [ x"$grub_emu_pci_excuse" = x ]; then
21445
# Check for headers.
21446
for ac_header in pci/pci.h
21448
ac_fn_c_check_header_mongrel "$LINENO" "pci/pci.h" "ac_cv_header_pci_pci_h" "$ac_includes_default"
21449
if test "x$ac_cv_header_pci_pci_h" = x""yes; then :
21450
cat >>confdefs.h <<_ACEOF
21451
@%:@define HAVE_PCI_PCI_H 1
21455
grub_emu_pci_excuse="need libpciaccess headers"
21462
if test x"$grub_emu_pci_excuse" = x ; then
21463
enable_grub_emu_pci=yes
21466
enable_grub_emu_pci=no
21474
@%:@ Check whether --enable-grub-mkfont was given.
21475
if test "${enable_grub_mkfont+set}" = set; then :
21476
enableval=$enable_grub_mkfont;
21479
if test x"$enable_grub_mkfont" = xno ; then
21480
grub_mkfont_excuse="explicitly disabled"
21483
if test x"$grub_mkfont_excuse" = x ; then
21484
# Check for freetype libraries.
21485
for ac_prog in freetype-config
21487
# Extract the first word of "$ac_prog", so it can be a program name with args.
21488
set dummy $ac_prog; ac_word=$2
21489
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21490
$as_echo_n "checking for $ac_word... " >&6; }
21491
if test "${ac_cv_prog_FREETYPE+set}" = set; then :
21492
$as_echo_n "(cached) " >&6
21494
if test -n "$FREETYPE"; then
21495
ac_cv_prog_FREETYPE="$FREETYPE" # Let the user override the test.
21497
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21498
for as_dir in $PATH
21501
test -z "$as_dir" && as_dir=.
21502
for ac_exec_ext in '' $ac_executable_extensions; do
21503
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21504
ac_cv_prog_FREETYPE="$ac_prog"
21505
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21514
FREETYPE=$ac_cv_prog_FREETYPE
21515
if test -n "$FREETYPE"; then
21516
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE" >&5
21517
$as_echo "$FREETYPE" >&6; }
21519
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21520
$as_echo "no" >&6; }
21524
test -n "$FREETYPE" && break
21527
if test "x$FREETYPE" = x ; then
21528
grub_mkfont_excuse="need freetype2 library"
21532
if test x"$grub_mkfont_excuse" = x ; then
21533
# Check for freetype libraries.
21534
freetype_cflags=`freetype-config --cflags`
21535
freetype_libs=`freetype-config --libs`
21536
SAVED_CPPFLAGS="$CPPFLAGS"
21537
CPPFLAGS="$CPPFLAGS $freetype_cflags"
21538
for ac_header in ft2build.h
21540
ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
21541
if test "x$ac_cv_header_ft2build_h" = x""yes; then :
21542
cat >>confdefs.h <<_ACEOF
21543
@%:@define HAVE_FT2BUILD_H 1
21547
grub_mkfont_excuse="need freetype2 headers"
21552
CPPFLAGS="$SAVED_CPPFLAGS"
21555
if test x"$enable_grub_mkfont" = xyes && test x"$grub_mkfont_excuse" != x ; then
21556
as_fn_error $? "grub-mkfont was explicitly requested but can't be compiled" "$LINENO" 5
21558
if test x"$grub_mkfont_excuse" = x ; then
21559
enable_grub_mkfont=yes
21561
enable_grub_mkfont=no
21567
@%:@ Check whether --enable-device-mapper was given.
21568
if test "${enable_device_mapper+set}" = set; then :
21569
enableval=$enable_device_mapper;
21572
if test x"$enable_device_mapper" = xno ; then
21573
device_mapper_excuse="explicitly disabled"
21576
if test x"$device_mapper_excuse" = x ; then
21577
# Check for device-mapper header.
21578
ac_fn_c_check_header_mongrel "$LINENO" "libdevmapper.h" "ac_cv_header_libdevmapper_h" "$ac_includes_default"
21579
if test "x$ac_cv_header_libdevmapper_h" = x""yes; then :
21582
device_mapper_excuse="need libdevmapper header"
21588
if test x"$device_mapper_excuse" = x ; then
21589
# Check for device-mapper library.
21590
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_create in -ldevmapper" >&5
21591
$as_echo_n "checking for dm_task_create in -ldevmapper... " >&6; }
21592
if test "${ac_cv_lib_devmapper_dm_task_create+set}" = set; then :
21593
$as_echo_n "(cached) " >&6
21595
ac_check_lib_save_LIBS=$LIBS
21596
LIBS="-ldevmapper $LIBS"
21597
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21598
/* end confdefs.h. */
21600
/* Override any GCC internal prototype to avoid an error.
21601
Use char because int might match the return type of a GCC
21602
builtin and then its argument prototype would still apply. */
21606
char dm_task_create ();
21610
return dm_task_create ();
21615
if ac_fn_c_try_link "$LINENO"; then :
21616
ac_cv_lib_devmapper_dm_task_create=yes
21618
ac_cv_lib_devmapper_dm_task_create=no
21620
rm -f core conftest.err conftest.$ac_objext \
21621
conftest$ac_exeext conftest.$ac_ext
21622
LIBS=$ac_check_lib_save_LIBS
21624
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_create" >&5
21625
$as_echo "$ac_cv_lib_devmapper_dm_task_create" >&6; }
21626
if test "x$ac_cv_lib_devmapper_dm_task_create" = x""yes; then :
21627
cat >>confdefs.h <<_ACEOF
21628
@%:@define HAVE_LIBDEVMAPPER 1
21631
LIBS="-ldevmapper $LIBS"
21634
device_mapper_excuse="need devmapper library"
21639
if test x"$device_mapper_excuse" = x ; then
21640
# Check for device-mapper library.
21641
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_log_with_errno_init in -ldevmapper" >&5
21642
$as_echo_n "checking for dm_log_with_errno_init in -ldevmapper... " >&6; }
21643
if test "${ac_cv_lib_devmapper_dm_log_with_errno_init+set}" = set; then :
21644
$as_echo_n "(cached) " >&6
21646
ac_check_lib_save_LIBS=$LIBS
21647
LIBS="-ldevmapper $LIBS"
21648
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21649
/* end confdefs.h. */
21651
/* Override any GCC internal prototype to avoid an error.
21652
Use char because int might match the return type of a GCC
21653
builtin and then its argument prototype would still apply. */
21657
char dm_log_with_errno_init ();
21661
return dm_log_with_errno_init ();
21666
if ac_fn_c_try_link "$LINENO"; then :
21667
ac_cv_lib_devmapper_dm_log_with_errno_init=yes
21669
ac_cv_lib_devmapper_dm_log_with_errno_init=no
21671
rm -f core conftest.err conftest.$ac_objext \
21672
conftest$ac_exeext conftest.$ac_ext
21673
LIBS=$ac_check_lib_save_LIBS
21675
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_log_with_errno_init" >&5
21676
$as_echo "$ac_cv_lib_devmapper_dm_log_with_errno_init" >&6; }
21677
if test "x$ac_cv_lib_devmapper_dm_log_with_errno_init" = x""yes; then :
21678
cat >>confdefs.h <<_ACEOF
21679
@%:@define HAVE_LIBDEVMAPPER 1
21682
LIBS="-ldevmapper $LIBS"
21685
device_mapper_excuse="need devmapper library"
21690
if test x"$device_mapper_excuse" = x ; then
21691
LIBDEVMAPPER="-ldevmapper";
21693
$as_echo "@%:@define HAVE_DEVICE_MAPPER 1" >>confdefs.h
21699
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
21700
$as_echo_n "checking for lzma_code in -llzma... " >&6; }
21701
if test "${ac_cv_lib_lzma_lzma_code+set}" = set; then :
21702
$as_echo_n "(cached) " >&6
21704
ac_check_lib_save_LIBS=$LIBS
21705
LIBS="-llzma $LIBS"
21706
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21707
/* end confdefs.h. */
21709
/* Override any GCC internal prototype to avoid an error.
21710
Use char because int might match the return type of a GCC
21711
builtin and then its argument prototype would still apply. */
21719
return lzma_code ();
21724
if ac_fn_c_try_link "$LINENO"; then :
21725
ac_cv_lib_lzma_lzma_code=yes
21727
ac_cv_lib_lzma_lzma_code=no
21729
rm -f core conftest.err conftest.$ac_objext \
21730
conftest$ac_exeext conftest.$ac_ext
21731
LIBS=$ac_check_lib_save_LIBS
21733
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
21734
$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
21735
if test "x$ac_cv_lib_lzma_lzma_code" = x""yes; then :
21738
$as_echo "@%:@define HAVE_LIBLZMA 1" >>confdefs.h
21744
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzfs_init in -lzfs" >&5
21745
$as_echo_n "checking for libzfs_init in -lzfs... " >&6; }
21746
if test "${ac_cv_lib_zfs_libzfs_init+set}" = set; then :
21747
$as_echo_n "(cached) " >&6
21749
ac_check_lib_save_LIBS=$LIBS
21751
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21752
/* end confdefs.h. */
21754
/* Override any GCC internal prototype to avoid an error.
21755
Use char because int might match the return type of a GCC
21756
builtin and then its argument prototype would still apply. */
21760
char libzfs_init ();
21764
return libzfs_init ();
21769
if ac_fn_c_try_link "$LINENO"; then :
21770
ac_cv_lib_zfs_libzfs_init=yes
21772
ac_cv_lib_zfs_libzfs_init=no
21774
rm -f core conftest.err conftest.$ac_objext \
21775
conftest$ac_exeext conftest.$ac_ext
21776
LIBS=$ac_check_lib_save_LIBS
21778
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zfs_libzfs_init" >&5
21779
$as_echo "$ac_cv_lib_zfs_libzfs_init" >&6; }
21780
if test "x$ac_cv_lib_zfs_libzfs_init" = x""yes; then :
21783
$as_echo "@%:@define HAVE_LIBZFS 1" >>confdefs.h
21789
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_print in -lnvpair" >&5
21790
$as_echo_n "checking for nvlist_print in -lnvpair... " >&6; }
21791
if test "${ac_cv_lib_nvpair_nvlist_print+set}" = set; then :
21792
$as_echo_n "(cached) " >&6
21794
ac_check_lib_save_LIBS=$LIBS
21795
LIBS="-lnvpair $LIBS"
21796
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21797
/* end confdefs.h. */
21799
/* Override any GCC internal prototype to avoid an error.
21800
Use char because int might match the return type of a GCC
21801
builtin and then its argument prototype would still apply. */
21805
char nvlist_print ();
21809
return nvlist_print ();
21814
if ac_fn_c_try_link "$LINENO"; then :
21815
ac_cv_lib_nvpair_nvlist_print=yes
21817
ac_cv_lib_nvpair_nvlist_print=no
21819
rm -f core conftest.err conftest.$ac_objext \
21820
conftest$ac_exeext conftest.$ac_ext
21821
LIBS=$ac_check_lib_save_LIBS
21823
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_print" >&5
21824
$as_echo "$ac_cv_lib_nvpair_nvlist_print" >&6; }
21825
if test "x$ac_cv_lib_nvpair_nvlist_print" = x""yes; then :
21826
LIBNVPAIR="-lnvpair"
21828
$as_echo "@%:@define HAVE_LIBNVPAIR 1" >>confdefs.h
21836
pkglibrootdir='$(libdir)'/`echo $PACKAGE | sed "$program_transform_name"`
21840
if test x$target_cpu = xi386 -a x$platform = xqemu; then :
21841
GRUB_BOOT_MACHINE_LINK_ADDR=0xffe00
21844
if test x$TARGET_APPLE_CC = x1; then :
21845
USE_APPLE_CC_FIXES=yes
21860
# Automake conditionals
21863
if test x$platform = xemu; then
21871
if test x$target_cpu = xi386 -a x$platform = xpc; then
21873
COND_i386_pc_FALSE='#'
21875
COND_i386_pc_TRUE='#'
21876
COND_i386_pc_FALSE=
21879
if test x$target_cpu = xi386 -a x$platform = xefi; then
21880
COND_i386_efi_TRUE=
21881
COND_i386_efi_FALSE='#'
21883
COND_i386_efi_TRUE='#'
21884
COND_i386_efi_FALSE=
21887
if test x$target_cpu = xi386 -a x$platform = xqemu; then
21888
COND_i386_qemu_TRUE=
21889
COND_i386_qemu_FALSE='#'
21891
COND_i386_qemu_TRUE='#'
21892
COND_i386_qemu_FALSE=
21895
if test x$target_cpu = xi386 -a x$platform = xieee1275; then
21896
COND_i386_ieee1275_TRUE=
21897
COND_i386_ieee1275_FALSE='#'
21899
COND_i386_ieee1275_TRUE='#'
21900
COND_i386_ieee1275_FALSE=
21903
if test x$target_cpu = xi386 -a x$platform = xcoreboot; then
21904
COND_i386_coreboot_TRUE=
21905
COND_i386_coreboot_FALSE='#'
21907
COND_i386_coreboot_TRUE='#'
21908
COND_i386_coreboot_FALSE=
21911
if test x$target_cpu = xi386 -a x$platform = xmultiboot; then
21912
COND_i386_multiboot_TRUE=
21913
COND_i386_multiboot_FALSE='#'
21915
COND_i386_multiboot_TRUE='#'
21916
COND_i386_multiboot_FALSE=
21919
if test x$target_cpu = xx86_64 -a x$platform = xefi; then
21920
COND_x86_64_efi_TRUE=
21921
COND_x86_64_efi_FALSE='#'
21923
COND_x86_64_efi_TRUE='#'
21924
COND_x86_64_efi_FALSE=
21927
if test x$target_cpu = xmips -a x$platform = xyeeloong; then
21928
COND_mips_yeeloong_TRUE=
21929
COND_mips_yeeloong_FALSE='#'
21931
COND_mips_yeeloong_TRUE='#'
21932
COND_mips_yeeloong_FALSE=
21935
if test x$target_cpu = xmips -a x$platform = xqemu_mips; then
21936
COND_mips_qemu_mips_TRUE=
21937
COND_mips_qemu_mips_FALSE='#'
21939
COND_mips_qemu_mips_TRUE='#'
21940
COND_mips_qemu_mips_FALSE=
21943
if test x$target_cpu = xsparc64 -a x$platform = xieee1275; then
21944
COND_sparc64_ieee1275_TRUE=
21945
COND_sparc64_ieee1275_FALSE='#'
21947
COND_sparc64_ieee1275_TRUE='#'
21948
COND_sparc64_ieee1275_FALSE=
21951
if test x$target_cpu = xpowerpc -a x$platform = xieee1275; then
21952
COND_powerpc_ieee1275_TRUE=
21953
COND_powerpc_ieee1275_FALSE='#'
21955
COND_powerpc_ieee1275_TRUE='#'
21956
COND_powerpc_ieee1275_FALSE=
21959
if test x$target_cpu = xmips; then
21961
COND_mips_FALSE='#'
21968
if test x$host_kernel = xhurd; then
21969
COND_HOST_HURD_TRUE=
21970
COND_HOST_HURD_FALSE='#'
21972
COND_HOST_HURD_TRUE='#'
21973
COND_HOST_HURD_FALSE=
21976
if test x$host_kernel = xlinux; then
21977
COND_HOST_LINUX_TRUE=
21978
COND_HOST_LINUX_FALSE='#'
21980
COND_HOST_LINUX_TRUE='#'
21981
COND_HOST_LINUX_FALSE=
21984
if test x$host_kernel = xnetbsd; then
21985
COND_HOST_NETBSD_TRUE=
21986
COND_HOST_NETBSD_FALSE='#'
21988
COND_HOST_NETBSD_TRUE='#'
21989
COND_HOST_NETBSD_FALSE=
21992
if test x$host_kernel = xwindows; then
21993
COND_HOST_WINDOWS_TRUE=
21994
COND_HOST_WINDOWS_FALSE='#'
21996
COND_HOST_WINDOWS_TRUE='#'
21997
COND_HOST_WINDOWS_FALSE=
22000
if test x$host_kernel = xkfreebsd; then
22001
COND_HOST_KFREEBSD_TRUE=
22002
COND_HOST_KFREEBSD_FALSE='#'
22004
COND_HOST_KFREEBSD_TRUE='#'
22005
COND_HOST_KFREEBSD_FALSE=
22009
if test x$cross_compiling = xno -a x$HELP2MAN != x; then
22010
COND_MAN_PAGES_TRUE=
22011
COND_MAN_PAGES_FALSE='#'
22013
COND_MAN_PAGES_TRUE='#'
22014
COND_MAN_PAGES_FALSE=
22017
if test x$enable_grub_emu_usb = xyes; then
22018
COND_GRUB_EMU_USB_TRUE=
22019
COND_GRUB_EMU_USB_FALSE='#'
22021
COND_GRUB_EMU_USB_TRUE='#'
22022
COND_GRUB_EMU_USB_FALSE=
22025
if test x$enable_grub_emu_sdl = xyes; then
22026
COND_GRUB_EMU_SDL_TRUE=
22027
COND_GRUB_EMU_SDL_FALSE='#'
22029
COND_GRUB_EMU_SDL_TRUE='#'
22030
COND_GRUB_EMU_SDL_FALSE=
22033
if test x$enable_grub_emu_pci = xyes; then
22034
COND_GRUB_EMU_PCI_TRUE=
22035
COND_GRUB_EMU_PCI_FALSE='#'
22037
COND_GRUB_EMU_PCI_TRUE='#'
22038
COND_GRUB_EMU_PCI_FALSE=
22041
if test x$enable_grub_mkfont = xyes; then
22042
COND_GRUB_MKFONT_TRUE=
22043
COND_GRUB_MKFONT_FALSE='#'
22045
COND_GRUB_MKFONT_TRUE='#'
22046
COND_GRUB_MKFONT_FALSE=
22049
if test x$FONT_SOURCE != x; then
22050
COND_HAVE_FONT_SOURCE_TRUE=
22051
COND_HAVE_FONT_SOURCE_FALSE='#'
22053
COND_HAVE_FONT_SOURCE_TRUE='#'
22054
COND_HAVE_FONT_SOURCE_FALSE=
22057
if test x$TARGET_OBJ2ELF != x; then
22058
COND_GRUB_PE2ELF_TRUE=
22059
COND_GRUB_PE2ELF_FALSE='#'
22061
COND_GRUB_PE2ELF_TRUE='#'
22062
COND_GRUB_PE2ELF_FALSE=
22065
if test x$TARGET_APPLE_CC = x1; then
22066
COND_APPLE_CC_TRUE=
22067
COND_APPLE_CC_FALSE='#'
22069
COND_APPLE_CC_TRUE='#'
22070
COND_APPLE_CC_FALSE=
22073
if test x$enable_efiemu = xyes; then
22074
COND_ENABLE_EFIEMU_TRUE=
22075
COND_ENABLE_EFIEMU_FALSE='#'
22077
COND_ENABLE_EFIEMU_TRUE='#'
22078
COND_ENABLE_EFIEMU_FALSE=
22082
if test x$HAVE_ASM_USCORE = x1; then
22083
COND_HAVE_ASM_USCORE_TRUE=
22084
COND_HAVE_ASM_USCORE_FALSE='#'
22086
COND_HAVE_ASM_USCORE_TRUE='#'
22087
COND_HAVE_ASM_USCORE_FALSE=
22090
if test x$host_os = xcygwin; then
22092
COND_CYGWIN_FALSE='#'
22094
COND_CYGWIN_TRUE='#'
22101
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln can handle directories properly" >&5
22102
$as_echo_n "checking whether ln can handle directories properly... " >&6; }
22103
mkdir testdir 2>/dev/null
22105
[\\/$]* | ?:[\\/]* ) reldir=$srcdir/include/grub/util ;;
22106
*) reldir=../$srcdir/include/grub/util ;;
22108
if ln -s $reldir testdir/util 2>/dev/null ; then
22109
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22110
$as_echo "yes" >&6; }
22114
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22115
$as_echo "no" >&6; }
22119
if test x"$link_dir" = xyes ; then
22120
ac_config_links="$ac_config_links include/grub/cpu:include/grub/$target_cpu"
22122
if test "$platform" != emu ; then
22123
ac_config_links="$ac_config_links include/grub/machine:include/grub/$target_cpu/$platform"
22127
mkdir -p include/grub 2>/dev/null
22128
rm -rf include/grub/cpu
22129
cp -rp $srcdir/include/grub/$target_cpu include/grub/cpu 2>/dev/null
22130
if test "$platform" != emu ; then
22131
rm -rf include/grub/machine
22132
cp -rp $srcdir/include/grub/$target_cpu/$platform include/grub/machine 2>/dev/null
22136
ac_config_files="$ac_config_files Makefile"
22138
ac_config_files="$ac_config_files grub-core/Makefile"
22140
ac_config_files="$ac_config_files grub-core/gnulib/Makefile"
22142
ac_config_files="$ac_config_files po/Makefile.in"
22144
ac_config_files="$ac_config_files docs/Makefile"
22146
ac_config_files="$ac_config_files util/bash-completion.d/Makefile"
22148
ac_config_files="$ac_config_files stamp-h"
22150
ac_config_files="$ac_config_files config.h"
22153
cat >confcache <<\_ACEOF
22154
# This file is a shell script that caches the results of configure
22155
# tests run on this system so they can be shared between configure
22156
# scripts and configure runs, see configure's option --config-cache.
22157
# It is not useful on other systems. If it contains results you don't
22158
# want to keep, you may remove or edit it.
22160
# config.status only pays attention to the cache file if you give it
22161
# the --recheck option to rerun configure.
22163
# `ac_cv_env_foo' variables (set or unset) will be overridden when
22164
# loading this file, other *unset* `ac_cv_foo' will be assigned the
22165
# following values.
22169
# The following way of writing the cache mishandles newlines in values,
22170
# but we know of no workaround that is simple, portable, and efficient.
22171
# So, we kill variables containing newlines.
22172
# Ultrix sh set writes to stderr and can't be redirected directly,
22173
# and sets the high bit in the cache file unless we assign to the vars.
22175
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22176
eval ac_val=\$$ac_var
22180
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22181
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22184
_ | IFS | as_nl) ;; #(
22185
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22186
*) { eval $ac_var=; unset $ac_var;} ;;
22192
case $as_nl`(ac_space=' '; set) 2>&1` in #(
22193
*${as_nl}ac_space=\ *)
22194
# `set' does not quote correctly, so add quotes: double-quote
22195
# substitution turns \\\\ into \\, and sed turns \\ into \.
22198
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22201
# `set' quotes correctly as required by POSIX, so do not add quotes.
22202
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22211
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22213
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22215
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22216
if test -w "$cache_file"; then
22217
test "x$cache_file" != "x/dev/null" &&
22218
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22219
$as_echo "$as_me: updating cache $cache_file" >&6;}
22220
cat confcache >$cache_file
22222
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22223
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22228
test "x$prefix" = xNONE && prefix=$ac_default_prefix
22229
# Let make expand exec_prefix.
22230
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22232
DEFS=-DHAVE_CONFIG_H
22237
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
22238
# 1. Remove the extension, and $U if already installed.
22239
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22240
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22241
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22242
# will be set to the directory where LIBOBJS objects are built.
22243
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22244
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22246
LIB@&t@OBJS=$ac_libobjs
22248
LTLIBOBJS=$ac_ltlibobjs
22251
if test -n "$EXEEXT"; then
22253
am__EXEEXT_FALSE='#'
22255
am__EXEEXT_TRUE='#'
22259
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22260
as_fn_error $? "conditional \"AMDEP\" was never defined.
22261
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22263
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22264
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22265
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22267
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22268
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22269
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22271
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
22272
as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
22273
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22276
if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
22277
as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
22278
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22283
if test -n "$gl_LIBOBJS"; then
22284
# Remove the extension.
22285
sed_drop_objext='s/\.o$//;s/\.obj$//'
22286
for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22287
gl_libobjs="$gl_libobjs $i.$ac_objext"
22288
gl_ltlibobjs="$gl_ltlibobjs $i.lo"
22291
gl_LIBOBJS=$gl_libobjs
22293
gl_LTLIBOBJS=$gl_ltlibobjs
22299
if test -n "$gltests_LIBOBJS"; then
22300
# Remove the extension.
22301
sed_drop_objext='s/\.o$//;s/\.obj$//'
22302
for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22303
gltests_libobjs="$gltests_libobjs $i.$ac_objext"
22304
gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
22307
gltests_LIBOBJS=$gltests_libobjs
22309
gltests_LTLIBOBJS=$gltests_ltlibobjs
22312
if test -z "${COND_emu_TRUE}" && test -z "${COND_emu_FALSE}"; then
22313
as_fn_error $? "conditional \"COND_emu\" was never defined.
22314
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22316
if test -z "${COND_i386_pc_TRUE}" && test -z "${COND_i386_pc_FALSE}"; then
22317
as_fn_error $? "conditional \"COND_i386_pc\" was never defined.
22318
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22320
if test -z "${COND_i386_efi_TRUE}" && test -z "${COND_i386_efi_FALSE}"; then
22321
as_fn_error $? "conditional \"COND_i386_efi\" was never defined.
22322
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22324
if test -z "${COND_i386_qemu_TRUE}" && test -z "${COND_i386_qemu_FALSE}"; then
22325
as_fn_error $? "conditional \"COND_i386_qemu\" was never defined.
22326
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22328
if test -z "${COND_i386_ieee1275_TRUE}" && test -z "${COND_i386_ieee1275_FALSE}"; then
22329
as_fn_error $? "conditional \"COND_i386_ieee1275\" was never defined.
22330
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22332
if test -z "${COND_i386_coreboot_TRUE}" && test -z "${COND_i386_coreboot_FALSE}"; then
22333
as_fn_error $? "conditional \"COND_i386_coreboot\" was never defined.
22334
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22336
if test -z "${COND_i386_multiboot_TRUE}" && test -z "${COND_i386_multiboot_FALSE}"; then
22337
as_fn_error $? "conditional \"COND_i386_multiboot\" was never defined.
22338
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22340
if test -z "${COND_x86_64_efi_TRUE}" && test -z "${COND_x86_64_efi_FALSE}"; then
22341
as_fn_error $? "conditional \"COND_x86_64_efi\" was never defined.
22342
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22344
if test -z "${COND_mips_yeeloong_TRUE}" && test -z "${COND_mips_yeeloong_FALSE}"; then
22345
as_fn_error $? "conditional \"COND_mips_yeeloong\" was never defined.
22346
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22348
if test -z "${COND_mips_qemu_mips_TRUE}" && test -z "${COND_mips_qemu_mips_FALSE}"; then
22349
as_fn_error $? "conditional \"COND_mips_qemu_mips\" was never defined.
22350
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22352
if test -z "${COND_sparc64_ieee1275_TRUE}" && test -z "${COND_sparc64_ieee1275_FALSE}"; then
22353
as_fn_error $? "conditional \"COND_sparc64_ieee1275\" was never defined.
22354
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22356
if test -z "${COND_powerpc_ieee1275_TRUE}" && test -z "${COND_powerpc_ieee1275_FALSE}"; then
22357
as_fn_error $? "conditional \"COND_powerpc_ieee1275\" was never defined.
22358
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22360
if test -z "${COND_mips_TRUE}" && test -z "${COND_mips_FALSE}"; then
22361
as_fn_error $? "conditional \"COND_mips\" was never defined.
22362
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22364
if test -z "${COND_HOST_HURD_TRUE}" && test -z "${COND_HOST_HURD_FALSE}"; then
22365
as_fn_error $? "conditional \"COND_HOST_HURD\" was never defined.
22366
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22368
if test -z "${COND_HOST_LINUX_TRUE}" && test -z "${COND_HOST_LINUX_FALSE}"; then
22369
as_fn_error $? "conditional \"COND_HOST_LINUX\" was never defined.
22370
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22372
if test -z "${COND_HOST_NETBSD_TRUE}" && test -z "${COND_HOST_NETBSD_FALSE}"; then
22373
as_fn_error $? "conditional \"COND_HOST_NETBSD\" was never defined.
22374
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22376
if test -z "${COND_HOST_WINDOWS_TRUE}" && test -z "${COND_HOST_WINDOWS_FALSE}"; then
22377
as_fn_error $? "conditional \"COND_HOST_WINDOWS\" was never defined.
22378
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22380
if test -z "${COND_HOST_KFREEBSD_TRUE}" && test -z "${COND_HOST_KFREEBSD_FALSE}"; then
22381
as_fn_error $? "conditional \"COND_HOST_KFREEBSD\" was never defined.
22382
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22384
if test -z "${COND_MAN_PAGES_TRUE}" && test -z "${COND_MAN_PAGES_FALSE}"; then
22385
as_fn_error $? "conditional \"COND_MAN_PAGES\" was never defined.
22386
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22388
if test -z "${COND_GRUB_EMU_USB_TRUE}" && test -z "${COND_GRUB_EMU_USB_FALSE}"; then
22389
as_fn_error $? "conditional \"COND_GRUB_EMU_USB\" was never defined.
22390
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22392
if test -z "${COND_GRUB_EMU_SDL_TRUE}" && test -z "${COND_GRUB_EMU_SDL_FALSE}"; then
22393
as_fn_error $? "conditional \"COND_GRUB_EMU_SDL\" was never defined.
22394
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22396
if test -z "${COND_GRUB_EMU_PCI_TRUE}" && test -z "${COND_GRUB_EMU_PCI_FALSE}"; then
22397
as_fn_error $? "conditional \"COND_GRUB_EMU_PCI\" was never defined.
22398
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22400
if test -z "${COND_GRUB_MKFONT_TRUE}" && test -z "${COND_GRUB_MKFONT_FALSE}"; then
22401
as_fn_error $? "conditional \"COND_GRUB_MKFONT\" was never defined.
22402
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22404
if test -z "${COND_HAVE_FONT_SOURCE_TRUE}" && test -z "${COND_HAVE_FONT_SOURCE_FALSE}"; then
22405
as_fn_error $? "conditional \"COND_HAVE_FONT_SOURCE\" was never defined.
22406
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22408
if test -z "${COND_GRUB_PE2ELF_TRUE}" && test -z "${COND_GRUB_PE2ELF_FALSE}"; then
22409
as_fn_error $? "conditional \"COND_GRUB_PE2ELF\" was never defined.
22410
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22412
if test -z "${COND_APPLE_CC_TRUE}" && test -z "${COND_APPLE_CC_FALSE}"; then
22413
as_fn_error $? "conditional \"COND_APPLE_CC\" was never defined.
22414
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22416
if test -z "${COND_ENABLE_EFIEMU_TRUE}" && test -z "${COND_ENABLE_EFIEMU_FALSE}"; then
22417
as_fn_error $? "conditional \"COND_ENABLE_EFIEMU\" was never defined.
22418
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22420
if test -z "${COND_HAVE_ASM_USCORE_TRUE}" && test -z "${COND_HAVE_ASM_USCORE_FALSE}"; then
22421
as_fn_error $? "conditional \"COND_HAVE_ASM_USCORE\" was never defined.
22422
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22424
if test -z "${COND_CYGWIN_TRUE}" && test -z "${COND_CYGWIN_FALSE}"; then
22425
as_fn_error $? "conditional \"COND_CYGWIN\" was never defined.
22426
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22429
: ${CONFIG_STATUS=./config.status}
22431
ac_clean_files_save=$ac_clean_files
22432
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22433
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22434
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22436
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22438
# Generated by $as_me.
22439
# Run this file to recreate the current configuration.
22440
# Compiler output produced by configure, useful for debugging
22441
# configure, is in config.log if it exists.
22444
ac_cs_recheck=false
22447
SHELL=\${CONFIG_SHELL-$SHELL}
22450
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22451
## -------------------- ##
22452
## M4sh Initialization. ##
22453
## -------------------- ##
22455
# Be more Bourne compatible
22456
DUALCASE=1; export DUALCASE # for MKS sh
22457
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22460
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22461
# is contrary to our usage. Disable this feature.
22462
alias -g '${1+"$@"}'='"$@"'
22463
setopt NO_GLOB_SUBST
22465
case `(set -o) 2>/dev/null` in @%:@(
22467
set -o posix ;; @%:@(
22477
# Printing a long string crashes Solaris 7 /usr/bin/printf.
22478
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22479
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22480
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22481
# Prefer a ksh shell builtin over an external printf program on Solaris,
22482
# but without wasting forks for bash or zsh.
22483
if test -z "$BASH_VERSION$ZSH_VERSION" \
22484
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22485
as_echo='print -r --'
22486
as_echo_n='print -rn --'
22487
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22488
as_echo='printf %s\n'
22489
as_echo_n='printf %s'
22491
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22492
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22493
as_echo_n='/usr/ucb/echo -n'
22495
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22496
as_echo_n_body='eval
22500
expr "X$arg" : "X\\(.*\\)$as_nl";
22501
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22503
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22505
export as_echo_n_body
22506
as_echo_n='sh -c $as_echo_n_body as_echo'
22508
export as_echo_body
22509
as_echo='sh -c $as_echo_body as_echo'
22512
# The user is always right.
22513
if test "${PATH_SEPARATOR+set}" != set; then
22515
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22516
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22523
# We need space, tab and new line, in precisely that order. Quoting is
22524
# there to prevent editors from complaining about space-tab.
22525
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22526
# splitting by setting IFS to empty value.)
22529
# Find who we are. Look in the path if we contain no directory separator.
22531
*[\\/]* ) as_myself=$0 ;;
22532
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22533
for as_dir in $PATH
22536
test -z "$as_dir" && as_dir=.
22537
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22543
# We did not find ourselves, most probably we were run as `sh COMMAND'
22544
# in which case we are not to be found in the path.
22545
if test "x$as_myself" = x; then
22548
if test ! -f "$as_myself"; then
22549
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22553
# Unset variables that we do not need and which cause bugs (e.g. in
22554
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22555
# suppresses any "Segmentation fault" message there. '((' could
22556
# trigger a bug in pdksh 5.2.14.
22557
for as_var in BASH_ENV ENV MAIL MAILPATH
22558
do eval test x\${$as_var+set} = xset \
22559
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22572
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22575
@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
22576
@%:@ ----------------------------------------
22577
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22578
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22579
@%:@ script with STATUS, using 1 if that was 0.
22582
as_status=$1; test $as_status -eq 0 && as_status=1
22584
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22585
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22587
$as_echo "$as_me: error: $2" >&2
22588
as_fn_exit $as_status
22592
@%:@ as_fn_set_status STATUS
22593
@%:@ -----------------------
22594
@%:@ Set @S|@? to STATUS, without forking.
22595
as_fn_set_status ()
22598
} @%:@ as_fn_set_status
22600
@%:@ as_fn_exit STATUS
22601
@%:@ -----------------
22602
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22606
as_fn_set_status $1
22610
@%:@ as_fn_unset VAR
22611
@%:@ ---------------
22612
@%:@ Portably unset VAR.
22615
{ eval $1=; unset $1;}
22617
as_unset=as_fn_unset
22618
@%:@ as_fn_append VAR VALUE
22619
@%:@ ----------------------
22620
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
22621
@%:@ advantage of any shell optimizations that allow amortized linear growth over
22622
@%:@ repeated appends, instead of the typical quadratic growth present in naive
22623
@%:@ implementations.
22624
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22625
eval 'as_fn_append ()
22636
@%:@ as_fn_arith ARG...
22637
@%:@ ------------------
22638
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
22639
@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
22640
@%:@ must be portable across @S|@(()) and expr.
22641
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22642
eval 'as_fn_arith ()
22649
as_val=`expr "$@" || test $? -eq 1`
22654
if expr a : '\(a\)' >/dev/null 2>&1 &&
22655
test "X`expr 00001 : '.*\(...\)'`" = X001; then
22661
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22662
as_basename=basename
22667
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22673
as_me=`$as_basename -- "$0" ||
22674
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22675
X"$0" : 'X\(//\)$' \| \
22676
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22678
sed '/^.*\/\([^/][^/]*\)\/*$/{
22692
# Avoid depending upon Character Ranges.
22693
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22694
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22695
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22696
as_cr_digits='0123456789'
22697
as_cr_alnum=$as_cr_Letters$as_cr_digits
22699
ECHO_C= ECHO_N= ECHO_T=
22700
case `echo -n x` in @%:@(((((
22702
case `echo 'xy\c'` in
22703
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
22705
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22712
rm -f conf$$ conf$$.exe conf$$.file
22713
if test -d conf$$.dir; then
22714
rm -f conf$$.dir/conf$$.file
22717
mkdir conf$$.dir 2>/dev/null
22719
if (echo >conf$$.file) 2>/dev/null; then
22720
if ln -s conf$$.file conf$$ 2>/dev/null; then
22722
# ... but there are two gotchas:
22723
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22724
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22725
# In both cases, we have to default to `cp -p'.
22726
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22728
elif ln conf$$.file conf$$ 2>/dev/null; then
22736
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22737
rmdir conf$$.dir 2>/dev/null
22742
@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
22747
-*) as_dir=./$as_dir;;
22749
test -d "$as_dir" || eval $as_mkdir_p || {
22753
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22754
*) as_qdir=$as_dir;;
22756
as_dirs="'$as_qdir' $as_dirs"
22757
as_dir=`$as_dirname -- "$as_dir" ||
22758
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22759
X"$as_dir" : 'X\(//\)[^/]' \| \
22760
X"$as_dir" : 'X\(//\)$' \| \
22761
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22762
$as_echo X"$as_dir" |
22763
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22767
/^X\(\/\/\)[^/].*/{
22780
test -d "$as_dir" && break
22782
test -z "$as_dirs" || eval "mkdir $as_dirs"
22783
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22786
} @%:@ as_fn_mkdir_p
22787
if mkdir -p . 2>/dev/null; then
22788
as_mkdir_p='mkdir -p "$as_dir"'
22790
test -d ./-p && rmdir ./-p
22794
if test -x / >/dev/null 2>&1; then
22795
as_test_x='test -x'
22797
if ls -dL / >/dev/null 2>&1; then
22804
if test -d "$1"; then
22810
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
22811
???[sx]*):;;*)false;;esac;fi
22815
as_executable_p=$as_test_x
22817
# Sed expression to map a string onto a valid CPP name.
22818
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22820
# Sed expression to map a string onto a valid variable name.
22821
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22825
## ----------------------------------- ##
22826
## Main body of $CONFIG_STATUS script. ##
22827
## ----------------------------------- ##
22829
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22831
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22832
# Save the log message, to keep $0 and so on meaningful, and to
22833
# report actual input values of CONFIG_FILES etc. instead of their
22834
# values after options handling.
22836
This file was extended by GRUB $as_me 1.99~rc1, which was
22837
generated by GNU Autoconf 2.67. Invocation command line was
22839
CONFIG_FILES = $CONFIG_FILES
22840
CONFIG_HEADERS = $CONFIG_HEADERS
22841
CONFIG_LINKS = $CONFIG_LINKS
22842
CONFIG_COMMANDS = $CONFIG_COMMANDS
22845
on `(hostname || uname -n) 2>/dev/null | sed 1q`
22850
case $ac_config_files in *"
22851
"*) set x $ac_config_files; shift; ac_config_files=$*;;
22854
case $ac_config_headers in *"
22855
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22859
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22860
# Files that config.status was made for.
22861
config_files="$ac_config_files"
22862
config_headers="$ac_config_headers"
22863
config_links="$ac_config_links"
22864
config_commands="$ac_config_commands"
22868
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22870
\`$as_me' instantiates files and other configuration actions
22871
from templates according to the current configuration. Unless the files
22872
and actions are specified as TAGs, all are instantiated by default.
22874
Usage: $0 [OPTION]... [TAG]...
22876
-h, --help print this help, then exit
22877
-V, --version print version number and configuration settings, then exit
22878
--config print configuration, then exit
22879
-q, --quiet, --silent
22880
do not print progress messages
22881
-d, --debug don't remove temporary files
22882
--recheck update $as_me by reconfiguring in the same conditions
22883
--file=FILE[:TEMPLATE]
22884
instantiate the configuration file FILE
22885
--header=FILE[:TEMPLATE]
22886
instantiate the configuration header FILE
22888
Configuration files:
22891
Configuration headers:
22894
Configuration links:
22897
Configuration commands:
22900
Report bugs to <bug-grub@gnu.org>."
22903
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22904
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22906
GRUB config.status 1.99~rc1
22907
configured by $0, generated by GNU Autoconf 2.67,
22908
with options \\"\$ac_cs_config\\"
22910
Copyright (C) 2010 Free Software Foundation, Inc.
22911
This config.status script is free software; the Free Software Foundation
22912
gives unlimited permission to copy, distribute and modify it."
22919
test -n "\$AWK" || AWK=awk
22922
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22923
# The default lists apply if the user does not specify any file.
22929
ac_option=`expr "X$1" : 'X\([^=]*\)='`
22930
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22934
ac_option=`expr "X$1" : 'X\([^=]*\)='`
22946
# Handling of the options.
22947
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22949
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22950
$as_echo "$ac_cs_version"; exit ;;
22951
--config | --confi | --conf | --con | --co | --c )
22952
$as_echo "$ac_cs_config"; exit ;;
22953
--debug | --debu | --deb | --de | --d | -d )
22955
--file | --fil | --fi | --f )
22958
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22959
'') as_fn_error $? "missing file argument" ;;
22961
as_fn_append CONFIG_FILES " '$ac_optarg'"
22962
ac_need_defaults=false;;
22963
--header | --heade | --head | --hea )
22966
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22968
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22969
ac_need_defaults=false;;
22971
# Conflict between --help and --header
22972
as_fn_error $? "ambiguous option: \`$1'
22973
Try \`$0 --help' for more information.";;
22974
--help | --hel | -h )
22975
$as_echo "$ac_cs_usage"; exit ;;
22976
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
22977
| -silent | --silent | --silen | --sile | --sil | --si | --s)
22980
# This is an error.
22981
-*) as_fn_error $? "unrecognized option: \`$1'
22982
Try \`$0 --help' for more information." ;;
22984
*) as_fn_append ac_config_targets " $1"
22985
ac_need_defaults=false ;;
22991
ac_configure_extra_args=
22993
if $ac_cs_silent; then
22995
ac_configure_extra_args="$ac_configure_extra_args --silent"
22999
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23000
if \$ac_cs_recheck; then
23001
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23003
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23004
CONFIG_SHELL='$SHELL'
23005
export CONFIG_SHELL
23010
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23014
sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
23015
@%:@@%:@ Running $as_me. @%:@@%:@
23021
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23025
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23026
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
23027
# POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
23028
# from automake < 1.5.
23029
eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
23030
# Capture the value of LINGUAS because we need it to compute CATALOGS.
23031
LINGUAS="${LINGUAS-%UNSET%}"
23036
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23038
# Handling of arguments.
23039
for ac_config_target in $ac_config_targets
23041
case $ac_config_target in
23042
"config-util.h") CONFIG_HEADERS="$CONFIG_HEADERS config-util.h" ;;
23043
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23044
"po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
23045
"include/grub/cpu") CONFIG_LINKS="$CONFIG_LINKS include/grub/cpu:include/grub/$target_cpu" ;;
23046
"include/grub/machine") CONFIG_LINKS="$CONFIG_LINKS include/grub/machine:include/grub/$target_cpu/$platform" ;;
23047
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23048
"grub-core/Makefile") CONFIG_FILES="$CONFIG_FILES grub-core/Makefile" ;;
23049
"grub-core/gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES grub-core/gnulib/Makefile" ;;
23050
"po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
23051
"docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
23052
"util/bash-completion.d/Makefile") CONFIG_FILES="$CONFIG_FILES util/bash-completion.d/Makefile" ;;
23053
"stamp-h") CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
23054
"config.h") CONFIG_FILES="$CONFIG_FILES config.h" ;;
23056
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
23061
# If the user did not use the arguments to specify the items to instantiate,
23062
# then the envvar interface is used. Set only those that are not.
23063
# We use the long form for the default assignment because of an extremely
23064
# bizarre bug on SunOS 4.1.3.
23065
if $ac_need_defaults; then
23066
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23067
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23068
test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
23069
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23072
# Have a temporary directory for convenience. Make it in the build tree
23073
# simply because there is no reason against having it here, and in addition,
23074
# creating and moving files from /tmp can sometimes cause problems.
23075
# Hook for its removal unless debugging.
23076
# Note that there is a small window in which the directory will not be cleaned:
23077
# after its creation but before its name has been assigned to `$tmp'.
23081
trap 'exit_status=$?
23082
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23084
trap 'as_fn_exit 1' 1 2 13 15
23086
# Create a (secure) tmp directory for tmp files.
23089
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23090
test -n "$tmp" && test -d "$tmp"
23093
tmp=./conf$$-$RANDOM
23094
(umask 077 && mkdir "$tmp")
23095
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23097
# Set up the scripts for CONFIG_FILES section.
23098
# No need to generate them if there are no CONFIG_FILES.
23099
# This happens for instance with `./config.status config.h'.
23100
if test -n "$CONFIG_FILES"; then
23103
ac_cr=`echo X | tr X '\015'`
23104
# On cygwin, bash can eat \r inside `` if the user requested igncr.
23105
# But we know of no other shell where ac_cr would be empty at this
23106
# point, so we can use a bashism as a fallback.
23107
if test "x$ac_cr" = x; then
23108
eval ac_cr=\$\'\\r\'
23110
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23111
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23114
ac_cs_awk_cr=$ac_cr
23117
echo 'BEGIN {' >"$tmp/subs1.awk" &&
23122
echo "cat >conf$$subs.awk <<_ACEOF" &&
23123
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23125
} >conf$$subs.sh ||
23126
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23127
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23129
for ac_last_try in false false false false false :; do
23130
. ./conf$$subs.sh ||
23131
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23133
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23134
if test $ac_delim_n = $ac_delim_num; then
23136
elif $ac_last_try; then
23137
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23139
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23142
rm -f conf$$subs.sh
23144
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23145
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23149
s/^/S["/; s/!.*/"]=/
23159
s/\(.\{148\}\)..*/\1/
23161
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23166
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23173
s/\(.\{148\}\)..*/\1/
23175
s/["\\]/\\&/g; s/^/"/; s/$/"/
23179
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23184
' <conf$$subs.awk | sed '
23189
' >>$CONFIG_STATUS || ac_write_fail=1
23190
rm -f conf$$subs.awk
23191
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23193
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23194
for (key in S) S_is_set[key] = 1
23200
nfields = split(line, field, "@")
23202
len = length(field[1])
23203
for (i = 2; i < nfields; i++) {
23205
keylen = length(key)
23206
if (S_is_set[key]) {
23208
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23209
len += length(value) + length(field[++i])
23220
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23221
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23222
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23225
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23226
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23229
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23230
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23231
# trailing colons and then remove the whole line if VPATH becomes empty
23232
# (actually we leave an empty line to preserve line numbers).
23233
if test "x$srcdir" = x.; then
23234
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23252
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23253
fi # test -n "$CONFIG_FILES"
23255
# Set up the scripts for CONFIG_HEADERS section.
23256
# No need to generate them if there are no CONFIG_HEADERS.
23257
# This happens for instance with `./config.status Makefile'.
23258
if test -n "$CONFIG_HEADERS"; then
23259
cat >"$tmp/defines.awk" <<\_ACAWK ||
23263
# Transform confdefs.h into an awk script `defines.awk', embedded as
23264
# here-document in config.status, that substitutes the proper values into
23265
# config.h.in to produce config.h.
23267
# Create a delimiter string that does not exist in confdefs.h, to ease
23268
# handling of long lines.
23270
for ac_last_try in false false :; do
23271
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23272
if test -z "$ac_t"; then
23274
elif $ac_last_try; then
23275
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23277
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23281
# For the awk script, D is an array of macro values keyed by name,
23282
# likewise P contains macro parameters if any. Preserve backslash
23283
# newline sequences.
23285
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23287
s/.\{148\}/&'"$ac_delim"'/g
23290
s/^[ ]*#[ ]*define[ ][ ]*/ /
23297
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23299
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23303
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23304
D["\1"]=" \3\\\\\\n"\\/p
23306
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23311
s/.\{148\}/&'"$ac_delim"'/g
23316
s/["\\]/\\&/g; s/^/"/; s/$/"/p
23319
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23321
' <confdefs.h | sed '
23322
s/'"$ac_delim"'/"\\\
23323
"/g' >>$CONFIG_STATUS || ac_write_fail=1
23325
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23326
for (key in D) D_is_set[key] = 1
23329
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23331
split(line, arg, " ")
23332
if (arg[1] == "#") {
23336
defundef = substr(arg[1], 2)
23339
split(mac1, mac2, "(") #)
23341
prefix = substr(line, 1, index(line, defundef) - 1)
23342
if (D_is_set[macro]) {
23343
# Preserve the white space surrounding the "#".
23344
print prefix "define", macro P[macro] D[macro]
23347
# Replace #undef with comments. This is necessary, for example,
23348
# in the case of _POSIX_SOURCE, which is predefined and required
23349
# on some systems where configure will not decide to define it.
23350
if (defundef == "undef") {
23351
print "/*", prefix defundef, macro, "*/"
23359
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23360
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23361
fi # test -n "$CONFIG_HEADERS"
23364
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
23369
:[FHLC]) ac_mode=$ac_tag; continue;;
23371
case $ac_mode$ac_tag in
23373
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
23374
:[FH]-) ac_tag=-:-;;
23375
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23392
-) ac_f="$tmp/stdin";;
23393
*) # Look for the file first in the build tree, then in the source tree
23394
# (if the path is not absolute). The absolute path cannot be DOS-style,
23395
# because $ac_f cannot contain `:'.
23399
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23401
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
23403
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23404
as_fn_append ac_file_inputs " '$ac_f'"
23407
# Let's still pretend it is `configure' which instantiates (i.e., don't
23408
# use $as_me), people would be surprised to read:
23409
# /* config.h. Generated by config.status. */
23410
configure_input='Generated from '`
23411
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23413
if test x"$ac_file" != x-; then
23414
configure_input="$ac_file. $configure_input"
23415
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23416
$as_echo "$as_me: creating $ac_file" >&6;}
23418
# Neutralize special characters interpreted by sed in replacement strings.
23419
case $configure_input in #(
23420
*\&* | *\|* | *\\* )
23421
ac_sed_conf_input=`$as_echo "$configure_input" |
23422
sed 's/[\\\\&|]/\\\\&/g'`;; #(
23423
*) ac_sed_conf_input=$configure_input;;
23427
*:-:* | *:-) cat >"$tmp/stdin" \
23428
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23433
ac_dir=`$as_dirname -- "$ac_file" ||
23434
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23435
X"$ac_file" : 'X\(//\)[^/]' \| \
23436
X"$ac_file" : 'X\(//\)$' \| \
23437
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23438
$as_echo X"$ac_file" |
23439
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23443
/^X\(\/\/\)[^/].*/{
23456
as_dir="$ac_dir"; as_fn_mkdir_p
23460
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23462
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23463
# A ".." for each directory in $ac_dir_suffix.
23464
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23465
case $ac_top_builddir_sub in
23466
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23467
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23470
ac_abs_top_builddir=$ac_pwd
23471
ac_abs_builddir=$ac_pwd$ac_dir_suffix
23472
# for backward compatibility:
23473
ac_top_builddir=$ac_top_build_prefix
23476
.) # We are building in place.
23478
ac_top_srcdir=$ac_top_builddir_sub
23479
ac_abs_top_srcdir=$ac_pwd ;;
23480
[\\/]* | ?:[\\/]* ) # Absolute name.
23481
ac_srcdir=$srcdir$ac_dir_suffix;
23482
ac_top_srcdir=$srcdir
23483
ac_abs_top_srcdir=$srcdir ;;
23484
*) # Relative name.
23485
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23486
ac_top_srcdir=$ac_top_build_prefix$srcdir
23487
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23489
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23499
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23500
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23502
ac_MKDIR_P=$MKDIR_P
23504
[\\/$]* | ?:[\\/]* ) ;;
23505
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23509
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23510
# If the template does not know about datarootdir, expand it.
23511
# FIXME: This hack should be removed a few years after 2.60.
23512
ac_datarootdir_hack=; ac_datarootdir_seen=
23523
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23524
*datarootdir*) ac_datarootdir_seen=yes;;
23525
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23526
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23527
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23529
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23530
ac_datarootdir_hack='
23531
s&@datadir@&$datadir&g
23532
s&@docdir@&$docdir&g
23533
s&@infodir@&$infodir&g
23534
s&@localedir@&$localedir&g
23535
s&@mandir@&$mandir&g
23536
s&\\\${datarootdir}&$datarootdir&g' ;;
23540
# Neutralize VPATH when `$srcdir' = `.'.
23541
# Shell code in configure.ac might set extrasub.
23542
# FIXME: do we really want to maintain this feature?
23543
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23544
ac_sed_extra="$ac_vpsub
23547
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23549
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23550
s|@configure_input@|$ac_sed_conf_input|;t t
23551
s&@top_builddir@&$ac_top_builddir_sub&;t t
23552
s&@top_build_prefix@&$ac_top_build_prefix&;t t
23553
s&@srcdir@&$ac_srcdir&;t t
23554
s&@abs_srcdir@&$ac_abs_srcdir&;t t
23555
s&@top_srcdir@&$ac_top_srcdir&;t t
23556
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23557
s&@builddir@&$ac_builddir&;t t
23558
s&@abs_builddir@&$ac_abs_builddir&;t t
23559
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23560
s&@INSTALL@&$ac_INSTALL&;t t
23561
s&@MKDIR_P@&$ac_MKDIR_P&;t t
23562
$ac_datarootdir_hack
23564
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
23565
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
23567
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23568
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23569
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23570
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23571
which seems to be undefined. Please make sure it is defined" >&5
23572
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23573
which seems to be undefined. Please make sure it is defined" >&2;}
23577
-) cat "$tmp/out" && rm -f "$tmp/out";;
23578
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23580
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
23586
if test x"$ac_file" != x-; then
23588
$as_echo "/* $configure_input */" \
23589
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23590
} >"$tmp/config.h" \
23591
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
23592
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23593
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23594
$as_echo "$as_me: $ac_file is unchanged" >&6;}
23597
mv "$tmp/config.h" "$ac_file" \
23598
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
23601
$as_echo "/* $configure_input */" \
23602
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23603
|| as_fn_error $? "could not create -" "$LINENO" 5
23605
# Compute "$ac_file"'s index in $config_headers.
23608
for _am_header in $config_headers :; do
23609
case $_am_header in
23610
$_am_arg | $_am_arg:* )
23613
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
23616
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23617
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23618
X"$_am_arg" : 'X\(//\)[^/]' \| \
23619
X"$_am_arg" : 'X\(//\)$' \| \
23620
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23621
$as_echo X"$_am_arg" |
23622
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23626
/^X\(\/\/\)[^/].*/{
23638
s/.*/./; q'`/stamp-h$_am_stamp_count
23645
if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
23648
# Prefer the file from the source tree if names are identical.
23649
if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
23650
ac_source=$srcdir/$ac_source
23653
{ $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
23654
$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
23656
if test ! -r "$ac_source"; then
23657
as_fn_error $? "$ac_source: file not found" "$LINENO" 5
23661
# Try a relative symlink, then a hard link, then a copy.
23663
[\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
23664
*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
23666
ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
23667
ln "$ac_source" "$ac_file" 2>/dev/null ||
23668
cp -p "$ac_source" "$ac_file" ||
23669
as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
23672
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23673
$as_echo "$as_me: executing $ac_file commands" >&6;}
23678
case $ac_file$ac_mode in
23679
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23680
# Autoconf 2.62 quotes --file arguments for eval, but not when files
23681
# are listed without --file. Let's play safe and only enable the eval
23682
# if we detect the quoting.
23683
case $CONFIG_FILES in
23684
*\'*) eval set x "$CONFIG_FILES" ;;
23685
*) set x $CONFIG_FILES ;;
23690
# Strip MF so we end up with the name of the file.
23691
mf=`echo "$mf" | sed -e 's/:.*$//'`
23692
# Check whether this is an Automake generated Makefile or not.
23693
# We used to match only the files named `Makefile.in', but
23694
# some people rename them; so instead we look at the file content.
23695
# Grep'ing the first line is not enough: some people post-process
23696
# each Makefile.in and add a new line on top of each file to say so.
23697
# Grep'ing the whole file is not good either: AIX grep has a line
23698
# limit of 2048, but all sed's we know have understand at least 4000.
23699
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23700
dirpart=`$as_dirname -- "$mf" ||
23701
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23702
X"$mf" : 'X\(//\)[^/]' \| \
23703
X"$mf" : 'X\(//\)$' \| \
23704
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23706
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23710
/^X\(\/\/\)[^/].*/{
23726
# Extract the definition of DEPDIR, am__include, and am__quote
23727
# from the Makefile without running `make'.
23728
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23729
test -z "$DEPDIR" && continue
23730
am__include=`sed -n 's/^am__include = //p' < "$mf"`
23731
test -z "am__include" && continue
23732
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23733
# When using ansi2knr, U may be empty or an underscore; expand it
23734
U=`sed -n 's/^U = //p' < "$mf"`
23735
# Find all dependency output files, they are included files with
23736
# $(DEPDIR) in their names. We invoke sed twice because it is the
23737
# simplest approach to changing $(DEPDIR) to its actual value in the
23739
for file in `sed -n "
23740
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23741
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23742
# Make sure the directory exists.
23743
test -f "$dirpart/$file" && continue
23744
fdir=`$as_dirname -- "$file" ||
23745
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23746
X"$file" : 'X\(//\)[^/]' \| \
23747
X"$file" : 'X\(//\)$' \| \
23748
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23749
$as_echo X"$file" |
23750
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23754
/^X\(\/\/\)[^/].*/{
23767
as_dir=$dirpart/$fdir; as_fn_mkdir_p
23768
# echo "creating $dirpart/$file"
23769
echo '# dummy' > "$dirpart/$file"
23774
"po-directories":C)
23775
for ac_file in $CONFIG_FILES; do
23776
# Support "outfile[:infile[:infile...]]"
23778
*:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23780
# PO directories have a Makefile.in generated from Makefile.in.in.
23781
case "$ac_file" in */Makefile.in)
23782
# Adjust a relative srcdir.
23783
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23784
ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
23785
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23786
# In autoconf-2.13 it is called $ac_given_srcdir.
23787
# In autoconf-2.50 it is called $srcdir.
23788
test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23789
case "$ac_given_srcdir" in
23790
.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23791
/*) top_srcdir="$ac_given_srcdir" ;;
23792
*) top_srcdir="$ac_dots$ac_given_srcdir" ;;
23794
# Treat a directory as a PO directory if and only if it has a
23795
# POTFILES.in file. This allows packages to have multiple PO
23796
# directories under different names or in different locations.
23797
if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23798
rm -f "$ac_dir/POTFILES"
23799
test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23800
cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
23801
POMAKEFILEDEPS="POTFILES.in"
23802
# ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
23803
# on $ac_dir but don't depend on user-specified configuration
23805
if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23806
# The LINGUAS file contains the set of available languages.
23807
if test -n "$OBSOLETE_ALL_LINGUAS"; then
23808
test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23810
ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23811
# Hide the ALL_LINGUAS assigment from automake < 1.5.
23812
eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
23813
POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23815
# The set of available languages was given in configure.in.
23816
# Hide the ALL_LINGUAS assigment from automake < 1.5.
23817
eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
23820
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
23821
# Compute UPDATEPOFILES
23822
# as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
23823
# Compute DUMMYPOFILES
23824
# as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
23826
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
23827
case "$ac_given_srcdir" in
23829
*) srcdirpre='$(srcdir)/' ;;
23835
for lang in $ALL_LINGUAS; do
23836
POFILES="$POFILES $srcdirpre$lang.po"
23837
UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
23838
DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
23839
GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23841
# CATALOGS depends on both $ac_dir and the user's LINGUAS
23842
# environment variable.
23844
if test -n "$ALL_LINGUAS"; then
23845
for presentlang in $ALL_LINGUAS; do
23847
if test "%UNSET%" != "$LINGUAS"; then
23848
desiredlanguages="$LINGUAS"
23850
desiredlanguages="$ALL_LINGUAS"
23852
for desiredlang in $desiredlanguages; do
23853
# Use the presentlang catalog if desiredlang is
23854
# a. equal to presentlang, or
23855
# b. a variant of presentlang (because in this case,
23856
# presentlang can be used as a fallback for messages
23857
# which are not translated in the desiredlang catalog).
23858
case "$desiredlang" in
23859
"$presentlang"*) useit=yes;;
23862
if test $useit = yes; then
23863
INST_LINGUAS="$INST_LINGUAS $presentlang"
23868
if test -n "$INST_LINGUAS"; then
23869
for lang in $INST_LINGUAS; do
23870
CATALOGS="$CATALOGS $lang.gmo"
23873
test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
23874
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"
23875
for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
23876
if test -f "$f"; then
23878
*.orig | *.bak | *~) ;;
23879
*) cat "$f" >> "$ac_dir/Makefile" ;;
23887
"stamp-h":F) echo timestamp > stamp-h ;;
23895
ac_clean_files=$ac_clean_files_save
23897
test $ac_write_fail = 0 ||
23898
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23901
# configure is writing to config.log, and then calls config.status.
23902
# config.status does its own redirection, appending to config.log.
23903
# Unfortunately, on DOS this fails, as config.log is still kept open
23904
# by configure, so config.status won't be able to write to it; its
23905
# output is simply discarded. So we exec the FD to /dev/null,
23906
# effectively closing config.log, so it can be properly (re)opened and
23907
# appended to by config.status. When coming back to configure, we
23908
# need to make the FD available again.
23909
if test "$no_create" != yes; then
23911
ac_config_status_args=
23912
test "$silent" = yes &&
23913
ac_config_status_args="$ac_config_status_args --quiet"
23915
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23917
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
23918
# would make configure fail if this is the last instruction.
23919
$ac_cs_success || as_fn_exit 1
23921
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23922
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23923
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23927
echo "*******************************************************"
23928
echo GRUB2 will be compiled with following components:
23929
echo Platform: "$target_cpu"-"$platform"
23930
if [ x"$platform" = xemu ]; then
23931
if [ x"$grub_emu_usb_excuse" = x ]; then
23932
echo USB support for grub-emu: Yes
23934
echo USB support for grub-emu: No "($grub_emu_usb_excuse)"
23936
if [ x"$grub_emu_sdl_excuse" = x ]; then
23937
echo SDL support for grub-emu: Yes
23939
echo SDL support for grub-emu: No "($grub_emu_sdl_excuse)"
23941
if [ x"$grub_emu_pci_excuse" = x ]; then
23942
echo PCI support for grub-emu: Yes
23944
echo PCI support for grub-emu: No "($grub_emu_pci_excuse)"
23947
if test x"$device_mapper_excuse" = x ; then
23948
echo With devmapper support: Yes
23950
echo With devmapper support: No "($device_mapper_excuse)"
23952
if [ x"$enable_mm_debug" = xyes ]; then
23953
echo With memory debugging: Yes
23955
echo With memory debugging: No
23957
if [ x"$efiemu_excuse" = x ]; then
23958
echo efiemu runtime: Yes
23960
echo efiemu runtime: No "($efiemu_excuse)"
23962
if [ x"$grub_mkfont_excuse" = x ]; then
23963
echo grub-mkfont: Yes
23965
echo grub-mkfont: No "($grub_mkfont_excuse)"
23967
echo "*******************************************************"