2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for GNU tar 1.26.
5 # Report bugs to <bug-tar@gnu.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
98 # Find who we are. Look in the path if we contain no directory separator.
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
182 if test $as_have_required = yes && (eval ":
192 as_func_ret_success () {
195 as_func_ret_failure () {
200 if as_func_success; then
204 echo as_func_success failed.
207 if as_func_failure; then
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 test -z "$as_dir" && as_dir=.
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
279 CONFIG_SHELL=$as_shell
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
307 as_func_ret_success () {
310 as_func_ret_failure () {
315 if as_func_success; then
319 echo as_func_success failed.
322 if as_func_failure; then
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
396 as_func_ret_success () {
399 as_func_ret_failure () {
404 if as_func_success; then
408 echo as_func_success failed.
411 if as_func_failure; then
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
483 # Exit status is that of the last command.
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
494 ECHO_C= ECHO_N= ECHO_T=
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 elif ln conf$$.file conf$$ 2>/dev/null; then
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
541 test -d ./-p && rmdir ./-p
545 if test -x / >/dev/null 2>&1; then
548 if ls -dL / >/dev/null 2>&1; then
555 if test -d "$1"; then
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
576 exec 7<&0 </dev/null 6>&1
579 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580 # so uname gets run too.
581 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
586 ac_default_prefix=/usr/local
588 ac_config_libobj_dir=.
594 SHELL=${CONFIG_SHELL-/bin/sh}
596 # Identity of this package.
597 PACKAGE_NAME='GNU tar'
598 PACKAGE_TARNAME='tar'
599 PACKAGE_VERSION='1.26'
600 PACKAGE_STRING='GNU tar 1.26'
601 PACKAGE_BUGREPORT='bug-tar@gnu.org'
603 ac_unique_file="src/tar.c"
604 # Factoring default headers for most tests.
605 ac_includes_default="\
607 #ifdef HAVE_SYS_TYPES_H
608 # include <sys/types.h>
610 #ifdef HAVE_SYS_STAT_H
611 # include <sys/stat.h>
617 # ifdef HAVE_STDLIB_H
622 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
627 #ifdef HAVE_STRINGS_H
628 # include <strings.h>
630 #ifdef HAVE_INTTYPES_H
631 # include <inttypes.h>
642 gl_fnmatch_required=POSIX
643 gl_getopt_required=POSIX
644 gl_getopt_required=POSIX
646 ac_subst_vars='gltests_LTLIBOBJS
655 BACKUP_LIBEXEC_SCRIPTS
660 XGETTEXT_EXTRA_OPTIONS
668 GETTEXT_MACRO_VERSION
672 DEFAULT_QUOTING_STYLE
675 DEFAULT_ARCHIVE_FORMAT
684 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
687 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE
688 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE
689 LIBUNISTRING_UNIWIDTH_H
690 LIBUNISTRING_UNITYPES_H
692 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
694 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
695 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
696 TIME_H_DEFINES_STRUCT_TIMESPEC
697 NEXT_AS_FIRST_DIRECTIVE_TIME_H
701 NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H
703 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
705 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
707 NEXT_AS_FIRST_DIRECTIVE_STRING_H
709 HAVE_DECL_STRNCASECMP
711 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
713 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
715 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
720 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
730 HAVE_DECL_LOCALTIME_R
807 LOCALCHARSET_TESTS_ENVIRONMENT
809 HAVE_LANGINFO_YESEXPR
811 HAVE_LANGINFO_T_FMT_AMPM
812 HAVE_LANGINFO_CODESET
814 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
821 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
834 UINT64_MAX_EQ_ULONG_MAX
835 UINT32_MAX_LT_UINTMAX_MAX
836 INT64_MAX_EQ_LONG_MAX
837 INT32_MAX_LT_INTMAX_MAX
839 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
858 HAVE_SIGNED_SIG_ATOMIC_T
861 BITSIZEOF_SIG_ATOMIC_T
864 APPLE_UNIVERSAL_BUILD
868 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
873 HAVE_UNSIGNED_LONG_LONG_INT
877 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
887 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
891 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
893 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
902 REPLACE_STDIO_WRITE_FUNCS
911 REPLACE_OBSTACK_PRINTF
933 HAVE_DECL_OBSTACK_PRINTF
939 GNULIB_VSPRINTF_POSIX
943 GNULIB_VFPRINTF_POSIX
948 GNULIB_STDIO_H_SIGPIPE
961 GNULIB_OBSTACK_PRINTF_POSIX
962 GNULIB_OBSTACK_PRINTF
1027 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1029 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1032 PRAGMA_SYSTEM_HEADER
1033 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1051 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1052 UNISTD_H_HAVE_WINSOCK2_H
1071 REPLACE_GETDOMAINNAME
1081 HAVE_DECL_GETUSERSHELL
1082 HAVE_DECL_GETPAGESIZE
1083 HAVE_DECL_GETLOGIN_R
1084 HAVE_DECL_GETDOMAINNAME
1119 GNULIB_UNISTD_H_SIGPIPE
1120 GNULIB_UNISTD_H_GETOPT
1142 GNULIB_GETDTABLESIZE
1143 GNULIB_GETDOMAINNAME
1166 REPLACE_CANONICALIZE_FILE_NAME
1171 HAVE_STRUCT_RANDOM_DATA
1189 HAVE_DECL_GETLOADAVG
1190 HAVE_CANONICALIZE_FILE_NAME
1203 GNULIB_REALLOC_POSIX
1217 GNULIB_CANONICALIZE_FILE_NAME
1316 GL_COND_LIBTOOL_FALSE
1317 GL_COND_LIBTOOL_TRUE
1349 AM_DEFAULT_VERBOSITY
1358 INSTALL_STRIP_PROGRAM
1400 program_transform_name
1412 enable_option_checking
1414 enable_dependency_tracking
1418 with_packager_version
1419 with_packager_bug_reports
1430 with_libiconv_prefix
1433 enable_backup_scripts
1435 ac_precious_vars='build_alias
1447 DEFAULT_ARCHIVE_FORMAT
1450 DEFAULT_QUOTING_STYLE'
1453 # Initialize some variables set by options.
1455 ac_init_version=false
1456 ac_unrecognized_opts=
1457 ac_unrecognized_sep=
1458 # The variables have the same names as the options, with
1459 # dashes changed to underlines.
1460 cache_file=/dev/null
1467 program_transform_name=s,x,x,
1475 # Installation directory options.
1476 # These are left unexpanded so users can "make install exec_prefix=/foo"
1477 # and all the variables that are supposed to be based on exec_prefix
1478 # by default will actually change.
1479 # Use braces instead of parens because sh, perl, etc. also accept them.
1480 # (The list follows the same order as the GNU Coding Standards.)
1481 bindir='${exec_prefix}/bin'
1482 sbindir='${exec_prefix}/sbin'
1483 libexecdir='${exec_prefix}/libexec'
1484 datarootdir='${prefix}/share'
1485 datadir='${datarootdir}'
1486 sysconfdir='${prefix}/etc'
1487 sharedstatedir='${prefix}/com'
1488 localstatedir='${prefix}/var'
1489 includedir='${prefix}/include'
1490 oldincludedir='/usr/include'
1491 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1492 infodir='${datarootdir}/info'
1497 libdir='${exec_prefix}/lib'
1498 localedir='${datarootdir}/locale'
1499 mandir='${datarootdir}/man'
1505 # If the previous option needs an argument, assign it.
1506 if test -n "$ac_prev"; then
1507 eval $ac_prev=\$ac_option
1513 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1517 # Accept the important Cygnus configure options, so we can diagnose typos.
1519 case $ac_dashdash$ac_option in
1523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1526 bindir=$ac_optarg ;;
1528 -build | --build | --buil | --bui | --bu)
1529 ac_prev=build_alias ;;
1530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1531 build_alias=$ac_optarg ;;
1533 -cache-file | --cache-file | --cache-fil | --cache-fi \
1534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1535 ac_prev=cache_file ;;
1536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1538 cache_file=$ac_optarg ;;
1540 --config-cache | -C)
1541 cache_file=config.cache ;;
1543 -datadir | --datadir | --datadi | --datad)
1545 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1546 datadir=$ac_optarg ;;
1548 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1549 | --dataroo | --dataro | --datar)
1550 ac_prev=datarootdir ;;
1551 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1552 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1553 datarootdir=$ac_optarg ;;
1555 -disable-* | --disable-*)
1556 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1557 # Reject names that are not valid shell variable names.
1558 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1559 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1560 { (exit 1); exit 1; }; }
1561 ac_useropt_orig=$ac_useropt
1562 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1563 case $ac_user_opts in
1565 "enable_$ac_useropt"
1567 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1568 ac_unrecognized_sep=', ';;
1570 eval enable_$ac_useropt=no ;;
1572 -docdir | --docdir | --docdi | --doc | --do)
1574 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1575 docdir=$ac_optarg ;;
1577 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1579 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1580 dvidir=$ac_optarg ;;
1582 -enable-* | --enable-*)
1583 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1584 # Reject names that are not valid shell variable names.
1585 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1586 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1587 { (exit 1); exit 1; }; }
1588 ac_useropt_orig=$ac_useropt
1589 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1590 case $ac_user_opts in
1592 "enable_$ac_useropt"
1594 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1595 ac_unrecognized_sep=', ';;
1597 eval enable_$ac_useropt=\$ac_optarg ;;
1599 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1600 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1601 | --exec | --exe | --ex)
1602 ac_prev=exec_prefix ;;
1603 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1604 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1605 | --exec=* | --exe=* | --ex=*)
1606 exec_prefix=$ac_optarg ;;
1608 -gas | --gas | --ga | --g)
1609 # Obsolete; use --with-gas.
1612 -help | --help | --hel | --he | -h)
1613 ac_init_help=long ;;
1614 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1615 ac_init_help=recursive ;;
1616 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1617 ac_init_help=short ;;
1619 -host | --host | --hos | --ho)
1620 ac_prev=host_alias ;;
1621 -host=* | --host=* | --hos=* | --ho=*)
1622 host_alias=$ac_optarg ;;
1624 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1626 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1628 htmldir=$ac_optarg ;;
1630 -includedir | --includedir | --includedi | --included | --include \
1631 | --includ | --inclu | --incl | --inc)
1632 ac_prev=includedir ;;
1633 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1634 | --includ=* | --inclu=* | --incl=* | --inc=*)
1635 includedir=$ac_optarg ;;
1637 -infodir | --infodir | --infodi | --infod | --info | --inf)
1639 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1640 infodir=$ac_optarg ;;
1642 -libdir | --libdir | --libdi | --libd)
1644 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1645 libdir=$ac_optarg ;;
1647 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1648 | --libexe | --libex | --libe)
1649 ac_prev=libexecdir ;;
1650 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1651 | --libexe=* | --libex=* | --libe=*)
1652 libexecdir=$ac_optarg ;;
1654 -localedir | --localedir | --localedi | --localed | --locale)
1655 ac_prev=localedir ;;
1656 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1657 localedir=$ac_optarg ;;
1659 -localstatedir | --localstatedir | --localstatedi | --localstated \
1660 | --localstate | --localstat | --localsta | --localst | --locals)
1661 ac_prev=localstatedir ;;
1662 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1663 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1664 localstatedir=$ac_optarg ;;
1666 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1668 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1669 mandir=$ac_optarg ;;
1671 -nfp | --nfp | --nf)
1672 # Obsolete; use --without-fp.
1675 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1676 | --no-cr | --no-c | -n)
1679 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1680 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1683 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1684 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1685 | --oldin | --oldi | --old | --ol | --o)
1686 ac_prev=oldincludedir ;;
1687 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1688 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1689 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1690 oldincludedir=$ac_optarg ;;
1692 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1694 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1695 prefix=$ac_optarg ;;
1697 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1698 | --program-pre | --program-pr | --program-p)
1699 ac_prev=program_prefix ;;
1700 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1701 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1702 program_prefix=$ac_optarg ;;
1704 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1705 | --program-suf | --program-su | --program-s)
1706 ac_prev=program_suffix ;;
1707 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1708 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1709 program_suffix=$ac_optarg ;;
1711 -program-transform-name | --program-transform-name \
1712 | --program-transform-nam | --program-transform-na \
1713 | --program-transform-n | --program-transform- \
1714 | --program-transform | --program-transfor \
1715 | --program-transfo | --program-transf \
1716 | --program-trans | --program-tran \
1717 | --progr-tra | --program-tr | --program-t)
1718 ac_prev=program_transform_name ;;
1719 -program-transform-name=* | --program-transform-name=* \
1720 | --program-transform-nam=* | --program-transform-na=* \
1721 | --program-transform-n=* | --program-transform-=* \
1722 | --program-transform=* | --program-transfor=* \
1723 | --program-transfo=* | --program-transf=* \
1724 | --program-trans=* | --program-tran=* \
1725 | --progr-tra=* | --program-tr=* | --program-t=*)
1726 program_transform_name=$ac_optarg ;;
1728 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1730 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1731 pdfdir=$ac_optarg ;;
1733 -psdir | --psdir | --psdi | --psd | --ps)
1735 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1738 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1739 | -silent | --silent | --silen | --sile | --sil)
1742 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1744 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1746 sbindir=$ac_optarg ;;
1748 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1749 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1750 | --sharedst | --shareds | --shared | --share | --shar \
1752 ac_prev=sharedstatedir ;;
1753 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1754 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1755 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1757 sharedstatedir=$ac_optarg ;;
1759 -site | --site | --sit)
1761 -site=* | --site=* | --sit=*)
1764 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1766 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1767 srcdir=$ac_optarg ;;
1769 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1770 | --syscon | --sysco | --sysc | --sys | --sy)
1771 ac_prev=sysconfdir ;;
1772 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1773 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1774 sysconfdir=$ac_optarg ;;
1776 -target | --target | --targe | --targ | --tar | --ta | --t)
1777 ac_prev=target_alias ;;
1778 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1779 target_alias=$ac_optarg ;;
1781 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1784 -version | --version | --versio | --versi | --vers | -V)
1785 ac_init_version=: ;;
1788 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1789 # Reject names that are not valid shell variable names.
1790 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1791 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1792 { (exit 1); exit 1; }; }
1793 ac_useropt_orig=$ac_useropt
1794 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1795 case $ac_user_opts in
1799 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1800 ac_unrecognized_sep=', ';;
1802 eval with_$ac_useropt=\$ac_optarg ;;
1804 -without-* | --without-*)
1805 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1806 # Reject names that are not valid shell variable names.
1807 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1808 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1809 { (exit 1); exit 1; }; }
1810 ac_useropt_orig=$ac_useropt
1811 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1812 case $ac_user_opts in
1816 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1817 ac_unrecognized_sep=', ';;
1819 eval with_$ac_useropt=no ;;
1822 # Obsolete; use --with-x.
1825 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1826 | --x-incl | --x-inc | --x-in | --x-i)
1827 ac_prev=x_includes ;;
1828 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1829 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1830 x_includes=$ac_optarg ;;
1832 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1833 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1834 ac_prev=x_libraries ;;
1835 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1836 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1837 x_libraries=$ac_optarg ;;
1839 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1840 Try \`$0 --help' for more information." >&2
1841 { (exit 1); exit 1; }; }
1845 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1846 # Reject names that are not valid shell variable names.
1847 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1848 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1849 { (exit 1); exit 1; }; }
1850 eval $ac_envvar=\$ac_optarg
1851 export $ac_envvar ;;
1854 # FIXME: should be removed in autoconf 3.0.
1855 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1856 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1857 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1858 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1864 if test -n "$ac_prev"; then
1865 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1866 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1867 { (exit 1); exit 1; }; }
1870 if test -n "$ac_unrecognized_opts"; then
1871 case $enable_option_checking in
1873 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1874 { (exit 1); exit 1; }; } ;;
1875 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1879 # Check all directory arguments for consistency.
1880 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1881 datadir sysconfdir sharedstatedir localstatedir includedir \
1882 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1883 libdir localedir mandir
1885 eval ac_val=\$$ac_var
1886 # Remove trailing slashes.
1889 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1890 eval $ac_var=\$ac_val;;
1892 # Be sure to have absolute directory names.
1894 [\\/$]* | ?:[\\/]* ) continue;;
1895 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1897 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1898 { (exit 1); exit 1; }; }
1901 # There might be people who depend on the old broken behavior: `$host'
1902 # used to hold the argument of --host etc.
1903 # FIXME: To remove some day.
1906 target=$target_alias
1908 # FIXME: To remove some day.
1909 if test "x$host_alias" != x; then
1910 if test "x$build_alias" = x; then
1911 cross_compiling=maybe
1912 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1913 If a cross compiler is detected then cross compile mode will be used." >&2
1914 elif test "x$build_alias" != "x$host_alias"; then
1920 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1922 test "$silent" = yes && exec 6>/dev/null
1925 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1926 ac_ls_di=`ls -di .` &&
1927 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1928 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1929 { (exit 1); exit 1; }; }
1930 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1931 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1932 { (exit 1); exit 1; }; }
1935 # Find the source files, if location was not specified.
1936 if test -z "$srcdir"; then
1937 ac_srcdir_defaulted=yes
1938 # Try the directory containing this script, then the parent directory.
1939 ac_confdir=`$as_dirname -- "$as_myself" ||
1940 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1941 X"$as_myself" : 'X\(//\)[^/]' \| \
1942 X"$as_myself" : 'X\(//\)$' \| \
1943 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1944 $as_echo X"$as_myself" |
1945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1963 if test ! -r "$srcdir/$ac_unique_file"; then
1967 ac_srcdir_defaulted=no
1969 if test ! -r "$srcdir/$ac_unique_file"; then
1970 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1971 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1972 { (exit 1); exit 1; }; }
1974 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1976 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1977 { (exit 1); exit 1; }; }
1979 # When building in place, set srcdir=.
1980 if test "$ac_abs_confdir" = "$ac_pwd"; then
1983 # Remove unnecessary trailing slashes from srcdir.
1984 # Double slashes in file names in object file debugging info
1985 # mess up M-x gdb in Emacs.
1987 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1989 for ac_var in $ac_precious_vars; do
1990 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1991 eval ac_env_${ac_var}_value=\$${ac_var}
1992 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1993 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1997 # Report the --help message.
1999 if test "$ac_init_help" = "long"; then
2000 # Omit some internal or obsolete options to make the list less imposing.
2001 # This message is too long to be a string in the A/UX 3.1 sh.
2003 \`configure' configures GNU tar 1.26 to adapt to many kinds of systems.
2005 Usage: $0 [OPTION]... [VAR=VALUE]...
2007 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2008 VAR=VALUE. See below for descriptions of some of the useful variables.
2010 Defaults for the options are specified in brackets.
2013 -h, --help display this help and exit
2014 --help=short display options specific to this package
2015 --help=recursive display the short help of all the included packages
2016 -V, --version display version information and exit
2017 -q, --quiet, --silent do not print \`checking...' messages
2018 --cache-file=FILE cache test results in FILE [disabled]
2019 -C, --config-cache alias for \`--cache-file=config.cache'
2020 -n, --no-create do not create output files
2021 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2023 Installation directories:
2024 --prefix=PREFIX install architecture-independent files in PREFIX
2025 [$ac_default_prefix]
2026 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2029 By default, \`make install' will install all the files in
2030 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2031 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2032 for instance \`--prefix=\$HOME'.
2034 For better control, use the options below.
2036 Fine tuning of the installation directories:
2037 --bindir=DIR user executables [EPREFIX/bin]
2038 --sbindir=DIR system admin executables [EPREFIX/sbin]
2039 --libexecdir=DIR program executables [EPREFIX/libexec]
2040 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2041 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2042 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2043 --libdir=DIR object code libraries [EPREFIX/lib]
2044 --includedir=DIR C header files [PREFIX/include]
2045 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2046 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2047 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2048 --infodir=DIR info documentation [DATAROOTDIR/info]
2049 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2050 --mandir=DIR man documentation [DATAROOTDIR/man]
2051 --docdir=DIR documentation root [DATAROOTDIR/doc/tar]
2052 --htmldir=DIR html documentation [DOCDIR]
2053 --dvidir=DIR dvi documentation [DOCDIR]
2054 --pdfdir=DIR pdf documentation [DOCDIR]
2055 --psdir=DIR ps documentation [DOCDIR]
2061 --program-prefix=PREFIX prepend PREFIX to installed program names
2062 --program-suffix=SUFFIX append SUFFIX to installed program names
2063 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2066 --build=BUILD configure for building on BUILD [guessed]
2067 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2071 if test -n "$ac_init_help"; then
2072 case $ac_init_help in
2073 short | recursive ) echo "Configuration of GNU tar 1.26:";;
2078 --disable-option-checking ignore unrecognized --enable/--with options
2079 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2080 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2081 --enable-silent-rules less verbose build output (undo: `make V=1')
2082 --disable-silent-rules verbose build output (undo: `make V=0')
2083 --disable-dependency-tracking speeds up one-time build
2084 --enable-dependency-tracking do not reject slow dependency extractors
2085 --disable-largefile omit support for large files
2086 --disable-rpath do not hardcode runtime library paths
2087 --disable-nls do not use Native Language Support
2088 --enable-backup-scripts Create and install backup and restore scripts
2091 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2092 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2093 --without-included-regex
2094 don't compile regex; this is the default on systems
2095 with recent-enough versions of the GNU C Library
2096 (use with caution on other systems).
2097 --with-packager String identifying the packager of this software
2098 --with-packager-version Packager-specific version information
2099 --with-packager-bug-reports
2100 Packager info for bug reports (URL/e-mail/...)
2101 --with-rmt=FILE Use FILE as the default `rmt' program. Do not build
2102 included copy of `rmt'.
2103 --with-compress=PROG use PROG as compress compressor program
2104 --with-gzip=PROG use PROG as gzip compressor program
2105 --with-bzip2=PROG use PROG as bzip2 compressor program
2106 --with-lzip=PROG use PROG as lzip compressor program
2107 --with-lzma=PROG use PROG as lzma compressor program
2108 --with-lzop=PROG use PROG as lzop compressor program
2109 --with-xz=PROG use PROG as xz compressor program
2110 --with-gnu-ld assume the C compiler uses GNU ld default=no
2111 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
2112 --without-libiconv-prefix don't search for libiconv in includedir and libdir
2113 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
2114 --without-libintl-prefix don't search for libintl in includedir and libdir
2116 Some influential environment variables:
2117 CC C compiler command
2118 CFLAGS C compiler flags
2119 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2120 nonstandard directory <lib dir>
2121 LIBS libraries to pass to the linker, e.g. -l<library>
2122 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2123 you have headers in a nonstandard directory <include dir>
2124 YACC The `Yet Another C Compiler' implementation to use. Defaults to
2125 the first program found out of: `bison -y', `byacc', `yacc'.
2126 YFLAGS The list of arguments that will be passed by default to $YACC.
2127 This script will default YFLAGS to the empty string to avoid a
2128 default value of `-d' given by some make applications.
2131 Define full file name of the directory where to install `rmt'.
2132 (default: $(libexecdir))
2133 DEFAULT_ARCHIVE_FORMAT
2134 Set the default archive format. Allowed values are: V7, OLDGNU,
2135 USTAR, POSIX, GNU. Default is GNU
2137 Set the name of the default archive (default: -)
2139 Define default blocking factor (default: 20)
2140 DEFAULT_QUOTING_STYLE
2141 Set the default quoting style. Allowed values are: literal,
2142 shell, shell-always, c, escape, locale, clocale . Default is
2145 Use these variables to override the choices made by `configure' or to help
2146 it to find libraries and programs with nonstandard names/locations.
2148 Report bugs to <bug-tar@gnu.org>.
2153 if test "$ac_init_help" = "recursive"; then
2154 # If there are subdirs, report their specific --help.
2155 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2156 test -d "$ac_dir" ||
2157 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2162 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2164 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2165 # A ".." for each directory in $ac_dir_suffix.
2166 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2167 case $ac_top_builddir_sub in
2168 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2169 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2172 ac_abs_top_builddir=$ac_pwd
2173 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2174 # for backward compatibility:
2175 ac_top_builddir=$ac_top_build_prefix
2178 .) # We are building in place.
2180 ac_top_srcdir=$ac_top_builddir_sub
2181 ac_abs_top_srcdir=$ac_pwd ;;
2182 [\\/]* | ?:[\\/]* ) # Absolute name.
2183 ac_srcdir=$srcdir$ac_dir_suffix;
2184 ac_top_srcdir=$srcdir
2185 ac_abs_top_srcdir=$srcdir ;;
2187 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2188 ac_top_srcdir=$ac_top_build_prefix$srcdir
2189 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2191 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2193 cd "$ac_dir" || { ac_status=$?; continue; }
2194 # Check for guested configure.
2195 if test -f "$ac_srcdir/configure.gnu"; then
2197 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2198 elif test -f "$ac_srcdir/configure"; then
2200 $SHELL "$ac_srcdir/configure" --help=recursive
2202 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2204 cd "$ac_pwd" || { ac_status=$?; break; }
2208 test -n "$ac_init_help" && exit $ac_status
2209 if $ac_init_version; then
2211 GNU tar configure 1.26
2212 generated by GNU Autoconf 2.63
2214 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2215 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2216 This configure script is free software; the Free Software Foundation
2217 gives unlimited permission to copy, distribute and modify it.
2221 cat >config.log <<_ACEOF
2222 This file contains any messages produced by compilers while
2223 running configure, to aid debugging if configure makes a mistake.
2225 It was created by GNU tar $as_me 1.26, which was
2226 generated by GNU Autoconf 2.63. Invocation command line was
2238 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2239 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2240 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2241 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2242 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2244 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2245 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2247 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2248 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2249 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2250 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2251 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2252 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2253 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261 test -z "$as_dir" && as_dir=.
2262 $as_echo "PATH: $as_dir"
2278 # Keep a trace of the command line.
2279 # Strip out --no-create and --no-recursion so they do not pile up.
2280 # Strip out --silent because we don't want to record it for future runs.
2281 # Also quote any args containing shell meta-characters.
2282 # Make two passes to allow for proper duplicate-argument suppression.
2286 ac_must_keep_next=false
2292 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2294 | -silent | --silent | --silen | --sile | --sil)
2297 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2300 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2302 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2303 if test $ac_must_keep_next = true; then
2304 ac_must_keep_next=false # Got value, back to normal.
2307 *=* | --config-cache | -C | -disable-* | --disable-* \
2308 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2309 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2310 | -with-* | --with-* | -without-* | --without-* | --x)
2311 case "$ac_configure_args0 " in
2312 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2315 -* ) ac_must_keep_next=true ;;
2318 ac_configure_args="$ac_configure_args '$ac_arg'"
2323 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2324 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2326 # When interrupted or exit'd, cleanup temporary files, and complete
2327 # config.log. We remove comments because anyway the quotes in there
2328 # would cause problems or look ugly.
2329 # WARNING: Use '\'' to represent an apostrophe within the trap.
2330 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2331 trap 'exit_status=$?
2332 # Save into config.log some information that might help in debugging.
2337 ## ---------------- ##
2338 ## Cache variables. ##
2339 ## ---------------- ##
2342 # The following way of writing the cache mishandles newlines in values,
2344 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2345 eval ac_val=\$$ac_var
2349 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2350 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2353 _ | IFS | as_nl) ;; #(
2354 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2355 *) $as_unset $ac_var ;;
2360 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2361 *${as_nl}ac_space=\ *)
2363 "s/'\''/'\''\\\\'\'''\''/g;
2364 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2367 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2375 ## ----------------- ##
2376 ## Output variables. ##
2377 ## ----------------- ##
2380 for ac_var in $ac_subst_vars
2382 eval ac_val=\$$ac_var
2384 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2386 $as_echo "$ac_var='\''$ac_val'\''"
2390 if test -n "$ac_subst_files"; then
2392 ## ------------------- ##
2393 ## File substitutions. ##
2394 ## ------------------- ##
2397 for ac_var in $ac_subst_files
2399 eval ac_val=\$$ac_var
2401 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2403 $as_echo "$ac_var='\''$ac_val'\''"
2408 if test -s confdefs.h; then
2418 test "$ac_signal" != 0 &&
2419 $as_echo "$as_me: caught signal $ac_signal"
2420 $as_echo "$as_me: exit $exit_status"
2422 rm -f core *.core core.conftest.* &&
2423 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2426 for ac_signal in 1 2 13 15; do
2427 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2431 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2432 rm -f -r conftest* confdefs.h
2434 # Predefined preprocessor variables.
2436 cat >>confdefs.h <<_ACEOF
2437 #define PACKAGE_NAME "$PACKAGE_NAME"
2441 cat >>confdefs.h <<_ACEOF
2442 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2446 cat >>confdefs.h <<_ACEOF
2447 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2451 cat >>confdefs.h <<_ACEOF
2452 #define PACKAGE_STRING "$PACKAGE_STRING"
2456 cat >>confdefs.h <<_ACEOF
2457 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2461 # Let the site file select an alternate cache file if it wants to.
2462 # Prefer an explicitly selected file to automatically selected ones.
2465 if test -n "$CONFIG_SITE"; then
2466 ac_site_file1=$CONFIG_SITE
2467 elif test "x$prefix" != xNONE; then
2468 ac_site_file1=$prefix/share/config.site
2469 ac_site_file2=$prefix/etc/config.site
2471 ac_site_file1=$ac_default_prefix/share/config.site
2472 ac_site_file2=$ac_default_prefix/etc/config.site
2474 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2476 test "x$ac_site_file" = xNONE && continue
2477 if test -r "$ac_site_file"; then
2478 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2479 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2480 sed 's/^/| /' "$ac_site_file" >&5
2485 if test -r "$cache_file"; then
2486 # Some versions of bash will fail to source /dev/null (special
2487 # files actually), so we avoid doing that.
2488 if test -f "$cache_file"; then
2489 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2490 $as_echo "$as_me: loading cache $cache_file" >&6;}
2492 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2493 *) . "./$cache_file";;
2497 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2498 $as_echo "$as_me: creating cache $cache_file" >&6;}
2502 ac_header_list="$ac_header_list fcntl.h"
2503 ac_header_list="$ac_header_list linux/fd.h"
2504 ac_header_list="$ac_header_list memory.h"
2505 ac_header_list="$ac_header_list net/errno.h"
2506 ac_header_list="$ac_header_list sgtty.h"
2507 ac_header_list="$ac_header_list string.h"
2508 ac_header_list="$ac_header_list sys/param.h"
2509 ac_header_list="$ac_header_list sys/device.h"
2510 ac_header_list="$ac_header_list sys/gentape.h"
2511 ac_header_list="$ac_header_list sys/inet.h"
2512 ac_header_list="$ac_header_list sys/io/trioctl.h"
2513 ac_header_list="$ac_header_list sys/mtio.h"
2514 ac_header_list="$ac_header_list sys/time.h"
2515 ac_header_list="$ac_header_list sys/tprintf.h"
2516 ac_header_list="$ac_header_list sys/tape.h"
2517 ac_header_list="$ac_header_list unistd.h"
2518 ac_header_list="$ac_header_list locale.h"
2519 ac_func_list="$ac_func_list flockfile"
2520 ac_func_list="$ac_func_list funlockfile"
2521 ac_header_list="$ac_header_list features.h"
2522 ac_header_list="$ac_header_list linewrap.h"
2523 ac_func_list="$ac_func_list pathconf"
2524 ac_func_list="$ac_func_list btowc"
2525 ac_func_list="$ac_func_list canonicalize_file_name"
2526 ac_func_list="$ac_func_list getcwd"
2527 ac_func_list="$ac_func_list readlink"
2528 ac_func_list="$ac_func_list realpath"
2529 ac_func_list="$ac_func_list chown"
2530 ac_func_list="$ac_func_list fchown"
2531 ac_header_list="$ac_header_list dirent.h"
2532 ac_func_list="$ac_func_list fdopendir"
2533 ac_func_list="$ac_func_list dup2"
2534 ac_func_list="$ac_func_list fcntl"
2535 ac_func_list="$ac_func_list fchdir"
2536 ac_func_list="$ac_func_list mempcpy"
2537 ac_func_list="$ac_func_list isblank"
2538 ac_func_list="$ac_func_list iswctype"
2539 ac_func_list="$ac_func_list mbsrtowcs"
2540 ac_func_list="$ac_func_list wmemchr"
2541 ac_func_list="$ac_func_list wmemcpy"
2542 ac_func_list="$ac_func_list wmempcpy"
2543 ac_header_list="$ac_header_list wctype.h"
2544 gl_fnmatch_required=GNU
2545 ac_header_list="$ac_header_list stdio_ext.h"
2546 ac_func_list="$ac_func_list __fpending"
2547 ac_func_list="$ac_func_list futimens"
2548 ac_func_list="$ac_func_list getdelim"
2549 ac_func_list="$ac_func_list getdtablesize"
2550 gl_getopt_required=GNU
2551 ac_header_list="$ac_header_list getopt.h"
2552 ac_func_list="$ac_func_list gettimeofday"
2553 ac_func_list="$ac_func_list nanotime"
2554 ac_header_list="$ac_header_list wchar.h"
2555 ac_header_list="$ac_header_list stdint.h"
2556 ac_header_list="$ac_header_list inttypes.h"
2557 ac_func_list="$ac_func_list iswcntrl"
2558 ac_func_list="$ac_func_list iswblank"
2559 ac_header_list="$ac_header_list langinfo.h"
2560 ac_func_list="$ac_func_list lchmod"
2561 ac_func_list="$ac_func_list link"
2562 ac_func_list="$ac_func_list linkat"
2563 ac_func_list="$ac_func_list symlink"
2564 ac_func_list="$ac_func_list lstat"
2565 ac_func_list="$ac_func_list mbsinit"
2566 ac_func_list="$ac_func_list mbrtowc"
2567 ac_header_list="$ac_header_list sys/mman.h"
2568 ac_func_list="$ac_func_list mprotect"
2569 ac_func_list="$ac_func_list memchr"
2570 ac_func_list="$ac_func_list mkfifo"
2571 ac_func_list="$ac_func_list mkfifoat"
2572 ac_func_list="$ac_func_list mknodat"
2573 ac_func_list="$ac_func_list mknod"
2574 ac_func_list="$ac_func_list alarm"
2575 ac_func_list="$ac_func_list nl_langinfo"
2576 ac_header_list="$ac_header_list priv.h"
2577 ac_func_list="$ac_func_list readlinkat"
2578 ac_func_list="$ac_func_list wcscoll"
2579 ac_func_list="$ac_func_list renameat"
2580 ac_func_list="$ac_func_list setenv"
2581 ac_func_list="$ac_func_list sleep"
2582 ac_func_list="$ac_func_list strdup"
2583 ac_header_list="$ac_header_list sys/socket.h"
2584 ac_header_list="$ac_header_list strings.h"
2585 ac_func_list="$ac_func_list strndup"
2586 ac_func_list="$ac_func_list symlinkat"
2587 ac_header_list="$ac_header_list sys/stat.h"
2588 ac_header_list="$ac_header_list sysexits.h"
2589 ac_func_list="$ac_func_list localtime_r"
2590 ac_func_list="$ac_func_list pipe"
2591 ac_header_list="$ac_header_list utime.h"
2592 ac_func_list="$ac_func_list futimes"
2593 ac_func_list="$ac_func_list futimesat"
2594 ac_func_list="$ac_func_list utimensat"
2595 ac_func_list="$ac_func_list lutimes"
2596 ac_func_list="$ac_func_list vasnprintf"
2597 ac_func_list="$ac_func_list wcrtomb"
2598 ac_func_list="$ac_func_list wcwidth"
2599 ac_header_list="$ac_header_list netdb.h"
2600 ac_header_list="$ac_header_list sys/wait.h"
2601 ac_header_list="$ac_header_list pwd.h"
2602 ac_header_list="$ac_header_list grp.h"
2603 ac_func_list="$ac_func_list setlocale"
2604 ac_func_list="$ac_func_list fchmod"
2605 ac_func_list="$ac_func_list fsync"
2606 gt_needs="$gt_needs need-formatstring-macros"
2607 # Check that the precious variables saved in the cache have kept the same
2609 ac_cache_corrupted=false
2610 for ac_var in $ac_precious_vars; do
2611 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2612 eval ac_new_set=\$ac_env_${ac_var}_set
2613 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2614 eval ac_new_val=\$ac_env_${ac_var}_value
2615 case $ac_old_set,$ac_new_set in
2617 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2618 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2619 ac_cache_corrupted=: ;;
2621 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2622 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2623 ac_cache_corrupted=: ;;
2626 if test "x$ac_old_val" != "x$ac_new_val"; then
2627 # differences in whitespace do not lead to failure.
2628 ac_old_val_w=`echo x $ac_old_val`
2629 ac_new_val_w=`echo x $ac_new_val`
2630 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2631 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2632 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2633 ac_cache_corrupted=:
2635 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2636 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2637 eval $ac_var=\$ac_old_val
2639 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2640 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2641 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2642 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2645 # Pass precious variables to config.status.
2646 if test "$ac_new_set" = set; then
2648 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2649 *) ac_arg=$ac_var=$ac_new_val ;;
2651 case " $ac_configure_args " in
2652 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2653 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2657 if $ac_cache_corrupted; then
2658 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2660 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2661 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2662 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2663 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2664 { (exit 1); exit 1; }; }
2692 ac_cpp='$CPP $CPPFLAGS'
2693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2700 for ac_dir in build-aux "$srcdir"/build-aux; do
2701 if test -f "$ac_dir/install-sh"; then
2703 ac_install_sh="$ac_aux_dir/install-sh -c"
2705 elif test -f "$ac_dir/install.sh"; then
2707 ac_install_sh="$ac_aux_dir/install.sh -c"
2709 elif test -f "$ac_dir/shtool"; then
2711 ac_install_sh="$ac_aux_dir/shtool install -c"
2715 if test -z "$ac_aux_dir"; then
2716 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
2717 $as_echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
2718 { (exit 1); exit 1; }; }
2721 # These three variables are undocumented and unsupported,
2722 # and are intended to be withdrawn in a future Autoconf release.
2723 # They can cause serious problems if a builder's source tree is in a directory
2724 # whose full name contains unusual characters.
2725 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2726 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2727 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2730 ac_config_headers="$ac_config_headers config.h"
2733 am__api_version='1.11'
2735 # Find a good install program. We prefer a C program (faster),
2736 # so one script is as good as another. But avoid the broken or
2737 # incompatible versions:
2738 # SysV /etc/install, /usr/sbin/install
2739 # SunOS /usr/etc/install
2740 # IRIX /sbin/install
2742 # AmigaOS /C/install, which installs bootblocks on floppy discs
2743 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2744 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2745 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2746 # OS/2's system install, which has a completely different semantic
2747 # ./install, which can be erroneously created by make from ./install.sh.
2748 # Reject install programs that cannot install multiple files.
2749 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2750 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2751 if test -z "$INSTALL"; then
2752 if test "${ac_cv_path_install+set}" = set; then
2753 $as_echo_n "(cached) " >&6
2755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 test -z "$as_dir" && as_dir=.
2760 # Account for people who put trailing slashes in PATH elements.
2762 ./ | .// | /cC/* | \
2763 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2764 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2767 # OSF1 and SCO ODT 3.0 have their own names for install.
2768 # Don't use installbsd from OSF since it installs stuff as root
2770 for ac_prog in ginstall scoinst install; do
2771 for ac_exec_ext in '' $ac_executable_extensions; do
2772 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2773 if test $ac_prog = install &&
2774 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2775 # AIX install. It has an incompatible calling convention.
2777 elif test $ac_prog = install &&
2778 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2779 # program-specific install script used by HP pwplus--don't use.
2782 rm -rf conftest.one conftest.two conftest.dir
2783 echo one > conftest.one
2784 echo two > conftest.two
2786 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2787 test -s conftest.one && test -s conftest.two &&
2788 test -s conftest.dir/conftest.one &&
2789 test -s conftest.dir/conftest.two
2791 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2804 rm -rf conftest.one conftest.two conftest.dir
2807 if test "${ac_cv_path_install+set}" = set; then
2808 INSTALL=$ac_cv_path_install
2810 # As a last resort, use the slow shell script. Don't cache a
2811 # value for INSTALL within a source directory, because that will
2812 # break other packages using the cache if that directory is
2813 # removed, or if the value is a relative name.
2814 INSTALL=$ac_install_sh
2817 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2818 $as_echo "$INSTALL" >&6; }
2820 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2821 # It thinks the first close brace ends the variable substitution.
2822 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2824 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2826 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2828 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2829 $as_echo_n "checking whether build environment is sane... " >&6; }
2832 echo timestamp > conftest.file
2833 # Reject unsafe characters in $srcdir or the absolute working directory
2834 # name. Accept space and tab only in the latter.
2838 *[\\\"\#\$\&\'\`$am_lf]*)
2839 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2840 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2841 { (exit 1); exit 1; }; };;
2844 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2845 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2846 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2847 { (exit 1); exit 1; }; };;
2850 # Do `set' in a subshell so we don't clobber the current shell's
2851 # arguments. Must try -L first in case configure is actually a
2852 # symlink; some systems play weird games with the mod time of symlinks
2853 # (eg FreeBSD returns the mod time of the symlink's containing
2856 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2857 if test "$*" = "X"; then
2859 set X `ls -t "$srcdir/configure" conftest.file`
2862 if test "$*" != "X $srcdir/configure conftest.file" \
2863 && test "$*" != "X conftest.file $srcdir/configure"; then
2865 # If neither matched, then we have a broken ls. This can happen
2866 # if, for instance, CONFIG_SHELL is bash and it inherits a
2867 # broken ls alias from the environment. This has actually
2868 # happened. Such a system could not be considered "sane".
2869 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2870 alias in your environment" >&5
2871 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2872 alias in your environment" >&2;}
2873 { (exit 1); exit 1; }; }
2876 test "$2" = conftest.file
2882 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2883 Check your system clock" >&5
2884 $as_echo "$as_me: error: newly created file is older than distributed files!
2885 Check your system clock" >&2;}
2886 { (exit 1); exit 1; }; }
2888 { $as_echo "$as_me:$LINENO: result: yes" >&5
2889 $as_echo "yes" >&6; }
2890 test "$program_prefix" != NONE &&
2891 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2892 # Use a double $ so make ignores it.
2893 test "$program_suffix" != NONE &&
2894 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2895 # Double any \ or $.
2896 # By default was `s,x,x', remove it if useless.
2897 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2898 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2900 # expand $ac_aux_dir to an absolute path
2901 am_aux_dir=`cd $ac_aux_dir && pwd`
2903 if test x"${MISSING+set}" != xset; then
2906 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2908 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2911 # Use eval to expand $SHELL
2912 if eval "$MISSING --run true"; then
2913 am_missing_run="$MISSING --run "
2916 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2917 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2920 if test x"${install_sh}" != xset; then
2923 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2925 install_sh="\${SHELL} $am_aux_dir/install-sh"
2929 # Installed binaries are usually stripped using `strip' when the user
2930 # run `make install-strip'. However `strip' might not be the right
2931 # tool to use in cross-compilation environments, therefore Automake
2932 # will honor the `STRIP' environment variable to overrule this program.
2933 if test "$cross_compiling" != no; then
2934 if test -n "$ac_tool_prefix"; then
2935 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2936 set dummy ${ac_tool_prefix}strip; ac_word=$2
2937 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2938 $as_echo_n "checking for $ac_word... " >&6; }
2939 if test "${ac_cv_prog_STRIP+set}" = set; then
2940 $as_echo_n "(cached) " >&6
2942 if test -n "$STRIP"; then
2943 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2953 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 STRIP=$ac_cv_prog_STRIP
2963 if test -n "$STRIP"; then
2964 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2965 $as_echo "$STRIP" >&6; }
2967 { $as_echo "$as_me:$LINENO: result: no" >&5
2968 $as_echo "no" >&6; }
2973 if test -z "$ac_cv_prog_STRIP"; then
2975 # Extract the first word of "strip", so it can be a program name with args.
2976 set dummy strip; ac_word=$2
2977 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2978 $as_echo_n "checking for $ac_word... " >&6; }
2979 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2980 $as_echo_n "(cached) " >&6
2982 if test -n "$ac_ct_STRIP"; then
2983 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 test -z "$as_dir" && as_dir=.
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2992 ac_cv_prog_ac_ct_STRIP="strip"
2993 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3003 if test -n "$ac_ct_STRIP"; then
3004 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3005 $as_echo "$ac_ct_STRIP" >&6; }
3007 { $as_echo "$as_me:$LINENO: result: no" >&5
3008 $as_echo "no" >&6; }
3011 if test "x$ac_ct_STRIP" = x; then
3014 case $cross_compiling:$ac_tool_warned in
3016 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3018 ac_tool_warned=yes ;;
3023 STRIP="$ac_cv_prog_STRIP"
3027 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3029 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3030 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3031 if test -z "$MKDIR_P"; then
3032 if test "${ac_cv_path_mkdir+set}" = set; then
3033 $as_echo_n "(cached) " >&6
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3039 test -z "$as_dir" && as_dir=.
3040 for ac_prog in mkdir gmkdir; do
3041 for ac_exec_ext in '' $ac_executable_extensions; do
3042 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3043 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3044 'mkdir (GNU coreutils) '* | \
3045 'mkdir (coreutils) '* | \
3046 'mkdir (fileutils) '4.1*)
3047 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3057 if test "${ac_cv_path_mkdir+set}" = set; then
3058 MKDIR_P="$ac_cv_path_mkdir -p"
3060 # As a last resort, use the slow shell script. Don't cache a
3061 # value for MKDIR_P within a source directory, because that will
3062 # break other packages using the cache if that directory is
3063 # removed, or if the value is a relative name.
3064 test -d ./--version && rmdir ./--version
3065 MKDIR_P="$ac_install_sh -d"
3068 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3069 $as_echo "$MKDIR_P" >&6; }
3074 [\\/$]* | ?:[\\/]*) ;;
3075 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3078 for ac_prog in gawk mawk nawk awk
3080 # Extract the first word of "$ac_prog", so it can be a program name with args.
3081 set dummy $ac_prog; ac_word=$2
3082 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3083 $as_echo_n "checking for $ac_word... " >&6; }
3084 if test "${ac_cv_prog_AWK+set}" = set; then
3085 $as_echo_n "(cached) " >&6
3087 if test -n "$AWK"; then
3088 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094 test -z "$as_dir" && as_dir=.
3095 for ac_exec_ext in '' $ac_executable_extensions; do
3096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3097 ac_cv_prog_AWK="$ac_prog"
3098 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 if test -n "$AWK"; then
3109 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3110 $as_echo "$AWK" >&6; }
3112 { $as_echo "$as_me:$LINENO: result: no" >&5
3113 $as_echo "no" >&6; }
3117 test -n "$AWK" && break
3120 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3121 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3123 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3124 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3125 $as_echo_n "(cached) " >&6
3127 cat >conftest.make <<\_ACEOF
3130 @echo '@@@%%%=$(MAKE)=@@@%%%'
3132 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3133 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3135 eval ac_cv_prog_make_${ac_make}_set=yes;;
3137 eval ac_cv_prog_make_${ac_make}_set=no;;
3141 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3142 { $as_echo "$as_me:$LINENO: result: yes" >&5
3143 $as_echo "yes" >&6; }
3146 { $as_echo "$as_me:$LINENO: result: no" >&5
3147 $as_echo "no" >&6; }
3148 SET_MAKE="MAKE=${MAKE-make}"
3151 rm -rf .tst 2>/dev/null
3152 mkdir .tst 2>/dev/null
3153 if test -d .tst; then
3158 rmdir .tst 2>/dev/null
3160 # Check whether --enable-silent-rules was given.
3161 if test "${enable_silent_rules+set}" = set; then
3162 enableval=$enable_silent_rules;
3165 case $enable_silent_rules in
3166 yes) AM_DEFAULT_VERBOSITY=0;;
3167 no) AM_DEFAULT_VERBOSITY=1;;
3168 *) AM_DEFAULT_VERBOSITY=1;;
3172 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3173 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3174 # is not polluted with repeated "-I."
3175 am__isrc=' -I$(srcdir)'
3176 # test to see if srcdir already configured
3177 if test -f $srcdir/config.status; then
3178 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3179 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3180 { (exit 1); exit 1; }; }
3184 # test whether we have cygpath
3185 if test -z "$CYGPATH_W"; then
3186 if (cygpath --version) >/dev/null 2>/dev/null; then
3187 CYGPATH_W='cygpath -w'
3194 # Define the identity of the package.
3199 cat >>confdefs.h <<_ACEOF
3200 #define PACKAGE "$PACKAGE"
3204 cat >>confdefs.h <<_ACEOF
3205 #define VERSION "$VERSION"
3208 # Some tools Automake needs.
3210 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3213 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3216 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3219 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3222 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3224 # We need awk for the "check" target. The system "awk" is bad on
3226 # Always define AMTAR for backward compatibility.
3228 AMTAR=${AMTAR-"${am_missing_run}tar"}
3231 { $as_echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
3232 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3233 # Loop over all known methods to create a tar archive until one works.
3234 _am_tools='gnutar plaintar pax cpio none'
3235 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3236 # Do not fold the above two line into one, because Tru64 sh and
3237 # Solaris sh will not grok spaces in the rhs of `-'.
3238 for _am_tool in $_am_tools
3242 for _am_tar in tar gnutar gtar;
3244 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3245 ($_am_tar --version) >&5 2>&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } && break
3250 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3251 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3252 am__untar="$_am_tar -xf -"
3255 # Must skip GNU tar: if it does not support --format= it doesn't create
3256 # ustar tarball either.
3257 (tar --version) >/dev/null 2>&1 && continue
3258 am__tar='tar chf - "$$tardir"'
3259 am__tar_='tar chf - "$tardir"'
3260 am__untar='tar xf -'
3263 am__tar='pax -L -x ustar -w "$$tardir"'
3264 am__tar_='pax -L -x ustar -w "$tardir"'
3268 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3269 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3270 am__untar='cpio -i -H ustar -d'
3279 # If the value was cached, stop now. We just wanted to have am__tar
3280 # and am__untar set.
3281 test -n "${am_cv_prog_tar_ustar}" && break
3283 # tar/untar a dummy directory, and stop if the command works
3286 echo GrepMe > conftest.dir/file
3287 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3288 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }
3293 if test -s conftest.tar; then
3294 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3295 ($am__untar <conftest.tar) >&5 2>&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }
3299 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3304 if test "${am_cv_prog_tar_ustar+set}" = set; then
3305 $as_echo_n "(cached) " >&6
3307 am_cv_prog_tar_ustar=$_am_tool
3310 { $as_echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
3311 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3318 # Enable silent rules by default:
3319 # Check whether --enable-silent-rules was given.
3320 if test "${enable_silent_rules+set}" = set; then
3321 enableval=$enable_silent_rules;
3324 case $enable_silent_rules in
3325 yes) AM_DEFAULT_VERBOSITY=0;;
3326 no) AM_DEFAULT_VERBOSITY=1;;
3327 *) AM_DEFAULT_VERBOSITY=0;;
3333 ac_cpp='$CPP $CPPFLAGS'
3334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3337 if test -n "$ac_tool_prefix"; then
3338 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3339 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3340 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3341 $as_echo_n "checking for $ac_word... " >&6; }
3342 if test "${ac_cv_prog_CC+set}" = set; then
3343 $as_echo_n "(cached) " >&6
3345 if test -n "$CC"; then
3346 ac_cv_prog_CC="$CC" # Let the user override the test.
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 test -z "$as_dir" && as_dir=.
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3355 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3356 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3366 if test -n "$CC"; then
3367 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3368 $as_echo "$CC" >&6; }
3370 { $as_echo "$as_me:$LINENO: result: no" >&5
3371 $as_echo "no" >&6; }
3376 if test -z "$ac_cv_prog_CC"; then
3378 # Extract the first word of "gcc", so it can be a program name with args.
3379 set dummy gcc; ac_word=$2
3380 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3381 $as_echo_n "checking for $ac_word... " >&6; }
3382 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3383 $as_echo_n "(cached) " >&6
3385 if test -n "$ac_ct_CC"; then
3386 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 test -z "$as_dir" && as_dir=.
3393 for ac_exec_ext in '' $ac_executable_extensions; do
3394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3395 ac_cv_prog_ac_ct_CC="gcc"
3396 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3405 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3406 if test -n "$ac_ct_CC"; then
3407 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3408 $as_echo "$ac_ct_CC" >&6; }
3410 { $as_echo "$as_me:$LINENO: result: no" >&5
3411 $as_echo "no" >&6; }
3414 if test "x$ac_ct_CC" = x; then
3417 case $cross_compiling:$ac_tool_warned in
3419 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3421 ac_tool_warned=yes ;;
3429 if test -z "$CC"; then
3430 if test -n "$ac_tool_prefix"; then
3431 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3432 set dummy ${ac_tool_prefix}cc; ac_word=$2
3433 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3434 $as_echo_n "checking for $ac_word... " >&6; }
3435 if test "${ac_cv_prog_CC+set}" = set; then
3436 $as_echo_n "(cached) " >&6
3438 if test -n "$CC"; then
3439 ac_cv_prog_CC="$CC" # Let the user override the test.
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 test -z "$as_dir" && as_dir=.
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3448 ac_cv_prog_CC="${ac_tool_prefix}cc"
3449 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3459 if test -n "$CC"; then
3460 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3461 $as_echo "$CC" >&6; }
3463 { $as_echo "$as_me:$LINENO: result: no" >&5
3464 $as_echo "no" >&6; }
3470 if test -z "$CC"; then
3471 # Extract the first word of "cc", so it can be a program name with args.
3472 set dummy cc; ac_word=$2
3473 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3474 $as_echo_n "checking for $ac_word... " >&6; }
3475 if test "${ac_cv_prog_CC+set}" = set; then
3476 $as_echo_n "(cached) " >&6
3478 if test -n "$CC"; then
3479 ac_cv_prog_CC="$CC" # Let the user override the test.
3482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486 test -z "$as_dir" && as_dir=.
3487 for ac_exec_ext in '' $ac_executable_extensions; do
3488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3489 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3490 ac_prog_rejected=yes
3494 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3501 if test $ac_prog_rejected = yes; then
3502 # We found a bogon in the path, so make sure we never use it.
3503 set dummy $ac_cv_prog_CC
3505 if test $# != 0; then
3506 # We chose a different compiler from the bogus one.
3507 # However, it has the same basename, so the bogon will be chosen
3508 # first if we set CC to just the basename; use the full file name.
3510 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3516 if test -n "$CC"; then
3517 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3518 $as_echo "$CC" >&6; }
3520 { $as_echo "$as_me:$LINENO: result: no" >&5
3521 $as_echo "no" >&6; }
3526 if test -z "$CC"; then
3527 if test -n "$ac_tool_prefix"; then
3528 for ac_prog in cl.exe
3530 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3531 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3532 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3533 $as_echo_n "checking for $ac_word... " >&6; }
3534 if test "${ac_cv_prog_CC+set}" = set; then
3535 $as_echo_n "(cached) " >&6
3537 if test -n "$CC"; then
3538 ac_cv_prog_CC="$CC" # Let the user override the test.
3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 test -z "$as_dir" && as_dir=.
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3547 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3548 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3558 if test -n "$CC"; then
3559 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3560 $as_echo "$CC" >&6; }
3562 { $as_echo "$as_me:$LINENO: result: no" >&5
3563 $as_echo "no" >&6; }
3567 test -n "$CC" && break
3570 if test -z "$CC"; then
3572 for ac_prog in cl.exe
3574 # Extract the first word of "$ac_prog", so it can be a program name with args.
3575 set dummy $ac_prog; ac_word=$2
3576 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3577 $as_echo_n "checking for $ac_word... " >&6; }
3578 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3579 $as_echo_n "(cached) " >&6
3581 if test -n "$ac_ct_CC"; then
3582 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588 test -z "$as_dir" && as_dir=.
3589 for ac_exec_ext in '' $ac_executable_extensions; do
3590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3591 ac_cv_prog_ac_ct_CC="$ac_prog"
3592 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3601 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3602 if test -n "$ac_ct_CC"; then
3603 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3604 $as_echo "$ac_ct_CC" >&6; }
3606 { $as_echo "$as_me:$LINENO: result: no" >&5
3607 $as_echo "no" >&6; }
3611 test -n "$ac_ct_CC" && break
3614 if test "x$ac_ct_CC" = x; then
3617 case $cross_compiling:$ac_tool_warned in
3619 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3621 ac_tool_warned=yes ;;
3630 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3632 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3633 See \`config.log' for more details." >&5
3634 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3635 See \`config.log' for more details." >&2;}
3636 { (exit 1); exit 1; }; }; }
3638 # Provide some information about the compiler.
3639 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3642 { (ac_try="$ac_compiler --version >&5"
3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645 *) ac_try_echo=$ac_try;;
3647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3648 $as_echo "$ac_try_echo") >&5
3649 (eval "$ac_compiler --version >&5") 2>&5
3651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); }
3653 { (ac_try="$ac_compiler -v >&5"
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3659 $as_echo "$ac_try_echo") >&5
3660 (eval "$ac_compiler -v >&5") 2>&5
3662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); }
3664 { (ac_try="$ac_compiler -V >&5"
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3670 $as_echo "$ac_try_echo") >&5
3671 (eval "$ac_compiler -V >&5") 2>&5
3673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }
3676 cat >conftest.$ac_ext <<_ACEOF
3679 cat confdefs.h >>conftest.$ac_ext
3680 cat >>conftest.$ac_ext <<_ACEOF
3681 /* end confdefs.h. */
3691 ac_clean_files_save=$ac_clean_files
3692 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3693 # Try to create an executable without -o first, disregard a.out.
3694 # It will help us diagnose broken compilers, and finding out an intuition
3696 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3697 $as_echo_n "checking for C compiler default output file name... " >&6; }
3698 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3700 # The possible output files:
3701 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3704 for ac_file in $ac_files
3707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3708 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3713 if { (ac_try="$ac_link_default"
3715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716 *) ac_try_echo=$ac_try;;
3718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3719 $as_echo "$ac_try_echo") >&5
3720 (eval "$ac_link_default") 2>&5
3722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; then
3724 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3725 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3726 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3727 # so that the user can short-circuit this test for compilers unknown to
3729 for ac_file in $ac_files ''
3731 test -f "$ac_file" || continue
3733 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3736 # We found the default executable, but exeext='' is most
3740 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3742 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3744 # We set ac_cv_exeext here because the later test for it is not
3745 # safe: cross compilers may not add the suffix if given an `-o'
3746 # argument, so we may need to know it at that point already.
3747 # Even if this section looks crufty: it has the advantage of
3754 test "$ac_cv_exeext" = no && ac_cv_exeext=
3760 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3761 $as_echo "$ac_file" >&6; }
3762 if test -z "$ac_file"; then
3763 $as_echo "$as_me: failed program was:" >&5
3764 sed 's/^/| /' conftest.$ac_ext >&5
3766 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3768 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3769 See \`config.log' for more details." >&5
3770 $as_echo "$as_me: error: C compiler cannot create executables
3771 See \`config.log' for more details." >&2;}
3772 { (exit 77); exit 77; }; }; }
3775 ac_exeext=$ac_cv_exeext
3777 # Check that the compiler produces executables we can run. If not, either
3778 # the compiler is broken, or we cross compile.
3779 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3780 $as_echo_n "checking whether the C compiler works... " >&6; }
3781 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3782 # If not cross compiling, check that we can run a simple program.
3783 if test "$cross_compiling" != yes; then
3784 if { ac_try='./$ac_file'
3785 { (case "(($ac_try" in
3786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787 *) ac_try_echo=$ac_try;;
3789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3790 $as_echo "$ac_try_echo") >&5
3791 (eval "$ac_try") 2>&5
3793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); }; }; then
3797 if test "$cross_compiling" = maybe; then
3800 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3802 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3803 If you meant to cross compile, use \`--host'.
3804 See \`config.log' for more details." >&5
3805 $as_echo "$as_me: error: cannot run C compiled programs.
3806 If you meant to cross compile, use \`--host'.
3807 See \`config.log' for more details." >&2;}
3808 { (exit 1); exit 1; }; }; }
3812 { $as_echo "$as_me:$LINENO: result: yes" >&5
3813 $as_echo "yes" >&6; }
3815 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3816 ac_clean_files=$ac_clean_files_save
3817 # Check that the compiler produces executables we can run. If not, either
3818 # the compiler is broken, or we cross compile.
3819 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3820 $as_echo_n "checking whether we are cross compiling... " >&6; }
3821 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3822 $as_echo "$cross_compiling" >&6; }
3824 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3825 $as_echo_n "checking for suffix of executables... " >&6; }
3826 if { (ac_try="$ac_link"
3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829 *) ac_try_echo=$ac_try;;
3831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3832 $as_echo "$ac_try_echo") >&5
3833 (eval "$ac_link") 2>&5
3835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); }; then
3837 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3838 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3839 # work properly (i.e., refer to `conftest.exe'), while it won't with
3841 for ac_file in conftest.exe conftest conftest.*; do
3842 test -f "$ac_file" || continue
3844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3845 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3851 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3853 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3854 See \`config.log' for more details." >&5
3855 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3856 See \`config.log' for more details." >&2;}
3857 { (exit 1); exit 1; }; }; }
3860 rm -f conftest$ac_cv_exeext
3861 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3862 $as_echo "$ac_cv_exeext" >&6; }
3864 rm -f conftest.$ac_ext
3865 EXEEXT=$ac_cv_exeext
3867 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3868 $as_echo_n "checking for suffix of object files... " >&6; }
3869 if test "${ac_cv_objext+set}" = set; then
3870 $as_echo_n "(cached) " >&6
3872 cat >conftest.$ac_ext <<_ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h. */
3887 rm -f conftest.o conftest.obj
3888 if { (ac_try="$ac_compile"
3890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891 *) ac_try_echo=$ac_try;;
3893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3894 $as_echo "$ac_try_echo") >&5
3895 (eval "$ac_compile") 2>&5
3897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); }; then
3899 for ac_file in conftest.o conftest.obj conftest.*; do
3900 test -f "$ac_file" || continue;
3902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3903 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3908 $as_echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3911 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3913 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3914 See \`config.log' for more details." >&5
3915 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3916 See \`config.log' for more details." >&2;}
3917 { (exit 1); exit 1; }; }; }
3920 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3922 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3923 $as_echo "$ac_cv_objext" >&6; }
3924 OBJEXT=$ac_cv_objext
3926 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3927 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3928 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3929 $as_echo_n "(cached) " >&6
3931 cat >conftest.$ac_ext <<_ACEOF
3934 cat confdefs.h >>conftest.$ac_ext
3935 cat >>conftest.$ac_ext <<_ACEOF
3936 /* end confdefs.h. */
3949 rm -f conftest.$ac_objext
3950 if { (ac_try="$ac_compile"
3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3956 $as_echo "$ac_try_echo") >&5
3957 (eval "$ac_compile") 2>conftest.er1
3959 grep -v '^ *+' conftest.er1 >conftest.err
3961 cat conftest.err >&5
3962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } && {
3964 test -z "$ac_c_werror_flag" ||
3965 test ! -s conftest.err
3966 } && test -s conftest.$ac_objext; then
3969 $as_echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.$ac_ext >&5
3975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3976 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3979 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3980 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3981 if test $ac_compiler_gnu = yes; then
3986 ac_test_CFLAGS=${CFLAGS+set}
3987 ac_save_CFLAGS=$CFLAGS
3988 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3989 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3990 if test "${ac_cv_prog_cc_g+set}" = set; then
3991 $as_echo_n "(cached) " >&6
3993 ac_save_c_werror_flag=$ac_c_werror_flag
3994 ac_c_werror_flag=yes
3997 cat >conftest.$ac_ext <<_ACEOF
4000 cat confdefs.h >>conftest.$ac_ext
4001 cat >>conftest.$ac_ext <<_ACEOF
4002 /* end confdefs.h. */
4012 rm -f conftest.$ac_objext
4013 if { (ac_try="$ac_compile"
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4019 $as_echo "$ac_try_echo") >&5
4020 (eval "$ac_compile") 2>conftest.er1
4022 grep -v '^ *+' conftest.er1 >conftest.err
4024 cat conftest.err >&5
4025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); } && {
4027 test -z "$ac_c_werror_flag" ||
4028 test ! -s conftest.err
4029 } && test -s conftest.$ac_objext; then
4032 $as_echo "$as_me: failed program was:" >&5
4033 sed 's/^/| /' conftest.$ac_ext >&5
4036 cat >conftest.$ac_ext <<_ACEOF
4039 cat confdefs.h >>conftest.$ac_ext
4040 cat >>conftest.$ac_ext <<_ACEOF
4041 /* end confdefs.h. */
4051 rm -f conftest.$ac_objext
4052 if { (ac_try="$ac_compile"
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4058 $as_echo "$ac_try_echo") >&5
4059 (eval "$ac_compile") 2>conftest.er1
4061 grep -v '^ *+' conftest.er1 >conftest.err
4063 cat conftest.err >&5
4064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } && {
4066 test -z "$ac_c_werror_flag" ||
4067 test ! -s conftest.err
4068 } && test -s conftest.$ac_objext; then
4071 $as_echo "$as_me: failed program was:" >&5
4072 sed 's/^/| /' conftest.$ac_ext >&5
4074 ac_c_werror_flag=$ac_save_c_werror_flag
4076 cat >conftest.$ac_ext <<_ACEOF
4079 cat confdefs.h >>conftest.$ac_ext
4080 cat >>conftest.$ac_ext <<_ACEOF
4081 /* end confdefs.h. */
4091 rm -f conftest.$ac_objext
4092 if { (ac_try="$ac_compile"
4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095 *) ac_try_echo=$ac_try;;
4097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4098 $as_echo "$ac_try_echo") >&5
4099 (eval "$ac_compile") 2>conftest.er1
4101 grep -v '^ *+' conftest.er1 >conftest.err
4103 cat conftest.err >&5
4104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); } && {
4106 test -z "$ac_c_werror_flag" ||
4107 test ! -s conftest.err
4108 } && test -s conftest.$ac_objext; then
4111 $as_echo "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.$ac_ext >&5
4117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124 ac_c_werror_flag=$ac_save_c_werror_flag
4126 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4127 $as_echo "$ac_cv_prog_cc_g" >&6; }
4128 if test "$ac_test_CFLAGS" = set; then
4129 CFLAGS=$ac_save_CFLAGS
4130 elif test $ac_cv_prog_cc_g = yes; then
4131 if test "$GCC" = yes; then
4137 if test "$GCC" = yes; then
4143 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4144 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4145 if test "${ac_cv_prog_cc_c89+set}" = set; then
4146 $as_echo_n "(cached) " >&6
4148 ac_cv_prog_cc_c89=no
4150 cat >conftest.$ac_ext <<_ACEOF
4153 cat confdefs.h >>conftest.$ac_ext
4154 cat >>conftest.$ac_ext <<_ACEOF
4155 /* end confdefs.h. */
4158 #include <sys/types.h>
4159 #include <sys/stat.h>
4160 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4161 struct buf { int x; };
4162 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4163 static char *e (p, i)
4169 static char *f (char * (*g) (char **, int), char **p, ...)
4174 s = g (p, va_arg (v,int));
4179 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4180 function prototypes and stuff, but not '\xHH' hex character constants.
4181 These don't provoke an error unfortunately, instead are silently treated
4182 as 'x'. The following induces an error, until -std is added to get
4183 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4184 array size at least. It's necessary to write '\x00'==0 to get something
4185 that's true only with -std. */
4186 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4188 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4189 inside strings and character constants. */
4191 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4193 int test (int i, double x);
4194 struct s1 {int (*f) (int a);};
4195 struct s2 {int (*f) (double a);};
4196 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4202 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4207 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4208 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4210 CC="$ac_save_CC $ac_arg"
4211 rm -f conftest.$ac_objext
4212 if { (ac_try="$ac_compile"
4214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215 *) ac_try_echo=$ac_try;;
4217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4218 $as_echo "$ac_try_echo") >&5
4219 (eval "$ac_compile") 2>conftest.er1
4221 grep -v '^ *+' conftest.er1 >conftest.err
4223 cat conftest.err >&5
4224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } && {
4226 test -z "$ac_c_werror_flag" ||
4227 test ! -s conftest.err
4228 } && test -s conftest.$ac_objext; then
4229 ac_cv_prog_cc_c89=$ac_arg
4231 $as_echo "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.$ac_ext >&5
4237 rm -f core conftest.err conftest.$ac_objext
4238 test "x$ac_cv_prog_cc_c89" != "xno" && break
4240 rm -f conftest.$ac_ext
4245 case "x$ac_cv_prog_cc_c89" in
4247 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4248 $as_echo "none needed" >&6; } ;;
4250 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4251 $as_echo "unsupported" >&6; } ;;
4253 CC="$CC $ac_cv_prog_cc_c89"
4254 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4255 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
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 DEPDIR="${am__leading_dot}deps"
4266 ac_config_commands="$ac_config_commands depfiles"
4269 am_make=${MAKE-make}
4270 cat > confinc << 'END'
4272 @echo this is the am__doit target
4275 # If we don't find an include directive, just comment out the code.
4276 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4277 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4281 # First try GNU make style include.
4282 echo "include confinc" > confmf
4283 # Ignore all kinds of additional output from `make'.
4284 case `$am_make -s -f confmf 2> /dev/null` in #(
4285 *the\ am__doit\ target*)
4291 # Now try BSD make style include.
4292 if test "$am__include" = "#"; then
4293 echo '.include "confinc"' > confmf
4294 case `$am_make -s -f confmf 2> /dev/null` in #(
4295 *the\ am__doit\ target*)
4296 am__include=.include
4304 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4305 $as_echo "$_am_result" >&6; }
4306 rm -f confinc confmf
4308 # Check whether --enable-dependency-tracking was given.
4309 if test "${enable_dependency_tracking+set}" = set; then
4310 enableval=$enable_dependency_tracking;
4313 if test "x$enable_dependency_tracking" != xno; then
4314 am_depcomp="$ac_aux_dir/depcomp"
4317 if test "x$enable_dependency_tracking" != xno; then
4327 depcc="$CC" am_compiler_list=
4329 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4330 $as_echo_n "checking dependency style of $depcc... " >&6; }
4331 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4332 $as_echo_n "(cached) " >&6
4334 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4335 # We make a subdir and do the tests there. Otherwise we can end up
4336 # making bogus files that we don't know about and never remove. For
4337 # instance it was reported that on HP-UX the gcc test will end up
4338 # making a dummy file named `D' -- because `-MD' means `put the output
4341 # Copy depcomp to subdir because otherwise we won't find it if we're
4342 # using a relative directory.
4343 cp "$am_depcomp" conftest.dir
4345 # We will build objects and dependencies in a subdirectory because
4346 # it helps to detect inapplicable dependency modes. For instance
4347 # both Tru64's cc and ICC support -MD to output dependencies as a
4348 # side effect of compilation, but ICC will put the dependencies in
4349 # the current directory while Tru64 will put them in the object
4353 am_cv_CC_dependencies_compiler_type=none
4354 if test "$am_compiler_list" = ""; then
4355 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4358 case " $depcc " in #(
4359 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4362 for depmode in $am_compiler_list; do
4363 # Setup a source with many dependencies, because some compilers
4364 # like to wrap large dependency lists on column 80 (with \), and
4365 # we should not choose a depcomp mode which is confused by this.
4367 # We need to recreate these files for each test, as the compiler may
4368 # overwrite some of them when testing with obscure command lines.
4369 # This happens at least with the AIX C compiler.
4371 for i in 1 2 3 4 5 6; do
4372 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4373 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4374 # Solaris 8's {/usr,}/bin/sh.
4375 touch sub/conftst$i.h
4377 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4379 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4380 # mode. It turns out that the SunPro C++ compiler does not properly
4381 # handle `-M -o', and we need to detect this. Also, some Intel
4382 # versions had trouble with output in subdirs
4383 am__obj=sub/conftest.${OBJEXT-o}
4384 am__minus_obj="-o $am__obj"
4387 # This depmode causes a compiler race in universal mode.
4388 test "$am__universal" = false || continue
4391 # after this tag, mechanisms are not by side-effect, so they'll
4392 # only be used when explicitly requested
4393 if test "x$enable_dependency_tracking" = xyes; then
4399 msvisualcpp | msvcmsys)
4400 # This compiler won't grok `-c -o', but also, the minuso test has
4401 # not run yet. These depmodes are late enough in the game, and
4402 # so weak that their functioning should not be impacted.
4403 am__obj=conftest.${OBJEXT-o}
4408 if depmode=$depmode \
4409 source=sub/conftest.c object=$am__obj \
4410 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4411 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4412 >/dev/null 2>conftest.err &&
4413 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4414 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4415 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4416 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4417 # icc doesn't choke on unknown options, it will just issue warnings
4418 # or remarks (even with -Werror). So we grep stderr for any message
4419 # that says an option was ignored or not supported.
4420 # When given -MP, icc 7.0 and 7.1 complain thusly:
4421 # icc: Command line warning: ignoring option '-M'; no argument required
4422 # The diagnosis changed in icc 8.0:
4423 # icc: Command line remark: option '-MP' not supported
4424 if (grep 'ignoring option' conftest.err ||
4425 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4426 am_cv_CC_dependencies_compiler_type=$depmode
4435 am_cv_CC_dependencies_compiler_type=none
4439 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4440 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4441 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4444 test "x$enable_dependency_tracking" != xno \
4445 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4447 am__fastdepCC_FALSE='#'
4449 am__fastdepCC_TRUE='#'
4450 am__fastdepCC_FALSE=
4455 if test -n "$ac_tool_prefix"; then
4456 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4457 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4458 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4459 $as_echo_n "checking for $ac_word... " >&6; }
4460 if test "${ac_cv_prog_RANLIB+set}" = set; then
4461 $as_echo_n "(cached) " >&6
4463 if test -n "$RANLIB"; then
4464 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470 test -z "$as_dir" && as_dir=.
4471 for ac_exec_ext in '' $ac_executable_extensions; do
4472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4473 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4474 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4483 RANLIB=$ac_cv_prog_RANLIB
4484 if test -n "$RANLIB"; then
4485 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4486 $as_echo "$RANLIB" >&6; }
4488 { $as_echo "$as_me:$LINENO: result: no" >&5
4489 $as_echo "no" >&6; }
4494 if test -z "$ac_cv_prog_RANLIB"; then
4495 ac_ct_RANLIB=$RANLIB
4496 # Extract the first word of "ranlib", so it can be a program name with args.
4497 set dummy ranlib; ac_word=$2
4498 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4499 $as_echo_n "checking for $ac_word... " >&6; }
4500 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4501 $as_echo_n "(cached) " >&6
4503 if test -n "$ac_ct_RANLIB"; then
4504 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 test -z "$as_dir" && as_dir=.
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4513 ac_cv_prog_ac_ct_RANLIB="ranlib"
4514 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4524 if test -n "$ac_ct_RANLIB"; then
4525 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4526 $as_echo "$ac_ct_RANLIB" >&6; }
4528 { $as_echo "$as_me:$LINENO: result: no" >&5
4529 $as_echo "no" >&6; }
4532 if test "x$ac_ct_RANLIB" = x; then
4535 case $cross_compiling:$ac_tool_warned in
4537 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4539 ac_tool_warned=yes ;;
4541 RANLIB=$ac_ct_RANLIB
4544 RANLIB="$ac_cv_prog_RANLIB"
4547 for ac_prog in 'bison -y' byacc
4549 # Extract the first word of "$ac_prog", so it can be a program name with args.
4550 set dummy $ac_prog; ac_word=$2
4551 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4552 $as_echo_n "checking for $ac_word... " >&6; }
4553 if test "${ac_cv_prog_YACC+set}" = set; then
4554 $as_echo_n "(cached) " >&6
4556 if test -n "$YACC"; then
4557 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 test -z "$as_dir" && as_dir=.
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4566 ac_cv_prog_YACC="$ac_prog"
4567 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4576 YACC=$ac_cv_prog_YACC
4577 if test -n "$YACC"; then
4578 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
4579 $as_echo "$YACC" >&6; }
4581 { $as_echo "$as_me:$LINENO: result: no" >&5
4582 $as_echo "no" >&6; }
4586 test -n "$YACC" && break
4588 test -n "$YACC" || YACC="yacc"
4590 if test "x$CC" != xcc; then
4591 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4592 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4594 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4595 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4597 set dummy $CC; ac_cc=`$as_echo "$2" |
4598 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4599 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4600 $as_echo_n "(cached) " >&6
4602 cat >conftest.$ac_ext <<_ACEOF
4605 cat confdefs.h >>conftest.$ac_ext
4606 cat >>conftest.$ac_ext <<_ACEOF
4607 /* end confdefs.h. */
4617 # Make sure it works both with $CC and with simple cc.
4618 # We do the test twice because some compilers refuse to overwrite an
4619 # existing .o file with -o, though they will create one.
4620 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4622 if { (case "(($ac_try" in
4623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624 *) ac_try_echo=$ac_try;;
4626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4627 $as_echo "$ac_try_echo") >&5
4628 (eval "$ac_try") 2>&5
4630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); } &&
4632 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634 *) ac_try_echo=$ac_try;;
4636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4637 $as_echo "$ac_try_echo") >&5
4638 (eval "$ac_try") 2>&5
4640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); };
4643 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4644 if test "x$CC" != xcc; then
4645 # Test first that cc exists at all.
4646 if { ac_try='cc -c conftest.$ac_ext >&5'
4647 { (case "(($ac_try" in
4648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649 *) ac_try_echo=$ac_try;;
4651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4652 $as_echo "$ac_try_echo") >&5
4653 (eval "$ac_try") 2>&5
4655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
4657 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4659 if { (case "(($ac_try" in
4660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661 *) ac_try_echo=$ac_try;;
4663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4664 $as_echo "$ac_try_echo") >&5
4665 (eval "$ac_try") 2>&5
4667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); } &&
4669 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4671 *) ac_try_echo=$ac_try;;
4673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4674 $as_echo "$ac_try_echo") >&5
4675 (eval "$ac_try") 2>&5
4677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); };
4683 # cc exists but doesn't like -o.
4684 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4689 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4691 rm -f core conftest*
4694 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4695 { $as_echo "$as_me:$LINENO: result: yes" >&5
4696 $as_echo "yes" >&6; }
4698 { $as_echo "$as_me:$LINENO: result: no" >&5
4699 $as_echo "no" >&6; }
4701 cat >>confdefs.h <<\_ACEOF
4702 #define NO_MINUS_C_MINUS_O 1
4707 # FIXME: we rely on the cache variable name because
4708 # there is no other way.
4710 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4711 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4712 if test "$am_t" != yes; then
4713 # Losing compiler, so override with the script.
4714 # FIXME: It is wrong to rewrite CC.
4715 # But if we don't then we get into trouble of one sort or another.
4716 # A longer-term fix would be to have automake use am__CC in this case,
4717 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4718 CC="$am_aux_dir/compile $CC"
4722 # Make sure we can run config.sub.
4723 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4724 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4725 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4726 { (exit 1); exit 1; }; }
4728 { $as_echo "$as_me:$LINENO: checking build system type" >&5
4729 $as_echo_n "checking build system type... " >&6; }
4730 if test "${ac_cv_build+set}" = set; then
4731 $as_echo_n "(cached) " >&6
4733 ac_build_alias=$build_alias
4734 test "x$ac_build_alias" = x &&
4735 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4736 test "x$ac_build_alias" = x &&
4737 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4738 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4739 { (exit 1); exit 1; }; }
4740 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4741 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4742 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4743 { (exit 1); exit 1; }; }
4746 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4747 $as_echo "$ac_cv_build" >&6; }
4748 case $ac_cv_build in
4750 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4751 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
4752 { (exit 1); exit 1; }; };;
4755 ac_save_IFS=$IFS; IFS='-'
4761 # Remember, the first character of IFS is used to create $*,
4762 # except with old shells:
4765 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4768 { $as_echo "$as_me:$LINENO: checking host system type" >&5
4769 $as_echo_n "checking host system type... " >&6; }
4770 if test "${ac_cv_host+set}" = set; then
4771 $as_echo_n "(cached) " >&6
4773 if test "x$host_alias" = x; then
4774 ac_cv_host=$ac_cv_build
4776 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4777 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4778 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4779 { (exit 1); exit 1; }; }
4783 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4784 $as_echo "$ac_cv_host" >&6; }
4787 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4788 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
4789 { (exit 1); exit 1; }; };;
4792 ac_save_IFS=$IFS; IFS='-'
4798 # Remember, the first character of IFS is used to create $*,
4799 # except with old shells:
4802 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4807 ac_cpp='$CPP $CPPFLAGS'
4808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4811 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4812 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4813 # On Suns, sometimes $CPP names a directory.
4814 if test -n "$CPP" && test -d "$CPP"; then
4817 if test -z "$CPP"; then
4818 if test "${ac_cv_prog_CPP+set}" = set; then
4819 $as_echo_n "(cached) " >&6
4821 # Double quotes because CPP needs to be expanded
4822 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4825 for ac_c_preproc_warn_flag in '' yes
4827 # Use a header file that comes with gcc, so configuring glibc
4828 # with a fresh cross-compiler works.
4829 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4830 # <limits.h> exists even on freestanding compilers.
4831 # On the NeXT, cc -E runs the code through the compiler's parser,
4832 # not just through cpp. "Syntax error" is here to catch this case.
4833 cat >conftest.$ac_ext <<_ACEOF
4836 cat confdefs.h >>conftest.$ac_ext
4837 cat >>conftest.$ac_ext <<_ACEOF
4838 /* end confdefs.h. */
4840 # include <limits.h>
4842 # include <assert.h>
4846 if { (ac_try="$ac_cpp conftest.$ac_ext"
4848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4849 *) ac_try_echo=$ac_try;;
4851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4852 $as_echo "$ac_try_echo") >&5
4853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4855 grep -v '^ *+' conftest.er1 >conftest.err
4857 cat conftest.err >&5
4858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); } >/dev/null && {
4860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4861 test ! -s conftest.err
4865 $as_echo "$as_me: failed program was:" >&5
4866 sed 's/^/| /' conftest.$ac_ext >&5
4868 # Broken: fails on valid input.
4872 rm -f conftest.err conftest.$ac_ext
4874 # OK, works on sane cases. Now check whether nonexistent headers
4875 # can be detected and how.
4876 cat >conftest.$ac_ext <<_ACEOF
4879 cat confdefs.h >>conftest.$ac_ext
4880 cat >>conftest.$ac_ext <<_ACEOF
4881 /* end confdefs.h. */
4882 #include <ac_nonexistent.h>
4884 if { (ac_try="$ac_cpp conftest.$ac_ext"
4886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4887 *) ac_try_echo=$ac_try;;
4889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4890 $as_echo "$ac_try_echo") >&5
4891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4893 grep -v '^ *+' conftest.er1 >conftest.err
4895 cat conftest.err >&5
4896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); } >/dev/null && {
4898 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4899 test ! -s conftest.err
4901 # Broken: success on invalid input.
4904 $as_echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4907 # Passes both tests.
4912 rm -f conftest.err conftest.$ac_ext
4915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4916 rm -f conftest.err conftest.$ac_ext
4917 if $ac_preproc_ok; then
4929 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4930 $as_echo "$CPP" >&6; }
4932 for ac_c_preproc_warn_flag in '' yes
4934 # Use a header file that comes with gcc, so configuring glibc
4935 # with a fresh cross-compiler works.
4936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4937 # <limits.h> exists even on freestanding compilers.
4938 # On the NeXT, cc -E runs the code through the compiler's parser,
4939 # not just through cpp. "Syntax error" is here to catch this case.
4940 cat >conftest.$ac_ext <<_ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4947 # include <limits.h>
4949 # include <assert.h>
4953 if { (ac_try="$ac_cpp conftest.$ac_ext"
4955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4956 *) ac_try_echo=$ac_try;;
4958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4959 $as_echo "$ac_try_echo") >&5
4960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4962 grep -v '^ *+' conftest.er1 >conftest.err
4964 cat conftest.err >&5
4965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } >/dev/null && {
4967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4968 test ! -s conftest.err
4972 $as_echo "$as_me: failed program was:" >&5
4973 sed 's/^/| /' conftest.$ac_ext >&5
4975 # Broken: fails on valid input.
4979 rm -f conftest.err conftest.$ac_ext
4981 # OK, works on sane cases. Now check whether nonexistent headers
4982 # can be detected and how.
4983 cat >conftest.$ac_ext <<_ACEOF
4986 cat confdefs.h >>conftest.$ac_ext
4987 cat >>conftest.$ac_ext <<_ACEOF
4988 /* end confdefs.h. */
4989 #include <ac_nonexistent.h>
4991 if { (ac_try="$ac_cpp conftest.$ac_ext"
4993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994 *) ac_try_echo=$ac_try;;
4996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4997 $as_echo "$ac_try_echo") >&5
4998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5000 grep -v '^ *+' conftest.er1 >conftest.err
5002 cat conftest.err >&5
5003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); } >/dev/null && {
5005 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5006 test ! -s conftest.err
5008 # Broken: success on invalid input.
5011 $as_echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5014 # Passes both tests.
5019 rm -f conftest.err conftest.$ac_ext
5022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5023 rm -f conftest.err conftest.$ac_ext
5024 if $ac_preproc_ok; then
5027 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5029 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5030 See \`config.log' for more details." >&5
5031 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5032 See \`config.log' for more details." >&2;}
5033 { (exit 1); exit 1; }; }; }
5037 ac_cpp='$CPP $CPPFLAGS'
5038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5043 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5044 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5045 if test "${ac_cv_path_GREP+set}" = set; then
5046 $as_echo_n "(cached) " >&6
5048 if test -z "$GREP"; then
5049 ac_path_GREP_found=false
5050 # Loop through the user's path and test for each of PROGNAME-LIST
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5055 test -z "$as_dir" && as_dir=.
5056 for ac_prog in grep ggrep; do
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5059 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5060 # Check for GNU ac_path_GREP and select it if it is found.
5061 # Check for GNU $ac_path_GREP
5062 case `"$ac_path_GREP" --version 2>&1` in
5064 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5067 $as_echo_n 0123456789 >"conftest.in"
5070 cat "conftest.in" "conftest.in" >"conftest.tmp"
5071 mv "conftest.tmp" "conftest.in"
5072 cp "conftest.in" "conftest.nl"
5073 $as_echo 'GREP' >> "conftest.nl"
5074 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5075 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5076 ac_count=`expr $ac_count + 1`
5077 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5078 # Best one so far, save it but keep looking for a better one
5079 ac_cv_path_GREP="$ac_path_GREP"
5080 ac_path_GREP_max=$ac_count
5082 # 10*(2^10) chars as input seems more than enough
5083 test $ac_count -gt 10 && break
5085 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5088 $ac_path_GREP_found && break 3
5093 if test -z "$ac_cv_path_GREP"; then
5094 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5095 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5096 { (exit 1); exit 1; }; }
5099 ac_cv_path_GREP=$GREP
5103 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5104 $as_echo "$ac_cv_path_GREP" >&6; }
5105 GREP="$ac_cv_path_GREP"
5108 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5109 $as_echo_n "checking for egrep... " >&6; }
5110 if test "${ac_cv_path_EGREP+set}" = set; then
5111 $as_echo_n "(cached) " >&6
5113 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5114 then ac_cv_path_EGREP="$GREP -E"
5116 if test -z "$EGREP"; then
5117 ac_path_EGREP_found=false
5118 # Loop through the user's path and test for each of PROGNAME-LIST
5119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5123 test -z "$as_dir" && as_dir=.
5124 for ac_prog in egrep; do
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5127 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5128 # Check for GNU ac_path_EGREP and select it if it is found.
5129 # Check for GNU $ac_path_EGREP
5130 case `"$ac_path_EGREP" --version 2>&1` in
5132 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5135 $as_echo_n 0123456789 >"conftest.in"
5138 cat "conftest.in" "conftest.in" >"conftest.tmp"
5139 mv "conftest.tmp" "conftest.in"
5140 cp "conftest.in" "conftest.nl"
5141 $as_echo 'EGREP' >> "conftest.nl"
5142 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5143 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5144 ac_count=`expr $ac_count + 1`
5145 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5146 # Best one so far, save it but keep looking for a better one
5147 ac_cv_path_EGREP="$ac_path_EGREP"
5148 ac_path_EGREP_max=$ac_count
5150 # 10*(2^10) chars as input seems more than enough
5151 test $ac_count -gt 10 && break
5153 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5156 $ac_path_EGREP_found && break 3
5161 if test -z "$ac_cv_path_EGREP"; then
5162 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5163 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5164 { (exit 1); exit 1; }; }
5167 ac_cv_path_EGREP=$EGREP
5172 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5173 $as_echo "$ac_cv_path_EGREP" >&6; }
5174 EGREP="$ac_cv_path_EGREP"
5177 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5178 $as_echo_n "checking for ANSI C header files... " >&6; }
5179 if test "${ac_cv_header_stdc+set}" = set; then
5180 $as_echo_n "(cached) " >&6
5182 cat >conftest.$ac_ext <<_ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h. */
5201 rm -f conftest.$ac_objext
5202 if { (ac_try="$ac_compile"
5204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205 *) ac_try_echo=$ac_try;;
5207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5208 $as_echo "$ac_try_echo") >&5
5209 (eval "$ac_compile") 2>conftest.er1
5211 grep -v '^ *+' conftest.er1 >conftest.err
5213 cat conftest.err >&5
5214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); } && {
5216 test -z "$ac_c_werror_flag" ||
5217 test ! -s conftest.err
5218 } && test -s conftest.$ac_objext; then
5219 ac_cv_header_stdc=yes
5221 $as_echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5224 ac_cv_header_stdc=no
5227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5229 if test $ac_cv_header_stdc = yes; then
5230 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5231 cat >conftest.$ac_ext <<_ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5241 $EGREP "memchr" >/dev/null 2>&1; then
5244 ac_cv_header_stdc=no
5250 if test $ac_cv_header_stdc = yes; then
5251 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5252 cat >conftest.$ac_ext <<_ACEOF
5255 cat confdefs.h >>conftest.$ac_ext
5256 cat >>conftest.$ac_ext <<_ACEOF
5257 /* end confdefs.h. */
5261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5262 $EGREP "free" >/dev/null 2>&1; then
5265 ac_cv_header_stdc=no
5271 if test $ac_cv_header_stdc = yes; then
5272 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5273 if test "$cross_compiling" = yes; then
5276 cat >conftest.$ac_ext <<_ACEOF
5279 cat confdefs.h >>conftest.$ac_ext
5280 cat >>conftest.$ac_ext <<_ACEOF
5281 /* end confdefs.h. */
5284 #if ((' ' & 0x0FF) == 0x020)
5285 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5286 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5288 # define ISLOWER(c) \
5289 (('a' <= (c) && (c) <= 'i') \
5290 || ('j' <= (c) && (c) <= 'r') \
5291 || ('s' <= (c) && (c) <= 'z'))
5292 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5295 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5300 for (i = 0; i < 256; i++)
5301 if (XOR (islower (i), ISLOWER (i))
5302 || toupper (i) != TOUPPER (i))
5307 rm -f conftest$ac_exeext
5308 if { (ac_try="$ac_link"
5310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5311 *) ac_try_echo=$ac_try;;
5313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5314 $as_echo "$ac_try_echo") >&5
5315 (eval "$ac_link") 2>&5
5317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5319 { (case "(($ac_try" in
5320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5321 *) ac_try_echo=$ac_try;;
5323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5324 $as_echo "$ac_try_echo") >&5
5325 (eval "$ac_try") 2>&5
5327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }; }; then
5331 $as_echo "$as_me: program exited with status $ac_status" >&5
5332 $as_echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5336 ac_cv_header_stdc=no
5338 rm -rf conftest.dSYM
5339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5345 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5346 $as_echo "$ac_cv_header_stdc" >&6; }
5347 if test $ac_cv_header_stdc = yes; then
5349 cat >>confdefs.h <<\_ACEOF
5350 #define STDC_HEADERS 1
5355 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5365 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5366 inttypes.h stdint.h unistd.h
5368 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5369 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5370 $as_echo_n "checking for $ac_header... " >&6; }
5371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5372 $as_echo_n "(cached) " >&6
5374 cat >conftest.$ac_ext <<_ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h. */
5380 $ac_includes_default
5382 #include <$ac_header>
5384 rm -f conftest.$ac_objext
5385 if { (ac_try="$ac_compile"
5387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5388 *) ac_try_echo=$ac_try;;
5390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5391 $as_echo "$ac_try_echo") >&5
5392 (eval "$ac_compile") 2>conftest.er1
5394 grep -v '^ *+' conftest.er1 >conftest.err
5396 cat conftest.err >&5
5397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); } && {
5399 test -z "$ac_c_werror_flag" ||
5400 test ! -s conftest.err
5401 } && test -s conftest.$ac_objext; then
5402 eval "$as_ac_Header=yes"
5404 $as_echo "$as_me: failed program was:" >&5
5405 sed 's/^/| /' conftest.$ac_ext >&5
5407 eval "$as_ac_Header=no"
5410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5412 ac_res=`eval 'as_val=${'$as_ac_Header'}
5413 $as_echo "$as_val"'`
5414 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5415 $as_echo "$ac_res" >&6; }
5416 as_val=`eval 'as_val=${'$as_ac_Header'}
5417 $as_echo "$as_val"'`
5418 if test "x$as_val" = x""yes; then
5419 cat >>confdefs.h <<_ACEOF
5420 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5431 if test "${ac_cv_header_minix_config_h+set}" = set; then
5432 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5433 $as_echo_n "checking for minix/config.h... " >&6; }
5434 if test "${ac_cv_header_minix_config_h+set}" = set; then
5435 $as_echo_n "(cached) " >&6
5437 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5438 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5440 # Is the header compilable?
5441 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
5442 $as_echo_n "checking minix/config.h usability... " >&6; }
5443 cat >conftest.$ac_ext <<_ACEOF
5446 cat confdefs.h >>conftest.$ac_ext
5447 cat >>conftest.$ac_ext <<_ACEOF
5448 /* end confdefs.h. */
5449 $ac_includes_default
5450 #include <minix/config.h>
5452 rm -f conftest.$ac_objext
5453 if { (ac_try="$ac_compile"
5455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5456 *) ac_try_echo=$ac_try;;
5458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5459 $as_echo "$ac_try_echo") >&5
5460 (eval "$ac_compile") 2>conftest.er1
5462 grep -v '^ *+' conftest.er1 >conftest.err
5464 cat conftest.err >&5
5465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); } && {
5467 test -z "$ac_c_werror_flag" ||
5468 test ! -s conftest.err
5469 } && test -s conftest.$ac_objext; then
5470 ac_header_compiler=yes
5472 $as_echo "$as_me: failed program was:" >&5
5473 sed 's/^/| /' conftest.$ac_ext >&5
5475 ac_header_compiler=no
5478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5479 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5480 $as_echo "$ac_header_compiler" >&6; }
5482 # Is the header present?
5483 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
5484 $as_echo_n "checking minix/config.h presence... " >&6; }
5485 cat >conftest.$ac_ext <<_ACEOF
5488 cat confdefs.h >>conftest.$ac_ext
5489 cat >>conftest.$ac_ext <<_ACEOF
5490 /* end confdefs.h. */
5491 #include <minix/config.h>
5493 if { (ac_try="$ac_cpp conftest.$ac_ext"
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5499 $as_echo "$ac_try_echo") >&5
5500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5502 grep -v '^ *+' conftest.er1 >conftest.err
5504 cat conftest.err >&5
5505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); } >/dev/null && {
5507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5508 test ! -s conftest.err
5510 ac_header_preproc=yes
5512 $as_echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5515 ac_header_preproc=no
5518 rm -f conftest.err conftest.$ac_ext
5519 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5520 $as_echo "$ac_header_preproc" >&6; }
5522 # So? What about this header?
5523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5525 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
5526 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5527 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
5528 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
5529 ac_header_preproc=yes
5532 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
5533 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
5534 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
5535 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
5536 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
5537 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
5538 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
5539 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
5540 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
5541 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
5542 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
5543 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
5545 ## ------------------------------ ##
5546 ## Report this to bug-tar@gnu.org ##
5547 ## ------------------------------ ##
5549 ) | sed "s/^/$as_me: WARNING: /" >&2
5552 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5553 $as_echo_n "checking for minix/config.h... " >&6; }
5554 if test "${ac_cv_header_minix_config_h+set}" = set; then
5555 $as_echo_n "(cached) " >&6
5557 ac_cv_header_minix_config_h=$ac_header_preproc
5559 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5560 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5563 if test "x$ac_cv_header_minix_config_h" = x""yes; then
5570 if test "$MINIX" = yes; then
5572 cat >>confdefs.h <<\_ACEOF
5573 #define _POSIX_SOURCE 1
5577 cat >>confdefs.h <<\_ACEOF
5578 #define _POSIX_1_SOURCE 2
5582 cat >>confdefs.h <<\_ACEOF
5591 cat >>confdefs.h <<\_ACEOF
5592 #define _XOPEN_SOURCE 500
5600 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
5601 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5602 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
5603 $as_echo_n "(cached) " >&6
5605 cat >conftest.$ac_ext <<_ACEOF
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h. */
5612 # define __EXTENSIONS__ 1
5613 $ac_includes_default
5622 rm -f conftest.$ac_objext
5623 if { (ac_try="$ac_compile"
5625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626 *) ac_try_echo=$ac_try;;
5628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5629 $as_echo "$ac_try_echo") >&5
5630 (eval "$ac_compile") 2>conftest.er1
5632 grep -v '^ *+' conftest.er1 >conftest.err
5634 cat conftest.err >&5
5635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } && {
5637 test -z "$ac_c_werror_flag" ||
5638 test ! -s conftest.err
5639 } && test -s conftest.$ac_objext; then
5640 ac_cv_safe_to_define___extensions__=yes
5642 $as_echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5645 ac_cv_safe_to_define___extensions__=no
5648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5650 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5651 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5652 test $ac_cv_safe_to_define___extensions__ = yes &&
5653 cat >>confdefs.h <<\_ACEOF
5654 #define __EXTENSIONS__ 1
5657 cat >>confdefs.h <<\_ACEOF
5658 #define _ALL_SOURCE 1
5661 cat >>confdefs.h <<\_ACEOF
5662 #define _GNU_SOURCE 1
5665 cat >>confdefs.h <<\_ACEOF
5666 #define _POSIX_PTHREAD_SEMANTICS 1
5669 cat >>confdefs.h <<\_ACEOF
5670 #define _TANDEM_SOURCE 1
5681 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5682 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
5683 if test "${ac_cv_sys_largefile_source+set}" = set; then
5684 $as_echo_n "(cached) " >&6
5687 cat >conftest.$ac_ext <<_ACEOF
5690 cat confdefs.h >>conftest.$ac_ext
5691 cat >>conftest.$ac_ext <<_ACEOF
5692 /* end confdefs.h. */
5693 #include <sys/types.h> /* for off_t */
5698 int (*fp) (FILE *, off_t, int) = fseeko;
5699 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5704 rm -f conftest.$ac_objext conftest$ac_exeext
5705 if { (ac_try="$ac_link"
5707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5708 *) ac_try_echo=$ac_try;;
5710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5711 $as_echo "$ac_try_echo") >&5
5712 (eval "$ac_link") 2>conftest.er1
5714 grep -v '^ *+' conftest.er1 >conftest.err
5716 cat conftest.err >&5
5717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } && {
5719 test -z "$ac_c_werror_flag" ||
5720 test ! -s conftest.err
5721 } && test -s conftest$ac_exeext && {
5722 test "$cross_compiling" = yes ||
5723 $as_test_x conftest$ac_exeext
5725 ac_cv_sys_largefile_source=no; break
5727 $as_echo "$as_me: failed program was:" >&5
5728 sed 's/^/| /' conftest.$ac_ext >&5
5733 rm -rf conftest.dSYM
5734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5735 conftest$ac_exeext conftest.$ac_ext
5736 cat >conftest.$ac_ext <<_ACEOF
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h. */
5742 #define _LARGEFILE_SOURCE 1
5743 #include <sys/types.h> /* for off_t */
5748 int (*fp) (FILE *, off_t, int) = fseeko;
5749 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5754 rm -f conftest.$ac_objext conftest$ac_exeext
5755 if { (ac_try="$ac_link"
5757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5758 *) ac_try_echo=$ac_try;;
5760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5761 $as_echo "$ac_try_echo") >&5
5762 (eval "$ac_link") 2>conftest.er1
5764 grep -v '^ *+' conftest.er1 >conftest.err
5766 cat conftest.err >&5
5767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); } && {
5769 test -z "$ac_c_werror_flag" ||
5770 test ! -s conftest.err
5771 } && test -s conftest$ac_exeext && {
5772 test "$cross_compiling" = yes ||
5773 $as_test_x conftest$ac_exeext
5775 ac_cv_sys_largefile_source=1; break
5777 $as_echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.$ac_ext >&5
5783 rm -rf conftest.dSYM
5784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5785 conftest$ac_exeext conftest.$ac_ext
5786 ac_cv_sys_largefile_source=unknown
5790 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5791 $as_echo "$ac_cv_sys_largefile_source" >&6; }
5792 case $ac_cv_sys_largefile_source in #(
5795 cat >>confdefs.h <<_ACEOF
5796 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5802 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5803 # in glibc 2.1.3, but that breaks too many other things.
5804 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5805 if test $ac_cv_sys_largefile_source != unknown; then
5807 cat >>confdefs.h <<\_ACEOF
5808 #define HAVE_FSEEKO 1
5813 case $ac_cv_prog_cc_stdc in
5814 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
5815 *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
5816 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5817 if test "${ac_cv_prog_cc_c99+set}" = set; then
5818 $as_echo_n "(cached) " >&6
5820 ac_cv_prog_cc_c99=no
5822 cat >conftest.$ac_ext <<_ACEOF
5825 cat confdefs.h >>conftest.$ac_ext
5826 cat >>conftest.$ac_ext <<_ACEOF
5827 /* end confdefs.h. */
5829 #include <stdbool.h>
5834 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5835 #define debug(...) fprintf (stderr, __VA_ARGS__)
5836 #define showlist(...) puts (#__VA_ARGS__)
5837 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5839 test_varargs_macros (void)
5844 debug ("X = %d\n", x);
5845 showlist (The first, second, and third items.);
5846 report (x>y, "x is %d but y is %d", x, y);
5849 // Check long long types.
5850 #define BIG64 18446744073709551615ull
5851 #define BIG32 4294967295ul
5852 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5854 your preprocessor is broken;
5858 your preprocessor is broken;
5860 static long long int bignum = -9223372036854775807LL;
5861 static unsigned long long int ubignum = BIG64;
5863 struct incomplete_array
5871 const wchar_t *name;
5875 typedef const char *ccp;
5878 test_restrict (ccp restrict text)
5880 // See if C++-style comments work.
5881 // Iterate through items via the restricted pointer.
5882 // Also check for declarations in for loops.
5883 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5888 // Check varargs and va_copy.
5890 test_varargs (const char *format, ...)
5893 va_start (args, format);
5895 va_copy (args_copy, args);
5906 str = va_arg (args_copy, const char *);
5909 number = va_arg (args_copy, int);
5912 fnumber = va_arg (args_copy, double);
5927 _Bool success = false;
5930 if (test_restrict ("String literal") == 0)
5932 char *restrict newvar = "Another string";
5935 test_varargs ("s, d' f .", "string", 65, 34.234);
5936 test_varargs_macros ();
5938 // Check flexible array members.
5939 struct incomplete_array *ia =
5940 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5942 for (int i = 0; i < ia->datasize; ++i)
5943 ia->data[i] = i * 1.234;
5945 // Check named initializers.
5946 struct named_init ni = {
5948 .name = L"Test wide string",
5949 .average = 543.34343,
5954 int dynamic_array[ni.number];
5955 dynamic_array[ni.number - 1] = 543;
5957 // work around unused variable warnings
5958 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5959 || dynamic_array[ni.number - 1] != 543);
5965 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5967 CC="$ac_save_CC $ac_arg"
5968 rm -f conftest.$ac_objext
5969 if { (ac_try="$ac_compile"
5971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5972 *) ac_try_echo=$ac_try;;
5974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5975 $as_echo "$ac_try_echo") >&5
5976 (eval "$ac_compile") 2>conftest.er1
5978 grep -v '^ *+' conftest.er1 >conftest.err
5980 cat conftest.err >&5
5981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } && {
5983 test -z "$ac_c_werror_flag" ||
5984 test ! -s conftest.err
5985 } && test -s conftest.$ac_objext; then
5986 ac_cv_prog_cc_c99=$ac_arg
5988 $as_echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5994 rm -f core conftest.err conftest.$ac_objext
5995 test "x$ac_cv_prog_cc_c99" != "xno" && break
5997 rm -f conftest.$ac_ext
6002 case "x$ac_cv_prog_cc_c99" in
6004 { $as_echo "$as_me:$LINENO: result: none needed" >&5
6005 $as_echo "none needed" >&6; } ;;
6007 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
6008 $as_echo "unsupported" >&6; } ;;
6010 CC="$CC $ac_cv_prog_cc_c99"
6011 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
6012 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6014 if test "x$ac_cv_prog_cc_c99" != xno; then
6015 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6017 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6018 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6019 if test "${ac_cv_prog_cc_c89+set}" = set; then
6020 $as_echo_n "(cached) " >&6
6022 ac_cv_prog_cc_c89=no
6024 cat >conftest.$ac_ext <<_ACEOF
6027 cat confdefs.h >>conftest.$ac_ext
6028 cat >>conftest.$ac_ext <<_ACEOF
6029 /* end confdefs.h. */
6032 #include <sys/types.h>
6033 #include <sys/stat.h>
6034 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6035 struct buf { int x; };
6036 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6037 static char *e (p, i)
6043 static char *f (char * (*g) (char **, int), char **p, ...)
6048 s = g (p, va_arg (v,int));
6053 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6054 function prototypes and stuff, but not '\xHH' hex character constants.
6055 These don't provoke an error unfortunately, instead are silently treated
6056 as 'x'. The following induces an error, until -std is added to get
6057 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6058 array size at least. It's necessary to write '\x00'==0 to get something
6059 that's true only with -std. */
6060 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6062 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6063 inside strings and character constants. */
6065 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6067 int test (int i, double x);
6068 struct s1 {int (*f) (int a);};
6069 struct s2 {int (*f) (double a);};
6070 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6076 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6081 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6082 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6084 CC="$ac_save_CC $ac_arg"
6085 rm -f conftest.$ac_objext
6086 if { (ac_try="$ac_compile"
6088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6089 *) ac_try_echo=$ac_try;;
6091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6092 $as_echo "$ac_try_echo") >&5
6093 (eval "$ac_compile") 2>conftest.er1
6095 grep -v '^ *+' conftest.er1 >conftest.err
6097 cat conftest.err >&5
6098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } && {
6100 test -z "$ac_c_werror_flag" ||
6101 test ! -s conftest.err
6102 } && test -s conftest.$ac_objext; then
6103 ac_cv_prog_cc_c89=$ac_arg
6105 $as_echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.$ac_ext >&5
6111 rm -f core conftest.err conftest.$ac_objext
6112 test "x$ac_cv_prog_cc_c89" != "xno" && break
6114 rm -f conftest.$ac_ext
6119 case "x$ac_cv_prog_cc_c89" in
6121 { $as_echo "$as_me:$LINENO: result: none needed" >&5
6122 $as_echo "none needed" >&6; } ;;
6124 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
6125 $as_echo "unsupported" >&6; } ;;
6127 CC="$CC $ac_cv_prog_cc_c89"
6128 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6129 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6131 if test "x$ac_cv_prog_cc_c89" != xno; then
6132 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6134 ac_cv_prog_cc_stdc=no
6142 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
6143 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6144 if test "${ac_cv_prog_cc_stdc+set}" = set; then
6145 $as_echo_n "(cached) " >&6
6148 case $ac_cv_prog_cc_stdc in
6149 no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
6150 $as_echo "unsupported" >&6; } ;;
6151 '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
6152 $as_echo "none needed" >&6; } ;;
6153 *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
6154 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6161 # Code from module alloca:
6162 # Code from module alloca-opt:
6163 # Code from module areadlink:
6164 # Code from module areadlinkat:
6165 # Code from module arg-nonnull:
6166 # Code from module argmatch:
6167 # Code from module argp:
6168 # Code from module argp-version-etc:
6169 # Code from module backupfile:
6170 # Code from module bitrotate:
6171 # Code from module btowc:
6172 # Code from module c++defs:
6173 # Code from module c-ctype:
6174 # Code from module canonicalize-lgpl:
6175 # Code from module chdir-long:
6176 # Code from module chown:
6177 # Code from module clock-time:
6178 # Code from module cloexec:
6179 # Code from module close:
6180 # Code from module close-hook:
6181 # Code from module close-stream:
6182 # Code from module closeout:
6183 # Code from module configmake:
6184 # Code from module d-ino:
6185 # Code from module dirent:
6186 # Code from module dirent-safer:
6187 # Code from module dirfd:
6188 # Code from module dirname:
6189 # Code from module dirname-lgpl:
6190 # Code from module dosname:
6191 # Code from module double-slash-root:
6192 # Code from module dup2:
6193 # Code from module environ:
6194 # Code from module errno:
6195 # Code from module error:
6196 # Code from module exclude:
6197 # Code from module exitfail:
6198 # Code from module extensions:
6200 # Code from module fchdir:
6201 # Code from module fclose:
6202 # Code from module fcntl:
6203 # Code from module fcntl-h:
6204 # Code from module fdopendir:
6205 # Code from module fdutimensat:
6206 # Code from module fileblocks:
6207 # Code from module filenamecat-lgpl:
6208 # Code from module float:
6209 # Code from module fnmatch:
6210 # Code from module fnmatch-gnu:
6211 # Code from module fpending:
6212 # Code from module fseeko:
6214 # Code from module full-write:
6215 # Code from module futimens:
6216 # Code from module getcwd:
6217 # Code from module getdelim:
6218 # Code from module getdtablesize:
6219 # Code from module getline:
6220 # Code from module getopt-gnu:
6221 # Code from module getopt-posix:
6222 # Code from module getpagesize:
6223 # Code from module gettext:
6224 # Code from module gettext-h:
6225 # Code from module gettime:
6226 # Code from module gettimeofday:
6227 # Code from module gitlog-to-changelog:
6228 # Code from module hash:
6229 # Code from module havelib:
6230 # Code from module human:
6231 # Code from module include_next:
6232 # Code from module inline:
6233 # Code from module intprops:
6234 # Code from module inttostr:
6235 # Code from module inttypes:
6236 # Code from module iswblank:
6237 # Code from module langinfo:
6238 # Code from module lchown:
6239 # Code from module link:
6240 # Code from module link-follow:
6241 # Code from module linkat:
6242 # Code from module localcharset:
6243 # Code from module lseek:
6244 # Code from module lstat:
6245 # Code from module malloc-gnu:
6246 # Code from module malloc-posix:
6247 # Code from module malloca:
6248 # Code from module mbchar:
6249 # Code from module mbrtowc:
6250 # Code from module mbscasecmp:
6251 # Code from module mbsinit:
6252 # Code from module mbsrtowcs:
6253 # Code from module mbtowc:
6254 # Code from module mbuiter:
6255 # Code from module memchr:
6256 # Code from module mempcpy:
6257 # Code from module memrchr:
6258 # Code from module mkdir:
6259 # Code from module mkdtemp:
6260 # Code from module mkfifo:
6261 # Code from module mkfifoat:
6262 # Code from module mknod:
6263 # Code from module mktime:
6264 # Code from module modechange:
6265 # Code from module multiarch:
6266 # Code from module nl_langinfo:
6267 # Code from module obstack:
6268 # Code from module open:
6269 # Code from module openat:
6270 # Code from module openat-die:
6271 # Code from module parse-datetime:
6272 # Code from module pathmax:
6273 # Code from module priv-set:
6274 # Code from module progname:
6275 # Code from module quote:
6276 # Code from module quotearg:
6277 # Code from module quotearg-simple:
6278 # Code from module rawmemchr:
6279 # Code from module readlink:
6280 # Code from module readlinkat:
6281 # Code from module realloc-posix:
6282 # Code from module regex:
6283 # Code from module rename:
6284 # Code from module renameat:
6285 # Code from module rmdir:
6286 # Code from module rpmatch:
6287 # Code from module safe-read:
6288 # Code from module safe-write:
6289 # Code from module same-inode:
6290 # Code from module save-cwd:
6291 # Code from module savedir:
6292 # Code from module setenv:
6293 # Code from module size_max:
6294 # Code from module sleep:
6295 # Code from module snprintf:
6296 # Code from module ssize_t:
6297 # Code from module stat:
6298 # Code from module stat-macros:
6299 # Code from module stat-time:
6300 # Code from module stdarg:
6302 # Code from module stdbool:
6303 # Code from module stddef:
6304 # Code from module stdint:
6305 # Code from module stdio:
6306 # Code from module stdlib:
6307 # Code from module stpcpy:
6308 # Code from module strcase:
6309 # Code from module strchrnul:
6310 # Code from module strdup-posix:
6311 # Code from module streq:
6312 # Code from module strerror:
6313 # Code from module string:
6314 # Code from module strings:
6315 # Code from module strndup:
6316 # Code from module strnlen:
6317 # Code from module strnlen1:
6318 # Code from module strtoimax:
6319 # Code from module strtol:
6320 # Code from module strtoll:
6321 # Code from module strtoul:
6322 # Code from module strtoull:
6323 # Code from module strtoumax:
6324 # Code from module symlink:
6325 # Code from module symlinkat:
6326 # Code from module sys_stat:
6327 # Code from module sys_time:
6328 # Code from module sysexits:
6329 # Code from module tempname:
6330 # Code from module time:
6331 # Code from module time_r:
6332 # Code from module timespec:
6333 # Code from module unistd:
6334 # Code from module unistd-safer:
6335 # Code from module unitypes:
6336 # Code from module uniwidth/base:
6337 # Code from module uniwidth/width:
6338 # Code from module unlink:
6339 # Code from module unlinkdir:
6340 # Code from module unlocked-io:
6341 # Code from module unsetenv:
6342 # Code from module utimens:
6343 # Code from module utimensat:
6344 # Code from module vasnprintf:
6345 # Code from module vasprintf:
6346 # Code from module verify:
6347 # Code from module version-etc:
6348 # Code from module version-etc-fsf:
6349 # Code from module vsnprintf:
6350 # Code from module warn-on-use:
6351 # Code from module wchar:
6352 # Code from module wcrtomb:
6353 # Code from module wctype-h:
6354 # Code from module wcwidth:
6355 # Code from module write:
6356 # Code from module xalloc:
6357 # Code from module xalloc-die:
6358 # Code from module xgetcwd:
6359 # Code from module xsize:
6360 # Code from module xstrndup:
6361 # Code from module xstrtol:
6362 # Code from module xstrtoumax:
6363 # Code from module xvasprintf:
6366 # Check whether --enable-largefile was given.
6367 if test "${enable_largefile+set}" = set; then
6368 enableval=$enable_largefile;
6371 if test "$enable_largefile" != no; then
6373 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
6374 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6375 if test "${ac_cv_sys_largefile_CC+set}" = set; then
6376 $as_echo_n "(cached) " >&6
6378 ac_cv_sys_largefile_CC=no
6379 if test "$GCC" != yes; then
6382 # IRIX 6.2 and later do not support large files by default,
6383 # so use the C compiler's -n32 option if that helps.
6384 cat >conftest.$ac_ext <<_ACEOF
6387 cat confdefs.h >>conftest.$ac_ext
6388 cat >>conftest.$ac_ext <<_ACEOF
6389 /* end confdefs.h. */
6390 #include <sys/types.h>
6391 /* Check that off_t can represent 2**63 - 1 correctly.
6392 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6393 since some C++ compilers masquerading as C compilers
6394 incorrectly reject 9223372036854775807. */
6395 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6396 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6397 && LARGE_OFF_T % 2147483647 == 1)
6407 rm -f conftest.$ac_objext
6408 if { (ac_try="$ac_compile"
6410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6411 *) ac_try_echo=$ac_try;;
6413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6414 $as_echo "$ac_try_echo") >&5
6415 (eval "$ac_compile") 2>conftest.er1
6417 grep -v '^ *+' conftest.er1 >conftest.err
6419 cat conftest.err >&5
6420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); } && {
6422 test -z "$ac_c_werror_flag" ||
6423 test ! -s conftest.err
6424 } && test -s conftest.$ac_objext; then
6427 $as_echo "$as_me: failed program was:" >&5
6428 sed 's/^/| /' conftest.$ac_ext >&5
6433 rm -f core conftest.err conftest.$ac_objext
6435 rm -f conftest.$ac_objext
6436 if { (ac_try="$ac_compile"
6438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439 *) ac_try_echo=$ac_try;;
6441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6442 $as_echo "$ac_try_echo") >&5
6443 (eval "$ac_compile") 2>conftest.er1
6445 grep -v '^ *+' conftest.er1 >conftest.err
6447 cat conftest.err >&5
6448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } && {
6450 test -z "$ac_c_werror_flag" ||
6451 test ! -s conftest.err
6452 } && test -s conftest.$ac_objext; then
6453 ac_cv_sys_largefile_CC=' -n32'; break
6455 $as_echo "$as_me: failed program was:" >&5
6456 sed 's/^/| /' conftest.$ac_ext >&5
6461 rm -f core conftest.err conftest.$ac_objext
6465 rm -f conftest.$ac_ext
6468 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6469 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6470 if test "$ac_cv_sys_largefile_CC" != no; then
6471 CC=$CC$ac_cv_sys_largefile_CC
6474 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6475 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6476 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6477 $as_echo_n "(cached) " >&6
6480 cat >conftest.$ac_ext <<_ACEOF
6483 cat confdefs.h >>conftest.$ac_ext
6484 cat >>conftest.$ac_ext <<_ACEOF
6485 /* end confdefs.h. */
6486 #include <sys/types.h>
6487 /* Check that off_t can represent 2**63 - 1 correctly.
6488 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6489 since some C++ compilers masquerading as C compilers
6490 incorrectly reject 9223372036854775807. */
6491 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6492 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6493 && LARGE_OFF_T % 2147483647 == 1)
6503 rm -f conftest.$ac_objext
6504 if { (ac_try="$ac_compile"
6506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6507 *) ac_try_echo=$ac_try;;
6509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6510 $as_echo "$ac_try_echo") >&5
6511 (eval "$ac_compile") 2>conftest.er1
6513 grep -v '^ *+' conftest.er1 >conftest.err
6515 cat conftest.err >&5
6516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } && {
6518 test -z "$ac_c_werror_flag" ||
6519 test ! -s conftest.err
6520 } && test -s conftest.$ac_objext; then
6521 ac_cv_sys_file_offset_bits=no; break
6523 $as_echo "$as_me: failed program was:" >&5
6524 sed 's/^/| /' conftest.$ac_ext >&5
6529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6530 cat >conftest.$ac_ext <<_ACEOF
6533 cat confdefs.h >>conftest.$ac_ext
6534 cat >>conftest.$ac_ext <<_ACEOF
6535 /* end confdefs.h. */
6536 #define _FILE_OFFSET_BITS 64
6537 #include <sys/types.h>
6538 /* Check that off_t can represent 2**63 - 1 correctly.
6539 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6540 since some C++ compilers masquerading as C compilers
6541 incorrectly reject 9223372036854775807. */
6542 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6543 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6544 && LARGE_OFF_T % 2147483647 == 1)
6554 rm -f conftest.$ac_objext
6555 if { (ac_try="$ac_compile"
6557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6558 *) ac_try_echo=$ac_try;;
6560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6561 $as_echo "$ac_try_echo") >&5
6562 (eval "$ac_compile") 2>conftest.er1
6564 grep -v '^ *+' conftest.er1 >conftest.err
6566 cat conftest.err >&5
6567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); } && {
6569 test -z "$ac_c_werror_flag" ||
6570 test ! -s conftest.err
6571 } && test -s conftest.$ac_objext; then
6572 ac_cv_sys_file_offset_bits=64; break
6574 $as_echo "$as_me: failed program was:" >&5
6575 sed 's/^/| /' conftest.$ac_ext >&5
6580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6581 ac_cv_sys_file_offset_bits=unknown
6585 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6586 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6587 case $ac_cv_sys_file_offset_bits in #(
6590 cat >>confdefs.h <<_ACEOF
6591 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6596 if test $ac_cv_sys_file_offset_bits = unknown; then
6597 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6598 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6599 if test "${ac_cv_sys_large_files+set}" = set; then
6600 $as_echo_n "(cached) " >&6
6603 cat >conftest.$ac_ext <<_ACEOF
6606 cat confdefs.h >>conftest.$ac_ext
6607 cat >>conftest.$ac_ext <<_ACEOF
6608 /* end confdefs.h. */
6609 #include <sys/types.h>
6610 /* Check that off_t can represent 2**63 - 1 correctly.
6611 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6612 since some C++ compilers masquerading as C compilers
6613 incorrectly reject 9223372036854775807. */
6614 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6615 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6616 && LARGE_OFF_T % 2147483647 == 1)
6626 rm -f conftest.$ac_objext
6627 if { (ac_try="$ac_compile"
6629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6630 *) ac_try_echo=$ac_try;;
6632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6633 $as_echo "$ac_try_echo") >&5
6634 (eval "$ac_compile") 2>conftest.er1
6636 grep -v '^ *+' conftest.er1 >conftest.err
6638 cat conftest.err >&5
6639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); } && {
6641 test -z "$ac_c_werror_flag" ||
6642 test ! -s conftest.err
6643 } && test -s conftest.$ac_objext; then
6644 ac_cv_sys_large_files=no; break
6646 $as_echo "$as_me: failed program was:" >&5
6647 sed 's/^/| /' conftest.$ac_ext >&5
6652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6653 cat >conftest.$ac_ext <<_ACEOF
6656 cat confdefs.h >>conftest.$ac_ext
6657 cat >>conftest.$ac_ext <<_ACEOF
6658 /* end confdefs.h. */
6659 #define _LARGE_FILES 1
6660 #include <sys/types.h>
6661 /* Check that off_t can represent 2**63 - 1 correctly.
6662 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6663 since some C++ compilers masquerading as C compilers
6664 incorrectly reject 9223372036854775807. */
6665 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6666 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6667 && LARGE_OFF_T % 2147483647 == 1)
6677 rm -f conftest.$ac_objext
6678 if { (ac_try="$ac_compile"
6680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6681 *) ac_try_echo=$ac_try;;
6683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6684 $as_echo "$ac_try_echo") >&5
6685 (eval "$ac_compile") 2>conftest.er1
6687 grep -v '^ *+' conftest.er1 >conftest.err
6689 cat conftest.err >&5
6690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); } && {
6692 test -z "$ac_c_werror_flag" ||
6693 test ! -s conftest.err
6694 } && test -s conftest.$ac_objext; then
6695 ac_cv_sys_large_files=1; break
6697 $as_echo "$as_me: failed program was:" >&5
6698 sed 's/^/| /' conftest.$ac_ext >&5
6703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6704 ac_cv_sys_large_files=unknown
6708 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6709 $as_echo "$ac_cv_sys_large_files" >&6; }
6710 case $ac_cv_sys_large_files in #(
6713 cat >>confdefs.h <<_ACEOF
6714 #define _LARGE_FILES $ac_cv_sys_large_files
6722 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
6723 $as_echo_n "checking for library containing strerror... " >&6; }
6724 if test "${ac_cv_search_strerror+set}" = set; then
6725 $as_echo_n "(cached) " >&6
6727 ac_func_search_save_LIBS=$LIBS
6728 cat >conftest.$ac_ext <<_ACEOF
6731 cat confdefs.h >>conftest.$ac_ext
6732 cat >>conftest.$ac_ext <<_ACEOF
6733 /* end confdefs.h. */
6735 /* Override any GCC internal prototype to avoid an error.
6736 Use char because int might match the return type of a GCC
6737 builtin and then its argument prototype would still apply. */
6750 for ac_lib in '' cposix; do
6751 if test -z "$ac_lib"; then
6752 ac_res="none required"
6755 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6757 rm -f conftest.$ac_objext conftest$ac_exeext
6758 if { (ac_try="$ac_link"
6760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6761 *) ac_try_echo=$ac_try;;
6763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6764 $as_echo "$ac_try_echo") >&5
6765 (eval "$ac_link") 2>conftest.er1
6767 grep -v '^ *+' conftest.er1 >conftest.err
6769 cat conftest.err >&5
6770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); } && {
6772 test -z "$ac_c_werror_flag" ||
6773 test ! -s conftest.err
6774 } && test -s conftest$ac_exeext && {
6775 test "$cross_compiling" = yes ||
6776 $as_test_x conftest$ac_exeext
6778 ac_cv_search_strerror=$ac_res
6780 $as_echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6786 rm -rf conftest.dSYM
6787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6789 if test "${ac_cv_search_strerror+set}" = set; then
6793 if test "${ac_cv_search_strerror+set}" = set; then
6796 ac_cv_search_strerror=no
6799 LIBS=$ac_func_search_save_LIBS
6801 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6802 $as_echo "$ac_cv_search_strerror" >&6; }
6803 ac_res=$ac_cv_search_strerror
6804 if test "$ac_res" != no; then
6805 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6809 { $as_echo "$as_me:$LINENO: checking for inline" >&5
6810 $as_echo_n "checking for inline... " >&6; }
6811 if test "${ac_cv_c_inline+set}" = set; then
6812 $as_echo_n "(cached) " >&6
6815 for ac_kw in inline __inline__ __inline; do
6816 cat >conftest.$ac_ext <<_ACEOF
6819 cat confdefs.h >>conftest.$ac_ext
6820 cat >>conftest.$ac_ext <<_ACEOF
6821 /* end confdefs.h. */
6824 static $ac_kw foo_t static_foo () {return 0; }
6825 $ac_kw foo_t foo () {return 0; }
6829 rm -f conftest.$ac_objext
6830 if { (ac_try="$ac_compile"
6832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6833 *) ac_try_echo=$ac_try;;
6835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6836 $as_echo "$ac_try_echo") >&5
6837 (eval "$ac_compile") 2>conftest.er1
6839 grep -v '^ *+' conftest.er1 >conftest.err
6841 cat conftest.err >&5
6842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); } && {
6844 test -z "$ac_c_werror_flag" ||
6845 test ! -s conftest.err
6846 } && test -s conftest.$ac_objext; then
6847 ac_cv_c_inline=$ac_kw
6849 $as_echo "$as_me: failed program was:" >&5
6850 sed 's/^/| /' conftest.$ac_ext >&5
6855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6856 test "$ac_cv_c_inline" != no && break
6860 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6861 $as_echo "$ac_cv_c_inline" >&6; }
6864 case $ac_cv_c_inline in
6867 case $ac_cv_c_inline in
6869 *) ac_val=$ac_cv_c_inline;;
6871 cat >>confdefs.h <<_ACEOF
6873 #define inline $ac_val
6884 for ac_header in $ac_header_list
6886 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6888 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6889 $as_echo_n "checking for $ac_header... " >&6; }
6890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6891 $as_echo_n "(cached) " >&6
6893 ac_res=`eval 'as_val=${'$as_ac_Header'}
6894 $as_echo "$as_val"'`
6895 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6896 $as_echo "$ac_res" >&6; }
6898 # Is the header compilable?
6899 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6900 $as_echo_n "checking $ac_header usability... " >&6; }
6901 cat >conftest.$ac_ext <<_ACEOF
6904 cat confdefs.h >>conftest.$ac_ext
6905 cat >>conftest.$ac_ext <<_ACEOF
6906 /* end confdefs.h. */
6907 $ac_includes_default
6908 #include <$ac_header>
6910 rm -f conftest.$ac_objext
6911 if { (ac_try="$ac_compile"
6913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6914 *) ac_try_echo=$ac_try;;
6916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6917 $as_echo "$ac_try_echo") >&5
6918 (eval "$ac_compile") 2>conftest.er1
6920 grep -v '^ *+' conftest.er1 >conftest.err
6922 cat conftest.err >&5
6923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); } && {
6925 test -z "$ac_c_werror_flag" ||
6926 test ! -s conftest.err
6927 } && test -s conftest.$ac_objext; then
6928 ac_header_compiler=yes
6930 $as_echo "$as_me: failed program was:" >&5
6931 sed 's/^/| /' conftest.$ac_ext >&5
6933 ac_header_compiler=no
6936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6937 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6938 $as_echo "$ac_header_compiler" >&6; }
6940 # Is the header present?
6941 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6942 $as_echo_n "checking $ac_header presence... " >&6; }
6943 cat >conftest.$ac_ext <<_ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h. */
6949 #include <$ac_header>
6951 if { (ac_try="$ac_cpp conftest.$ac_ext"
6953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6954 *) ac_try_echo=$ac_try;;
6956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6957 $as_echo "$ac_try_echo") >&5
6958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6960 grep -v '^ *+' conftest.er1 >conftest.err
6962 cat conftest.err >&5
6963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); } >/dev/null && {
6965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6966 test ! -s conftest.err
6968 ac_header_preproc=yes
6970 $as_echo "$as_me: failed program was:" >&5
6971 sed 's/^/| /' conftest.$ac_ext >&5
6973 ac_header_preproc=no
6976 rm -f conftest.err conftest.$ac_ext
6977 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6978 $as_echo "$ac_header_preproc" >&6; }
6980 # So? What about this header?
6981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6984 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6986 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6987 ac_header_preproc=yes
6990 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6991 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6992 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6993 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6994 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6995 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6996 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6997 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6999 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7001 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7003 ## ------------------------------ ##
7004 ## Report this to bug-tar@gnu.org ##
7005 ## ------------------------------ ##
7007 ) | sed "s/^/$as_me: WARNING: /" >&2
7010 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7011 $as_echo_n "checking for $ac_header... " >&6; }
7012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7013 $as_echo_n "(cached) " >&6
7015 eval "$as_ac_Header=\$ac_header_preproc"
7017 ac_res=`eval 'as_val=${'$as_ac_Header'}
7018 $as_echo "$as_val"'`
7019 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7020 $as_echo "$ac_res" >&6; }
7023 as_val=`eval 'as_val=${'$as_ac_Header'}
7024 $as_echo "$as_val"'`
7025 if test "x$as_val" = x""yes; then
7026 cat >>confdefs.h <<_ACEOF
7027 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7108 for ac_header in sys/buf.h
7110 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7111 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7112 $as_echo_n "checking for $ac_header... " >&6; }
7113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7114 $as_echo_n "(cached) " >&6
7116 cat >conftest.$ac_ext <<_ACEOF
7119 cat confdefs.h >>conftest.$ac_ext
7120 cat >>conftest.$ac_ext <<_ACEOF
7121 /* end confdefs.h. */
7122 #if HAVE_SYS_PARAM_H
7123 #include <sys/param.h>
7126 #include <$ac_header>
7128 rm -f conftest.$ac_objext
7129 if { (ac_try="$ac_compile"
7131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7132 *) ac_try_echo=$ac_try;;
7134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7135 $as_echo "$ac_try_echo") >&5
7136 (eval "$ac_compile") 2>conftest.er1
7138 grep -v '^ *+' conftest.er1 >conftest.err
7140 cat conftest.err >&5
7141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); } && {
7143 test -z "$ac_c_werror_flag" ||
7144 test ! -s conftest.err
7145 } && test -s conftest.$ac_objext; then
7146 eval "$as_ac_Header=yes"
7148 $as_echo "$as_me: failed program was:" >&5
7149 sed 's/^/| /' conftest.$ac_ext >&5
7151 eval "$as_ac_Header=no"
7154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7156 ac_res=`eval 'as_val=${'$as_ac_Header'}
7157 $as_echo "$as_val"'`
7158 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7159 $as_echo "$ac_res" >&6; }
7160 as_val=`eval 'as_val=${'$as_ac_Header'}
7161 $as_echo "$as_val"'`
7162 if test "x$as_val" = x""yes; then
7163 cat >>confdefs.h <<_ACEOF
7164 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7172 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7173 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7174 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7175 $as_echo_n "(cached) " >&6
7177 cat >conftest.$ac_ext <<_ACEOF
7180 cat confdefs.h >>conftest.$ac_ext
7181 cat >>conftest.$ac_ext <<_ACEOF
7182 /* end confdefs.h. */
7183 #include <sys/types.h>
7184 #include <sys/wait.h>
7186 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7189 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7197 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7202 rm -f conftest.$ac_objext
7203 if { (ac_try="$ac_compile"
7205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7206 *) ac_try_echo=$ac_try;;
7208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7209 $as_echo "$ac_try_echo") >&5
7210 (eval "$ac_compile") 2>conftest.er1
7212 grep -v '^ *+' conftest.er1 >conftest.err
7214 cat conftest.err >&5
7215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); } && {
7217 test -z "$ac_c_werror_flag" ||
7218 test ! -s conftest.err
7219 } && test -s conftest.$ac_objext; then
7220 ac_cv_header_sys_wait_h=yes
7222 $as_echo "$as_me: failed program was:" >&5
7223 sed 's/^/| /' conftest.$ac_ext >&5
7225 ac_cv_header_sys_wait_h=no
7228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7230 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7231 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7232 if test $ac_cv_header_sys_wait_h = yes; then
7234 cat >>confdefs.h <<\_ACEOF
7235 #define HAVE_SYS_WAIT_H 1
7247 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7248 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7249 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7250 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7252 $as_echo_n "(cached) " >&6
7254 cat >conftest.$ac_ext <<_ACEOF
7257 cat confdefs.h >>conftest.$ac_ext
7258 cat >>conftest.$ac_ext <<_ACEOF
7259 /* end confdefs.h. */
7260 #include <sys/types.h>
7272 rm -f conftest.$ac_objext
7273 if { (ac_try="$ac_compile"
7275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7276 *) ac_try_echo=$ac_try;;
7278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7279 $as_echo "$ac_try_echo") >&5
7280 (eval "$ac_compile") 2>conftest.er1
7282 grep -v '^ *+' conftest.er1 >conftest.err
7284 cat conftest.err >&5
7285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); } && {
7287 test -z "$ac_c_werror_flag" ||
7288 test ! -s conftest.err
7289 } && test -s conftest.$ac_objext; then
7290 eval "$as_ac_Header=yes"
7292 $as_echo "$as_me: failed program was:" >&5
7293 sed 's/^/| /' conftest.$ac_ext >&5
7295 eval "$as_ac_Header=no"
7298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7300 ac_res=`eval 'as_val=${'$as_ac_Header'}
7301 $as_echo "$as_val"'`
7302 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7303 $as_echo "$ac_res" >&6; }
7304 as_val=`eval 'as_val=${'$as_ac_Header'}
7305 $as_echo "$as_val"'`
7306 if test "x$as_val" = x""yes; then
7307 cat >>confdefs.h <<_ACEOF
7308 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7311 ac_header_dirent=$ac_hdr; break
7315 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7316 if test $ac_header_dirent = dirent.h; then
7317 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
7318 $as_echo_n "checking for library containing opendir... " >&6; }
7319 if test "${ac_cv_search_opendir+set}" = set; then
7320 $as_echo_n "(cached) " >&6
7322 ac_func_search_save_LIBS=$LIBS
7323 cat >conftest.$ac_ext <<_ACEOF
7326 cat confdefs.h >>conftest.$ac_ext
7327 cat >>conftest.$ac_ext <<_ACEOF
7328 /* end confdefs.h. */
7330 /* Override any GCC internal prototype to avoid an error.
7331 Use char because int might match the return type of a GCC
7332 builtin and then its argument prototype would still apply. */
7345 for ac_lib in '' dir; do
7346 if test -z "$ac_lib"; then
7347 ac_res="none required"
7350 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7352 rm -f conftest.$ac_objext conftest$ac_exeext
7353 if { (ac_try="$ac_link"
7355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7356 *) ac_try_echo=$ac_try;;
7358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7359 $as_echo "$ac_try_echo") >&5
7360 (eval "$ac_link") 2>conftest.er1
7362 grep -v '^ *+' conftest.er1 >conftest.err
7364 cat conftest.err >&5
7365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); } && {
7367 test -z "$ac_c_werror_flag" ||
7368 test ! -s conftest.err
7369 } && test -s conftest$ac_exeext && {
7370 test "$cross_compiling" = yes ||
7371 $as_test_x conftest$ac_exeext
7373 ac_cv_search_opendir=$ac_res
7375 $as_echo "$as_me: failed program was:" >&5
7376 sed 's/^/| /' conftest.$ac_ext >&5
7381 rm -rf conftest.dSYM
7382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7384 if test "${ac_cv_search_opendir+set}" = set; then
7388 if test "${ac_cv_search_opendir+set}" = set; then
7391 ac_cv_search_opendir=no
7394 LIBS=$ac_func_search_save_LIBS
7396 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7397 $as_echo "$ac_cv_search_opendir" >&6; }
7398 ac_res=$ac_cv_search_opendir
7399 if test "$ac_res" != no; then
7400 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7405 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
7406 $as_echo_n "checking for library containing opendir... " >&6; }
7407 if test "${ac_cv_search_opendir+set}" = set; then
7408 $as_echo_n "(cached) " >&6
7410 ac_func_search_save_LIBS=$LIBS
7411 cat >conftest.$ac_ext <<_ACEOF
7414 cat confdefs.h >>conftest.$ac_ext
7415 cat >>conftest.$ac_ext <<_ACEOF
7416 /* end confdefs.h. */
7418 /* Override any GCC internal prototype to avoid an error.
7419 Use char because int might match the return type of a GCC
7420 builtin and then its argument prototype would still apply. */
7433 for ac_lib in '' x; do
7434 if test -z "$ac_lib"; then
7435 ac_res="none required"
7438 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7440 rm -f conftest.$ac_objext conftest$ac_exeext
7441 if { (ac_try="$ac_link"
7443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7444 *) ac_try_echo=$ac_try;;
7446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7447 $as_echo "$ac_try_echo") >&5
7448 (eval "$ac_link") 2>conftest.er1
7450 grep -v '^ *+' conftest.er1 >conftest.err
7452 cat conftest.err >&5
7453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); } && {
7455 test -z "$ac_c_werror_flag" ||
7456 test ! -s conftest.err
7457 } && test -s conftest$ac_exeext && {
7458 test "$cross_compiling" = yes ||
7459 $as_test_x conftest$ac_exeext
7461 ac_cv_search_opendir=$ac_res
7463 $as_echo "$as_me: failed program was:" >&5
7464 sed 's/^/| /' conftest.$ac_ext >&5
7469 rm -rf conftest.dSYM
7470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7472 if test "${ac_cv_search_opendir+set}" = set; then
7476 if test "${ac_cv_search_opendir+set}" = set; then
7479 ac_cv_search_opendir=no
7482 LIBS=$ac_func_search_save_LIBS
7484 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7485 $as_echo "$ac_cv_search_opendir" >&6; }
7486 ac_res=$ac_cv_search_opendir
7487 if test "$ac_res" != no; then
7488 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7494 { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
7495 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
7496 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
7497 $as_echo_n "(cached) " >&6
7499 cat >conftest.$ac_ext <<_ACEOF
7502 cat confdefs.h >>conftest.$ac_ext
7503 cat >>conftest.$ac_ext <<_ACEOF
7504 /* end confdefs.h. */
7505 #include <sys/types.h>
7509 return makedev(0, 0);
7514 rm -f conftest.$ac_objext conftest$ac_exeext
7515 if { (ac_try="$ac_link"
7517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7518 *) ac_try_echo=$ac_try;;
7520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7521 $as_echo "$ac_try_echo") >&5
7522 (eval "$ac_link") 2>conftest.er1
7524 grep -v '^ *+' conftest.er1 >conftest.err
7526 cat conftest.err >&5
7527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); } && {
7529 test -z "$ac_c_werror_flag" ||
7530 test ! -s conftest.err
7531 } && test -s conftest$ac_exeext && {
7532 test "$cross_compiling" = yes ||
7533 $as_test_x conftest$ac_exeext
7535 ac_cv_header_sys_types_h_makedev=yes
7537 $as_echo "$as_me: failed program was:" >&5
7538 sed 's/^/| /' conftest.$ac_ext >&5
7540 ac_cv_header_sys_types_h_makedev=no
7543 rm -rf conftest.dSYM
7544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7545 conftest$ac_exeext conftest.$ac_ext
7548 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
7549 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
7551 if test $ac_cv_header_sys_types_h_makedev = no; then
7552 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
7553 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
7554 $as_echo_n "checking for sys/mkdev.h... " >&6; }
7555 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
7556 $as_echo_n "(cached) " >&6
7558 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
7559 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
7561 # Is the header compilable?
7562 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
7563 $as_echo_n "checking sys/mkdev.h usability... " >&6; }
7564 cat >conftest.$ac_ext <<_ACEOF
7567 cat confdefs.h >>conftest.$ac_ext
7568 cat >>conftest.$ac_ext <<_ACEOF
7569 /* end confdefs.h. */
7570 $ac_includes_default
7571 #include <sys/mkdev.h>
7573 rm -f conftest.$ac_objext
7574 if { (ac_try="$ac_compile"
7576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7577 *) ac_try_echo=$ac_try;;
7579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7580 $as_echo "$ac_try_echo") >&5
7581 (eval "$ac_compile") 2>conftest.er1
7583 grep -v '^ *+' conftest.er1 >conftest.err
7585 cat conftest.err >&5
7586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } && {
7588 test -z "$ac_c_werror_flag" ||
7589 test ! -s conftest.err
7590 } && test -s conftest.$ac_objext; then
7591 ac_header_compiler=yes
7593 $as_echo "$as_me: failed program was:" >&5
7594 sed 's/^/| /' conftest.$ac_ext >&5
7596 ac_header_compiler=no
7599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7600 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7601 $as_echo "$ac_header_compiler" >&6; }
7603 # Is the header present?
7604 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
7605 $as_echo_n "checking sys/mkdev.h presence... " >&6; }
7606 cat >conftest.$ac_ext <<_ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h. */
7612 #include <sys/mkdev.h>
7614 if { (ac_try="$ac_cpp conftest.$ac_ext"
7616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7617 *) ac_try_echo=$ac_try;;
7619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7620 $as_echo "$ac_try_echo") >&5
7621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7623 grep -v '^ *+' conftest.er1 >conftest.err
7625 cat conftest.err >&5
7626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); } >/dev/null && {
7628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7629 test ! -s conftest.err
7631 ac_header_preproc=yes
7633 $as_echo "$as_me: failed program was:" >&5
7634 sed 's/^/| /' conftest.$ac_ext >&5
7636 ac_header_preproc=no
7639 rm -f conftest.err conftest.$ac_ext
7640 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7641 $as_echo "$ac_header_preproc" >&6; }
7643 # So? What about this header?
7644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7646 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
7647 $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7648 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
7649 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
7650 ac_header_preproc=yes
7653 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
7654 $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
7655 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
7656 $as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
7657 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
7658 $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
7659 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
7660 $as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
7661 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
7662 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
7663 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
7664 $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
7666 ## ------------------------------ ##
7667 ## Report this to bug-tar@gnu.org ##
7668 ## ------------------------------ ##
7670 ) | sed "s/^/$as_me: WARNING: /" >&2
7673 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
7674 $as_echo_n "checking for sys/mkdev.h... " >&6; }
7675 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
7676 $as_echo_n "(cached) " >&6
7678 ac_cv_header_sys_mkdev_h=$ac_header_preproc
7680 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
7681 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
7684 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
7686 cat >>confdefs.h <<\_ACEOF
7687 #define MAJOR_IN_MKDEV 1
7694 if test $ac_cv_header_sys_mkdev_h = no; then
7695 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7696 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7697 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
7698 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7699 $as_echo_n "(cached) " >&6
7701 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7702 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
7704 # Is the header compilable?
7705 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
7706 $as_echo_n "checking sys/sysmacros.h usability... " >&6; }
7707 cat >conftest.$ac_ext <<_ACEOF
7710 cat confdefs.h >>conftest.$ac_ext
7711 cat >>conftest.$ac_ext <<_ACEOF
7712 /* end confdefs.h. */
7713 $ac_includes_default
7714 #include <sys/sysmacros.h>
7716 rm -f conftest.$ac_objext
7717 if { (ac_try="$ac_compile"
7719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7720 *) ac_try_echo=$ac_try;;
7722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7723 $as_echo "$ac_try_echo") >&5
7724 (eval "$ac_compile") 2>conftest.er1
7726 grep -v '^ *+' conftest.er1 >conftest.err
7728 cat conftest.err >&5
7729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); } && {
7731 test -z "$ac_c_werror_flag" ||
7732 test ! -s conftest.err
7733 } && test -s conftest.$ac_objext; then
7734 ac_header_compiler=yes
7736 $as_echo "$as_me: failed program was:" >&5
7737 sed 's/^/| /' conftest.$ac_ext >&5
7739 ac_header_compiler=no
7742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7743 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7744 $as_echo "$ac_header_compiler" >&6; }
7746 # Is the header present?
7747 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
7748 $as_echo_n "checking sys/sysmacros.h presence... " >&6; }
7749 cat >conftest.$ac_ext <<_ACEOF
7752 cat confdefs.h >>conftest.$ac_ext
7753 cat >>conftest.$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7755 #include <sys/sysmacros.h>
7757 if { (ac_try="$ac_cpp conftest.$ac_ext"
7759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7760 *) ac_try_echo=$ac_try;;
7762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7763 $as_echo "$ac_try_echo") >&5
7764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7766 grep -v '^ *+' conftest.er1 >conftest.err
7768 cat conftest.err >&5
7769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } >/dev/null && {
7771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7772 test ! -s conftest.err
7774 ac_header_preproc=yes
7776 $as_echo "$as_me: failed program was:" >&5
7777 sed 's/^/| /' conftest.$ac_ext >&5
7779 ac_header_preproc=no
7782 rm -f conftest.err conftest.$ac_ext
7783 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7784 $as_echo "$ac_header_preproc" >&6; }
7786 # So? What about this header?
7787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7789 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
7790 $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7791 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
7792 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
7793 ac_header_preproc=yes
7796 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
7797 $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
7798 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
7799 $as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
7800 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
7801 $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
7802 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
7803 $as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
7804 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7805 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7806 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
7807 $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
7809 ## ------------------------------ ##
7810 ## Report this to bug-tar@gnu.org ##
7811 ## ------------------------------ ##
7813 ) | sed "s/^/$as_me: WARNING: /" >&2
7816 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7817 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
7818 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7819 $as_echo_n "(cached) " >&6
7821 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
7823 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7824 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
7827 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
7829 cat >>confdefs.h <<\_ACEOF
7830 #define MAJOR_IN_SYSMACROS 1
7839 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7840 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
7841 if test "${ac_cv_header_stat_broken+set}" = set; then
7842 $as_echo_n "(cached) " >&6
7844 cat >conftest.$ac_ext <<_ACEOF
7847 cat confdefs.h >>conftest.$ac_ext
7848 cat >>conftest.$ac_ext <<_ACEOF
7849 /* end confdefs.h. */
7850 #include <sys/types.h>
7851 #include <sys/stat.h>
7853 #if defined S_ISBLK && defined S_IFDIR
7854 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7857 #if defined S_ISBLK && defined S_IFCHR
7858 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7861 #if defined S_ISLNK && defined S_IFREG
7862 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7865 #if defined S_ISSOCK && defined S_IFREG
7866 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7870 rm -f conftest.$ac_objext
7871 if { (ac_try="$ac_compile"
7873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7874 *) ac_try_echo=$ac_try;;
7876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7877 $as_echo "$ac_try_echo") >&5
7878 (eval "$ac_compile") 2>conftest.er1
7880 grep -v '^ *+' conftest.er1 >conftest.err
7882 cat conftest.err >&5
7883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); } && {
7885 test -z "$ac_c_werror_flag" ||
7886 test ! -s conftest.err
7887 } && test -s conftest.$ac_objext; then
7888 ac_cv_header_stat_broken=no
7890 $as_echo "$as_me: failed program was:" >&5
7891 sed 's/^/| /' conftest.$ac_ext >&5
7893 ac_cv_header_stat_broken=yes
7896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7898 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7899 $as_echo "$ac_cv_header_stat_broken" >&6; }
7900 if test $ac_cv_header_stat_broken = yes; then
7902 cat >>confdefs.h <<\_ACEOF
7903 #define STAT_MACROS_BROKEN 1
7908 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7909 $as_echo_n "checking for ANSI C header files... " >&6; }
7910 if test "${ac_cv_header_stdc+set}" = set; then
7911 $as_echo_n "(cached) " >&6
7913 cat >conftest.$ac_ext <<_ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h. */
7932 rm -f conftest.$ac_objext
7933 if { (ac_try="$ac_compile"
7935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7936 *) ac_try_echo=$ac_try;;
7938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7939 $as_echo "$ac_try_echo") >&5
7940 (eval "$ac_compile") 2>conftest.er1
7942 grep -v '^ *+' conftest.er1 >conftest.err
7944 cat conftest.err >&5
7945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } && {
7947 test -z "$ac_c_werror_flag" ||
7948 test ! -s conftest.err
7949 } && test -s conftest.$ac_objext; then
7950 ac_cv_header_stdc=yes
7952 $as_echo "$as_me: failed program was:" >&5
7953 sed 's/^/| /' conftest.$ac_ext >&5
7955 ac_cv_header_stdc=no
7958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7960 if test $ac_cv_header_stdc = yes; then
7961 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7962 cat >conftest.$ac_ext <<_ACEOF
7965 cat confdefs.h >>conftest.$ac_ext
7966 cat >>conftest.$ac_ext <<_ACEOF
7967 /* end confdefs.h. */
7971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7972 $EGREP "memchr" >/dev/null 2>&1; then
7975 ac_cv_header_stdc=no
7981 if test $ac_cv_header_stdc = yes; then
7982 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7983 cat >conftest.$ac_ext <<_ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h. */
7992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7993 $EGREP "free" >/dev/null 2>&1; then
7996 ac_cv_header_stdc=no
8002 if test $ac_cv_header_stdc = yes; then
8003 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8004 if test "$cross_compiling" = yes; then
8007 cat >conftest.$ac_ext <<_ACEOF
8010 cat confdefs.h >>conftest.$ac_ext
8011 cat >>conftest.$ac_ext <<_ACEOF
8012 /* end confdefs.h. */
8015 #if ((' ' & 0x0FF) == 0x020)
8016 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8017 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8019 # define ISLOWER(c) \
8020 (('a' <= (c) && (c) <= 'i') \
8021 || ('j' <= (c) && (c) <= 'r') \
8022 || ('s' <= (c) && (c) <= 'z'))
8023 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8026 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8031 for (i = 0; i < 256; i++)
8032 if (XOR (islower (i), ISLOWER (i))
8033 || toupper (i) != TOUPPER (i))
8038 rm -f conftest$ac_exeext
8039 if { (ac_try="$ac_link"
8041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8042 *) ac_try_echo=$ac_try;;
8044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8045 $as_echo "$ac_try_echo") >&5
8046 (eval "$ac_link") 2>&5
8048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8050 { (case "(($ac_try" in
8051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052 *) ac_try_echo=$ac_try;;
8054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8055 $as_echo "$ac_try_echo") >&5
8056 (eval "$ac_try") 2>&5
8058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); }; }; then
8062 $as_echo "$as_me: program exited with status $ac_status" >&5
8063 $as_echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8067 ac_cv_header_stdc=no
8069 rm -rf conftest.dSYM
8070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8076 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8077 $as_echo "$ac_cv_header_stdc" >&6; }
8078 if test $ac_cv_header_stdc = yes; then
8080 cat >>confdefs.h <<\_ACEOF
8081 #define STDC_HEADERS 1
8087 { $as_echo "$as_me:$LINENO: checking for st_fstype string in struct stat" >&5
8088 $as_echo_n "checking for st_fstype string in struct stat... " >&6; }
8089 if test "${diff_cv_st_fstype_string+set}" = set; then
8090 $as_echo_n "(cached) " >&6
8092 cat >conftest.$ac_ext <<_ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h. */
8098 #include <sys/types.h>
8099 #include <sys/stat.h>
8103 struct stat s; s.st_fstype[0] = 'x';
8108 rm -f conftest.$ac_objext
8109 if { (ac_try="$ac_compile"
8111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8112 *) ac_try_echo=$ac_try;;
8114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8115 $as_echo "$ac_try_echo") >&5
8116 (eval "$ac_compile") 2>conftest.er1
8118 grep -v '^ *+' conftest.er1 >conftest.err
8120 cat conftest.err >&5
8121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); } && {
8123 test -z "$ac_c_werror_flag" ||
8124 test ! -s conftest.err
8125 } && test -s conftest.$ac_objext; then
8126 diff_cv_st_fstype_string=yes
8128 $as_echo "$as_me: failed program was:" >&5
8129 sed 's/^/| /' conftest.$ac_ext >&5
8131 diff_cv_st_fstype_string=no
8134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8137 { $as_echo "$as_me:$LINENO: result: $diff_cv_st_fstype_string" >&5
8138 $as_echo "$diff_cv_st_fstype_string" >&6; }
8139 if test $diff_cv_st_fstype_string = yes; then
8141 cat >>confdefs.h <<\_ACEOF
8142 #define HAVE_ST_FSTYPE_STRING 1
8147 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8148 $as_echo_n "checking return type of signal handlers... " >&6; }
8149 if test "${ac_cv_type_signal+set}" = set; then
8150 $as_echo_n "(cached) " >&6
8152 cat >conftest.$ac_ext <<_ACEOF
8155 cat confdefs.h >>conftest.$ac_ext
8156 cat >>conftest.$ac_ext <<_ACEOF
8157 /* end confdefs.h. */
8158 #include <sys/types.h>
8164 return *(signal (0, 0)) (0) == 1;
8169 rm -f conftest.$ac_objext
8170 if { (ac_try="$ac_compile"
8172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173 *) ac_try_echo=$ac_try;;
8175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8176 $as_echo "$ac_try_echo") >&5
8177 (eval "$ac_compile") 2>conftest.er1
8179 grep -v '^ *+' conftest.er1 >conftest.err
8181 cat conftest.err >&5
8182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); } && {
8184 test -z "$ac_c_werror_flag" ||
8185 test ! -s conftest.err
8186 } && test -s conftest.$ac_objext; then
8187 ac_cv_type_signal=int
8189 $as_echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8192 ac_cv_type_signal=void
8195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8197 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8198 $as_echo "$ac_cv_type_signal" >&6; }
8200 cat >>confdefs.h <<_ACEOF
8201 #define RETSIGTYPE $ac_cv_type_signal
8205 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
8206 $as_echo_n "checking for mode_t... " >&6; }
8207 if test "${ac_cv_type_mode_t+set}" = set; then
8208 $as_echo_n "(cached) " >&6
8210 ac_cv_type_mode_t=no
8211 cat >conftest.$ac_ext <<_ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h. */
8217 $ac_includes_default
8221 if (sizeof (mode_t))
8227 rm -f conftest.$ac_objext
8228 if { (ac_try="$ac_compile"
8230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8231 *) ac_try_echo=$ac_try;;
8233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8234 $as_echo "$ac_try_echo") >&5
8235 (eval "$ac_compile") 2>conftest.er1
8237 grep -v '^ *+' conftest.er1 >conftest.err
8239 cat conftest.err >&5
8240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); } && {
8242 test -z "$ac_c_werror_flag" ||
8243 test ! -s conftest.err
8244 } && test -s conftest.$ac_objext; then
8245 cat >conftest.$ac_ext <<_ACEOF
8248 cat confdefs.h >>conftest.$ac_ext
8249 cat >>conftest.$ac_ext <<_ACEOF
8250 /* end confdefs.h. */
8251 $ac_includes_default
8255 if (sizeof ((mode_t)))
8261 rm -f conftest.$ac_objext
8262 if { (ac_try="$ac_compile"
8264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265 *) ac_try_echo=$ac_try;;
8267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8268 $as_echo "$ac_try_echo") >&5
8269 (eval "$ac_compile") 2>conftest.er1
8271 grep -v '^ *+' conftest.er1 >conftest.err
8273 cat conftest.err >&5
8274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); } && {
8276 test -z "$ac_c_werror_flag" ||
8277 test ! -s conftest.err
8278 } && test -s conftest.$ac_objext; then
8281 $as_echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8284 ac_cv_type_mode_t=yes
8287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8289 $as_echo "$as_me: failed program was:" >&5
8290 sed 's/^/| /' conftest.$ac_ext >&5
8295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8297 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
8298 $as_echo "$ac_cv_type_mode_t" >&6; }
8299 if test "x$ac_cv_type_mode_t" = x""yes; then
8303 cat >>confdefs.h <<_ACEOF
8309 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
8310 $as_echo_n "checking for pid_t... " >&6; }
8311 if test "${ac_cv_type_pid_t+set}" = set; then
8312 $as_echo_n "(cached) " >&6
8315 cat >conftest.$ac_ext <<_ACEOF
8318 cat confdefs.h >>conftest.$ac_ext
8319 cat >>conftest.$ac_ext <<_ACEOF
8320 /* end confdefs.h. */
8321 $ac_includes_default
8331 rm -f conftest.$ac_objext
8332 if { (ac_try="$ac_compile"
8334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8335 *) ac_try_echo=$ac_try;;
8337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8338 $as_echo "$ac_try_echo") >&5
8339 (eval "$ac_compile") 2>conftest.er1
8341 grep -v '^ *+' conftest.er1 >conftest.err
8343 cat conftest.err >&5
8344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } && {
8346 test -z "$ac_c_werror_flag" ||
8347 test ! -s conftest.err
8348 } && test -s conftest.$ac_objext; then
8349 cat >conftest.$ac_ext <<_ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h. */
8355 $ac_includes_default
8359 if (sizeof ((pid_t)))
8365 rm -f conftest.$ac_objext
8366 if { (ac_try="$ac_compile"
8368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369 *) ac_try_echo=$ac_try;;
8371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8372 $as_echo "$ac_try_echo") >&5
8373 (eval "$ac_compile") 2>conftest.er1
8375 grep -v '^ *+' conftest.er1 >conftest.err
8377 cat conftest.err >&5
8378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); } && {
8380 test -z "$ac_c_werror_flag" ||
8381 test ! -s conftest.err
8382 } && test -s conftest.$ac_objext; then
8385 $as_echo "$as_me: failed program was:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8388 ac_cv_type_pid_t=yes
8391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8393 $as_echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8401 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8402 $as_echo "$ac_cv_type_pid_t" >&6; }
8403 if test "x$ac_cv_type_pid_t" = x""yes; then
8407 cat >>confdefs.h <<_ACEOF
8413 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
8414 $as_echo_n "checking for off_t... " >&6; }
8415 if test "${ac_cv_type_off_t+set}" = set; then
8416 $as_echo_n "(cached) " >&6
8419 cat >conftest.$ac_ext <<_ACEOF
8422 cat confdefs.h >>conftest.$ac_ext
8423 cat >>conftest.$ac_ext <<_ACEOF
8424 /* end confdefs.h. */
8425 $ac_includes_default
8435 rm -f conftest.$ac_objext
8436 if { (ac_try="$ac_compile"
8438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8439 *) ac_try_echo=$ac_try;;
8441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8442 $as_echo "$ac_try_echo") >&5
8443 (eval "$ac_compile") 2>conftest.er1
8445 grep -v '^ *+' conftest.er1 >conftest.err
8447 cat conftest.err >&5
8448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } && {
8450 test -z "$ac_c_werror_flag" ||
8451 test ! -s conftest.err
8452 } && test -s conftest.$ac_objext; then
8453 cat >conftest.$ac_ext <<_ACEOF
8456 cat confdefs.h >>conftest.$ac_ext
8457 cat >>conftest.$ac_ext <<_ACEOF
8458 /* end confdefs.h. */
8459 $ac_includes_default
8463 if (sizeof ((off_t)))
8469 rm -f conftest.$ac_objext
8470 if { (ac_try="$ac_compile"
8472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473 *) ac_try_echo=$ac_try;;
8475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8476 $as_echo "$ac_try_echo") >&5
8477 (eval "$ac_compile") 2>conftest.er1
8479 grep -v '^ *+' conftest.er1 >conftest.err
8481 cat conftest.err >&5
8482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); } && {
8484 test -z "$ac_c_werror_flag" ||
8485 test ! -s conftest.err
8486 } && test -s conftest.$ac_objext; then
8489 $as_echo "$as_me: failed program was:" >&5
8490 sed 's/^/| /' conftest.$ac_ext >&5
8492 ac_cv_type_off_t=yes
8495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8497 $as_echo "$as_me: failed program was:" >&5
8498 sed 's/^/| /' conftest.$ac_ext >&5
8503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8505 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8506 $as_echo "$ac_cv_type_off_t" >&6; }
8507 if test "x$ac_cv_type_off_t" = x""yes; then
8511 cat >>confdefs.h <<_ACEOF
8512 #define off_t long int
8517 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
8518 $as_echo_n "checking for size_t... " >&6; }
8519 if test "${ac_cv_type_size_t+set}" = set; then
8520 $as_echo_n "(cached) " >&6
8522 ac_cv_type_size_t=no
8523 cat >conftest.$ac_ext <<_ACEOF
8526 cat confdefs.h >>conftest.$ac_ext
8527 cat >>conftest.$ac_ext <<_ACEOF
8528 /* end confdefs.h. */
8529 $ac_includes_default
8533 if (sizeof (size_t))
8539 rm -f conftest.$ac_objext
8540 if { (ac_try="$ac_compile"
8542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8543 *) ac_try_echo=$ac_try;;
8545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8546 $as_echo "$ac_try_echo") >&5
8547 (eval "$ac_compile") 2>conftest.er1
8549 grep -v '^ *+' conftest.er1 >conftest.err
8551 cat conftest.err >&5
8552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } && {
8554 test -z "$ac_c_werror_flag" ||
8555 test ! -s conftest.err
8556 } && test -s conftest.$ac_objext; then
8557 cat >conftest.$ac_ext <<_ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h. */
8563 $ac_includes_default
8567 if (sizeof ((size_t)))
8573 rm -f conftest.$ac_objext
8574 if { (ac_try="$ac_compile"
8576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577 *) ac_try_echo=$ac_try;;
8579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8580 $as_echo "$ac_try_echo") >&5
8581 (eval "$ac_compile") 2>conftest.er1
8583 grep -v '^ *+' conftest.er1 >conftest.err
8585 cat conftest.err >&5
8586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } && {
8588 test -z "$ac_c_werror_flag" ||
8589 test ! -s conftest.err
8590 } && test -s conftest.$ac_objext; then
8593 $as_echo "$as_me: failed program was:" >&5
8594 sed 's/^/| /' conftest.$ac_ext >&5
8596 ac_cv_type_size_t=yes
8599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8601 $as_echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8609 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8610 $as_echo "$ac_cv_type_size_t" >&6; }
8611 if test "x$ac_cv_type_size_t" = x""yes; then
8615 cat >>confdefs.h <<_ACEOF
8616 #define size_t unsigned int
8621 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
8622 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8623 if test "${ac_cv_type_uid_t+set}" = set; then
8624 $as_echo_n "(cached) " >&6
8626 cat >conftest.$ac_ext <<_ACEOF
8629 cat confdefs.h >>conftest.$ac_ext
8630 cat >>conftest.$ac_ext <<_ACEOF
8631 /* end confdefs.h. */
8632 #include <sys/types.h>
8635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8636 $EGREP "uid_t" >/dev/null 2>&1; then
8637 ac_cv_type_uid_t=yes
8644 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
8645 $as_echo "$ac_cv_type_uid_t" >&6; }
8646 if test $ac_cv_type_uid_t = no; then
8648 cat >>confdefs.h <<\_ACEOF
8653 cat >>confdefs.h <<\_ACEOF
8659 { $as_echo "$as_me:$LINENO: checking for major_t" >&5
8660 $as_echo_n "checking for major_t... " >&6; }
8661 if test "${ac_cv_type_major_t+set}" = set; then
8662 $as_echo_n "(cached) " >&6
8664 ac_cv_type_major_t=no
8665 cat >conftest.$ac_ext <<_ACEOF
8668 cat confdefs.h >>conftest.$ac_ext
8669 cat >>conftest.$ac_ext <<_ACEOF
8670 /* end confdefs.h. */
8671 $ac_includes_default
8675 if (sizeof (major_t))
8681 rm -f conftest.$ac_objext
8682 if { (ac_try="$ac_compile"
8684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8685 *) ac_try_echo=$ac_try;;
8687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8688 $as_echo "$ac_try_echo") >&5
8689 (eval "$ac_compile") 2>conftest.er1
8691 grep -v '^ *+' conftest.er1 >conftest.err
8693 cat conftest.err >&5
8694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); } && {
8696 test -z "$ac_c_werror_flag" ||
8697 test ! -s conftest.err
8698 } && test -s conftest.$ac_objext; then
8699 cat >conftest.$ac_ext <<_ACEOF
8702 cat confdefs.h >>conftest.$ac_ext
8703 cat >>conftest.$ac_ext <<_ACEOF
8704 /* end confdefs.h. */
8705 $ac_includes_default
8709 if (sizeof ((major_t)))
8715 rm -f conftest.$ac_objext
8716 if { (ac_try="$ac_compile"
8718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8719 *) ac_try_echo=$ac_try;;
8721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8722 $as_echo "$ac_try_echo") >&5
8723 (eval "$ac_compile") 2>conftest.er1
8725 grep -v '^ *+' conftest.er1 >conftest.err
8727 cat conftest.err >&5
8728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); } && {
8730 test -z "$ac_c_werror_flag" ||
8731 test ! -s conftest.err
8732 } && test -s conftest.$ac_objext; then
8735 $as_echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8738 ac_cv_type_major_t=yes
8741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8743 $as_echo "$as_me: failed program was:" >&5
8744 sed 's/^/| /' conftest.$ac_ext >&5
8749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8751 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
8752 $as_echo "$ac_cv_type_major_t" >&6; }
8753 if test "x$ac_cv_type_major_t" = x""yes; then
8757 cat >>confdefs.h <<\_ACEOF
8763 { $as_echo "$as_me:$LINENO: checking for minor_t" >&5
8764 $as_echo_n "checking for minor_t... " >&6; }
8765 if test "${ac_cv_type_minor_t+set}" = set; then
8766 $as_echo_n "(cached) " >&6
8768 ac_cv_type_minor_t=no
8769 cat >conftest.$ac_ext <<_ACEOF
8772 cat confdefs.h >>conftest.$ac_ext
8773 cat >>conftest.$ac_ext <<_ACEOF
8774 /* end confdefs.h. */
8775 $ac_includes_default
8779 if (sizeof (minor_t))
8785 rm -f conftest.$ac_objext
8786 if { (ac_try="$ac_compile"
8788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8789 *) ac_try_echo=$ac_try;;
8791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8792 $as_echo "$ac_try_echo") >&5
8793 (eval "$ac_compile") 2>conftest.er1
8795 grep -v '^ *+' conftest.er1 >conftest.err
8797 cat conftest.err >&5
8798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); } && {
8800 test -z "$ac_c_werror_flag" ||
8801 test ! -s conftest.err
8802 } && test -s conftest.$ac_objext; then
8803 cat >conftest.$ac_ext <<_ACEOF
8806 cat confdefs.h >>conftest.$ac_ext
8807 cat >>conftest.$ac_ext <<_ACEOF
8808 /* end confdefs.h. */
8809 $ac_includes_default
8813 if (sizeof ((minor_t)))
8819 rm -f conftest.$ac_objext
8820 if { (ac_try="$ac_compile"
8822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8823 *) ac_try_echo=$ac_try;;
8825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8826 $as_echo "$ac_try_echo") >&5
8827 (eval "$ac_compile") 2>conftest.er1
8829 grep -v '^ *+' conftest.er1 >conftest.err
8831 cat conftest.err >&5
8832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); } && {
8834 test -z "$ac_c_werror_flag" ||
8835 test ! -s conftest.err
8836 } && test -s conftest.$ac_objext; then
8839 $as_echo "$as_me: failed program was:" >&5
8840 sed 's/^/| /' conftest.$ac_ext >&5
8842 ac_cv_type_minor_t=yes
8845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8847 $as_echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.$ac_ext >&5
8853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8855 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
8856 $as_echo "$ac_cv_type_minor_t" >&6; }
8857 if test "x$ac_cv_type_minor_t" = x""yes; then
8861 cat >>confdefs.h <<\_ACEOF
8867 { $as_echo "$as_me:$LINENO: checking for dev_t" >&5
8868 $as_echo_n "checking for dev_t... " >&6; }
8869 if test "${ac_cv_type_dev_t+set}" = set; then
8870 $as_echo_n "(cached) " >&6
8873 cat >conftest.$ac_ext <<_ACEOF
8876 cat confdefs.h >>conftest.$ac_ext
8877 cat >>conftest.$ac_ext <<_ACEOF
8878 /* end confdefs.h. */
8879 $ac_includes_default
8889 rm -f conftest.$ac_objext
8890 if { (ac_try="$ac_compile"
8892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8893 *) ac_try_echo=$ac_try;;
8895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8896 $as_echo "$ac_try_echo") >&5
8897 (eval "$ac_compile") 2>conftest.er1
8899 grep -v '^ *+' conftest.er1 >conftest.err
8901 cat conftest.err >&5
8902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); } && {
8904 test -z "$ac_c_werror_flag" ||
8905 test ! -s conftest.err
8906 } && test -s conftest.$ac_objext; then
8907 cat >conftest.$ac_ext <<_ACEOF
8910 cat confdefs.h >>conftest.$ac_ext
8911 cat >>conftest.$ac_ext <<_ACEOF
8912 /* end confdefs.h. */
8913 $ac_includes_default
8917 if (sizeof ((dev_t)))
8923 rm -f conftest.$ac_objext
8924 if { (ac_try="$ac_compile"
8926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8927 *) ac_try_echo=$ac_try;;
8929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8930 $as_echo "$ac_try_echo") >&5
8931 (eval "$ac_compile") 2>conftest.er1
8933 grep -v '^ *+' conftest.er1 >conftest.err
8935 cat conftest.err >&5
8936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); } && {
8938 test -z "$ac_c_werror_flag" ||
8939 test ! -s conftest.err
8940 } && test -s conftest.$ac_objext; then
8943 $as_echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.$ac_ext >&5
8946 ac_cv_type_dev_t=yes
8949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8951 $as_echo "$as_me: failed program was:" >&5
8952 sed 's/^/| /' conftest.$ac_ext >&5
8957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8959 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
8960 $as_echo "$ac_cv_type_dev_t" >&6; }
8961 if test "x$ac_cv_type_dev_t" = x""yes; then
8965 cat >>confdefs.h <<_ACEOF
8966 #define dev_t unsigned
8971 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
8972 $as_echo_n "checking for ino_t... " >&6; }
8973 if test "${ac_cv_type_ino_t+set}" = set; then
8974 $as_echo_n "(cached) " >&6
8977 cat >conftest.$ac_ext <<_ACEOF
8980 cat confdefs.h >>conftest.$ac_ext
8981 cat >>conftest.$ac_ext <<_ACEOF
8982 /* end confdefs.h. */
8983 $ac_includes_default
8993 rm -f conftest.$ac_objext
8994 if { (ac_try="$ac_compile"
8996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8997 *) ac_try_echo=$ac_try;;
8999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9000 $as_echo "$ac_try_echo") >&5
9001 (eval "$ac_compile") 2>conftest.er1
9003 grep -v '^ *+' conftest.er1 >conftest.err
9005 cat conftest.err >&5
9006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } && {
9008 test -z "$ac_c_werror_flag" ||
9009 test ! -s conftest.err
9010 } && test -s conftest.$ac_objext; then
9011 cat >conftest.$ac_ext <<_ACEOF
9014 cat confdefs.h >>conftest.$ac_ext
9015 cat >>conftest.$ac_ext <<_ACEOF
9016 /* end confdefs.h. */
9017 $ac_includes_default
9021 if (sizeof ((ino_t)))
9027 rm -f conftest.$ac_objext
9028 if { (ac_try="$ac_compile"
9030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9031 *) ac_try_echo=$ac_try;;
9033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9034 $as_echo "$ac_try_echo") >&5
9035 (eval "$ac_compile") 2>conftest.er1
9037 grep -v '^ *+' conftest.er1 >conftest.err
9039 cat conftest.err >&5
9040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); } && {
9042 test -z "$ac_c_werror_flag" ||
9043 test ! -s conftest.err
9044 } && test -s conftest.$ac_objext; then
9047 $as_echo "$as_me: failed program was:" >&5
9048 sed 's/^/| /' conftest.$ac_ext >&5
9050 ac_cv_type_ino_t=yes
9053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9055 $as_echo "$as_me: failed program was:" >&5
9056 sed 's/^/| /' conftest.$ac_ext >&5
9061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9063 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
9064 $as_echo "$ac_cv_type_ino_t" >&6; }
9065 if test "x$ac_cv_type_ino_t" = x""yes; then
9069 cat >>confdefs.h <<_ACEOF
9070 #define ino_t unsigned
9077 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
9078 $as_echo_n "checking for ssize_t... " >&6; }
9079 if test "${gt_cv_ssize_t+set}" = set; then
9080 $as_echo_n "(cached) " >&6
9082 cat >conftest.$ac_ext <<_ACEOF
9085 cat confdefs.h >>conftest.$ac_ext
9086 cat >>conftest.$ac_ext <<_ACEOF
9087 /* end confdefs.h. */
9088 #include <sys/types.h>
9092 int x = sizeof (ssize_t *) + sizeof (ssize_t);
9098 rm -f conftest.$ac_objext
9099 if { (ac_try="$ac_compile"
9101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9102 *) ac_try_echo=$ac_try;;
9104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9105 $as_echo "$ac_try_echo") >&5
9106 (eval "$ac_compile") 2>conftest.er1
9108 grep -v '^ *+' conftest.er1 >conftest.err
9110 cat conftest.err >&5
9111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); } && {
9113 test -z "$ac_c_werror_flag" ||
9114 test ! -s conftest.err
9115 } && test -s conftest.$ac_objext; then
9118 $as_echo "$as_me: failed program was:" >&5
9119 sed 's/^/| /' conftest.$ac_ext >&5
9124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9126 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
9127 $as_echo "$gt_cv_ssize_t" >&6; }
9128 if test $gt_cv_ssize_t = no; then
9130 cat >>confdefs.h <<\_ACEOF
9144 LIBC_FATAL_STDERR_=1
9145 export LIBC_FATAL_STDERR_
9147 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9148 # for constant arguments. Useless!
9149 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
9150 $as_echo_n "checking for working alloca.h... " >&6; }
9151 if test "${ac_cv_working_alloca_h+set}" = set; then
9152 $as_echo_n "(cached) " >&6
9154 cat >conftest.$ac_ext <<_ACEOF
9157 cat confdefs.h >>conftest.$ac_ext
9158 cat >>conftest.$ac_ext <<_ACEOF
9159 /* end confdefs.h. */
9164 char *p = (char *) alloca (2 * sizeof (int));
9170 rm -f conftest.$ac_objext conftest$ac_exeext
9171 if { (ac_try="$ac_link"
9173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9174 *) ac_try_echo=$ac_try;;
9176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9177 $as_echo "$ac_try_echo") >&5
9178 (eval "$ac_link") 2>conftest.er1
9180 grep -v '^ *+' conftest.er1 >conftest.err
9182 cat conftest.err >&5
9183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); } && {
9185 test -z "$ac_c_werror_flag" ||
9186 test ! -s conftest.err
9187 } && test -s conftest$ac_exeext && {
9188 test "$cross_compiling" = yes ||
9189 $as_test_x conftest$ac_exeext
9191 ac_cv_working_alloca_h=yes
9193 $as_echo "$as_me: failed program was:" >&5
9194 sed 's/^/| /' conftest.$ac_ext >&5
9196 ac_cv_working_alloca_h=no
9199 rm -rf conftest.dSYM
9200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9201 conftest$ac_exeext conftest.$ac_ext
9203 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9204 $as_echo "$ac_cv_working_alloca_h" >&6; }
9205 if test $ac_cv_working_alloca_h = yes; then
9207 cat >>confdefs.h <<\_ACEOF
9208 #define HAVE_ALLOCA_H 1
9213 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
9214 $as_echo_n "checking for alloca... " >&6; }
9215 if test "${ac_cv_func_alloca_works+set}" = set; then
9216 $as_echo_n "(cached) " >&6
9218 cat >conftest.$ac_ext <<_ACEOF
9221 cat confdefs.h >>conftest.$ac_ext
9222 cat >>conftest.$ac_ext <<_ACEOF
9223 /* end confdefs.h. */
9225 # define alloca __builtin_alloca
9228 # include <malloc.h>
9229 # define alloca _alloca
9231 # ifdef HAVE_ALLOCA_H
9232 # include <alloca.h>
9237 # ifndef alloca /* predefined by HP cc +Olibcalls */
9248 char *p = (char *) alloca (1);
9254 rm -f conftest.$ac_objext conftest$ac_exeext
9255 if { (ac_try="$ac_link"
9257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9258 *) ac_try_echo=$ac_try;;
9260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9261 $as_echo "$ac_try_echo") >&5
9262 (eval "$ac_link") 2>conftest.er1
9264 grep -v '^ *+' conftest.er1 >conftest.err
9266 cat conftest.err >&5
9267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); } && {
9269 test -z "$ac_c_werror_flag" ||
9270 test ! -s conftest.err
9271 } && test -s conftest$ac_exeext && {
9272 test "$cross_compiling" = yes ||
9273 $as_test_x conftest$ac_exeext
9275 ac_cv_func_alloca_works=yes
9277 $as_echo "$as_me: failed program was:" >&5
9278 sed 's/^/| /' conftest.$ac_ext >&5
9280 ac_cv_func_alloca_works=no
9283 rm -rf conftest.dSYM
9284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9285 conftest$ac_exeext conftest.$ac_ext
9287 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9288 $as_echo "$ac_cv_func_alloca_works" >&6; }
9290 if test $ac_cv_func_alloca_works = yes; then
9292 cat >>confdefs.h <<\_ACEOF
9293 #define HAVE_ALLOCA 1
9297 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9298 # that cause trouble. Some versions do not even contain alloca or
9299 # contain a buggy version. If you still want to use their alloca,
9300 # use ar to extract alloca.o from them instead of compiling alloca.c.
9306 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9308 cat >>confdefs.h <<\_ACEOF
9313 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9314 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9315 if test "${ac_cv_os_cray+set}" = set; then
9316 $as_echo_n "(cached) " >&6
9318 cat >conftest.$ac_ext <<_ACEOF
9321 cat confdefs.h >>conftest.$ac_ext
9322 cat >>conftest.$ac_ext <<_ACEOF
9323 /* end confdefs.h. */
9324 #if defined CRAY && ! defined CRAY2
9331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9332 $EGREP "webecray" >/dev/null 2>&1; then
9340 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9341 $as_echo "$ac_cv_os_cray" >&6; }
9342 if test $ac_cv_os_cray = yes; then
9343 for ac_func in _getb67 GETB67 getb67; do
9344 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9345 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9346 $as_echo_n "checking for $ac_func... " >&6; }
9347 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9348 $as_echo_n "(cached) " >&6
9350 cat >conftest.$ac_ext <<_ACEOF
9353 cat confdefs.h >>conftest.$ac_ext
9354 cat >>conftest.$ac_ext <<_ACEOF
9355 /* end confdefs.h. */
9356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9358 #define $ac_func innocuous_$ac_func
9360 /* System header to define __stub macros and hopefully few prototypes,
9361 which can conflict with char $ac_func (); below.
9362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9363 <limits.h> exists even on freestanding compilers. */
9366 # include <limits.h>
9368 # include <assert.h>
9373 /* Override any GCC internal prototype to avoid an error.
9374 Use char because int might match the return type of a GCC
9375 builtin and then its argument prototype would still apply. */
9380 /* The GNU C library defines this for functions which it implements
9381 to always fail with ENOSYS. Some functions are actually named
9382 something starting with __ and the normal name is an alias. */
9383 #if defined __stub_$ac_func || defined __stub___$ac_func
9395 rm -f conftest.$ac_objext conftest$ac_exeext
9396 if { (ac_try="$ac_link"
9398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9399 *) ac_try_echo=$ac_try;;
9401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9402 $as_echo "$ac_try_echo") >&5
9403 (eval "$ac_link") 2>conftest.er1
9405 grep -v '^ *+' conftest.er1 >conftest.err
9407 cat conftest.err >&5
9408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); } && {
9410 test -z "$ac_c_werror_flag" ||
9411 test ! -s conftest.err
9412 } && test -s conftest$ac_exeext && {
9413 test "$cross_compiling" = yes ||
9414 $as_test_x conftest$ac_exeext
9416 eval "$as_ac_var=yes"
9418 $as_echo "$as_me: failed program was:" >&5
9419 sed 's/^/| /' conftest.$ac_ext >&5
9421 eval "$as_ac_var=no"
9424 rm -rf conftest.dSYM
9425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9426 conftest$ac_exeext conftest.$ac_ext
9428 ac_res=`eval 'as_val=${'$as_ac_var'}
9429 $as_echo "$as_val"'`
9430 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9431 $as_echo "$ac_res" >&6; }
9432 as_val=`eval 'as_val=${'$as_ac_var'}
9433 $as_echo "$as_val"'`
9434 if test "x$as_val" = x""yes; then
9436 cat >>confdefs.h <<_ACEOF
9437 #define CRAY_STACKSEG_END $ac_func
9446 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9447 $as_echo_n "checking stack direction for C alloca... " >&6; }
9448 if test "${ac_cv_c_stack_direction+set}" = set; then
9449 $as_echo_n "(cached) " >&6
9451 if test "$cross_compiling" = yes; then
9452 ac_cv_c_stack_direction=0
9454 cat >conftest.$ac_ext <<_ACEOF
9457 cat confdefs.h >>conftest.$ac_ext
9458 cat >>conftest.$ac_ext <<_ACEOF
9459 /* end confdefs.h. */
9460 $ac_includes_default
9462 find_stack_direction ()
9464 static char *addr = 0;
9469 return find_stack_direction ();
9472 return (&dummy > addr) ? 1 : -1;
9478 return find_stack_direction () < 0;
9481 rm -f conftest$ac_exeext
9482 if { (ac_try="$ac_link"
9484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9485 *) ac_try_echo=$ac_try;;
9487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9488 $as_echo "$ac_try_echo") >&5
9489 (eval "$ac_link") 2>&5
9491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9493 { (case "(($ac_try" in
9494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9495 *) ac_try_echo=$ac_try;;
9497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9498 $as_echo "$ac_try_echo") >&5
9499 (eval "$ac_try") 2>&5
9501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); }; }; then
9503 ac_cv_c_stack_direction=1
9505 $as_echo "$as_me: program exited with status $ac_status" >&5
9506 $as_echo "$as_me: failed program was:" >&5
9507 sed 's/^/| /' conftest.$ac_ext >&5
9510 ac_cv_c_stack_direction=-1
9512 rm -rf conftest.dSYM
9513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9518 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9519 $as_echo "$ac_cv_c_stack_direction" >&6; }
9521 cat >>confdefs.h <<_ACEOF
9522 #define STACK_DIRECTION $ac_cv_c_stack_direction
9528 { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
9529 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9530 if test "${ac_cv_c_restrict+set}" = set; then
9531 $as_echo_n "(cached) " >&6
9534 # The order here caters to the fact that C++ does not require restrict.
9535 for ac_kw in __restrict __restrict__ _Restrict restrict; do
9536 cat >conftest.$ac_ext <<_ACEOF
9539 cat confdefs.h >>conftest.$ac_ext
9540 cat >>conftest.$ac_ext <<_ACEOF
9541 /* end confdefs.h. */
9542 typedef int * int_ptr;
9543 int foo (int_ptr $ac_kw ip) {
9557 rm -f conftest.$ac_objext
9558 if { (ac_try="$ac_compile"
9560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9561 *) ac_try_echo=$ac_try;;
9563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9564 $as_echo "$ac_try_echo") >&5
9565 (eval "$ac_compile") 2>conftest.er1
9567 grep -v '^ *+' conftest.er1 >conftest.err
9569 cat conftest.err >&5
9570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); } && {
9572 test -z "$ac_c_werror_flag" ||
9573 test ! -s conftest.err
9574 } && test -s conftest.$ac_objext; then
9575 ac_cv_c_restrict=$ac_kw
9577 $as_echo "$as_me: failed program was:" >&5
9578 sed 's/^/| /' conftest.$ac_ext >&5
9583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9584 test "$ac_cv_c_restrict" != no && break
9588 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
9589 $as_echo "$ac_cv_c_restrict" >&6; }
9592 case $ac_cv_c_restrict in
9594 no) cat >>confdefs.h <<\_ACEOF
9595 #define restrict /**/
9598 *) cat >>confdefs.h <<_ACEOF
9599 #define restrict $ac_cv_c_restrict
9604 { $as_echo "$as_me:$LINENO: checking whether getenv is declared" >&5
9605 $as_echo_n "checking whether getenv is declared... " >&6; }
9606 if test "${ac_cv_have_decl_getenv+set}" = set; then
9607 $as_echo_n "(cached) " >&6
9609 cat >conftest.$ac_ext <<_ACEOF
9612 cat confdefs.h >>conftest.$ac_ext
9613 cat >>conftest.$ac_ext <<_ACEOF
9614 /* end confdefs.h. */
9615 $ac_includes_default
9627 rm -f conftest.$ac_objext
9628 if { (ac_try="$ac_compile"
9630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9631 *) ac_try_echo=$ac_try;;
9633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9634 $as_echo "$ac_try_echo") >&5
9635 (eval "$ac_compile") 2>conftest.er1
9637 grep -v '^ *+' conftest.er1 >conftest.err
9639 cat conftest.err >&5
9640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } && {
9642 test -z "$ac_c_werror_flag" ||
9643 test ! -s conftest.err
9644 } && test -s conftest.$ac_objext; then
9645 ac_cv_have_decl_getenv=yes
9647 $as_echo "$as_me: failed program was:" >&5
9648 sed 's/^/| /' conftest.$ac_ext >&5
9650 ac_cv_have_decl_getenv=no
9653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9655 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
9656 $as_echo "$ac_cv_have_decl_getenv" >&6; }
9657 if test "x$ac_cv_have_decl_getenv" = x""yes; then
9659 cat >>confdefs.h <<_ACEOF
9660 #define HAVE_DECL_GETENV 1
9665 cat >>confdefs.h <<_ACEOF
9666 #define HAVE_DECL_GETENV 0
9673 { $as_echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
9674 $as_echo_n "checking whether clearerr_unlocked is declared... " >&6; }
9675 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
9676 $as_echo_n "(cached) " >&6
9678 cat >conftest.$ac_ext <<_ACEOF
9681 cat confdefs.h >>conftest.$ac_ext
9682 cat >>conftest.$ac_ext <<_ACEOF
9683 /* end confdefs.h. */
9684 $ac_includes_default
9688 #ifndef clearerr_unlocked
9689 (void) clearerr_unlocked;
9696 rm -f conftest.$ac_objext
9697 if { (ac_try="$ac_compile"
9699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9700 *) ac_try_echo=$ac_try;;
9702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9703 $as_echo "$ac_try_echo") >&5
9704 (eval "$ac_compile") 2>conftest.er1
9706 grep -v '^ *+' conftest.er1 >conftest.err
9708 cat conftest.err >&5
9709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); } && {
9711 test -z "$ac_c_werror_flag" ||
9712 test ! -s conftest.err
9713 } && test -s conftest.$ac_objext; then
9714 ac_cv_have_decl_clearerr_unlocked=yes
9716 $as_echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9719 ac_cv_have_decl_clearerr_unlocked=no
9722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9724 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
9725 $as_echo "$ac_cv_have_decl_clearerr_unlocked" >&6; }
9726 if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then
9728 cat >>confdefs.h <<_ACEOF
9729 #define HAVE_DECL_CLEARERR_UNLOCKED 1
9734 cat >>confdefs.h <<_ACEOF
9735 #define HAVE_DECL_CLEARERR_UNLOCKED 0
9742 { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9743 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
9744 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9745 $as_echo_n "(cached) " >&6
9747 cat >conftest.$ac_ext <<_ACEOF
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h. */
9753 $ac_includes_default
9757 #ifndef feof_unlocked
9758 (void) feof_unlocked;
9765 rm -f conftest.$ac_objext
9766 if { (ac_try="$ac_compile"
9768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769 *) ac_try_echo=$ac_try;;
9771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9772 $as_echo "$ac_try_echo") >&5
9773 (eval "$ac_compile") 2>conftest.er1
9775 grep -v '^ *+' conftest.er1 >conftest.err
9777 cat conftest.err >&5
9778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); } && {
9780 test -z "$ac_c_werror_flag" ||
9781 test ! -s conftest.err
9782 } && test -s conftest.$ac_objext; then
9783 ac_cv_have_decl_feof_unlocked=yes
9785 $as_echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.$ac_ext >&5
9788 ac_cv_have_decl_feof_unlocked=no
9791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9793 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9794 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
9795 if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then
9797 cat >>confdefs.h <<_ACEOF
9798 #define HAVE_DECL_FEOF_UNLOCKED 1
9803 cat >>confdefs.h <<_ACEOF
9804 #define HAVE_DECL_FEOF_UNLOCKED 0
9811 { $as_echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
9812 $as_echo_n "checking whether ferror_unlocked is declared... " >&6; }
9813 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
9814 $as_echo_n "(cached) " >&6
9816 cat >conftest.$ac_ext <<_ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h. */
9822 $ac_includes_default
9826 #ifndef ferror_unlocked
9827 (void) ferror_unlocked;
9834 rm -f conftest.$ac_objext
9835 if { (ac_try="$ac_compile"
9837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838 *) ac_try_echo=$ac_try;;
9840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9841 $as_echo "$ac_try_echo") >&5
9842 (eval "$ac_compile") 2>conftest.er1
9844 grep -v '^ *+' conftest.er1 >conftest.err
9846 cat conftest.err >&5
9847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); } && {
9849 test -z "$ac_c_werror_flag" ||
9850 test ! -s conftest.err
9851 } && test -s conftest.$ac_objext; then
9852 ac_cv_have_decl_ferror_unlocked=yes
9854 $as_echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.$ac_ext >&5
9857 ac_cv_have_decl_ferror_unlocked=no
9860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9862 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
9863 $as_echo "$ac_cv_have_decl_ferror_unlocked" >&6; }
9864 if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then
9866 cat >>confdefs.h <<_ACEOF
9867 #define HAVE_DECL_FERROR_UNLOCKED 1
9872 cat >>confdefs.h <<_ACEOF
9873 #define HAVE_DECL_FERROR_UNLOCKED 0
9880 { $as_echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
9881 $as_echo_n "checking whether fflush_unlocked is declared... " >&6; }
9882 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
9883 $as_echo_n "(cached) " >&6
9885 cat >conftest.$ac_ext <<_ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h. */
9891 $ac_includes_default
9895 #ifndef fflush_unlocked
9896 (void) fflush_unlocked;
9903 rm -f conftest.$ac_objext
9904 if { (ac_try="$ac_compile"
9906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9907 *) ac_try_echo=$ac_try;;
9909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9910 $as_echo "$ac_try_echo") >&5
9911 (eval "$ac_compile") 2>conftest.er1
9913 grep -v '^ *+' conftest.er1 >conftest.err
9915 cat conftest.err >&5
9916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); } && {
9918 test -z "$ac_c_werror_flag" ||
9919 test ! -s conftest.err
9920 } && test -s conftest.$ac_objext; then
9921 ac_cv_have_decl_fflush_unlocked=yes
9923 $as_echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.$ac_ext >&5
9926 ac_cv_have_decl_fflush_unlocked=no
9929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9931 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
9932 $as_echo "$ac_cv_have_decl_fflush_unlocked" >&6; }
9933 if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then
9935 cat >>confdefs.h <<_ACEOF
9936 #define HAVE_DECL_FFLUSH_UNLOCKED 1
9941 cat >>confdefs.h <<_ACEOF
9942 #define HAVE_DECL_FFLUSH_UNLOCKED 0
9949 { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9950 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
9951 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9952 $as_echo_n "(cached) " >&6
9954 cat >conftest.$ac_ext <<_ACEOF
9957 cat confdefs.h >>conftest.$ac_ext
9958 cat >>conftest.$ac_ext <<_ACEOF
9959 /* end confdefs.h. */
9960 $ac_includes_default
9964 #ifndef fgets_unlocked
9965 (void) fgets_unlocked;
9972 rm -f conftest.$ac_objext
9973 if { (ac_try="$ac_compile"
9975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976 *) ac_try_echo=$ac_try;;
9978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9979 $as_echo "$ac_try_echo") >&5
9980 (eval "$ac_compile") 2>conftest.er1
9982 grep -v '^ *+' conftest.er1 >conftest.err
9984 cat conftest.err >&5
9985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); } && {
9987 test -z "$ac_c_werror_flag" ||
9988 test ! -s conftest.err
9989 } && test -s conftest.$ac_objext; then
9990 ac_cv_have_decl_fgets_unlocked=yes
9992 $as_echo "$as_me: failed program was:" >&5
9993 sed 's/^/| /' conftest.$ac_ext >&5
9995 ac_cv_have_decl_fgets_unlocked=no
9998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10000 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
10001 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
10002 if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then
10004 cat >>confdefs.h <<_ACEOF
10005 #define HAVE_DECL_FGETS_UNLOCKED 1
10010 cat >>confdefs.h <<_ACEOF
10011 #define HAVE_DECL_FGETS_UNLOCKED 0
10018 { $as_echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
10019 $as_echo_n "checking whether fputc_unlocked is declared... " >&6; }
10020 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
10021 $as_echo_n "(cached) " >&6
10023 cat >conftest.$ac_ext <<_ACEOF
10026 cat confdefs.h >>conftest.$ac_ext
10027 cat >>conftest.$ac_ext <<_ACEOF
10028 /* end confdefs.h. */
10029 $ac_includes_default
10033 #ifndef fputc_unlocked
10034 (void) fputc_unlocked;
10041 rm -f conftest.$ac_objext
10042 if { (ac_try="$ac_compile"
10043 case "(($ac_try" in
10044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10045 *) ac_try_echo=$ac_try;;
10047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10048 $as_echo "$ac_try_echo") >&5
10049 (eval "$ac_compile") 2>conftest.er1
10051 grep -v '^ *+' conftest.er1 >conftest.err
10053 cat conftest.err >&5
10054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } && {
10056 test -z "$ac_c_werror_flag" ||
10057 test ! -s conftest.err
10058 } && test -s conftest.$ac_objext; then
10059 ac_cv_have_decl_fputc_unlocked=yes
10061 $as_echo "$as_me: failed program was:" >&5
10062 sed 's/^/| /' conftest.$ac_ext >&5
10064 ac_cv_have_decl_fputc_unlocked=no
10067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10069 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
10070 $as_echo "$ac_cv_have_decl_fputc_unlocked" >&6; }
10071 if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then
10073 cat >>confdefs.h <<_ACEOF
10074 #define HAVE_DECL_FPUTC_UNLOCKED 1
10079 cat >>confdefs.h <<_ACEOF
10080 #define HAVE_DECL_FPUTC_UNLOCKED 0
10087 { $as_echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
10088 $as_echo_n "checking whether fputs_unlocked is declared... " >&6; }
10089 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
10090 $as_echo_n "(cached) " >&6
10092 cat >conftest.$ac_ext <<_ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h. */
10098 $ac_includes_default
10102 #ifndef fputs_unlocked
10103 (void) fputs_unlocked;
10110 rm -f conftest.$ac_objext
10111 if { (ac_try="$ac_compile"
10112 case "(($ac_try" in
10113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10114 *) ac_try_echo=$ac_try;;
10116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10117 $as_echo "$ac_try_echo") >&5
10118 (eval "$ac_compile") 2>conftest.er1
10120 grep -v '^ *+' conftest.er1 >conftest.err
10122 cat conftest.err >&5
10123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124 (exit $ac_status); } && {
10125 test -z "$ac_c_werror_flag" ||
10126 test ! -s conftest.err
10127 } && test -s conftest.$ac_objext; then
10128 ac_cv_have_decl_fputs_unlocked=yes
10130 $as_echo "$as_me: failed program was:" >&5
10131 sed 's/^/| /' conftest.$ac_ext >&5
10133 ac_cv_have_decl_fputs_unlocked=no
10136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10138 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
10139 $as_echo "$ac_cv_have_decl_fputs_unlocked" >&6; }
10140 if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then
10142 cat >>confdefs.h <<_ACEOF
10143 #define HAVE_DECL_FPUTS_UNLOCKED 1
10148 cat >>confdefs.h <<_ACEOF
10149 #define HAVE_DECL_FPUTS_UNLOCKED 0
10156 { $as_echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
10157 $as_echo_n "checking whether fread_unlocked is declared... " >&6; }
10158 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
10159 $as_echo_n "(cached) " >&6
10161 cat >conftest.$ac_ext <<_ACEOF
10164 cat confdefs.h >>conftest.$ac_ext
10165 cat >>conftest.$ac_ext <<_ACEOF
10166 /* end confdefs.h. */
10167 $ac_includes_default
10171 #ifndef fread_unlocked
10172 (void) fread_unlocked;
10179 rm -f conftest.$ac_objext
10180 if { (ac_try="$ac_compile"
10181 case "(($ac_try" in
10182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10183 *) ac_try_echo=$ac_try;;
10185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10186 $as_echo "$ac_try_echo") >&5
10187 (eval "$ac_compile") 2>conftest.er1
10189 grep -v '^ *+' conftest.er1 >conftest.err
10191 cat conftest.err >&5
10192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } && {
10194 test -z "$ac_c_werror_flag" ||
10195 test ! -s conftest.err
10196 } && test -s conftest.$ac_objext; then
10197 ac_cv_have_decl_fread_unlocked=yes
10199 $as_echo "$as_me: failed program was:" >&5
10200 sed 's/^/| /' conftest.$ac_ext >&5
10202 ac_cv_have_decl_fread_unlocked=no
10205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10207 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
10208 $as_echo "$ac_cv_have_decl_fread_unlocked" >&6; }
10209 if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then
10211 cat >>confdefs.h <<_ACEOF
10212 #define HAVE_DECL_FREAD_UNLOCKED 1
10217 cat >>confdefs.h <<_ACEOF
10218 #define HAVE_DECL_FREAD_UNLOCKED 0
10225 { $as_echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
10226 $as_echo_n "checking whether fwrite_unlocked is declared... " >&6; }
10227 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
10228 $as_echo_n "(cached) " >&6
10230 cat >conftest.$ac_ext <<_ACEOF
10233 cat confdefs.h >>conftest.$ac_ext
10234 cat >>conftest.$ac_ext <<_ACEOF
10235 /* end confdefs.h. */
10236 $ac_includes_default
10240 #ifndef fwrite_unlocked
10241 (void) fwrite_unlocked;
10248 rm -f conftest.$ac_objext
10249 if { (ac_try="$ac_compile"
10250 case "(($ac_try" in
10251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252 *) ac_try_echo=$ac_try;;
10254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10255 $as_echo "$ac_try_echo") >&5
10256 (eval "$ac_compile") 2>conftest.er1
10258 grep -v '^ *+' conftest.er1 >conftest.err
10260 cat conftest.err >&5
10261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); } && {
10263 test -z "$ac_c_werror_flag" ||
10264 test ! -s conftest.err
10265 } && test -s conftest.$ac_objext; then
10266 ac_cv_have_decl_fwrite_unlocked=yes
10268 $as_echo "$as_me: failed program was:" >&5
10269 sed 's/^/| /' conftest.$ac_ext >&5
10271 ac_cv_have_decl_fwrite_unlocked=no
10274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10276 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
10277 $as_echo "$ac_cv_have_decl_fwrite_unlocked" >&6; }
10278 if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then
10280 cat >>confdefs.h <<_ACEOF
10281 #define HAVE_DECL_FWRITE_UNLOCKED 1
10286 cat >>confdefs.h <<_ACEOF
10287 #define HAVE_DECL_FWRITE_UNLOCKED 0
10294 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10295 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
10296 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10297 $as_echo_n "(cached) " >&6
10299 cat >conftest.$ac_ext <<_ACEOF
10302 cat confdefs.h >>conftest.$ac_ext
10303 cat >>conftest.$ac_ext <<_ACEOF
10304 /* end confdefs.h. */
10305 $ac_includes_default
10309 #ifndef getc_unlocked
10310 (void) getc_unlocked;
10317 rm -f conftest.$ac_objext
10318 if { (ac_try="$ac_compile"
10319 case "(($ac_try" in
10320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321 *) ac_try_echo=$ac_try;;
10323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10324 $as_echo "$ac_try_echo") >&5
10325 (eval "$ac_compile") 2>conftest.er1
10327 grep -v '^ *+' conftest.er1 >conftest.err
10329 cat conftest.err >&5
10330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); } && {
10332 test -z "$ac_c_werror_flag" ||
10333 test ! -s conftest.err
10334 } && test -s conftest.$ac_objext; then
10335 ac_cv_have_decl_getc_unlocked=yes
10337 $as_echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10340 ac_cv_have_decl_getc_unlocked=no
10343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10345 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10346 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
10347 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
10349 cat >>confdefs.h <<_ACEOF
10350 #define HAVE_DECL_GETC_UNLOCKED 1
10355 cat >>confdefs.h <<_ACEOF
10356 #define HAVE_DECL_GETC_UNLOCKED 0
10363 { $as_echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
10364 $as_echo_n "checking whether getchar_unlocked is declared... " >&6; }
10365 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
10366 $as_echo_n "(cached) " >&6
10368 cat >conftest.$ac_ext <<_ACEOF
10371 cat confdefs.h >>conftest.$ac_ext
10372 cat >>conftest.$ac_ext <<_ACEOF
10373 /* end confdefs.h. */
10374 $ac_includes_default
10378 #ifndef getchar_unlocked
10379 (void) getchar_unlocked;
10386 rm -f conftest.$ac_objext
10387 if { (ac_try="$ac_compile"
10388 case "(($ac_try" in
10389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390 *) ac_try_echo=$ac_try;;
10392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10393 $as_echo "$ac_try_echo") >&5
10394 (eval "$ac_compile") 2>conftest.er1
10396 grep -v '^ *+' conftest.er1 >conftest.err
10398 cat conftest.err >&5
10399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); } && {
10401 test -z "$ac_c_werror_flag" ||
10402 test ! -s conftest.err
10403 } && test -s conftest.$ac_objext; then
10404 ac_cv_have_decl_getchar_unlocked=yes
10406 $as_echo "$as_me: failed program was:" >&5
10407 sed 's/^/| /' conftest.$ac_ext >&5
10409 ac_cv_have_decl_getchar_unlocked=no
10412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10414 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
10415 $as_echo "$ac_cv_have_decl_getchar_unlocked" >&6; }
10416 if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then
10418 cat >>confdefs.h <<_ACEOF
10419 #define HAVE_DECL_GETCHAR_UNLOCKED 1
10424 cat >>confdefs.h <<_ACEOF
10425 #define HAVE_DECL_GETCHAR_UNLOCKED 0
10432 { $as_echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
10433 $as_echo_n "checking whether putc_unlocked is declared... " >&6; }
10434 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
10435 $as_echo_n "(cached) " >&6
10437 cat >conftest.$ac_ext <<_ACEOF
10440 cat confdefs.h >>conftest.$ac_ext
10441 cat >>conftest.$ac_ext <<_ACEOF
10442 /* end confdefs.h. */
10443 $ac_includes_default
10447 #ifndef putc_unlocked
10448 (void) putc_unlocked;
10455 rm -f conftest.$ac_objext
10456 if { (ac_try="$ac_compile"
10457 case "(($ac_try" in
10458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10459 *) ac_try_echo=$ac_try;;
10461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10462 $as_echo "$ac_try_echo") >&5
10463 (eval "$ac_compile") 2>conftest.er1
10465 grep -v '^ *+' conftest.er1 >conftest.err
10467 cat conftest.err >&5
10468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); } && {
10470 test -z "$ac_c_werror_flag" ||
10471 test ! -s conftest.err
10472 } && test -s conftest.$ac_objext; then
10473 ac_cv_have_decl_putc_unlocked=yes
10475 $as_echo "$as_me: failed program was:" >&5
10476 sed 's/^/| /' conftest.$ac_ext >&5
10478 ac_cv_have_decl_putc_unlocked=no
10481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10483 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
10484 $as_echo "$ac_cv_have_decl_putc_unlocked" >&6; }
10485 if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then
10487 cat >>confdefs.h <<_ACEOF
10488 #define HAVE_DECL_PUTC_UNLOCKED 1
10493 cat >>confdefs.h <<_ACEOF
10494 #define HAVE_DECL_PUTC_UNLOCKED 0
10501 { $as_echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
10502 $as_echo_n "checking whether putchar_unlocked is declared... " >&6; }
10503 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
10504 $as_echo_n "(cached) " >&6
10506 cat >conftest.$ac_ext <<_ACEOF
10509 cat confdefs.h >>conftest.$ac_ext
10510 cat >>conftest.$ac_ext <<_ACEOF
10511 /* end confdefs.h. */
10512 $ac_includes_default
10516 #ifndef putchar_unlocked
10517 (void) putchar_unlocked;
10524 rm -f conftest.$ac_objext
10525 if { (ac_try="$ac_compile"
10526 case "(($ac_try" in
10527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10528 *) ac_try_echo=$ac_try;;
10530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10531 $as_echo "$ac_try_echo") >&5
10532 (eval "$ac_compile") 2>conftest.er1
10534 grep -v '^ *+' conftest.er1 >conftest.err
10536 cat conftest.err >&5
10537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); } && {
10539 test -z "$ac_c_werror_flag" ||
10540 test ! -s conftest.err
10541 } && test -s conftest.$ac_objext; then
10542 ac_cv_have_decl_putchar_unlocked=yes
10544 $as_echo "$as_me: failed program was:" >&5
10545 sed 's/^/| /' conftest.$ac_ext >&5
10547 ac_cv_have_decl_putchar_unlocked=no
10550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10552 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
10553 $as_echo "$ac_cv_have_decl_putchar_unlocked" >&6; }
10554 if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then
10556 cat >>confdefs.h <<_ACEOF
10557 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
10562 cat >>confdefs.h <<_ACEOF
10563 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
10574 for ac_func in $ac_func_list
10576 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10577 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10578 $as_echo_n "checking for $ac_func... " >&6; }
10579 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10580 $as_echo_n "(cached) " >&6
10582 cat >conftest.$ac_ext <<_ACEOF
10585 cat confdefs.h >>conftest.$ac_ext
10586 cat >>conftest.$ac_ext <<_ACEOF
10587 /* end confdefs.h. */
10588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10590 #define $ac_func innocuous_$ac_func
10592 /* System header to define __stub macros and hopefully few prototypes,
10593 which can conflict with char $ac_func (); below.
10594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10595 <limits.h> exists even on freestanding compilers. */
10598 # include <limits.h>
10600 # include <assert.h>
10605 /* Override any GCC internal prototype to avoid an error.
10606 Use char because int might match the return type of a GCC
10607 builtin and then its argument prototype would still apply. */
10612 /* The GNU C library defines this for functions which it implements
10613 to always fail with ENOSYS. Some functions are actually named
10614 something starting with __ and the normal name is an alias. */
10615 #if defined __stub_$ac_func || defined __stub___$ac_func
10622 return $ac_func ();
10627 rm -f conftest.$ac_objext conftest$ac_exeext
10628 if { (ac_try="$ac_link"
10629 case "(($ac_try" in
10630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10631 *) ac_try_echo=$ac_try;;
10633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10634 $as_echo "$ac_try_echo") >&5
10635 (eval "$ac_link") 2>conftest.er1
10637 grep -v '^ *+' conftest.er1 >conftest.err
10639 cat conftest.err >&5
10640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } && {
10642 test -z "$ac_c_werror_flag" ||
10643 test ! -s conftest.err
10644 } && test -s conftest$ac_exeext && {
10645 test "$cross_compiling" = yes ||
10646 $as_test_x conftest$ac_exeext
10648 eval "$as_ac_var=yes"
10650 $as_echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10653 eval "$as_ac_var=no"
10656 rm -rf conftest.dSYM
10657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10658 conftest$ac_exeext conftest.$ac_ext
10660 ac_res=`eval 'as_val=${'$as_ac_var'}
10661 $as_echo "$as_val"'`
10662 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10663 $as_echo "$ac_res" >&6; }
10664 as_val=`eval 'as_val=${'$as_ac_var'}
10665 $as_echo "$as_val"'`
10666 if test "x$as_val" = x""yes; then
10667 cat >>confdefs.h <<_ACEOF
10668 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10683 XGETTEXT_EXTRA_OPTIONS=
10685 { $as_echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
10686 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
10687 if test "${gl_cv_struct_dirent_d_ino+set}" = set; then
10688 $as_echo_n "(cached) " >&6
10690 if test "$cross_compiling" = yes; then
10691 gl_cv_struct_dirent_d_ino=no
10693 cat >conftest.$ac_ext <<_ACEOF
10696 cat confdefs.h >>conftest.$ac_ext
10697 cat >>conftest.$ac_ext <<_ACEOF
10698 /* end confdefs.h. */
10699 #include <sys/types.h>
10700 #include <sys/stat.h>
10701 #include <dirent.h>
10706 DIR *dp = opendir (".");
10714 if (stat (e->d_name, &st) != 0)
10716 if (e->d_ino != st.st_ino)
10724 rm -f conftest$ac_exeext
10725 if { (ac_try="$ac_link"
10726 case "(($ac_try" in
10727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10728 *) ac_try_echo=$ac_try;;
10730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10731 $as_echo "$ac_try_echo") >&5
10732 (eval "$ac_link") 2>&5
10734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10736 { (case "(($ac_try" in
10737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10738 *) ac_try_echo=$ac_try;;
10740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10741 $as_echo "$ac_try_echo") >&5
10742 (eval "$ac_try") 2>&5
10744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); }; }; then
10746 gl_cv_struct_dirent_d_ino=yes
10748 $as_echo "$as_me: program exited with status $ac_status" >&5
10749 $as_echo "$as_me: failed program was:" >&5
10750 sed 's/^/| /' conftest.$ac_ext >&5
10752 ( exit $ac_status )
10753 gl_cv_struct_dirent_d_ino=no
10755 rm -rf conftest.dSYM
10756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10761 { $as_echo "$as_me:$LINENO: result: $gl_cv_struct_dirent_d_ino" >&5
10762 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
10763 if test $gl_cv_struct_dirent_d_ino = yes; then
10765 cat >>confdefs.h <<\_ACEOF
10766 #define D_INO_IN_DIRENT 1
10772 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
10773 $as_echo_n "checking for long file names... " >&6; }
10774 if test "${ac_cv_sys_long_file_names+set}" = set; then
10775 $as_echo_n "(cached) " >&6
10777 ac_cv_sys_long_file_names=yes
10778 # Test for long file names in all the places we know might matter:
10779 # . the current directory, where building will happen
10780 # $prefix/lib where we will be installing things
10781 # $exec_prefix/lib likewise
10782 # $TMPDIR if set, where it might want to write temporary files
10783 # /tmp where it might want to write temporary files
10784 # /var/tmp likewise
10785 # /usr/tmp likewise
10786 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
10787 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
10788 # in the usual case where exec_prefix is '${prefix}'.
10790 . | /* | ?:[\\/]*) ;; #(
10793 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
10794 ac_xdir=$ac_dir/cf$$
10795 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
10796 ac_tf1=$ac_xdir/conftest9012345
10797 ac_tf2=$ac_xdir/conftest9012346
10798 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
10799 ac_cv_sys_long_file_names=no
10800 rm -f -r "$ac_xdir" 2>/dev/null
10801 test $ac_cv_sys_long_file_names = no && break
10804 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
10805 $as_echo "$ac_cv_sys_long_file_names" >&6; }
10806 if test $ac_cv_sys_long_file_names = yes; then
10808 cat >>confdefs.h <<\_ACEOF
10809 #define HAVE_LONG_FILE_NAMES 1
10822 GNULIB_MBSRTOWCS=0;
10823 GNULIB_MBSNRTOWCS=0;
10825 GNULIB_WCSRTOMBS=0;
10826 GNULIB_WCSNRTOMBS=0;
10843 GNULIB_WCSCASECMP=0;
10844 GNULIB_WCSNCASECMP=0;
10881 HAVE_WCSNCASECMP=1;
10894 HAVE_DECL_WCWIDTH=1;
10895 REPLACE_MBSTATE_T=0;
10901 REPLACE_MBSRTOWCS=0;
10902 REPLACE_MBSNRTOWCS=0;
10904 REPLACE_WCSRTOMBS=0;
10905 REPLACE_WCSNRTOMBS=0;
10907 REPLACE_WCSWIDTH=0;
10910 { $as_echo "$as_me:$LINENO: checking whether <wchar.h> uses 'inline' correctly" >&5
10911 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
10912 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then
10913 $as_echo_n "(cached) " >&6
10915 gl_cv_header_wchar_h_correct_inline=yes
10916 cat >conftest.$ac_ext <<_ACEOF
10920 cat confdefs.h >>conftest.$ac_ext
10921 cat >>conftest.$ac_ext <<_ACEOF
10922 /* end confdefs.h. */
10923 #define wcstod renamed_wcstod
10924 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10926 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10927 included before <wchar.h>. */
10928 #include <stddef.h>
10932 extern int zero (void);
10933 int main () { return zero(); }
10936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10937 (eval $ac_compile) 2>&5
10939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); }; then
10941 mv conftest.$ac_objext conftest1.$ac_objext
10942 cat >conftest.$ac_ext <<_ACEOF
10946 cat confdefs.h >>conftest.$ac_ext
10947 cat >>conftest.$ac_ext <<_ACEOF
10948 /* end confdefs.h. */
10949 #define wcstod renamed_wcstod
10950 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10952 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10953 included before <wchar.h>. */
10954 #include <stddef.h>
10958 int zero (void) { return 0; }
10961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10962 (eval $ac_compile) 2>&5
10964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); }; then
10966 mv conftest.$ac_objext conftest2.$ac_objext
10967 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
10970 gl_cv_header_wchar_h_correct_inline=no
10974 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
10977 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_correct_inline" >&5
10978 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
10979 if test $gl_cv_header_wchar_h_correct_inline = no; then
10980 { { $as_echo "$as_me:$LINENO: error: <wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
10981 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
10982 C99 mode. You have four options:
10983 - Add the flag -fgnu89-inline to CC and reconfigure, or
10984 - Fix your include files, using parts of
10985 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
10986 - Use a gcc version older than 4.3, or
10987 - Don't use the flags -std=c99 or -std=gnu99.
10988 Configuration aborted." >&5
10989 $as_echo "$as_me: error: <wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
10990 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
10991 C99 mode. You have four options:
10992 - Add the flag -fgnu89-inline to CC and reconfigure, or
10993 - Fix your include files, using parts of
10994 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
10995 - Use a gcc version older than 4.3, or
10996 - Don't use the flags -std=c99 or -std=gnu99.
10997 Configuration aborted." >&2;}
10998 { (exit 1); exit 1; }; }
11004 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11005 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11006 if test "${am_cv_langinfo_codeset+set}" = set; then
11007 $as_echo_n "(cached) " >&6
11009 cat >conftest.$ac_ext <<_ACEOF
11012 cat confdefs.h >>conftest.$ac_ext
11013 cat >>conftest.$ac_ext <<_ACEOF
11014 /* end confdefs.h. */
11015 #include <langinfo.h>
11019 char* cs = nl_langinfo(CODESET); return !cs;
11024 rm -f conftest.$ac_objext conftest$ac_exeext
11025 if { (ac_try="$ac_link"
11026 case "(($ac_try" in
11027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028 *) ac_try_echo=$ac_try;;
11030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11031 $as_echo "$ac_try_echo") >&5
11032 (eval "$ac_link") 2>conftest.er1
11034 grep -v '^ *+' conftest.er1 >conftest.err
11036 cat conftest.err >&5
11037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } && {
11039 test -z "$ac_c_werror_flag" ||
11040 test ! -s conftest.err
11041 } && test -s conftest$ac_exeext && {
11042 test "$cross_compiling" = yes ||
11043 $as_test_x conftest$ac_exeext
11045 am_cv_langinfo_codeset=yes
11047 $as_echo "$as_me: failed program was:" >&5
11048 sed 's/^/| /' conftest.$ac_ext >&5
11050 am_cv_langinfo_codeset=no
11053 rm -rf conftest.dSYM
11054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11055 conftest$ac_exeext conftest.$ac_ext
11058 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11059 $as_echo "$am_cv_langinfo_codeset" >&6; }
11060 if test $am_cv_langinfo_codeset = yes; then
11062 cat >>confdefs.h <<\_ACEOF
11063 #define HAVE_LANGINFO_CODESET 1
11071 { $as_echo "$as_me:$LINENO: checking for a traditional french locale" >&5
11072 $as_echo_n "checking for a traditional french locale... " >&6; }
11073 if test "${gt_cv_locale_fr+set}" = set; then
11074 $as_echo_n "(cached) " >&6
11077 cat >conftest.$ac_ext <<_ACEOF
11080 cat confdefs.h >>conftest.$ac_ext
11081 cat >>conftest.$ac_ext <<_ACEOF
11082 /* end confdefs.h. */
11084 #include <locale.h>
11086 #if HAVE_LANGINFO_CODESET
11087 # include <langinfo.h>
11089 #include <stdlib.h>
11090 #include <string.h>
11094 /* Check whether the given locale name is recognized by the system. */
11095 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
11096 /* On native Win32, setlocale(category, "") looks at the system settings,
11097 not at the environment variables. Also, when an encoding suffix such
11098 as ".65001" or ".54936" is speficied, it succeeds but sets the LC_CTYPE
11099 category of the locale to "C". */
11100 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
11101 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
11104 if (setlocale (LC_ALL, "") == NULL) return 1;
11106 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
11107 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
11108 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
11109 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
11110 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
11111 some unit tests fail.
11112 On MirBSD 10, when an unsupported locale is specified, setlocale()
11113 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
11114 #if HAVE_LANGINFO_CODESET
11116 const char *cs = nl_langinfo (CODESET);
11117 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
11118 || strcmp (cs, "UTF-8") == 0)
11123 /* On Cygwin, avoid locale names without encoding suffix, because the
11124 locale_charset() function relies on the encoding suffix. Note that
11125 LC_ALL is set on the command line. */
11126 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
11128 /* Check whether in the abbreviation of the second month, the second
11129 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
11130 one byte long. This excludes the UTF-8 encoding. */
11131 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
11132 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
11133 /* Check whether the decimal separator is a comma.
11134 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
11135 are nl_langinfo(RADIXCHAR) are both ".". */
11136 if (localeconv () ->decimal_point[0] != ',') return 1;
11141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11142 (eval $ac_link) 2>&5
11144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); } && test -s conftest$ac_exeext; then
11147 # Handle native Windows specially, because there setlocale() interprets
11148 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
11149 # "fr" or "fra" as "French" or "French_France.1252",
11150 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
11151 # "ja" as "Japanese" or "Japanese_Japan.932",
11154 # Test for the native Win32 locale name.
11155 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11156 gt_cv_locale_fr=French_France.1252
11159 gt_cv_locale_fr=none
11163 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
11164 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
11165 # configure script would override the LC_ALL setting. Likewise for
11166 # LC_CTYPE, which is also set at the beginning of the configure script.
11167 # Test for the usual locale name.
11168 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11169 gt_cv_locale_fr=fr_FR
11171 # Test for the locale name with explicit encoding suffix.
11172 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11173 gt_cv_locale_fr=fr_FR.ISO-8859-1
11175 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
11176 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11177 gt_cv_locale_fr=fr_FR.ISO8859-1
11179 # Test for the HP-UX locale name.
11180 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11181 gt_cv_locale_fr=fr_FR.iso88591
11183 # Test for the Solaris 7 locale name.
11184 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11188 gt_cv_locale_fr=none
11200 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr" >&5
11201 $as_echo "$gt_cv_locale_fr" >&6; }
11202 LOCALE_FR=$gt_cv_locale_fr
11213 { $as_echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
11214 $as_echo_n "checking whether // is distinct from /... " >&6; }
11215 if test "${gl_cv_double_slash_root+set}" = set; then
11216 $as_echo_n "(cached) " >&6
11218 if test x"$cross_compiling" = xyes ; then
11219 # When cross-compiling, there is no way to tell whether // is special
11220 # short of a list of hosts. However, the only known hosts to date
11221 # that have a distinct // are Apollo DomainOS (too old to port to),
11222 # Cygwin, and z/OS. If anyone knows of another system for which // has
11223 # special semantics and is distinct from /, please report it to
11224 # <bug-gnulib@gnu.org>.
11226 *-cygwin | i370-ibm-openedition)
11227 gl_cv_double_slash_root=yes ;;
11229 # Be optimistic and assume that / and // are the same when we
11231 gl_cv_double_slash_root='unknown, assuming no' ;;
11234 set x `ls -di / // 2>/dev/null`
11235 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
11236 gl_cv_double_slash_root=no
11238 gl_cv_double_slash_root=yes
11242 { $as_echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
11243 $as_echo "$gl_cv_double_slash_root" >&6; }
11244 if test "$gl_cv_double_slash_root" = yes; then
11246 cat >>confdefs.h <<\_ACEOF
11247 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
11261 { $as_echo "$as_me:$LINENO: checking whether realpath works" >&5
11262 $as_echo_n "checking whether realpath works... " >&6; }
11263 if test "${gl_cv_func_realpath_works+set}" = set; then
11264 $as_echo_n "(cached) " >&6
11268 if test "$cross_compiling" = yes; then
11269 gl_cv_func_realpath_works="guessing no"
11271 cat >conftest.$ac_ext <<_ACEOF
11275 cat confdefs.h >>conftest.$ac_ext
11276 cat >>conftest.$ac_ext <<_ACEOF
11277 /* end confdefs.h. */
11279 #include <stdlib.h>
11287 char *name = realpath ("conftest.a", NULL);
11288 if (!(name && *name == '/'))
11292 char *name = realpath ("conftest.b/../conftest.a", NULL);
11297 char *name = realpath ("conftest.a/", NULL);
11308 rm -f conftest$ac_exeext
11309 if { (ac_try="$ac_link"
11310 case "(($ac_try" in
11311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11312 *) ac_try_echo=$ac_try;;
11314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11315 $as_echo "$ac_try_echo") >&5
11316 (eval "$ac_link") 2>&5
11318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11320 { (case "(($ac_try" in
11321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11322 *) ac_try_echo=$ac_try;;
11324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11325 $as_echo "$ac_try_echo") >&5
11326 (eval "$ac_try") 2>&5
11328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); }; }; then
11330 gl_cv_func_realpath_works=yes
11332 $as_echo "$as_me: program exited with status $ac_status" >&5
11333 $as_echo "$as_me: failed program was:" >&5
11334 sed 's/^/| /' conftest.$ac_ext >&5
11336 ( exit $ac_status )
11337 gl_cv_func_realpath_works=no
11339 rm -rf conftest.dSYM
11340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11346 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_realpath_works" >&5
11347 $as_echo "$gl_cv_func_realpath_works" >&6; }
11348 if test "$gl_cv_func_realpath_works" = yes; then
11350 cat >>confdefs.h <<\_ACEOF
11351 #define FUNC_REALPATH_WORKS 1
11380 GNULIB_CALLOC_POSIX=0;
11381 GNULIB_CANONICALIZE_FILE_NAME=0;
11382 GNULIB_GETLOADAVG=0;
11383 GNULIB_GETSUBOPT=0;
11385 GNULIB_MALLOC_POSIX=0;
11389 GNULIB_MKOSTEMPS=0;
11395 GNULIB_REALLOC_POSIX=0;
11402 GNULIB_SYSTEM_POSIX=0;
11408 HAVE_CANONICALIZE_FILE_NAME=1;
11409 HAVE_DECL_GETLOADAVG=1;
11423 HAVE_DECL_SETENV=1;
11427 HAVE_STRUCT_RANDOM_DATA=1;
11428 HAVE_SYS_LOADAVG_H=0;
11430 HAVE_DECL_UNSETENV=1;
11432 REPLACE_CANONICALIZE_FILE_NAME=0;
11438 REPLACE_REALPATH=0;
11441 REPLACE_UNSETENV=0;
11450 GNULIB_EUIDACCESS=0;
11451 GNULIB_FACCESSAT=0;
11455 GNULIB_FTRUNCATE=0;
11457 GNULIB_GETDOMAINNAME=0;
11458 GNULIB_GETDTABLESIZE=0;
11459 GNULIB_GETGROUPS=0;
11460 GNULIB_GETHOSTNAME=0;
11462 GNULIB_GETLOGIN_R=0;
11463 GNULIB_GETPAGESIZE=0;
11464 GNULIB_GETUSERSHELL=0;
11474 GNULIB_READLINKAT=0;
11478 GNULIB_SYMLINKAT=0;
11479 GNULIB_TTYNAME_R=0;
11480 GNULIB_UNISTD_H_GETOPT=0;
11481 GNULIB_UNISTD_H_SIGPIPE=0;
11495 HAVE_GETDTABLESIZE=1;
11497 HAVE_GETHOSTNAME=1;
11499 HAVE_GETPAGESIZE=1;
11514 HAVE_DECL_ENVIRON=1;
11515 HAVE_DECL_FCHDIR=1;
11516 HAVE_DECL_GETDOMAINNAME=1;
11517 HAVE_DECL_GETLOGIN_R=1;
11518 HAVE_DECL_GETPAGESIZE=1;
11519 HAVE_DECL_GETUSERSHELL=1;
11520 HAVE_DECL_TTYNAME_R=1;
11522 HAVE_SYS_PARAM_H=0;
11527 REPLACE_FCHOWNAT=0;
11529 REPLACE_GETDOMAINNAME=0;
11530 REPLACE_GETLOGIN_R=0;
11531 REPLACE_GETGROUPS=0;
11532 REPLACE_GETPAGESIZE=0;
11539 REPLACE_READLINK=0;
11543 REPLACE_TTYNAME_R=0;
11545 REPLACE_UNLINKAT=0;
11548 UNISTD_H_HAVE_WINSOCK2_H=0;
11549 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
11553 for ac_header in unistd.h
11555 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11557 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11558 $as_echo_n "checking for $ac_header... " >&6; }
11559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11560 $as_echo_n "(cached) " >&6
11562 ac_res=`eval 'as_val=${'$as_ac_Header'}
11563 $as_echo "$as_val"'`
11564 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11565 $as_echo "$ac_res" >&6; }
11567 # Is the header compilable?
11568 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11569 $as_echo_n "checking $ac_header usability... " >&6; }
11570 cat >conftest.$ac_ext <<_ACEOF
11573 cat confdefs.h >>conftest.$ac_ext
11574 cat >>conftest.$ac_ext <<_ACEOF
11575 /* end confdefs.h. */
11576 $ac_includes_default
11577 #include <$ac_header>
11579 rm -f conftest.$ac_objext
11580 if { (ac_try="$ac_compile"
11581 case "(($ac_try" in
11582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11583 *) ac_try_echo=$ac_try;;
11585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11586 $as_echo "$ac_try_echo") >&5
11587 (eval "$ac_compile") 2>conftest.er1
11589 grep -v '^ *+' conftest.er1 >conftest.err
11591 cat conftest.err >&5
11592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); } && {
11594 test -z "$ac_c_werror_flag" ||
11595 test ! -s conftest.err
11596 } && test -s conftest.$ac_objext; then
11597 ac_header_compiler=yes
11599 $as_echo "$as_me: failed program was:" >&5
11600 sed 's/^/| /' conftest.$ac_ext >&5
11602 ac_header_compiler=no
11605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11606 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11607 $as_echo "$ac_header_compiler" >&6; }
11609 # Is the header present?
11610 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11611 $as_echo_n "checking $ac_header presence... " >&6; }
11612 cat >conftest.$ac_ext <<_ACEOF
11615 cat confdefs.h >>conftest.$ac_ext
11616 cat >>conftest.$ac_ext <<_ACEOF
11617 /* end confdefs.h. */
11618 #include <$ac_header>
11620 if { (ac_try="$ac_cpp conftest.$ac_ext"
11621 case "(($ac_try" in
11622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11623 *) ac_try_echo=$ac_try;;
11625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11626 $as_echo "$ac_try_echo") >&5
11627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11629 grep -v '^ *+' conftest.er1 >conftest.err
11631 cat conftest.err >&5
11632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); } >/dev/null && {
11634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11635 test ! -s conftest.err
11637 ac_header_preproc=yes
11639 $as_echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11642 ac_header_preproc=no
11645 rm -f conftest.err conftest.$ac_ext
11646 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11647 $as_echo "$ac_header_preproc" >&6; }
11649 # So? What about this header?
11650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11652 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11653 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11654 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11655 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11656 ac_header_preproc=yes
11659 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11660 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11661 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11662 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11663 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11664 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11665 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11666 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11667 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11668 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11670 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11672 ## ------------------------------ ##
11673 ## Report this to bug-tar@gnu.org ##
11674 ## ------------------------------ ##
11676 ) | sed "s/^/$as_me: WARNING: /" >&2
11679 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11680 $as_echo_n "checking for $ac_header... " >&6; }
11681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11682 $as_echo_n "(cached) " >&6
11684 eval "$as_ac_Header=\$ac_header_preproc"
11686 ac_res=`eval 'as_val=${'$as_ac_Header'}
11687 $as_echo "$as_val"'`
11688 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11689 $as_echo "$ac_res" >&6; }
11692 as_val=`eval 'as_val=${'$as_ac_Header'}
11693 $as_echo "$as_val"'`
11694 if test "x$as_val" = x""yes; then
11695 cat >>confdefs.h <<_ACEOF
11696 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11703 { $as_echo "$as_me:$LINENO: checking for working chown" >&5
11704 $as_echo_n "checking for working chown... " >&6; }
11705 if test "${ac_cv_func_chown_works+set}" = set; then
11706 $as_echo_n "(cached) " >&6
11708 if test "$cross_compiling" = yes; then
11709 ac_cv_func_chown_works=no
11711 cat >conftest.$ac_ext <<_ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h. */
11717 $ac_includes_default
11723 char *f = "conftest.chown";
11724 struct stat before, after;
11726 if (creat (f, 0600) < 0)
11728 if (stat (f, &before) < 0)
11730 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
11732 if (stat (f, &after) < 0)
11734 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
11740 rm -f conftest$ac_exeext
11741 if { (ac_try="$ac_link"
11742 case "(($ac_try" in
11743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11744 *) ac_try_echo=$ac_try;;
11746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11747 $as_echo "$ac_try_echo") >&5
11748 (eval "$ac_link") 2>&5
11750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11752 { (case "(($ac_try" in
11753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11754 *) ac_try_echo=$ac_try;;
11756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11757 $as_echo "$ac_try_echo") >&5
11758 (eval "$ac_try") 2>&5
11760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); }; }; then
11762 ac_cv_func_chown_works=yes
11764 $as_echo "$as_me: program exited with status $ac_status" >&5
11765 $as_echo "$as_me: failed program was:" >&5
11766 sed 's/^/| /' conftest.$ac_ext >&5
11768 ( exit $ac_status )
11769 ac_cv_func_chown_works=no
11771 rm -rf conftest.dSYM
11772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11776 rm -f conftest.chown
11779 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
11780 $as_echo "$ac_cv_func_chown_works" >&6; }
11781 if test $ac_cv_func_chown_works = yes; then
11783 cat >>confdefs.h <<\_ACEOF
11784 #define HAVE_CHOWN 1
11790 { $as_echo "$as_me:$LINENO: checking whether chown dereferences symlinks" >&5
11791 $as_echo_n "checking whether chown dereferences symlinks... " >&6; }
11792 if test "${gl_cv_func_chown_follows_symlink+set}" = set; then
11793 $as_echo_n "(cached) " >&6
11796 if test "$cross_compiling" = yes; then
11797 gl_cv_func_chown_follows_symlink=yes
11800 cat >conftest.$ac_ext <<_ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h. */
11807 #include <unistd.h>
11808 #include <stdlib.h>
11815 char const *dangling_symlink = "conftest.dangle";
11817 unlink (dangling_symlink);
11818 if (symlink ("conftest.no-such", dangling_symlink))
11821 /* Exit successfully on a conforming system,
11822 i.e., where chown must fail with ENOENT. */
11823 if (chown (dangling_symlink, getuid (), getgid ()) == 0)
11825 if (errno != ENOENT)
11831 rm -f conftest$ac_exeext
11832 if { (ac_try="$ac_link"
11833 case "(($ac_try" in
11834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11835 *) ac_try_echo=$ac_try;;
11837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11838 $as_echo "$ac_try_echo") >&5
11839 (eval "$ac_link") 2>&5
11841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11843 { (case "(($ac_try" in
11844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845 *) ac_try_echo=$ac_try;;
11847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11848 $as_echo "$ac_try_echo") >&5
11849 (eval "$ac_try") 2>&5
11851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; }; then
11853 gl_cv_func_chown_follows_symlink=yes
11855 $as_echo "$as_me: program exited with status $ac_status" >&5
11856 $as_echo "$as_me: failed program was:" >&5
11857 sed 's/^/| /' conftest.$ac_ext >&5
11859 ( exit $ac_status )
11860 gl_cv_func_chown_follows_symlink=no
11862 rm -rf conftest.dSYM
11863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11870 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_chown_follows_symlink" >&5
11871 $as_echo "$gl_cv_func_chown_follows_symlink" >&6; }
11873 if test $gl_cv_func_chown_follows_symlink = no; then
11875 cat >>confdefs.h <<\_ACEOF
11876 #define CHOWN_MODIFIES_SYMLINK 1
11900 if test $ac_cv_func_chown = no; then
11910 gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
11913 if test $gl_cv_func_chown_follows_symlink = no; then
11923 gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
11927 if test $ac_cv_func_chown_works = no; then
11929 cat >>confdefs.h <<\_ACEOF
11930 #define CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE 1
11942 gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
11946 { $as_echo "$as_me:$LINENO: checking whether chown honors trailing slash" >&5
11947 $as_echo_n "checking whether chown honors trailing slash... " >&6; }
11948 if test "${gl_cv_func_chown_slash_works+set}" = set; then
11949 $as_echo_n "(cached) " >&6
11951 touch conftest.file && rm -f conftest.link
11952 if test "$cross_compiling" = yes; then
11953 gl_cv_func_chown_slash_works="guessing no"
11955 cat >conftest.$ac_ext <<_ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11962 #include <unistd.h>
11963 #include <stdlib.h>
11969 if (symlink ("conftest.file", "conftest.link")) return 1;
11970 if (chown ("conftest.link/", getuid (), getgid ()) == 0) return 2;
11976 rm -f conftest$ac_exeext
11977 if { (ac_try="$ac_link"
11978 case "(($ac_try" in
11979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11980 *) ac_try_echo=$ac_try;;
11982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11983 $as_echo "$ac_try_echo") >&5
11984 (eval "$ac_link") 2>&5
11986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11988 { (case "(($ac_try" in
11989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11990 *) ac_try_echo=$ac_try;;
11992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11993 $as_echo "$ac_try_echo") >&5
11994 (eval "$ac_try") 2>&5
11996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); }; }; then
11998 gl_cv_func_chown_slash_works=yes
12000 $as_echo "$as_me: program exited with status $ac_status" >&5
12001 $as_echo "$as_me: failed program was:" >&5
12002 sed 's/^/| /' conftest.$ac_ext >&5
12004 ( exit $ac_status )
12005 gl_cv_func_chown_slash_works=no
12007 rm -rf conftest.dSYM
12008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12012 rm -f conftest.link conftest.file
12014 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_chown_slash_works" >&5
12015 $as_echo "$gl_cv_func_chown_slash_works" >&6; }
12016 if test "$gl_cv_func_chown_slash_works" != yes; then
12018 cat >>confdefs.h <<\_ACEOF
12019 #define CHOWN_TRAILING_SLASH_BUG 1
12031 gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
12035 { $as_echo "$as_me:$LINENO: checking whether chown always updates ctime" >&5
12036 $as_echo_n "checking whether chown always updates ctime... " >&6; }
12037 if test "${gl_cv_func_chown_ctime_works+set}" = set; then
12038 $as_echo_n "(cached) " >&6
12040 if test "$cross_compiling" = yes; then
12041 gl_cv_func_chown_ctime_works="guessing no"
12043 cat >conftest.$ac_ext <<_ACEOF
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h. */
12050 #include <unistd.h>
12051 #include <stdlib.h>
12054 #include <sys/stat.h>
12059 struct stat st1, st2;
12060 if (close (creat ("conftest.file", 0600))) return 1;
12061 if (stat ("conftest.file", &st1)) return 2;
12063 if (chown ("conftest.file", st1.st_uid, st1.st_gid)) return 3;
12064 if (stat ("conftest.file", &st2)) return 4;
12065 if (st2.st_ctime <= st1.st_ctime) return 5;
12071 rm -f conftest$ac_exeext
12072 if { (ac_try="$ac_link"
12073 case "(($ac_try" in
12074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12075 *) ac_try_echo=$ac_try;;
12077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12078 $as_echo "$ac_try_echo") >&5
12079 (eval "$ac_link") 2>&5
12081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12083 { (case "(($ac_try" in
12084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12085 *) ac_try_echo=$ac_try;;
12087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12088 $as_echo "$ac_try_echo") >&5
12089 (eval "$ac_try") 2>&5
12091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; }; then
12093 gl_cv_func_chown_ctime_works=yes
12095 $as_echo "$as_me: program exited with status $ac_status" >&5
12096 $as_echo "$as_me: failed program was:" >&5
12097 sed 's/^/| /' conftest.$ac_ext >&5
12099 ( exit $ac_status )
12100 gl_cv_func_chown_ctime_works=no
12102 rm -rf conftest.dSYM
12103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12107 rm -f conftest.file
12109 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_chown_ctime_works" >&5
12110 $as_echo "$gl_cv_func_chown_ctime_works" >&6; }
12111 if test "$gl_cv_func_chown_ctime_works" != yes; then
12113 cat >>confdefs.h <<\_ACEOF
12114 #define CHOWN_CHANGE_TIME_BUG 1
12126 gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
12130 if test $REPLACE_CHOWN = 1 && test $ac_cv_func_fchown = no; then
12139 gl_LIBOBJS="$gl_LIBOBJS fchown-stub.$ac_objext"
12146 GNULIB_FDOPENDIR=0;
12148 GNULIB_ALPHASORT=0;
12150 HAVE_DECL_FDOPENDIR=1;
12154 REPLACE_CLOSEDIR=0;
12156 REPLACE_FDOPENDIR=0;
12161 { $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
12162 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
12163 if test "${gl_cv_have_include_next+set}" = set; then
12164 $as_echo_n "(cached) " >&6
12166 rm -rf conftestd1a conftestd1b conftestd2
12167 mkdir conftestd1a conftestd1b conftestd2
12168 cat <<EOF > conftestd1a/conftest.h
12169 #define DEFINED_IN_CONFTESTD1
12170 #include_next <conftest.h>
12171 #ifdef DEFINED_IN_CONFTESTD2
12174 #error "include_next doesn't work"
12177 cat <<EOF > conftestd1b/conftest.h
12178 #define DEFINED_IN_CONFTESTD1
12180 #include_next <conftest.h>
12181 #ifdef DEFINED_IN_CONFTESTD2
12184 #error "include_next doesn't work"
12187 cat <<EOF > conftestd2/conftest.h
12188 #ifndef DEFINED_IN_CONFTESTD1
12189 #error "include_next test doesn't work"
12191 #define DEFINED_IN_CONFTESTD2
12193 gl_save_CPPFLAGS="$CPPFLAGS"
12194 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
12195 cat >conftest.$ac_ext <<_ACEOF
12196 #include <conftest.h>
12198 rm -f conftest.$ac_objext
12199 if { (ac_try="$ac_compile"
12200 case "(($ac_try" in
12201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12202 *) ac_try_echo=$ac_try;;
12204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12205 $as_echo "$ac_try_echo") >&5
12206 (eval "$ac_compile") 2>conftest.er1
12208 grep -v '^ *+' conftest.er1 >conftest.err
12210 cat conftest.err >&5
12211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); } && {
12213 test -z "$ac_c_werror_flag" ||
12214 test ! -s conftest.err
12215 } && test -s conftest.$ac_objext; then
12216 gl_cv_have_include_next=yes
12218 $as_echo "$as_me: failed program was:" >&5
12219 sed 's/^/| /' conftest.$ac_ext >&5
12221 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
12222 cat >conftest.$ac_ext <<_ACEOF
12223 #include <conftest.h>
12225 rm -f conftest.$ac_objext
12226 if { (ac_try="$ac_compile"
12227 case "(($ac_try" in
12228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12229 *) ac_try_echo=$ac_try;;
12231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12232 $as_echo "$ac_try_echo") >&5
12233 (eval "$ac_compile") 2>conftest.er1
12235 grep -v '^ *+' conftest.er1 >conftest.err
12237 cat conftest.err >&5
12238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); } && {
12240 test -z "$ac_c_werror_flag" ||
12241 test ! -s conftest.err
12242 } && test -s conftest.$ac_objext; then
12243 gl_cv_have_include_next=buggy
12245 $as_echo "$as_me: failed program was:" >&5
12246 sed 's/^/| /' conftest.$ac_ext >&5
12248 gl_cv_have_include_next=no
12251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12256 CPPFLAGS="$gl_save_CPPFLAGS"
12257 rm -rf conftestd1a conftestd1b conftestd2
12260 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
12261 $as_echo "$gl_cv_have_include_next" >&6; }
12262 PRAGMA_SYSTEM_HEADER=
12263 if test $gl_cv_have_include_next = yes; then
12264 INCLUDE_NEXT=include_next
12265 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
12266 if test -n "$GCC"; then
12267 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
12270 if test $gl_cv_have_include_next = buggy; then
12271 INCLUDE_NEXT=include
12272 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
12274 INCLUDE_NEXT=include
12275 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
12281 { $as_echo "$as_me:$LINENO: checking whether system header files limit the line length" >&5
12282 $as_echo_n "checking whether system header files limit the line length... " >&6; }
12283 if test "${gl_cv_pragma_columns+set}" = set; then
12284 $as_echo_n "(cached) " >&6
12286 cat >conftest.$ac_ext <<_ACEOF
12289 cat confdefs.h >>conftest.$ac_ext
12290 cat >>conftest.$ac_ext <<_ACEOF
12291 /* end confdefs.h. */
12298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12299 $EGREP "choke me" >/dev/null 2>&1; then
12300 gl_cv_pragma_columns=yes
12302 gl_cv_pragma_columns=no
12308 { $as_echo "$as_me:$LINENO: result: $gl_cv_pragma_columns" >&5
12309 $as_echo "$gl_cv_pragma_columns" >&6; }
12310 if test $gl_cv_pragma_columns = yes; then
12311 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
12330 gl_LIBOBJS="$gl_LIBOBJS basename-lgpl.$ac_objext"
12340 gl_LIBOBJS="$gl_LIBOBJS dirname-lgpl.$ac_objext"
12350 gl_LIBOBJS="$gl_LIBOBJS stripslash.$ac_objext"
12365 { $as_echo "$as_me:$LINENO: checking if environ is properly declared" >&5
12366 $as_echo_n "checking if environ is properly declared... " >&6; }
12367 if test "${gt_cv_var_environ_declaration+set}" = set; then
12368 $as_echo_n "(cached) " >&6
12371 cat >conftest.$ac_ext <<_ACEOF
12374 cat confdefs.h >>conftest.$ac_ext
12375 cat >>conftest.$ac_ext <<_ACEOF
12376 /* end confdefs.h. */
12377 #include <unistd.h>
12378 extern struct { int foo; } environ;
12387 rm -f conftest.$ac_objext
12388 if { (ac_try="$ac_compile"
12389 case "(($ac_try" in
12390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391 *) ac_try_echo=$ac_try;;
12393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12394 $as_echo "$ac_try_echo") >&5
12395 (eval "$ac_compile") 2>conftest.er1
12397 grep -v '^ *+' conftest.er1 >conftest.err
12399 cat conftest.err >&5
12400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); } && {
12402 test -z "$ac_c_werror_flag" ||
12403 test ! -s conftest.err
12404 } && test -s conftest.$ac_objext; then
12405 gt_cv_var_environ_declaration=no
12407 $as_echo "$as_me: failed program was:" >&5
12408 sed 's/^/| /' conftest.$ac_ext >&5
12410 gt_cv_var_environ_declaration=yes
12413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12416 { $as_echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
12417 $as_echo "$gt_cv_var_environ_declaration" >&6; }
12418 if test $gt_cv_var_environ_declaration = yes; then
12420 cat >>confdefs.h <<\_ACEOF
12421 #define HAVE_ENVIRON_DECL 1
12427 if test $gt_cv_var_environ_declaration != yes; then
12428 HAVE_DECL_ENVIRON=0
12433 { $as_echo "$as_me:$LINENO: checking for complete errno.h" >&5
12434 $as_echo_n "checking for complete errno.h... " >&6; }
12435 if test "${gl_cv_header_errno_h_complete+set}" = set; then
12436 $as_echo_n "(cached) " >&6
12439 cat >conftest.$ac_ext <<_ACEOF
12442 cat confdefs.h >>conftest.$ac_ext
12443 cat >>conftest.$ac_ext <<_ACEOF
12444 /* end confdefs.h. */
12447 #if !defined ENOMSG
12453 #if !defined ENOLINK
12456 #if !defined EPROTO
12459 #if !defined EMULTIHOP
12462 #if !defined EBADMSG
12465 #if !defined EOVERFLOW
12468 #if !defined ENOTSUP
12471 #if !defined ESTALE
12474 #if !defined EDQUOT
12477 #if !defined ECANCELED
12482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12483 $EGREP "booboo" >/dev/null 2>&1; then
12484 gl_cv_header_errno_h_complete=no
12486 gl_cv_header_errno_h_complete=yes
12492 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_complete" >&5
12493 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
12494 if test $gl_cv_header_errno_h_complete = yes; then
12505 if test $gl_cv_have_include_next = yes; then
12506 gl_cv_next_errno_h='<'errno.h'>'
12508 { $as_echo "$as_me:$LINENO: checking absolute name of <errno.h>" >&5
12509 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
12510 if test "${gl_cv_next_errno_h+set}" = set; then
12511 $as_echo_n "(cached) " >&6
12514 cat >conftest.$ac_ext <<_ACEOF
12517 cat confdefs.h >>conftest.$ac_ext
12518 cat >>conftest.$ac_ext <<_ACEOF
12519 /* end confdefs.h. */
12524 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12525 *) gl_absname_cpp="$ac_cpp" ;;
12527 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12528 sed -n '\#/errno.h#{
12529 s#.*"\(.*/errno.h\)".*#\1#
12537 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_errno_h" >&5
12538 $as_echo "$gl_cv_next_errno_h" >&6; }
12540 NEXT_ERRNO_H=$gl_cv_next_errno_h
12542 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12543 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12544 gl_next_as_first_directive='<'errno.h'>'
12546 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12547 gl_next_as_first_directive=$gl_cv_next_errno_h
12549 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
12558 if test -n "$ERRNO_H"; then
12559 { $as_echo "$as_me:$LINENO: checking for EMULTIHOP value" >&5
12560 $as_echo_n "checking for EMULTIHOP value... " >&6; }
12561 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then
12562 $as_echo_n "(cached) " >&6
12565 cat >conftest.$ac_ext <<_ACEOF
12568 cat confdefs.h >>conftest.$ac_ext
12569 cat >>conftest.$ac_ext <<_ACEOF
12570 /* end confdefs.h. */
12578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12579 $EGREP "yes" >/dev/null 2>&1; then
12580 gl_cv_header_errno_h_EMULTIHOP=yes
12582 gl_cv_header_errno_h_EMULTIHOP=no
12586 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
12587 cat >conftest.$ac_ext <<_ACEOF
12590 cat confdefs.h >>conftest.$ac_ext
12591 cat >>conftest.$ac_ext <<_ACEOF
12592 /* end confdefs.h. */
12594 #define _XOPEN_SOURCE_EXTENDED 1
12601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12602 $EGREP "yes" >/dev/null 2>&1; then
12603 gl_cv_header_errno_h_EMULTIHOP=hidden
12607 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
12608 if test "$cross_compiling" = yes; then
12609 # Depending upon the size, compute the lo and hi bounds.
12610 cat >conftest.$ac_ext <<_ACEOF
12613 cat confdefs.h >>conftest.$ac_ext
12614 cat >>conftest.$ac_ext <<_ACEOF
12615 /* end confdefs.h. */
12617 #define _XOPEN_SOURCE_EXTENDED 1
12619 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12621 #include <stdlib.h>
12626 static int test_array [1 - 2 * !((EMULTIHOP) >= 0)];
12633 rm -f conftest.$ac_objext
12634 if { (ac_try="$ac_compile"
12635 case "(($ac_try" in
12636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12637 *) ac_try_echo=$ac_try;;
12639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12640 $as_echo "$ac_try_echo") >&5
12641 (eval "$ac_compile") 2>conftest.er1
12643 grep -v '^ *+' conftest.er1 >conftest.err
12645 cat conftest.err >&5
12646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } && {
12648 test -z "$ac_c_werror_flag" ||
12649 test ! -s conftest.err
12650 } && test -s conftest.$ac_objext; then
12653 cat >conftest.$ac_ext <<_ACEOF
12656 cat confdefs.h >>conftest.$ac_ext
12657 cat >>conftest.$ac_ext <<_ACEOF
12658 /* end confdefs.h. */
12660 #define _XOPEN_SOURCE_EXTENDED 1
12662 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12664 #include <stdlib.h>
12669 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
12676 rm -f conftest.$ac_objext
12677 if { (ac_try="$ac_compile"
12678 case "(($ac_try" in
12679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12680 *) ac_try_echo=$ac_try;;
12682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12683 $as_echo "$ac_try_echo") >&5
12684 (eval "$ac_compile") 2>conftest.er1
12686 grep -v '^ *+' conftest.er1 >conftest.err
12688 cat conftest.err >&5
12689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); } && {
12691 test -z "$ac_c_werror_flag" ||
12692 test ! -s conftest.err
12693 } && test -s conftest.$ac_objext; then
12694 ac_hi=$ac_mid; break
12696 $as_echo "$as_me: failed program was:" >&5
12697 sed 's/^/| /' conftest.$ac_ext >&5
12699 ac_lo=`expr $ac_mid + 1`
12700 if test $ac_lo -le $ac_mid; then
12704 ac_mid=`expr 2 '*' $ac_mid + 1`
12707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12710 $as_echo "$as_me: failed program was:" >&5
12711 sed 's/^/| /' conftest.$ac_ext >&5
12713 cat >conftest.$ac_ext <<_ACEOF
12716 cat confdefs.h >>conftest.$ac_ext
12717 cat >>conftest.$ac_ext <<_ACEOF
12718 /* end confdefs.h. */
12720 #define _XOPEN_SOURCE_EXTENDED 1
12722 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12724 #include <stdlib.h>
12729 static int test_array [1 - 2 * !((EMULTIHOP) < 0)];
12736 rm -f conftest.$ac_objext
12737 if { (ac_try="$ac_compile"
12738 case "(($ac_try" in
12739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12740 *) ac_try_echo=$ac_try;;
12742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12743 $as_echo "$ac_try_echo") >&5
12744 (eval "$ac_compile") 2>conftest.er1
12746 grep -v '^ *+' conftest.er1 >conftest.err
12748 cat conftest.err >&5
12749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); } && {
12751 test -z "$ac_c_werror_flag" ||
12752 test ! -s conftest.err
12753 } && test -s conftest.$ac_objext; then
12756 cat >conftest.$ac_ext <<_ACEOF
12759 cat confdefs.h >>conftest.$ac_ext
12760 cat >>conftest.$ac_ext <<_ACEOF
12761 /* end confdefs.h. */
12763 #define _XOPEN_SOURCE_EXTENDED 1
12765 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12767 #include <stdlib.h>
12772 static int test_array [1 - 2 * !((EMULTIHOP) >= $ac_mid)];
12779 rm -f conftest.$ac_objext
12780 if { (ac_try="$ac_compile"
12781 case "(($ac_try" in
12782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12783 *) ac_try_echo=$ac_try;;
12785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12786 $as_echo "$ac_try_echo") >&5
12787 (eval "$ac_compile") 2>conftest.er1
12789 grep -v '^ *+' conftest.er1 >conftest.err
12791 cat conftest.err >&5
12792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); } && {
12794 test -z "$ac_c_werror_flag" ||
12795 test ! -s conftest.err
12796 } && test -s conftest.$ac_objext; then
12797 ac_lo=$ac_mid; break
12799 $as_echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.$ac_ext >&5
12802 ac_hi=`expr '(' $ac_mid ')' - 1`
12803 if test $ac_mid -le $ac_hi; then
12807 ac_mid=`expr 2 '*' $ac_mid`
12810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12813 $as_echo "$as_me: failed program was:" >&5
12814 sed 's/^/| /' conftest.$ac_ext >&5
12819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12823 # Binary search between lo and hi bounds.
12824 while test "x$ac_lo" != "x$ac_hi"; do
12825 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12826 cat >conftest.$ac_ext <<_ACEOF
12829 cat confdefs.h >>conftest.$ac_ext
12830 cat >>conftest.$ac_ext <<_ACEOF
12831 /* end confdefs.h. */
12833 #define _XOPEN_SOURCE_EXTENDED 1
12835 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12837 #include <stdlib.h>
12842 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
12849 rm -f conftest.$ac_objext
12850 if { (ac_try="$ac_compile"
12851 case "(($ac_try" in
12852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12853 *) ac_try_echo=$ac_try;;
12855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12856 $as_echo "$ac_try_echo") >&5
12857 (eval "$ac_compile") 2>conftest.er1
12859 grep -v '^ *+' conftest.er1 >conftest.err
12861 cat conftest.err >&5
12862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); } && {
12864 test -z "$ac_c_werror_flag" ||
12865 test ! -s conftest.err
12866 } && test -s conftest.$ac_objext; then
12869 $as_echo "$as_me: failed program was:" >&5
12870 sed 's/^/| /' conftest.$ac_ext >&5
12872 ac_lo=`expr '(' $ac_mid ')' + 1`
12875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12878 ?*) gl_cv_header_errno_h_EMULTIHOP=$ac_lo;;
12882 cat >conftest.$ac_ext <<_ACEOF
12885 cat confdefs.h >>conftest.$ac_ext
12886 cat >>conftest.$ac_ext <<_ACEOF
12887 /* end confdefs.h. */
12889 #define _XOPEN_SOURCE_EXTENDED 1
12891 /* The following two lines are a workaround against an autoconf-2.52 bug. */
12893 #include <stdlib.h>
12895 static long int longval () { return EMULTIHOP; }
12896 static unsigned long int ulongval () { return EMULTIHOP; }
12898 #include <stdlib.h>
12903 FILE *f = fopen ("conftest.val", "w");
12906 if ((EMULTIHOP) < 0)
12908 long int i = longval ();
12909 if (i != (EMULTIHOP))
12911 fprintf (f, "%ld", i);
12915 unsigned long int i = ulongval ();
12916 if (i != (EMULTIHOP))
12918 fprintf (f, "%lu", i);
12920 /* Do not output a trailing newline, as this causes \r\n confusion
12921 on some platforms. */
12922 return ferror (f) || fclose (f) != 0;
12928 rm -f conftest$ac_exeext
12929 if { (ac_try="$ac_link"
12930 case "(($ac_try" in
12931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12932 *) ac_try_echo=$ac_try;;
12934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12935 $as_echo "$ac_try_echo") >&5
12936 (eval "$ac_link") 2>&5
12938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12940 { (case "(($ac_try" in
12941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12942 *) ac_try_echo=$ac_try;;
12944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12945 $as_echo "$ac_try_echo") >&5
12946 (eval "$ac_try") 2>&5
12948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); }; }; then
12950 gl_cv_header_errno_h_EMULTIHOP=`cat conftest.val`
12952 $as_echo "$as_me: program exited with status $ac_status" >&5
12953 $as_echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.$ac_ext >&5
12957 rm -rf conftest.dSYM
12958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12965 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
12966 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
12967 case $gl_cv_header_errno_h_EMULTIHOP in
12969 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
12972 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
12980 if test -n "$ERRNO_H"; then
12981 { $as_echo "$as_me:$LINENO: checking for ENOLINK value" >&5
12982 $as_echo_n "checking for ENOLINK value... " >&6; }
12983 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then
12984 $as_echo_n "(cached) " >&6
12987 cat >conftest.$ac_ext <<_ACEOF
12990 cat confdefs.h >>conftest.$ac_ext
12991 cat >>conftest.$ac_ext <<_ACEOF
12992 /* end confdefs.h. */
13000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13001 $EGREP "yes" >/dev/null 2>&1; then
13002 gl_cv_header_errno_h_ENOLINK=yes
13004 gl_cv_header_errno_h_ENOLINK=no
13008 if test $gl_cv_header_errno_h_ENOLINK = no; then
13009 cat >conftest.$ac_ext <<_ACEOF
13012 cat confdefs.h >>conftest.$ac_ext
13013 cat >>conftest.$ac_ext <<_ACEOF
13014 /* end confdefs.h. */
13016 #define _XOPEN_SOURCE_EXTENDED 1
13023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13024 $EGREP "yes" >/dev/null 2>&1; then
13025 gl_cv_header_errno_h_ENOLINK=hidden
13029 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
13030 if test "$cross_compiling" = yes; then
13031 # Depending upon the size, compute the lo and hi bounds.
13032 cat >conftest.$ac_ext <<_ACEOF
13035 cat confdefs.h >>conftest.$ac_ext
13036 cat >>conftest.$ac_ext <<_ACEOF
13037 /* end confdefs.h. */
13039 #define _XOPEN_SOURCE_EXTENDED 1
13041 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13043 #include <stdlib.h>
13048 static int test_array [1 - 2 * !((ENOLINK) >= 0)];
13055 rm -f conftest.$ac_objext
13056 if { (ac_try="$ac_compile"
13057 case "(($ac_try" in
13058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059 *) ac_try_echo=$ac_try;;
13061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13062 $as_echo "$ac_try_echo") >&5
13063 (eval "$ac_compile") 2>conftest.er1
13065 grep -v '^ *+' conftest.er1 >conftest.err
13067 cat conftest.err >&5
13068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } && {
13070 test -z "$ac_c_werror_flag" ||
13071 test ! -s conftest.err
13072 } && test -s conftest.$ac_objext; then
13075 cat >conftest.$ac_ext <<_ACEOF
13078 cat confdefs.h >>conftest.$ac_ext
13079 cat >>conftest.$ac_ext <<_ACEOF
13080 /* end confdefs.h. */
13082 #define _XOPEN_SOURCE_EXTENDED 1
13084 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13086 #include <stdlib.h>
13091 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
13098 rm -f conftest.$ac_objext
13099 if { (ac_try="$ac_compile"
13100 case "(($ac_try" in
13101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13102 *) ac_try_echo=$ac_try;;
13104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13105 $as_echo "$ac_try_echo") >&5
13106 (eval "$ac_compile") 2>conftest.er1
13108 grep -v '^ *+' conftest.er1 >conftest.err
13110 cat conftest.err >&5
13111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); } && {
13113 test -z "$ac_c_werror_flag" ||
13114 test ! -s conftest.err
13115 } && test -s conftest.$ac_objext; then
13116 ac_hi=$ac_mid; break
13118 $as_echo "$as_me: failed program was:" >&5
13119 sed 's/^/| /' conftest.$ac_ext >&5
13121 ac_lo=`expr $ac_mid + 1`
13122 if test $ac_lo -le $ac_mid; then
13126 ac_mid=`expr 2 '*' $ac_mid + 1`
13129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13132 $as_echo "$as_me: failed program was:" >&5
13133 sed 's/^/| /' conftest.$ac_ext >&5
13135 cat >conftest.$ac_ext <<_ACEOF
13138 cat confdefs.h >>conftest.$ac_ext
13139 cat >>conftest.$ac_ext <<_ACEOF
13140 /* end confdefs.h. */
13142 #define _XOPEN_SOURCE_EXTENDED 1
13144 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13146 #include <stdlib.h>
13151 static int test_array [1 - 2 * !((ENOLINK) < 0)];
13158 rm -f conftest.$ac_objext
13159 if { (ac_try="$ac_compile"
13160 case "(($ac_try" in
13161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13162 *) ac_try_echo=$ac_try;;
13164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13165 $as_echo "$ac_try_echo") >&5
13166 (eval "$ac_compile") 2>conftest.er1
13168 grep -v '^ *+' conftest.er1 >conftest.err
13170 cat conftest.err >&5
13171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); } && {
13173 test -z "$ac_c_werror_flag" ||
13174 test ! -s conftest.err
13175 } && test -s conftest.$ac_objext; then
13178 cat >conftest.$ac_ext <<_ACEOF
13181 cat confdefs.h >>conftest.$ac_ext
13182 cat >>conftest.$ac_ext <<_ACEOF
13183 /* end confdefs.h. */
13185 #define _XOPEN_SOURCE_EXTENDED 1
13187 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13189 #include <stdlib.h>
13194 static int test_array [1 - 2 * !((ENOLINK) >= $ac_mid)];
13201 rm -f conftest.$ac_objext
13202 if { (ac_try="$ac_compile"
13203 case "(($ac_try" in
13204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13205 *) ac_try_echo=$ac_try;;
13207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13208 $as_echo "$ac_try_echo") >&5
13209 (eval "$ac_compile") 2>conftest.er1
13211 grep -v '^ *+' conftest.er1 >conftest.err
13213 cat conftest.err >&5
13214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); } && {
13216 test -z "$ac_c_werror_flag" ||
13217 test ! -s conftest.err
13218 } && test -s conftest.$ac_objext; then
13219 ac_lo=$ac_mid; break
13221 $as_echo "$as_me: failed program was:" >&5
13222 sed 's/^/| /' conftest.$ac_ext >&5
13224 ac_hi=`expr '(' $ac_mid ')' - 1`
13225 if test $ac_mid -le $ac_hi; then
13229 ac_mid=`expr 2 '*' $ac_mid`
13232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13235 $as_echo "$as_me: failed program was:" >&5
13236 sed 's/^/| /' conftest.$ac_ext >&5
13241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13245 # Binary search between lo and hi bounds.
13246 while test "x$ac_lo" != "x$ac_hi"; do
13247 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13248 cat >conftest.$ac_ext <<_ACEOF
13251 cat confdefs.h >>conftest.$ac_ext
13252 cat >>conftest.$ac_ext <<_ACEOF
13253 /* end confdefs.h. */
13255 #define _XOPEN_SOURCE_EXTENDED 1
13257 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13259 #include <stdlib.h>
13264 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
13271 rm -f conftest.$ac_objext
13272 if { (ac_try="$ac_compile"
13273 case "(($ac_try" in
13274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13275 *) ac_try_echo=$ac_try;;
13277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13278 $as_echo "$ac_try_echo") >&5
13279 (eval "$ac_compile") 2>conftest.er1
13281 grep -v '^ *+' conftest.er1 >conftest.err
13283 cat conftest.err >&5
13284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); } && {
13286 test -z "$ac_c_werror_flag" ||
13287 test ! -s conftest.err
13288 } && test -s conftest.$ac_objext; then
13291 $as_echo "$as_me: failed program was:" >&5
13292 sed 's/^/| /' conftest.$ac_ext >&5
13294 ac_lo=`expr '(' $ac_mid ')' + 1`
13297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13300 ?*) gl_cv_header_errno_h_ENOLINK=$ac_lo;;
13304 cat >conftest.$ac_ext <<_ACEOF
13307 cat confdefs.h >>conftest.$ac_ext
13308 cat >>conftest.$ac_ext <<_ACEOF
13309 /* end confdefs.h. */
13311 #define _XOPEN_SOURCE_EXTENDED 1
13313 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13315 #include <stdlib.h>
13317 static long int longval () { return ENOLINK; }
13318 static unsigned long int ulongval () { return ENOLINK; }
13320 #include <stdlib.h>
13325 FILE *f = fopen ("conftest.val", "w");
13330 long int i = longval ();
13331 if (i != (ENOLINK))
13333 fprintf (f, "%ld", i);
13337 unsigned long int i = ulongval ();
13338 if (i != (ENOLINK))
13340 fprintf (f, "%lu", i);
13342 /* Do not output a trailing newline, as this causes \r\n confusion
13343 on some platforms. */
13344 return ferror (f) || fclose (f) != 0;
13350 rm -f conftest$ac_exeext
13351 if { (ac_try="$ac_link"
13352 case "(($ac_try" in
13353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13354 *) ac_try_echo=$ac_try;;
13356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13357 $as_echo "$ac_try_echo") >&5
13358 (eval "$ac_link") 2>&5
13360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13362 { (case "(($ac_try" in
13363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13364 *) ac_try_echo=$ac_try;;
13366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13367 $as_echo "$ac_try_echo") >&5
13368 (eval "$ac_try") 2>&5
13370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); }; }; then
13372 gl_cv_header_errno_h_ENOLINK=`cat conftest.val`
13374 $as_echo "$as_me: program exited with status $ac_status" >&5
13375 $as_echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.$ac_ext >&5
13379 rm -rf conftest.dSYM
13380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13387 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_ENOLINK" >&5
13388 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
13389 case $gl_cv_header_errno_h_ENOLINK in
13391 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
13394 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
13402 if test -n "$ERRNO_H"; then
13403 { $as_echo "$as_me:$LINENO: checking for EOVERFLOW value" >&5
13404 $as_echo_n "checking for EOVERFLOW value... " >&6; }
13405 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then
13406 $as_echo_n "(cached) " >&6
13409 cat >conftest.$ac_ext <<_ACEOF
13412 cat confdefs.h >>conftest.$ac_ext
13413 cat >>conftest.$ac_ext <<_ACEOF
13414 /* end confdefs.h. */
13422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13423 $EGREP "yes" >/dev/null 2>&1; then
13424 gl_cv_header_errno_h_EOVERFLOW=yes
13426 gl_cv_header_errno_h_EOVERFLOW=no
13430 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
13431 cat >conftest.$ac_ext <<_ACEOF
13434 cat confdefs.h >>conftest.$ac_ext
13435 cat >>conftest.$ac_ext <<_ACEOF
13436 /* end confdefs.h. */
13438 #define _XOPEN_SOURCE_EXTENDED 1
13445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13446 $EGREP "yes" >/dev/null 2>&1; then
13447 gl_cv_header_errno_h_EOVERFLOW=hidden
13451 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
13452 if test "$cross_compiling" = yes; then
13453 # Depending upon the size, compute the lo and hi bounds.
13454 cat >conftest.$ac_ext <<_ACEOF
13457 cat confdefs.h >>conftest.$ac_ext
13458 cat >>conftest.$ac_ext <<_ACEOF
13459 /* end confdefs.h. */
13461 #define _XOPEN_SOURCE_EXTENDED 1
13463 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13465 #include <stdlib.h>
13470 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
13477 rm -f conftest.$ac_objext
13478 if { (ac_try="$ac_compile"
13479 case "(($ac_try" in
13480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13481 *) ac_try_echo=$ac_try;;
13483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13484 $as_echo "$ac_try_echo") >&5
13485 (eval "$ac_compile") 2>conftest.er1
13487 grep -v '^ *+' conftest.er1 >conftest.err
13489 cat conftest.err >&5
13490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } && {
13492 test -z "$ac_c_werror_flag" ||
13493 test ! -s conftest.err
13494 } && test -s conftest.$ac_objext; then
13497 cat >conftest.$ac_ext <<_ACEOF
13500 cat confdefs.h >>conftest.$ac_ext
13501 cat >>conftest.$ac_ext <<_ACEOF
13502 /* end confdefs.h. */
13504 #define _XOPEN_SOURCE_EXTENDED 1
13506 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13508 #include <stdlib.h>
13513 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
13520 rm -f conftest.$ac_objext
13521 if { (ac_try="$ac_compile"
13522 case "(($ac_try" in
13523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524 *) ac_try_echo=$ac_try;;
13526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13527 $as_echo "$ac_try_echo") >&5
13528 (eval "$ac_compile") 2>conftest.er1
13530 grep -v '^ *+' conftest.er1 >conftest.err
13532 cat conftest.err >&5
13533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); } && {
13535 test -z "$ac_c_werror_flag" ||
13536 test ! -s conftest.err
13537 } && test -s conftest.$ac_objext; then
13538 ac_hi=$ac_mid; break
13540 $as_echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13543 ac_lo=`expr $ac_mid + 1`
13544 if test $ac_lo -le $ac_mid; then
13548 ac_mid=`expr 2 '*' $ac_mid + 1`
13551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13554 $as_echo "$as_me: failed program was:" >&5
13555 sed 's/^/| /' conftest.$ac_ext >&5
13557 cat >conftest.$ac_ext <<_ACEOF
13560 cat confdefs.h >>conftest.$ac_ext
13561 cat >>conftest.$ac_ext <<_ACEOF
13562 /* end confdefs.h. */
13564 #define _XOPEN_SOURCE_EXTENDED 1
13566 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13568 #include <stdlib.h>
13573 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
13580 rm -f conftest.$ac_objext
13581 if { (ac_try="$ac_compile"
13582 case "(($ac_try" in
13583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13584 *) ac_try_echo=$ac_try;;
13586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13587 $as_echo "$ac_try_echo") >&5
13588 (eval "$ac_compile") 2>conftest.er1
13590 grep -v '^ *+' conftest.er1 >conftest.err
13592 cat conftest.err >&5
13593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); } && {
13595 test -z "$ac_c_werror_flag" ||
13596 test ! -s conftest.err
13597 } && test -s conftest.$ac_objext; then
13600 cat >conftest.$ac_ext <<_ACEOF
13603 cat confdefs.h >>conftest.$ac_ext
13604 cat >>conftest.$ac_ext <<_ACEOF
13605 /* end confdefs.h. */
13607 #define _XOPEN_SOURCE_EXTENDED 1
13609 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13611 #include <stdlib.h>
13616 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
13623 rm -f conftest.$ac_objext
13624 if { (ac_try="$ac_compile"
13625 case "(($ac_try" in
13626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627 *) ac_try_echo=$ac_try;;
13629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13630 $as_echo "$ac_try_echo") >&5
13631 (eval "$ac_compile") 2>conftest.er1
13633 grep -v '^ *+' conftest.er1 >conftest.err
13635 cat conftest.err >&5
13636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); } && {
13638 test -z "$ac_c_werror_flag" ||
13639 test ! -s conftest.err
13640 } && test -s conftest.$ac_objext; then
13641 ac_lo=$ac_mid; break
13643 $as_echo "$as_me: failed program was:" >&5
13644 sed 's/^/| /' conftest.$ac_ext >&5
13646 ac_hi=`expr '(' $ac_mid ')' - 1`
13647 if test $ac_mid -le $ac_hi; then
13651 ac_mid=`expr 2 '*' $ac_mid`
13654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13657 $as_echo "$as_me: failed program was:" >&5
13658 sed 's/^/| /' conftest.$ac_ext >&5
13663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13667 # Binary search between lo and hi bounds.
13668 while test "x$ac_lo" != "x$ac_hi"; do
13669 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13670 cat >conftest.$ac_ext <<_ACEOF
13673 cat confdefs.h >>conftest.$ac_ext
13674 cat >>conftest.$ac_ext <<_ACEOF
13675 /* end confdefs.h. */
13677 #define _XOPEN_SOURCE_EXTENDED 1
13679 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13681 #include <stdlib.h>
13686 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
13693 rm -f conftest.$ac_objext
13694 if { (ac_try="$ac_compile"
13695 case "(($ac_try" in
13696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13697 *) ac_try_echo=$ac_try;;
13699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13700 $as_echo "$ac_try_echo") >&5
13701 (eval "$ac_compile") 2>conftest.er1
13703 grep -v '^ *+' conftest.er1 >conftest.err
13705 cat conftest.err >&5
13706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); } && {
13708 test -z "$ac_c_werror_flag" ||
13709 test ! -s conftest.err
13710 } && test -s conftest.$ac_objext; then
13713 $as_echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13716 ac_lo=`expr '(' $ac_mid ')' + 1`
13719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13722 ?*) gl_cv_header_errno_h_EOVERFLOW=$ac_lo;;
13726 cat >conftest.$ac_ext <<_ACEOF
13729 cat confdefs.h >>conftest.$ac_ext
13730 cat >>conftest.$ac_ext <<_ACEOF
13731 /* end confdefs.h. */
13733 #define _XOPEN_SOURCE_EXTENDED 1
13735 /* The following two lines are a workaround against an autoconf-2.52 bug. */
13737 #include <stdlib.h>
13739 static long int longval () { return EOVERFLOW; }
13740 static unsigned long int ulongval () { return EOVERFLOW; }
13742 #include <stdlib.h>
13747 FILE *f = fopen ("conftest.val", "w");
13750 if ((EOVERFLOW) < 0)
13752 long int i = longval ();
13753 if (i != (EOVERFLOW))
13755 fprintf (f, "%ld", i);
13759 unsigned long int i = ulongval ();
13760 if (i != (EOVERFLOW))
13762 fprintf (f, "%lu", i);
13764 /* Do not output a trailing newline, as this causes \r\n confusion
13765 on some platforms. */
13766 return ferror (f) || fclose (f) != 0;
13772 rm -f conftest$ac_exeext
13773 if { (ac_try="$ac_link"
13774 case "(($ac_try" in
13775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13776 *) ac_try_echo=$ac_try;;
13778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13779 $as_echo "$ac_try_echo") >&5
13780 (eval "$ac_link") 2>&5
13782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13784 { (case "(($ac_try" in
13785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13786 *) ac_try_echo=$ac_try;;
13788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13789 $as_echo "$ac_try_echo") >&5
13790 (eval "$ac_try") 2>&5
13792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; }; then
13794 gl_cv_header_errno_h_EOVERFLOW=`cat conftest.val`
13796 $as_echo "$as_me: program exited with status $ac_status" >&5
13797 $as_echo "$as_me: failed program was:" >&5
13798 sed 's/^/| /' conftest.$ac_ext >&5
13801 rm -rf conftest.dSYM
13802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13809 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
13810 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
13811 case $gl_cv_header_errno_h_EOVERFLOW in
13813 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
13816 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
13824 { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
13825 $as_echo_n "checking whether strerror_r is declared... " >&6; }
13826 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
13827 $as_echo_n "(cached) " >&6
13829 cat >conftest.$ac_ext <<_ACEOF
13832 cat confdefs.h >>conftest.$ac_ext
13833 cat >>conftest.$ac_ext <<_ACEOF
13834 /* end confdefs.h. */
13835 $ac_includes_default
13847 rm -f conftest.$ac_objext
13848 if { (ac_try="$ac_compile"
13849 case "(($ac_try" in
13850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13851 *) ac_try_echo=$ac_try;;
13853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13854 $as_echo "$ac_try_echo") >&5
13855 (eval "$ac_compile") 2>conftest.er1
13857 grep -v '^ *+' conftest.er1 >conftest.err
13859 cat conftest.err >&5
13860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); } && {
13862 test -z "$ac_c_werror_flag" ||
13863 test ! -s conftest.err
13864 } && test -s conftest.$ac_objext; then
13865 ac_cv_have_decl_strerror_r=yes
13867 $as_echo "$as_me: failed program was:" >&5
13868 sed 's/^/| /' conftest.$ac_ext >&5
13870 ac_cv_have_decl_strerror_r=no
13873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13875 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
13876 $as_echo "$ac_cv_have_decl_strerror_r" >&6; }
13877 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then
13879 cat >>confdefs.h <<_ACEOF
13880 #define HAVE_DECL_STRERROR_R 1
13885 cat >>confdefs.h <<_ACEOF
13886 #define HAVE_DECL_STRERROR_R 0
13894 for ac_func in strerror_r
13896 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13897 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13898 $as_echo_n "checking for $ac_func... " >&6; }
13899 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13900 $as_echo_n "(cached) " >&6
13902 cat >conftest.$ac_ext <<_ACEOF
13905 cat confdefs.h >>conftest.$ac_ext
13906 cat >>conftest.$ac_ext <<_ACEOF
13907 /* end confdefs.h. */
13908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13910 #define $ac_func innocuous_$ac_func
13912 /* System header to define __stub macros and hopefully few prototypes,
13913 which can conflict with char $ac_func (); below.
13914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13915 <limits.h> exists even on freestanding compilers. */
13918 # include <limits.h>
13920 # include <assert.h>
13925 /* Override any GCC internal prototype to avoid an error.
13926 Use char because int might match the return type of a GCC
13927 builtin and then its argument prototype would still apply. */
13932 /* The GNU C library defines this for functions which it implements
13933 to always fail with ENOSYS. Some functions are actually named
13934 something starting with __ and the normal name is an alias. */
13935 #if defined __stub_$ac_func || defined __stub___$ac_func
13942 return $ac_func ();
13947 rm -f conftest.$ac_objext conftest$ac_exeext
13948 if { (ac_try="$ac_link"
13949 case "(($ac_try" in
13950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13951 *) ac_try_echo=$ac_try;;
13953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13954 $as_echo "$ac_try_echo") >&5
13955 (eval "$ac_link") 2>conftest.er1
13957 grep -v '^ *+' conftest.er1 >conftest.err
13959 cat conftest.err >&5
13960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); } && {
13962 test -z "$ac_c_werror_flag" ||
13963 test ! -s conftest.err
13964 } && test -s conftest$ac_exeext && {
13965 test "$cross_compiling" = yes ||
13966 $as_test_x conftest$ac_exeext
13968 eval "$as_ac_var=yes"
13970 $as_echo "$as_me: failed program was:" >&5
13971 sed 's/^/| /' conftest.$ac_ext >&5
13973 eval "$as_ac_var=no"
13976 rm -rf conftest.dSYM
13977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13978 conftest$ac_exeext conftest.$ac_ext
13980 ac_res=`eval 'as_val=${'$as_ac_var'}
13981 $as_echo "$as_val"'`
13982 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13983 $as_echo "$ac_res" >&6; }
13984 as_val=`eval 'as_val=${'$as_ac_var'}
13985 $as_echo "$as_val"'`
13986 if test "x$as_val" = x""yes; then
13987 cat >>confdefs.h <<_ACEOF
13988 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13994 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
13995 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
13996 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
13997 $as_echo_n "(cached) " >&6
14000 ac_cv_func_strerror_r_char_p=no
14001 if test $ac_cv_have_decl_strerror_r = yes; then
14002 cat >conftest.$ac_ext <<_ACEOF
14005 cat confdefs.h >>conftest.$ac_ext
14006 cat >>conftest.$ac_ext <<_ACEOF
14007 /* end confdefs.h. */
14008 $ac_includes_default
14014 char x = *strerror_r (0, buf, sizeof buf);
14015 char *p = strerror_r (0, buf, sizeof buf);
14022 rm -f conftest.$ac_objext
14023 if { (ac_try="$ac_compile"
14024 case "(($ac_try" in
14025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14026 *) ac_try_echo=$ac_try;;
14028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14029 $as_echo "$ac_try_echo") >&5
14030 (eval "$ac_compile") 2>conftest.er1
14032 grep -v '^ *+' conftest.er1 >conftest.err
14034 cat conftest.err >&5
14035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); } && {
14037 test -z "$ac_c_werror_flag" ||
14038 test ! -s conftest.err
14039 } && test -s conftest.$ac_objext; then
14040 ac_cv_func_strerror_r_char_p=yes
14042 $as_echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14050 # strerror_r is not declared. Choose between
14051 # systems that have relatively inaccessible declarations for the
14052 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
14053 # former has a strerror_r that returns char*, while the latter
14054 # has a strerror_r that returns `int'.
14055 # This test should segfault on the DEC system.
14056 if test "$cross_compiling" = yes; then
14059 cat >conftest.$ac_ext <<_ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h. */
14065 $ac_includes_default
14066 extern char *strerror_r ();
14071 char x = *strerror_r (0, buf, sizeof buf);
14072 return ! isalpha (x);
14077 rm -f conftest$ac_exeext
14078 if { (ac_try="$ac_link"
14079 case "(($ac_try" in
14080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14081 *) ac_try_echo=$ac_try;;
14083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14084 $as_echo "$ac_try_echo") >&5
14085 (eval "$ac_link") 2>&5
14087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14089 { (case "(($ac_try" in
14090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14091 *) ac_try_echo=$ac_try;;
14093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14094 $as_echo "$ac_try_echo") >&5
14095 (eval "$ac_try") 2>&5
14097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); }; }; then
14099 ac_cv_func_strerror_r_char_p=yes
14101 $as_echo "$as_me: program exited with status $ac_status" >&5
14102 $as_echo "$as_me: failed program was:" >&5
14103 sed 's/^/| /' conftest.$ac_ext >&5
14106 rm -rf conftest.dSYM
14107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14114 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
14115 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
14116 if test $ac_cv_func_strerror_r_char_p = yes; then
14118 cat >>confdefs.h <<\_ACEOF
14119 #define STRERROR_R_CHAR_P 1
14136 GNULIB_UTIMENSAT=0;
14150 REPLACE_FUTIMENS=0;
14156 REPLACE_UTIMENSAT=0;
14158 { $as_echo "$as_me:$LINENO: checking whether fchdir is declared" >&5
14159 $as_echo_n "checking whether fchdir is declared... " >&6; }
14160 if test "${ac_cv_have_decl_fchdir+set}" = set; then
14161 $as_echo_n "(cached) " >&6
14163 cat >conftest.$ac_ext <<_ACEOF
14166 cat confdefs.h >>conftest.$ac_ext
14167 cat >>conftest.$ac_ext <<_ACEOF
14168 /* end confdefs.h. */
14169 $ac_includes_default
14181 rm -f conftest.$ac_objext
14182 if { (ac_try="$ac_compile"
14183 case "(($ac_try" in
14184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14185 *) ac_try_echo=$ac_try;;
14187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14188 $as_echo "$ac_try_echo") >&5
14189 (eval "$ac_compile") 2>conftest.er1
14191 grep -v '^ *+' conftest.er1 >conftest.err
14193 cat conftest.err >&5
14194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); } && {
14196 test -z "$ac_c_werror_flag" ||
14197 test ! -s conftest.err
14198 } && test -s conftest.$ac_objext; then
14199 ac_cv_have_decl_fchdir=yes
14201 $as_echo "$as_me: failed program was:" >&5
14202 sed 's/^/| /' conftest.$ac_ext >&5
14204 ac_cv_have_decl_fchdir=no
14207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14209 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fchdir" >&5
14210 $as_echo "$ac_cv_have_decl_fchdir" >&6; }
14211 if test "x$ac_cv_have_decl_fchdir" = x""yes; then
14213 cat >>confdefs.h <<_ACEOF
14214 #define HAVE_DECL_FCHDIR 1
14219 cat >>confdefs.h <<_ACEOF
14220 #define HAVE_DECL_FCHDIR 0
14241 { $as_echo "$as_me:$LINENO: checking for promoted mode_t type" >&5
14242 $as_echo_n "checking for promoted mode_t type... " >&6; }
14243 if test "${gl_cv_promoted_mode_t+set}" = set; then
14244 $as_echo_n "(cached) " >&6
14247 cat >conftest.$ac_ext <<_ACEOF
14250 cat confdefs.h >>conftest.$ac_ext
14251 cat >>conftest.$ac_ext <<_ACEOF
14252 /* end confdefs.h. */
14253 #include <sys/types.h>
14257 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
14262 rm -f conftest.$ac_objext
14263 if { (ac_try="$ac_compile"
14264 case "(($ac_try" in
14265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14266 *) ac_try_echo=$ac_try;;
14268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14269 $as_echo "$ac_try_echo") >&5
14270 (eval "$ac_compile") 2>conftest.er1
14272 grep -v '^ *+' conftest.er1 >conftest.err
14274 cat conftest.err >&5
14275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 (exit $ac_status); } && {
14277 test -z "$ac_c_werror_flag" ||
14278 test ! -s conftest.err
14279 } && test -s conftest.$ac_objext; then
14280 gl_cv_promoted_mode_t='int'
14282 $as_echo "$as_me: failed program was:" >&5
14283 sed 's/^/| /' conftest.$ac_ext >&5
14285 gl_cv_promoted_mode_t='mode_t'
14288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14291 { $as_echo "$as_me:$LINENO: result: $gl_cv_promoted_mode_t" >&5
14292 $as_echo "$gl_cv_promoted_mode_t" >&6; }
14294 cat >>confdefs.h <<_ACEOF
14295 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
14305 GNULIB_FPRINTF_POSIX=0;
14317 GNULIB_OBSTACK_PRINTF=0;
14318 GNULIB_OBSTACK_PRINTF_POSIX=0;
14322 GNULIB_PRINTF_POSIX=0;
14330 GNULIB_SPRINTF_POSIX=0;
14331 GNULIB_STDIO_H_SIGPIPE=0;
14333 GNULIB_VASPRINTF=0;
14336 GNULIB_VFPRINTF_POSIX=0;
14338 GNULIB_VPRINTF_POSIX=0;
14339 GNULIB_VSNPRINTF=0;
14340 GNULIB_VSPRINTF_POSIX=0;
14341 HAVE_DECL_FPURGE=1;
14342 HAVE_DECL_FSEEKO=1;
14343 HAVE_DECL_FTELLO=1;
14344 HAVE_DECL_GETDELIM=1;
14345 HAVE_DECL_GETLINE=1;
14346 HAVE_DECL_OBSTACK_PRINTF=1;
14347 HAVE_DECL_SNPRINTF=1;
14348 HAVE_DECL_VSNPRINTF=1;
14366 REPLACE_GETDELIM=0;
14368 REPLACE_OBSTACK_PRINTF=0;
14374 REPLACE_RENAMEAT=0;
14375 REPLACE_SNPRINTF=0;
14377 REPLACE_STDIO_WRITE_FUNCS=0;
14379 REPLACE_VASPRINTF=0;
14380 REPLACE_VDPRINTF=0;
14381 REPLACE_VFPRINTF=0;
14383 REPLACE_VSNPRINTF=0;
14384 REPLACE_VSPRINTF=0;
14388 { $as_echo "$as_me:$LINENO: checking for working fcntl.h" >&5
14389 $as_echo_n "checking for working fcntl.h... " >&6; }
14390 if test "${gl_cv_header_working_fcntl_h+set}" = set; then
14391 $as_echo_n "(cached) " >&6
14393 if test "$cross_compiling" = yes; then
14394 gl_cv_header_working_fcntl_h=cross-compiling
14396 cat >conftest.$ac_ext <<_ACEOF
14399 cat confdefs.h >>conftest.$ac_ext
14400 cat >>conftest.$ac_ext <<_ACEOF
14401 /* end confdefs.h. */
14402 #include <sys/types.h>
14403 #include <sys/stat.h>
14404 #include <unistd.h>
14407 #define O_NOATIME 0
14410 #define O_NOFOLLOW 0
14412 static int const constants[] =
14414 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
14415 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
14422 int result = !constants;
14424 static char const sym[] = "conftest.sym";
14425 if (symlink (".", sym) != 0)
14429 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
14439 static char const file[] = "confdefs.h";
14440 int fd = open (file, O_RDONLY | O_NOATIME);
14446 if (fstat (fd, &st0) != 0)
14452 if (read (fd, &c, 1) != 1)
14456 if (close (fd) != 0)
14461 if (stat (file, &st1) != 0)
14464 if (st0.st_atime != st1.st_atime)
14476 rm -f conftest$ac_exeext
14477 if { (ac_try="$ac_link"
14478 case "(($ac_try" in
14479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14480 *) ac_try_echo=$ac_try;;
14482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14483 $as_echo "$ac_try_echo") >&5
14484 (eval "$ac_link") 2>&5
14486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14488 { (case "(($ac_try" in
14489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14490 *) ac_try_echo=$ac_try;;
14492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14493 $as_echo "$ac_try_echo") >&5
14494 (eval "$ac_try") 2>&5
14496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); }; }; then
14498 gl_cv_header_working_fcntl_h=yes
14500 $as_echo "$as_me: program exited with status $ac_status" >&5
14501 $as_echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.$ac_ext >&5
14504 ( exit $ac_status )
14506 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
14507 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
14508 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
14509 *) gl_cv_header_working_fcntl_h='no';;
14512 rm -rf conftest.dSYM
14513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14518 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_fcntl_h" >&5
14519 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
14521 case $gl_cv_header_working_fcntl_h in #(
14522 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
14526 cat >>confdefs.h <<_ACEOF
14527 #define HAVE_WORKING_O_NOATIME $ac_val
14531 case $gl_cv_header_working_fcntl_h in #(
14532 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
14536 cat >>confdefs.h <<_ACEOF
14537 #define HAVE_WORKING_O_NOFOLLOW $ac_val
14545 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
14546 $as_echo_n "checking for mbstate_t... " >&6; }
14547 if test "${ac_cv_type_mbstate_t+set}" = set; then
14548 $as_echo_n "(cached) " >&6
14550 cat >conftest.$ac_ext <<_ACEOF
14553 cat confdefs.h >>conftest.$ac_ext
14554 cat >>conftest.$ac_ext <<_ACEOF
14555 /* end confdefs.h. */
14556 $ac_includes_default
14557 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14559 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14560 included before <wchar.h>. */
14561 #include <stddef.h>
14568 mbstate_t x; return sizeof x;
14573 rm -f conftest.$ac_objext
14574 if { (ac_try="$ac_compile"
14575 case "(($ac_try" in
14576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14577 *) ac_try_echo=$ac_try;;
14579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14580 $as_echo "$ac_try_echo") >&5
14581 (eval "$ac_compile") 2>conftest.er1
14583 grep -v '^ *+' conftest.er1 >conftest.err
14585 cat conftest.err >&5
14586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); } && {
14588 test -z "$ac_c_werror_flag" ||
14589 test ! -s conftest.err
14590 } && test -s conftest.$ac_objext; then
14591 ac_cv_type_mbstate_t=yes
14593 $as_echo "$as_me: failed program was:" >&5
14594 sed 's/^/| /' conftest.$ac_ext >&5
14596 ac_cv_type_mbstate_t=no
14599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14601 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
14602 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14603 if test $ac_cv_type_mbstate_t = yes; then
14605 cat >>confdefs.h <<\_ACEOF
14606 #define HAVE_MBSTATE_T 1
14611 cat >>confdefs.h <<\_ACEOF
14612 #define mbstate_t int
14640 { $as_echo "$as_me:$LINENO: checking for fseeko" >&5
14641 $as_echo_n "checking for fseeko... " >&6; }
14642 if test "${gl_cv_func_fseeko+set}" = set; then
14643 $as_echo_n "(cached) " >&6
14646 cat >conftest.$ac_ext <<_ACEOF
14649 cat confdefs.h >>conftest.$ac_ext
14650 cat >>conftest.$ac_ext <<_ACEOF
14651 /* end confdefs.h. */
14657 fseeko (stdin, 0, 0);
14662 rm -f conftest.$ac_objext conftest$ac_exeext
14663 if { (ac_try="$ac_link"
14664 case "(($ac_try" in
14665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14666 *) ac_try_echo=$ac_try;;
14668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14669 $as_echo "$ac_try_echo") >&5
14670 (eval "$ac_link") 2>conftest.er1
14672 grep -v '^ *+' conftest.er1 >conftest.err
14674 cat conftest.err >&5
14675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); } && {
14677 test -z "$ac_c_werror_flag" ||
14678 test ! -s conftest.err
14679 } && test -s conftest$ac_exeext && {
14680 test "$cross_compiling" = yes ||
14681 $as_test_x conftest$ac_exeext
14683 gl_cv_func_fseeko=yes
14685 $as_echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.$ac_ext >&5
14688 gl_cv_func_fseeko=no
14691 rm -rf conftest.dSYM
14692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14693 conftest$ac_exeext conftest.$ac_ext
14696 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fseeko" >&5
14697 $as_echo "$gl_cv_func_fseeko" >&6; }
14700 { $as_echo "$as_me:$LINENO: checking whether stdin defaults to large file offsets" >&5
14701 $as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
14702 if test "${gl_cv_var_stdin_large_offset+set}" = set; then
14703 $as_echo_n "(cached) " >&6
14705 cat >conftest.$ac_ext <<_ACEOF
14708 cat confdefs.h >>conftest.$ac_ext
14709 cat >>conftest.$ac_ext <<_ACEOF
14710 /* end confdefs.h. */
14715 #if defined __SL64 && defined __SCLE /* cygwin */
14716 /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
14717 fseeko/ftello needlessly fail. This bug was fixed in 1.5.25, and
14718 it is easier to do a version check than building a runtime test. */
14719 # include <cygwin/version.h>
14720 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
14728 rm -f conftest.$ac_objext conftest$ac_exeext
14729 if { (ac_try="$ac_link"
14730 case "(($ac_try" in
14731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14732 *) ac_try_echo=$ac_try;;
14734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14735 $as_echo "$ac_try_echo") >&5
14736 (eval "$ac_link") 2>conftest.er1
14738 grep -v '^ *+' conftest.er1 >conftest.err
14740 cat conftest.err >&5
14741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); } && {
14743 test -z "$ac_c_werror_flag" ||
14744 test ! -s conftest.err
14745 } && test -s conftest$ac_exeext && {
14746 test "$cross_compiling" = yes ||
14747 $as_test_x conftest$ac_exeext
14749 gl_cv_var_stdin_large_offset=yes
14751 $as_echo "$as_me: failed program was:" >&5
14752 sed 's/^/| /' conftest.$ac_ext >&5
14754 gl_cv_var_stdin_large_offset=no
14757 rm -rf conftest.dSYM
14758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14759 conftest$ac_exeext conftest.$ac_ext
14761 { $as_echo "$as_me:$LINENO: result: $gl_cv_var_stdin_large_offset" >&5
14762 $as_echo "$gl_cv_var_stdin_large_offset" >&6; }
14764 { $as_echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
14765 $as_echo_n "checking whether fseeko is declared... " >&6; }
14766 if test "${ac_cv_have_decl_fseeko+set}" = set; then
14767 $as_echo_n "(cached) " >&6
14769 cat >conftest.$ac_ext <<_ACEOF
14772 cat confdefs.h >>conftest.$ac_ext
14773 cat >>conftest.$ac_ext <<_ACEOF
14774 /* end confdefs.h. */
14775 $ac_includes_default
14787 rm -f conftest.$ac_objext
14788 if { (ac_try="$ac_compile"
14789 case "(($ac_try" in
14790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791 *) ac_try_echo=$ac_try;;
14793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14794 $as_echo "$ac_try_echo") >&5
14795 (eval "$ac_compile") 2>conftest.er1
14797 grep -v '^ *+' conftest.er1 >conftest.err
14799 cat conftest.err >&5
14800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); } && {
14802 test -z "$ac_c_werror_flag" ||
14803 test ! -s conftest.err
14804 } && test -s conftest.$ac_objext; then
14805 ac_cv_have_decl_fseeko=yes
14807 $as_echo "$as_me: failed program was:" >&5
14808 sed 's/^/| /' conftest.$ac_ext >&5
14810 ac_cv_have_decl_fseeko=no
14813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14815 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
14816 $as_echo "$ac_cv_have_decl_fseeko" >&6; }
14817 if test "x$ac_cv_have_decl_fseeko" = x""yes; then
14819 cat >>confdefs.h <<_ACEOF
14820 #define HAVE_DECL_FSEEKO 1
14825 cat >>confdefs.h <<_ACEOF
14826 #define HAVE_DECL_FSEEKO 0
14836 { $as_echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
14837 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
14838 if test "${gl_cv_func_getcwd_null+set}" = set; then
14839 $as_echo_n "(cached) " >&6
14841 if test "$cross_compiling" = yes; then
14844 # Guess yes on glibc systems.
14845 *-gnu*) gl_cv_func_getcwd_null="guessing yes";;
14846 # Guess yes on Cygwin.
14847 cygwin*) gl_cv_func_getcwd_null="guessing yes";;
14848 # Guess yes on mingw.
14849 mingw*) gl_cv_func_getcwd_null="guessing yes";;
14850 # If we don't know, assume the worst.
14851 *) gl_cv_func_getcwd_null="guessing no";;
14855 cat >conftest.$ac_ext <<_ACEOF
14858 cat confdefs.h >>conftest.$ac_ext
14859 cat >>conftest.$ac_ext <<_ACEOF
14860 /* end confdefs.h. */
14862 # include <unistd.h>
14871 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
14872 /* mingw cwd does not start with '/', but getcwd does allocate. */
14874 if (chdir ("/") != 0)
14878 char *f = getcwd (NULL, 0);
14893 rm -f conftest$ac_exeext
14894 if { (ac_try="$ac_link"
14895 case "(($ac_try" in
14896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14897 *) ac_try_echo=$ac_try;;
14899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14900 $as_echo "$ac_try_echo") >&5
14901 (eval "$ac_link") 2>&5
14903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14905 { (case "(($ac_try" in
14906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14907 *) ac_try_echo=$ac_try;;
14909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14910 $as_echo "$ac_try_echo") >&5
14911 (eval "$ac_try") 2>&5
14913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); }; }; then
14915 gl_cv_func_getcwd_null=yes
14917 $as_echo "$as_me: program exited with status $ac_status" >&5
14918 $as_echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14921 ( exit $ac_status )
14922 gl_cv_func_getcwd_null=no
14924 rm -rf conftest.dSYM
14925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14930 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_null" >&5
14931 $as_echo "$gl_cv_func_getcwd_null" >&6; }
14933 { $as_echo "$as_me:$LINENO: checking whether getcwd is declared" >&5
14934 $as_echo_n "checking whether getcwd is declared... " >&6; }
14935 if test "${ac_cv_have_decl_getcwd+set}" = set; then
14936 $as_echo_n "(cached) " >&6
14938 cat >conftest.$ac_ext <<_ACEOF
14941 cat confdefs.h >>conftest.$ac_ext
14942 cat >>conftest.$ac_ext <<_ACEOF
14943 /* end confdefs.h. */
14944 $ac_includes_default
14956 rm -f conftest.$ac_objext
14957 if { (ac_try="$ac_compile"
14958 case "(($ac_try" in
14959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14960 *) ac_try_echo=$ac_try;;
14962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14963 $as_echo "$ac_try_echo") >&5
14964 (eval "$ac_compile") 2>conftest.er1
14966 grep -v '^ *+' conftest.er1 >conftest.err
14968 cat conftest.err >&5
14969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); } && {
14971 test -z "$ac_c_werror_flag" ||
14972 test ! -s conftest.err
14973 } && test -s conftest.$ac_objext; then
14974 ac_cv_have_decl_getcwd=yes
14976 $as_echo "$as_me: failed program was:" >&5
14977 sed 's/^/| /' conftest.$ac_ext >&5
14979 ac_cv_have_decl_getcwd=no
14982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14984 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcwd" >&5
14985 $as_echo "$ac_cv_have_decl_getcwd" >&6; }
14986 if test "x$ac_cv_have_decl_getcwd" = x""yes; then
14988 cat >>confdefs.h <<_ACEOF
14989 #define HAVE_DECL_GETCWD 1
14994 cat >>confdefs.h <<_ACEOF
14995 #define HAVE_DECL_GETCWD 0
15002 { $as_echo "$as_me:$LINENO: checking whether getdelim is declared" >&5
15003 $as_echo_n "checking whether getdelim is declared... " >&6; }
15004 if test "${ac_cv_have_decl_getdelim+set}" = set; then
15005 $as_echo_n "(cached) " >&6
15007 cat >conftest.$ac_ext <<_ACEOF
15010 cat confdefs.h >>conftest.$ac_ext
15011 cat >>conftest.$ac_ext <<_ACEOF
15012 /* end confdefs.h. */
15013 $ac_includes_default
15025 rm -f conftest.$ac_objext
15026 if { (ac_try="$ac_compile"
15027 case "(($ac_try" in
15028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15029 *) ac_try_echo=$ac_try;;
15031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15032 $as_echo "$ac_try_echo") >&5
15033 (eval "$ac_compile") 2>conftest.er1
15035 grep -v '^ *+' conftest.er1 >conftest.err
15037 cat conftest.err >&5
15038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); } && {
15040 test -z "$ac_c_werror_flag" ||
15041 test ! -s conftest.err
15042 } && test -s conftest.$ac_objext; then
15043 ac_cv_have_decl_getdelim=yes
15045 $as_echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.$ac_ext >&5
15048 ac_cv_have_decl_getdelim=no
15051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15053 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5
15054 $as_echo "$ac_cv_have_decl_getdelim" >&6; }
15055 if test "x$ac_cv_have_decl_getdelim" = x""yes; then
15057 cat >>confdefs.h <<_ACEOF
15058 #define HAVE_DECL_GETDELIM 1
15063 cat >>confdefs.h <<_ACEOF
15064 #define HAVE_DECL_GETDELIM 0
15075 { $as_echo "$as_me:$LINENO: checking whether getline is declared" >&5
15076 $as_echo_n "checking whether getline is declared... " >&6; }
15077 if test "${ac_cv_have_decl_getline+set}" = set; then
15078 $as_echo_n "(cached) " >&6
15080 cat >conftest.$ac_ext <<_ACEOF
15083 cat confdefs.h >>conftest.$ac_ext
15084 cat >>conftest.$ac_ext <<_ACEOF
15085 /* end confdefs.h. */
15086 $ac_includes_default
15098 rm -f conftest.$ac_objext
15099 if { (ac_try="$ac_compile"
15100 case "(($ac_try" in
15101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15102 *) ac_try_echo=$ac_try;;
15104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15105 $as_echo "$ac_try_echo") >&5
15106 (eval "$ac_compile") 2>conftest.er1
15108 grep -v '^ *+' conftest.er1 >conftest.err
15110 cat conftest.err >&5
15111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); } && {
15113 test -z "$ac_c_werror_flag" ||
15114 test ! -s conftest.err
15115 } && test -s conftest.$ac_objext; then
15116 ac_cv_have_decl_getline=yes
15118 $as_echo "$as_me: failed program was:" >&5
15119 sed 's/^/| /' conftest.$ac_ext >&5
15121 ac_cv_have_decl_getline=no
15124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15126 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5
15127 $as_echo "$ac_cv_have_decl_getline" >&6; }
15128 if test "x$ac_cv_have_decl_getline" = x""yes; then
15130 cat >>confdefs.h <<_ACEOF
15131 #define HAVE_DECL_GETLINE 1
15136 cat >>confdefs.h <<_ACEOF
15137 #define HAVE_DECL_GETLINE 0
15164 if test $gl_cv_have_include_next = yes; then
15165 gl_cv_next_getopt_h='<'getopt.h'>'
15167 { $as_echo "$as_me:$LINENO: checking absolute name of <getopt.h>" >&5
15168 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
15169 if test "${gl_cv_next_getopt_h+set}" = set; then
15170 $as_echo_n "(cached) " >&6
15173 if test $ac_cv_header_getopt_h = yes; then
15176 cat >conftest.$ac_ext <<_ACEOF
15179 cat confdefs.h >>conftest.$ac_ext
15180 cat >>conftest.$ac_ext <<_ACEOF
15181 /* end confdefs.h. */
15182 #include <getopt.h>
15186 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15187 *) gl_absname_cpp="$ac_cpp" ;;
15189 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15190 sed -n '\#/getopt.h#{
15191 s#.*"\(.*/getopt.h\)".*#\1#
15197 gl_cv_next_getopt_h='<'getopt.h'>'
15202 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_getopt_h" >&5
15203 $as_echo "$gl_cv_next_getopt_h" >&6; }
15205 NEXT_GETOPT_H=$gl_cv_next_getopt_h
15207 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15208 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15209 gl_next_as_first_directive='<'getopt.h'>'
15211 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15212 gl_next_as_first_directive=$gl_cv_next_getopt_h
15214 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
15219 if test $ac_cv_header_getopt_h = yes; then
15228 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
15230 for ac_header in getopt.h
15232 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15234 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15235 $as_echo_n "checking for $ac_header... " >&6; }
15236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15237 $as_echo_n "(cached) " >&6
15239 ac_res=`eval 'as_val=${'$as_ac_Header'}
15240 $as_echo "$as_val"'`
15241 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15242 $as_echo "$ac_res" >&6; }
15244 # Is the header compilable?
15245 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15246 $as_echo_n "checking $ac_header usability... " >&6; }
15247 cat >conftest.$ac_ext <<_ACEOF
15250 cat confdefs.h >>conftest.$ac_ext
15251 cat >>conftest.$ac_ext <<_ACEOF
15252 /* end confdefs.h. */
15253 $ac_includes_default
15254 #include <$ac_header>
15256 rm -f conftest.$ac_objext
15257 if { (ac_try="$ac_compile"
15258 case "(($ac_try" in
15259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15260 *) ac_try_echo=$ac_try;;
15262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15263 $as_echo "$ac_try_echo") >&5
15264 (eval "$ac_compile") 2>conftest.er1
15266 grep -v '^ *+' conftest.er1 >conftest.err
15268 cat conftest.err >&5
15269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); } && {
15271 test -z "$ac_c_werror_flag" ||
15272 test ! -s conftest.err
15273 } && test -s conftest.$ac_objext; then
15274 ac_header_compiler=yes
15276 $as_echo "$as_me: failed program was:" >&5
15277 sed 's/^/| /' conftest.$ac_ext >&5
15279 ac_header_compiler=no
15282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15283 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15284 $as_echo "$ac_header_compiler" >&6; }
15286 # Is the header present?
15287 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15288 $as_echo_n "checking $ac_header presence... " >&6; }
15289 cat >conftest.$ac_ext <<_ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h. */
15295 #include <$ac_header>
15297 if { (ac_try="$ac_cpp conftest.$ac_ext"
15298 case "(($ac_try" in
15299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300 *) ac_try_echo=$ac_try;;
15302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15303 $as_echo "$ac_try_echo") >&5
15304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15306 grep -v '^ *+' conftest.er1 >conftest.err
15308 cat conftest.err >&5
15309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); } >/dev/null && {
15311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15312 test ! -s conftest.err
15314 ac_header_preproc=yes
15316 $as_echo "$as_me: failed program was:" >&5
15317 sed 's/^/| /' conftest.$ac_ext >&5
15319 ac_header_preproc=no
15322 rm -f conftest.err conftest.$ac_ext
15323 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15324 $as_echo "$ac_header_preproc" >&6; }
15326 # So? What about this header?
15327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15330 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15332 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15333 ac_header_preproc=yes
15336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15337 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15338 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15339 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15340 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15341 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15343 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15345 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15347 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15349 ## ------------------------------ ##
15350 ## Report this to bug-tar@gnu.org ##
15351 ## ------------------------------ ##
15353 ) | sed "s/^/$as_me: WARNING: /" >&2
15356 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15357 $as_echo_n "checking for $ac_header... " >&6; }
15358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15359 $as_echo_n "(cached) " >&6
15361 eval "$as_ac_Header=\$ac_header_preproc"
15363 ac_res=`eval 'as_val=${'$as_ac_Header'}
15364 $as_echo "$as_val"'`
15365 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15366 $as_echo "$ac_res" >&6; }
15369 as_val=`eval 'as_val=${'$as_ac_Header'}
15370 $as_echo "$as_val"'`
15371 if test "x$as_val" = x""yes; then
15372 cat >>confdefs.h <<_ACEOF
15373 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15377 gl_replace_getopt=yes
15384 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
15386 for ac_func in getopt_long_only
15388 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15389 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15390 $as_echo_n "checking for $ac_func... " >&6; }
15391 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15392 $as_echo_n "(cached) " >&6
15394 cat >conftest.$ac_ext <<_ACEOF
15397 cat confdefs.h >>conftest.$ac_ext
15398 cat >>conftest.$ac_ext <<_ACEOF
15399 /* end confdefs.h. */
15400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15402 #define $ac_func innocuous_$ac_func
15404 /* System header to define __stub macros and hopefully few prototypes,
15405 which can conflict with char $ac_func (); below.
15406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15407 <limits.h> exists even on freestanding compilers. */
15410 # include <limits.h>
15412 # include <assert.h>
15417 /* Override any GCC internal prototype to avoid an error.
15418 Use char because int might match the return type of a GCC
15419 builtin and then its argument prototype would still apply. */
15424 /* The GNU C library defines this for functions which it implements
15425 to always fail with ENOSYS. Some functions are actually named
15426 something starting with __ and the normal name is an alias. */
15427 #if defined __stub_$ac_func || defined __stub___$ac_func
15434 return $ac_func ();
15439 rm -f conftest.$ac_objext conftest$ac_exeext
15440 if { (ac_try="$ac_link"
15441 case "(($ac_try" in
15442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15443 *) ac_try_echo=$ac_try;;
15445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15446 $as_echo "$ac_try_echo") >&5
15447 (eval "$ac_link") 2>conftest.er1
15449 grep -v '^ *+' conftest.er1 >conftest.err
15451 cat conftest.err >&5
15452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); } && {
15454 test -z "$ac_c_werror_flag" ||
15455 test ! -s conftest.err
15456 } && test -s conftest$ac_exeext && {
15457 test "$cross_compiling" = yes ||
15458 $as_test_x conftest$ac_exeext
15460 eval "$as_ac_var=yes"
15462 $as_echo "$as_me: failed program was:" >&5
15463 sed 's/^/| /' conftest.$ac_ext >&5
15465 eval "$as_ac_var=no"
15468 rm -rf conftest.dSYM
15469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15470 conftest$ac_exeext conftest.$ac_ext
15472 ac_res=`eval 'as_val=${'$as_ac_var'}
15473 $as_echo "$as_val"'`
15474 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15475 $as_echo "$ac_res" >&6; }
15476 as_val=`eval 'as_val=${'$as_ac_var'}
15477 $as_echo "$as_val"'`
15478 if test "x$as_val" = x""yes; then
15479 cat >>confdefs.h <<_ACEOF
15480 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15484 gl_replace_getopt=yes
15490 if test -z "$gl_replace_getopt"; then
15491 { $as_echo "$as_me:$LINENO: checking whether getopt is POSIX compatible" >&5
15492 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
15493 if test "${gl_cv_func_getopt_posix+set}" = set; then
15494 $as_echo_n "(cached) " >&6
15497 cat >conftest.$ac_ext <<_ACEOF
15500 cat confdefs.h >>conftest.$ac_ext
15501 cat >>conftest.$ac_ext <<_ACEOF
15502 /* end confdefs.h. */
15503 #include <unistd.h>
15507 int *p = &optreset; return optreset;
15512 rm -f conftest.$ac_objext
15513 if { (ac_try="$ac_compile"
15514 case "(($ac_try" in
15515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15516 *) ac_try_echo=$ac_try;;
15518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15519 $as_echo "$ac_try_echo") >&5
15520 (eval "$ac_compile") 2>conftest.er1
15522 grep -v '^ *+' conftest.er1 >conftest.err
15524 cat conftest.err >&5
15525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); } && {
15527 test -z "$ac_c_werror_flag" ||
15528 test ! -s conftest.err
15529 } && test -s conftest.$ac_objext; then
15532 $as_echo "$as_me: failed program was:" >&5
15533 sed 's/^/| /' conftest.$ac_ext >&5
15535 cat >conftest.$ac_ext <<_ACEOF
15538 cat confdefs.h >>conftest.$ac_ext
15539 cat >>conftest.$ac_ext <<_ACEOF
15540 /* end confdefs.h. */
15541 #include <getopt.h>
15545 return !getopt_clip;
15550 rm -f conftest.$ac_objext
15551 if { (ac_try="$ac_compile"
15552 case "(($ac_try" in
15553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554 *) ac_try_echo=$ac_try;;
15556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15557 $as_echo "$ac_try_echo") >&5
15558 (eval "$ac_compile") 2>conftest.er1
15560 grep -v '^ *+' conftest.er1 >conftest.err
15562 cat conftest.err >&5
15563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); } && {
15565 test -z "$ac_c_werror_flag" ||
15566 test ! -s conftest.err
15567 } && test -s conftest.$ac_objext; then
15570 $as_echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15581 gl_save_CPPFLAGS=$CPPFLAGS
15582 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
15583 if test "$cross_compiling" = yes; then
15585 mingw*) gl_cv_func_getopt_posix="guessing no";;
15586 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
15587 *) gl_cv_func_getopt_posix="guessing yes";;
15591 cat >conftest.$ac_ext <<_ACEOF
15594 cat confdefs.h >>conftest.$ac_ext
15595 cat >>conftest.$ac_ext <<_ACEOF
15596 /* end confdefs.h. */
15598 #include <unistd.h>
15599 #include <stdlib.h>
15600 #include <string.h>
15610 argv[argc++] = "program";
15611 argv[argc++] = "-a";
15612 argv[argc++] = "foo";
15613 argv[argc++] = "bar";
15615 optind = OPTIND_MIN;
15618 c = getopt (argc, argv, "ab");
15621 c = getopt (argc, argv, "ab");
15624 if (!(optind == 2))
15627 /* Some internal state exists at this point. */
15633 argv[argc++] = "program";
15634 argv[argc++] = "donald";
15635 argv[argc++] = "-p";
15636 argv[argc++] = "billy";
15637 argv[argc++] = "duck";
15638 argv[argc++] = "-a";
15639 argv[argc++] = "bar";
15641 optind = OPTIND_MIN;
15644 c = getopt (argc, argv, "+abp:q:");
15647 if (!(strcmp (argv[0], "program") == 0))
15649 if (!(strcmp (argv[1], "donald") == 0))
15651 if (!(strcmp (argv[2], "-p") == 0))
15653 if (!(strcmp (argv[3], "billy") == 0))
15655 if (!(strcmp (argv[4], "duck") == 0))
15657 if (!(strcmp (argv[5], "-a") == 0))
15659 if (!(strcmp (argv[6], "bar") == 0))
15661 if (!(optind == 1))
15664 /* Detect MacOS 10.5, AIX 7.1 bug. */
15666 char *argv[3] = { "program", "-ab", NULL };
15667 optind = OPTIND_MIN;
15669 if (getopt (2, argv, "ab:") != 'a')
15671 if (getopt (2, argv, "ab:") != '?')
15683 rm -f conftest$ac_exeext
15684 if { (ac_try="$ac_link"
15685 case "(($ac_try" in
15686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15687 *) ac_try_echo=$ac_try;;
15689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15690 $as_echo "$ac_try_echo") >&5
15691 (eval "$ac_link") 2>&5
15693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15695 { (case "(($ac_try" in
15696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15697 *) ac_try_echo=$ac_try;;
15699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15700 $as_echo "$ac_try_echo") >&5
15701 (eval "$ac_try") 2>&5
15703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); }; }; then
15705 gl_cv_func_getopt_posix=yes
15707 $as_echo "$as_me: program exited with status $ac_status" >&5
15708 $as_echo "$as_me: failed program was:" >&5
15709 sed 's/^/| /' conftest.$ac_ext >&5
15711 ( exit $ac_status )
15712 gl_cv_func_getopt_posix=no
15714 rm -rf conftest.dSYM
15715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15719 CPPFLAGS=$gl_save_CPPFLAGS
15722 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getopt_posix" >&5
15723 $as_echo "$gl_cv_func_getopt_posix" >&6; }
15724 case "$gl_cv_func_getopt_posix" in
15725 *no) gl_replace_getopt=yes ;;
15729 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
15730 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
15731 $as_echo_n "checking for working GNU getopt function... " >&6; }
15732 if test "${gl_cv_func_getopt_gnu+set}" = set; then
15733 $as_echo_n "(cached) " >&6
15735 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
15736 # optstring is necessary for programs like m4 that have POSIX-mandated
15737 # semantics for supporting options interspersed with files.
15738 # Also, since getopt_long is a GNU extension, we require optind=0.
15739 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
15740 # so take care to revert to the correct (non-)export state.
15741 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
15742 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
15743 xx) gl_had_POSIXLY_CORRECT=exported ;;
15744 x) gl_had_POSIXLY_CORRECT=yes ;;
15745 *) gl_had_POSIXLY_CORRECT= ;;
15748 export POSIXLY_CORRECT
15749 if test "$cross_compiling" = yes; then
15750 case $host_os:$ac_cv_have_decl_optreset in
15751 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
15752 *:yes) gl_cv_func_getopt_gnu=no;;
15753 *) gl_cv_func_getopt_gnu=yes;;
15757 cat >conftest.$ac_ext <<_ACEOF
15760 cat confdefs.h >>conftest.$ac_ext
15761 cat >>conftest.$ac_ext <<_ACEOF
15762 /* end confdefs.h. */
15763 #include <getopt.h>
15764 #include <stddef.h>
15765 #include <string.h>
15772 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
15773 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
15774 OSF/1 5.1, Solaris 10. */
15777 myargv[0] = "conftest";
15781 if (getopt (2, myargv, "+a") != '?')
15784 /* This code succeeds on glibc 2.8, mingw,
15785 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
15786 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
15788 char *argv[] = { "program", "-p", "foo", "bar", NULL };
15791 if (getopt (4, argv, "p::") != 'p')
15793 else if (optarg != NULL)
15795 else if (getopt (4, argv, "p::") != -1)
15797 else if (optind != 2)
15800 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
15802 char *argv[] = { "program", "foo", "-p", NULL };
15804 if (getopt (3, argv, "-p") != 1)
15806 else if (getopt (3, argv, "-p") != 'p')
15809 /* This code fails on glibc 2.11. */
15811 char *argv[] = { "program", "-b", "-a", NULL };
15812 optind = opterr = 0;
15813 if (getopt (3, argv, "+:a:b") != 'b')
15815 else if (getopt (3, argv, "+:a:b") != ':')
15824 rm -f conftest$ac_exeext
15825 if { (ac_try="$ac_link"
15826 case "(($ac_try" in
15827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15828 *) ac_try_echo=$ac_try;;
15830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15831 $as_echo "$ac_try_echo") >&5
15832 (eval "$ac_link") 2>&5
15834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15836 { (case "(($ac_try" in
15837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15838 *) ac_try_echo=$ac_try;;
15840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15841 $as_echo "$ac_try_echo") >&5
15842 (eval "$ac_try") 2>&5
15844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); }; }; then
15846 gl_cv_func_getopt_gnu=yes
15848 $as_echo "$as_me: program exited with status $ac_status" >&5
15849 $as_echo "$as_me: failed program was:" >&5
15850 sed 's/^/| /' conftest.$ac_ext >&5
15852 ( exit $ac_status )
15853 gl_cv_func_getopt_gnu=no
15855 rm -rf conftest.dSYM
15856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15860 case $gl_had_POSIXLY_CORRECT in
15862 yes) $as_unset POSIXLY_CORRECT || test "${POSIXLY_CORRECT+set}" != set || { POSIXLY_CORRECT=; export POSIXLY_CORRECT; }; POSIXLY_CORRECT=1 ;;
15863 *) $as_unset POSIXLY_CORRECT || test "${POSIXLY_CORRECT+set}" != set || { POSIXLY_CORRECT=; export POSIXLY_CORRECT; } ;;
15867 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getopt_gnu" >&5
15868 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
15869 if test "$gl_cv_func_getopt_gnu" = "no"; then
15870 gl_replace_getopt=yes
15879 if test -n "$gl_replace_getopt"; then
15885 cat >>confdefs.h <<\_ACEOF
15886 #define __GETOPT_PREFIX rpl_
15891 GNULIB_UNISTD_H_GETOPT=1
15900 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
15910 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
15932 GNULIB_GETTIMEOFDAY=0;
15933 HAVE_GETTIMEOFDAY=1;
15934 HAVE_STRUCT_TIMEVAL=1;
15936 REPLACE_GETTIMEOFDAY=0;
15961 if test $gl_cv_have_include_next = yes; then
15962 gl_cv_next_sys_time_h='<'sys/time.h'>'
15964 { $as_echo "$as_me:$LINENO: checking absolute name of <sys/time.h>" >&5
15965 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
15966 if test "${gl_cv_next_sys_time_h+set}" = set; then
15967 $as_echo_n "(cached) " >&6
15970 if test $ac_cv_header_sys_time_h = yes; then
15973 cat >conftest.$ac_ext <<_ACEOF
15976 cat confdefs.h >>conftest.$ac_ext
15977 cat >>conftest.$ac_ext <<_ACEOF
15978 /* end confdefs.h. */
15979 #include <sys/time.h>
15983 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15984 *) gl_absname_cpp="$ac_cpp" ;;
15986 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15987 sed -n '\#/sys/time.h#{
15988 s#.*"\(.*/sys/time.h\)".*#\1#
15994 gl_cv_next_sys_time_h='<'sys/time.h'>'
15999 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_time_h" >&5
16000 $as_echo "$gl_cv_next_sys_time_h" >&6; }
16002 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
16004 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16005 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16006 gl_next_as_first_directive='<'sys/time.h'>'
16008 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16009 gl_next_as_first_directive=$gl_cv_next_sys_time_h
16011 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
16017 if test $ac_cv_header_sys_time_h != yes; then
16021 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
16022 $as_echo_n "checking for struct timeval... " >&6; }
16023 if test "${gl_cv_sys_struct_timeval+set}" = set; then
16024 $as_echo_n "(cached) " >&6
16026 cat >conftest.$ac_ext <<_ACEOF
16029 cat confdefs.h >>conftest.$ac_ext
16030 cat >>conftest.$ac_ext <<_ACEOF
16031 /* end confdefs.h. */
16032 #if HAVE_SYS_TIME_H
16033 #include <sys/time.h>
16040 static struct timeval x; x.tv_sec = x.tv_usec;
16045 rm -f conftest.$ac_objext
16046 if { (ac_try="$ac_compile"
16047 case "(($ac_try" in
16048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049 *) ac_try_echo=$ac_try;;
16051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16052 $as_echo "$ac_try_echo") >&5
16053 (eval "$ac_compile") 2>conftest.er1
16055 grep -v '^ *+' conftest.er1 >conftest.err
16057 cat conftest.err >&5
16058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); } && {
16060 test -z "$ac_c_werror_flag" ||
16061 test ! -s conftest.err
16062 } && test -s conftest.$ac_objext; then
16063 gl_cv_sys_struct_timeval=yes
16065 $as_echo "$as_me: failed program was:" >&5
16066 sed 's/^/| /' conftest.$ac_ext >&5
16068 gl_cv_sys_struct_timeval=no
16071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16073 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timeval" >&5
16074 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
16075 if test $gl_cv_sys_struct_timeval != yes; then
16076 HAVE_STRUCT_TIMEVAL=0
16081 for gl_func in gettimeofday; do
16082 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16083 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
16084 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16085 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
16086 $as_echo_n "(cached) " >&6
16088 cat >conftest.$ac_ext <<_ACEOF
16091 cat confdefs.h >>conftest.$ac_ext
16092 cat >>conftest.$ac_ext <<_ACEOF
16093 /* end confdefs.h. */
16095 #if HAVE_SYS_TIME_H
16096 # include <sys/time.h>
16109 rm -f conftest.$ac_objext
16110 if { (ac_try="$ac_compile"
16111 case "(($ac_try" in
16112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113 *) ac_try_echo=$ac_try;;
16115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16116 $as_echo "$ac_try_echo") >&5
16117 (eval "$ac_compile") 2>conftest.er1
16119 grep -v '^ *+' conftest.er1 >conftest.err
16121 cat conftest.err >&5
16122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); } && {
16124 test -z "$ac_c_werror_flag" ||
16125 test ! -s conftest.err
16126 } && test -s conftest.$ac_objext; then
16127 eval "$as_gl_Symbol=yes"
16129 $as_echo "$as_me: failed program was:" >&5
16130 sed 's/^/| /' conftest.$ac_ext >&5
16132 eval "$as_gl_Symbol=no"
16135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16137 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
16138 $as_echo "$as_val"'`
16139 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16140 $as_echo "$ac_res" >&6; }
16141 as_val=`eval 'as_val=${'$as_gl_Symbol'}
16142 $as_echo "$as_val"'`
16143 if test "x$as_val" = x""yes; then
16144 cat >>confdefs.h <<_ACEOF
16145 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16148 eval ac_cv_have_decl_$gl_func=yes
16157 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
16158 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16159 if test "${ac_cv_header_stdbool_h+set}" = set; then
16160 $as_echo_n "(cached) " >&6
16162 cat >conftest.$ac_ext <<_ACEOF
16165 cat confdefs.h >>conftest.$ac_ext
16166 cat >>conftest.$ac_ext <<_ACEOF
16167 /* end confdefs.h. */
16169 #include <stdbool.h>
16171 "error: bool is not defined"
16174 "error: false is not defined"
16177 "error: false is not 0"
16180 "error: true is not defined"
16183 "error: true is not 1"
16185 #ifndef __bool_true_false_are_defined
16186 "error: __bool_true_false_are_defined is not defined"
16189 struct s { _Bool s: 1; _Bool t; } s;
16191 char a[true == 1 ? 1 : -1];
16192 char b[false == 0 ? 1 : -1];
16193 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16194 char d[(bool) 0.5 == true ? 1 : -1];
16195 /* See body of main program for 'e'. */
16196 char f[(_Bool) 0.0 == false ? 1 : -1];
16198 char h[sizeof (_Bool)];
16199 char i[sizeof s.t];
16200 enum { j = false, k = true, l = false * true, m = true * 256 };
16201 /* The following fails for
16202 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16204 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16205 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16206 /* Catch a bug in an HP-UX C compiler. See
16207 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16208 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
16220 /* Refer to every declared value, to avoid compiler optimizations. */
16221 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16222 + !m + !n + !o + !p + !q + !pq);
16228 rm -f conftest.$ac_objext
16229 if { (ac_try="$ac_compile"
16230 case "(($ac_try" in
16231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232 *) ac_try_echo=$ac_try;;
16234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16235 $as_echo "$ac_try_echo") >&5
16236 (eval "$ac_compile") 2>conftest.er1
16238 grep -v '^ *+' conftest.er1 >conftest.err
16240 cat conftest.err >&5
16241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); } && {
16243 test -z "$ac_c_werror_flag" ||
16244 test ! -s conftest.err
16245 } && test -s conftest.$ac_objext; then
16246 ac_cv_header_stdbool_h=yes
16248 $as_echo "$as_me: failed program was:" >&5
16249 sed 's/^/| /' conftest.$ac_ext >&5
16251 ac_cv_header_stdbool_h=no
16254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16256 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
16257 $as_echo "$ac_cv_header_stdbool_h" >&6; }
16258 { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
16259 $as_echo_n "checking for _Bool... " >&6; }
16260 if test "${ac_cv_type__Bool+set}" = set; then
16261 $as_echo_n "(cached) " >&6
16263 ac_cv_type__Bool=no
16264 cat >conftest.$ac_ext <<_ACEOF
16267 cat confdefs.h >>conftest.$ac_ext
16268 cat >>conftest.$ac_ext <<_ACEOF
16269 /* end confdefs.h. */
16270 $ac_includes_default
16274 if (sizeof (_Bool))
16280 rm -f conftest.$ac_objext
16281 if { (ac_try="$ac_compile"
16282 case "(($ac_try" in
16283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16284 *) ac_try_echo=$ac_try;;
16286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16287 $as_echo "$ac_try_echo") >&5
16288 (eval "$ac_compile") 2>conftest.er1
16290 grep -v '^ *+' conftest.er1 >conftest.err
16292 cat conftest.err >&5
16293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294 (exit $ac_status); } && {
16295 test -z "$ac_c_werror_flag" ||
16296 test ! -s conftest.err
16297 } && test -s conftest.$ac_objext; then
16298 cat >conftest.$ac_ext <<_ACEOF
16301 cat confdefs.h >>conftest.$ac_ext
16302 cat >>conftest.$ac_ext <<_ACEOF
16303 /* end confdefs.h. */
16304 $ac_includes_default
16308 if (sizeof ((_Bool)))
16314 rm -f conftest.$ac_objext
16315 if { (ac_try="$ac_compile"
16316 case "(($ac_try" in
16317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16318 *) ac_try_echo=$ac_try;;
16320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16321 $as_echo "$ac_try_echo") >&5
16322 (eval "$ac_compile") 2>conftest.er1
16324 grep -v '^ *+' conftest.er1 >conftest.err
16326 cat conftest.err >&5
16327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); } && {
16329 test -z "$ac_c_werror_flag" ||
16330 test ! -s conftest.err
16331 } && test -s conftest.$ac_objext; then
16334 $as_echo "$as_me: failed program was:" >&5
16335 sed 's/^/| /' conftest.$ac_ext >&5
16337 ac_cv_type__Bool=yes
16340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16342 $as_echo "$as_me: failed program was:" >&5
16343 sed 's/^/| /' conftest.$ac_ext >&5
16348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16350 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
16351 $as_echo "$ac_cv_type__Bool" >&6; }
16352 if test "x$ac_cv_type__Bool" = x""yes; then
16354 cat >>confdefs.h <<_ACEOF
16355 #define HAVE__BOOL 1
16365 # Define two additional variables used in the Makefile substitution.
16367 if test "$ac_cv_header_stdbool_h" = yes; then
16370 STDBOOL_H='stdbool.h'
16374 if test "$ac_cv_type__Bool" = yes; then
16382 { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
16383 $as_echo_n "checking for unsigned long long int... " >&6; }
16384 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
16385 $as_echo_n "(cached) " >&6
16387 ac_cv_type_unsigned_long_long_int=yes
16388 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16389 cat >conftest.$ac_ext <<_ACEOF
16393 cat confdefs.h >>conftest.$ac_ext
16394 cat >>conftest.$ac_ext <<_ACEOF
16395 /* end confdefs.h. */
16396 /* For now, do not test the preprocessor; as of 2007 there are too many
16397 implementations with broken preprocessors. Perhaps this can
16398 be revisited in 2012. In the meantime, code should not expect
16399 #if to work with literals wider than 32 bits. */
16400 /* Test literals. */
16401 long long int ll = 9223372036854775807ll;
16402 long long int nll = -9223372036854775807LL;
16403 unsigned long long int ull = 18446744073709551615ULL;
16404 /* Test constant expressions. */
16405 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16407 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16413 /* Test availability of runtime routines for shift and division. */
16414 long long int llmax = 9223372036854775807ll;
16415 unsigned long long int ullmax = 18446744073709551615ull;
16416 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16417 | (llmax / ll) | (llmax % ll)
16418 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16419 | (ullmax / ull) | (ullmax % ull));
16425 rm -f conftest.$ac_objext conftest$ac_exeext
16426 if { (ac_try="$ac_link"
16427 case "(($ac_try" in
16428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16429 *) ac_try_echo=$ac_try;;
16431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16432 $as_echo "$ac_try_echo") >&5
16433 (eval "$ac_link") 2>conftest.er1
16435 grep -v '^ *+' conftest.er1 >conftest.err
16437 cat conftest.err >&5
16438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } && {
16440 test -z "$ac_c_werror_flag" ||
16441 test ! -s conftest.err
16442 } && test -s conftest$ac_exeext && {
16443 test "$cross_compiling" = yes ||
16444 $as_test_x conftest$ac_exeext
16448 $as_echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16451 ac_cv_type_unsigned_long_long_int=no
16454 rm -rf conftest.dSYM
16455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16456 conftest$ac_exeext conftest.$ac_ext
16459 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
16460 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16461 if test $ac_cv_type_unsigned_long_long_int = yes; then
16463 cat >>confdefs.h <<\_ACEOF
16464 #define HAVE_UNSIGNED_LONG_LONG_INT 1
16471 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
16472 $as_echo_n "checking for long long int... " >&6; }
16473 if test "${ac_cv_type_long_long_int+set}" = set; then
16474 $as_echo_n "(cached) " >&6
16476 ac_cv_type_long_long_int=yes
16477 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16478 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
16479 if test $ac_cv_type_long_long_int = yes; then
16480 if test "$cross_compiling" = yes; then
16483 cat >conftest.$ac_ext <<_ACEOF
16486 cat confdefs.h >>conftest.$ac_ext
16487 cat >>conftest.$ac_ext <<_ACEOF
16488 /* end confdefs.h. */
16489 #include <limits.h>
16492 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16493 # define LLONG_MAX (HALF - 1 + HALF)
16498 long long int n = 1;
16502 long long int m = n << i;
16505 if (LLONG_MAX / 2 < m)
16513 rm -f conftest$ac_exeext
16514 if { (ac_try="$ac_link"
16515 case "(($ac_try" in
16516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16517 *) ac_try_echo=$ac_try;;
16519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16520 $as_echo "$ac_try_echo") >&5
16521 (eval "$ac_link") 2>&5
16523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16525 { (case "(($ac_try" in
16526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16527 *) ac_try_echo=$ac_try;;
16529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16530 $as_echo "$ac_try_echo") >&5
16531 (eval "$ac_try") 2>&5
16533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); }; }; then
16537 $as_echo "$as_me: program exited with status $ac_status" >&5
16538 $as_echo "$as_me: failed program was:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16541 ( exit $ac_status )
16542 ac_cv_type_long_long_int=no
16544 rm -rf conftest.dSYM
16545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16552 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16553 $as_echo "$ac_cv_type_long_long_int" >&6; }
16554 if test $ac_cv_type_long_long_int = yes; then
16556 cat >>confdefs.h <<\_ACEOF
16557 #define HAVE_LONG_LONG_INT 1
16567 gl_cv_c_multiarch=no
16568 cat >conftest.$ac_ext <<_ACEOF
16571 cat confdefs.h >>conftest.$ac_ext
16572 cat >>conftest.$ac_ext <<_ACEOF
16573 /* end confdefs.h. */
16574 #ifndef __APPLE_CC__
16575 not a universal capable compiler
16580 rm -f conftest.$ac_objext
16581 if { (ac_try="$ac_compile"
16582 case "(($ac_try" in
16583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16584 *) ac_try_echo=$ac_try;;
16586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16587 $as_echo "$ac_try_echo") >&5
16588 (eval "$ac_compile") 2>conftest.er1
16590 grep -v '^ *+' conftest.er1 >conftest.err
16592 cat conftest.err >&5
16593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); } && {
16595 test -z "$ac_c_werror_flag" ||
16596 test ! -s conftest.err
16597 } && test -s conftest.$ac_objext; then
16601 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
16602 if test -n "$prev"; then
16604 i?86 | x86_64 | ppc | ppc64)
16605 if test -z "$arch" || test "$arch" = "$word"; then
16608 gl_cv_c_multiarch=yes
16614 if test "x$word" = "x-arch"; then
16621 $as_echo "$as_me: failed program was:" >&5
16622 sed 's/^/| /' conftest.$ac_ext >&5
16627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16628 if test $gl_cv_c_multiarch = yes; then
16629 APPLE_UNIVERSAL_BUILD=1
16631 APPLE_UNIVERSAL_BUILD=0
16639 if test $ac_cv_type_long_long_int = yes; then
16640 HAVE_LONG_LONG_INT=1
16642 HAVE_LONG_LONG_INT=0
16646 if test $ac_cv_type_unsigned_long_long_int = yes; then
16647 HAVE_UNSIGNED_LONG_LONG_INT=1
16649 HAVE_UNSIGNED_LONG_LONG_INT=0
16659 if test $ac_cv_header_wchar_h = yes; then
16666 if test $ac_cv_header_inttypes_h = yes; then
16673 if test $ac_cv_header_sys_types_h = yes; then
16694 if test $gl_cv_have_include_next = yes; then
16695 gl_cv_next_stdint_h='<'stdint.h'>'
16697 { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
16698 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16699 if test "${gl_cv_next_stdint_h+set}" = set; then
16700 $as_echo_n "(cached) " >&6
16703 if test $ac_cv_header_stdint_h = yes; then
16706 cat >conftest.$ac_ext <<_ACEOF
16709 cat confdefs.h >>conftest.$ac_ext
16710 cat >>conftest.$ac_ext <<_ACEOF
16711 /* end confdefs.h. */
16712 #include <stdint.h>
16716 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16717 *) gl_absname_cpp="$ac_cpp" ;;
16719 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16720 sed -n '\#/stdint.h#{
16721 s#.*"\(.*/stdint.h\)".*#\1#
16727 gl_cv_next_stdint_h='<'stdint.h'>'
16732 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
16733 $as_echo "$gl_cv_next_stdint_h" >&6; }
16735 NEXT_STDINT_H=$gl_cv_next_stdint_h
16737 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16738 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16739 gl_next_as_first_directive='<'stdint.h'>'
16741 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16742 gl_next_as_first_directive=$gl_cv_next_stdint_h
16744 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16749 if test $ac_cv_header_stdint_h = yes; then
16756 if test $ac_cv_header_stdint_h = yes; then
16757 { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
16758 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16759 if test "${gl_cv_header_working_stdint_h+set}" = set; then
16760 $as_echo_n "(cached) " >&6
16762 gl_cv_header_working_stdint_h=no
16763 cat >conftest.$ac_ext <<_ACEOF
16767 cat confdefs.h >>conftest.$ac_ext
16768 cat >>conftest.$ac_ext <<_ACEOF
16769 /* end confdefs.h. */
16771 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16772 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16773 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16774 #include <stdint.h>
16775 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16776 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16777 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16781 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16782 included before <wchar.h>. */
16783 #include <stddef.h>
16784 #include <signal.h>
16786 # include <stdio.h>
16788 # include <wchar.h>
16793 int8_t a1 = INT8_MAX;
16794 int8_t a1min = INT8_MIN;
16797 int16_t a2 = INT16_MAX;
16798 int16_t a2min = INT16_MIN;
16801 int32_t a3 = INT32_MAX;
16802 int32_t a3min = INT32_MIN;
16805 int64_t a4 = INT64_MAX;
16806 int64_t a4min = INT64_MIN;
16809 uint8_t b1 = UINT8_MAX;
16811 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16814 uint16_t b2 = UINT16_MAX;
16817 uint32_t b3 = UINT32_MAX;
16820 uint64_t b4 = UINT64_MAX;
16822 int_least8_t c1 = INT8_C (0x7f);
16823 int_least8_t c1max = INT_LEAST8_MAX;
16824 int_least8_t c1min = INT_LEAST8_MIN;
16825 int_least16_t c2 = INT16_C (0x7fff);
16826 int_least16_t c2max = INT_LEAST16_MAX;
16827 int_least16_t c2min = INT_LEAST16_MIN;
16828 int_least32_t c3 = INT32_C (0x7fffffff);
16829 int_least32_t c3max = INT_LEAST32_MAX;
16830 int_least32_t c3min = INT_LEAST32_MIN;
16831 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16832 int_least64_t c4max = INT_LEAST64_MAX;
16833 int_least64_t c4min = INT_LEAST64_MIN;
16834 uint_least8_t d1 = UINT8_C (0xff);
16835 uint_least8_t d1max = UINT_LEAST8_MAX;
16836 uint_least16_t d2 = UINT16_C (0xffff);
16837 uint_least16_t d2max = UINT_LEAST16_MAX;
16838 uint_least32_t d3 = UINT32_C (0xffffffff);
16839 uint_least32_t d3max = UINT_LEAST32_MAX;
16840 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16841 uint_least64_t d4max = UINT_LEAST64_MAX;
16842 int_fast8_t e1 = INT_FAST8_MAX;
16843 int_fast8_t e1min = INT_FAST8_MIN;
16844 int_fast16_t e2 = INT_FAST16_MAX;
16845 int_fast16_t e2min = INT_FAST16_MIN;
16846 int_fast32_t e3 = INT_FAST32_MAX;
16847 int_fast32_t e3min = INT_FAST32_MIN;
16848 int_fast64_t e4 = INT_FAST64_MAX;
16849 int_fast64_t e4min = INT_FAST64_MIN;
16850 uint_fast8_t f1 = UINT_FAST8_MAX;
16851 uint_fast16_t f2 = UINT_FAST16_MAX;
16852 uint_fast32_t f3 = UINT_FAST32_MAX;
16853 uint_fast64_t f4 = UINT_FAST64_MAX;
16855 intptr_t g = INTPTR_MAX;
16856 intptr_t gmin = INTPTR_MIN;
16859 uintptr_t h = UINTPTR_MAX;
16861 intmax_t i = INTMAX_MAX;
16862 uintmax_t j = UINTMAX_MAX;
16864 #include <limits.h> /* for CHAR_BIT */
16865 #define TYPE_MINIMUM(t) \
16866 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
16867 #define TYPE_MAXIMUM(t) \
16868 ((t) ((t) 0 < (t) -1 \
16870 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
16873 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16874 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16876 /* Detect bug in FreeBSD 6.0 / ia64. */
16877 int check_SIG_ATOMIC:
16878 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16879 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16881 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16883 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16884 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16886 /* Detect bug in mingw. */
16888 WINT_MIN == TYPE_MINIMUM (wint_t)
16889 && WINT_MAX == TYPE_MAXIMUM (wint_t)
16892 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
16894 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16895 int check_UINT16_C:
16896 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16898 /* Detect bugs in OpenBSD 3.9 stdint.h. */
16900 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16903 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16906 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16909 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16911 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16912 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16913 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16914 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16915 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16916 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16917 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16918 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16919 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16920 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16921 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16932 rm -f conftest.$ac_objext
16933 if { (ac_try="$ac_compile"
16934 case "(($ac_try" in
16935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16936 *) ac_try_echo=$ac_try;;
16938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16939 $as_echo "$ac_try_echo") >&5
16940 (eval "$ac_compile") 2>conftest.er1
16942 grep -v '^ *+' conftest.er1 >conftest.err
16944 cat conftest.err >&5
16945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); } && {
16947 test -z "$ac_c_werror_flag" ||
16948 test ! -s conftest.err
16949 } && test -s conftest.$ac_objext; then
16950 if test "$cross_compiling" = yes; then
16951 gl_cv_header_working_stdint_h=yes
16954 cat >conftest.$ac_ext <<_ACEOF
16958 cat confdefs.h >>conftest.$ac_ext
16959 cat >>conftest.$ac_ext <<_ACEOF
16960 /* end confdefs.h. */
16962 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16963 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16964 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16965 #include <stdint.h>
16968 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16969 included before <wchar.h>. */
16970 #include <stddef.h>
16971 #include <signal.h>
16973 # include <stdio.h>
16975 # include <wchar.h>
16980 #include <string.h>
16981 #define MVAL(macro) MVAL1(macro)
16982 #define MVAL1(expression) #expression
16983 static const char *macro_values[] =
17017 for (mv = macro_values; *mv != NULL; mv++)
17019 const char *value = *mv;
17020 /* Test whether it looks like a cast expression. */
17021 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17022 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17023 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17024 || strncmp (value, "((int)"/*)*/, 6) == 0
17025 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17026 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17027 return mv - macro_values + 1;
17035 rm -f conftest$ac_exeext
17036 if { (ac_try="$ac_link"
17037 case "(($ac_try" in
17038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17039 *) ac_try_echo=$ac_try;;
17041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17042 $as_echo "$ac_try_echo") >&5
17043 (eval "$ac_link") 2>&5
17045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17047 { (case "(($ac_try" in
17048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17049 *) ac_try_echo=$ac_try;;
17051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17052 $as_echo "$ac_try_echo") >&5
17053 (eval "$ac_try") 2>&5
17055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; }; then
17057 gl_cv_header_working_stdint_h=yes
17059 $as_echo "$as_me: program exited with status $ac_status" >&5
17060 $as_echo "$as_me: failed program was:" >&5
17061 sed 's/^/| /' conftest.$ac_ext >&5
17064 rm -rf conftest.dSYM
17065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17071 $as_echo "$as_me: failed program was:" >&5
17072 sed 's/^/| /' conftest.$ac_ext >&5
17077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17080 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
17081 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17083 if test "$gl_cv_header_working_stdint_h" = yes; then
17088 for ac_header in sys/inttypes.h sys/bitypes.h
17090 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17092 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17093 $as_echo_n "checking for $ac_header... " >&6; }
17094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17095 $as_echo_n "(cached) " >&6
17097 ac_res=`eval 'as_val=${'$as_ac_Header'}
17098 $as_echo "$as_val"'`
17099 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17100 $as_echo "$ac_res" >&6; }
17102 # Is the header compilable?
17103 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17104 $as_echo_n "checking $ac_header usability... " >&6; }
17105 cat >conftest.$ac_ext <<_ACEOF
17108 cat confdefs.h >>conftest.$ac_ext
17109 cat >>conftest.$ac_ext <<_ACEOF
17110 /* end confdefs.h. */
17111 $ac_includes_default
17112 #include <$ac_header>
17114 rm -f conftest.$ac_objext
17115 if { (ac_try="$ac_compile"
17116 case "(($ac_try" in
17117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17118 *) ac_try_echo=$ac_try;;
17120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17121 $as_echo "$ac_try_echo") >&5
17122 (eval "$ac_compile") 2>conftest.er1
17124 grep -v '^ *+' conftest.er1 >conftest.err
17126 cat conftest.err >&5
17127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); } && {
17129 test -z "$ac_c_werror_flag" ||
17130 test ! -s conftest.err
17131 } && test -s conftest.$ac_objext; then
17132 ac_header_compiler=yes
17134 $as_echo "$as_me: failed program was:" >&5
17135 sed 's/^/| /' conftest.$ac_ext >&5
17137 ac_header_compiler=no
17140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17141 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17142 $as_echo "$ac_header_compiler" >&6; }
17144 # Is the header present?
17145 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17146 $as_echo_n "checking $ac_header presence... " >&6; }
17147 cat >conftest.$ac_ext <<_ACEOF
17150 cat confdefs.h >>conftest.$ac_ext
17151 cat >>conftest.$ac_ext <<_ACEOF
17152 /* end confdefs.h. */
17153 #include <$ac_header>
17155 if { (ac_try="$ac_cpp conftest.$ac_ext"
17156 case "(($ac_try" in
17157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17158 *) ac_try_echo=$ac_try;;
17160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17161 $as_echo "$ac_try_echo") >&5
17162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17164 grep -v '^ *+' conftest.er1 >conftest.err
17166 cat conftest.err >&5
17167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); } >/dev/null && {
17169 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17170 test ! -s conftest.err
17172 ac_header_preproc=yes
17174 $as_echo "$as_me: failed program was:" >&5
17175 sed 's/^/| /' conftest.$ac_ext >&5
17177 ac_header_preproc=no
17180 rm -f conftest.err conftest.$ac_ext
17181 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17182 $as_echo "$ac_header_preproc" >&6; }
17184 # So? What about this header?
17185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17187 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17188 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17189 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17190 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17191 ac_header_preproc=yes
17194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17195 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17196 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17197 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17199 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17201 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17203 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17205 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17207 ## ------------------------------ ##
17208 ## Report this to bug-tar@gnu.org ##
17209 ## ------------------------------ ##
17211 ) | sed "s/^/$as_me: WARNING: /" >&2
17214 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17215 $as_echo_n "checking for $ac_header... " >&6; }
17216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17217 $as_echo_n "(cached) " >&6
17219 eval "$as_ac_Header=\$ac_header_preproc"
17221 ac_res=`eval 'as_val=${'$as_ac_Header'}
17222 $as_echo "$as_val"'`
17223 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17224 $as_echo "$ac_res" >&6; }
17227 as_val=`eval 'as_val=${'$as_ac_Header'}
17228 $as_echo "$as_val"'`
17229 if test "x$as_val" = x""yes; then
17230 cat >>confdefs.h <<_ACEOF
17231 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17238 if test $ac_cv_header_sys_inttypes_h = yes; then
17239 HAVE_SYS_INTTYPES_H=1
17241 HAVE_SYS_INTTYPES_H=0
17244 if test $ac_cv_header_sys_bitypes_h = yes; then
17245 HAVE_SYS_BITYPES_H=1
17247 HAVE_SYS_BITYPES_H=0
17253 if test $APPLE_UNIVERSAL_BUILD = 0; then
17258 for gltype in ptrdiff_t size_t ; do
17259 { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
17260 $as_echo_n "checking for bit size of $gltype... " >&6; }
17261 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
17262 $as_echo_n "(cached) " >&6
17264 if test "$cross_compiling" = yes; then
17265 # Depending upon the size, compute the lo and hi bounds.
17266 cat >conftest.$ac_ext <<_ACEOF
17269 cat confdefs.h >>conftest.$ac_ext
17270 cat >>conftest.$ac_ext <<_ACEOF
17271 /* end confdefs.h. */
17273 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17274 included before <wchar.h>. */
17275 #include <stddef.h>
17276 #include <signal.h>
17278 # include <stdio.h>
17280 # include <wchar.h>
17283 #include <limits.h>
17287 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
17294 rm -f conftest.$ac_objext
17295 if { (ac_try="$ac_compile"
17296 case "(($ac_try" in
17297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17298 *) ac_try_echo=$ac_try;;
17300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17301 $as_echo "$ac_try_echo") >&5
17302 (eval "$ac_compile") 2>conftest.er1
17304 grep -v '^ *+' conftest.er1 >conftest.err
17306 cat conftest.err >&5
17307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); } && {
17309 test -z "$ac_c_werror_flag" ||
17310 test ! -s conftest.err
17311 } && test -s conftest.$ac_objext; then
17314 cat >conftest.$ac_ext <<_ACEOF
17317 cat confdefs.h >>conftest.$ac_ext
17318 cat >>conftest.$ac_ext <<_ACEOF
17319 /* end confdefs.h. */
17321 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17322 included before <wchar.h>. */
17323 #include <stddef.h>
17324 #include <signal.h>
17326 # include <stdio.h>
17328 # include <wchar.h>
17331 #include <limits.h>
17335 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
17342 rm -f conftest.$ac_objext
17343 if { (ac_try="$ac_compile"
17344 case "(($ac_try" in
17345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17346 *) ac_try_echo=$ac_try;;
17348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17349 $as_echo "$ac_try_echo") >&5
17350 (eval "$ac_compile") 2>conftest.er1
17352 grep -v '^ *+' conftest.er1 >conftest.err
17354 cat conftest.err >&5
17355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } && {
17357 test -z "$ac_c_werror_flag" ||
17358 test ! -s conftest.err
17359 } && test -s conftest.$ac_objext; then
17360 ac_hi=$ac_mid; break
17362 $as_echo "$as_me: failed program was:" >&5
17363 sed 's/^/| /' conftest.$ac_ext >&5
17365 ac_lo=`expr $ac_mid + 1`
17366 if test $ac_lo -le $ac_mid; then
17370 ac_mid=`expr 2 '*' $ac_mid + 1`
17373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17376 $as_echo "$as_me: failed program was:" >&5
17377 sed 's/^/| /' conftest.$ac_ext >&5
17379 cat >conftest.$ac_ext <<_ACEOF
17382 cat confdefs.h >>conftest.$ac_ext
17383 cat >>conftest.$ac_ext <<_ACEOF
17384 /* end confdefs.h. */
17386 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17387 included before <wchar.h>. */
17388 #include <stddef.h>
17389 #include <signal.h>
17391 # include <stdio.h>
17393 # include <wchar.h>
17396 #include <limits.h>
17400 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
17407 rm -f conftest.$ac_objext
17408 if { (ac_try="$ac_compile"
17409 case "(($ac_try" in
17410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17411 *) ac_try_echo=$ac_try;;
17413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17414 $as_echo "$ac_try_echo") >&5
17415 (eval "$ac_compile") 2>conftest.er1
17417 grep -v '^ *+' conftest.er1 >conftest.err
17419 cat conftest.err >&5
17420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); } && {
17422 test -z "$ac_c_werror_flag" ||
17423 test ! -s conftest.err
17424 } && test -s conftest.$ac_objext; then
17427 cat >conftest.$ac_ext <<_ACEOF
17430 cat confdefs.h >>conftest.$ac_ext
17431 cat >>conftest.$ac_ext <<_ACEOF
17432 /* end confdefs.h. */
17434 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17435 included before <wchar.h>. */
17436 #include <stddef.h>
17437 #include <signal.h>
17439 # include <stdio.h>
17441 # include <wchar.h>
17444 #include <limits.h>
17448 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
17455 rm -f conftest.$ac_objext
17456 if { (ac_try="$ac_compile"
17457 case "(($ac_try" in
17458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17459 *) ac_try_echo=$ac_try;;
17461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17462 $as_echo "$ac_try_echo") >&5
17463 (eval "$ac_compile") 2>conftest.er1
17465 grep -v '^ *+' conftest.er1 >conftest.err
17467 cat conftest.err >&5
17468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); } && {
17470 test -z "$ac_c_werror_flag" ||
17471 test ! -s conftest.err
17472 } && test -s conftest.$ac_objext; then
17473 ac_lo=$ac_mid; break
17475 $as_echo "$as_me: failed program was:" >&5
17476 sed 's/^/| /' conftest.$ac_ext >&5
17478 ac_hi=`expr '(' $ac_mid ')' - 1`
17479 if test $ac_mid -le $ac_hi; then
17483 ac_mid=`expr 2 '*' $ac_mid`
17486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17489 $as_echo "$as_me: failed program was:" >&5
17490 sed 's/^/| /' conftest.$ac_ext >&5
17495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17499 # Binary search between lo and hi bounds.
17500 while test "x$ac_lo" != "x$ac_hi"; do
17501 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17502 cat >conftest.$ac_ext <<_ACEOF
17505 cat confdefs.h >>conftest.$ac_ext
17506 cat >>conftest.$ac_ext <<_ACEOF
17507 /* end confdefs.h. */
17509 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17510 included before <wchar.h>. */
17511 #include <stddef.h>
17512 #include <signal.h>
17514 # include <stdio.h>
17516 # include <wchar.h>
17519 #include <limits.h>
17523 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
17530 rm -f conftest.$ac_objext
17531 if { (ac_try="$ac_compile"
17532 case "(($ac_try" in
17533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17534 *) ac_try_echo=$ac_try;;
17536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17537 $as_echo "$ac_try_echo") >&5
17538 (eval "$ac_compile") 2>conftest.er1
17540 grep -v '^ *+' conftest.er1 >conftest.err
17542 cat conftest.err >&5
17543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); } && {
17545 test -z "$ac_c_werror_flag" ||
17546 test ! -s conftest.err
17547 } && test -s conftest.$ac_objext; then
17550 $as_echo "$as_me: failed program was:" >&5
17551 sed 's/^/| /' conftest.$ac_ext >&5
17553 ac_lo=`expr '(' $ac_mid ')' + 1`
17556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17559 ?*) result=$ac_lo;;
17560 '') result=unknown ;;
17563 cat >conftest.$ac_ext <<_ACEOF
17566 cat confdefs.h >>conftest.$ac_ext
17567 cat >>conftest.$ac_ext <<_ACEOF
17568 /* end confdefs.h. */
17570 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17571 included before <wchar.h>. */
17572 #include <stddef.h>
17573 #include <signal.h>
17575 # include <stdio.h>
17577 # include <wchar.h>
17580 #include <limits.h>
17581 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
17582 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
17584 #include <stdlib.h>
17589 FILE *f = fopen ("conftest.val", "w");
17592 if ((sizeof ($gltype) * CHAR_BIT) < 0)
17594 long int i = longval ();
17595 if (i != (sizeof ($gltype) * CHAR_BIT))
17597 fprintf (f, "%ld", i);
17601 unsigned long int i = ulongval ();
17602 if (i != (sizeof ($gltype) * CHAR_BIT))
17604 fprintf (f, "%lu", i);
17606 /* Do not output a trailing newline, as this causes \r\n confusion
17607 on some platforms. */
17608 return ferror (f) || fclose (f) != 0;
17614 rm -f conftest$ac_exeext
17615 if { (ac_try="$ac_link"
17616 case "(($ac_try" in
17617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17618 *) ac_try_echo=$ac_try;;
17620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17621 $as_echo "$ac_try_echo") >&5
17622 (eval "$ac_link") 2>&5
17624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17626 { (case "(($ac_try" in
17627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17628 *) ac_try_echo=$ac_try;;
17630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17631 $as_echo "$ac_try_echo") >&5
17632 (eval "$ac_try") 2>&5
17634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635 (exit $ac_status); }; }; then
17636 result=`cat conftest.val`
17638 $as_echo "$as_me: program exited with status $ac_status" >&5
17639 $as_echo "$as_me: failed program was:" >&5
17640 sed 's/^/| /' conftest.$ac_ext >&5
17642 ( exit $ac_status )
17645 rm -rf conftest.dSYM
17646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17649 eval gl_cv_bitsizeof_${gltype}=\$result
17652 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
17653 $as_echo "$as_val"'`
17654 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17655 $as_echo "$ac_res" >&6; }
17656 eval result=\$gl_cv_bitsizeof_${gltype}
17657 if test $result = unknown; then
17660 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17661 cat >>confdefs.h <<_ACEOF
17662 #define BITSIZEOF_${GLTYPE} $result
17665 eval BITSIZEOF_${GLTYPE}=\$result
17675 for gltype in sig_atomic_t wchar_t wint_t ; do
17676 { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
17677 $as_echo_n "checking for bit size of $gltype... " >&6; }
17678 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
17679 $as_echo_n "(cached) " >&6
17681 if test "$cross_compiling" = yes; then
17682 # Depending upon the size, compute the lo and hi bounds.
17683 cat >conftest.$ac_ext <<_ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h. */
17690 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17691 included before <wchar.h>. */
17692 #include <stddef.h>
17693 #include <signal.h>
17695 # include <stdio.h>
17697 # include <wchar.h>
17700 #include <limits.h>
17704 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
17711 rm -f conftest.$ac_objext
17712 if { (ac_try="$ac_compile"
17713 case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17718 $as_echo "$ac_try_echo") >&5
17719 (eval "$ac_compile") 2>conftest.er1
17721 grep -v '^ *+' conftest.er1 >conftest.err
17723 cat conftest.err >&5
17724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); } && {
17726 test -z "$ac_c_werror_flag" ||
17727 test ! -s conftest.err
17728 } && test -s conftest.$ac_objext; then
17731 cat >conftest.$ac_ext <<_ACEOF
17734 cat confdefs.h >>conftest.$ac_ext
17735 cat >>conftest.$ac_ext <<_ACEOF
17736 /* end confdefs.h. */
17738 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17739 included before <wchar.h>. */
17740 #include <stddef.h>
17741 #include <signal.h>
17743 # include <stdio.h>
17745 # include <wchar.h>
17748 #include <limits.h>
17752 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
17759 rm -f conftest.$ac_objext
17760 if { (ac_try="$ac_compile"
17761 case "(($ac_try" in
17762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17763 *) ac_try_echo=$ac_try;;
17765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17766 $as_echo "$ac_try_echo") >&5
17767 (eval "$ac_compile") 2>conftest.er1
17769 grep -v '^ *+' conftest.er1 >conftest.err
17771 cat conftest.err >&5
17772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); } && {
17774 test -z "$ac_c_werror_flag" ||
17775 test ! -s conftest.err
17776 } && test -s conftest.$ac_objext; then
17777 ac_hi=$ac_mid; break
17779 $as_echo "$as_me: failed program was:" >&5
17780 sed 's/^/| /' conftest.$ac_ext >&5
17782 ac_lo=`expr $ac_mid + 1`
17783 if test $ac_lo -le $ac_mid; then
17787 ac_mid=`expr 2 '*' $ac_mid + 1`
17790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17793 $as_echo "$as_me: failed program was:" >&5
17794 sed 's/^/| /' conftest.$ac_ext >&5
17796 cat >conftest.$ac_ext <<_ACEOF
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h. */
17803 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17804 included before <wchar.h>. */
17805 #include <stddef.h>
17806 #include <signal.h>
17808 # include <stdio.h>
17810 # include <wchar.h>
17813 #include <limits.h>
17817 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
17824 rm -f conftest.$ac_objext
17825 if { (ac_try="$ac_compile"
17826 case "(($ac_try" in
17827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828 *) ac_try_echo=$ac_try;;
17830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17831 $as_echo "$ac_try_echo") >&5
17832 (eval "$ac_compile") 2>conftest.er1
17834 grep -v '^ *+' conftest.er1 >conftest.err
17836 cat conftest.err >&5
17837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); } && {
17839 test -z "$ac_c_werror_flag" ||
17840 test ! -s conftest.err
17841 } && test -s conftest.$ac_objext; then
17844 cat >conftest.$ac_ext <<_ACEOF
17847 cat confdefs.h >>conftest.$ac_ext
17848 cat >>conftest.$ac_ext <<_ACEOF
17849 /* end confdefs.h. */
17851 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17852 included before <wchar.h>. */
17853 #include <stddef.h>
17854 #include <signal.h>
17856 # include <stdio.h>
17858 # include <wchar.h>
17861 #include <limits.h>
17865 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
17872 rm -f conftest.$ac_objext
17873 if { (ac_try="$ac_compile"
17874 case "(($ac_try" in
17875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17876 *) ac_try_echo=$ac_try;;
17878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17879 $as_echo "$ac_try_echo") >&5
17880 (eval "$ac_compile") 2>conftest.er1
17882 grep -v '^ *+' conftest.er1 >conftest.err
17884 cat conftest.err >&5
17885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); } && {
17887 test -z "$ac_c_werror_flag" ||
17888 test ! -s conftest.err
17889 } && test -s conftest.$ac_objext; then
17890 ac_lo=$ac_mid; break
17892 $as_echo "$as_me: failed program was:" >&5
17893 sed 's/^/| /' conftest.$ac_ext >&5
17895 ac_hi=`expr '(' $ac_mid ')' - 1`
17896 if test $ac_mid -le $ac_hi; then
17900 ac_mid=`expr 2 '*' $ac_mid`
17903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17906 $as_echo "$as_me: failed program was:" >&5
17907 sed 's/^/| /' conftest.$ac_ext >&5
17912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17916 # Binary search between lo and hi bounds.
17917 while test "x$ac_lo" != "x$ac_hi"; do
17918 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17919 cat >conftest.$ac_ext <<_ACEOF
17922 cat confdefs.h >>conftest.$ac_ext
17923 cat >>conftest.$ac_ext <<_ACEOF
17924 /* end confdefs.h. */
17926 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17927 included before <wchar.h>. */
17928 #include <stddef.h>
17929 #include <signal.h>
17931 # include <stdio.h>
17933 # include <wchar.h>
17936 #include <limits.h>
17940 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
17947 rm -f conftest.$ac_objext
17948 if { (ac_try="$ac_compile"
17949 case "(($ac_try" in
17950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17951 *) ac_try_echo=$ac_try;;
17953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17954 $as_echo "$ac_try_echo") >&5
17955 (eval "$ac_compile") 2>conftest.er1
17957 grep -v '^ *+' conftest.er1 >conftest.err
17959 cat conftest.err >&5
17960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); } && {
17962 test -z "$ac_c_werror_flag" ||
17963 test ! -s conftest.err
17964 } && test -s conftest.$ac_objext; then
17967 $as_echo "$as_me: failed program was:" >&5
17968 sed 's/^/| /' conftest.$ac_ext >&5
17970 ac_lo=`expr '(' $ac_mid ')' + 1`
17973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17976 ?*) result=$ac_lo;;
17977 '') result=unknown ;;
17980 cat >conftest.$ac_ext <<_ACEOF
17983 cat confdefs.h >>conftest.$ac_ext
17984 cat >>conftest.$ac_ext <<_ACEOF
17985 /* end confdefs.h. */
17987 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17988 included before <wchar.h>. */
17989 #include <stddef.h>
17990 #include <signal.h>
17992 # include <stdio.h>
17994 # include <wchar.h>
17997 #include <limits.h>
17998 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
17999 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
18001 #include <stdlib.h>
18006 FILE *f = fopen ("conftest.val", "w");
18009 if ((sizeof ($gltype) * CHAR_BIT) < 0)
18011 long int i = longval ();
18012 if (i != (sizeof ($gltype) * CHAR_BIT))
18014 fprintf (f, "%ld", i);
18018 unsigned long int i = ulongval ();
18019 if (i != (sizeof ($gltype) * CHAR_BIT))
18021 fprintf (f, "%lu", i);
18023 /* Do not output a trailing newline, as this causes \r\n confusion
18024 on some platforms. */
18025 return ferror (f) || fclose (f) != 0;
18031 rm -f conftest$ac_exeext
18032 if { (ac_try="$ac_link"
18033 case "(($ac_try" in
18034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18035 *) ac_try_echo=$ac_try;;
18037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18038 $as_echo "$ac_try_echo") >&5
18039 (eval "$ac_link") 2>&5
18041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18043 { (case "(($ac_try" in
18044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18045 *) ac_try_echo=$ac_try;;
18047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18048 $as_echo "$ac_try_echo") >&5
18049 (eval "$ac_try") 2>&5
18051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); }; }; then
18053 result=`cat conftest.val`
18055 $as_echo "$as_me: program exited with status $ac_status" >&5
18056 $as_echo "$as_me: failed program was:" >&5
18057 sed 's/^/| /' conftest.$ac_ext >&5
18059 ( exit $ac_status )
18062 rm -rf conftest.dSYM
18063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18066 eval gl_cv_bitsizeof_${gltype}=\$result
18069 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
18070 $as_echo "$as_val"'`
18071 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18072 $as_echo "$ac_res" >&6; }
18073 eval result=\$gl_cv_bitsizeof_${gltype}
18074 if test $result = unknown; then
18077 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18078 cat >>confdefs.h <<_ACEOF
18079 #define BITSIZEOF_${GLTYPE} $result
18082 eval BITSIZEOF_${GLTYPE}=\$result
18091 for gltype in sig_atomic_t wchar_t wint_t ; do
18092 { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
18093 $as_echo_n "checking whether $gltype is signed... " >&6; }
18094 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
18095 $as_echo_n "(cached) " >&6
18097 cat >conftest.$ac_ext <<_ACEOF
18100 cat confdefs.h >>conftest.$ac_ext
18101 cat >>conftest.$ac_ext <<_ACEOF
18102 /* end confdefs.h. */
18104 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18105 included before <wchar.h>. */
18106 #include <stddef.h>
18107 #include <signal.h>
18109 # include <stdio.h>
18111 # include <wchar.h>
18114 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18123 rm -f conftest.$ac_objext
18124 if { (ac_try="$ac_compile"
18125 case "(($ac_try" in
18126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18127 *) ac_try_echo=$ac_try;;
18129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18130 $as_echo "$ac_try_echo") >&5
18131 (eval "$ac_compile") 2>conftest.er1
18133 grep -v '^ *+' conftest.er1 >conftest.err
18135 cat conftest.err >&5
18136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); } && {
18138 test -z "$ac_c_werror_flag" ||
18139 test ! -s conftest.err
18140 } && test -s conftest.$ac_objext; then
18143 $as_echo "$as_me: failed program was:" >&5
18144 sed 's/^/| /' conftest.$ac_ext >&5
18149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18150 eval gl_cv_type_${gltype}_signed=\$result
18153 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
18154 $as_echo "$as_val"'`
18155 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18156 $as_echo "$ac_res" >&6; }
18157 eval result=\$gl_cv_type_${gltype}_signed
18158 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18159 if test "$result" = yes; then
18160 cat >>confdefs.h <<_ACEOF
18161 #define HAVE_SIGNED_${GLTYPE} 1
18164 eval HAVE_SIGNED_${GLTYPE}=1
18166 eval HAVE_SIGNED_${GLTYPE}=0
18171 gl_cv_type_ptrdiff_t_signed=yes
18172 gl_cv_type_size_t_signed=no
18173 if test $APPLE_UNIVERSAL_BUILD = 0; then
18178 for gltype in ptrdiff_t size_t ; do
18179 { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
18180 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18181 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
18182 $as_echo_n "(cached) " >&6
18184 eval gl_cv_type_${gltype}_suffix=no
18185 eval result=\$gl_cv_type_${gltype}_signed
18186 if test "$result" = yes; then
18191 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18193 '') gltype1='int';;
18194 l) gltype1='long int';;
18195 ll) gltype1='long long int';;
18196 i64) gltype1='__int64';;
18197 u) gltype1='unsigned int';;
18198 ul) gltype1='unsigned long int';;
18199 ull) gltype1='unsigned long long int';;
18200 ui64)gltype1='unsigned __int64';;
18202 cat >conftest.$ac_ext <<_ACEOF
18205 cat confdefs.h >>conftest.$ac_ext
18206 cat >>conftest.$ac_ext <<_ACEOF
18207 /* end confdefs.h. */
18209 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18210 included before <wchar.h>. */
18211 #include <stddef.h>
18212 #include <signal.h>
18214 # include <stdio.h>
18216 # include <wchar.h>
18219 extern $gltype foo;
18220 extern $gltype1 foo;
18229 rm -f conftest.$ac_objext
18230 if { (ac_try="$ac_compile"
18231 case "(($ac_try" in
18232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18233 *) ac_try_echo=$ac_try;;
18235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18236 $as_echo "$ac_try_echo") >&5
18237 (eval "$ac_compile") 2>conftest.er1
18239 grep -v '^ *+' conftest.er1 >conftest.err
18241 cat conftest.err >&5
18242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); } && {
18244 test -z "$ac_c_werror_flag" ||
18245 test ! -s conftest.err
18246 } && test -s conftest.$ac_objext; then
18247 eval gl_cv_type_${gltype}_suffix=\$glsuf
18249 $as_echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18256 eval result=\$gl_cv_type_${gltype}_suffix
18257 test "$result" != no && break
18260 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
18261 $as_echo "$as_val"'`
18262 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18263 $as_echo "$ac_res" >&6; }
18264 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18265 eval result=\$gl_cv_type_${gltype}_suffix
18266 test "$result" = no && result=
18267 eval ${GLTYPE}_SUFFIX=\$result
18268 cat >>confdefs.h <<_ACEOF
18269 #define ${GLTYPE}_SUFFIX $result
18281 for gltype in sig_atomic_t wchar_t wint_t ; do
18282 { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
18283 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18284 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
18285 $as_echo_n "(cached) " >&6
18287 eval gl_cv_type_${gltype}_suffix=no
18288 eval result=\$gl_cv_type_${gltype}_signed
18289 if test "$result" = yes; then
18294 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18296 '') gltype1='int';;
18297 l) gltype1='long int';;
18298 ll) gltype1='long long int';;
18299 i64) gltype1='__int64';;
18300 u) gltype1='unsigned int';;
18301 ul) gltype1='unsigned long int';;
18302 ull) gltype1='unsigned long long int';;
18303 ui64)gltype1='unsigned __int64';;
18305 cat >conftest.$ac_ext <<_ACEOF
18308 cat confdefs.h >>conftest.$ac_ext
18309 cat >>conftest.$ac_ext <<_ACEOF
18310 /* end confdefs.h. */
18312 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18313 included before <wchar.h>. */
18314 #include <stddef.h>
18315 #include <signal.h>
18317 # include <stdio.h>
18319 # include <wchar.h>
18322 extern $gltype foo;
18323 extern $gltype1 foo;
18332 rm -f conftest.$ac_objext
18333 if { (ac_try="$ac_compile"
18334 case "(($ac_try" in
18335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18336 *) ac_try_echo=$ac_try;;
18338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18339 $as_echo "$ac_try_echo") >&5
18340 (eval "$ac_compile") 2>conftest.er1
18342 grep -v '^ *+' conftest.er1 >conftest.err
18344 cat conftest.err >&5
18345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } && {
18347 test -z "$ac_c_werror_flag" ||
18348 test ! -s conftest.err
18349 } && test -s conftest.$ac_objext; then
18350 eval gl_cv_type_${gltype}_suffix=\$glsuf
18352 $as_echo "$as_me: failed program was:" >&5
18353 sed 's/^/| /' conftest.$ac_ext >&5
18358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18359 eval result=\$gl_cv_type_${gltype}_suffix
18360 test "$result" != no && break
18363 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
18364 $as_echo "$as_val"'`
18365 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18366 $as_echo "$ac_res" >&6; }
18367 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18368 eval result=\$gl_cv_type_${gltype}_suffix
18369 test "$result" = no && result=
18370 eval ${GLTYPE}_SUFFIX=\$result
18371 cat >>confdefs.h <<_ACEOF
18372 #define ${GLTYPE}_SUFFIX $result
18385 for ac_header in inttypes.h
18387 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18389 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18390 $as_echo_n "checking for $ac_header... " >&6; }
18391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18392 $as_echo_n "(cached) " >&6
18394 ac_res=`eval 'as_val=${'$as_ac_Header'}
18395 $as_echo "$as_val"'`
18396 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18397 $as_echo "$ac_res" >&6; }
18399 # Is the header compilable?
18400 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18401 $as_echo_n "checking $ac_header usability... " >&6; }
18402 cat >conftest.$ac_ext <<_ACEOF
18405 cat confdefs.h >>conftest.$ac_ext
18406 cat >>conftest.$ac_ext <<_ACEOF
18407 /* end confdefs.h. */
18408 $ac_includes_default
18409 #include <$ac_header>
18411 rm -f conftest.$ac_objext
18412 if { (ac_try="$ac_compile"
18413 case "(($ac_try" in
18414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18415 *) ac_try_echo=$ac_try;;
18417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18418 $as_echo "$ac_try_echo") >&5
18419 (eval "$ac_compile") 2>conftest.er1
18421 grep -v '^ *+' conftest.er1 >conftest.err
18423 cat conftest.err >&5
18424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); } && {
18426 test -z "$ac_c_werror_flag" ||
18427 test ! -s conftest.err
18428 } && test -s conftest.$ac_objext; then
18429 ac_header_compiler=yes
18431 $as_echo "$as_me: failed program was:" >&5
18432 sed 's/^/| /' conftest.$ac_ext >&5
18434 ac_header_compiler=no
18437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18438 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18439 $as_echo "$ac_header_compiler" >&6; }
18441 # Is the header present?
18442 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18443 $as_echo_n "checking $ac_header presence... " >&6; }
18444 cat >conftest.$ac_ext <<_ACEOF
18447 cat confdefs.h >>conftest.$ac_ext
18448 cat >>conftest.$ac_ext <<_ACEOF
18449 /* end confdefs.h. */
18450 #include <$ac_header>
18452 if { (ac_try="$ac_cpp conftest.$ac_ext"
18453 case "(($ac_try" in
18454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18455 *) ac_try_echo=$ac_try;;
18457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18458 $as_echo "$ac_try_echo") >&5
18459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18461 grep -v '^ *+' conftest.er1 >conftest.err
18463 cat conftest.err >&5
18464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); } >/dev/null && {
18466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18467 test ! -s conftest.err
18469 ac_header_preproc=yes
18471 $as_echo "$as_me: failed program was:" >&5
18472 sed 's/^/| /' conftest.$ac_ext >&5
18474 ac_header_preproc=no
18477 rm -f conftest.err conftest.$ac_ext
18478 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18479 $as_echo "$ac_header_preproc" >&6; }
18481 # So? What about this header?
18482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18484 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18485 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18486 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18487 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18488 ac_header_preproc=yes
18491 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18492 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18493 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18494 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18495 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18496 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18497 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18498 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18499 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18500 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18501 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18502 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18504 ## ------------------------------ ##
18505 ## Report this to bug-tar@gnu.org ##
18506 ## ------------------------------ ##
18508 ) | sed "s/^/$as_me: WARNING: /" >&2
18511 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18512 $as_echo_n "checking for $ac_header... " >&6; }
18513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18514 $as_echo_n "(cached) " >&6
18516 eval "$as_ac_Header=\$ac_header_preproc"
18518 ac_res=`eval 'as_val=${'$as_ac_Header'}
18519 $as_echo "$as_val"'`
18520 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18521 $as_echo "$ac_res" >&6; }
18524 as_val=`eval 'as_val=${'$as_ac_Header'}
18525 $as_echo "$as_val"'`
18526 if test "x$as_val" = x""yes; then
18527 cat >>confdefs.h <<_ACEOF
18528 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18535 if test $ac_cv_header_inttypes_h = yes; then
18536 { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
18537 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
18538 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
18539 $as_echo_n "(cached) " >&6
18542 cat >conftest.$ac_ext <<_ACEOF
18545 cat confdefs.h >>conftest.$ac_ext
18546 cat >>conftest.$ac_ext <<_ACEOF
18547 /* end confdefs.h. */
18549 #include <inttypes.h>
18562 rm -f conftest.$ac_objext
18563 if { (ac_try="$ac_compile"
18564 case "(($ac_try" in
18565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18566 *) ac_try_echo=$ac_try;;
18568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18569 $as_echo "$ac_try_echo") >&5
18570 (eval "$ac_compile") 2>conftest.er1
18572 grep -v '^ *+' conftest.er1 >conftest.err
18574 cat conftest.err >&5
18575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); } && {
18577 test -z "$ac_c_werror_flag" ||
18578 test ! -s conftest.err
18579 } && test -s conftest.$ac_objext; then
18580 gt_cv_inttypes_pri_broken=no
18582 $as_echo "$as_me: failed program was:" >&5
18583 sed 's/^/| /' conftest.$ac_ext >&5
18585 gt_cv_inttypes_pri_broken=yes
18588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18591 { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
18592 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
18594 if test "$gt_cv_inttypes_pri_broken" = yes; then
18596 cat >>confdefs.h <<_ACEOF
18597 #define PRI_MACROS_BROKEN 1
18600 PRI_MACROS_BROKEN=1
18602 PRI_MACROS_BROKEN=0
18608 { $as_echo "$as_me:$LINENO: checking whether imaxabs is declared" >&5
18609 $as_echo_n "checking whether imaxabs is declared... " >&6; }
18610 if test "${ac_cv_have_decl_imaxabs+set}" = set; then
18611 $as_echo_n "(cached) " >&6
18613 cat >conftest.$ac_ext <<_ACEOF
18616 cat confdefs.h >>conftest.$ac_ext
18617 cat >>conftest.$ac_ext <<_ACEOF
18618 /* end confdefs.h. */
18619 $ac_includes_default
18631 rm -f conftest.$ac_objext
18632 if { (ac_try="$ac_compile"
18633 case "(($ac_try" in
18634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18635 *) ac_try_echo=$ac_try;;
18637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18638 $as_echo "$ac_try_echo") >&5
18639 (eval "$ac_compile") 2>conftest.er1
18641 grep -v '^ *+' conftest.er1 >conftest.err
18643 cat conftest.err >&5
18644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); } && {
18646 test -z "$ac_c_werror_flag" ||
18647 test ! -s conftest.err
18648 } && test -s conftest.$ac_objext; then
18649 ac_cv_have_decl_imaxabs=yes
18651 $as_echo "$as_me: failed program was:" >&5
18652 sed 's/^/| /' conftest.$ac_ext >&5
18654 ac_cv_have_decl_imaxabs=no
18657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18659 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_imaxabs" >&5
18660 $as_echo "$ac_cv_have_decl_imaxabs" >&6; }
18661 if test "x$ac_cv_have_decl_imaxabs" = x""yes; then
18663 cat >>confdefs.h <<_ACEOF
18664 #define HAVE_DECL_IMAXABS 1
18669 cat >>confdefs.h <<_ACEOF
18670 #define HAVE_DECL_IMAXABS 0
18677 { $as_echo "$as_me:$LINENO: checking whether imaxdiv is declared" >&5
18678 $as_echo_n "checking whether imaxdiv is declared... " >&6; }
18679 if test "${ac_cv_have_decl_imaxdiv+set}" = set; then
18680 $as_echo_n "(cached) " >&6
18682 cat >conftest.$ac_ext <<_ACEOF
18685 cat confdefs.h >>conftest.$ac_ext
18686 cat >>conftest.$ac_ext <<_ACEOF
18687 /* end confdefs.h. */
18688 $ac_includes_default
18700 rm -f conftest.$ac_objext
18701 if { (ac_try="$ac_compile"
18702 case "(($ac_try" in
18703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18704 *) ac_try_echo=$ac_try;;
18706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18707 $as_echo "$ac_try_echo") >&5
18708 (eval "$ac_compile") 2>conftest.er1
18710 grep -v '^ *+' conftest.er1 >conftest.err
18712 cat conftest.err >&5
18713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); } && {
18715 test -z "$ac_c_werror_flag" ||
18716 test ! -s conftest.err
18717 } && test -s conftest.$ac_objext; then
18718 ac_cv_have_decl_imaxdiv=yes
18720 $as_echo "$as_me: failed program was:" >&5
18721 sed 's/^/| /' conftest.$ac_ext >&5
18723 ac_cv_have_decl_imaxdiv=no
18726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18728 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_imaxdiv" >&5
18729 $as_echo "$ac_cv_have_decl_imaxdiv" >&6; }
18730 if test "x$ac_cv_have_decl_imaxdiv" = x""yes; then
18732 cat >>confdefs.h <<_ACEOF
18733 #define HAVE_DECL_IMAXDIV 1
18738 cat >>confdefs.h <<_ACEOF
18739 #define HAVE_DECL_IMAXDIV 0
18746 { $as_echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
18747 $as_echo_n "checking whether strtoimax is declared... " >&6; }
18748 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
18749 $as_echo_n "(cached) " >&6
18751 cat >conftest.$ac_ext <<_ACEOF
18754 cat confdefs.h >>conftest.$ac_ext
18755 cat >>conftest.$ac_ext <<_ACEOF
18756 /* end confdefs.h. */
18757 $ac_includes_default
18769 rm -f conftest.$ac_objext
18770 if { (ac_try="$ac_compile"
18771 case "(($ac_try" in
18772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18773 *) ac_try_echo=$ac_try;;
18775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18776 $as_echo "$ac_try_echo") >&5
18777 (eval "$ac_compile") 2>conftest.er1
18779 grep -v '^ *+' conftest.er1 >conftest.err
18781 cat conftest.err >&5
18782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); } && {
18784 test -z "$ac_c_werror_flag" ||
18785 test ! -s conftest.err
18786 } && test -s conftest.$ac_objext; then
18787 ac_cv_have_decl_strtoimax=yes
18789 $as_echo "$as_me: failed program was:" >&5
18790 sed 's/^/| /' conftest.$ac_ext >&5
18792 ac_cv_have_decl_strtoimax=no
18795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18797 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
18798 $as_echo "$ac_cv_have_decl_strtoimax" >&6; }
18799 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then
18801 cat >>confdefs.h <<_ACEOF
18802 #define HAVE_DECL_STRTOIMAX 1
18807 cat >>confdefs.h <<_ACEOF
18808 #define HAVE_DECL_STRTOIMAX 0
18815 { $as_echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
18816 $as_echo_n "checking whether strtoumax is declared... " >&6; }
18817 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
18818 $as_echo_n "(cached) " >&6
18820 cat >conftest.$ac_ext <<_ACEOF
18823 cat confdefs.h >>conftest.$ac_ext
18824 cat >>conftest.$ac_ext <<_ACEOF
18825 /* end confdefs.h. */
18826 $ac_includes_default
18838 rm -f conftest.$ac_objext
18839 if { (ac_try="$ac_compile"
18840 case "(($ac_try" in
18841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842 *) ac_try_echo=$ac_try;;
18844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18845 $as_echo "$ac_try_echo") >&5
18846 (eval "$ac_compile") 2>conftest.er1
18848 grep -v '^ *+' conftest.er1 >conftest.err
18850 cat conftest.err >&5
18851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); } && {
18853 test -z "$ac_c_werror_flag" ||
18854 test ! -s conftest.err
18855 } && test -s conftest.$ac_objext; then
18856 ac_cv_have_decl_strtoumax=yes
18858 $as_echo "$as_me: failed program was:" >&5
18859 sed 's/^/| /' conftest.$ac_ext >&5
18861 ac_cv_have_decl_strtoumax=no
18864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18866 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
18867 $as_echo "$ac_cv_have_decl_strtoumax" >&6; }
18868 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then
18870 cat >>confdefs.h <<_ACEOF
18871 #define HAVE_DECL_STRTOUMAX 1
18876 cat >>confdefs.h <<_ACEOF
18877 #define HAVE_DECL_STRTOUMAX 0
18887 GNULIB_STRTOIMAX=0;
18888 GNULIB_STRTOUMAX=0;
18889 HAVE_DECL_IMAXABS=1;
18890 HAVE_DECL_IMAXDIV=1;
18891 HAVE_DECL_STRTOIMAX=1;
18892 HAVE_DECL_STRTOUMAX=1;
18899 GNULIB_TOWCTRANS=0;
18903 REPLACE_ISWBLANK=0;
18908 { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
18909 $as_echo_n "checking for wint_t... " >&6; }
18910 if test "${gt_cv_c_wint_t+set}" = set; then
18911 $as_echo_n "(cached) " >&6
18913 cat >conftest.$ac_ext <<_ACEOF
18916 cat confdefs.h >>conftest.$ac_ext
18917 cat >>conftest.$ac_ext <<_ACEOF
18918 /* end confdefs.h. */
18920 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18922 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
18923 before <wchar.h>. */
18924 #include <stddef.h>
18928 wint_t foo = (wchar_t)'\0';
18937 rm -f conftest.$ac_objext
18938 if { (ac_try="$ac_compile"
18939 case "(($ac_try" in
18940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18941 *) ac_try_echo=$ac_try;;
18943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18944 $as_echo "$ac_try_echo") >&5
18945 (eval "$ac_compile") 2>conftest.er1
18947 grep -v '^ *+' conftest.er1 >conftest.err
18949 cat conftest.err >&5
18950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); } && {
18952 test -z "$ac_c_werror_flag" ||
18953 test ! -s conftest.err
18954 } && test -s conftest.$ac_objext; then
18957 $as_echo "$as_me: failed program was:" >&5
18958 sed 's/^/| /' conftest.$ac_ext >&5
18963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18965 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
18966 $as_echo "$gt_cv_c_wint_t" >&6; }
18967 if test $gt_cv_c_wint_t = yes; then
18969 cat >>confdefs.h <<\_ACEOF
18970 #define HAVE_WINT_T 1
18985 if test $ac_cv_func_iswcntrl = yes; then
18995 if test $gt_cv_c_wint_t = yes; then
19016 if test $gl_cv_have_include_next = yes; then
19017 gl_cv_next_wctype_h='<'wctype.h'>'
19019 { $as_echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
19020 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
19021 if test "${gl_cv_next_wctype_h+set}" = set; then
19022 $as_echo_n "(cached) " >&6
19025 if test $ac_cv_header_wctype_h = yes; then
19028 cat >conftest.$ac_ext <<_ACEOF
19031 cat confdefs.h >>conftest.$ac_ext
19032 cat >>conftest.$ac_ext <<_ACEOF
19033 /* end confdefs.h. */
19034 #include <wctype.h>
19038 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19039 *) gl_absname_cpp="$ac_cpp" ;;
19041 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19042 sed -n '\#/wctype.h#{
19043 s#.*"\(.*/wctype.h\)".*#\1#
19049 gl_cv_next_wctype_h='<'wctype.h'>'
19054 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5
19055 $as_echo "$gl_cv_next_wctype_h" >&6; }
19057 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
19059 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19060 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19061 gl_next_as_first_directive='<'wctype.h'>'
19063 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19064 gl_next_as_first_directive=$gl_cv_next_wctype_h
19066 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
19071 if test $ac_cv_header_wctype_h = yes; then
19072 if test $ac_cv_func_iswcntrl = yes; then
19073 { $as_echo "$as_me:$LINENO: checking whether iswcntrl works" >&5
19074 $as_echo_n "checking whether iswcntrl works... " >&6; }
19075 if test "${gl_cv_func_iswcntrl_works+set}" = set; then
19076 $as_echo_n "(cached) " >&6
19079 if test "$cross_compiling" = yes; then
19080 cat >conftest.$ac_ext <<_ACEOF
19083 cat confdefs.h >>conftest.$ac_ext
19084 cat >>conftest.$ac_ext <<_ACEOF
19085 /* end confdefs.h. */
19086 #include <stdlib.h>
19087 #if __GNU_LIBRARY__ == 1
19088 Linux libc5 i18n is broken.
19098 rm -f conftest.$ac_objext
19099 if { (ac_try="$ac_compile"
19100 case "(($ac_try" in
19101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102 *) ac_try_echo=$ac_try;;
19104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19105 $as_echo "$ac_try_echo") >&5
19106 (eval "$ac_compile") 2>conftest.er1
19108 grep -v '^ *+' conftest.er1 >conftest.err
19110 cat conftest.err >&5
19111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); } && {
19113 test -z "$ac_c_werror_flag" ||
19114 test ! -s conftest.err
19115 } && test -s conftest.$ac_objext; then
19116 gl_cv_func_iswcntrl_works=yes
19118 $as_echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19121 gl_cv_func_iswcntrl_works=no
19124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19127 cat >conftest.$ac_ext <<_ACEOF
19130 cat confdefs.h >>conftest.$ac_ext
19131 cat >>conftest.$ac_ext <<_ACEOF
19132 /* end confdefs.h. */
19134 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
19135 included before <wchar.h>.
19136 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
19137 must be included before <wchar.h>. */
19138 #include <stddef.h>
19142 #include <wctype.h>
19143 int main () { return iswprint ('x') == 0; }
19146 rm -f conftest$ac_exeext
19147 if { (ac_try="$ac_link"
19148 case "(($ac_try" in
19149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19150 *) ac_try_echo=$ac_try;;
19152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19153 $as_echo "$ac_try_echo") >&5
19154 (eval "$ac_link") 2>&5
19156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19158 { (case "(($ac_try" in
19159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19160 *) ac_try_echo=$ac_try;;
19162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19163 $as_echo "$ac_try_echo") >&5
19164 (eval "$ac_try") 2>&5
19166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); }; }; then
19168 gl_cv_func_iswcntrl_works=yes
19170 $as_echo "$as_me: program exited with status $ac_status" >&5
19171 $as_echo "$as_me: failed program was:" >&5
19172 sed 's/^/| /' conftest.$ac_ext >&5
19174 ( exit $ac_status )
19175 gl_cv_func_iswcntrl_works=no
19177 rm -rf conftest.dSYM
19178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19184 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_iswcntrl_works" >&5
19185 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
19193 if test "$gl_cv_func_iswcntrl_works" = no; then
19200 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
19204 { $as_echo "$as_me:$LINENO: checking for wctype_t" >&5
19205 $as_echo_n "checking for wctype_t... " >&6; }
19206 if test "${gl_cv_type_wctype_t+set}" = set; then
19207 $as_echo_n "(cached) " >&6
19209 cat >conftest.$ac_ext <<_ACEOF
19212 cat confdefs.h >>conftest.$ac_ext
19213 cat >>conftest.$ac_ext <<_ACEOF
19214 /* end confdefs.h. */
19215 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
19216 included before <wchar.h>.
19217 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
19218 must be included before <wchar.h>. */
19219 #include <stddef.h>
19224 # include <wctype.h>
19236 rm -f conftest.$ac_objext
19237 if { (ac_try="$ac_compile"
19238 case "(($ac_try" in
19239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19240 *) ac_try_echo=$ac_try;;
19242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19243 $as_echo "$ac_try_echo") >&5
19244 (eval "$ac_compile") 2>conftest.er1
19246 grep -v '^ *+' conftest.er1 >conftest.err
19248 cat conftest.err >&5
19249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); } && {
19251 test -z "$ac_c_werror_flag" ||
19252 test ! -s conftest.err
19253 } && test -s conftest.$ac_objext; then
19254 gl_cv_type_wctype_t=yes
19256 $as_echo "$as_me: failed program was:" >&5
19257 sed 's/^/| /' conftest.$ac_ext >&5
19259 gl_cv_type_wctype_t=no
19262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19265 { $as_echo "$as_me:$LINENO: result: $gl_cv_type_wctype_t" >&5
19266 $as_echo "$gl_cv_type_wctype_t" >&6; }
19267 if test $gl_cv_type_wctype_t = no; then
19271 { $as_echo "$as_me:$LINENO: checking for wctrans_t" >&5
19272 $as_echo_n "checking for wctrans_t... " >&6; }
19273 if test "${gl_cv_type_wctrans_t+set}" = set; then
19274 $as_echo_n "(cached) " >&6
19276 cat >conftest.$ac_ext <<_ACEOF
19279 cat confdefs.h >>conftest.$ac_ext
19280 cat >>conftest.$ac_ext <<_ACEOF
19281 /* end confdefs.h. */
19282 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
19283 included before <wchar.h>.
19284 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
19285 must be included before <wchar.h>. */
19286 #include <stddef.h>
19290 #include <wctype.h>
19301 rm -f conftest.$ac_objext
19302 if { (ac_try="$ac_compile"
19303 case "(($ac_try" in
19304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305 *) ac_try_echo=$ac_try;;
19307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19308 $as_echo "$ac_try_echo") >&5
19309 (eval "$ac_compile") 2>conftest.er1
19311 grep -v '^ *+' conftest.er1 >conftest.err
19313 cat conftest.err >&5
19314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315 (exit $ac_status); } && {
19316 test -z "$ac_c_werror_flag" ||
19317 test ! -s conftest.err
19318 } && test -s conftest.$ac_objext; then
19319 gl_cv_type_wctrans_t=yes
19321 $as_echo "$as_me: failed program was:" >&5
19322 sed 's/^/| /' conftest.$ac_ext >&5
19324 gl_cv_type_wctrans_t=no
19327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19330 { $as_echo "$as_me:$LINENO: result: $gl_cv_type_wctrans_t" >&5
19331 $as_echo "$gl_cv_type_wctrans_t" >&6; }
19332 if test $gl_cv_type_wctrans_t = no; then
19341 for gl_func in wctype iswctype wctrans towctrans ; do
19342 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19343 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
19344 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19345 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
19346 $as_echo_n "(cached) " >&6
19348 cat >conftest.$ac_ext <<_ACEOF
19351 cat confdefs.h >>conftest.$ac_ext
19352 cat >>conftest.$ac_ext <<_ACEOF
19353 /* end confdefs.h. */
19355 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19357 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19358 included before <wchar.h>. */
19359 #if !(defined __GLIBC__ && !defined __UCLIBC__)
19360 # include <stddef.h>
19361 # include <stdio.h>
19363 # include <wchar.h>
19365 #include <wctype.h>
19376 rm -f conftest.$ac_objext
19377 if { (ac_try="$ac_compile"
19378 case "(($ac_try" in
19379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19380 *) ac_try_echo=$ac_try;;
19382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19383 $as_echo "$ac_try_echo") >&5
19384 (eval "$ac_compile") 2>conftest.er1
19386 grep -v '^ *+' conftest.er1 >conftest.err
19388 cat conftest.err >&5
19389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); } && {
19391 test -z "$ac_c_werror_flag" ||
19392 test ! -s conftest.err
19393 } && test -s conftest.$ac_objext; then
19394 eval "$as_gl_Symbol=yes"
19396 $as_echo "$as_me: failed program was:" >&5
19397 sed 's/^/| /' conftest.$ac_ext >&5
19399 eval "$as_gl_Symbol=no"
19402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19404 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
19405 $as_echo "$as_val"'`
19406 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19407 $as_echo "$ac_res" >&6; }
19408 as_val=`eval 'as_val=${'$as_gl_Symbol'}
19409 $as_echo "$as_val"'`
19410 if test "x$as_val" = x""yes; then
19411 cat >>confdefs.h <<_ACEOF
19412 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19415 eval ac_cv_have_decl_$gl_func=yes
19423 { $as_echo "$as_me:$LINENO: checking whether iswblank is declared" >&5
19424 $as_echo_n "checking whether iswblank is declared... " >&6; }
19425 if test "${ac_cv_have_decl_iswblank+set}" = set; then
19426 $as_echo_n "(cached) " >&6
19428 cat >conftest.$ac_ext <<_ACEOF
19431 cat confdefs.h >>conftest.$ac_ext
19432 cat >>conftest.$ac_ext <<_ACEOF
19433 /* end confdefs.h. */
19434 $ac_includes_default
19446 rm -f conftest.$ac_objext
19447 if { (ac_try="$ac_compile"
19448 case "(($ac_try" in
19449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19450 *) ac_try_echo=$ac_try;;
19452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19453 $as_echo "$ac_try_echo") >&5
19454 (eval "$ac_compile") 2>conftest.er1
19456 grep -v '^ *+' conftest.er1 >conftest.err
19458 cat conftest.err >&5
19459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); } && {
19461 test -z "$ac_c_werror_flag" ||
19462 test ! -s conftest.err
19463 } && test -s conftest.$ac_objext; then
19464 ac_cv_have_decl_iswblank=yes
19466 $as_echo "$as_me: failed program was:" >&5
19467 sed 's/^/| /' conftest.$ac_ext >&5
19469 ac_cv_have_decl_iswblank=no
19472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19474 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_iswblank" >&5
19475 $as_echo "$ac_cv_have_decl_iswblank" >&6; }
19476 if test "x$ac_cv_have_decl_iswblank" = x""yes; then
19478 cat >>confdefs.h <<_ACEOF
19479 #define HAVE_DECL_ISWBLANK 1
19484 cat >>confdefs.h <<_ACEOF
19485 #define HAVE_DECL_ISWBLANK 0
19493 GNULIB_NL_LANGINFO=0;
19494 HAVE_NL_LANGINFO=1;
19495 REPLACE_NL_LANGINFO=0;
19504 { $as_echo "$as_me:$LINENO: checking whether lstat correctly handles trailing slash" >&5
19505 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
19506 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
19507 $as_echo_n "(cached) " >&6
19509 rm -f conftest.sym conftest.file
19510 echo >conftest.file
19511 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
19512 if test "$cross_compiling" = yes; then
19513 # When cross-compiling, be pessimistic so we will end up using the
19514 # replacement version of lstat that checks for trailing slashes and
19515 # calls lstat a second time when necessary.
19516 ac_cv_func_lstat_dereferences_slashed_symlink=no
19519 cat >conftest.$ac_ext <<_ACEOF
19522 cat confdefs.h >>conftest.$ac_ext
19523 cat >>conftest.$ac_ext <<_ACEOF
19524 /* end confdefs.h. */
19525 $ac_includes_default
19530 /* Linux will dereference the symlink and fail, as required by
19531 POSIX. That is better in the sense that it means we will not
19532 have to compile and use the lstat wrapper. */
19533 return lstat ("conftest.sym/", &sbuf) == 0;
19539 rm -f conftest$ac_exeext
19540 if { (ac_try="$ac_link"
19541 case "(($ac_try" in
19542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543 *) ac_try_echo=$ac_try;;
19545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19546 $as_echo "$ac_try_echo") >&5
19547 (eval "$ac_link") 2>&5
19549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19551 { (case "(($ac_try" in
19552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19553 *) ac_try_echo=$ac_try;;
19555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19556 $as_echo "$ac_try_echo") >&5
19557 (eval "$ac_try") 2>&5
19559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); }; }; then
19561 ac_cv_func_lstat_dereferences_slashed_symlink=yes
19563 $as_echo "$as_me: program exited with status $ac_status" >&5
19564 $as_echo "$as_me: failed program was:" >&5
19565 sed 's/^/| /' conftest.$ac_ext >&5
19567 ( exit $ac_status )
19568 ac_cv_func_lstat_dereferences_slashed_symlink=no
19570 rm -rf conftest.dSYM
19571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19576 # If the 'ln -s' command failed, then we probably don't even
19577 # have an lstat function.
19578 ac_cv_func_lstat_dereferences_slashed_symlink=no
19580 rm -f conftest.sym conftest.file
19583 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
19584 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19585 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
19587 cat >>confdefs.h <<_ACEOF
19588 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19591 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
19600 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
19607 { $as_echo "$as_me:$LINENO: checking whether unlink honors trailing slashes" >&5
19608 $as_echo_n "checking whether unlink honors trailing slashes... " >&6; }
19609 if test "${gl_cv_func_unlink_honors_slashes+set}" = set; then
19610 $as_echo_n "(cached) " >&6
19612 touch conftest.file
19613 # Assume that if we have lstat, we can also check symlinks.
19614 if test $ac_cv_func_lstat = yes; then
19615 ln -s conftest.file conftest.lnk
19617 if test "$cross_compiling" = yes; then
19618 gl_cv_func_unlink_honors_slashes="guessing no"
19620 cat >conftest.$ac_ext <<_ACEOF
19623 cat confdefs.h >>conftest.$ac_ext
19624 cat >>conftest.$ac_ext <<_ACEOF
19625 /* end confdefs.h. */
19626 #include <unistd.h>
19633 if (!unlink ("conftest.file/"))
19635 else if (errno != ENOTDIR)
19638 if (!unlink ("conftest.lnk/"))
19640 else if (errno != ENOTDIR)
19649 rm -f conftest$ac_exeext
19650 if { (ac_try="$ac_link"
19651 case "(($ac_try" in
19652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19653 *) ac_try_echo=$ac_try;;
19655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19656 $as_echo "$ac_try_echo") >&5
19657 (eval "$ac_link") 2>&5
19659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19661 { (case "(($ac_try" in
19662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19663 *) ac_try_echo=$ac_try;;
19665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19666 $as_echo "$ac_try_echo") >&5
19667 (eval "$ac_try") 2>&5
19669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); }; }; then
19671 gl_cv_func_unlink_honors_slashes=yes
19673 $as_echo "$as_me: program exited with status $ac_status" >&5
19674 $as_echo "$as_me: failed program was:" >&5
19675 sed 's/^/| /' conftest.$ac_ext >&5
19677 ( exit $ac_status )
19678 gl_cv_func_unlink_honors_slashes=no
19680 rm -rf conftest.dSYM
19681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19685 rm -f conftest.file conftest.lnk
19687 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_unlink_honors_slashes" >&5
19688 $as_echo "$gl_cv_func_unlink_honors_slashes" >&6; }
19689 { $as_echo "$as_me:$LINENO: checking whether unlink of a parent directory fails as it should" >&5
19690 $as_echo_n "checking whether unlink of a parent directory fails as it should... " >&6; }
19691 if test "${gl_cv_func_unlink_parent_fails+set}" = set; then
19692 $as_echo_n "(cached) " >&6
19697 # Use the mktemp program if available. If not available, hide the error
19699 tmp=`(umask 077 && mktemp -d /tmp/gtXXXXXX) 2>/dev/null` &&
19700 test -n "$tmp" && test -d "$tmp"
19703 # Use a simple mkdir command. It is guaranteed to fail if the directory
19704 # already exists. $RANDOM is bash specific and expands to empty in shells
19705 # other than bash, ksh and zsh. Its use does not increase security;
19706 # rather, it minimizes the probability of failure in a very cluttered /tmp
19708 tmp=/tmp/gt$$-$RANDOM
19709 (umask 077 && mkdir "$tmp")
19711 mkdir "$tmp/subdir"
19712 GL_SUBDIR_FOR_UNLINK="$tmp/subdir"
19713 export GL_SUBDIR_FOR_UNLINK
19714 if test "$cross_compiling" = yes; then
19715 gl_cv_func_unlink_parent_fails="guessing no"
19717 cat >conftest.$ac_ext <<_ACEOF
19720 cat confdefs.h >>conftest.$ac_ext
19721 cat >>conftest.$ac_ext <<_ACEOF
19722 /* end confdefs.h. */
19724 #include <stdlib.h>
19725 #include <unistd.h>
19729 if (chdir (getenv ("GL_SUBDIR_FOR_UNLINK")) != 0)
19731 else if (unlink ("..") == 0)
19737 rm -f conftest$ac_exeext
19738 if { (ac_try="$ac_link"
19739 case "(($ac_try" in
19740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19741 *) ac_try_echo=$ac_try;;
19743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19744 $as_echo "$ac_try_echo") >&5
19745 (eval "$ac_link") 2>&5
19747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19749 { (case "(($ac_try" in
19750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19751 *) ac_try_echo=$ac_try;;
19753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19754 $as_echo "$ac_try_echo") >&5
19755 (eval "$ac_try") 2>&5
19757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); }; }; then
19759 gl_cv_func_unlink_parent_fails=yes
19761 $as_echo "$as_me: program exited with status $ac_status" >&5
19762 $as_echo "$as_me: failed program was:" >&5
19763 sed 's/^/| /' conftest.$ac_ext >&5
19765 ( exit $ac_status )
19766 gl_cv_func_unlink_parent_fails=no
19768 rm -rf conftest.dSYM
19769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19773 unset GL_SUBDIR_FOR_UNLINK
19776 gl_cv_func_unlink_parent_fails="guessing no"
19780 gl_cv_func_unlink_parent_fails="guessing yes"
19785 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_unlink_parent_fails" >&5
19786 $as_echo "$gl_cv_func_unlink_parent_fails" >&6; }
19787 case "$gl_cv_func_unlink_parent_fails" in
19790 cat >>confdefs.h <<\_ACEOF
19791 #define UNLINK_PARENT_BUG 1
19796 if test "$gl_cv_func_unlink_honors_slashes" != yes \
19797 || { case "$gl_cv_func_unlink_parent_fails" in
19811 gl_LIBOBJS="$gl_LIBOBJS unlink.$ac_objext"
19836 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
19886 for ac_func in fchmodat fstatat mkdirat openat unlinkat
19888 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19889 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19890 $as_echo_n "checking for $ac_func... " >&6; }
19891 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19892 $as_echo_n "(cached) " >&6
19894 cat >conftest.$ac_ext <<_ACEOF
19897 cat confdefs.h >>conftest.$ac_ext
19898 cat >>conftest.$ac_ext <<_ACEOF
19899 /* end confdefs.h. */
19900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19902 #define $ac_func innocuous_$ac_func
19904 /* System header to define __stub macros and hopefully few prototypes,
19905 which can conflict with char $ac_func (); below.
19906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19907 <limits.h> exists even on freestanding compilers. */
19910 # include <limits.h>
19912 # include <assert.h>
19917 /* Override any GCC internal prototype to avoid an error.
19918 Use char because int might match the return type of a GCC
19919 builtin and then its argument prototype would still apply. */
19924 /* The GNU C library defines this for functions which it implements
19925 to always fail with ENOSYS. Some functions are actually named
19926 something starting with __ and the normal name is an alias. */
19927 #if defined __stub_$ac_func || defined __stub___$ac_func
19934 return $ac_func ();
19939 rm -f conftest.$ac_objext conftest$ac_exeext
19940 if { (ac_try="$ac_link"
19941 case "(($ac_try" in
19942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19943 *) ac_try_echo=$ac_try;;
19945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19946 $as_echo "$ac_try_echo") >&5
19947 (eval "$ac_link") 2>conftest.er1
19949 grep -v '^ *+' conftest.er1 >conftest.err
19951 cat conftest.err >&5
19952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); } && {
19954 test -z "$ac_c_werror_flag" ||
19955 test ! -s conftest.err
19956 } && test -s conftest$ac_exeext && {
19957 test "$cross_compiling" = yes ||
19958 $as_test_x conftest$ac_exeext
19960 eval "$as_ac_var=yes"
19962 $as_echo "$as_me: failed program was:" >&5
19963 sed 's/^/| /' conftest.$ac_ext >&5
19965 eval "$as_ac_var=no"
19968 rm -rf conftest.dSYM
19969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19970 conftest$ac_exeext conftest.$ac_ext
19972 ac_res=`eval 'as_val=${'$as_ac_var'}
19973 $as_echo "$as_val"'`
19974 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19975 $as_echo "$ac_res" >&6; }
19976 as_val=`eval 'as_val=${'$as_ac_var'}
19977 $as_echo "$as_val"'`
19978 if test "x$as_val" = x""yes; then
19979 cat >>confdefs.h <<_ACEOF
19980 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19985 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
19993 case $ac_cv_func_openat+$ac_cv_func_lstat_dereferences_slashed_symlink in
19995 # GNU/Hurd has unlinkat, but it has the same bug as unlink.
19996 if test $REPLACE_UNLINK = 1; then
20005 gl_LIBOBJS="$gl_LIBOBJS unlinkat.$ac_objext"
20010 # Solaris 9 has *at functions, but uniformly mishandles trailing
20011 # slash in all of them.
20020 gl_LIBOBJS="$gl_LIBOBJS openat.$ac_objext"
20031 gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
20042 gl_LIBOBJS="$gl_LIBOBJS unlinkat.$ac_objext"
20048 HAVE_UNLINKAT=0 # No known system with unlinkat but not openat
20049 HAVE_FSTATAT=0 # No known system with fstatat but not openat
20056 if test $ac_cv_func_fchmodat != yes; then
20059 if test $ac_cv_func_mkdirat != yes; then
20065 { $as_echo "$as_me:$LINENO: checking for fchownat" >&5
20066 $as_echo_n "checking for fchownat... " >&6; }
20067 if test "${ac_cv_func_fchownat+set}" = set; then
20068 $as_echo_n "(cached) " >&6
20070 cat >conftest.$ac_ext <<_ACEOF
20073 cat confdefs.h >>conftest.$ac_ext
20074 cat >>conftest.$ac_ext <<_ACEOF
20075 /* end confdefs.h. */
20076 /* Define fchownat to an innocuous variant, in case <limits.h> declares fchownat.
20077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20078 #define fchownat innocuous_fchownat
20080 /* System header to define __stub macros and hopefully few prototypes,
20081 which can conflict with char fchownat (); below.
20082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20083 <limits.h> exists even on freestanding compilers. */
20086 # include <limits.h>
20088 # include <assert.h>
20093 /* Override any GCC internal prototype to avoid an error.
20094 Use char because int might match the return type of a GCC
20095 builtin and then its argument prototype would still apply. */
20100 /* The GNU C library defines this for functions which it implements
20101 to always fail with ENOSYS. Some functions are actually named
20102 something starting with __ and the normal name is an alias. */
20103 #if defined __stub_fchownat || defined __stub___fchownat
20110 return fchownat ();
20115 rm -f conftest.$ac_objext conftest$ac_exeext
20116 if { (ac_try="$ac_link"
20117 case "(($ac_try" in
20118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20119 *) ac_try_echo=$ac_try;;
20121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20122 $as_echo "$ac_try_echo") >&5
20123 (eval "$ac_link") 2>conftest.er1
20125 grep -v '^ *+' conftest.er1 >conftest.err
20127 cat conftest.err >&5
20128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); } && {
20130 test -z "$ac_c_werror_flag" ||
20131 test ! -s conftest.err
20132 } && test -s conftest$ac_exeext && {
20133 test "$cross_compiling" = yes ||
20134 $as_test_x conftest$ac_exeext
20136 ac_cv_func_fchownat=yes
20138 $as_echo "$as_me: failed program was:" >&5
20139 sed 's/^/| /' conftest.$ac_ext >&5
20141 ac_cv_func_fchownat=no
20144 rm -rf conftest.dSYM
20145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20146 conftest$ac_exeext conftest.$ac_ext
20148 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fchownat" >&5
20149 $as_echo "$ac_cv_func_fchownat" >&6; }
20150 if test "x$ac_cv_func_fchownat" = x""yes; then
20154 { $as_echo "$as_me:$LINENO: checking whether fchownat works with AT_SYMLINK_NOFOLLOW" >&5
20155 $as_echo_n "checking whether fchownat works with AT_SYMLINK_NOFOLLOW... " >&6; }
20156 if test "${gl_cv_func_fchownat_nofollow_works+set}" = set; then
20157 $as_echo_n "(cached) " >&6
20160 gl_dangle=conftest.dangle
20161 # Remove any remnants of a previous test.
20163 # Arrange for deletion of the temporary file this test creates.
20164 ac_clean_files="$ac_clean_files $gl_dangle"
20165 ln -s conftest.no-such $gl_dangle
20166 if test "$cross_compiling" = yes; then
20167 gl_cv_func_fchownat_nofollow_works=no
20169 cat >conftest.$ac_ext <<_ACEOF
20172 cat confdefs.h >>conftest.$ac_ext
20173 cat >>conftest.$ac_ext <<_ACEOF
20174 /* end confdefs.h. */
20177 #include <unistd.h>
20178 #include <stdlib.h>
20180 #include <sys/types.h>
20184 return (fchownat (AT_FDCWD, "$gl_dangle", -1, getgid (),
20185 AT_SYMLINK_NOFOLLOW) != 0
20186 && errno == ENOENT);
20190 rm -f conftest$ac_exeext
20191 if { (ac_try="$ac_link"
20192 case "(($ac_try" in
20193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20194 *) ac_try_echo=$ac_try;;
20196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20197 $as_echo "$ac_try_echo") >&5
20198 (eval "$ac_link") 2>&5
20200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20202 { (case "(($ac_try" in
20203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20204 *) ac_try_echo=$ac_try;;
20206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20207 $as_echo "$ac_try_echo") >&5
20208 (eval "$ac_try") 2>&5
20210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); }; }; then
20212 gl_cv_func_fchownat_nofollow_works=yes
20214 $as_echo "$as_me: program exited with status $ac_status" >&5
20215 $as_echo "$as_me: failed program was:" >&5
20216 sed 's/^/| /' conftest.$ac_ext >&5
20218 ( exit $ac_status )
20219 gl_cv_func_fchownat_nofollow_works=no
20221 rm -rf conftest.dSYM
20222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20228 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fchownat_nofollow_works" >&5
20229 $as_echo "$gl_cv_func_fchownat_nofollow_works" >&6; }
20230 if test $gl_cv_func_fchownat_nofollow_works = no; then
20233 cat >>confdefs.h <<\_ACEOF
20234 #define FCHOWNAT_NOFOLLOW_BUG 1
20244 { $as_echo "$as_me:$LINENO: checking whether fchownat works with an empty file name" >&5
20245 $as_echo_n "checking whether fchownat works with an empty file name... " >&6; }
20246 if test "${gl_cv_func_fchownat_empty_filename_works+set}" = set; then
20247 $as_echo_n "(cached) " >&6
20249 if test "$cross_compiling" = yes; then
20250 gl_cv_func_fchownat_empty_filename_works="guessing no"
20252 cat >conftest.$ac_ext <<_ACEOF
20255 cat confdefs.h >>conftest.$ac_ext
20256 cat >>conftest.$ac_ext <<_ACEOF
20257 /* end confdefs.h. */
20258 #include <unistd.h>
20266 if (mkdir ("conftestdir", 0700) < 0)
20268 fd = open ("conftestdir", O_RDONLY);
20271 ret = fchownat (fd, "", -1, -1, 0);
20273 rmdir ("conftestdir");
20280 rm -f conftest$ac_exeext
20281 if { (ac_try="$ac_link"
20282 case "(($ac_try" in
20283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20284 *) ac_try_echo=$ac_try;;
20286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20287 $as_echo "$ac_try_echo") >&5
20288 (eval "$ac_link") 2>&5
20290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20292 { (case "(($ac_try" in
20293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20294 *) ac_try_echo=$ac_try;;
20296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20297 $as_echo "$ac_try_echo") >&5
20298 (eval "$ac_try") 2>&5
20300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); }; }; then
20302 gl_cv_func_fchownat_empty_filename_works=yes
20304 $as_echo "$as_me: program exited with status $ac_status" >&5
20305 $as_echo "$as_me: failed program was:" >&5
20306 sed 's/^/| /' conftest.$ac_ext >&5
20308 ( exit $ac_status )
20309 gl_cv_func_fchownat_empty_filename_works=no
20311 rm -rf conftest.dSYM
20312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20318 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fchownat_empty_filename_works" >&5
20319 $as_echo "$gl_cv_func_fchownat_empty_filename_works" >&6; }
20320 if test "$gl_cv_func_fchownat_empty_filename_works" != yes; then
20323 cat >>confdefs.h <<\_ACEOF
20324 #define FCHOWNAT_EMPTY_FILENAME_BUG 1
20331 if test $REPLACE_CHOWN = 1; then
20338 if test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1; then
20347 gl_LIBOBJS="$gl_LIBOBJS fchownat.$ac_objext"
20357 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
20358 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
20359 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20360 $as_echo_n "(cached) " >&6
20362 cat >conftest.$ac_ext <<_ACEOF
20365 cat confdefs.h >>conftest.$ac_ext
20366 cat >>conftest.$ac_ext <<_ACEOF
20367 /* end confdefs.h. */
20369 #include <features.h>
20370 #ifdef __GNU_LIBRARY__
20371 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20381 $EGREP "Lucky" >/dev/null 2>&1; then
20382 ac_cv_gnu_library_2_1=yes
20384 ac_cv_gnu_library_2_1=no
20391 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20392 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20394 GLIBC21="$ac_cv_gnu_library_2_1"
20400 { $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
20401 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
20402 if test "${gl_cv_func_malloc_posix+set}" = set; then
20403 $as_echo_n "(cached) " >&6
20406 cat >conftest.$ac_ext <<_ACEOF
20409 cat confdefs.h >>conftest.$ac_ext
20410 cat >>conftest.$ac_ext <<_ACEOF
20411 /* end confdefs.h. */
20416 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
20424 rm -f conftest.$ac_objext
20425 if { (ac_try="$ac_compile"
20426 case "(($ac_try" in
20427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428 *) ac_try_echo=$ac_try;;
20430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20431 $as_echo "$ac_try_echo") >&5
20432 (eval "$ac_compile") 2>conftest.er1
20434 grep -v '^ *+' conftest.er1 >conftest.err
20436 cat conftest.err >&5
20437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); } && {
20439 test -z "$ac_c_werror_flag" ||
20440 test ! -s conftest.err
20441 } && test -s conftest.$ac_objext; then
20442 gl_cv_func_malloc_posix=yes
20444 $as_echo "$as_me: failed program was:" >&5
20445 sed 's/^/| /' conftest.$ac_ext >&5
20447 gl_cv_func_malloc_posix=no
20450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20453 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
20454 $as_echo "$gl_cv_func_malloc_posix" >&6; }
20458 for ac_header in stdlib.h
20460 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20462 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20463 $as_echo_n "checking for $ac_header... " >&6; }
20464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20465 $as_echo_n "(cached) " >&6
20467 ac_res=`eval 'as_val=${'$as_ac_Header'}
20468 $as_echo "$as_val"'`
20469 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20470 $as_echo "$ac_res" >&6; }
20472 # Is the header compilable?
20473 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20474 $as_echo_n "checking $ac_header usability... " >&6; }
20475 cat >conftest.$ac_ext <<_ACEOF
20478 cat confdefs.h >>conftest.$ac_ext
20479 cat >>conftest.$ac_ext <<_ACEOF
20480 /* end confdefs.h. */
20481 $ac_includes_default
20482 #include <$ac_header>
20484 rm -f conftest.$ac_objext
20485 if { (ac_try="$ac_compile"
20486 case "(($ac_try" in
20487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20488 *) ac_try_echo=$ac_try;;
20490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20491 $as_echo "$ac_try_echo") >&5
20492 (eval "$ac_compile") 2>conftest.er1
20494 grep -v '^ *+' conftest.er1 >conftest.err
20496 cat conftest.err >&5
20497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); } && {
20499 test -z "$ac_c_werror_flag" ||
20500 test ! -s conftest.err
20501 } && test -s conftest.$ac_objext; then
20502 ac_header_compiler=yes
20504 $as_echo "$as_me: failed program was:" >&5
20505 sed 's/^/| /' conftest.$ac_ext >&5
20507 ac_header_compiler=no
20510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20511 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20512 $as_echo "$ac_header_compiler" >&6; }
20514 # Is the header present?
20515 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20516 $as_echo_n "checking $ac_header presence... " >&6; }
20517 cat >conftest.$ac_ext <<_ACEOF
20520 cat confdefs.h >>conftest.$ac_ext
20521 cat >>conftest.$ac_ext <<_ACEOF
20522 /* end confdefs.h. */
20523 #include <$ac_header>
20525 if { (ac_try="$ac_cpp conftest.$ac_ext"
20526 case "(($ac_try" in
20527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20528 *) ac_try_echo=$ac_try;;
20530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20531 $as_echo "$ac_try_echo") >&5
20532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20534 grep -v '^ *+' conftest.er1 >conftest.err
20536 cat conftest.err >&5
20537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538 (exit $ac_status); } >/dev/null && {
20539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20540 test ! -s conftest.err
20542 ac_header_preproc=yes
20544 $as_echo "$as_me: failed program was:" >&5
20545 sed 's/^/| /' conftest.$ac_ext >&5
20547 ac_header_preproc=no
20550 rm -f conftest.err conftest.$ac_ext
20551 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20552 $as_echo "$ac_header_preproc" >&6; }
20554 # So? What about this header?
20555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20558 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20560 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20561 ac_header_preproc=yes
20564 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20565 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20566 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20567 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20568 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20569 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20571 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20573 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20574 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20575 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20577 ## ------------------------------ ##
20578 ## Report this to bug-tar@gnu.org ##
20579 ## ------------------------------ ##
20581 ) | sed "s/^/$as_me: WARNING: /" >&2
20584 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20585 $as_echo_n "checking for $ac_header... " >&6; }
20586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20587 $as_echo_n "(cached) " >&6
20589 eval "$as_ac_Header=\$ac_header_preproc"
20591 ac_res=`eval 'as_val=${'$as_ac_Header'}
20592 $as_echo "$as_val"'`
20593 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20594 $as_echo "$ac_res" >&6; }
20597 as_val=`eval 'as_val=${'$as_ac_Header'}
20598 $as_echo "$as_val"'`
20599 if test "x$as_val" = x""yes; then
20600 cat >>confdefs.h <<_ACEOF
20601 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20608 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
20609 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
20610 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
20611 $as_echo_n "(cached) " >&6
20613 if test "$cross_compiling" = yes; then
20614 ac_cv_func_malloc_0_nonnull=no
20616 cat >conftest.$ac_ext <<_ACEOF
20619 cat confdefs.h >>conftest.$ac_ext
20620 cat >>conftest.$ac_ext <<_ACEOF
20621 /* end confdefs.h. */
20622 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
20623 # include <stdlib.h>
20631 return ! malloc (0);
20636 rm -f conftest$ac_exeext
20637 if { (ac_try="$ac_link"
20638 case "(($ac_try" in
20639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20640 *) ac_try_echo=$ac_try;;
20642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20643 $as_echo "$ac_try_echo") >&5
20644 (eval "$ac_link") 2>&5
20646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20648 { (case "(($ac_try" in
20649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20650 *) ac_try_echo=$ac_try;;
20652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20653 $as_echo "$ac_try_echo") >&5
20654 (eval "$ac_try") 2>&5
20656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); }; }; then
20658 ac_cv_func_malloc_0_nonnull=yes
20660 $as_echo "$as_me: program exited with status $ac_status" >&5
20661 $as_echo "$as_me: failed program was:" >&5
20662 sed 's/^/| /' conftest.$ac_ext >&5
20664 ( exit $ac_status )
20665 ac_cv_func_malloc_0_nonnull=no
20667 rm -rf conftest.dSYM
20668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20673 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
20674 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
20675 if test $ac_cv_func_malloc_0_nonnull = yes; then
20676 gl_cv_func_malloc_0_nonnull=1
20678 gl_cv_func_malloc_0_nonnull=0
20683 cat >>confdefs.h <<_ACEOF
20684 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
20695 { $as_echo "$as_me:$LINENO: checking for a traditional japanese locale" >&5
20696 $as_echo_n "checking for a traditional japanese locale... " >&6; }
20697 if test "${gt_cv_locale_ja+set}" = set; then
20698 $as_echo_n "(cached) " >&6
20701 cat >conftest.$ac_ext <<_ACEOF
20704 cat confdefs.h >>conftest.$ac_ext
20705 cat >>conftest.$ac_ext <<_ACEOF
20706 /* end confdefs.h. */
20708 #include <locale.h>
20710 #if HAVE_LANGINFO_CODESET
20711 # include <langinfo.h>
20713 #include <stdlib.h>
20714 #include <string.h>
20720 /* Check whether the given locale name is recognized by the system. */
20721 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
20722 /* On native Win32, setlocale(category, "") looks at the system settings,
20723 not at the environment variables. Also, when an encoding suffix such
20724 as ".65001" or ".54936" is speficied, it succeeds but sets the LC_CTYPE
20725 category of the locale to "C". */
20726 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
20727 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
20730 if (setlocale (LC_ALL, "") == NULL) return 1;
20732 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
20733 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
20734 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
20735 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
20736 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
20737 some unit tests fail.
20738 On MirBSD 10, when an unsupported locale is specified, setlocale()
20739 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
20740 #if HAVE_LANGINFO_CODESET
20742 const char *cs = nl_langinfo (CODESET);
20743 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
20744 || strcmp (cs, "UTF-8") == 0)
20749 /* On Cygwin, avoid locale names without encoding suffix, because the
20750 locale_charset() function relies on the encoding suffix. Note that
20751 LC_ALL is set on the command line. */
20752 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
20754 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
20755 on Cygwin 1.5.x. */
20756 if (MB_CUR_MAX == 1)
20758 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
20759 This excludes the UTF-8 encoding (except on MirBSD). */
20760 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
20761 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
20762 for (p = buf; *p != '\0'; p++)
20763 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
20769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20770 (eval $ac_link) 2>&5
20772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); } && test -s conftest$ac_exeext; then
20775 # Handle native Windows specially, because there setlocale() interprets
20776 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
20777 # "fr" or "fra" as "French" or "French_France.1252",
20778 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
20779 # "ja" as "Japanese" or "Japanese_Japan.932",
20782 # Note that on native Win32, the Japanese locale is Japanese_Japan.932,
20783 # and CP932 is very different from EUC-JP, so we cannot use it here.
20784 gt_cv_locale_ja=none
20787 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
20788 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
20789 # configure script would override the LC_ALL setting. Likewise for
20790 # LC_CTYPE, which is also set at the beginning of the configure script.
20791 # Test for the AIX locale name.
20792 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
20793 gt_cv_locale_ja=ja_JP
20795 # Test for the locale name with explicit encoding suffix.
20796 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
20797 gt_cv_locale_ja=ja_JP.EUC-JP
20799 # Test for the HP-UX, OSF/1, NetBSD locale name.
20800 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
20801 gt_cv_locale_ja=ja_JP.eucJP
20803 # Test for the IRIX, FreeBSD locale name.
20804 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
20805 gt_cv_locale_ja=ja_JP.EUC
20807 # Test for the Solaris 7 locale name.
20808 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
20811 # Special test for NetBSD 1.6.
20812 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
20813 gt_cv_locale_ja=ja_JP.eucJP
20816 gt_cv_locale_ja=none
20829 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_ja" >&5
20830 $as_echo "$gt_cv_locale_ja" >&6; }
20831 LOCALE_JA=$gt_cv_locale_ja
20837 { $as_echo "$as_me:$LINENO: checking for a transitional chinese locale" >&5
20838 $as_echo_n "checking for a transitional chinese locale... " >&6; }
20839 if test "${gt_cv_locale_zh_CN+set}" = set; then
20840 $as_echo_n "(cached) " >&6
20843 cat >conftest.$ac_ext <<_ACEOF
20846 cat confdefs.h >>conftest.$ac_ext
20847 cat >>conftest.$ac_ext <<_ACEOF
20848 /* end confdefs.h. */
20850 #include <locale.h>
20851 #include <stdlib.h>
20853 #if HAVE_LANGINFO_CODESET
20854 # include <langinfo.h>
20856 #include <stdlib.h>
20857 #include <string.h>
20863 /* Check whether the given locale name is recognized by the system. */
20864 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
20865 /* On native Win32, setlocale(category, "") looks at the system settings,
20866 not at the environment variables. Also, when an encoding suffix such
20867 as ".65001" or ".54936" is speficied, it succeeds but sets the LC_CTYPE
20868 category of the locale to "C". */
20869 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
20870 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
20873 if (setlocale (LC_ALL, "") == NULL) return 1;
20875 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
20876 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
20877 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
20878 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
20879 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
20880 some unit tests fail.
20881 On MirBSD 10, when an unsupported locale is specified, setlocale()
20882 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
20883 #if HAVE_LANGINFO_CODESET
20885 const char *cs = nl_langinfo (CODESET);
20886 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
20887 || strcmp (cs, "UTF-8") == 0)
20892 /* On Cygwin, avoid locale names without encoding suffix, because the
20893 locale_charset() function relies on the encoding suffix. Note that
20894 LC_ALL is set on the command line. */
20895 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
20897 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
20898 This excludes the UTF-8 encoding (except on MirBSD). */
20899 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
20900 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
20901 for (p = buf; *p != '\0'; p++)
20902 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
20904 /* Check whether a typical GB18030 multibyte sequence is recognized as a
20905 single wide character. This excludes the GB2312 and GBK encodings. */
20906 if (mblen ("\203\062\332\066", 5) != 4)
20912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20913 (eval $ac_link) 2>&5
20915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916 (exit $ac_status); } && test -s conftest$ac_exeext; then
20918 # Handle native Windows specially, because there setlocale() interprets
20919 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
20920 # "fr" or "fra" as "French" or "French_France.1252",
20921 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
20922 # "ja" as "Japanese" or "Japanese_Japan.932",
20925 # Test for the hypothetical native Win32 locale name.
20926 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
20927 gt_cv_locale_zh_CN=Chinese_China.54936
20930 gt_cv_locale_zh_CN=none
20934 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
20935 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
20936 # configure script would override the LC_ALL setting. Likewise for
20937 # LC_CTYPE, which is also set at the beginning of the configure script.
20938 # Test for the locale name without encoding suffix.
20939 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
20940 gt_cv_locale_zh_CN=zh_CN
20942 # Test for the locale name with explicit encoding suffix.
20943 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
20944 gt_cv_locale_zh_CN=zh_CN.GB18030
20947 gt_cv_locale_zh_CN=none
20953 # If there was a link error, due to mblen(), the system is so old that
20954 # it certainly doesn't have a chinese locale.
20955 gt_cv_locale_zh_CN=none
20960 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_zh_CN" >&5
20961 $as_echo "$gt_cv_locale_zh_CN" >&6; }
20962 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
20967 { $as_echo "$as_me:$LINENO: checking for a french Unicode locale" >&5
20968 $as_echo_n "checking for a french Unicode locale... " >&6; }
20969 if test "${gt_cv_locale_fr_utf8+set}" = set; then
20970 $as_echo_n "(cached) " >&6
20973 cat >conftest.$ac_ext <<_ACEOF
20976 cat confdefs.h >>conftest.$ac_ext
20977 cat >>conftest.$ac_ext <<_ACEOF
20978 /* end confdefs.h. */
20980 #include <locale.h>
20982 #if HAVE_LANGINFO_CODESET
20983 # include <langinfo.h>
20985 #include <stdlib.h>
20986 #include <string.h>
20990 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
20991 imitates locale dependent behaviour by looking at the environment
20992 variables, and all locales use the UTF-8 encoding. */
20993 #if !(defined __BEOS__ || defined __HAIKU__)
20994 /* Check whether the given locale name is recognized by the system. */
20995 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
20996 /* On native Win32, setlocale(category, "") looks at the system settings,
20997 not at the environment variables. Also, when an encoding suffix such
20998 as ".65001" or ".54936" is speficied, it succeeds but sets the LC_CTYPE
20999 category of the locale to "C". */
21000 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
21001 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
21004 if (setlocale (LC_ALL, "") == NULL) return 1;
21006 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
21007 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
21008 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
21009 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
21010 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
21011 some unit tests fail. */
21012 # if HAVE_LANGINFO_CODESET
21014 const char *cs = nl_langinfo (CODESET);
21015 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
21020 /* On Cygwin, avoid locale names without encoding suffix, because the
21021 locale_charset() function relies on the encoding suffix. Note that
21022 LC_ALL is set on the command line. */
21023 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
21025 /* Check whether in the abbreviation of the second month, the second
21026 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
21027 two bytes long, with UTF-8 encoding. */
21028 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
21029 if (strftime (buf, sizeof (buf), "%b", &t) < 4
21030 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
21033 /* Check whether the decimal separator is a comma.
21034 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
21035 are nl_langinfo(RADIXCHAR) are both ".". */
21036 if (localeconv () ->decimal_point[0] != ',') return 1;
21041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21042 (eval $ac_link) 2>&5
21044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); } && test -s conftest$ac_exeext; then
21047 # Handle native Windows specially, because there setlocale() interprets
21048 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
21049 # "fr" or "fra" as "French" or "French_France.1252",
21050 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
21051 # "ja" as "Japanese" or "Japanese_Japan.932",
21054 # Test for the hypothetical native Win32 locale name.
21055 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
21056 gt_cv_locale_fr_utf8=French_France.65001
21059 gt_cv_locale_fr_utf8=none
21063 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
21064 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
21065 # configure script would override the LC_ALL setting. Likewise for
21066 # LC_CTYPE, which is also set at the beginning of the configure script.
21067 # Test for the usual locale name.
21068 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
21069 gt_cv_locale_fr_utf8=fr_FR
21071 # Test for the locale name with explicit encoding suffix.
21072 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
21073 gt_cv_locale_fr_utf8=fr_FR.UTF-8
21075 # Test for the Solaris 7 locale name.
21076 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
21077 gt_cv_locale_fr_utf8=fr.UTF-8
21080 gt_cv_locale_fr_utf8=none
21090 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr_utf8" >&5
21091 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
21092 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
21100 GNULIB_RAWMEMCHR=0;
21103 GNULIB_STRCHRNUL=0;
21111 GNULIB_STRCASESTR=0;
21118 GNULIB_MBSCASECMP=0;
21119 GNULIB_MBSNCASECMP=0;
21120 GNULIB_MBSPCASECMP=0;
21121 GNULIB_MBSCASESTR=0;
21128 GNULIB_STRERROR_R=0;
21129 GNULIB_STRSIGNAL=0;
21130 GNULIB_STRVERSCMP=0;
21133 HAVE_DECL_MEMMEM=1;
21135 HAVE_DECL_MEMRCHR=1;
21140 HAVE_DECL_STRDUP=1;
21141 HAVE_DECL_STRNDUP=1;
21142 HAVE_DECL_STRNLEN=1;
21146 HAVE_DECL_STRTOK_R=1;
21147 HAVE_DECL_STRERROR_R=1;
21148 HAVE_DECL_STRSIGNAL=1;
21155 REPLACE_STRCASESTR=0;
21156 REPLACE_STRERROR=0;
21157 REPLACE_STRERROR_R=0;
21161 REPLACE_STRSIGNAL=0;
21162 REPLACE_STRTOK_R=0;
21163 UNDEFINE_STRTOK_R=0;
21175 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
21176 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
21177 # irrelevant for anonymous mappings.
21178 { $as_echo "$as_me:$LINENO: checking for mmap" >&5
21179 $as_echo_n "checking for mmap... " >&6; }
21180 if test "${ac_cv_func_mmap+set}" = set; then
21181 $as_echo_n "(cached) " >&6
21183 cat >conftest.$ac_ext <<_ACEOF
21186 cat confdefs.h >>conftest.$ac_ext
21187 cat >>conftest.$ac_ext <<_ACEOF
21188 /* end confdefs.h. */
21189 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
21190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21191 #define mmap innocuous_mmap
21193 /* System header to define __stub macros and hopefully few prototypes,
21194 which can conflict with char mmap (); below.
21195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21196 <limits.h> exists even on freestanding compilers. */
21199 # include <limits.h>
21201 # include <assert.h>
21206 /* Override any GCC internal prototype to avoid an error.
21207 Use char because int might match the return type of a GCC
21208 builtin and then its argument prototype would still apply. */
21213 /* The GNU C library defines this for functions which it implements
21214 to always fail with ENOSYS. Some functions are actually named
21215 something starting with __ and the normal name is an alias. */
21216 #if defined __stub_mmap || defined __stub___mmap
21228 rm -f conftest.$ac_objext conftest$ac_exeext
21229 if { (ac_try="$ac_link"
21230 case "(($ac_try" in
21231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21232 *) ac_try_echo=$ac_try;;
21234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21235 $as_echo "$ac_try_echo") >&5
21236 (eval "$ac_link") 2>conftest.er1
21238 grep -v '^ *+' conftest.er1 >conftest.err
21240 cat conftest.err >&5
21241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); } && {
21243 test -z "$ac_c_werror_flag" ||
21244 test ! -s conftest.err
21245 } && test -s conftest$ac_exeext && {
21246 test "$cross_compiling" = yes ||
21247 $as_test_x conftest$ac_exeext
21249 ac_cv_func_mmap=yes
21251 $as_echo "$as_me: failed program was:" >&5
21252 sed 's/^/| /' conftest.$ac_ext >&5
21257 rm -rf conftest.dSYM
21258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21259 conftest$ac_exeext conftest.$ac_ext
21261 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
21262 $as_echo "$ac_cv_func_mmap" >&6; }
21263 if test "x$ac_cv_func_mmap" = x""yes; then
21270 # Try to allow MAP_ANONYMOUS.
21271 gl_have_mmap_anonymous=no
21272 if test $gl_have_mmap = yes; then
21273 { $as_echo "$as_me:$LINENO: checking for MAP_ANONYMOUS" >&5
21274 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
21275 cat >conftest.$ac_ext <<_ACEOF
21278 cat confdefs.h >>conftest.$ac_ext
21279 cat >>conftest.$ac_ext <<_ACEOF
21280 /* end confdefs.h. */
21282 #include <sys/mman.h>
21283 #ifdef MAP_ANONYMOUS
21284 I cant identify this map.
21288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21289 $EGREP "I cant identify this map." >/dev/null 2>&1; then
21290 gl_have_mmap_anonymous=yes
21294 if test $gl_have_mmap_anonymous != yes; then
21295 cat >conftest.$ac_ext <<_ACEOF
21298 cat confdefs.h >>conftest.$ac_ext
21299 cat >>conftest.$ac_ext <<_ACEOF
21300 /* end confdefs.h. */
21302 #include <sys/mman.h>
21304 I cant identify this map.
21308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21309 $EGREP "I cant identify this map." >/dev/null 2>&1; then
21311 cat >>confdefs.h <<\_ACEOF
21312 #define MAP_ANONYMOUS MAP_ANON
21315 gl_have_mmap_anonymous=yes
21320 { $as_echo "$as_me:$LINENO: result: $gl_have_mmap_anonymous" >&5
21321 $as_echo "$gl_have_mmap_anonymous" >&6; }
21322 if test $gl_have_mmap_anonymous = yes; then
21324 cat >>confdefs.h <<\_ACEOF
21325 #define HAVE_MAP_ANONYMOUS 1
21351 if test $ac_cv_func_memchr = yes; then
21352 # Detect platform-specific bugs in some versions of glibc:
21353 # memchr should not dereference anything with length 0
21354 # http://bugzilla.redhat.com/499689
21355 # memchr should not dereference overestimated length after a match
21356 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
21357 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
21358 # Assume that memchr works on platforms that lack mprotect.
21359 { $as_echo "$as_me:$LINENO: checking whether memchr works" >&5
21360 $as_echo_n "checking whether memchr works... " >&6; }
21361 if test "${gl_cv_func_memchr_works+set}" = set; then
21362 $as_echo_n "(cached) " >&6
21364 if test "$cross_compiling" = yes; then
21365 gl_cv_func_memchr_works="guessing no"
21367 cat >conftest.$ac_ext <<_ACEOF
21370 cat confdefs.h >>conftest.$ac_ext
21371 cat >>conftest.$ac_ext <<_ACEOF
21372 /* end confdefs.h. */
21374 #include <string.h>
21375 #if HAVE_SYS_MMAN_H
21376 # include <fcntl.h>
21377 # include <unistd.h>
21378 # include <sys/types.h>
21379 # include <sys/mman.h>
21381 # define MAP_FILE 0
21390 char *fence = NULL;
21391 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
21392 # if HAVE_MAP_ANONYMOUS
21393 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
21395 # else /* !HAVE_MAP_ANONYMOUS */
21396 const int flags = MAP_FILE | MAP_PRIVATE;
21397 int fd = open ("/dev/zero", O_RDONLY, 0666);
21401 int pagesize = getpagesize ();
21403 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
21405 if (two_pages != (char *)(-1)
21406 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
21407 fence = two_pages + pagesize;
21412 if (memchr (fence, 0, 0))
21414 strcpy (fence - 9, "12345678");
21415 if (memchr (fence - 9, 0, 79) != fence - 1)
21417 if (memchr (fence - 1, 0, 3) != fence - 1)
21426 rm -f conftest$ac_exeext
21427 if { (ac_try="$ac_link"
21428 case "(($ac_try" in
21429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21430 *) ac_try_echo=$ac_try;;
21432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21433 $as_echo "$ac_try_echo") >&5
21434 (eval "$ac_link") 2>&5
21436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21438 { (case "(($ac_try" in
21439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21440 *) ac_try_echo=$ac_try;;
21442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21443 $as_echo "$ac_try_echo") >&5
21444 (eval "$ac_try") 2>&5
21446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); }; }; then
21448 gl_cv_func_memchr_works=yes
21450 $as_echo "$as_me: program exited with status $ac_status" >&5
21451 $as_echo "$as_me: failed program was:" >&5
21452 sed 's/^/| /' conftest.$ac_ext >&5
21454 ( exit $ac_status )
21455 gl_cv_func_memchr_works=no
21457 rm -rf conftest.dSYM
21458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21463 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_memchr_works" >&5
21464 $as_echo "$gl_cv_func_memchr_works" >&6; }
21465 if test "$gl_cv_func_memchr_works" != yes; then
21471 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
21480 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
21484 for ac_header in bp-sym.h
21486 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21488 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21489 $as_echo_n "checking for $ac_header... " >&6; }
21490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21491 $as_echo_n "(cached) " >&6
21493 ac_res=`eval 'as_val=${'$as_ac_Header'}
21494 $as_echo "$as_val"'`
21495 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21496 $as_echo "$ac_res" >&6; }
21498 # Is the header compilable?
21499 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21500 $as_echo_n "checking $ac_header usability... " >&6; }
21501 cat >conftest.$ac_ext <<_ACEOF
21504 cat confdefs.h >>conftest.$ac_ext
21505 cat >>conftest.$ac_ext <<_ACEOF
21506 /* end confdefs.h. */
21507 $ac_includes_default
21508 #include <$ac_header>
21510 rm -f conftest.$ac_objext
21511 if { (ac_try="$ac_compile"
21512 case "(($ac_try" in
21513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21514 *) ac_try_echo=$ac_try;;
21516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21517 $as_echo "$ac_try_echo") >&5
21518 (eval "$ac_compile") 2>conftest.er1
21520 grep -v '^ *+' conftest.er1 >conftest.err
21522 cat conftest.err >&5
21523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); } && {
21525 test -z "$ac_c_werror_flag" ||
21526 test ! -s conftest.err
21527 } && test -s conftest.$ac_objext; then
21528 ac_header_compiler=yes
21530 $as_echo "$as_me: failed program was:" >&5
21531 sed 's/^/| /' conftest.$ac_ext >&5
21533 ac_header_compiler=no
21536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21537 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21538 $as_echo "$ac_header_compiler" >&6; }
21540 # Is the header present?
21541 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21542 $as_echo_n "checking $ac_header presence... " >&6; }
21543 cat >conftest.$ac_ext <<_ACEOF
21546 cat confdefs.h >>conftest.$ac_ext
21547 cat >>conftest.$ac_ext <<_ACEOF
21548 /* end confdefs.h. */
21549 #include <$ac_header>
21551 if { (ac_try="$ac_cpp conftest.$ac_ext"
21552 case "(($ac_try" in
21553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21554 *) ac_try_echo=$ac_try;;
21556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21557 $as_echo "$ac_try_echo") >&5
21558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21560 grep -v '^ *+' conftest.er1 >conftest.err
21562 cat conftest.err >&5
21563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); } >/dev/null && {
21565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21566 test ! -s conftest.err
21568 ac_header_preproc=yes
21570 $as_echo "$as_me: failed program was:" >&5
21571 sed 's/^/| /' conftest.$ac_ext >&5
21573 ac_header_preproc=no
21576 rm -f conftest.err conftest.$ac_ext
21577 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21578 $as_echo "$ac_header_preproc" >&6; }
21580 # So? What about this header?
21581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21583 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21584 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21585 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21586 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21587 ac_header_preproc=yes
21590 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21591 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21592 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21593 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21594 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21595 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21596 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21597 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21598 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21599 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21601 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21603 ## ------------------------------ ##
21604 ## Report this to bug-tar@gnu.org ##
21605 ## ------------------------------ ##
21607 ) | sed "s/^/$as_me: WARNING: /" >&2
21610 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21611 $as_echo_n "checking for $ac_header... " >&6; }
21612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21613 $as_echo_n "(cached) " >&6
21615 eval "$as_ac_Header=\$ac_header_preproc"
21617 ac_res=`eval 'as_val=${'$as_ac_Header'}
21618 $as_echo "$as_val"'`
21619 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21620 $as_echo "$ac_res" >&6; }
21623 as_val=`eval 'as_val=${'$as_ac_Header'}
21624 $as_echo "$as_val"'`
21625 if test "x$as_val" = x""yes; then
21626 cat >>confdefs.h <<_ACEOF
21627 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21637 { $as_echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
21638 $as_echo_n "checking whether memrchr is declared... " >&6; }
21639 if test "${ac_cv_have_decl_memrchr+set}" = set; then
21640 $as_echo_n "(cached) " >&6
21642 cat >conftest.$ac_ext <<_ACEOF
21645 cat confdefs.h >>conftest.$ac_ext
21646 cat >>conftest.$ac_ext <<_ACEOF
21647 /* end confdefs.h. */
21648 $ac_includes_default
21660 rm -f conftest.$ac_objext
21661 if { (ac_try="$ac_compile"
21662 case "(($ac_try" in
21663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21664 *) ac_try_echo=$ac_try;;
21666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21667 $as_echo "$ac_try_echo") >&5
21668 (eval "$ac_compile") 2>conftest.er1
21670 grep -v '^ *+' conftest.er1 >conftest.err
21672 cat conftest.err >&5
21673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); } && {
21675 test -z "$ac_c_werror_flag" ||
21676 test ! -s conftest.err
21677 } && test -s conftest.$ac_objext; then
21678 ac_cv_have_decl_memrchr=yes
21680 $as_echo "$as_me: failed program was:" >&5
21681 sed 's/^/| /' conftest.$ac_ext >&5
21683 ac_cv_have_decl_memrchr=no
21686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21688 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
21689 $as_echo "$ac_cv_have_decl_memrchr" >&6; }
21690 if test "x$ac_cv_have_decl_memrchr" = x""yes; then
21692 cat >>confdefs.h <<_ACEOF
21693 #define HAVE_DECL_MEMRCHR 1
21698 cat >>confdefs.h <<_ACEOF
21699 #define HAVE_DECL_MEMRCHR 0
21716 GNULIB_NANOSLEEP=0;
21720 HAVE_DECL_LOCALTIME_R=1;
21724 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
21725 REPLACE_MKTIME=GNULIB_PORTCHECK;
21726 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
21727 REPLACE_TIMEGM=GNULIB_PORTCHECK;
21734 # parse-datetime.y works with bison only.
21735 : ${YACC='bison -y'}
21738 { $as_echo "$as_me:$LINENO: checking for compound literals" >&5
21739 $as_echo_n "checking for compound literals... " >&6; }
21740 if test "${gl_cv_compound_literals+set}" = set; then
21741 $as_echo_n "(cached) " >&6
21743 cat >conftest.$ac_ext <<_ACEOF
21746 cat confdefs.h >>conftest.$ac_ext
21747 cat >>conftest.$ac_ext <<_ACEOF
21748 /* end confdefs.h. */
21749 struct s { int i, j; };
21753 struct s t = (struct s) { 3, 4 };
21754 if (t.i != 0) return 0;
21759 rm -f conftest.$ac_objext
21760 if { (ac_try="$ac_compile"
21761 case "(($ac_try" in
21762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21763 *) ac_try_echo=$ac_try;;
21765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21766 $as_echo "$ac_try_echo") >&5
21767 (eval "$ac_compile") 2>conftest.er1
21769 grep -v '^ *+' conftest.er1 >conftest.err
21771 cat conftest.err >&5
21772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); } && {
21774 test -z "$ac_c_werror_flag" ||
21775 test ! -s conftest.err
21776 } && test -s conftest.$ac_objext; then
21777 gl_cv_compound_literals=yes
21779 $as_echo "$as_me: failed program was:" >&5
21780 sed 's/^/| /' conftest.$ac_ext >&5
21782 gl_cv_compound_literals=no
21785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21787 { $as_echo "$as_me:$LINENO: result: $gl_cv_compound_literals" >&5
21788 $as_echo "$gl_cv_compound_literals" >&6; }
21789 if test $gl_cv_compound_literals = yes; then
21791 cat >>confdefs.h <<\_ACEOF
21792 #define HAVE_COMPOUND_LITERALS 1
21797 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21798 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21799 if test "${ac_cv_struct_tm+set}" = set; then
21800 $as_echo_n "(cached) " >&6
21802 cat >conftest.$ac_ext <<_ACEOF
21805 cat confdefs.h >>conftest.$ac_ext
21806 cat >>conftest.$ac_ext <<_ACEOF
21807 /* end confdefs.h. */
21808 #include <sys/types.h>
21815 int *p = &tm.tm_sec;
21821 rm -f conftest.$ac_objext
21822 if { (ac_try="$ac_compile"
21823 case "(($ac_try" in
21824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21825 *) ac_try_echo=$ac_try;;
21827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21828 $as_echo "$ac_try_echo") >&5
21829 (eval "$ac_compile") 2>conftest.er1
21831 grep -v '^ *+' conftest.er1 >conftest.err
21833 cat conftest.err >&5
21834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835 (exit $ac_status); } && {
21836 test -z "$ac_c_werror_flag" ||
21837 test ! -s conftest.err
21838 } && test -s conftest.$ac_objext; then
21839 ac_cv_struct_tm=time.h
21841 $as_echo "$as_me: failed program was:" >&5
21842 sed 's/^/| /' conftest.$ac_ext >&5
21844 ac_cv_struct_tm=sys/time.h
21847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21849 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21850 $as_echo "$ac_cv_struct_tm" >&6; }
21851 if test $ac_cv_struct_tm = sys/time.h; then
21853 cat >>confdefs.h <<\_ACEOF
21854 #define TM_IN_SYS_TIME 1
21860 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
21861 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
21862 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
21863 $as_echo_n "(cached) " >&6
21865 cat >conftest.$ac_ext <<_ACEOF
21868 cat confdefs.h >>conftest.$ac_ext
21869 cat >>conftest.$ac_ext <<_ACEOF
21870 /* end confdefs.h. */
21876 static struct tm ac_aggr;
21877 if (ac_aggr.tm_gmtoff)
21883 rm -f conftest.$ac_objext
21884 if { (ac_try="$ac_compile"
21885 case "(($ac_try" in
21886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21887 *) ac_try_echo=$ac_try;;
21889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21890 $as_echo "$ac_try_echo") >&5
21891 (eval "$ac_compile") 2>conftest.er1
21893 grep -v '^ *+' conftest.er1 >conftest.err
21895 cat conftest.err >&5
21896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897 (exit $ac_status); } && {
21898 test -z "$ac_c_werror_flag" ||
21899 test ! -s conftest.err
21900 } && test -s conftest.$ac_objext; then
21901 ac_cv_member_struct_tm_tm_gmtoff=yes
21903 $as_echo "$as_me: failed program was:" >&5
21904 sed 's/^/| /' conftest.$ac_ext >&5
21906 cat >conftest.$ac_ext <<_ACEOF
21909 cat confdefs.h >>conftest.$ac_ext
21910 cat >>conftest.$ac_ext <<_ACEOF
21911 /* end confdefs.h. */
21917 static struct tm ac_aggr;
21918 if (sizeof ac_aggr.tm_gmtoff)
21924 rm -f conftest.$ac_objext
21925 if { (ac_try="$ac_compile"
21926 case "(($ac_try" in
21927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21928 *) ac_try_echo=$ac_try;;
21930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21931 $as_echo "$ac_try_echo") >&5
21932 (eval "$ac_compile") 2>conftest.er1
21934 grep -v '^ *+' conftest.er1 >conftest.err
21936 cat conftest.err >&5
21937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938 (exit $ac_status); } && {
21939 test -z "$ac_c_werror_flag" ||
21940 test ! -s conftest.err
21941 } && test -s conftest.$ac_objext; then
21942 ac_cv_member_struct_tm_tm_gmtoff=yes
21944 $as_echo "$as_me: failed program was:" >&5
21945 sed 's/^/| /' conftest.$ac_ext >&5
21947 ac_cv_member_struct_tm_tm_gmtoff=no
21950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21955 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
21956 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
21957 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then
21959 cat >>confdefs.h <<\_ACEOF
21960 #define HAVE_TM_GMTOFF 1
21974 { $as_echo "$as_me:$LINENO: checking whether setenv is declared" >&5
21975 $as_echo_n "checking whether setenv is declared... " >&6; }
21976 if test "${ac_cv_have_decl_setenv+set}" = set; then
21977 $as_echo_n "(cached) " >&6
21979 cat >conftest.$ac_ext <<_ACEOF
21982 cat confdefs.h >>conftest.$ac_ext
21983 cat >>conftest.$ac_ext <<_ACEOF
21984 /* end confdefs.h. */
21985 $ac_includes_default
21997 rm -f conftest.$ac_objext
21998 if { (ac_try="$ac_compile"
21999 case "(($ac_try" in
22000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22001 *) ac_try_echo=$ac_try;;
22003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22004 $as_echo "$ac_try_echo") >&5
22005 (eval "$ac_compile") 2>conftest.er1
22007 grep -v '^ *+' conftest.er1 >conftest.err
22009 cat conftest.err >&5
22010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011 (exit $ac_status); } && {
22012 test -z "$ac_c_werror_flag" ||
22013 test ! -s conftest.err
22014 } && test -s conftest.$ac_objext; then
22015 ac_cv_have_decl_setenv=yes
22017 $as_echo "$as_me: failed program was:" >&5
22018 sed 's/^/| /' conftest.$ac_ext >&5
22020 ac_cv_have_decl_setenv=no
22023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22025 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_setenv" >&5
22026 $as_echo "$ac_cv_have_decl_setenv" >&6; }
22027 if test "x$ac_cv_have_decl_setenv" = x""yes; then
22029 cat >>confdefs.h <<_ACEOF
22030 #define HAVE_DECL_SETENV 1
22035 cat >>confdefs.h <<_ACEOF
22036 #define HAVE_DECL_SETENV 0
22051 if test $ac_cv_have_decl_setenv = no; then
22060 if test $ac_cv_func_setenv = no; then
22063 { $as_echo "$as_me:$LINENO: checking whether setenv validates arguments" >&5
22064 $as_echo_n "checking whether setenv validates arguments... " >&6; }
22065 if test "${gl_cv_func_setenv_works+set}" = set; then
22066 $as_echo_n "(cached) " >&6
22068 if test "$cross_compiling" = yes; then
22069 gl_cv_func_setenv_works="guessing no"
22071 cat >conftest.$ac_ext <<_ACEOF
22074 cat confdefs.h >>conftest.$ac_ext
22075 cat >>conftest.$ac_ext <<_ACEOF
22076 /* end confdefs.h. */
22078 #include <stdlib.h>
22080 #include <string.h>
22088 if (setenv ("", "", 0) != -1)
22090 else if (errno != EINVAL)
22094 if (setenv ("a", "=", 1) != 0)
22096 else if (strcmp (getenv ("a"), "=") != 0)
22105 rm -f conftest$ac_exeext
22106 if { (ac_try="$ac_link"
22107 case "(($ac_try" in
22108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22109 *) ac_try_echo=$ac_try;;
22111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22112 $as_echo "$ac_try_echo") >&5
22113 (eval "$ac_link") 2>&5
22115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22117 { (case "(($ac_try" in
22118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22119 *) ac_try_echo=$ac_try;;
22121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22122 $as_echo "$ac_try_echo") >&5
22123 (eval "$ac_try") 2>&5
22125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); }; }; then
22127 gl_cv_func_setenv_works=yes
22129 $as_echo "$as_me: program exited with status $ac_status" >&5
22130 $as_echo "$as_me: failed program was:" >&5
22131 sed 's/^/| /' conftest.$ac_ext >&5
22133 ( exit $ac_status )
22134 gl_cv_func_setenv_works=no
22136 rm -rf conftest.dSYM
22137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22142 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_setenv_works" >&5
22143 $as_echo "$gl_cv_func_setenv_works" >&6; }
22144 if test "$gl_cv_func_setenv_works" != yes; then
22154 gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
22168 for ac_header in search.h
22170 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22172 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22173 $as_echo_n "checking for $ac_header... " >&6; }
22174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22175 $as_echo_n "(cached) " >&6
22177 ac_res=`eval 'as_val=${'$as_ac_Header'}
22178 $as_echo "$as_val"'`
22179 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22180 $as_echo "$ac_res" >&6; }
22182 # Is the header compilable?
22183 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22184 $as_echo_n "checking $ac_header usability... " >&6; }
22185 cat >conftest.$ac_ext <<_ACEOF
22188 cat confdefs.h >>conftest.$ac_ext
22189 cat >>conftest.$ac_ext <<_ACEOF
22190 /* end confdefs.h. */
22191 $ac_includes_default
22192 #include <$ac_header>
22194 rm -f conftest.$ac_objext
22195 if { (ac_try="$ac_compile"
22196 case "(($ac_try" in
22197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22198 *) ac_try_echo=$ac_try;;
22200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22201 $as_echo "$ac_try_echo") >&5
22202 (eval "$ac_compile") 2>conftest.er1
22204 grep -v '^ *+' conftest.er1 >conftest.err
22206 cat conftest.err >&5
22207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208 (exit $ac_status); } && {
22209 test -z "$ac_c_werror_flag" ||
22210 test ! -s conftest.err
22211 } && test -s conftest.$ac_objext; then
22212 ac_header_compiler=yes
22214 $as_echo "$as_me: failed program was:" >&5
22215 sed 's/^/| /' conftest.$ac_ext >&5
22217 ac_header_compiler=no
22220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22221 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22222 $as_echo "$ac_header_compiler" >&6; }
22224 # Is the header present?
22225 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22226 $as_echo_n "checking $ac_header presence... " >&6; }
22227 cat >conftest.$ac_ext <<_ACEOF
22230 cat confdefs.h >>conftest.$ac_ext
22231 cat >>conftest.$ac_ext <<_ACEOF
22232 /* end confdefs.h. */
22233 #include <$ac_header>
22235 if { (ac_try="$ac_cpp conftest.$ac_ext"
22236 case "(($ac_try" in
22237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22238 *) ac_try_echo=$ac_try;;
22240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22241 $as_echo "$ac_try_echo") >&5
22242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22244 grep -v '^ *+' conftest.er1 >conftest.err
22246 cat conftest.err >&5
22247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 (exit $ac_status); } >/dev/null && {
22249 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22250 test ! -s conftest.err
22252 ac_header_preproc=yes
22254 $as_echo "$as_me: failed program was:" >&5
22255 sed 's/^/| /' conftest.$ac_ext >&5
22257 ac_header_preproc=no
22260 rm -f conftest.err conftest.$ac_ext
22261 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22262 $as_echo "$ac_header_preproc" >&6; }
22264 # So? What about this header?
22265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22267 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22268 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22269 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22270 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22271 ac_header_preproc=yes
22274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22275 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22277 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22278 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22279 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22280 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22281 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22283 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22285 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22287 ## ------------------------------ ##
22288 ## Report this to bug-tar@gnu.org ##
22289 ## ------------------------------ ##
22291 ) | sed "s/^/$as_me: WARNING: /" >&2
22294 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22295 $as_echo_n "checking for $ac_header... " >&6; }
22296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22297 $as_echo_n "(cached) " >&6
22299 eval "$as_ac_Header=\$ac_header_preproc"
22301 ac_res=`eval 'as_val=${'$as_ac_Header'}
22302 $as_echo "$as_val"'`
22303 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22304 $as_echo "$ac_res" >&6; }
22307 as_val=`eval 'as_val=${'$as_ac_Header'}
22308 $as_echo "$as_val"'`
22309 if test "x$as_val" = x""yes; then
22310 cat >>confdefs.h <<_ACEOF
22311 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22319 for ac_func in tsearch
22321 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22322 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22323 $as_echo_n "checking for $ac_func... " >&6; }
22324 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22325 $as_echo_n "(cached) " >&6
22327 cat >conftest.$ac_ext <<_ACEOF
22330 cat confdefs.h >>conftest.$ac_ext
22331 cat >>conftest.$ac_ext <<_ACEOF
22332 /* end confdefs.h. */
22333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22335 #define $ac_func innocuous_$ac_func
22337 /* System header to define __stub macros and hopefully few prototypes,
22338 which can conflict with char $ac_func (); below.
22339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22340 <limits.h> exists even on freestanding compilers. */
22343 # include <limits.h>
22345 # include <assert.h>
22350 /* Override any GCC internal prototype to avoid an error.
22351 Use char because int might match the return type of a GCC
22352 builtin and then its argument prototype would still apply. */
22357 /* The GNU C library defines this for functions which it implements
22358 to always fail with ENOSYS. Some functions are actually named
22359 something starting with __ and the normal name is an alias. */
22360 #if defined __stub_$ac_func || defined __stub___$ac_func
22367 return $ac_func ();
22372 rm -f conftest.$ac_objext conftest$ac_exeext
22373 if { (ac_try="$ac_link"
22374 case "(($ac_try" in
22375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22376 *) ac_try_echo=$ac_try;;
22378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22379 $as_echo "$ac_try_echo") >&5
22380 (eval "$ac_link") 2>conftest.er1
22382 grep -v '^ *+' conftest.er1 >conftest.err
22384 cat conftest.err >&5
22385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386 (exit $ac_status); } && {
22387 test -z "$ac_c_werror_flag" ||
22388 test ! -s conftest.err
22389 } && test -s conftest$ac_exeext && {
22390 test "$cross_compiling" = yes ||
22391 $as_test_x conftest$ac_exeext
22393 eval "$as_ac_var=yes"
22395 $as_echo "$as_me: failed program was:" >&5
22396 sed 's/^/| /' conftest.$ac_ext >&5
22398 eval "$as_ac_var=no"
22401 rm -rf conftest.dSYM
22402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22403 conftest$ac_exeext conftest.$ac_ext
22405 ac_res=`eval 'as_val=${'$as_ac_var'}
22406 $as_echo "$as_val"'`
22407 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22408 $as_echo "$ac_res" >&6; }
22409 as_val=`eval 'as_val=${'$as_ac_var'}
22410 $as_echo "$as_val"'`
22411 if test "x$as_val" = x""yes; then
22412 cat >>confdefs.h <<_ACEOF
22413 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22425 { $as_echo "$as_me:$LINENO: checking whether snprintf returns a byte count as in C99" >&5
22426 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
22427 if test "${gl_cv_func_snprintf_retval_c99+set}" = set; then
22428 $as_echo_n "(cached) " >&6
22431 if test "$cross_compiling" = yes; then
22434 # Guess yes on glibc systems.
22435 *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
22436 # Guess yes on FreeBSD >= 5.
22437 freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";;
22438 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
22439 # Guess yes on MacOS X >= 10.3.
22440 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
22441 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
22442 # Guess yes on OpenBSD >= 3.9.
22443 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
22444 gl_cv_func_snprintf_retval_c99="guessing no";;
22445 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
22446 # Guess yes on Solaris >= 2.10.
22447 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
22448 solaris*) gl_cv_func_printf_sizes_c99="guessing no";;
22449 # Guess yes on AIX >= 4.
22450 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
22451 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
22452 # Guess yes on NetBSD >= 3.
22453 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
22454 gl_cv_func_snprintf_retval_c99="guessing no";;
22455 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
22456 # Guess yes on BeOS.
22457 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
22458 # If we don't know, assume the worst.
22459 *) gl_cv_func_snprintf_retval_c99="guessing no";;
22463 cat >conftest.$ac_ext <<_ACEOF
22466 cat confdefs.h >>conftest.$ac_ext
22467 cat >>conftest.$ac_ext <<_ACEOF
22468 /* end confdefs.h. */
22471 #include <string.h>
22472 static char buf[100];
22475 strcpy (buf, "ABCDEF");
22476 if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
22478 if (snprintf (buf, 0, "%d %d", 4567, 89) != 7)
22480 if (snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
22485 rm -f conftest$ac_exeext
22486 if { (ac_try="$ac_link"
22487 case "(($ac_try" in
22488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22489 *) ac_try_echo=$ac_try;;
22491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22492 $as_echo "$ac_try_echo") >&5
22493 (eval "$ac_link") 2>&5
22495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22497 { (case "(($ac_try" in
22498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22499 *) ac_try_echo=$ac_try;;
22501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22502 $as_echo "$ac_try_echo") >&5
22503 (eval "$ac_try") 2>&5
22505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506 (exit $ac_status); }; }; then
22507 gl_cv_func_snprintf_retval_c99=yes
22509 $as_echo "$as_me: program exited with status $ac_status" >&5
22510 $as_echo "$as_me: failed program was:" >&5
22511 sed 's/^/| /' conftest.$ac_ext >&5
22513 ( exit $ac_status )
22514 gl_cv_func_snprintf_retval_c99=no
22516 rm -rf conftest.dSYM
22517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22523 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_retval_c99" >&5
22524 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
22526 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
22527 $as_echo_n "checking whether snprintf is declared... " >&6; }
22528 if test "${ac_cv_have_decl_snprintf+set}" = set; then
22529 $as_echo_n "(cached) " >&6
22531 cat >conftest.$ac_ext <<_ACEOF
22534 cat confdefs.h >>conftest.$ac_ext
22535 cat >>conftest.$ac_ext <<_ACEOF
22536 /* end confdefs.h. */
22537 $ac_includes_default
22549 rm -f conftest.$ac_objext
22550 if { (ac_try="$ac_compile"
22551 case "(($ac_try" in
22552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22553 *) ac_try_echo=$ac_try;;
22555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22556 $as_echo "$ac_try_echo") >&5
22557 (eval "$ac_compile") 2>conftest.er1
22559 grep -v '^ *+' conftest.er1 >conftest.err
22561 cat conftest.err >&5
22562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); } && {
22564 test -z "$ac_c_werror_flag" ||
22565 test ! -s conftest.err
22566 } && test -s conftest.$ac_objext; then
22567 ac_cv_have_decl_snprintf=yes
22569 $as_echo "$as_me: failed program was:" >&5
22570 sed 's/^/| /' conftest.$ac_ext >&5
22572 ac_cv_have_decl_snprintf=no
22575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22577 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
22578 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
22579 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
22581 cat >>confdefs.h <<_ACEOF
22582 #define HAVE_DECL_SNPRINTF 1
22587 cat >>confdefs.h <<_ACEOF
22588 #define HAVE_DECL_SNPRINTF 0
22601 { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
22602 $as_echo_n "checking for wchar_t... " >&6; }
22603 if test "${gt_cv_c_wchar_t+set}" = set; then
22604 $as_echo_n "(cached) " >&6
22606 cat >conftest.$ac_ext <<_ACEOF
22609 cat confdefs.h >>conftest.$ac_ext
22610 cat >>conftest.$ac_ext <<_ACEOF
22611 /* end confdefs.h. */
22612 #include <stddef.h>
22613 wchar_t foo = (wchar_t)'\0';
22622 rm -f conftest.$ac_objext
22623 if { (ac_try="$ac_compile"
22624 case "(($ac_try" in
22625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22626 *) ac_try_echo=$ac_try;;
22628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22629 $as_echo "$ac_try_echo") >&5
22630 (eval "$ac_compile") 2>conftest.er1
22632 grep -v '^ *+' conftest.er1 >conftest.err
22634 cat conftest.err >&5
22635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636 (exit $ac_status); } && {
22637 test -z "$ac_c_werror_flag" ||
22638 test ! -s conftest.err
22639 } && test -s conftest.$ac_objext; then
22640 gt_cv_c_wchar_t=yes
22642 $as_echo "$as_me: failed program was:" >&5
22643 sed 's/^/| /' conftest.$ac_ext >&5
22648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22650 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
22651 $as_echo "$gt_cv_c_wchar_t" >&6; }
22652 if test $gt_cv_c_wchar_t = yes; then
22654 cat >>confdefs.h <<\_ACEOF
22655 #define HAVE_WCHAR_T 1
22662 HAVE_DECL_STRNCASECMP=1;
22666 { $as_echo "$as_me:$LINENO: checking whether strdup is declared" >&5
22667 $as_echo_n "checking whether strdup is declared... " >&6; }
22668 if test "${ac_cv_have_decl_strdup+set}" = set; then
22669 $as_echo_n "(cached) " >&6
22671 cat >conftest.$ac_ext <<_ACEOF
22674 cat confdefs.h >>conftest.$ac_ext
22675 cat >>conftest.$ac_ext <<_ACEOF
22676 /* end confdefs.h. */
22677 $ac_includes_default
22689 rm -f conftest.$ac_objext
22690 if { (ac_try="$ac_compile"
22691 case "(($ac_try" in
22692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22693 *) ac_try_echo=$ac_try;;
22695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22696 $as_echo "$ac_try_echo") >&5
22697 (eval "$ac_compile") 2>conftest.er1
22699 grep -v '^ *+' conftest.er1 >conftest.err
22701 cat conftest.err >&5
22702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703 (exit $ac_status); } && {
22704 test -z "$ac_c_werror_flag" ||
22705 test ! -s conftest.err
22706 } && test -s conftest.$ac_objext; then
22707 ac_cv_have_decl_strdup=yes
22709 $as_echo "$as_me: failed program was:" >&5
22710 sed 's/^/| /' conftest.$ac_ext >&5
22712 ac_cv_have_decl_strdup=no
22715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22717 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
22718 $as_echo "$ac_cv_have_decl_strdup" >&6; }
22719 if test "x$ac_cv_have_decl_strdup" = x""yes; then
22721 cat >>confdefs.h <<_ACEOF
22722 #define HAVE_DECL_STRDUP 1
22727 cat >>confdefs.h <<_ACEOF
22728 #define HAVE_DECL_STRDUP 0
22740 if test -z "$ERRNO_H"; then
22741 { $as_echo "$as_me:$LINENO: checking for working strerror function" >&5
22742 $as_echo_n "checking for working strerror function... " >&6; }
22743 if test "${gl_cv_func_working_strerror+set}" = set; then
22744 $as_echo_n "(cached) " >&6
22746 if test "$cross_compiling" = yes; then
22747 cat >conftest.$ac_ext <<_ACEOF
22750 cat confdefs.h >>conftest.$ac_ext
22751 cat >>conftest.$ac_ext <<_ACEOF
22752 /* end confdefs.h. */
22753 #include <string.h>
22758 return !*strerror (-2);
22763 rm -f conftest.$ac_objext
22764 if { (ac_try="$ac_compile"
22765 case "(($ac_try" in
22766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22767 *) ac_try_echo=$ac_try;;
22769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22770 $as_echo "$ac_try_echo") >&5
22771 (eval "$ac_compile") 2>conftest.er1
22773 grep -v '^ *+' conftest.er1 >conftest.err
22775 cat conftest.err >&5
22776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777 (exit $ac_status); } && {
22778 test -z "$ac_c_werror_flag" ||
22779 test ! -s conftest.err
22780 } && test -s conftest.$ac_objext; then
22781 gl_cv_func_working_strerror=yes
22783 $as_echo "$as_me: failed program was:" >&5
22784 sed 's/^/| /' conftest.$ac_ext >&5
22786 gl_cv_func_working_strerror=no
22789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22792 cat >conftest.$ac_ext <<_ACEOF
22795 cat confdefs.h >>conftest.$ac_ext
22796 cat >>conftest.$ac_ext <<_ACEOF
22797 /* end confdefs.h. */
22798 #include <string.h>
22803 return !*strerror (-2);
22808 rm -f conftest$ac_exeext
22809 if { (ac_try="$ac_link"
22810 case "(($ac_try" in
22811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22812 *) ac_try_echo=$ac_try;;
22814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22815 $as_echo "$ac_try_echo") >&5
22816 (eval "$ac_link") 2>&5
22818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22820 { (case "(($ac_try" in
22821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22822 *) ac_try_echo=$ac_try;;
22824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22825 $as_echo "$ac_try_echo") >&5
22826 (eval "$ac_try") 2>&5
22828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829 (exit $ac_status); }; }; then
22830 gl_cv_func_working_strerror=yes
22832 $as_echo "$as_me: program exited with status $ac_status" >&5
22833 $as_echo "$as_me: failed program was:" >&5
22834 sed 's/^/| /' conftest.$ac_ext >&5
22836 ( exit $ac_status )
22837 gl_cv_func_working_strerror=no
22839 rm -rf conftest.dSYM
22840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22846 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_strerror" >&5
22847 $as_echo "$gl_cv_func_working_strerror" >&6; }
22848 if test $gl_cv_func_working_strerror = no; then
22854 if test $REPLACE_STRERROR = 1; then
22856 { $as_echo "$as_me:$LINENO: checking whether strerror is declared" >&5
22857 $as_echo_n "checking whether strerror is declared... " >&6; }
22858 if test "${ac_cv_have_decl_strerror+set}" = set; then
22859 $as_echo_n "(cached) " >&6
22861 cat >conftest.$ac_ext <<_ACEOF
22864 cat confdefs.h >>conftest.$ac_ext
22865 cat >>conftest.$ac_ext <<_ACEOF
22866 /* end confdefs.h. */
22867 $ac_includes_default
22879 rm -f conftest.$ac_objext
22880 if { (ac_try="$ac_compile"
22881 case "(($ac_try" in
22882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22883 *) ac_try_echo=$ac_try;;
22885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22886 $as_echo "$ac_try_echo") >&5
22887 (eval "$ac_compile") 2>conftest.er1
22889 grep -v '^ *+' conftest.er1 >conftest.err
22891 cat conftest.err >&5
22892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893 (exit $ac_status); } && {
22894 test -z "$ac_c_werror_flag" ||
22895 test ! -s conftest.err
22896 } && test -s conftest.$ac_objext; then
22897 ac_cv_have_decl_strerror=yes
22899 $as_echo "$as_me: failed program was:" >&5
22900 sed 's/^/| /' conftest.$ac_ext >&5
22902 ac_cv_have_decl_strerror=no
22905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22907 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
22908 $as_echo "$ac_cv_have_decl_strerror" >&6; }
22909 if test "x$ac_cv_have_decl_strerror" = x""yes; then
22911 cat >>confdefs.h <<_ACEOF
22912 #define HAVE_DECL_STRERROR 1
22917 cat >>confdefs.h <<_ACEOF
22918 #define HAVE_DECL_STRERROR 0
22931 if test $ac_cv_header_sys_socket_h != yes; then
22933 for ac_header in winsock2.h
22935 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22937 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22938 $as_echo_n "checking for $ac_header... " >&6; }
22939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22940 $as_echo_n "(cached) " >&6
22942 ac_res=`eval 'as_val=${'$as_ac_Header'}
22943 $as_echo "$as_val"'`
22944 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22945 $as_echo "$ac_res" >&6; }
22947 # Is the header compilable?
22948 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22949 $as_echo_n "checking $ac_header usability... " >&6; }
22950 cat >conftest.$ac_ext <<_ACEOF
22953 cat confdefs.h >>conftest.$ac_ext
22954 cat >>conftest.$ac_ext <<_ACEOF
22955 /* end confdefs.h. */
22956 $ac_includes_default
22957 #include <$ac_header>
22959 rm -f conftest.$ac_objext
22960 if { (ac_try="$ac_compile"
22961 case "(($ac_try" in
22962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22963 *) ac_try_echo=$ac_try;;
22965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22966 $as_echo "$ac_try_echo") >&5
22967 (eval "$ac_compile") 2>conftest.er1
22969 grep -v '^ *+' conftest.er1 >conftest.err
22971 cat conftest.err >&5
22972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973 (exit $ac_status); } && {
22974 test -z "$ac_c_werror_flag" ||
22975 test ! -s conftest.err
22976 } && test -s conftest.$ac_objext; then
22977 ac_header_compiler=yes
22979 $as_echo "$as_me: failed program was:" >&5
22980 sed 's/^/| /' conftest.$ac_ext >&5
22982 ac_header_compiler=no
22985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22986 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22987 $as_echo "$ac_header_compiler" >&6; }
22989 # Is the header present?
22990 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22991 $as_echo_n "checking $ac_header presence... " >&6; }
22992 cat >conftest.$ac_ext <<_ACEOF
22995 cat confdefs.h >>conftest.$ac_ext
22996 cat >>conftest.$ac_ext <<_ACEOF
22997 /* end confdefs.h. */
22998 #include <$ac_header>
23000 if { (ac_try="$ac_cpp conftest.$ac_ext"
23001 case "(($ac_try" in
23002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23003 *) ac_try_echo=$ac_try;;
23005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23006 $as_echo "$ac_try_echo") >&5
23007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23009 grep -v '^ *+' conftest.er1 >conftest.err
23011 cat conftest.err >&5
23012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23013 (exit $ac_status); } >/dev/null && {
23014 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23015 test ! -s conftest.err
23017 ac_header_preproc=yes
23019 $as_echo "$as_me: failed program was:" >&5
23020 sed 's/^/| /' conftest.$ac_ext >&5
23022 ac_header_preproc=no
23025 rm -f conftest.err conftest.$ac_ext
23026 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23027 $as_echo "$ac_header_preproc" >&6; }
23029 # So? What about this header?
23030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23033 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23035 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23036 ac_header_preproc=yes
23039 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23040 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23041 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23042 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23043 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23044 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23045 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23046 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23047 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23048 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23049 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23050 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23052 ## ------------------------------ ##
23053 ## Report this to bug-tar@gnu.org ##
23054 ## ------------------------------ ##
23056 ) | sed "s/^/$as_me: WARNING: /" >&2
23059 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23060 $as_echo_n "checking for $ac_header... " >&6; }
23061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23062 $as_echo_n "(cached) " >&6
23064 eval "$as_ac_Header=\$ac_header_preproc"
23066 ac_res=`eval 'as_val=${'$as_ac_Header'}
23067 $as_echo "$as_val"'`
23068 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23069 $as_echo "$ac_res" >&6; }
23072 as_val=`eval 'as_val=${'$as_ac_Header'}
23073 $as_echo "$as_val"'`
23074 if test "x$as_val" = x""yes; then
23075 cat >>confdefs.h <<_ACEOF
23076 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23098 if test $gl_cv_have_include_next = yes; then
23099 gl_cv_next_string_h='<'string.h'>'
23101 { $as_echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
23102 $as_echo_n "checking absolute name of <string.h>... " >&6; }
23103 if test "${gl_cv_next_string_h+set}" = set; then
23104 $as_echo_n "(cached) " >&6
23107 cat >conftest.$ac_ext <<_ACEOF
23110 cat confdefs.h >>conftest.$ac_ext
23111 cat >>conftest.$ac_ext <<_ACEOF
23112 /* end confdefs.h. */
23113 #include <string.h>
23117 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23118 *) gl_absname_cpp="$ac_cpp" ;;
23120 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23121 sed -n '\#/string.h#{
23122 s#.*"\(.*/string.h\)".*#\1#
23130 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
23131 $as_echo "$gl_cv_next_string_h" >&6; }
23133 NEXT_STRING_H=$gl_cv_next_string_h
23135 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23136 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23137 gl_next_as_first_directive='<'string.h'>'
23139 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23140 gl_next_as_first_directive=$gl_cv_next_string_h
23142 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
23167 for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r strsignal strverscmp; do
23168 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23169 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
23170 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23171 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
23172 $as_echo_n "(cached) " >&6
23174 cat >conftest.$ac_ext <<_ACEOF
23177 cat confdefs.h >>conftest.$ac_ext
23178 cat >>conftest.$ac_ext <<_ACEOF
23179 /* end confdefs.h. */
23180 #include <string.h>
23191 rm -f conftest.$ac_objext
23192 if { (ac_try="$ac_compile"
23193 case "(($ac_try" in
23194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23195 *) ac_try_echo=$ac_try;;
23197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23198 $as_echo "$ac_try_echo") >&5
23199 (eval "$ac_compile") 2>conftest.er1
23201 grep -v '^ *+' conftest.er1 >conftest.err
23203 cat conftest.err >&5
23204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205 (exit $ac_status); } && {
23206 test -z "$ac_c_werror_flag" ||
23207 test ! -s conftest.err
23208 } && test -s conftest.$ac_objext; then
23209 eval "$as_gl_Symbol=yes"
23211 $as_echo "$as_me: failed program was:" >&5
23212 sed 's/^/| /' conftest.$ac_ext >&5
23214 eval "$as_gl_Symbol=no"
23217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23219 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
23220 $as_echo "$as_val"'`
23221 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23222 $as_echo "$ac_res" >&6; }
23223 as_val=`eval 'as_val=${'$as_gl_Symbol'}
23224 $as_echo "$as_val"'`
23225 if test "x$as_val" = x""yes; then
23226 cat >>confdefs.h <<_ACEOF
23227 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23230 eval ac_cv_have_decl_$gl_func=yes
23254 if test $gl_cv_have_include_next = yes; then
23255 gl_cv_next_strings_h='<'strings.h'>'
23257 { $as_echo "$as_me:$LINENO: checking absolute name of <strings.h>" >&5
23258 $as_echo_n "checking absolute name of <strings.h>... " >&6; }
23259 if test "${gl_cv_next_strings_h+set}" = set; then
23260 $as_echo_n "(cached) " >&6
23263 if test $ac_cv_header_strings_h = yes; then
23266 cat >conftest.$ac_ext <<_ACEOF
23269 cat confdefs.h >>conftest.$ac_ext
23270 cat >>conftest.$ac_ext <<_ACEOF
23271 /* end confdefs.h. */
23272 #include <strings.h>
23276 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23277 *) gl_absname_cpp="$ac_cpp" ;;
23279 gl_cv_next_strings_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23280 sed -n '\#/strings.h#{
23281 s#.*"\(.*/strings.h\)".*#\1#
23287 gl_cv_next_strings_h='<'strings.h'>'
23292 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_strings_h" >&5
23293 $as_echo "$gl_cv_next_strings_h" >&6; }
23295 NEXT_STRINGS_H=$gl_cv_next_strings_h
23297 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23298 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23299 gl_next_as_first_directive='<'strings.h'>'
23301 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23302 gl_next_as_first_directive=$gl_cv_next_strings_h
23304 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
23313 for gl_func in strcasecmp strncasecmp; do
23314 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23315 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
23316 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23317 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
23318 $as_echo_n "(cached) " >&6
23320 cat >conftest.$ac_ext <<_ACEOF
23323 cat confdefs.h >>conftest.$ac_ext
23324 cat >>conftest.$ac_ext <<_ACEOF
23325 /* end confdefs.h. */
23326 #include <strings.h>
23337 rm -f conftest.$ac_objext
23338 if { (ac_try="$ac_compile"
23339 case "(($ac_try" in
23340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23341 *) ac_try_echo=$ac_try;;
23343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23344 $as_echo "$ac_try_echo") >&5
23345 (eval "$ac_compile") 2>conftest.er1
23347 grep -v '^ *+' conftest.er1 >conftest.err
23349 cat conftest.err >&5
23350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23351 (exit $ac_status); } && {
23352 test -z "$ac_c_werror_flag" ||
23353 test ! -s conftest.err
23354 } && test -s conftest.$ac_objext; then
23355 eval "$as_gl_Symbol=yes"
23357 $as_echo "$as_me: failed program was:" >&5
23358 sed 's/^/| /' conftest.$ac_ext >&5
23360 eval "$as_gl_Symbol=no"
23363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23365 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
23366 $as_echo "$as_val"'`
23367 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23368 $as_echo "$ac_res" >&6; }
23369 as_val=`eval 'as_val=${'$as_gl_Symbol'}
23370 $as_echo "$as_val"'`
23371 if test "x$as_val" = x""yes; then
23372 cat >>confdefs.h <<_ACEOF
23373 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23376 eval ac_cv_have_decl_$gl_func=yes
23382 { $as_echo "$as_me:$LINENO: checking whether strndup is declared" >&5
23383 $as_echo_n "checking whether strndup is declared... " >&6; }
23384 if test "${ac_cv_have_decl_strndup+set}" = set; then
23385 $as_echo_n "(cached) " >&6
23387 cat >conftest.$ac_ext <<_ACEOF
23390 cat confdefs.h >>conftest.$ac_ext
23391 cat >>conftest.$ac_ext <<_ACEOF
23392 /* end confdefs.h. */
23393 $ac_includes_default
23405 rm -f conftest.$ac_objext
23406 if { (ac_try="$ac_compile"
23407 case "(($ac_try" in
23408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23409 *) ac_try_echo=$ac_try;;
23411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23412 $as_echo "$ac_try_echo") >&5
23413 (eval "$ac_compile") 2>conftest.er1
23415 grep -v '^ *+' conftest.er1 >conftest.err
23417 cat conftest.err >&5
23418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419 (exit $ac_status); } && {
23420 test -z "$ac_c_werror_flag" ||
23421 test ! -s conftest.err
23422 } && test -s conftest.$ac_objext; then
23423 ac_cv_have_decl_strndup=yes
23425 $as_echo "$as_me: failed program was:" >&5
23426 sed 's/^/| /' conftest.$ac_ext >&5
23428 ac_cv_have_decl_strndup=no
23431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23433 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
23434 $as_echo "$ac_cv_have_decl_strndup" >&6; }
23435 if test "x$ac_cv_have_decl_strndup" = x""yes; then
23437 cat >>confdefs.h <<_ACEOF
23438 #define HAVE_DECL_STRNDUP 1
23443 cat >>confdefs.h <<_ACEOF
23444 #define HAVE_DECL_STRNDUP 0
23453 { $as_echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
23454 $as_echo_n "checking whether strnlen is declared... " >&6; }
23455 if test "${ac_cv_have_decl_strnlen+set}" = set; then
23456 $as_echo_n "(cached) " >&6
23458 cat >conftest.$ac_ext <<_ACEOF
23461 cat confdefs.h >>conftest.$ac_ext
23462 cat >>conftest.$ac_ext <<_ACEOF
23463 /* end confdefs.h. */
23464 $ac_includes_default
23476 rm -f conftest.$ac_objext
23477 if { (ac_try="$ac_compile"
23478 case "(($ac_try" in
23479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23480 *) ac_try_echo=$ac_try;;
23482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23483 $as_echo "$ac_try_echo") >&5
23484 (eval "$ac_compile") 2>conftest.er1
23486 grep -v '^ *+' conftest.er1 >conftest.err
23488 cat conftest.err >&5
23489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23490 (exit $ac_status); } && {
23491 test -z "$ac_c_werror_flag" ||
23492 test ! -s conftest.err
23493 } && test -s conftest.$ac_objext; then
23494 ac_cv_have_decl_strnlen=yes
23496 $as_echo "$as_me: failed program was:" >&5
23497 sed 's/^/| /' conftest.$ac_ext >&5
23499 ac_cv_have_decl_strnlen=no
23502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23504 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
23505 $as_echo "$ac_cv_have_decl_strnlen" >&6; }
23506 if test "x$ac_cv_have_decl_strnlen" = x""yes; then
23508 cat >>confdefs.h <<_ACEOF
23509 #define HAVE_DECL_STRNLEN 1
23514 cat >>confdefs.h <<_ACEOF
23515 #define HAVE_DECL_STRNLEN 0
23535 { $as_echo "$as_me:$LINENO: checking for struct timespec in <time.h>" >&5
23536 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
23537 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then
23538 $as_echo_n "(cached) " >&6
23540 cat >conftest.$ac_ext <<_ACEOF
23543 cat confdefs.h >>conftest.$ac_ext
23544 cat >>conftest.$ac_ext <<_ACEOF
23545 /* end confdefs.h. */
23551 static struct timespec x; x.tv_sec = x.tv_nsec;
23556 rm -f conftest.$ac_objext
23557 if { (ac_try="$ac_compile"
23558 case "(($ac_try" in
23559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23560 *) ac_try_echo=$ac_try;;
23562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23563 $as_echo "$ac_try_echo") >&5
23564 (eval "$ac_compile") 2>conftest.er1
23566 grep -v '^ *+' conftest.er1 >conftest.err
23568 cat conftest.err >&5
23569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570 (exit $ac_status); } && {
23571 test -z "$ac_c_werror_flag" ||
23572 test ! -s conftest.err
23573 } && test -s conftest.$ac_objext; then
23574 gl_cv_sys_struct_timespec_in_time_h=yes
23576 $as_echo "$as_me: failed program was:" >&5
23577 sed 's/^/| /' conftest.$ac_ext >&5
23579 gl_cv_sys_struct_timespec_in_time_h=no
23582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23584 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
23585 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
23587 TIME_H_DEFINES_STRUCT_TIMESPEC=0
23588 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
23589 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
23590 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
23591 TIME_H_DEFINES_STRUCT_TIMESPEC=1
23593 { $as_echo "$as_me:$LINENO: checking for struct timespec in <sys/time.h>" >&5
23594 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
23595 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then
23596 $as_echo_n "(cached) " >&6
23598 cat >conftest.$ac_ext <<_ACEOF
23601 cat confdefs.h >>conftest.$ac_ext
23602 cat >>conftest.$ac_ext <<_ACEOF
23603 /* end confdefs.h. */
23604 #include <sys/time.h>
23609 static struct timespec x; x.tv_sec = x.tv_nsec;
23614 rm -f conftest.$ac_objext
23615 if { (ac_try="$ac_compile"
23616 case "(($ac_try" in
23617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23618 *) ac_try_echo=$ac_try;;
23620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23621 $as_echo "$ac_try_echo") >&5
23622 (eval "$ac_compile") 2>conftest.er1
23624 grep -v '^ *+' conftest.er1 >conftest.err
23626 cat conftest.err >&5
23627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628 (exit $ac_status); } && {
23629 test -z "$ac_c_werror_flag" ||
23630 test ! -s conftest.err
23631 } && test -s conftest.$ac_objext; then
23632 gl_cv_sys_struct_timespec_in_sys_time_h=yes
23634 $as_echo "$as_me: failed program was:" >&5
23635 sed 's/^/| /' conftest.$ac_ext >&5
23637 gl_cv_sys_struct_timespec_in_sys_time_h=no
23640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23642 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
23643 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
23644 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
23645 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
23647 { $as_echo "$as_me:$LINENO: checking for struct timespec in <pthread.h>" >&5
23648 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
23649 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then
23650 $as_echo_n "(cached) " >&6
23652 cat >conftest.$ac_ext <<_ACEOF
23655 cat confdefs.h >>conftest.$ac_ext
23656 cat >>conftest.$ac_ext <<_ACEOF
23657 /* end confdefs.h. */
23658 #include <pthread.h>
23663 static struct timespec x; x.tv_sec = x.tv_nsec;
23668 rm -f conftest.$ac_objext
23669 if { (ac_try="$ac_compile"
23670 case "(($ac_try" in
23671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23672 *) ac_try_echo=$ac_try;;
23674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23675 $as_echo "$ac_try_echo") >&5
23676 (eval "$ac_compile") 2>conftest.er1
23678 grep -v '^ *+' conftest.er1 >conftest.err
23680 cat conftest.err >&5
23681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682 (exit $ac_status); } && {
23683 test -z "$ac_c_werror_flag" ||
23684 test ! -s conftest.err
23685 } && test -s conftest.$ac_objext; then
23686 gl_cv_sys_struct_timespec_in_pthread_h=yes
23688 $as_echo "$as_me: failed program was:" >&5
23689 sed 's/^/| /' conftest.$ac_ext >&5
23691 gl_cv_sys_struct_timespec_in_pthread_h=no
23694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23696 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
23697 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
23698 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
23699 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
23718 if test $gl_cv_have_include_next = yes; then
23719 gl_cv_next_time_h='<'time.h'>'
23721 { $as_echo "$as_me:$LINENO: checking absolute name of <time.h>" >&5
23722 $as_echo_n "checking absolute name of <time.h>... " >&6; }
23723 if test "${gl_cv_next_time_h+set}" = set; then
23724 $as_echo_n "(cached) " >&6
23727 cat >conftest.$ac_ext <<_ACEOF
23730 cat confdefs.h >>conftest.$ac_ext
23731 cat >>conftest.$ac_ext <<_ACEOF
23732 /* end confdefs.h. */
23737 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23738 *) gl_absname_cpp="$ac_cpp" ;;
23740 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23741 sed -n '\#/time.h#{
23742 s#.*"\(.*/time.h\)".*#\1#
23750 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_time_h" >&5
23751 $as_echo "$gl_cv_next_time_h" >&6; }
23753 NEXT_TIME_H=$gl_cv_next_time_h
23755 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23756 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23757 gl_next_as_first_directive='<'time.h'>'
23759 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23760 gl_next_as_first_directive=$gl_cv_next_time_h
23762 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
23769 { $as_echo "$as_me:$LINENO: checking whether localtime_r is declared" >&5
23770 $as_echo_n "checking whether localtime_r is declared... " >&6; }
23771 if test "${ac_cv_have_decl_localtime_r+set}" = set; then
23772 $as_echo_n "(cached) " >&6
23774 cat >conftest.$ac_ext <<_ACEOF
23777 cat confdefs.h >>conftest.$ac_ext
23778 cat >>conftest.$ac_ext <<_ACEOF
23779 /* end confdefs.h. */
23780 $ac_includes_default
23784 #ifndef localtime_r
23785 (void) localtime_r;
23792 rm -f conftest.$ac_objext
23793 if { (ac_try="$ac_compile"
23794 case "(($ac_try" in
23795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23796 *) ac_try_echo=$ac_try;;
23798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23799 $as_echo "$ac_try_echo") >&5
23800 (eval "$ac_compile") 2>conftest.er1
23802 grep -v '^ *+' conftest.er1 >conftest.err
23804 cat conftest.err >&5
23805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806 (exit $ac_status); } && {
23807 test -z "$ac_c_werror_flag" ||
23808 test ! -s conftest.err
23809 } && test -s conftest.$ac_objext; then
23810 ac_cv_have_decl_localtime_r=yes
23812 $as_echo "$as_me: failed program was:" >&5
23813 sed 's/^/| /' conftest.$ac_ext >&5
23815 ac_cv_have_decl_localtime_r=no
23818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23820 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_localtime_r" >&5
23821 $as_echo "$ac_cv_have_decl_localtime_r" >&6; }
23822 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then
23824 cat >>confdefs.h <<_ACEOF
23825 #define HAVE_DECL_LOCALTIME_R 1
23830 cat >>confdefs.h <<_ACEOF
23831 #define HAVE_DECL_LOCALTIME_R 0
23848 gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
23853 gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
23858 gl_libunistring_sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q;}
23865 if test "$HAVE_LIBUNISTRING" = yes; then
23866 LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"`
23867 LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"`
23868 LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"`
23871 { $as_echo "$as_me:$LINENO: checking whether unsetenv is declared" >&5
23872 $as_echo_n "checking whether unsetenv is declared... " >&6; }
23873 if test "${ac_cv_have_decl_unsetenv+set}" = set; then
23874 $as_echo_n "(cached) " >&6
23876 cat >conftest.$ac_ext <<_ACEOF
23879 cat confdefs.h >>conftest.$ac_ext
23880 cat >>conftest.$ac_ext <<_ACEOF
23881 /* end confdefs.h. */
23882 $ac_includes_default
23894 rm -f conftest.$ac_objext
23895 if { (ac_try="$ac_compile"
23896 case "(($ac_try" in
23897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23898 *) ac_try_echo=$ac_try;;
23900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23901 $as_echo "$ac_try_echo") >&5
23902 (eval "$ac_compile") 2>conftest.er1
23904 grep -v '^ *+' conftest.er1 >conftest.err
23906 cat conftest.err >&5
23907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23908 (exit $ac_status); } && {
23909 test -z "$ac_c_werror_flag" ||
23910 test ! -s conftest.err
23911 } && test -s conftest.$ac_objext; then
23912 ac_cv_have_decl_unsetenv=yes
23914 $as_echo "$as_me: failed program was:" >&5
23915 sed 's/^/| /' conftest.$ac_ext >&5
23917 ac_cv_have_decl_unsetenv=no
23920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23922 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_unsetenv" >&5
23923 $as_echo "$ac_cv_have_decl_unsetenv" >&6; }
23924 if test "x$ac_cv_have_decl_unsetenv" = x""yes; then
23926 cat >>confdefs.h <<_ACEOF
23927 #define HAVE_DECL_UNSETENV 1
23932 cat >>confdefs.h <<_ACEOF
23933 #define HAVE_DECL_UNSETENV 0
23941 { $as_echo "$as_me:$LINENO: checking whether the utimes function works" >&5
23942 $as_echo_n "checking whether the utimes function works... " >&6; }
23943 if test "${gl_cv_func_working_utimes+set}" = set; then
23944 $as_echo_n "(cached) " >&6
23947 if test "$cross_compiling" = yes; then
23948 gl_cv_func_working_utimes=no
23950 cat >conftest.$ac_ext <<_ACEOF
23953 cat confdefs.h >>conftest.$ac_ext
23954 cat >>conftest.$ac_ext <<_ACEOF
23955 /* end confdefs.h. */
23957 #include <sys/types.h>
23958 #include <sys/stat.h>
23960 #include <sys/time.h>
23962 #include <unistd.h>
23963 #include <stdlib.h>
23968 inorder (time_t a, time_t b, time_t c)
23970 return a <= b && b <= c;
23977 char const *file = "conftest.utimes";
23978 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
23980 /* Test whether utimes() essentially works. */
23983 FILE *f = fopen (file, "w");
23986 else if (fclose (f) != 0)
23988 else if (utimes (file, timeval) != 0)
23990 else if (lstat (file, &sbuf) != 0)
23992 else if (!(sbuf.st_atime == timeval[0].tv_sec
23993 && sbuf.st_mtime == timeval[1].tv_sec))
23995 if (unlink (file) != 0)
23999 /* Test whether utimes() with a NULL argument sets the file's timestamp
24000 to the current time. Use 'fstat' as well as 'time' to
24001 determine the "current" time, to accommodate NFS file systems
24002 if there is a time skew between the host and the NFS server. */
24004 int fd = open (file, O_WRONLY|O_CREAT, 0644);
24010 struct stat st0, st1, st2;
24011 if (time (&t0) == (time_t) -1)
24013 else if (fstat (fd, &st0) != 0)
24015 else if (utimes (file, timeval) != 0)
24017 else if (utimes (file, NULL) != 0)
24019 else if (fstat (fd, &st1) != 0)
24021 else if (write (fd, "\n", 1) != 1)
24023 else if (fstat (fd, &st2) != 0)
24025 else if (time (&t2) == (time_t) -1)
24029 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
24030 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
24031 if (! (st1.st_atime == st1.st_mtime))
24033 if (! (m_ok_POSIX || m_ok_NFS))
24036 if (close (fd) != 0)
24039 if (unlink (file) != 0)
24043 /* Test whether utimes() with a NULL argument works on read-only files. */
24045 int fd = open (file, O_WRONLY|O_CREAT, 0444);
24048 else if (close (fd) != 0)
24050 else if (utimes (file, NULL) != 0)
24052 if (unlink (file) != 0)
24060 rm -f conftest$ac_exeext
24061 if { (ac_try="$ac_link"
24062 case "(($ac_try" in
24063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24064 *) ac_try_echo=$ac_try;;
24066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24067 $as_echo "$ac_try_echo") >&5
24068 (eval "$ac_link") 2>&5
24070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24072 { (case "(($ac_try" in
24073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24074 *) ac_try_echo=$ac_try;;
24076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24077 $as_echo "$ac_try_echo") >&5
24078 (eval "$ac_try") 2>&5
24080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24081 (exit $ac_status); }; }; then
24082 gl_cv_func_working_utimes=yes
24084 $as_echo "$as_me: program exited with status $ac_status" >&5
24085 $as_echo "$as_me: failed program was:" >&5
24086 sed 's/^/| /' conftest.$ac_ext >&5
24088 ( exit $ac_status )
24089 gl_cv_func_working_utimes=no
24091 rm -rf conftest.dSYM
24092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24097 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_utimes" >&5
24098 $as_echo "$gl_cv_func_working_utimes" >&6; }
24100 if test $gl_cv_func_working_utimes = yes; then
24102 cat >>confdefs.h <<\_ACEOF
24103 #define HAVE_WORKING_UTIMES 1
24119 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
24120 $as_echo_n "checking for struct utimbuf... " >&6; }
24121 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then
24122 $as_echo_n "(cached) " >&6
24124 cat >conftest.$ac_ext <<_ACEOF
24127 cat confdefs.h >>conftest.$ac_ext
24128 cat >>conftest.$ac_ext <<_ACEOF
24129 /* end confdefs.h. */
24130 #if HAVE_SYS_TIME_H
24131 #include <sys/time.h>
24134 #ifdef HAVE_UTIME_H
24141 static struct utimbuf x; x.actime = x.modtime;
24146 rm -f conftest.$ac_objext
24147 if { (ac_try="$ac_compile"
24148 case "(($ac_try" in
24149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24150 *) ac_try_echo=$ac_try;;
24152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24153 $as_echo "$ac_try_echo") >&5
24154 (eval "$ac_compile") 2>conftest.er1
24156 grep -v '^ *+' conftest.er1 >conftest.err
24158 cat conftest.err >&5
24159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24160 (exit $ac_status); } && {
24161 test -z "$ac_c_werror_flag" ||
24162 test ! -s conftest.err
24163 } && test -s conftest.$ac_objext; then
24164 gl_cv_sys_struct_utimbuf=yes
24166 $as_echo "$as_me: failed program was:" >&5
24167 sed 's/^/| /' conftest.$ac_ext >&5
24169 gl_cv_sys_struct_utimbuf=no
24172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24174 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_utimbuf" >&5
24175 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
24177 if test $gl_cv_sys_struct_utimbuf = yes; then
24179 cat >>confdefs.h <<\_ACEOF
24180 #define HAVE_STRUCT_UTIMBUF 1
24202 if test $ac_cv_header_features_h = yes; then
24210 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
24211 $as_echo_n "checking for inttypes.h... " >&6; }
24212 if test "${gl_cv_header_inttypes_h+set}" = set; then
24213 $as_echo_n "(cached) " >&6
24215 cat >conftest.$ac_ext <<_ACEOF
24218 cat confdefs.h >>conftest.$ac_ext
24219 cat >>conftest.$ac_ext <<_ACEOF
24220 /* end confdefs.h. */
24222 #include <sys/types.h>
24223 #include <inttypes.h>
24228 uintmax_t i = (uintmax_t) -1; return !i;
24233 rm -f conftest.$ac_objext
24234 if { (ac_try="$ac_compile"
24235 case "(($ac_try" in
24236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24237 *) ac_try_echo=$ac_try;;
24239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24240 $as_echo "$ac_try_echo") >&5
24241 (eval "$ac_compile") 2>conftest.er1
24243 grep -v '^ *+' conftest.er1 >conftest.err
24245 cat conftest.err >&5
24246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24247 (exit $ac_status); } && {
24248 test -z "$ac_c_werror_flag" ||
24249 test ! -s conftest.err
24250 } && test -s conftest.$ac_objext; then
24251 gl_cv_header_inttypes_h=yes
24253 $as_echo "$as_me: failed program was:" >&5
24254 sed 's/^/| /' conftest.$ac_ext >&5
24256 gl_cv_header_inttypes_h=no
24259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24261 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
24262 $as_echo "$gl_cv_header_inttypes_h" >&6; }
24263 if test $gl_cv_header_inttypes_h = yes; then
24265 cat >>confdefs.h <<_ACEOF
24266 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
24272 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
24273 $as_echo_n "checking for stdint.h... " >&6; }
24274 if test "${gl_cv_header_stdint_h+set}" = set; then
24275 $as_echo_n "(cached) " >&6
24277 cat >conftest.$ac_ext <<_ACEOF
24280 cat confdefs.h >>conftest.$ac_ext
24281 cat >>conftest.$ac_ext <<_ACEOF
24282 /* end confdefs.h. */
24283 #include <sys/types.h>
24284 #include <stdint.h>
24288 uintmax_t i = (uintmax_t) -1; return !i;
24293 rm -f conftest.$ac_objext
24294 if { (ac_try="$ac_compile"
24295 case "(($ac_try" in
24296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24297 *) ac_try_echo=$ac_try;;
24299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24300 $as_echo "$ac_try_echo") >&5
24301 (eval "$ac_compile") 2>conftest.er1
24303 grep -v '^ *+' conftest.er1 >conftest.err
24305 cat conftest.err >&5
24306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24307 (exit $ac_status); } && {
24308 test -z "$ac_c_werror_flag" ||
24309 test ! -s conftest.err
24310 } && test -s conftest.$ac_objext; then
24311 gl_cv_header_stdint_h=yes
24313 $as_echo "$as_me: failed program was:" >&5
24314 sed 's/^/| /' conftest.$ac_ext >&5
24316 gl_cv_header_stdint_h=no
24319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24321 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
24322 $as_echo "$gl_cv_header_stdint_h" >&6; }
24323 if test $gl_cv_header_stdint_h = yes; then
24325 cat >>confdefs.h <<_ACEOF
24326 #define HAVE_STDINT_H_WITH_UINTMAX 1
24334 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
24335 $as_echo_n "checking for intmax_t... " >&6; }
24336 if test "${gt_cv_c_intmax_t+set}" = set; then
24337 $as_echo_n "(cached) " >&6
24339 cat >conftest.$ac_ext <<_ACEOF
24342 cat confdefs.h >>conftest.$ac_ext
24343 cat >>conftest.$ac_ext <<_ACEOF
24344 /* end confdefs.h. */
24346 #include <stddef.h>
24347 #include <stdlib.h>
24348 #if HAVE_STDINT_H_WITH_UINTMAX
24349 #include <stdint.h>
24351 #if HAVE_INTTYPES_H_WITH_UINTMAX
24352 #include <inttypes.h>
24358 intmax_t x = -1; return !x;
24363 rm -f conftest.$ac_objext
24364 if { (ac_try="$ac_compile"
24365 case "(($ac_try" in
24366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24367 *) ac_try_echo=$ac_try;;
24369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24370 $as_echo "$ac_try_echo") >&5
24371 (eval "$ac_compile") 2>conftest.er1
24373 grep -v '^ *+' conftest.er1 >conftest.err
24375 cat conftest.err >&5
24376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377 (exit $ac_status); } && {
24378 test -z "$ac_c_werror_flag" ||
24379 test ! -s conftest.err
24380 } && test -s conftest.$ac_objext; then
24381 gt_cv_c_intmax_t=yes
24383 $as_echo "$as_me: failed program was:" >&5
24384 sed 's/^/| /' conftest.$ac_ext >&5
24386 gt_cv_c_intmax_t=no
24389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24391 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
24392 $as_echo "$gt_cv_c_intmax_t" >&6; }
24393 if test $gt_cv_c_intmax_t = yes; then
24395 cat >>confdefs.h <<\_ACEOF
24396 #define HAVE_INTMAX_T 1
24401 test $ac_cv_type_long_long_int = yes \
24402 && ac_type='long long' \
24405 cat >>confdefs.h <<_ACEOF
24406 #define intmax_t $ac_type
24423 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
24425 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24426 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24427 $as_echo_n "checking for $ac_func... " >&6; }
24428 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24429 $as_echo_n "(cached) " >&6
24431 cat >conftest.$ac_ext <<_ACEOF
24434 cat confdefs.h >>conftest.$ac_ext
24435 cat >>conftest.$ac_ext <<_ACEOF
24436 /* end confdefs.h. */
24437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24439 #define $ac_func innocuous_$ac_func
24441 /* System header to define __stub macros and hopefully few prototypes,
24442 which can conflict with char $ac_func (); below.
24443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24444 <limits.h> exists even on freestanding compilers. */
24447 # include <limits.h>
24449 # include <assert.h>
24454 /* Override any GCC internal prototype to avoid an error.
24455 Use char because int might match the return type of a GCC
24456 builtin and then its argument prototype would still apply. */
24461 /* The GNU C library defines this for functions which it implements
24462 to always fail with ENOSYS. Some functions are actually named
24463 something starting with __ and the normal name is an alias. */
24464 #if defined __stub_$ac_func || defined __stub___$ac_func
24471 return $ac_func ();
24476 rm -f conftest.$ac_objext conftest$ac_exeext
24477 if { (ac_try="$ac_link"
24478 case "(($ac_try" in
24479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24480 *) ac_try_echo=$ac_try;;
24482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24483 $as_echo "$ac_try_echo") >&5
24484 (eval "$ac_link") 2>conftest.er1
24486 grep -v '^ *+' conftest.er1 >conftest.err
24488 cat conftest.err >&5
24489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24490 (exit $ac_status); } && {
24491 test -z "$ac_c_werror_flag" ||
24492 test ! -s conftest.err
24493 } && test -s conftest$ac_exeext && {
24494 test "$cross_compiling" = yes ||
24495 $as_test_x conftest$ac_exeext
24497 eval "$as_ac_var=yes"
24499 $as_echo "$as_me: failed program was:" >&5
24500 sed 's/^/| /' conftest.$ac_ext >&5
24502 eval "$as_ac_var=no"
24505 rm -rf conftest.dSYM
24506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24507 conftest$ac_exeext conftest.$ac_ext
24509 ac_res=`eval 'as_val=${'$as_ac_var'}
24510 $as_echo "$as_val"'`
24511 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24512 $as_echo "$ac_res" >&6; }
24513 as_val=`eval 'as_val=${'$as_ac_var'}
24514 $as_echo "$as_val"'`
24515 if test "x$as_val" = x""yes; then
24516 cat >>confdefs.h <<_ACEOF
24517 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24523 { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
24524 $as_echo_n "checking whether _snprintf is declared... " >&6; }
24525 if test "${ac_cv_have_decl__snprintf+set}" = set; then
24526 $as_echo_n "(cached) " >&6
24528 cat >conftest.$ac_ext <<_ACEOF
24531 cat confdefs.h >>conftest.$ac_ext
24532 cat >>conftest.$ac_ext <<_ACEOF
24533 /* end confdefs.h. */
24547 rm -f conftest.$ac_objext
24548 if { (ac_try="$ac_compile"
24549 case "(($ac_try" in
24550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24551 *) ac_try_echo=$ac_try;;
24553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24554 $as_echo "$ac_try_echo") >&5
24555 (eval "$ac_compile") 2>conftest.er1
24557 grep -v '^ *+' conftest.er1 >conftest.err
24559 cat conftest.err >&5
24560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561 (exit $ac_status); } && {
24562 test -z "$ac_c_werror_flag" ||
24563 test ! -s conftest.err
24564 } && test -s conftest.$ac_objext; then
24565 ac_cv_have_decl__snprintf=yes
24567 $as_echo "$as_me: failed program was:" >&5
24568 sed 's/^/| /' conftest.$ac_ext >&5
24570 ac_cv_have_decl__snprintf=no
24573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24575 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
24576 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
24577 if test "x$ac_cv_have_decl__snprintf" = x""yes; then
24579 cat >>confdefs.h <<_ACEOF
24580 #define HAVE_DECL__SNPRINTF 1
24585 cat >>confdefs.h <<_ACEOF
24586 #define HAVE_DECL__SNPRINTF 0
24594 case "$gl_cv_func_snprintf_retval_c99" in
24597 cat >>confdefs.h <<\_ACEOF
24598 #define HAVE_SNPRINTF_RETVAL_C99 1
24604 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
24605 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
24606 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
24607 $as_echo_n "(cached) " >&6
24609 cat >conftest.$ac_ext <<_ACEOF
24612 cat confdefs.h >>conftest.$ac_ext
24613 cat >>conftest.$ac_ext <<_ACEOF
24614 /* end confdefs.h. */
24615 $ac_includes_default
24627 rm -f conftest.$ac_objext
24628 if { (ac_try="$ac_compile"
24629 case "(($ac_try" in
24630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24631 *) ac_try_echo=$ac_try;;
24633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24634 $as_echo "$ac_try_echo") >&5
24635 (eval "$ac_compile") 2>conftest.er1
24637 grep -v '^ *+' conftest.er1 >conftest.err
24639 cat conftest.err >&5
24640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24641 (exit $ac_status); } && {
24642 test -z "$ac_c_werror_flag" ||
24643 test ! -s conftest.err
24644 } && test -s conftest.$ac_objext; then
24645 ac_cv_have_decl_vsnprintf=yes
24647 $as_echo "$as_me: failed program was:" >&5
24648 sed 's/^/| /' conftest.$ac_ext >&5
24650 ac_cv_have_decl_vsnprintf=no
24653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24655 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
24656 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
24657 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
24659 cat >>confdefs.h <<_ACEOF
24660 #define HAVE_DECL_VSNPRINTF 1
24665 cat >>confdefs.h <<_ACEOF
24666 #define HAVE_DECL_VSNPRINTF 0
24679 GL_COND_LIBTOOL_TRUE=
24680 GL_COND_LIBTOOL_FALSE='#'
24682 GL_COND_LIBTOOL_TRUE='#'
24683 GL_COND_LIBTOOL_FALSE=
24686 gl_cond_libtool=false
24699 gl_source_base='gnu'
24700 # Code from module alloca:
24701 # Code from module alloca-opt:
24704 if test $ac_cv_func_alloca_works = no; then
24708 # Define an additional variable used in the Makefile substitution.
24709 if test $ac_cv_working_alloca_h = yes; then
24710 { $as_echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
24711 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
24712 if test "${gl_cv_rpl_alloca+set}" = set; then
24713 $as_echo_n "(cached) " >&6
24716 cat >conftest.$ac_ext <<_ACEOF
24719 cat confdefs.h >>conftest.$ac_ext
24720 cat >>conftest.$ac_ext <<_ACEOF
24721 /* end confdefs.h. */
24723 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
24728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24729 $EGREP "Need own alloca" >/dev/null 2>&1; then
24730 gl_cv_rpl_alloca=yes
24732 gl_cv_rpl_alloca=no
24738 { $as_echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
24739 $as_echo "$gl_cv_rpl_alloca" >&6; }
24740 if test $gl_cv_rpl_alloca = yes; then
24742 cat >>confdefs.h <<\_ACEOF
24743 #define HAVE_ALLOCA 1
24755 # Code from module areadlink:
24756 # Code from module areadlinkat:
24759 cat >>confdefs.h <<_ACEOF
24760 #define GNULIB_AREADLINKAT 1
24764 # Code from module arg-nonnull:
24765 # Code from module argmatch:
24775 gl_LIBOBJS="$gl_LIBOBJS argmatch.$ac_objext"
24778 # Code from module argp:
24787 cat >>confdefs.h <<\_ACEOF
24788 #define __GETOPT_PREFIX rpl_
24793 GNULIB_UNISTD_H_GETOPT=1
24802 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
24812 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
24822 { $as_echo "$as_me:$LINENO: checking whether program_invocation_name is declared" >&5
24823 $as_echo_n "checking whether program_invocation_name is declared... " >&6; }
24824 if test "${ac_cv_have_decl_program_invocation_name+set}" = set; then
24825 $as_echo_n "(cached) " >&6
24827 cat >conftest.$ac_ext <<_ACEOF
24830 cat confdefs.h >>conftest.$ac_ext
24831 cat >>conftest.$ac_ext <<_ACEOF
24832 /* end confdefs.h. */
24838 #ifndef program_invocation_name
24839 (void) program_invocation_name;
24846 rm -f conftest.$ac_objext
24847 if { (ac_try="$ac_compile"
24848 case "(($ac_try" in
24849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24850 *) ac_try_echo=$ac_try;;
24852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24853 $as_echo "$ac_try_echo") >&5
24854 (eval "$ac_compile") 2>conftest.er1
24856 grep -v '^ *+' conftest.er1 >conftest.err
24858 cat conftest.err >&5
24859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860 (exit $ac_status); } && {
24861 test -z "$ac_c_werror_flag" ||
24862 test ! -s conftest.err
24863 } && test -s conftest.$ac_objext; then
24864 ac_cv_have_decl_program_invocation_name=yes
24866 $as_echo "$as_me: failed program was:" >&5
24867 sed 's/^/| /' conftest.$ac_ext >&5
24869 ac_cv_have_decl_program_invocation_name=no
24872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24874 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_name" >&5
24875 $as_echo "$ac_cv_have_decl_program_invocation_name" >&6; }
24876 if test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then
24878 cat >>confdefs.h <<\_ACEOF
24879 #define HAVE_DECL_PROGRAM_INVOCATION_NAME 1
24884 cat >>confdefs.h <<\_ACEOF
24885 #define GNULIB_PROGRAM_INVOCATION_NAME 1
24890 { $as_echo "$as_me:$LINENO: checking whether program_invocation_short_name is declared" >&5
24891 $as_echo_n "checking whether program_invocation_short_name is declared... " >&6; }
24892 if test "${ac_cv_have_decl_program_invocation_short_name+set}" = set; then
24893 $as_echo_n "(cached) " >&6
24895 cat >conftest.$ac_ext <<_ACEOF
24898 cat confdefs.h >>conftest.$ac_ext
24899 cat >>conftest.$ac_ext <<_ACEOF
24900 /* end confdefs.h. */
24906 #ifndef program_invocation_short_name
24907 (void) program_invocation_short_name;
24914 rm -f conftest.$ac_objext
24915 if { (ac_try="$ac_compile"
24916 case "(($ac_try" in
24917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24918 *) ac_try_echo=$ac_try;;
24920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24921 $as_echo "$ac_try_echo") >&5
24922 (eval "$ac_compile") 2>conftest.er1
24924 grep -v '^ *+' conftest.er1 >conftest.err
24926 cat conftest.err >&5
24927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24928 (exit $ac_status); } && {
24929 test -z "$ac_c_werror_flag" ||
24930 test ! -s conftest.err
24931 } && test -s conftest.$ac_objext; then
24932 ac_cv_have_decl_program_invocation_short_name=yes
24934 $as_echo "$as_me: failed program was:" >&5
24935 sed 's/^/| /' conftest.$ac_ext >&5
24937 ac_cv_have_decl_program_invocation_short_name=no
24940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24942 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_short_name" >&5
24943 $as_echo "$ac_cv_have_decl_program_invocation_short_name" >&6; }
24944 if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then
24946 cat >>confdefs.h <<\_ACEOF
24947 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1
24952 cat >>confdefs.h <<\_ACEOF
24953 #define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1
24959 # Check if program_invocation_name and program_invocation_short_name
24960 # are defined elsewhere. It is improbable that only one of them will
24961 # be defined and other not, I prefer to stay on the safe side and to
24962 # test each one separately.
24963 { $as_echo "$as_me:$LINENO: checking whether program_invocation_name is defined" >&5
24964 $as_echo_n "checking whether program_invocation_name is defined... " >&6; }
24965 cat >conftest.$ac_ext <<_ACEOF
24968 cat confdefs.h >>conftest.$ac_ext
24969 cat >>conftest.$ac_ext <<_ACEOF
24970 /* end confdefs.h. */
24975 program_invocation_name = "test";
24980 rm -f conftest.$ac_objext conftest$ac_exeext
24981 if { (ac_try="$ac_link"
24982 case "(($ac_try" in
24983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24984 *) ac_try_echo=$ac_try;;
24986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24987 $as_echo "$ac_try_echo") >&5
24988 (eval "$ac_link") 2>conftest.er1
24990 grep -v '^ *+' conftest.er1 >conftest.err
24992 cat conftest.err >&5
24993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994 (exit $ac_status); } && {
24995 test -z "$ac_c_werror_flag" ||
24996 test ! -s conftest.err
24997 } && test -s conftest$ac_exeext && {
24998 test "$cross_compiling" = yes ||
24999 $as_test_x conftest$ac_exeext
25002 cat >>confdefs.h <<\_ACEOF
25003 #define HAVE_PROGRAM_INVOCATION_NAME 1
25006 { $as_echo "$as_me:$LINENO: result: yes" >&5
25007 $as_echo "yes" >&6; }
25009 $as_echo "$as_me: failed program was:" >&5
25010 sed 's/^/| /' conftest.$ac_ext >&5
25012 { $as_echo "$as_me:$LINENO: result: no" >&5
25013 $as_echo "no" >&6; }
25016 rm -rf conftest.dSYM
25017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25018 conftest$ac_exeext conftest.$ac_ext
25020 { $as_echo "$as_me:$LINENO: checking whether program_invocation_short_name is defined" >&5
25021 $as_echo_n "checking whether program_invocation_short_name is defined... " >&6; }
25022 cat >conftest.$ac_ext <<_ACEOF
25025 cat confdefs.h >>conftest.$ac_ext
25026 cat >>conftest.$ac_ext <<_ACEOF
25027 /* end confdefs.h. */
25032 program_invocation_short_name = "test";
25037 rm -f conftest.$ac_objext conftest$ac_exeext
25038 if { (ac_try="$ac_link"
25039 case "(($ac_try" in
25040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25041 *) ac_try_echo=$ac_try;;
25043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25044 $as_echo "$ac_try_echo") >&5
25045 (eval "$ac_link") 2>conftest.er1
25047 grep -v '^ *+' conftest.er1 >conftest.err
25049 cat conftest.err >&5
25050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25051 (exit $ac_status); } && {
25052 test -z "$ac_c_werror_flag" ||
25053 test ! -s conftest.err
25054 } && test -s conftest$ac_exeext && {
25055 test "$cross_compiling" = yes ||
25056 $as_test_x conftest$ac_exeext
25059 cat >>confdefs.h <<\_ACEOF
25060 #define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1
25063 { $as_echo "$as_me:$LINENO: result: yes" >&5
25064 $as_echo "yes" >&6; }
25066 $as_echo "$as_me: failed program was:" >&5
25067 sed 's/^/| /' conftest.$ac_ext >&5
25069 { $as_echo "$as_me:$LINENO: result: no" >&5
25070 $as_echo "no" >&6; }
25073 rm -rf conftest.dSYM
25074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25075 conftest$ac_exeext conftest.$ac_ext
25148 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_error:2:c-format"
25152 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_failure:4:c-format"
25154 # Code from module argp-version-etc:
25155 # Code from module backupfile:
25165 gl_LIBOBJS="$gl_LIBOBJS backupfile.$ac_objext"
25177 # Code from module bitrotate:
25179 # Code from module btowc:
25191 if test $ac_cv_func_btowc = no; then
25198 { $as_echo "$as_me:$LINENO: checking whether btowc(0) is correct" >&5
25199 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
25200 if test "${gl_cv_func_btowc_nul+set}" = set; then
25201 $as_echo_n "(cached) " >&6
25204 if test "$cross_compiling" = yes; then
25207 # Guess no on Cygwin.
25208 cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
25209 # Guess yes otherwise.
25210 *) gl_cv_func_btowc_nul="guessing yes" ;;
25214 cat >conftest.$ac_ext <<_ACEOF
25217 cat confdefs.h >>conftest.$ac_ext
25218 cat >>conftest.$ac_ext <<_ACEOF
25219 /* end confdefs.h. */
25221 #include <string.h>
25222 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
25224 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25225 included before <wchar.h>. */
25226 #include <stddef.h>
25232 if (btowc ('\0') != 0)
25237 rm -f conftest$ac_exeext
25238 if { (ac_try="$ac_link"
25239 case "(($ac_try" in
25240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25241 *) ac_try_echo=$ac_try;;
25243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25244 $as_echo "$ac_try_echo") >&5
25245 (eval "$ac_link") 2>&5
25247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25249 { (case "(($ac_try" in
25250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25251 *) ac_try_echo=$ac_try;;
25253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25254 $as_echo "$ac_try_echo") >&5
25255 (eval "$ac_try") 2>&5
25257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258 (exit $ac_status); }; }; then
25259 gl_cv_func_btowc_nul=yes
25261 $as_echo "$as_me: program exited with status $ac_status" >&5
25262 $as_echo "$as_me: failed program was:" >&5
25263 sed 's/^/| /' conftest.$ac_ext >&5
25265 ( exit $ac_status )
25266 gl_cv_func_btowc_nul=no
25268 rm -rf conftest.dSYM
25269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25275 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_btowc_nul" >&5
25276 $as_echo "$gl_cv_func_btowc_nul" >&6; }
25278 { $as_echo "$as_me:$LINENO: checking whether btowc(EOF) is correct" >&5
25279 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
25280 if test "${gl_cv_func_btowc_eof+set}" = set; then
25281 $as_echo_n "(cached) " >&6
25285 # Guess no on IRIX.
25286 irix*) gl_cv_func_btowc_eof="guessing no" ;;
25287 # Guess yes otherwise.
25288 *) gl_cv_func_btowc_eof="guessing yes" ;;
25290 if test $LOCALE_FR != none; then
25291 if test "$cross_compiling" = yes; then
25294 cat >conftest.$ac_ext <<_ACEOF
25297 cat confdefs.h >>conftest.$ac_ext
25298 cat >>conftest.$ac_ext <<_ACEOF
25299 /* end confdefs.h. */
25301 #include <locale.h>
25302 #include <string.h>
25303 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
25305 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25306 included before <wchar.h>. */
25307 #include <stddef.h>
25313 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
25315 if (btowc (EOF) != WEOF)
25321 rm -f conftest$ac_exeext
25322 if { (ac_try="$ac_link"
25323 case "(($ac_try" in
25324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25325 *) ac_try_echo=$ac_try;;
25327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25328 $as_echo "$ac_try_echo") >&5
25329 (eval "$ac_link") 2>&5
25331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25333 { (case "(($ac_try" in
25334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25335 *) ac_try_echo=$ac_try;;
25337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25338 $as_echo "$ac_try_echo") >&5
25339 (eval "$ac_try") 2>&5
25341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342 (exit $ac_status); }; }; then
25343 gl_cv_func_btowc_eof=yes
25345 $as_echo "$as_me: program exited with status $ac_status" >&5
25346 $as_echo "$as_me: failed program was:" >&5
25347 sed 's/^/| /' conftest.$ac_ext >&5
25349 ( exit $ac_status )
25350 gl_cv_func_btowc_eof=no
25352 rm -rf conftest.dSYM
25353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25360 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_btowc_eof" >&5
25361 $as_echo "$gl_cv_func_btowc_eof" >&6; }
25363 case "$gl_cv_func_btowc_nul" in
25365 *) REPLACE_BTOWC=1 ;;
25367 case "$gl_cv_func_btowc_eof" in
25369 *) REPLACE_BTOWC=1 ;;
25372 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
25384 gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext"
25398 cat >>confdefs.h <<\_ACEOF
25399 #define GNULIB_TEST_BTOWC 1
25404 # Code from module c++defs:
25405 # Code from module c-ctype:
25406 # Code from module canonicalize-lgpl:
25409 if test $ac_cv_func_canonicalize_file_name = no; then
25410 HAVE_CANONICALIZE_FILE_NAME=0
25419 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
25421 if test $ac_cv_func_realpath = no; then
25423 elif test "$gl_cv_func_realpath_works" != yes; then
25426 elif test "$gl_cv_func_realpath_works" != yes; then
25435 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
25438 REPLACE_CANONICALIZE_FILE_NAME=1
25443 cat >>confdefs.h <<_ACEOF
25444 #define GNULIB_CANONICALIZE_LGPL 1
25451 GNULIB_CANONICALIZE_FILE_NAME=1
25455 cat >>confdefs.h <<\_ACEOF
25456 #define GNULIB_TEST_CANONICALIZE_FILE_NAME 1
25468 cat >>confdefs.h <<\_ACEOF
25469 #define GNULIB_TEST_REALPATH 1
25474 # Code from module chdir-long:
25476 { $as_echo "$as_me:$LINENO: checking whether this system has an arbitrary file name length limit" >&5
25477 $as_echo_n "checking whether this system has an arbitrary file name length limit... " >&6; }
25478 if test "${gl_cv_have_arbitrary_file_name_length_limit+set}" = set; then
25479 $as_echo_n "(cached) " >&6
25481 cat >conftest.$ac_ext <<_ACEOF
25484 cat confdefs.h >>conftest.$ac_ext
25485 cat >>conftest.$ac_ext <<_ACEOF
25486 /* end confdefs.h. */
25487 #include <unistd.h>
25488 #include <limits.h>
25489 #if defined PATH_MAX || defined MAXPATHLEN
25490 have_arbitrary_file_name_length_limit
25493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25494 $EGREP "have_arbitrary_file_name_length_limit" >/dev/null 2>&1; then
25495 gl_cv_have_arbitrary_file_name_length_limit=yes
25497 gl_cv_have_arbitrary_file_name_length_limit=no
25502 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
25503 $as_echo "$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
25505 if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
25514 gl_LIBOBJS="$gl_LIBOBJS chdir-long.$ac_objext"
25522 # Code from module chown:
25531 cat >>confdefs.h <<\_ACEOF
25532 #define GNULIB_TEST_CHOWN 1
25537 # Code from module clock-time:
25541 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
25542 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
25544 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
25545 # programs in the package would end up linked with that potentially-shared
25546 # library, inducing unnecessary run-time overhead.
25549 gl_saved_libs=$LIBS
25550 { $as_echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
25551 $as_echo_n "checking for library containing clock_gettime... " >&6; }
25552 if test "${ac_cv_search_clock_gettime+set}" = set; then
25553 $as_echo_n "(cached) " >&6
25555 ac_func_search_save_LIBS=$LIBS
25556 cat >conftest.$ac_ext <<_ACEOF
25559 cat confdefs.h >>conftest.$ac_ext
25560 cat >>conftest.$ac_ext <<_ACEOF
25561 /* end confdefs.h. */
25563 /* Override any GCC internal prototype to avoid an error.
25564 Use char because int might match the return type of a GCC
25565 builtin and then its argument prototype would still apply. */
25569 char clock_gettime ();
25573 return clock_gettime ();
25578 for ac_lib in '' rt posix4; do
25579 if test -z "$ac_lib"; then
25580 ac_res="none required"
25583 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25585 rm -f conftest.$ac_objext conftest$ac_exeext
25586 if { (ac_try="$ac_link"
25587 case "(($ac_try" in
25588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25589 *) ac_try_echo=$ac_try;;
25591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25592 $as_echo "$ac_try_echo") >&5
25593 (eval "$ac_link") 2>conftest.er1
25595 grep -v '^ *+' conftest.er1 >conftest.err
25597 cat conftest.err >&5
25598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599 (exit $ac_status); } && {
25600 test -z "$ac_c_werror_flag" ||
25601 test ! -s conftest.err
25602 } && test -s conftest$ac_exeext && {
25603 test "$cross_compiling" = yes ||
25604 $as_test_x conftest$ac_exeext
25606 ac_cv_search_clock_gettime=$ac_res
25608 $as_echo "$as_me: failed program was:" >&5
25609 sed 's/^/| /' conftest.$ac_ext >&5
25614 rm -rf conftest.dSYM
25615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25617 if test "${ac_cv_search_clock_gettime+set}" = set; then
25621 if test "${ac_cv_search_clock_gettime+set}" = set; then
25624 ac_cv_search_clock_gettime=no
25626 rm conftest.$ac_ext
25627 LIBS=$ac_func_search_save_LIBS
25629 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
25630 $as_echo "$ac_cv_search_clock_gettime" >&6; }
25631 ac_res=$ac_cv_search_clock_gettime
25632 if test "$ac_res" != no; then
25633 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25634 test "$ac_cv_search_clock_gettime" = "none required" ||
25635 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
25640 for ac_func in clock_gettime clock_settime
25642 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25643 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25644 $as_echo_n "checking for $ac_func... " >&6; }
25645 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25646 $as_echo_n "(cached) " >&6
25648 cat >conftest.$ac_ext <<_ACEOF
25651 cat confdefs.h >>conftest.$ac_ext
25652 cat >>conftest.$ac_ext <<_ACEOF
25653 /* end confdefs.h. */
25654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25656 #define $ac_func innocuous_$ac_func
25658 /* System header to define __stub macros and hopefully few prototypes,
25659 which can conflict with char $ac_func (); below.
25660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25661 <limits.h> exists even on freestanding compilers. */
25664 # include <limits.h>
25666 # include <assert.h>
25671 /* Override any GCC internal prototype to avoid an error.
25672 Use char because int might match the return type of a GCC
25673 builtin and then its argument prototype would still apply. */
25678 /* The GNU C library defines this for functions which it implements
25679 to always fail with ENOSYS. Some functions are actually named
25680 something starting with __ and the normal name is an alias. */
25681 #if defined __stub_$ac_func || defined __stub___$ac_func
25688 return $ac_func ();
25693 rm -f conftest.$ac_objext conftest$ac_exeext
25694 if { (ac_try="$ac_link"
25695 case "(($ac_try" in
25696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25697 *) ac_try_echo=$ac_try;;
25699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25700 $as_echo "$ac_try_echo") >&5
25701 (eval "$ac_link") 2>conftest.er1
25703 grep -v '^ *+' conftest.er1 >conftest.err
25705 cat conftest.err >&5
25706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25707 (exit $ac_status); } && {
25708 test -z "$ac_c_werror_flag" ||
25709 test ! -s conftest.err
25710 } && test -s conftest$ac_exeext && {
25711 test "$cross_compiling" = yes ||
25712 $as_test_x conftest$ac_exeext
25714 eval "$as_ac_var=yes"
25716 $as_echo "$as_me: failed program was:" >&5
25717 sed 's/^/| /' conftest.$ac_ext >&5
25719 eval "$as_ac_var=no"
25722 rm -rf conftest.dSYM
25723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25724 conftest$ac_exeext conftest.$ac_ext
25726 ac_res=`eval 'as_val=${'$as_ac_var'}
25727 $as_echo "$as_val"'`
25728 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25729 $as_echo "$ac_res" >&6; }
25730 as_val=`eval 'as_val=${'$as_ac_var'}
25731 $as_echo "$as_val"'`
25732 if test "x$as_val" = x""yes; then
25733 cat >>confdefs.h <<_ACEOF
25734 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25740 LIBS=$gl_saved_libs
25742 # Code from module cloexec:
25752 gl_LIBOBJS="$gl_LIBOBJS cloexec.$ac_objext"
25757 cat >>confdefs.h <<\_ACEOF
25758 #define GNULIB_TEST_CLOEXEC 1
25762 # Code from module close:
25773 cat >>confdefs.h <<\_ACEOF
25774 #define GNULIB_TEST_CLOSE 1
25779 # Code from module close-hook:
25780 # Code from module close-stream:
25790 gl_LIBOBJS="$gl_LIBOBJS close-stream.$ac_objext"
25797 cat >>confdefs.h <<_ACEOF
25798 #define GNULIB_CLOSE_STREAM 1
25802 # Code from module closeout:
25812 gl_LIBOBJS="$gl_LIBOBJS closeout.$ac_objext"
25817 # Code from module configmake:
25819 if test "x$datarootdir" = x; then
25820 datarootdir='${datadir}'
25823 if test "x$docdir" = x; then
25824 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
25827 if test "x$htmldir" = x; then
25828 htmldir='${docdir}'
25831 if test "x$dvidir" = x; then
25835 if test "x$pdfdir" = x; then
25839 if test "x$psdir" = x; then
25843 if test "x$lispdir" = x; then
25844 lispdir='${datarootdir}/emacs/site-lisp'
25847 if test "x$localedir" = x; then
25848 localedir='${datarootdir}/locale'
25852 pkglibexecdir='${libexecdir}/${PACKAGE}'
25855 # Code from module d-ino:
25856 { $as_echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
25857 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
25858 if test "${gl_cv_struct_dirent_d_ino+set}" = set; then
25859 $as_echo_n "(cached) " >&6
25861 if test "$cross_compiling" = yes; then
25862 gl_cv_struct_dirent_d_ino=no
25864 cat >conftest.$ac_ext <<_ACEOF
25867 cat confdefs.h >>conftest.$ac_ext
25868 cat >>conftest.$ac_ext <<_ACEOF
25869 /* end confdefs.h. */
25870 #include <sys/types.h>
25871 #include <sys/stat.h>
25872 #include <dirent.h>
25877 DIR *dp = opendir (".");
25885 if (stat (e->d_name, &st) != 0)
25887 if (e->d_ino != st.st_ino)
25895 rm -f conftest$ac_exeext
25896 if { (ac_try="$ac_link"
25897 case "(($ac_try" in
25898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25899 *) ac_try_echo=$ac_try;;
25901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25902 $as_echo "$ac_try_echo") >&5
25903 (eval "$ac_link") 2>&5
25905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25907 { (case "(($ac_try" in
25908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25909 *) ac_try_echo=$ac_try;;
25911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25912 $as_echo "$ac_try_echo") >&5
25913 (eval "$ac_try") 2>&5
25915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916 (exit $ac_status); }; }; then
25917 gl_cv_struct_dirent_d_ino=yes
25919 $as_echo "$as_me: program exited with status $ac_status" >&5
25920 $as_echo "$as_me: failed program was:" >&5
25921 sed 's/^/| /' conftest.$ac_ext >&5
25923 ( exit $ac_status )
25924 gl_cv_struct_dirent_d_ino=no
25926 rm -rf conftest.dSYM
25927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25932 { $as_echo "$as_me:$LINENO: result: $gl_cv_struct_dirent_d_ino" >&5
25933 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
25934 if test $gl_cv_struct_dirent_d_ino = yes; then
25936 cat >>confdefs.h <<\_ACEOF
25937 #define D_INO_IN_DIRENT 1
25943 # Code from module dirent:
25961 if test $gl_cv_have_include_next = yes; then
25962 gl_cv_next_dirent_h='<'dirent.h'>'
25964 { $as_echo "$as_me:$LINENO: checking absolute name of <dirent.h>" >&5
25965 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
25966 if test "${gl_cv_next_dirent_h+set}" = set; then
25967 $as_echo_n "(cached) " >&6
25970 if test $ac_cv_header_dirent_h = yes; then
25973 cat >conftest.$ac_ext <<_ACEOF
25976 cat confdefs.h >>conftest.$ac_ext
25977 cat >>conftest.$ac_ext <<_ACEOF
25978 /* end confdefs.h. */
25979 #include <dirent.h>
25983 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25984 *) gl_absname_cpp="$ac_cpp" ;;
25986 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25987 sed -n '\#/dirent.h#{
25988 s#.*"\(.*/dirent.h\)".*#\1#
25994 gl_cv_next_dirent_h='<'dirent.h'>'
25999 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_dirent_h" >&5
26000 $as_echo "$gl_cv_next_dirent_h" >&6; }
26002 NEXT_DIRENT_H=$gl_cv_next_dirent_h
26004 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26005 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26006 gl_next_as_first_directive='<'dirent.h'>'
26008 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26009 gl_next_as_first_directive=$gl_cv_next_dirent_h
26011 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
26022 for gl_func in alphasort dirfd fdopendir scandir; do
26023 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
26024 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
26025 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
26026 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
26027 $as_echo_n "(cached) " >&6
26029 cat >conftest.$ac_ext <<_ACEOF
26032 cat confdefs.h >>conftest.$ac_ext
26033 cat >>conftest.$ac_ext <<_ACEOF
26034 /* end confdefs.h. */
26035 #include <dirent.h>
26046 rm -f conftest.$ac_objext
26047 if { (ac_try="$ac_compile"
26048 case "(($ac_try" in
26049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26050 *) ac_try_echo=$ac_try;;
26052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26053 $as_echo "$ac_try_echo") >&5
26054 (eval "$ac_compile") 2>conftest.er1
26056 grep -v '^ *+' conftest.er1 >conftest.err
26058 cat conftest.err >&5
26059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26060 (exit $ac_status); } && {
26061 test -z "$ac_c_werror_flag" ||
26062 test ! -s conftest.err
26063 } && test -s conftest.$ac_objext; then
26064 eval "$as_gl_Symbol=yes"
26066 $as_echo "$as_me: failed program was:" >&5
26067 sed 's/^/| /' conftest.$ac_ext >&5
26069 eval "$as_gl_Symbol=no"
26072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26074 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
26075 $as_echo "$as_val"'`
26076 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26077 $as_echo "$ac_res" >&6; }
26078 as_val=`eval 'as_val=${'$as_gl_Symbol'}
26079 $as_echo "$as_val"'`
26080 if test "x$as_val" = x""yes; then
26081 cat >>confdefs.h <<_ACEOF
26082 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26085 eval ac_cv_have_decl_$gl_func=yes
26091 # Code from module dirent-safer:
26107 gl_LIBOBJS="$gl_LIBOBJS opendir-safer.$ac_objext"
26112 cat >>confdefs.h <<_ACEOF
26113 #define GNULIB_DIRENT_SAFER 1
26117 # Code from module dirfd:
26127 for ac_func in dirfd
26129 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26130 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26131 $as_echo_n "checking for $ac_func... " >&6; }
26132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26133 $as_echo_n "(cached) " >&6
26135 cat >conftest.$ac_ext <<_ACEOF
26138 cat confdefs.h >>conftest.$ac_ext
26139 cat >>conftest.$ac_ext <<_ACEOF
26140 /* end confdefs.h. */
26141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26143 #define $ac_func innocuous_$ac_func
26145 /* System header to define __stub macros and hopefully few prototypes,
26146 which can conflict with char $ac_func (); below.
26147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26148 <limits.h> exists even on freestanding compilers. */
26151 # include <limits.h>
26153 # include <assert.h>
26158 /* Override any GCC internal prototype to avoid an error.
26159 Use char because int might match the return type of a GCC
26160 builtin and then its argument prototype would still apply. */
26165 /* The GNU C library defines this for functions which it implements
26166 to always fail with ENOSYS. Some functions are actually named
26167 something starting with __ and the normal name is an alias. */
26168 #if defined __stub_$ac_func || defined __stub___$ac_func
26175 return $ac_func ();
26180 rm -f conftest.$ac_objext conftest$ac_exeext
26181 if { (ac_try="$ac_link"
26182 case "(($ac_try" in
26183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26184 *) ac_try_echo=$ac_try;;
26186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26187 $as_echo "$ac_try_echo") >&5
26188 (eval "$ac_link") 2>conftest.er1
26190 grep -v '^ *+' conftest.er1 >conftest.err
26192 cat conftest.err >&5
26193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26194 (exit $ac_status); } && {
26195 test -z "$ac_c_werror_flag" ||
26196 test ! -s conftest.err
26197 } && test -s conftest$ac_exeext && {
26198 test "$cross_compiling" = yes ||
26199 $as_test_x conftest$ac_exeext
26201 eval "$as_ac_var=yes"
26203 $as_echo "$as_me: failed program was:" >&5
26204 sed 's/^/| /' conftest.$ac_ext >&5
26206 eval "$as_ac_var=no"
26209 rm -rf conftest.dSYM
26210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26211 conftest$ac_exeext conftest.$ac_ext
26213 ac_res=`eval 'as_val=${'$as_ac_var'}
26214 $as_echo "$as_val"'`
26215 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26216 $as_echo "$ac_res" >&6; }
26217 as_val=`eval 'as_val=${'$as_ac_var'}
26218 $as_echo "$as_val"'`
26219 if test "x$as_val" = x""yes; then
26220 cat >>confdefs.h <<_ACEOF
26221 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26227 { $as_echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
26228 $as_echo_n "checking whether dirfd is declared... " >&6; }
26229 if test "${ac_cv_have_decl_dirfd+set}" = set; then
26230 $as_echo_n "(cached) " >&6
26232 cat >conftest.$ac_ext <<_ACEOF
26235 cat confdefs.h >>conftest.$ac_ext
26236 cat >>conftest.$ac_ext <<_ACEOF
26237 /* end confdefs.h. */
26238 #include <sys/types.h>
26239 #include <dirent.h>
26252 rm -f conftest.$ac_objext
26253 if { (ac_try="$ac_compile"
26254 case "(($ac_try" in
26255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26256 *) ac_try_echo=$ac_try;;
26258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26259 $as_echo "$ac_try_echo") >&5
26260 (eval "$ac_compile") 2>conftest.er1
26262 grep -v '^ *+' conftest.er1 >conftest.err
26264 cat conftest.err >&5
26265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26266 (exit $ac_status); } && {
26267 test -z "$ac_c_werror_flag" ||
26268 test ! -s conftest.err
26269 } && test -s conftest.$ac_objext; then
26270 ac_cv_have_decl_dirfd=yes
26272 $as_echo "$as_me: failed program was:" >&5
26273 sed 's/^/| /' conftest.$ac_ext >&5
26275 ac_cv_have_decl_dirfd=no
26278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26280 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
26281 $as_echo "$ac_cv_have_decl_dirfd" >&6; }
26282 if test "x$ac_cv_have_decl_dirfd" = x""yes; then
26284 cat >>confdefs.h <<_ACEOF
26285 #define HAVE_DECL_DIRFD 1
26290 cat >>confdefs.h <<_ACEOF
26291 #define HAVE_DECL_DIRFD 0
26298 if test $ac_cv_have_decl_dirfd = no; then
26302 { $as_echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
26303 $as_echo_n "checking whether dirfd is a macro... " >&6; }
26304 if test "${gl_cv_func_dirfd_macro+set}" = set; then
26305 $as_echo_n "(cached) " >&6
26307 cat >conftest.$ac_ext <<_ACEOF
26310 cat confdefs.h >>conftest.$ac_ext
26311 cat >>conftest.$ac_ext <<_ACEOF
26312 /* end confdefs.h. */
26314 #include <sys/types.h>
26315 #include <dirent.h>
26317 dirent_header_defines_dirfd
26320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26321 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
26322 gl_cv_func_dirfd_macro=yes
26324 gl_cv_func_dirfd_macro=no
26329 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_dirfd_macro" >&5
26330 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
26332 # Use the replacement only if we have no function or macro with that name.
26333 if test $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro = no,no; then
26334 if test $ac_cv_have_decl_dirfd = yes; then
26335 # If the system declares dirfd already, let's declare rpl_dirfd instead.
26346 gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
26348 { $as_echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
26349 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
26350 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then
26351 $as_echo_n "(cached) " >&6
26354 dirfd_save_CFLAGS=$CFLAGS
26355 for ac_expr in d_fd dd_fd; do
26357 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
26358 cat >conftest.$ac_ext <<_ACEOF
26361 cat confdefs.h >>conftest.$ac_ext
26362 cat >>conftest.$ac_ext <<_ACEOF
26363 /* end confdefs.h. */
26365 #include <sys/types.h>
26366 #include <dirent.h>
26370 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
26375 rm -f conftest.$ac_objext
26376 if { (ac_try="$ac_compile"
26377 case "(($ac_try" in
26378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26379 *) ac_try_echo=$ac_try;;
26381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26382 $as_echo "$ac_try_echo") >&5
26383 (eval "$ac_compile") 2>conftest.er1
26385 grep -v '^ *+' conftest.er1 >conftest.err
26387 cat conftest.err >&5
26388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26389 (exit $ac_status); } && {
26390 test -z "$ac_c_werror_flag" ||
26391 test ! -s conftest.err
26392 } && test -s conftest.$ac_objext; then
26396 $as_echo "$as_me: failed program was:" >&5
26397 sed 's/^/| /' conftest.$ac_ext >&5
26402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26403 CFLAGS=$dirfd_save_CFLAGS
26404 test "$dir_fd_found" = yes && break
26406 test "$dir_fd_found" = yes || ac_expr=no_such_member
26408 gl_cv_sys_dir_fd_member_name=$ac_expr
26412 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_dir_fd_member_name" >&5
26413 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
26414 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
26416 cat >>confdefs.h <<_ACEOF
26417 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
26432 cat >>confdefs.h <<\_ACEOF
26433 #define GNULIB_TEST_DIRFD 1
26438 # Code from module dirname:
26449 gl_LIBOBJS="$gl_LIBOBJS basename.$ac_objext"
26459 gl_LIBOBJS="$gl_LIBOBJS dirname.$ac_objext"
26464 cat >>confdefs.h <<_ACEOF
26465 #define GNULIB_DIRNAME 1
26469 # Code from module dirname-lgpl:
26479 gl_LIBOBJS="$gl_LIBOBJS basename-lgpl.$ac_objext"
26489 gl_LIBOBJS="$gl_LIBOBJS dirname-lgpl.$ac_objext"
26499 gl_LIBOBJS="$gl_LIBOBJS stripslash.$ac_objext"
26505 # Code from module dosname:
26506 # Code from module double-slash-root:
26509 { $as_echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
26510 $as_echo_n "checking whether // is distinct from /... " >&6; }
26511 if test "${gl_cv_double_slash_root+set}" = set; then
26512 $as_echo_n "(cached) " >&6
26514 if test x"$cross_compiling" = xyes ; then
26515 # When cross-compiling, there is no way to tell whether // is special
26516 # short of a list of hosts. However, the only known hosts to date
26517 # that have a distinct // are Apollo DomainOS (too old to port to),
26518 # Cygwin, and z/OS. If anyone knows of another system for which // has
26519 # special semantics and is distinct from /, please report it to
26520 # <bug-gnulib@gnu.org>.
26522 *-cygwin | i370-ibm-openedition)
26523 gl_cv_double_slash_root=yes ;;
26525 # Be optimistic and assume that / and // are the same when we
26527 gl_cv_double_slash_root='unknown, assuming no' ;;
26530 set x `ls -di / // 2>/dev/null`
26531 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
26532 gl_cv_double_slash_root=no
26534 gl_cv_double_slash_root=yes
26538 { $as_echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
26539 $as_echo "$gl_cv_double_slash_root" >&6; }
26540 if test "$gl_cv_double_slash_root" = yes; then
26542 cat >>confdefs.h <<\_ACEOF
26543 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
26548 # Code from module dup2:
26560 if test $ac_cv_func_dup2 = no; then
26570 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
26573 { $as_echo "$as_me:$LINENO: checking whether dup2 works" >&5
26574 $as_echo_n "checking whether dup2 works... " >&6; }
26575 if test "${gl_cv_func_dup2_works+set}" = set; then
26576 $as_echo_n "(cached) " >&6
26578 if test "$cross_compiling" = yes; then
26580 mingw*) # on this platform, dup2 always returns 0 for success
26581 gl_cv_func_dup2_works=no;;
26582 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
26583 gl_cv_func_dup2_works=no;;
26584 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
26585 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
26586 gl_cv_func_dup2_works=no;;
26587 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
26588 gl_cv_func_dup2_works=no;;
26589 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
26590 gl_cv_func_dup2_works=no;;
26591 *) gl_cv_func_dup2_works=yes;;
26594 cat >conftest.$ac_ext <<_ACEOF
26598 cat confdefs.h >>conftest.$ac_ext
26599 cat >>conftest.$ac_ext <<_ACEOF
26600 /* end confdefs.h. */
26601 #include <unistd.h>
26609 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
26612 if (dup2 (1, 1) == 0)
26615 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
26619 if (dup2 (0, 0) != -1)
26621 /* Many gnulib modules require POSIX conformance of EBADF. */
26622 if (dup2 (2, 1000000) == -1 && errno != EBADF)
26631 rm -f conftest$ac_exeext
26632 if { (ac_try="$ac_link"
26633 case "(($ac_try" in
26634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26635 *) ac_try_echo=$ac_try;;
26637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26638 $as_echo "$ac_try_echo") >&5
26639 (eval "$ac_link") 2>&5
26641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26643 { (case "(($ac_try" in
26644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26645 *) ac_try_echo=$ac_try;;
26647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26648 $as_echo "$ac_try_echo") >&5
26649 (eval "$ac_try") 2>&5
26651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26652 (exit $ac_status); }; }; then
26653 gl_cv_func_dup2_works=yes
26655 $as_echo "$as_me: program exited with status $ac_status" >&5
26656 $as_echo "$as_me: failed program was:" >&5
26657 sed 's/^/| /' conftest.$ac_ext >&5
26659 ( exit $ac_status )
26660 gl_cv_func_dup2_works=no
26662 rm -rf conftest.dSYM
26663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26669 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_dup2_works" >&5
26670 $as_echo "$gl_cv_func_dup2_works" >&6; }
26671 if test "$gl_cv_func_dup2_works" = no; then
26674 if test $ac_cv_func_dup2 = yes; then
26685 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
26698 cat >>confdefs.h <<\_ACEOF
26699 #define GNULIB_TEST_DUP2 1
26704 # Code from module environ:
26713 cat >>confdefs.h <<\_ACEOF
26714 #define GNULIB_TEST_ENVIRON 1
26719 # Code from module errno:
26721 # Code from module error:
26736 { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
26737 $as_echo_n "checking for error_at_line... " >&6; }
26738 if test "${ac_cv_lib_error_at_line+set}" = set; then
26739 $as_echo_n "(cached) " >&6
26741 cat >conftest.$ac_ext <<_ACEOF
26744 cat confdefs.h >>conftest.$ac_ext
26745 cat >>conftest.$ac_ext <<_ACEOF
26746 /* end confdefs.h. */
26751 error_at_line (0, 0, "", 0, "an error occurred");
26756 rm -f conftest.$ac_objext conftest$ac_exeext
26757 if { (ac_try="$ac_link"
26758 case "(($ac_try" in
26759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26760 *) ac_try_echo=$ac_try;;
26762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26763 $as_echo "$ac_try_echo") >&5
26764 (eval "$ac_link") 2>conftest.er1
26766 grep -v '^ *+' conftest.er1 >conftest.err
26768 cat conftest.err >&5
26769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26770 (exit $ac_status); } && {
26771 test -z "$ac_c_werror_flag" ||
26772 test ! -s conftest.err
26773 } && test -s conftest$ac_exeext && {
26774 test "$cross_compiling" = yes ||
26775 $as_test_x conftest$ac_exeext
26777 ac_cv_lib_error_at_line=yes
26779 $as_echo "$as_me: failed program was:" >&5
26780 sed 's/^/| /' conftest.$ac_ext >&5
26782 ac_cv_lib_error_at_line=no
26785 rm -rf conftest.dSYM
26786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26787 conftest$ac_exeext conftest.$ac_ext
26789 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
26790 $as_echo "$ac_cv_lib_error_at_line" >&6; }
26791 if test $ac_cv_lib_error_at_line = no; then
26800 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
26812 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
26816 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
26818 # Code from module exclude:
26828 gl_LIBOBJS="$gl_LIBOBJS exclude.$ac_objext"
26831 # Code from module exitfail:
26832 # Code from module extensions:
26833 # Code from module fchdir:
26843 if test $ac_cv_have_decl_fchdir = no; then
26853 if test $ac_cv_func_fchdir = no; then
26863 gl_LIBOBJS="$gl_LIBOBJS fchdir.$ac_objext"
26867 cat >>confdefs.h <<\_ACEOF
26868 #define REPLACE_FCHDIR 1
26885 gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
26904 gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
26917 gl_LIBOBJS="$gl_LIBOBJS fclose.$ac_objext"
26923 if test $ac_cv_func_dup2 = yes; then
26934 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
26945 if test $ac_cv_func_fcntl = no; then
26958 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
26964 { $as_echo "$as_me:$LINENO: checking whether open can visit directories" >&5
26965 $as_echo_n "checking whether open can visit directories... " >&6; }
26966 if test "${gl_cv_func_open_directory_works+set}" = set; then
26967 $as_echo_n "(cached) " >&6
26969 if test "$cross_compiling" = yes; then
26970 gl_cv_func_open_directory_works="guessing no"
26972 cat >conftest.$ac_ext <<_ACEOF
26975 cat confdefs.h >>conftest.$ac_ext
26976 cat >>conftest.$ac_ext <<_ACEOF
26977 /* end confdefs.h. */
26983 return open(".", O_RDONLY) < 0;
26988 rm -f conftest$ac_exeext
26989 if { (ac_try="$ac_link"
26990 case "(($ac_try" in
26991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26992 *) ac_try_echo=$ac_try;;
26994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26995 $as_echo "$ac_try_echo") >&5
26996 (eval "$ac_link") 2>&5
26998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27000 { (case "(($ac_try" in
27001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27002 *) ac_try_echo=$ac_try;;
27004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27005 $as_echo "$ac_try_echo") >&5
27006 (eval "$ac_try") 2>&5
27008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27009 (exit $ac_status); }; }; then
27010 gl_cv_func_open_directory_works=yes
27012 $as_echo "$as_me: program exited with status $ac_status" >&5
27013 $as_echo "$as_me: failed program was:" >&5
27014 sed 's/^/| /' conftest.$ac_ext >&5
27016 ( exit $ac_status )
27017 gl_cv_func_open_directory_works=no
27019 rm -rf conftest.dSYM
27020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27025 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_open_directory_works" >&5
27026 $as_echo "$gl_cv_func_open_directory_works" >&6; }
27027 if test "$gl_cv_func_open_directory_works" != yes; then
27029 cat >>confdefs.h <<\_ACEOF
27030 #define REPLACE_OPEN_DIRECTORY 1
27044 cat >>confdefs.h <<\_ACEOF
27045 #define GNULIB_TEST_FCHDIR 1
27050 # Code from module fclose:
27060 cat >>confdefs.h <<\_ACEOF
27061 #define GNULIB_TEST_FCLOSE 1
27066 # Code from module fcntl:
27077 if test $ac_cv_func_fcntl = no; then
27086 if test $ac_cv_func_fcntl = no; then
27099 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
27103 { $as_echo "$as_me:$LINENO: checking whether fcntl handles F_DUPFD correctly" >&5
27104 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
27105 if test "${gl_cv_func_fcntl_f_dupfd_works+set}" = set; then
27106 $as_echo_n "(cached) " >&6
27108 if test "$cross_compiling" = yes; then
27109 # Guess that it works on glibc systems
27110 case $host_os in #((
27111 *-gnu*) gl_cv_func_fcntl_f_dupfd_works="guessing yes";;
27112 *) gl_cv_func_fcntl_f_dupfd_works="guessing no";;
27115 cat >conftest.$ac_ext <<_ACEOF
27118 cat confdefs.h >>conftest.$ac_ext
27119 cat >>conftest.$ac_ext <<_ACEOF
27120 /* end confdefs.h. */
27129 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
27130 if (errno != EINVAL) result |= 2;
27137 rm -f conftest$ac_exeext
27138 if { (ac_try="$ac_link"
27139 case "(($ac_try" in
27140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27141 *) ac_try_echo=$ac_try;;
27143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27144 $as_echo "$ac_try_echo") >&5
27145 (eval "$ac_link") 2>&5
27147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27149 { (case "(($ac_try" in
27150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27151 *) ac_try_echo=$ac_try;;
27153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27154 $as_echo "$ac_try_echo") >&5
27155 (eval "$ac_try") 2>&5
27157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158 (exit $ac_status); }; }; then
27159 gl_cv_func_fcntl_f_dupfd_works=yes
27161 $as_echo "$as_me: program exited with status $ac_status" >&5
27162 $as_echo "$as_me: failed program was:" >&5
27163 sed 's/^/| /' conftest.$ac_ext >&5
27165 ( exit $ac_status )
27166 gl_cv_func_fcntl_f_dupfd_works=no
27168 rm -rf conftest.dSYM
27169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27174 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
27175 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
27176 case $gl_cv_func_fcntl_f_dupfd_works in
27186 if test $ac_cv_func_fcntl = no; then
27199 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
27203 cat >>confdefs.h <<\_ACEOF
27204 #define FCNTL_DUPFD_BUGGY 1
27209 { $as_echo "$as_me:$LINENO: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
27210 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
27211 if test "${gl_cv_func_fcntl_f_dupfd_cloexec+set}" = set; then
27212 $as_echo_n "(cached) " >&6
27214 cat >conftest.$ac_ext <<_ACEOF
27217 cat confdefs.h >>conftest.$ac_ext
27218 cat >>conftest.$ac_ext <<_ACEOF
27219 /* end confdefs.h. */
27222 #ifndef F_DUPFD_CLOEXEC
27234 rm -f conftest.$ac_objext
27235 if { (ac_try="$ac_compile"
27236 case "(($ac_try" in
27237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27238 *) ac_try_echo=$ac_try;;
27240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27241 $as_echo "$ac_try_echo") >&5
27242 (eval "$ac_compile") 2>conftest.er1
27244 grep -v '^ *+' conftest.er1 >conftest.err
27246 cat conftest.err >&5
27247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27248 (exit $ac_status); } && {
27249 test -z "$ac_c_werror_flag" ||
27250 test ! -s conftest.err
27251 } && test -s conftest.$ac_objext; then
27252 cat >conftest.$ac_ext <<_ACEOF
27255 cat confdefs.h >>conftest.$ac_ext
27256 cat >>conftest.$ac_ext <<_ACEOF
27257 /* end confdefs.h. */
27260 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
27261 it to support the semantics on older kernels that failed with EINVAL. */
27273 rm -f conftest.$ac_objext
27274 if { (ac_try="$ac_compile"
27275 case "(($ac_try" in
27276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27277 *) ac_try_echo=$ac_try;;
27279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27280 $as_echo "$ac_try_echo") >&5
27281 (eval "$ac_compile") 2>conftest.er1
27283 grep -v '^ *+' conftest.er1 >conftest.err
27285 cat conftest.err >&5
27286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27287 (exit $ac_status); } && {
27288 test -z "$ac_c_werror_flag" ||
27289 test ! -s conftest.err
27290 } && test -s conftest.$ac_objext; then
27291 gl_cv_func_fcntl_f_dupfd_cloexec=yes
27293 $as_echo "$as_me: failed program was:" >&5
27294 sed 's/^/| /' conftest.$ac_ext >&5
27296 gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
27299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27301 $as_echo "$as_me: failed program was:" >&5
27302 sed 's/^/| /' conftest.$ac_ext >&5
27304 gl_cv_func_fcntl_f_dupfd_cloexec=no
27307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27309 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
27310 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
27311 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
27320 if test $ac_cv_func_fcntl = no; then
27333 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
27346 cat >>confdefs.h <<\_ACEOF
27347 #define GNULIB_TEST_FCNTL 1
27352 # Code from module fcntl-h:
27364 if test $gl_cv_have_include_next = yes; then
27365 gl_cv_next_fcntl_h='<'fcntl.h'>'
27367 { $as_echo "$as_me:$LINENO: checking absolute name of <fcntl.h>" >&5
27368 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
27369 if test "${gl_cv_next_fcntl_h+set}" = set; then
27370 $as_echo_n "(cached) " >&6
27373 cat >conftest.$ac_ext <<_ACEOF
27376 cat confdefs.h >>conftest.$ac_ext
27377 cat >>conftest.$ac_ext <<_ACEOF
27378 /* end confdefs.h. */
27383 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27384 *) gl_absname_cpp="$ac_cpp" ;;
27386 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27387 sed -n '\#/fcntl.h#{
27388 s#.*"\(.*/fcntl.h\)".*#\1#
27396 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_fcntl_h" >&5
27397 $as_echo "$gl_cv_next_fcntl_h" >&6; }
27399 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
27401 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27402 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27403 gl_next_as_first_directive='<'fcntl.h'>'
27405 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27406 gl_next_as_first_directive=$gl_cv_next_fcntl_h
27408 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
27417 for gl_func in fcntl openat; do
27418 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
27419 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
27420 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
27421 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
27422 $as_echo_n "(cached) " >&6
27424 cat >conftest.$ac_ext <<_ACEOF
27427 cat confdefs.h >>conftest.$ac_ext
27428 cat >>conftest.$ac_ext <<_ACEOF
27429 /* end confdefs.h. */
27441 rm -f conftest.$ac_objext
27442 if { (ac_try="$ac_compile"
27443 case "(($ac_try" in
27444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27445 *) ac_try_echo=$ac_try;;
27447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27448 $as_echo "$ac_try_echo") >&5
27449 (eval "$ac_compile") 2>conftest.er1
27451 grep -v '^ *+' conftest.er1 >conftest.err
27453 cat conftest.err >&5
27454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27455 (exit $ac_status); } && {
27456 test -z "$ac_c_werror_flag" ||
27457 test ! -s conftest.err
27458 } && test -s conftest.$ac_objext; then
27459 eval "$as_gl_Symbol=yes"
27461 $as_echo "$as_me: failed program was:" >&5
27462 sed 's/^/| /' conftest.$ac_ext >&5
27464 eval "$as_gl_Symbol=no"
27467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27469 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
27470 $as_echo "$as_val"'`
27471 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27472 $as_echo "$ac_res" >&6; }
27473 as_val=`eval 'as_val=${'$as_gl_Symbol'}
27474 $as_echo "$as_val"'`
27475 if test "x$as_val" = x""yes; then
27476 cat >>confdefs.h <<_ACEOF
27477 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
27480 eval ac_cv_have_decl_$gl_func=yes
27486 # Code from module fdopendir:
27489 { $as_echo "$as_me:$LINENO: checking whether fdopendir is declared" >&5
27490 $as_echo_n "checking whether fdopendir is declared... " >&6; }
27491 if test "${ac_cv_have_decl_fdopendir+set}" = set; then
27492 $as_echo_n "(cached) " >&6
27494 cat >conftest.$ac_ext <<_ACEOF
27497 cat confdefs.h >>conftest.$ac_ext
27498 cat >>conftest.$ac_ext <<_ACEOF
27499 /* end confdefs.h. */
27501 #include <dirent.h>
27515 rm -f conftest.$ac_objext
27516 if { (ac_try="$ac_compile"
27517 case "(($ac_try" in
27518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27519 *) ac_try_echo=$ac_try;;
27521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27522 $as_echo "$ac_try_echo") >&5
27523 (eval "$ac_compile") 2>conftest.er1
27525 grep -v '^ *+' conftest.er1 >conftest.err
27527 cat conftest.err >&5
27528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27529 (exit $ac_status); } && {
27530 test -z "$ac_c_werror_flag" ||
27531 test ! -s conftest.err
27532 } && test -s conftest.$ac_objext; then
27533 ac_cv_have_decl_fdopendir=yes
27535 $as_echo "$as_me: failed program was:" >&5
27536 sed 's/^/| /' conftest.$ac_ext >&5
27538 ac_cv_have_decl_fdopendir=no
27541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27543 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdopendir" >&5
27544 $as_echo "$ac_cv_have_decl_fdopendir" >&6; }
27545 if test "x$ac_cv_have_decl_fdopendir" = x""yes; then
27547 cat >>confdefs.h <<_ACEOF
27548 #define HAVE_DECL_FDOPENDIR 1
27553 cat >>confdefs.h <<_ACEOF
27554 #define HAVE_DECL_FDOPENDIR 0
27557 HAVE_DECL_FDOPENDIR=0
27567 if test $ac_cv_func_fdopendir = no; then
27576 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
27586 gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
27593 { $as_echo "$as_me:$LINENO: checking whether fdopendir works" >&5
27594 $as_echo_n "checking whether fdopendir works... " >&6; }
27595 if test "${gl_cv_func_fdopendir_works+set}" = set; then
27596 $as_echo_n "(cached) " >&6
27598 if test "$cross_compiling" = yes; then
27599 gl_cv_func_fdopendir_works="guessing no"
27601 cat >conftest.$ac_ext <<_ACEOF
27604 cat confdefs.h >>conftest.$ac_ext
27605 cat >>conftest.$ac_ext <<_ACEOF
27606 /* end confdefs.h. */
27608 #include <dirent.h>
27610 #include <unistd.h>
27611 #if !HAVE_DECL_FDOPENDIR
27612 extern DIR *fdopendir (int);
27619 int fd = open ("conftest.c", O_RDONLY);
27620 if (fd < 0) result |= 1;
27621 if (fdopendir (fd)) result |= 2;
27622 if (close (fd)) result |= 4;
27628 rm -f conftest$ac_exeext
27629 if { (ac_try="$ac_link"
27630 case "(($ac_try" in
27631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27632 *) ac_try_echo=$ac_try;;
27634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27635 $as_echo "$ac_try_echo") >&5
27636 (eval "$ac_link") 2>&5
27638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27640 { (case "(($ac_try" in
27641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27642 *) ac_try_echo=$ac_try;;
27644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27645 $as_echo "$ac_try_echo") >&5
27646 (eval "$ac_try") 2>&5
27648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27649 (exit $ac_status); }; }; then
27650 gl_cv_func_fdopendir_works=yes
27652 $as_echo "$as_me: program exited with status $ac_status" >&5
27653 $as_echo "$as_me: failed program was:" >&5
27654 sed 's/^/| /' conftest.$ac_ext >&5
27656 ( exit $ac_status )
27657 gl_cv_func_fdopendir_works=no
27659 rm -rf conftest.dSYM
27660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27665 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fdopendir_works" >&5
27666 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
27667 if test "$gl_cv_func_fdopendir_works" != yes; then
27668 REPLACE_FDOPENDIR=1
27680 gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
27692 cat >>confdefs.h <<\_ACEOF
27693 #define GNULIB_TEST_FDOPENDIR 1
27700 cat >>confdefs.h <<_ACEOF
27701 #define GNULIB_FDOPENDIR 1
27705 # Code from module fdutimensat:
27708 cat >>confdefs.h <<_ACEOF
27709 #define GNULIB_FDUTIMENSAT 1
27713 # Code from module fileblocks:
27715 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
27716 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
27717 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
27718 $as_echo_n "(cached) " >&6
27720 cat >conftest.$ac_ext <<_ACEOF
27723 cat confdefs.h >>conftest.$ac_ext
27724 cat >>conftest.$ac_ext <<_ACEOF
27725 /* end confdefs.h. */
27726 $ac_includes_default
27730 static struct stat ac_aggr;
27731 if (ac_aggr.st_blocks)
27737 rm -f conftest.$ac_objext
27738 if { (ac_try="$ac_compile"
27739 case "(($ac_try" in
27740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27741 *) ac_try_echo=$ac_try;;
27743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27744 $as_echo "$ac_try_echo") >&5
27745 (eval "$ac_compile") 2>conftest.er1
27747 grep -v '^ *+' conftest.er1 >conftest.err
27749 cat conftest.err >&5
27750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751 (exit $ac_status); } && {
27752 test -z "$ac_c_werror_flag" ||
27753 test ! -s conftest.err
27754 } && test -s conftest.$ac_objext; then
27755 ac_cv_member_struct_stat_st_blocks=yes
27757 $as_echo "$as_me: failed program was:" >&5
27758 sed 's/^/| /' conftest.$ac_ext >&5
27760 cat >conftest.$ac_ext <<_ACEOF
27763 cat confdefs.h >>conftest.$ac_ext
27764 cat >>conftest.$ac_ext <<_ACEOF
27765 /* end confdefs.h. */
27766 $ac_includes_default
27770 static struct stat ac_aggr;
27771 if (sizeof ac_aggr.st_blocks)
27777 rm -f conftest.$ac_objext
27778 if { (ac_try="$ac_compile"
27779 case "(($ac_try" in
27780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27781 *) ac_try_echo=$ac_try;;
27783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27784 $as_echo "$ac_try_echo") >&5
27785 (eval "$ac_compile") 2>conftest.er1
27787 grep -v '^ *+' conftest.er1 >conftest.err
27789 cat conftest.err >&5
27790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791 (exit $ac_status); } && {
27792 test -z "$ac_c_werror_flag" ||
27793 test ! -s conftest.err
27794 } && test -s conftest.$ac_objext; then
27795 ac_cv_member_struct_stat_st_blocks=yes
27797 $as_echo "$as_me: failed program was:" >&5
27798 sed 's/^/| /' conftest.$ac_ext >&5
27800 ac_cv_member_struct_stat_st_blocks=no
27803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27808 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
27809 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
27810 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
27812 cat >>confdefs.h <<_ACEOF
27813 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27817 cat >>confdefs.h <<\_ACEOF
27818 #define HAVE_ST_BLOCKS 1
27830 gl_LIBOBJS="$gl_LIBOBJS fileblocks.$ac_objext"
27835 if test $ac_cv_member_struct_stat_st_blocks = no; then
27847 # Code from module filenamecat-lgpl:
27857 gl_LIBOBJS="$gl_LIBOBJS filenamecat-lgpl.$ac_objext"
27867 # Code from module float:
27873 beos* | openbsd* | mirbsd*)
27883 if test $gl_cv_have_include_next = yes; then
27884 gl_cv_next_float_h='<'float.h'>'
27886 { $as_echo "$as_me:$LINENO: checking absolute name of <float.h>" >&5
27887 $as_echo_n "checking absolute name of <float.h>... " >&6; }
27888 if test "${gl_cv_next_float_h+set}" = set; then
27889 $as_echo_n "(cached) " >&6
27892 cat >conftest.$ac_ext <<_ACEOF
27895 cat confdefs.h >>conftest.$ac_ext
27896 cat >>conftest.$ac_ext <<_ACEOF
27897 /* end confdefs.h. */
27902 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27903 *) gl_absname_cpp="$ac_cpp" ;;
27905 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27906 sed -n '\#/float.h#{
27907 s#.*"\(.*/float.h\)".*#\1#
27915 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_float_h" >&5
27916 $as_echo "$gl_cv_next_float_h" >&6; }
27918 NEXT_FLOAT_H=$gl_cv_next_float_h
27920 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27921 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27922 gl_next_as_first_directive='<'float.h'>'
27924 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27925 gl_next_as_first_directive=$gl_cv_next_float_h
27927 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
27936 # Code from module fnmatch:
27943 gl_fnmatch_required_lowercase=`
27944 echo $gl_fnmatch_required | tr '[A-Z]' '[a-z]'
27946 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
27947 { $as_echo "$as_me:$LINENO: checking for working $gl_fnmatch_required fnmatch" >&5
27948 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
27949 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then
27950 $as_echo_n "(cached) " >&6
27952 if test $gl_fnmatch_required = GNU; then
27953 gl_fnmatch_gnu_start=
27954 gl_fnmatch_gnu_end=
27956 gl_fnmatch_gnu_start='#if 0'
27957 gl_fnmatch_gnu_end='#endif'
27959 if test "$cross_compiling" = yes; then
27960 eval "$gl_fnmatch_cache_var=\"guessing no\""
27962 cat >conftest.$ac_ext <<_ACEOF
27965 cat confdefs.h >>conftest.$ac_ext
27966 cat >>conftest.$ac_ext <<_ACEOF
27967 /* end confdefs.h. */
27968 #include <fnmatch.h>
27970 y (char const *pattern, char const *string, int flags)
27972 return fnmatch (pattern, string, flags) == 0;
27975 n (char const *pattern, char const *string, int flags)
27977 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
27983 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
27984 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
27985 static char const A_1[] = { 'A' - 1, 0 };
27986 static char const A01[] = { 'A' + 1, 0 };
27987 static char const a_1[] = { 'a' - 1, 0 };
27988 static char const a01[] = { 'a' + 1, 0 };
27989 static char const bs_1[] = { '\\\\' - 1, 0 };
27990 static char const bs01[] = { '\\\\' + 1, 0 };
27992 if (!n ("a*", "", 0))
27994 if (!y ("a*", "abc", 0))
27996 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
27998 if (!y ("a\\\\bc", "abc", 0))
28000 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
28002 if (!y ("*x", ".x", 0))
28004 if (!n ("*x", ".x", FNM_PERIOD))
28006 if (!y (Apat, "\\\\", 0))
28008 if (!y (Apat, "A", 0))
28010 if (!y (apat, "\\\\", 0))
28012 if (!y (apat, "a", 0))
28014 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
28016 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
28018 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
28020 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
28022 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
28024 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
28026 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
28028 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
28030 $gl_fnmatch_gnu_start
28031 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
28033 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
28035 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
28037 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
28039 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
28041 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
28043 $gl_fnmatch_gnu_end
28050 rm -f conftest$ac_exeext
28051 if { (ac_try="$ac_link"
28052 case "(($ac_try" in
28053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28054 *) ac_try_echo=$ac_try;;
28056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28057 $as_echo "$ac_try_echo") >&5
28058 (eval "$ac_link") 2>&5
28060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28062 { (case "(($ac_try" in
28063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28064 *) ac_try_echo=$ac_try;;
28066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28067 $as_echo "$ac_try_echo") >&5
28068 (eval "$ac_try") 2>&5
28070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28071 (exit $ac_status); }; }; then
28072 eval "$gl_fnmatch_cache_var=yes"
28074 $as_echo "$as_me: program exited with status $ac_status" >&5
28075 $as_echo "$as_me: failed program was:" >&5
28076 sed 's/^/| /' conftest.$ac_ext >&5
28078 ( exit $ac_status )
28079 eval "$gl_fnmatch_cache_var=no"
28081 rm -rf conftest.dSYM
28082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28088 ac_res=`eval 'as_val=${'$gl_fnmatch_cache_var'}
28089 $as_echo "$as_val"'`
28090 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28091 $as_echo "$ac_res" >&6; }
28092 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
28093 if test "$gl_fnmatch_result" = yes; then
28094 rm -f "$gl_source_base/fnmatch.h"
28096 FNMATCH_H=fnmatch.h
28105 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
28108 cat >>confdefs.h <<_ACEOF
28109 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
28113 { $as_echo "$as_me:$LINENO: checking whether isblank is declared" >&5
28114 $as_echo_n "checking whether isblank is declared... " >&6; }
28115 if test "${ac_cv_have_decl_isblank+set}" = set; then
28116 $as_echo_n "(cached) " >&6
28118 cat >conftest.$ac_ext <<_ACEOF
28121 cat confdefs.h >>conftest.$ac_ext
28122 cat >>conftest.$ac_ext <<_ACEOF
28123 /* end confdefs.h. */
28137 rm -f conftest.$ac_objext
28138 if { (ac_try="$ac_compile"
28139 case "(($ac_try" in
28140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28141 *) ac_try_echo=$ac_try;;
28143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28144 $as_echo "$ac_try_echo") >&5
28145 (eval "$ac_compile") 2>conftest.er1
28147 grep -v '^ *+' conftest.er1 >conftest.err
28149 cat conftest.err >&5
28150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28151 (exit $ac_status); } && {
28152 test -z "$ac_c_werror_flag" ||
28153 test ! -s conftest.err
28154 } && test -s conftest.$ac_objext; then
28155 ac_cv_have_decl_isblank=yes
28157 $as_echo "$as_me: failed program was:" >&5
28158 sed 's/^/| /' conftest.$ac_ext >&5
28160 ac_cv_have_decl_isblank=no
28163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28165 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
28166 $as_echo "$ac_cv_have_decl_isblank" >&6; }
28167 if test "x$ac_cv_have_decl_isblank" = x""yes; then
28169 cat >>confdefs.h <<_ACEOF
28170 #define HAVE_DECL_ISBLANK 1
28175 cat >>confdefs.h <<_ACEOF
28176 #define HAVE_DECL_ISBLANK 0
28212 # Code from module fnmatch-gnu:
28218 # Code from module fpending:
28233 # include <stdio.h>
28234 # if HAVE_STDIO_EXT_H
28235 # include <stdio_ext.h>
28238 { $as_echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
28239 $as_echo_n "checking whether __fpending is declared... " >&6; }
28240 if test "${ac_cv_have_decl___fpending+set}" = set; then
28241 $as_echo_n "(cached) " >&6
28243 cat >conftest.$ac_ext <<_ACEOF
28246 cat confdefs.h >>conftest.$ac_ext
28247 cat >>conftest.$ac_ext <<_ACEOF
28248 /* end confdefs.h. */
28262 rm -f conftest.$ac_objext
28263 if { (ac_try="$ac_compile"
28264 case "(($ac_try" in
28265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28266 *) ac_try_echo=$ac_try;;
28268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28269 $as_echo "$ac_try_echo") >&5
28270 (eval "$ac_compile") 2>conftest.er1
28272 grep -v '^ *+' conftest.er1 >conftest.err
28274 cat conftest.err >&5
28275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28276 (exit $ac_status); } && {
28277 test -z "$ac_c_werror_flag" ||
28278 test ! -s conftest.err
28279 } && test -s conftest.$ac_objext; then
28280 ac_cv_have_decl___fpending=yes
28282 $as_echo "$as_me: failed program was:" >&5
28283 sed 's/^/| /' conftest.$ac_ext >&5
28285 ac_cv_have_decl___fpending=no
28288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28290 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
28291 $as_echo "$ac_cv_have_decl___fpending" >&6; }
28292 if test "x$ac_cv_have_decl___fpending" = x""yes; then
28294 cat >>confdefs.h <<_ACEOF
28295 #define HAVE_DECL___FPENDING 1
28300 cat >>confdefs.h <<_ACEOF
28301 #define HAVE_DECL___FPENDING 0
28308 if test $ac_cv_func___fpending = no; then
28309 { $as_echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
28310 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
28311 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
28312 $as_echo_n "(cached) " >&6
28318 'fp->_IO_write_ptr - fp->_IO_write_base' \
28320 '# traditional Unix' \
28321 'fp->_ptr - fp->_base' \
28324 'fp->_p - fp->_bf._base' \
28326 '# SCO, Unixware' \
28327 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
28330 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
28333 'fp->__bufp - fp->__buffer' \
28335 '# old glibc iostream?' \
28336 'fp->_pptr - fp->_pbase' \
28339 'fp->_ptr - fp->_buffer' \
28342 '(*fp)->_ptr - (*fp)->_base' \
28344 '# e.g., DGUX R4.11; the info is not available' \
28348 # Skip each embedded comment.
28349 case "$ac_expr" in '#'*) continue;; esac
28351 cat >conftest.$ac_ext <<_ACEOF
28354 cat confdefs.h >>conftest.$ac_ext
28355 cat >>conftest.$ac_ext <<_ACEOF
28356 /* end confdefs.h. */
28361 FILE *fp = stdin; (void) ($ac_expr);
28366 rm -f conftest.$ac_objext
28367 if { (ac_try="$ac_compile"
28368 case "(($ac_try" in
28369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28370 *) ac_try_echo=$ac_try;;
28372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28373 $as_echo "$ac_try_echo") >&5
28374 (eval "$ac_compile") 2>conftest.er1
28376 grep -v '^ *+' conftest.er1 >conftest.err
28378 cat conftest.err >&5
28379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28380 (exit $ac_status); } && {
28381 test -z "$ac_c_werror_flag" ||
28382 test ! -s conftest.err
28383 } && test -s conftest.$ac_objext; then
28387 $as_echo "$as_me: failed program was:" >&5
28388 sed 's/^/| /' conftest.$ac_ext >&5
28393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28394 test "$fp_done" = yes && break
28397 ac_cv_sys_pending_output_n_bytes=$ac_expr
28401 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
28402 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
28404 cat >>confdefs.h <<_ACEOF
28405 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
28416 gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
28420 # Code from module fseeko:
28430 if test $ac_cv_have_decl_fseeko = no; then
28434 if test $gl_cv_func_fseeko = no; then
28439 if test $gl_cv_func_fseeko = yes; then
28450 gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
28455 if test $gl_cv_var_stdin_large_offset = no; then
28459 if test $gl_cv_func_fseeko = yes; then
28470 gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
28484 cat >>confdefs.h <<\_ACEOF
28485 #define GNULIB_TEST_FSEEKO 1
28490 # Code from module full-write:
28491 # Code from module futimens:
28501 if test $ac_cv_func_futimens = no; then
28511 gl_LIBOBJS="$gl_LIBOBJS futimens.$ac_objext"
28514 { $as_echo "$as_me:$LINENO: checking whether futimens works" >&5
28515 $as_echo_n "checking whether futimens works... " >&6; }
28516 if test "${gl_cv_func_futimens_works+set}" = set; then
28517 $as_echo_n "(cached) " >&6
28519 if test "$cross_compiling" = yes; then
28520 gl_cv_func_futimens_works="guessing no"
28522 cat >conftest.$ac_ext <<_ACEOF
28525 cat confdefs.h >>conftest.$ac_ext
28526 cat >>conftest.$ac_ext <<_ACEOF
28527 /* end confdefs.h. */
28530 #include <sys/stat.h>
28531 #include <unistd.h>
28537 struct timespec ts[2] = { { 1, UTIME_OMIT }, { 1, UTIME_NOW } };
28538 int fd = creat ("conftest.file", 0600);
28540 if (fd < 0) return 1;
28542 if (futimens (AT_FDCWD, NULL) == 0) return 2;
28543 if (errno != EBADF) return 3;
28544 if (futimens (fd, ts)) return 4;
28546 ts[0].tv_nsec = UTIME_NOW;
28547 ts[1].tv_nsec = UTIME_OMIT;
28548 if (futimens (fd, ts)) return 5;
28549 if (fstat (fd, &st)) return 6;
28550 if (st.st_ctime < st.st_atime) return 7;
28556 rm -f conftest$ac_exeext
28557 if { (ac_try="$ac_link"
28558 case "(($ac_try" in
28559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28560 *) ac_try_echo=$ac_try;;
28562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28563 $as_echo "$ac_try_echo") >&5
28564 (eval "$ac_link") 2>&5
28566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28568 { (case "(($ac_try" in
28569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28570 *) ac_try_echo=$ac_try;;
28572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28573 $as_echo "$ac_try_echo") >&5
28574 (eval "$ac_try") 2>&5
28576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28577 (exit $ac_status); }; }; then
28578 cat >conftest.$ac_ext <<_ACEOF
28581 cat confdefs.h >>conftest.$ac_ext
28582 cat >>conftest.$ac_ext <<_ACEOF
28583 /* end confdefs.h. */
28586 /* The Linux kernel added futimens in 2.6.22, but has bugs with UTIME_OMIT
28587 in several file systems as recently as 2.6.32. Always replace futimens
28588 to support older kernels. */
28600 rm -f conftest.$ac_objext
28601 if { (ac_try="$ac_compile"
28602 case "(($ac_try" in
28603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28604 *) ac_try_echo=$ac_try;;
28606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28607 $as_echo "$ac_try_echo") >&5
28608 (eval "$ac_compile") 2>conftest.er1
28610 grep -v '^ *+' conftest.er1 >conftest.err
28612 cat conftest.err >&5
28613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614 (exit $ac_status); } && {
28615 test -z "$ac_c_werror_flag" ||
28616 test ! -s conftest.err
28617 } && test -s conftest.$ac_objext; then
28618 gl_cv_func_futimens_works=yes
28620 $as_echo "$as_me: failed program was:" >&5
28621 sed 's/^/| /' conftest.$ac_ext >&5
28623 gl_cv_func_futimens_works="needs runtime check"
28626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28628 $as_echo "$as_me: program exited with status $ac_status" >&5
28629 $as_echo "$as_me: failed program was:" >&5
28630 sed 's/^/| /' conftest.$ac_ext >&5
28632 ( exit $ac_status )
28633 gl_cv_func_futimens_works=no
28635 rm -rf conftest.dSYM
28636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28640 rm -f conftest.file
28642 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_futimens_works" >&5
28643 $as_echo "$gl_cv_func_futimens_works" >&6; }
28644 if test "$gl_cv_func_futimens_works" != yes; then
28654 gl_LIBOBJS="$gl_LIBOBJS futimens.$ac_objext"
28666 cat >>confdefs.h <<\_ACEOF
28667 #define GNULIB_TEST_FUTIMENS 1
28672 # Code from module getcwd:
28678 case $gl_cv_func_getcwd_null,$host_os in
28680 gl_cv_func_getcwd_path_max=yes;;
28688 { $as_echo "$as_me:$LINENO: checking whether getcwd handles long file names properly" >&5
28689 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
28690 if test "${gl_cv_func_getcwd_path_max+set}" = set; then
28691 $as_echo_n "(cached) " >&6
28693 # Arrange for deletion of the temporary directory this test creates.
28694 ac_clean_files="$ac_clean_files confdir3"
28695 if test "$cross_compiling" = yes; then
28696 gl_cv_func_getcwd_path_max=no
28698 cat >conftest.$ac_ext <<_ACEOF
28701 cat confdefs.h >>conftest.$ac_ext
28702 cat >>conftest.$ac_ext <<_ACEOF
28703 /* end confdefs.h. */
28706 #include <stdlib.h>
28707 #include <unistd.h>
28708 #include <string.h>
28709 #include <limits.h>
28710 #include <sys/stat.h>
28711 #include <sys/types.h>
28715 # define AT_FDCWD 0
28717 #ifdef ENAMETOOLONG
28718 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
28720 # define is_ENAMETOOLONG(x) 0
28723 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
28727 # define S_IRWXU 0700
28730 /* The length of this name must be 8. */
28731 #define DIR_NAME "confdir3"
28732 #define DIR_NAME_LEN 8
28733 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
28735 /* The length of "../". */
28736 #define DOTDOTSLASH_LEN 3
28738 /* Leftover bytes in the buffer, to work around library or OS bugs. */
28739 #define BUF_SLOP 20
28745 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
28746 at least not on a local file system. And if we were to start worrying
28747 about remote file systems, we'd have to enable the wrapper function
28748 all of the time, just to be safe. That's not worth the cost. */
28750 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
28751 - DIR_NAME_SIZE - BUF_SLOP) \
28753 /* FIXME: Assuming there's a system for which this is true,
28754 this should be done in a compile test. */
28757 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
28758 + DIR_NAME_SIZE + BUF_SLOP];
28759 char *cwd = getcwd (buf, PATH_MAX);
28760 size_t initial_cwd_len;
28763 size_t n_chdirs = 0;
28768 cwd_len = initial_cwd_len = strlen (cwd);
28772 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
28775 cwd_len += DIR_NAME_SIZE;
28776 /* If mkdir or chdir fails, it could be that this system cannot create
28777 any file with an absolute name longer than PATH_MAX, such as cygwin.
28778 If so, leave fail as 0, because the current working directory can't
28779 be too long for getcwd if it can't even be created. For other
28780 errors, be pessimistic and consider that as a failure, too. */
28781 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
28783 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
28788 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
28790 c = getcwd (buf, PATH_MAX);
28791 if (!c && errno == ENOENT)
28796 if (c || ! (errno == ERANGE || is_ENAMETOOLONG (errno)))
28803 if (dotdot_max <= cwd_len - initial_cwd_len)
28805 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
28807 c = getcwd (buf, cwd_len + 1);
28810 if (! (errno == ERANGE || errno == ENOENT
28811 || is_ENAMETOOLONG (errno)))
28816 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
28824 if (c && strlen (c) != cwd_len)
28832 /* Leaving behind such a deep directory is not polite.
28833 So clean up here, right away, even though the driving
28834 shell script would also clean up. */
28838 /* Try rmdir first, in case the chdir failed. */
28840 for (i = 0; i <= n_chdirs; i++)
28842 if (chdir ("..") < 0)
28844 if (rmdir (DIR_NAME) != 0)
28854 rm -f conftest$ac_exeext
28855 if { (ac_try="$ac_link"
28856 case "(($ac_try" in
28857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28858 *) ac_try_echo=$ac_try;;
28860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28861 $as_echo "$ac_try_echo") >&5
28862 (eval "$ac_link") 2>&5
28864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28866 { (case "(($ac_try" in
28867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28868 *) ac_try_echo=$ac_try;;
28870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28871 $as_echo "$ac_try_echo") >&5
28872 (eval "$ac_try") 2>&5
28874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28875 (exit $ac_status); }; }; then
28876 gl_cv_func_getcwd_path_max=yes
28878 $as_echo "$as_me: program exited with status $ac_status" >&5
28879 $as_echo "$as_me: failed program was:" >&5
28880 sed 's/^/| /' conftest.$ac_ext >&5
28882 ( exit $ac_status )
28884 10|11|12) gl_cv_func_getcwd_path_max='no, but it is partly working';;
28885 *) gl_cv_func_getcwd_path_max=no;;
28888 rm -rf conftest.dSYM
28889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28895 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_path_max" >&5
28896 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
28897 case $gl_cv_func_getcwd_path_max in
28900 cat >>confdefs.h <<\_ACEOF
28901 #define HAVE_PARTLY_WORKING_GETCWD 1
28912 for ac_func in getpagesize
28914 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28915 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28916 $as_echo_n "checking for $ac_func... " >&6; }
28917 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28918 $as_echo_n "(cached) " >&6
28920 cat >conftest.$ac_ext <<_ACEOF
28923 cat confdefs.h >>conftest.$ac_ext
28924 cat >>conftest.$ac_ext <<_ACEOF
28925 /* end confdefs.h. */
28926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28928 #define $ac_func innocuous_$ac_func
28930 /* System header to define __stub macros and hopefully few prototypes,
28931 which can conflict with char $ac_func (); below.
28932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28933 <limits.h> exists even on freestanding compilers. */
28936 # include <limits.h>
28938 # include <assert.h>
28943 /* Override any GCC internal prototype to avoid an error.
28944 Use char because int might match the return type of a GCC
28945 builtin and then its argument prototype would still apply. */
28950 /* The GNU C library defines this for functions which it implements
28951 to always fail with ENOSYS. Some functions are actually named
28952 something starting with __ and the normal name is an alias. */
28953 #if defined __stub_$ac_func || defined __stub___$ac_func
28960 return $ac_func ();
28965 rm -f conftest.$ac_objext conftest$ac_exeext
28966 if { (ac_try="$ac_link"
28967 case "(($ac_try" in
28968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28969 *) ac_try_echo=$ac_try;;
28971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28972 $as_echo "$ac_try_echo") >&5
28973 (eval "$ac_link") 2>conftest.er1
28975 grep -v '^ *+' conftest.er1 >conftest.err
28977 cat conftest.err >&5
28978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28979 (exit $ac_status); } && {
28980 test -z "$ac_c_werror_flag" ||
28981 test ! -s conftest.err
28982 } && test -s conftest$ac_exeext && {
28983 test "$cross_compiling" = yes ||
28984 $as_test_x conftest$ac_exeext
28986 eval "$as_ac_var=yes"
28988 $as_echo "$as_me: failed program was:" >&5
28989 sed 's/^/| /' conftest.$ac_ext >&5
28991 eval "$as_ac_var=no"
28994 rm -rf conftest.dSYM
28995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28996 conftest$ac_exeext conftest.$ac_ext
28998 ac_res=`eval 'as_val=${'$as_ac_var'}
28999 $as_echo "$as_val"'`
29000 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29001 $as_echo "$ac_res" >&6; }
29002 as_val=`eval 'as_val=${'$as_ac_var'}
29003 $as_echo "$as_val"'`
29004 if test "x$as_val" = x""yes; then
29005 cat >>confdefs.h <<_ACEOF
29006 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29012 { $as_echo "$as_me:$LINENO: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
29013 $as_echo_n "checking whether getcwd aborts when 4k < cwd_length < 16k... " >&6; }
29014 if test "${gl_cv_func_getcwd_abort_bug+set}" = set; then
29015 $as_echo_n "(cached) " >&6
29017 # Remove any remnants of a previous test.
29018 rm -rf confdir-14B---
29019 # Arrange for deletion of the temporary directory this test creates.
29020 ac_clean_files="$ac_clean_files confdir-14B---"
29021 if test "$cross_compiling" = yes; then
29022 gl_cv_func_getcwd_abort_bug=yes
29024 cat >conftest.$ac_ext <<_ACEOF
29027 cat confdefs.h >>conftest.$ac_ext
29028 cat >>conftest.$ac_ext <<_ACEOF
29029 /* end confdefs.h. */
29031 #include <stdlib.h>
29032 #include <unistd.h>
29033 #include <limits.h>
29034 #include <string.h>
29035 #include <sys/stat.h>
29037 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
29041 # define S_IRWXU 0700
29044 /* FIXME: skip the run-test altogether on systems without getpagesize. */
29045 #if ! HAVE_GETPAGESIZE
29046 # define getpagesize() 0
29049 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
29050 the 16kB pagesize on ia64 linux. Those conditions make the code below
29051 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
29052 #define TARGET_LEN (5 * 1024)
29057 char const *dir_name = "confdir-14B---";
29059 size_t initial_cwd_len;
29061 size_t desired_depth;
29064 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
29065 this relative expensive and invasive test if that's not true. */
29066 if (getpagesize () <= PATH_MAX)
29069 cwd = getcwd (NULL, 0);
29073 initial_cwd_len = strlen (cwd);
29075 desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
29076 / (1 + strlen (dir_name)));
29077 for (d = 0; d < desired_depth; d++)
29079 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
29081 fail = 3; /* Unable to construct deep hierarchy. */
29086 /* If libc has the bug in question, this invocation of getcwd
29087 results in a failed assertion. */
29088 cwd = getcwd (NULL, 0);
29090 fail = 4; /* getcwd failed. This is ok, and expected. */
29093 /* Call rmdir first, in case the above chdir failed. */
29097 if (chdir ("..") < 0)
29106 rm -f conftest$ac_exeext
29107 if { (ac_try="$ac_link"
29108 case "(($ac_try" in
29109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29110 *) ac_try_echo=$ac_try;;
29112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29113 $as_echo "$ac_try_echo") >&5
29114 (eval "$ac_link") 2>&5
29116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29118 { (case "(($ac_try" in
29119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29120 *) ac_try_echo=$ac_try;;
29122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29123 $as_echo "$ac_try_echo") >&5
29124 (eval "$ac_try") 2>&5
29126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29127 (exit $ac_status); }; }; then
29128 gl_cv_func_getcwd_abort_bug=no
29130 $as_echo "$as_me: program exited with status $ac_status" >&5
29131 $as_echo "$as_me: failed program was:" >&5
29132 sed 's/^/| /' conftest.$ac_ext >&5
29134 ( exit $ac_status )
29135 gl_cv_func_getcwd_abort_bug=yes
29137 rm -rf conftest.dSYM
29138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29144 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_abort_bug" >&5
29145 $as_echo "$gl_cv_func_getcwd_abort_bug" >&6; }
29146 if test $gl_cv_func_getcwd_abort_bug = yes; then
29153 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_path_max,$gl_abort_bug in
29165 gl_LIBOBJS="$gl_LIBOBJS getcwd.$ac_objext"
29181 cat >>confdefs.h <<\_ACEOF
29182 #define GNULIB_TEST_GETCWD 1
29187 # Code from module getdelim:
29204 if test $ac_cv_func_getdelim = yes; then
29205 { $as_echo "$as_me:$LINENO: checking for working getdelim function" >&5
29206 $as_echo_n "checking for working getdelim function... " >&6; }
29207 if test "${gl_cv_func_working_getdelim+set}" = set; then
29208 $as_echo_n "(cached) " >&6
29210 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
29211 if test "$cross_compiling" = yes; then
29212 cat >conftest.$ac_ext <<_ACEOF
29215 cat confdefs.h >>conftest.$ac_ext
29216 cat >>conftest.$ac_ext <<_ACEOF
29217 /* end confdefs.h. */
29219 #include <features.h>
29220 #ifdef __GNU_LIBRARY__
29221 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
29227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29228 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
29229 gl_cv_func_working_getdelim=yes
29231 gl_cv_func_working_getdelim=no
29237 cat >conftest.$ac_ext <<_ACEOF
29240 cat confdefs.h >>conftest.$ac_ext
29241 cat >>conftest.$ac_ext <<_ACEOF
29242 /* end confdefs.h. */
29244 # include <stdio.h>
29245 # include <stdlib.h>
29246 # include <string.h>
29249 FILE *in = fopen ("./conftest.data", "r");
29253 /* Test result for a NULL buffer and a zero size.
29254 Based on a test program from Karl Heuer. */
29257 int len = getdelim (&line, &siz, '\n', in);
29258 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
29262 /* Test result for a NULL buffer and a non-zero size.
29263 This crashes on FreeBSD 8.0. */
29265 size_t siz = (size_t)(~0) / 4;
29266 if (getdelim (&line, &siz, '\n', in) == -1)
29273 rm -f conftest$ac_exeext
29274 if { (ac_try="$ac_link"
29275 case "(($ac_try" in
29276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29277 *) ac_try_echo=$ac_try;;
29279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29280 $as_echo "$ac_try_echo") >&5
29281 (eval "$ac_link") 2>&5
29283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29285 { (case "(($ac_try" in
29286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29287 *) ac_try_echo=$ac_try;;
29289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29290 $as_echo "$ac_try_echo") >&5
29291 (eval "$ac_try") 2>&5
29293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294 (exit $ac_status); }; }; then
29295 gl_cv_func_working_getdelim=yes
29297 $as_echo "$as_me: program exited with status $ac_status" >&5
29298 $as_echo "$as_me: failed program was:" >&5
29299 sed 's/^/| /' conftest.$ac_ext >&5
29301 ( exit $ac_status )
29302 gl_cv_func_working_getdelim=no
29304 rm -rf conftest.dSYM
29305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29310 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_getdelim" >&5
29311 $as_echo "$gl_cv_func_working_getdelim" >&6; }
29313 gl_cv_func_working_getdelim=no
29316 if test $ac_cv_have_decl_getdelim = no; then
29317 HAVE_DECL_GETDELIM=0
29320 if test $gl_cv_func_working_getdelim = no; then
29321 if test $ac_cv_func_getdelim = yes; then
29332 gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
29337 for ac_func in flockfile funlockfile
29339 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29340 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29341 $as_echo_n "checking for $ac_func... " >&6; }
29342 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29343 $as_echo_n "(cached) " >&6
29345 cat >conftest.$ac_ext <<_ACEOF
29348 cat confdefs.h >>conftest.$ac_ext
29349 cat >>conftest.$ac_ext <<_ACEOF
29350 /* end confdefs.h. */
29351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29353 #define $ac_func innocuous_$ac_func
29355 /* System header to define __stub macros and hopefully few prototypes,
29356 which can conflict with char $ac_func (); below.
29357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29358 <limits.h> exists even on freestanding compilers. */
29361 # include <limits.h>
29363 # include <assert.h>
29368 /* Override any GCC internal prototype to avoid an error.
29369 Use char because int might match the return type of a GCC
29370 builtin and then its argument prototype would still apply. */
29375 /* The GNU C library defines this for functions which it implements
29376 to always fail with ENOSYS. Some functions are actually named
29377 something starting with __ and the normal name is an alias. */
29378 #if defined __stub_$ac_func || defined __stub___$ac_func
29385 return $ac_func ();
29390 rm -f conftest.$ac_objext conftest$ac_exeext
29391 if { (ac_try="$ac_link"
29392 case "(($ac_try" in
29393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29394 *) ac_try_echo=$ac_try;;
29396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29397 $as_echo "$ac_try_echo") >&5
29398 (eval "$ac_link") 2>conftest.er1
29400 grep -v '^ *+' conftest.er1 >conftest.err
29402 cat conftest.err >&5
29403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29404 (exit $ac_status); } && {
29405 test -z "$ac_c_werror_flag" ||
29406 test ! -s conftest.err
29407 } && test -s conftest$ac_exeext && {
29408 test "$cross_compiling" = yes ||
29409 $as_test_x conftest$ac_exeext
29411 eval "$as_ac_var=yes"
29413 $as_echo "$as_me: failed program was:" >&5
29414 sed 's/^/| /' conftest.$ac_ext >&5
29416 eval "$as_ac_var=no"
29419 rm -rf conftest.dSYM
29420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29421 conftest$ac_exeext conftest.$ac_ext
29423 ac_res=`eval 'as_val=${'$as_ac_var'}
29424 $as_echo "$as_val"'`
29425 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29426 $as_echo "$ac_res" >&6; }
29427 as_val=`eval 'as_val=${'$as_ac_var'}
29428 $as_echo "$as_val"'`
29429 if test "x$as_val" = x""yes; then
29430 cat >>confdefs.h <<_ACEOF
29431 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29437 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
29438 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
29439 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
29440 $as_echo_n "(cached) " >&6
29442 cat >conftest.$ac_ext <<_ACEOF
29445 cat confdefs.h >>conftest.$ac_ext
29446 cat >>conftest.$ac_ext <<_ACEOF
29447 /* end confdefs.h. */
29448 $ac_includes_default
29452 #ifndef getc_unlocked
29453 (void) getc_unlocked;
29460 rm -f conftest.$ac_objext
29461 if { (ac_try="$ac_compile"
29462 case "(($ac_try" in
29463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29464 *) ac_try_echo=$ac_try;;
29466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29467 $as_echo "$ac_try_echo") >&5
29468 (eval "$ac_compile") 2>conftest.er1
29470 grep -v '^ *+' conftest.er1 >conftest.err
29472 cat conftest.err >&5
29473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474 (exit $ac_status); } && {
29475 test -z "$ac_c_werror_flag" ||
29476 test ! -s conftest.err
29477 } && test -s conftest.$ac_objext; then
29478 ac_cv_have_decl_getc_unlocked=yes
29480 $as_echo "$as_me: failed program was:" >&5
29481 sed 's/^/| /' conftest.$ac_ext >&5
29483 ac_cv_have_decl_getc_unlocked=no
29486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29488 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
29489 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
29490 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
29492 cat >>confdefs.h <<_ACEOF
29493 #define HAVE_DECL_GETC_UNLOCKED 1
29498 cat >>confdefs.h <<_ACEOF
29499 #define HAVE_DECL_GETC_UNLOCKED 0
29516 cat >>confdefs.h <<\_ACEOF
29517 #define GNULIB_TEST_GETDELIM 1
29522 # Code from module getdtablesize:
29531 if test $ac_cv_func_getdtablesize != yes; then
29532 HAVE_GETDTABLESIZE=0
29541 gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
29548 GNULIB_GETDTABLESIZE=1
29552 cat >>confdefs.h <<\_ACEOF
29553 #define GNULIB_TEST_GETDTABLESIZE 1
29558 # Code from module getline:
29569 gl_getline_needs_run_time_check=no
29570 { $as_echo "$as_me:$LINENO: checking for getline" >&5
29571 $as_echo_n "checking for getline... " >&6; }
29572 if test "${ac_cv_func_getline+set}" = set; then
29573 $as_echo_n "(cached) " >&6
29575 cat >conftest.$ac_ext <<_ACEOF
29578 cat confdefs.h >>conftest.$ac_ext
29579 cat >>conftest.$ac_ext <<_ACEOF
29580 /* end confdefs.h. */
29581 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
29582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29583 #define getline innocuous_getline
29585 /* System header to define __stub macros and hopefully few prototypes,
29586 which can conflict with char getline (); below.
29587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29588 <limits.h> exists even on freestanding compilers. */
29591 # include <limits.h>
29593 # include <assert.h>
29598 /* Override any GCC internal prototype to avoid an error.
29599 Use char because int might match the return type of a GCC
29600 builtin and then its argument prototype would still apply. */
29605 /* The GNU C library defines this for functions which it implements
29606 to always fail with ENOSYS. Some functions are actually named
29607 something starting with __ and the normal name is an alias. */
29608 #if defined __stub_getline || defined __stub___getline
29620 rm -f conftest.$ac_objext conftest$ac_exeext
29621 if { (ac_try="$ac_link"
29622 case "(($ac_try" in
29623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29624 *) ac_try_echo=$ac_try;;
29626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29627 $as_echo "$ac_try_echo") >&5
29628 (eval "$ac_link") 2>conftest.er1
29630 grep -v '^ *+' conftest.er1 >conftest.err
29632 cat conftest.err >&5
29633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29634 (exit $ac_status); } && {
29635 test -z "$ac_c_werror_flag" ||
29636 test ! -s conftest.err
29637 } && test -s conftest$ac_exeext && {
29638 test "$cross_compiling" = yes ||
29639 $as_test_x conftest$ac_exeext
29641 ac_cv_func_getline=yes
29643 $as_echo "$as_me: failed program was:" >&5
29644 sed 's/^/| /' conftest.$ac_ext >&5
29646 ac_cv_func_getline=no
29649 rm -rf conftest.dSYM
29650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29651 conftest$ac_exeext conftest.$ac_ext
29653 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
29654 $as_echo "$ac_cv_func_getline" >&6; }
29655 if test "x$ac_cv_func_getline" = x""yes; then
29656 gl_getline_needs_run_time_check=yes
29658 am_cv_func_working_getline=no
29661 if test $gl_getline_needs_run_time_check = yes; then
29662 { $as_echo "$as_me:$LINENO: checking for working getline function" >&5
29663 $as_echo_n "checking for working getline function... " >&6; }
29664 if test "${am_cv_func_working_getline+set}" = set; then
29665 $as_echo_n "(cached) " >&6
29667 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
29668 if test "$cross_compiling" = yes; then
29669 cat >conftest.$ac_ext <<_ACEOF
29672 cat confdefs.h >>conftest.$ac_ext
29673 cat >>conftest.$ac_ext <<_ACEOF
29674 /* end confdefs.h. */
29676 #include <features.h>
29677 #ifdef __GNU_LIBRARY__
29678 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
29684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29685 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
29686 am_cv_func_working_getline=yes
29688 am_cv_func_working_getline=no
29694 cat >conftest.$ac_ext <<_ACEOF
29697 cat confdefs.h >>conftest.$ac_ext
29698 cat >>conftest.$ac_ext <<_ACEOF
29699 /* end confdefs.h. */
29701 # include <stdio.h>
29702 # include <stdlib.h>
29703 # include <string.h>
29706 FILE *in = fopen ("./conftest.data", "r");
29710 /* Test result for a NULL buffer and a zero size.
29711 Based on a test program from Karl Heuer. */
29714 int len = getline (&line, &siz, in);
29715 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
29719 /* Test result for a NULL buffer and a non-zero size.
29720 This crashes on FreeBSD 8.0. */
29722 size_t siz = (size_t)(~0) / 4;
29723 if (getline (&line, &siz, in) == -1)
29730 rm -f conftest$ac_exeext
29731 if { (ac_try="$ac_link"
29732 case "(($ac_try" in
29733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29734 *) ac_try_echo=$ac_try;;
29736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29737 $as_echo "$ac_try_echo") >&5
29738 (eval "$ac_link") 2>&5
29740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29742 { (case "(($ac_try" in
29743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29744 *) ac_try_echo=$ac_try;;
29746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29747 $as_echo "$ac_try_echo") >&5
29748 (eval "$ac_try") 2>&5
29750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29751 (exit $ac_status); }; }; then
29752 am_cv_func_working_getline=yes
29754 $as_echo "$as_me: program exited with status $ac_status" >&5
29755 $as_echo "$as_me: failed program was:" >&5
29756 sed 's/^/| /' conftest.$ac_ext >&5
29758 ( exit $ac_status )
29759 am_cv_func_working_getline=no
29761 rm -rf conftest.dSYM
29762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29767 { $as_echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
29768 $as_echo "$am_cv_func_working_getline" >&6; }
29771 if test $ac_cv_have_decl_getline = no; then
29772 HAVE_DECL_GETLINE=0
29775 if test $am_cv_func_working_getline = no; then
29785 gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
29805 if test $ac_cv_func_getdelim = yes; then
29806 { $as_echo "$as_me:$LINENO: checking for working getdelim function" >&5
29807 $as_echo_n "checking for working getdelim function... " >&6; }
29808 if test "${gl_cv_func_working_getdelim+set}" = set; then
29809 $as_echo_n "(cached) " >&6
29811 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
29812 if test "$cross_compiling" = yes; then
29813 cat >conftest.$ac_ext <<_ACEOF
29816 cat confdefs.h >>conftest.$ac_ext
29817 cat >>conftest.$ac_ext <<_ACEOF
29818 /* end confdefs.h. */
29820 #include <features.h>
29821 #ifdef __GNU_LIBRARY__
29822 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
29828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29829 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
29830 gl_cv_func_working_getdelim=yes
29832 gl_cv_func_working_getdelim=no
29838 cat >conftest.$ac_ext <<_ACEOF
29841 cat confdefs.h >>conftest.$ac_ext
29842 cat >>conftest.$ac_ext <<_ACEOF
29843 /* end confdefs.h. */
29845 # include <stdio.h>
29846 # include <stdlib.h>
29847 # include <string.h>
29850 FILE *in = fopen ("./conftest.data", "r");
29854 /* Test result for a NULL buffer and a zero size.
29855 Based on a test program from Karl Heuer. */
29858 int len = getdelim (&line, &siz, '\n', in);
29859 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
29863 /* Test result for a NULL buffer and a non-zero size.
29864 This crashes on FreeBSD 8.0. */
29866 size_t siz = (size_t)(~0) / 4;
29867 if (getdelim (&line, &siz, '\n', in) == -1)
29874 rm -f conftest$ac_exeext
29875 if { (ac_try="$ac_link"
29876 case "(($ac_try" in
29877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29878 *) ac_try_echo=$ac_try;;
29880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29881 $as_echo "$ac_try_echo") >&5
29882 (eval "$ac_link") 2>&5
29884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29886 { (case "(($ac_try" in
29887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29888 *) ac_try_echo=$ac_try;;
29890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29891 $as_echo "$ac_try_echo") >&5
29892 (eval "$ac_try") 2>&5
29894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29895 (exit $ac_status); }; }; then
29896 gl_cv_func_working_getdelim=yes
29898 $as_echo "$as_me: program exited with status $ac_status" >&5
29899 $as_echo "$as_me: failed program was:" >&5
29900 sed 's/^/| /' conftest.$ac_ext >&5
29902 ( exit $ac_status )
29903 gl_cv_func_working_getdelim=no
29905 rm -rf conftest.dSYM
29906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29911 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_getdelim" >&5
29912 $as_echo "$gl_cv_func_working_getdelim" >&6; }
29914 gl_cv_func_working_getdelim=no
29917 if test $ac_cv_have_decl_getdelim = no; then
29918 HAVE_DECL_GETDELIM=0
29921 if test $gl_cv_func_working_getdelim = no; then
29922 if test $ac_cv_func_getdelim = yes; then
29933 gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
29938 for ac_func in flockfile funlockfile
29940 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29941 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29942 $as_echo_n "checking for $ac_func... " >&6; }
29943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29944 $as_echo_n "(cached) " >&6
29946 cat >conftest.$ac_ext <<_ACEOF
29949 cat confdefs.h >>conftest.$ac_ext
29950 cat >>conftest.$ac_ext <<_ACEOF
29951 /* end confdefs.h. */
29952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29954 #define $ac_func innocuous_$ac_func
29956 /* System header to define __stub macros and hopefully few prototypes,
29957 which can conflict with char $ac_func (); below.
29958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29959 <limits.h> exists even on freestanding compilers. */
29962 # include <limits.h>
29964 # include <assert.h>
29969 /* Override any GCC internal prototype to avoid an error.
29970 Use char because int might match the return type of a GCC
29971 builtin and then its argument prototype would still apply. */
29976 /* The GNU C library defines this for functions which it implements
29977 to always fail with ENOSYS. Some functions are actually named
29978 something starting with __ and the normal name is an alias. */
29979 #if defined __stub_$ac_func || defined __stub___$ac_func
29986 return $ac_func ();
29991 rm -f conftest.$ac_objext conftest$ac_exeext
29992 if { (ac_try="$ac_link"
29993 case "(($ac_try" in
29994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29995 *) ac_try_echo=$ac_try;;
29997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29998 $as_echo "$ac_try_echo") >&5
29999 (eval "$ac_link") 2>conftest.er1
30001 grep -v '^ *+' conftest.er1 >conftest.err
30003 cat conftest.err >&5
30004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30005 (exit $ac_status); } && {
30006 test -z "$ac_c_werror_flag" ||
30007 test ! -s conftest.err
30008 } && test -s conftest$ac_exeext && {
30009 test "$cross_compiling" = yes ||
30010 $as_test_x conftest$ac_exeext
30012 eval "$as_ac_var=yes"
30014 $as_echo "$as_me: failed program was:" >&5
30015 sed 's/^/| /' conftest.$ac_ext >&5
30017 eval "$as_ac_var=no"
30020 rm -rf conftest.dSYM
30021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30022 conftest$ac_exeext conftest.$ac_ext
30024 ac_res=`eval 'as_val=${'$as_ac_var'}
30025 $as_echo "$as_val"'`
30026 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30027 $as_echo "$ac_res" >&6; }
30028 as_val=`eval 'as_val=${'$as_ac_var'}
30029 $as_echo "$as_val"'`
30030 if test "x$as_val" = x""yes; then
30031 cat >>confdefs.h <<_ACEOF
30032 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30038 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
30039 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
30040 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
30041 $as_echo_n "(cached) " >&6
30043 cat >conftest.$ac_ext <<_ACEOF
30046 cat confdefs.h >>conftest.$ac_ext
30047 cat >>conftest.$ac_ext <<_ACEOF
30048 /* end confdefs.h. */
30049 $ac_includes_default
30053 #ifndef getc_unlocked
30054 (void) getc_unlocked;
30061 rm -f conftest.$ac_objext
30062 if { (ac_try="$ac_compile"
30063 case "(($ac_try" in
30064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30065 *) ac_try_echo=$ac_try;;
30067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30068 $as_echo "$ac_try_echo") >&5
30069 (eval "$ac_compile") 2>conftest.er1
30071 grep -v '^ *+' conftest.er1 >conftest.err
30073 cat conftest.err >&5
30074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30075 (exit $ac_status); } && {
30076 test -z "$ac_c_werror_flag" ||
30077 test ! -s conftest.err
30078 } && test -s conftest.$ac_objext; then
30079 ac_cv_have_decl_getc_unlocked=yes
30081 $as_echo "$as_me: failed program was:" >&5
30082 sed 's/^/| /' conftest.$ac_ext >&5
30084 ac_cv_have_decl_getc_unlocked=no
30087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30089 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
30090 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
30091 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
30093 cat >>confdefs.h <<_ACEOF
30094 #define HAVE_DECL_GETC_UNLOCKED 1
30099 cat >>confdefs.h <<_ACEOF
30100 #define HAVE_DECL_GETC_UNLOCKED 0
30120 cat >>confdefs.h <<\_ACEOF
30121 #define GNULIB_TEST_GETLINE 1
30126 # Code from module getopt-gnu:
30134 cat >>confdefs.h <<\_ACEOF
30135 #define GNULIB_TEST_GETOPT_GNU 1
30139 # Code from module getopt-posix:
30145 if test -n "$gl_replace_getopt"; then
30151 cat >>confdefs.h <<\_ACEOF
30152 #define __GETOPT_PREFIX rpl_
30157 GNULIB_UNISTD_H_GETOPT=1
30166 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
30176 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
30190 # Code from module getpagesize:
30195 for ac_func in getpagesize
30197 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30198 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30199 $as_echo_n "checking for $ac_func... " >&6; }
30200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30201 $as_echo_n "(cached) " >&6
30203 cat >conftest.$ac_ext <<_ACEOF
30206 cat confdefs.h >>conftest.$ac_ext
30207 cat >>conftest.$ac_ext <<_ACEOF
30208 /* end confdefs.h. */
30209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30211 #define $ac_func innocuous_$ac_func
30213 /* System header to define __stub macros and hopefully few prototypes,
30214 which can conflict with char $ac_func (); below.
30215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30216 <limits.h> exists even on freestanding compilers. */
30219 # include <limits.h>
30221 # include <assert.h>
30226 /* Override any GCC internal prototype to avoid an error.
30227 Use char because int might match the return type of a GCC
30228 builtin and then its argument prototype would still apply. */
30233 /* The GNU C library defines this for functions which it implements
30234 to always fail with ENOSYS. Some functions are actually named
30235 something starting with __ and the normal name is an alias. */
30236 #if defined __stub_$ac_func || defined __stub___$ac_func
30243 return $ac_func ();
30248 rm -f conftest.$ac_objext conftest$ac_exeext
30249 if { (ac_try="$ac_link"
30250 case "(($ac_try" in
30251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30252 *) ac_try_echo=$ac_try;;
30254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30255 $as_echo "$ac_try_echo") >&5
30256 (eval "$ac_link") 2>conftest.er1
30258 grep -v '^ *+' conftest.er1 >conftest.err
30260 cat conftest.err >&5
30261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30262 (exit $ac_status); } && {
30263 test -z "$ac_c_werror_flag" ||
30264 test ! -s conftest.err
30265 } && test -s conftest$ac_exeext && {
30266 test "$cross_compiling" = yes ||
30267 $as_test_x conftest$ac_exeext
30269 eval "$as_ac_var=yes"
30271 $as_echo "$as_me: failed program was:" >&5
30272 sed 's/^/| /' conftest.$ac_ext >&5
30274 eval "$as_ac_var=no"
30277 rm -rf conftest.dSYM
30278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30279 conftest$ac_exeext conftest.$ac_ext
30281 ac_res=`eval 'as_val=${'$as_ac_var'}
30282 $as_echo "$as_val"'`
30283 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30284 $as_echo "$ac_res" >&6; }
30285 as_val=`eval 'as_val=${'$as_ac_var'}
30286 $as_echo "$as_val"'`
30287 if test "x$as_val" = x""yes; then
30288 cat >>confdefs.h <<_ACEOF
30289 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30295 if test $ac_cv_func_getpagesize = no; then
30298 for ac_header in OS.h
30300 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30302 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30303 $as_echo_n "checking for $ac_header... " >&6; }
30304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30305 $as_echo_n "(cached) " >&6
30307 ac_res=`eval 'as_val=${'$as_ac_Header'}
30308 $as_echo "$as_val"'`
30309 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30310 $as_echo "$ac_res" >&6; }
30312 # Is the header compilable?
30313 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30314 $as_echo_n "checking $ac_header usability... " >&6; }
30315 cat >conftest.$ac_ext <<_ACEOF
30318 cat confdefs.h >>conftest.$ac_ext
30319 cat >>conftest.$ac_ext <<_ACEOF
30320 /* end confdefs.h. */
30321 $ac_includes_default
30322 #include <$ac_header>
30324 rm -f conftest.$ac_objext
30325 if { (ac_try="$ac_compile"
30326 case "(($ac_try" in
30327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30328 *) ac_try_echo=$ac_try;;
30330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30331 $as_echo "$ac_try_echo") >&5
30332 (eval "$ac_compile") 2>conftest.er1
30334 grep -v '^ *+' conftest.er1 >conftest.err
30336 cat conftest.err >&5
30337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30338 (exit $ac_status); } && {
30339 test -z "$ac_c_werror_flag" ||
30340 test ! -s conftest.err
30341 } && test -s conftest.$ac_objext; then
30342 ac_header_compiler=yes
30344 $as_echo "$as_me: failed program was:" >&5
30345 sed 's/^/| /' conftest.$ac_ext >&5
30347 ac_header_compiler=no
30350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30351 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30352 $as_echo "$ac_header_compiler" >&6; }
30354 # Is the header present?
30355 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30356 $as_echo_n "checking $ac_header presence... " >&6; }
30357 cat >conftest.$ac_ext <<_ACEOF
30360 cat confdefs.h >>conftest.$ac_ext
30361 cat >>conftest.$ac_ext <<_ACEOF
30362 /* end confdefs.h. */
30363 #include <$ac_header>
30365 if { (ac_try="$ac_cpp conftest.$ac_ext"
30366 case "(($ac_try" in
30367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30368 *) ac_try_echo=$ac_try;;
30370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30371 $as_echo "$ac_try_echo") >&5
30372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30374 grep -v '^ *+' conftest.er1 >conftest.err
30376 cat conftest.err >&5
30377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30378 (exit $ac_status); } >/dev/null && {
30379 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30380 test ! -s conftest.err
30382 ac_header_preproc=yes
30384 $as_echo "$as_me: failed program was:" >&5
30385 sed 's/^/| /' conftest.$ac_ext >&5
30387 ac_header_preproc=no
30390 rm -f conftest.err conftest.$ac_ext
30391 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30392 $as_echo "$ac_header_preproc" >&6; }
30394 # So? What about this header?
30395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30397 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30398 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30399 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30400 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30401 ac_header_preproc=yes
30404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30405 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30407 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30409 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30411 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30412 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30413 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30414 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30415 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30417 ## ------------------------------ ##
30418 ## Report this to bug-tar@gnu.org ##
30419 ## ------------------------------ ##
30421 ) | sed "s/^/$as_me: WARNING: /" >&2
30424 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30425 $as_echo_n "checking for $ac_header... " >&6; }
30426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30427 $as_echo_n "(cached) " >&6
30429 eval "$as_ac_Header=\$ac_header_preproc"
30431 ac_res=`eval 'as_val=${'$as_ac_Header'}
30432 $as_echo "$as_val"'`
30433 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30434 $as_echo "$ac_res" >&6; }
30437 as_val=`eval 'as_val=${'$as_ac_Header'}
30438 $as_echo "$as_val"'`
30439 if test "x$as_val" = x""yes; then
30440 cat >>confdefs.h <<_ACEOF
30441 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30448 if test $ac_cv_header_OS_h = yes; then
30452 for ac_header in sys/param.h
30454 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30456 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30457 $as_echo_n "checking for $ac_header... " >&6; }
30458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30459 $as_echo_n "(cached) " >&6
30461 ac_res=`eval 'as_val=${'$as_ac_Header'}
30462 $as_echo "$as_val"'`
30463 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30464 $as_echo "$ac_res" >&6; }
30466 # Is the header compilable?
30467 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30468 $as_echo_n "checking $ac_header usability... " >&6; }
30469 cat >conftest.$ac_ext <<_ACEOF
30472 cat confdefs.h >>conftest.$ac_ext
30473 cat >>conftest.$ac_ext <<_ACEOF
30474 /* end confdefs.h. */
30475 $ac_includes_default
30476 #include <$ac_header>
30478 rm -f conftest.$ac_objext
30479 if { (ac_try="$ac_compile"
30480 case "(($ac_try" in
30481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30482 *) ac_try_echo=$ac_try;;
30484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30485 $as_echo "$ac_try_echo") >&5
30486 (eval "$ac_compile") 2>conftest.er1
30488 grep -v '^ *+' conftest.er1 >conftest.err
30490 cat conftest.err >&5
30491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30492 (exit $ac_status); } && {
30493 test -z "$ac_c_werror_flag" ||
30494 test ! -s conftest.err
30495 } && test -s conftest.$ac_objext; then
30496 ac_header_compiler=yes
30498 $as_echo "$as_me: failed program was:" >&5
30499 sed 's/^/| /' conftest.$ac_ext >&5
30501 ac_header_compiler=no
30504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30505 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30506 $as_echo "$ac_header_compiler" >&6; }
30508 # Is the header present?
30509 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30510 $as_echo_n "checking $ac_header presence... " >&6; }
30511 cat >conftest.$ac_ext <<_ACEOF
30514 cat confdefs.h >>conftest.$ac_ext
30515 cat >>conftest.$ac_ext <<_ACEOF
30516 /* end confdefs.h. */
30517 #include <$ac_header>
30519 if { (ac_try="$ac_cpp conftest.$ac_ext"
30520 case "(($ac_try" in
30521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30522 *) ac_try_echo=$ac_try;;
30524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30525 $as_echo "$ac_try_echo") >&5
30526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30528 grep -v '^ *+' conftest.er1 >conftest.err
30530 cat conftest.err >&5
30531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30532 (exit $ac_status); } >/dev/null && {
30533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30534 test ! -s conftest.err
30536 ac_header_preproc=yes
30538 $as_echo "$as_me: failed program was:" >&5
30539 sed 's/^/| /' conftest.$ac_ext >&5
30541 ac_header_preproc=no
30544 rm -f conftest.err conftest.$ac_ext
30545 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30546 $as_echo "$ac_header_preproc" >&6; }
30548 # So? What about this header?
30549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30552 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30554 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30555 ac_header_preproc=yes
30558 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30559 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30560 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30561 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30562 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30563 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30564 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30565 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30566 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30567 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30568 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30569 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30571 ## ------------------------------ ##
30572 ## Report this to bug-tar@gnu.org ##
30573 ## ------------------------------ ##
30575 ) | sed "s/^/$as_me: WARNING: /" >&2
30578 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30579 $as_echo_n "checking for $ac_header... " >&6; }
30580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30581 $as_echo_n "(cached) " >&6
30583 eval "$as_ac_Header=\$ac_header_preproc"
30585 ac_res=`eval 'as_val=${'$as_ac_Header'}
30586 $as_echo "$as_val"'`
30587 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30588 $as_echo "$ac_res" >&6; }
30591 as_val=`eval 'as_val=${'$as_ac_Header'}
30592 $as_echo "$as_val"'`
30593 if test "x$as_val" = x""yes; then
30594 cat >>confdefs.h <<_ACEOF
30595 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30602 if test $ac_cv_header_sys_param_h = yes; then
30608 REPLACE_GETPAGESIZE=1
30617 gl_LIBOBJS="$gl_LIBOBJS getpagesize.$ac_objext"
30621 { $as_echo "$as_me:$LINENO: checking whether getpagesize is declared" >&5
30622 $as_echo_n "checking whether getpagesize is declared... " >&6; }
30623 if test "${ac_cv_have_decl_getpagesize+set}" = set; then
30624 $as_echo_n "(cached) " >&6
30626 cat >conftest.$ac_ext <<_ACEOF
30629 cat confdefs.h >>conftest.$ac_ext
30630 cat >>conftest.$ac_ext <<_ACEOF
30631 /* end confdefs.h. */
30632 $ac_includes_default
30636 #ifndef getpagesize
30637 (void) getpagesize;
30644 rm -f conftest.$ac_objext
30645 if { (ac_try="$ac_compile"
30646 case "(($ac_try" in
30647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30648 *) ac_try_echo=$ac_try;;
30650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30651 $as_echo "$ac_try_echo") >&5
30652 (eval "$ac_compile") 2>conftest.er1
30654 grep -v '^ *+' conftest.er1 >conftest.err
30656 cat conftest.err >&5
30657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30658 (exit $ac_status); } && {
30659 test -z "$ac_c_werror_flag" ||
30660 test ! -s conftest.err
30661 } && test -s conftest.$ac_objext; then
30662 ac_cv_have_decl_getpagesize=yes
30664 $as_echo "$as_me: failed program was:" >&5
30665 sed 's/^/| /' conftest.$ac_ext >&5
30667 ac_cv_have_decl_getpagesize=no
30670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30672 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpagesize" >&5
30673 $as_echo "$ac_cv_have_decl_getpagesize" >&6; }
30674 if test "x$ac_cv_have_decl_getpagesize" = x""yes; then
30677 HAVE_DECL_GETPAGESIZE=0
30684 GNULIB_GETPAGESIZE=1
30688 cat >>confdefs.h <<\_ACEOF
30689 #define GNULIB_TEST_GETPAGESIZE 1
30694 # Code from module gettext:
30696 # Code from module gettext-h:
30699 # Code from module gettime:
30709 gl_LIBOBJS="$gl_LIBOBJS gettime.$ac_objext"
30723 # Code from module gettimeofday:
30735 gl_gettimeofday_timezone=void
30736 if test $ac_cv_func_gettimeofday != yes; then
30737 HAVE_GETTIMEOFDAY=0
30746 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
30750 for ac_header in sys/timeb.h
30752 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30754 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30755 $as_echo_n "checking for $ac_header... " >&6; }
30756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30757 $as_echo_n "(cached) " >&6
30759 ac_res=`eval 'as_val=${'$as_ac_Header'}
30760 $as_echo "$as_val"'`
30761 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30762 $as_echo "$ac_res" >&6; }
30764 # Is the header compilable?
30765 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30766 $as_echo_n "checking $ac_header usability... " >&6; }
30767 cat >conftest.$ac_ext <<_ACEOF
30770 cat confdefs.h >>conftest.$ac_ext
30771 cat >>conftest.$ac_ext <<_ACEOF
30772 /* end confdefs.h. */
30773 $ac_includes_default
30774 #include <$ac_header>
30776 rm -f conftest.$ac_objext
30777 if { (ac_try="$ac_compile"
30778 case "(($ac_try" in
30779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30780 *) ac_try_echo=$ac_try;;
30782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30783 $as_echo "$ac_try_echo") >&5
30784 (eval "$ac_compile") 2>conftest.er1
30786 grep -v '^ *+' conftest.er1 >conftest.err
30788 cat conftest.err >&5
30789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30790 (exit $ac_status); } && {
30791 test -z "$ac_c_werror_flag" ||
30792 test ! -s conftest.err
30793 } && test -s conftest.$ac_objext; then
30794 ac_header_compiler=yes
30796 $as_echo "$as_me: failed program was:" >&5
30797 sed 's/^/| /' conftest.$ac_ext >&5
30799 ac_header_compiler=no
30802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30803 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30804 $as_echo "$ac_header_compiler" >&6; }
30806 # Is the header present?
30807 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30808 $as_echo_n "checking $ac_header presence... " >&6; }
30809 cat >conftest.$ac_ext <<_ACEOF
30812 cat confdefs.h >>conftest.$ac_ext
30813 cat >>conftest.$ac_ext <<_ACEOF
30814 /* end confdefs.h. */
30815 #include <$ac_header>
30817 if { (ac_try="$ac_cpp conftest.$ac_ext"
30818 case "(($ac_try" in
30819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30820 *) ac_try_echo=$ac_try;;
30822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30823 $as_echo "$ac_try_echo") >&5
30824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30826 grep -v '^ *+' conftest.er1 >conftest.err
30828 cat conftest.err >&5
30829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30830 (exit $ac_status); } >/dev/null && {
30831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30832 test ! -s conftest.err
30834 ac_header_preproc=yes
30836 $as_echo "$as_me: failed program was:" >&5
30837 sed 's/^/| /' conftest.$ac_ext >&5
30839 ac_header_preproc=no
30842 rm -f conftest.err conftest.$ac_ext
30843 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30844 $as_echo "$ac_header_preproc" >&6; }
30846 # So? What about this header?
30847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30850 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30852 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30853 ac_header_preproc=yes
30856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30857 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30859 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30861 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30863 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30865 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30867 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30869 ## ------------------------------ ##
30870 ## Report this to bug-tar@gnu.org ##
30871 ## ------------------------------ ##
30873 ) | sed "s/^/$as_me: WARNING: /" >&2
30876 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30877 $as_echo_n "checking for $ac_header... " >&6; }
30878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30879 $as_echo_n "(cached) " >&6
30881 eval "$as_ac_Header=\$ac_header_preproc"
30883 ac_res=`eval 'as_val=${'$as_ac_Header'}
30884 $as_echo "$as_val"'`
30885 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30886 $as_echo "$ac_res" >&6; }
30889 as_val=`eval 'as_val=${'$as_ac_Header'}
30890 $as_echo "$as_val"'`
30891 if test "x$as_val" = x""yes; then
30892 cat >>confdefs.h <<_ACEOF
30893 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30901 for ac_func in _ftime
30903 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30904 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30905 $as_echo_n "checking for $ac_func... " >&6; }
30906 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30907 $as_echo_n "(cached) " >&6
30909 cat >conftest.$ac_ext <<_ACEOF
30912 cat confdefs.h >>conftest.$ac_ext
30913 cat >>conftest.$ac_ext <<_ACEOF
30914 /* end confdefs.h. */
30915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30917 #define $ac_func innocuous_$ac_func
30919 /* System header to define __stub macros and hopefully few prototypes,
30920 which can conflict with char $ac_func (); below.
30921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30922 <limits.h> exists even on freestanding compilers. */
30925 # include <limits.h>
30927 # include <assert.h>
30932 /* Override any GCC internal prototype to avoid an error.
30933 Use char because int might match the return type of a GCC
30934 builtin and then its argument prototype would still apply. */
30939 /* The GNU C library defines this for functions which it implements
30940 to always fail with ENOSYS. Some functions are actually named
30941 something starting with __ and the normal name is an alias. */
30942 #if defined __stub_$ac_func || defined __stub___$ac_func
30949 return $ac_func ();
30954 rm -f conftest.$ac_objext conftest$ac_exeext
30955 if { (ac_try="$ac_link"
30956 case "(($ac_try" in
30957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30958 *) ac_try_echo=$ac_try;;
30960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30961 $as_echo "$ac_try_echo") >&5
30962 (eval "$ac_link") 2>conftest.er1
30964 grep -v '^ *+' conftest.er1 >conftest.err
30966 cat conftest.err >&5
30967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30968 (exit $ac_status); } && {
30969 test -z "$ac_c_werror_flag" ||
30970 test ! -s conftest.err
30971 } && test -s conftest$ac_exeext && {
30972 test "$cross_compiling" = yes ||
30973 $as_test_x conftest$ac_exeext
30975 eval "$as_ac_var=yes"
30977 $as_echo "$as_me: failed program was:" >&5
30978 sed 's/^/| /' conftest.$ac_ext >&5
30980 eval "$as_ac_var=no"
30983 rm -rf conftest.dSYM
30984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30985 conftest$ac_exeext conftest.$ac_ext
30987 ac_res=`eval 'as_val=${'$as_ac_var'}
30988 $as_echo "$as_val"'`
30989 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30990 $as_echo "$ac_res" >&6; }
30991 as_val=`eval 'as_val=${'$as_ac_var'}
30992 $as_echo "$as_val"'`
30993 if test "x$as_val" = x""yes; then
30994 cat >>confdefs.h <<_ACEOF
30995 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31006 { $as_echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
31007 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
31008 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then
31009 $as_echo_n "(cached) " >&6
31011 if test "$cross_compiling" = yes; then
31012 gl_cv_func_gettimeofday_clobber=yes
31014 cat >conftest.$ac_ext <<_ACEOF
31017 cat confdefs.h >>conftest.$ac_ext
31018 cat >>conftest.$ac_ext <<_ACEOF
31019 /* end confdefs.h. */
31020 #include <string.h>
31021 #include <sys/time.h>
31023 #include <stdlib.h>
31031 struct tm saved_lt;
31033 lt = localtime (&t);
31035 gettimeofday (&tv, NULL);
31036 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
31042 rm -f conftest$ac_exeext
31043 if { (ac_try="$ac_link"
31044 case "(($ac_try" in
31045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31046 *) ac_try_echo=$ac_try;;
31048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31049 $as_echo "$ac_try_echo") >&5
31050 (eval "$ac_link") 2>&5
31052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31054 { (case "(($ac_try" in
31055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31056 *) ac_try_echo=$ac_try;;
31058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31059 $as_echo "$ac_try_echo") >&5
31060 (eval "$ac_try") 2>&5
31062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31063 (exit $ac_status); }; }; then
31064 gl_cv_func_gettimeofday_clobber=no
31066 $as_echo "$as_me: program exited with status $ac_status" >&5
31067 $as_echo "$as_me: failed program was:" >&5
31068 sed 's/^/| /' conftest.$ac_ext >&5
31070 ( exit $ac_status )
31071 gl_cv_func_gettimeofday_clobber=yes
31073 rm -rf conftest.dSYM
31074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31079 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_clobber" >&5
31080 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
31082 if test $gl_cv_func_gettimeofday_clobber = yes; then
31083 REPLACE_GETTIMEOFDAY=1
31093 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
31097 for ac_header in sys/timeb.h
31099 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31101 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31102 $as_echo_n "checking for $ac_header... " >&6; }
31103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31104 $as_echo_n "(cached) " >&6
31106 ac_res=`eval 'as_val=${'$as_ac_Header'}
31107 $as_echo "$as_val"'`
31108 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31109 $as_echo "$ac_res" >&6; }
31111 # Is the header compilable?
31112 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31113 $as_echo_n "checking $ac_header usability... " >&6; }
31114 cat >conftest.$ac_ext <<_ACEOF
31117 cat confdefs.h >>conftest.$ac_ext
31118 cat >>conftest.$ac_ext <<_ACEOF
31119 /* end confdefs.h. */
31120 $ac_includes_default
31121 #include <$ac_header>
31123 rm -f conftest.$ac_objext
31124 if { (ac_try="$ac_compile"
31125 case "(($ac_try" in
31126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31127 *) ac_try_echo=$ac_try;;
31129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31130 $as_echo "$ac_try_echo") >&5
31131 (eval "$ac_compile") 2>conftest.er1
31133 grep -v '^ *+' conftest.er1 >conftest.err
31135 cat conftest.err >&5
31136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31137 (exit $ac_status); } && {
31138 test -z "$ac_c_werror_flag" ||
31139 test ! -s conftest.err
31140 } && test -s conftest.$ac_objext; then
31141 ac_header_compiler=yes
31143 $as_echo "$as_me: failed program was:" >&5
31144 sed 's/^/| /' conftest.$ac_ext >&5
31146 ac_header_compiler=no
31149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31150 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31151 $as_echo "$ac_header_compiler" >&6; }
31153 # Is the header present?
31154 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31155 $as_echo_n "checking $ac_header presence... " >&6; }
31156 cat >conftest.$ac_ext <<_ACEOF
31159 cat confdefs.h >>conftest.$ac_ext
31160 cat >>conftest.$ac_ext <<_ACEOF
31161 /* end confdefs.h. */
31162 #include <$ac_header>
31164 if { (ac_try="$ac_cpp conftest.$ac_ext"
31165 case "(($ac_try" in
31166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31167 *) ac_try_echo=$ac_try;;
31169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31170 $as_echo "$ac_try_echo") >&5
31171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31173 grep -v '^ *+' conftest.er1 >conftest.err
31175 cat conftest.err >&5
31176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31177 (exit $ac_status); } >/dev/null && {
31178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31179 test ! -s conftest.err
31181 ac_header_preproc=yes
31183 $as_echo "$as_me: failed program was:" >&5
31184 sed 's/^/| /' conftest.$ac_ext >&5
31186 ac_header_preproc=no
31189 rm -f conftest.err conftest.$ac_ext
31190 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31191 $as_echo "$ac_header_preproc" >&6; }
31193 # So? What about this header?
31194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31196 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31197 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31199 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31200 ac_header_preproc=yes
31203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31204 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31206 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31208 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31210 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31212 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31214 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31216 ## ------------------------------ ##
31217 ## Report this to bug-tar@gnu.org ##
31218 ## ------------------------------ ##
31220 ) | sed "s/^/$as_me: WARNING: /" >&2
31223 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31224 $as_echo_n "checking for $ac_header... " >&6; }
31225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31226 $as_echo_n "(cached) " >&6
31228 eval "$as_ac_Header=\$ac_header_preproc"
31230 ac_res=`eval 'as_val=${'$as_ac_Header'}
31231 $as_echo "$as_val"'`
31232 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31233 $as_echo "$ac_res" >&6; }
31236 as_val=`eval 'as_val=${'$as_ac_Header'}
31237 $as_echo "$as_val"'`
31238 if test "x$as_val" = x""yes; then
31239 cat >>confdefs.h <<_ACEOF
31240 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31248 for ac_func in _ftime
31250 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31251 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31252 $as_echo_n "checking for $ac_func... " >&6; }
31253 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31254 $as_echo_n "(cached) " >&6
31256 cat >conftest.$ac_ext <<_ACEOF
31259 cat confdefs.h >>conftest.$ac_ext
31260 cat >>conftest.$ac_ext <<_ACEOF
31261 /* end confdefs.h. */
31262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31264 #define $ac_func innocuous_$ac_func
31266 /* System header to define __stub macros and hopefully few prototypes,
31267 which can conflict with char $ac_func (); below.
31268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31269 <limits.h> exists even on freestanding compilers. */
31272 # include <limits.h>
31274 # include <assert.h>
31279 /* Override any GCC internal prototype to avoid an error.
31280 Use char because int might match the return type of a GCC
31281 builtin and then its argument prototype would still apply. */
31286 /* The GNU C library defines this for functions which it implements
31287 to always fail with ENOSYS. Some functions are actually named
31288 something starting with __ and the normal name is an alias. */
31289 #if defined __stub_$ac_func || defined __stub___$ac_func
31296 return $ac_func ();
31301 rm -f conftest.$ac_objext conftest$ac_exeext
31302 if { (ac_try="$ac_link"
31303 case "(($ac_try" in
31304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31305 *) ac_try_echo=$ac_try;;
31307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31308 $as_echo "$ac_try_echo") >&5
31309 (eval "$ac_link") 2>conftest.er1
31311 grep -v '^ *+' conftest.er1 >conftest.err
31313 cat conftest.err >&5
31314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31315 (exit $ac_status); } && {
31316 test -z "$ac_c_werror_flag" ||
31317 test ! -s conftest.err
31318 } && test -s conftest$ac_exeext && {
31319 test "$cross_compiling" = yes ||
31320 $as_test_x conftest$ac_exeext
31322 eval "$as_ac_var=yes"
31324 $as_echo "$as_me: failed program was:" >&5
31325 sed 's/^/| /' conftest.$ac_ext >&5
31327 eval "$as_ac_var=no"
31330 rm -rf conftest.dSYM
31331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31332 conftest$ac_exeext conftest.$ac_ext
31334 ac_res=`eval 'as_val=${'$as_ac_var'}
31335 $as_echo "$as_val"'`
31336 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31337 $as_echo "$ac_res" >&6; }
31338 as_val=`eval 'as_val=${'$as_ac_var'}
31339 $as_echo "$as_val"'`
31340 if test "x$as_val" = x""yes; then
31341 cat >>confdefs.h <<_ACEOF
31342 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31350 cat >>confdefs.h <<\_ACEOF
31351 #define gmtime rpl_gmtime
31355 cat >>confdefs.h <<\_ACEOF
31356 #define localtime rpl_localtime
31361 cat >>confdefs.h <<\_ACEOF
31362 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1
31367 { $as_echo "$as_me:$LINENO: checking for gettimeofday with POSIX signature" >&5
31368 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
31369 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then
31370 $as_echo_n "(cached) " >&6
31372 cat >conftest.$ac_ext <<_ACEOF
31375 cat confdefs.h >>conftest.$ac_ext
31376 cat >>conftest.$ac_ext <<_ACEOF
31377 /* end confdefs.h. */
31378 #include <sys/time.h>
31380 int gettimeofday (struct timeval *restrict, void *restrict);
31385 /* glibc uses struct timezone * rather than the POSIX void *
31386 if _GNU_SOURCE is defined. However, since the only portable
31387 use of gettimeofday uses NULL as the second parameter, and
31388 since the glibc definition is actually more typesafe, it is
31389 not worth wrapping this to get a compliant signature. */
31390 int (*f) (struct timeval *restrict, void *restrict)
31393 return !(x | c.tv_sec | c.tv_usec);
31399 rm -f conftest.$ac_objext
31400 if { (ac_try="$ac_compile"
31401 case "(($ac_try" in
31402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31403 *) ac_try_echo=$ac_try;;
31405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31406 $as_echo "$ac_try_echo") >&5
31407 (eval "$ac_compile") 2>conftest.er1
31409 grep -v '^ *+' conftest.er1 >conftest.err
31411 cat conftest.err >&5
31412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31413 (exit $ac_status); } && {
31414 test -z "$ac_c_werror_flag" ||
31415 test ! -s conftest.err
31416 } && test -s conftest.$ac_objext; then
31417 gl_cv_func_gettimeofday_posix_signature=yes
31419 $as_echo "$as_me: failed program was:" >&5
31420 sed 's/^/| /' conftest.$ac_ext >&5
31422 cat >conftest.$ac_ext <<_ACEOF
31425 cat confdefs.h >>conftest.$ac_ext
31426 cat >>conftest.$ac_ext <<_ACEOF
31427 /* end confdefs.h. */
31428 #include <sys/time.h>
31429 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
31439 rm -f conftest.$ac_objext
31440 if { (ac_try="$ac_compile"
31441 case "(($ac_try" in
31442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31443 *) ac_try_echo=$ac_try;;
31445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31446 $as_echo "$ac_try_echo") >&5
31447 (eval "$ac_compile") 2>conftest.er1
31449 grep -v '^ *+' conftest.er1 >conftest.err
31451 cat conftest.err >&5
31452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31453 (exit $ac_status); } && {
31454 test -z "$ac_c_werror_flag" ||
31455 test ! -s conftest.err
31456 } && test -s conftest.$ac_objext; then
31457 gl_cv_func_gettimeofday_posix_signature=almost
31459 $as_echo "$as_me: failed program was:" >&5
31460 sed 's/^/| /' conftest.$ac_ext >&5
31462 gl_cv_func_gettimeofday_posix_signature=no
31465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31470 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_posix_signature" >&5
31471 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
31472 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
31473 gl_gettimeofday_timezone='struct timezone'
31474 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
31475 REPLACE_GETTIMEOFDAY=1
31484 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
31488 for ac_header in sys/timeb.h
31490 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31492 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31493 $as_echo_n "checking for $ac_header... " >&6; }
31494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31495 $as_echo_n "(cached) " >&6
31497 ac_res=`eval 'as_val=${'$as_ac_Header'}
31498 $as_echo "$as_val"'`
31499 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31500 $as_echo "$ac_res" >&6; }
31502 # Is the header compilable?
31503 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31504 $as_echo_n "checking $ac_header usability... " >&6; }
31505 cat >conftest.$ac_ext <<_ACEOF
31508 cat confdefs.h >>conftest.$ac_ext
31509 cat >>conftest.$ac_ext <<_ACEOF
31510 /* end confdefs.h. */
31511 $ac_includes_default
31512 #include <$ac_header>
31514 rm -f conftest.$ac_objext
31515 if { (ac_try="$ac_compile"
31516 case "(($ac_try" in
31517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31518 *) ac_try_echo=$ac_try;;
31520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31521 $as_echo "$ac_try_echo") >&5
31522 (eval "$ac_compile") 2>conftest.er1
31524 grep -v '^ *+' conftest.er1 >conftest.err
31526 cat conftest.err >&5
31527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31528 (exit $ac_status); } && {
31529 test -z "$ac_c_werror_flag" ||
31530 test ! -s conftest.err
31531 } && test -s conftest.$ac_objext; then
31532 ac_header_compiler=yes
31534 $as_echo "$as_me: failed program was:" >&5
31535 sed 's/^/| /' conftest.$ac_ext >&5
31537 ac_header_compiler=no
31540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31541 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31542 $as_echo "$ac_header_compiler" >&6; }
31544 # Is the header present?
31545 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31546 $as_echo_n "checking $ac_header presence... " >&6; }
31547 cat >conftest.$ac_ext <<_ACEOF
31550 cat confdefs.h >>conftest.$ac_ext
31551 cat >>conftest.$ac_ext <<_ACEOF
31552 /* end confdefs.h. */
31553 #include <$ac_header>
31555 if { (ac_try="$ac_cpp conftest.$ac_ext"
31556 case "(($ac_try" in
31557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31558 *) ac_try_echo=$ac_try;;
31560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31561 $as_echo "$ac_try_echo") >&5
31562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31564 grep -v '^ *+' conftest.er1 >conftest.err
31566 cat conftest.err >&5
31567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31568 (exit $ac_status); } >/dev/null && {
31569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31570 test ! -s conftest.err
31572 ac_header_preproc=yes
31574 $as_echo "$as_me: failed program was:" >&5
31575 sed 's/^/| /' conftest.$ac_ext >&5
31577 ac_header_preproc=no
31580 rm -f conftest.err conftest.$ac_ext
31581 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31582 $as_echo "$ac_header_preproc" >&6; }
31584 # So? What about this header?
31585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31587 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31588 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31589 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31590 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31591 ac_header_preproc=yes
31594 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31595 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31596 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31597 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31598 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31599 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31601 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31603 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31605 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31607 ## ------------------------------ ##
31608 ## Report this to bug-tar@gnu.org ##
31609 ## ------------------------------ ##
31611 ) | sed "s/^/$as_me: WARNING: /" >&2
31614 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31615 $as_echo_n "checking for $ac_header... " >&6; }
31616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31617 $as_echo_n "(cached) " >&6
31619 eval "$as_ac_Header=\$ac_header_preproc"
31621 ac_res=`eval 'as_val=${'$as_ac_Header'}
31622 $as_echo "$as_val"'`
31623 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31624 $as_echo "$ac_res" >&6; }
31627 as_val=`eval 'as_val=${'$as_ac_Header'}
31628 $as_echo "$as_val"'`
31629 if test "x$as_val" = x""yes; then
31630 cat >>confdefs.h <<_ACEOF
31631 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31639 for ac_func in _ftime
31641 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31642 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31643 $as_echo_n "checking for $ac_func... " >&6; }
31644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31645 $as_echo_n "(cached) " >&6
31647 cat >conftest.$ac_ext <<_ACEOF
31650 cat confdefs.h >>conftest.$ac_ext
31651 cat >>conftest.$ac_ext <<_ACEOF
31652 /* end confdefs.h. */
31653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31655 #define $ac_func innocuous_$ac_func
31657 /* System header to define __stub macros and hopefully few prototypes,
31658 which can conflict with char $ac_func (); below.
31659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31660 <limits.h> exists even on freestanding compilers. */
31663 # include <limits.h>
31665 # include <assert.h>
31670 /* Override any GCC internal prototype to avoid an error.
31671 Use char because int might match the return type of a GCC
31672 builtin and then its argument prototype would still apply. */
31677 /* The GNU C library defines this for functions which it implements
31678 to always fail with ENOSYS. Some functions are actually named
31679 something starting with __ and the normal name is an alias. */
31680 #if defined __stub_$ac_func || defined __stub___$ac_func
31687 return $ac_func ();
31692 rm -f conftest.$ac_objext conftest$ac_exeext
31693 if { (ac_try="$ac_link"
31694 case "(($ac_try" in
31695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31696 *) ac_try_echo=$ac_try;;
31698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31699 $as_echo "$ac_try_echo") >&5
31700 (eval "$ac_link") 2>conftest.er1
31702 grep -v '^ *+' conftest.er1 >conftest.err
31704 cat conftest.err >&5
31705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31706 (exit $ac_status); } && {
31707 test -z "$ac_c_werror_flag" ||
31708 test ! -s conftest.err
31709 } && test -s conftest$ac_exeext && {
31710 test "$cross_compiling" = yes ||
31711 $as_test_x conftest$ac_exeext
31713 eval "$as_ac_var=yes"
31715 $as_echo "$as_me: failed program was:" >&5
31716 sed 's/^/| /' conftest.$ac_ext >&5
31718 eval "$as_ac_var=no"
31721 rm -rf conftest.dSYM
31722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31723 conftest$ac_exeext conftest.$ac_ext
31725 ac_res=`eval 'as_val=${'$as_ac_var'}
31726 $as_echo "$as_val"'`
31727 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31728 $as_echo "$ac_res" >&6; }
31729 as_val=`eval 'as_val=${'$as_ac_var'}
31730 $as_echo "$as_val"'`
31731 if test "x$as_val" = x""yes; then
31732 cat >>confdefs.h <<_ACEOF
31733 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31743 cat >>confdefs.h <<_ACEOF
31744 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
31751 GNULIB_GETTIMEOFDAY=1
31755 cat >>confdefs.h <<\_ACEOF
31756 #define GNULIB_TEST_GETTIMEOFDAY 1
31761 # Code from module gitlog-to-changelog:
31762 # Code from module hash:
31772 gl_LIBOBJS="$gl_LIBOBJS hash.$ac_objext"
31777 # Code from module havelib:
31778 # Code from module human:
31788 gl_LIBOBJS="$gl_LIBOBJS human.$ac_objext"
31793 # Code from module include_next:
31794 # Code from module inline:
31797 { $as_echo "$as_me:$LINENO: checking whether the compiler generally respects inline" >&5
31798 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
31799 if test "${gl_cv_c_inline_effective+set}" = set; then
31800 $as_echo_n "(cached) " >&6
31802 if test $ac_cv_c_inline = no; then
31803 gl_cv_c_inline_effective=no
31805 cat >conftest.$ac_ext <<_ACEOF
31808 cat confdefs.h >>conftest.$ac_ext
31809 cat >>conftest.$ac_ext <<_ACEOF
31810 /* end confdefs.h. */
31815 #ifdef __NO_INLINE__
31816 #error "inline is not effective"
31822 rm -f conftest.$ac_objext
31823 if { (ac_try="$ac_compile"
31824 case "(($ac_try" in
31825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31826 *) ac_try_echo=$ac_try;;
31828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31829 $as_echo "$ac_try_echo") >&5
31830 (eval "$ac_compile") 2>conftest.er1
31832 grep -v '^ *+' conftest.er1 >conftest.err
31834 cat conftest.err >&5
31835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31836 (exit $ac_status); } && {
31837 test -z "$ac_c_werror_flag" ||
31838 test ! -s conftest.err
31839 } && test -s conftest.$ac_objext; then
31840 gl_cv_c_inline_effective=yes
31842 $as_echo "$as_me: failed program was:" >&5
31843 sed 's/^/| /' conftest.$ac_ext >&5
31845 gl_cv_c_inline_effective=no
31848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31852 { $as_echo "$as_me:$LINENO: result: $gl_cv_c_inline_effective" >&5
31853 $as_echo "$gl_cv_c_inline_effective" >&6; }
31854 if test $gl_cv_c_inline_effective = yes; then
31856 cat >>confdefs.h <<\_ACEOF
31857 #define HAVE_INLINE 1
31862 # Code from module intprops:
31863 # Code from module inttostr:
31874 # Code from module inttypes:
31901 { $as_echo "$as_me:$LINENO: checking whether inttypes.h conforms to C99" >&5
31902 $as_echo_n "checking whether inttypes.h conforms to C99... " >&6; }
31903 if test "${gl_cv_header_working_inttypes_h+set}" = set; then
31904 $as_echo_n "(cached) " >&6
31906 gl_cv_header_working_inttypes_h=no
31907 if test "$gl_cv_header_working_stdint_h" = yes \
31908 && test $ac_cv_header_inttypes_h = yes \
31909 && test "$ac_cv_have_decl_imaxabs" = yes \
31910 && test "$ac_cv_have_decl_imaxdiv" = yes \
31911 && test "$ac_cv_have_decl_strtoimax" = yes \
31912 && test "$ac_cv_have_decl_strtoumax" = yes; then
31913 cat >conftest.$ac_ext <<_ACEOF
31917 cat confdefs.h >>conftest.$ac_ext
31918 cat >>conftest.$ac_ext <<_ACEOF
31919 /* end confdefs.h. */
31921 #include <stddef.h>
31922 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
31923 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
31924 #define __STDC_FORMAT_MACROS 1 /* to make it work also in C++ mode */
31925 #define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H /* work if build isn't clean */
31926 #include <inttypes.h>
31928 /* No need to duplicate the tests of stdint.m4; they are subsumed by
31929 $gl_cv_header_working_stdint_h = yes. */
31931 /* Tests for macros supposed to be defined in inttypes.h. */
31933 const char *k = /* implicit string concatenation */
31938 PRIo8 PRIu8 PRIx8 PRIX8
31944 PRIo16 PRIu16 PRIx16 PRIX16
31950 PRIo32 PRIu32 PRIx32 PRIX32
31956 PRIo64 PRIu64 PRIx64 PRIX64
31958 PRIdLEAST8 PRIiLEAST8 PRIoLEAST8 PRIuLEAST8 PRIxLEAST8 PRIXLEAST8
31959 PRIdLEAST16 PRIiLEAST16 PRIoLEAST16 PRIuLEAST16 PRIxLEAST16 PRIXLEAST16
31960 PRIdLEAST32 PRIiLEAST32 PRIoLEAST32 PRIuLEAST32 PRIxLEAST32 PRIXLEAST32
31961 PRIdLEAST64 PRIiLEAST64
31962 PRIoLEAST64 PRIuLEAST64 PRIxLEAST64 PRIXLEAST64
31963 PRIdFAST8 PRIiFAST8 PRIoFAST8 PRIuFAST8 PRIxFAST8 PRIXFAST8
31964 PRIdFAST16 PRIiFAST16 PRIoFAST16 PRIuFAST16 PRIxFAST16 PRIXFAST16
31965 PRIdFAST32 PRIiFAST32 PRIoFAST32 PRIuFAST32 PRIxFAST32 PRIXFAST32
31966 PRIdFAST64 PRIiFAST64
31967 PRIoFAST64 PRIuFAST64 PRIxFAST64 PRIXFAST64
31968 PRIdMAX PRIiMAX PRIoMAX PRIuMAX PRIxMAX PRIXMAX
31973 PRIoPTR PRIuPTR PRIxPTR PRIXPTR
31976 const char *l = /* implicit string concatenation */
31987 SCNo16 SCNu16 SCNx16
31993 SCNo32 SCNu32 SCNx32
31999 SCNo64 SCNu64 SCNx64
32001 SCNdLEAST8 SCNiLEAST8 SCNoLEAST8 SCNuLEAST8 SCNxLEAST8
32002 SCNdLEAST16 SCNiLEAST16 SCNoLEAST16 SCNuLEAST16 SCNxLEAST16
32003 SCNdLEAST32 SCNiLEAST32 SCNoLEAST32 SCNuLEAST32 SCNxLEAST32
32004 SCNdLEAST64 SCNiLEAST64
32005 SCNoLEAST64 SCNuLEAST64 SCNxLEAST64
32006 SCNdFAST8 SCNiFAST8 SCNoFAST8 SCNuFAST8 SCNxFAST8
32007 SCNdFAST16 SCNiFAST16 SCNoFAST16 SCNuFAST16 SCNxFAST16
32008 SCNdFAST32 SCNiFAST32 SCNoFAST32 SCNuFAST32 SCNxFAST32
32009 SCNdFAST64 SCNiFAST64
32010 SCNoFAST64 SCNuFAST64 SCNxFAST64
32011 SCNdMAX SCNiMAX SCNoMAX SCNuMAX SCNxMAX
32016 SCNoPTR SCNuPTR SCNxPTR
32028 rm -f conftest.$ac_objext
32029 if { (ac_try="$ac_compile"
32030 case "(($ac_try" in
32031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32032 *) ac_try_echo=$ac_try;;
32034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32035 $as_echo "$ac_try_echo") >&5
32036 (eval "$ac_compile") 2>conftest.er1
32038 grep -v '^ *+' conftest.er1 >conftest.err
32040 cat conftest.err >&5
32041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32042 (exit $ac_status); } && {
32043 test -z "$ac_c_werror_flag" ||
32044 test ! -s conftest.err
32045 } && test -s conftest.$ac_objext; then
32046 gl_cv_header_working_inttypes_h=yes
32048 $as_echo "$as_me: failed program was:" >&5
32049 sed 's/^/| /' conftest.$ac_ext >&5
32054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32057 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_inttypes_h" >&5
32058 $as_echo "$gl_cv_header_working_inttypes_h" >&6; }
32075 if test $gl_cv_have_include_next = yes; then
32076 gl_cv_next_inttypes_h='<'inttypes.h'>'
32078 { $as_echo "$as_me:$LINENO: checking absolute name of <inttypes.h>" >&5
32079 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
32080 if test "${gl_cv_next_inttypes_h+set}" = set; then
32081 $as_echo_n "(cached) " >&6
32084 if test $ac_cv_header_inttypes_h = yes; then
32087 cat >conftest.$ac_ext <<_ACEOF
32090 cat confdefs.h >>conftest.$ac_ext
32091 cat >>conftest.$ac_ext <<_ACEOF
32092 /* end confdefs.h. */
32093 #include <inttypes.h>
32097 aix*) gl_absname_cpp="$ac_cpp -C" ;;
32098 *) gl_absname_cpp="$ac_cpp" ;;
32100 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
32101 sed -n '\#/inttypes.h#{
32102 s#.*"\(.*/inttypes.h\)".*#\1#
32108 gl_cv_next_inttypes_h='<'inttypes.h'>'
32113 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_inttypes_h" >&5
32114 $as_echo "$gl_cv_next_inttypes_h" >&6; }
32116 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
32118 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
32119 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
32120 gl_next_as_first_directive='<'inttypes.h'>'
32122 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
32123 gl_next_as_first_directive=$gl_cv_next_inttypes_h
32125 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
32134 cat >>confdefs.h <<\_ACEOF
32135 #define GL_TRIGGER_STDC_LIMIT_MACROS 1
32142 if test -n "$STDINT_H"; then
32143 PRIPTR_PREFIX='"l"'
32145 for glpfx in '' l ll I64; do
32147 '') gltype1='int';;
32148 l) gltype1='long int';;
32149 ll) gltype1='long long int';;
32150 I64) gltype1='__int64';;
32152 cat >conftest.$ac_ext <<_ACEOF
32155 cat confdefs.h >>conftest.$ac_ext
32156 cat >>conftest.$ac_ext <<_ACEOF
32157 /* end confdefs.h. */
32158 #include <stdint.h>
32159 extern intptr_t foo;
32160 extern $gltype1 foo;
32169 rm -f conftest.$ac_objext
32170 if { (ac_try="$ac_compile"
32171 case "(($ac_try" in
32172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32173 *) ac_try_echo=$ac_try;;
32175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32176 $as_echo "$ac_try_echo") >&5
32177 (eval "$ac_compile") 2>conftest.er1
32179 grep -v '^ *+' conftest.er1 >conftest.err
32181 cat conftest.err >&5
32182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32183 (exit $ac_status); } && {
32184 test -z "$ac_c_werror_flag" ||
32185 test ! -s conftest.err
32186 } && test -s conftest.$ac_objext; then
32187 PRIPTR_PREFIX='"'$glpfx'"'
32189 $as_echo "$as_me: failed program was:" >&5
32190 sed 's/^/| /' conftest.$ac_ext >&5
32195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32196 test -n "$PRIPTR_PREFIX" && break
32201 if test "$ac_cv_have_decl_imaxabs" = yes; then
32202 HAVE_DECL_IMAXABS=1
32204 HAVE_DECL_IMAXABS=0
32207 if test "$ac_cv_have_decl_imaxdiv" = yes; then
32208 HAVE_DECL_IMAXDIV=1
32210 HAVE_DECL_IMAXDIV=0
32213 if test "$ac_cv_have_decl_strtoimax" = yes; then
32214 HAVE_DECL_STRTOIMAX=1
32216 HAVE_DECL_STRTOIMAX=0
32219 if test "$ac_cv_have_decl_strtoumax" = yes; then
32220 HAVE_DECL_STRTOUMAX=1
32222 HAVE_DECL_STRTOUMAX=0
32226 { $as_echo "$as_me:$LINENO: checking whether INT32_MAX < INTMAX_MAX" >&5
32227 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
32228 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then
32229 $as_echo_n "(cached) " >&6
32231 cat >conftest.$ac_ext <<_ACEOF
32234 cat confdefs.h >>conftest.$ac_ext
32235 cat >>conftest.$ac_ext <<_ACEOF
32236 /* end confdefs.h. */
32237 /* Work also in C++ mode. */
32238 #define __STDC_LIMIT_MACROS 1
32240 /* Work if build is not clean. */
32241 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
32243 #include <limits.h>
32245 #include <stdint.h>
32248 #if defined INT32_MAX && defined INTMAX_MAX
32249 #define CONDITION (INT32_MAX < INTMAX_MAX)
32250 #elif HAVE_LONG_LONG_INT
32251 #define CONDITION (sizeof (int) < sizeof (long long int))
32253 #define CONDITION 0
32255 int test[CONDITION ? 1 : -1];
32264 rm -f conftest.$ac_objext
32265 if { (ac_try="$ac_compile"
32266 case "(($ac_try" in
32267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32268 *) ac_try_echo=$ac_try;;
32270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32271 $as_echo "$ac_try_echo") >&5
32272 (eval "$ac_compile") 2>conftest.er1
32274 grep -v '^ *+' conftest.er1 >conftest.err
32276 cat conftest.err >&5
32277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32278 (exit $ac_status); } && {
32279 test -z "$ac_c_werror_flag" ||
32280 test ! -s conftest.err
32281 } && test -s conftest.$ac_objext; then
32282 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
32284 $as_echo "$as_me: failed program was:" >&5
32285 sed 's/^/| /' conftest.$ac_ext >&5
32287 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
32290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32292 { $as_echo "$as_me:$LINENO: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
32293 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
32294 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
32295 INT32_MAX_LT_INTMAX_MAX=1;
32297 INT32_MAX_LT_INTMAX_MAX=0;
32301 if test $APPLE_UNIVERSAL_BUILD = 0; then
32303 { $as_echo "$as_me:$LINENO: checking whether INT64_MAX == LONG_MAX" >&5
32304 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
32305 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then
32306 $as_echo_n "(cached) " >&6
32308 cat >conftest.$ac_ext <<_ACEOF
32311 cat confdefs.h >>conftest.$ac_ext
32312 cat >>conftest.$ac_ext <<_ACEOF
32313 /* end confdefs.h. */
32314 /* Work also in C++ mode. */
32315 #define __STDC_LIMIT_MACROS 1
32317 /* Work if build is not clean. */
32318 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
32320 #include <limits.h>
32322 #include <stdint.h>
32325 #if defined INT64_MAX
32326 #define CONDITION (INT64_MAX == LONG_MAX)
32327 #elif HAVE_LONG_LONG_INT
32328 #define CONDITION (sizeof (long long int) == sizeof (long int))
32330 #define CONDITION 0
32332 int test[CONDITION ? 1 : -1];
32341 rm -f conftest.$ac_objext
32342 if { (ac_try="$ac_compile"
32343 case "(($ac_try" in
32344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32345 *) ac_try_echo=$ac_try;;
32347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32348 $as_echo "$ac_try_echo") >&5
32349 (eval "$ac_compile") 2>conftest.er1
32351 grep -v '^ *+' conftest.er1 >conftest.err
32353 cat conftest.err >&5
32354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32355 (exit $ac_status); } && {
32356 test -z "$ac_c_werror_flag" ||
32357 test ! -s conftest.err
32358 } && test -s conftest.$ac_objext; then
32359 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
32361 $as_echo "$as_me: failed program was:" >&5
32362 sed 's/^/| /' conftest.$ac_ext >&5
32364 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
32367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32369 { $as_echo "$as_me:$LINENO: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
32370 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
32371 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
32372 INT64_MAX_EQ_LONG_MAX=1;
32374 INT64_MAX_EQ_LONG_MAX=0;
32379 INT64_MAX_EQ_LONG_MAX=-1
32382 { $as_echo "$as_me:$LINENO: checking whether UINT32_MAX < UINTMAX_MAX" >&5
32383 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
32384 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then
32385 $as_echo_n "(cached) " >&6
32387 cat >conftest.$ac_ext <<_ACEOF
32390 cat confdefs.h >>conftest.$ac_ext
32391 cat >>conftest.$ac_ext <<_ACEOF
32392 /* end confdefs.h. */
32393 /* Work also in C++ mode. */
32394 #define __STDC_LIMIT_MACROS 1
32396 /* Work if build is not clean. */
32397 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
32399 #include <limits.h>
32401 #include <stdint.h>
32404 #if defined UINT32_MAX && defined UINTMAX_MAX
32405 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
32406 #elif HAVE_LONG_LONG_INT
32407 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
32409 #define CONDITION 0
32411 int test[CONDITION ? 1 : -1];
32420 rm -f conftest.$ac_objext
32421 if { (ac_try="$ac_compile"
32422 case "(($ac_try" in
32423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32424 *) ac_try_echo=$ac_try;;
32426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32427 $as_echo "$ac_try_echo") >&5
32428 (eval "$ac_compile") 2>conftest.er1
32430 grep -v '^ *+' conftest.er1 >conftest.err
32432 cat conftest.err >&5
32433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32434 (exit $ac_status); } && {
32435 test -z "$ac_c_werror_flag" ||
32436 test ! -s conftest.err
32437 } && test -s conftest.$ac_objext; then
32438 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
32440 $as_echo "$as_me: failed program was:" >&5
32441 sed 's/^/| /' conftest.$ac_ext >&5
32443 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
32446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32448 { $as_echo "$as_me:$LINENO: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
32449 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
32450 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
32451 UINT32_MAX_LT_UINTMAX_MAX=1;
32453 UINT32_MAX_LT_UINTMAX_MAX=0;
32457 if test $APPLE_UNIVERSAL_BUILD = 0; then
32459 { $as_echo "$as_me:$LINENO: checking whether UINT64_MAX == ULONG_MAX" >&5
32460 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
32461 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then
32462 $as_echo_n "(cached) " >&6
32464 cat >conftest.$ac_ext <<_ACEOF
32467 cat confdefs.h >>conftest.$ac_ext
32468 cat >>conftest.$ac_ext <<_ACEOF
32469 /* end confdefs.h. */
32470 /* Work also in C++ mode. */
32471 #define __STDC_LIMIT_MACROS 1
32473 /* Work if build is not clean. */
32474 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
32476 #include <limits.h>
32478 #include <stdint.h>
32481 #if defined UINT64_MAX
32482 #define CONDITION (UINT64_MAX == ULONG_MAX)
32483 #elif HAVE_LONG_LONG_INT
32484 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
32486 #define CONDITION 0
32488 int test[CONDITION ? 1 : -1];
32497 rm -f conftest.$ac_objext
32498 if { (ac_try="$ac_compile"
32499 case "(($ac_try" in
32500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32501 *) ac_try_echo=$ac_try;;
32503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32504 $as_echo "$ac_try_echo") >&5
32505 (eval "$ac_compile") 2>conftest.er1
32507 grep -v '^ *+' conftest.er1 >conftest.err
32509 cat conftest.err >&5
32510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32511 (exit $ac_status); } && {
32512 test -z "$ac_c_werror_flag" ||
32513 test ! -s conftest.err
32514 } && test -s conftest.$ac_objext; then
32515 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
32517 $as_echo "$as_me: failed program was:" >&5
32518 sed 's/^/| /' conftest.$ac_ext >&5
32520 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
32523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32525 { $as_echo "$as_me:$LINENO: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
32526 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
32527 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
32528 UINT64_MAX_EQ_ULONG_MAX=1;
32530 UINT64_MAX_EQ_ULONG_MAX=0;
32535 UINT64_MAX_EQ_ULONG_MAX=-1
32543 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
32544 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
32545 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
32546 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
32547 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
32548 $as_echo_n "(cached) " >&6
32550 cat >conftest.$ac_ext <<_ACEOF
32553 cat confdefs.h >>conftest.$ac_ext
32554 cat >>conftest.$ac_ext <<_ACEOF
32555 /* end confdefs.h. */
32556 #include <inttypes.h>
32567 rm -f conftest.$ac_objext
32568 if { (ac_try="$ac_compile"
32569 case "(($ac_try" in
32570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32571 *) ac_try_echo=$ac_try;;
32573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32574 $as_echo "$ac_try_echo") >&5
32575 (eval "$ac_compile") 2>conftest.er1
32577 grep -v '^ *+' conftest.er1 >conftest.err
32579 cat conftest.err >&5
32580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32581 (exit $ac_status); } && {
32582 test -z "$ac_c_werror_flag" ||
32583 test ! -s conftest.err
32584 } && test -s conftest.$ac_objext; then
32585 eval "$as_gl_Symbol=yes"
32587 $as_echo "$as_me: failed program was:" >&5
32588 sed 's/^/| /' conftest.$ac_ext >&5
32590 eval "$as_gl_Symbol=no"
32593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32595 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
32596 $as_echo "$as_val"'`
32597 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32598 $as_echo "$ac_res" >&6; }
32599 as_val=`eval 'as_val=${'$as_gl_Symbol'}
32600 $as_echo "$as_val"'`
32601 if test "x$as_val" = x""yes; then
32602 cat >>confdefs.h <<_ACEOF
32603 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
32606 eval ac_cv_have_decl_$gl_func=yes
32612 # Code from module iswblank:
32627 if test $ac_cv_func_iswblank = no; then
32629 if test $ac_cv_have_decl_iswblank = yes; then
32633 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
32636 if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then
32645 gl_LIBOBJS="$gl_LIBOBJS iswblank.$ac_objext"
32658 cat >>confdefs.h <<\_ACEOF
32659 #define GNULIB_TEST_ISWBLANK 1
32664 # Code from module langinfo:
32684 if test $gl_cv_have_include_next = yes; then
32685 gl_cv_next_langinfo_h='<'langinfo.h'>'
32687 { $as_echo "$as_me:$LINENO: checking absolute name of <langinfo.h>" >&5
32688 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
32689 if test "${gl_cv_next_langinfo_h+set}" = set; then
32690 $as_echo_n "(cached) " >&6
32693 if test $ac_cv_header_langinfo_h = yes; then
32696 cat >conftest.$ac_ext <<_ACEOF
32699 cat confdefs.h >>conftest.$ac_ext
32700 cat >>conftest.$ac_ext <<_ACEOF
32701 /* end confdefs.h. */
32702 #include <langinfo.h>
32706 aix*) gl_absname_cpp="$ac_cpp -C" ;;
32707 *) gl_absname_cpp="$ac_cpp" ;;
32709 gl_cv_next_langinfo_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
32710 sed -n '\#/langinfo.h#{
32711 s#.*"\(.*/langinfo.h\)".*#\1#
32717 gl_cv_next_langinfo_h='<'langinfo.h'>'
32722 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_langinfo_h" >&5
32723 $as_echo "$gl_cv_next_langinfo_h" >&6; }
32725 NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
32727 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
32728 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
32729 gl_next_as_first_directive='<'langinfo.h'>'
32731 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
32732 gl_next_as_first_directive=$gl_cv_next_langinfo_h
32734 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
32740 HAVE_LANGINFO_CODESET=0
32741 HAVE_LANGINFO_T_FMT_AMPM=0
32742 HAVE_LANGINFO_ERA=0
32743 HAVE_LANGINFO_YESEXPR=0
32750 if test $ac_cv_header_langinfo_h = yes; then
32752 { $as_echo "$as_me:$LINENO: checking whether langinfo.h defines CODESET" >&5
32753 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
32754 if test "${gl_cv_header_langinfo_codeset+set}" = set; then
32755 $as_echo_n "(cached) " >&6
32757 cat >conftest.$ac_ext <<_ACEOF
32760 cat confdefs.h >>conftest.$ac_ext
32761 cat >>conftest.$ac_ext <<_ACEOF
32762 /* end confdefs.h. */
32763 #include <langinfo.h>
32774 rm -f conftest.$ac_objext
32775 if { (ac_try="$ac_compile"
32776 case "(($ac_try" in
32777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32778 *) ac_try_echo=$ac_try;;
32780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32781 $as_echo "$ac_try_echo") >&5
32782 (eval "$ac_compile") 2>conftest.er1
32784 grep -v '^ *+' conftest.er1 >conftest.err
32786 cat conftest.err >&5
32787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32788 (exit $ac_status); } && {
32789 test -z "$ac_c_werror_flag" ||
32790 test ! -s conftest.err
32791 } && test -s conftest.$ac_objext; then
32792 gl_cv_header_langinfo_codeset=yes
32794 $as_echo "$as_me: failed program was:" >&5
32795 sed 's/^/| /' conftest.$ac_ext >&5
32797 gl_cv_header_langinfo_codeset=no
32800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32803 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_langinfo_codeset" >&5
32804 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
32805 if test $gl_cv_header_langinfo_codeset = yes; then
32806 HAVE_LANGINFO_CODESET=1
32808 { $as_echo "$as_me:$LINENO: checking whether langinfo.h defines T_FMT_AMPM" >&5
32809 $as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; }
32810 if test "${gl_cv_header_langinfo_t_fmt_ampm+set}" = set; then
32811 $as_echo_n "(cached) " >&6
32813 cat >conftest.$ac_ext <<_ACEOF
32816 cat confdefs.h >>conftest.$ac_ext
32817 cat >>conftest.$ac_ext <<_ACEOF
32818 /* end confdefs.h. */
32819 #include <langinfo.h>
32820 int a = T_FMT_AMPM;
32830 rm -f conftest.$ac_objext
32831 if { (ac_try="$ac_compile"
32832 case "(($ac_try" in
32833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32834 *) ac_try_echo=$ac_try;;
32836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32837 $as_echo "$ac_try_echo") >&5
32838 (eval "$ac_compile") 2>conftest.er1
32840 grep -v '^ *+' conftest.er1 >conftest.err
32842 cat conftest.err >&5
32843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32844 (exit $ac_status); } && {
32845 test -z "$ac_c_werror_flag" ||
32846 test ! -s conftest.err
32847 } && test -s conftest.$ac_objext; then
32848 gl_cv_header_langinfo_t_fmt_ampm=yes
32850 $as_echo "$as_me: failed program was:" >&5
32851 sed 's/^/| /' conftest.$ac_ext >&5
32853 gl_cv_header_langinfo_t_fmt_ampm=no
32856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32859 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5
32860 $as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; }
32861 if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
32862 HAVE_LANGINFO_T_FMT_AMPM=1
32864 { $as_echo "$as_me:$LINENO: checking whether langinfo.h defines ERA" >&5
32865 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
32866 if test "${gl_cv_header_langinfo_era+set}" = set; then
32867 $as_echo_n "(cached) " >&6
32869 cat >conftest.$ac_ext <<_ACEOF
32872 cat confdefs.h >>conftest.$ac_ext
32873 cat >>conftest.$ac_ext <<_ACEOF
32874 /* end confdefs.h. */
32875 #include <langinfo.h>
32886 rm -f conftest.$ac_objext
32887 if { (ac_try="$ac_compile"
32888 case "(($ac_try" in
32889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32890 *) ac_try_echo=$ac_try;;
32892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32893 $as_echo "$ac_try_echo") >&5
32894 (eval "$ac_compile") 2>conftest.er1
32896 grep -v '^ *+' conftest.er1 >conftest.err
32898 cat conftest.err >&5
32899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32900 (exit $ac_status); } && {
32901 test -z "$ac_c_werror_flag" ||
32902 test ! -s conftest.err
32903 } && test -s conftest.$ac_objext; then
32904 gl_cv_header_langinfo_era=yes
32906 $as_echo "$as_me: failed program was:" >&5
32907 sed 's/^/| /' conftest.$ac_ext >&5
32909 gl_cv_header_langinfo_era=no
32912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32915 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_langinfo_era" >&5
32916 $as_echo "$gl_cv_header_langinfo_era" >&6; }
32917 if test $gl_cv_header_langinfo_era = yes; then
32918 HAVE_LANGINFO_ERA=1
32920 { $as_echo "$as_me:$LINENO: checking whether langinfo.h defines YESEXPR" >&5
32921 $as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; }
32922 if test "${gl_cv_header_langinfo_yesexpr+set}" = set; then
32923 $as_echo_n "(cached) " >&6
32925 cat >conftest.$ac_ext <<_ACEOF
32928 cat confdefs.h >>conftest.$ac_ext
32929 cat >>conftest.$ac_ext <<_ACEOF
32930 /* end confdefs.h. */
32931 #include <langinfo.h>
32942 rm -f conftest.$ac_objext
32943 if { (ac_try="$ac_compile"
32944 case "(($ac_try" in
32945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32946 *) ac_try_echo=$ac_try;;
32948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32949 $as_echo "$ac_try_echo") >&5
32950 (eval "$ac_compile") 2>conftest.er1
32952 grep -v '^ *+' conftest.er1 >conftest.err
32954 cat conftest.err >&5
32955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32956 (exit $ac_status); } && {
32957 test -z "$ac_c_werror_flag" ||
32958 test ! -s conftest.err
32959 } && test -s conftest.$ac_objext; then
32960 gl_cv_header_langinfo_yesexpr=yes
32962 $as_echo "$as_me: failed program was:" >&5
32963 sed 's/^/| /' conftest.$ac_ext >&5
32965 gl_cv_header_langinfo_yesexpr=no
32968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32971 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_langinfo_yesexpr" >&5
32972 $as_echo "$gl_cv_header_langinfo_yesexpr" >&6; }
32973 if test $gl_cv_header_langinfo_yesexpr = yes; then
32974 HAVE_LANGINFO_YESEXPR=1
32987 for gl_func in nl_langinfo; do
32988 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
32989 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
32990 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
32991 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
32992 $as_echo_n "(cached) " >&6
32994 cat >conftest.$ac_ext <<_ACEOF
32997 cat confdefs.h >>conftest.$ac_ext
32998 cat >>conftest.$ac_ext <<_ACEOF
32999 /* end confdefs.h. */
33000 #include <langinfo.h>
33011 rm -f conftest.$ac_objext
33012 if { (ac_try="$ac_compile"
33013 case "(($ac_try" in
33014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33015 *) ac_try_echo=$ac_try;;
33017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33018 $as_echo "$ac_try_echo") >&5
33019 (eval "$ac_compile") 2>conftest.er1
33021 grep -v '^ *+' conftest.er1 >conftest.err
33023 cat conftest.err >&5
33024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33025 (exit $ac_status); } && {
33026 test -z "$ac_c_werror_flag" ||
33027 test ! -s conftest.err
33028 } && test -s conftest.$ac_objext; then
33029 eval "$as_gl_Symbol=yes"
33031 $as_echo "$as_me: failed program was:" >&5
33032 sed 's/^/| /' conftest.$ac_ext >&5
33034 eval "$as_gl_Symbol=no"
33037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33039 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
33040 $as_echo "$as_val"'`
33041 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33042 $as_echo "$ac_res" >&6; }
33043 as_val=`eval 'as_val=${'$as_gl_Symbol'}
33044 $as_echo "$as_val"'`
33045 if test "x$as_val" = x""yes; then
33046 cat >>confdefs.h <<_ACEOF
33047 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
33050 eval ac_cv_have_decl_$gl_func=yes
33056 # Code from module lchown:
33075 for ac_func in lchown
33077 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33078 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
33079 $as_echo_n "checking for $ac_func... " >&6; }
33080 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33081 $as_echo_n "(cached) " >&6
33083 cat >conftest.$ac_ext <<_ACEOF
33086 cat confdefs.h >>conftest.$ac_ext
33087 cat >>conftest.$ac_ext <<_ACEOF
33088 /* end confdefs.h. */
33089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33091 #define $ac_func innocuous_$ac_func
33093 /* System header to define __stub macros and hopefully few prototypes,
33094 which can conflict with char $ac_func (); below.
33095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33096 <limits.h> exists even on freestanding compilers. */
33099 # include <limits.h>
33101 # include <assert.h>
33106 /* Override any GCC internal prototype to avoid an error.
33107 Use char because int might match the return type of a GCC
33108 builtin and then its argument prototype would still apply. */
33113 /* The GNU C library defines this for functions which it implements
33114 to always fail with ENOSYS. Some functions are actually named
33115 something starting with __ and the normal name is an alias. */
33116 #if defined __stub_$ac_func || defined __stub___$ac_func
33123 return $ac_func ();
33128 rm -f conftest.$ac_objext conftest$ac_exeext
33129 if { (ac_try="$ac_link"
33130 case "(($ac_try" in
33131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33132 *) ac_try_echo=$ac_try;;
33134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33135 $as_echo "$ac_try_echo") >&5
33136 (eval "$ac_link") 2>conftest.er1
33138 grep -v '^ *+' conftest.er1 >conftest.err
33140 cat conftest.err >&5
33141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33142 (exit $ac_status); } && {
33143 test -z "$ac_c_werror_flag" ||
33144 test ! -s conftest.err
33145 } && test -s conftest$ac_exeext && {
33146 test "$cross_compiling" = yes ||
33147 $as_test_x conftest$ac_exeext
33149 eval "$as_ac_var=yes"
33151 $as_echo "$as_me: failed program was:" >&5
33152 sed 's/^/| /' conftest.$ac_ext >&5
33154 eval "$as_ac_var=no"
33157 rm -rf conftest.dSYM
33158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33159 conftest$ac_exeext conftest.$ac_ext
33161 ac_res=`eval 'as_val=${'$as_ac_var'}
33162 $as_echo "$as_val"'`
33163 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33164 $as_echo "$ac_res" >&6; }
33165 as_val=`eval 'as_val=${'$as_ac_var'}
33166 $as_echo "$as_val"'`
33167 if test "x$as_val" = x""yes; then
33168 cat >>confdefs.h <<_ACEOF
33169 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33174 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
33180 if test $ac_cv_func_lchown = no; then
33182 elif test "$gl_cv_func_chown_slash_works" != yes \
33183 || test "$gl_cv_func_chown_ctime_works" != yes; then
33192 gl_LIBOBJS="$gl_LIBOBJS lchown.$ac_objext"
33204 cat >>confdefs.h <<\_ACEOF
33205 #define GNULIB_TEST_LCHOWN 1
33210 # Code from module link:
33219 if test $ac_cv_func_link = no; then
33229 gl_LIBOBJS="$gl_LIBOBJS link.$ac_objext"
33232 { $as_echo "$as_me:$LINENO: checking whether link handles trailing slash correctly" >&5
33233 $as_echo_n "checking whether link handles trailing slash correctly... " >&6; }
33234 if test "${gl_cv_func_link_works+set}" = set; then
33235 $as_echo_n "(cached) " >&6
33238 # Assume that if we have lstat, we can also check symlinks.
33239 if test $ac_cv_func_lstat = yes; then
33240 ln -s conftest.a conftest.lnk
33242 if test "$cross_compiling" = yes; then
33243 gl_cv_func_link_works="guessing no"
33245 cat >conftest.$ac_ext <<_ACEOF
33248 cat confdefs.h >>conftest.$ac_ext
33249 cat >>conftest.$ac_ext <<_ACEOF
33250 /* end confdefs.h. */
33251 #include <unistd.h>
33257 if (!link ("conftest.a", "conftest.b/"))
33260 if (!link ("conftest.lnk/", "conftest.b"))
33269 rm -f conftest$ac_exeext
33270 if { (ac_try="$ac_link"
33271 case "(($ac_try" in
33272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33273 *) ac_try_echo=$ac_try;;
33275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33276 $as_echo "$ac_try_echo") >&5
33277 (eval "$ac_link") 2>&5
33279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33281 { (case "(($ac_try" in
33282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33283 *) ac_try_echo=$ac_try;;
33285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33286 $as_echo "$ac_try_echo") >&5
33287 (eval "$ac_try") 2>&5
33289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33290 (exit $ac_status); }; }; then
33291 gl_cv_func_link_works=yes
33293 $as_echo "$as_me: program exited with status $ac_status" >&5
33294 $as_echo "$as_me: failed program was:" >&5
33295 sed 's/^/| /' conftest.$ac_ext >&5
33297 ( exit $ac_status )
33298 gl_cv_func_link_works=no
33300 rm -rf conftest.dSYM
33301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33305 rm -f conftest.a conftest.b conftest.lnk
33307 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_link_works" >&5
33308 $as_echo "$gl_cv_func_link_works" >&6; }
33309 if test "$gl_cv_func_link_works" != yes; then
33319 gl_LIBOBJS="$gl_LIBOBJS link.$ac_objext"
33331 cat >>confdefs.h <<\_ACEOF
33332 #define GNULIB_TEST_LINK 1
33337 # Code from module link-follow:
33344 gl_link_follows_symlinks=0 # assume GNU behavior
33345 if test $ac_cv_func_readlink = yes; then
33346 { $as_echo "$as_me:$LINENO: checking for __xpg4" >&5
33347 $as_echo_n "checking for __xpg4... " >&6; }
33348 if test "${gl_cv_have___xpg4+set}" = set; then
33349 $as_echo_n "(cached) " >&6
33351 cat >conftest.$ac_ext <<_ACEOF
33354 cat confdefs.h >>conftest.$ac_ext
33355 cat >>conftest.$ac_ext <<_ACEOF
33356 /* end confdefs.h. */
33366 rm -f conftest.$ac_objext conftest$ac_exeext
33367 if { (ac_try="$ac_link"
33368 case "(($ac_try" in
33369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33370 *) ac_try_echo=$ac_try;;
33372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33373 $as_echo "$ac_try_echo") >&5
33374 (eval "$ac_link") 2>conftest.er1
33376 grep -v '^ *+' conftest.er1 >conftest.err
33378 cat conftest.err >&5
33379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33380 (exit $ac_status); } && {
33381 test -z "$ac_c_werror_flag" ||
33382 test ! -s conftest.err
33383 } && test -s conftest$ac_exeext && {
33384 test "$cross_compiling" = yes ||
33385 $as_test_x conftest$ac_exeext
33387 gl_cv_have___xpg4=yes
33389 $as_echo "$as_me: failed program was:" >&5
33390 sed 's/^/| /' conftest.$ac_ext >&5
33392 gl_cv_have___xpg4=no
33395 rm -rf conftest.dSYM
33396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33397 conftest$ac_exeext conftest.$ac_ext
33400 { $as_echo "$as_me:$LINENO: result: $gl_cv_have___xpg4" >&5
33401 $as_echo "$gl_cv_have___xpg4" >&6; }
33402 if test $gl_cv_have___xpg4 = yes; then
33403 gl_link_follows_symlinks=-1
33405 { $as_echo "$as_me:$LINENO: checking whether link(2) dereferences a symlink" >&5
33406 $as_echo_n "checking whether link(2) dereferences a symlink... " >&6; }
33407 if test "${gl_cv_func_link_follows_symlink+set}" = set; then
33408 $as_echo_n "(cached) " >&6
33411 # Create a regular file.
33412 echo > conftest.file
33413 if test "$cross_compiling" = yes; then
33414 gl_cv_func_link_follows_symlink=unknown
33416 cat >conftest.$ac_ext <<_ACEOF
33419 cat confdefs.h >>conftest.$ac_ext
33420 cat >>conftest.$ac_ext <<_ACEOF
33421 /* end confdefs.h. */
33423 # include <sys/types.h>
33424 # include <sys/stat.h>
33425 # include <unistd.h>
33426 # include <stdlib.h>
33428 # define SAME_INODE(Stat_buf_1, Stat_buf_2) \
33429 ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
33430 && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
33435 const char *file = "conftest.file";
33436 const char *sym = "conftest.sym";
33437 const char *hard = "conftest.hard";
33438 struct stat sb_file, sb_hard;
33440 /* Create a symlink to the regular file. */
33441 if (symlink (file, sym))
33444 /* Create a hard link to that symlink. */
33445 if (link (sym, hard))
33448 if (lstat (hard, &sb_hard))
33450 if (lstat (file, &sb_file))
33453 /* If the dev/inode of hard and file are the same, then
33454 the link call followed the symlink. */
33455 return SAME_INODE (sb_hard, sb_file) ? 1 : 0;
33459 rm -f conftest$ac_exeext
33460 if { (ac_try="$ac_link"
33461 case "(($ac_try" in
33462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33463 *) ac_try_echo=$ac_try;;
33465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33466 $as_echo "$ac_try_echo") >&5
33467 (eval "$ac_link") 2>&5
33469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33471 { (case "(($ac_try" in
33472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33473 *) ac_try_echo=$ac_try;;
33475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33476 $as_echo "$ac_try_echo") >&5
33477 (eval "$ac_try") 2>&5
33479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33480 (exit $ac_status); }; }; then
33481 gl_cv_func_link_follows_symlink=no
33483 $as_echo "$as_me: program exited with status $ac_status" >&5
33484 $as_echo "$as_me: failed program was:" >&5
33485 sed 's/^/| /' conftest.$ac_ext >&5
33487 ( exit $ac_status )
33488 gl_cv_func_link_follows_symlink=yes
33490 rm -rf conftest.dSYM
33491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33495 rm -f conftest.file conftest.sym conftest.hard
33498 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_link_follows_symlink" >&5
33499 $as_echo "$gl_cv_func_link_follows_symlink" >&6; }
33500 case $gl_cv_func_link_follows_symlink in
33501 yes) gl_link_follows_symlinks=1 ;;
33502 no) ;; # already defaulted to 0
33503 *) gl_link_follows_symlinks=-2 ;;
33508 cat >>confdefs.h <<_ACEOF
33509 #define LINK_FOLLOWS_SYMLINKS $gl_link_follows_symlinks
33513 # Code from module linkat:
33534 if test $ac_cv_func_linkat = no; then
33544 gl_LIBOBJS="$gl_LIBOBJS linkat.$ac_objext"
33554 gl_LIBOBJS="$gl_LIBOBJS at-func2.$ac_objext"
33557 { $as_echo "$as_me:$LINENO: checking whether linkat(,AT_SYMLINK_FOLLOW) works" >&5
33558 $as_echo_n "checking whether linkat(,AT_SYMLINK_FOLLOW) works... " >&6; }
33559 if test "${gl_cv_func_linkat_follow+set}" = set; then
33560 $as_echo_n "(cached) " >&6
33562 rm -rf conftest.f1 conftest.f2
33564 cat >conftest.$ac_ext <<_ACEOF
33567 cat confdefs.h >>conftest.$ac_ext
33568 cat >>conftest.$ac_ext <<_ACEOF
33569 /* end confdefs.h. */
33572 #include <unistd.h>
33574 /* Linux added linkat in 2.6.16, but did not add AT_SYMLINK_FOLLOW
33575 until 2.6.18. Always replace linkat to support older kernels. */
33582 return linkat (AT_FDCWD, "conftest.f1", AT_FDCWD, "conftest.f2",
33583 AT_SYMLINK_FOLLOW);
33588 rm -f conftest.$ac_objext
33589 if { (ac_try="$ac_compile"
33590 case "(($ac_try" in
33591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33592 *) ac_try_echo=$ac_try;;
33594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33595 $as_echo "$ac_try_echo") >&5
33596 (eval "$ac_compile") 2>conftest.er1
33598 grep -v '^ *+' conftest.er1 >conftest.err
33600 cat conftest.err >&5
33601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33602 (exit $ac_status); } && {
33603 test -z "$ac_c_werror_flag" ||
33604 test ! -s conftest.err
33605 } && test -s conftest.$ac_objext; then
33606 gl_cv_func_linkat_follow=yes
33608 $as_echo "$as_me: failed program was:" >&5
33609 sed 's/^/| /' conftest.$ac_ext >&5
33611 gl_cv_func_linkat_follow="need runtime check"
33614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33615 rm -rf conftest.f1 conftest.f2
33617 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_linkat_follow" >&5
33618 $as_echo "$gl_cv_func_linkat_follow" >&6; }
33619 { $as_echo "$as_me:$LINENO: checking whether linkat handles trailing slash correctly" >&5
33620 $as_echo_n "checking whether linkat handles trailing slash correctly... " >&6; }
33621 if test "${gl_cv_func_linkat_slash+set}" = set; then
33622 $as_echo_n "(cached) " >&6
33624 rm -rf conftest.a conftest.b conftest.c conftest.d
33625 if test "$cross_compiling" = yes; then
33626 # Guess yes on glibc systems, no otherwise.
33628 *-gnu*) gl_cv_func_linkat_slash="guessing yes";;
33629 *) gl_cv_func_linkat_slash="guessing no";;
33633 cat >conftest.$ac_ext <<_ACEOF
33636 cat confdefs.h >>conftest.$ac_ext
33637 cat >>conftest.$ac_ext <<_ACEOF
33638 /* end confdefs.h. */
33639 #include <unistd.h>
33649 /* Create a regular file. */
33650 fd = open ("conftest.a", O_CREAT | O_EXCL | O_WRONLY, 0600);
33653 if (write (fd, "hello", 5) < 5)
33655 if (close (fd) < 0)
33657 /* Test whether hard links are supported on the current
33659 if (linkat (AT_FDCWD, "conftest.a", AT_FDCWD, "conftest.b",
33660 AT_SYMLINK_FOLLOW) < 0)
33663 /* Test whether a trailing "/" is treated like "/.". */
33664 if (linkat (AT_FDCWD, "conftest.a/", AT_FDCWD, "conftest.c",
33665 AT_SYMLINK_FOLLOW) == 0)
33667 if (linkat (AT_FDCWD, "conftest.a", AT_FDCWD, "conftest.d/",
33668 AT_SYMLINK_FOLLOW) == 0)
33676 rm -f conftest$ac_exeext
33677 if { (ac_try="$ac_link"
33678 case "(($ac_try" in
33679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33680 *) ac_try_echo=$ac_try;;
33682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33683 $as_echo "$ac_try_echo") >&5
33684 (eval "$ac_link") 2>&5
33686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33688 { (case "(($ac_try" in
33689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33690 *) ac_try_echo=$ac_try;;
33692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33693 $as_echo "$ac_try_echo") >&5
33694 (eval "$ac_try") 2>&5
33696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33697 (exit $ac_status); }; }; then
33698 gl_cv_func_linkat_slash=yes
33700 $as_echo "$as_me: program exited with status $ac_status" >&5
33701 $as_echo "$as_me: failed program was:" >&5
33702 sed 's/^/| /' conftest.$ac_ext >&5
33704 ( exit $ac_status )
33705 gl_cv_func_linkat_slash=no
33707 rm -rf conftest.dSYM
33708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33712 rm -rf conftest.a conftest.b conftest.c conftest.d
33714 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_linkat_slash" >&5
33715 $as_echo "$gl_cv_func_linkat_slash" >&6; }
33716 case "$gl_cv_func_linkat_slash" in
33717 *yes) gl_linkat_slash_bug=0 ;;
33718 *) gl_linkat_slash_bug=1 ;;
33720 if test "$gl_cv_func_linkat_follow" != yes \
33721 || test $gl_linkat_slash_bug = 1; then
33731 gl_LIBOBJS="$gl_LIBOBJS linkat.$ac_objext"
33734 cat >>confdefs.h <<_ACEOF
33735 #define LINKAT_TRAILING_SLASH_BUG $gl_linkat_slash_bug
33748 cat >>confdefs.h <<\_ACEOF
33749 #define GNULIB_TEST_LINKAT 1
33754 # Code from module localcharset:
33766 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
33768 # Code from module lseek:
33772 { $as_echo "$as_me:$LINENO: checking whether lseek detects pipes" >&5
33773 $as_echo_n "checking whether lseek detects pipes... " >&6; }
33774 if test "${gl_cv_func_lseek_pipe+set}" = set; then
33775 $as_echo_n "(cached) " >&6
33777 if test $cross_compiling = no; then
33778 cat >conftest.$ac_ext <<_ACEOF
33781 cat confdefs.h >>conftest.$ac_ext
33782 cat >>conftest.$ac_ext <<_ACEOF
33783 /* end confdefs.h. */
33785 #include <sys/types.h> /* for off_t */
33786 #include <stdio.h> /* for SEEK_CUR */
33787 #include <unistd.h>
33792 /* Exit with success only if stdin is seekable. */
33793 return lseek (0, (off_t)0, SEEK_CUR) < 0;
33799 rm -f conftest.$ac_objext conftest$ac_exeext
33800 if { (ac_try="$ac_link"
33801 case "(($ac_try" in
33802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33803 *) ac_try_echo=$ac_try;;
33805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33806 $as_echo "$ac_try_echo") >&5
33807 (eval "$ac_link") 2>conftest.er1
33809 grep -v '^ *+' conftest.er1 >conftest.err
33811 cat conftest.err >&5
33812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33813 (exit $ac_status); } && {
33814 test -z "$ac_c_werror_flag" ||
33815 test ! -s conftest.err
33816 } && test -s conftest$ac_exeext && {
33817 test "$cross_compiling" = yes ||
33818 $as_test_x conftest$ac_exeext
33820 if test -s conftest$ac_exeext \
33821 && ./conftest$ac_exeext < conftest.$ac_ext \
33822 && test 1 = "`echo hi \
33823 | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
33824 gl_cv_func_lseek_pipe=yes
33826 gl_cv_func_lseek_pipe=no
33829 $as_echo "$as_me: failed program was:" >&5
33830 sed 's/^/| /' conftest.$ac_ext >&5
33832 gl_cv_func_lseek_pipe=no
33835 rm -rf conftest.dSYM
33836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33837 conftest$ac_exeext conftest.$ac_ext
33839 cat >conftest.$ac_ext <<_ACEOF
33842 cat confdefs.h >>conftest.$ac_ext
33843 cat >>conftest.$ac_ext <<_ACEOF
33844 /* end confdefs.h. */
33846 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined __BEOS__
33847 /* mingw and BeOS mistakenly return 0 when trying to seek on pipes. */
33851 rm -f conftest.$ac_objext
33852 if { (ac_try="$ac_compile"
33853 case "(($ac_try" in
33854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33855 *) ac_try_echo=$ac_try;;
33857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33858 $as_echo "$ac_try_echo") >&5
33859 (eval "$ac_compile") 2>conftest.er1
33861 grep -v '^ *+' conftest.er1 >conftest.err
33863 cat conftest.err >&5
33864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33865 (exit $ac_status); } && {
33866 test -z "$ac_c_werror_flag" ||
33867 test ! -s conftest.err
33868 } && test -s conftest.$ac_objext; then
33869 gl_cv_func_lseek_pipe=yes
33871 $as_echo "$as_me: failed program was:" >&5
33872 sed 's/^/| /' conftest.$ac_ext >&5
33874 gl_cv_func_lseek_pipe=no
33877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33880 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_lseek_pipe" >&5
33881 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
33882 if test $gl_cv_func_lseek_pipe = no; then
33892 gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
33897 cat >>confdefs.h <<\_ACEOF
33898 #define LSEEK_PIPE_BROKEN 1
33911 cat >>confdefs.h <<\_ACEOF
33912 #define GNULIB_TEST_LSEEK 1
33917 # Code from module lstat:
33926 if test $ac_cv_func_lstat = yes; then
33928 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
33931 # Prerequisites of lib/lstat.c.
33944 cat >>confdefs.h <<\_ACEOF
33945 #define GNULIB_TEST_LSTAT 1
33950 # Code from module malloc-gnu:
33954 for ac_header in stdlib.h
33956 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33958 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33959 $as_echo_n "checking for $ac_header... " >&6; }
33960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33961 $as_echo_n "(cached) " >&6
33963 ac_res=`eval 'as_val=${'$as_ac_Header'}
33964 $as_echo "$as_val"'`
33965 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33966 $as_echo "$ac_res" >&6; }
33968 # Is the header compilable?
33969 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
33970 $as_echo_n "checking $ac_header usability... " >&6; }
33971 cat >conftest.$ac_ext <<_ACEOF
33974 cat confdefs.h >>conftest.$ac_ext
33975 cat >>conftest.$ac_ext <<_ACEOF
33976 /* end confdefs.h. */
33977 $ac_includes_default
33978 #include <$ac_header>
33980 rm -f conftest.$ac_objext
33981 if { (ac_try="$ac_compile"
33982 case "(($ac_try" in
33983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33984 *) ac_try_echo=$ac_try;;
33986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33987 $as_echo "$ac_try_echo") >&5
33988 (eval "$ac_compile") 2>conftest.er1
33990 grep -v '^ *+' conftest.er1 >conftest.err
33992 cat conftest.err >&5
33993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33994 (exit $ac_status); } && {
33995 test -z "$ac_c_werror_flag" ||
33996 test ! -s conftest.err
33997 } && test -s conftest.$ac_objext; then
33998 ac_header_compiler=yes
34000 $as_echo "$as_me: failed program was:" >&5
34001 sed 's/^/| /' conftest.$ac_ext >&5
34003 ac_header_compiler=no
34006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34007 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34008 $as_echo "$ac_header_compiler" >&6; }
34010 # Is the header present?
34011 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
34012 $as_echo_n "checking $ac_header presence... " >&6; }
34013 cat >conftest.$ac_ext <<_ACEOF
34016 cat confdefs.h >>conftest.$ac_ext
34017 cat >>conftest.$ac_ext <<_ACEOF
34018 /* end confdefs.h. */
34019 #include <$ac_header>
34021 if { (ac_try="$ac_cpp conftest.$ac_ext"
34022 case "(($ac_try" in
34023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34024 *) ac_try_echo=$ac_try;;
34026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34027 $as_echo "$ac_try_echo") >&5
34028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34030 grep -v '^ *+' conftest.er1 >conftest.err
34032 cat conftest.err >&5
34033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34034 (exit $ac_status); } >/dev/null && {
34035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34036 test ! -s conftest.err
34038 ac_header_preproc=yes
34040 $as_echo "$as_me: failed program was:" >&5
34041 sed 's/^/| /' conftest.$ac_ext >&5
34043 ac_header_preproc=no
34046 rm -f conftest.err conftest.$ac_ext
34047 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34048 $as_echo "$ac_header_preproc" >&6; }
34050 # So? What about this header?
34051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34054 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34056 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34057 ac_header_preproc=yes
34060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34061 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34063 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34065 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34067 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34069 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34071 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34073 ## ------------------------------ ##
34074 ## Report this to bug-tar@gnu.org ##
34075 ## ------------------------------ ##
34077 ) | sed "s/^/$as_me: WARNING: /" >&2
34080 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
34081 $as_echo_n "checking for $ac_header... " >&6; }
34082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34083 $as_echo_n "(cached) " >&6
34085 eval "$as_ac_Header=\$ac_header_preproc"
34087 ac_res=`eval 'as_val=${'$as_ac_Header'}
34088 $as_echo "$as_val"'`
34089 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34090 $as_echo "$ac_res" >&6; }
34093 as_val=`eval 'as_val=${'$as_ac_Header'}
34094 $as_echo "$as_val"'`
34095 if test "x$as_val" = x""yes; then
34096 cat >>confdefs.h <<_ACEOF
34097 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34104 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
34105 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
34106 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
34107 $as_echo_n "(cached) " >&6
34109 if test "$cross_compiling" = yes; then
34110 ac_cv_func_malloc_0_nonnull=no
34112 cat >conftest.$ac_ext <<_ACEOF
34115 cat confdefs.h >>conftest.$ac_ext
34116 cat >>conftest.$ac_ext <<_ACEOF
34117 /* end confdefs.h. */
34118 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
34119 # include <stdlib.h>
34127 return ! malloc (0);
34132 rm -f conftest$ac_exeext
34133 if { (ac_try="$ac_link"
34134 case "(($ac_try" in
34135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34136 *) ac_try_echo=$ac_try;;
34138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34139 $as_echo "$ac_try_echo") >&5
34140 (eval "$ac_link") 2>&5
34142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34144 { (case "(($ac_try" in
34145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34146 *) ac_try_echo=$ac_try;;
34148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34149 $as_echo "$ac_try_echo") >&5
34150 (eval "$ac_try") 2>&5
34152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34153 (exit $ac_status); }; }; then
34154 ac_cv_func_malloc_0_nonnull=yes
34156 $as_echo "$as_me: program exited with status $ac_status" >&5
34157 $as_echo "$as_me: failed program was:" >&5
34158 sed 's/^/| /' conftest.$ac_ext >&5
34160 ( exit $ac_status )
34161 ac_cv_func_malloc_0_nonnull=no
34163 rm -rf conftest.dSYM
34164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34169 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
34170 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
34171 if test $ac_cv_func_malloc_0_nonnull = yes; then
34173 cat >>confdefs.h <<\_ACEOF
34174 #define HAVE_MALLOC_GNU 1
34178 cat >>confdefs.h <<\_ACEOF
34179 #define HAVE_MALLOC_GNU 0
34191 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
34202 cat >>confdefs.h <<_ACEOF
34203 #define GNULIB_MALLOC_GNU 1
34207 # Code from module malloc-posix:
34211 if test $gl_cv_func_malloc_posix = yes; then
34213 cat >>confdefs.h <<\_ACEOF
34214 #define HAVE_MALLOC_POSIX 1
34227 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
34236 GNULIB_MALLOC_POSIX=1
34240 cat >>confdefs.h <<\_ACEOF
34241 #define GNULIB_TEST_MALLOC_POSIX 1
34246 # Code from module malloca:
34251 # Code from module mbchar:
34256 # Code from module mbrtowc:
34277 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
34281 { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
34282 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
34283 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
34284 $as_echo_n "(cached) " >&6
34288 # Guess no on AIX and OSF/1.
34289 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
34290 # Guess yes otherwise.
34291 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
34293 if test $LOCALE_JA != none; then
34294 if test "$cross_compiling" = yes; then
34297 cat >conftest.$ac_ext <<_ACEOF
34300 cat confdefs.h >>conftest.$ac_ext
34301 cat >>conftest.$ac_ext <<_ACEOF
34302 /* end confdefs.h. */
34304 #include <locale.h>
34305 #include <string.h>
34306 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
34308 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
34309 included before <wchar.h>. */
34310 #include <stddef.h>
34316 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
34318 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
34322 memset (&state, '\0', sizeof (mbstate_t));
34323 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
34324 if (mbsinit (&state))
34330 rm -f conftest$ac_exeext
34331 if { (ac_try="$ac_link"
34332 case "(($ac_try" in
34333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34334 *) ac_try_echo=$ac_try;;
34336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34337 $as_echo "$ac_try_echo") >&5
34338 (eval "$ac_link") 2>&5
34340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34342 { (case "(($ac_try" in
34343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34344 *) ac_try_echo=$ac_try;;
34346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34347 $as_echo "$ac_try_echo") >&5
34348 (eval "$ac_try") 2>&5
34350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34351 (exit $ac_status); }; }; then
34352 gl_cv_func_mbrtowc_incomplete_state=yes
34354 $as_echo "$as_me: program exited with status $ac_status" >&5
34355 $as_echo "$as_me: failed program was:" >&5
34356 sed 's/^/| /' conftest.$ac_ext >&5
34358 ( exit $ac_status )
34359 gl_cv_func_mbrtowc_incomplete_state=no
34361 rm -rf conftest.dSYM
34362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34369 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
34370 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
34375 { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
34376 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
34377 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
34378 $as_echo_n "(cached) " >&6
34382 # Guess no on Solaris 8.
34383 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
34384 # Guess yes otherwise.
34385 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
34387 if test $LOCALE_ZH_CN != none; then
34388 if test "$cross_compiling" = yes; then
34391 cat >conftest.$ac_ext <<_ACEOF
34394 cat confdefs.h >>conftest.$ac_ext
34395 cat >>conftest.$ac_ext <<_ACEOF
34396 /* end confdefs.h. */
34398 #include <locale.h>
34399 #include <stdlib.h>
34400 #include <string.h>
34401 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
34403 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
34404 included before <wchar.h>. */
34405 #include <stddef.h>
34411 /* This fails on Solaris 8:
34412 mbrtowc returns 2, and sets wc to 0x00F0.
34413 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
34414 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
34416 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
34420 memset (&state, '\0', sizeof (mbstate_t));
34421 if (mbrtowc (&wc, input + 3, 6, &state) != 4
34422 && mbtowc (&wc, input + 3, 6) == 4)
34428 rm -f conftest$ac_exeext
34429 if { (ac_try="$ac_link"
34430 case "(($ac_try" in
34431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34432 *) ac_try_echo=$ac_try;;
34434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34435 $as_echo "$ac_try_echo") >&5
34436 (eval "$ac_link") 2>&5
34438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34440 { (case "(($ac_try" in
34441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34442 *) ac_try_echo=$ac_try;;
34444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34445 $as_echo "$ac_try_echo") >&5
34446 (eval "$ac_try") 2>&5
34448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34449 (exit $ac_status); }; }; then
34450 gl_cv_func_mbrtowc_sanitycheck=yes
34452 $as_echo "$as_me: program exited with status $ac_status" >&5
34453 $as_echo "$as_me: failed program was:" >&5
34454 sed 's/^/| /' conftest.$ac_ext >&5
34456 ( exit $ac_status )
34457 gl_cv_func_mbrtowc_sanitycheck=no
34459 rm -rf conftest.dSYM
34460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34467 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
34468 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
34470 REPLACE_MBSTATE_T=0
34471 case "$gl_cv_func_mbrtowc_incomplete_state" in
34473 *) REPLACE_MBSTATE_T=1 ;;
34475 case "$gl_cv_func_mbrtowc_sanitycheck" in
34477 *) REPLACE_MBSTATE_T=1 ;;
34480 REPLACE_MBSTATE_T=1
34482 if test $REPLACE_MBSTATE_T = 1; then
34495 if test $ac_cv_func_mbrtowc = no; then
34498 if test $REPLACE_MBSTATE_T = 1; then
34504 { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles a NULL pwc argument" >&5
34505 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
34506 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then
34507 $as_echo_n "(cached) " >&6
34511 # Guess no on Solaris.
34512 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
34513 # Guess yes otherwise.
34514 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
34516 if test $LOCALE_FR_UTF8 != none; then
34517 if test "$cross_compiling" = yes; then
34520 cat >conftest.$ac_ext <<_ACEOF
34523 cat confdefs.h >>conftest.$ac_ext
34524 cat >>conftest.$ac_ext <<_ACEOF
34525 /* end confdefs.h. */
34527 #include <locale.h>
34528 #include <stdlib.h>
34529 #include <string.h>
34530 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
34532 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
34533 included before <wchar.h>. */
34534 #include <stddef.h>
34542 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
34544 char input[] = "\303\237er";
34549 memset (&state, '\0', sizeof (mbstate_t));
34550 wc = (wchar_t) 0xBADFACE;
34551 ret = mbrtowc (&wc, input, 5, &state);
34554 if (!mbsinit (&state))
34557 memset (&state, '\0', sizeof (mbstate_t));
34558 ret = mbrtowc (NULL, input, 5, &state);
34559 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
34561 if (!mbsinit (&state))
34567 rm -f conftest$ac_exeext
34568 if { (ac_try="$ac_link"
34569 case "(($ac_try" in
34570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34571 *) ac_try_echo=$ac_try;;
34573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34574 $as_echo "$ac_try_echo") >&5
34575 (eval "$ac_link") 2>&5
34577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34579 { (case "(($ac_try" in
34580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34581 *) ac_try_echo=$ac_try;;
34583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34584 $as_echo "$ac_try_echo") >&5
34585 (eval "$ac_try") 2>&5
34587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34588 (exit $ac_status); }; }; then
34589 gl_cv_func_mbrtowc_null_arg1=yes
34591 $as_echo "$as_me: program exited with status $ac_status" >&5
34592 $as_echo "$as_me: failed program was:" >&5
34593 sed 's/^/| /' conftest.$ac_ext >&5
34595 ( exit $ac_status )
34596 gl_cv_func_mbrtowc_null_arg1=no
34598 rm -rf conftest.dSYM
34599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34606 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_null_arg1" >&5
34607 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
34612 { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles a NULL string argument" >&5
34613 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
34614 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then
34615 $as_echo_n "(cached) " >&6
34619 # Guess no on OSF/1.
34620 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
34621 # Guess yes otherwise.
34622 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
34624 if test $LOCALE_FR_UTF8 != none; then
34625 if test "$cross_compiling" = yes; then
34628 cat >conftest.$ac_ext <<_ACEOF
34631 cat confdefs.h >>conftest.$ac_ext
34632 cat >>conftest.$ac_ext <<_ACEOF
34633 /* end confdefs.h. */
34635 #include <locale.h>
34636 #include <string.h>
34637 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
34639 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
34640 included before <wchar.h>. */
34641 #include <stddef.h>
34647 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
34653 memset (&state, '\0', sizeof (mbstate_t));
34654 wc = (wchar_t) 0xBADFACE;
34655 mbrtowc (&wc, NULL, 5, &state);
34656 /* Check that wc was not modified. */
34657 if (wc != (wchar_t) 0xBADFACE)
34663 rm -f conftest$ac_exeext
34664 if { (ac_try="$ac_link"
34665 case "(($ac_try" in
34666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34667 *) ac_try_echo=$ac_try;;
34669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34670 $as_echo "$ac_try_echo") >&5
34671 (eval "$ac_link") 2>&5
34673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34675 { (case "(($ac_try" in
34676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34677 *) ac_try_echo=$ac_try;;
34679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34680 $as_echo "$ac_try_echo") >&5
34681 (eval "$ac_try") 2>&5
34683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34684 (exit $ac_status); }; }; then
34685 gl_cv_func_mbrtowc_null_arg2=yes
34687 $as_echo "$as_me: program exited with status $ac_status" >&5
34688 $as_echo "$as_me: failed program was:" >&5
34689 sed 's/^/| /' conftest.$ac_ext >&5
34691 ( exit $ac_status )
34692 gl_cv_func_mbrtowc_null_arg2=no
34694 rm -rf conftest.dSYM
34695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34702 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_null_arg2" >&5
34703 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
34710 { $as_echo "$as_me:$LINENO: checking whether mbrtowc has a correct return value" >&5
34711 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
34712 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then
34713 $as_echo_n "(cached) " >&6
34717 # Guess no on HP-UX, Solaris, native Windows.
34718 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
34719 # Guess yes otherwise.
34720 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
34722 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
34723 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
34724 if test "$cross_compiling" = yes; then
34727 cat >conftest.$ac_ext <<_ACEOF
34730 cat confdefs.h >>conftest.$ac_ext
34731 cat >>conftest.$ac_ext <<_ACEOF
34732 /* end confdefs.h. */
34734 #include <locale.h>
34735 #include <string.h>
34736 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
34738 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
34739 included before <wchar.h>. */
34740 #include <stddef.h>
34747 int found_some_locale = 0;
34748 /* This fails on Solaris. */
34749 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
34751 char input[] = "B\303\274\303\237er"; /* "Büßer" */
34755 memset (&state, '\0', sizeof (mbstate_t));
34756 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
34759 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
34762 found_some_locale = 1;
34764 /* This fails on HP-UX 11.11. */
34765 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
34767 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
34771 memset (&state, '\0', sizeof (mbstate_t));
34772 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
34775 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
34778 found_some_locale = 1;
34780 /* This fails on native Windows. */
34781 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
34783 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
34787 memset (&state, '\0', sizeof (mbstate_t));
34788 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
34791 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
34794 found_some_locale = 1;
34796 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
34798 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
34802 memset (&state, '\0', sizeof (mbstate_t));
34803 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
34806 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
34809 found_some_locale = 1;
34811 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
34813 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
34817 memset (&state, '\0', sizeof (mbstate_t));
34818 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
34821 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
34824 found_some_locale = 1;
34826 return (found_some_locale ? result : 77);
34829 rm -f conftest$ac_exeext
34830 if { (ac_try="$ac_link"
34831 case "(($ac_try" in
34832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34833 *) ac_try_echo=$ac_try;;
34835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34836 $as_echo "$ac_try_echo") >&5
34837 (eval "$ac_link") 2>&5
34839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34840 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34841 { (case "(($ac_try" in
34842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34843 *) ac_try_echo=$ac_try;;
34845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34846 $as_echo "$ac_try_echo") >&5
34847 (eval "$ac_try") 2>&5
34849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34850 (exit $ac_status); }; }; then
34851 gl_cv_func_mbrtowc_retval=yes
34853 $as_echo "$as_me: program exited with status $ac_status" >&5
34854 $as_echo "$as_me: failed program was:" >&5
34855 sed 's/^/| /' conftest.$ac_ext >&5
34857 ( exit $ac_status )
34858 if test $? != 77; then
34859 gl_cv_func_mbrtowc_retval=no
34863 rm -rf conftest.dSYM
34864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34871 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_retval" >&5
34872 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
34877 { $as_echo "$as_me:$LINENO: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
34878 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
34879 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then
34880 $as_echo_n "(cached) " >&6
34884 # Guess no on Solaris 8 and 9.
34885 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
34886 # Guess yes otherwise.
34887 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
34889 if test $LOCALE_ZH_CN != none; then
34890 if test "$cross_compiling" = yes; then
34893 cat >conftest.$ac_ext <<_ACEOF
34896 cat confdefs.h >>conftest.$ac_ext
34897 cat >>conftest.$ac_ext <<_ACEOF
34898 /* end confdefs.h. */
34900 #include <locale.h>
34901 #include <string.h>
34902 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
34904 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
34905 included before <wchar.h>. */
34906 #include <stddef.h>
34912 /* This fails on Solaris 8 and 9. */
34913 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
34918 memset (&state, '\0', sizeof (mbstate_t));
34919 if (mbrtowc (&wc, "", 1, &state) != 0)
34925 rm -f conftest$ac_exeext
34926 if { (ac_try="$ac_link"
34927 case "(($ac_try" in
34928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34929 *) ac_try_echo=$ac_try;;
34931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34932 $as_echo "$ac_try_echo") >&5
34933 (eval "$ac_link") 2>&5
34935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34937 { (case "(($ac_try" in
34938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34939 *) ac_try_echo=$ac_try;;
34941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34942 $as_echo "$ac_try_echo") >&5
34943 (eval "$ac_try") 2>&5
34945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34946 (exit $ac_status); }; }; then
34947 gl_cv_func_mbrtowc_nul_retval=yes
34949 $as_echo "$as_me: program exited with status $ac_status" >&5
34950 $as_echo "$as_me: failed program was:" >&5
34951 sed 's/^/| /' conftest.$ac_ext >&5
34953 ( exit $ac_status )
34954 gl_cv_func_mbrtowc_nul_retval=no
34956 rm -rf conftest.dSYM
34957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34964 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_nul_retval" >&5
34965 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
34967 case "$gl_cv_func_mbrtowc_null_arg1" in
34970 cat >>confdefs.h <<\_ACEOF
34971 #define MBRTOWC_NULL_ARG1_BUG 1
34977 case "$gl_cv_func_mbrtowc_null_arg2" in
34980 cat >>confdefs.h <<\_ACEOF
34981 #define MBRTOWC_NULL_ARG2_BUG 1
34987 case "$gl_cv_func_mbrtowc_retval" in
34990 cat >>confdefs.h <<\_ACEOF
34991 #define MBRTOWC_RETVAL_BUG 1
34997 case "$gl_cv_func_mbrtowc_nul_retval" in
35000 cat >>confdefs.h <<\_ACEOF
35001 #define MBRTOWC_NUL_RETVAL_BUG 1
35009 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
35021 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
35035 cat >>confdefs.h <<\_ACEOF
35036 #define GNULIB_TEST_MBRTOWC 1
35041 # Code from module mbscasecmp:
35045 GNULIB_MBSCASECMP=1
35049 cat >>confdefs.h <<\_ACEOF
35050 #define GNULIB_TEST_MBSCASECMP 1
35055 # Code from module mbsinit:
35077 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
35081 { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
35082 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
35083 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
35084 $as_echo_n "(cached) " >&6
35088 # Guess no on AIX and OSF/1.
35089 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
35090 # Guess yes otherwise.
35091 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
35093 if test $LOCALE_JA != none; then
35094 if test "$cross_compiling" = yes; then
35097 cat >conftest.$ac_ext <<_ACEOF
35100 cat confdefs.h >>conftest.$ac_ext
35101 cat >>conftest.$ac_ext <<_ACEOF
35102 /* end confdefs.h. */
35104 #include <locale.h>
35105 #include <string.h>
35106 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
35108 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
35109 included before <wchar.h>. */
35110 #include <stddef.h>
35116 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
35118 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
35122 memset (&state, '\0', sizeof (mbstate_t));
35123 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
35124 if (mbsinit (&state))
35130 rm -f conftest$ac_exeext
35131 if { (ac_try="$ac_link"
35132 case "(($ac_try" in
35133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35134 *) ac_try_echo=$ac_try;;
35136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35137 $as_echo "$ac_try_echo") >&5
35138 (eval "$ac_link") 2>&5
35140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35142 { (case "(($ac_try" in
35143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35144 *) ac_try_echo=$ac_try;;
35146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35147 $as_echo "$ac_try_echo") >&5
35148 (eval "$ac_try") 2>&5
35150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35151 (exit $ac_status); }; }; then
35152 gl_cv_func_mbrtowc_incomplete_state=yes
35154 $as_echo "$as_me: program exited with status $ac_status" >&5
35155 $as_echo "$as_me: failed program was:" >&5
35156 sed 's/^/| /' conftest.$ac_ext >&5
35158 ( exit $ac_status )
35159 gl_cv_func_mbrtowc_incomplete_state=no
35161 rm -rf conftest.dSYM
35162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35169 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
35170 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
35175 { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
35176 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
35177 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
35178 $as_echo_n "(cached) " >&6
35182 # Guess no on Solaris 8.
35183 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
35184 # Guess yes otherwise.
35185 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
35187 if test $LOCALE_ZH_CN != none; then
35188 if test "$cross_compiling" = yes; then
35191 cat >conftest.$ac_ext <<_ACEOF
35194 cat confdefs.h >>conftest.$ac_ext
35195 cat >>conftest.$ac_ext <<_ACEOF
35196 /* end confdefs.h. */
35198 #include <locale.h>
35199 #include <stdlib.h>
35200 #include <string.h>
35201 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
35203 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
35204 included before <wchar.h>. */
35205 #include <stddef.h>
35211 /* This fails on Solaris 8:
35212 mbrtowc returns 2, and sets wc to 0x00F0.
35213 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
35214 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
35216 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
35220 memset (&state, '\0', sizeof (mbstate_t));
35221 if (mbrtowc (&wc, input + 3, 6, &state) != 4
35222 && mbtowc (&wc, input + 3, 6) == 4)
35228 rm -f conftest$ac_exeext
35229 if { (ac_try="$ac_link"
35230 case "(($ac_try" in
35231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35232 *) ac_try_echo=$ac_try;;
35234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35235 $as_echo "$ac_try_echo") >&5
35236 (eval "$ac_link") 2>&5
35238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35240 { (case "(($ac_try" in
35241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35242 *) ac_try_echo=$ac_try;;
35244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35245 $as_echo "$ac_try_echo") >&5
35246 (eval "$ac_try") 2>&5
35248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35249 (exit $ac_status); }; }; then
35250 gl_cv_func_mbrtowc_sanitycheck=yes
35252 $as_echo "$as_me: program exited with status $ac_status" >&5
35253 $as_echo "$as_me: failed program was:" >&5
35254 sed 's/^/| /' conftest.$ac_ext >&5
35256 ( exit $ac_status )
35257 gl_cv_func_mbrtowc_sanitycheck=no
35259 rm -rf conftest.dSYM
35260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35267 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
35268 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
35270 REPLACE_MBSTATE_T=0
35271 case "$gl_cv_func_mbrtowc_incomplete_state" in
35273 *) REPLACE_MBSTATE_T=1 ;;
35275 case "$gl_cv_func_mbrtowc_sanitycheck" in
35277 *) REPLACE_MBSTATE_T=1 ;;
35280 REPLACE_MBSTATE_T=1
35282 if test $REPLACE_MBSTATE_T = 1; then
35295 if test $ac_cv_func_mbsinit = no; then
35298 if test $REPLACE_MBSTATE_T = 1; then
35302 mingw*) REPLACE_MBSINIT=1 ;;
35306 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
35318 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
35332 cat >>confdefs.h <<\_ACEOF
35333 #define GNULIB_TEST_MBSINIT 1
35338 # Code from module mbsrtowcs:
35359 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
35363 { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
35364 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
35365 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
35366 $as_echo_n "(cached) " >&6
35370 # Guess no on AIX and OSF/1.
35371 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
35372 # Guess yes otherwise.
35373 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
35375 if test $LOCALE_JA != none; then
35376 if test "$cross_compiling" = yes; then
35379 cat >conftest.$ac_ext <<_ACEOF
35382 cat confdefs.h >>conftest.$ac_ext
35383 cat >>conftest.$ac_ext <<_ACEOF
35384 /* end confdefs.h. */
35386 #include <locale.h>
35387 #include <string.h>
35388 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
35390 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
35391 included before <wchar.h>. */
35392 #include <stddef.h>
35398 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
35400 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
35404 memset (&state, '\0', sizeof (mbstate_t));
35405 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
35406 if (mbsinit (&state))
35412 rm -f conftest$ac_exeext
35413 if { (ac_try="$ac_link"
35414 case "(($ac_try" in
35415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35416 *) ac_try_echo=$ac_try;;
35418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35419 $as_echo "$ac_try_echo") >&5
35420 (eval "$ac_link") 2>&5
35422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35423 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35424 { (case "(($ac_try" in
35425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35426 *) ac_try_echo=$ac_try;;
35428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35429 $as_echo "$ac_try_echo") >&5
35430 (eval "$ac_try") 2>&5
35432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35433 (exit $ac_status); }; }; then
35434 gl_cv_func_mbrtowc_incomplete_state=yes
35436 $as_echo "$as_me: program exited with status $ac_status" >&5
35437 $as_echo "$as_me: failed program was:" >&5
35438 sed 's/^/| /' conftest.$ac_ext >&5
35440 ( exit $ac_status )
35441 gl_cv_func_mbrtowc_incomplete_state=no
35443 rm -rf conftest.dSYM
35444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35451 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
35452 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
35457 { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
35458 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
35459 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
35460 $as_echo_n "(cached) " >&6
35464 # Guess no on Solaris 8.
35465 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
35466 # Guess yes otherwise.
35467 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
35469 if test $LOCALE_ZH_CN != none; then
35470 if test "$cross_compiling" = yes; then
35473 cat >conftest.$ac_ext <<_ACEOF
35476 cat confdefs.h >>conftest.$ac_ext
35477 cat >>conftest.$ac_ext <<_ACEOF
35478 /* end confdefs.h. */
35480 #include <locale.h>
35481 #include <stdlib.h>
35482 #include <string.h>
35483 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
35485 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
35486 included before <wchar.h>. */
35487 #include <stddef.h>
35493 /* This fails on Solaris 8:
35494 mbrtowc returns 2, and sets wc to 0x00F0.
35495 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
35496 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
35498 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
35502 memset (&state, '\0', sizeof (mbstate_t));
35503 if (mbrtowc (&wc, input + 3, 6, &state) != 4
35504 && mbtowc (&wc, input + 3, 6) == 4)
35510 rm -f conftest$ac_exeext
35511 if { (ac_try="$ac_link"
35512 case "(($ac_try" in
35513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35514 *) ac_try_echo=$ac_try;;
35516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35517 $as_echo "$ac_try_echo") >&5
35518 (eval "$ac_link") 2>&5
35520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35522 { (case "(($ac_try" in
35523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35524 *) ac_try_echo=$ac_try;;
35526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35527 $as_echo "$ac_try_echo") >&5
35528 (eval "$ac_try") 2>&5
35530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35531 (exit $ac_status); }; }; then
35532 gl_cv_func_mbrtowc_sanitycheck=yes
35534 $as_echo "$as_me: program exited with status $ac_status" >&5
35535 $as_echo "$as_me: failed program was:" >&5
35536 sed 's/^/| /' conftest.$ac_ext >&5
35538 ( exit $ac_status )
35539 gl_cv_func_mbrtowc_sanitycheck=no
35541 rm -rf conftest.dSYM
35542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35549 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
35550 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
35552 REPLACE_MBSTATE_T=0
35553 case "$gl_cv_func_mbrtowc_incomplete_state" in
35555 *) REPLACE_MBSTATE_T=1 ;;
35557 case "$gl_cv_func_mbrtowc_sanitycheck" in
35559 *) REPLACE_MBSTATE_T=1 ;;
35562 REPLACE_MBSTATE_T=1
35564 if test $REPLACE_MBSTATE_T = 1; then
35577 if test $ac_cv_func_mbsrtowcs = no; then
35580 if test $REPLACE_MBSTATE_T = 1; then
35581 REPLACE_MBSRTOWCS=1
35589 { $as_echo "$as_me:$LINENO: checking whether mbsrtowcs works" >&5
35590 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
35591 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then
35592 $as_echo_n "(cached) " >&6
35596 # Guess no on HP-UX, Solaris, mingw.
35597 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
35598 # Guess yes otherwise.
35599 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
35601 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
35602 if test "$cross_compiling" = yes; then
35605 cat >conftest.$ac_ext <<_ACEOF
35608 cat confdefs.h >>conftest.$ac_ext
35609 cat >>conftest.$ac_ext <<_ACEOF
35610 /* end confdefs.h. */
35612 #include <locale.h>
35613 #include <string.h>
35614 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
35616 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
35617 included before <wchar.h>. */
35618 #include <stddef.h>
35625 /* Test whether the function supports a NULL destination argument.
35626 This fails on native Windows. */
35627 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
35629 const char input[] = "\337er";
35630 const char *src = input;
35633 memset (&state, '\0', sizeof (mbstate_t));
35634 if (mbsrtowcs (NULL, &src, 1, &state) != 3
35638 /* Test whether the function works when started with a conversion state
35639 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
35640 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
35642 const char input[] = "B\303\274\303\237er";
35645 memset (&state, '\0', sizeof (mbstate_t));
35646 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
35647 if (!mbsinit (&state))
35649 const char *src = input + 2;
35650 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
35654 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
35656 const char input[] = "<\306\374\313\334\270\354>";
35659 memset (&state, '\0', sizeof (mbstate_t));
35660 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
35661 if (!mbsinit (&state))
35663 const char *src = input + 4;
35664 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
35668 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
35670 const char input[] = "B\250\271\201\060\211\070er";
35673 memset (&state, '\0', sizeof (mbstate_t));
35674 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
35675 if (!mbsinit (&state))
35677 const char *src = input + 2;
35678 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
35685 rm -f conftest$ac_exeext
35686 if { (ac_try="$ac_link"
35687 case "(($ac_try" in
35688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35689 *) ac_try_echo=$ac_try;;
35691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35692 $as_echo "$ac_try_echo") >&5
35693 (eval "$ac_link") 2>&5
35695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35697 { (case "(($ac_try" in
35698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35699 *) ac_try_echo=$ac_try;;
35701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35702 $as_echo "$ac_try_echo") >&5
35703 (eval "$ac_try") 2>&5
35705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35706 (exit $ac_status); }; }; then
35707 gl_cv_func_mbsrtowcs_works=yes
35709 $as_echo "$as_me: program exited with status $ac_status" >&5
35710 $as_echo "$as_me: failed program was:" >&5
35711 sed 's/^/| /' conftest.$ac_ext >&5
35713 ( exit $ac_status )
35714 gl_cv_func_mbsrtowcs_works=no
35716 rm -rf conftest.dSYM
35717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35724 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbsrtowcs_works" >&5
35725 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
35727 case "$gl_cv_func_mbsrtowcs_works" in
35729 *) REPLACE_MBSRTOWCS=1 ;;
35733 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
35745 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
35755 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
35769 cat >>confdefs.h <<\_ACEOF
35770 #define GNULIB_TEST_MBSRTOWCS 1
35775 # Code from module mbtowc:
35782 if test $REPLACE_MBTOWC = 1; then
35791 gl_LIBOBJS="$gl_LIBOBJS mbtowc.$ac_objext"
35805 cat >>confdefs.h <<\_ACEOF
35806 #define GNULIB_TEST_MBTOWC 1
35811 # Code from module mbuiter:
35817 # Code from module memchr:
35826 cat >>confdefs.h <<\_ACEOF
35827 #define GNULIB_TEST_MEMCHR 1
35832 # Code from module mempcpy:
35848 for ac_func in mempcpy
35850 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35851 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
35852 $as_echo_n "checking for $ac_func... " >&6; }
35853 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35854 $as_echo_n "(cached) " >&6
35856 cat >conftest.$ac_ext <<_ACEOF
35859 cat confdefs.h >>conftest.$ac_ext
35860 cat >>conftest.$ac_ext <<_ACEOF
35861 /* end confdefs.h. */
35862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35864 #define $ac_func innocuous_$ac_func
35866 /* System header to define __stub macros and hopefully few prototypes,
35867 which can conflict with char $ac_func (); below.
35868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35869 <limits.h> exists even on freestanding compilers. */
35872 # include <limits.h>
35874 # include <assert.h>
35879 /* Override any GCC internal prototype to avoid an error.
35880 Use char because int might match the return type of a GCC
35881 builtin and then its argument prototype would still apply. */
35886 /* The GNU C library defines this for functions which it implements
35887 to always fail with ENOSYS. Some functions are actually named
35888 something starting with __ and the normal name is an alias. */
35889 #if defined __stub_$ac_func || defined __stub___$ac_func
35896 return $ac_func ();
35901 rm -f conftest.$ac_objext conftest$ac_exeext
35902 if { (ac_try="$ac_link"
35903 case "(($ac_try" in
35904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35905 *) ac_try_echo=$ac_try;;
35907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35908 $as_echo "$ac_try_echo") >&5
35909 (eval "$ac_link") 2>conftest.er1
35911 grep -v '^ *+' conftest.er1 >conftest.err
35913 cat conftest.err >&5
35914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35915 (exit $ac_status); } && {
35916 test -z "$ac_c_werror_flag" ||
35917 test ! -s conftest.err
35918 } && test -s conftest$ac_exeext && {
35919 test "$cross_compiling" = yes ||
35920 $as_test_x conftest$ac_exeext
35922 eval "$as_ac_var=yes"
35924 $as_echo "$as_me: failed program was:" >&5
35925 sed 's/^/| /' conftest.$ac_ext >&5
35927 eval "$as_ac_var=no"
35930 rm -rf conftest.dSYM
35931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35932 conftest$ac_exeext conftest.$ac_ext
35934 ac_res=`eval 'as_val=${'$as_ac_var'}
35935 $as_echo "$as_val"'`
35936 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35937 $as_echo "$ac_res" >&6; }
35938 as_val=`eval 'as_val=${'$as_ac_var'}
35939 $as_echo "$as_val"'`
35940 if test "x$as_val" = x""yes; then
35941 cat >>confdefs.h <<_ACEOF
35942 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35947 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
35953 if test $ac_cv_func_mempcpy = no; then
35967 cat >>confdefs.h <<\_ACEOF
35968 #define GNULIB_TEST_MEMPCPY 1
35973 # Code from module memrchr:
35982 if test $ac_cv_have_decl_memrchr = no; then
35983 HAVE_DECL_MEMRCHR=0
35995 for ac_func in memrchr
35997 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35998 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
35999 $as_echo_n "checking for $ac_func... " >&6; }
36000 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36001 $as_echo_n "(cached) " >&6
36003 cat >conftest.$ac_ext <<_ACEOF
36006 cat confdefs.h >>conftest.$ac_ext
36007 cat >>conftest.$ac_ext <<_ACEOF
36008 /* end confdefs.h. */
36009 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36011 #define $ac_func innocuous_$ac_func
36013 /* System header to define __stub macros and hopefully few prototypes,
36014 which can conflict with char $ac_func (); below.
36015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36016 <limits.h> exists even on freestanding compilers. */
36019 # include <limits.h>
36021 # include <assert.h>
36026 /* Override any GCC internal prototype to avoid an error.
36027 Use char because int might match the return type of a GCC
36028 builtin and then its argument prototype would still apply. */
36033 /* The GNU C library defines this for functions which it implements
36034 to always fail with ENOSYS. Some functions are actually named
36035 something starting with __ and the normal name is an alias. */
36036 #if defined __stub_$ac_func || defined __stub___$ac_func
36043 return $ac_func ();
36048 rm -f conftest.$ac_objext conftest$ac_exeext
36049 if { (ac_try="$ac_link"
36050 case "(($ac_try" in
36051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36052 *) ac_try_echo=$ac_try;;
36054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36055 $as_echo "$ac_try_echo") >&5
36056 (eval "$ac_link") 2>conftest.er1
36058 grep -v '^ *+' conftest.er1 >conftest.err
36060 cat conftest.err >&5
36061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36062 (exit $ac_status); } && {
36063 test -z "$ac_c_werror_flag" ||
36064 test ! -s conftest.err
36065 } && test -s conftest$ac_exeext && {
36066 test "$cross_compiling" = yes ||
36067 $as_test_x conftest$ac_exeext
36069 eval "$as_ac_var=yes"
36071 $as_echo "$as_me: failed program was:" >&5
36072 sed 's/^/| /' conftest.$ac_ext >&5
36074 eval "$as_ac_var=no"
36077 rm -rf conftest.dSYM
36078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36079 conftest$ac_exeext conftest.$ac_ext
36081 ac_res=`eval 'as_val=${'$as_ac_var'}
36082 $as_echo "$as_val"'`
36083 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36084 $as_echo "$ac_res" >&6; }
36085 as_val=`eval 'as_val=${'$as_ac_var'}
36086 $as_echo "$as_val"'`
36087 if test "x$as_val" = x""yes; then
36088 cat >>confdefs.h <<_ACEOF
36089 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
36094 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
36100 if test $ac_cv_func_memrchr = no; then
36111 cat >>confdefs.h <<\_ACEOF
36112 #define GNULIB_TEST_MEMRCHR 1
36117 # Code from module mkdir:
36125 { $as_echo "$as_me:$LINENO: checking whether mkdir handles trailing slash" >&5
36126 $as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
36127 if test "${gl_cv_func_mkdir_trailing_slash_works+set}" = set; then
36128 $as_echo_n "(cached) " >&6
36130 rm -rf conftest.dir
36131 if test "$cross_compiling" = yes; then
36132 gl_cv_func_mkdir_trailing_slash_works="guessing no"
36134 cat >conftest.$ac_ext <<_ACEOF
36137 cat confdefs.h >>conftest.$ac_ext
36138 cat >>conftest.$ac_ext <<_ACEOF
36139 /* end confdefs.h. */
36141 # include <sys/types.h>
36142 # include <sys/stat.h>
36147 return mkdir ("conftest.dir/", 0700);
36152 rm -f conftest$ac_exeext
36153 if { (ac_try="$ac_link"
36154 case "(($ac_try" in
36155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36156 *) ac_try_echo=$ac_try;;
36158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36159 $as_echo "$ac_try_echo") >&5
36160 (eval "$ac_link") 2>&5
36162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36164 { (case "(($ac_try" in
36165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36166 *) ac_try_echo=$ac_try;;
36168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36169 $as_echo "$ac_try_echo") >&5
36170 (eval "$ac_try") 2>&5
36172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36173 (exit $ac_status); }; }; then
36174 gl_cv_func_mkdir_trailing_slash_works=yes
36176 $as_echo "$as_me: program exited with status $ac_status" >&5
36177 $as_echo "$as_me: failed program was:" >&5
36178 sed 's/^/| /' conftest.$ac_ext >&5
36180 ( exit $ac_status )
36181 gl_cv_func_mkdir_trailing_slash_works=no
36183 rm -rf conftest.dSYM
36184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36188 rm -rf conftest.dir
36192 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
36193 $as_echo "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
36194 if test "$gl_cv_func_mkdir_trailing_slash_works" != yes; then
36204 gl_LIBOBJS="$gl_LIBOBJS mkdir.$ac_objext"
36208 { $as_echo "$as_me:$LINENO: checking whether mkdir handles trailing dot" >&5
36209 $as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
36210 if test "${gl_cv_func_mkdir_trailing_dot_works+set}" = set; then
36211 $as_echo_n "(cached) " >&6
36213 rm -rf conftest.dir
36214 if test "$cross_compiling" = yes; then
36215 gl_cv_func_mkdir_trailing_dot_works="guessing no"
36217 cat >conftest.$ac_ext <<_ACEOF
36220 cat confdefs.h >>conftest.$ac_ext
36221 cat >>conftest.$ac_ext <<_ACEOF
36222 /* end confdefs.h. */
36224 # include <sys/types.h>
36225 # include <sys/stat.h>
36230 return !mkdir ("conftest.dir/./", 0700);
36235 rm -f conftest$ac_exeext
36236 if { (ac_try="$ac_link"
36237 case "(($ac_try" in
36238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36239 *) ac_try_echo=$ac_try;;
36241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36242 $as_echo "$ac_try_echo") >&5
36243 (eval "$ac_link") 2>&5
36245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36247 { (case "(($ac_try" in
36248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36249 *) ac_try_echo=$ac_try;;
36251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36252 $as_echo "$ac_try_echo") >&5
36253 (eval "$ac_try") 2>&5
36255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36256 (exit $ac_status); }; }; then
36257 gl_cv_func_mkdir_trailing_dot_works=yes
36259 $as_echo "$as_me: program exited with status $ac_status" >&5
36260 $as_echo "$as_me: failed program was:" >&5
36261 sed 's/^/| /' conftest.$ac_ext >&5
36263 ( exit $ac_status )
36264 gl_cv_func_mkdir_trailing_dot_works=no
36266 rm -rf conftest.dSYM
36267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36271 rm -rf conftest.dir
36275 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
36276 $as_echo "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
36277 if test "$gl_cv_func_mkdir_trailing_dot_works" != yes; then
36287 gl_LIBOBJS="$gl_LIBOBJS mkdir.$ac_objext"
36290 cat >>confdefs.h <<\_ACEOF
36291 #define FUNC_MKDIR_DOT_BUG 1
36296 # Code from module mkdtemp:
36308 for ac_func in mkdtemp
36310 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
36311 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
36312 $as_echo_n "checking for $ac_func... " >&6; }
36313 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36314 $as_echo_n "(cached) " >&6
36316 cat >conftest.$ac_ext <<_ACEOF
36319 cat confdefs.h >>conftest.$ac_ext
36320 cat >>conftest.$ac_ext <<_ACEOF
36321 /* end confdefs.h. */
36322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36324 #define $ac_func innocuous_$ac_func
36326 /* System header to define __stub macros and hopefully few prototypes,
36327 which can conflict with char $ac_func (); below.
36328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36329 <limits.h> exists even on freestanding compilers. */
36332 # include <limits.h>
36334 # include <assert.h>
36339 /* Override any GCC internal prototype to avoid an error.
36340 Use char because int might match the return type of a GCC
36341 builtin and then its argument prototype would still apply. */
36346 /* The GNU C library defines this for functions which it implements
36347 to always fail with ENOSYS. Some functions are actually named
36348 something starting with __ and the normal name is an alias. */
36349 #if defined __stub_$ac_func || defined __stub___$ac_func
36356 return $ac_func ();
36361 rm -f conftest.$ac_objext conftest$ac_exeext
36362 if { (ac_try="$ac_link"
36363 case "(($ac_try" in
36364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36365 *) ac_try_echo=$ac_try;;
36367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36368 $as_echo "$ac_try_echo") >&5
36369 (eval "$ac_link") 2>conftest.er1
36371 grep -v '^ *+' conftest.er1 >conftest.err
36373 cat conftest.err >&5
36374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36375 (exit $ac_status); } && {
36376 test -z "$ac_c_werror_flag" ||
36377 test ! -s conftest.err
36378 } && test -s conftest$ac_exeext && {
36379 test "$cross_compiling" = yes ||
36380 $as_test_x conftest$ac_exeext
36382 eval "$as_ac_var=yes"
36384 $as_echo "$as_me: failed program was:" >&5
36385 sed 's/^/| /' conftest.$ac_ext >&5
36387 eval "$as_ac_var=no"
36390 rm -rf conftest.dSYM
36391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36392 conftest$ac_exeext conftest.$ac_ext
36394 ac_res=`eval 'as_val=${'$as_ac_var'}
36395 $as_echo "$as_val"'`
36396 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36397 $as_echo "$ac_res" >&6; }
36398 as_val=`eval 'as_val=${'$as_ac_var'}
36399 $as_echo "$as_val"'`
36400 if test "x$as_val" = x""yes; then
36401 cat >>confdefs.h <<_ACEOF
36402 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
36407 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
36413 if test $ac_cv_func_mkdtemp = no; then
36426 cat >>confdefs.h <<\_ACEOF
36427 #define GNULIB_TEST_MKDTEMP 1
36432 # Code from module mkfifo:
36441 if test $ac_cv_func_mkfifo = no; then
36451 gl_LIBOBJS="$gl_LIBOBJS mkfifo.$ac_objext"
36460 { $as_echo "$as_me:$LINENO: checking whether mkfifo rejects trailing slashes" >&5
36461 $as_echo_n "checking whether mkfifo rejects trailing slashes... " >&6; }
36462 if test "${gl_cv_func_mkfifo_works+set}" = set; then
36463 $as_echo_n "(cached) " >&6
36465 # Assume that if we have lstat, we can also check symlinks.
36466 if test $ac_cv_func_lstat = yes; then
36467 ln -s conftest.tmp conftest.lnk
36469 if test "$cross_compiling" = yes; then
36470 gl_cv_func_mkfifo_works="guessing no"
36472 cat >conftest.$ac_ext <<_ACEOF
36475 cat confdefs.h >>conftest.$ac_ext
36476 cat >>conftest.$ac_ext <<_ACEOF
36477 /* end confdefs.h. */
36478 #include <sys/stat.h>
36484 if (!mkfifo ("conftest.tmp/", 0600))
36487 if (!mkfifo ("conftest.lnk/", 0600))
36496 rm -f conftest$ac_exeext
36497 if { (ac_try="$ac_link"
36498 case "(($ac_try" in
36499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36500 *) ac_try_echo=$ac_try;;
36502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36503 $as_echo "$ac_try_echo") >&5
36504 (eval "$ac_link") 2>&5
36506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36507 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36508 { (case "(($ac_try" in
36509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36510 *) ac_try_echo=$ac_try;;
36512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36513 $as_echo "$ac_try_echo") >&5
36514 (eval "$ac_try") 2>&5
36516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36517 (exit $ac_status); }; }; then
36518 gl_cv_func_mkfifo_works=yes
36520 $as_echo "$as_me: program exited with status $ac_status" >&5
36521 $as_echo "$as_me: failed program was:" >&5
36522 sed 's/^/| /' conftest.$ac_ext >&5
36524 ( exit $ac_status )
36525 gl_cv_func_mkfifo_works=no
36527 rm -rf conftest.dSYM
36528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36532 rm -f conftest.tmp conftest.lnk
36534 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mkfifo_works" >&5
36535 $as_echo "$gl_cv_func_mkfifo_works" >&6; }
36536 if test "$gl_cv_func_mkfifo_works" != yes; then
36538 cat >>confdefs.h <<\_ACEOF
36539 #define MKFIFO_TRAILING_SLASH_BUG 1
36551 gl_LIBOBJS="$gl_LIBOBJS mkfifo.$ac_objext"
36563 cat >>confdefs.h <<\_ACEOF
36564 #define GNULIB_TEST_MKFIFO 1
36569 # Code from module mkfifoat:
36582 if test $ac_cv_func_mkfifoat = no; then
36583 # No known system has mkfifoat but not mknodat
36594 gl_LIBOBJS="$gl_LIBOBJS mkfifoat.$ac_objext"
36604 gl_LIBOBJS="$gl_LIBOBJS mknodat.$ac_objext"
36615 cat >>confdefs.h <<\_ACEOF
36616 #define GNULIB_TEST_MKFIFOAT 1
36628 cat >>confdefs.h <<\_ACEOF
36629 #define GNULIB_TEST_MKNODAT 1
36634 # Code from module mknod:
36645 if test $ac_cv_func_mknod = no; then
36655 gl_LIBOBJS="$gl_LIBOBJS mknod.$ac_objext"
36658 { $as_echo "$as_me:$LINENO: checking whether mknod can create fifo without root privileges" >&5
36659 $as_echo_n "checking whether mknod can create fifo without root privileges... " >&6; }
36660 if test "${gl_cv_func_mknod_works+set}" = set; then
36661 $as_echo_n "(cached) " >&6
36663 if test "$cross_compiling" = yes; then
36664 gl_cv_func_mknod_works="guessing no"
36666 cat >conftest.$ac_ext <<_ACEOF
36669 cat confdefs.h >>conftest.$ac_ext
36670 cat >>conftest.$ac_ext <<_ACEOF
36671 /* end confdefs.h. */
36672 #include <sys/stat.h>
36673 #include <unistd.h>
36678 /* Indeterminate for super-user, assume no. Why are you running
36679 configure as root, anyway? */
36680 if (!geteuid ()) return 99;
36681 if (mknod ("conftest.fifo", S_IFIFO | 0600, 0)) return 2;
36686 rm -f conftest$ac_exeext
36687 if { (ac_try="$ac_link"
36688 case "(($ac_try" in
36689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36690 *) ac_try_echo=$ac_try;;
36692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36693 $as_echo "$ac_try_echo") >&5
36694 (eval "$ac_link") 2>&5
36696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36697 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36698 { (case "(($ac_try" in
36699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36700 *) ac_try_echo=$ac_try;;
36702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36703 $as_echo "$ac_try_echo") >&5
36704 (eval "$ac_try") 2>&5
36706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36707 (exit $ac_status); }; }; then
36708 gl_cv_func_mknod_works=yes
36710 $as_echo "$as_me: program exited with status $ac_status" >&5
36711 $as_echo "$as_me: failed program was:" >&5
36712 sed 's/^/| /' conftest.$ac_ext >&5
36714 ( exit $ac_status )
36715 if test $? = 99 && test x"$FORCE_UNSAFE_CONFIGURE" = x; then
36716 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36718 { { $as_echo "$as_me:$LINENO: error: you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check)
36719 See \`config.log' for more details." >&5
36720 $as_echo "$as_me: error: you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check)
36721 See \`config.log' for more details." >&2;}
36722 { (exit 1); exit 1; }; }; }
36724 gl_cv_func_mknod_works=no
36726 rm -rf conftest.dSYM
36727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36731 rm -f conftest.fifo
36733 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mknod_works" >&5
36734 $as_echo "$gl_cv_func_mknod_works" >&6; }
36735 if test "$gl_cv_func_mknod_works" != yes; then
36737 cat >>confdefs.h <<\_ACEOF
36738 #define MKNOD_FIFO_BUG 1
36742 if test $REPLACE_MKFIFO = 1 || test "$gl_cv_func_mknod_works" != yes; then
36752 gl_LIBOBJS="$gl_LIBOBJS mknod.$ac_objext"
36764 cat >>confdefs.h <<\_ACEOF
36765 #define GNULIB_TEST_MKNOD 1
36770 # Code from module mktime:
36786 if test $APPLE_UNIVERSAL_BUILD = 1; then
36787 # A universal build on Apple MacOS X platforms.
36788 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
36789 # But we need a configuration result that is valid in both modes.
36790 ac_cv_func_working_mktime=no
36792 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
36793 $as_echo_n "checking for working mktime... " >&6; }
36794 if test "${ac_cv_func_working_mktime+set}" = set; then
36795 $as_echo_n "(cached) " >&6
36797 if test "$cross_compiling" = yes; then
36798 ac_cv_func_working_mktime=no
36800 cat >conftest.$ac_ext <<_ACEOF
36803 cat confdefs.h >>conftest.$ac_ext
36804 cat >>conftest.$ac_ext <<_ACEOF
36805 /* end confdefs.h. */
36806 /* Test program from Paul Eggert and Tony Leneis. */
36807 #include <limits.h>
36808 #include <stdlib.h>
36811 #ifdef HAVE_UNISTD_H
36812 # include <unistd.h>
36816 # define alarm(X) /* empty */
36819 /* Work around redefinition to rpl_putenv by other config tests. */
36822 static time_t time_t_max;
36823 static time_t time_t_min;
36825 /* Values we'll use to set the TZ environment variable. */
36826 static char *tz_strings[] = {
36827 (char *) 0, "TZ=GMT0", "TZ=JST-9",
36828 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
36830 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
36832 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
36833 Based on a problem report from Andreas Jaeger. */
36835 spring_forward_gap ()
36837 /* glibc (up to about 1998-10-07) failed this test. */
36840 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
36841 instead of "TZ=America/Vancouver" in order to detect the bug even
36842 on systems that don't support the Olson extension, or don't have the
36843 full zoneinfo tables installed. */
36844 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
36853 return mktime (&tm) != (time_t) -1;
36857 mktime_test1 (time_t now)
36860 return ! (lt = localtime (&now)) || mktime (lt) == now;
36864 mktime_test (time_t now)
36866 return (mktime_test1 (now)
36867 && mktime_test1 ((time_t) (time_t_max - now))
36868 && mktime_test1 ((time_t) (time_t_min + now)));
36874 /* Based on code from Ariel Faigon. */
36884 return tm.tm_mon == 2 && tm.tm_mday == 31;
36888 bigtime_test (int j)
36892 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
36893 now = mktime (&tm);
36894 if (now != (time_t) -1)
36896 struct tm *lt = localtime (&now);
36898 && lt->tm_year == tm.tm_year
36899 && lt->tm_mon == tm.tm_mon
36900 && lt->tm_mday == tm.tm_mday
36901 && lt->tm_hour == tm.tm_hour
36902 && lt->tm_min == tm.tm_min
36903 && lt->tm_sec == tm.tm_sec
36904 && lt->tm_yday == tm.tm_yday
36905 && lt->tm_wday == tm.tm_wday
36906 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
36907 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
36916 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
36917 ignoring leap seconds. */
36918 unsigned long int answer = 2527315200UL;
36922 tm.tm_year = 2050 - 1900;
36925 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
36928 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
36929 instead of "TZ=America/Vancouver" in order to detect the bug even
36930 on systems that don't support the Olson extension, or don't have the
36931 full zoneinfo tables installed. */
36932 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
36936 /* Check that the result is either a failure, or close enough
36937 to the correct answer that we can assume the discrepancy is
36938 due to leap seconds. */
36939 return (t == (time_t) -1
36940 || (0 < t && answer - 120 <= t && t <= answer + 120));
36949 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
36950 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
36952 /* This test makes some buggy mktime implementations loop.
36953 Give up after 60 seconds; a mktime slower than that
36954 isn't worth using anyway. */
36957 time_t_max = (! time_t_signed
36959 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
36961 time_t_min = (! time_t_signed
36963 : time_t_signed_magnitude
36967 delta = time_t_max / 997; /* a suitable prime number */
36968 for (i = 0; i < N_STRINGS; i++)
36971 putenv (tz_strings[i]);
36973 for (t = 0; t <= time_t_max - delta; t += delta)
36974 if (! mktime_test (t))
36976 if (! (mktime_test ((time_t) 1)
36977 && mktime_test ((time_t) (60 * 60))
36978 && mktime_test ((time_t) (60 * 60 * 24))))
36981 for (j = 1; ; j <<= 1)
36982 if (! bigtime_test (j))
36984 else if (INT_MAX / 2 < j)
36986 if (! bigtime_test (INT_MAX))
36989 if (! irix_6_4_bug ())
36991 if (! spring_forward_gap ())
36993 if (! year_2050_test ())
36998 rm -f conftest$ac_exeext
36999 if { (ac_try="$ac_link"
37000 case "(($ac_try" in
37001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37002 *) ac_try_echo=$ac_try;;
37004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37005 $as_echo "$ac_try_echo") >&5
37006 (eval "$ac_link") 2>&5
37008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37010 { (case "(($ac_try" in
37011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37012 *) ac_try_echo=$ac_try;;
37014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37015 $as_echo "$ac_try_echo") >&5
37016 (eval "$ac_try") 2>&5
37018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37019 (exit $ac_status); }; }; then
37020 ac_cv_func_working_mktime=yes
37022 $as_echo "$as_me: program exited with status $ac_status" >&5
37023 $as_echo "$as_me: failed program was:" >&5
37024 sed 's/^/| /' conftest.$ac_ext >&5
37026 ( exit $ac_status )
37027 ac_cv_func_working_mktime=no
37029 rm -rf conftest.dSYM
37030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37035 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
37036 $as_echo "$ac_cv_func_working_mktime" >&6; }
37037 if test $ac_cv_func_working_mktime = no; then
37046 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
37050 if test $ac_cv_func_working_mktime = no; then
37066 cat >>confdefs.h <<\_ACEOF
37067 #define GNULIB_TEST_MKTIME 1
37072 # Code from module modechange:
37082 gl_LIBOBJS="$gl_LIBOBJS modechange.$ac_objext"
37085 # Code from module multiarch:
37087 # Code from module nl_langinfo:
37097 if test $ac_cv_func_nl_langinfo = yes; then
37098 # On Irix 6.5, YESEXPR is defined, but nl_langinfo(YESEXPR) is broken.
37099 { $as_echo "$as_me:$LINENO: checking whether YESEXPR works" >&5
37100 $as_echo_n "checking whether YESEXPR works... " >&6; }
37101 if test "${gl_cv_func_nl_langinfo_yesexpr_works+set}" = set; then
37102 $as_echo_n "(cached) " >&6
37104 if test "$cross_compiling" = yes; then
37107 # Guess no on irix systems.
37108 irix*) gl_cv_func_nl_langinfo_yesexpr_works="guessing no";;
37109 # Guess yes elsewhere.
37110 *) gl_cv_func_nl_langinfo_yesexpr_works="guessing yes";;
37114 cat >conftest.$ac_ext <<_ACEOF
37117 cat confdefs.h >>conftest.$ac_ext
37118 cat >>conftest.$ac_ext <<_ACEOF
37119 /* end confdefs.h. */
37120 #include <langinfo.h>
37125 return !*nl_langinfo(YESEXPR);
37131 rm -f conftest$ac_exeext
37132 if { (ac_try="$ac_link"
37133 case "(($ac_try" in
37134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37135 *) ac_try_echo=$ac_try;;
37137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37138 $as_echo "$ac_try_echo") >&5
37139 (eval "$ac_link") 2>&5
37141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37143 { (case "(($ac_try" in
37144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37145 *) ac_try_echo=$ac_try;;
37147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37148 $as_echo "$ac_try_echo") >&5
37149 (eval "$ac_try") 2>&5
37151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37152 (exit $ac_status); }; }; then
37153 gl_cv_func_nl_langinfo_yesexpr_works=yes
37155 $as_echo "$as_me: program exited with status $ac_status" >&5
37156 $as_echo "$as_me: failed program was:" >&5
37157 sed 's/^/| /' conftest.$ac_ext >&5
37159 ( exit $ac_status )
37160 gl_cv_func_nl_langinfo_yesexpr_works=no
37162 rm -rf conftest.dSYM
37163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37169 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_nl_langinfo_yesexpr_works" >&5
37170 $as_echo "$gl_cv_func_nl_langinfo_yesexpr_works" >&6; }
37171 case $gl_cv_func_nl_langinfo_yesexpr_works in
37172 *yes) FUNC_NL_LANGINFO_YESEXPR_WORKS=1 ;;
37173 *) FUNC_NL_LANGINFO_YESEXPR_WORKS=0 ;;
37176 cat >>confdefs.h <<_ACEOF
37177 #define FUNC_NL_LANGINFO_YESEXPR_WORKS $FUNC_NL_LANGINFO_YESEXPR_WORKS
37180 if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1 \
37181 && test $FUNC_NL_LANGINFO_YESEXPR_WORKS = 1; then
37184 REPLACE_NL_LANGINFO=1
37186 cat >>confdefs.h <<\_ACEOF
37187 #define REPLACE_NL_LANGINFO 1
37198 gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
37211 gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
37218 GNULIB_NL_LANGINFO=1
37222 cat >>confdefs.h <<\_ACEOF
37223 #define GNULIB_TEST_NL_LANGINFO 1
37228 # Code from module obstack:
37241 { $as_echo "$as_me:$LINENO: checking for obstacks" >&5
37242 $as_echo_n "checking for obstacks... " >&6; }
37243 if test "${ac_cv_func_obstack+set}" = set; then
37244 $as_echo_n "(cached) " >&6
37246 cat >conftest.$ac_ext <<_ACEOF
37249 cat confdefs.h >>conftest.$ac_ext
37250 cat >>conftest.$ac_ext <<_ACEOF
37251 /* end confdefs.h. */
37252 $ac_includes_default
37253 #include "obstack.h"
37257 struct obstack mem;
37258 #define obstack_chunk_alloc malloc
37259 #define obstack_chunk_free free
37260 obstack_init (&mem);
37261 obstack_free (&mem, 0);
37266 rm -f conftest.$ac_objext conftest$ac_exeext
37267 if { (ac_try="$ac_link"
37268 case "(($ac_try" in
37269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37270 *) ac_try_echo=$ac_try;;
37272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37273 $as_echo "$ac_try_echo") >&5
37274 (eval "$ac_link") 2>conftest.er1
37276 grep -v '^ *+' conftest.er1 >conftest.err
37278 cat conftest.err >&5
37279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37280 (exit $ac_status); } && {
37281 test -z "$ac_c_werror_flag" ||
37282 test ! -s conftest.err
37283 } && test -s conftest$ac_exeext && {
37284 test "$cross_compiling" = yes ||
37285 $as_test_x conftest$ac_exeext
37287 ac_cv_func_obstack=yes
37289 $as_echo "$as_me: failed program was:" >&5
37290 sed 's/^/| /' conftest.$ac_ext >&5
37292 ac_cv_func_obstack=no
37295 rm -rf conftest.dSYM
37296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37297 conftest$ac_exeext conftest.$ac_ext
37299 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
37300 $as_echo "$ac_cv_func_obstack" >&6; }
37301 if test $ac_cv_func_obstack = yes; then
37303 cat >>confdefs.h <<\_ACEOF
37304 #define HAVE_OBSTACK 1
37316 gl_LIBOBJS="$gl_LIBOBJS obstack.$ac_objext"
37320 # Code from module open:
37336 gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
37352 { $as_echo "$as_me:$LINENO: checking whether open recognizes a trailing slash" >&5
37353 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
37354 if test "${gl_cv_func_open_slash+set}" = set; then
37355 $as_echo_n "(cached) " >&6
37357 # Assume that if we have lstat, we can also check symlinks.
37358 if test $ac_cv_func_lstat = yes; then
37360 ln -s conftest.tmp conftest.lnk
37362 if test "$cross_compiling" = yes; then
37365 freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
37366 gl_cv_func_open_slash="guessing no" ;;
37368 gl_cv_func_open_slash="guessing yes" ;;
37372 cat >conftest.$ac_ext <<_ACEOF
37375 cat confdefs.h >>conftest.$ac_ext
37376 cat >>conftest.$ac_ext <<_ACEOF
37377 /* end confdefs.h. */
37381 # include <unistd.h>
37387 if (open ("conftest.lnk/", O_RDONLY) != -1)
37390 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
37395 rm -f conftest$ac_exeext
37396 if { (ac_try="$ac_link"
37397 case "(($ac_try" in
37398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37399 *) ac_try_echo=$ac_try;;
37401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37402 $as_echo "$ac_try_echo") >&5
37403 (eval "$ac_link") 2>&5
37405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37406 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37407 { (case "(($ac_try" in
37408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37409 *) ac_try_echo=$ac_try;;
37411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37412 $as_echo "$ac_try_echo") >&5
37413 (eval "$ac_try") 2>&5
37415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37416 (exit $ac_status); }; }; then
37417 gl_cv_func_open_slash=yes
37419 $as_echo "$as_me: program exited with status $ac_status" >&5
37420 $as_echo "$as_me: failed program was:" >&5
37421 sed 's/^/| /' conftest.$ac_ext >&5
37423 ( exit $ac_status )
37424 gl_cv_func_open_slash=no
37426 rm -rf conftest.dSYM
37427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37431 rm -f conftest.sl conftest.tmp conftest.lnk
37434 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_open_slash" >&5
37435 $as_echo "$gl_cv_func_open_slash" >&6; }
37436 case "$gl_cv_func_open_slash" in
37439 cat >>confdefs.h <<\_ACEOF
37440 #define OPEN_TRAILING_SLASH_BUG 1
37454 gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
37474 cat >>confdefs.h <<\_ACEOF
37475 #define GNULIB_TEST_OPEN 1
37480 # Code from module openat:
37502 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
37552 for ac_func in fchmodat fstatat mkdirat openat unlinkat
37554 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37555 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
37556 $as_echo_n "checking for $ac_func... " >&6; }
37557 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37558 $as_echo_n "(cached) " >&6
37560 cat >conftest.$ac_ext <<_ACEOF
37563 cat confdefs.h >>conftest.$ac_ext
37564 cat >>conftest.$ac_ext <<_ACEOF
37565 /* end confdefs.h. */
37566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37568 #define $ac_func innocuous_$ac_func
37570 /* System header to define __stub macros and hopefully few prototypes,
37571 which can conflict with char $ac_func (); below.
37572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37573 <limits.h> exists even on freestanding compilers. */
37576 # include <limits.h>
37578 # include <assert.h>
37583 /* Override any GCC internal prototype to avoid an error.
37584 Use char because int might match the return type of a GCC
37585 builtin and then its argument prototype would still apply. */
37590 /* The GNU C library defines this for functions which it implements
37591 to always fail with ENOSYS. Some functions are actually named
37592 something starting with __ and the normal name is an alias. */
37593 #if defined __stub_$ac_func || defined __stub___$ac_func
37600 return $ac_func ();
37605 rm -f conftest.$ac_objext conftest$ac_exeext
37606 if { (ac_try="$ac_link"
37607 case "(($ac_try" in
37608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37609 *) ac_try_echo=$ac_try;;
37611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37612 $as_echo "$ac_try_echo") >&5
37613 (eval "$ac_link") 2>conftest.er1
37615 grep -v '^ *+' conftest.er1 >conftest.err
37617 cat conftest.err >&5
37618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37619 (exit $ac_status); } && {
37620 test -z "$ac_c_werror_flag" ||
37621 test ! -s conftest.err
37622 } && test -s conftest$ac_exeext && {
37623 test "$cross_compiling" = yes ||
37624 $as_test_x conftest$ac_exeext
37626 eval "$as_ac_var=yes"
37628 $as_echo "$as_me: failed program was:" >&5
37629 sed 's/^/| /' conftest.$ac_ext >&5
37631 eval "$as_ac_var=no"
37634 rm -rf conftest.dSYM
37635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37636 conftest$ac_exeext conftest.$ac_ext
37638 ac_res=`eval 'as_val=${'$as_ac_var'}
37639 $as_echo "$as_val"'`
37640 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37641 $as_echo "$ac_res" >&6; }
37642 as_val=`eval 'as_val=${'$as_ac_var'}
37643 $as_echo "$as_val"'`
37644 if test "x$as_val" = x""yes; then
37645 cat >>confdefs.h <<_ACEOF
37646 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
37651 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
37659 case $ac_cv_func_openat+$ac_cv_func_lstat_dereferences_slashed_symlink in
37661 # GNU/Hurd has unlinkat, but it has the same bug as unlink.
37662 if test $REPLACE_UNLINK = 1; then
37671 gl_LIBOBJS="$gl_LIBOBJS unlinkat.$ac_objext"
37676 # Solaris 9 has *at functions, but uniformly mishandles trailing
37677 # slash in all of them.
37686 gl_LIBOBJS="$gl_LIBOBJS openat.$ac_objext"
37697 gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
37708 gl_LIBOBJS="$gl_LIBOBJS unlinkat.$ac_objext"
37714 HAVE_UNLINKAT=0 # No known system with unlinkat but not openat
37715 HAVE_FSTATAT=0 # No known system with fstatat but not openat
37722 if test $ac_cv_func_fchmodat != yes; then
37725 if test $ac_cv_func_mkdirat != yes; then
37731 { $as_echo "$as_me:$LINENO: checking for fchownat" >&5
37732 $as_echo_n "checking for fchownat... " >&6; }
37733 if test "${ac_cv_func_fchownat+set}" = set; then
37734 $as_echo_n "(cached) " >&6
37736 cat >conftest.$ac_ext <<_ACEOF
37739 cat confdefs.h >>conftest.$ac_ext
37740 cat >>conftest.$ac_ext <<_ACEOF
37741 /* end confdefs.h. */
37742 /* Define fchownat to an innocuous variant, in case <limits.h> declares fchownat.
37743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37744 #define fchownat innocuous_fchownat
37746 /* System header to define __stub macros and hopefully few prototypes,
37747 which can conflict with char fchownat (); below.
37748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37749 <limits.h> exists even on freestanding compilers. */
37752 # include <limits.h>
37754 # include <assert.h>
37759 /* Override any GCC internal prototype to avoid an error.
37760 Use char because int might match the return type of a GCC
37761 builtin and then its argument prototype would still apply. */
37766 /* The GNU C library defines this for functions which it implements
37767 to always fail with ENOSYS. Some functions are actually named
37768 something starting with __ and the normal name is an alias. */
37769 #if defined __stub_fchownat || defined __stub___fchownat
37776 return fchownat ();
37781 rm -f conftest.$ac_objext conftest$ac_exeext
37782 if { (ac_try="$ac_link"
37783 case "(($ac_try" in
37784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37785 *) ac_try_echo=$ac_try;;
37787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37788 $as_echo "$ac_try_echo") >&5
37789 (eval "$ac_link") 2>conftest.er1
37791 grep -v '^ *+' conftest.er1 >conftest.err
37793 cat conftest.err >&5
37794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37795 (exit $ac_status); } && {
37796 test -z "$ac_c_werror_flag" ||
37797 test ! -s conftest.err
37798 } && test -s conftest$ac_exeext && {
37799 test "$cross_compiling" = yes ||
37800 $as_test_x conftest$ac_exeext
37802 ac_cv_func_fchownat=yes
37804 $as_echo "$as_me: failed program was:" >&5
37805 sed 's/^/| /' conftest.$ac_ext >&5
37807 ac_cv_func_fchownat=no
37810 rm -rf conftest.dSYM
37811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37812 conftest$ac_exeext conftest.$ac_ext
37814 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fchownat" >&5
37815 $as_echo "$ac_cv_func_fchownat" >&6; }
37816 if test "x$ac_cv_func_fchownat" = x""yes; then
37820 { $as_echo "$as_me:$LINENO: checking whether fchownat works with AT_SYMLINK_NOFOLLOW" >&5
37821 $as_echo_n "checking whether fchownat works with AT_SYMLINK_NOFOLLOW... " >&6; }
37822 if test "${gl_cv_func_fchownat_nofollow_works+set}" = set; then
37823 $as_echo_n "(cached) " >&6
37826 gl_dangle=conftest.dangle
37827 # Remove any remnants of a previous test.
37829 # Arrange for deletion of the temporary file this test creates.
37830 ac_clean_files="$ac_clean_files $gl_dangle"
37831 ln -s conftest.no-such $gl_dangle
37832 if test "$cross_compiling" = yes; then
37833 gl_cv_func_fchownat_nofollow_works=no
37835 cat >conftest.$ac_ext <<_ACEOF
37838 cat confdefs.h >>conftest.$ac_ext
37839 cat >>conftest.$ac_ext <<_ACEOF
37840 /* end confdefs.h. */
37843 #include <unistd.h>
37844 #include <stdlib.h>
37846 #include <sys/types.h>
37850 return (fchownat (AT_FDCWD, "$gl_dangle", -1, getgid (),
37851 AT_SYMLINK_NOFOLLOW) != 0
37852 && errno == ENOENT);
37856 rm -f conftest$ac_exeext
37857 if { (ac_try="$ac_link"
37858 case "(($ac_try" in
37859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37860 *) ac_try_echo=$ac_try;;
37862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37863 $as_echo "$ac_try_echo") >&5
37864 (eval "$ac_link") 2>&5
37866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37868 { (case "(($ac_try" in
37869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37870 *) ac_try_echo=$ac_try;;
37872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37873 $as_echo "$ac_try_echo") >&5
37874 (eval "$ac_try") 2>&5
37876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37877 (exit $ac_status); }; }; then
37878 gl_cv_func_fchownat_nofollow_works=yes
37880 $as_echo "$as_me: program exited with status $ac_status" >&5
37881 $as_echo "$as_me: failed program was:" >&5
37882 sed 's/^/| /' conftest.$ac_ext >&5
37884 ( exit $ac_status )
37885 gl_cv_func_fchownat_nofollow_works=no
37887 rm -rf conftest.dSYM
37888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37894 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fchownat_nofollow_works" >&5
37895 $as_echo "$gl_cv_func_fchownat_nofollow_works" >&6; }
37896 if test $gl_cv_func_fchownat_nofollow_works = no; then
37899 cat >>confdefs.h <<\_ACEOF
37900 #define FCHOWNAT_NOFOLLOW_BUG 1
37910 { $as_echo "$as_me:$LINENO: checking whether fchownat works with an empty file name" >&5
37911 $as_echo_n "checking whether fchownat works with an empty file name... " >&6; }
37912 if test "${gl_cv_func_fchownat_empty_filename_works+set}" = set; then
37913 $as_echo_n "(cached) " >&6
37915 if test "$cross_compiling" = yes; then
37916 gl_cv_func_fchownat_empty_filename_works="guessing no"
37918 cat >conftest.$ac_ext <<_ACEOF
37921 cat confdefs.h >>conftest.$ac_ext
37922 cat >>conftest.$ac_ext <<_ACEOF
37923 /* end confdefs.h. */
37924 #include <unistd.h>
37932 if (mkdir ("conftestdir", 0700) < 0)
37934 fd = open ("conftestdir", O_RDONLY);
37937 ret = fchownat (fd, "", -1, -1, 0);
37939 rmdir ("conftestdir");
37946 rm -f conftest$ac_exeext
37947 if { (ac_try="$ac_link"
37948 case "(($ac_try" in
37949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37950 *) ac_try_echo=$ac_try;;
37952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37953 $as_echo "$ac_try_echo") >&5
37954 (eval "$ac_link") 2>&5
37956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37958 { (case "(($ac_try" in
37959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37960 *) ac_try_echo=$ac_try;;
37962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37963 $as_echo "$ac_try_echo") >&5
37964 (eval "$ac_try") 2>&5
37966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37967 (exit $ac_status); }; }; then
37968 gl_cv_func_fchownat_empty_filename_works=yes
37970 $as_echo "$as_me: program exited with status $ac_status" >&5
37971 $as_echo "$as_me: failed program was:" >&5
37972 sed 's/^/| /' conftest.$ac_ext >&5
37974 ( exit $ac_status )
37975 gl_cv_func_fchownat_empty_filename_works=no
37977 rm -rf conftest.dSYM
37978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37984 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fchownat_empty_filename_works" >&5
37985 $as_echo "$gl_cv_func_fchownat_empty_filename_works" >&6; }
37986 if test "$gl_cv_func_fchownat_empty_filename_works" != yes; then
37989 cat >>confdefs.h <<\_ACEOF
37990 #define FCHOWNAT_EMPTY_FILENAME_BUG 1
37997 if test $REPLACE_CHOWN = 1; then
38004 if test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1; then
38013 gl_LIBOBJS="$gl_LIBOBJS fchownat.$ac_objext"
38018 # Code from module openat-die:
38019 # Code from module parse-datetime:
38026 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
38027 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
38028 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
38029 $as_echo_n "(cached) " >&6
38031 cat >conftest.$ac_ext <<_ACEOF
38034 cat confdefs.h >>conftest.$ac_ext
38035 cat >>conftest.$ac_ext <<_ACEOF
38036 /* end confdefs.h. */
38037 #include <sys/types.h>
38038 #include <$ac_cv_struct_tm>
38044 static struct tm ac_aggr;
38045 if (ac_aggr.tm_zone)
38051 rm -f conftest.$ac_objext
38052 if { (ac_try="$ac_compile"
38053 case "(($ac_try" in
38054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38055 *) ac_try_echo=$ac_try;;
38057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38058 $as_echo "$ac_try_echo") >&5
38059 (eval "$ac_compile") 2>conftest.er1
38061 grep -v '^ *+' conftest.er1 >conftest.err
38063 cat conftest.err >&5
38064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38065 (exit $ac_status); } && {
38066 test -z "$ac_c_werror_flag" ||
38067 test ! -s conftest.err
38068 } && test -s conftest.$ac_objext; then
38069 ac_cv_member_struct_tm_tm_zone=yes
38071 $as_echo "$as_me: failed program was:" >&5
38072 sed 's/^/| /' conftest.$ac_ext >&5
38074 cat >conftest.$ac_ext <<_ACEOF
38077 cat confdefs.h >>conftest.$ac_ext
38078 cat >>conftest.$ac_ext <<_ACEOF
38079 /* end confdefs.h. */
38080 #include <sys/types.h>
38081 #include <$ac_cv_struct_tm>
38087 static struct tm ac_aggr;
38088 if (sizeof ac_aggr.tm_zone)
38094 rm -f conftest.$ac_objext
38095 if { (ac_try="$ac_compile"
38096 case "(($ac_try" in
38097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38098 *) ac_try_echo=$ac_try;;
38100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38101 $as_echo "$ac_try_echo") >&5
38102 (eval "$ac_compile") 2>conftest.er1
38104 grep -v '^ *+' conftest.er1 >conftest.err
38106 cat conftest.err >&5
38107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38108 (exit $ac_status); } && {
38109 test -z "$ac_c_werror_flag" ||
38110 test ! -s conftest.err
38111 } && test -s conftest.$ac_objext; then
38112 ac_cv_member_struct_tm_tm_zone=yes
38114 $as_echo "$as_me: failed program was:" >&5
38115 sed 's/^/| /' conftest.$ac_ext >&5
38117 ac_cv_member_struct_tm_tm_zone=no
38120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38125 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
38126 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
38127 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
38129 cat >>confdefs.h <<_ACEOF
38130 #define HAVE_STRUCT_TM_TM_ZONE 1
38136 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
38138 cat >>confdefs.h <<\_ACEOF
38139 #define HAVE_TM_ZONE 1
38143 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
38144 $as_echo_n "checking whether tzname is declared... " >&6; }
38145 if test "${ac_cv_have_decl_tzname+set}" = set; then
38146 $as_echo_n "(cached) " >&6
38148 cat >conftest.$ac_ext <<_ACEOF
38151 cat confdefs.h >>conftest.$ac_ext
38152 cat >>conftest.$ac_ext <<_ACEOF
38153 /* end confdefs.h. */
38167 rm -f conftest.$ac_objext
38168 if { (ac_try="$ac_compile"
38169 case "(($ac_try" in
38170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38171 *) ac_try_echo=$ac_try;;
38173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38174 $as_echo "$ac_try_echo") >&5
38175 (eval "$ac_compile") 2>conftest.er1
38177 grep -v '^ *+' conftest.er1 >conftest.err
38179 cat conftest.err >&5
38180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38181 (exit $ac_status); } && {
38182 test -z "$ac_c_werror_flag" ||
38183 test ! -s conftest.err
38184 } && test -s conftest.$ac_objext; then
38185 ac_cv_have_decl_tzname=yes
38187 $as_echo "$as_me: failed program was:" >&5
38188 sed 's/^/| /' conftest.$ac_ext >&5
38190 ac_cv_have_decl_tzname=no
38193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38195 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
38196 $as_echo "$ac_cv_have_decl_tzname" >&6; }
38197 if test "x$ac_cv_have_decl_tzname" = x""yes; then
38199 cat >>confdefs.h <<_ACEOF
38200 #define HAVE_DECL_TZNAME 1
38205 cat >>confdefs.h <<_ACEOF
38206 #define HAVE_DECL_TZNAME 0
38213 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
38214 $as_echo_n "checking for tzname... " >&6; }
38215 if test "${ac_cv_var_tzname+set}" = set; then
38216 $as_echo_n "(cached) " >&6
38218 cat >conftest.$ac_ext <<_ACEOF
38221 cat confdefs.h >>conftest.$ac_ext
38222 cat >>conftest.$ac_ext <<_ACEOF
38223 /* end confdefs.h. */
38225 #if !HAVE_DECL_TZNAME
38226 extern char *tzname[];
38232 return tzname[0][0];
38237 rm -f conftest.$ac_objext conftest$ac_exeext
38238 if { (ac_try="$ac_link"
38239 case "(($ac_try" in
38240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38241 *) ac_try_echo=$ac_try;;
38243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38244 $as_echo "$ac_try_echo") >&5
38245 (eval "$ac_link") 2>conftest.er1
38247 grep -v '^ *+' conftest.er1 >conftest.err
38249 cat conftest.err >&5
38250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38251 (exit $ac_status); } && {
38252 test -z "$ac_c_werror_flag" ||
38253 test ! -s conftest.err
38254 } && test -s conftest$ac_exeext && {
38255 test "$cross_compiling" = yes ||
38256 $as_test_x conftest$ac_exeext
38258 ac_cv_var_tzname=yes
38260 $as_echo "$as_me: failed program was:" >&5
38261 sed 's/^/| /' conftest.$ac_ext >&5
38263 ac_cv_var_tzname=no
38266 rm -rf conftest.dSYM
38267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38268 conftest$ac_exeext conftest.$ac_ext
38270 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
38271 $as_echo "$ac_cv_var_tzname" >&6; }
38272 if test $ac_cv_var_tzname = yes; then
38274 cat >>confdefs.h <<\_ACEOF
38275 #define HAVE_TZNAME 1
38283 cat >conftest.$ac_ext <<_ACEOF
38286 cat confdefs.h >>conftest.$ac_ext
38287 cat >>conftest.$ac_ext <<_ACEOF
38288 /* end confdefs.h. */
38290 #include <time.h> /* for time_t */
38291 #include <limits.h> /* for CHAR_BIT, LONG_MIN, LONG_MAX */
38292 #define TYPE_MINIMUM(t) \
38293 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
38294 #define TYPE_MAXIMUM(t) \
38295 ((t) ((t) 0 < (t) -1 \
38297 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
38298 typedef int verify_min[2 * (LONG_MIN <= TYPE_MINIMUM (time_t)) - 1];
38299 typedef int verify_max[2 * (TYPE_MAXIMUM (time_t) <= LONG_MAX) - 1];
38302 rm -f conftest.$ac_objext
38303 if { (ac_try="$ac_compile"
38304 case "(($ac_try" in
38305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38306 *) ac_try_echo=$ac_try;;
38308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38309 $as_echo "$ac_try_echo") >&5
38310 (eval "$ac_compile") 2>conftest.er1
38312 grep -v '^ *+' conftest.er1 >conftest.err
38314 cat conftest.err >&5
38315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38316 (exit $ac_status); } && {
38317 test -z "$ac_c_werror_flag" ||
38318 test ! -s conftest.err
38319 } && test -s conftest.$ac_objext; then
38321 cat >>confdefs.h <<\_ACEOF
38322 #define TIME_T_FITS_IN_LONG_INT 1
38327 $as_echo "$as_me: failed program was:" >&5
38328 sed 's/^/| /' conftest.$ac_ext >&5
38333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38335 # Code from module pathmax:
38350 # Code from module priv-set:
38354 for ac_func in getppriv
38356 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38357 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
38358 $as_echo_n "checking for $ac_func... " >&6; }
38359 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38360 $as_echo_n "(cached) " >&6
38362 cat >conftest.$ac_ext <<_ACEOF
38365 cat confdefs.h >>conftest.$ac_ext
38366 cat >>conftest.$ac_ext <<_ACEOF
38367 /* end confdefs.h. */
38368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38370 #define $ac_func innocuous_$ac_func
38372 /* System header to define __stub macros and hopefully few prototypes,
38373 which can conflict with char $ac_func (); below.
38374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38375 <limits.h> exists even on freestanding compilers. */
38378 # include <limits.h>
38380 # include <assert.h>
38385 /* Override any GCC internal prototype to avoid an error.
38386 Use char because int might match the return type of a GCC
38387 builtin and then its argument prototype would still apply. */
38392 /* The GNU C library defines this for functions which it implements
38393 to always fail with ENOSYS. Some functions are actually named
38394 something starting with __ and the normal name is an alias. */
38395 #if defined __stub_$ac_func || defined __stub___$ac_func
38402 return $ac_func ();
38407 rm -f conftest.$ac_objext conftest$ac_exeext
38408 if { (ac_try="$ac_link"
38409 case "(($ac_try" in
38410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38411 *) ac_try_echo=$ac_try;;
38413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38414 $as_echo "$ac_try_echo") >&5
38415 (eval "$ac_link") 2>conftest.er1
38417 grep -v '^ *+' conftest.er1 >conftest.err
38419 cat conftest.err >&5
38420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38421 (exit $ac_status); } && {
38422 test -z "$ac_c_werror_flag" ||
38423 test ! -s conftest.err
38424 } && test -s conftest$ac_exeext && {
38425 test "$cross_compiling" = yes ||
38426 $as_test_x conftest$ac_exeext
38428 eval "$as_ac_var=yes"
38430 $as_echo "$as_me: failed program was:" >&5
38431 sed 's/^/| /' conftest.$ac_ext >&5
38433 eval "$as_ac_var=no"
38436 rm -rf conftest.dSYM
38437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38438 conftest$ac_exeext conftest.$ac_ext
38440 ac_res=`eval 'as_val=${'$as_ac_var'}
38441 $as_echo "$as_val"'`
38442 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38443 $as_echo "$ac_res" >&6; }
38444 as_val=`eval 'as_val=${'$as_ac_var'}
38445 $as_echo "$as_val"'`
38446 if test "x$as_val" = x""yes; then
38447 cat >>confdefs.h <<_ACEOF
38448 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38461 # Code from module progname:
38462 { $as_echo "$as_me:$LINENO: checking whether program_invocation_name is declared" >&5
38463 $as_echo_n "checking whether program_invocation_name is declared... " >&6; }
38464 if test "${ac_cv_have_decl_program_invocation_name+set}" = set; then
38465 $as_echo_n "(cached) " >&6
38467 cat >conftest.$ac_ext <<_ACEOF
38470 cat confdefs.h >>conftest.$ac_ext
38471 cat >>conftest.$ac_ext <<_ACEOF
38472 /* end confdefs.h. */
38478 #ifndef program_invocation_name
38479 (void) program_invocation_name;
38486 rm -f conftest.$ac_objext
38487 if { (ac_try="$ac_compile"
38488 case "(($ac_try" in
38489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38490 *) ac_try_echo=$ac_try;;
38492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38493 $as_echo "$ac_try_echo") >&5
38494 (eval "$ac_compile") 2>conftest.er1
38496 grep -v '^ *+' conftest.er1 >conftest.err
38498 cat conftest.err >&5
38499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38500 (exit $ac_status); } && {
38501 test -z "$ac_c_werror_flag" ||
38502 test ! -s conftest.err
38503 } && test -s conftest.$ac_objext; then
38504 ac_cv_have_decl_program_invocation_name=yes
38506 $as_echo "$as_me: failed program was:" >&5
38507 sed 's/^/| /' conftest.$ac_ext >&5
38509 ac_cv_have_decl_program_invocation_name=no
38512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38514 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_name" >&5
38515 $as_echo "$ac_cv_have_decl_program_invocation_name" >&6; }
38516 if test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then
38518 cat >>confdefs.h <<_ACEOF
38519 #define HAVE_DECL_PROGRAM_INVOCATION_NAME 1
38524 cat >>confdefs.h <<_ACEOF
38525 #define HAVE_DECL_PROGRAM_INVOCATION_NAME 0
38532 { $as_echo "$as_me:$LINENO: checking whether program_invocation_short_name is declared" >&5
38533 $as_echo_n "checking whether program_invocation_short_name is declared... " >&6; }
38534 if test "${ac_cv_have_decl_program_invocation_short_name+set}" = set; then
38535 $as_echo_n "(cached) " >&6
38537 cat >conftest.$ac_ext <<_ACEOF
38540 cat confdefs.h >>conftest.$ac_ext
38541 cat >>conftest.$ac_ext <<_ACEOF
38542 /* end confdefs.h. */
38548 #ifndef program_invocation_short_name
38549 (void) program_invocation_short_name;
38556 rm -f conftest.$ac_objext
38557 if { (ac_try="$ac_compile"
38558 case "(($ac_try" in
38559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38560 *) ac_try_echo=$ac_try;;
38562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38563 $as_echo "$ac_try_echo") >&5
38564 (eval "$ac_compile") 2>conftest.er1
38566 grep -v '^ *+' conftest.er1 >conftest.err
38568 cat conftest.err >&5
38569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38570 (exit $ac_status); } && {
38571 test -z "$ac_c_werror_flag" ||
38572 test ! -s conftest.err
38573 } && test -s conftest.$ac_objext; then
38574 ac_cv_have_decl_program_invocation_short_name=yes
38576 $as_echo "$as_me: failed program was:" >&5
38577 sed 's/^/| /' conftest.$ac_ext >&5
38579 ac_cv_have_decl_program_invocation_short_name=no
38582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38584 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_short_name" >&5
38585 $as_echo "$ac_cv_have_decl_program_invocation_short_name" >&6; }
38586 if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then
38588 cat >>confdefs.h <<_ACEOF
38589 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1
38594 cat >>confdefs.h <<_ACEOF
38595 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 0
38602 # Code from module quote:
38612 gl_LIBOBJS="$gl_LIBOBJS quote.$ac_objext"
38616 # Code from module quotearg:
38626 gl_LIBOBJS="$gl_LIBOBJS quotearg.$ac_objext"
38629 # Code from module quotearg-simple:
38630 # Code from module rawmemchr:
38644 for ac_func in rawmemchr
38646 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38647 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
38648 $as_echo_n "checking for $ac_func... " >&6; }
38649 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38650 $as_echo_n "(cached) " >&6
38652 cat >conftest.$ac_ext <<_ACEOF
38655 cat confdefs.h >>conftest.$ac_ext
38656 cat >>conftest.$ac_ext <<_ACEOF
38657 /* end confdefs.h. */
38658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38660 #define $ac_func innocuous_$ac_func
38662 /* System header to define __stub macros and hopefully few prototypes,
38663 which can conflict with char $ac_func (); below.
38664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38665 <limits.h> exists even on freestanding compilers. */
38668 # include <limits.h>
38670 # include <assert.h>
38675 /* Override any GCC internal prototype to avoid an error.
38676 Use char because int might match the return type of a GCC
38677 builtin and then its argument prototype would still apply. */
38682 /* The GNU C library defines this for functions which it implements
38683 to always fail with ENOSYS. Some functions are actually named
38684 something starting with __ and the normal name is an alias. */
38685 #if defined __stub_$ac_func || defined __stub___$ac_func
38692 return $ac_func ();
38697 rm -f conftest.$ac_objext conftest$ac_exeext
38698 if { (ac_try="$ac_link"
38699 case "(($ac_try" in
38700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38701 *) ac_try_echo=$ac_try;;
38703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38704 $as_echo "$ac_try_echo") >&5
38705 (eval "$ac_link") 2>conftest.er1
38707 grep -v '^ *+' conftest.er1 >conftest.err
38709 cat conftest.err >&5
38710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38711 (exit $ac_status); } && {
38712 test -z "$ac_c_werror_flag" ||
38713 test ! -s conftest.err
38714 } && test -s conftest$ac_exeext && {
38715 test "$cross_compiling" = yes ||
38716 $as_test_x conftest$ac_exeext
38718 eval "$as_ac_var=yes"
38720 $as_echo "$as_me: failed program was:" >&5
38721 sed 's/^/| /' conftest.$ac_ext >&5
38723 eval "$as_ac_var=no"
38726 rm -rf conftest.dSYM
38727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38728 conftest$ac_exeext conftest.$ac_ext
38730 ac_res=`eval 'as_val=${'$as_ac_var'}
38731 $as_echo "$as_val"'`
38732 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38733 $as_echo "$ac_res" >&6; }
38734 as_val=`eval 'as_val=${'$as_ac_var'}
38735 $as_echo "$as_val"'`
38736 if test "x$as_val" = x""yes; then
38737 cat >>confdefs.h <<_ACEOF
38738 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38743 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
38749 if test $ac_cv_func_rawmemchr = no; then
38761 cat >>confdefs.h <<\_ACEOF
38762 #define GNULIB_TEST_RAWMEMCHR 1
38767 # Code from module readlink:
38776 if test $ac_cv_func_readlink = no; then
38786 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
38792 { $as_echo "$as_me:$LINENO: checking whether readlink signature is correct" >&5
38793 $as_echo_n "checking whether readlink signature is correct... " >&6; }
38794 if test "${gl_cv_decl_readlink_works+set}" = set; then
38795 $as_echo_n "(cached) " >&6
38797 cat >conftest.$ac_ext <<_ACEOF
38800 cat confdefs.h >>conftest.$ac_ext
38801 cat >>conftest.$ac_ext <<_ACEOF
38802 /* end confdefs.h. */
38803 #include <unistd.h>
38804 /* Cause compilation failure if original declaration has wrong type. */
38805 ssize_t readlink (const char *, char *, size_t);
38814 rm -f conftest.$ac_objext
38815 if { (ac_try="$ac_compile"
38816 case "(($ac_try" in
38817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38818 *) ac_try_echo=$ac_try;;
38820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38821 $as_echo "$ac_try_echo") >&5
38822 (eval "$ac_compile") 2>conftest.er1
38824 grep -v '^ *+' conftest.er1 >conftest.err
38826 cat conftest.err >&5
38827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38828 (exit $ac_status); } && {
38829 test -z "$ac_c_werror_flag" ||
38830 test ! -s conftest.err
38831 } && test -s conftest.$ac_objext; then
38832 gl_cv_decl_readlink_works=yes
38834 $as_echo "$as_me: failed program was:" >&5
38835 sed 's/^/| /' conftest.$ac_ext >&5
38837 gl_cv_decl_readlink_works=no
38840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38842 { $as_echo "$as_me:$LINENO: result: $gl_cv_decl_readlink_works" >&5
38843 $as_echo "$gl_cv_decl_readlink_works" >&6; }
38844 { $as_echo "$as_me:$LINENO: checking whether readlink handles trailing slash correctly" >&5
38845 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
38846 if test "${gl_cv_func_readlink_works+set}" = set; then
38847 $as_echo_n "(cached) " >&6
38849 # We have readlink, so assume ln -s works.
38850 ln -s conftest.no-such conftest.link
38851 ln -s conftest.link conftest.lnk2
38852 if test "$cross_compiling" = yes; then
38853 gl_cv_func_readlink_works="guessing no"
38855 cat >conftest.$ac_ext <<_ACEOF
38858 cat confdefs.h >>conftest.$ac_ext
38859 cat >>conftest.$ac_ext <<_ACEOF
38860 /* end confdefs.h. */
38861 #include <unistd.h>
38867 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
38872 rm -f conftest$ac_exeext
38873 if { (ac_try="$ac_link"
38874 case "(($ac_try" in
38875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38876 *) ac_try_echo=$ac_try;;
38878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38879 $as_echo "$ac_try_echo") >&5
38880 (eval "$ac_link") 2>&5
38882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38884 { (case "(($ac_try" in
38885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38886 *) ac_try_echo=$ac_try;;
38888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38889 $as_echo "$ac_try_echo") >&5
38890 (eval "$ac_try") 2>&5
38892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38893 (exit $ac_status); }; }; then
38894 gl_cv_func_readlink_works=yes
38896 $as_echo "$as_me: program exited with status $ac_status" >&5
38897 $as_echo "$as_me: failed program was:" >&5
38898 sed 's/^/| /' conftest.$ac_ext >&5
38900 ( exit $ac_status )
38901 gl_cv_func_readlink_works=no
38903 rm -rf conftest.dSYM
38904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38908 rm -f conftest.link conftest.lnk2
38910 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_readlink_works" >&5
38911 $as_echo "$gl_cv_func_readlink_works" >&6; }
38912 if test "$gl_cv_func_readlink_works" != yes; then
38914 cat >>confdefs.h <<\_ACEOF
38915 #define READLINK_TRAILING_SLASH_BUG 1
38927 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
38929 elif test "$gl_cv_decl_readlink_works" != yes; then
38939 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
38951 cat >>confdefs.h <<\_ACEOF
38952 #define GNULIB_TEST_READLINK 1
38957 # Code from module readlinkat:
38968 if test $ac_cv_func_readlinkat = no; then
38978 gl_LIBOBJS="$gl_LIBOBJS readlinkat.$ac_objext"
38985 GNULIB_READLINKAT=1
38989 cat >>confdefs.h <<\_ACEOF
38990 #define GNULIB_TEST_READLINKAT 1
38995 # Code from module realloc-posix:
38999 if test $gl_cv_func_malloc_posix = yes; then
39001 cat >>confdefs.h <<\_ACEOF
39002 #define HAVE_REALLOC_POSIX 1
39015 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
39024 GNULIB_REALLOC_POSIX=1
39028 cat >>confdefs.h <<\_ACEOF
39029 #define GNULIB_TEST_REALLOC_POSIX 1
39034 # Code from module regex:
39037 # Check whether --with-included-regex was given.
39038 if test "${with_included_regex+set}" = set; then
39039 withval=$with_included_regex;
39043 case $with_included_regex in #(
39044 yes|no) ac_use_included_regex=$with_included_regex
39047 # If the system regex support is good enough that it passes the
39048 # following run test, then default to *not* using the included regex.c.
39049 # If cross compiling, assume the test would fail and use the included
39051 { $as_echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
39052 $as_echo_n "checking for working re_compile_pattern... " >&6; }
39053 if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then
39054 $as_echo_n "(cached) " >&6
39056 if test "$cross_compiling" = yes; then
39057 gl_cv_func_re_compile_pattern_working=no
39059 cat >conftest.$ac_ext <<_ACEOF
39062 cat confdefs.h >>conftest.$ac_ext
39063 cat >>conftest.$ac_ext <<_ACEOF
39064 /* end confdefs.h. */
39065 $ac_includes_default
39066 #include <locale.h>
39067 #include <limits.h>
39074 static struct re_pattern_buffer regex;
39075 unsigned char folded_chars[UCHAR_MAX + 1];
39078 struct re_registers regs;
39080 /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
39081 This test needs valgrind to catch the bug on Debian
39082 GNU/Linux 3.1 x86, but it might catch the bug better
39083 on other platforms and it shouldn't hurt to try the
39085 if (setlocale (LC_ALL, "en_US.UTF-8"))
39087 static char const pat[] = "insert into";
39088 static char const data[] =
39089 "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
39090 re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
39092 memset (®ex, 0, sizeof regex);
39093 s = re_compile_pattern (pat, sizeof pat - 1, ®ex);
39096 else if (re_search (®ex, data, sizeof data - 1,
39097 0, sizeof data - 1, ®s)
39100 if (! setlocale (LC_ALL, "C"))
39104 /* This test is from glibc bug 3957, reported by Andrew Mackey. */
39105 re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
39106 memset (®ex, 0, sizeof regex);
39107 s = re_compile_pattern ("a[^x]b", 6, ®ex);
39110 /* This should fail, but succeeds for glibc-2.5. */
39111 else if (re_search (®ex, "a\nb", 3, 0, 3, ®s) != -1)
39114 /* This regular expression is from Spencer ere test number 75
39116 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
39117 memset (®ex, 0, sizeof regex);
39118 for (i = 0; i <= UCHAR_MAX; i++)
39119 folded_chars[i] = i;
39120 regex.translate = folded_chars;
39121 s = re_compile_pattern ("a[[:]:]]b\n", 11, ®ex);
39122 /* This should fail with _Invalid character class name_ error. */
39126 /* Ensure that [b-a] is diagnosed as invalid, when
39127 using RE_NO_EMPTY_RANGES. */
39128 re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
39129 memset (®ex, 0, sizeof regex);
39130 s = re_compile_pattern ("a[b-a]", 6, ®ex);
39134 /* This should succeed, but does not for glibc-2.1.3. */
39135 memset (®ex, 0, sizeof regex);
39136 s = re_compile_pattern ("{1", 2, ®ex);
39140 /* The following example is derived from a problem report
39141 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
39142 memset (®ex, 0, sizeof regex);
39143 s = re_compile_pattern ("[an\371]*n", 7, ®ex);
39146 /* This should match, but does not for glibc-2.2.1. */
39147 else if (re_match (®ex, "an", 2, 0, ®s) != 2)
39150 memset (®ex, 0, sizeof regex);
39151 s = re_compile_pattern ("x", 1, ®ex);
39154 /* glibc-2.2.93 does not work with a negative RANGE argument. */
39155 else if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
39158 /* The version of regex.c in older versions of gnulib
39159 ignored RE_ICASE. Detect that problem too. */
39160 re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
39161 memset (®ex, 0, sizeof regex);
39162 s = re_compile_pattern ("x", 1, ®ex);
39165 else if (re_search (®ex, "WXY", 3, 0, 3, ®s) < 0)
39168 /* Catch a bug reported by Vin Shelton in
39169 http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
39171 re_set_syntax (RE_SYNTAX_POSIX_BASIC
39172 & ~RE_CONTEXT_INVALID_DUP
39173 & ~RE_NO_EMPTY_RANGES);
39174 memset (®ex, 0, sizeof regex);
39175 s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, ®ex);
39179 /* REG_STARTEND was added to glibc on 2004-01-15.
39180 Reject older versions. */
39181 if (! REG_STARTEND)
39185 /* It would be nice to reject hosts whose regoff_t values are too
39186 narrow (including glibc on hosts with 64-bit ptrdiff_t and
39187 32-bit int), but we should wait until glibc implements this
39188 feature. Otherwise, support for equivalence classes and
39189 multibyte collation symbols would always be broken except
39190 when compiling --without-included-regex. */
39191 if (sizeof (regoff_t) < sizeof (ptrdiff_t)
39192 || sizeof (regoff_t) < sizeof (ssize_t))
39202 rm -f conftest$ac_exeext
39203 if { (ac_try="$ac_link"
39204 case "(($ac_try" in
39205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39206 *) ac_try_echo=$ac_try;;
39208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39209 $as_echo "$ac_try_echo") >&5
39210 (eval "$ac_link") 2>&5
39212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39214 { (case "(($ac_try" in
39215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39216 *) ac_try_echo=$ac_try;;
39218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39219 $as_echo "$ac_try_echo") >&5
39220 (eval "$ac_try") 2>&5
39222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39223 (exit $ac_status); }; }; then
39224 gl_cv_func_re_compile_pattern_working=yes
39226 $as_echo "$as_me: program exited with status $ac_status" >&5
39227 $as_echo "$as_me: failed program was:" >&5
39228 sed 's/^/| /' conftest.$ac_ext >&5
39230 ( exit $ac_status )
39231 gl_cv_func_re_compile_pattern_working=no
39233 rm -rf conftest.dSYM
39234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39239 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_re_compile_pattern_working" >&5
39240 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
39241 case $gl_cv_func_re_compile_pattern_working in #(
39242 yes) ac_use_included_regex=no;; #(
39243 no) ac_use_included_regex=yes;;
39246 *) { { $as_echo "$as_me:$LINENO: error: Invalid value for --with-included-regex: $with_included_regex" >&5
39247 $as_echo "$as_me: error: Invalid value for --with-included-regex: $with_included_regex" >&2;}
39248 { (exit 1); exit 1; }; }
39252 if test $ac_use_included_regex = yes; then
39254 cat >>confdefs.h <<\_ACEOF
39255 #define _REGEX_LARGE_OFFSETS 1
39259 cat >>confdefs.h <<\_ACEOF
39260 #define re_syntax_options rpl_re_syntax_options
39264 cat >>confdefs.h <<\_ACEOF
39265 #define re_set_syntax rpl_re_set_syntax
39269 cat >>confdefs.h <<\_ACEOF
39270 #define re_compile_pattern rpl_re_compile_pattern
39274 cat >>confdefs.h <<\_ACEOF
39275 #define re_compile_fastmap rpl_re_compile_fastmap
39279 cat >>confdefs.h <<\_ACEOF
39280 #define re_search rpl_re_search
39284 cat >>confdefs.h <<\_ACEOF
39285 #define re_search_2 rpl_re_search_2
39289 cat >>confdefs.h <<\_ACEOF
39290 #define re_match rpl_re_match
39294 cat >>confdefs.h <<\_ACEOF
39295 #define re_match_2 rpl_re_match_2
39299 cat >>confdefs.h <<\_ACEOF
39300 #define re_set_registers rpl_re_set_registers
39304 cat >>confdefs.h <<\_ACEOF
39305 #define re_comp rpl_re_comp
39309 cat >>confdefs.h <<\_ACEOF
39310 #define re_exec rpl_re_exec
39314 cat >>confdefs.h <<\_ACEOF
39315 #define regcomp rpl_regcomp
39319 cat >>confdefs.h <<\_ACEOF
39320 #define regexec rpl_regexec
39324 cat >>confdefs.h <<\_ACEOF
39325 #define regerror rpl_regerror
39329 cat >>confdefs.h <<\_ACEOF
39330 #define regfree rpl_regfree
39341 gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
39349 for ac_header in libintl.h
39351 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39353 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
39354 $as_echo_n "checking for $ac_header... " >&6; }
39355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39356 $as_echo_n "(cached) " >&6
39358 ac_res=`eval 'as_val=${'$as_ac_Header'}
39359 $as_echo "$as_val"'`
39360 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39361 $as_echo "$ac_res" >&6; }
39363 # Is the header compilable?
39364 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
39365 $as_echo_n "checking $ac_header usability... " >&6; }
39366 cat >conftest.$ac_ext <<_ACEOF
39369 cat confdefs.h >>conftest.$ac_ext
39370 cat >>conftest.$ac_ext <<_ACEOF
39371 /* end confdefs.h. */
39372 $ac_includes_default
39373 #include <$ac_header>
39375 rm -f conftest.$ac_objext
39376 if { (ac_try="$ac_compile"
39377 case "(($ac_try" in
39378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39379 *) ac_try_echo=$ac_try;;
39381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39382 $as_echo "$ac_try_echo") >&5
39383 (eval "$ac_compile") 2>conftest.er1
39385 grep -v '^ *+' conftest.er1 >conftest.err
39387 cat conftest.err >&5
39388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39389 (exit $ac_status); } && {
39390 test -z "$ac_c_werror_flag" ||
39391 test ! -s conftest.err
39392 } && test -s conftest.$ac_objext; then
39393 ac_header_compiler=yes
39395 $as_echo "$as_me: failed program was:" >&5
39396 sed 's/^/| /' conftest.$ac_ext >&5
39398 ac_header_compiler=no
39401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39402 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39403 $as_echo "$ac_header_compiler" >&6; }
39405 # Is the header present?
39406 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
39407 $as_echo_n "checking $ac_header presence... " >&6; }
39408 cat >conftest.$ac_ext <<_ACEOF
39411 cat confdefs.h >>conftest.$ac_ext
39412 cat >>conftest.$ac_ext <<_ACEOF
39413 /* end confdefs.h. */
39414 #include <$ac_header>
39416 if { (ac_try="$ac_cpp conftest.$ac_ext"
39417 case "(($ac_try" in
39418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39419 *) ac_try_echo=$ac_try;;
39421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39422 $as_echo "$ac_try_echo") >&5
39423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39425 grep -v '^ *+' conftest.er1 >conftest.err
39427 cat conftest.err >&5
39428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39429 (exit $ac_status); } >/dev/null && {
39430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39431 test ! -s conftest.err
39433 ac_header_preproc=yes
39435 $as_echo "$as_me: failed program was:" >&5
39436 sed 's/^/| /' conftest.$ac_ext >&5
39438 ac_header_preproc=no
39441 rm -f conftest.err conftest.$ac_ext
39442 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39443 $as_echo "$ac_header_preproc" >&6; }
39445 # So? What about this header?
39446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39448 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39449 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39450 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39451 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39452 ac_header_preproc=yes
39455 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39456 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39458 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39460 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39462 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
39463 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39464 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39465 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39466 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39468 ## ------------------------------ ##
39469 ## Report this to bug-tar@gnu.org ##
39470 ## ------------------------------ ##
39472 ) | sed "s/^/$as_me: WARNING: /" >&2
39475 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
39476 $as_echo_n "checking for $ac_header... " >&6; }
39477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39478 $as_echo_n "(cached) " >&6
39480 eval "$as_ac_Header=\$ac_header_preproc"
39482 ac_res=`eval 'as_val=${'$as_ac_Header'}
39483 $as_echo "$as_val"'`
39484 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39485 $as_echo "$ac_res" >&6; }
39488 as_val=`eval 'as_val=${'$as_ac_Header'}
39489 $as_echo "$as_val"'`
39490 if test "x$as_val" = x""yes; then
39491 cat >>confdefs.h <<_ACEOF
39492 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39509 { $as_echo "$as_me:$LINENO: checking whether isblank is declared" >&5
39510 $as_echo_n "checking whether isblank is declared... " >&6; }
39511 if test "${ac_cv_have_decl_isblank+set}" = set; then
39512 $as_echo_n "(cached) " >&6
39514 cat >conftest.$ac_ext <<_ACEOF
39517 cat confdefs.h >>conftest.$ac_ext
39518 cat >>conftest.$ac_ext <<_ACEOF
39519 /* end confdefs.h. */
39533 rm -f conftest.$ac_objext
39534 if { (ac_try="$ac_compile"
39535 case "(($ac_try" in
39536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39537 *) ac_try_echo=$ac_try;;
39539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39540 $as_echo "$ac_try_echo") >&5
39541 (eval "$ac_compile") 2>conftest.er1
39543 grep -v '^ *+' conftest.er1 >conftest.err
39545 cat conftest.err >&5
39546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39547 (exit $ac_status); } && {
39548 test -z "$ac_c_werror_flag" ||
39549 test ! -s conftest.err
39550 } && test -s conftest.$ac_objext; then
39551 ac_cv_have_decl_isblank=yes
39553 $as_echo "$as_me: failed program was:" >&5
39554 sed 's/^/| /' conftest.$ac_ext >&5
39556 ac_cv_have_decl_isblank=no
39559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39561 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
39562 $as_echo "$ac_cv_have_decl_isblank" >&6; }
39563 if test "x$ac_cv_have_decl_isblank" = x""yes; then
39565 cat >>confdefs.h <<_ACEOF
39566 #define HAVE_DECL_ISBLANK 1
39571 cat >>confdefs.h <<_ACEOF
39572 #define HAVE_DECL_ISBLANK 0
39582 # Code from module rename:
39593 { $as_echo "$as_me:$LINENO: checking whether rename honors trailing slash on destination" >&5
39594 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
39595 if test "${gl_cv_func_rename_slash_dst_works+set}" = set; then
39596 $as_echo_n "(cached) " >&6
39598 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
39599 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
39600 { { $as_echo "$as_me:$LINENO: error: cannot create temporary files" >&5
39601 $as_echo "$as_me: error: cannot create temporary files" >&2;}
39602 { (exit 1); exit 1; }; }
39603 # Assume that if we have lstat, we can also check symlinks.
39604 if test $ac_cv_func_lstat = yes; then
39605 ln -s conftest.f conftest.lnk
39607 if test "$cross_compiling" = yes; then
39608 gl_cv_func_rename_slash_dst_works="guessing no"
39610 cat >conftest.$ac_ext <<_ACEOF
39613 cat confdefs.h >>conftest.$ac_ext
39614 cat >>conftest.$ac_ext <<_ACEOF
39615 /* end confdefs.h. */
39617 # include <stdio.h>
39618 # include <stdlib.h>
39624 if (rename ("conftest.f1", "conftest.f2/") == 0)
39626 if (rename ("conftest.d1", "conftest.d2/") != 0)
39629 if (rename ("conftest.f", "conftest.lnk/") == 0)
39638 rm -f conftest$ac_exeext
39639 if { (ac_try="$ac_link"
39640 case "(($ac_try" in
39641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39642 *) ac_try_echo=$ac_try;;
39644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39645 $as_echo "$ac_try_echo") >&5
39646 (eval "$ac_link") 2>&5
39648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39650 { (case "(($ac_try" in
39651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39652 *) ac_try_echo=$ac_try;;
39654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39655 $as_echo "$ac_try_echo") >&5
39656 (eval "$ac_try") 2>&5
39658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39659 (exit $ac_status); }; }; then
39660 gl_cv_func_rename_slash_dst_works=yes
39662 $as_echo "$as_me: program exited with status $ac_status" >&5
39663 $as_echo "$as_me: failed program was:" >&5
39664 sed 's/^/| /' conftest.$ac_ext >&5
39666 ( exit $ac_status )
39667 gl_cv_func_rename_slash_dst_works=no
39669 rm -rf conftest.dSYM
39670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39674 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
39677 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_rename_slash_dst_works" >&5
39678 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
39679 if test "x$gl_cv_func_rename_slash_dst_works" != xyes; then
39688 gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
39692 cat >>confdefs.h <<\_ACEOF
39693 #define RENAME_TRAILING_SLASH_DEST_BUG 1
39698 { $as_echo "$as_me:$LINENO: checking whether rename honors trailing slash on source" >&5
39699 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
39700 if test "${gl_cv_func_rename_slash_src_works+set}" = set; then
39701 $as_echo_n "(cached) " >&6
39703 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
39704 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
39705 { { $as_echo "$as_me:$LINENO: error: cannot create temporary files" >&5
39706 $as_echo "$as_me: error: cannot create temporary files" >&2;}
39707 { (exit 1); exit 1; }; }
39708 # Assume that if we have lstat, we can also check symlinks.
39709 if test $ac_cv_func_lstat = yes; then
39710 ln -s conftest.f conftest.lnk
39712 if test "$cross_compiling" = yes; then
39713 gl_cv_func_rename_slash_src_works="guessing no"
39715 cat >conftest.$ac_ext <<_ACEOF
39718 cat confdefs.h >>conftest.$ac_ext
39719 cat >>conftest.$ac_ext <<_ACEOF
39720 /* end confdefs.h. */
39722 # include <stdio.h>
39723 # include <stdlib.h>
39729 if (rename ("conftest.f1/", "conftest.d3") == 0)
39731 if (rename ("conftest.d1/", "conftest.d2") != 0)
39734 if (rename ("conftest.lnk/", "conftest.f") == 0)
39743 rm -f conftest$ac_exeext
39744 if { (ac_try="$ac_link"
39745 case "(($ac_try" in
39746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39747 *) ac_try_echo=$ac_try;;
39749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39750 $as_echo "$ac_try_echo") >&5
39751 (eval "$ac_link") 2>&5
39753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39755 { (case "(($ac_try" in
39756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39757 *) ac_try_echo=$ac_try;;
39759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39760 $as_echo "$ac_try_echo") >&5
39761 (eval "$ac_try") 2>&5
39763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39764 (exit $ac_status); }; }; then
39765 gl_cv_func_rename_slash_src_works=yes
39767 $as_echo "$as_me: program exited with status $ac_status" >&5
39768 $as_echo "$as_me: failed program was:" >&5
39769 sed 's/^/| /' conftest.$ac_ext >&5
39771 ( exit $ac_status )
39772 gl_cv_func_rename_slash_src_works=no
39774 rm -rf conftest.dSYM
39775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39779 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
39782 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_rename_slash_src_works" >&5
39783 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
39784 if test "x$gl_cv_func_rename_slash_src_works" != xyes; then
39793 gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
39797 cat >>confdefs.h <<\_ACEOF
39798 #define RENAME_TRAILING_SLASH_SOURCE_BUG 1
39803 { $as_echo "$as_me:$LINENO: checking whether rename manages hard links correctly" >&5
39804 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
39805 if test "${gl_cv_func_rename_link_works+set}" = set; then
39806 $as_echo_n "(cached) " >&6
39808 rm -rf conftest.f conftest.f1
39809 if touch conftest.f && ln conftest.f conftest.f1 &&
39810 set x `ls -i conftest.f conftest.f1` && test "" = ""; then
39811 if test "$cross_compiling" = yes; then
39812 gl_cv_func_rename_link_works="guessing no"
39814 cat >conftest.$ac_ext <<_ACEOF
39817 cat confdefs.h >>conftest.$ac_ext
39818 cat >>conftest.$ac_ext <<_ACEOF
39819 /* end confdefs.h. */
39821 # include <stdio.h>
39822 # include <stdlib.h>
39823 # include <unistd.h>
39829 if (rename ("conftest.f", "conftest.f1"))
39831 if (unlink ("conftest.f1"))
39833 if (rename ("conftest.f", "conftest.f"))
39835 if (rename ("conftest.f1", "conftest.f1") == 0)
39843 rm -f conftest$ac_exeext
39844 if { (ac_try="$ac_link"
39845 case "(($ac_try" in
39846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39847 *) ac_try_echo=$ac_try;;
39849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39850 $as_echo "$ac_try_echo") >&5
39851 (eval "$ac_link") 2>&5
39853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39855 { (case "(($ac_try" in
39856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39857 *) ac_try_echo=$ac_try;;
39859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39860 $as_echo "$ac_try_echo") >&5
39861 (eval "$ac_try") 2>&5
39863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39864 (exit $ac_status); }; }; then
39865 gl_cv_func_rename_link_works=yes
39867 $as_echo "$as_me: program exited with status $ac_status" >&5
39868 $as_echo "$as_me: failed program was:" >&5
39869 sed 's/^/| /' conftest.$ac_ext >&5
39871 ( exit $ac_status )
39872 gl_cv_func_rename_link_works=no
39874 rm -rf conftest.dSYM
39875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39880 gl_cv_func_rename_link_works="guessing no"
39882 rm -rf conftest.f conftest.f1
39885 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_rename_link_works" >&5
39886 $as_echo "$gl_cv_func_rename_link_works" >&6; }
39887 if test "x$gl_cv_func_rename_link_works" != xyes; then
39896 gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
39900 cat >>confdefs.h <<\_ACEOF
39901 #define RENAME_HARD_LINK_BUG 1
39906 { $as_echo "$as_me:$LINENO: checking whether rename manages existing destinations correctly" >&5
39907 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
39908 if test "${gl_cv_func_rename_dest_works+set}" = set; then
39909 $as_echo_n "(cached) " >&6
39911 rm -rf conftest.f conftest.d1 conftest.d2
39912 touch conftest.f && mkdir conftest.d1 conftest.d2 ||
39913 { { $as_echo "$as_me:$LINENO: error: cannot create temporary files" >&5
39914 $as_echo "$as_me: error: cannot create temporary files" >&2;}
39915 { (exit 1); exit 1; }; }
39916 if test "$cross_compiling" = yes; then
39917 gl_cv_func_rename_dest_works="guessing no"
39919 cat >conftest.$ac_ext <<_ACEOF
39922 cat confdefs.h >>conftest.$ac_ext
39923 cat >>conftest.$ac_ext <<_ACEOF
39924 /* end confdefs.h. */
39926 # include <stdio.h>
39927 # include <stdlib.h>
39933 if (rename ("conftest.d1", "conftest.d2") != 0)
39935 if (rename ("conftest.d2", "conftest.f") == 0)
39943 rm -f conftest$ac_exeext
39944 if { (ac_try="$ac_link"
39945 case "(($ac_try" in
39946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39947 *) ac_try_echo=$ac_try;;
39949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39950 $as_echo "$ac_try_echo") >&5
39951 (eval "$ac_link") 2>&5
39953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39955 { (case "(($ac_try" in
39956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39957 *) ac_try_echo=$ac_try;;
39959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39960 $as_echo "$ac_try_echo") >&5
39961 (eval "$ac_try") 2>&5
39963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39964 (exit $ac_status); }; }; then
39965 gl_cv_func_rename_dest_works=yes
39967 $as_echo "$as_me: program exited with status $ac_status" >&5
39968 $as_echo "$as_me: failed program was:" >&5
39969 sed 's/^/| /' conftest.$ac_ext >&5
39971 ( exit $ac_status )
39972 gl_cv_func_rename_dest_works=no
39974 rm -rf conftest.dSYM
39975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39979 rm -rf conftest.f conftest.d1 conftest.d2
39982 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_rename_dest_works" >&5
39983 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
39984 if test "x$gl_cv_func_rename_dest_works" != xyes; then
39993 gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
39997 cat >>confdefs.h <<\_ACEOF
39998 #define RENAME_DEST_EXISTS_BUG 1
40010 cat >>confdefs.h <<\_ACEOF
40011 #define GNULIB_TEST_RENAME 1
40016 # Code from module renameat:
40028 if test $ac_cv_func_renameat = no; then
40038 gl_LIBOBJS="$gl_LIBOBJS renameat.$ac_objext"
40048 gl_LIBOBJS="$gl_LIBOBJS at-func2.$ac_objext"
40050 elif test $REPLACE_RENAME = 1; then
40060 gl_LIBOBJS="$gl_LIBOBJS renameat.$ac_objext"
40070 gl_LIBOBJS="$gl_LIBOBJS at-func2.$ac_objext"
40081 cat >>confdefs.h <<\_ACEOF
40082 #define GNULIB_TEST_RENAMEAT 1
40087 # Code from module rmdir:
40090 { $as_echo "$as_me:$LINENO: checking whether rmdir works" >&5
40091 $as_echo_n "checking whether rmdir works... " >&6; }
40092 if test "${gl_cv_func_rmdir_works+set}" = set; then
40093 $as_echo_n "(cached) " >&6
40096 touch conftest.file
40097 if test "$cross_compiling" = yes; then
40098 gl_cv_func_rmdir_works="guessing no"
40100 cat >conftest.$ac_ext <<_ACEOF
40103 cat confdefs.h >>conftest.$ac_ext
40104 cat >>conftest.$ac_ext <<_ACEOF
40105 /* end confdefs.h. */
40108 #include <unistd.h>
40114 if (!rmdir ("conftest.file/"))
40116 else if (errno != ENOTDIR)
40118 if (!rmdir ("conftest.dir/./"))
40126 rm -f conftest$ac_exeext
40127 if { (ac_try="$ac_link"
40128 case "(($ac_try" in
40129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40130 *) ac_try_echo=$ac_try;;
40132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40133 $as_echo "$ac_try_echo") >&5
40134 (eval "$ac_link") 2>&5
40136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40138 { (case "(($ac_try" in
40139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40140 *) ac_try_echo=$ac_try;;
40142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40143 $as_echo "$ac_try_echo") >&5
40144 (eval "$ac_try") 2>&5
40146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40147 (exit $ac_status); }; }; then
40148 gl_cv_func_rmdir_works=yes
40150 $as_echo "$as_me: program exited with status $ac_status" >&5
40151 $as_echo "$as_me: failed program was:" >&5
40152 sed 's/^/| /' conftest.$ac_ext >&5
40154 ( exit $ac_status )
40155 gl_cv_func_rmdir_works=no
40157 rm -rf conftest.dSYM
40158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40162 rm -rf conftest.dir conftest.file
40164 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_rmdir_works" >&5
40165 $as_echo "$gl_cv_func_rmdir_works" >&6; }
40166 if test x"$gl_cv_func_rmdir_works" != xyes; then
40176 gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
40187 cat >>confdefs.h <<\_ACEOF
40188 #define GNULIB_TEST_RMDIR 1
40193 # Code from module rpmatch:
40207 for ac_func in rpmatch
40209 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40210 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40211 $as_echo_n "checking for $ac_func... " >&6; }
40212 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40213 $as_echo_n "(cached) " >&6
40215 cat >conftest.$ac_ext <<_ACEOF
40218 cat confdefs.h >>conftest.$ac_ext
40219 cat >>conftest.$ac_ext <<_ACEOF
40220 /* end confdefs.h. */
40221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40223 #define $ac_func innocuous_$ac_func
40225 /* System header to define __stub macros and hopefully few prototypes,
40226 which can conflict with char $ac_func (); below.
40227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40228 <limits.h> exists even on freestanding compilers. */
40231 # include <limits.h>
40233 # include <assert.h>
40238 /* Override any GCC internal prototype to avoid an error.
40239 Use char because int might match the return type of a GCC
40240 builtin and then its argument prototype would still apply. */
40245 /* The GNU C library defines this for functions which it implements
40246 to always fail with ENOSYS. Some functions are actually named
40247 something starting with __ and the normal name is an alias. */
40248 #if defined __stub_$ac_func || defined __stub___$ac_func
40255 return $ac_func ();
40260 rm -f conftest.$ac_objext conftest$ac_exeext
40261 if { (ac_try="$ac_link"
40262 case "(($ac_try" in
40263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40264 *) ac_try_echo=$ac_try;;
40266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40267 $as_echo "$ac_try_echo") >&5
40268 (eval "$ac_link") 2>conftest.er1
40270 grep -v '^ *+' conftest.er1 >conftest.err
40272 cat conftest.err >&5
40273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40274 (exit $ac_status); } && {
40275 test -z "$ac_c_werror_flag" ||
40276 test ! -s conftest.err
40277 } && test -s conftest$ac_exeext && {
40278 test "$cross_compiling" = yes ||
40279 $as_test_x conftest$ac_exeext
40281 eval "$as_ac_var=yes"
40283 $as_echo "$as_me: failed program was:" >&5
40284 sed 's/^/| /' conftest.$ac_ext >&5
40286 eval "$as_ac_var=no"
40289 rm -rf conftest.dSYM
40290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40291 conftest$ac_exeext conftest.$ac_ext
40293 ac_res=`eval 'as_val=${'$as_ac_var'}
40294 $as_echo "$as_val"'`
40295 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40296 $as_echo "$ac_res" >&6; }
40297 as_val=`eval 'as_val=${'$as_ac_var'}
40298 $as_echo "$as_val"'`
40299 if test "x$as_val" = x""yes; then
40300 cat >>confdefs.h <<_ACEOF
40301 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40306 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
40312 if test $ac_cv_func_rpmatch = no; then
40315 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5
40316 $as_echo_n "checking for nl_langinfo and YESEXPR... " >&6; }
40317 if test "${gl_cv_langinfo_yesexpr+set}" = set; then
40318 $as_echo_n "(cached) " >&6
40320 cat >conftest.$ac_ext <<_ACEOF
40323 cat confdefs.h >>conftest.$ac_ext
40324 cat >>conftest.$ac_ext <<_ACEOF
40325 /* end confdefs.h. */
40326 #include <langinfo.h>
40330 char* cs = nl_langinfo(YESEXPR); return !cs;
40335 rm -f conftest.$ac_objext conftest$ac_exeext
40336 if { (ac_try="$ac_link"
40337 case "(($ac_try" in
40338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40339 *) ac_try_echo=$ac_try;;
40341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40342 $as_echo "$ac_try_echo") >&5
40343 (eval "$ac_link") 2>conftest.er1
40345 grep -v '^ *+' conftest.er1 >conftest.err
40347 cat conftest.err >&5
40348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40349 (exit $ac_status); } && {
40350 test -z "$ac_c_werror_flag" ||
40351 test ! -s conftest.err
40352 } && test -s conftest$ac_exeext && {
40353 test "$cross_compiling" = yes ||
40354 $as_test_x conftest$ac_exeext
40356 gl_cv_langinfo_yesexpr=yes
40358 $as_echo "$as_me: failed program was:" >&5
40359 sed 's/^/| /' conftest.$ac_ext >&5
40361 gl_cv_langinfo_yesexpr=no
40364 rm -rf conftest.dSYM
40365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40366 conftest$ac_exeext conftest.$ac_ext
40369 { $as_echo "$as_me:$LINENO: result: $gl_cv_langinfo_yesexpr" >&5
40370 $as_echo "$gl_cv_langinfo_yesexpr" >&6; }
40371 if test $gl_cv_langinfo_yesexpr = yes; then
40373 cat >>confdefs.h <<\_ACEOF
40374 #define HAVE_LANGINFO_YESEXPR 1
40388 cat >>confdefs.h <<\_ACEOF
40389 #define GNULIB_TEST_RPMATCH 1
40394 # Code from module safe-read:
40404 gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
40411 # Code from module safe-write:
40421 gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
40430 # Code from module same-inode:
40431 # Code from module save-cwd:
40441 gl_LIBOBJS="$gl_LIBOBJS save-cwd.$ac_objext"
40450 # Code from module savedir:
40460 gl_LIBOBJS="$gl_LIBOBJS savedir.$ac_objext"
40463 # Code from module setenv:
40466 if test $HAVE_SETENV$REPLACE_SETENV != 10; then
40475 gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
40486 cat >>confdefs.h <<\_ACEOF
40487 #define GNULIB_TEST_SETENV 1
40492 # Code from module size_max:
40495 for ac_header in stdint.h
40497 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
40498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40499 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
40500 $as_echo_n "checking for $ac_header... " >&6; }
40501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40502 $as_echo_n "(cached) " >&6
40504 ac_res=`eval 'as_val=${'$as_ac_Header'}
40505 $as_echo "$as_val"'`
40506 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40507 $as_echo "$ac_res" >&6; }
40509 # Is the header compilable?
40510 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
40511 $as_echo_n "checking $ac_header usability... " >&6; }
40512 cat >conftest.$ac_ext <<_ACEOF
40515 cat confdefs.h >>conftest.$ac_ext
40516 cat >>conftest.$ac_ext <<_ACEOF
40517 /* end confdefs.h. */
40518 $ac_includes_default
40519 #include <$ac_header>
40521 rm -f conftest.$ac_objext
40522 if { (ac_try="$ac_compile"
40523 case "(($ac_try" in
40524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40525 *) ac_try_echo=$ac_try;;
40527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40528 $as_echo "$ac_try_echo") >&5
40529 (eval "$ac_compile") 2>conftest.er1
40531 grep -v '^ *+' conftest.er1 >conftest.err
40533 cat conftest.err >&5
40534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40535 (exit $ac_status); } && {
40536 test -z "$ac_c_werror_flag" ||
40537 test ! -s conftest.err
40538 } && test -s conftest.$ac_objext; then
40539 ac_header_compiler=yes
40541 $as_echo "$as_me: failed program was:" >&5
40542 sed 's/^/| /' conftest.$ac_ext >&5
40544 ac_header_compiler=no
40547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40548 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40549 $as_echo "$ac_header_compiler" >&6; }
40551 # Is the header present?
40552 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
40553 $as_echo_n "checking $ac_header presence... " >&6; }
40554 cat >conftest.$ac_ext <<_ACEOF
40557 cat confdefs.h >>conftest.$ac_ext
40558 cat >>conftest.$ac_ext <<_ACEOF
40559 /* end confdefs.h. */
40560 #include <$ac_header>
40562 if { (ac_try="$ac_cpp conftest.$ac_ext"
40563 case "(($ac_try" in
40564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40565 *) ac_try_echo=$ac_try;;
40567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40568 $as_echo "$ac_try_echo") >&5
40569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40571 grep -v '^ *+' conftest.er1 >conftest.err
40573 cat conftest.err >&5
40574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40575 (exit $ac_status); } >/dev/null && {
40576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40577 test ! -s conftest.err
40579 ac_header_preproc=yes
40581 $as_echo "$as_me: failed program was:" >&5
40582 sed 's/^/| /' conftest.$ac_ext >&5
40584 ac_header_preproc=no
40587 rm -f conftest.err conftest.$ac_ext
40588 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40589 $as_echo "$ac_header_preproc" >&6; }
40591 # So? What about this header?
40592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40594 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40595 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40596 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40597 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40598 ac_header_preproc=yes
40601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40602 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40603 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40604 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40606 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40608 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40610 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40612 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40614 ## ------------------------------ ##
40615 ## Report this to bug-tar@gnu.org ##
40616 ## ------------------------------ ##
40618 ) | sed "s/^/$as_me: WARNING: /" >&2
40621 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
40622 $as_echo_n "checking for $ac_header... " >&6; }
40623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40624 $as_echo_n "(cached) " >&6
40626 eval "$as_ac_Header=\$ac_header_preproc"
40628 ac_res=`eval 'as_val=${'$as_ac_Header'}
40629 $as_echo "$as_val"'`
40630 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40631 $as_echo "$ac_res" >&6; }
40634 as_val=`eval 'as_val=${'$as_ac_Header'}
40635 $as_echo "$as_val"'`
40636 if test "x$as_val" = x""yes; then
40637 cat >>confdefs.h <<_ACEOF
40638 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
40645 { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
40646 $as_echo_n "checking for SIZE_MAX... " >&6; }
40647 if test "${gl_cv_size_max+set}" = set; then
40648 $as_echo_n "(cached) " >&6
40652 cat >conftest.$ac_ext <<_ACEOF
40655 cat confdefs.h >>conftest.$ac_ext
40656 cat >>conftest.$ac_ext <<_ACEOF
40657 /* end confdefs.h. */
40659 #include <limits.h>
40661 #include <stdint.h>
40668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40669 $EGREP "Found it" >/dev/null 2>&1; then
40674 if test -z "$gl_cv_size_max"; then
40675 if test "$cross_compiling" = yes; then
40676 # Depending upon the size, compute the lo and hi bounds.
40677 cat >conftest.$ac_ext <<_ACEOF
40680 cat confdefs.h >>conftest.$ac_ext
40681 cat >>conftest.$ac_ext <<_ACEOF
40682 /* end confdefs.h. */
40683 #include <stddef.h>
40684 #include <limits.h>
40688 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
40695 rm -f conftest.$ac_objext
40696 if { (ac_try="$ac_compile"
40697 case "(($ac_try" in
40698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40699 *) ac_try_echo=$ac_try;;
40701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40702 $as_echo "$ac_try_echo") >&5
40703 (eval "$ac_compile") 2>conftest.er1
40705 grep -v '^ *+' conftest.er1 >conftest.err
40707 cat conftest.err >&5
40708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40709 (exit $ac_status); } && {
40710 test -z "$ac_c_werror_flag" ||
40711 test ! -s conftest.err
40712 } && test -s conftest.$ac_objext; then
40715 cat >conftest.$ac_ext <<_ACEOF
40718 cat confdefs.h >>conftest.$ac_ext
40719 cat >>conftest.$ac_ext <<_ACEOF
40720 /* end confdefs.h. */
40721 #include <stddef.h>
40722 #include <limits.h>
40726 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
40733 rm -f conftest.$ac_objext
40734 if { (ac_try="$ac_compile"
40735 case "(($ac_try" in
40736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40737 *) ac_try_echo=$ac_try;;
40739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40740 $as_echo "$ac_try_echo") >&5
40741 (eval "$ac_compile") 2>conftest.er1
40743 grep -v '^ *+' conftest.er1 >conftest.err
40745 cat conftest.err >&5
40746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40747 (exit $ac_status); } && {
40748 test -z "$ac_c_werror_flag" ||
40749 test ! -s conftest.err
40750 } && test -s conftest.$ac_objext; then
40751 ac_hi=$ac_mid; break
40753 $as_echo "$as_me: failed program was:" >&5
40754 sed 's/^/| /' conftest.$ac_ext >&5
40756 ac_lo=`expr $ac_mid + 1`
40757 if test $ac_lo -le $ac_mid; then
40761 ac_mid=`expr 2 '*' $ac_mid + 1`
40764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40767 $as_echo "$as_me: failed program was:" >&5
40768 sed 's/^/| /' conftest.$ac_ext >&5
40770 cat >conftest.$ac_ext <<_ACEOF
40773 cat confdefs.h >>conftest.$ac_ext
40774 cat >>conftest.$ac_ext <<_ACEOF
40775 /* end confdefs.h. */
40776 #include <stddef.h>
40777 #include <limits.h>
40781 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
40788 rm -f conftest.$ac_objext
40789 if { (ac_try="$ac_compile"
40790 case "(($ac_try" in
40791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40792 *) ac_try_echo=$ac_try;;
40794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40795 $as_echo "$ac_try_echo") >&5
40796 (eval "$ac_compile") 2>conftest.er1
40798 grep -v '^ *+' conftest.er1 >conftest.err
40800 cat conftest.err >&5
40801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40802 (exit $ac_status); } && {
40803 test -z "$ac_c_werror_flag" ||
40804 test ! -s conftest.err
40805 } && test -s conftest.$ac_objext; then
40808 cat >conftest.$ac_ext <<_ACEOF
40811 cat confdefs.h >>conftest.$ac_ext
40812 cat >>conftest.$ac_ext <<_ACEOF
40813 /* end confdefs.h. */
40814 #include <stddef.h>
40815 #include <limits.h>
40819 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
40826 rm -f conftest.$ac_objext
40827 if { (ac_try="$ac_compile"
40828 case "(($ac_try" in
40829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40830 *) ac_try_echo=$ac_try;;
40832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40833 $as_echo "$ac_try_echo") >&5
40834 (eval "$ac_compile") 2>conftest.er1
40836 grep -v '^ *+' conftest.er1 >conftest.err
40838 cat conftest.err >&5
40839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40840 (exit $ac_status); } && {
40841 test -z "$ac_c_werror_flag" ||
40842 test ! -s conftest.err
40843 } && test -s conftest.$ac_objext; then
40844 ac_lo=$ac_mid; break
40846 $as_echo "$as_me: failed program was:" >&5
40847 sed 's/^/| /' conftest.$ac_ext >&5
40849 ac_hi=`expr '(' $ac_mid ')' - 1`
40850 if test $ac_mid -le $ac_hi; then
40854 ac_mid=`expr 2 '*' $ac_mid`
40857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40860 $as_echo "$as_me: failed program was:" >&5
40861 sed 's/^/| /' conftest.$ac_ext >&5
40866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40870 # Binary search between lo and hi bounds.
40871 while test "x$ac_lo" != "x$ac_hi"; do
40872 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40873 cat >conftest.$ac_ext <<_ACEOF
40876 cat confdefs.h >>conftest.$ac_ext
40877 cat >>conftest.$ac_ext <<_ACEOF
40878 /* end confdefs.h. */
40879 #include <stddef.h>
40880 #include <limits.h>
40884 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
40891 rm -f conftest.$ac_objext
40892 if { (ac_try="$ac_compile"
40893 case "(($ac_try" in
40894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40895 *) ac_try_echo=$ac_try;;
40897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40898 $as_echo "$ac_try_echo") >&5
40899 (eval "$ac_compile") 2>conftest.er1
40901 grep -v '^ *+' conftest.er1 >conftest.err
40903 cat conftest.err >&5
40904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40905 (exit $ac_status); } && {
40906 test -z "$ac_c_werror_flag" ||
40907 test ! -s conftest.err
40908 } && test -s conftest.$ac_objext; then
40911 $as_echo "$as_me: failed program was:" >&5
40912 sed 's/^/| /' conftest.$ac_ext >&5
40914 ac_lo=`expr '(' $ac_mid ')' + 1`
40917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40920 ?*) size_t_bits_minus_1=$ac_lo;;
40921 '') size_t_bits_minus_1= ;;
40924 cat >conftest.$ac_ext <<_ACEOF
40927 cat confdefs.h >>conftest.$ac_ext
40928 cat >>conftest.$ac_ext <<_ACEOF
40929 /* end confdefs.h. */
40930 #include <stddef.h>
40931 #include <limits.h>
40932 static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
40933 static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
40935 #include <stdlib.h>
40940 FILE *f = fopen ("conftest.val", "w");
40943 if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
40945 long int i = longval ();
40946 if (i != (sizeof (size_t) * CHAR_BIT - 1))
40948 fprintf (f, "%ld", i);
40952 unsigned long int i = ulongval ();
40953 if (i != (sizeof (size_t) * CHAR_BIT - 1))
40955 fprintf (f, "%lu", i);
40957 /* Do not output a trailing newline, as this causes \r\n confusion
40958 on some platforms. */
40959 return ferror (f) || fclose (f) != 0;
40965 rm -f conftest$ac_exeext
40966 if { (ac_try="$ac_link"
40967 case "(($ac_try" in
40968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40969 *) ac_try_echo=$ac_try;;
40971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40972 $as_echo "$ac_try_echo") >&5
40973 (eval "$ac_link") 2>&5
40975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40977 { (case "(($ac_try" in
40978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40979 *) ac_try_echo=$ac_try;;
40981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40982 $as_echo "$ac_try_echo") >&5
40983 (eval "$ac_try") 2>&5
40985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40986 (exit $ac_status); }; }; then
40987 size_t_bits_minus_1=`cat conftest.val`
40989 $as_echo "$as_me: program exited with status $ac_status" >&5
40990 $as_echo "$as_me: failed program was:" >&5
40991 sed 's/^/| /' conftest.$ac_ext >&5
40993 ( exit $ac_status )
40994 size_t_bits_minus_1=
40996 rm -rf conftest.dSYM
40997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41000 if test "$cross_compiling" = yes; then
41001 # Depending upon the size, compute the lo and hi bounds.
41002 cat >conftest.$ac_ext <<_ACEOF
41005 cat confdefs.h >>conftest.$ac_ext
41006 cat >>conftest.$ac_ext <<_ACEOF
41007 /* end confdefs.h. */
41008 #include <stddef.h>
41012 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
41019 rm -f conftest.$ac_objext
41020 if { (ac_try="$ac_compile"
41021 case "(($ac_try" in
41022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41023 *) ac_try_echo=$ac_try;;
41025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41026 $as_echo "$ac_try_echo") >&5
41027 (eval "$ac_compile") 2>conftest.er1
41029 grep -v '^ *+' conftest.er1 >conftest.err
41031 cat conftest.err >&5
41032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41033 (exit $ac_status); } && {
41034 test -z "$ac_c_werror_flag" ||
41035 test ! -s conftest.err
41036 } && test -s conftest.$ac_objext; then
41039 cat >conftest.$ac_ext <<_ACEOF
41042 cat confdefs.h >>conftest.$ac_ext
41043 cat >>conftest.$ac_ext <<_ACEOF
41044 /* end confdefs.h. */
41045 #include <stddef.h>
41049 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
41056 rm -f conftest.$ac_objext
41057 if { (ac_try="$ac_compile"
41058 case "(($ac_try" in
41059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41060 *) ac_try_echo=$ac_try;;
41062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41063 $as_echo "$ac_try_echo") >&5
41064 (eval "$ac_compile") 2>conftest.er1
41066 grep -v '^ *+' conftest.er1 >conftest.err
41068 cat conftest.err >&5
41069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41070 (exit $ac_status); } && {
41071 test -z "$ac_c_werror_flag" ||
41072 test ! -s conftest.err
41073 } && test -s conftest.$ac_objext; then
41074 ac_hi=$ac_mid; break
41076 $as_echo "$as_me: failed program was:" >&5
41077 sed 's/^/| /' conftest.$ac_ext >&5
41079 ac_lo=`expr $ac_mid + 1`
41080 if test $ac_lo -le $ac_mid; then
41084 ac_mid=`expr 2 '*' $ac_mid + 1`
41087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41090 $as_echo "$as_me: failed program was:" >&5
41091 sed 's/^/| /' conftest.$ac_ext >&5
41093 cat >conftest.$ac_ext <<_ACEOF
41096 cat confdefs.h >>conftest.$ac_ext
41097 cat >>conftest.$ac_ext <<_ACEOF
41098 /* end confdefs.h. */
41099 #include <stddef.h>
41103 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
41110 rm -f conftest.$ac_objext
41111 if { (ac_try="$ac_compile"
41112 case "(($ac_try" in
41113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41114 *) ac_try_echo=$ac_try;;
41116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41117 $as_echo "$ac_try_echo") >&5
41118 (eval "$ac_compile") 2>conftest.er1
41120 grep -v '^ *+' conftest.er1 >conftest.err
41122 cat conftest.err >&5
41123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41124 (exit $ac_status); } && {
41125 test -z "$ac_c_werror_flag" ||
41126 test ! -s conftest.err
41127 } && test -s conftest.$ac_objext; then
41130 cat >conftest.$ac_ext <<_ACEOF
41133 cat confdefs.h >>conftest.$ac_ext
41134 cat >>conftest.$ac_ext <<_ACEOF
41135 /* end confdefs.h. */
41136 #include <stddef.h>
41140 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
41147 rm -f conftest.$ac_objext
41148 if { (ac_try="$ac_compile"
41149 case "(($ac_try" in
41150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41151 *) ac_try_echo=$ac_try;;
41153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41154 $as_echo "$ac_try_echo") >&5
41155 (eval "$ac_compile") 2>conftest.er1
41157 grep -v '^ *+' conftest.er1 >conftest.err
41159 cat conftest.err >&5
41160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41161 (exit $ac_status); } && {
41162 test -z "$ac_c_werror_flag" ||
41163 test ! -s conftest.err
41164 } && test -s conftest.$ac_objext; then
41165 ac_lo=$ac_mid; break
41167 $as_echo "$as_me: failed program was:" >&5
41168 sed 's/^/| /' conftest.$ac_ext >&5
41170 ac_hi=`expr '(' $ac_mid ')' - 1`
41171 if test $ac_mid -le $ac_hi; then
41175 ac_mid=`expr 2 '*' $ac_mid`
41178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41181 $as_echo "$as_me: failed program was:" >&5
41182 sed 's/^/| /' conftest.$ac_ext >&5
41187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41191 # Binary search between lo and hi bounds.
41192 while test "x$ac_lo" != "x$ac_hi"; do
41193 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41194 cat >conftest.$ac_ext <<_ACEOF
41197 cat confdefs.h >>conftest.$ac_ext
41198 cat >>conftest.$ac_ext <<_ACEOF
41199 /* end confdefs.h. */
41200 #include <stddef.h>
41204 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
41211 rm -f conftest.$ac_objext
41212 if { (ac_try="$ac_compile"
41213 case "(($ac_try" in
41214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41215 *) ac_try_echo=$ac_try;;
41217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41218 $as_echo "$ac_try_echo") >&5
41219 (eval "$ac_compile") 2>conftest.er1
41221 grep -v '^ *+' conftest.er1 >conftest.err
41223 cat conftest.err >&5
41224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41225 (exit $ac_status); } && {
41226 test -z "$ac_c_werror_flag" ||
41227 test ! -s conftest.err
41228 } && test -s conftest.$ac_objext; then
41231 $as_echo "$as_me: failed program was:" >&5
41232 sed 's/^/| /' conftest.$ac_ext >&5
41234 ac_lo=`expr '(' $ac_mid ')' + 1`
41237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41240 ?*) fits_in_uint=$ac_lo;;
41241 '') fits_in_uint= ;;
41244 cat >conftest.$ac_ext <<_ACEOF
41247 cat confdefs.h >>conftest.$ac_ext
41248 cat >>conftest.$ac_ext <<_ACEOF
41249 /* end confdefs.h. */
41250 #include <stddef.h>
41251 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
41252 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
41254 #include <stdlib.h>
41259 FILE *f = fopen ("conftest.val", "w");
41262 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
41264 long int i = longval ();
41265 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
41267 fprintf (f, "%ld", i);
41271 unsigned long int i = ulongval ();
41272 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
41274 fprintf (f, "%lu", i);
41276 /* Do not output a trailing newline, as this causes \r\n confusion
41277 on some platforms. */
41278 return ferror (f) || fclose (f) != 0;
41284 rm -f conftest$ac_exeext
41285 if { (ac_try="$ac_link"
41286 case "(($ac_try" in
41287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41288 *) ac_try_echo=$ac_try;;
41290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41291 $as_echo "$ac_try_echo") >&5
41292 (eval "$ac_link") 2>&5
41294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41296 { (case "(($ac_try" in
41297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41298 *) ac_try_echo=$ac_try;;
41300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41301 $as_echo "$ac_try_echo") >&5
41302 (eval "$ac_try") 2>&5
41304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41305 (exit $ac_status); }; }; then
41306 fits_in_uint=`cat conftest.val`
41308 $as_echo "$as_me: program exited with status $ac_status" >&5
41309 $as_echo "$as_me: failed program was:" >&5
41310 sed 's/^/| /' conftest.$ac_ext >&5
41312 ( exit $ac_status )
41315 rm -rf conftest.dSYM
41316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41319 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
41320 if test $fits_in_uint = 1; then
41321 cat >conftest.$ac_ext <<_ACEOF
41324 cat confdefs.h >>conftest.$ac_ext
41325 cat >>conftest.$ac_ext <<_ACEOF
41326 /* end confdefs.h. */
41327 #include <stddef.h>
41329 extern unsigned long foo;
41339 rm -f conftest.$ac_objext
41340 if { (ac_try="$ac_compile"
41341 case "(($ac_try" in
41342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41343 *) ac_try_echo=$ac_try;;
41345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41346 $as_echo "$ac_try_echo") >&5
41347 (eval "$ac_compile") 2>conftest.er1
41349 grep -v '^ *+' conftest.er1 >conftest.err
41351 cat conftest.err >&5
41352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41353 (exit $ac_status); } && {
41354 test -z "$ac_c_werror_flag" ||
41355 test ! -s conftest.err
41356 } && test -s conftest.$ac_objext; then
41359 $as_echo "$as_me: failed program was:" >&5
41360 sed 's/^/| /' conftest.$ac_ext >&5
41365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41367 if test $fits_in_uint = 1; then
41368 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
41370 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
41373 gl_cv_size_max='((size_t)~(size_t)0)'
41378 { $as_echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
41379 $as_echo "$gl_cv_size_max" >&6; }
41380 if test "$gl_cv_size_max" != yes; then
41382 cat >>confdefs.h <<_ACEOF
41383 #define SIZE_MAX $gl_cv_size_max
41390 # Code from module sleep:
41393 { $as_echo "$as_me:$LINENO: checking whether sleep is declared" >&5
41394 $as_echo_n "checking whether sleep is declared... " >&6; }
41395 if test "${ac_cv_have_decl_sleep+set}" = set; then
41396 $as_echo_n "(cached) " >&6
41398 cat >conftest.$ac_ext <<_ACEOF
41401 cat confdefs.h >>conftest.$ac_ext
41402 cat >>conftest.$ac_ext <<_ACEOF
41403 /* end confdefs.h. */
41404 #include <unistd.h>
41417 rm -f conftest.$ac_objext
41418 if { (ac_try="$ac_compile"
41419 case "(($ac_try" in
41420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41421 *) ac_try_echo=$ac_try;;
41423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41424 $as_echo "$ac_try_echo") >&5
41425 (eval "$ac_compile") 2>conftest.er1
41427 grep -v '^ *+' conftest.er1 >conftest.err
41429 cat conftest.err >&5
41430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41431 (exit $ac_status); } && {
41432 test -z "$ac_c_werror_flag" ||
41433 test ! -s conftest.err
41434 } && test -s conftest.$ac_objext; then
41435 ac_cv_have_decl_sleep=yes
41437 $as_echo "$as_me: failed program was:" >&5
41438 sed 's/^/| /' conftest.$ac_ext >&5
41440 ac_cv_have_decl_sleep=no
41443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41445 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sleep" >&5
41446 $as_echo "$ac_cv_have_decl_sleep" >&6; }
41447 if test "x$ac_cv_have_decl_sleep" = x""yes; then
41449 cat >>confdefs.h <<_ACEOF
41450 #define HAVE_DECL_SLEEP 1
41455 cat >>confdefs.h <<_ACEOF
41456 #define HAVE_DECL_SLEEP 0
41469 if test $ac_cv_have_decl_sleep != yes; then
41479 gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
41482 { $as_echo "$as_me:$LINENO: checking for working sleep" >&5
41483 $as_echo_n "checking for working sleep... " >&6; }
41484 if test "${gl_cv_func_sleep_works+set}" = set; then
41485 $as_echo_n "(cached) " >&6
41487 if test "$cross_compiling" = yes; then
41488 gl_cv_func_sleep_works="guessing no"
41490 cat >conftest.$ac_ext <<_ACEOF
41493 cat confdefs.h >>conftest.$ac_ext
41494 cat >>conftest.$ac_ext <<_ACEOF
41495 /* end confdefs.h. */
41498 #include <unistd.h>
41499 #include <signal.h>
41501 handle_alarm (int sig)
41503 if (sig != SIGALRM)
41511 /* Failure to compile this test due to missing alarm is okay,
41512 since all such platforms (mingw) also lack sleep. */
41513 unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days. */
41514 unsigned int remaining;
41515 signal (SIGALRM, handle_alarm);
41517 remaining = sleep (pentecost);
41518 if (remaining > pentecost)
41520 if (remaining <= pentecost - 10)
41528 rm -f conftest$ac_exeext
41529 if { (ac_try="$ac_link"
41530 case "(($ac_try" in
41531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41532 *) ac_try_echo=$ac_try;;
41534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41535 $as_echo "$ac_try_echo") >&5
41536 (eval "$ac_link") 2>&5
41538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41540 { (case "(($ac_try" in
41541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41542 *) ac_try_echo=$ac_try;;
41544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41545 $as_echo "$ac_try_echo") >&5
41546 (eval "$ac_try") 2>&5
41548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41549 (exit $ac_status); }; }; then
41550 gl_cv_func_sleep_works=yes
41552 $as_echo "$as_me: program exited with status $ac_status" >&5
41553 $as_echo "$as_me: failed program was:" >&5
41554 sed 's/^/| /' conftest.$ac_ext >&5
41556 ( exit $ac_status )
41557 gl_cv_func_sleep_works=no
41559 rm -rf conftest.dSYM
41560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41565 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_sleep_works" >&5
41566 $as_echo "$gl_cv_func_sleep_works" >&6; }
41567 if test "$gl_cv_func_sleep_works" != yes; then
41577 gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
41589 cat >>confdefs.h <<\_ACEOF
41590 #define GNULIB_TEST_SLEEP 1
41595 # Code from module snprintf:
41598 gl_cv_func_snprintf_usable=no
41600 for ac_func in snprintf
41602 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41603 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41604 $as_echo_n "checking for $ac_func... " >&6; }
41605 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41606 $as_echo_n "(cached) " >&6
41608 cat >conftest.$ac_ext <<_ACEOF
41611 cat confdefs.h >>conftest.$ac_ext
41612 cat >>conftest.$ac_ext <<_ACEOF
41613 /* end confdefs.h. */
41614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41616 #define $ac_func innocuous_$ac_func
41618 /* System header to define __stub macros and hopefully few prototypes,
41619 which can conflict with char $ac_func (); below.
41620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41621 <limits.h> exists even on freestanding compilers. */
41624 # include <limits.h>
41626 # include <assert.h>
41631 /* Override any GCC internal prototype to avoid an error.
41632 Use char because int might match the return type of a GCC
41633 builtin and then its argument prototype would still apply. */
41638 /* The GNU C library defines this for functions which it implements
41639 to always fail with ENOSYS. Some functions are actually named
41640 something starting with __ and the normal name is an alias. */
41641 #if defined __stub_$ac_func || defined __stub___$ac_func
41648 return $ac_func ();
41653 rm -f conftest.$ac_objext conftest$ac_exeext
41654 if { (ac_try="$ac_link"
41655 case "(($ac_try" in
41656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41657 *) ac_try_echo=$ac_try;;
41659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41660 $as_echo "$ac_try_echo") >&5
41661 (eval "$ac_link") 2>conftest.er1
41663 grep -v '^ *+' conftest.er1 >conftest.err
41665 cat conftest.err >&5
41666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41667 (exit $ac_status); } && {
41668 test -z "$ac_c_werror_flag" ||
41669 test ! -s conftest.err
41670 } && test -s conftest$ac_exeext && {
41671 test "$cross_compiling" = yes ||
41672 $as_test_x conftest$ac_exeext
41674 eval "$as_ac_var=yes"
41676 $as_echo "$as_me: failed program was:" >&5
41677 sed 's/^/| /' conftest.$ac_ext >&5
41679 eval "$as_ac_var=no"
41682 rm -rf conftest.dSYM
41683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41684 conftest$ac_exeext conftest.$ac_ext
41686 ac_res=`eval 'as_val=${'$as_ac_var'}
41687 $as_echo "$as_val"'`
41688 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41689 $as_echo "$ac_res" >&6; }
41690 as_val=`eval 'as_val=${'$as_ac_var'}
41691 $as_echo "$as_val"'`
41692 if test "x$as_val" = x""yes; then
41693 cat >>confdefs.h <<_ACEOF
41694 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41700 if test $ac_cv_func_snprintf = yes; then
41703 { $as_echo "$as_me:$LINENO: checking whether snprintf respects a size of 1" >&5
41704 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
41705 if test "${gl_cv_func_snprintf_size1+set}" = set; then
41706 $as_echo_n "(cached) " >&6
41709 if test "$cross_compiling" = yes; then
41710 gl_cv_func_snprintf_size1="guessing yes"
41712 cat >conftest.$ac_ext <<_ACEOF
41715 cat confdefs.h >>conftest.$ac_ext
41716 cat >>conftest.$ac_ext <<_ACEOF
41717 /* end confdefs.h. */
41722 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
41723 snprintf (buf, 1, "%d", 12345);
41724 return buf[1] != 'E';
41727 rm -f conftest$ac_exeext
41728 if { (ac_try="$ac_link"
41729 case "(($ac_try" in
41730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41731 *) ac_try_echo=$ac_try;;
41733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41734 $as_echo "$ac_try_echo") >&5
41735 (eval "$ac_link") 2>&5
41737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41739 { (case "(($ac_try" in
41740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41741 *) ac_try_echo=$ac_try;;
41743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41744 $as_echo "$ac_try_echo") >&5
41745 (eval "$ac_try") 2>&5
41747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41748 (exit $ac_status); }; }; then
41749 gl_cv_func_snprintf_size1=yes
41751 $as_echo "$as_me: program exited with status $ac_status" >&5
41752 $as_echo "$as_me: failed program was:" >&5
41753 sed 's/^/| /' conftest.$ac_ext >&5
41755 ( exit $ac_status )
41756 gl_cv_func_snprintf_size1=no
41758 rm -rf conftest.dSYM
41759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41765 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_size1" >&5
41766 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
41768 case "$gl_cv_func_snprintf_size1" in
41771 case "$gl_cv_func_snprintf_retval_c99" in
41773 gl_cv_func_snprintf_usable=yes
41779 if test $gl_cv_func_snprintf_usable = no; then
41790 gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
41792 if test $ac_cv_func_snprintf = yes; then
41802 if test $ac_cv_have_decl_snprintf = no; then
41803 HAVE_DECL_SNPRINTF=0
41813 cat >>confdefs.h <<\_ACEOF
41814 #define GNULIB_TEST_SNPRINTF 1
41821 cat >>confdefs.h <<_ACEOF
41822 #define GNULIB_SNPRINTF 1
41826 # Code from module ssize_t:
41828 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
41829 $as_echo_n "checking for ssize_t... " >&6; }
41830 if test "${gt_cv_ssize_t+set}" = set; then
41831 $as_echo_n "(cached) " >&6
41833 cat >conftest.$ac_ext <<_ACEOF
41836 cat confdefs.h >>conftest.$ac_ext
41837 cat >>conftest.$ac_ext <<_ACEOF
41838 /* end confdefs.h. */
41839 #include <sys/types.h>
41843 int x = sizeof (ssize_t *) + sizeof (ssize_t);
41849 rm -f conftest.$ac_objext
41850 if { (ac_try="$ac_compile"
41851 case "(($ac_try" in
41852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41853 *) ac_try_echo=$ac_try;;
41855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41856 $as_echo "$ac_try_echo") >&5
41857 (eval "$ac_compile") 2>conftest.er1
41859 grep -v '^ *+' conftest.er1 >conftest.err
41861 cat conftest.err >&5
41862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41863 (exit $ac_status); } && {
41864 test -z "$ac_c_werror_flag" ||
41865 test ! -s conftest.err
41866 } && test -s conftest.$ac_objext; then
41869 $as_echo "$as_me: failed program was:" >&5
41870 sed 's/^/| /' conftest.$ac_ext >&5
41875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41877 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
41878 $as_echo "$gt_cv_ssize_t" >&6; }
41879 if test $gt_cv_ssize_t = no; then
41881 cat >>confdefs.h <<\_ACEOF
41882 #define ssize_t int
41887 # Code from module stat:
41896 { $as_echo "$as_me:$LINENO: checking whether stat handles trailing slashes on directories" >&5
41897 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
41898 if test "${gl_cv_func_stat_dir_slash+set}" = set; then
41899 $as_echo_n "(cached) " >&6
41901 if test "$cross_compiling" = yes; then
41903 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
41904 *) gl_cv_func_stat_dir_slash="guessing yes";;
41907 cat >conftest.$ac_ext <<_ACEOF
41910 cat confdefs.h >>conftest.$ac_ext
41911 cat >>conftest.$ac_ext <<_ACEOF
41912 /* end confdefs.h. */
41913 #include <sys/stat.h>
41918 struct stat st; return stat (".", &st) != stat ("./", &st);
41923 rm -f conftest$ac_exeext
41924 if { (ac_try="$ac_link"
41925 case "(($ac_try" in
41926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41927 *) ac_try_echo=$ac_try;;
41929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41930 $as_echo "$ac_try_echo") >&5
41931 (eval "$ac_link") 2>&5
41933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41935 { (case "(($ac_try" in
41936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41937 *) ac_try_echo=$ac_try;;
41939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41940 $as_echo "$ac_try_echo") >&5
41941 (eval "$ac_try") 2>&5
41943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41944 (exit $ac_status); }; }; then
41945 gl_cv_func_stat_dir_slash=yes
41947 $as_echo "$as_me: program exited with status $ac_status" >&5
41948 $as_echo "$as_me: failed program was:" >&5
41949 sed 's/^/| /' conftest.$ac_ext >&5
41951 ( exit $ac_status )
41952 gl_cv_func_stat_dir_slash=no
41954 rm -rf conftest.dSYM
41955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41960 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_stat_dir_slash" >&5
41961 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
41962 { $as_echo "$as_me:$LINENO: checking whether stat handles trailing slashes on files" >&5
41963 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
41964 if test "${gl_cv_func_stat_file_slash+set}" = set; then
41965 $as_echo_n "(cached) " >&6
41968 # Assume that if we have lstat, we can also check symlinks.
41969 if test $ac_cv_func_lstat = yes; then
41970 ln -s conftest.tmp conftest.lnk
41972 if test "$cross_compiling" = yes; then
41973 gl_cv_func_stat_file_slash="guessing no"
41975 cat >conftest.$ac_ext <<_ACEOF
41978 cat confdefs.h >>conftest.$ac_ext
41979 cat >>conftest.$ac_ext <<_ACEOF
41980 /* end confdefs.h. */
41981 #include <sys/stat.h>
41988 if (!stat ("conftest.tmp/", &st))
41991 if (!stat ("conftest.lnk/", &st))
42000 rm -f conftest$ac_exeext
42001 if { (ac_try="$ac_link"
42002 case "(($ac_try" in
42003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42004 *) ac_try_echo=$ac_try;;
42006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42007 $as_echo "$ac_try_echo") >&5
42008 (eval "$ac_link") 2>&5
42010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42012 { (case "(($ac_try" in
42013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42014 *) ac_try_echo=$ac_try;;
42016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42017 $as_echo "$ac_try_echo") >&5
42018 (eval "$ac_try") 2>&5
42020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42021 (exit $ac_status); }; }; then
42022 gl_cv_func_stat_file_slash=yes
42024 $as_echo "$as_me: program exited with status $ac_status" >&5
42025 $as_echo "$as_me: failed program was:" >&5
42026 sed 's/^/| /' conftest.$ac_ext >&5
42028 ( exit $ac_status )
42029 gl_cv_func_stat_file_slash=no
42031 rm -rf conftest.dSYM
42032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42036 rm -f conftest.tmp conftest.lnk
42038 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_stat_file_slash" >&5
42039 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
42040 case $gl_cv_func_stat_dir_slash in
42041 *no) REPLACE_STAT=1
42043 cat >>confdefs.h <<\_ACEOF
42044 #define REPLACE_FUNC_STAT_DIR 1
42048 case $gl_cv_func_stat_file_slash in
42049 *no) REPLACE_STAT=1
42051 cat >>confdefs.h <<\_ACEOF
42052 #define REPLACE_FUNC_STAT_FILE 1
42056 if test $REPLACE_STAT = 1; then
42065 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
42077 cat >>confdefs.h <<\_ACEOF
42078 #define GNULIB_TEST_STAT 1
42083 # Code from module stat-macros:
42084 # Code from module stat-time:
42095 { $as_echo "$as_me:$LINENO: checking for struct stat.st_atim.tv_nsec" >&5
42096 $as_echo_n "checking for struct stat.st_atim.tv_nsec... " >&6; }
42097 if test "${ac_cv_member_struct_stat_st_atim_tv_nsec+set}" = set; then
42098 $as_echo_n "(cached) " >&6
42100 cat >conftest.$ac_ext <<_ACEOF
42103 cat confdefs.h >>conftest.$ac_ext
42104 cat >>conftest.$ac_ext <<_ACEOF
42105 /* end confdefs.h. */
42106 #include <sys/types.h>
42107 #include <sys/stat.h>
42112 static struct stat ac_aggr;
42113 if (ac_aggr.st_atim.tv_nsec)
42119 rm -f conftest.$ac_objext
42120 if { (ac_try="$ac_compile"
42121 case "(($ac_try" in
42122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42123 *) ac_try_echo=$ac_try;;
42125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42126 $as_echo "$ac_try_echo") >&5
42127 (eval "$ac_compile") 2>conftest.er1
42129 grep -v '^ *+' conftest.er1 >conftest.err
42131 cat conftest.err >&5
42132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42133 (exit $ac_status); } && {
42134 test -z "$ac_c_werror_flag" ||
42135 test ! -s conftest.err
42136 } && test -s conftest.$ac_objext; then
42137 ac_cv_member_struct_stat_st_atim_tv_nsec=yes
42139 $as_echo "$as_me: failed program was:" >&5
42140 sed 's/^/| /' conftest.$ac_ext >&5
42142 cat >conftest.$ac_ext <<_ACEOF
42145 cat confdefs.h >>conftest.$ac_ext
42146 cat >>conftest.$ac_ext <<_ACEOF
42147 /* end confdefs.h. */
42148 #include <sys/types.h>
42149 #include <sys/stat.h>
42154 static struct stat ac_aggr;
42155 if (sizeof ac_aggr.st_atim.tv_nsec)
42161 rm -f conftest.$ac_objext
42162 if { (ac_try="$ac_compile"
42163 case "(($ac_try" in
42164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42165 *) ac_try_echo=$ac_try;;
42167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42168 $as_echo "$ac_try_echo") >&5
42169 (eval "$ac_compile") 2>conftest.er1
42171 grep -v '^ *+' conftest.er1 >conftest.err
42173 cat conftest.err >&5
42174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42175 (exit $ac_status); } && {
42176 test -z "$ac_c_werror_flag" ||
42177 test ! -s conftest.err
42178 } && test -s conftest.$ac_objext; then
42179 ac_cv_member_struct_stat_st_atim_tv_nsec=yes
42181 $as_echo "$as_me: failed program was:" >&5
42182 sed 's/^/| /' conftest.$ac_ext >&5
42184 ac_cv_member_struct_stat_st_atim_tv_nsec=no
42187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42192 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_tv_nsec" >&5
42193 $as_echo "$ac_cv_member_struct_stat_st_atim_tv_nsec" >&6; }
42194 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then
42196 cat >>confdefs.h <<_ACEOF
42197 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
42200 { $as_echo "$as_me:$LINENO: checking whether struct stat.st_atim is of type struct timespec" >&5
42201 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
42202 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then
42203 $as_echo_n "(cached) " >&6
42205 cat >conftest.$ac_ext <<_ACEOF
42208 cat confdefs.h >>conftest.$ac_ext
42209 cat >>conftest.$ac_ext <<_ACEOF
42210 /* end confdefs.h. */
42212 #include <sys/types.h>
42213 #include <sys/stat.h>
42214 #if HAVE_SYS_TIME_H
42215 # include <sys/time.h>
42218 struct timespec ts;
42231 rm -f conftest.$ac_objext
42232 if { (ac_try="$ac_compile"
42233 case "(($ac_try" in
42234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42235 *) ac_try_echo=$ac_try;;
42237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42238 $as_echo "$ac_try_echo") >&5
42239 (eval "$ac_compile") 2>conftest.er1
42241 grep -v '^ *+' conftest.er1 >conftest.err
42243 cat conftest.err >&5
42244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42245 (exit $ac_status); } && {
42246 test -z "$ac_c_werror_flag" ||
42247 test ! -s conftest.err
42248 } && test -s conftest.$ac_objext; then
42249 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
42251 $as_echo "$as_me: failed program was:" >&5
42252 sed 's/^/| /' conftest.$ac_ext >&5
42254 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
42257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42259 { $as_echo "$as_me:$LINENO: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
42260 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
42261 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
42263 cat >>confdefs.h <<\_ACEOF
42264 #define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1
42269 { $as_echo "$as_me:$LINENO: checking for struct stat.st_atimespec.tv_nsec" >&5
42270 $as_echo_n "checking for struct stat.st_atimespec.tv_nsec... " >&6; }
42271 if test "${ac_cv_member_struct_stat_st_atimespec_tv_nsec+set}" = set; then
42272 $as_echo_n "(cached) " >&6
42274 cat >conftest.$ac_ext <<_ACEOF
42277 cat confdefs.h >>conftest.$ac_ext
42278 cat >>conftest.$ac_ext <<_ACEOF
42279 /* end confdefs.h. */
42280 #include <sys/types.h>
42281 #include <sys/stat.h>
42286 static struct stat ac_aggr;
42287 if (ac_aggr.st_atimespec.tv_nsec)
42293 rm -f conftest.$ac_objext
42294 if { (ac_try="$ac_compile"
42295 case "(($ac_try" in
42296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42297 *) ac_try_echo=$ac_try;;
42299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42300 $as_echo "$ac_try_echo") >&5
42301 (eval "$ac_compile") 2>conftest.er1
42303 grep -v '^ *+' conftest.er1 >conftest.err
42305 cat conftest.err >&5
42306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42307 (exit $ac_status); } && {
42308 test -z "$ac_c_werror_flag" ||
42309 test ! -s conftest.err
42310 } && test -s conftest.$ac_objext; then
42311 ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
42313 $as_echo "$as_me: failed program was:" >&5
42314 sed 's/^/| /' conftest.$ac_ext >&5
42316 cat >conftest.$ac_ext <<_ACEOF
42319 cat confdefs.h >>conftest.$ac_ext
42320 cat >>conftest.$ac_ext <<_ACEOF
42321 /* end confdefs.h. */
42322 #include <sys/types.h>
42323 #include <sys/stat.h>
42328 static struct stat ac_aggr;
42329 if (sizeof ac_aggr.st_atimespec.tv_nsec)
42335 rm -f conftest.$ac_objext
42336 if { (ac_try="$ac_compile"
42337 case "(($ac_try" in
42338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42339 *) ac_try_echo=$ac_try;;
42341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42342 $as_echo "$ac_try_echo") >&5
42343 (eval "$ac_compile") 2>conftest.er1
42345 grep -v '^ *+' conftest.er1 >conftest.err
42347 cat conftest.err >&5
42348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42349 (exit $ac_status); } && {
42350 test -z "$ac_c_werror_flag" ||
42351 test ! -s conftest.err
42352 } && test -s conftest.$ac_objext; then
42353 ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
42355 $as_echo "$as_me: failed program was:" >&5
42356 sed 's/^/| /' conftest.$ac_ext >&5
42358 ac_cv_member_struct_stat_st_atimespec_tv_nsec=no
42361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42366 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&5
42367 $as_echo "$ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&6; }
42368 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then
42370 cat >>confdefs.h <<_ACEOF
42371 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
42376 { $as_echo "$as_me:$LINENO: checking for struct stat.st_atimensec" >&5
42377 $as_echo_n "checking for struct stat.st_atimensec... " >&6; }
42378 if test "${ac_cv_member_struct_stat_st_atimensec+set}" = set; then
42379 $as_echo_n "(cached) " >&6
42381 cat >conftest.$ac_ext <<_ACEOF
42384 cat confdefs.h >>conftest.$ac_ext
42385 cat >>conftest.$ac_ext <<_ACEOF
42386 /* end confdefs.h. */
42387 #include <sys/types.h>
42388 #include <sys/stat.h>
42393 static struct stat ac_aggr;
42394 if (ac_aggr.st_atimensec)
42400 rm -f conftest.$ac_objext
42401 if { (ac_try="$ac_compile"
42402 case "(($ac_try" in
42403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42404 *) ac_try_echo=$ac_try;;
42406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42407 $as_echo "$ac_try_echo") >&5
42408 (eval "$ac_compile") 2>conftest.er1
42410 grep -v '^ *+' conftest.er1 >conftest.err
42412 cat conftest.err >&5
42413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42414 (exit $ac_status); } && {
42415 test -z "$ac_c_werror_flag" ||
42416 test ! -s conftest.err
42417 } && test -s conftest.$ac_objext; then
42418 ac_cv_member_struct_stat_st_atimensec=yes
42420 $as_echo "$as_me: failed program was:" >&5
42421 sed 's/^/| /' conftest.$ac_ext >&5
42423 cat >conftest.$ac_ext <<_ACEOF
42426 cat confdefs.h >>conftest.$ac_ext
42427 cat >>conftest.$ac_ext <<_ACEOF
42428 /* end confdefs.h. */
42429 #include <sys/types.h>
42430 #include <sys/stat.h>
42435 static struct stat ac_aggr;
42436 if (sizeof ac_aggr.st_atimensec)
42442 rm -f conftest.$ac_objext
42443 if { (ac_try="$ac_compile"
42444 case "(($ac_try" in
42445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42446 *) ac_try_echo=$ac_try;;
42448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42449 $as_echo "$ac_try_echo") >&5
42450 (eval "$ac_compile") 2>conftest.er1
42452 grep -v '^ *+' conftest.er1 >conftest.err
42454 cat conftest.err >&5
42455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42456 (exit $ac_status); } && {
42457 test -z "$ac_c_werror_flag" ||
42458 test ! -s conftest.err
42459 } && test -s conftest.$ac_objext; then
42460 ac_cv_member_struct_stat_st_atimensec=yes
42462 $as_echo "$as_me: failed program was:" >&5
42463 sed 's/^/| /' conftest.$ac_ext >&5
42465 ac_cv_member_struct_stat_st_atimensec=no
42468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42473 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimensec" >&5
42474 $as_echo "$ac_cv_member_struct_stat_st_atimensec" >&6; }
42475 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then
42477 cat >>confdefs.h <<_ACEOF
42478 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
42483 { $as_echo "$as_me:$LINENO: checking for struct stat.st_atim.st__tim.tv_nsec" >&5
42484 $as_echo_n "checking for struct stat.st_atim.st__tim.tv_nsec... " >&6; }
42485 if test "${ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec+set}" = set; then
42486 $as_echo_n "(cached) " >&6
42488 cat >conftest.$ac_ext <<_ACEOF
42491 cat confdefs.h >>conftest.$ac_ext
42492 cat >>conftest.$ac_ext <<_ACEOF
42493 /* end confdefs.h. */
42494 #include <sys/types.h>
42495 #include <sys/stat.h>
42500 static struct stat ac_aggr;
42501 if (ac_aggr.st_atim.st__tim.tv_nsec)
42507 rm -f conftest.$ac_objext
42508 if { (ac_try="$ac_compile"
42509 case "(($ac_try" in
42510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42511 *) ac_try_echo=$ac_try;;
42513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42514 $as_echo "$ac_try_echo") >&5
42515 (eval "$ac_compile") 2>conftest.er1
42517 grep -v '^ *+' conftest.er1 >conftest.err
42519 cat conftest.err >&5
42520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42521 (exit $ac_status); } && {
42522 test -z "$ac_c_werror_flag" ||
42523 test ! -s conftest.err
42524 } && test -s conftest.$ac_objext; then
42525 ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
42527 $as_echo "$as_me: failed program was:" >&5
42528 sed 's/^/| /' conftest.$ac_ext >&5
42530 cat >conftest.$ac_ext <<_ACEOF
42533 cat confdefs.h >>conftest.$ac_ext
42534 cat >>conftest.$ac_ext <<_ACEOF
42535 /* end confdefs.h. */
42536 #include <sys/types.h>
42537 #include <sys/stat.h>
42542 static struct stat ac_aggr;
42543 if (sizeof ac_aggr.st_atim.st__tim.tv_nsec)
42549 rm -f conftest.$ac_objext
42550 if { (ac_try="$ac_compile"
42551 case "(($ac_try" in
42552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42553 *) ac_try_echo=$ac_try;;
42555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42556 $as_echo "$ac_try_echo") >&5
42557 (eval "$ac_compile") 2>conftest.er1
42559 grep -v '^ *+' conftest.er1 >conftest.err
42561 cat conftest.err >&5
42562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42563 (exit $ac_status); } && {
42564 test -z "$ac_c_werror_flag" ||
42565 test ! -s conftest.err
42566 } && test -s conftest.$ac_objext; then
42567 ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
42569 $as_echo "$as_me: failed program was:" >&5
42570 sed 's/^/| /' conftest.$ac_ext >&5
42572 ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=no
42575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42580 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&5
42581 $as_echo "$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&6; }
42582 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then
42584 cat >>confdefs.h <<_ACEOF
42585 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
42607 { $as_echo "$as_me:$LINENO: checking for struct stat.st_birthtimespec.tv_nsec" >&5
42608 $as_echo_n "checking for struct stat.st_birthtimespec.tv_nsec... " >&6; }
42609 if test "${ac_cv_member_struct_stat_st_birthtimespec_tv_nsec+set}" = set; then
42610 $as_echo_n "(cached) " >&6
42612 cat >conftest.$ac_ext <<_ACEOF
42615 cat confdefs.h >>conftest.$ac_ext
42616 cat >>conftest.$ac_ext <<_ACEOF
42617 /* end confdefs.h. */
42618 #include <sys/types.h>
42619 #include <sys/stat.h>
42624 static struct stat ac_aggr;
42625 if (ac_aggr.st_birthtimespec.tv_nsec)
42631 rm -f conftest.$ac_objext
42632 if { (ac_try="$ac_compile"
42633 case "(($ac_try" in
42634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42635 *) ac_try_echo=$ac_try;;
42637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42638 $as_echo "$ac_try_echo") >&5
42639 (eval "$ac_compile") 2>conftest.er1
42641 grep -v '^ *+' conftest.er1 >conftest.err
42643 cat conftest.err >&5
42644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42645 (exit $ac_status); } && {
42646 test -z "$ac_c_werror_flag" ||
42647 test ! -s conftest.err
42648 } && test -s conftest.$ac_objext; then
42649 ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=yes
42651 $as_echo "$as_me: failed program was:" >&5
42652 sed 's/^/| /' conftest.$ac_ext >&5
42654 cat >conftest.$ac_ext <<_ACEOF
42657 cat confdefs.h >>conftest.$ac_ext
42658 cat >>conftest.$ac_ext <<_ACEOF
42659 /* end confdefs.h. */
42660 #include <sys/types.h>
42661 #include <sys/stat.h>
42666 static struct stat ac_aggr;
42667 if (sizeof ac_aggr.st_birthtimespec.tv_nsec)
42673 rm -f conftest.$ac_objext
42674 if { (ac_try="$ac_compile"
42675 case "(($ac_try" in
42676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42677 *) ac_try_echo=$ac_try;;
42679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42680 $as_echo "$ac_try_echo") >&5
42681 (eval "$ac_compile") 2>conftest.er1
42683 grep -v '^ *+' conftest.er1 >conftest.err
42685 cat conftest.err >&5
42686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42687 (exit $ac_status); } && {
42688 test -z "$ac_c_werror_flag" ||
42689 test ! -s conftest.err
42690 } && test -s conftest.$ac_objext; then
42691 ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=yes
42693 $as_echo "$as_me: failed program was:" >&5
42694 sed 's/^/| /' conftest.$ac_ext >&5
42696 ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=no
42699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42704 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" >&5
42705 $as_echo "$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" >&6; }
42706 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then
42708 cat >>confdefs.h <<_ACEOF
42709 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
42714 { $as_echo "$as_me:$LINENO: checking for struct stat.st_birthtimensec" >&5
42715 $as_echo_n "checking for struct stat.st_birthtimensec... " >&6; }
42716 if test "${ac_cv_member_struct_stat_st_birthtimensec+set}" = set; then
42717 $as_echo_n "(cached) " >&6
42719 cat >conftest.$ac_ext <<_ACEOF
42722 cat confdefs.h >>conftest.$ac_ext
42723 cat >>conftest.$ac_ext <<_ACEOF
42724 /* end confdefs.h. */
42725 #include <sys/types.h>
42726 #include <sys/stat.h>
42731 static struct stat ac_aggr;
42732 if (ac_aggr.st_birthtimensec)
42738 rm -f conftest.$ac_objext
42739 if { (ac_try="$ac_compile"
42740 case "(($ac_try" in
42741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42742 *) ac_try_echo=$ac_try;;
42744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42745 $as_echo "$ac_try_echo") >&5
42746 (eval "$ac_compile") 2>conftest.er1
42748 grep -v '^ *+' conftest.er1 >conftest.err
42750 cat conftest.err >&5
42751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42752 (exit $ac_status); } && {
42753 test -z "$ac_c_werror_flag" ||
42754 test ! -s conftest.err
42755 } && test -s conftest.$ac_objext; then
42756 ac_cv_member_struct_stat_st_birthtimensec=yes
42758 $as_echo "$as_me: failed program was:" >&5
42759 sed 's/^/| /' conftest.$ac_ext >&5
42761 cat >conftest.$ac_ext <<_ACEOF
42764 cat confdefs.h >>conftest.$ac_ext
42765 cat >>conftest.$ac_ext <<_ACEOF
42766 /* end confdefs.h. */
42767 #include <sys/types.h>
42768 #include <sys/stat.h>
42773 static struct stat ac_aggr;
42774 if (sizeof ac_aggr.st_birthtimensec)
42780 rm -f conftest.$ac_objext
42781 if { (ac_try="$ac_compile"
42782 case "(($ac_try" in
42783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42784 *) ac_try_echo=$ac_try;;
42786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42787 $as_echo "$ac_try_echo") >&5
42788 (eval "$ac_compile") 2>conftest.er1
42790 grep -v '^ *+' conftest.er1 >conftest.err
42792 cat conftest.err >&5
42793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42794 (exit $ac_status); } && {
42795 test -z "$ac_c_werror_flag" ||
42796 test ! -s conftest.err
42797 } && test -s conftest.$ac_objext; then
42798 ac_cv_member_struct_stat_st_birthtimensec=yes
42800 $as_echo "$as_me: failed program was:" >&5
42801 sed 's/^/| /' conftest.$ac_ext >&5
42803 ac_cv_member_struct_stat_st_birthtimensec=no
42806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42811 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimensec" >&5
42812 $as_echo "$ac_cv_member_struct_stat_st_birthtimensec" >&6; }
42813 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then
42815 cat >>confdefs.h <<_ACEOF
42816 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
42821 { $as_echo "$as_me:$LINENO: checking for struct stat.st_birthtim.tv_nsec" >&5
42822 $as_echo_n "checking for struct stat.st_birthtim.tv_nsec... " >&6; }
42823 if test "${ac_cv_member_struct_stat_st_birthtim_tv_nsec+set}" = set; then
42824 $as_echo_n "(cached) " >&6
42826 cat >conftest.$ac_ext <<_ACEOF
42829 cat confdefs.h >>conftest.$ac_ext
42830 cat >>conftest.$ac_ext <<_ACEOF
42831 /* end confdefs.h. */
42832 #include <sys/types.h>
42833 #include <sys/stat.h>
42838 static struct stat ac_aggr;
42839 if (ac_aggr.st_birthtim.tv_nsec)
42845 rm -f conftest.$ac_objext
42846 if { (ac_try="$ac_compile"
42847 case "(($ac_try" in
42848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42849 *) ac_try_echo=$ac_try;;
42851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42852 $as_echo "$ac_try_echo") >&5
42853 (eval "$ac_compile") 2>conftest.er1
42855 grep -v '^ *+' conftest.er1 >conftest.err
42857 cat conftest.err >&5
42858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42859 (exit $ac_status); } && {
42860 test -z "$ac_c_werror_flag" ||
42861 test ! -s conftest.err
42862 } && test -s conftest.$ac_objext; then
42863 ac_cv_member_struct_stat_st_birthtim_tv_nsec=yes
42865 $as_echo "$as_me: failed program was:" >&5
42866 sed 's/^/| /' conftest.$ac_ext >&5
42868 cat >conftest.$ac_ext <<_ACEOF
42871 cat confdefs.h >>conftest.$ac_ext
42872 cat >>conftest.$ac_ext <<_ACEOF
42873 /* end confdefs.h. */
42874 #include <sys/types.h>
42875 #include <sys/stat.h>
42880 static struct stat ac_aggr;
42881 if (sizeof ac_aggr.st_birthtim.tv_nsec)
42887 rm -f conftest.$ac_objext
42888 if { (ac_try="$ac_compile"
42889 case "(($ac_try" in
42890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42891 *) ac_try_echo=$ac_try;;
42893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42894 $as_echo "$ac_try_echo") >&5
42895 (eval "$ac_compile") 2>conftest.er1
42897 grep -v '^ *+' conftest.er1 >conftest.err
42899 cat conftest.err >&5
42900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42901 (exit $ac_status); } && {
42902 test -z "$ac_c_werror_flag" ||
42903 test ! -s conftest.err
42904 } && test -s conftest.$ac_objext; then
42905 ac_cv_member_struct_stat_st_birthtim_tv_nsec=yes
42907 $as_echo "$as_me: failed program was:" >&5
42908 sed 's/^/| /' conftest.$ac_ext >&5
42910 ac_cv_member_struct_stat_st_birthtim_tv_nsec=no
42913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42918 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtim_tv_nsec" >&5
42919 $as_echo "$ac_cv_member_struct_stat_st_birthtim_tv_nsec" >&6; }
42920 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then
42922 cat >>confdefs.h <<_ACEOF
42923 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
42934 # Code from module stdarg:
42937 NEXT_STDARG_H='<stdarg.h>';
42938 { $as_echo "$as_me:$LINENO: checking for va_copy" >&5
42939 $as_echo_n "checking for va_copy... " >&6; }
42940 if test "${gl_cv_func_va_copy+set}" = set; then
42941 $as_echo_n "(cached) " >&6
42944 cat >conftest.$ac_ext <<_ACEOF
42947 cat confdefs.h >>conftest.$ac_ext
42948 cat >>conftest.$ac_ext <<_ACEOF
42949 /* end confdefs.h. */
42950 #include <stdarg.h>
42956 void (*func) (va_list, va_list) = va_copy;
42963 rm -f conftest.$ac_objext
42964 if { (ac_try="$ac_compile"
42965 case "(($ac_try" in
42966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42967 *) ac_try_echo=$ac_try;;
42969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42970 $as_echo "$ac_try_echo") >&5
42971 (eval "$ac_compile") 2>conftest.er1
42973 grep -v '^ *+' conftest.er1 >conftest.err
42975 cat conftest.err >&5
42976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42977 (exit $ac_status); } && {
42978 test -z "$ac_c_werror_flag" ||
42979 test ! -s conftest.err
42980 } && test -s conftest.$ac_objext; then
42981 gl_cv_func_va_copy=yes
42983 $as_echo "$as_me: failed program was:" >&5
42984 sed 's/^/| /' conftest.$ac_ext >&5
42986 gl_cv_func_va_copy=no
42989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42992 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_va_copy" >&5
42993 $as_echo "$gl_cv_func_va_copy" >&6; }
42994 if test $gl_cv_func_va_copy = no; then
42995 cat >conftest.$ac_ext <<_ACEOF
42998 cat confdefs.h >>conftest.$ac_ext
42999 cat >>conftest.$ac_ext <<_ACEOF
43000 /* end confdefs.h. */
43001 #if defined _AIX && !defined __GNUC__
43006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43007 $EGREP "vaccine" >/dev/null 2>&1; then
43014 if test $gl_aixcc = yes; then
43024 if test $gl_cv_have_include_next = yes; then
43025 gl_cv_next_stdarg_h='<'stdarg.h'>'
43027 { $as_echo "$as_me:$LINENO: checking absolute name of <stdarg.h>" >&5
43028 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
43029 if test "${gl_cv_next_stdarg_h+set}" = set; then
43030 $as_echo_n "(cached) " >&6
43033 cat >conftest.$ac_ext <<_ACEOF
43036 cat confdefs.h >>conftest.$ac_ext
43037 cat >>conftest.$ac_ext <<_ACEOF
43038 /* end confdefs.h. */
43039 #include <stdarg.h>
43043 aix*) gl_absname_cpp="$ac_cpp -C" ;;
43044 *) gl_absname_cpp="$ac_cpp" ;;
43046 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
43047 sed -n '\#/stdarg.h#{
43048 s#.*"\(.*/stdarg.h\)".*#\1#
43056 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdarg_h" >&5
43057 $as_echo "$gl_cv_next_stdarg_h" >&6; }
43059 NEXT_STDARG_H=$gl_cv_next_stdarg_h
43061 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
43062 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
43063 gl_next_as_first_directive='<'stdarg.h'>'
43065 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
43066 gl_next_as_first_directive=$gl_cv_next_stdarg_h
43068 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
43073 if test "$gl_cv_next_stdarg_h" = '""'; then
43074 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
43075 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
43079 saved_as_echo_n="$as_echo_n"
43081 if test "${gl_cv_func___va_copy+set}" = set; then
43082 $as_echo_n "(cached) " >&6
43085 cat >conftest.$ac_ext <<_ACEOF
43088 cat confdefs.h >>conftest.$ac_ext
43089 cat >>conftest.$ac_ext <<_ACEOF
43090 /* end confdefs.h. */
43091 #include <stdarg.h>
43104 rm -f conftest.$ac_objext
43105 if { (ac_try="$ac_compile"
43106 case "(($ac_try" in
43107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43108 *) ac_try_echo=$ac_try;;
43110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43111 $as_echo "$ac_try_echo") >&5
43112 (eval "$ac_compile") 2>conftest.er1
43114 grep -v '^ *+' conftest.er1 >conftest.err
43116 cat conftest.err >&5
43117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43118 (exit $ac_status); } && {
43119 test -z "$ac_c_werror_flag" ||
43120 test ! -s conftest.err
43121 } && test -s conftest.$ac_objext; then
43122 gl_cv_func___va_copy=yes
43124 $as_echo "$as_me: failed program was:" >&5
43125 sed 's/^/| /' conftest.$ac_ext >&5
43127 gl_cv_func___va_copy=no
43130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43133 as_echo_n="$saved_as_echo_n"
43135 if test $gl_cv_func___va_copy = yes; then
43137 cat >>confdefs.h <<\_ACEOF
43138 #define va_copy __va_copy
43145 cat >>confdefs.h <<\_ACEOF
43146 #define va_copy gl_va_copy
43153 # Code from module stdbool:
43157 # Define two additional variables used in the Makefile substitution.
43159 if test "$ac_cv_header_stdbool_h" = yes; then
43162 STDBOOL_H='stdbool.h'
43166 if test "$ac_cv_type__Bool" = yes; then
43173 # Code from module stddef:
43177 if test $gt_cv_c_wchar_t = no; then
43181 { $as_echo "$as_me:$LINENO: checking whether NULL can be used in arbitrary expressions" >&5
43182 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
43183 if test "${gl_cv_decl_null_works+set}" = set; then
43184 $as_echo_n "(cached) " >&6
43186 cat >conftest.$ac_ext <<_ACEOF
43189 cat confdefs.h >>conftest.$ac_ext
43190 cat >>conftest.$ac_ext <<_ACEOF
43191 /* end confdefs.h. */
43192 #include <stddef.h>
43193 int test[2 * (sizeof NULL == sizeof (void *)) -1];
43203 rm -f conftest.$ac_objext
43204 if { (ac_try="$ac_compile"
43205 case "(($ac_try" in
43206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43207 *) ac_try_echo=$ac_try;;
43209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43210 $as_echo "$ac_try_echo") >&5
43211 (eval "$ac_compile") 2>conftest.er1
43213 grep -v '^ *+' conftest.er1 >conftest.err
43215 cat conftest.err >&5
43216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43217 (exit $ac_status); } && {
43218 test -z "$ac_c_werror_flag" ||
43219 test ! -s conftest.err
43220 } && test -s conftest.$ac_objext; then
43221 gl_cv_decl_null_works=yes
43223 $as_echo "$as_me: failed program was:" >&5
43224 sed 's/^/| /' conftest.$ac_ext >&5
43226 gl_cv_decl_null_works=no
43229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43231 { $as_echo "$as_me:$LINENO: result: $gl_cv_decl_null_works" >&5
43232 $as_echo "$gl_cv_decl_null_works" >&6; }
43233 if test $gl_cv_decl_null_works = no; then
43237 if test -n "$STDDEF_H"; then
43246 if test $gl_cv_have_include_next = yes; then
43247 gl_cv_next_stddef_h='<'stddef.h'>'
43249 { $as_echo "$as_me:$LINENO: checking absolute name of <stddef.h>" >&5
43250 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
43251 if test "${gl_cv_next_stddef_h+set}" = set; then
43252 $as_echo_n "(cached) " >&6
43255 cat >conftest.$ac_ext <<_ACEOF
43258 cat confdefs.h >>conftest.$ac_ext
43259 cat >>conftest.$ac_ext <<_ACEOF
43260 /* end confdefs.h. */
43261 #include <stddef.h>
43265 aix*) gl_absname_cpp="$ac_cpp -C" ;;
43266 *) gl_absname_cpp="$ac_cpp" ;;
43268 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
43269 sed -n '\#/stddef.h#{
43270 s#.*"\(.*/stddef.h\)".*#\1#
43278 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stddef_h" >&5
43279 $as_echo "$gl_cv_next_stddef_h" >&6; }
43281 NEXT_STDDEF_H=$gl_cv_next_stddef_h
43283 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
43284 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
43285 gl_next_as_first_directive='<'stddef.h'>'
43287 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
43288 gl_next_as_first_directive=$gl_cv_next_stddef_h
43290 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
43297 # Code from module stdint:
43301 if test $ac_cv_type_long_long_int = yes; then
43302 HAVE_LONG_LONG_INT=1
43304 HAVE_LONG_LONG_INT=0
43308 if test $ac_cv_type_unsigned_long_long_int = yes; then
43309 HAVE_UNSIGNED_LONG_LONG_INT=1
43311 HAVE_UNSIGNED_LONG_LONG_INT=0
43321 if test $ac_cv_header_wchar_h = yes; then
43328 if test $ac_cv_header_inttypes_h = yes; then
43335 if test $ac_cv_header_sys_types_h = yes; then
43356 if test $gl_cv_have_include_next = yes; then
43357 gl_cv_next_stdint_h='<'stdint.h'>'
43359 { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
43360 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
43361 if test "${gl_cv_next_stdint_h+set}" = set; then
43362 $as_echo_n "(cached) " >&6
43365 if test $ac_cv_header_stdint_h = yes; then
43368 cat >conftest.$ac_ext <<_ACEOF
43371 cat confdefs.h >>conftest.$ac_ext
43372 cat >>conftest.$ac_ext <<_ACEOF
43373 /* end confdefs.h. */
43374 #include <stdint.h>
43378 aix*) gl_absname_cpp="$ac_cpp -C" ;;
43379 *) gl_absname_cpp="$ac_cpp" ;;
43381 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
43382 sed -n '\#/stdint.h#{
43383 s#.*"\(.*/stdint.h\)".*#\1#
43389 gl_cv_next_stdint_h='<'stdint.h'>'
43394 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
43395 $as_echo "$gl_cv_next_stdint_h" >&6; }
43397 NEXT_STDINT_H=$gl_cv_next_stdint_h
43399 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
43400 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
43401 gl_next_as_first_directive='<'stdint.h'>'
43403 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
43404 gl_next_as_first_directive=$gl_cv_next_stdint_h
43406 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
43411 if test $ac_cv_header_stdint_h = yes; then
43418 if test $ac_cv_header_stdint_h = yes; then
43419 { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
43420 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
43421 if test "${gl_cv_header_working_stdint_h+set}" = set; then
43422 $as_echo_n "(cached) " >&6
43424 gl_cv_header_working_stdint_h=no
43425 cat >conftest.$ac_ext <<_ACEOF
43429 cat confdefs.h >>conftest.$ac_ext
43430 cat >>conftest.$ac_ext <<_ACEOF
43431 /* end confdefs.h. */
43433 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
43434 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
43435 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
43436 #include <stdint.h>
43437 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
43438 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
43439 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
43443 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
43444 included before <wchar.h>. */
43445 #include <stddef.h>
43446 #include <signal.h>
43448 # include <stdio.h>
43450 # include <wchar.h>
43455 int8_t a1 = INT8_MAX;
43456 int8_t a1min = INT8_MIN;
43459 int16_t a2 = INT16_MAX;
43460 int16_t a2min = INT16_MIN;
43463 int32_t a3 = INT32_MAX;
43464 int32_t a3min = INT32_MIN;
43467 int64_t a4 = INT64_MAX;
43468 int64_t a4min = INT64_MIN;
43471 uint8_t b1 = UINT8_MAX;
43473 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
43476 uint16_t b2 = UINT16_MAX;
43479 uint32_t b3 = UINT32_MAX;
43482 uint64_t b4 = UINT64_MAX;
43484 int_least8_t c1 = INT8_C (0x7f);
43485 int_least8_t c1max = INT_LEAST8_MAX;
43486 int_least8_t c1min = INT_LEAST8_MIN;
43487 int_least16_t c2 = INT16_C (0x7fff);
43488 int_least16_t c2max = INT_LEAST16_MAX;
43489 int_least16_t c2min = INT_LEAST16_MIN;
43490 int_least32_t c3 = INT32_C (0x7fffffff);
43491 int_least32_t c3max = INT_LEAST32_MAX;
43492 int_least32_t c3min = INT_LEAST32_MIN;
43493 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
43494 int_least64_t c4max = INT_LEAST64_MAX;
43495 int_least64_t c4min = INT_LEAST64_MIN;
43496 uint_least8_t d1 = UINT8_C (0xff);
43497 uint_least8_t d1max = UINT_LEAST8_MAX;
43498 uint_least16_t d2 = UINT16_C (0xffff);
43499 uint_least16_t d2max = UINT_LEAST16_MAX;
43500 uint_least32_t d3 = UINT32_C (0xffffffff);
43501 uint_least32_t d3max = UINT_LEAST32_MAX;
43502 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
43503 uint_least64_t d4max = UINT_LEAST64_MAX;
43504 int_fast8_t e1 = INT_FAST8_MAX;
43505 int_fast8_t e1min = INT_FAST8_MIN;
43506 int_fast16_t e2 = INT_FAST16_MAX;
43507 int_fast16_t e2min = INT_FAST16_MIN;
43508 int_fast32_t e3 = INT_FAST32_MAX;
43509 int_fast32_t e3min = INT_FAST32_MIN;
43510 int_fast64_t e4 = INT_FAST64_MAX;
43511 int_fast64_t e4min = INT_FAST64_MIN;
43512 uint_fast8_t f1 = UINT_FAST8_MAX;
43513 uint_fast16_t f2 = UINT_FAST16_MAX;
43514 uint_fast32_t f3 = UINT_FAST32_MAX;
43515 uint_fast64_t f4 = UINT_FAST64_MAX;
43517 intptr_t g = INTPTR_MAX;
43518 intptr_t gmin = INTPTR_MIN;
43521 uintptr_t h = UINTPTR_MAX;
43523 intmax_t i = INTMAX_MAX;
43524 uintmax_t j = UINTMAX_MAX;
43526 #include <limits.h> /* for CHAR_BIT */
43527 #define TYPE_MINIMUM(t) \
43528 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
43529 #define TYPE_MAXIMUM(t) \
43530 ((t) ((t) 0 < (t) -1 \
43532 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
43535 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
43536 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
43538 /* Detect bug in FreeBSD 6.0 / ia64. */
43539 int check_SIG_ATOMIC:
43540 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
43541 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
43543 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
43545 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
43546 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
43548 /* Detect bug in mingw. */
43550 WINT_MIN == TYPE_MINIMUM (wint_t)
43551 && WINT_MAX == TYPE_MAXIMUM (wint_t)
43554 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
43556 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
43557 int check_UINT16_C:
43558 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
43560 /* Detect bugs in OpenBSD 3.9 stdint.h. */
43562 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
43565 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
43568 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
43571 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
43573 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
43574 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
43575 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
43576 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
43577 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
43578 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
43579 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
43580 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
43581 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
43582 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
43583 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
43594 rm -f conftest.$ac_objext
43595 if { (ac_try="$ac_compile"
43596 case "(($ac_try" in
43597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43598 *) ac_try_echo=$ac_try;;
43600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43601 $as_echo "$ac_try_echo") >&5
43602 (eval "$ac_compile") 2>conftest.er1
43604 grep -v '^ *+' conftest.er1 >conftest.err
43606 cat conftest.err >&5
43607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43608 (exit $ac_status); } && {
43609 test -z "$ac_c_werror_flag" ||
43610 test ! -s conftest.err
43611 } && test -s conftest.$ac_objext; then
43612 if test "$cross_compiling" = yes; then
43613 gl_cv_header_working_stdint_h=yes
43616 cat >conftest.$ac_ext <<_ACEOF
43620 cat confdefs.h >>conftest.$ac_ext
43621 cat >>conftest.$ac_ext <<_ACEOF
43622 /* end confdefs.h. */
43624 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
43625 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
43626 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
43627 #include <stdint.h>
43630 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
43631 included before <wchar.h>. */
43632 #include <stddef.h>
43633 #include <signal.h>
43635 # include <stdio.h>
43637 # include <wchar.h>
43642 #include <string.h>
43643 #define MVAL(macro) MVAL1(macro)
43644 #define MVAL1(expression) #expression
43645 static const char *macro_values[] =
43679 for (mv = macro_values; *mv != NULL; mv++)
43681 const char *value = *mv;
43682 /* Test whether it looks like a cast expression. */
43683 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
43684 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
43685 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
43686 || strncmp (value, "((int)"/*)*/, 6) == 0
43687 || strncmp (value, "((signed short)"/*)*/, 15) == 0
43688 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
43689 return mv - macro_values + 1;
43697 rm -f conftest$ac_exeext
43698 if { (ac_try="$ac_link"
43699 case "(($ac_try" in
43700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43701 *) ac_try_echo=$ac_try;;
43703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43704 $as_echo "$ac_try_echo") >&5
43705 (eval "$ac_link") 2>&5
43707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43709 { (case "(($ac_try" in
43710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43711 *) ac_try_echo=$ac_try;;
43713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43714 $as_echo "$ac_try_echo") >&5
43715 (eval "$ac_try") 2>&5
43717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43718 (exit $ac_status); }; }; then
43719 gl_cv_header_working_stdint_h=yes
43721 $as_echo "$as_me: program exited with status $ac_status" >&5
43722 $as_echo "$as_me: failed program was:" >&5
43723 sed 's/^/| /' conftest.$ac_ext >&5
43726 rm -rf conftest.dSYM
43727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43733 $as_echo "$as_me: failed program was:" >&5
43734 sed 's/^/| /' conftest.$ac_ext >&5
43739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43742 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
43743 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
43745 if test "$gl_cv_header_working_stdint_h" = yes; then
43750 for ac_header in sys/inttypes.h sys/bitypes.h
43752 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
43753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43754 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
43755 $as_echo_n "checking for $ac_header... " >&6; }
43756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43757 $as_echo_n "(cached) " >&6
43759 ac_res=`eval 'as_val=${'$as_ac_Header'}
43760 $as_echo "$as_val"'`
43761 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43762 $as_echo "$ac_res" >&6; }
43764 # Is the header compilable?
43765 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
43766 $as_echo_n "checking $ac_header usability... " >&6; }
43767 cat >conftest.$ac_ext <<_ACEOF
43770 cat confdefs.h >>conftest.$ac_ext
43771 cat >>conftest.$ac_ext <<_ACEOF
43772 /* end confdefs.h. */
43773 $ac_includes_default
43774 #include <$ac_header>
43776 rm -f conftest.$ac_objext
43777 if { (ac_try="$ac_compile"
43778 case "(($ac_try" in
43779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43780 *) ac_try_echo=$ac_try;;
43782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43783 $as_echo "$ac_try_echo") >&5
43784 (eval "$ac_compile") 2>conftest.er1
43786 grep -v '^ *+' conftest.er1 >conftest.err
43788 cat conftest.err >&5
43789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43790 (exit $ac_status); } && {
43791 test -z "$ac_c_werror_flag" ||
43792 test ! -s conftest.err
43793 } && test -s conftest.$ac_objext; then
43794 ac_header_compiler=yes
43796 $as_echo "$as_me: failed program was:" >&5
43797 sed 's/^/| /' conftest.$ac_ext >&5
43799 ac_header_compiler=no
43802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43803 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43804 $as_echo "$ac_header_compiler" >&6; }
43806 # Is the header present?
43807 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
43808 $as_echo_n "checking $ac_header presence... " >&6; }
43809 cat >conftest.$ac_ext <<_ACEOF
43812 cat confdefs.h >>conftest.$ac_ext
43813 cat >>conftest.$ac_ext <<_ACEOF
43814 /* end confdefs.h. */
43815 #include <$ac_header>
43817 if { (ac_try="$ac_cpp conftest.$ac_ext"
43818 case "(($ac_try" in
43819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43820 *) ac_try_echo=$ac_try;;
43822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43823 $as_echo "$ac_try_echo") >&5
43824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43826 grep -v '^ *+' conftest.er1 >conftest.err
43828 cat conftest.err >&5
43829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43830 (exit $ac_status); } >/dev/null && {
43831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43832 test ! -s conftest.err
43834 ac_header_preproc=yes
43836 $as_echo "$as_me: failed program was:" >&5
43837 sed 's/^/| /' conftest.$ac_ext >&5
43839 ac_header_preproc=no
43842 rm -f conftest.err conftest.$ac_ext
43843 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43844 $as_echo "$ac_header_preproc" >&6; }
43846 # So? What about this header?
43847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43850 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43852 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43853 ac_header_preproc=yes
43856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43857 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43859 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43861 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43863 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43865 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43867 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43869 ## ------------------------------ ##
43870 ## Report this to bug-tar@gnu.org ##
43871 ## ------------------------------ ##
43873 ) | sed "s/^/$as_me: WARNING: /" >&2
43876 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
43877 $as_echo_n "checking for $ac_header... " >&6; }
43878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43879 $as_echo_n "(cached) " >&6
43881 eval "$as_ac_Header=\$ac_header_preproc"
43883 ac_res=`eval 'as_val=${'$as_ac_Header'}
43884 $as_echo "$as_val"'`
43885 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43886 $as_echo "$ac_res" >&6; }
43889 as_val=`eval 'as_val=${'$as_ac_Header'}
43890 $as_echo "$as_val"'`
43891 if test "x$as_val" = x""yes; then
43892 cat >>confdefs.h <<_ACEOF
43893 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
43900 if test $ac_cv_header_sys_inttypes_h = yes; then
43901 HAVE_SYS_INTTYPES_H=1
43903 HAVE_SYS_INTTYPES_H=0
43906 if test $ac_cv_header_sys_bitypes_h = yes; then
43907 HAVE_SYS_BITYPES_H=1
43909 HAVE_SYS_BITYPES_H=0
43915 if test $APPLE_UNIVERSAL_BUILD = 0; then
43920 for gltype in ptrdiff_t size_t ; do
43921 { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
43922 $as_echo_n "checking for bit size of $gltype... " >&6; }
43923 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
43924 $as_echo_n "(cached) " >&6
43926 if test "$cross_compiling" = yes; then
43927 # Depending upon the size, compute the lo and hi bounds.
43928 cat >conftest.$ac_ext <<_ACEOF
43931 cat confdefs.h >>conftest.$ac_ext
43932 cat >>conftest.$ac_ext <<_ACEOF
43933 /* end confdefs.h. */
43935 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
43936 included before <wchar.h>. */
43937 #include <stddef.h>
43938 #include <signal.h>
43940 # include <stdio.h>
43942 # include <wchar.h>
43945 #include <limits.h>
43949 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
43956 rm -f conftest.$ac_objext
43957 if { (ac_try="$ac_compile"
43958 case "(($ac_try" in
43959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43960 *) ac_try_echo=$ac_try;;
43962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43963 $as_echo "$ac_try_echo") >&5
43964 (eval "$ac_compile") 2>conftest.er1
43966 grep -v '^ *+' conftest.er1 >conftest.err
43968 cat conftest.err >&5
43969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43970 (exit $ac_status); } && {
43971 test -z "$ac_c_werror_flag" ||
43972 test ! -s conftest.err
43973 } && test -s conftest.$ac_objext; then
43976 cat >conftest.$ac_ext <<_ACEOF
43979 cat confdefs.h >>conftest.$ac_ext
43980 cat >>conftest.$ac_ext <<_ACEOF
43981 /* end confdefs.h. */
43983 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
43984 included before <wchar.h>. */
43985 #include <stddef.h>
43986 #include <signal.h>
43988 # include <stdio.h>
43990 # include <wchar.h>
43993 #include <limits.h>
43997 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
44004 rm -f conftest.$ac_objext
44005 if { (ac_try="$ac_compile"
44006 case "(($ac_try" in
44007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44008 *) ac_try_echo=$ac_try;;
44010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44011 $as_echo "$ac_try_echo") >&5
44012 (eval "$ac_compile") 2>conftest.er1
44014 grep -v '^ *+' conftest.er1 >conftest.err
44016 cat conftest.err >&5
44017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44018 (exit $ac_status); } && {
44019 test -z "$ac_c_werror_flag" ||
44020 test ! -s conftest.err
44021 } && test -s conftest.$ac_objext; then
44022 ac_hi=$ac_mid; break
44024 $as_echo "$as_me: failed program was:" >&5
44025 sed 's/^/| /' conftest.$ac_ext >&5
44027 ac_lo=`expr $ac_mid + 1`
44028 if test $ac_lo -le $ac_mid; then
44032 ac_mid=`expr 2 '*' $ac_mid + 1`
44035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44038 $as_echo "$as_me: failed program was:" >&5
44039 sed 's/^/| /' conftest.$ac_ext >&5
44041 cat >conftest.$ac_ext <<_ACEOF
44044 cat confdefs.h >>conftest.$ac_ext
44045 cat >>conftest.$ac_ext <<_ACEOF
44046 /* end confdefs.h. */
44048 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44049 included before <wchar.h>. */
44050 #include <stddef.h>
44051 #include <signal.h>
44053 # include <stdio.h>
44055 # include <wchar.h>
44058 #include <limits.h>
44062 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
44069 rm -f conftest.$ac_objext
44070 if { (ac_try="$ac_compile"
44071 case "(($ac_try" in
44072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44073 *) ac_try_echo=$ac_try;;
44075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44076 $as_echo "$ac_try_echo") >&5
44077 (eval "$ac_compile") 2>conftest.er1
44079 grep -v '^ *+' conftest.er1 >conftest.err
44081 cat conftest.err >&5
44082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44083 (exit $ac_status); } && {
44084 test -z "$ac_c_werror_flag" ||
44085 test ! -s conftest.err
44086 } && test -s conftest.$ac_objext; then
44089 cat >conftest.$ac_ext <<_ACEOF
44092 cat confdefs.h >>conftest.$ac_ext
44093 cat >>conftest.$ac_ext <<_ACEOF
44094 /* end confdefs.h. */
44096 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44097 included before <wchar.h>. */
44098 #include <stddef.h>
44099 #include <signal.h>
44101 # include <stdio.h>
44103 # include <wchar.h>
44106 #include <limits.h>
44110 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
44117 rm -f conftest.$ac_objext
44118 if { (ac_try="$ac_compile"
44119 case "(($ac_try" in
44120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44121 *) ac_try_echo=$ac_try;;
44123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44124 $as_echo "$ac_try_echo") >&5
44125 (eval "$ac_compile") 2>conftest.er1
44127 grep -v '^ *+' conftest.er1 >conftest.err
44129 cat conftest.err >&5
44130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44131 (exit $ac_status); } && {
44132 test -z "$ac_c_werror_flag" ||
44133 test ! -s conftest.err
44134 } && test -s conftest.$ac_objext; then
44135 ac_lo=$ac_mid; break
44137 $as_echo "$as_me: failed program was:" >&5
44138 sed 's/^/| /' conftest.$ac_ext >&5
44140 ac_hi=`expr '(' $ac_mid ')' - 1`
44141 if test $ac_mid -le $ac_hi; then
44145 ac_mid=`expr 2 '*' $ac_mid`
44148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44151 $as_echo "$as_me: failed program was:" >&5
44152 sed 's/^/| /' conftest.$ac_ext >&5
44157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44161 # Binary search between lo and hi bounds.
44162 while test "x$ac_lo" != "x$ac_hi"; do
44163 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
44164 cat >conftest.$ac_ext <<_ACEOF
44167 cat confdefs.h >>conftest.$ac_ext
44168 cat >>conftest.$ac_ext <<_ACEOF
44169 /* end confdefs.h. */
44171 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44172 included before <wchar.h>. */
44173 #include <stddef.h>
44174 #include <signal.h>
44176 # include <stdio.h>
44178 # include <wchar.h>
44181 #include <limits.h>
44185 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
44192 rm -f conftest.$ac_objext
44193 if { (ac_try="$ac_compile"
44194 case "(($ac_try" in
44195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44196 *) ac_try_echo=$ac_try;;
44198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44199 $as_echo "$ac_try_echo") >&5
44200 (eval "$ac_compile") 2>conftest.er1
44202 grep -v '^ *+' conftest.er1 >conftest.err
44204 cat conftest.err >&5
44205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44206 (exit $ac_status); } && {
44207 test -z "$ac_c_werror_flag" ||
44208 test ! -s conftest.err
44209 } && test -s conftest.$ac_objext; then
44212 $as_echo "$as_me: failed program was:" >&5
44213 sed 's/^/| /' conftest.$ac_ext >&5
44215 ac_lo=`expr '(' $ac_mid ')' + 1`
44218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44221 ?*) result=$ac_lo;;
44222 '') result=unknown ;;
44225 cat >conftest.$ac_ext <<_ACEOF
44228 cat confdefs.h >>conftest.$ac_ext
44229 cat >>conftest.$ac_ext <<_ACEOF
44230 /* end confdefs.h. */
44232 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44233 included before <wchar.h>. */
44234 #include <stddef.h>
44235 #include <signal.h>
44237 # include <stdio.h>
44239 # include <wchar.h>
44242 #include <limits.h>
44243 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
44244 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
44246 #include <stdlib.h>
44251 FILE *f = fopen ("conftest.val", "w");
44254 if ((sizeof ($gltype) * CHAR_BIT) < 0)
44256 long int i = longval ();
44257 if (i != (sizeof ($gltype) * CHAR_BIT))
44259 fprintf (f, "%ld", i);
44263 unsigned long int i = ulongval ();
44264 if (i != (sizeof ($gltype) * CHAR_BIT))
44266 fprintf (f, "%lu", i);
44268 /* Do not output a trailing newline, as this causes \r\n confusion
44269 on some platforms. */
44270 return ferror (f) || fclose (f) != 0;
44276 rm -f conftest$ac_exeext
44277 if { (ac_try="$ac_link"
44278 case "(($ac_try" in
44279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44280 *) ac_try_echo=$ac_try;;
44282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44283 $as_echo "$ac_try_echo") >&5
44284 (eval "$ac_link") 2>&5
44286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44288 { (case "(($ac_try" in
44289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44290 *) ac_try_echo=$ac_try;;
44292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44293 $as_echo "$ac_try_echo") >&5
44294 (eval "$ac_try") 2>&5
44296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44297 (exit $ac_status); }; }; then
44298 result=`cat conftest.val`
44300 $as_echo "$as_me: program exited with status $ac_status" >&5
44301 $as_echo "$as_me: failed program was:" >&5
44302 sed 's/^/| /' conftest.$ac_ext >&5
44304 ( exit $ac_status )
44307 rm -rf conftest.dSYM
44308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44311 eval gl_cv_bitsizeof_${gltype}=\$result
44314 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
44315 $as_echo "$as_val"'`
44316 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44317 $as_echo "$ac_res" >&6; }
44318 eval result=\$gl_cv_bitsizeof_${gltype}
44319 if test $result = unknown; then
44322 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
44323 cat >>confdefs.h <<_ACEOF
44324 #define BITSIZEOF_${GLTYPE} $result
44327 eval BITSIZEOF_${GLTYPE}=\$result
44337 for gltype in sig_atomic_t wchar_t wint_t ; do
44338 { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
44339 $as_echo_n "checking for bit size of $gltype... " >&6; }
44340 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
44341 $as_echo_n "(cached) " >&6
44343 if test "$cross_compiling" = yes; then
44344 # Depending upon the size, compute the lo and hi bounds.
44345 cat >conftest.$ac_ext <<_ACEOF
44348 cat confdefs.h >>conftest.$ac_ext
44349 cat >>conftest.$ac_ext <<_ACEOF
44350 /* end confdefs.h. */
44352 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44353 included before <wchar.h>. */
44354 #include <stddef.h>
44355 #include <signal.h>
44357 # include <stdio.h>
44359 # include <wchar.h>
44362 #include <limits.h>
44366 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
44373 rm -f conftest.$ac_objext
44374 if { (ac_try="$ac_compile"
44375 case "(($ac_try" in
44376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44377 *) ac_try_echo=$ac_try;;
44379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44380 $as_echo "$ac_try_echo") >&5
44381 (eval "$ac_compile") 2>conftest.er1
44383 grep -v '^ *+' conftest.er1 >conftest.err
44385 cat conftest.err >&5
44386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44387 (exit $ac_status); } && {
44388 test -z "$ac_c_werror_flag" ||
44389 test ! -s conftest.err
44390 } && test -s conftest.$ac_objext; then
44393 cat >conftest.$ac_ext <<_ACEOF
44396 cat confdefs.h >>conftest.$ac_ext
44397 cat >>conftest.$ac_ext <<_ACEOF
44398 /* end confdefs.h. */
44400 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44401 included before <wchar.h>. */
44402 #include <stddef.h>
44403 #include <signal.h>
44405 # include <stdio.h>
44407 # include <wchar.h>
44410 #include <limits.h>
44414 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
44421 rm -f conftest.$ac_objext
44422 if { (ac_try="$ac_compile"
44423 case "(($ac_try" in
44424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44425 *) ac_try_echo=$ac_try;;
44427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44428 $as_echo "$ac_try_echo") >&5
44429 (eval "$ac_compile") 2>conftest.er1
44431 grep -v '^ *+' conftest.er1 >conftest.err
44433 cat conftest.err >&5
44434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44435 (exit $ac_status); } && {
44436 test -z "$ac_c_werror_flag" ||
44437 test ! -s conftest.err
44438 } && test -s conftest.$ac_objext; then
44439 ac_hi=$ac_mid; break
44441 $as_echo "$as_me: failed program was:" >&5
44442 sed 's/^/| /' conftest.$ac_ext >&5
44444 ac_lo=`expr $ac_mid + 1`
44445 if test $ac_lo -le $ac_mid; then
44449 ac_mid=`expr 2 '*' $ac_mid + 1`
44452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44455 $as_echo "$as_me: failed program was:" >&5
44456 sed 's/^/| /' conftest.$ac_ext >&5
44458 cat >conftest.$ac_ext <<_ACEOF
44461 cat confdefs.h >>conftest.$ac_ext
44462 cat >>conftest.$ac_ext <<_ACEOF
44463 /* end confdefs.h. */
44465 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44466 included before <wchar.h>. */
44467 #include <stddef.h>
44468 #include <signal.h>
44470 # include <stdio.h>
44472 # include <wchar.h>
44475 #include <limits.h>
44479 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
44486 rm -f conftest.$ac_objext
44487 if { (ac_try="$ac_compile"
44488 case "(($ac_try" in
44489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44490 *) ac_try_echo=$ac_try;;
44492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44493 $as_echo "$ac_try_echo") >&5
44494 (eval "$ac_compile") 2>conftest.er1
44496 grep -v '^ *+' conftest.er1 >conftest.err
44498 cat conftest.err >&5
44499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44500 (exit $ac_status); } && {
44501 test -z "$ac_c_werror_flag" ||
44502 test ! -s conftest.err
44503 } && test -s conftest.$ac_objext; then
44506 cat >conftest.$ac_ext <<_ACEOF
44509 cat confdefs.h >>conftest.$ac_ext
44510 cat >>conftest.$ac_ext <<_ACEOF
44511 /* end confdefs.h. */
44513 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44514 included before <wchar.h>. */
44515 #include <stddef.h>
44516 #include <signal.h>
44518 # include <stdio.h>
44520 # include <wchar.h>
44523 #include <limits.h>
44527 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
44534 rm -f conftest.$ac_objext
44535 if { (ac_try="$ac_compile"
44536 case "(($ac_try" in
44537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44538 *) ac_try_echo=$ac_try;;
44540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44541 $as_echo "$ac_try_echo") >&5
44542 (eval "$ac_compile") 2>conftest.er1
44544 grep -v '^ *+' conftest.er1 >conftest.err
44546 cat conftest.err >&5
44547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44548 (exit $ac_status); } && {
44549 test -z "$ac_c_werror_flag" ||
44550 test ! -s conftest.err
44551 } && test -s conftest.$ac_objext; then
44552 ac_lo=$ac_mid; break
44554 $as_echo "$as_me: failed program was:" >&5
44555 sed 's/^/| /' conftest.$ac_ext >&5
44557 ac_hi=`expr '(' $ac_mid ')' - 1`
44558 if test $ac_mid -le $ac_hi; then
44562 ac_mid=`expr 2 '*' $ac_mid`
44565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44568 $as_echo "$as_me: failed program was:" >&5
44569 sed 's/^/| /' conftest.$ac_ext >&5
44574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44578 # Binary search between lo and hi bounds.
44579 while test "x$ac_lo" != "x$ac_hi"; do
44580 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
44581 cat >conftest.$ac_ext <<_ACEOF
44584 cat confdefs.h >>conftest.$ac_ext
44585 cat >>conftest.$ac_ext <<_ACEOF
44586 /* end confdefs.h. */
44588 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44589 included before <wchar.h>. */
44590 #include <stddef.h>
44591 #include <signal.h>
44593 # include <stdio.h>
44595 # include <wchar.h>
44598 #include <limits.h>
44602 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
44609 rm -f conftest.$ac_objext
44610 if { (ac_try="$ac_compile"
44611 case "(($ac_try" in
44612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44613 *) ac_try_echo=$ac_try;;
44615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44616 $as_echo "$ac_try_echo") >&5
44617 (eval "$ac_compile") 2>conftest.er1
44619 grep -v '^ *+' conftest.er1 >conftest.err
44621 cat conftest.err >&5
44622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44623 (exit $ac_status); } && {
44624 test -z "$ac_c_werror_flag" ||
44625 test ! -s conftest.err
44626 } && test -s conftest.$ac_objext; then
44629 $as_echo "$as_me: failed program was:" >&5
44630 sed 's/^/| /' conftest.$ac_ext >&5
44632 ac_lo=`expr '(' $ac_mid ')' + 1`
44635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44638 ?*) result=$ac_lo;;
44639 '') result=unknown ;;
44642 cat >conftest.$ac_ext <<_ACEOF
44645 cat confdefs.h >>conftest.$ac_ext
44646 cat >>conftest.$ac_ext <<_ACEOF
44647 /* end confdefs.h. */
44649 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44650 included before <wchar.h>. */
44651 #include <stddef.h>
44652 #include <signal.h>
44654 # include <stdio.h>
44656 # include <wchar.h>
44659 #include <limits.h>
44660 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
44661 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
44663 #include <stdlib.h>
44668 FILE *f = fopen ("conftest.val", "w");
44671 if ((sizeof ($gltype) * CHAR_BIT) < 0)
44673 long int i = longval ();
44674 if (i != (sizeof ($gltype) * CHAR_BIT))
44676 fprintf (f, "%ld", i);
44680 unsigned long int i = ulongval ();
44681 if (i != (sizeof ($gltype) * CHAR_BIT))
44683 fprintf (f, "%lu", i);
44685 /* Do not output a trailing newline, as this causes \r\n confusion
44686 on some platforms. */
44687 return ferror (f) || fclose (f) != 0;
44693 rm -f conftest$ac_exeext
44694 if { (ac_try="$ac_link"
44695 case "(($ac_try" in
44696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44697 *) ac_try_echo=$ac_try;;
44699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44700 $as_echo "$ac_try_echo") >&5
44701 (eval "$ac_link") 2>&5
44703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44705 { (case "(($ac_try" in
44706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44707 *) ac_try_echo=$ac_try;;
44709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44710 $as_echo "$ac_try_echo") >&5
44711 (eval "$ac_try") 2>&5
44713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44714 (exit $ac_status); }; }; then
44715 result=`cat conftest.val`
44717 $as_echo "$as_me: program exited with status $ac_status" >&5
44718 $as_echo "$as_me: failed program was:" >&5
44719 sed 's/^/| /' conftest.$ac_ext >&5
44721 ( exit $ac_status )
44724 rm -rf conftest.dSYM
44725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44728 eval gl_cv_bitsizeof_${gltype}=\$result
44731 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
44732 $as_echo "$as_val"'`
44733 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44734 $as_echo "$ac_res" >&6; }
44735 eval result=\$gl_cv_bitsizeof_${gltype}
44736 if test $result = unknown; then
44739 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
44740 cat >>confdefs.h <<_ACEOF
44741 #define BITSIZEOF_${GLTYPE} $result
44744 eval BITSIZEOF_${GLTYPE}=\$result
44753 for gltype in sig_atomic_t wchar_t wint_t ; do
44754 { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
44755 $as_echo_n "checking whether $gltype is signed... " >&6; }
44756 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
44757 $as_echo_n "(cached) " >&6
44759 cat >conftest.$ac_ext <<_ACEOF
44762 cat confdefs.h >>conftest.$ac_ext
44763 cat >>conftest.$ac_ext <<_ACEOF
44764 /* end confdefs.h. */
44766 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44767 included before <wchar.h>. */
44768 #include <stddef.h>
44769 #include <signal.h>
44771 # include <stdio.h>
44773 # include <wchar.h>
44776 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
44785 rm -f conftest.$ac_objext
44786 if { (ac_try="$ac_compile"
44787 case "(($ac_try" in
44788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44789 *) ac_try_echo=$ac_try;;
44791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44792 $as_echo "$ac_try_echo") >&5
44793 (eval "$ac_compile") 2>conftest.er1
44795 grep -v '^ *+' conftest.er1 >conftest.err
44797 cat conftest.err >&5
44798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44799 (exit $ac_status); } && {
44800 test -z "$ac_c_werror_flag" ||
44801 test ! -s conftest.err
44802 } && test -s conftest.$ac_objext; then
44805 $as_echo "$as_me: failed program was:" >&5
44806 sed 's/^/| /' conftest.$ac_ext >&5
44811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44812 eval gl_cv_type_${gltype}_signed=\$result
44815 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
44816 $as_echo "$as_val"'`
44817 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44818 $as_echo "$ac_res" >&6; }
44819 eval result=\$gl_cv_type_${gltype}_signed
44820 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
44821 if test "$result" = yes; then
44822 cat >>confdefs.h <<_ACEOF
44823 #define HAVE_SIGNED_${GLTYPE} 1
44826 eval HAVE_SIGNED_${GLTYPE}=1
44828 eval HAVE_SIGNED_${GLTYPE}=0
44833 gl_cv_type_ptrdiff_t_signed=yes
44834 gl_cv_type_size_t_signed=no
44835 if test $APPLE_UNIVERSAL_BUILD = 0; then
44840 for gltype in ptrdiff_t size_t ; do
44841 { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
44842 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
44843 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
44844 $as_echo_n "(cached) " >&6
44846 eval gl_cv_type_${gltype}_suffix=no
44847 eval result=\$gl_cv_type_${gltype}_signed
44848 if test "$result" = yes; then
44853 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
44855 '') gltype1='int';;
44856 l) gltype1='long int';;
44857 ll) gltype1='long long int';;
44858 i64) gltype1='__int64';;
44859 u) gltype1='unsigned int';;
44860 ul) gltype1='unsigned long int';;
44861 ull) gltype1='unsigned long long int';;
44862 ui64)gltype1='unsigned __int64';;
44864 cat >conftest.$ac_ext <<_ACEOF
44867 cat confdefs.h >>conftest.$ac_ext
44868 cat >>conftest.$ac_ext <<_ACEOF
44869 /* end confdefs.h. */
44871 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44872 included before <wchar.h>. */
44873 #include <stddef.h>
44874 #include <signal.h>
44876 # include <stdio.h>
44878 # include <wchar.h>
44881 extern $gltype foo;
44882 extern $gltype1 foo;
44891 rm -f conftest.$ac_objext
44892 if { (ac_try="$ac_compile"
44893 case "(($ac_try" in
44894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44895 *) ac_try_echo=$ac_try;;
44897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44898 $as_echo "$ac_try_echo") >&5
44899 (eval "$ac_compile") 2>conftest.er1
44901 grep -v '^ *+' conftest.er1 >conftest.err
44903 cat conftest.err >&5
44904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44905 (exit $ac_status); } && {
44906 test -z "$ac_c_werror_flag" ||
44907 test ! -s conftest.err
44908 } && test -s conftest.$ac_objext; then
44909 eval gl_cv_type_${gltype}_suffix=\$glsuf
44911 $as_echo "$as_me: failed program was:" >&5
44912 sed 's/^/| /' conftest.$ac_ext >&5
44917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44918 eval result=\$gl_cv_type_${gltype}_suffix
44919 test "$result" != no && break
44922 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
44923 $as_echo "$as_val"'`
44924 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44925 $as_echo "$ac_res" >&6; }
44926 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
44927 eval result=\$gl_cv_type_${gltype}_suffix
44928 test "$result" = no && result=
44929 eval ${GLTYPE}_SUFFIX=\$result
44930 cat >>confdefs.h <<_ACEOF
44931 #define ${GLTYPE}_SUFFIX $result
44943 for gltype in sig_atomic_t wchar_t wint_t ; do
44944 { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
44945 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
44946 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
44947 $as_echo_n "(cached) " >&6
44949 eval gl_cv_type_${gltype}_suffix=no
44950 eval result=\$gl_cv_type_${gltype}_signed
44951 if test "$result" = yes; then
44956 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
44958 '') gltype1='int';;
44959 l) gltype1='long int';;
44960 ll) gltype1='long long int';;
44961 i64) gltype1='__int64';;
44962 u) gltype1='unsigned int';;
44963 ul) gltype1='unsigned long int';;
44964 ull) gltype1='unsigned long long int';;
44965 ui64)gltype1='unsigned __int64';;
44967 cat >conftest.$ac_ext <<_ACEOF
44970 cat confdefs.h >>conftest.$ac_ext
44971 cat >>conftest.$ac_ext <<_ACEOF
44972 /* end confdefs.h. */
44974 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44975 included before <wchar.h>. */
44976 #include <stddef.h>
44977 #include <signal.h>
44979 # include <stdio.h>
44981 # include <wchar.h>
44984 extern $gltype foo;
44985 extern $gltype1 foo;
44994 rm -f conftest.$ac_objext
44995 if { (ac_try="$ac_compile"
44996 case "(($ac_try" in
44997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44998 *) ac_try_echo=$ac_try;;
45000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45001 $as_echo "$ac_try_echo") >&5
45002 (eval "$ac_compile") 2>conftest.er1
45004 grep -v '^ *+' conftest.er1 >conftest.err
45006 cat conftest.err >&5
45007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45008 (exit $ac_status); } && {
45009 test -z "$ac_c_werror_flag" ||
45010 test ! -s conftest.err
45011 } && test -s conftest.$ac_objext; then
45012 eval gl_cv_type_${gltype}_suffix=\$glsuf
45014 $as_echo "$as_me: failed program was:" >&5
45015 sed 's/^/| /' conftest.$ac_ext >&5
45020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45021 eval result=\$gl_cv_type_${gltype}_suffix
45022 test "$result" != no && break
45025 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
45026 $as_echo "$as_val"'`
45027 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45028 $as_echo "$ac_res" >&6; }
45029 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
45030 eval result=\$gl_cv_type_${gltype}_suffix
45031 test "$result" = no && result=
45032 eval ${GLTYPE}_SUFFIX=\$result
45033 cat >>confdefs.h <<_ACEOF
45034 #define ${GLTYPE}_SUFFIX $result
45045 # Code from module stdio:
45057 if test $gl_cv_have_include_next = yes; then
45058 gl_cv_next_stdio_h='<'stdio.h'>'
45060 { $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
45061 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
45062 if test "${gl_cv_next_stdio_h+set}" = set; then
45063 $as_echo_n "(cached) " >&6
45066 cat >conftest.$ac_ext <<_ACEOF
45069 cat confdefs.h >>conftest.$ac_ext
45070 cat >>conftest.$ac_ext <<_ACEOF
45071 /* end confdefs.h. */
45076 aix*) gl_absname_cpp="$ac_cpp -C" ;;
45077 *) gl_absname_cpp="$ac_cpp" ;;
45079 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
45080 sed -n '\#/stdio.h#{
45081 s#.*"\(.*/stdio.h\)".*#\1#
45089 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
45090 $as_echo "$gl_cv_next_stdio_h" >&6; }
45092 NEXT_STDIO_H=$gl_cv_next_stdio_h
45094 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
45095 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
45096 gl_next_as_first_directive='<'stdio.h'>'
45098 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
45099 gl_next_as_first_directive=$gl_cv_next_stdio_h
45101 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
45131 for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat snprintf tmpfile vdprintf vsnprintf; do
45132 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
45133 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
45134 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
45135 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
45136 $as_echo_n "(cached) " >&6
45138 cat >conftest.$ac_ext <<_ACEOF
45141 cat confdefs.h >>conftest.$ac_ext
45142 cat >>conftest.$ac_ext <<_ACEOF
45143 /* end confdefs.h. */
45155 rm -f conftest.$ac_objext
45156 if { (ac_try="$ac_compile"
45157 case "(($ac_try" in
45158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45159 *) ac_try_echo=$ac_try;;
45161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45162 $as_echo "$ac_try_echo") >&5
45163 (eval "$ac_compile") 2>conftest.er1
45165 grep -v '^ *+' conftest.er1 >conftest.err
45167 cat conftest.err >&5
45168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45169 (exit $ac_status); } && {
45170 test -z "$ac_c_werror_flag" ||
45171 test ! -s conftest.err
45172 } && test -s conftest.$ac_objext; then
45173 eval "$as_gl_Symbol=yes"
45175 $as_echo "$as_me: failed program was:" >&5
45176 sed 's/^/| /' conftest.$ac_ext >&5
45178 eval "$as_gl_Symbol=no"
45181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45183 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
45184 $as_echo "$as_val"'`
45185 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45186 $as_echo "$ac_res" >&6; }
45187 as_val=`eval 'as_val=${'$as_gl_Symbol'}
45188 $as_echo "$as_val"'`
45189 if test "x$as_val" = x""yes; then
45190 cat >>confdefs.h <<_ACEOF
45191 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
45194 eval ac_cv_have_decl_$gl_func=yes
45200 # Code from module stdlib:
45211 if test $gl_cv_have_include_next = yes; then
45212 gl_cv_next_stdlib_h='<'stdlib.h'>'
45214 { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
45215 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
45216 if test "${gl_cv_next_stdlib_h+set}" = set; then
45217 $as_echo_n "(cached) " >&6
45220 cat >conftest.$ac_ext <<_ACEOF
45223 cat confdefs.h >>conftest.$ac_ext
45224 cat >>conftest.$ac_ext <<_ACEOF
45225 /* end confdefs.h. */
45226 #include <stdlib.h>
45230 aix*) gl_absname_cpp="$ac_cpp -C" ;;
45231 *) gl_absname_cpp="$ac_cpp" ;;
45233 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
45234 sed -n '\#/stdlib.h#{
45235 s#.*"\(.*/stdlib.h\)".*#\1#
45243 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
45244 $as_echo "$gl_cv_next_stdlib_h" >&6; }
45246 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
45248 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
45249 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
45250 gl_next_as_first_directive='<'stdlib.h'>'
45252 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
45253 gl_next_as_first_directive=$gl_cv_next_stdlib_h
45255 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
45286 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
45287 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
45288 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
45289 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
45290 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
45291 $as_echo_n "(cached) " >&6
45293 cat >conftest.$ac_ext <<_ACEOF
45296 cat confdefs.h >>conftest.$ac_ext
45297 cat >>conftest.$ac_ext <<_ACEOF
45298 /* end confdefs.h. */
45299 #include <stdlib.h>
45300 #if HAVE_SYS_LOADAVG_H
45301 # include <sys/loadavg.h>
45304 # include <random.h>
45316 rm -f conftest.$ac_objext
45317 if { (ac_try="$ac_compile"
45318 case "(($ac_try" in
45319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45320 *) ac_try_echo=$ac_try;;
45322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45323 $as_echo "$ac_try_echo") >&5
45324 (eval "$ac_compile") 2>conftest.er1
45326 grep -v '^ *+' conftest.er1 >conftest.err
45328 cat conftest.err >&5
45329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45330 (exit $ac_status); } && {
45331 test -z "$ac_c_werror_flag" ||
45332 test ! -s conftest.err
45333 } && test -s conftest.$ac_objext; then
45334 eval "$as_gl_Symbol=yes"
45336 $as_echo "$as_me: failed program was:" >&5
45337 sed 's/^/| /' conftest.$ac_ext >&5
45339 eval "$as_gl_Symbol=no"
45342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45344 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
45345 $as_echo "$as_val"'`
45346 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45347 $as_echo "$ac_res" >&6; }
45348 as_val=`eval 'as_val=${'$as_gl_Symbol'}
45349 $as_echo "$as_val"'`
45350 if test "x$as_val" = x""yes; then
45351 cat >>confdefs.h <<_ACEOF
45352 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
45355 eval ac_cv_have_decl_$gl_func=yes
45361 # Code from module stpcpy:
45377 for ac_func in stpcpy
45379 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45380 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45381 $as_echo_n "checking for $ac_func... " >&6; }
45382 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45383 $as_echo_n "(cached) " >&6
45385 cat >conftest.$ac_ext <<_ACEOF
45388 cat confdefs.h >>conftest.$ac_ext
45389 cat >>conftest.$ac_ext <<_ACEOF
45390 /* end confdefs.h. */
45391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45393 #define $ac_func innocuous_$ac_func
45395 /* System header to define __stub macros and hopefully few prototypes,
45396 which can conflict with char $ac_func (); below.
45397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45398 <limits.h> exists even on freestanding compilers. */
45401 # include <limits.h>
45403 # include <assert.h>
45408 /* Override any GCC internal prototype to avoid an error.
45409 Use char because int might match the return type of a GCC
45410 builtin and then its argument prototype would still apply. */
45415 /* The GNU C library defines this for functions which it implements
45416 to always fail with ENOSYS. Some functions are actually named
45417 something starting with __ and the normal name is an alias. */
45418 #if defined __stub_$ac_func || defined __stub___$ac_func
45425 return $ac_func ();
45430 rm -f conftest.$ac_objext conftest$ac_exeext
45431 if { (ac_try="$ac_link"
45432 case "(($ac_try" in
45433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45434 *) ac_try_echo=$ac_try;;
45436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45437 $as_echo "$ac_try_echo") >&5
45438 (eval "$ac_link") 2>conftest.er1
45440 grep -v '^ *+' conftest.er1 >conftest.err
45442 cat conftest.err >&5
45443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45444 (exit $ac_status); } && {
45445 test -z "$ac_c_werror_flag" ||
45446 test ! -s conftest.err
45447 } && test -s conftest$ac_exeext && {
45448 test "$cross_compiling" = yes ||
45449 $as_test_x conftest$ac_exeext
45451 eval "$as_ac_var=yes"
45453 $as_echo "$as_me: failed program was:" >&5
45454 sed 's/^/| /' conftest.$ac_ext >&5
45456 eval "$as_ac_var=no"
45459 rm -rf conftest.dSYM
45460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45461 conftest$ac_exeext conftest.$ac_ext
45463 ac_res=`eval 'as_val=${'$as_ac_var'}
45464 $as_echo "$as_val"'`
45465 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45466 $as_echo "$ac_res" >&6; }
45467 as_val=`eval 'as_val=${'$as_ac_var'}
45468 $as_echo "$as_val"'`
45469 if test "x$as_val" = x""yes; then
45470 cat >>confdefs.h <<_ACEOF
45471 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45476 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
45482 if test $ac_cv_func_stpcpy = no; then
45496 cat >>confdefs.h <<\_ACEOF
45497 #define GNULIB_TEST_STPCPY 1
45502 # Code from module strcase:
45515 for ac_func in strcasecmp
45517 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45518 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45519 $as_echo_n "checking for $ac_func... " >&6; }
45520 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45521 $as_echo_n "(cached) " >&6
45523 cat >conftest.$ac_ext <<_ACEOF
45526 cat confdefs.h >>conftest.$ac_ext
45527 cat >>conftest.$ac_ext <<_ACEOF
45528 /* end confdefs.h. */
45529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45531 #define $ac_func innocuous_$ac_func
45533 /* System header to define __stub macros and hopefully few prototypes,
45534 which can conflict with char $ac_func (); below.
45535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45536 <limits.h> exists even on freestanding compilers. */
45539 # include <limits.h>
45541 # include <assert.h>
45546 /* Override any GCC internal prototype to avoid an error.
45547 Use char because int might match the return type of a GCC
45548 builtin and then its argument prototype would still apply. */
45553 /* The GNU C library defines this for functions which it implements
45554 to always fail with ENOSYS. Some functions are actually named
45555 something starting with __ and the normal name is an alias. */
45556 #if defined __stub_$ac_func || defined __stub___$ac_func
45563 return $ac_func ();
45568 rm -f conftest.$ac_objext conftest$ac_exeext
45569 if { (ac_try="$ac_link"
45570 case "(($ac_try" in
45571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45572 *) ac_try_echo=$ac_try;;
45574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45575 $as_echo "$ac_try_echo") >&5
45576 (eval "$ac_link") 2>conftest.er1
45578 grep -v '^ *+' conftest.er1 >conftest.err
45580 cat conftest.err >&5
45581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45582 (exit $ac_status); } && {
45583 test -z "$ac_c_werror_flag" ||
45584 test ! -s conftest.err
45585 } && test -s conftest$ac_exeext && {
45586 test "$cross_compiling" = yes ||
45587 $as_test_x conftest$ac_exeext
45589 eval "$as_ac_var=yes"
45591 $as_echo "$as_me: failed program was:" >&5
45592 sed 's/^/| /' conftest.$ac_ext >&5
45594 eval "$as_ac_var=no"
45597 rm -rf conftest.dSYM
45598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45599 conftest$ac_exeext conftest.$ac_ext
45601 ac_res=`eval 'as_val=${'$as_ac_var'}
45602 $as_echo "$as_val"'`
45603 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45604 $as_echo "$ac_res" >&6; }
45605 as_val=`eval 'as_val=${'$as_ac_var'}
45606 $as_echo "$as_val"'`
45607 if test "x$as_val" = x""yes; then
45608 cat >>confdefs.h <<_ACEOF
45609 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45614 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
45620 if test $ac_cv_func_strcasecmp = no; then
45638 for ac_func in strncasecmp
45640 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45641 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45642 $as_echo_n "checking for $ac_func... " >&6; }
45643 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45644 $as_echo_n "(cached) " >&6
45646 cat >conftest.$ac_ext <<_ACEOF
45649 cat confdefs.h >>conftest.$ac_ext
45650 cat >>conftest.$ac_ext <<_ACEOF
45651 /* end confdefs.h. */
45652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45654 #define $ac_func innocuous_$ac_func
45656 /* System header to define __stub macros and hopefully few prototypes,
45657 which can conflict with char $ac_func (); below.
45658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45659 <limits.h> exists even on freestanding compilers. */
45662 # include <limits.h>
45664 # include <assert.h>
45669 /* Override any GCC internal prototype to avoid an error.
45670 Use char because int might match the return type of a GCC
45671 builtin and then its argument prototype would still apply. */
45676 /* The GNU C library defines this for functions which it implements
45677 to always fail with ENOSYS. Some functions are actually named
45678 something starting with __ and the normal name is an alias. */
45679 #if defined __stub_$ac_func || defined __stub___$ac_func
45686 return $ac_func ();
45691 rm -f conftest.$ac_objext conftest$ac_exeext
45692 if { (ac_try="$ac_link"
45693 case "(($ac_try" in
45694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45695 *) ac_try_echo=$ac_try;;
45697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45698 $as_echo "$ac_try_echo") >&5
45699 (eval "$ac_link") 2>conftest.er1
45701 grep -v '^ *+' conftest.er1 >conftest.err
45703 cat conftest.err >&5
45704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45705 (exit $ac_status); } && {
45706 test -z "$ac_c_werror_flag" ||
45707 test ! -s conftest.err
45708 } && test -s conftest$ac_exeext && {
45709 test "$cross_compiling" = yes ||
45710 $as_test_x conftest$ac_exeext
45712 eval "$as_ac_var=yes"
45714 $as_echo "$as_me: failed program was:" >&5
45715 sed 's/^/| /' conftest.$ac_ext >&5
45717 eval "$as_ac_var=no"
45720 rm -rf conftest.dSYM
45721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45722 conftest$ac_exeext conftest.$ac_ext
45724 ac_res=`eval 'as_val=${'$as_ac_var'}
45725 $as_echo "$as_val"'`
45726 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45727 $as_echo "$ac_res" >&6; }
45728 as_val=`eval 'as_val=${'$as_ac_var'}
45729 $as_echo "$as_val"'`
45730 if test "x$as_val" = x""yes; then
45731 cat >>confdefs.h <<_ACEOF
45732 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45737 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
45743 if test $ac_cv_func_strncasecmp = no; then
45748 { $as_echo "$as_me:$LINENO: checking whether strncasecmp is declared" >&5
45749 $as_echo_n "checking whether strncasecmp is declared... " >&6; }
45750 if test "${ac_cv_have_decl_strncasecmp+set}" = set; then
45751 $as_echo_n "(cached) " >&6
45753 cat >conftest.$ac_ext <<_ACEOF
45756 cat confdefs.h >>conftest.$ac_ext
45757 cat >>conftest.$ac_ext <<_ACEOF
45758 /* end confdefs.h. */
45759 $ac_includes_default
45763 #ifndef strncasecmp
45764 (void) strncasecmp;
45771 rm -f conftest.$ac_objext
45772 if { (ac_try="$ac_compile"
45773 case "(($ac_try" in
45774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45775 *) ac_try_echo=$ac_try;;
45777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45778 $as_echo "$ac_try_echo") >&5
45779 (eval "$ac_compile") 2>conftest.er1
45781 grep -v '^ *+' conftest.er1 >conftest.err
45783 cat conftest.err >&5
45784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45785 (exit $ac_status); } && {
45786 test -z "$ac_c_werror_flag" ||
45787 test ! -s conftest.err
45788 } && test -s conftest.$ac_objext; then
45789 ac_cv_have_decl_strncasecmp=yes
45791 $as_echo "$as_me: failed program was:" >&5
45792 sed 's/^/| /' conftest.$ac_ext >&5
45794 ac_cv_have_decl_strncasecmp=no
45797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45799 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strncasecmp" >&5
45800 $as_echo "$ac_cv_have_decl_strncasecmp" >&6; }
45801 if test "x$ac_cv_have_decl_strncasecmp" = x""yes; then
45803 cat >>confdefs.h <<_ACEOF
45804 #define HAVE_DECL_STRNCASECMP 1
45809 cat >>confdefs.h <<_ACEOF
45810 #define HAVE_DECL_STRNCASECMP 0
45817 if test $ac_cv_have_decl_strncasecmp = no; then
45818 HAVE_DECL_STRNCASECMP=0
45822 # Code from module strchrnul:
45836 for ac_func in strchrnul
45838 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45839 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45840 $as_echo_n "checking for $ac_func... " >&6; }
45841 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45842 $as_echo_n "(cached) " >&6
45844 cat >conftest.$ac_ext <<_ACEOF
45847 cat confdefs.h >>conftest.$ac_ext
45848 cat >>conftest.$ac_ext <<_ACEOF
45849 /* end confdefs.h. */
45850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45852 #define $ac_func innocuous_$ac_func
45854 /* System header to define __stub macros and hopefully few prototypes,
45855 which can conflict with char $ac_func (); below.
45856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45857 <limits.h> exists even on freestanding compilers. */
45860 # include <limits.h>
45862 # include <assert.h>
45867 /* Override any GCC internal prototype to avoid an error.
45868 Use char because int might match the return type of a GCC
45869 builtin and then its argument prototype would still apply. */
45874 /* The GNU C library defines this for functions which it implements
45875 to always fail with ENOSYS. Some functions are actually named
45876 something starting with __ and the normal name is an alias. */
45877 #if defined __stub_$ac_func || defined __stub___$ac_func
45884 return $ac_func ();
45889 rm -f conftest.$ac_objext conftest$ac_exeext
45890 if { (ac_try="$ac_link"
45891 case "(($ac_try" in
45892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45893 *) ac_try_echo=$ac_try;;
45895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45896 $as_echo "$ac_try_echo") >&5
45897 (eval "$ac_link") 2>conftest.er1
45899 grep -v '^ *+' conftest.er1 >conftest.err
45901 cat conftest.err >&5
45902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45903 (exit $ac_status); } && {
45904 test -z "$ac_c_werror_flag" ||
45905 test ! -s conftest.err
45906 } && test -s conftest$ac_exeext && {
45907 test "$cross_compiling" = yes ||
45908 $as_test_x conftest$ac_exeext
45910 eval "$as_ac_var=yes"
45912 $as_echo "$as_me: failed program was:" >&5
45913 sed 's/^/| /' conftest.$ac_ext >&5
45915 eval "$as_ac_var=no"
45918 rm -rf conftest.dSYM
45919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45920 conftest$ac_exeext conftest.$ac_ext
45922 ac_res=`eval 'as_val=${'$as_ac_var'}
45923 $as_echo "$as_val"'`
45924 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45925 $as_echo "$ac_res" >&6; }
45926 as_val=`eval 'as_val=${'$as_ac_var'}
45927 $as_echo "$as_val"'`
45928 if test "x$as_val" = x""yes; then
45929 cat >>confdefs.h <<_ACEOF
45930 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45935 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
45941 if test $ac_cv_func_strchrnul = no; then
45953 cat >>confdefs.h <<\_ACEOF
45954 #define GNULIB_TEST_STRCHRNUL 1
45959 # Code from module strdup-posix:
45969 if test $ac_cv_func_strdup = yes; then
45970 if test $gl_cv_func_malloc_posix != yes; then
45980 gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext"
45993 gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext"
46001 if test $ac_cv_have_decl_strdup = no; then
46012 cat >>confdefs.h <<\_ACEOF
46013 #define GNULIB_TEST_STRDUP 1
46018 # Code from module streq:
46019 # Code from module strerror:
46022 if test $REPLACE_STRERROR = 1; then
46031 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
46034 cat >>confdefs.h <<_ACEOF
46035 #define REPLACE_STRERROR $REPLACE_STRERROR
46047 cat >>confdefs.h <<\_ACEOF
46048 #define GNULIB_TEST_STRERROR 1
46053 # Code from module string:
46057 # Code from module strings:
46061 # Code from module strndup:
46076 if test $ac_cv_have_decl_strndup = no; then
46077 HAVE_DECL_STRNDUP=0
46080 if test $ac_cv_func_strndup = yes; then
46081 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
46082 { $as_echo "$as_me:$LINENO: checking for working strndup" >&5
46083 $as_echo_n "checking for working strndup... " >&6; }
46084 if test "${gl_cv_func_strndup_works+set}" = set; then
46085 $as_echo_n "(cached) " >&6
46087 if test "$cross_compiling" = yes; then
46090 aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
46091 *) gl_cv_func_strndup_works="guessing yes";;
46095 cat >conftest.$ac_ext <<_ACEOF
46099 cat confdefs.h >>conftest.$ac_ext
46100 cat >>conftest.$ac_ext <<_ACEOF
46101 /* end confdefs.h. */
46102 #include <string.h>
46103 #include <stdlib.h>
46108 #ifndef HAVE_DECL_STRNDUP
46109 extern char *strndup (const char *, size_t);
46112 s = strndup ("some longer string", 15);
46114 s = strndup ("shorter string", 13);
46115 return s[13] != '\0';
46120 rm -f conftest$ac_exeext
46121 if { (ac_try="$ac_link"
46122 case "(($ac_try" in
46123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46124 *) ac_try_echo=$ac_try;;
46126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46127 $as_echo "$ac_try_echo") >&5
46128 (eval "$ac_link") 2>&5
46130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46132 { (case "(($ac_try" in
46133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46134 *) ac_try_echo=$ac_try;;
46136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46137 $as_echo "$ac_try_echo") >&5
46138 (eval "$ac_try") 2>&5
46140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46141 (exit $ac_status); }; }; then
46142 gl_cv_func_strndup_works=yes
46144 $as_echo "$as_me: program exited with status $ac_status" >&5
46145 $as_echo "$as_me: failed program was:" >&5
46146 sed 's/^/| /' conftest.$ac_ext >&5
46148 ( exit $ac_status )
46149 gl_cv_func_strndup_works=no
46151 rm -rf conftest.dSYM
46152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46157 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_strndup_works" >&5
46158 $as_echo "$gl_cv_func_strndup_works" >&6; }
46159 case $gl_cv_func_strndup_works in
46170 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
46183 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
46194 cat >>confdefs.h <<\_ACEOF
46195 #define GNULIB_TEST_STRNDUP 1
46200 # Code from module strnlen:
46210 if test $ac_cv_have_decl_strnlen = no; then
46211 HAVE_DECL_STRNLEN=0
46213 { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
46214 $as_echo_n "checking for working strnlen... " >&6; }
46215 if test "${ac_cv_func_strnlen_working+set}" = set; then
46216 $as_echo_n "(cached) " >&6
46218 if test "$cross_compiling" = yes; then
46219 ac_cv_func_strnlen_working=no
46221 cat >conftest.$ac_ext <<_ACEOF
46224 cat confdefs.h >>conftest.$ac_ext
46225 cat >>conftest.$ac_ext <<_ACEOF
46226 /* end confdefs.h. */
46227 $ac_includes_default
46233 #define S_LEN (sizeof S - 1)
46235 /* At least one implementation is buggy: that of AIX 4.3 would
46236 give strnlen (S, 1) == 3. */
46239 for (i = 0; i < S_LEN + 1; ++i)
46241 int expected = i <= S_LEN ? i : S_LEN;
46242 if (strnlen (S, i) != expected)
46251 rm -f conftest$ac_exeext
46252 if { (ac_try="$ac_link"
46253 case "(($ac_try" in
46254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46255 *) ac_try_echo=$ac_try;;
46257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46258 $as_echo "$ac_try_echo") >&5
46259 (eval "$ac_link") 2>&5
46261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46263 { (case "(($ac_try" in
46264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46265 *) ac_try_echo=$ac_try;;
46267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46268 $as_echo "$ac_try_echo") >&5
46269 (eval "$ac_try") 2>&5
46271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46272 (exit $ac_status); }; }; then
46273 ac_cv_func_strnlen_working=yes
46275 $as_echo "$as_me: program exited with status $ac_status" >&5
46276 $as_echo "$as_me: failed program was:" >&5
46277 sed 's/^/| /' conftest.$ac_ext >&5
46279 ( exit $ac_status )
46280 ac_cv_func_strnlen_working=no
46282 rm -rf conftest.dSYM
46283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46288 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
46289 $as_echo "$ac_cv_func_strnlen_working" >&6; }
46290 test $ac_cv_func_strnlen_working = no &&
46298 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
46301 if test $ac_cv_func_strnlen_working = no; then
46305 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
46314 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
46326 cat >>confdefs.h <<\_ACEOF
46327 #define GNULIB_TEST_STRNLEN 1
46332 # Code from module strnlen1:
46333 # Code from module strtoimax:
46335 { $as_echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
46336 $as_echo_n "checking whether <inttypes.h> defines strtoimax as a macro... " >&6; }
46337 if test "${gl_cv_func_strtoimax_macro+set}" = set; then
46338 $as_echo_n "(cached) " >&6
46340 cat >conftest.$ac_ext <<_ACEOF
46343 cat confdefs.h >>conftest.$ac_ext
46344 cat >>conftest.$ac_ext <<_ACEOF
46345 /* end confdefs.h. */
46346 #include <inttypes.h>
46348 inttypes_h_defines_strtoimax
46351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46352 $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then
46353 gl_cv_func_strtoimax_macro=yes
46355 gl_cv_func_strtoimax_macro=no
46360 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_strtoimax_macro" >&5
46361 $as_echo "$gl_cv_func_strtoimax_macro" >&6; }
46363 if test "$gl_cv_func_strtoimax_macro" != yes; then
46373 for ac_func in strtoimax
46375 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
46376 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
46377 $as_echo_n "checking for $ac_func... " >&6; }
46378 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46379 $as_echo_n "(cached) " >&6
46381 cat >conftest.$ac_ext <<_ACEOF
46384 cat confdefs.h >>conftest.$ac_ext
46385 cat >>conftest.$ac_ext <<_ACEOF
46386 /* end confdefs.h. */
46387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46389 #define $ac_func innocuous_$ac_func
46391 /* System header to define __stub macros and hopefully few prototypes,
46392 which can conflict with char $ac_func (); below.
46393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46394 <limits.h> exists even on freestanding compilers. */
46397 # include <limits.h>
46399 # include <assert.h>
46404 /* Override any GCC internal prototype to avoid an error.
46405 Use char because int might match the return type of a GCC
46406 builtin and then its argument prototype would still apply. */
46411 /* The GNU C library defines this for functions which it implements
46412 to always fail with ENOSYS. Some functions are actually named
46413 something starting with __ and the normal name is an alias. */
46414 #if defined __stub_$ac_func || defined __stub___$ac_func
46421 return $ac_func ();
46426 rm -f conftest.$ac_objext conftest$ac_exeext
46427 if { (ac_try="$ac_link"
46428 case "(($ac_try" in
46429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46430 *) ac_try_echo=$ac_try;;
46432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46433 $as_echo "$ac_try_echo") >&5
46434 (eval "$ac_link") 2>conftest.er1
46436 grep -v '^ *+' conftest.er1 >conftest.err
46438 cat conftest.err >&5
46439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46440 (exit $ac_status); } && {
46441 test -z "$ac_c_werror_flag" ||
46442 test ! -s conftest.err
46443 } && test -s conftest$ac_exeext && {
46444 test "$cross_compiling" = yes ||
46445 $as_test_x conftest$ac_exeext
46447 eval "$as_ac_var=yes"
46449 $as_echo "$as_me: failed program was:" >&5
46450 sed 's/^/| /' conftest.$ac_ext >&5
46452 eval "$as_ac_var=no"
46455 rm -rf conftest.dSYM
46456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46457 conftest$ac_exeext conftest.$ac_ext
46459 ac_res=`eval 'as_val=${'$as_ac_var'}
46460 $as_echo "$as_val"'`
46461 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
46462 $as_echo "$ac_res" >&6; }
46463 as_val=`eval 'as_val=${'$as_ac_var'}
46464 $as_echo "$as_val"'`
46465 if test "x$as_val" = x""yes; then
46466 cat >>confdefs.h <<_ACEOF
46467 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
46472 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
46478 if test $ac_cv_func_strtoimax = no; then
46480 { $as_echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
46481 $as_echo_n "checking whether strtoll is declared... " >&6; }
46482 if test "${ac_cv_have_decl_strtoll+set}" = set; then
46483 $as_echo_n "(cached) " >&6
46485 cat >conftest.$ac_ext <<_ACEOF
46488 cat confdefs.h >>conftest.$ac_ext
46489 cat >>conftest.$ac_ext <<_ACEOF
46490 /* end confdefs.h. */
46491 $ac_includes_default
46503 rm -f conftest.$ac_objext
46504 if { (ac_try="$ac_compile"
46505 case "(($ac_try" in
46506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46507 *) ac_try_echo=$ac_try;;
46509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46510 $as_echo "$ac_try_echo") >&5
46511 (eval "$ac_compile") 2>conftest.er1
46513 grep -v '^ *+' conftest.er1 >conftest.err
46515 cat conftest.err >&5
46516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46517 (exit $ac_status); } && {
46518 test -z "$ac_c_werror_flag" ||
46519 test ! -s conftest.err
46520 } && test -s conftest.$ac_objext; then
46521 ac_cv_have_decl_strtoll=yes
46523 $as_echo "$as_me: failed program was:" >&5
46524 sed 's/^/| /' conftest.$ac_ext >&5
46526 ac_cv_have_decl_strtoll=no
46529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46531 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
46532 $as_echo "$ac_cv_have_decl_strtoll" >&6; }
46533 if test "x$ac_cv_have_decl_strtoll" = x""yes; then
46535 cat >>confdefs.h <<_ACEOF
46536 #define HAVE_DECL_STRTOLL 1
46541 cat >>confdefs.h <<_ACEOF
46542 #define HAVE_DECL_STRTOLL 0
46560 # Code from module strtol:
46571 for ac_func in strtol
46573 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
46574 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
46575 $as_echo_n "checking for $ac_func... " >&6; }
46576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46577 $as_echo_n "(cached) " >&6
46579 cat >conftest.$ac_ext <<_ACEOF
46582 cat confdefs.h >>conftest.$ac_ext
46583 cat >>conftest.$ac_ext <<_ACEOF
46584 /* end confdefs.h. */
46585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46587 #define $ac_func innocuous_$ac_func
46589 /* System header to define __stub macros and hopefully few prototypes,
46590 which can conflict with char $ac_func (); below.
46591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46592 <limits.h> exists even on freestanding compilers. */
46595 # include <limits.h>
46597 # include <assert.h>
46602 /* Override any GCC internal prototype to avoid an error.
46603 Use char because int might match the return type of a GCC
46604 builtin and then its argument prototype would still apply. */
46609 /* The GNU C library defines this for functions which it implements
46610 to always fail with ENOSYS. Some functions are actually named
46611 something starting with __ and the normal name is an alias. */
46612 #if defined __stub_$ac_func || defined __stub___$ac_func
46619 return $ac_func ();
46624 rm -f conftest.$ac_objext conftest$ac_exeext
46625 if { (ac_try="$ac_link"
46626 case "(($ac_try" in
46627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46628 *) ac_try_echo=$ac_try;;
46630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46631 $as_echo "$ac_try_echo") >&5
46632 (eval "$ac_link") 2>conftest.er1
46634 grep -v '^ *+' conftest.er1 >conftest.err
46636 cat conftest.err >&5
46637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46638 (exit $ac_status); } && {
46639 test -z "$ac_c_werror_flag" ||
46640 test ! -s conftest.err
46641 } && test -s conftest$ac_exeext && {
46642 test "$cross_compiling" = yes ||
46643 $as_test_x conftest$ac_exeext
46645 eval "$as_ac_var=yes"
46647 $as_echo "$as_me: failed program was:" >&5
46648 sed 's/^/| /' conftest.$ac_ext >&5
46650 eval "$as_ac_var=no"
46653 rm -rf conftest.dSYM
46654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46655 conftest$ac_exeext conftest.$ac_ext
46657 ac_res=`eval 'as_val=${'$as_ac_var'}
46658 $as_echo "$as_val"'`
46659 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
46660 $as_echo "$ac_res" >&6; }
46661 as_val=`eval 'as_val=${'$as_ac_var'}
46662 $as_echo "$as_val"'`
46663 if test "x$as_val" = x""yes; then
46664 cat >>confdefs.h <<_ACEOF
46665 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
46670 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
46677 # Code from module strtoll:
46681 if test "$ac_cv_type_long_long_int" = yes; then
46691 for ac_func in strtoll
46693 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
46694 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
46695 $as_echo_n "checking for $ac_func... " >&6; }
46696 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46697 $as_echo_n "(cached) " >&6
46699 cat >conftest.$ac_ext <<_ACEOF
46702 cat confdefs.h >>conftest.$ac_ext
46703 cat >>conftest.$ac_ext <<_ACEOF
46704 /* end confdefs.h. */
46705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46707 #define $ac_func innocuous_$ac_func
46709 /* System header to define __stub macros and hopefully few prototypes,
46710 which can conflict with char $ac_func (); below.
46711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46712 <limits.h> exists even on freestanding compilers. */
46715 # include <limits.h>
46717 # include <assert.h>
46722 /* Override any GCC internal prototype to avoid an error.
46723 Use char because int might match the return type of a GCC
46724 builtin and then its argument prototype would still apply. */
46729 /* The GNU C library defines this for functions which it implements
46730 to always fail with ENOSYS. Some functions are actually named
46731 something starting with __ and the normal name is an alias. */
46732 #if defined __stub_$ac_func || defined __stub___$ac_func
46739 return $ac_func ();
46744 rm -f conftest.$ac_objext conftest$ac_exeext
46745 if { (ac_try="$ac_link"
46746 case "(($ac_try" in
46747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46748 *) ac_try_echo=$ac_try;;
46750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46751 $as_echo "$ac_try_echo") >&5
46752 (eval "$ac_link") 2>conftest.er1
46754 grep -v '^ *+' conftest.er1 >conftest.err
46756 cat conftest.err >&5
46757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46758 (exit $ac_status); } && {
46759 test -z "$ac_c_werror_flag" ||
46760 test ! -s conftest.err
46761 } && test -s conftest$ac_exeext && {
46762 test "$cross_compiling" = yes ||
46763 $as_test_x conftest$ac_exeext
46765 eval "$as_ac_var=yes"
46767 $as_echo "$as_me: failed program was:" >&5
46768 sed 's/^/| /' conftest.$ac_ext >&5
46770 eval "$as_ac_var=no"
46773 rm -rf conftest.dSYM
46774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46775 conftest$ac_exeext conftest.$ac_ext
46777 ac_res=`eval 'as_val=${'$as_ac_var'}
46778 $as_echo "$as_val"'`
46779 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
46780 $as_echo "$ac_res" >&6; }
46781 as_val=`eval 'as_val=${'$as_ac_var'}
46782 $as_echo "$as_val"'`
46783 if test "x$as_val" = x""yes; then
46784 cat >>confdefs.h <<_ACEOF
46785 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
46790 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
46796 if test $ac_cv_func_strtoll = no; then
46811 cat >>confdefs.h <<\_ACEOF
46812 #define GNULIB_TEST_STRTOLL 1
46817 # Code from module strtoul:
46828 for ac_func in strtoul
46830 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
46831 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
46832 $as_echo_n "checking for $ac_func... " >&6; }
46833 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46834 $as_echo_n "(cached) " >&6
46836 cat >conftest.$ac_ext <<_ACEOF
46839 cat confdefs.h >>conftest.$ac_ext
46840 cat >>conftest.$ac_ext <<_ACEOF
46841 /* end confdefs.h. */
46842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46844 #define $ac_func innocuous_$ac_func
46846 /* System header to define __stub macros and hopefully few prototypes,
46847 which can conflict with char $ac_func (); below.
46848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46849 <limits.h> exists even on freestanding compilers. */
46852 # include <limits.h>
46854 # include <assert.h>
46859 /* Override any GCC internal prototype to avoid an error.
46860 Use char because int might match the return type of a GCC
46861 builtin and then its argument prototype would still apply. */
46866 /* The GNU C library defines this for functions which it implements
46867 to always fail with ENOSYS. Some functions are actually named
46868 something starting with __ and the normal name is an alias. */
46869 #if defined __stub_$ac_func || defined __stub___$ac_func
46876 return $ac_func ();
46881 rm -f conftest.$ac_objext conftest$ac_exeext
46882 if { (ac_try="$ac_link"
46883 case "(($ac_try" in
46884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46885 *) ac_try_echo=$ac_try;;
46887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46888 $as_echo "$ac_try_echo") >&5
46889 (eval "$ac_link") 2>conftest.er1
46891 grep -v '^ *+' conftest.er1 >conftest.err
46893 cat conftest.err >&5
46894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46895 (exit $ac_status); } && {
46896 test -z "$ac_c_werror_flag" ||
46897 test ! -s conftest.err
46898 } && test -s conftest$ac_exeext && {
46899 test "$cross_compiling" = yes ||
46900 $as_test_x conftest$ac_exeext
46902 eval "$as_ac_var=yes"
46904 $as_echo "$as_me: failed program was:" >&5
46905 sed 's/^/| /' conftest.$ac_ext >&5
46907 eval "$as_ac_var=no"
46910 rm -rf conftest.dSYM
46911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46912 conftest$ac_exeext conftest.$ac_ext
46914 ac_res=`eval 'as_val=${'$as_ac_var'}
46915 $as_echo "$as_val"'`
46916 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
46917 $as_echo "$ac_res" >&6; }
46918 as_val=`eval 'as_val=${'$as_ac_var'}
46919 $as_echo "$as_val"'`
46920 if test "x$as_val" = x""yes; then
46921 cat >>confdefs.h <<_ACEOF
46922 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
46927 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
46934 # Code from module strtoull:
46938 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
46948 for ac_func in strtoull
46950 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
46951 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
46952 $as_echo_n "checking for $ac_func... " >&6; }
46953 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46954 $as_echo_n "(cached) " >&6
46956 cat >conftest.$ac_ext <<_ACEOF
46959 cat confdefs.h >>conftest.$ac_ext
46960 cat >>conftest.$ac_ext <<_ACEOF
46961 /* end confdefs.h. */
46962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46964 #define $ac_func innocuous_$ac_func
46966 /* System header to define __stub macros and hopefully few prototypes,
46967 which can conflict with char $ac_func (); below.
46968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46969 <limits.h> exists even on freestanding compilers. */
46972 # include <limits.h>
46974 # include <assert.h>
46979 /* Override any GCC internal prototype to avoid an error.
46980 Use char because int might match the return type of a GCC
46981 builtin and then its argument prototype would still apply. */
46986 /* The GNU C library defines this for functions which it implements
46987 to always fail with ENOSYS. Some functions are actually named
46988 something starting with __ and the normal name is an alias. */
46989 #if defined __stub_$ac_func || defined __stub___$ac_func
46996 return $ac_func ();
47001 rm -f conftest.$ac_objext conftest$ac_exeext
47002 if { (ac_try="$ac_link"
47003 case "(($ac_try" in
47004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47005 *) ac_try_echo=$ac_try;;
47007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47008 $as_echo "$ac_try_echo") >&5
47009 (eval "$ac_link") 2>conftest.er1
47011 grep -v '^ *+' conftest.er1 >conftest.err
47013 cat conftest.err >&5
47014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47015 (exit $ac_status); } && {
47016 test -z "$ac_c_werror_flag" ||
47017 test ! -s conftest.err
47018 } && test -s conftest$ac_exeext && {
47019 test "$cross_compiling" = yes ||
47020 $as_test_x conftest$ac_exeext
47022 eval "$as_ac_var=yes"
47024 $as_echo "$as_me: failed program was:" >&5
47025 sed 's/^/| /' conftest.$ac_ext >&5
47027 eval "$as_ac_var=no"
47030 rm -rf conftest.dSYM
47031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47032 conftest$ac_exeext conftest.$ac_ext
47034 ac_res=`eval 'as_val=${'$as_ac_var'}
47035 $as_echo "$as_val"'`
47036 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47037 $as_echo "$ac_res" >&6; }
47038 as_val=`eval 'as_val=${'$as_ac_var'}
47039 $as_echo "$as_val"'`
47040 if test "x$as_val" = x""yes; then
47041 cat >>confdefs.h <<_ACEOF
47042 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
47047 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
47053 if test $ac_cv_func_strtoull = no; then
47068 cat >>confdefs.h <<\_ACEOF
47069 #define GNULIB_TEST_STRTOULL 1
47074 # Code from module strtoumax:
47076 { $as_echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
47077 $as_echo_n "checking whether <inttypes.h> defines strtoumax as a macro... " >&6; }
47078 if test "${gl_cv_func_strtoumax_macro+set}" = set; then
47079 $as_echo_n "(cached) " >&6
47081 cat >conftest.$ac_ext <<_ACEOF
47084 cat confdefs.h >>conftest.$ac_ext
47085 cat >>conftest.$ac_ext <<_ACEOF
47086 /* end confdefs.h. */
47087 #include <inttypes.h>
47089 inttypes_h_defines_strtoumax
47092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47093 $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
47094 gl_cv_func_strtoumax_macro=yes
47096 gl_cv_func_strtoumax_macro=no
47101 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_strtoumax_macro" >&5
47102 $as_echo "$gl_cv_func_strtoumax_macro" >&6; }
47104 if test "$gl_cv_func_strtoumax_macro" != yes; then
47114 for ac_func in strtoumax
47116 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47117 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
47118 $as_echo_n "checking for $ac_func... " >&6; }
47119 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47120 $as_echo_n "(cached) " >&6
47122 cat >conftest.$ac_ext <<_ACEOF
47125 cat confdefs.h >>conftest.$ac_ext
47126 cat >>conftest.$ac_ext <<_ACEOF
47127 /* end confdefs.h. */
47128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47130 #define $ac_func innocuous_$ac_func
47132 /* System header to define __stub macros and hopefully few prototypes,
47133 which can conflict with char $ac_func (); below.
47134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47135 <limits.h> exists even on freestanding compilers. */
47138 # include <limits.h>
47140 # include <assert.h>
47145 /* Override any GCC internal prototype to avoid an error.
47146 Use char because int might match the return type of a GCC
47147 builtin and then its argument prototype would still apply. */
47152 /* The GNU C library defines this for functions which it implements
47153 to always fail with ENOSYS. Some functions are actually named
47154 something starting with __ and the normal name is an alias. */
47155 #if defined __stub_$ac_func || defined __stub___$ac_func
47162 return $ac_func ();
47167 rm -f conftest.$ac_objext conftest$ac_exeext
47168 if { (ac_try="$ac_link"
47169 case "(($ac_try" in
47170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47171 *) ac_try_echo=$ac_try;;
47173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47174 $as_echo "$ac_try_echo") >&5
47175 (eval "$ac_link") 2>conftest.er1
47177 grep -v '^ *+' conftest.er1 >conftest.err
47179 cat conftest.err >&5
47180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47181 (exit $ac_status); } && {
47182 test -z "$ac_c_werror_flag" ||
47183 test ! -s conftest.err
47184 } && test -s conftest$ac_exeext && {
47185 test "$cross_compiling" = yes ||
47186 $as_test_x conftest$ac_exeext
47188 eval "$as_ac_var=yes"
47190 $as_echo "$as_me: failed program was:" >&5
47191 sed 's/^/| /' conftest.$ac_ext >&5
47193 eval "$as_ac_var=no"
47196 rm -rf conftest.dSYM
47197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47198 conftest$ac_exeext conftest.$ac_ext
47200 ac_res=`eval 'as_val=${'$as_ac_var'}
47201 $as_echo "$as_val"'`
47202 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47203 $as_echo "$ac_res" >&6; }
47204 as_val=`eval 'as_val=${'$as_ac_var'}
47205 $as_echo "$as_val"'`
47206 if test "x$as_val" = x""yes; then
47207 cat >>confdefs.h <<_ACEOF
47208 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
47213 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
47219 if test $ac_cv_func_strtoumax = no; then
47221 { $as_echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
47222 $as_echo_n "checking whether strtoull is declared... " >&6; }
47223 if test "${ac_cv_have_decl_strtoull+set}" = set; then
47224 $as_echo_n "(cached) " >&6
47226 cat >conftest.$ac_ext <<_ACEOF
47229 cat confdefs.h >>conftest.$ac_ext
47230 cat >>conftest.$ac_ext <<_ACEOF
47231 /* end confdefs.h. */
47232 $ac_includes_default
47244 rm -f conftest.$ac_objext
47245 if { (ac_try="$ac_compile"
47246 case "(($ac_try" in
47247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47248 *) ac_try_echo=$ac_try;;
47250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47251 $as_echo "$ac_try_echo") >&5
47252 (eval "$ac_compile") 2>conftest.er1
47254 grep -v '^ *+' conftest.er1 >conftest.err
47256 cat conftest.err >&5
47257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47258 (exit $ac_status); } && {
47259 test -z "$ac_c_werror_flag" ||
47260 test ! -s conftest.err
47261 } && test -s conftest.$ac_objext; then
47262 ac_cv_have_decl_strtoull=yes
47264 $as_echo "$as_me: failed program was:" >&5
47265 sed 's/^/| /' conftest.$ac_ext >&5
47267 ac_cv_have_decl_strtoull=no
47270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47272 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
47273 $as_echo "$ac_cv_have_decl_strtoull" >&6; }
47274 if test "x$ac_cv_have_decl_strtoull" = x""yes; then
47276 cat >>confdefs.h <<_ACEOF
47277 #define HAVE_DECL_STRTOULL 1
47282 cat >>confdefs.h <<_ACEOF
47283 #define HAVE_DECL_STRTOULL 0
47301 # Code from module symlink:
47310 if test $ac_cv_func_symlink = no; then
47320 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
47323 { $as_echo "$as_me:$LINENO: checking whether symlink handles trailing slash correctly" >&5
47324 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
47325 if test "${gl_cv_func_symlink_works+set}" = set; then
47326 $as_echo_n "(cached) " >&6
47328 if test "$cross_compiling" = yes; then
47329 gl_cv_func_symlink_works="guessing no"
47331 cat >conftest.$ac_ext <<_ACEOF
47334 cat confdefs.h >>conftest.$ac_ext
47335 cat >>conftest.$ac_ext <<_ACEOF
47336 /* end confdefs.h. */
47337 #include <unistd.h>
47343 if (!symlink ("a", "conftest.link/"))
47345 if (symlink ("conftest.f", "conftest.lnk2"))
47347 else if (!symlink ("a", "conftest.lnk2/"))
47355 rm -f conftest$ac_exeext
47356 if { (ac_try="$ac_link"
47357 case "(($ac_try" in
47358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47359 *) ac_try_echo=$ac_try;;
47361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47362 $as_echo "$ac_try_echo") >&5
47363 (eval "$ac_link") 2>&5
47365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47367 { (case "(($ac_try" in
47368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47369 *) ac_try_echo=$ac_try;;
47371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47372 $as_echo "$ac_try_echo") >&5
47373 (eval "$ac_try") 2>&5
47375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47376 (exit $ac_status); }; }; then
47377 gl_cv_func_symlink_works=yes
47379 $as_echo "$as_me: program exited with status $ac_status" >&5
47380 $as_echo "$as_me: failed program was:" >&5
47381 sed 's/^/| /' conftest.$ac_ext >&5
47383 ( exit $ac_status )
47384 gl_cv_func_symlink_works=no
47386 rm -rf conftest.dSYM
47387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
47391 rm -f conftest.f conftest.link conftest.lnk2
47393 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_symlink_works" >&5
47394 $as_echo "$gl_cv_func_symlink_works" >&6; }
47395 if test "$gl_cv_func_symlink_works" != yes; then
47405 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
47417 cat >>confdefs.h <<\_ACEOF
47418 #define GNULIB_TEST_SYMLINK 1
47423 # Code from module symlinkat:
47434 if test $ac_cv_func_symlinkat = no; then
47444 gl_LIBOBJS="$gl_LIBOBJS symlinkat.$ac_objext"
47455 cat >>confdefs.h <<\_ACEOF
47456 #define GNULIB_TEST_SYMLINKAT 1
47461 # Code from module sys_stat:
47483 if test $gl_cv_have_include_next = yes; then
47484 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
47486 { $as_echo "$as_me:$LINENO: checking absolute name of <sys/stat.h>" >&5
47487 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
47488 if test "${gl_cv_next_sys_stat_h+set}" = set; then
47489 $as_echo_n "(cached) " >&6
47492 if test $ac_cv_header_sys_stat_h = yes; then
47495 cat >conftest.$ac_ext <<_ACEOF
47498 cat confdefs.h >>conftest.$ac_ext
47499 cat >>conftest.$ac_ext <<_ACEOF
47500 /* end confdefs.h. */
47501 #include <sys/stat.h>
47505 aix*) gl_absname_cpp="$ac_cpp -C" ;;
47506 *) gl_absname_cpp="$ac_cpp" ;;
47508 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
47509 sed -n '\#/sys/stat.h#{
47510 s#.*"\(.*/sys/stat.h\)".*#\1#
47516 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
47521 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_stat_h" >&5
47522 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
47524 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
47526 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
47527 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
47528 gl_next_as_first_directive='<'sys/stat.h'>'
47530 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
47531 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
47533 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
47539 { $as_echo "$as_me:$LINENO: checking for nlink_t" >&5
47540 $as_echo_n "checking for nlink_t... " >&6; }
47541 if test "${ac_cv_type_nlink_t+set}" = set; then
47542 $as_echo_n "(cached) " >&6
47544 ac_cv_type_nlink_t=no
47545 cat >conftest.$ac_ext <<_ACEOF
47548 cat confdefs.h >>conftest.$ac_ext
47549 cat >>conftest.$ac_ext <<_ACEOF
47550 /* end confdefs.h. */
47551 #include <sys/types.h>
47552 #include <sys/stat.h>
47557 if (sizeof (nlink_t))
47563 rm -f conftest.$ac_objext
47564 if { (ac_try="$ac_compile"
47565 case "(($ac_try" in
47566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47567 *) ac_try_echo=$ac_try;;
47569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47570 $as_echo "$ac_try_echo") >&5
47571 (eval "$ac_compile") 2>conftest.er1
47573 grep -v '^ *+' conftest.er1 >conftest.err
47575 cat conftest.err >&5
47576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47577 (exit $ac_status); } && {
47578 test -z "$ac_c_werror_flag" ||
47579 test ! -s conftest.err
47580 } && test -s conftest.$ac_objext; then
47581 cat >conftest.$ac_ext <<_ACEOF
47584 cat confdefs.h >>conftest.$ac_ext
47585 cat >>conftest.$ac_ext <<_ACEOF
47586 /* end confdefs.h. */
47587 #include <sys/types.h>
47588 #include <sys/stat.h>
47593 if (sizeof ((nlink_t)))
47599 rm -f conftest.$ac_objext
47600 if { (ac_try="$ac_compile"
47601 case "(($ac_try" in
47602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47603 *) ac_try_echo=$ac_try;;
47605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47606 $as_echo "$ac_try_echo") >&5
47607 (eval "$ac_compile") 2>conftest.er1
47609 grep -v '^ *+' conftest.er1 >conftest.err
47611 cat conftest.err >&5
47612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47613 (exit $ac_status); } && {
47614 test -z "$ac_c_werror_flag" ||
47615 test ! -s conftest.err
47616 } && test -s conftest.$ac_objext; then
47619 $as_echo "$as_me: failed program was:" >&5
47620 sed 's/^/| /' conftest.$ac_ext >&5
47622 ac_cv_type_nlink_t=yes
47625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47627 $as_echo "$as_me: failed program was:" >&5
47628 sed 's/^/| /' conftest.$ac_ext >&5
47633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47635 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_nlink_t" >&5
47636 $as_echo "$ac_cv_type_nlink_t" >&6; }
47637 if test "x$ac_cv_type_nlink_t" = x""yes; then
47641 cat >>confdefs.h <<\_ACEOF
47642 #define nlink_t int
47661 for gl_func in fchmodat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
47662 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
47663 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
47664 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
47665 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
47666 $as_echo_n "(cached) " >&6
47668 cat >conftest.$ac_ext <<_ACEOF
47671 cat confdefs.h >>conftest.$ac_ext
47672 cat >>conftest.$ac_ext <<_ACEOF
47673 /* end confdefs.h. */
47674 #include <sys/stat.h>
47685 rm -f conftest.$ac_objext
47686 if { (ac_try="$ac_compile"
47687 case "(($ac_try" in
47688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47689 *) ac_try_echo=$ac_try;;
47691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47692 $as_echo "$ac_try_echo") >&5
47693 (eval "$ac_compile") 2>conftest.er1
47695 grep -v '^ *+' conftest.er1 >conftest.err
47697 cat conftest.err >&5
47698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47699 (exit $ac_status); } && {
47700 test -z "$ac_c_werror_flag" ||
47701 test ! -s conftest.err
47702 } && test -s conftest.$ac_objext; then
47703 eval "$as_gl_Symbol=yes"
47705 $as_echo "$as_me: failed program was:" >&5
47706 sed 's/^/| /' conftest.$ac_ext >&5
47708 eval "$as_gl_Symbol=no"
47711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47713 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
47714 $as_echo "$as_val"'`
47715 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47716 $as_echo "$ac_res" >&6; }
47717 as_val=`eval 'as_val=${'$as_gl_Symbol'}
47718 $as_echo "$as_val"'`
47719 if test "x$as_val" = x""yes; then
47720 cat >>confdefs.h <<_ACEOF
47721 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
47724 eval ac_cv_have_decl_$gl_func=yes
47730 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
47731 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
47732 if test -z "$MKDIR_P"; then
47733 if test "${ac_cv_path_mkdir+set}" = set; then
47734 $as_echo_n "(cached) " >&6
47736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47737 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
47740 test -z "$as_dir" && as_dir=.
47741 for ac_prog in mkdir gmkdir; do
47742 for ac_exec_ext in '' $ac_executable_extensions; do
47743 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
47744 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
47745 'mkdir (GNU coreutils) '* | \
47746 'mkdir (coreutils) '* | \
47747 'mkdir (fileutils) '4.1*)
47748 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
47758 if test "${ac_cv_path_mkdir+set}" = set; then
47759 MKDIR_P="$ac_cv_path_mkdir -p"
47761 # As a last resort, use the slow shell script. Don't cache a
47762 # value for MKDIR_P within a source directory, because that will
47763 # break other packages using the cache if that directory is
47764 # removed, or if the value is a relative name.
47765 test -d ./--version && rmdir ./--version
47766 MKDIR_P="$ac_install_sh -d"
47769 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
47770 $as_echo "$MKDIR_P" >&6; }
47773 # Code from module sys_time:
47777 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
47778 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
47779 if test -z "$MKDIR_P"; then
47780 if test "${ac_cv_path_mkdir+set}" = set; then
47781 $as_echo_n "(cached) " >&6
47783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47784 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
47787 test -z "$as_dir" && as_dir=.
47788 for ac_prog in mkdir gmkdir; do
47789 for ac_exec_ext in '' $ac_executable_extensions; do
47790 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
47791 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
47792 'mkdir (GNU coreutils) '* | \
47793 'mkdir (coreutils) '* | \
47794 'mkdir (fileutils) '4.1*)
47795 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
47805 if test "${ac_cv_path_mkdir+set}" = set; then
47806 MKDIR_P="$ac_cv_path_mkdir -p"
47808 # As a last resort, use the slow shell script. Don't cache a
47809 # value for MKDIR_P within a source directory, because that will
47810 # break other packages using the cache if that directory is
47811 # removed, or if the value is a relative name.
47812 test -d ./--version && rmdir ./--version
47813 MKDIR_P="$ac_install_sh -d"
47816 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
47817 $as_echo "$MKDIR_P" >&6; }
47820 # Code from module sysexits:
47828 if test $ac_cv_header_sysexits_h = yes; then
47844 if test $gl_cv_have_include_next = yes; then
47845 gl_cv_next_sysexits_h='<'sysexits.h'>'
47847 { $as_echo "$as_me:$LINENO: checking absolute name of <sysexits.h>" >&5
47848 $as_echo_n "checking absolute name of <sysexits.h>... " >&6; }
47849 if test "${gl_cv_next_sysexits_h+set}" = set; then
47850 $as_echo_n "(cached) " >&6
47853 if test $ac_cv_header_sysexits_h = yes; then
47856 cat >conftest.$ac_ext <<_ACEOF
47859 cat confdefs.h >>conftest.$ac_ext
47860 cat >>conftest.$ac_ext <<_ACEOF
47861 /* end confdefs.h. */
47862 #include <sysexits.h>
47866 aix*) gl_absname_cpp="$ac_cpp -C" ;;
47867 *) gl_absname_cpp="$ac_cpp" ;;
47869 gl_cv_next_sysexits_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
47870 sed -n '\#/sysexits.h#{
47871 s#.*"\(.*/sysexits.h\)".*#\1#
47877 gl_cv_next_sysexits_h='<'sysexits.h'>'
47882 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sysexits_h" >&5
47883 $as_echo "$gl_cv_next_sysexits_h" >&6; }
47885 NEXT_SYSEXITS_H=$gl_cv_next_sysexits_h
47887 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
47888 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
47889 gl_next_as_first_directive='<'sysexits.h'>'
47891 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
47892 gl_next_as_first_directive=$gl_cv_next_sysexits_h
47894 NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H=$gl_next_as_first_directive
47899 cat >conftest.$ac_ext <<_ACEOF
47902 cat confdefs.h >>conftest.$ac_ext
47903 cat >>conftest.$ac_ext <<_ACEOF
47904 /* end confdefs.h. */
47905 #include <sysexits.h>
47917 case EX_UNAVAILABLE:
47934 rm -f conftest.$ac_objext
47935 if { (ac_try="$ac_compile"
47936 case "(($ac_try" in
47937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47938 *) ac_try_echo=$ac_try;;
47940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47941 $as_echo "$ac_try_echo") >&5
47942 (eval "$ac_compile") 2>conftest.er1
47944 grep -v '^ *+' conftest.er1 >conftest.err
47946 cat conftest.err >&5
47947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47948 (exit $ac_status); } && {
47949 test -z "$ac_c_werror_flag" ||
47950 test ! -s conftest.err
47951 } && test -s conftest.$ac_objext; then
47954 $as_echo "$as_me: failed program was:" >&5
47955 sed 's/^/| /' conftest.$ac_ext >&5
47957 SYSEXITS_H=sysexits.h
47960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47963 SYSEXITS_H=sysexits.h
47968 # Code from module tempname:
47980 gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
47986 # Code from module time:
47990 # Code from module time_r:
48001 if test $ac_cv_have_decl_localtime_r = no; then
48002 HAVE_DECL_LOCALTIME_R=0
48011 if test $ac_cv_func_localtime_r = yes; then
48013 { $as_echo "$as_me:$LINENO: checking whether localtime_r is compatible with its POSIX signature" >&5
48014 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
48015 if test "${gl_cv_time_r_posix+set}" = set; then
48016 $as_echo_n "(cached) " >&6
48018 cat >conftest.$ac_ext <<_ACEOF
48021 cat confdefs.h >>conftest.$ac_ext
48022 cat >>conftest.$ac_ext <<_ACEOF
48023 /* end confdefs.h. */
48028 /* We don't need to append 'restrict's to the argument types,
48029 even though the POSIX signature has the 'restrict's,
48030 since C99 says they can't affect type compatibility. */
48031 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
48033 /* Check the return type is a pointer.
48034 On HP-UX 10 it is 'int'. */
48035 *localtime_r (0, 0);
48041 rm -f conftest.$ac_objext
48042 if { (ac_try="$ac_compile"
48043 case "(($ac_try" in
48044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48045 *) ac_try_echo=$ac_try;;
48047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48048 $as_echo "$ac_try_echo") >&5
48049 (eval "$ac_compile") 2>conftest.er1
48051 grep -v '^ *+' conftest.er1 >conftest.err
48053 cat conftest.err >&5
48054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48055 (exit $ac_status); } && {
48056 test -z "$ac_c_werror_flag" ||
48057 test ! -s conftest.err
48058 } && test -s conftest.$ac_objext; then
48059 gl_cv_time_r_posix=yes
48061 $as_echo "$as_me: failed program was:" >&5
48062 sed 's/^/| /' conftest.$ac_ext >&5
48064 gl_cv_time_r_posix=no
48067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48070 { $as_echo "$as_me:$LINENO: result: $gl_cv_time_r_posix" >&5
48071 $as_echo "$gl_cv_time_r_posix" >&6; }
48072 if test $gl_cv_time_r_posix = yes; then
48073 REPLACE_LOCALTIME_R=0
48075 REPLACE_LOCALTIME_R=1
48080 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
48089 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
48103 cat >>confdefs.h <<\_ACEOF
48104 #define GNULIB_TEST_TIME_R 1
48109 # Code from module timespec:
48113 # Code from module unistd:
48132 if test $gl_cv_have_include_next = yes; then
48133 gl_cv_next_unistd_h='<'unistd.h'>'
48135 { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
48136 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
48137 if test "${gl_cv_next_unistd_h+set}" = set; then
48138 $as_echo_n "(cached) " >&6
48141 if test $ac_cv_header_unistd_h = yes; then
48144 cat >conftest.$ac_ext <<_ACEOF
48147 cat confdefs.h >>conftest.$ac_ext
48148 cat >>conftest.$ac_ext <<_ACEOF
48149 /* end confdefs.h. */
48150 #include <unistd.h>
48154 aix*) gl_absname_cpp="$ac_cpp -C" ;;
48155 *) gl_absname_cpp="$ac_cpp" ;;
48157 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
48158 sed -n '\#/unistd.h#{
48159 s#.*"\(.*/unistd.h\)".*#\1#
48165 gl_cv_next_unistd_h='<'unistd.h'>'
48170 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
48171 $as_echo "$gl_cv_next_unistd_h" >&6; }
48173 NEXT_UNISTD_H=$gl_cv_next_unistd_h
48175 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
48176 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
48177 gl_next_as_first_directive='<'unistd.h'>'
48179 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
48180 gl_next_as_first_directive=$gl_cv_next_unistd_h
48182 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
48187 if test $ac_cv_header_unistd_h = yes; then
48234 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 pipe pipe2 pread pwrite readlink readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do
48235 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
48236 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
48237 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
48238 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
48239 $as_echo_n "(cached) " >&6
48241 cat >conftest.$ac_ext <<_ACEOF
48244 cat confdefs.h >>conftest.$ac_ext
48245 cat >>conftest.$ac_ext <<_ACEOF
48246 /* end confdefs.h. */
48247 #include <unistd.h>
48248 /* Some systems declare various items in the wrong headers. */
48249 #if !(defined __GLIBC__ && !defined __UCLIBC__)
48250 # include <fcntl.h>
48251 # include <stdio.h>
48252 # include <stdlib.h>
48253 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
48267 rm -f conftest.$ac_objext
48268 if { (ac_try="$ac_compile"
48269 case "(($ac_try" in
48270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48271 *) ac_try_echo=$ac_try;;
48273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48274 $as_echo "$ac_try_echo") >&5
48275 (eval "$ac_compile") 2>conftest.er1
48277 grep -v '^ *+' conftest.er1 >conftest.err
48279 cat conftest.err >&5
48280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48281 (exit $ac_status); } && {
48282 test -z "$ac_c_werror_flag" ||
48283 test ! -s conftest.err
48284 } && test -s conftest.$ac_objext; then
48285 eval "$as_gl_Symbol=yes"
48287 $as_echo "$as_me: failed program was:" >&5
48288 sed 's/^/| /' conftest.$ac_ext >&5
48290 eval "$as_gl_Symbol=no"
48293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48295 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
48296 $as_echo "$as_val"'`
48297 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
48298 $as_echo "$ac_res" >&6; }
48299 as_val=`eval 'as_val=${'$as_gl_Symbol'}
48300 $as_echo "$as_val"'`
48301 if test "x$as_val" = x""yes; then
48302 cat >>confdefs.h <<_ACEOF
48303 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
48306 eval ac_cv_have_decl_$gl_func=yes
48312 # Code from module unistd-safer:
48328 gl_LIBOBJS="$gl_LIBOBJS dup-safer.$ac_objext"
48338 gl_LIBOBJS="$gl_LIBOBJS fd-safer.$ac_objext"
48348 gl_LIBOBJS="$gl_LIBOBJS pipe-safer.$ac_objext"
48351 # Code from module unitypes:
48354 if { test "$HAVE_LIBUNISTRING" != yes \
48359 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
48360 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
48361 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
48362 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
48363 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
48373 LIBUNISTRING_UNITYPES_H='unitypes.h'
48375 LIBUNISTRING_UNITYPES_H=
48379 # Code from module uniwidth/base:
48382 if { test "$HAVE_LIBUNISTRING" != yes \
48387 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
48388 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
48389 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
48390 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
48391 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
48401 LIBUNISTRING_UNIWIDTH_H='uniwidth.h'
48403 LIBUNISTRING_UNIWIDTH_H=
48407 # Code from module uniwidth/width:
48410 if { test "$HAVE_LIBUNISTRING" != yes \
48415 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
48416 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
48417 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
48418 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
48419 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
48429 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE=
48430 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#'
48432 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#'
48433 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE=
48437 # Code from module unlink:
48441 { $as_echo "$as_me:$LINENO: checking whether unlink honors trailing slashes" >&5
48442 $as_echo_n "checking whether unlink honors trailing slashes... " >&6; }
48443 if test "${gl_cv_func_unlink_honors_slashes+set}" = set; then
48444 $as_echo_n "(cached) " >&6
48446 touch conftest.file
48447 # Assume that if we have lstat, we can also check symlinks.
48448 if test $ac_cv_func_lstat = yes; then
48449 ln -s conftest.file conftest.lnk
48451 if test "$cross_compiling" = yes; then
48452 gl_cv_func_unlink_honors_slashes="guessing no"
48454 cat >conftest.$ac_ext <<_ACEOF
48457 cat confdefs.h >>conftest.$ac_ext
48458 cat >>conftest.$ac_ext <<_ACEOF
48459 /* end confdefs.h. */
48460 #include <unistd.h>
48467 if (!unlink ("conftest.file/"))
48469 else if (errno != ENOTDIR)
48472 if (!unlink ("conftest.lnk/"))
48474 else if (errno != ENOTDIR)
48483 rm -f conftest$ac_exeext
48484 if { (ac_try="$ac_link"
48485 case "(($ac_try" in
48486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48487 *) ac_try_echo=$ac_try;;
48489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48490 $as_echo "$ac_try_echo") >&5
48491 (eval "$ac_link") 2>&5
48493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48494 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48495 { (case "(($ac_try" in
48496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48497 *) ac_try_echo=$ac_try;;
48499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48500 $as_echo "$ac_try_echo") >&5
48501 (eval "$ac_try") 2>&5
48503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48504 (exit $ac_status); }; }; then
48505 gl_cv_func_unlink_honors_slashes=yes
48507 $as_echo "$as_me: program exited with status $ac_status" >&5
48508 $as_echo "$as_me: failed program was:" >&5
48509 sed 's/^/| /' conftest.$ac_ext >&5
48511 ( exit $ac_status )
48512 gl_cv_func_unlink_honors_slashes=no
48514 rm -rf conftest.dSYM
48515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48519 rm -f conftest.file conftest.lnk
48521 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_unlink_honors_slashes" >&5
48522 $as_echo "$gl_cv_func_unlink_honors_slashes" >&6; }
48523 { $as_echo "$as_me:$LINENO: checking whether unlink of a parent directory fails as it should" >&5
48524 $as_echo_n "checking whether unlink of a parent directory fails as it should... " >&6; }
48525 if test "${gl_cv_func_unlink_parent_fails+set}" = set; then
48526 $as_echo_n "(cached) " >&6
48531 # Use the mktemp program if available. If not available, hide the error
48533 tmp=`(umask 077 && mktemp -d /tmp/gtXXXXXX) 2>/dev/null` &&
48534 test -n "$tmp" && test -d "$tmp"
48537 # Use a simple mkdir command. It is guaranteed to fail if the directory
48538 # already exists. $RANDOM is bash specific and expands to empty in shells
48539 # other than bash, ksh and zsh. Its use does not increase security;
48540 # rather, it minimizes the probability of failure in a very cluttered /tmp
48542 tmp=/tmp/gt$$-$RANDOM
48543 (umask 077 && mkdir "$tmp")
48545 mkdir "$tmp/subdir"
48546 GL_SUBDIR_FOR_UNLINK="$tmp/subdir"
48547 export GL_SUBDIR_FOR_UNLINK
48548 if test "$cross_compiling" = yes; then
48549 gl_cv_func_unlink_parent_fails="guessing no"
48551 cat >conftest.$ac_ext <<_ACEOF
48554 cat confdefs.h >>conftest.$ac_ext
48555 cat >>conftest.$ac_ext <<_ACEOF
48556 /* end confdefs.h. */
48558 #include <stdlib.h>
48559 #include <unistd.h>
48563 if (chdir (getenv ("GL_SUBDIR_FOR_UNLINK")) != 0)
48565 else if (unlink ("..") == 0)
48571 rm -f conftest$ac_exeext
48572 if { (ac_try="$ac_link"
48573 case "(($ac_try" in
48574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48575 *) ac_try_echo=$ac_try;;
48577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48578 $as_echo "$ac_try_echo") >&5
48579 (eval "$ac_link") 2>&5
48581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48583 { (case "(($ac_try" in
48584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48585 *) ac_try_echo=$ac_try;;
48587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48588 $as_echo "$ac_try_echo") >&5
48589 (eval "$ac_try") 2>&5
48591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48592 (exit $ac_status); }; }; then
48593 gl_cv_func_unlink_parent_fails=yes
48595 $as_echo "$as_me: program exited with status $ac_status" >&5
48596 $as_echo "$as_me: failed program was:" >&5
48597 sed 's/^/| /' conftest.$ac_ext >&5
48599 ( exit $ac_status )
48600 gl_cv_func_unlink_parent_fails=no
48602 rm -rf conftest.dSYM
48603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48607 unset GL_SUBDIR_FOR_UNLINK
48610 gl_cv_func_unlink_parent_fails="guessing no"
48614 gl_cv_func_unlink_parent_fails="guessing yes"
48619 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_unlink_parent_fails" >&5
48620 $as_echo "$gl_cv_func_unlink_parent_fails" >&6; }
48621 case "$gl_cv_func_unlink_parent_fails" in
48624 cat >>confdefs.h <<\_ACEOF
48625 #define UNLINK_PARENT_BUG 1
48630 if test "$gl_cv_func_unlink_honors_slashes" != yes \
48631 || { case "$gl_cv_func_unlink_parent_fails" in
48645 gl_LIBOBJS="$gl_LIBOBJS unlink.$ac_objext"
48656 cat >>confdefs.h <<\_ACEOF
48657 #define GNULIB_TEST_UNLINK 1
48662 # Code from module unlinkdir:
48680 gl_LIBOBJS="$gl_LIBOBJS unlinkdir.$ac_objext"
48683 # The Hurd, the Linux kernel, the FreeBSD kernel version 2.2 and later,
48684 # Cygwin, and mingw never let anyone (even root) unlink directories.
48685 # If anyone knows of another system for which unlink can never
48686 # remove a directory, please report it to <bug-coreutils@gnu.org>.
48687 # Unfortunately this is difficult to test for, since it requires root access
48688 # and might create garbage in the file system,
48689 # so the code below simply relies on the kernel name and version number.
48692 linux-* | linux | \
48693 freebsd2.2* | freebsd[3-9]* | freebsd[1-9][0-9]* | \
48697 cat >>confdefs.h <<\_ACEOF
48698 #define UNLINK_CANNOT_UNLINK_DIR 1
48703 # Code from module unlocked-io:
48706 cat >>confdefs.h <<\_ACEOF
48707 #define USE_UNLOCKED_IO 1
48766 # Code from module unsetenv:
48773 if test $ac_cv_have_decl_unsetenv = no; then
48774 HAVE_DECL_UNSETENV=0
48777 for ac_func in unsetenv
48779 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
48780 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
48781 $as_echo_n "checking for $ac_func... " >&6; }
48782 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48783 $as_echo_n "(cached) " >&6
48785 cat >conftest.$ac_ext <<_ACEOF
48788 cat confdefs.h >>conftest.$ac_ext
48789 cat >>conftest.$ac_ext <<_ACEOF
48790 /* end confdefs.h. */
48791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48793 #define $ac_func innocuous_$ac_func
48795 /* System header to define __stub macros and hopefully few prototypes,
48796 which can conflict with char $ac_func (); below.
48797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48798 <limits.h> exists even on freestanding compilers. */
48801 # include <limits.h>
48803 # include <assert.h>
48808 /* Override any GCC internal prototype to avoid an error.
48809 Use char because int might match the return type of a GCC
48810 builtin and then its argument prototype would still apply. */
48815 /* The GNU C library defines this for functions which it implements
48816 to always fail with ENOSYS. Some functions are actually named
48817 something starting with __ and the normal name is an alias. */
48818 #if defined __stub_$ac_func || defined __stub___$ac_func
48825 return $ac_func ();
48830 rm -f conftest.$ac_objext conftest$ac_exeext
48831 if { (ac_try="$ac_link"
48832 case "(($ac_try" in
48833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48834 *) ac_try_echo=$ac_try;;
48836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48837 $as_echo "$ac_try_echo") >&5
48838 (eval "$ac_link") 2>conftest.er1
48840 grep -v '^ *+' conftest.er1 >conftest.err
48842 cat conftest.err >&5
48843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48844 (exit $ac_status); } && {
48845 test -z "$ac_c_werror_flag" ||
48846 test ! -s conftest.err
48847 } && test -s conftest$ac_exeext && {
48848 test "$cross_compiling" = yes ||
48849 $as_test_x conftest$ac_exeext
48851 eval "$as_ac_var=yes"
48853 $as_echo "$as_me: failed program was:" >&5
48854 sed 's/^/| /' conftest.$ac_ext >&5
48856 eval "$as_ac_var=no"
48859 rm -rf conftest.dSYM
48860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48861 conftest$ac_exeext conftest.$ac_ext
48863 ac_res=`eval 'as_val=${'$as_ac_var'}
48864 $as_echo "$as_val"'`
48865 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
48866 $as_echo "$ac_res" >&6; }
48867 as_val=`eval 'as_val=${'$as_ac_var'}
48868 $as_echo "$as_val"'`
48869 if test "x$as_val" = x""yes; then
48870 cat >>confdefs.h <<_ACEOF
48871 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
48877 if test $ac_cv_func_unsetenv = no; then
48886 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
48898 { $as_echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
48899 $as_echo_n "checking for unsetenv() return type... " >&6; }
48900 if test "${gt_cv_func_unsetenv_ret+set}" = set; then
48901 $as_echo_n "(cached) " >&6
48903 cat >conftest.$ac_ext <<_ACEOF
48906 cat confdefs.h >>conftest.$ac_ext
48907 cat >>conftest.$ac_ext <<_ACEOF
48908 /* end confdefs.h. */
48911 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
48912 #include <stdlib.h>
48917 #if defined(__STDC__) || defined(__cplusplus)
48918 int unsetenv (const char *name);
48931 rm -f conftest.$ac_objext
48932 if { (ac_try="$ac_compile"
48933 case "(($ac_try" in
48934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48935 *) ac_try_echo=$ac_try;;
48937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48938 $as_echo "$ac_try_echo") >&5
48939 (eval "$ac_compile") 2>conftest.er1
48941 grep -v '^ *+' conftest.er1 >conftest.err
48943 cat conftest.err >&5
48944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48945 (exit $ac_status); } && {
48946 test -z "$ac_c_werror_flag" ||
48947 test ! -s conftest.err
48948 } && test -s conftest.$ac_objext; then
48949 gt_cv_func_unsetenv_ret='int'
48951 $as_echo "$as_me: failed program was:" >&5
48952 sed 's/^/| /' conftest.$ac_ext >&5
48954 gt_cv_func_unsetenv_ret='void'
48957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48959 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
48960 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
48961 if test $gt_cv_func_unsetenv_ret = 'void'; then
48963 cat >>confdefs.h <<\_ACEOF
48964 #define VOID_UNSETENV 1
48976 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
48980 { $as_echo "$as_me:$LINENO: checking whether unsetenv obeys POSIX" >&5
48981 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
48982 if test "${gl_cv_func_unsetenv_works+set}" = set; then
48983 $as_echo_n "(cached) " >&6
48985 if test "$cross_compiling" = yes; then
48986 gl_cv_func_unsetenv_works="guessing no"
48988 cat >conftest.$ac_ext <<_ACEOF
48991 cat confdefs.h >>conftest.$ac_ext
48992 cat >>conftest.$ac_ext <<_ACEOF
48993 /* end confdefs.h. */
48995 #include <stdlib.h>
48997 extern char **environ;
49003 char entry1[] = "a=1";
49004 char entry2[] = "b=2";
49005 char *env[] = { entry1, entry2, NULL };
49006 if (putenv ((char *) "a=1")) return 1;
49007 if (putenv (entry2)) return 2;
49010 if (getenv ("a")) return 3;
49011 if (!unsetenv ("") || errno != EINVAL) return 4;
49014 if (!getenv ("a")) return 5;
49017 if (getenv ("a")) return 6;
49023 rm -f conftest$ac_exeext
49024 if { (ac_try="$ac_link"
49025 case "(($ac_try" in
49026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49027 *) ac_try_echo=$ac_try;;
49029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49030 $as_echo "$ac_try_echo") >&5
49031 (eval "$ac_link") 2>&5
49033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49035 { (case "(($ac_try" in
49036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49037 *) ac_try_echo=$ac_try;;
49039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49040 $as_echo "$ac_try_echo") >&5
49041 (eval "$ac_try") 2>&5
49043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49044 (exit $ac_status); }; }; then
49045 gl_cv_func_unsetenv_works=yes
49047 $as_echo "$as_me: program exited with status $ac_status" >&5
49048 $as_echo "$as_me: failed program was:" >&5
49049 sed 's/^/| /' conftest.$ac_ext >&5
49051 ( exit $ac_status )
49052 gl_cv_func_unsetenv_works=no
49054 rm -rf conftest.dSYM
49055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49060 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_unsetenv_works" >&5
49061 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
49062 if test "$gl_cv_func_unsetenv_works" != yes; then
49072 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
49084 cat >>confdefs.h <<\_ACEOF
49085 #define GNULIB_TEST_UNSETENV 1
49090 # Code from module utimens:
49100 gl_LIBOBJS="$gl_LIBOBJS utimens.$ac_objext"
49121 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
49122 { $as_echo "$as_me:$LINENO: checking whether futimesat handles NULL file" >&5
49123 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
49124 if test "${gl_cv_func_futimesat_works+set}" = set; then
49125 $as_echo_n "(cached) " >&6
49127 touch conftest.file
49128 if test "$cross_compiling" = yes; then
49129 gl_cv_func_futimesat_works="guessing no"
49131 cat >conftest.$ac_ext <<_ACEOF
49134 cat confdefs.h >>conftest.$ac_ext
49135 cat >>conftest.$ac_ext <<_ACEOF
49136 /* end confdefs.h. */
49138 #include <stddef.h>
49139 #include <sys/times.h>
49145 int fd = open ("conftest.file", O_RDWR);
49146 if (fd < 0) return 1;
49147 if (futimesat (fd, NULL, NULL)) return 2;
49153 rm -f conftest$ac_exeext
49154 if { (ac_try="$ac_link"
49155 case "(($ac_try" in
49156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49157 *) ac_try_echo=$ac_try;;
49159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49160 $as_echo "$ac_try_echo") >&5
49161 (eval "$ac_link") 2>&5
49163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49165 { (case "(($ac_try" in
49166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49167 *) ac_try_echo=$ac_try;;
49169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49170 $as_echo "$ac_try_echo") >&5
49171 (eval "$ac_try") 2>&5
49173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49174 (exit $ac_status); }; }; then
49175 gl_cv_func_futimesat_works=yes
49177 $as_echo "$as_me: program exited with status $ac_status" >&5
49178 $as_echo "$as_me: failed program was:" >&5
49179 sed 's/^/| /' conftest.$ac_ext >&5
49181 ( exit $ac_status )
49182 gl_cv_func_futimesat_works=no
49184 rm -rf conftest.dSYM
49185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49189 rm -f conftest.file
49191 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_futimesat_works" >&5
49192 $as_echo "$gl_cv_func_futimesat_works" >&6; }
49193 if test "$gl_cv_func_futimesat_works" != yes; then
49195 cat >>confdefs.h <<\_ACEOF
49196 #define FUTIMESAT_NULL_BUG 1
49202 # Code from module utimensat:
49212 if test $ac_cv_func_utimensat = no; then
49222 gl_LIBOBJS="$gl_LIBOBJS utimensat.$ac_objext"
49225 { $as_echo "$as_me:$LINENO: checking whether utimensat works" >&5
49226 $as_echo_n "checking whether utimensat works... " >&6; }
49227 if test "${gl_cv_func_utimensat_works+set}" = set; then
49228 $as_echo_n "(cached) " >&6
49230 if test "$cross_compiling" = yes; then
49231 gl_cv_func_utimensat_works="guessing no"
49233 cat >conftest.$ac_ext <<_ACEOF
49236 cat confdefs.h >>conftest.$ac_ext
49237 cat >>conftest.$ac_ext <<_ACEOF
49238 /* end confdefs.h. */
49241 #include <sys/stat.h>
49242 #include <unistd.h>
49248 const char *f = "conftest.file";
49249 if (close (creat (f, 0600)))
49251 /* Test whether the AT_SYMLINK_NOFOLLOW flag is supported. */
49253 if (utimensat (AT_FDCWD, f, NULL, AT_SYMLINK_NOFOLLOW))
49256 /* Test whether UTIME_NOW and UTIME_OMIT work. */
49258 struct timespec ts[2] = { { 1, UTIME_OMIT }, { 1, UTIME_NOW } };
49259 if (utimensat (AT_FDCWD, f, ts, 0))
49264 struct timespec ts[2] = { { 1, UTIME_NOW }, { 1, UTIME_OMIT } };
49266 if (utimensat (AT_FDCWD, f, ts, 0))
49270 else if (st.st_ctime < st.st_atime)
49279 rm -f conftest$ac_exeext
49280 if { (ac_try="$ac_link"
49281 case "(($ac_try" in
49282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49283 *) ac_try_echo=$ac_try;;
49285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49286 $as_echo "$ac_try_echo") >&5
49287 (eval "$ac_link") 2>&5
49289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49291 { (case "(($ac_try" in
49292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49293 *) ac_try_echo=$ac_try;;
49295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49296 $as_echo "$ac_try_echo") >&5
49297 (eval "$ac_try") 2>&5
49299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49300 (exit $ac_status); }; }; then
49301 cat >conftest.$ac_ext <<_ACEOF
49304 cat confdefs.h >>conftest.$ac_ext
49305 cat >>conftest.$ac_ext <<_ACEOF
49306 /* end confdefs.h. */
49309 /* The Linux kernel added utimensat in 2.6.22, but has bugs with UTIME_OMIT
49310 in several file systems as recently as 2.6.32. Always replace utimensat
49311 to support older kernels. */
49323 rm -f conftest.$ac_objext
49324 if { (ac_try="$ac_compile"
49325 case "(($ac_try" in
49326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49327 *) ac_try_echo=$ac_try;;
49329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49330 $as_echo "$ac_try_echo") >&5
49331 (eval "$ac_compile") 2>conftest.er1
49333 grep -v '^ *+' conftest.er1 >conftest.err
49335 cat conftest.err >&5
49336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49337 (exit $ac_status); } && {
49338 test -z "$ac_c_werror_flag" ||
49339 test ! -s conftest.err
49340 } && test -s conftest.$ac_objext; then
49341 gl_cv_func_utimensat_works=yes
49343 $as_echo "$as_me: failed program was:" >&5
49344 sed 's/^/| /' conftest.$ac_ext >&5
49346 gl_cv_func_utimensat_works="needs runtime check"
49349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49351 $as_echo "$as_me: program exited with status $ac_status" >&5
49352 $as_echo "$as_me: failed program was:" >&5
49353 sed 's/^/| /' conftest.$ac_ext >&5
49355 ( exit $ac_status )
49356 gl_cv_func_utimensat_works=no
49358 rm -rf conftest.dSYM
49359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49364 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_utimensat_works" >&5
49365 $as_echo "$gl_cv_func_utimensat_works" >&6; }
49366 if test "$gl_cv_func_utimensat_works" != yes; then
49367 REPLACE_UTIMENSAT=1
49376 gl_LIBOBJS="$gl_LIBOBJS utimensat.$ac_objext"
49388 cat >>confdefs.h <<\_ACEOF
49389 #define GNULIB_TEST_UTIMENSAT 1
49394 # Code from module vasnprintf:
49402 if test $ac_cv_func_vasnprintf = no; then
49418 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
49428 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
49438 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
49448 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
49450 if test $ac_cv_func_vasnprintf = yes; then
49452 cat >>confdefs.h <<\_ACEOF
49453 #define REPLACE_VASNPRINTF 1
49468 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
49469 $as_echo_n "checking for ptrdiff_t... " >&6; }
49470 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
49471 $as_echo_n "(cached) " >&6
49473 ac_cv_type_ptrdiff_t=no
49474 cat >conftest.$ac_ext <<_ACEOF
49477 cat confdefs.h >>conftest.$ac_ext
49478 cat >>conftest.$ac_ext <<_ACEOF
49479 /* end confdefs.h. */
49480 $ac_includes_default
49484 if (sizeof (ptrdiff_t))
49490 rm -f conftest.$ac_objext
49491 if { (ac_try="$ac_compile"
49492 case "(($ac_try" in
49493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49494 *) ac_try_echo=$ac_try;;
49496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49497 $as_echo "$ac_try_echo") >&5
49498 (eval "$ac_compile") 2>conftest.er1
49500 grep -v '^ *+' conftest.er1 >conftest.err
49502 cat conftest.err >&5
49503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49504 (exit $ac_status); } && {
49505 test -z "$ac_c_werror_flag" ||
49506 test ! -s conftest.err
49507 } && test -s conftest.$ac_objext; then
49508 cat >conftest.$ac_ext <<_ACEOF
49511 cat confdefs.h >>conftest.$ac_ext
49512 cat >>conftest.$ac_ext <<_ACEOF
49513 /* end confdefs.h. */
49514 $ac_includes_default
49518 if (sizeof ((ptrdiff_t)))
49524 rm -f conftest.$ac_objext
49525 if { (ac_try="$ac_compile"
49526 case "(($ac_try" in
49527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49528 *) ac_try_echo=$ac_try;;
49530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49531 $as_echo "$ac_try_echo") >&5
49532 (eval "$ac_compile") 2>conftest.er1
49534 grep -v '^ *+' conftest.er1 >conftest.err
49536 cat conftest.err >&5
49537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49538 (exit $ac_status); } && {
49539 test -z "$ac_c_werror_flag" ||
49540 test ! -s conftest.err
49541 } && test -s conftest.$ac_objext; then
49544 $as_echo "$as_me: failed program was:" >&5
49545 sed 's/^/| /' conftest.$ac_ext >&5
49547 ac_cv_type_ptrdiff_t=yes
49550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49552 $as_echo "$as_me: failed program was:" >&5
49553 sed 's/^/| /' conftest.$ac_ext >&5
49558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49560 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
49561 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
49562 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
49566 cat >>confdefs.h <<\_ACEOF
49567 #define ptrdiff_t long
49581 # Code from module vasprintf:
49584 for ac_func in vasprintf
49586 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
49587 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
49588 $as_echo_n "checking for $ac_func... " >&6; }
49589 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49590 $as_echo_n "(cached) " >&6
49592 cat >conftest.$ac_ext <<_ACEOF
49595 cat confdefs.h >>conftest.$ac_ext
49596 cat >>conftest.$ac_ext <<_ACEOF
49597 /* end confdefs.h. */
49598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49600 #define $ac_func innocuous_$ac_func
49602 /* System header to define __stub macros and hopefully few prototypes,
49603 which can conflict with char $ac_func (); below.
49604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49605 <limits.h> exists even on freestanding compilers. */
49608 # include <limits.h>
49610 # include <assert.h>
49615 /* Override any GCC internal prototype to avoid an error.
49616 Use char because int might match the return type of a GCC
49617 builtin and then its argument prototype would still apply. */
49622 /* The GNU C library defines this for functions which it implements
49623 to always fail with ENOSYS. Some functions are actually named
49624 something starting with __ and the normal name is an alias. */
49625 #if defined __stub_$ac_func || defined __stub___$ac_func
49632 return $ac_func ();
49637 rm -f conftest.$ac_objext conftest$ac_exeext
49638 if { (ac_try="$ac_link"
49639 case "(($ac_try" in
49640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49641 *) ac_try_echo=$ac_try;;
49643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49644 $as_echo "$ac_try_echo") >&5
49645 (eval "$ac_link") 2>conftest.er1
49647 grep -v '^ *+' conftest.er1 >conftest.err
49649 cat conftest.err >&5
49650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49651 (exit $ac_status); } && {
49652 test -z "$ac_c_werror_flag" ||
49653 test ! -s conftest.err
49654 } && test -s conftest$ac_exeext && {
49655 test "$cross_compiling" = yes ||
49656 $as_test_x conftest$ac_exeext
49658 eval "$as_ac_var=yes"
49660 $as_echo "$as_me: failed program was:" >&5
49661 sed 's/^/| /' conftest.$ac_ext >&5
49663 eval "$as_ac_var=no"
49666 rm -rf conftest.dSYM
49667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49668 conftest$ac_exeext conftest.$ac_ext
49670 ac_res=`eval 'as_val=${'$as_ac_var'}
49671 $as_echo "$as_val"'`
49672 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
49673 $as_echo "$ac_res" >&6; }
49674 as_val=`eval 'as_val=${'$as_ac_var'}
49675 $as_echo "$as_val"'`
49676 if test "x$as_val" = x""yes; then
49677 cat >>confdefs.h <<_ACEOF
49678 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
49684 if test $ac_cv_func_vasprintf = no; then
49694 gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
49704 gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
49707 if test $ac_cv_func_vasprintf = yes; then
49708 REPLACE_VASPRINTF=1
49729 cat >>confdefs.h <<\_ACEOF
49730 #define GNULIB_TEST_VASPRINTF 1
49737 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
49741 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
49743 # Code from module verify:
49744 # Code from module version-etc:
49746 # Check whether --with-packager was given.
49747 if test "${with_packager+set}" = set; then
49748 withval=$with_packager; case $withval in
49751 cat >>confdefs.h <<_ACEOF
49752 #define PACKAGE_PACKAGER "$withval"
49761 # Check whether --with-packager-version was given.
49762 if test "${with_packager_version+set}" = set; then
49763 withval=$with_packager_version; case $withval in
49766 cat >>confdefs.h <<_ACEOF
49767 #define PACKAGE_PACKAGER_VERSION "$withval"
49776 # Check whether --with-packager-bug-reports was given.
49777 if test "${with_packager_bug_reports+set}" = set; then
49778 withval=$with_packager_bug_reports; case $withval in
49781 cat >>confdefs.h <<_ACEOF
49782 #define PACKAGE_PACKAGER_BUG_REPORTS "$withval"
49790 if test "X$with_packager" = "X" && \
49791 test "X$with_packager_version$with_packager_bug_reports" != "X"
49793 { { $as_echo "$as_me:$LINENO: error: The --with-packager-{bug-reports,version} options require --with-packager" >&5
49794 $as_echo "$as_me: error: The --with-packager-{bug-reports,version} options require --with-packager" >&2;}
49795 { (exit 1); exit 1; }; }
49798 # Code from module version-etc-fsf:
49799 # Code from module vsnprintf:
49802 gl_cv_func_vsnprintf_usable=no
49804 for ac_func in vsnprintf
49806 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
49807 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
49808 $as_echo_n "checking for $ac_func... " >&6; }
49809 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49810 $as_echo_n "(cached) " >&6
49812 cat >conftest.$ac_ext <<_ACEOF
49815 cat confdefs.h >>conftest.$ac_ext
49816 cat >>conftest.$ac_ext <<_ACEOF
49817 /* end confdefs.h. */
49818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49820 #define $ac_func innocuous_$ac_func
49822 /* System header to define __stub macros and hopefully few prototypes,
49823 which can conflict with char $ac_func (); below.
49824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49825 <limits.h> exists even on freestanding compilers. */
49828 # include <limits.h>
49830 # include <assert.h>
49835 /* Override any GCC internal prototype to avoid an error.
49836 Use char because int might match the return type of a GCC
49837 builtin and then its argument prototype would still apply. */
49842 /* The GNU C library defines this for functions which it implements
49843 to always fail with ENOSYS. Some functions are actually named
49844 something starting with __ and the normal name is an alias. */
49845 #if defined __stub_$ac_func || defined __stub___$ac_func
49852 return $ac_func ();
49857 rm -f conftest.$ac_objext conftest$ac_exeext
49858 if { (ac_try="$ac_link"
49859 case "(($ac_try" in
49860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49861 *) ac_try_echo=$ac_try;;
49863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49864 $as_echo "$ac_try_echo") >&5
49865 (eval "$ac_link") 2>conftest.er1
49867 grep -v '^ *+' conftest.er1 >conftest.err
49869 cat conftest.err >&5
49870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49871 (exit $ac_status); } && {
49872 test -z "$ac_c_werror_flag" ||
49873 test ! -s conftest.err
49874 } && test -s conftest$ac_exeext && {
49875 test "$cross_compiling" = yes ||
49876 $as_test_x conftest$ac_exeext
49878 eval "$as_ac_var=yes"
49880 $as_echo "$as_me: failed program was:" >&5
49881 sed 's/^/| /' conftest.$ac_ext >&5
49883 eval "$as_ac_var=no"
49886 rm -rf conftest.dSYM
49887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49888 conftest$ac_exeext conftest.$ac_ext
49890 ac_res=`eval 'as_val=${'$as_ac_var'}
49891 $as_echo "$as_val"'`
49892 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
49893 $as_echo "$ac_res" >&6; }
49894 as_val=`eval 'as_val=${'$as_ac_var'}
49895 $as_echo "$as_val"'`
49896 if test "x$as_val" = x""yes; then
49897 cat >>confdefs.h <<_ACEOF
49898 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
49904 if test $ac_cv_func_vsnprintf = yes; then
49907 { $as_echo "$as_me:$LINENO: checking whether snprintf respects a size of 1" >&5
49908 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
49909 if test "${gl_cv_func_snprintf_size1+set}" = set; then
49910 $as_echo_n "(cached) " >&6
49913 if test "$cross_compiling" = yes; then
49914 gl_cv_func_snprintf_size1="guessing yes"
49916 cat >conftest.$ac_ext <<_ACEOF
49919 cat confdefs.h >>conftest.$ac_ext
49920 cat >>conftest.$ac_ext <<_ACEOF
49921 /* end confdefs.h. */
49926 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
49927 snprintf (buf, 1, "%d", 12345);
49928 return buf[1] != 'E';
49931 rm -f conftest$ac_exeext
49932 if { (ac_try="$ac_link"
49933 case "(($ac_try" in
49934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49935 *) ac_try_echo=$ac_try;;
49937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49938 $as_echo "$ac_try_echo") >&5
49939 (eval "$ac_link") 2>&5
49941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49943 { (case "(($ac_try" in
49944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49945 *) ac_try_echo=$ac_try;;
49947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49948 $as_echo "$ac_try_echo") >&5
49949 (eval "$ac_try") 2>&5
49951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49952 (exit $ac_status); }; }; then
49953 gl_cv_func_snprintf_size1=yes
49955 $as_echo "$as_me: program exited with status $ac_status" >&5
49956 $as_echo "$as_me: failed program was:" >&5
49957 sed 's/^/| /' conftest.$ac_ext >&5
49959 ( exit $ac_status )
49960 gl_cv_func_snprintf_size1=no
49962 rm -rf conftest.dSYM
49963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49969 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_size1" >&5
49970 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
49972 case "$gl_cv_func_snprintf_size1" in
49975 case "$gl_cv_func_snprintf_retval_c99" in
49977 gl_cv_func_vsnprintf_usable=yes
49983 if test $gl_cv_func_vsnprintf_usable = no; then
49994 gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
49996 if test $ac_cv_func_vsnprintf = yes; then
49997 REPLACE_VSNPRINTF=1
50006 if test $ac_cv_have_decl_vsnprintf = no; then
50007 HAVE_DECL_VSNPRINTF=0
50017 cat >>confdefs.h <<\_ACEOF
50018 #define GNULIB_TEST_VSNPRINTF 1
50023 # Code from module warn-on-use:
50024 # Code from module wchar:
50042 if test $gl_cv_have_include_next = yes; then
50043 gl_cv_next_wchar_h='<'wchar.h'>'
50045 { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
50046 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
50047 if test "${gl_cv_next_wchar_h+set}" = set; then
50048 $as_echo_n "(cached) " >&6
50051 if test $ac_cv_header_wchar_h = yes; then
50054 cat >conftest.$ac_ext <<_ACEOF
50057 cat confdefs.h >>conftest.$ac_ext
50058 cat >>conftest.$ac_ext <<_ACEOF
50059 /* end confdefs.h. */
50064 aix*) gl_absname_cpp="$ac_cpp -C" ;;
50065 *) gl_absname_cpp="$ac_cpp" ;;
50067 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
50068 sed -n '\#/wchar.h#{
50069 s#.*"\(.*/wchar.h\)".*#\1#
50075 gl_cv_next_wchar_h='<'wchar.h'>'
50080 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
50081 $as_echo "$gl_cv_next_wchar_h" >&6; }
50083 NEXT_WCHAR_H=$gl_cv_next_wchar_h
50085 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
50086 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
50087 gl_next_as_first_directive='<'wchar.h'>'
50089 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
50090 gl_next_as_first_directive=$gl_cv_next_wchar_h
50092 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
50097 if test $ac_cv_header_wchar_h = yes; then
50107 if test $gt_cv_c_wint_t = yes; then
50154 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth ; do
50155 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
50156 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
50157 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
50158 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
50159 $as_echo_n "(cached) " >&6
50161 cat >conftest.$ac_ext <<_ACEOF
50164 cat confdefs.h >>conftest.$ac_ext
50165 cat >>conftest.$ac_ext <<_ACEOF
50166 /* end confdefs.h. */
50168 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
50170 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
50171 included before <wchar.h>. */
50172 #if !(defined __GLIBC__ && !defined __UCLIBC__)
50173 # include <stddef.h>
50174 # include <stdio.h>
50188 rm -f conftest.$ac_objext
50189 if { (ac_try="$ac_compile"
50190 case "(($ac_try" in
50191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50192 *) ac_try_echo=$ac_try;;
50194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50195 $as_echo "$ac_try_echo") >&5
50196 (eval "$ac_compile") 2>conftest.er1
50198 grep -v '^ *+' conftest.er1 >conftest.err
50200 cat conftest.err >&5
50201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50202 (exit $ac_status); } && {
50203 test -z "$ac_c_werror_flag" ||
50204 test ! -s conftest.err
50205 } && test -s conftest.$ac_objext; then
50206 eval "$as_gl_Symbol=yes"
50208 $as_echo "$as_me: failed program was:" >&5
50209 sed 's/^/| /' conftest.$ac_ext >&5
50211 eval "$as_gl_Symbol=no"
50214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50216 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
50217 $as_echo "$as_val"'`
50218 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50219 $as_echo "$ac_res" >&6; }
50220 as_val=`eval 'as_val=${'$as_gl_Symbol'}
50221 $as_echo "$as_val"'`
50222 if test "x$as_val" = x""yes; then
50223 cat >>confdefs.h <<_ACEOF
50224 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
50227 eval ac_cv_have_decl_$gl_func=yes
50233 # Code from module wcrtomb:
50254 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
50258 { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
50259 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
50260 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
50261 $as_echo_n "(cached) " >&6
50265 # Guess no on AIX and OSF/1.
50266 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
50267 # Guess yes otherwise.
50268 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
50270 if test $LOCALE_JA != none; then
50271 if test "$cross_compiling" = yes; then
50274 cat >conftest.$ac_ext <<_ACEOF
50277 cat confdefs.h >>conftest.$ac_ext
50278 cat >>conftest.$ac_ext <<_ACEOF
50279 /* end confdefs.h. */
50281 #include <locale.h>
50282 #include <string.h>
50283 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
50285 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
50286 included before <wchar.h>. */
50287 #include <stddef.h>
50293 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
50295 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
50299 memset (&state, '\0', sizeof (mbstate_t));
50300 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
50301 if (mbsinit (&state))
50307 rm -f conftest$ac_exeext
50308 if { (ac_try="$ac_link"
50309 case "(($ac_try" in
50310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50311 *) ac_try_echo=$ac_try;;
50313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50314 $as_echo "$ac_try_echo") >&5
50315 (eval "$ac_link") 2>&5
50317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50319 { (case "(($ac_try" in
50320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50321 *) ac_try_echo=$ac_try;;
50323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50324 $as_echo "$ac_try_echo") >&5
50325 (eval "$ac_try") 2>&5
50327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50328 (exit $ac_status); }; }; then
50329 gl_cv_func_mbrtowc_incomplete_state=yes
50331 $as_echo "$as_me: program exited with status $ac_status" >&5
50332 $as_echo "$as_me: failed program was:" >&5
50333 sed 's/^/| /' conftest.$ac_ext >&5
50335 ( exit $ac_status )
50336 gl_cv_func_mbrtowc_incomplete_state=no
50338 rm -rf conftest.dSYM
50339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50346 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
50347 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
50352 { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
50353 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
50354 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
50355 $as_echo_n "(cached) " >&6
50359 # Guess no on Solaris 8.
50360 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
50361 # Guess yes otherwise.
50362 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
50364 if test $LOCALE_ZH_CN != none; then
50365 if test "$cross_compiling" = yes; then
50368 cat >conftest.$ac_ext <<_ACEOF
50371 cat confdefs.h >>conftest.$ac_ext
50372 cat >>conftest.$ac_ext <<_ACEOF
50373 /* end confdefs.h. */
50375 #include <locale.h>
50376 #include <stdlib.h>
50377 #include <string.h>
50378 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
50380 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
50381 included before <wchar.h>. */
50382 #include <stddef.h>
50388 /* This fails on Solaris 8:
50389 mbrtowc returns 2, and sets wc to 0x00F0.
50390 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
50391 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
50393 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
50397 memset (&state, '\0', sizeof (mbstate_t));
50398 if (mbrtowc (&wc, input + 3, 6, &state) != 4
50399 && mbtowc (&wc, input + 3, 6) == 4)
50405 rm -f conftest$ac_exeext
50406 if { (ac_try="$ac_link"
50407 case "(($ac_try" in
50408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50409 *) ac_try_echo=$ac_try;;
50411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50412 $as_echo "$ac_try_echo") >&5
50413 (eval "$ac_link") 2>&5
50415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50416 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50417 { (case "(($ac_try" in
50418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50419 *) ac_try_echo=$ac_try;;
50421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50422 $as_echo "$ac_try_echo") >&5
50423 (eval "$ac_try") 2>&5
50425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50426 (exit $ac_status); }; }; then
50427 gl_cv_func_mbrtowc_sanitycheck=yes
50429 $as_echo "$as_me: program exited with status $ac_status" >&5
50430 $as_echo "$as_me: failed program was:" >&5
50431 sed 's/^/| /' conftest.$ac_ext >&5
50433 ( exit $ac_status )
50434 gl_cv_func_mbrtowc_sanitycheck=no
50436 rm -rf conftest.dSYM
50437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50444 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
50445 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
50447 REPLACE_MBSTATE_T=0
50448 case "$gl_cv_func_mbrtowc_incomplete_state" in
50450 *) REPLACE_MBSTATE_T=1 ;;
50452 case "$gl_cv_func_mbrtowc_sanitycheck" in
50454 *) REPLACE_MBSTATE_T=1 ;;
50457 REPLACE_MBSTATE_T=1
50459 if test $REPLACE_MBSTATE_T = 1; then
50472 if test $ac_cv_func_wcrtomb = no; then
50475 if test $REPLACE_MBSTATE_T = 1; then
50483 { $as_echo "$as_me:$LINENO: checking whether wcrtomb return value is correct" >&5
50484 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
50485 if test "${gl_cv_func_wcrtomb_retval+set}" = set; then
50486 $as_echo_n "(cached) " >&6
50490 # Guess no on AIX 4, OSF/1 and Solaris.
50491 aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
50492 # Guess yes otherwise.
50493 *) gl_cv_func_wcrtomb_retval="guessing yes" ;;
50495 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
50496 if test "$cross_compiling" = yes; then
50499 cat >conftest.$ac_ext <<_ACEOF
50502 cat confdefs.h >>conftest.$ac_ext
50503 cat >>conftest.$ac_ext <<_ACEOF
50504 /* end confdefs.h. */
50506 #include <locale.h>
50507 #include <string.h>
50508 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
50510 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
50511 included before <wchar.h>. */
50512 #include <stddef.h>
50519 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
50521 if (wcrtomb (NULL, 0, NULL) != 1)
50524 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
50526 if (wcrtomb (NULL, 0, NULL) != 1)
50529 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
50531 if (wcrtomb (NULL, 0, NULL) != 1)
50534 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
50536 if (wcrtomb (NULL, 0, NULL) != 1)
50542 rm -f conftest$ac_exeext
50543 if { (ac_try="$ac_link"
50544 case "(($ac_try" in
50545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50546 *) ac_try_echo=$ac_try;;
50548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50549 $as_echo "$ac_try_echo") >&5
50550 (eval "$ac_link") 2>&5
50552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50554 { (case "(($ac_try" in
50555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50556 *) ac_try_echo=$ac_try;;
50558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50559 $as_echo "$ac_try_echo") >&5
50560 (eval "$ac_try") 2>&5
50562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50563 (exit $ac_status); }; }; then
50564 gl_cv_func_wcrtomb_retval=yes
50566 $as_echo "$as_me: program exited with status $ac_status" >&5
50567 $as_echo "$as_me: failed program was:" >&5
50568 sed 's/^/| /' conftest.$ac_ext >&5
50570 ( exit $ac_status )
50571 gl_cv_func_wcrtomb_retval=no
50573 rm -rf conftest.dSYM
50574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50581 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_wcrtomb_retval" >&5
50582 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
50583 case "$gl_cv_func_wcrtomb_retval" in
50585 *) REPLACE_WCRTOMB=1 ;;
50589 if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
50601 gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext"
50615 cat >>confdefs.h <<\_ACEOF
50616 #define GNULIB_TEST_WCRTOMB 1
50621 # Code from module wctype-h:
50632 if test $ac_cv_func_iswcntrl = yes; then
50642 if test $gt_cv_c_wint_t = yes; then
50663 if test $gl_cv_have_include_next = yes; then
50664 gl_cv_next_wctype_h='<'wctype.h'>'
50666 { $as_echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
50667 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
50668 if test "${gl_cv_next_wctype_h+set}" = set; then
50669 $as_echo_n "(cached) " >&6
50672 if test $ac_cv_header_wctype_h = yes; then
50675 cat >conftest.$ac_ext <<_ACEOF
50678 cat confdefs.h >>conftest.$ac_ext
50679 cat >>conftest.$ac_ext <<_ACEOF
50680 /* end confdefs.h. */
50681 #include <wctype.h>
50685 aix*) gl_absname_cpp="$ac_cpp -C" ;;
50686 *) gl_absname_cpp="$ac_cpp" ;;
50688 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
50689 sed -n '\#/wctype.h#{
50690 s#.*"\(.*/wctype.h\)".*#\1#
50696 gl_cv_next_wctype_h='<'wctype.h'>'
50701 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5
50702 $as_echo "$gl_cv_next_wctype_h" >&6; }
50704 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
50706 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
50707 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
50708 gl_next_as_first_directive='<'wctype.h'>'
50710 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
50711 gl_next_as_first_directive=$gl_cv_next_wctype_h
50713 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
50718 if test $ac_cv_header_wctype_h = yes; then
50719 if test $ac_cv_func_iswcntrl = yes; then
50720 { $as_echo "$as_me:$LINENO: checking whether iswcntrl works" >&5
50721 $as_echo_n "checking whether iswcntrl works... " >&6; }
50722 if test "${gl_cv_func_iswcntrl_works+set}" = set; then
50723 $as_echo_n "(cached) " >&6
50726 if test "$cross_compiling" = yes; then
50727 cat >conftest.$ac_ext <<_ACEOF
50730 cat confdefs.h >>conftest.$ac_ext
50731 cat >>conftest.$ac_ext <<_ACEOF
50732 /* end confdefs.h. */
50733 #include <stdlib.h>
50734 #if __GNU_LIBRARY__ == 1
50735 Linux libc5 i18n is broken.
50745 rm -f conftest.$ac_objext
50746 if { (ac_try="$ac_compile"
50747 case "(($ac_try" in
50748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50749 *) ac_try_echo=$ac_try;;
50751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50752 $as_echo "$ac_try_echo") >&5
50753 (eval "$ac_compile") 2>conftest.er1
50755 grep -v '^ *+' conftest.er1 >conftest.err
50757 cat conftest.err >&5
50758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50759 (exit $ac_status); } && {
50760 test -z "$ac_c_werror_flag" ||
50761 test ! -s conftest.err
50762 } && test -s conftest.$ac_objext; then
50763 gl_cv_func_iswcntrl_works=yes
50765 $as_echo "$as_me: failed program was:" >&5
50766 sed 's/^/| /' conftest.$ac_ext >&5
50768 gl_cv_func_iswcntrl_works=no
50771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50774 cat >conftest.$ac_ext <<_ACEOF
50777 cat confdefs.h >>conftest.$ac_ext
50778 cat >>conftest.$ac_ext <<_ACEOF
50779 /* end confdefs.h. */
50781 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
50782 included before <wchar.h>.
50783 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
50784 must be included before <wchar.h>. */
50785 #include <stddef.h>
50789 #include <wctype.h>
50790 int main () { return iswprint ('x') == 0; }
50793 rm -f conftest$ac_exeext
50794 if { (ac_try="$ac_link"
50795 case "(($ac_try" in
50796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50797 *) ac_try_echo=$ac_try;;
50799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50800 $as_echo "$ac_try_echo") >&5
50801 (eval "$ac_link") 2>&5
50803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50805 { (case "(($ac_try" in
50806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50807 *) ac_try_echo=$ac_try;;
50809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50810 $as_echo "$ac_try_echo") >&5
50811 (eval "$ac_try") 2>&5
50813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50814 (exit $ac_status); }; }; then
50815 gl_cv_func_iswcntrl_works=yes
50817 $as_echo "$as_me: program exited with status $ac_status" >&5
50818 $as_echo "$as_me: failed program was:" >&5
50819 sed 's/^/| /' conftest.$ac_ext >&5
50821 ( exit $ac_status )
50822 gl_cv_func_iswcntrl_works=no
50824 rm -rf conftest.dSYM
50825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50831 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_iswcntrl_works" >&5
50832 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
50840 if test "$gl_cv_func_iswcntrl_works" = no; then
50847 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
50851 { $as_echo "$as_me:$LINENO: checking for wctype_t" >&5
50852 $as_echo_n "checking for wctype_t... " >&6; }
50853 if test "${gl_cv_type_wctype_t+set}" = set; then
50854 $as_echo_n "(cached) " >&6
50856 cat >conftest.$ac_ext <<_ACEOF
50859 cat confdefs.h >>conftest.$ac_ext
50860 cat >>conftest.$ac_ext <<_ACEOF
50861 /* end confdefs.h. */
50862 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
50863 included before <wchar.h>.
50864 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
50865 must be included before <wchar.h>. */
50866 #include <stddef.h>
50871 # include <wctype.h>
50883 rm -f conftest.$ac_objext
50884 if { (ac_try="$ac_compile"
50885 case "(($ac_try" in
50886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50887 *) ac_try_echo=$ac_try;;
50889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50890 $as_echo "$ac_try_echo") >&5
50891 (eval "$ac_compile") 2>conftest.er1
50893 grep -v '^ *+' conftest.er1 >conftest.err
50895 cat conftest.err >&5
50896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50897 (exit $ac_status); } && {
50898 test -z "$ac_c_werror_flag" ||
50899 test ! -s conftest.err
50900 } && test -s conftest.$ac_objext; then
50901 gl_cv_type_wctype_t=yes
50903 $as_echo "$as_me: failed program was:" >&5
50904 sed 's/^/| /' conftest.$ac_ext >&5
50906 gl_cv_type_wctype_t=no
50909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50912 { $as_echo "$as_me:$LINENO: result: $gl_cv_type_wctype_t" >&5
50913 $as_echo "$gl_cv_type_wctype_t" >&6; }
50914 if test $gl_cv_type_wctype_t = no; then
50918 { $as_echo "$as_me:$LINENO: checking for wctrans_t" >&5
50919 $as_echo_n "checking for wctrans_t... " >&6; }
50920 if test "${gl_cv_type_wctrans_t+set}" = set; then
50921 $as_echo_n "(cached) " >&6
50923 cat >conftest.$ac_ext <<_ACEOF
50926 cat confdefs.h >>conftest.$ac_ext
50927 cat >>conftest.$ac_ext <<_ACEOF
50928 /* end confdefs.h. */
50929 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
50930 included before <wchar.h>.
50931 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
50932 must be included before <wchar.h>. */
50933 #include <stddef.h>
50937 #include <wctype.h>
50948 rm -f conftest.$ac_objext
50949 if { (ac_try="$ac_compile"
50950 case "(($ac_try" in
50951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50952 *) ac_try_echo=$ac_try;;
50954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50955 $as_echo "$ac_try_echo") >&5
50956 (eval "$ac_compile") 2>conftest.er1
50958 grep -v '^ *+' conftest.er1 >conftest.err
50960 cat conftest.err >&5
50961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50962 (exit $ac_status); } && {
50963 test -z "$ac_c_werror_flag" ||
50964 test ! -s conftest.err
50965 } && test -s conftest.$ac_objext; then
50966 gl_cv_type_wctrans_t=yes
50968 $as_echo "$as_me: failed program was:" >&5
50969 sed 's/^/| /' conftest.$ac_ext >&5
50971 gl_cv_type_wctrans_t=no
50974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50977 { $as_echo "$as_me:$LINENO: result: $gl_cv_type_wctrans_t" >&5
50978 $as_echo "$gl_cv_type_wctrans_t" >&6; }
50979 if test $gl_cv_type_wctrans_t = no; then
50988 for gl_func in wctype iswctype wctrans towctrans ; do
50989 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
50990 { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
50991 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
50992 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
50993 $as_echo_n "(cached) " >&6
50995 cat >conftest.$ac_ext <<_ACEOF
50998 cat confdefs.h >>conftest.$ac_ext
50999 cat >>conftest.$ac_ext <<_ACEOF
51000 /* end confdefs.h. */
51002 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
51004 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
51005 included before <wchar.h>. */
51006 #if !(defined __GLIBC__ && !defined __UCLIBC__)
51007 # include <stddef.h>
51008 # include <stdio.h>
51010 # include <wchar.h>
51012 #include <wctype.h>
51023 rm -f conftest.$ac_objext
51024 if { (ac_try="$ac_compile"
51025 case "(($ac_try" in
51026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51027 *) ac_try_echo=$ac_try;;
51029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51030 $as_echo "$ac_try_echo") >&5
51031 (eval "$ac_compile") 2>conftest.er1
51033 grep -v '^ *+' conftest.er1 >conftest.err
51035 cat conftest.err >&5
51036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51037 (exit $ac_status); } && {
51038 test -z "$ac_c_werror_flag" ||
51039 test ! -s conftest.err
51040 } && test -s conftest.$ac_objext; then
51041 eval "$as_gl_Symbol=yes"
51043 $as_echo "$as_me: failed program was:" >&5
51044 sed 's/^/| /' conftest.$ac_ext >&5
51046 eval "$as_gl_Symbol=no"
51049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51051 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
51052 $as_echo "$as_val"'`
51053 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51054 $as_echo "$ac_res" >&6; }
51055 as_val=`eval 'as_val=${'$as_gl_Symbol'}
51056 $as_echo "$as_val"'`
51057 if test "x$as_val" = x""yes; then
51058 cat >>confdefs.h <<_ACEOF
51059 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
51062 eval ac_cv_have_decl_$gl_func=yes
51068 # Code from module wcwidth:
51090 { $as_echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
51091 $as_echo_n "checking whether wcwidth is declared... " >&6; }
51092 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
51093 $as_echo_n "(cached) " >&6
51095 cat >conftest.$ac_ext <<_ACEOF
51098 cat confdefs.h >>conftest.$ac_ext
51099 cat >>conftest.$ac_ext <<_ACEOF
51100 /* end confdefs.h. */
51102 /* AIX 3.2.5 declares wcwidth in <string.h>. */
51103 #include <string.h>
51104 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
51106 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
51107 before <wchar.h>. */
51108 #include <stddef.h>
51125 rm -f conftest.$ac_objext
51126 if { (ac_try="$ac_compile"
51127 case "(($ac_try" in
51128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51129 *) ac_try_echo=$ac_try;;
51131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51132 $as_echo "$ac_try_echo") >&5
51133 (eval "$ac_compile") 2>conftest.er1
51135 grep -v '^ *+' conftest.er1 >conftest.err
51137 cat conftest.err >&5
51138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51139 (exit $ac_status); } && {
51140 test -z "$ac_c_werror_flag" ||
51141 test ! -s conftest.err
51142 } && test -s conftest.$ac_objext; then
51143 ac_cv_have_decl_wcwidth=yes
51145 $as_echo "$as_me: failed program was:" >&5
51146 sed 's/^/| /' conftest.$ac_ext >&5
51148 ac_cv_have_decl_wcwidth=no
51151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51153 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
51154 $as_echo "$ac_cv_have_decl_wcwidth" >&6; }
51155 if test "x$ac_cv_have_decl_wcwidth" = x""yes; then
51157 cat >>confdefs.h <<_ACEOF
51158 #define HAVE_DECL_WCWIDTH 1
51163 cat >>confdefs.h <<_ACEOF
51164 #define HAVE_DECL_WCWIDTH 0
51171 if test $ac_cv_have_decl_wcwidth != yes; then
51172 HAVE_DECL_WCWIDTH=0
51175 if test $ac_cv_func_wcwidth = yes; then
51176 { $as_echo "$as_me:$LINENO: checking whether wcwidth works reasonably in UTF-8 locales" >&5
51177 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
51178 if test "${gl_cv_func_wcwidth_works+set}" = set; then
51179 $as_echo_n "(cached) " >&6
51182 if test "$cross_compiling" = yes; then
51185 # Guess yes on glibc and AIX 7 systems.
51186 *-gnu* | aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";;
51187 *) gl_cv_func_wcwidth_works="guessing no";;
51191 cat >conftest.$ac_ext <<_ACEOF
51194 cat confdefs.h >>conftest.$ac_ext
51195 cat >>conftest.$ac_ext <<_ACEOF
51196 /* end confdefs.h. */
51198 #include <locale.h>
51199 /* AIX 3.2.5 declares wcwidth in <string.h>. */
51200 #include <string.h>
51201 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
51203 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
51204 before <wchar.h>. */
51205 #include <stddef.h>
51209 #if !HAVE_DECL_WCWIDTH
51211 # ifdef __cplusplus
51219 if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
51221 if (wcwidth (0x0301) > 0)
51223 if (wcwidth (0x200B) > 0)
51229 rm -f conftest$ac_exeext
51230 if { (ac_try="$ac_link"
51231 case "(($ac_try" in
51232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51233 *) ac_try_echo=$ac_try;;
51235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51236 $as_echo "$ac_try_echo") >&5
51237 (eval "$ac_link") 2>&5
51239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
51241 { (case "(($ac_try" in
51242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51243 *) ac_try_echo=$ac_try;;
51245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51246 $as_echo "$ac_try_echo") >&5
51247 (eval "$ac_try") 2>&5
51249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51250 (exit $ac_status); }; }; then
51251 gl_cv_func_wcwidth_works=yes
51253 $as_echo "$as_me: program exited with status $ac_status" >&5
51254 $as_echo "$as_me: failed program was:" >&5
51255 sed 's/^/| /' conftest.$ac_ext >&5
51257 ( exit $ac_status )
51258 gl_cv_func_wcwidth_works=no
51260 rm -rf conftest.dSYM
51261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
51267 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_wcwidth_works" >&5
51268 $as_echo "$gl_cv_func_wcwidth_works" >&6; }
51269 case "$gl_cv_func_wcwidth_works" in
51271 *no) REPLACE_WCWIDTH=1 ;;
51274 if test $ac_cv_func_wcwidth != yes || test $REPLACE_WCWIDTH = 1; then
51283 gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
51286 if test $ac_cv_func_wcwidth != yes || test $REPLACE_WCWIDTH = 1 \
51287 || test $HAVE_DECL_WCWIDTH = 0; then
51300 cat >>confdefs.h <<\_ACEOF
51301 #define GNULIB_TEST_WCWIDTH 1
51306 # Code from module write:
51318 cat >>confdefs.h <<\_ACEOF
51319 #define GNULIB_TEST_WRITE 1
51324 # Code from module xalloc:
51334 gl_LIBOBJS="$gl_LIBOBJS xmalloc.$ac_objext"
51345 # Code from module xalloc-die:
51346 # Code from module xgetcwd:
51356 gl_LIBOBJS="$gl_LIBOBJS xgetcwd.$ac_objext"
51361 # Code from module xsize:
51366 for ac_header in stdint.h
51368 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
51369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51370 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
51371 $as_echo_n "checking for $ac_header... " >&6; }
51372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51373 $as_echo_n "(cached) " >&6
51375 ac_res=`eval 'as_val=${'$as_ac_Header'}
51376 $as_echo "$as_val"'`
51377 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51378 $as_echo "$ac_res" >&6; }
51380 # Is the header compilable?
51381 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
51382 $as_echo_n "checking $ac_header usability... " >&6; }
51383 cat >conftest.$ac_ext <<_ACEOF
51386 cat confdefs.h >>conftest.$ac_ext
51387 cat >>conftest.$ac_ext <<_ACEOF
51388 /* end confdefs.h. */
51389 $ac_includes_default
51390 #include <$ac_header>
51392 rm -f conftest.$ac_objext
51393 if { (ac_try="$ac_compile"
51394 case "(($ac_try" in
51395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51396 *) ac_try_echo=$ac_try;;
51398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51399 $as_echo "$ac_try_echo") >&5
51400 (eval "$ac_compile") 2>conftest.er1
51402 grep -v '^ *+' conftest.er1 >conftest.err
51404 cat conftest.err >&5
51405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51406 (exit $ac_status); } && {
51407 test -z "$ac_c_werror_flag" ||
51408 test ! -s conftest.err
51409 } && test -s conftest.$ac_objext; then
51410 ac_header_compiler=yes
51412 $as_echo "$as_me: failed program was:" >&5
51413 sed 's/^/| /' conftest.$ac_ext >&5
51415 ac_header_compiler=no
51418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51419 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51420 $as_echo "$ac_header_compiler" >&6; }
51422 # Is the header present?
51423 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
51424 $as_echo_n "checking $ac_header presence... " >&6; }
51425 cat >conftest.$ac_ext <<_ACEOF
51428 cat confdefs.h >>conftest.$ac_ext
51429 cat >>conftest.$ac_ext <<_ACEOF
51430 /* end confdefs.h. */
51431 #include <$ac_header>
51433 if { (ac_try="$ac_cpp conftest.$ac_ext"
51434 case "(($ac_try" in
51435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51436 *) ac_try_echo=$ac_try;;
51438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51439 $as_echo "$ac_try_echo") >&5
51440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
51442 grep -v '^ *+' conftest.er1 >conftest.err
51444 cat conftest.err >&5
51445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51446 (exit $ac_status); } >/dev/null && {
51447 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
51448 test ! -s conftest.err
51450 ac_header_preproc=yes
51452 $as_echo "$as_me: failed program was:" >&5
51453 sed 's/^/| /' conftest.$ac_ext >&5
51455 ac_header_preproc=no
51458 rm -f conftest.err conftest.$ac_ext
51459 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51460 $as_echo "$ac_header_preproc" >&6; }
51462 # So? What about this header?
51463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51465 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51466 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51467 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
51468 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
51469 ac_header_preproc=yes
51472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51473 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
51475 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
51476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
51477 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
51478 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
51479 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
51480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51481 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51482 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
51483 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
51485 ## ------------------------------ ##
51486 ## Report this to bug-tar@gnu.org ##
51487 ## ------------------------------ ##
51489 ) | sed "s/^/$as_me: WARNING: /" >&2
51492 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
51493 $as_echo_n "checking for $ac_header... " >&6; }
51494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51495 $as_echo_n "(cached) " >&6
51497 eval "$as_ac_Header=\$ac_header_preproc"
51499 ac_res=`eval 'as_val=${'$as_ac_Header'}
51500 $as_echo "$as_val"'`
51501 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51502 $as_echo "$ac_res" >&6; }
51505 as_val=`eval 'as_val=${'$as_ac_Header'}
51506 $as_echo "$as_val"'`
51507 if test "x$as_val" = x""yes; then
51508 cat >>confdefs.h <<_ACEOF
51509 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
51517 # Code from module xstrndup:
51523 # Code from module xstrtol:
51533 gl_LIBOBJS="$gl_LIBOBJS xstrtol.$ac_objext"
51543 gl_LIBOBJS="$gl_LIBOBJS xstrtoul.$ac_objext"
51553 gl_LIBOBJS="$gl_LIBOBJS xstrtol-error.$ac_objext"
51556 # Code from module xstrtoumax:
51557 # Code from module xvasprintf:
51563 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
51565 # End of code from modules
51586 gl_source_base='tests'
51587 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
51589 gl_module_indicator_condition=$gltests_WITNESS
51599 LIBGNU_LIBDEPS="$gl_libdeps"
51601 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
51613 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
51614 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
51615 if test "${ac_cv_header_time+set}" = set; then
51616 $as_echo_n "(cached) " >&6
51618 cat >conftest.$ac_ext <<_ACEOF
51621 cat confdefs.h >>conftest.$ac_ext
51622 cat >>conftest.$ac_ext <<_ACEOF
51623 /* end confdefs.h. */
51624 #include <sys/types.h>
51625 #include <sys/time.h>
51631 if ((struct tm *) 0)
51637 rm -f conftest.$ac_objext
51638 if { (ac_try="$ac_compile"
51639 case "(($ac_try" in
51640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51641 *) ac_try_echo=$ac_try;;
51643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51644 $as_echo "$ac_try_echo") >&5
51645 (eval "$ac_compile") 2>conftest.er1
51647 grep -v '^ *+' conftest.er1 >conftest.err
51649 cat conftest.err >&5
51650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51651 (exit $ac_status); } && {
51652 test -z "$ac_c_werror_flag" ||
51653 test ! -s conftest.err
51654 } && test -s conftest.$ac_objext; then
51655 ac_cv_header_time=yes
51657 $as_echo "$as_me: failed program was:" >&5
51658 sed 's/^/| /' conftest.$ac_ext >&5
51660 ac_cv_header_time=no
51663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51665 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
51666 $as_echo "$ac_cv_header_time" >&6; }
51667 if test $ac_cv_header_time = yes; then
51669 cat >>confdefs.h <<\_ACEOF
51670 #define TIME_WITH_SYS_TIME 1
51675 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
51676 $as_echo_n "checking for struct stat.st_blksize... " >&6; }
51677 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
51678 $as_echo_n "(cached) " >&6
51680 cat >conftest.$ac_ext <<_ACEOF
51683 cat confdefs.h >>conftest.$ac_ext
51684 cat >>conftest.$ac_ext <<_ACEOF
51685 /* end confdefs.h. */
51686 $ac_includes_default
51690 static struct stat ac_aggr;
51691 if (ac_aggr.st_blksize)
51697 rm -f conftest.$ac_objext
51698 if { (ac_try="$ac_compile"
51699 case "(($ac_try" in
51700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51701 *) ac_try_echo=$ac_try;;
51703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51704 $as_echo "$ac_try_echo") >&5
51705 (eval "$ac_compile") 2>conftest.er1
51707 grep -v '^ *+' conftest.er1 >conftest.err
51709 cat conftest.err >&5
51710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51711 (exit $ac_status); } && {
51712 test -z "$ac_c_werror_flag" ||
51713 test ! -s conftest.err
51714 } && test -s conftest.$ac_objext; then
51715 ac_cv_member_struct_stat_st_blksize=yes
51717 $as_echo "$as_me: failed program was:" >&5
51718 sed 's/^/| /' conftest.$ac_ext >&5
51720 cat >conftest.$ac_ext <<_ACEOF
51723 cat confdefs.h >>conftest.$ac_ext
51724 cat >>conftest.$ac_ext <<_ACEOF
51725 /* end confdefs.h. */
51726 $ac_includes_default
51730 static struct stat ac_aggr;
51731 if (sizeof ac_aggr.st_blksize)
51737 rm -f conftest.$ac_objext
51738 if { (ac_try="$ac_compile"
51739 case "(($ac_try" in
51740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51741 *) ac_try_echo=$ac_try;;
51743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51744 $as_echo "$ac_try_echo") >&5
51745 (eval "$ac_compile") 2>conftest.er1
51747 grep -v '^ *+' conftest.er1 >conftest.err
51749 cat conftest.err >&5
51750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51751 (exit $ac_status); } && {
51752 test -z "$ac_c_werror_flag" ||
51753 test ! -s conftest.err
51754 } && test -s conftest.$ac_objext; then
51755 ac_cv_member_struct_stat_st_blksize=yes
51757 $as_echo "$as_me: failed program was:" >&5
51758 sed 's/^/| /' conftest.$ac_ext >&5
51760 ac_cv_member_struct_stat_st_blksize=no
51763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51768 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
51769 $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
51770 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
51772 cat >>confdefs.h <<_ACEOF
51773 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
51777 cat >>confdefs.h <<\_ACEOF
51778 #define HAVE_ST_BLKSIZE 1
51788 # Set LIB_SETSOCKOPT to -lnsl -lsocket if necessary.
51791 { $as_echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
51792 $as_echo_n "checking for library containing setsockopt... " >&6; }
51793 if test "${ac_cv_search_setsockopt+set}" = set; then
51794 $as_echo_n "(cached) " >&6
51796 ac_func_search_save_LIBS=$LIBS
51797 cat >conftest.$ac_ext <<_ACEOF
51800 cat confdefs.h >>conftest.$ac_ext
51801 cat >>conftest.$ac_ext <<_ACEOF
51802 /* end confdefs.h. */
51804 /* Override any GCC internal prototype to avoid an error.
51805 Use char because int might match the return type of a GCC
51806 builtin and then its argument prototype would still apply. */
51810 char setsockopt ();
51814 return setsockopt ();
51819 for ac_lib in '' socket; do
51820 if test -z "$ac_lib"; then
51821 ac_res="none required"
51824 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
51826 rm -f conftest.$ac_objext conftest$ac_exeext
51827 if { (ac_try="$ac_link"
51828 case "(($ac_try" in
51829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51830 *) ac_try_echo=$ac_try;;
51832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51833 $as_echo "$ac_try_echo") >&5
51834 (eval "$ac_link") 2>conftest.er1
51836 grep -v '^ *+' conftest.er1 >conftest.err
51838 cat conftest.err >&5
51839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51840 (exit $ac_status); } && {
51841 test -z "$ac_c_werror_flag" ||
51842 test ! -s conftest.err
51843 } && test -s conftest$ac_exeext && {
51844 test "$cross_compiling" = yes ||
51845 $as_test_x conftest$ac_exeext
51847 ac_cv_search_setsockopt=$ac_res
51849 $as_echo "$as_me: failed program was:" >&5
51850 sed 's/^/| /' conftest.$ac_ext >&5
51855 rm -rf conftest.dSYM
51856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51858 if test "${ac_cv_search_setsockopt+set}" = set; then
51862 if test "${ac_cv_search_setsockopt+set}" = set; then
51865 ac_cv_search_setsockopt=no
51867 rm conftest.$ac_ext
51868 LIBS=$ac_func_search_save_LIBS
51870 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
51871 $as_echo "$ac_cv_search_setsockopt" >&6; }
51872 ac_res=$ac_cv_search_setsockopt
51873 if test "$ac_res" != no; then
51874 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
51877 { $as_echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
51878 $as_echo_n "checking for library containing setsockopt... " >&6; }
51879 if test "${ac_cv_search_setsockopt+set}" = set; then
51880 $as_echo_n "(cached) " >&6
51882 ac_func_search_save_LIBS=$LIBS
51883 cat >conftest.$ac_ext <<_ACEOF
51886 cat confdefs.h >>conftest.$ac_ext
51887 cat >>conftest.$ac_ext <<_ACEOF
51888 /* end confdefs.h. */
51890 /* Override any GCC internal prototype to avoid an error.
51891 Use char because int might match the return type of a GCC
51892 builtin and then its argument prototype would still apply. */
51896 char setsockopt ();
51900 return setsockopt ();
51905 for ac_lib in '' socket; do
51906 if test -z "$ac_lib"; then
51907 ac_res="none required"
51910 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
51912 rm -f conftest.$ac_objext conftest$ac_exeext
51913 if { (ac_try="$ac_link"
51914 case "(($ac_try" in
51915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51916 *) ac_try_echo=$ac_try;;
51918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51919 $as_echo "$ac_try_echo") >&5
51920 (eval "$ac_link") 2>conftest.er1
51922 grep -v '^ *+' conftest.er1 >conftest.err
51924 cat conftest.err >&5
51925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51926 (exit $ac_status); } && {
51927 test -z "$ac_c_werror_flag" ||
51928 test ! -s conftest.err
51929 } && test -s conftest$ac_exeext && {
51930 test "$cross_compiling" = yes ||
51931 $as_test_x conftest$ac_exeext
51933 ac_cv_search_setsockopt=$ac_res
51935 $as_echo "$as_me: failed program was:" >&5
51936 sed 's/^/| /' conftest.$ac_ext >&5
51941 rm -rf conftest.dSYM
51942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51944 if test "${ac_cv_search_setsockopt+set}" = set; then
51948 if test "${ac_cv_search_setsockopt+set}" = set; then
51951 ac_cv_search_setsockopt=no
51953 rm conftest.$ac_ext
51954 LIBS=$ac_func_search_save_LIBS
51956 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
51957 $as_echo "$ac_cv_search_setsockopt" >&6; }
51958 ac_res=$ac_cv_search_setsockopt
51959 if test "$ac_res" != no; then
51960 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
51966 { $as_echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
51967 $as_echo_n "checking for library containing setsockopt... " >&6; }
51968 if test "${ac_cv_search_setsockopt+set}" = set; then
51969 $as_echo_n "(cached) " >&6
51971 ac_func_search_save_LIBS=$LIBS
51972 cat >conftest.$ac_ext <<_ACEOF
51975 cat confdefs.h >>conftest.$ac_ext
51976 cat >>conftest.$ac_ext <<_ACEOF
51977 /* end confdefs.h. */
51979 /* Override any GCC internal prototype to avoid an error.
51980 Use char because int might match the return type of a GCC
51981 builtin and then its argument prototype would still apply. */
51985 char setsockopt ();
51989 return setsockopt ();
51994 for ac_lib in '' nsl; do
51995 if test -z "$ac_lib"; then
51996 ac_res="none required"
51999 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
52001 rm -f conftest.$ac_objext conftest$ac_exeext
52002 if { (ac_try="$ac_link"
52003 case "(($ac_try" in
52004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52005 *) ac_try_echo=$ac_try;;
52007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52008 $as_echo "$ac_try_echo") >&5
52009 (eval "$ac_link") 2>conftest.er1
52011 grep -v '^ *+' conftest.er1 >conftest.err
52013 cat conftest.err >&5
52014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52015 (exit $ac_status); } && {
52016 test -z "$ac_c_werror_flag" ||
52017 test ! -s conftest.err
52018 } && test -s conftest$ac_exeext && {
52019 test "$cross_compiling" = yes ||
52020 $as_test_x conftest$ac_exeext
52022 ac_cv_search_setsockopt=$ac_res
52024 $as_echo "$as_me: failed program was:" >&5
52025 sed 's/^/| /' conftest.$ac_ext >&5
52030 rm -rf conftest.dSYM
52031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52033 if test "${ac_cv_search_setsockopt+set}" = set; then
52037 if test "${ac_cv_search_setsockopt+set}" = set; then
52040 ac_cv_search_setsockopt=no
52042 rm conftest.$ac_ext
52043 LIBS=$ac_func_search_save_LIBS
52045 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
52046 $as_echo "$ac_cv_search_setsockopt" >&6; }
52047 ac_res=$ac_cv_search_setsockopt
52048 if test "$ac_res" != no; then
52049 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
52054 case "$ac_cv_search_setsockopt" in
52055 -l*) LIB_SETSOCKOPT=$ac_cv_search_setsockopt
52061 if test $ac_cv_header_sys_mtio_h = yes; then
52062 { $as_echo "$as_me:$LINENO: checking for remote tape header files" >&5
52063 $as_echo_n "checking for remote tape header files... " >&6; }
52064 if test "${pu_cv_header_rmt+set}" = set; then
52065 $as_echo_n "(cached) " >&6
52067 cat >conftest.$ac_ext <<_ACEOF
52070 cat confdefs.h >>conftest.$ac_ext
52071 cat >>conftest.$ac_ext <<_ACEOF
52072 /* end confdefs.h. */
52075 # include <sgtty.h>
52077 #include <sys/socket.h>
52079 if { (ac_try="$ac_cpp conftest.$ac_ext"
52080 case "(($ac_try" in
52081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52082 *) ac_try_echo=$ac_try;;
52084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52085 $as_echo "$ac_try_echo") >&5
52086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
52088 grep -v '^ *+' conftest.er1 >conftest.err
52090 cat conftest.err >&5
52091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52092 (exit $ac_status); } >/dev/null && {
52093 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
52094 test ! -s conftest.err
52096 pu_cv_header_rmt=yes
52098 $as_echo "$as_me: failed program was:" >&5
52099 sed 's/^/| /' conftest.$ac_ext >&5
52101 pu_cv_header_rmt=no
52104 rm -f conftest.err conftest.$ac_ext
52106 { $as_echo "$as_me:$LINENO: result: $pu_cv_header_rmt" >&5
52107 $as_echo "$pu_cv_header_rmt" >&6; }
52108 test $pu_cv_header_rmt = yes && PU_RMT_PROG='rmt$(EXEEXT)'
52114 for ac_header in sys/mtio.h
52116 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
52117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52118 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
52119 $as_echo_n "checking for $ac_header... " >&6; }
52120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52121 $as_echo_n "(cached) " >&6
52123 ac_res=`eval 'as_val=${'$as_ac_Header'}
52124 $as_echo "$as_val"'`
52125 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
52126 $as_echo "$ac_res" >&6; }
52128 # Is the header compilable?
52129 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
52130 $as_echo_n "checking $ac_header usability... " >&6; }
52131 cat >conftest.$ac_ext <<_ACEOF
52134 cat confdefs.h >>conftest.$ac_ext
52135 cat >>conftest.$ac_ext <<_ACEOF
52136 /* end confdefs.h. */
52137 $ac_includes_default
52138 #include <$ac_header>
52140 rm -f conftest.$ac_objext
52141 if { (ac_try="$ac_compile"
52142 case "(($ac_try" in
52143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52144 *) ac_try_echo=$ac_try;;
52146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52147 $as_echo "$ac_try_echo") >&5
52148 (eval "$ac_compile") 2>conftest.er1
52150 grep -v '^ *+' conftest.er1 >conftest.err
52152 cat conftest.err >&5
52153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52154 (exit $ac_status); } && {
52155 test -z "$ac_c_werror_flag" ||
52156 test ! -s conftest.err
52157 } && test -s conftest.$ac_objext; then
52158 ac_header_compiler=yes
52160 $as_echo "$as_me: failed program was:" >&5
52161 sed 's/^/| /' conftest.$ac_ext >&5
52163 ac_header_compiler=no
52166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52167 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52168 $as_echo "$ac_header_compiler" >&6; }
52170 # Is the header present?
52171 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
52172 $as_echo_n "checking $ac_header presence... " >&6; }
52173 cat >conftest.$ac_ext <<_ACEOF
52176 cat confdefs.h >>conftest.$ac_ext
52177 cat >>conftest.$ac_ext <<_ACEOF
52178 /* end confdefs.h. */
52179 #include <$ac_header>
52181 if { (ac_try="$ac_cpp conftest.$ac_ext"
52182 case "(($ac_try" in
52183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52184 *) ac_try_echo=$ac_try;;
52186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52187 $as_echo "$ac_try_echo") >&5
52188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
52190 grep -v '^ *+' conftest.er1 >conftest.err
52192 cat conftest.err >&5
52193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52194 (exit $ac_status); } >/dev/null && {
52195 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
52196 test ! -s conftest.err
52198 ac_header_preproc=yes
52200 $as_echo "$as_me: failed program was:" >&5
52201 sed 's/^/| /' conftest.$ac_ext >&5
52203 ac_header_preproc=no
52206 rm -f conftest.err conftest.$ac_ext
52207 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52208 $as_echo "$ac_header_preproc" >&6; }
52210 # So? What about this header?
52211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52214 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52216 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52217 ac_header_preproc=yes
52220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52221 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
52223 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
52224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52225 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
52227 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
52228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52229 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52231 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52233 ## ------------------------------ ##
52234 ## Report this to bug-tar@gnu.org ##
52235 ## ------------------------------ ##
52237 ) | sed "s/^/$as_me: WARNING: /" >&2
52240 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
52241 $as_echo_n "checking for $ac_header... " >&6; }
52242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52243 $as_echo_n "(cached) " >&6
52245 eval "$as_ac_Header=\$ac_header_preproc"
52247 ac_res=`eval 'as_val=${'$as_ac_Header'}
52248 $as_echo "$as_val"'`
52249 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
52250 $as_echo "$ac_res" >&6; }
52253 as_val=`eval 'as_val=${'$as_ac_Header'}
52254 $as_echo "$as_val"'`
52255 if test "x$as_val" = x""yes; then
52256 cat >>confdefs.h <<_ACEOF
52257 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
52264 { $as_echo "$as_me:$LINENO: checking which ioctl field to test for reversed bytes" >&5
52265 $as_echo_n "checking which ioctl field to test for reversed bytes... " >&6; }
52266 if test "${pu_cv_header_mtio_check_field+set}" = set; then
52267 $as_echo_n "(cached) " >&6
52269 cat >conftest.$ac_ext <<_ACEOF
52272 cat confdefs.h >>conftest.$ac_ext
52273 cat >>conftest.$ac_ext <<_ACEOF
52274 /* end confdefs.h. */
52275 #include <sys/mtio.h>
52278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52279 $EGREP "mt_model" >/dev/null 2>&1; then
52280 pu_cv_header_mtio_check_field=mt_model
52282 pu_cv_header_mtio_check_field=mt_type
52287 { $as_echo "$as_me:$LINENO: result: $pu_cv_header_mtio_check_field" >&5
52288 $as_echo "$pu_cv_header_mtio_check_field" >&6; }
52290 cat >>confdefs.h <<_ACEOF
52291 #define MTIO_CHECK_FIELD $pu_cv_header_mtio_check_field
52297 if test "x$DEFAULT_RMT_DIR" != x; then
52298 DEFAULT_RMT_COMMAND=$DEFAULT_RMT_DIR/rmt
52300 DEFAULT_RMT_DIR='$(libexecdir)'
52303 { $as_echo "$as_me:$LINENO: checking whether to build rmt" >&5
52304 $as_echo_n "checking whether to build rmt... " >&6; }
52306 # Check whether --with-rmt was given.
52307 if test "${with_rmt+set}" = set; then
52308 withval=$with_rmt; case $withval in
52309 yes|no) { { $as_echo "$as_me:$LINENO: error: Invalid argument to --with-rmt" >&5
52310 $as_echo "$as_me: error: Invalid argument to --with-rmt" >&2;}
52311 { (exit 1); exit 1; }; };;
52312 /*) DEFAULT_RMT_COMMAND=$withval
52313 { $as_echo "$as_me:$LINENO: result: no, use $withval instead" >&5
52314 $as_echo "no, use $withval instead" >&6; };;
52315 *) { { $as_echo "$as_me:$LINENO: error: Argument to --with-rmt must be an absolute file name" >&5
52316 $as_echo "$as_me: error: Argument to --with-rmt must be an absolute file name" >&2;}
52317 { (exit 1); exit 1; }; };;
52320 { $as_echo "$as_me:$LINENO: result: yes" >&5
52321 $as_echo "yes" >&6; }
52323 if test "$PU_RMT_PROG" = ""; then
52324 { $as_echo "$as_me:$LINENO: WARNING: not building rmt, required header files are missing" >&5
52325 $as_echo "$as_me: WARNING: not building rmt, required header files are missing" >&2;}
52331 if test "x$DEFAULT_RMT_COMMAND" != x; then
52333 cat >>confdefs.h <<_ACEOF
52334 #define DEFAULT_RMT_COMMAND "$DEFAULT_RMT_COMMAND"
52390 for ac_header in sys/buf.h
52392 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
52393 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
52394 $as_echo_n "checking for $ac_header... " >&6; }
52395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52396 $as_echo_n "(cached) " >&6
52398 cat >conftest.$ac_ext <<_ACEOF
52401 cat confdefs.h >>conftest.$ac_ext
52402 cat >>conftest.$ac_ext <<_ACEOF
52403 /* end confdefs.h. */
52404 #if HAVE_SYS_PARAM_H
52405 #include <sys/param.h>
52408 #include <$ac_header>
52410 rm -f conftest.$ac_objext
52411 if { (ac_try="$ac_compile"
52412 case "(($ac_try" in
52413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52414 *) ac_try_echo=$ac_try;;
52416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52417 $as_echo "$ac_try_echo") >&5
52418 (eval "$ac_compile") 2>conftest.er1
52420 grep -v '^ *+' conftest.er1 >conftest.err
52422 cat conftest.err >&5
52423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52424 (exit $ac_status); } && {
52425 test -z "$ac_c_werror_flag" ||
52426 test ! -s conftest.err
52427 } && test -s conftest.$ac_objext; then
52428 eval "$as_ac_Header=yes"
52430 $as_echo "$as_me: failed program was:" >&5
52431 sed 's/^/| /' conftest.$ac_ext >&5
52433 eval "$as_ac_Header=no"
52436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52438 ac_res=`eval 'as_val=${'$as_ac_Header'}
52439 $as_echo "$as_val"'`
52440 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
52441 $as_echo "$ac_res" >&6; }
52442 as_val=`eval 'as_val=${'$as_ac_Header'}
52443 $as_echo "$as_val"'`
52444 if test "x$as_val" = x""yes; then
52445 cat >>confdefs.h <<_ACEOF
52446 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
52456 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
52457 $as_echo_n "checking for struct stat.st_blksize... " >&6; }
52458 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
52459 $as_echo_n "(cached) " >&6
52461 cat >conftest.$ac_ext <<_ACEOF
52464 cat confdefs.h >>conftest.$ac_ext
52465 cat >>conftest.$ac_ext <<_ACEOF
52466 /* end confdefs.h. */
52467 $ac_includes_default
52471 static struct stat ac_aggr;
52472 if (ac_aggr.st_blksize)
52478 rm -f conftest.$ac_objext
52479 if { (ac_try="$ac_compile"
52480 case "(($ac_try" in
52481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52482 *) ac_try_echo=$ac_try;;
52484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52485 $as_echo "$ac_try_echo") >&5
52486 (eval "$ac_compile") 2>conftest.er1
52488 grep -v '^ *+' conftest.er1 >conftest.err
52490 cat conftest.err >&5
52491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52492 (exit $ac_status); } && {
52493 test -z "$ac_c_werror_flag" ||
52494 test ! -s conftest.err
52495 } && test -s conftest.$ac_objext; then
52496 ac_cv_member_struct_stat_st_blksize=yes
52498 $as_echo "$as_me: failed program was:" >&5
52499 sed 's/^/| /' conftest.$ac_ext >&5
52501 cat >conftest.$ac_ext <<_ACEOF
52504 cat confdefs.h >>conftest.$ac_ext
52505 cat >>conftest.$ac_ext <<_ACEOF
52506 /* end confdefs.h. */
52507 $ac_includes_default
52511 static struct stat ac_aggr;
52512 if (sizeof ac_aggr.st_blksize)
52518 rm -f conftest.$ac_objext
52519 if { (ac_try="$ac_compile"
52520 case "(($ac_try" in
52521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52522 *) ac_try_echo=$ac_try;;
52524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52525 $as_echo "$ac_try_echo") >&5
52526 (eval "$ac_compile") 2>conftest.er1
52528 grep -v '^ *+' conftest.er1 >conftest.err
52530 cat conftest.err >&5
52531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52532 (exit $ac_status); } && {
52533 test -z "$ac_c_werror_flag" ||
52534 test ! -s conftest.err
52535 } && test -s conftest.$ac_objext; then
52536 ac_cv_member_struct_stat_st_blksize=yes
52538 $as_echo "$as_me: failed program was:" >&5
52539 sed 's/^/| /' conftest.$ac_ext >&5
52541 ac_cv_member_struct_stat_st_blksize=no
52544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52549 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
52550 $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
52551 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
52553 cat >>confdefs.h <<_ACEOF
52554 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
52575 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
52576 $as_echo_n "checking for library containing gethostbyname... " >&6; }
52577 if test "${ac_cv_search_gethostbyname+set}" = set; then
52578 $as_echo_n "(cached) " >&6
52580 ac_func_search_save_LIBS=$LIBS
52581 cat >conftest.$ac_ext <<_ACEOF
52584 cat confdefs.h >>conftest.$ac_ext
52585 cat >>conftest.$ac_ext <<_ACEOF
52586 /* end confdefs.h. */
52588 /* Override any GCC internal prototype to avoid an error.
52589 Use char because int might match the return type of a GCC
52590 builtin and then its argument prototype would still apply. */
52594 char gethostbyname ();
52598 return gethostbyname ();
52603 for ac_lib in '' nsl; do
52604 if test -z "$ac_lib"; then
52605 ac_res="none required"
52608 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
52610 rm -f conftest.$ac_objext conftest$ac_exeext
52611 if { (ac_try="$ac_link"
52612 case "(($ac_try" in
52613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52614 *) ac_try_echo=$ac_try;;
52616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52617 $as_echo "$ac_try_echo") >&5
52618 (eval "$ac_link") 2>conftest.er1
52620 grep -v '^ *+' conftest.er1 >conftest.err
52622 cat conftest.err >&5
52623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52624 (exit $ac_status); } && {
52625 test -z "$ac_c_werror_flag" ||
52626 test ! -s conftest.err
52627 } && test -s conftest$ac_exeext && {
52628 test "$cross_compiling" = yes ||
52629 $as_test_x conftest$ac_exeext
52631 ac_cv_search_gethostbyname=$ac_res
52633 $as_echo "$as_me: failed program was:" >&5
52634 sed 's/^/| /' conftest.$ac_ext >&5
52639 rm -rf conftest.dSYM
52640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52642 if test "${ac_cv_search_gethostbyname+set}" = set; then
52646 if test "${ac_cv_search_gethostbyname+set}" = set; then
52649 ac_cv_search_gethostbyname=no
52651 rm conftest.$ac_ext
52652 LIBS=$ac_func_search_save_LIBS
52654 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
52655 $as_echo "$ac_cv_search_gethostbyname" >&6; }
52656 ac_res=$ac_cv_search_gethostbyname
52657 if test "$ac_res" != no; then
52658 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
52687 { $as_echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
52688 $as_echo_n "checking whether getgrgid is declared... " >&6; }
52689 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
52690 $as_echo_n "(cached) " >&6
52692 cat >conftest.$ac_ext <<_ACEOF
52695 cat confdefs.h >>conftest.$ac_ext
52696 cat >>conftest.$ac_ext <<_ACEOF
52697 /* end confdefs.h. */
52711 rm -f conftest.$ac_objext
52712 if { (ac_try="$ac_compile"
52713 case "(($ac_try" in
52714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52715 *) ac_try_echo=$ac_try;;
52717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52718 $as_echo "$ac_try_echo") >&5
52719 (eval "$ac_compile") 2>conftest.er1
52721 grep -v '^ *+' conftest.er1 >conftest.err
52723 cat conftest.err >&5
52724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52725 (exit $ac_status); } && {
52726 test -z "$ac_c_werror_flag" ||
52727 test ! -s conftest.err
52728 } && test -s conftest.$ac_objext; then
52729 ac_cv_have_decl_getgrgid=yes
52731 $as_echo "$as_me: failed program was:" >&5
52732 sed 's/^/| /' conftest.$ac_ext >&5
52734 ac_cv_have_decl_getgrgid=no
52737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52739 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
52740 $as_echo "$ac_cv_have_decl_getgrgid" >&6; }
52741 if test "x$ac_cv_have_decl_getgrgid" = x""yes; then
52743 cat >>confdefs.h <<_ACEOF
52744 #define HAVE_DECL_GETGRGID 1
52749 cat >>confdefs.h <<_ACEOF
52750 #define HAVE_DECL_GETGRGID 0
52757 { $as_echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
52758 $as_echo_n "checking whether getpwuid is declared... " >&6; }
52759 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
52760 $as_echo_n "(cached) " >&6
52762 cat >conftest.$ac_ext <<_ACEOF
52765 cat confdefs.h >>conftest.$ac_ext
52766 cat >>conftest.$ac_ext <<_ACEOF
52767 /* end confdefs.h. */
52781 rm -f conftest.$ac_objext
52782 if { (ac_try="$ac_compile"
52783 case "(($ac_try" in
52784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52785 *) ac_try_echo=$ac_try;;
52787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52788 $as_echo "$ac_try_echo") >&5
52789 (eval "$ac_compile") 2>conftest.er1
52791 grep -v '^ *+' conftest.er1 >conftest.err
52793 cat conftest.err >&5
52794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52795 (exit $ac_status); } && {
52796 test -z "$ac_c_werror_flag" ||
52797 test ! -s conftest.err
52798 } && test -s conftest.$ac_objext; then
52799 ac_cv_have_decl_getpwuid=yes
52801 $as_echo "$as_me: failed program was:" >&5
52802 sed 's/^/| /' conftest.$ac_ext >&5
52804 ac_cv_have_decl_getpwuid=no
52807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52809 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
52810 $as_echo "$ac_cv_have_decl_getpwuid" >&6; }
52811 if test "x$ac_cv_have_decl_getpwuid" = x""yes; then
52813 cat >>confdefs.h <<_ACEOF
52814 #define HAVE_DECL_GETPWUID 1
52819 cat >>confdefs.h <<_ACEOF
52820 #define HAVE_DECL_GETPWUID 0
52827 { $as_echo "$as_me:$LINENO: checking whether time is declared" >&5
52828 $as_echo_n "checking whether time is declared... " >&6; }
52829 if test "${ac_cv_have_decl_time+set}" = set; then
52830 $as_echo_n "(cached) " >&6
52832 cat >conftest.$ac_ext <<_ACEOF
52835 cat confdefs.h >>conftest.$ac_ext
52836 cat >>conftest.$ac_ext <<_ACEOF
52837 /* end confdefs.h. */
52851 rm -f conftest.$ac_objext
52852 if { (ac_try="$ac_compile"
52853 case "(($ac_try" in
52854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52855 *) ac_try_echo=$ac_try;;
52857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52858 $as_echo "$ac_try_echo") >&5
52859 (eval "$ac_compile") 2>conftest.er1
52861 grep -v '^ *+' conftest.er1 >conftest.err
52863 cat conftest.err >&5
52864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52865 (exit $ac_status); } && {
52866 test -z "$ac_c_werror_flag" ||
52867 test ! -s conftest.err
52868 } && test -s conftest.$ac_objext; then
52869 ac_cv_have_decl_time=yes
52871 $as_echo "$as_me: failed program was:" >&5
52872 sed 's/^/| /' conftest.$ac_ext >&5
52874 ac_cv_have_decl_time=no
52877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52879 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_time" >&5
52880 $as_echo "$ac_cv_have_decl_time" >&6; }
52881 if test "x$ac_cv_have_decl_time" = x""yes; then
52883 cat >>confdefs.h <<_ACEOF
52884 #define HAVE_DECL_TIME 1
52889 cat >>confdefs.h <<_ACEOF
52890 #define HAVE_DECL_TIME 0
52899 for ac_func in waitpid
52901 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
52902 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
52903 $as_echo_n "checking for $ac_func... " >&6; }
52904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
52905 $as_echo_n "(cached) " >&6
52907 cat >conftest.$ac_ext <<_ACEOF
52910 cat confdefs.h >>conftest.$ac_ext
52911 cat >>conftest.$ac_ext <<_ACEOF
52912 /* end confdefs.h. */
52913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52915 #define $ac_func innocuous_$ac_func
52917 /* System header to define __stub macros and hopefully few prototypes,
52918 which can conflict with char $ac_func (); below.
52919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52920 <limits.h> exists even on freestanding compilers. */
52923 # include <limits.h>
52925 # include <assert.h>
52930 /* Override any GCC internal prototype to avoid an error.
52931 Use char because int might match the return type of a GCC
52932 builtin and then its argument prototype would still apply. */
52937 /* The GNU C library defines this for functions which it implements
52938 to always fail with ENOSYS. Some functions are actually named
52939 something starting with __ and the normal name is an alias. */
52940 #if defined __stub_$ac_func || defined __stub___$ac_func
52947 return $ac_func ();
52952 rm -f conftest.$ac_objext conftest$ac_exeext
52953 if { (ac_try="$ac_link"
52954 case "(($ac_try" in
52955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52956 *) ac_try_echo=$ac_try;;
52958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52959 $as_echo "$ac_try_echo") >&5
52960 (eval "$ac_link") 2>conftest.er1
52962 grep -v '^ *+' conftest.er1 >conftest.err
52964 cat conftest.err >&5
52965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52966 (exit $ac_status); } && {
52967 test -z "$ac_c_werror_flag" ||
52968 test ! -s conftest.err
52969 } && test -s conftest$ac_exeext && {
52970 test "$cross_compiling" = yes ||
52971 $as_test_x conftest$ac_exeext
52973 eval "$as_ac_var=yes"
52975 $as_echo "$as_me: failed program was:" >&5
52976 sed 's/^/| /' conftest.$ac_ext >&5
52978 eval "$as_ac_var=no"
52981 rm -rf conftest.dSYM
52982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52983 conftest$ac_exeext conftest.$ac_ext
52985 ac_res=`eval 'as_val=${'$as_ac_var'}
52986 $as_echo "$as_val"'`
52987 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
52988 $as_echo "$ac_res" >&6; }
52989 as_val=`eval 'as_val=${'$as_ac_var'}
52990 $as_echo "$as_val"'`
52991 if test "x$as_val" = x""yes; then
52992 cat >>confdefs.h <<_ACEOF
52993 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
52997 case " $LIBOBJS " in
52998 *" $ac_func.$ac_objext "* ) ;;
52999 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
53008 { $as_echo "$as_me:$LINENO: checking for remote shell" >&5
53009 $as_echo_n "checking for remote shell... " >&6; }
53010 if test "${tar_cv_path_RSH+set}" = set; then
53011 $as_echo_n "(cached) " >&6
53013 if test -n "$RSH"; then
53014 tar_cv_path_RSH=$RSH
53017 for ac_file in /usr/ucb/rsh /usr/bin/remsh /usr/bin/rsh /usr/bsd/rsh \
53018 /usr/bin/nsh /usr/bin/rcmd
53020 # Prefer a non-symlink rsh to a symlink one, so that binaries built
53021 # on AIX 4.1.4, where /usr/ucb/rsh is a symlink to /usr/bin/rsh
53022 # will run on AIX 4.3.0, which has only /usr/bin/rsh.
53023 if test -f $ac_file; then
53024 if (test -h $ac_file) 2>/dev/null; then
53025 test $tar_cv_path_RSH = no && tar_cv_path_RSH=$ac_file
53027 tar_cv_path_RSH=$ac_file
53034 { $as_echo "$as_me:$LINENO: result: $tar_cv_path_RSH" >&5
53035 $as_echo "$tar_cv_path_RSH" >&6; }
53036 if test $tar_cv_path_RSH = no; then
53038 for ac_header in netdb.h
53040 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
53041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53042 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
53043 $as_echo_n "checking for $ac_header... " >&6; }
53044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53045 $as_echo_n "(cached) " >&6
53047 ac_res=`eval 'as_val=${'$as_ac_Header'}
53048 $as_echo "$as_val"'`
53049 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
53050 $as_echo "$ac_res" >&6; }
53052 # Is the header compilable?
53053 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
53054 $as_echo_n "checking $ac_header usability... " >&6; }
53055 cat >conftest.$ac_ext <<_ACEOF
53058 cat confdefs.h >>conftest.$ac_ext
53059 cat >>conftest.$ac_ext <<_ACEOF
53060 /* end confdefs.h. */
53061 $ac_includes_default
53062 #include <$ac_header>
53064 rm -f conftest.$ac_objext
53065 if { (ac_try="$ac_compile"
53066 case "(($ac_try" in
53067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53068 *) ac_try_echo=$ac_try;;
53070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53071 $as_echo "$ac_try_echo") >&5
53072 (eval "$ac_compile") 2>conftest.er1
53074 grep -v '^ *+' conftest.er1 >conftest.err
53076 cat conftest.err >&5
53077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53078 (exit $ac_status); } && {
53079 test -z "$ac_c_werror_flag" ||
53080 test ! -s conftest.err
53081 } && test -s conftest.$ac_objext; then
53082 ac_header_compiler=yes
53084 $as_echo "$as_me: failed program was:" >&5
53085 sed 's/^/| /' conftest.$ac_ext >&5
53087 ac_header_compiler=no
53090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53091 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53092 $as_echo "$ac_header_compiler" >&6; }
53094 # Is the header present?
53095 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
53096 $as_echo_n "checking $ac_header presence... " >&6; }
53097 cat >conftest.$ac_ext <<_ACEOF
53100 cat confdefs.h >>conftest.$ac_ext
53101 cat >>conftest.$ac_ext <<_ACEOF
53102 /* end confdefs.h. */
53103 #include <$ac_header>
53105 if { (ac_try="$ac_cpp conftest.$ac_ext"
53106 case "(($ac_try" in
53107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53108 *) ac_try_echo=$ac_try;;
53110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53111 $as_echo "$ac_try_echo") >&5
53112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
53114 grep -v '^ *+' conftest.er1 >conftest.err
53116 cat conftest.err >&5
53117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53118 (exit $ac_status); } >/dev/null && {
53119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
53120 test ! -s conftest.err
53122 ac_header_preproc=yes
53124 $as_echo "$as_me: failed program was:" >&5
53125 sed 's/^/| /' conftest.$ac_ext >&5
53127 ac_header_preproc=no
53130 rm -f conftest.err conftest.$ac_ext
53131 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53132 $as_echo "$ac_header_preproc" >&6; }
53134 # So? What about this header?
53135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53138 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
53140 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
53141 ac_header_preproc=yes
53144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53145 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53146 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
53147 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
53148 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
53149 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
53150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
53151 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
53152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53153 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53154 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
53155 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
53157 ## ------------------------------ ##
53158 ## Report this to bug-tar@gnu.org ##
53159 ## ------------------------------ ##
53161 ) | sed "s/^/$as_me: WARNING: /" >&2
53164 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
53165 $as_echo_n "checking for $ac_header... " >&6; }
53166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53167 $as_echo_n "(cached) " >&6
53169 eval "$as_ac_Header=\$ac_header_preproc"
53171 ac_res=`eval 'as_val=${'$as_ac_Header'}
53172 $as_echo "$as_val"'`
53173 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
53174 $as_echo "$ac_res" >&6; }
53177 as_val=`eval 'as_val=${'$as_ac_Header'}
53178 $as_echo "$as_val"'`
53179 if test "x$as_val" = x""yes; then
53180 cat >>confdefs.h <<_ACEOF
53181 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
53190 cat >>confdefs.h <<_ACEOF
53191 #define REMOTE_SHELL "$tar_cv_path_RSH"
53200 # Check whether --with-compress was given.
53201 if test "${with_compress+set}" = set; then
53202 withval=$with_compress; tar_cv_compressor_compress=${withval}
53204 tar_cv_compressor_compress=compress
53208 cat >>confdefs.h <<_ACEOF
53209 #define COMPRESS_PROGRAM "$tar_cv_compressor_compress"
53216 # Check whether --with-gzip was given.
53217 if test "${with_gzip+set}" = set; then
53218 withval=$with_gzip; tar_cv_compressor_gzip=${withval}
53220 tar_cv_compressor_gzip=gzip
53224 cat >>confdefs.h <<_ACEOF
53225 #define GZIP_PROGRAM "$tar_cv_compressor_gzip"
53232 # Check whether --with-bzip2 was given.
53233 if test "${with_bzip2+set}" = set; then
53234 withval=$with_bzip2; tar_cv_compressor_bzip2=${withval}
53236 tar_cv_compressor_bzip2=bzip2
53240 cat >>confdefs.h <<_ACEOF
53241 #define BZIP2_PROGRAM "$tar_cv_compressor_bzip2"
53248 # Check whether --with-lzip was given.
53249 if test "${with_lzip+set}" = set; then
53250 withval=$with_lzip; tar_cv_compressor_lzip=${withval}
53252 tar_cv_compressor_lzip=lzip
53256 cat >>confdefs.h <<_ACEOF
53257 #define LZIP_PROGRAM "$tar_cv_compressor_lzip"
53264 # Check whether --with-lzma was given.
53265 if test "${with_lzma+set}" = set; then
53266 withval=$with_lzma; tar_cv_compressor_lzma=${withval}
53268 tar_cv_compressor_lzma=lzma
53272 cat >>confdefs.h <<_ACEOF
53273 #define LZMA_PROGRAM "$tar_cv_compressor_lzma"
53280 # Check whether --with-lzop was given.
53281 if test "${with_lzop+set}" = set; then
53282 withval=$with_lzop; tar_cv_compressor_lzop=${withval}
53284 tar_cv_compressor_lzop=lzop
53288 cat >>confdefs.h <<_ACEOF
53289 #define LZOP_PROGRAM "$tar_cv_compressor_lzop"
53296 # Check whether --with-xz was given.
53297 if test "${with_xz+set}" = set; then
53298 withval=$with_xz; tar_cv_compressor_xz=${withval}
53300 tar_cv_compressor_xz=xz
53304 cat >>confdefs.h <<_ACEOF
53305 #define XZ_PROGRAM "$tar_cv_compressor_xz"
53309 { $as_echo "$as_me:$LINENO: checking for default archive format" >&5
53310 $as_echo_n "checking for default archive format... " >&6; }
53314 if test -z "$DEFAULT_ARCHIVE_FORMAT"; then
53315 DEFAULT_ARCHIVE_FORMAT="GNU"
53317 case $DEFAULT_ARCHIVE_FORMAT in
53318 V7|OLDGNU|USTAR|POSIX|GNU) ;;
53319 *) { { $as_echo "$as_me:$LINENO: error: Invalid format name" >&5
53320 $as_echo "$as_me: error: Invalid format name" >&2;}
53321 { (exit 1); exit 1; }; };;
53324 cat >>confdefs.h <<_ACEOF
53325 #define DEFAULT_ARCHIVE_FORMAT ${DEFAULT_ARCHIVE_FORMAT}_FORMAT
53328 { $as_echo "$as_me:$LINENO: result: $DEFAULT_ARCHIVE_FORMAT" >&5
53329 $as_echo "$DEFAULT_ARCHIVE_FORMAT" >&6; }
53331 { $as_echo "$as_me:$LINENO: checking for default archive" >&5
53332 $as_echo_n "checking for default archive... " >&6; }
53335 if test -z "$DEFAULT_ARCHIVE"; then
53338 if test -z "`ls $DEFAULT_ARCHIVE 2>/dev/null`"; then
53339 { $as_echo "$as_me:$LINENO: WARNING: DEFAULT_ARCHIVE \`$DEFAULT_ARCHIVE' not found on this system" >&5
53340 $as_echo "$as_me: WARNING: DEFAULT_ARCHIVE \`$DEFAULT_ARCHIVE' not found on this system" >&2;}
53342 # FIXME: Look for DEFTAPE in <sys/mtio.h>.
53343 # FIXME: Let DEVICE_PREFIX be configured from the environment.
53344 # FIXME: Rearrange, here.
53345 case $DEFAULT_ARCHIVE in
53348 cat >>confdefs.h <<\_ACEOF
53349 #define DENSITY_LETTER 1
53352 device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/0-7lmh$//'`
53355 device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/0-7$//'`
53361 case "$device_prefix" in
53364 cat >>confdefs.h <<_ACEOF
53365 #define DEVICE_PREFIX "$device_prefix"
53372 cat >>confdefs.h <<_ACEOF
53373 #define DEFAULT_ARCHIVE "$DEFAULT_ARCHIVE"
53376 { $as_echo "$as_me:$LINENO: result: $DEFAULT_ARCHIVE" >&5
53377 $as_echo "$DEFAULT_ARCHIVE" >&6; }
53380 { $as_echo "$as_me:$LINENO: checking for default blocking" >&5
53381 $as_echo_n "checking for default blocking... " >&6; }
53382 DEFAULT_BLOCKING=${DEFAULT_BLOCKING-20}
53384 cat >>confdefs.h <<_ACEOF
53385 #define DEFAULT_BLOCKING $DEFAULT_BLOCKING
53388 { $as_echo "$as_me:$LINENO: result: $DEFAULT_BLOCKING" >&5
53389 $as_echo "$DEFAULT_BLOCKING" >&6; }
53391 { $as_echo "$as_me:$LINENO: checking for default quoting style" >&5
53392 $as_echo_n "checking for default quoting style... " >&6; }
53395 DEFAULT_QUOTING_STYLE="escape"
53398 case $DEFAULT_QUOTING_STYLE in
53399 literal|shell|shell-always|c|escape|locale|clocale) ;;
53400 *) { { $as_echo "$as_me:$LINENO: error: Invalid quoting style" >&5
53401 $as_echo "$as_me: error: Invalid quoting style" >&2;}
53402 { (exit 1); exit 1; }; };;
53404 { $as_echo "$as_me:$LINENO: result: $DEFAULT_QUOTING_STYLE" >&5
53405 $as_echo "$DEFAULT_QUOTING_STYLE" >&6; }
53406 DEFAULT_QUOTING_STYLE=`echo ${DEFAULT_QUOTING_STYLE}|sed 's/-/_/g'`_quoting_style
53408 cat >>confdefs.h <<_ACEOF
53409 #define DEFAULT_QUOTING_STYLE $DEFAULT_QUOTING_STYLE
53415 if test "X$prefix" = "XNONE"; then
53416 acl_final_prefix="$ac_default_prefix"
53418 acl_final_prefix="$prefix"
53420 if test "X$exec_prefix" = "XNONE"; then
53421 acl_final_exec_prefix='${prefix}'
53423 acl_final_exec_prefix="$exec_prefix"
53425 acl_save_prefix="$prefix"
53426 prefix="$acl_final_prefix"
53427 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
53428 prefix="$acl_save_prefix"
53431 # Check whether --with-gnu-ld was given.
53432 if test "${with_gnu_ld+set}" = set; then
53433 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
53438 # Prepare PATH_SEPARATOR.
53439 # The user is always right.
53440 if test "${PATH_SEPARATOR+set}" != set; then
53441 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
53442 # contains only /bin. Note that ksh looks also at the FPATH variable,
53443 # so we have to set that as well for the test.
53445 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
53446 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
53447 || PATH_SEPARATOR=';'
53451 if test "$GCC" = yes; then
53452 # Check if gcc -print-prog-name=ld gives a path.
53453 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
53454 $as_echo_n "checking for ld used by GCC... " >&6; }
53457 # gcc leaves a trailing carriage return which upsets mingw
53458 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
53460 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
53463 # Accept absolute paths.
53464 [\\/]* | [A-Za-z]:[\\/]*)
53465 re_direlt='/[^/][^/]*/\.\./'
53466 # Canonicalize the path of ld
53467 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
53468 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
53469 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
53471 test -z "$LD" && LD="$ac_prog"
53474 # If it fails, then pretend we aren't using GCC.
53478 # If it is relative, then search for the first ld in PATH.
53479 with_gnu_ld=unknown
53482 elif test "$with_gnu_ld" = yes; then
53483 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
53484 $as_echo_n "checking for GNU ld... " >&6; }
53486 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
53487 $as_echo_n "checking for non-GNU ld... " >&6; }
53489 if test "${acl_cv_path_LD+set}" = set; then
53490 $as_echo_n "(cached) " >&6
53492 if test -z "$LD"; then
53493 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
53494 for ac_dir in $PATH; do
53495 test -z "$ac_dir" && ac_dir=.
53496 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
53497 acl_cv_path_LD="$ac_dir/$ac_prog"
53498 # Check to see if the program is GNU ld. I'd rather use --version,
53499 # but apparently some GNU ld's only accept -v.
53500 # Break only if it was the GNU/non-GNU ld that we prefer.
53501 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
53502 *GNU* | *'with BFD'*)
53503 test "$with_gnu_ld" != no && break ;;
53505 test "$with_gnu_ld" != yes && break ;;
53511 acl_cv_path_LD="$LD" # Let the user override the test with a path.
53515 LD="$acl_cv_path_LD"
53516 if test -n "$LD"; then
53517 { $as_echo "$as_me:$LINENO: result: $LD" >&5
53518 $as_echo "$LD" >&6; }
53520 { $as_echo "$as_me:$LINENO: result: no" >&5
53521 $as_echo "no" >&6; }
53523 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
53524 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
53525 { (exit 1); exit 1; }; }
53526 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
53527 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
53528 if test "${acl_cv_prog_gnu_ld+set}" = set; then
53529 $as_echo_n "(cached) " >&6
53531 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
53532 case `$LD -v 2>&1 </dev/null` in
53533 *GNU* | *'with BFD'*)
53534 acl_cv_prog_gnu_ld=yes ;;
53536 acl_cv_prog_gnu_ld=no ;;
53539 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
53540 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
53541 with_gnu_ld=$acl_cv_prog_gnu_ld
53546 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
53547 $as_echo_n "checking for shared library run path origin... " >&6; }
53548 if test "${acl_cv_rpath+set}" = set; then
53549 $as_echo_n "(cached) " >&6
53552 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
53553 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
53555 rm -f ./conftest.sh
53559 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
53560 $as_echo "$acl_cv_rpath" >&6; }
53562 acl_libext="$acl_cv_libext"
53563 acl_shlibext="$acl_cv_shlibext"
53564 acl_libname_spec="$acl_cv_libname_spec"
53565 acl_library_names_spec="$acl_cv_library_names_spec"
53566 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
53567 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
53568 acl_hardcode_direct="$acl_cv_hardcode_direct"
53569 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
53570 # Check whether --enable-rpath was given.
53571 if test "${enable_rpath+set}" = set; then
53572 enableval=$enable_rpath; :
53584 { $as_echo "$as_me:$LINENO: checking for 64-bit host" >&5
53585 $as_echo_n "checking for 64-bit host... " >&6; }
53586 if test "${gl_cv_solaris_64bit+set}" = set; then
53587 $as_echo_n "(cached) " >&6
53589 cat >conftest.$ac_ext <<_ACEOF
53592 cat confdefs.h >>conftest.$ac_ext
53593 cat >>conftest.$ac_ext <<_ACEOF
53594 /* end confdefs.h. */
53601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53602 $EGREP "sixtyfour bits" >/dev/null 2>&1; then
53603 gl_cv_solaris_64bit=yes
53605 gl_cv_solaris_64bit=no
53611 { $as_echo "$as_me:$LINENO: result: $gl_cv_solaris_64bit" >&5
53612 $as_echo "$gl_cv_solaris_64bit" >&6; }
53613 if test $gl_cv_solaris_64bit = yes; then
53614 acl_libdirstem=lib/64
53615 case "$host_cpu" in
53616 sparc*) acl_libdirstem2=lib/sparcv9 ;;
53617 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
53622 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
53623 if test -n "$searchpath"; then
53624 acl_save_IFS="${IFS= }"; IFS=":"
53625 for searchdir in $searchpath; do
53626 if test -d "$searchdir"; then
53627 case "$searchdir" in
53628 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
53630 # Better ignore directories of this form. They are misleading.
53632 *) searchdir=`cd "$searchdir" && pwd`
53633 case "$searchdir" in
53634 */lib64 ) acl_libdirstem=lib64 ;;
53639 IFS="$acl_save_IFS"
53643 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
53658 acl_save_prefix="$prefix"
53659 prefix="$acl_final_prefix"
53660 acl_save_exec_prefix="$exec_prefix"
53661 exec_prefix="$acl_final_exec_prefix"
53663 eval additional_includedir=\"$includedir\"
53664 eval additional_libdir=\"$libdir\"
53666 exec_prefix="$acl_save_exec_prefix"
53667 prefix="$acl_save_prefix"
53670 # Check whether --with-libiconv-prefix was given.
53671 if test "${with_libiconv_prefix+set}" = set; then
53672 withval=$with_libiconv_prefix;
53673 if test "X$withval" = "Xno"; then
53676 if test "X$withval" = "X"; then
53678 acl_save_prefix="$prefix"
53679 prefix="$acl_final_prefix"
53680 acl_save_exec_prefix="$exec_prefix"
53681 exec_prefix="$acl_final_exec_prefix"
53683 eval additional_includedir=\"$includedir\"
53684 eval additional_libdir=\"$libdir\"
53686 exec_prefix="$acl_save_exec_prefix"
53687 prefix="$acl_save_prefix"
53690 additional_includedir="$withval/include"
53691 additional_libdir="$withval/$acl_libdirstem"
53692 if test "$acl_libdirstem2" != "$acl_libdirstem" \
53693 && ! test -d "$withval/$acl_libdirstem"; then
53694 additional_libdir="$withval/$acl_libdirstem2"
53708 names_already_handled=
53709 names_next_round='iconv '
53710 while test -n "$names_next_round"; do
53711 names_this_round="$names_next_round"
53713 for name in $names_this_round; do
53715 for n in $names_already_handled; do
53716 if test "$n" = "$name"; then
53717 already_handled=yes
53721 if test -z "$already_handled"; then
53722 names_already_handled="$names_already_handled $name"
53723 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
53724 eval value=\"\$HAVE_LIB$uppername\"
53725 if test -n "$value"; then
53726 if test "$value" = yes; then
53727 eval value=\"\$LIB$uppername\"
53728 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
53729 eval value=\"\$LTLIB$uppername\"
53730 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
53739 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
53740 if test -n "$acl_shlibext"; then
53741 shrext=".$acl_shlibext" # typically: shrext=.so
53745 if test $use_additional = yes; then
53746 dir="$additional_libdir"
53747 if test -n "$acl_shlibext"; then
53748 if test -f "$dir/$libname$shrext"; then
53750 found_so="$dir/$libname$shrext"
53752 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
53753 ver=`(cd "$dir" && \
53754 for f in "$libname$shrext".*; do echo "$f"; done \
53755 | sed -e "s,^$libname$shrext\\\\.,," \
53756 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
53757 | sed 1q ) 2>/dev/null`
53758 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
53760 found_so="$dir/$libname$shrext.$ver"
53763 eval library_names=\"$acl_library_names_spec\"
53764 for f in $library_names; do
53765 if test -f "$dir/$f"; then
53774 if test "X$found_dir" = "X"; then
53775 if test -f "$dir/$libname.$acl_libext"; then
53777 found_a="$dir/$libname.$acl_libext"
53780 if test "X$found_dir" != "X"; then
53781 if test -f "$dir/$libname.la"; then
53782 found_la="$dir/$libname.la"
53786 if test "X$found_dir" = "X"; then
53787 for x in $LDFLAGS $LTLIBICONV; do
53789 acl_save_prefix="$prefix"
53790 prefix="$acl_final_prefix"
53791 acl_save_exec_prefix="$exec_prefix"
53792 exec_prefix="$acl_final_exec_prefix"
53794 exec_prefix="$acl_save_exec_prefix"
53795 prefix="$acl_save_prefix"
53799 dir=`echo "X$x" | sed -e 's/^X-L//'`
53800 if test -n "$acl_shlibext"; then
53801 if test -f "$dir/$libname$shrext"; then
53803 found_so="$dir/$libname$shrext"
53805 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
53806 ver=`(cd "$dir" && \
53807 for f in "$libname$shrext".*; do echo "$f"; done \
53808 | sed -e "s,^$libname$shrext\\\\.,," \
53809 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
53810 | sed 1q ) 2>/dev/null`
53811 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
53813 found_so="$dir/$libname$shrext.$ver"
53816 eval library_names=\"$acl_library_names_spec\"
53817 for f in $library_names; do
53818 if test -f "$dir/$f"; then
53827 if test "X$found_dir" = "X"; then
53828 if test -f "$dir/$libname.$acl_libext"; then
53830 found_a="$dir/$libname.$acl_libext"
53833 if test "X$found_dir" != "X"; then
53834 if test -f "$dir/$libname.la"; then
53835 found_la="$dir/$libname.la"
53840 if test "X$found_dir" != "X"; then
53845 if test "X$found_dir" != "X"; then
53846 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
53847 if test "X$found_so" != "X"; then
53848 if test "$enable_rpath" = no \
53849 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
53850 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
53851 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
53854 for x in $ltrpathdirs; do
53855 if test "X$x" = "X$found_dir"; then
53860 if test -z "$haveit"; then
53861 ltrpathdirs="$ltrpathdirs $found_dir"
53863 if test "$acl_hardcode_direct" = yes; then
53864 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
53866 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
53867 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
53869 for x in $rpathdirs; do
53870 if test "X$x" = "X$found_dir"; then
53875 if test -z "$haveit"; then
53876 rpathdirs="$rpathdirs $found_dir"
53880 for x in $LDFLAGS $LIBICONV; do
53882 acl_save_prefix="$prefix"
53883 prefix="$acl_final_prefix"
53884 acl_save_exec_prefix="$exec_prefix"
53885 exec_prefix="$acl_final_exec_prefix"
53887 exec_prefix="$acl_save_exec_prefix"
53888 prefix="$acl_save_prefix"
53890 if test "X$x" = "X-L$found_dir"; then
53895 if test -z "$haveit"; then
53896 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
53898 if test "$acl_hardcode_minus_L" != no; then
53899 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
53901 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
53907 if test "X$found_a" != "X"; then
53908 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
53910 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
53913 additional_includedir=
53914 case "$found_dir" in
53915 */$acl_libdirstem | */$acl_libdirstem/)
53916 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
53917 if test "$name" = 'iconv'; then
53918 LIBICONV_PREFIX="$basedir"
53920 additional_includedir="$basedir/include"
53922 */$acl_libdirstem2 | */$acl_libdirstem2/)
53923 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
53924 if test "$name" = 'iconv'; then
53925 LIBICONV_PREFIX="$basedir"
53927 additional_includedir="$basedir/include"
53930 if test "X$additional_includedir" != "X"; then
53931 if test "X$additional_includedir" != "X/usr/include"; then
53933 if test "X$additional_includedir" = "X/usr/local/include"; then
53934 if test -n "$GCC"; then
53936 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
53940 if test -z "$haveit"; then
53941 for x in $CPPFLAGS $INCICONV; do
53943 acl_save_prefix="$prefix"
53944 prefix="$acl_final_prefix"
53945 acl_save_exec_prefix="$exec_prefix"
53946 exec_prefix="$acl_final_exec_prefix"
53948 exec_prefix="$acl_save_exec_prefix"
53949 prefix="$acl_save_prefix"
53951 if test "X$x" = "X-I$additional_includedir"; then
53956 if test -z "$haveit"; then
53957 if test -d "$additional_includedir"; then
53958 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
53964 if test -n "$found_la"; then
53965 save_libdir="$libdir"
53966 case "$found_la" in
53967 */* | *\\*) . "$found_la" ;;
53968 *) . "./$found_la" ;;
53970 libdir="$save_libdir"
53971 for dep in $dependency_libs; do
53974 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
53975 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
53976 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
53978 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
53979 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
53980 if test -n "$GCC"; then
53982 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
53986 if test -z "$haveit"; then
53988 for x in $LDFLAGS $LIBICONV; do
53990 acl_save_prefix="$prefix"
53991 prefix="$acl_final_prefix"
53992 acl_save_exec_prefix="$exec_prefix"
53993 exec_prefix="$acl_final_exec_prefix"
53995 exec_prefix="$acl_save_exec_prefix"
53996 prefix="$acl_save_prefix"
53998 if test "X$x" = "X-L$additional_libdir"; then
54003 if test -z "$haveit"; then
54004 if test -d "$additional_libdir"; then
54005 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
54009 for x in $LDFLAGS $LTLIBICONV; do
54011 acl_save_prefix="$prefix"
54012 prefix="$acl_final_prefix"
54013 acl_save_exec_prefix="$exec_prefix"
54014 exec_prefix="$acl_final_exec_prefix"
54016 exec_prefix="$acl_save_exec_prefix"
54017 prefix="$acl_save_prefix"
54019 if test "X$x" = "X-L$additional_libdir"; then
54024 if test -z "$haveit"; then
54025 if test -d "$additional_libdir"; then
54026 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
54033 dir=`echo "X$dep" | sed -e 's/^X-R//'`
54034 if test "$enable_rpath" != no; then
54036 for x in $rpathdirs; do
54037 if test "X$x" = "X$dir"; then
54042 if test -z "$haveit"; then
54043 rpathdirs="$rpathdirs $dir"
54046 for x in $ltrpathdirs; do
54047 if test "X$x" = "X$dir"; then
54052 if test -z "$haveit"; then
54053 ltrpathdirs="$ltrpathdirs $dir"
54058 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
54061 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
54064 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
54065 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
54071 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
54072 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
54078 if test "X$rpathdirs" != "X"; then
54079 if test -n "$acl_hardcode_libdir_separator"; then
54081 for found_dir in $rpathdirs; do
54082 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
54084 acl_save_libdir="$libdir"
54086 eval flag=\"$acl_hardcode_libdir_flag_spec\"
54087 libdir="$acl_save_libdir"
54088 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
54090 for found_dir in $rpathdirs; do
54091 acl_save_libdir="$libdir"
54092 libdir="$found_dir"
54093 eval flag=\"$acl_hardcode_libdir_flag_spec\"
54094 libdir="$acl_save_libdir"
54095 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
54099 if test "X$ltrpathdirs" != "X"; then
54100 for found_dir in $ltrpathdirs; do
54101 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
54116 am_save_CPPFLAGS="$CPPFLAGS"
54118 for element in $INCICONV; do
54120 for x in $CPPFLAGS; do
54122 acl_save_prefix="$prefix"
54123 prefix="$acl_final_prefix"
54124 acl_save_exec_prefix="$exec_prefix"
54125 exec_prefix="$acl_final_exec_prefix"
54127 exec_prefix="$acl_save_exec_prefix"
54128 prefix="$acl_save_prefix"
54130 if test "X$x" = "X$element"; then
54135 if test -z "$haveit"; then
54136 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
54141 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
54142 $as_echo_n "checking for iconv... " >&6; }
54143 if test "${am_cv_func_iconv+set}" = set; then
54144 $as_echo_n "(cached) " >&6
54147 am_cv_func_iconv="no, consider installing GNU libiconv"
54149 cat >conftest.$ac_ext <<_ACEOF
54152 cat confdefs.h >>conftest.$ac_ext
54153 cat >>conftest.$ac_ext <<_ACEOF
54154 /* end confdefs.h. */
54156 #include <stdlib.h>
54162 iconv_t cd = iconv_open("","");
54163 iconv(cd,NULL,NULL,NULL,NULL);
54169 rm -f conftest.$ac_objext conftest$ac_exeext
54170 if { (ac_try="$ac_link"
54171 case "(($ac_try" in
54172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54173 *) ac_try_echo=$ac_try;;
54175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54176 $as_echo "$ac_try_echo") >&5
54177 (eval "$ac_link") 2>conftest.er1
54179 grep -v '^ *+' conftest.er1 >conftest.err
54181 cat conftest.err >&5
54182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54183 (exit $ac_status); } && {
54184 test -z "$ac_c_werror_flag" ||
54185 test ! -s conftest.err
54186 } && test -s conftest$ac_exeext && {
54187 test "$cross_compiling" = yes ||
54188 $as_test_x conftest$ac_exeext
54190 am_cv_func_iconv=yes
54192 $as_echo "$as_me: failed program was:" >&5
54193 sed 's/^/| /' conftest.$ac_ext >&5
54198 rm -rf conftest.dSYM
54199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54200 conftest$ac_exeext conftest.$ac_ext
54201 if test "$am_cv_func_iconv" != yes; then
54202 am_save_LIBS="$LIBS"
54203 LIBS="$LIBS $LIBICONV"
54204 cat >conftest.$ac_ext <<_ACEOF
54207 cat confdefs.h >>conftest.$ac_ext
54208 cat >>conftest.$ac_ext <<_ACEOF
54209 /* end confdefs.h. */
54211 #include <stdlib.h>
54217 iconv_t cd = iconv_open("","");
54218 iconv(cd,NULL,NULL,NULL,NULL);
54224 rm -f conftest.$ac_objext conftest$ac_exeext
54225 if { (ac_try="$ac_link"
54226 case "(($ac_try" in
54227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54228 *) ac_try_echo=$ac_try;;
54230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54231 $as_echo "$ac_try_echo") >&5
54232 (eval "$ac_link") 2>conftest.er1
54234 grep -v '^ *+' conftest.er1 >conftest.err
54236 cat conftest.err >&5
54237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54238 (exit $ac_status); } && {
54239 test -z "$ac_c_werror_flag" ||
54240 test ! -s conftest.err
54241 } && test -s conftest$ac_exeext && {
54242 test "$cross_compiling" = yes ||
54243 $as_test_x conftest$ac_exeext
54245 am_cv_lib_iconv=yes
54246 am_cv_func_iconv=yes
54248 $as_echo "$as_me: failed program was:" >&5
54249 sed 's/^/| /' conftest.$ac_ext >&5
54254 rm -rf conftest.dSYM
54255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54256 conftest$ac_exeext conftest.$ac_ext
54257 LIBS="$am_save_LIBS"
54261 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
54262 $as_echo "$am_cv_func_iconv" >&6; }
54263 if test "$am_cv_func_iconv" = yes; then
54264 { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
54265 $as_echo_n "checking for working iconv... " >&6; }
54266 if test "${am_cv_func_iconv_works+set}" = set; then
54267 $as_echo_n "(cached) " >&6
54270 am_save_LIBS="$LIBS"
54271 if test $am_cv_lib_iconv = yes; then
54272 LIBS="$LIBS $LIBICONV"
54274 if test "$cross_compiling" = yes; then
54277 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
54278 *) am_cv_func_iconv_works="guessing yes" ;;
54282 cat >conftest.$ac_ext <<_ACEOF
54285 cat confdefs.h >>conftest.$ac_ext
54286 cat >>conftest.$ac_ext <<_ACEOF
54287 /* end confdefs.h. */
54290 #include <string.h>
54294 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
54297 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
54298 if (cd_utf8_to_88591 != (iconv_t)(-1))
54300 static const char input[] = "\342\202\254"; /* EURO SIGN */
54302 const char *inptr = input;
54303 size_t inbytesleft = strlen (input);
54304 char *outptr = buf;
54305 size_t outbytesleft = sizeof (buf);
54306 size_t res = iconv (cd_utf8_to_88591,
54307 (char **) &inptr, &inbytesleft,
54308 &outptr, &outbytesleft);
54311 iconv_close (cd_utf8_to_88591);
54314 /* Test against Solaris 10 bug: Failures are not distinguishable from
54315 successful returns. */
54317 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
54318 if (cd_ascii_to_88591 != (iconv_t)(-1))
54320 static const char input[] = "\263";
54322 const char *inptr = input;
54323 size_t inbytesleft = strlen (input);
54324 char *outptr = buf;
54325 size_t outbytesleft = sizeof (buf);
54326 size_t res = iconv (cd_ascii_to_88591,
54327 (char **) &inptr, &inbytesleft,
54328 &outptr, &outbytesleft);
54331 iconv_close (cd_ascii_to_88591);
54334 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
54336 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
54337 if (cd_88591_to_utf8 != (iconv_t)(-1))
54339 static const char input[] = "\304";
54340 static char buf[2] = { (char)0xDE, (char)0xAD };
54341 const char *inptr = input;
54342 size_t inbytesleft = 1;
54343 char *outptr = buf;
54344 size_t outbytesleft = 1;
54345 size_t res = iconv (cd_88591_to_utf8,
54346 (char **) &inptr, &inbytesleft,
54347 &outptr, &outbytesleft);
54348 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
54350 iconv_close (cd_88591_to_utf8);
54353 #if 0 /* This bug could be worked around by the caller. */
54354 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
54356 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
54357 if (cd_88591_to_utf8 != (iconv_t)(-1))
54359 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
54361 const char *inptr = input;
54362 size_t inbytesleft = strlen (input);
54363 char *outptr = buf;
54364 size_t outbytesleft = sizeof (buf);
54365 size_t res = iconv (cd_88591_to_utf8,
54366 (char **) &inptr, &inbytesleft,
54367 &outptr, &outbytesleft);
54370 iconv_close (cd_88591_to_utf8);
54374 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
54376 if (/* Try standardized names. */
54377 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
54378 /* Try IRIX, OSF/1 names. */
54379 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
54380 /* Try AIX names. */
54381 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
54382 /* Try HP-UX names. */
54383 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
54388 rm -f conftest$ac_exeext
54389 if { (ac_try="$ac_link"
54390 case "(($ac_try" in
54391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54392 *) ac_try_echo=$ac_try;;
54394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54395 $as_echo "$ac_try_echo") >&5
54396 (eval "$ac_link") 2>&5
54398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54400 { (case "(($ac_try" in
54401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54402 *) ac_try_echo=$ac_try;;
54404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54405 $as_echo "$ac_try_echo") >&5
54406 (eval "$ac_try") 2>&5
54408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54409 (exit $ac_status); }; }; then
54410 am_cv_func_iconv_works=yes
54412 $as_echo "$as_me: program exited with status $ac_status" >&5
54413 $as_echo "$as_me: failed program was:" >&5
54414 sed 's/^/| /' conftest.$ac_ext >&5
54416 ( exit $ac_status )
54417 am_cv_func_iconv_works=no
54419 rm -rf conftest.dSYM
54420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54424 LIBS="$am_save_LIBS"
54427 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
54428 $as_echo "$am_cv_func_iconv_works" >&6; }
54429 case "$am_cv_func_iconv_works" in
54430 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
54431 *) am_func_iconv=yes ;;
54434 am_func_iconv=no am_cv_lib_iconv=no
54436 if test "$am_func_iconv" = yes; then
54438 cat >>confdefs.h <<\_ACEOF
54439 #define HAVE_ICONV 1
54443 if test "$am_cv_lib_iconv" = yes; then
54444 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
54445 $as_echo_n "checking how to link with libiconv... " >&6; }
54446 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
54447 $as_echo "$LIBICONV" >&6; }
54449 CPPFLAGS="$am_save_CPPFLAGS"
54456 if test "$am_cv_func_iconv" = yes; then
54457 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
54458 $as_echo_n "checking for iconv declaration... " >&6; }
54459 if test "${am_cv_proto_iconv+set}" = set; then
54460 $as_echo_n "(cached) " >&6
54463 cat >conftest.$ac_ext <<_ACEOF
54466 cat confdefs.h >>conftest.$ac_ext
54467 cat >>conftest.$ac_ext <<_ACEOF
54468 /* end confdefs.h. */
54470 #include <stdlib.h>
54476 #if defined(__STDC__) || defined(__cplusplus)
54477 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
54490 rm -f conftest.$ac_objext
54491 if { (ac_try="$ac_compile"
54492 case "(($ac_try" in
54493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54494 *) ac_try_echo=$ac_try;;
54496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54497 $as_echo "$ac_try_echo") >&5
54498 (eval "$ac_compile") 2>conftest.er1
54500 grep -v '^ *+' conftest.er1 >conftest.err
54502 cat conftest.err >&5
54503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54504 (exit $ac_status); } && {
54505 test -z "$ac_c_werror_flag" ||
54506 test ! -s conftest.err
54507 } && test -s conftest.$ac_objext; then
54508 am_cv_proto_iconv_arg1=""
54510 $as_echo "$as_me: failed program was:" >&5
54511 sed 's/^/| /' conftest.$ac_ext >&5
54513 am_cv_proto_iconv_arg1="const"
54516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54517 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
54520 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
54521 { $as_echo "$as_me:$LINENO: result:
54522 $am_cv_proto_iconv" >&5
54524 $am_cv_proto_iconv" >&6; }
54526 cat >>confdefs.h <<_ACEOF
54527 #define ICONV_CONST $am_cv_proto_iconv_arg1
54535 for ac_header in iconv.h
54537 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
54538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
54539 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
54540 $as_echo_n "checking for $ac_header... " >&6; }
54541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
54542 $as_echo_n "(cached) " >&6
54544 ac_res=`eval 'as_val=${'$as_ac_Header'}
54545 $as_echo "$as_val"'`
54546 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
54547 $as_echo "$ac_res" >&6; }
54549 # Is the header compilable?
54550 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
54551 $as_echo_n "checking $ac_header usability... " >&6; }
54552 cat >conftest.$ac_ext <<_ACEOF
54555 cat confdefs.h >>conftest.$ac_ext
54556 cat >>conftest.$ac_ext <<_ACEOF
54557 /* end confdefs.h. */
54558 $ac_includes_default
54559 #include <$ac_header>
54561 rm -f conftest.$ac_objext
54562 if { (ac_try="$ac_compile"
54563 case "(($ac_try" in
54564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54565 *) ac_try_echo=$ac_try;;
54567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54568 $as_echo "$ac_try_echo") >&5
54569 (eval "$ac_compile") 2>conftest.er1
54571 grep -v '^ *+' conftest.er1 >conftest.err
54573 cat conftest.err >&5
54574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54575 (exit $ac_status); } && {
54576 test -z "$ac_c_werror_flag" ||
54577 test ! -s conftest.err
54578 } && test -s conftest.$ac_objext; then
54579 ac_header_compiler=yes
54581 $as_echo "$as_me: failed program was:" >&5
54582 sed 's/^/| /' conftest.$ac_ext >&5
54584 ac_header_compiler=no
54587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54588 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54589 $as_echo "$ac_header_compiler" >&6; }
54591 # Is the header present?
54592 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
54593 $as_echo_n "checking $ac_header presence... " >&6; }
54594 cat >conftest.$ac_ext <<_ACEOF
54597 cat confdefs.h >>conftest.$ac_ext
54598 cat >>conftest.$ac_ext <<_ACEOF
54599 /* end confdefs.h. */
54600 #include <$ac_header>
54602 if { (ac_try="$ac_cpp conftest.$ac_ext"
54603 case "(($ac_try" in
54604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54605 *) ac_try_echo=$ac_try;;
54607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54608 $as_echo "$ac_try_echo") >&5
54609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
54611 grep -v '^ *+' conftest.er1 >conftest.err
54613 cat conftest.err >&5
54614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54615 (exit $ac_status); } >/dev/null && {
54616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
54617 test ! -s conftest.err
54619 ac_header_preproc=yes
54621 $as_echo "$as_me: failed program was:" >&5
54622 sed 's/^/| /' conftest.$ac_ext >&5
54624 ac_header_preproc=no
54627 rm -f conftest.err conftest.$ac_ext
54628 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54629 $as_echo "$ac_header_preproc" >&6; }
54631 # So? What about this header?
54632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54635 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
54637 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
54638 ac_header_preproc=yes
54641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54642 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
54644 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
54645 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
54646 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
54647 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
54648 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
54649 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54650 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54651 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
54652 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
54654 ## ------------------------------ ##
54655 ## Report this to bug-tar@gnu.org ##
54656 ## ------------------------------ ##
54658 ) | sed "s/^/$as_me: WARNING: /" >&2
54661 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
54662 $as_echo_n "checking for $ac_header... " >&6; }
54663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
54664 $as_echo_n "(cached) " >&6
54666 eval "$as_ac_Header=\$ac_header_preproc"
54668 ac_res=`eval 'as_val=${'$as_ac_Header'}
54669 $as_echo "$as_val"'`
54670 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
54671 $as_echo "$ac_res" >&6; }
54674 as_val=`eval 'as_val=${'$as_ac_Header'}
54675 $as_echo "$as_val"'`
54676 if test "x$as_val" = x""yes; then
54677 cat >>confdefs.h <<_ACEOF
54678 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
54685 { $as_echo "$as_me:$LINENO: checking for iconv_t" >&5
54686 $as_echo_n "checking for iconv_t... " >&6; }
54687 if test "${ac_cv_type_iconv_t+set}" = set; then
54688 $as_echo_n "(cached) " >&6
54690 ac_cv_type_iconv_t=no
54691 cat >conftest.$ac_ext <<_ACEOF
54694 cat confdefs.h >>conftest.$ac_ext
54695 cat >>conftest.$ac_ext <<_ACEOF
54696 /* end confdefs.h. */
54698 #ifdef HAVE_ICONV_H
54699 # include <iconv.h>
54706 if (sizeof (iconv_t))
54712 rm -f conftest.$ac_objext
54713 if { (ac_try="$ac_compile"
54714 case "(($ac_try" in
54715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54716 *) ac_try_echo=$ac_try;;
54718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54719 $as_echo "$ac_try_echo") >&5
54720 (eval "$ac_compile") 2>conftest.er1
54722 grep -v '^ *+' conftest.er1 >conftest.err
54724 cat conftest.err >&5
54725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54726 (exit $ac_status); } && {
54727 test -z "$ac_c_werror_flag" ||
54728 test ! -s conftest.err
54729 } && test -s conftest.$ac_objext; then
54730 cat >conftest.$ac_ext <<_ACEOF
54733 cat confdefs.h >>conftest.$ac_ext
54734 cat >>conftest.$ac_ext <<_ACEOF
54735 /* end confdefs.h. */
54737 #ifdef HAVE_ICONV_H
54738 # include <iconv.h>
54745 if (sizeof ((iconv_t)))
54751 rm -f conftest.$ac_objext
54752 if { (ac_try="$ac_compile"
54753 case "(($ac_try" in
54754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54755 *) ac_try_echo=$ac_try;;
54757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54758 $as_echo "$ac_try_echo") >&5
54759 (eval "$ac_compile") 2>conftest.er1
54761 grep -v '^ *+' conftest.er1 >conftest.err
54763 cat conftest.err >&5
54764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54765 (exit $ac_status); } && {
54766 test -z "$ac_c_werror_flag" ||
54767 test ! -s conftest.err
54768 } && test -s conftest.$ac_objext; then
54771 $as_echo "$as_me: failed program was:" >&5
54772 sed 's/^/| /' conftest.$ac_ext >&5
54774 ac_cv_type_iconv_t=yes
54777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54779 $as_echo "$as_me: failed program was:" >&5
54780 sed 's/^/| /' conftest.$ac_ext >&5
54785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54787 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_iconv_t" >&5
54788 $as_echo "$ac_cv_type_iconv_t" >&6; }
54789 if test "x$ac_cv_type_iconv_t" = x""yes; then
54793 cat >>confdefs.h <<\_ACEOF
54794 #define iconv_t int
54802 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
54803 $as_echo_n "checking whether NLS is requested... " >&6; }
54804 # Check whether --enable-nls was given.
54805 if test "${enable_nls+set}" = set; then
54806 enableval=$enable_nls; USE_NLS=$enableval
54811 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
54812 $as_echo "$USE_NLS" >&6; }
54817 GETTEXT_MACRO_VERSION=0.18
54822 # Prepare PATH_SEPARATOR.
54823 # The user is always right.
54824 if test "${PATH_SEPARATOR+set}" != set; then
54825 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
54826 # contains only /bin. Note that ksh looks also at the FPATH variable,
54827 # so we have to set that as well for the test.
54829 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
54830 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
54831 || PATH_SEPARATOR=';'
54835 # Find out how to test for executable files. Don't use a zero-byte file,
54836 # as systems may use methods other than mode bits to determine executability.
54837 cat >conf$$.file <<_ASEOF
54841 chmod +x conf$$.file
54842 if test -x conf$$.file >/dev/null 2>&1; then
54843 ac_executable_p="test -x"
54845 ac_executable_p="test -f"
54849 # Extract the first word of "msgfmt", so it can be a program name with args.
54850 set dummy msgfmt; ac_word=$2
54851 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
54852 $as_echo_n "checking for $ac_word... " >&6; }
54853 if test "${ac_cv_path_MSGFMT+set}" = set; then
54854 $as_echo_n "(cached) " >&6
54858 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
54861 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
54862 for ac_dir in $PATH; do
54864 test -z "$ac_dir" && ac_dir=.
54865 for ac_exec_ext in '' $ac_executable_extensions; do
54866 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
54867 echo "$as_me: trying $ac_dir/$ac_word..." >&5
54868 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
54869 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
54870 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
54877 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
54881 MSGFMT="$ac_cv_path_MSGFMT"
54882 if test "$MSGFMT" != ":"; then
54883 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
54884 $as_echo "$MSGFMT" >&6; }
54886 { $as_echo "$as_me:$LINENO: result: no" >&5
54887 $as_echo "no" >&6; }
54890 # Extract the first word of "gmsgfmt", so it can be a program name with args.
54891 set dummy gmsgfmt; ac_word=$2
54892 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
54893 $as_echo_n "checking for $ac_word... " >&6; }
54894 if test "${ac_cv_path_GMSGFMT+set}" = set; then
54895 $as_echo_n "(cached) " >&6
54899 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
54902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54903 for as_dir in $PATH
54906 test -z "$as_dir" && as_dir=.
54907 for ac_exec_ext in '' $ac_executable_extensions; do
54908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
54909 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
54910 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54917 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
54921 GMSGFMT=$ac_cv_path_GMSGFMT
54922 if test -n "$GMSGFMT"; then
54923 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
54924 $as_echo "$GMSGFMT" >&6; }
54926 { $as_echo "$as_me:$LINENO: result: no" >&5
54927 $as_echo "no" >&6; }
54932 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
54933 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
54934 *) MSGFMT_015=$MSGFMT ;;
54937 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
54938 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
54939 *) GMSGFMT_015=$GMSGFMT ;;
54944 # Prepare PATH_SEPARATOR.
54945 # The user is always right.
54946 if test "${PATH_SEPARATOR+set}" != set; then
54947 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
54948 # contains only /bin. Note that ksh looks also at the FPATH variable,
54949 # so we have to set that as well for the test.
54951 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
54952 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
54953 || PATH_SEPARATOR=';'
54957 # Find out how to test for executable files. Don't use a zero-byte file,
54958 # as systems may use methods other than mode bits to determine executability.
54959 cat >conf$$.file <<_ASEOF
54963 chmod +x conf$$.file
54964 if test -x conf$$.file >/dev/null 2>&1; then
54965 ac_executable_p="test -x"
54967 ac_executable_p="test -f"
54971 # Extract the first word of "xgettext", so it can be a program name with args.
54972 set dummy xgettext; ac_word=$2
54973 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
54974 $as_echo_n "checking for $ac_word... " >&6; }
54975 if test "${ac_cv_path_XGETTEXT+set}" = set; then
54976 $as_echo_n "(cached) " >&6
54978 case "$XGETTEXT" in
54980 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
54983 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
54984 for ac_dir in $PATH; do
54986 test -z "$ac_dir" && ac_dir=.
54987 for ac_exec_ext in '' $ac_executable_extensions; do
54988 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
54989 echo "$as_me: trying $ac_dir/$ac_word..." >&5
54990 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
54991 (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
54992 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
54999 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
55003 XGETTEXT="$ac_cv_path_XGETTEXT"
55004 if test "$XGETTEXT" != ":"; then
55005 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
55006 $as_echo "$XGETTEXT" >&6; }
55008 { $as_echo "$as_me:$LINENO: result: no" >&5
55009 $as_echo "no" >&6; }
55014 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
55015 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
55016 *) XGETTEXT_015=$XGETTEXT ;;
55021 # Prepare PATH_SEPARATOR.
55022 # The user is always right.
55023 if test "${PATH_SEPARATOR+set}" != set; then
55024 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
55025 # contains only /bin. Note that ksh looks also at the FPATH variable,
55026 # so we have to set that as well for the test.
55028 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
55029 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
55030 || PATH_SEPARATOR=';'
55034 # Find out how to test for executable files. Don't use a zero-byte file,
55035 # as systems may use methods other than mode bits to determine executability.
55036 cat >conf$$.file <<_ASEOF
55040 chmod +x conf$$.file
55041 if test -x conf$$.file >/dev/null 2>&1; then
55042 ac_executable_p="test -x"
55044 ac_executable_p="test -f"
55048 # Extract the first word of "msgmerge", so it can be a program name with args.
55049 set dummy msgmerge; ac_word=$2
55050 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
55051 $as_echo_n "checking for $ac_word... " >&6; }
55052 if test "${ac_cv_path_MSGMERGE+set}" = set; then
55053 $as_echo_n "(cached) " >&6
55055 case "$MSGMERGE" in
55057 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
55060 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
55061 for ac_dir in $PATH; do
55063 test -z "$ac_dir" && ac_dir=.
55064 for ac_exec_ext in '' $ac_executable_extensions; do
55065 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
55066 echo "$as_me: trying $ac_dir/$ac_word..." >&5
55067 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
55068 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
55075 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
55079 MSGMERGE="$ac_cv_path_MSGMERGE"
55080 if test "$MSGMERGE" != ":"; then
55081 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
55082 $as_echo "$MSGMERGE" >&6; }
55084 { $as_echo "$as_me:$LINENO: result: no" >&5
55085 $as_echo "no" >&6; }
55089 test -n "$localedir" || localedir='${datadir}/locale'
55092 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
55095 ac_config_commands="$ac_config_commands po-directories"
55122 { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
55123 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
55124 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
55125 $as_echo_n "(cached) " >&6
55127 gt_save_LIBS="$LIBS"
55128 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
55129 cat >conftest.$ac_ext <<_ACEOF
55132 cat confdefs.h >>conftest.$ac_ext
55133 cat >>conftest.$ac_ext <<_ACEOF
55134 /* end confdefs.h. */
55135 #include <CoreFoundation/CFPreferences.h>
55139 CFPreferencesCopyAppValue(NULL, NULL)
55144 rm -f conftest.$ac_objext conftest$ac_exeext
55145 if { (ac_try="$ac_link"
55146 case "(($ac_try" in
55147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55148 *) ac_try_echo=$ac_try;;
55150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55151 $as_echo "$ac_try_echo") >&5
55152 (eval "$ac_link") 2>conftest.er1
55154 grep -v '^ *+' conftest.er1 >conftest.err
55156 cat conftest.err >&5
55157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55158 (exit $ac_status); } && {
55159 test -z "$ac_c_werror_flag" ||
55160 test ! -s conftest.err
55161 } && test -s conftest$ac_exeext && {
55162 test "$cross_compiling" = yes ||
55163 $as_test_x conftest$ac_exeext
55165 gt_cv_func_CFPreferencesCopyAppValue=yes
55167 $as_echo "$as_me: failed program was:" >&5
55168 sed 's/^/| /' conftest.$ac_ext >&5
55170 gt_cv_func_CFPreferencesCopyAppValue=no
55173 rm -rf conftest.dSYM
55174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55175 conftest$ac_exeext conftest.$ac_ext
55176 LIBS="$gt_save_LIBS"
55178 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
55179 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
55180 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
55182 cat >>confdefs.h <<\_ACEOF
55183 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
55187 { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
55188 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
55189 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
55190 $as_echo_n "(cached) " >&6
55192 gt_save_LIBS="$LIBS"
55193 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
55194 cat >conftest.$ac_ext <<_ACEOF
55197 cat confdefs.h >>conftest.$ac_ext
55198 cat >>conftest.$ac_ext <<_ACEOF
55199 /* end confdefs.h. */
55200 #include <CoreFoundation/CFLocale.h>
55204 CFLocaleCopyCurrent();
55209 rm -f conftest.$ac_objext conftest$ac_exeext
55210 if { (ac_try="$ac_link"
55211 case "(($ac_try" in
55212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55213 *) ac_try_echo=$ac_try;;
55215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55216 $as_echo "$ac_try_echo") >&5
55217 (eval "$ac_link") 2>conftest.er1
55219 grep -v '^ *+' conftest.er1 >conftest.err
55221 cat conftest.err >&5
55222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55223 (exit $ac_status); } && {
55224 test -z "$ac_c_werror_flag" ||
55225 test ! -s conftest.err
55226 } && test -s conftest$ac_exeext && {
55227 test "$cross_compiling" = yes ||
55228 $as_test_x conftest$ac_exeext
55230 gt_cv_func_CFLocaleCopyCurrent=yes
55232 $as_echo "$as_me: failed program was:" >&5
55233 sed 's/^/| /' conftest.$ac_ext >&5
55235 gt_cv_func_CFLocaleCopyCurrent=no
55238 rm -rf conftest.dSYM
55239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55240 conftest$ac_exeext conftest.$ac_ext
55241 LIBS="$gt_save_LIBS"
55243 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
55244 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
55245 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
55247 cat >>confdefs.h <<\_ACEOF
55248 #define HAVE_CFLOCALECOPYCURRENT 1
55253 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
55254 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
55266 case " $gt_needs " in
55267 *" need-formatstring-macros "*) gt_api_version=3 ;;
55268 *" need-ngettext "*) gt_api_version=2 ;;
55269 *) gt_api_version=1 ;;
55271 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
55272 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
55274 if test "$USE_NLS" = "yes"; then
55275 gt_use_preinstalled_gnugettext=no
55278 if test $gt_api_version -ge 3; then
55279 gt_revision_test_code='
55280 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
55281 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
55283 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
55286 gt_revision_test_code=
55288 if test $gt_api_version -ge 2; then
55289 gt_expression_test_code=' + * ngettext ("", "", 0)'
55291 gt_expression_test_code=
55294 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
55295 $as_echo_n "checking for GNU gettext in libc... " >&6; }
55296 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
55297 $as_echo_n "(cached) " >&6
55299 cat >conftest.$ac_ext <<_ACEOF
55302 cat confdefs.h >>conftest.$ac_ext
55303 cat >>conftest.$ac_ext <<_ACEOF
55304 /* end confdefs.h. */
55306 #include <libintl.h>
55307 $gt_revision_test_code
55308 extern int _nl_msg_cat_cntr;
55309 extern int *_nl_domain_bindings;
55315 bindtextdomain ("", "");
55316 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
55322 rm -f conftest.$ac_objext conftest$ac_exeext
55323 if { (ac_try="$ac_link"
55324 case "(($ac_try" in
55325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55326 *) ac_try_echo=$ac_try;;
55328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55329 $as_echo "$ac_try_echo") >&5
55330 (eval "$ac_link") 2>conftest.er1
55332 grep -v '^ *+' conftest.er1 >conftest.err
55334 cat conftest.err >&5
55335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55336 (exit $ac_status); } && {
55337 test -z "$ac_c_werror_flag" ||
55338 test ! -s conftest.err
55339 } && test -s conftest$ac_exeext && {
55340 test "$cross_compiling" = yes ||
55341 $as_test_x conftest$ac_exeext
55343 eval "$gt_func_gnugettext_libc=yes"
55345 $as_echo "$as_me: failed program was:" >&5
55346 sed 's/^/| /' conftest.$ac_ext >&5
55348 eval "$gt_func_gnugettext_libc=no"
55351 rm -rf conftest.dSYM
55352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55353 conftest$ac_exeext conftest.$ac_ext
55355 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
55356 $as_echo "$as_val"'`
55357 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
55358 $as_echo "$ac_res" >&6; }
55360 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
55366 am_save_CPPFLAGS="$CPPFLAGS"
55368 for element in $INCICONV; do
55370 for x in $CPPFLAGS; do
55372 acl_save_prefix="$prefix"
55373 prefix="$acl_final_prefix"
55374 acl_save_exec_prefix="$exec_prefix"
55375 exec_prefix="$acl_final_exec_prefix"
55377 exec_prefix="$acl_save_exec_prefix"
55378 prefix="$acl_save_prefix"
55380 if test "X$x" = "X$element"; then
55385 if test -z "$haveit"; then
55386 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
55391 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
55392 $as_echo_n "checking for iconv... " >&6; }
55393 if test "${am_cv_func_iconv+set}" = set; then
55394 $as_echo_n "(cached) " >&6
55397 am_cv_func_iconv="no, consider installing GNU libiconv"
55399 cat >conftest.$ac_ext <<_ACEOF
55402 cat confdefs.h >>conftest.$ac_ext
55403 cat >>conftest.$ac_ext <<_ACEOF
55404 /* end confdefs.h. */
55406 #include <stdlib.h>
55412 iconv_t cd = iconv_open("","");
55413 iconv(cd,NULL,NULL,NULL,NULL);
55419 rm -f conftest.$ac_objext conftest$ac_exeext
55420 if { (ac_try="$ac_link"
55421 case "(($ac_try" in
55422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55423 *) ac_try_echo=$ac_try;;
55425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55426 $as_echo "$ac_try_echo") >&5
55427 (eval "$ac_link") 2>conftest.er1
55429 grep -v '^ *+' conftest.er1 >conftest.err
55431 cat conftest.err >&5
55432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55433 (exit $ac_status); } && {
55434 test -z "$ac_c_werror_flag" ||
55435 test ! -s conftest.err
55436 } && test -s conftest$ac_exeext && {
55437 test "$cross_compiling" = yes ||
55438 $as_test_x conftest$ac_exeext
55440 am_cv_func_iconv=yes
55442 $as_echo "$as_me: failed program was:" >&5
55443 sed 's/^/| /' conftest.$ac_ext >&5
55448 rm -rf conftest.dSYM
55449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55450 conftest$ac_exeext conftest.$ac_ext
55451 if test "$am_cv_func_iconv" != yes; then
55452 am_save_LIBS="$LIBS"
55453 LIBS="$LIBS $LIBICONV"
55454 cat >conftest.$ac_ext <<_ACEOF
55457 cat confdefs.h >>conftest.$ac_ext
55458 cat >>conftest.$ac_ext <<_ACEOF
55459 /* end confdefs.h. */
55461 #include <stdlib.h>
55467 iconv_t cd = iconv_open("","");
55468 iconv(cd,NULL,NULL,NULL,NULL);
55474 rm -f conftest.$ac_objext conftest$ac_exeext
55475 if { (ac_try="$ac_link"
55476 case "(($ac_try" in
55477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55478 *) ac_try_echo=$ac_try;;
55480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55481 $as_echo "$ac_try_echo") >&5
55482 (eval "$ac_link") 2>conftest.er1
55484 grep -v '^ *+' conftest.er1 >conftest.err
55486 cat conftest.err >&5
55487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55488 (exit $ac_status); } && {
55489 test -z "$ac_c_werror_flag" ||
55490 test ! -s conftest.err
55491 } && test -s conftest$ac_exeext && {
55492 test "$cross_compiling" = yes ||
55493 $as_test_x conftest$ac_exeext
55495 am_cv_lib_iconv=yes
55496 am_cv_func_iconv=yes
55498 $as_echo "$as_me: failed program was:" >&5
55499 sed 's/^/| /' conftest.$ac_ext >&5
55504 rm -rf conftest.dSYM
55505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55506 conftest$ac_exeext conftest.$ac_ext
55507 LIBS="$am_save_LIBS"
55511 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
55512 $as_echo "$am_cv_func_iconv" >&6; }
55513 if test "$am_cv_func_iconv" = yes; then
55514 { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
55515 $as_echo_n "checking for working iconv... " >&6; }
55516 if test "${am_cv_func_iconv_works+set}" = set; then
55517 $as_echo_n "(cached) " >&6
55520 am_save_LIBS="$LIBS"
55521 if test $am_cv_lib_iconv = yes; then
55522 LIBS="$LIBS $LIBICONV"
55524 if test "$cross_compiling" = yes; then
55527 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
55528 *) am_cv_func_iconv_works="guessing yes" ;;
55532 cat >conftest.$ac_ext <<_ACEOF
55535 cat confdefs.h >>conftest.$ac_ext
55536 cat >>conftest.$ac_ext <<_ACEOF
55537 /* end confdefs.h. */
55540 #include <string.h>
55544 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
55547 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
55548 if (cd_utf8_to_88591 != (iconv_t)(-1))
55550 static const char input[] = "\342\202\254"; /* EURO SIGN */
55552 const char *inptr = input;
55553 size_t inbytesleft = strlen (input);
55554 char *outptr = buf;
55555 size_t outbytesleft = sizeof (buf);
55556 size_t res = iconv (cd_utf8_to_88591,
55557 (char **) &inptr, &inbytesleft,
55558 &outptr, &outbytesleft);
55561 iconv_close (cd_utf8_to_88591);
55564 /* Test against Solaris 10 bug: Failures are not distinguishable from
55565 successful returns. */
55567 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
55568 if (cd_ascii_to_88591 != (iconv_t)(-1))
55570 static const char input[] = "\263";
55572 const char *inptr = input;
55573 size_t inbytesleft = strlen (input);
55574 char *outptr = buf;
55575 size_t outbytesleft = sizeof (buf);
55576 size_t res = iconv (cd_ascii_to_88591,
55577 (char **) &inptr, &inbytesleft,
55578 &outptr, &outbytesleft);
55581 iconv_close (cd_ascii_to_88591);
55584 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
55586 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
55587 if (cd_88591_to_utf8 != (iconv_t)(-1))
55589 static const char input[] = "\304";
55590 static char buf[2] = { (char)0xDE, (char)0xAD };
55591 const char *inptr = input;
55592 size_t inbytesleft = 1;
55593 char *outptr = buf;
55594 size_t outbytesleft = 1;
55595 size_t res = iconv (cd_88591_to_utf8,
55596 (char **) &inptr, &inbytesleft,
55597 &outptr, &outbytesleft);
55598 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
55600 iconv_close (cd_88591_to_utf8);
55603 #if 0 /* This bug could be worked around by the caller. */
55604 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
55606 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
55607 if (cd_88591_to_utf8 != (iconv_t)(-1))
55609 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
55611 const char *inptr = input;
55612 size_t inbytesleft = strlen (input);
55613 char *outptr = buf;
55614 size_t outbytesleft = sizeof (buf);
55615 size_t res = iconv (cd_88591_to_utf8,
55616 (char **) &inptr, &inbytesleft,
55617 &outptr, &outbytesleft);
55620 iconv_close (cd_88591_to_utf8);
55624 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
55626 if (/* Try standardized names. */
55627 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
55628 /* Try IRIX, OSF/1 names. */
55629 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
55630 /* Try AIX names. */
55631 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
55632 /* Try HP-UX names. */
55633 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
55638 rm -f conftest$ac_exeext
55639 if { (ac_try="$ac_link"
55640 case "(($ac_try" in
55641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55642 *) ac_try_echo=$ac_try;;
55644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55645 $as_echo "$ac_try_echo") >&5
55646 (eval "$ac_link") 2>&5
55648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55650 { (case "(($ac_try" in
55651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55652 *) ac_try_echo=$ac_try;;
55654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55655 $as_echo "$ac_try_echo") >&5
55656 (eval "$ac_try") 2>&5
55658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55659 (exit $ac_status); }; }; then
55660 am_cv_func_iconv_works=yes
55662 $as_echo "$as_me: program exited with status $ac_status" >&5
55663 $as_echo "$as_me: failed program was:" >&5
55664 sed 's/^/| /' conftest.$ac_ext >&5
55666 ( exit $ac_status )
55667 am_cv_func_iconv_works=no
55669 rm -rf conftest.dSYM
55670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55674 LIBS="$am_save_LIBS"
55677 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
55678 $as_echo "$am_cv_func_iconv_works" >&6; }
55679 case "$am_cv_func_iconv_works" in
55680 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
55681 *) am_func_iconv=yes ;;
55684 am_func_iconv=no am_cv_lib_iconv=no
55686 if test "$am_func_iconv" = yes; then
55688 cat >>confdefs.h <<\_ACEOF
55689 #define HAVE_ICONV 1
55693 if test "$am_cv_lib_iconv" = yes; then
55694 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
55695 $as_echo_n "checking how to link with libiconv... " >&6; }
55696 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
55697 $as_echo "$LIBICONV" >&6; }
55699 CPPFLAGS="$am_save_CPPFLAGS"
55716 acl_save_prefix="$prefix"
55717 prefix="$acl_final_prefix"
55718 acl_save_exec_prefix="$exec_prefix"
55719 exec_prefix="$acl_final_exec_prefix"
55721 eval additional_includedir=\"$includedir\"
55722 eval additional_libdir=\"$libdir\"
55724 exec_prefix="$acl_save_exec_prefix"
55725 prefix="$acl_save_prefix"
55728 # Check whether --with-libintl-prefix was given.
55729 if test "${with_libintl_prefix+set}" = set; then
55730 withval=$with_libintl_prefix;
55731 if test "X$withval" = "Xno"; then
55734 if test "X$withval" = "X"; then
55736 acl_save_prefix="$prefix"
55737 prefix="$acl_final_prefix"
55738 acl_save_exec_prefix="$exec_prefix"
55739 exec_prefix="$acl_final_exec_prefix"
55741 eval additional_includedir=\"$includedir\"
55742 eval additional_libdir=\"$libdir\"
55744 exec_prefix="$acl_save_exec_prefix"
55745 prefix="$acl_save_prefix"
55748 additional_includedir="$withval/include"
55749 additional_libdir="$withval/$acl_libdirstem"
55750 if test "$acl_libdirstem2" != "$acl_libdirstem" \
55751 && ! test -d "$withval/$acl_libdirstem"; then
55752 additional_libdir="$withval/$acl_libdirstem2"
55766 names_already_handled=
55767 names_next_round='intl '
55768 while test -n "$names_next_round"; do
55769 names_this_round="$names_next_round"
55771 for name in $names_this_round; do
55773 for n in $names_already_handled; do
55774 if test "$n" = "$name"; then
55775 already_handled=yes
55779 if test -z "$already_handled"; then
55780 names_already_handled="$names_already_handled $name"
55781 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
55782 eval value=\"\$HAVE_LIB$uppername\"
55783 if test -n "$value"; then
55784 if test "$value" = yes; then
55785 eval value=\"\$LIB$uppername\"
55786 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
55787 eval value=\"\$LTLIB$uppername\"
55788 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
55797 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
55798 if test -n "$acl_shlibext"; then
55799 shrext=".$acl_shlibext" # typically: shrext=.so
55803 if test $use_additional = yes; then
55804 dir="$additional_libdir"
55805 if test -n "$acl_shlibext"; then
55806 if test -f "$dir/$libname$shrext"; then
55808 found_so="$dir/$libname$shrext"
55810 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
55811 ver=`(cd "$dir" && \
55812 for f in "$libname$shrext".*; do echo "$f"; done \
55813 | sed -e "s,^$libname$shrext\\\\.,," \
55814 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
55815 | sed 1q ) 2>/dev/null`
55816 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
55818 found_so="$dir/$libname$shrext.$ver"
55821 eval library_names=\"$acl_library_names_spec\"
55822 for f in $library_names; do
55823 if test -f "$dir/$f"; then
55832 if test "X$found_dir" = "X"; then
55833 if test -f "$dir/$libname.$acl_libext"; then
55835 found_a="$dir/$libname.$acl_libext"
55838 if test "X$found_dir" != "X"; then
55839 if test -f "$dir/$libname.la"; then
55840 found_la="$dir/$libname.la"
55844 if test "X$found_dir" = "X"; then
55845 for x in $LDFLAGS $LTLIBINTL; do
55847 acl_save_prefix="$prefix"
55848 prefix="$acl_final_prefix"
55849 acl_save_exec_prefix="$exec_prefix"
55850 exec_prefix="$acl_final_exec_prefix"
55852 exec_prefix="$acl_save_exec_prefix"
55853 prefix="$acl_save_prefix"
55857 dir=`echo "X$x" | sed -e 's/^X-L//'`
55858 if test -n "$acl_shlibext"; then
55859 if test -f "$dir/$libname$shrext"; then
55861 found_so="$dir/$libname$shrext"
55863 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
55864 ver=`(cd "$dir" && \
55865 for f in "$libname$shrext".*; do echo "$f"; done \
55866 | sed -e "s,^$libname$shrext\\\\.,," \
55867 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
55868 | sed 1q ) 2>/dev/null`
55869 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
55871 found_so="$dir/$libname$shrext.$ver"
55874 eval library_names=\"$acl_library_names_spec\"
55875 for f in $library_names; do
55876 if test -f "$dir/$f"; then
55885 if test "X$found_dir" = "X"; then
55886 if test -f "$dir/$libname.$acl_libext"; then
55888 found_a="$dir/$libname.$acl_libext"
55891 if test "X$found_dir" != "X"; then
55892 if test -f "$dir/$libname.la"; then
55893 found_la="$dir/$libname.la"
55898 if test "X$found_dir" != "X"; then
55903 if test "X$found_dir" != "X"; then
55904 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
55905 if test "X$found_so" != "X"; then
55906 if test "$enable_rpath" = no \
55907 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
55908 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
55909 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
55912 for x in $ltrpathdirs; do
55913 if test "X$x" = "X$found_dir"; then
55918 if test -z "$haveit"; then
55919 ltrpathdirs="$ltrpathdirs $found_dir"
55921 if test "$acl_hardcode_direct" = yes; then
55922 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
55924 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
55925 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
55927 for x in $rpathdirs; do
55928 if test "X$x" = "X$found_dir"; then
55933 if test -z "$haveit"; then
55934 rpathdirs="$rpathdirs $found_dir"
55938 for x in $LDFLAGS $LIBINTL; do
55940 acl_save_prefix="$prefix"
55941 prefix="$acl_final_prefix"
55942 acl_save_exec_prefix="$exec_prefix"
55943 exec_prefix="$acl_final_exec_prefix"
55945 exec_prefix="$acl_save_exec_prefix"
55946 prefix="$acl_save_prefix"
55948 if test "X$x" = "X-L$found_dir"; then
55953 if test -z "$haveit"; then
55954 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
55956 if test "$acl_hardcode_minus_L" != no; then
55957 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
55959 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
55965 if test "X$found_a" != "X"; then
55966 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
55968 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
55971 additional_includedir=
55972 case "$found_dir" in
55973 */$acl_libdirstem | */$acl_libdirstem/)
55974 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
55975 if test "$name" = 'intl'; then
55976 LIBINTL_PREFIX="$basedir"
55978 additional_includedir="$basedir/include"
55980 */$acl_libdirstem2 | */$acl_libdirstem2/)
55981 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
55982 if test "$name" = 'intl'; then
55983 LIBINTL_PREFIX="$basedir"
55985 additional_includedir="$basedir/include"
55988 if test "X$additional_includedir" != "X"; then
55989 if test "X$additional_includedir" != "X/usr/include"; then
55991 if test "X$additional_includedir" = "X/usr/local/include"; then
55992 if test -n "$GCC"; then
55994 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
55998 if test -z "$haveit"; then
55999 for x in $CPPFLAGS $INCINTL; do
56001 acl_save_prefix="$prefix"
56002 prefix="$acl_final_prefix"
56003 acl_save_exec_prefix="$exec_prefix"
56004 exec_prefix="$acl_final_exec_prefix"
56006 exec_prefix="$acl_save_exec_prefix"
56007 prefix="$acl_save_prefix"
56009 if test "X$x" = "X-I$additional_includedir"; then
56014 if test -z "$haveit"; then
56015 if test -d "$additional_includedir"; then
56016 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
56022 if test -n "$found_la"; then
56023 save_libdir="$libdir"
56024 case "$found_la" in
56025 */* | *\\*) . "$found_la" ;;
56026 *) . "./$found_la" ;;
56028 libdir="$save_libdir"
56029 for dep in $dependency_libs; do
56032 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
56033 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
56034 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
56036 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
56037 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
56038 if test -n "$GCC"; then
56040 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
56044 if test -z "$haveit"; then
56046 for x in $LDFLAGS $LIBINTL; do
56048 acl_save_prefix="$prefix"
56049 prefix="$acl_final_prefix"
56050 acl_save_exec_prefix="$exec_prefix"
56051 exec_prefix="$acl_final_exec_prefix"
56053 exec_prefix="$acl_save_exec_prefix"
56054 prefix="$acl_save_prefix"
56056 if test "X$x" = "X-L$additional_libdir"; then
56061 if test -z "$haveit"; then
56062 if test -d "$additional_libdir"; then
56063 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
56067 for x in $LDFLAGS $LTLIBINTL; do
56069 acl_save_prefix="$prefix"
56070 prefix="$acl_final_prefix"
56071 acl_save_exec_prefix="$exec_prefix"
56072 exec_prefix="$acl_final_exec_prefix"
56074 exec_prefix="$acl_save_exec_prefix"
56075 prefix="$acl_save_prefix"
56077 if test "X$x" = "X-L$additional_libdir"; then
56082 if test -z "$haveit"; then
56083 if test -d "$additional_libdir"; then
56084 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
56091 dir=`echo "X$dep" | sed -e 's/^X-R//'`
56092 if test "$enable_rpath" != no; then
56094 for x in $rpathdirs; do
56095 if test "X$x" = "X$dir"; then
56100 if test -z "$haveit"; then
56101 rpathdirs="$rpathdirs $dir"
56104 for x in $ltrpathdirs; do
56105 if test "X$x" = "X$dir"; then
56110 if test -z "$haveit"; then
56111 ltrpathdirs="$ltrpathdirs $dir"
56116 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
56119 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
56122 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
56123 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
56129 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
56130 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
56136 if test "X$rpathdirs" != "X"; then
56137 if test -n "$acl_hardcode_libdir_separator"; then
56139 for found_dir in $rpathdirs; do
56140 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
56142 acl_save_libdir="$libdir"
56144 eval flag=\"$acl_hardcode_libdir_flag_spec\"
56145 libdir="$acl_save_libdir"
56146 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
56148 for found_dir in $rpathdirs; do
56149 acl_save_libdir="$libdir"
56150 libdir="$found_dir"
56151 eval flag=\"$acl_hardcode_libdir_flag_spec\"
56152 libdir="$acl_save_libdir"
56153 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
56157 if test "X$ltrpathdirs" != "X"; then
56158 for found_dir in $ltrpathdirs; do
56159 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
56168 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
56169 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
56170 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
56171 $as_echo_n "(cached) " >&6
56173 gt_save_CPPFLAGS="$CPPFLAGS"
56174 CPPFLAGS="$CPPFLAGS $INCINTL"
56175 gt_save_LIBS="$LIBS"
56176 LIBS="$LIBS $LIBINTL"
56177 cat >conftest.$ac_ext <<_ACEOF
56180 cat confdefs.h >>conftest.$ac_ext
56181 cat >>conftest.$ac_ext <<_ACEOF
56182 /* end confdefs.h. */
56184 #include <libintl.h>
56185 $gt_revision_test_code
56186 extern int _nl_msg_cat_cntr;
56191 const char *_nl_expand_alias (const char *);
56197 bindtextdomain ("", "");
56198 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
56204 rm -f conftest.$ac_objext conftest$ac_exeext
56205 if { (ac_try="$ac_link"
56206 case "(($ac_try" in
56207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56208 *) ac_try_echo=$ac_try;;
56210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56211 $as_echo "$ac_try_echo") >&5
56212 (eval "$ac_link") 2>conftest.er1
56214 grep -v '^ *+' conftest.er1 >conftest.err
56216 cat conftest.err >&5
56217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56218 (exit $ac_status); } && {
56219 test -z "$ac_c_werror_flag" ||
56220 test ! -s conftest.err
56221 } && test -s conftest$ac_exeext && {
56222 test "$cross_compiling" = yes ||
56223 $as_test_x conftest$ac_exeext
56225 eval "$gt_func_gnugettext_libintl=yes"
56227 $as_echo "$as_me: failed program was:" >&5
56228 sed 's/^/| /' conftest.$ac_ext >&5
56230 eval "$gt_func_gnugettext_libintl=no"
56233 rm -rf conftest.dSYM
56234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56235 conftest$ac_exeext conftest.$ac_ext
56236 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
56237 LIBS="$LIBS $LIBICONV"
56238 cat >conftest.$ac_ext <<_ACEOF
56241 cat confdefs.h >>conftest.$ac_ext
56242 cat >>conftest.$ac_ext <<_ACEOF
56243 /* end confdefs.h. */
56245 #include <libintl.h>
56246 $gt_revision_test_code
56247 extern int _nl_msg_cat_cntr;
56252 const char *_nl_expand_alias (const char *);
56258 bindtextdomain ("", "");
56259 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
56265 rm -f conftest.$ac_objext conftest$ac_exeext
56266 if { (ac_try="$ac_link"
56267 case "(($ac_try" in
56268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56269 *) ac_try_echo=$ac_try;;
56271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56272 $as_echo "$ac_try_echo") >&5
56273 (eval "$ac_link") 2>conftest.er1
56275 grep -v '^ *+' conftest.er1 >conftest.err
56277 cat conftest.err >&5
56278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56279 (exit $ac_status); } && {
56280 test -z "$ac_c_werror_flag" ||
56281 test ! -s conftest.err
56282 } && test -s conftest$ac_exeext && {
56283 test "$cross_compiling" = yes ||
56284 $as_test_x conftest$ac_exeext
56286 LIBINTL="$LIBINTL $LIBICONV"
56287 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
56288 eval "$gt_func_gnugettext_libintl=yes"
56291 $as_echo "$as_me: failed program was:" >&5
56292 sed 's/^/| /' conftest.$ac_ext >&5
56297 rm -rf conftest.dSYM
56298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56299 conftest$ac_exeext conftest.$ac_ext
56301 CPPFLAGS="$gt_save_CPPFLAGS"
56302 LIBS="$gt_save_LIBS"
56304 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
56305 $as_echo "$as_val"'`
56306 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
56307 $as_echo "$ac_res" >&6; }
56310 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
56311 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
56312 && test "$PACKAGE" != gettext-runtime \
56313 && test "$PACKAGE" != gettext-tools; }; then
56314 gt_use_preinstalled_gnugettext=yes
56323 if test -n "$INTL_MACOSX_LIBS"; then
56324 if test "$gt_use_preinstalled_gnugettext" = "yes" \
56325 || test "$nls_cv_use_gnu_gettext" = "yes"; then
56326 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
56327 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
56331 if test "$gt_use_preinstalled_gnugettext" = "yes" \
56332 || test "$nls_cv_use_gnu_gettext" = "yes"; then
56334 cat >>confdefs.h <<\_ACEOF
56335 #define ENABLE_NLS 1
56343 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
56344 $as_echo_n "checking whether to use NLS... " >&6; }
56345 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
56346 $as_echo "$USE_NLS" >&6; }
56347 if test "$USE_NLS" = "yes"; then
56348 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
56349 $as_echo_n "checking where the gettext function comes from... " >&6; }
56350 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
56351 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
56352 gt_source="external libintl"
56357 gt_source="included intl directory"
56359 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
56360 $as_echo "$gt_source" >&6; }
56363 if test "$USE_NLS" = "yes"; then
56365 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
56366 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
56367 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
56368 $as_echo_n "checking how to link with libintl... " >&6; }
56369 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
56370 $as_echo "$LIBINTL" >&6; }
56372 for element in $INCINTL; do
56374 for x in $CPPFLAGS; do
56376 acl_save_prefix="$prefix"
56377 prefix="$acl_final_prefix"
56378 acl_save_exec_prefix="$exec_prefix"
56379 exec_prefix="$acl_final_exec_prefix"
56381 exec_prefix="$acl_save_exec_prefix"
56382 prefix="$acl_save_prefix"
56384 if test "X$x" = "X$element"; then
56389 if test -z "$haveit"; then
56390 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
56397 cat >>confdefs.h <<\_ACEOF
56398 #define HAVE_GETTEXT 1
56402 cat >>confdefs.h <<\_ACEOF
56403 #define HAVE_DCGETTEXT 1
56413 INTLLIBS="$LIBINTL"
56422 # Initialize the test suite.
56423 ac_config_commands="$ac_config_commands tests/atconfig"
56426 ac_config_files="$ac_config_files tests/Makefile tests/atlocal"
56427 # FIXME: tests/preset?
56429 AUTOM4TE=${AUTOM4TE-"${am_missing_run}autom4te"}
56434 # Check whether --enable-backup-scripts was given.
56435 if test "${enable_backup_scripts+set}" = set; then
56436 enableval=$enable_backup_scripts; case $enableval in
56437 yes) BACKUP_LIBEXEC_SCRIPTS='$(BACKUP_LIBEXEC_SCRIPTS_LIST)'
56438 BACKUP_SBIN_SCRIPTS='$(BACKUP_SBIN_SCRIPTS_LIST)'
56445 if date +%Y-%m-%d 2>/dev/null >&2; then
56446 BACKUP_SED_COND='/^\#ELSE_DATE_FORMAT_OK/,/^\#ENDIF_DATE_FORMAT_OK/d;/^\#IF_DATE_FORMAT_OK/d'
56448 BACKUP_SED_COND='/^\#IF_DATE_FORMAT_OK/,/^\#ELSE_DATE_FORMAT_OK/d;/^\#ENDIF_DATE_FORMAT_OK/d'
56451 ac_config_files="$ac_config_files Makefile doc/Makefile gnu/Makefile lib/Makefile po/Makefile.in scripts/Makefile rmt/Makefile src/Makefile"
56453 cat >confcache <<\_ACEOF
56454 # This file is a shell script that caches the results of configure
56455 # tests run on this system so they can be shared between configure
56456 # scripts and configure runs, see configure's option --config-cache.
56457 # It is not useful on other systems. If it contains results you don't
56458 # want to keep, you may remove or edit it.
56460 # config.status only pays attention to the cache file if you give it
56461 # the --recheck option to rerun configure.
56463 # `ac_cv_env_foo' variables (set or unset) will be overridden when
56464 # loading this file, other *unset* `ac_cv_foo' will be assigned the
56465 # following values.
56469 # The following way of writing the cache mishandles newlines in values,
56470 # but we know of no workaround that is simple, portable, and efficient.
56471 # So, we kill variables containing newlines.
56472 # Ultrix sh set writes to stderr and can't be redirected directly,
56473 # and sets the high bit in the cache file unless we assign to the vars.
56475 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
56476 eval ac_val=\$$ac_var
56480 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
56481 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
56484 _ | IFS | as_nl) ;; #(
56485 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
56486 *) $as_unset $ac_var ;;
56492 case $as_nl`(ac_space=' '; set) 2>&1` in #(
56493 *${as_nl}ac_space=\ *)
56494 # `set' does not quote correctly, so add quotes (double-quote
56495 # substitution turns \\\\ into \\, and sed turns \\ into \).
56498 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
56501 # `set' quotes correctly as required by POSIX, so do not add quotes.
56502 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
56511 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
56513 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
56515 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
56516 if test -w "$cache_file"; then
56517 test "x$cache_file" != "x/dev/null" &&
56518 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
56519 $as_echo "$as_me: updating cache $cache_file" >&6;}
56520 cat confcache >$cache_file
56522 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
56523 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
56528 test "x$prefix" = xNONE && prefix=$ac_default_prefix
56529 # Let make expand exec_prefix.
56530 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
56532 DEFS=-DHAVE_CONFIG_H
56536 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
56537 # 1. Remove the extension, and $U if already installed.
56538 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
56539 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
56540 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
56541 # will be set to the directory where LIBOBJS objects are built.
56542 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
56543 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
56545 LIBOBJS=$ac_libobjs
56547 LTLIBOBJS=$ac_ltlibobjs
56550 if test -n "$EXEEXT"; then
56552 am__EXEEXT_FALSE='#'
56554 am__EXEEXT_TRUE='#'
56558 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
56559 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
56560 Usually this means the macro was only invoked conditionally." >&5
56561 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
56562 Usually this means the macro was only invoked conditionally." >&2;}
56563 { (exit 1); exit 1; }; }
56565 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
56566 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
56567 Usually this means the macro was only invoked conditionally." >&5
56568 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
56569 Usually this means the macro was only invoked conditionally." >&2;}
56570 { (exit 1); exit 1; }; }
56572 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
56573 { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
56574 Usually this means the macro was only invoked conditionally." >&5
56575 $as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
56576 Usually this means the macro was only invoked conditionally." >&2;}
56577 { (exit 1); exit 1; }; }
56579 if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then
56580 { { $as_echo "$as_me:$LINENO: error: conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
56581 Usually this means the macro was only invoked conditionally." >&5
56582 $as_echo "$as_me: error: conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
56583 Usually this means the macro was only invoked conditionally." >&2;}
56584 { (exit 1); exit 1; }; }
56589 if test -n "$gl_LIBOBJS"; then
56590 # Remove the extension.
56591 sed_drop_objext='s/\.o$//;s/\.obj$//'
56592 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
56593 gl_libobjs="$gl_libobjs $i.$ac_objext"
56594 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
56597 gl_LIBOBJS=$gl_libobjs
56599 gl_LTLIBOBJS=$gl_ltlibobjs
56605 if test -n "$gltests_LIBOBJS"; then
56606 # Remove the extension.
56607 sed_drop_objext='s/\.o$//;s/\.obj$//'
56608 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
56609 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
56610 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
56613 gltests_LIBOBJS=$gltests_libobjs
56615 gltests_LTLIBOBJS=$gltests_ltlibobjs
56619 : ${CONFIG_STATUS=./config.status}
56621 ac_clean_files_save=$ac_clean_files
56622 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
56623 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
56624 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
56625 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
56627 # Generated by $as_me.
56628 # Run this file to recreate the current configuration.
56629 # Compiler output produced by configure, useful for debugging
56630 # configure, is in config.log if it exists.
56633 ac_cs_recheck=false
56635 SHELL=\${CONFIG_SHELL-$SHELL}
56638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
56639 ## --------------------- ##
56640 ## M4sh Initialization. ##
56641 ## --------------------- ##
56643 # Be more Bourne compatible
56644 DUALCASE=1; export DUALCASE # for MKS sh
56645 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
56648 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
56649 # is contrary to our usage. Disable this feature.
56650 alias -g '${1+"$@"}'='"$@"'
56651 setopt NO_GLOB_SUBST
56653 case `(set -o) 2>/dev/null` in
56654 *posix*) set -o posix ;;
56663 # Avoid depending upon Character Ranges.
56664 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
56665 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
56666 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
56667 as_cr_digits='0123456789'
56668 as_cr_alnum=$as_cr_Letters$as_cr_digits
56673 # Printing a long string crashes Solaris 7 /usr/bin/printf.
56674 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
56675 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
56676 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
56677 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56678 as_echo='printf %s\n'
56679 as_echo_n='printf %s'
56681 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56682 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56683 as_echo_n='/usr/ucb/echo -n'
56685 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56686 as_echo_n_body='eval
56690 expr "X$arg" : "X\\(.*\\)$as_nl";
56691 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
56693 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
56695 export as_echo_n_body
56696 as_echo_n='sh -c $as_echo_n_body as_echo'
56698 export as_echo_body
56699 as_echo='sh -c $as_echo_body as_echo'
56702 # The user is always right.
56703 if test "${PATH_SEPARATOR+set}" != set; then
56705 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
56706 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
56711 # Support unset when possible.
56712 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56720 # We need space, tab and new line, in precisely that order. Quoting is
56721 # there to prevent editors from complaining about space-tab.
56722 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
56723 # splitting by setting IFS to empty value.)
56726 # Find who we are. Look in the path if we contain no directory separator.
56728 *[\\/]* ) as_myself=$0 ;;
56729 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56730 for as_dir in $PATH
56733 test -z "$as_dir" && as_dir=.
56734 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
56740 # We did not find ourselves, most probably we were run as `sh COMMAND'
56741 # in which case we are not to be found in the path.
56742 if test "x$as_myself" = x; then
56745 if test ! -f "$as_myself"; then
56746 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
56747 { (exit 1); exit 1; }
56750 # Work around bugs in pre-3.0 UWIN ksh.
56751 for as_var in ENV MAIL MAILPATH
56752 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
56764 # Required to use basename.
56765 if expr a : '\(a\)' >/dev/null 2>&1 &&
56766 test "X`expr 00001 : '.*\(...\)'`" = X001; then
56772 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
56773 as_basename=basename
56779 # Name of the executable.
56780 as_me=`$as_basename -- "$0" ||
56781 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
56782 X"$0" : 'X\(//\)$' \| \
56783 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
56785 sed '/^.*\/\([^/][^/]*\)\/*$/{
56804 as_lineno_1=$LINENO
56805 as_lineno_2=$LINENO
56806 test "x$as_lineno_1" != "x$as_lineno_2" &&
56807 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
56809 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
56810 # uniformly replaced by the line number. The first 'sed' inserts a
56811 # line-number line after each line using $LINENO; the second 'sed'
56812 # does the real work. The second script uses 'N' to pair each
56813 # line-number line with the line containing $LINENO, and appends
56814 # trailing '-' during substitution so that $LINENO is not a special
56815 # case at line end.
56816 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
56817 # scripts with optimization help from Paolo Bonzini. Blame Lee
56818 # E. McMahon (1931-1989) for sed's syntax. :-)
56830 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
56833 ' >$as_me.lineno &&
56834 chmod +x "$as_me.lineno" ||
56835 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
56836 { (exit 1); exit 1; }; }
56838 # Don't try to exec as it changes $[0], causing all sort of problems
56839 # (the dirname of $[0] is not the place where we might find the
56840 # original and so on. Autoconf is especially sensitive to this).
56841 . "./$as_me.lineno"
56842 # Exit status is that of the last command.
56847 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
56853 ECHO_C= ECHO_N= ECHO_T=
56854 case `echo -n x` in
56856 case `echo 'x\c'` in
56857 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
56863 if expr a : '\(a\)' >/dev/null 2>&1 &&
56864 test "X`expr 00001 : '.*\(...\)'`" = X001; then
56870 rm -f conf$$ conf$$.exe conf$$.file
56871 if test -d conf$$.dir; then
56872 rm -f conf$$.dir/conf$$.file
56875 mkdir conf$$.dir 2>/dev/null
56877 if (echo >conf$$.file) 2>/dev/null; then
56878 if ln -s conf$$.file conf$$ 2>/dev/null; then
56880 # ... but there are two gotchas:
56881 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
56882 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
56883 # In both cases, we have to default to `cp -p'.
56884 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
56886 elif ln conf$$.file conf$$ 2>/dev/null; then
56894 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
56895 rmdir conf$$.dir 2>/dev/null
56897 if mkdir -p . 2>/dev/null; then
56900 test -d ./-p && rmdir ./-p
56904 if test -x / >/dev/null 2>&1; then
56905 as_test_x='test -x'
56907 if ls -dL / >/dev/null 2>&1; then
56914 if test -d "$1"; then
56920 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
56921 ???[sx]*):;;*)false;;esac;fi
56925 as_executable_p=$as_test_x
56927 # Sed expression to map a string onto a valid CPP name.
56928 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
56930 # Sed expression to map a string onto a valid variable name.
56931 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
56936 # Save the log message, to keep $[0] and so on meaningful, and to
56937 # report actual input values of CONFIG_FILES etc. instead of their
56938 # values after options handling.
56940 This file was extended by GNU tar $as_me 1.26, which was
56941 generated by GNU Autoconf 2.63. Invocation command line was
56943 CONFIG_FILES = $CONFIG_FILES
56944 CONFIG_HEADERS = $CONFIG_HEADERS
56945 CONFIG_LINKS = $CONFIG_LINKS
56946 CONFIG_COMMANDS = $CONFIG_COMMANDS
56949 on `(hostname || uname -n) 2>/dev/null | sed 1q`
56954 case $ac_config_files in *"
56955 "*) set x $ac_config_files; shift; ac_config_files=$*;;
56958 case $ac_config_headers in *"
56959 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
56963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
56964 # Files that config.status was made for.
56965 config_files="$ac_config_files"
56966 config_headers="$ac_config_headers"
56967 config_commands="$ac_config_commands"
56971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
56973 \`$as_me' instantiates files from templates according to the
56974 current configuration.
56976 Usage: $0 [OPTION]... [FILE]...
56978 -h, --help print this help, then exit
56979 -V, --version print version number and configuration settings, then exit
56980 -q, --quiet, --silent
56981 do not print progress messages
56982 -d, --debug don't remove temporary files
56983 --recheck update $as_me by reconfiguring in the same conditions
56984 --file=FILE[:TEMPLATE]
56985 instantiate the configuration file FILE
56986 --header=FILE[:TEMPLATE]
56987 instantiate the configuration header FILE
56989 Configuration files:
56992 Configuration headers:
56995 Configuration commands:
56998 Report bugs to <bug-autoconf@gnu.org>."
57001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57003 GNU tar config.status 1.26
57004 configured by $0, generated by GNU Autoconf 2.63,
57005 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
57007 Copyright (C) 2008 Free Software Foundation, Inc.
57008 This config.status script is free software; the Free Software Foundation
57009 gives unlimited permission to copy, distribute and modify it."
57016 test -n "\$AWK" || AWK=awk
57019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57020 # The default lists apply if the user does not specify any file.
57026 ac_option=`expr "X$1" : 'X\([^=]*\)='`
57027 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
57038 # Handling of the options.
57039 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
57041 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
57042 $as_echo "$ac_cs_version"; exit ;;
57043 --debug | --debu | --deb | --de | --d | -d )
57045 --file | --fil | --fi | --f )
57048 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
57050 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
57051 ac_need_defaults=false;;
57052 --header | --heade | --head | --hea )
57055 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
57057 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
57058 ac_need_defaults=false;;
57060 # Conflict between --help and --header
57061 { $as_echo "$as_me: error: ambiguous option: $1
57062 Try \`$0 --help' for more information." >&2
57063 { (exit 1); exit 1; }; };;
57064 --help | --hel | -h )
57065 $as_echo "$ac_cs_usage"; exit ;;
57066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
57067 | -silent | --silent | --silen | --sile | --sil | --si | --s)
57070 # This is an error.
57071 -*) { $as_echo "$as_me: error: unrecognized option: $1
57072 Try \`$0 --help' for more information." >&2
57073 { (exit 1); exit 1; }; } ;;
57075 *) ac_config_targets="$ac_config_targets $1"
57076 ac_need_defaults=false ;;
57082 ac_configure_extra_args=
57084 if $ac_cs_silent; then
57086 ac_configure_extra_args="$ac_configure_extra_args --silent"
57090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57091 if \$ac_cs_recheck; then
57092 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
57094 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
57095 CONFIG_SHELL='$SHELL'
57096 export CONFIG_SHELL
57101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57105 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
57106 ## Running $as_me. ##
57112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57116 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
57117 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
57118 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
57119 # from automake < 1.5.
57120 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
57121 # Capture the value of LINGUAS because we need it to compute CATALOGS.
57122 LINGUAS="${LINGUAS-%UNSET%}"
57127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57129 # Handling of arguments.
57130 for ac_config_target in $ac_config_targets
57132 case $ac_config_target in
57133 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
57134 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
57135 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
57136 "tests/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
57137 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
57138 "tests/atlocal") CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;;
57139 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
57140 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
57141 "gnu/Makefile") CONFIG_FILES="$CONFIG_FILES gnu/Makefile" ;;
57142 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
57143 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
57144 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
57145 "rmt/Makefile") CONFIG_FILES="$CONFIG_FILES rmt/Makefile" ;;
57146 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
57148 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
57149 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
57150 { (exit 1); exit 1; }; };;
57155 # If the user did not use the arguments to specify the items to instantiate,
57156 # then the envvar interface is used. Set only those that are not.
57157 # We use the long form for the default assignment because of an extremely
57158 # bizarre bug on SunOS 4.1.3.
57159 if $ac_need_defaults; then
57160 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
57161 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
57162 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
57165 # Have a temporary directory for convenience. Make it in the build tree
57166 # simply because there is no reason against having it here, and in addition,
57167 # creating and moving files from /tmp can sometimes cause problems.
57168 # Hook for its removal unless debugging.
57169 # Note that there is a small window in which the directory will not be cleaned:
57170 # after its creation but before its name has been assigned to `$tmp'.
57174 trap 'exit_status=$?
57175 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
57177 trap '{ (exit 1); exit 1; }' 1 2 13 15
57179 # Create a (secure) tmp directory for tmp files.
57182 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
57183 test -n "$tmp" && test -d "$tmp"
57186 tmp=./conf$$-$RANDOM
57187 (umask 077 && mkdir "$tmp")
57190 $as_echo "$as_me: cannot create a temporary directory in ." >&2
57191 { (exit 1); exit 1; }
57194 # Set up the scripts for CONFIG_FILES section.
57195 # No need to generate them if there are no CONFIG_FILES.
57196 # This happens for instance with `./config.status config.h'.
57197 if test -n "$CONFIG_FILES"; then
57201 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
57202 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
57205 ac_cs_awk_cr=$ac_cr
57208 echo 'BEGIN {' >"$tmp/subs1.awk" &&
57213 echo "cat >conf$$subs.awk <<_ACEOF" &&
57214 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
57216 } >conf$$subs.sh ||
57217 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
57218 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
57219 { (exit 1); exit 1; }; }
57220 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
57222 for ac_last_try in false false false false false :; do
57223 . ./conf$$subs.sh ||
57224 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
57225 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
57226 { (exit 1); exit 1; }; }
57228 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
57229 if test $ac_delim_n = $ac_delim_num; then
57231 elif $ac_last_try; then
57232 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
57233 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
57234 { (exit 1); exit 1; }; }
57236 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
57239 rm -f conf$$subs.sh
57241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57242 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
57246 s/^/S["/; s/!.*/"]=/
57256 s/\(.\{148\}\).*/\1/
57258 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
57263 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
57270 s/\(.\{148\}\).*/\1/
57272 s/["\\]/\\&/g; s/^/"/; s/$/"/
57276 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
57281 ' <conf$$subs.awk | sed '
57286 ' >>$CONFIG_STATUS || ac_write_fail=1
57287 rm -f conf$$subs.awk
57288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57290 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
57291 for (key in S) S_is_set[key] = 1
57297 nfields = split(line, field, "@")
57299 len = length(field[1])
57300 for (i = 2; i < nfields; i++) {
57302 keylen = length(key)
57303 if (S_is_set[key]) {
57305 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
57306 len += length(value) + length(field[++i])
57317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57318 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
57319 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
57322 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
57323 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
57324 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
57325 { (exit 1); exit 1; }; }
57328 # VPATH may cause trouble with some makes, so we remove $(srcdir),
57329 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
57330 # trailing colons and then remove the whole line if VPATH becomes empty
57331 # (actually we leave an empty line to preserve line numbers).
57332 if test "x$srcdir" = x.; then
57333 ac_vpsub='/^[ ]*VPATH[ ]*=/{
57334 s/:*\$(srcdir):*/:/
57335 s/:*\${srcdir}:*/:/
57337 s/^\([^=]*=[ ]*\):*/\1/
57343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57344 fi # test -n "$CONFIG_FILES"
57346 # Set up the scripts for CONFIG_HEADERS section.
57347 # No need to generate them if there are no CONFIG_HEADERS.
57348 # This happens for instance with `./config.status Makefile'.
57349 if test -n "$CONFIG_HEADERS"; then
57350 cat >"$tmp/defines.awk" <<\_ACAWK ||
57354 # Transform confdefs.h into an awk script `defines.awk', embedded as
57355 # here-document in config.status, that substitutes the proper values into
57356 # config.h.in to produce config.h.
57358 # Create a delimiter string that does not exist in confdefs.h, to ease
57359 # handling of long lines.
57361 for ac_last_try in false false :; do
57362 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
57363 if test -z "$ac_t"; then
57365 elif $ac_last_try; then
57366 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
57367 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
57368 { (exit 1); exit 1; }; }
57370 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
57374 # For the awk script, D is an array of macro values keyed by name,
57375 # likewise P contains macro parameters if any. Preserve backslash
57376 # newline sequences.
57378 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
57380 s/.\{148\}/&'"$ac_delim"'/g
57383 s/^[ ]*#[ ]*define[ ][ ]*/ /
57390 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
57392 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
57396 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
57397 D["\1"]=" \3\\\\\\n"\\/p
57399 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
57404 s/.\{148\}/&'"$ac_delim"'/g
57409 s/["\\]/\\&/g; s/^/"/; s/$/"/p
57412 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
57414 ' <confdefs.h | sed '
57415 s/'"$ac_delim"'/"\\\
57416 "/g' >>$CONFIG_STATUS || ac_write_fail=1
57418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57419 for (key in D) D_is_set[key] = 1
57422 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
57424 split(line, arg, " ")
57425 if (arg[1] == "#") {
57429 defundef = substr(arg[1], 2)
57432 split(mac1, mac2, "(") #)
57434 prefix = substr(line, 1, index(line, defundef) - 1)
57435 if (D_is_set[macro]) {
57436 # Preserve the white space surrounding the "#".
57437 print prefix "define", macro P[macro] D[macro]
57440 # Replace #undef with comments. This is necessary, for example,
57441 # in the case of _POSIX_SOURCE, which is predefined and required
57442 # on some systems where configure will not decide to define it.
57443 if (defundef == "undef") {
57444 print "/*", prefix defundef, macro, "*/"
57452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57453 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
57454 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
57455 { (exit 1); exit 1; }; }
57456 fi # test -n "$CONFIG_HEADERS"
57459 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
57464 :[FHLC]) ac_mode=$ac_tag; continue;;
57466 case $ac_mode$ac_tag in
57468 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
57469 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
57470 { (exit 1); exit 1; }; };;
57471 :[FH]-) ac_tag=-:-;;
57472 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
57489 -) ac_f="$tmp/stdin";;
57490 *) # Look for the file first in the build tree, then in the source tree
57491 # (if the path is not absolute). The absolute path cannot be DOS-style,
57492 # because $ac_f cannot contain `:'.
57496 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
57498 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
57499 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
57500 { (exit 1); exit 1; }; };;
57502 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
57503 ac_file_inputs="$ac_file_inputs '$ac_f'"
57506 # Let's still pretend it is `configure' which instantiates (i.e., don't
57507 # use $as_me), people would be surprised to read:
57508 # /* config.h. Generated by config.status. */
57509 configure_input='Generated from '`
57510 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
57512 if test x"$ac_file" != x-; then
57513 configure_input="$ac_file. $configure_input"
57514 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
57515 $as_echo "$as_me: creating $ac_file" >&6;}
57517 # Neutralize special characters interpreted by sed in replacement strings.
57518 case $configure_input in #(
57519 *\&* | *\|* | *\\* )
57520 ac_sed_conf_input=`$as_echo "$configure_input" |
57521 sed 's/[\\\\&|]/\\\\&/g'`;; #(
57522 *) ac_sed_conf_input=$configure_input;;
57526 *:-:* | *:-) cat >"$tmp/stdin" \
57527 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
57528 $as_echo "$as_me: error: could not create $ac_file" >&2;}
57529 { (exit 1); exit 1; }; } ;;
57534 ac_dir=`$as_dirname -- "$ac_file" ||
57535 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57536 X"$ac_file" : 'X\(//\)[^/]' \| \
57537 X"$ac_file" : 'X\(//\)$' \| \
57538 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
57539 $as_echo X"$ac_file" |
57540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
57544 /^X\(\/\/\)[^/].*/{
57559 -*) as_dir=./$as_dir;;
57561 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
57565 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
57566 *) as_qdir=$as_dir;;
57568 as_dirs="'$as_qdir' $as_dirs"
57569 as_dir=`$as_dirname -- "$as_dir" ||
57570 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57571 X"$as_dir" : 'X\(//\)[^/]' \| \
57572 X"$as_dir" : 'X\(//\)$' \| \
57573 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
57574 $as_echo X"$as_dir" |
57575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
57579 /^X\(\/\/\)[^/].*/{
57592 test -d "$as_dir" && break
57594 test -z "$as_dirs" || eval "mkdir $as_dirs"
57595 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
57596 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
57597 { (exit 1); exit 1; }; }; }
57601 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
57603 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
57604 # A ".." for each directory in $ac_dir_suffix.
57605 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
57606 case $ac_top_builddir_sub in
57607 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
57608 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
57611 ac_abs_top_builddir=$ac_pwd
57612 ac_abs_builddir=$ac_pwd$ac_dir_suffix
57613 # for backward compatibility:
57614 ac_top_builddir=$ac_top_build_prefix
57617 .) # We are building in place.
57619 ac_top_srcdir=$ac_top_builddir_sub
57620 ac_abs_top_srcdir=$ac_pwd ;;
57621 [\\/]* | ?:[\\/]* ) # Absolute name.
57622 ac_srcdir=$srcdir$ac_dir_suffix;
57623 ac_top_srcdir=$srcdir
57624 ac_abs_top_srcdir=$srcdir ;;
57625 *) # Relative name.
57626 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
57627 ac_top_srcdir=$ac_top_build_prefix$srcdir
57628 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
57630 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
57640 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
57641 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
57643 ac_MKDIR_P=$MKDIR_P
57645 [\\/$]* | ?:[\\/]* ) ;;
57646 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
57650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57651 # If the template does not know about datarootdir, expand it.
57652 # FIXME: This hack should be removed a few years after 2.60.
57653 ac_datarootdir_hack=; ac_datarootdir_seen=
57666 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
57667 *datarootdir*) ac_datarootdir_seen=yes;;
57668 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
57669 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
57670 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
57672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57673 ac_datarootdir_hack='
57674 s&@datadir@&$datadir&g
57675 s&@docdir@&$docdir&g
57676 s&@infodir@&$infodir&g
57677 s&@localedir@&$localedir&g
57678 s&@mandir@&$mandir&g
57679 s&\\\${datarootdir}&$datarootdir&g' ;;
57683 # Neutralize VPATH when `$srcdir' = `.'.
57684 # Shell code in configure.ac might set extrasub.
57685 # FIXME: do we really want to maintain this feature?
57686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57687 ac_sed_extra="$ac_vpsub
57690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57692 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
57693 s|@configure_input@|$ac_sed_conf_input|;t t
57694 s&@top_builddir@&$ac_top_builddir_sub&;t t
57695 s&@top_build_prefix@&$ac_top_build_prefix&;t t
57696 s&@srcdir@&$ac_srcdir&;t t
57697 s&@abs_srcdir@&$ac_abs_srcdir&;t t
57698 s&@top_srcdir@&$ac_top_srcdir&;t t
57699 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
57700 s&@builddir@&$ac_builddir&;t t
57701 s&@abs_builddir@&$ac_abs_builddir&;t t
57702 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
57703 s&@INSTALL@&$ac_INSTALL&;t t
57704 s&@MKDIR_P@&$ac_MKDIR_P&;t t
57705 $ac_datarootdir_hack
57707 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
57708 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
57709 $as_echo "$as_me: error: could not create $ac_file" >&2;}
57710 { (exit 1); exit 1; }; }
57712 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
57713 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
57714 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
57715 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
57716 which seems to be undefined. Please make sure it is defined." >&5
57717 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
57718 which seems to be undefined. Please make sure it is defined." >&2;}
57722 -) cat "$tmp/out" && rm -f "$tmp/out";;
57723 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
57725 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
57726 $as_echo "$as_me: error: could not create $ac_file" >&2;}
57727 { (exit 1); exit 1; }; }
57733 if test x"$ac_file" != x-; then
57735 $as_echo "/* $configure_input */" \
57736 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
57737 } >"$tmp/config.h" \
57738 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
57739 $as_echo "$as_me: error: could not create $ac_file" >&2;}
57740 { (exit 1); exit 1; }; }
57741 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
57742 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
57743 $as_echo "$as_me: $ac_file is unchanged" >&6;}
57746 mv "$tmp/config.h" "$ac_file" \
57747 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
57748 $as_echo "$as_me: error: could not create $ac_file" >&2;}
57749 { (exit 1); exit 1; }; }
57752 $as_echo "/* $configure_input */" \
57753 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
57754 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
57755 $as_echo "$as_me: error: could not create -" >&2;}
57756 { (exit 1); exit 1; }; }
57758 # Compute "$ac_file"'s index in $config_headers.
57761 for _am_header in $config_headers :; do
57762 case $_am_header in
57763 $_am_arg | $_am_arg:* )
57766 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
57769 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
57770 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57771 X"$_am_arg" : 'X\(//\)[^/]' \| \
57772 X"$_am_arg" : 'X\(//\)$' \| \
57773 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
57774 $as_echo X"$_am_arg" |
57775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
57779 /^X\(\/\/\)[^/].*/{
57791 s/.*/./; q'`/stamp-h$_am_stamp_count
57794 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
57795 $as_echo "$as_me: executing $ac_file commands" >&6;}
57800 case $ac_file$ac_mode in
57801 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
57802 # Autoconf 2.62 quotes --file arguments for eval, but not when files
57803 # are listed without --file. Let's play safe and only enable the eval
57804 # if we detect the quoting.
57805 case $CONFIG_FILES in
57806 *\'*) eval set x "$CONFIG_FILES" ;;
57807 *) set x $CONFIG_FILES ;;
57812 # Strip MF so we end up with the name of the file.
57813 mf=`echo "$mf" | sed -e 's/:.*$//'`
57814 # Check whether this is an Automake generated Makefile or not.
57815 # We used to match only the files named `Makefile.in', but
57816 # some people rename them; so instead we look at the file content.
57817 # Grep'ing the first line is not enough: some people post-process
57818 # each Makefile.in and add a new line on top of each file to say so.
57819 # Grep'ing the whole file is not good either: AIX grep has a line
57820 # limit of 2048, but all sed's we know have understand at least 4000.
57821 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
57822 dirpart=`$as_dirname -- "$mf" ||
57823 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57824 X"$mf" : 'X\(//\)[^/]' \| \
57825 X"$mf" : 'X\(//\)$' \| \
57826 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
57828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
57832 /^X\(\/\/\)[^/].*/{
57848 # Extract the definition of DEPDIR, am__include, and am__quote
57849 # from the Makefile without running `make'.
57850 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
57851 test -z "$DEPDIR" && continue
57852 am__include=`sed -n 's/^am__include = //p' < "$mf"`
57853 test -z "am__include" && continue
57854 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
57855 # When using ansi2knr, U may be empty or an underscore; expand it
57856 U=`sed -n 's/^U = //p' < "$mf"`
57857 # Find all dependency output files, they are included files with
57858 # $(DEPDIR) in their names. We invoke sed twice because it is the
57859 # simplest approach to changing $(DEPDIR) to its actual value in the
57861 for file in `sed -n "
57862 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
57863 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
57864 # Make sure the directory exists.
57865 test -f "$dirpart/$file" && continue
57866 fdir=`$as_dirname -- "$file" ||
57867 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57868 X"$file" : 'X\(//\)[^/]' \| \
57869 X"$file" : 'X\(//\)$' \| \
57870 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
57871 $as_echo X"$file" |
57872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
57876 /^X\(\/\/\)[^/].*/{
57889 { as_dir=$dirpart/$fdir
57891 -*) as_dir=./$as_dir;;
57893 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
57897 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
57898 *) as_qdir=$as_dir;;
57900 as_dirs="'$as_qdir' $as_dirs"
57901 as_dir=`$as_dirname -- "$as_dir" ||
57902 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57903 X"$as_dir" : 'X\(//\)[^/]' \| \
57904 X"$as_dir" : 'X\(//\)$' \| \
57905 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
57906 $as_echo X"$as_dir" |
57907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
57911 /^X\(\/\/\)[^/].*/{
57924 test -d "$as_dir" && break
57926 test -z "$as_dirs" || eval "mkdir $as_dirs"
57927 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
57928 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
57929 { (exit 1); exit 1; }; }; }
57930 # echo "creating $dirpart/$file"
57931 echo '# dummy' > "$dirpart/$file"
57936 "po-directories":C)
57937 for ac_file in $CONFIG_FILES; do
57938 # Support "outfile[:infile[:infile...]]"
57940 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
57942 # PO directories have a Makefile.in generated from Makefile.in.in.
57943 case "$ac_file" in */Makefile.in)
57944 # Adjust a relative srcdir.
57945 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
57946 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
57947 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
57948 # In autoconf-2.13 it is called $ac_given_srcdir.
57949 # In autoconf-2.50 it is called $srcdir.
57950 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
57951 case "$ac_given_srcdir" in
57952 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
57953 /*) top_srcdir="$ac_given_srcdir" ;;
57954 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
57956 # Treat a directory as a PO directory if and only if it has a
57957 # POTFILES.in file. This allows packages to have multiple PO
57958 # directories under different names or in different locations.
57959 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
57960 rm -f "$ac_dir/POTFILES"
57961 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
57962 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
57963 POMAKEFILEDEPS="POTFILES.in"
57964 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
57965 # on $ac_dir but don't depend on user-specified configuration
57967 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
57968 # The LINGUAS file contains the set of available languages.
57969 if test -n "$OBSOLETE_ALL_LINGUAS"; then
57970 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
57972 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
57973 # Hide the ALL_LINGUAS assigment from automake < 1.5.
57974 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
57975 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
57977 # The set of available languages was given in configure.in.
57978 # Hide the ALL_LINGUAS assigment from automake < 1.5.
57979 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
57982 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
57983 # Compute UPDATEPOFILES
57984 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
57985 # Compute DUMMYPOFILES
57986 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
57988 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
57989 case "$ac_given_srcdir" in
57991 *) srcdirpre='$(srcdir)/' ;;
57997 for lang in $ALL_LINGUAS; do
57998 POFILES="$POFILES $srcdirpre$lang.po"
57999 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
58000 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
58001 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
58003 # CATALOGS depends on both $ac_dir and the user's LINGUAS
58004 # environment variable.
58006 if test -n "$ALL_LINGUAS"; then
58007 for presentlang in $ALL_LINGUAS; do
58009 if test "%UNSET%" != "$LINGUAS"; then
58010 desiredlanguages="$LINGUAS"
58012 desiredlanguages="$ALL_LINGUAS"
58014 for desiredlang in $desiredlanguages; do
58015 # Use the presentlang catalog if desiredlang is
58016 # a. equal to presentlang, or
58017 # b. a variant of presentlang (because in this case,
58018 # presentlang can be used as a fallback for messages
58019 # which are not translated in the desiredlang catalog).
58020 case "$desiredlang" in
58021 "$presentlang"*) useit=yes;;
58024 if test $useit = yes; then
58025 INST_LINGUAS="$INST_LINGUAS $presentlang"
58030 if test -n "$INST_LINGUAS"; then
58031 for lang in $INST_LINGUAS; do
58032 CATALOGS="$CATALOGS $lang.gmo"
58035 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
58036 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"
58037 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
58038 if test -f "$f"; then
58040 *.orig | *.bak | *~) ;;
58041 *) cat "$f" >> "$ac_dir/Makefile" ;;
58049 "tests/atconfig":C) cat >tests/atconfig <<ATEOF
58050 # Configurable variable values for building test suites.
58052 # Copyright (C) 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
58054 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
58056 abs_builddir='$ac_abs_builddir'
58057 at_srcdir='$ac_srcdir'
58058 abs_srcdir='$ac_abs_srcdir'
58059 at_top_srcdir='$ac_top_srcdir'
58060 abs_top_srcdir='$ac_abs_top_srcdir'
58061 at_top_build_prefix='$ac_top_build_prefix'
58062 abs_top_builddir='$ac_abs_top_builddir'
58064 # Backward compatibility with Autotest <= 2.59b:
58065 at_top_builddir=\$at_top_build_prefix
58067 AUTOTEST_PATH='tests'
58069 SHELL=\${CONFIG_SHELL-'$SHELL'}
58077 { (exit 0); exit 0; }
58079 chmod +x $CONFIG_STATUS
58080 ac_clean_files=$ac_clean_files_save
58082 test $ac_write_fail = 0 ||
58083 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
58084 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
58085 { (exit 1); exit 1; }; }
58088 # configure is writing to config.log, and then calls config.status.
58089 # config.status does its own redirection, appending to config.log.
58090 # Unfortunately, on DOS this fails, as config.log is still kept open
58091 # by configure, so config.status won't be able to write to it; its
58092 # output is simply discarded. So we exec the FD to /dev/null,
58093 # effectively closing config.log, so it can be properly (re)opened and
58094 # appended to by config.status. When coming back to configure, we
58095 # need to make the FD available again.
58096 if test "$no_create" != yes; then
58098 ac_config_status_args=
58099 test "$silent" = yes &&
58100 ac_config_status_args="$ac_config_status_args --quiet"
58102 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
58104 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
58105 # would make configure fail if this is the last instruction.
58106 $ac_cs_success || { (exit 1); exit 1; }
58108 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
58109 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
58110 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}