summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure1678
1 files changed, 1392 insertions, 286 deletions
diff --git a/configure b/configure
index 15ef3d7e..4176c2f4 100755
--- a/configure
+++ b/configure
@@ -674,11 +674,12 @@ GETTEXT_MACRO_VERSION
USE_NLS
LIBGNU_LTLIBDEPS
LIBGNU_LIBDEPS
+gltests_WITNESS
REPLACE_ISWCNTRL
-WCTYPE_H
HAVE_WCTYPE_H
NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
NEXT_WCTYPE_H
+HAVE_ISWBLANK
HAVE_ISWCNTRL
HAVE_WINT_T
HAVE_WCHAR_H
@@ -692,10 +693,18 @@ TIME_H_DEFINES_STRUCT_TIMESPEC
NEXT_AS_FIRST_DIRECTIVE_TIME_H
NEXT_TIME_H
REPLACE_TIMEGM
-REPLACE_STRPTIME
REPLACE_NANOSLEEP
REPLACE_MKTIME
REPLACE_LOCALTIME_R
+HAVE_TIMEGM
+HAVE_STRPTIME
+HAVE_NANOSLEEP
+HAVE_LOCALTIME_R
+GNULIB_TIME_R
+GNULIB_TIMEGM
+GNULIB_STRPTIME
+GNULIB_NANOSLEEP
+GNULIB_MKTIME
SYSEXITS_H
HAVE_SYSEXITS_H
NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H
@@ -707,7 +716,6 @@ NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
NEXT_SYS_SELECT_H
REPLACE_SELECT
GNULIB_SELECT
-SYS_SOCKET_H
HAVE_WS2TCPIP_H
HAVE_SYS_SOCKET_H
NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
@@ -788,15 +796,16 @@ UNDEFINE_STRTOK_R
REPLACE_STRTOK_R
REPLACE_STRSIGNAL
REPLACE_STRNDUP
+REPLACE_STRNCAT
REPLACE_STRERROR
REPLACE_STRCASESTR
REPLACE_STRSTR
REPLACE_STRDUP
+REPLACE_STPNCPY
REPLACE_MEMMEM
REPLACE_MEMCHR
HAVE_STRVERSCMP
HAVE_DECL_STRSIGNAL
-HAVE_DECL_STRERROR
HAVE_DECL_STRTOK_R
HAVE_STRCASESTR
HAVE_STRSEP
@@ -811,6 +820,7 @@ HAVE_RAWMEMCHR
HAVE_DECL_MEMRCHR
HAVE_MEMPCPY
HAVE_DECL_MEMMEM
+HAVE_MEMCHR
HAVE_MBSLEN
GNULIB_STRVERSCMP
GNULIB_STRSIGNAL
@@ -836,6 +846,7 @@ GNULIB_STRSEP
GNULIB_STRPBRK
GNULIB_STRNLEN
GNULIB_STRNDUP
+GNULIB_STRNCAT
GNULIB_STRDUP
GNULIB_STRCHRNUL
GNULIB_STPNCPY
@@ -857,6 +868,7 @@ LTLIBPTH
LIBPTH
LOCALCHARSET_TESTS_ENVIRONMENT
GLIBC21
+IGNORE_UNUSED_LIBRARIES_CFLAGS
HAVE_LANGINFO_ERA
HAVE_LANGINFO_CODESET
HAVE_LANGINFO_H
@@ -947,6 +959,7 @@ REPLACE_CLOSEDIR
HAVE_ALPHASORT
HAVE_SCANDIR
HAVE_FDOPENDIR
+HAVE_DECL_FDOPENDIR
HAVE_DECL_DIRFD
GNULIB_ALPHASORT
GNULIB_SCANDIR
@@ -958,6 +971,7 @@ REPLACE_VPRINTF
REPLACE_VFPRINTF
REPLACE_VDPRINTF
REPLACE_VASPRINTF
+REPLACE_TMPFILE
REPLACE_STDIO_WRITE_FUNCS
REPLACE_SPRINTF
REPLACE_SNPRINTF
@@ -984,6 +998,8 @@ REPLACE_DPRINTF
HAVE_VDPRINTF
HAVE_VASPRINTF
HAVE_RENAMEAT
+HAVE_FTELLO
+HAVE_FSEEKO
HAVE_DPRINTF
HAVE_DECL_VSNPRINTF
HAVE_DECL_SNPRINTF
@@ -999,6 +1015,7 @@ GNULIB_VFPRINTF_POSIX
GNULIB_VFPRINTF
GNULIB_VDPRINTF
GNULIB_VASPRINTF
+GNULIB_TMPFILE
GNULIB_STDIO_H_SIGPIPE
GNULIB_SPRINTF_POSIX
GNULIB_SNPRINTF
@@ -1051,17 +1068,19 @@ REPLACE_GETPAGESIZE
REPLACE_GETGROUPS
REPLACE_GETCWD
REPLACE_FCHOWNAT
-REPLACE_FCHDIR
REPLACE_DUP2
REPLACE_DUP
REPLACE_CLOSE
REPLACE_CHOWN
-HAVE_USLEEP
-HAVE_UNLINKAT
HAVE_SYS_PARAM_H
HAVE_OS_H
+HAVE_DECL_GETUSERSHELL
+HAVE_DECL_GETPAGESIZE
HAVE_DECL_GETLOGIN_R
HAVE_DECL_ENVIRON
+HAVE_USLEEP
+HAVE_UNLINKAT
+HAVE_TTYNAME_R
HAVE_SYMLINKAT
HAVE_SYMLINK
HAVE_SLEEP
@@ -1072,7 +1091,6 @@ HAVE_PIPE2
HAVE_LINKAT
HAVE_LINK
HAVE_LCHOWN
-HAVE_GETUSERSHELL
HAVE_GETPAGESIZE
HAVE_GETLOGIN
HAVE_GETHOSTNAME
@@ -1082,6 +1100,7 @@ HAVE_GETDOMAINNAME
HAVE_FTRUNCATE
HAVE_FSYNC
HAVE_FCHOWNAT
+HAVE_FCHDIR
HAVE_FACCESSAT
HAVE_EUIDACCESS
HAVE_DUP3
@@ -1093,6 +1112,7 @@ GNULIB_UNLINKAT
GNULIB_UNLINK
GNULIB_UNISTD_H_SIGPIPE
GNULIB_UNISTD_H_GETOPT
+GNULIB_TTYNAME_R
GNULIB_SYMLINKAT
GNULIB_SYMLINK
GNULIB_SLEEP
@@ -1133,6 +1153,7 @@ REPLACE_PUTENV
REPLACE_MKSTEMP
REPLACE_CANONICALIZE_FILE_NAME
HAVE_UNSETENV
+HAVE_UNLOCKPT
HAVE_SYS_LOADAVG_H
HAVE_STRUCT_RANDOM_DATA
HAVE_STRTOULL
@@ -1143,17 +1164,21 @@ HAVE_RPMATCH
HAVE_REALPATH
HAVE_REALLOC_POSIX
HAVE_RANDOM_R
+HAVE_PTSNAME
HAVE_MKSTEMPS
+HAVE_MKSTEMP
HAVE_MKOSTEMPS
HAVE_MKOSTEMP
HAVE_MKDTEMP
HAVE_MALLOC_POSIX
+HAVE_GRANTPT
HAVE_GETSUBOPT
HAVE_DECL_GETLOADAVG
HAVE_CANONICALIZE_FILE_NAME
HAVE_CALLOC_POSIX
HAVE_ATOLL
GNULIB_UNSETENV
+GNULIB_UNLOCKPT
GNULIB_STRTOULL
GNULIB_STRTOLL
GNULIB_STRTOD
@@ -1163,12 +1188,14 @@ GNULIB_REALPATH
GNULIB_REALLOC_POSIX
GNULIB_RANDOM_R
GNULIB_PUTENV
+GNULIB_PTSNAME
GNULIB_MKSTEMPS
GNULIB_MKSTEMP
GNULIB_MKOSTEMPS
GNULIB_MKOSTEMP
GNULIB_MKDTEMP
GNULIB_MALLOC_POSIX
+GNULIB_GRANTPT
GNULIB_GETSUBOPT
GNULIB_GETLOADAVG
GNULIB_CANONICALIZE_FILE_NAME
@@ -3194,6 +3221,8 @@ gl_func_list="$gl_func_list mbsinit"
gl_func_list="$gl_func_list mbrtowc"
gl_header_list="$gl_header_list sys/mman.h"
gl_func_list="$gl_func_list mprotect"
+gl_func_list="$gl_func_list memchr"
+gl_func_list="$gl_func_list mkstemp"
gl_func_list="$gl_func_list nl_langinfo"
gl_func_list="$gl_func_list pathconf"
gl_header_list="$gl_header_list locale.h"
@@ -3210,6 +3239,7 @@ gl_header_list="$gl_header_list stdint.h"
gl_header_list="$gl_header_list wchar.h"
gl_header_list="$gl_header_list stdio.h"
gl_header_list="$gl_header_list stdlib.h"
+gl_func_list="$gl_func_list strdup"
gl_header_list="$gl_header_list string.h"
gl_header_list="$gl_header_list strings.h"
gl_func_list="$gl_func_list strndup"
@@ -3221,6 +3251,7 @@ gl_func_list="$gl_func_list pipe"
gl_func_list="$gl_func_list vasnprintf"
gl_func_list="$gl_func_list wcrtomb"
gl_func_list="$gl_func_list iswcntrl"
+gl_func_list="$gl_func_list iswblank"
gt_needs="$gt_needs "
# Check that the precious variables saved in the cache have kept the same
# value.
@@ -6764,11 +6795,157 @@ fi
-
-
-
-
-
+ # Code from module alignof:
+ # Code from module alloca:
+ # Code from module alloca-opt:
+ # Code from module areadlink-with-size:
+ # Code from module arg-nonnull:
+ # Code from module argp:
+ # Code from module atexit:
+ # Code from module bitrotate:
+ # Code from module btowc:
+ # Code from module c++defs:
+ # Code from module canonicalize:
+ # Code from module canonicalize-lgpl:
+ # Code from module chdir-long:
+ # Code from module chown:
+ # Code from module cloexec:
+ # Code from module close:
+ # Code from module close-hook:
+ # Code from module configmake:
+ # Code from module d-ino:
+ # Code from module d-type:
+ # Code from module dirent:
+ # Code from module dirfd:
+ # Code from module dirname:
+ # Code from module dirname-lgpl:
+ # Code from module double-slash-root:
+ # Code from module dup2:
+ # Code from module environ:
+ # Code from module errno:
+ # Code from module error:
+ # Code from module exitfail:
+ # Code from module extensions:
+
+ # Code from module fchdir:
+ # Code from module fclose:
+ # Code from module fcntl:
+ # Code from module fcntl-h:
+ # Code from module fdopendir:
+ # Code from module file-set:
+ # Code from module float:
+ # Code from module fnmatch:
+ # Code from module fnmatch-gnu:
+ # Code from module getcwd:
+ # Code from module getdtablesize:
+ # Code from module getlogin_r:
+ # Code from module getopt-gnu:
+ # Code from module getopt-posix:
+ # Code from module gettext:
+ # Code from module gettext-h:
+ # Code from module gettimeofday:
+ # Code from module glob:
+ # Code from module hash:
+ # Code from module hash-pjw:
+ # Code from module hash-triple:
+ # Code from module havelib:
+ # Code from module include_next:
+ # Code from module inline:
+ # Code from module intprops:
+ # Code from module langinfo:
+ # Code from module lchown:
+ # Code from module lib-ignore:
+ # Code from module localcharset:
+ # Code from module lock:
+ # Code from module lstat:
+ # Code from module malloc:
+ # Code from module malloc-posix:
+ # Code from module malloca:
+ # Code from module mbrtowc:
+ # Code from module mbsinit:
+ # Code from module mbsrtowcs:
+ # Code from module memchr:
+ # Code from module memcmp:
+ # Code from module mempcpy:
+ # Code from module memrchr:
+ # Code from module minmax:
+ # Code from module mkdir:
+ # Code from module mkdtemp:
+ # Code from module mkstemp:
+ # Code from module multiarch:
+ # Code from module nl_langinfo:
+ # Code from module open:
+ # Code from module openat:
+ # Code from module openat-die:
+ # Code from module pathmax:
+ # Code from module rawmemchr:
+ # Code from module readlink:
+ # Code from module realloc-posix:
+ # Code from module regex:
+ # Code from module rename:
+ # Code from module rmdir:
+ # Code from module same:
+ # Code from module same-inode:
+ # Code from module save-cwd:
+ # Code from module setenv:
+ # Code from module sigaction:
+ # Code from module signal:
+ # Code from module sigprocmask:
+ # Code from module size_max:
+ # Code from module sleep:
+ # Code from module snprintf:
+ # Code from module ssize_t:
+ # Code from module stat:
+ # Code from module stdarg:
+
+ # Code from module stdbool:
+ # Code from module stddef:
+ # Code from module stdint:
+ # Code from module stdio:
+ # Code from module stdlib:
+ # Code from module strcase:
+ # Code from module strchrnul:
+ # Code from module strcspn:
+ # Code from module strdup-posix:
+ # Code from module streq:
+ # Code from module strerror:
+ # Code from module string:
+ # Code from module strings:
+ # Code from module strndup:
+ # Code from module strnlen:
+ # Code from module strnlen1:
+ # Code from module strsep:
+ # Code from module strsignal:
+ # Code from module sys_select:
+ # Code from module sys_socket:
+ # Code from module sys_stat:
+ # Code from module sys_time:
+ # Code from module sysexits:
+ # Code from module tempname:
+ # Code from module threadlib:
+
+
+
+ # Code from module time:
+ # Code from module tls:
+ # Code from module unistd:
+ # Code from module unistd-safer:
+ # Code from module unlink:
+ # Code from module unsetenv:
+ # Code from module vasnprintf:
+ # Code from module vasprintf:
+ # Code from module verify:
+ # Code from module vsnprintf:
+ # Code from module warn-on-use:
+ # Code from module wchar:
+ # Code from module wcrtomb:
+ # Code from module wctype:
+ # Code from module xalloc:
+ # Code from module xalloc-die:
+ # Code from module xgetcwd:
+ # Code from module xsize:
+ # Code from module xstrndup:
+ # Code from module xvasprintf:
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
@@ -9895,12 +10072,14 @@ $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
GNULIB_CANONICALIZE_FILE_NAME=0;
GNULIB_GETLOADAVG=0;
GNULIB_GETSUBOPT=0;
+ GNULIB_GRANTPT=0;
GNULIB_MALLOC_POSIX=0;
GNULIB_MKDTEMP=0;
GNULIB_MKOSTEMP=0;
GNULIB_MKOSTEMPS=0;
GNULIB_MKSTEMP=0;
GNULIB_MKSTEMPS=0;
+ GNULIB_PTSNAME=0;
GNULIB_PUTENV=0;
GNULIB_RANDOM_R=0;
GNULIB_REALLOC_POSIX=0;
@@ -9910,17 +10089,21 @@ $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
GNULIB_STRTOD=0;
GNULIB_STRTOLL=0;
GNULIB_STRTOULL=0;
+ GNULIB_UNLOCKPT=0;
GNULIB_UNSETENV=0;
HAVE_ATOLL=1;
HAVE_CALLOC_POSIX=1;
HAVE_CANONICALIZE_FILE_NAME=1;
HAVE_DECL_GETLOADAVG=1;
HAVE_GETSUBOPT=1;
+ HAVE_GRANTPT=1;
HAVE_MALLOC_POSIX=1;
HAVE_MKDTEMP=1;
HAVE_MKOSTEMP=1;
HAVE_MKOSTEMPS=1;
+ HAVE_MKSTEMP=1;
HAVE_MKSTEMPS=1;
+ HAVE_PTSNAME=1;
HAVE_RANDOM_R=1;
HAVE_REALLOC_POSIX=1;
HAVE_REALPATH=1;
@@ -9931,6 +10114,7 @@ $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
HAVE_STRTOULL=1;
HAVE_STRUCT_RANDOM_DATA=1;
HAVE_SYS_LOADAVG_H=0;
+ HAVE_UNLOCKPT=1;
HAVE_UNSETENV=1;
REPLACE_CANONICALIZE_FILE_NAME=0;
REPLACE_MKSTEMP=0;
@@ -10013,6 +10197,7 @@ $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
GNULIB_SLEEP=0;
GNULIB_SYMLINK=0;
GNULIB_SYMLINKAT=0;
+ GNULIB_TTYNAME_R=0;
GNULIB_UNISTD_H_GETOPT=0;
GNULIB_UNISTD_H_SIGPIPE=0;
GNULIB_UNLINK=0;
@@ -10024,6 +10209,7 @@ $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
HAVE_DUP3=1;
HAVE_EUIDACCESS=1;
HAVE_FACCESSAT=1;
+ HAVE_FCHDIR=1;
HAVE_FCHOWNAT=1;
HAVE_FSYNC=1;
HAVE_FTRUNCATE=1;
@@ -10033,7 +10219,6 @@ $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
HAVE_GETHOSTNAME=1;
HAVE_GETLOGIN=1;
HAVE_GETPAGESIZE=1;
- HAVE_GETUSERSHELL=1;
HAVE_LCHOWN=1;
HAVE_LINK=1;
HAVE_LINKAT=1;
@@ -10044,17 +10229,19 @@ $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
HAVE_SLEEP=1;
HAVE_SYMLINK=1;
HAVE_SYMLINKAT=1;
+ HAVE_TTYNAME_R=1;
+ HAVE_UNLINKAT=1;
+ HAVE_USLEEP=1;
HAVE_DECL_ENVIRON=1;
HAVE_DECL_GETLOGIN_R=1;
+ HAVE_DECL_GETPAGESIZE=1;
+ HAVE_DECL_GETUSERSHELL=1;
HAVE_OS_H=0;
HAVE_SYS_PARAM_H=0;
- HAVE_UNLINKAT=1;
- HAVE_USLEEP=1;
REPLACE_CHOWN=0;
REPLACE_CLOSE=0;
REPLACE_DUP=0;
REPLACE_DUP2=0;
- REPLACE_FCHDIR=0;
REPLACE_FCHOWNAT=0;
REPLACE_GETCWD=0;
REPLACE_GETGROUPS=0;
@@ -10466,6 +10653,7 @@ $as_echo "#define CHOWN_CHANGE_TIME_BUG 1" >>confdefs.h
GNULIB_SNPRINTF=0;
GNULIB_SPRINTF_POSIX=0;
GNULIB_STDIO_H_SIGPIPE=0;
+ GNULIB_TMPFILE=0;
GNULIB_VASPRINTF=0;
GNULIB_VDPRINTF=0;
GNULIB_VFPRINTF=0;
@@ -10481,6 +10669,8 @@ $as_echo "#define CHOWN_CHANGE_TIME_BUG 1" >>confdefs.h
HAVE_DECL_SNPRINTF=1;
HAVE_DECL_VSNPRINTF=1;
HAVE_DPRINTF=1;
+ HAVE_FSEEKO=1;
+ HAVE_FTELLO=1;
HAVE_RENAMEAT=1;
HAVE_VASPRINTF=1;
HAVE_VDPRINTF=1;
@@ -10507,6 +10697,7 @@ $as_echo "#define CHOWN_CHANGE_TIME_BUG 1" >>confdefs.h
REPLACE_SNPRINTF=0;
REPLACE_SPRINTF=0;
REPLACE_STDIO_WRITE_FUNCS=0;
+ REPLACE_TMPFILE=0;
REPLACE_VASPRINTF=0;
REPLACE_VDPRINTF=0;
REPLACE_VFPRINTF=0;
@@ -10520,6 +10711,7 @@ $as_echo "#define CHOWN_CHANGE_TIME_BUG 1" >>confdefs.h
GNULIB_SCANDIR=0;
GNULIB_ALPHASORT=0;
HAVE_DECL_DIRFD=1;
+ HAVE_DECL_FDOPENDIR=1;
HAVE_FDOPENDIR=1;
HAVE_SCANDIR=1;
HAVE_ALPHASORT=1;
@@ -11745,7 +11937,7 @@ done
fi
- if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
+ if test -z "$gl_replace_getopt"; then
ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
"
if test "x$ac_cv_have_decl_optreset" = x""yes; then :
@@ -11757,10 +11949,27 @@ fi
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_OPTRESET $ac_have_decl
_ACEOF
+if test $ac_have_decl = 1; then :
+
+else
+ ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
+"
+if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
+ ac_have_decl=1
+else
+ ac_have_decl=0
+fi
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_DECL_GETOPT_CLIP $ac_have_decl
+_ACEOF
+
+
+fi
fi
- if test -z "$gl_replace_getopt"; then
+ if test -z "$gl_replace_getopt"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
$as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
if test "${gl_cv_func_getopt_posix+set}" = set; then :
@@ -11770,6 +11979,7 @@ else
if test "$cross_compiling" = yes; then :
case "$host_os" in
mingw*) gl_cv_func_getopt_posix="guessing no";;
+ darwin*) gl_cv_func_getopt_posix="guessing no";;
*) gl_cv_func_getopt_posix="guessing yes";;
esac
@@ -11781,7 +11991,7 @@ else
#include <stdlib.h>
#include <string.h>
-#if !HAVE_DECL_OPTRESET
+#if !HAVE_DECL_OPTRESET && !HAVE_DECL_GETOPT_CLIP
# define OPTIND_MIN 0
#else
# define OPTIND_MIN 1
@@ -11849,6 +12059,20 @@ main ()
if (!(optind == 1))
return 12;
}
+ /* Detect MacOS 10.5 bug. */
+ {
+ char *argv[3] = { "program", "-ab", NULL };
+ optind = OPTIND_MIN;
+ opterr = 0;
+ if (getopt (2, argv, "ab:") != 'a')
+ return 13;
+ if (getopt (2, argv, "ab:") != '?')
+ return 14;
+ if (optopt != 'b')
+ return 15;
+ if (optind != 2)
+ return 16;
+ }
return 0;
}
@@ -11940,6 +12164,15 @@ main ()
if (getopt (3, argv, "-p") != 'p')
return 7;
}
+ /* This code fails on glibc 2.11. */
+ {
+ char *argv[] = { "program", "-b", "-a", NULL };
+ optind = opterr = 0;
+ if (getopt (3, argv, "+:a:b") != 'b')
+ return 8;
+ if (getopt (3, argv, "+:a:b") != ':')
+ return 9;
+ }
return 0;
;
@@ -12621,8 +12854,11 @@ $as_echo "$gl_cv_solaris_64bit" >&6; }
if test "$gl_use_threads" != no; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
- gl_have_weak=no
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+if test "${gl_cv_have_weak+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ gl_cv_have_weak=no
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
extern void xyzzy ();
#pragma weak xyzzy
@@ -12635,12 +12871,53 @@ xyzzy();
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
- gl_have_weak=yes
+ gl_cv_have_weak=maybe
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5
-$as_echo "$gl_have_weak" >&6; }
+ if test $gl_cv_have_weak = maybe; then
+ if test "$cross_compiling" = yes; then :
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#ifdef __ELF__
+ Extensible Linking Format
+ #endif
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
+ gl_cv_have_weak="guessing yes"
+else
+ gl_cv_have_weak="guessing no"
+fi
+rm -f conftest*
+
+
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include <stdio.h>
+#pragma weak fputs
+int main ()
+{
+ return (fputs == NULL);
+}
+_ACEOF
+if ac_fn_c_try_run "$LINENO"; then :
+ gl_cv_have_weak=yes
+else
+ gl_cv_have_weak=no
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+ conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+
+ fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
+$as_echo "$gl_cv_have_weak" >&6; }
if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
# On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
# it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
@@ -12829,7 +13106,7 @@ fi
$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
- if test $gl_have_weak = yes; then
+ if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
@@ -12872,7 +13149,7 @@ rm -f core conftest.err conftest.$ac_objext \
$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
- if test $gl_have_weak = yes; then
+ if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
@@ -13428,7 +13705,7 @@ rm -f core conftest.err conftest.$ac_objext \
$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
- if test $gl_have_weak = yes; then
+ if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
@@ -14055,6 +14332,7 @@ $as_echo "$gt_cv_locale_fr_utf8" >&6; }
GNULIB_STPNCPY=0;
GNULIB_STRCHRNUL=0;
GNULIB_STRDUP=0;
+ GNULIB_STRNCAT=0;
GNULIB_STRNDUP=0;
GNULIB_STRNLEN=0;
GNULIB_STRPBRK=0;
@@ -14080,7 +14358,8 @@ $as_echo "$gt_cv_locale_fr_utf8" >&6; }
GNULIB_STRSIGNAL=0;
GNULIB_STRVERSCMP=0;
HAVE_MBSLEN=0;
- HAVE_DECL_MEMMEM=1;
+ HAVE_MEMCHR=1;
+ HAVE_DECL_MEMMEM=1;
HAVE_MEMPCPY=1;
HAVE_DECL_MEMRCHR=1;
HAVE_RAWMEMCHR=1;
@@ -14094,15 +14373,16 @@ $as_echo "$gt_cv_locale_fr_utf8" >&6; }
HAVE_STRSEP=1;
HAVE_STRCASESTR=1;
HAVE_DECL_STRTOK_R=1;
- HAVE_DECL_STRERROR=1;
HAVE_DECL_STRSIGNAL=1;
HAVE_STRVERSCMP=1;
REPLACE_MEMCHR=0;
REPLACE_MEMMEM=0;
+ REPLACE_STPNCPY=0;
REPLACE_STRDUP=0;
REPLACE_STRSTR=0;
REPLACE_STRCASESTR=0;
REPLACE_STRERROR=0;
+ REPLACE_STRNCAT=0;
REPLACE_STRNDUP=0;
REPLACE_STRSIGNAL=0;
REPLACE_STRTOK_R=0;
@@ -14115,6 +14395,11 @@ $as_echo "$gt_cv_locale_fr_utf8" >&6; }
+
+
+
+
+
# Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
# fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
# irrelevant for anonymous mappings.
@@ -14192,47 +14477,12 @@ $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
+ :
-
-
- for ac_func in memchr
-do :
- ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
-if test "x$ac_cv_func_memchr" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
-#define HAVE_MEMCHR 1
-_ACEOF
-
-else
-
- gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
-
-fi
-done
-
-
- if test $ac_cv_func_memchr = no; then
-
- for ac_header in bp-sym.h
-do :
- ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
-if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
-#define HAVE_BP_SYM_H 1
-_ACEOF
-
-fi
-
-done
-
-
- REPLACE_MEMCHR=1
- fi
-
if test $ac_cv_func_memchr = yes; then
# Detect platform-specific bugs in some versions of glibc:
# memchr should not dereference anything with length 0
@@ -14314,32 +14564,36 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
$as_echo "$gl_cv_func_memchr_works" >&6; }
if test "$gl_cv_func_memchr_works" != yes; then
+ REPLACE_MEMCHR=1
+ fi
+ else
+ HAVE_MEMCHR=0
+ fi
+ if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
- for ac_header in bp-sym.h
-do :
- ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
-if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
-#define HAVE_BP_SYM_H 1
-_ACEOF
-fi
-done
- REPLACE_MEMCHR=1
+ gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
+ for ac_header in bp-sym.h
+do :
+ ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
+if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_BP_SYM_H 1
+_ACEOF
+fi
+done
- gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
- fi
fi
@@ -14630,6 +14884,11 @@ rm -rf conftest*
fi
+
+
+
+
+
gl_cv_c_multiarch=no
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -14682,9 +14941,10 @@ $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unlink honors trailing slashes" >&5
$as_echo_n "checking whether unlink honors trailing slashes... " >&6; }
-if test "${gl_cv_func_unlink_works+set}" = set; then :
+if test "${gl_cv_func_unlink_honors_slashes+set}" = set; then :
$as_echo_n "(cached) " >&6
else
touch conftest.file
@@ -14693,7 +14953,7 @@ else
ln -s conftest.file conftest.lnk
fi
if test "$cross_compiling" = yes; then :
- gl_cv_func_unlink_works="guessing no"
+ gl_cv_func_unlink_honors_slashes="guessing no"
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -14713,9 +14973,9 @@ if (!unlink ("conftest.file/") || errno != ENOTDIR) return 1;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
- gl_cv_func_unlink_works=yes
+ gl_cv_func_unlink_honors_slashes=yes
else
- gl_cv_func_unlink_works=no
+ gl_cv_func_unlink_honors_slashes=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
@@ -14723,9 +14983,85 @@ fi
rm -f conftest.file conftest.lnk
fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unlink_works" >&5
-$as_echo "$gl_cv_func_unlink_works" >&6; }
- if test x"$gl_cv_func_unlink_works" != xyes; then
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unlink_honors_slashes" >&5
+$as_echo "$gl_cv_func_unlink_honors_slashes" >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unlink of a parent directory fails is it should" >&5
+$as_echo_n "checking whether unlink of a parent directory fails is it should... " >&6; }
+if test "${gl_cv_func_unlink_parent_fails+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ case "$host_os" in
+ darwin*)
+ if {
+ # Use the mktemp program if available. If not available, hide the error
+ # message.
+ tmp=`(umask 077 && mktemp -d /tmp/gtXXXXXX) 2>/dev/null` &&
+ test -n "$tmp" && test -d "$tmp"
+ } ||
+ {
+ # Use a simple mkdir command. It is guaranteed to fail if the directory
+ # already exists. $RANDOM is bash specific and expands to empty in shells
+ # other than bash, ksh and zsh. Its use does not increase security;
+ # rather, it minimizes the probability of failure in a very cluttered /tmp
+ # directory.
+ tmp=/tmp/gt$$-$RANDOM
+ (umask 077 && mkdir "$tmp")
+ }; then
+ mkdir "$tmp/subdir"
+ GL_SUBDIR_FOR_UNLINK="$tmp/subdir"
+ export GL_SUBDIR_FOR_UNLINK
+ if test "$cross_compiling" = yes; then :
+ gl_cv_func_unlink_parent_fails="guessing no"
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <stdlib.h>
+ #include <unistd.h>
+ int main ()
+ {
+ if (chdir (getenv ("GL_SUBDIR_FOR_UNLINK")) != 0)
+ return 1;
+ return unlink ("..") == 0;
+ }
+
+_ACEOF
+if ac_fn_c_try_run "$LINENO"; then :
+ gl_cv_func_unlink_parent_fails=yes
+else
+ gl_cv_func_unlink_parent_fails=no
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+ conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+
+ unset GL_SUBDIR_FOR_UNLINK
+ rm -rf "$tmp"
+ else
+ gl_cv_func_unlink_parent_fails="guessing no"
+ fi
+ ;;
+ *)
+ gl_cv_func_unlink_parent_fails="guessing yes"
+ ;;
+ esac
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unlink_parent_fails" >&5
+$as_echo "$gl_cv_func_unlink_parent_fails" >&6; }
+ case "$gl_cv_func_unlink_parent_fails" in
+ *no)
+
+$as_echo "#define UNLINK_PARENT_BUG 1" >>confdefs.h
+
+ ;;
+ esac
+ if test "$gl_cv_func_unlink_honors_slashes" != yes \
+ || { case "$gl_cv_func_unlink_parent_fails" in
+ *yes) false;;
+ *no) true;;
+ esac
+ }; then
REPLACE_UNLINK=1
@@ -14824,6 +15160,7 @@ else
#include <stdlib.h>
#include <errno.h>
+ #include <string.h>
int
main ()
@@ -15080,6 +15417,11 @@ $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
HAVE_DECL_STRNCASECMP=1;
+
+
+
+
+
ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
if test "x$ac_cv_have_decl_strdup" = x""yes; then :
ac_have_decl=1
@@ -15259,7 +15601,7 @@ $as_echo "$gl_cv_next_string_h" >&6; }
- for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp; do
+ for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp; do
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
@@ -15523,7 +15865,6 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
$as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
- SYS_SOCKET_H=''
for ac_func in shutdown
do :
ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
@@ -15567,8 +15908,6 @@ $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
SYS_SOCKET_H='sys/socket.h'
fi
fi
- else
- SYS_SOCKET_H='sys/socket.h'
fi
# We need to check for ws2tcpip.h now.
@@ -15702,13 +16041,10 @@ fi
if test $ac_cv_type_struct_sockaddr_storage = no; then
HAVE_STRUCT_SOCKADDR_STORAGE=0
- SYS_SOCKET_H='sys/socket.h'
fi
if test $ac_cv_type_sa_family_t = no; then
HAVE_SA_FAMILY_T=0
- SYS_SOCKET_H='sys/socket.h'
fi
- if test -n "$SYS_SOCKET_H"; then
@@ -15742,8 +16078,6 @@ done
fi
- fi
-
for gl_func in socket connect accept bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4; do
@@ -15855,10 +16189,18 @@ fi
+ GNULIB_MKTIME=0;
+ GNULIB_NANOSLEEP=0;
+ GNULIB_STRPTIME=0;
+ GNULIB_TIMEGM=0;
+ GNULIB_TIME_R=0;
+ HAVE_LOCALTIME_R=1;
+ HAVE_NANOSLEEP=1;
+ HAVE_STRPTIME=1;
+ HAVE_TIMEGM=1;
REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
REPLACE_MKTIME=GNULIB_PORTCHECK;
REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
- REPLACE_STRPTIME=GNULIB_PORTCHECK;
REPLACE_TIMEGM=GNULIB_PORTCHECK;
@@ -16190,6 +16532,75 @@ _ACEOF
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
+$as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
+if test "${gl_cv_func_snprintf_retval_c99+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+
+ if test "$cross_compiling" = yes; then :
+
+ case "$host_os" in
+ # Guess yes on glibc systems.
+ *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
+ # Guess yes on FreeBSD >= 5.
+ freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";;
+ freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
+ # Guess yes on MacOS X >= 10.3.
+ darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
+ darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
+ # Guess yes on OpenBSD >= 3.9.
+ openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
+ gl_cv_func_snprintf_retval_c99="guessing no";;
+ openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
+ # Guess yes on Solaris >= 2.6.
+ solaris2.[0-5]*) gl_cv_func_snprintf_retval_c99="guessing no";;
+ solaris*) gl_cv_func_snprintf_retval_c99="guessing yes";;
+ # Guess yes on AIX >= 4.
+ aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
+ aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
+ # Guess yes on NetBSD >= 3.
+ netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
+ gl_cv_func_snprintf_retval_c99="guessing no";;
+ netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
+ # Guess yes on BeOS.
+ beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
+ # If we don't know, assume the worst.
+ *) gl_cv_func_snprintf_retval_c99="guessing no";;
+ esac
+
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include <stdio.h>
+#include <string.h>
+static char buf[100];
+int main ()
+{
+ strcpy (buf, "ABCDEF");
+ if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
+ return 1;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_run "$LINENO"; then :
+ gl_cv_func_snprintf_retval_c99=yes
+else
+ gl_cv_func_snprintf_retval_c99=no
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+ conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
+$as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
+
+
+
+
@@ -16219,6 +16630,14 @@ cat >>confdefs.h <<_ACEOF
_ACEOF
+ case "$gl_cv_func_snprintf_retval_c99" in
+ *yes)
+
+$as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
+
+ ;;
+ esac
+
ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
@@ -16243,6 +16662,11 @@ _ACEOF
+
+
+
+
+
if false; then
GL_COND_LIBTOOL_TRUE=
GL_COND_LIBTOOL_FALSE='#'
@@ -16254,6 +16678,7 @@ fi
gl_cond_libtool=false
gl_libdeps=
gl_ltlibdeps=
+ gl_m4_base='gnulib/m4'
@@ -16264,6 +16689,9 @@ fi
gl_source_base='gnulib/lib'
+ # Code from module alignof:
+ # Code from module alloca:
+ # Code from module alloca-opt:
@@ -16314,6 +16742,9 @@ $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
fi
+ # Code from module areadlink-with-size:
+ # Code from module arg-nonnull:
+ # Code from module argp:
@@ -16559,6 +16990,7 @@ rm -f core conftest.err conftest.$ac_objext \
XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_failure:4:c-format"
+ # Code from module atexit:
@@ -16590,7 +17022,9 @@ done
fi
+ # Code from module bitrotate:
+ # Code from module btowc:
@@ -16609,7 +17043,51 @@ done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
+$as_echo_n "checking whether btowc(0) is correct... " >&6; }
+if test "${gl_cv_func_btowc_nul+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+
+ if test "$cross_compiling" = yes; then :
+
+ case "$host_os" in
+ # Guess no on Cygwin.
+ cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
+ # Guess yes otherwise.
+ *) gl_cv_func_btowc_nul="guessing yes" ;;
+ esac
+
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include <stdio.h>
+#include <string.h>
+#include <wchar.h>
+int main ()
+{
+ if (btowc ('\0') != 0)
+ return 1;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_run "$LINENO"; then :
+ gl_cv_func_btowc_nul=yes
+else
+ gl_cv_func_btowc_nul=no
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+ conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
+$as_echo "$gl_cv_func_btowc_nul" >&6; }
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
$as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
if test "${gl_cv_func_btowc_eof+set}" = set; then :
$as_echo_n "(cached) " >&6
@@ -16656,6 +17134,11 @@ fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
$as_echo "$gl_cv_func_btowc_eof" >&6; }
+
+ case "$gl_cv_func_btowc_nul" in
+ *yes) ;;
+ *) REPLACE_BTOWC=1 ;;
+ esac
case "$gl_cv_func_btowc_eof" in
*yes) ;;
*) REPLACE_BTOWC=1 ;;
@@ -16682,10 +17165,19 @@ $as_echo "$gl_cv_func_btowc_eof" >&6; }
+
GNULIB_BTOWC=1
+$as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
+
+
+
+ # Code from module c++defs:
+ # Code from module canonicalize:
+
+
@@ -16714,7 +17206,15 @@ $as_echo "$gl_cv_func_btowc_eof" >&6; }
-$as_echo "#define GNULIB_CANONICALIZE 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define GNULIB_CANONICALIZE 1
+_ACEOF
+
+
+
+
+$as_echo "#define GNULIB_TEST_CANONICALIZE 1" >>confdefs.h
+
@@ -16723,6 +17223,13 @@ $as_echo "#define GNULIB_CANONICALIZE 1" >>confdefs.h
+$as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
+
+
+
+ # Code from module canonicalize-lgpl:
+
+
if test $ac_cv_func_canonicalize_file_name = no; then
HAVE_CANONICALIZE_FILE_NAME=0
@@ -16757,7 +17264,10 @@ $as_echo "#define GNULIB_CANONICALIZE 1" >>confdefs.h
-$as_echo "#define GNULIB_CANONICALIZE_LGPL 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define GNULIB_CANONICALIZE_LGPL 1
+_ACEOF
+
@@ -16766,9 +17276,23 @@ $as_echo "#define GNULIB_CANONICALIZE_LGPL 1" >>confdefs.h
+$as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
+
+
+
+
+
+
GNULIB_REALPATH=1
+
+$as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
+
+
+
+ # Code from module chdir-long:
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this system has an arbitrary file name length limit" >&5
$as_echo_n "checking whether this system has an arbitrary file name length limit... " >&6; }
if test "${gl_cv_have_arbitrary_file_name_length_limit+set}" = set; then :
@@ -16811,6 +17335,8 @@ $as_echo "$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
fi
+ # Code from module chown:
+
@@ -16818,6 +17344,31 @@ $as_echo "$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
+$as_echo "#define GNULIB_TEST_CHOWN 1" >>confdefs.h
+
+
+
+ # Code from module cloexec:
+
+
+
+
+
+
+
+
+
+ gl_LIBOBJS="$gl_LIBOBJS cloexec.$ac_objext"
+
+
+
+
+$as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
+
+
+ # Code from module close:
+
+
@@ -16885,8 +17436,18 @@ done
+
GNULIB_CLOSE=1
+
+
+$as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
+
+
+
+ # Code from module close-hook:
+ # Code from module configmake:
+ # Code from module d-ino:
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino member in directory struct" >&5
$as_echo_n "checking for d_ino member in directory struct... " >&6; }
if test "${gl_cv_struct_dirent_d_ino+set}" = set; then :
@@ -16936,6 +17497,7 @@ $as_echo "#define D_INO_IN_DIRENT 1" >>confdefs.h
fi
+ # Code from module d-type:
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_type member in directory struct" >&5
$as_echo_n "checking for d_type member in directory struct... " >&6; }
if test "${gl_cv_struct_dirent_d_type+set}" = set; then :
@@ -16974,6 +17536,7 @@ $as_echo "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
fi
+ # Code from module dirent:
@@ -17079,6 +17642,7 @@ fi
done
+ # Code from module dirfd:
@@ -17223,10 +17787,18 @@ _ACEOF
+
GNULIB_DIRFD=1
+$as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
+
+
+
+ # Code from module dirname:
+
+
@@ -17250,9 +17822,12 @@ _ACEOF
-$as_echo "#define GNULIB_DIRNAME 1" >>confdefs.h
+cat >>confdefs.h <<_ACEOF
+#define GNULIB_DIRNAME 1
+_ACEOF
+ # Code from module dirname-lgpl:
@@ -17289,6 +17864,7 @@ $as_echo "#define GNULIB_DIRNAME 1" >>confdefs.h
+ # Code from module double-slash-root:
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
@@ -17328,6 +17904,7 @@ $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
fi
+ # Code from module dup2:
@@ -17428,15 +18005,32 @@ $as_echo "$gl_cv_func_dup2_works" >&6; }
+
GNULIB_DUP2=1
+$as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
+
+
+
+ # Code from module environ:
+
+
+
GNULIB_ENVIRON=1
+$as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
+
+
+
+ # Code from module errno:
+
+ # Code from module error:
+
@@ -17502,6 +18096,9 @@ fi
XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
+ # Code from module exitfail:
+ # Code from module extensions:
+ # Code from module fchdir:
@@ -17514,7 +18111,7 @@ fi
if test $ac_cv_func_fchdir = no; then
- REPLACE_FCHDIR=1
+ HAVE_FCHDIR=0
@@ -17665,16 +18262,32 @@ $as_echo "#define REPLACE_OPEN_DIRECTORY 1" >>confdefs.h
+
GNULIB_FCHDIR=1
+$as_echo "#define GNULIB_TEST_FCHDIR 1" >>confdefs.h
+
+
+
+ # Code from module fclose:
+
+
+
GNULIB_FCLOSE=1
+$as_echo "#define GNULIB_TEST_FCLOSE 1" >>confdefs.h
+
+
+
+ # Code from module fcntl:
+
+
@@ -17864,10 +18477,18 @@ $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
+
GNULIB_FCNTL=1
+$as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
+
+
+
+ # Code from module fcntl-h:
+
+
@@ -17971,8 +18592,28 @@ fi
done
+ # Code from module fdopendir:
+ ac_fn_c_check_decl "$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
+#include <dirent.h>
+
+"
+if test "x$ac_cv_have_decl_fdopendir" = x""yes; then :
+ ac_have_decl=1
+else
+ ac_have_decl=0
+fi
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_DECL_FDOPENDIR $ac_have_decl
+_ACEOF
+if test $ac_have_decl = 1; then :
+
+else
+ HAVE_DECL_FDOPENDIR=0
+fi
+
:
@@ -18019,6 +18660,9 @@ else
#include <dirent.h>
#include <fcntl.h>
+#if !HAVE_DECL_FDOPENDIR
+extern DIR *fdopendir (int);
+#endif
int
main ()
@@ -18062,10 +18706,26 @@ $as_echo "$gl_cv_func_fdopendir_works" >&6; }
+
GNULIB_FDOPENDIR=1
+$as_echo "#define GNULIB_TEST_FDOPENDIR 1" >>confdefs.h
+
+
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define GNULIB_FDOPENDIR 1
+_ACEOF
+
+
+ # Code from module file-set:
+ # Code from module float:
+
+
FLOAT_H=
case "$host_os" in
@@ -18134,6 +18794,7 @@ $as_echo "$gl_cv_next_float_h" >&6; }
esac
+ # Code from module fnmatch:
@@ -18299,11 +18960,13 @@ _ACEOF
fi
+ # Code from module fnmatch-gnu:
+ # Code from module getcwd:
@@ -18658,10 +19321,18 @@ fi
+
GNULIB_GETCWD=1
+$as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
+
+
+
+ # Code from module getdtablesize:
+
+
:
@@ -18685,10 +19356,18 @@ fi
+
GNULIB_GETDTABLESIZE=1
+$as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
+
+
+
+ # Code from module getlogin_r:
+
+
@@ -18733,21 +19412,30 @@ fi
+
GNULIB_GETLOGIN_R=1
+$as_echo "#define GNULIB_TEST_GETLOGIN_R 1" >>confdefs.h
+ # Code from module getopt-gnu:
-$as_echo "#define GNULIB_GETOPT_GNU 1" >>confdefs.h
+$as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
+
+
+ # Code from module getopt-posix:
+
+
+
if test -n "$gl_replace_getopt"; then :
@@ -18795,9 +19483,12 @@ $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
fi
+ # Code from module gettext:
+ # Code from module gettext-h:
+ # Code from module gettimeofday:
@@ -19051,8 +19742,16 @@ _ACEOF
+
GNULIB_GETTIMEOFDAY=1
+
+
+$as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
+
+
+
+ # Code from module glob:
GLOB_H=
for ac_header in glob.h
do :
@@ -19194,6 +19893,7 @@ $as_echo "$gl_cv_glob_lists_symlinks" >&6; }
fi
+ # Code from module hash:
@@ -19208,6 +19908,11 @@ $as_echo "$gl_cv_glob_lists_symlinks" >&6; }
+ # Code from module hash-pjw:
+ # Code from module hash-triple:
+ # Code from module havelib:
+ # Code from module include_next:
+ # Code from module inline:
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5
@@ -19248,6 +19953,8 @@ $as_echo "#define HAVE_INLINE 1" >>confdefs.h
fi
+ # Code from module intprops:
+ # Code from module langinfo:
@@ -19435,6 +20142,7 @@ fi
done
+ # Code from module lchown:
@@ -19488,15 +20196,23 @@ done
+
GNULIB_LCHOWN=1
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flag to ignore unused libraries" >&5
-$as_echo_n "checking for flag to ignore unused libraries... " >&6; }
-if test "${gl_cv_ignore_unused_libraries+set}" = set; then :
+
+$as_echo "#define GNULIB_TEST_LCHOWN 1" >>confdefs.h
+
+
+
+ # Code from module lib-ignore:
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler flag to ignore unused libraries" >&5
+$as_echo_n "checking for C compiler flag to ignore unused libraries... " >&6; }
+if test "${gl_cv_prog_c_ignore_unused_libraries+set}" = set; then :
$as_echo_n "(cached) " >&6
else
- gl_cv_ignore_unused_libraries=none
+ gl_cv_prog_c_ignore_unused_libraries=none
gl_saved_ldflags=$LDFLAGS
gl_saved_libs=$LIBS
# Link with -lm to detect binutils 2.16 bug with --as-needed; see
@@ -19506,14 +20222,14 @@ else
# to forestall problems with linkers that have -z, -i, -g, -n, etc. flags.
# GCC + binutils likes '-Wl,--as-needed'.
# GCC + Solaris ld likes '-Wl,-z,ignore'.
- # Sun C likes '-z ignore'.
+ # Sun C likes '-Wl,-z,ignore'. '-z ignore' is accepted but has no effect.
# Don't try bare '--as-needed'; nothing likes it and the HP-UX 11.11
# native cc issues annoying warnings and then ignores it,
# which would cause us to incorrectly conclude that it worked.
- for gl_flags in \
- '-Wl,--as-needed' \
- '-Wl,-z,ignore' \
- '-z ignore'
+ for gl_flags in '-Wl,--as-needed' \
+ '-Wl,-z,ignore' \
+ '-z ignore'
+
do
LDFLAGS="$gl_flags $LDFLAGS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -19528,21 +20244,26 @@ main ()
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
- gl_cv_ignore_unused_libraries=$gl_flags
+ gl_cv_prog_c_ignore_unused_libraries=$gl_flags
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LDFLAGS=$gl_saved_ldflags
- test "$gl_cv_ignore_unused_libraries" != none && break
+ test "$gl_cv_prog_c_ignore_unused_libraries" != none &&
+ break
done
LIBS=$gl_saved_libs
+
fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ignore_unused_libraries" >&5
-$as_echo "$gl_cv_ignore_unused_libraries" >&6; }
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_c_ignore_unused_libraries" >&5
+$as_echo "$gl_cv_prog_c_ignore_unused_libraries" >&6; }
+ IGNORE_UNUSED_LIBRARIES_CFLAGS=
+ if test "$gl_cv_prog_c_ignore_unused_libraries" != none; then
+ IGNORE_UNUSED_LIBRARIES_CFLAGS="$gl_cv_prog_c_ignore_unused_libraries"
+ fi
- test "$gl_cv_ignore_unused_libraries" != none &&
- LDFLAGS="$LDFLAGS $gl_cv_ignore_unused_libraries"
+ # Code from module localcharset:
@@ -19559,6 +20280,7 @@ $as_echo "$gl_cv_ignore_unused_libraries" >&6; }
LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
+ # Code from module lock:
if test "$gl_threads_api" = posix; then
@@ -19600,6 +20322,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ # Code from module lstat:
@@ -19622,8 +20345,16 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
GNULIB_LSTAT=1
+
+
+$as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
+
+
+
+ # Code from module malloc:
for ac_header in stdlib.h
do :
ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
@@ -19698,6 +20429,7 @@ fi
$as_echo "#define GNULIB_MALLOC_GNU 1" >>confdefs.h
+ # Code from module malloc-posix:
if test $gl_cv_func_malloc_posix = yes; then
@@ -19722,13 +20454,22 @@ $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
+
GNULIB_MALLOC_POSIX=1
+$as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
+
+
+
+ # Code from module malloca:
+
+ # Code from module mbrtowc:
+
@@ -19885,9 +20626,7 @@ $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
fi
- if test $REPLACE_MBSTATE_T = 1; then
- REPLACE_MBRTOWC=1
- fi
+
:
@@ -19897,8 +20636,10 @@ $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
if test $ac_cv_func_mbrtowc = no; then
HAVE_MBRTOWC=0
- fi
- if test $HAVE_MBRTOWC != 0 && test $REPLACE_MBRTOWC != 1; then
+ else
+ if test $REPLACE_MBSTATE_T = 1; then
+ REPLACE_MBRTOWC=1
+ else
@@ -20088,30 +20829,31 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
- case "$gl_cv_func_mbrtowc_null_arg" in
- *yes) ;;
- *)
+ case "$gl_cv_func_mbrtowc_null_arg" in
+ *yes) ;;
+ *)
$as_echo "#define MBRTOWC_NULL_ARG_BUG 1" >>confdefs.h
- REPLACE_MBRTOWC=1
- ;;
- esac
- case "$gl_cv_func_mbrtowc_retval" in
- *yes) ;;
- *)
+ REPLACE_MBRTOWC=1
+ ;;
+ esac
+ case "$gl_cv_func_mbrtowc_retval" in
+ *yes) ;;
+ *)
$as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
- REPLACE_MBRTOWC=1
- ;;
- esac
- case "$gl_cv_func_mbrtowc_nul_retval" in
- *yes) ;;
- *)
+ REPLACE_MBRTOWC=1
+ ;;
+ esac
+ case "$gl_cv_func_mbrtowc_nul_retval" in
+ *yes) ;;
+ *)
$as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
- REPLACE_MBRTOWC=1
- ;;
- esac
+ REPLACE_MBRTOWC=1
+ ;;
+ esac
+ fi
fi
if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
@@ -20134,10 +20876,18 @@ $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
+
GNULIB_MBRTOWC=1
+$as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
+
+
+
+ # Code from module mbsinit:
+
+
@@ -20293,9 +21043,7 @@ $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
fi
- if test $REPLACE_MBSTATE_T = 1; then
- REPLACE_MBSINIT=1
- fi
+
:
@@ -20305,6 +21053,10 @@ $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
if test $ac_cv_func_mbsinit = no; then
HAVE_MBSINIT=0
+ else
+ if test $REPLACE_MBSTATE_T = 1; then
+ REPLACE_MBSINIT=1
+ fi
fi
if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
@@ -20327,10 +21079,18 @@ $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
+
GNULIB_MBSINIT=1
+$as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
+
+
+
+ # Code from module mbsrtowcs:
+
+
@@ -20486,9 +21246,7 @@ $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
fi
- if test $REPLACE_MBSTATE_T = 1; then
- REPLACE_MBSRTOWCS=1
- fi
+
:
@@ -20498,8 +21256,10 @@ $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
if test $ac_cv_func_mbsrtowcs = no; then
HAVE_MBSRTOWCS=0
- fi
- if test $HAVE_MBSRTOWCS != 0 && test $REPLACE_MBSRTOWCS != 1; then
+ else
+ if test $REPLACE_MBSTATE_T = 1; then
+ REPLACE_MBSRTOWCS=1
+ else
@@ -20591,10 +21351,11 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
$as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
- case "$gl_cv_func_mbsrtowcs_works" in
- *yes) ;;
- *) REPLACE_MBSRTOWCS=1 ;;
- esac
+ case "$gl_cv_func_mbsrtowcs_works" in
+ *yes) ;;
+ *) REPLACE_MBSRTOWCS=1 ;;
+ esac
+ fi
fi
if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
@@ -20627,14 +21388,30 @@ $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
+
GNULIB_MBSRTOWCS=1
+$as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
+
+
+
+ # Code from module memchr:
+
+
+
GNULIB_MEMCHR=1
+
+$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
+
+
+
+ # Code from module memcmp:
+
if test $cross_compiling != no; then
# AC_FUNC_MEMCMP as of 2.62 defaults to 'no' when cross compiling.
# We default to yes if memcmp appears to exist, which works
@@ -20741,6 +21518,7 @@ $as_echo "#define memcmp rpl_memcmp" >>confdefs.h
:
fi
+ # Code from module mempcpy:
@@ -20780,10 +21558,18 @@ done
+
GNULIB_MEMPCPY=1
+$as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
+
+
+
+ # Code from module memrchr:
+
+
@@ -20827,13 +21613,22 @@ done
+
GNULIB_MEMRCHR=1
+$as_echo "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h
+ # Code from module minmax:
+
+
+
+ # Code from module mkdir:
+
+
:
@@ -20947,6 +21742,7 @@ $as_echo "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h
fi
+ # Code from module mkdtemp:
@@ -20981,20 +21777,36 @@ done
+
GNULIB_MKDTEMP=1
+$as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkstemp" >&5
+
+ # Code from module mkstemp:
+
+
+
+
+
+ :
+
+
+
+
+
+ if test $ac_cv_func_mkstemp = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkstemp" >&5
$as_echo_n "checking for working mkstemp... " >&6; }
if test "${gl_cv_func_working_mkstemp+set}" = set; then :
$as_echo_n "(cached) " >&6
else
- mkdir conftest.mkstemp
- if test "$cross_compiling" = yes; then :
+ mkdir conftest.mkstemp
+ if test "$cross_compiling" = yes; then :
gl_cv_func_working_mkstemp=no
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -21004,19 +21816,19 @@ int
main ()
{
int i;
- off_t large = (off_t) 4294967295u;
- if (large < 0)
- large = 2147483647;
- for (i = 0; i < 70; i++)
- {
- char templ[] = "conftest.mkstemp/coXXXXXX";
- int (*mkstemp_function) (char *) = mkstemp;
- int fd = mkstemp_function (templ);
- if (fd < 0 || lseek (fd, large, SEEK_SET) != large)
- return 1;
- close (fd);
- }
- return 0;
+ off_t large = (off_t) 4294967295u;
+ if (large < 0)
+ large = 2147483647;
+ for (i = 0; i < 70; i++)
+ {
+ char templ[] = "conftest.mkstemp/coXXXXXX";
+ int (*mkstemp_function) (char *) = mkstemp;
+ int fd = mkstemp_function (templ);
+ if (fd < 0 || lseek (fd, large, SEEK_SET) != large)
+ return 1;
+ close (fd);
+ }
+ return 0;
;
return 0;
}
@@ -21030,14 +21842,28 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
- rm -rf conftest.mkstemp
+ rm -rf conftest.mkstemp
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mkstemp" >&5
$as_echo "$gl_cv_func_working_mkstemp" >&6; }
+ if test $gl_cv_func_working_mkstemp != yes; then
+ REPLACE_MKSTEMP=1
+
+
+
+
+
+
+
+
+ gl_LIBOBJS="$gl_LIBOBJS mkstemp.$ac_objext"
- if test $gl_cv_func_working_mkstemp != yes; then
- REPLACE_MKSTEMP=1
+
+
+ fi
+ else
+ HAVE_MKSTEMP=0
@@ -21054,10 +21880,19 @@ $as_echo "$gl_cv_func_working_mkstemp" >&6; }
+
GNULIB_MKSTEMP=1
+$as_echo "#define GNULIB_TEST_MKSTEMP 1" >>confdefs.h
+
+
+
+ # Code from module multiarch:
+
+ # Code from module nl_langinfo:
+
@@ -21102,10 +21937,18 @@ $as_echo "#define REPLACE_NL_LANGINFO 1" >>confdefs.h
+
GNULIB_NL_LANGINFO=1
+$as_echo "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h
+
+
+
+ # Code from module open:
+
+
case "$host_os" in
mingw* | pw*)
@@ -21216,13 +22059,16 @@ $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
-$as_echo "#define GNULIB_OPEN 1" >>confdefs.h
+
+ GNULIB_OPEN=1
+$as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
+
- GNULIB_OPEN=1
+ # Code from module openat:
GNULIB_OPENAT=1
@@ -21434,15 +22280,15 @@ $as_echo "$gl_cv_func_fchownat_nofollow_works" >&6; }
$as_echo "#define FCHOWNAT_NOFOLLOW_BUG 1" >>confdefs.h
+ if test $REPLACE_CHOWN = 1; then
+ REPLACE_FCHOWNAT=1
+ fi
fi
else
HAVE_FCHOWNAT=0
fi
- if test $REPLACE_CHOWN = 1; then
- REPLACE_FCHOWNAT=1
- fi
if test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1; then
@@ -21457,6 +22303,8 @@ fi
fi
+ # Code from module openat-die:
+ # Code from module pathmax:
:
@@ -21473,6 +22321,7 @@ fi
+ # Code from module rawmemchr:
@@ -21508,10 +22357,18 @@ done
+
GNULIB_RAWMEMCHR=1
+$as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
+
+
+
+ # Code from module readlink:
+
+
:
@@ -21631,10 +22488,18 @@ $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
+
GNULIB_READLINK=1
+$as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
+
+
+
+ # Code from module realloc-posix:
+
+
if test $gl_cv_func_malloc_posix = yes; then
HAVE_REALLOC_POSIX=1
@@ -21657,10 +22522,18 @@ $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
+
GNULIB_REALLOC_POSIX=1
+$as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
+
+
+
+ # Code from module regex:
+
+
:
@@ -21758,8 +22631,9 @@ static struct re_pattern_buffer regex;
if (!s)
return 1;
- /* Ensure that [b-a] is diagnosed as invalid. */
- re_set_syntax (RE_SYNTAX_POSIX_EGREP);
+ /* Ensure that [b-a] is diagnosed as invalid, when
+ using RE_NO_EMPTY_RANGES. */
+ re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
memset (&regex, 0, sizeof regex);
s = re_compile_pattern ("a[b-a]", 6, &regex);
if (s == 0)
@@ -21956,6 +22830,7 @@ _ACEOF
fi
+ # Code from module rename:
@@ -22219,65 +23094,34 @@ $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
- GNULIB_RENAME=1
-
-
-
-
-
-
+ GNULIB_RENAME=1
+$as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
- for ac_func in rmdir
-do :
- ac_fn_c_check_func "$LINENO" "rmdir" "ac_cv_func_rmdir"
-if test "x$ac_cv_func_rmdir" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
-#define HAVE_RMDIR 1
-_ACEOF
-else
+ # Code from module rmdir:
- gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
-
-fi
-done
- if test $ac_cv_func_rmdir = no; then
- REPLACE_RMDIR=1
- # If someone lacks rmdir, make configure fail, and request
- # a bug report to inform us about it.
- if test x"$SKIP_RMDIR_CHECK" != xyes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error "Your system lacks the rmdir function.
- Please report this, along with the output of \"uname -a\", to the
- bug-coreutils@gnu.org mailing list. To continue past this point,
- rerun configure with SKIP_RMDIR_CHECK=yes.
- E.g., ./configure SKIP_RMDIR_CHECK=yes
-See \`config.log' for more details." "$LINENO" 5; }
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
$as_echo_n "checking whether rmdir works... " >&6; }
if test "${gl_cv_func_rmdir_works+set}" = set; then :
$as_echo_n "(cached) " >&6
else
mkdir conftest.dir
- touch conftest.file
- if test "$cross_compiling" = yes; then :
+ touch conftest.file
+ if test "$cross_compiling" = yes; then :
gl_cv_func_rmdir_works="guessing no"
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <stdio.h>
- #include <errno.h>
- #include <unistd.h>
+ #include <errno.h>
+ #include <unistd.h>
int
main ()
@@ -22297,12 +23141,12 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
- rm -rf conftest.dir conftest.file
+ rm -rf conftest.dir conftest.file
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
$as_echo "$gl_cv_func_rmdir_works" >&6; }
- if test x"$gl_cv_func_rmdir_works" != xyes; then
- REPLACE_RMDIR=1
+ if test x"$gl_cv_func_rmdir_works" != xyes; then
+ REPLACE_RMDIR=1
@@ -22313,15 +23157,22 @@ $as_echo "$gl_cv_func_rmdir_works" >&6; }
gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
- fi
fi
+
GNULIB_RMDIR=1
+$as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
+
+
+
+ # Code from module same:
+
+
@@ -22341,6 +23192,8 @@ $as_echo "$gl_cv_func_rmdir_works" >&6; }
+ # Code from module same-inode:
+ # Code from module save-cwd:
@@ -22360,6 +23213,7 @@ $as_echo "$gl_cv_func_rmdir_works" >&6; }
+ # Code from module setenv:
if test $HAVE_SETENV$REPLACE_SETENV != 10; then
@@ -22377,10 +23231,18 @@ $as_echo "$gl_cv_func_rmdir_works" >&6; }
+
GNULIB_SETENV=1
+$as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
+
+
+
+ # Code from module sigaction:
+
+
:
@@ -22451,10 +23313,18 @@ fi
+
GNULIB_SIGACTION=1
+$as_echo "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
+
+
+
+ # Code from module signal:
+
+
@@ -22570,6 +23440,7 @@ fi
done
+ # Code from module sigprocmask:
signals_not_posix=
@@ -22631,9 +23502,17 @@ fi
+
GNULIB_SIGPROCMASK=1
+
+$as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
+
+
+
+ # Code from module size_max:
+
for ac_header in stdint.h
do :
ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
@@ -22728,6 +23607,7 @@ _ACEOF
fi
+ # Code from module sleep:
ac_fn_c_check_decl "$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h>
@@ -22828,10 +23708,18 @@ $as_echo "$gl_cv_func_sleep_works" >&6; }
+
GNULIB_SLEEP=1
+$as_echo "#define GNULIB_TEST_SLEEP 1" >>confdefs.h
+
+
+
+ # Code from module snprintf:
+
+
gl_cv_func_snprintf_usable=no
for ac_func in snprintf
do :
@@ -22919,9 +23807,17 @@ $as_echo "$gl_cv_func_snprintf_size1" >&6; }
+
GNULIB_SNPRINTF=1
+
+$as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
+
+
+
+ # Code from module ssize_t:
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
$as_echo_n "checking for ssize_t... " >&6; }
if test "${gt_cv_ssize_t+set}" = set; then :
@@ -22954,6 +23850,7 @@ $as_echo "#define ssize_t int" >>confdefs.h
fi
+ # Code from module stat:
@@ -23070,9 +23967,17 @@ $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
+
GNULIB_STAT=1
+
+$as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
+
+
+
+ # Code from module stdarg:
+
STDARG_H='';
NEXT_STDARG_H='<stdarg.h>';
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
@@ -23233,6 +24138,7 @@ $as_echo "#define va_copy gl_va_copy" >>confdefs.h
fi
fi
+ # Code from module stdbool:
@@ -23252,6 +24158,7 @@ $as_echo "#define va_copy gl_va_copy" >>confdefs.h
fi
+ # Code from module stddef:
@@ -23352,6 +24259,7 @@ $as_echo "$gl_cv_next_stddef_h" >&6; }
fi
+ # Code from module stdint:
@@ -24053,6 +24961,7 @@ _ACEOF
fi
+ # Code from module stdio:
@@ -24128,7 +25037,7 @@ $as_echo "$gl_cv_next_stdio_h" >&6; }
- for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat snprintf vdprintf vsnprintf; do
+ for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat snprintf tmpfile vdprintf vsnprintf; do
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
@@ -24169,6 +25078,7 @@ fi
done
+ # Code from module stdlib:
@@ -24268,7 +25178,7 @@ fi
- for gl_func in atoll canonicalize_file_name getloadavg getsubopt mkdtemp mkostemp mkostemps mkstemp mkstemps random_r initstat_r srandom_r setstate_r realpath rpmatch setenv strtod strtoll strtoull unsetenv; do
+ for gl_func in 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
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
@@ -24315,6 +25225,7 @@ fi
done
+ # Code from module strcase:
@@ -24396,6 +25307,7 @@ _ACEOF
fi
+ # Code from module strchrnul:
@@ -24431,10 +25343,18 @@ done
+
GNULIB_STRCHRNUL=1
+$as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
+
+
+
+ # Code from module strcspn:
+
+
@@ -24462,46 +25382,44 @@ done
:
fi
+ # Code from module strdup-posix:
+
- if test $gl_cv_func_malloc_posix != yes; then
- REPLACE_STRDUP=1
+ :
+ if test $ac_cv_func_strdup = yes; then
+ if test $gl_cv_func_malloc_posix != yes; then
+ REPLACE_STRDUP=1
- gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext"
- else
+ gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext"
+
+ :
+ fi
+ else
- for ac_func in strdup
-do :
- ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
-if test "x$ac_cv_func_strdup" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
-#define HAVE_STRDUP 1
-_ACEOF
-else
- gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
-fi
-done
+ gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext"
+ :
fi
:
@@ -24513,7 +25431,7 @@ done
if test $ac_cv_have_decl_strdup = no; then
HAVE_DECL_STRDUP=0
fi
- :
+
@@ -24521,6 +25439,14 @@ done
+$as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
+
+
+
+ # Code from module streq:
+ # Code from module strerror:
+
+
if test $REPLACE_STRERROR = 1; then
@@ -24541,16 +25467,26 @@ _ACEOF
+
GNULIB_STRERROR=1
+$as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
+ # Code from module string:
+ # Code from module strings:
+
+
+
+ # Code from module strndup:
+
+
@@ -24647,10 +25583,18 @@ $as_echo "$gl_cv_func_strndup_works" >&6; }
+
GNULIB_STRNDUP=1
+$as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
+
+
+
+ # Code from module strnlen:
+
+
@@ -24734,10 +25678,19 @@ $as_echo "#define strnlen rpl_strnlen" >>confdefs.h
+
GNULIB_STRNLEN=1
+$as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
+
+
+
+ # Code from module strnlen1:
+ # Code from module strsep:
+
+
@@ -24773,10 +25726,18 @@ done
+
GNULIB_STRSEP=1
+$as_echo "#define GNULIB_TEST_STRSEP 1" >>confdefs.h
+
+
+
+ # Code from module strsignal:
+
+
@@ -24876,10 +25837,18 @@ _ACEOF
+
GNULIB_STRSIGNAL=1
+$as_echo "#define GNULIB_TEST_STRSIGNAL 1" >>confdefs.h
+
+
+
+ # Code from module sys_select:
+
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
$as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
@@ -25026,7 +25995,6 @@ $as_echo "$gl_cv_next_sys_select_h" >&6; }
HAVE_SYS_SELECT_H=0
fi
- if test $gl_cv_header_sys_select_h_selfcontained != yes; then
@@ -25060,7 +26028,6 @@ done
fi
- fi
for gl_func in select; do
@@ -25111,6 +26078,7 @@ fi
+ # Code from module sys_socket:
@@ -25143,7 +26111,6 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
$as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
- SYS_SOCKET_H=''
for ac_func in shutdown
do :
ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
@@ -25187,8 +26154,6 @@ $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
SYS_SOCKET_H='sys/socket.h'
fi
fi
- else
- SYS_SOCKET_H='sys/socket.h'
fi
# We need to check for ws2tcpip.h now.
@@ -25322,13 +26287,10 @@ fi
if test $ac_cv_type_struct_sockaddr_storage = no; then
HAVE_STRUCT_SOCKADDR_STORAGE=0
- SYS_SOCKET_H='sys/socket.h'
fi
if test $ac_cv_type_sa_family_t = no; then
HAVE_SA_FAMILY_T=0
- SYS_SOCKET_H='sys/socket.h'
fi
- if test -n "$SYS_SOCKET_H"; then
@@ -25362,8 +26324,6 @@ done
fi
- fi
-
for gl_func in socket connect accept bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4; do
@@ -25414,6 +26374,7 @@ fi
+ # Code from module sys_stat:
@@ -25536,10 +26497,12 @@ fi
+ # Code from module sys_time:
+ # Code from module sysexits:
:
@@ -25653,6 +26616,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ # Code from module tempname:
@@ -25670,16 +26634,20 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
:
+ # Code from module threadlib:
+ # Code from module time:
+ # Code from module tls:
+ # Code from module unistd:
@@ -25759,7 +26727,7 @@ $as_echo "$gl_cv_next_unistd_h" >&6; }
- for gl_func in chown dup2 dup3 environ euidaccess faccessat fchdir fchownat fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell lchown link linkat lseek pipe2 pread readlink readlinkat rmdir sleep symlink symlinkat unlink unlinkat usleep; do
+ for gl_func in chown dup2 dup3 environ euidaccess faccessat fchdir fchownat fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell lchown link linkat lseek pipe2 pread readlink readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do
as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
@@ -25809,6 +26777,7 @@ fi
done
+ # Code from module unistd-safer:
:
@@ -25848,12 +26817,14 @@ fi
gl_LIBOBJS="$gl_LIBOBJS pipe-safer.$ac_objext"
+ # Code from module unlink:
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unlink honors trailing slashes" >&5
$as_echo_n "checking whether unlink honors trailing slashes... " >&6; }
-if test "${gl_cv_func_unlink_works+set}" = set; then :
+if test "${gl_cv_func_unlink_honors_slashes+set}" = set; then :
$as_echo_n "(cached) " >&6
else
touch conftest.file
@@ -25862,7 +26833,7 @@ else
ln -s conftest.file conftest.lnk
fi
if test "$cross_compiling" = yes; then :
- gl_cv_func_unlink_works="guessing no"
+ gl_cv_func_unlink_honors_slashes="guessing no"
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -25882,9 +26853,9 @@ if (!unlink ("conftest.file/") || errno != ENOTDIR) return 1;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
- gl_cv_func_unlink_works=yes
+ gl_cv_func_unlink_honors_slashes=yes
else
- gl_cv_func_unlink_works=no
+ gl_cv_func_unlink_honors_slashes=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
@@ -25892,9 +26863,85 @@ fi
rm -f conftest.file conftest.lnk
fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unlink_works" >&5
-$as_echo "$gl_cv_func_unlink_works" >&6; }
- if test x"$gl_cv_func_unlink_works" != xyes; then
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unlink_honors_slashes" >&5
+$as_echo "$gl_cv_func_unlink_honors_slashes" >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unlink of a parent directory fails is it should" >&5
+$as_echo_n "checking whether unlink of a parent directory fails is it should... " >&6; }
+if test "${gl_cv_func_unlink_parent_fails+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ case "$host_os" in
+ darwin*)
+ if {
+ # Use the mktemp program if available. If not available, hide the error
+ # message.
+ tmp=`(umask 077 && mktemp -d /tmp/gtXXXXXX) 2>/dev/null` &&
+ test -n "$tmp" && test -d "$tmp"
+ } ||
+ {
+ # Use a simple mkdir command. It is guaranteed to fail if the directory
+ # already exists. $RANDOM is bash specific and expands to empty in shells
+ # other than bash, ksh and zsh. Its use does not increase security;
+ # rather, it minimizes the probability of failure in a very cluttered /tmp
+ # directory.
+ tmp=/tmp/gt$$-$RANDOM
+ (umask 077 && mkdir "$tmp")
+ }; then
+ mkdir "$tmp/subdir"
+ GL_SUBDIR_FOR_UNLINK="$tmp/subdir"
+ export GL_SUBDIR_FOR_UNLINK
+ if test "$cross_compiling" = yes; then :
+ gl_cv_func_unlink_parent_fails="guessing no"
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ #include <stdlib.h>
+ #include <unistd.h>
+ int main ()
+ {
+ if (chdir (getenv ("GL_SUBDIR_FOR_UNLINK")) != 0)
+ return 1;
+ return unlink ("..") == 0;
+ }
+
+_ACEOF
+if ac_fn_c_try_run "$LINENO"; then :
+ gl_cv_func_unlink_parent_fails=yes
+else
+ gl_cv_func_unlink_parent_fails=no
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+ conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+
+ unset GL_SUBDIR_FOR_UNLINK
+ rm -rf "$tmp"
+ else
+ gl_cv_func_unlink_parent_fails="guessing no"
+ fi
+ ;;
+ *)
+ gl_cv_func_unlink_parent_fails="guessing yes"
+ ;;
+ esac
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unlink_parent_fails" >&5
+$as_echo "$gl_cv_func_unlink_parent_fails" >&6; }
+ case "$gl_cv_func_unlink_parent_fails" in
+ *no)
+
+$as_echo "#define UNLINK_PARENT_BUG 1" >>confdefs.h
+
+ ;;
+ esac
+ if test "$gl_cv_func_unlink_honors_slashes" != yes \
+ || { case "$gl_cv_func_unlink_parent_fails" in
+ *yes) false;;
+ *no) true;;
+ esac
+ }; then
REPLACE_UNLINK=1
@@ -25910,10 +26957,18 @@ $as_echo "$gl_cv_func_unlink_works" >&6; }
+
GNULIB_UNLINK=1
+$as_echo "#define GNULIB_TEST_UNLINK 1" >>confdefs.h
+
+
+
+ # Code from module unsetenv:
+
+
for ac_func in unsetenv
do :
ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
@@ -26057,10 +27112,18 @@ $as_echo "$gl_cv_func_unsetenv_works" >&6; }
+
GNULIB_UNSETENV=1
+$as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
+
+
+
+ # Code from module vasnprintf:
+
+
:
@@ -26149,6 +27212,7 @@ fi
fi
+ # Code from module vasprintf:
for ac_func in vasprintf
do :
@@ -26201,16 +27265,25 @@ done
+
GNULIB_VASPRINTF=1
+$as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
+
+
+
+
+
XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
+ # Code from module verify:
+ # Code from module vsnprintf:
gl_cv_func_vsnprintf_usable=no
@@ -26300,10 +27373,19 @@ $as_echo "$gl_cv_func_snprintf_size1" >&6; }
+
GNULIB_VSNPRINTF=1
+$as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
+
+
+
+ # Code from module warn-on-use:
+ # Code from module wchar:
+
+
:
@@ -26435,6 +27517,7 @@ fi
done
+ # Code from module wcrtomb:
@@ -26592,9 +27675,7 @@ $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
fi
- if test $REPLACE_MBSTATE_T = 1; then
- REPLACE_WCRTOMB=1
- fi
+
:
@@ -26604,27 +27685,29 @@ $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
if test $ac_cv_func_wcrtomb = no; then
HAVE_WCRTOMB=0
- fi
- if test $HAVE_WCRTOMB != 0 && test $REPLACE_WCRTOMB != 1; then
+ else
+ if test $REPLACE_MBSTATE_T = 1; then
+ REPLACE_WCRTOMB=1
+ else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
$as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
if test "${gl_cv_func_wcrtomb_retval+set}" = set; then :
$as_echo_n "(cached) " >&6
else
- case "$host_os" in
- # Guess no on AIX 4, OSF/1 and Solaris.
- aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
- # Guess yes otherwise.
- *) gl_cv_func_wcrtomb_retval="guessing yes" ;;
- esac
- if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
- if test "$cross_compiling" = yes; then :
+ case "$host_os" in
+ # Guess no on AIX 4, OSF/1 and Solaris.
+ aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
+ # Guess yes otherwise.
+ *) gl_cv_func_wcrtomb_retval="guessing yes" ;;
+ esac
+ if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
+ if test "$cross_compiling" = yes; then :
:
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -26668,15 +27751,16 @@ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
- fi
+ fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5
$as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
- case "$gl_cv_func_wcrtomb_retval" in
- *yes) ;;
- *) REPLACE_WCRTOMB=1 ;;
- esac
+ case "$gl_cv_func_wcrtomb_retval" in
+ *yes) ;;
+ *) REPLACE_WCRTOMB=1 ;;
+ esac
+ fi
fi
if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
@@ -26699,10 +27783,18 @@ $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
+
GNULIB_WCRTOMB=1
+$as_echo "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h
+
+
+
+ # Code from module wctype:
+
+
:
@@ -26724,6 +27816,19 @@ $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
+ if test $ac_cv_func_iswblank = yes; then
+ HAVE_ISWBLANK=1
+ else
+ HAVE_ISWBLANK=0
+ fi
+
+
+ :
+
+
+
+
+
@@ -26734,7 +27839,6 @@ $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
fi
- WCTYPE_H=wctype.h
if test $ac_cv_header_wctype_h = yes; then
if test $ac_cv_func_iswcntrl = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
@@ -26789,15 +27893,6 @@ fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
$as_echo "$gl_cv_func_iswcntrl_works" >&6; }
- if test $gl_cv_func_iswcntrl_works = yes; then
- case "$host_os" in
- mingw*)
- ;;
- *)
- WCTYPE_H=
- ;;
- esac
- fi
fi
@@ -26864,7 +27959,6 @@ $as_echo "$gl_cv_next_wctype_h" >&6; }
fi
-
if test "$gl_cv_func_iswcntrl_works" = no; then
REPLACE_ISWCNTRL=1
else
@@ -26872,6 +27966,7 @@ $as_echo "$gl_cv_next_wctype_h" >&6; }
fi
+ # Code from module xalloc:
@@ -26892,6 +27987,8 @@ $as_echo "$gl_cv_next_wctype_h" >&6; }
:
+ # Code from module xalloc-die:
+ # Code from module xgetcwd:
@@ -26906,6 +28003,7 @@ $as_echo "$gl_cv_next_wctype_h" >&6; }
+ # Code from module xsize:
@@ -26922,11 +28020,13 @@ fi
done
+ # Code from module xstrndup:
:
+ # Code from module xvasprintf:
@@ -26934,6 +28034,7 @@ done
XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
+ # End of code from modules
@@ -26955,6 +28056,11 @@ done
gl_source_base='tests'
+ 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
+
+ gl_module_indicator_condition=$gltests_WITNESS
+
+