summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-11-01 18:49:31 +0100
committerGuido Günther <agx@sigxcpu.org>2011-11-01 18:49:31 +0100
commit6dba3c4e6479cc4cd2a6ba87e4375c94758d3818 (patch)
tree74d519cdf8c0669c8b783edfe43968bf7809b421 /configure
parent828e4e35ea0634994eb27dc511799193068c9714 (diff)
New upstream version 0.9.7~rc1
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3144
1 files changed, 2463 insertions, 681 deletions
diff --git a/configure b/configure
index f36da3182..2702c4a3b 100755
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.66 for libvirt 0.9.6.
+# Generated by GNU Autoconf 2.66 for libvirt 0.9.7.
#
# Report bugs to <libvir-list@redhat.com>.
#
@@ -562,8 +562,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='libvirt'
PACKAGE_TARNAME='libvirt'
-PACKAGE_VERSION='0.9.6'
-PACKAGE_STRING='libvirt 0.9.6'
+PACKAGE_VERSION='0.9.7'
+PACKAGE_STRING='libvirt 0.9.7'
PACKAGE_BUGREPORT='libvir-list@redhat.com'
PACKAGE_URL='http://libvirt.org'
@@ -1011,11 +1011,14 @@ GNULIB_UNAME
HAVE_SYS_UIO_H
NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
NEXT_SYS_UIO_H
+NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
+NEXT_SYS_TYPES_H
NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
NEXT_SYS_STAT_H
NEXT_AS_FIRST_DIRECTIVE_SYS_IOCTL_H
NEXT_SYS_IOCTL_H
HAVE_SYS_IOCTL_H
+HAVE_STRINGS_H
NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
NEXT_STRINGS_H
NEXT_AS_FIRST_DIRECTIVE_STRING_H
@@ -1068,7 +1071,7 @@ NEXT_AS_FIRST_DIRECTIVE_STDARG_H
NEXT_STDARG_H
NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
NEXT_SIGNAL_H
-LIBSOCKET
+LIB_SELECT
HAVE_SYS_SELECT_H
NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
NEXT_SYS_SELECT_H
@@ -1084,6 +1087,8 @@ HAVE_STRUCT_SCHED_PARAM
HAVE_SCHED_H
NEXT_AS_FIRST_DIRECTIVE_SCHED_H
NEXT_SCHED_H
+LIB_PTHREAD_SIGMASK
+REPLACE_RAISE
REPLACE_PTHREAD_SIGMASK
HAVE_SIGHANDLER_T
HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
@@ -1091,13 +1096,14 @@ HAVE_STRUCT_SIGACTION_SA_SIGACTION
HAVE_SIGACTION
HAVE_SIGINFO_T
HAVE_SIGSET_T
+HAVE_RAISE
HAVE_PTHREAD_SIGMASK
HAVE_POSIX_SIGNALBLOCKING
GNULIB_SIGACTION
GNULIB_SIGPROCMASK
GNULIB_SIGNAL_H_SIGPIPE
+GNULIB_RAISE
GNULIB_PTHREAD_SIGMASK
-LIB_PTHREAD_SIGMASK
LIB_PTHREAD
GL_GENERATE_PTHREAD_H_FALSE
GL_GENERATE_PTHREAD_H_TRUE
@@ -1109,6 +1115,8 @@ HAVE_PTHREAD_T
HAVE_PTHREAD_H
PREFERABLY_POSIX_SHELL
POSIX_SHELL
+LIB_POLL
+LIBSOCKET
NEXT_AS_FIRST_DIRECTIVE_POLL_H
NEXT_POLL_H
HAVE_POLL_H
@@ -1304,38 +1312,6 @@ GNULIB_MBRTOWC
GNULIB_MBSINIT
GNULIB_WCTOB
GNULIB_BTOWC
-REPLACE_UTIMENSAT
-REPLACE_STAT
-REPLACE_MKNOD
-REPLACE_MKFIFO
-REPLACE_MKDIR
-REPLACE_LSTAT
-REPLACE_FUTIMENS
-REPLACE_FSTATAT
-REPLACE_FSTAT
-HAVE_UTIMENSAT
-HAVE_MKNODAT
-HAVE_MKNOD
-HAVE_MKFIFOAT
-HAVE_MKFIFO
-HAVE_MKDIRAT
-HAVE_LSTAT
-HAVE_LCHMOD
-HAVE_FUTIMENS
-HAVE_FSTATAT
-HAVE_FCHMODAT
-GNULIB_UTIMENSAT
-GNULIB_STAT
-GNULIB_MKNODAT
-GNULIB_MKNOD
-GNULIB_MKFIFOAT
-GNULIB_MKFIFO
-GNULIB_MKDIRAT
-GNULIB_LSTAT
-GNULIB_LCHMOD
-GNULIB_FUTIMENS
-GNULIB_FSTATAT
-GNULIB_FCHMODAT
LTLIBMULTITHREAD
LIBMULTITHREAD
LTLIBTHREAD
@@ -1370,9 +1346,43 @@ HAVE_DECL_GAI_STRERROR
HAVE_DECL_FREEADDRINFO
HAVE_STRUCT_ADDRINFO
GNULIB_GETADDRINFO
+REPLACE_UTIMENSAT
+REPLACE_STAT
+REPLACE_MKNOD
+REPLACE_MKFIFO
+REPLACE_MKDIR
+REPLACE_LSTAT
+REPLACE_FUTIMENS
+REPLACE_FSTATAT
+REPLACE_FSTAT
+HAVE_UTIMENSAT
+HAVE_MKNODAT
+HAVE_MKNOD
+HAVE_MKFIFOAT
+HAVE_MKFIFO
+HAVE_MKDIRAT
+HAVE_LSTAT
+HAVE_LCHMOD
+HAVE_FUTIMENS
+HAVE_FSTATAT
+HAVE_FCHMODAT
+GNULIB_UTIMENSAT
+GNULIB_STAT
+GNULIB_MKNODAT
+GNULIB_MKNOD
+GNULIB_MKFIFOAT
+GNULIB_MKFIFO
+GNULIB_MKDIRAT
+GNULIB_LSTAT
+GNULIB_LCHMOD
+GNULIB_FUTIMENS
+GNULIB_FSTATAT
+GNULIB_FSTAT
+GNULIB_FCHMODAT
GL_GENERATE_FNMATCH_H_FALSE
GL_GENERATE_FNMATCH_H_TRUE
FNMATCH_H
+REPLACE_ITOLD
GL_GENERATE_FLOAT_H_FALSE
GL_GENERATE_FLOAT_H_TRUE
FLOAT_H
@@ -1382,6 +1392,7 @@ HAVE_DECL_STRNCASECMP
HAVE_STRCASECMP
HAVE_FFS
GNULIB_FFS
+LIB_FDATASYNC
NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
NEXT_FCNTL_H
REPLACE_OPENAT
@@ -1422,11 +1433,14 @@ REPLACE_FPURGE
REPLACE_FPRINTF
REPLACE_FOPEN
REPLACE_FFLUSH
+REPLACE_FDOPEN
REPLACE_FCLOSE
REPLACE_DPRINTF
HAVE_VDPRINTF
HAVE_VASPRINTF
HAVE_RENAMEAT
+HAVE_POPEN
+HAVE_PCLOSE
HAVE_FTELLO
HAVE_FSEEKO
HAVE_DPRINTF
@@ -1464,6 +1478,7 @@ GNULIB_PRINTF_POSIX
GNULIB_PRINTF
GNULIB_POPEN
GNULIB_PERROR
+GNULIB_PCLOSE
GNULIB_OBSTACK_PRINTF_POSIX
GNULIB_OBSTACK_PRINTF
GNULIB_GETS
@@ -1488,6 +1503,7 @@ GNULIB_FOPEN
GNULIB_FGETS
GNULIB_FGETC
GNULIB_FFLUSH
+GNULIB_FDOPEN
GNULIB_FCLOSE
GNULIB_DPRINTF
EOVERFLOW_VALUE
@@ -1503,6 +1519,7 @@ NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
NEXT_ERRNO_H
pkglibexecdir
lispdir
+HAVE_MSVC_INVALID_PARAMETER_HANDLER
REPLACE_WCTOMB
REPLACE_UNSETENV
REPLACE_STRTOD
@@ -1575,6 +1592,8 @@ HAVE_FEATURES_H
NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
NEXT_ARPA_INET_H
HAVE_ARPA_INET_H
+REPLACE_INET_PTON
+REPLACE_INET_NTOP
HAVE_DECL_INET_PTON
HAVE_DECL_INET_NTOP
GNULIB_INET_PTON
@@ -1624,6 +1643,7 @@ HAVE_DECL_GETUSERSHELL
HAVE_DECL_GETPAGESIZE
HAVE_DECL_GETLOGIN_R
HAVE_DECL_GETDOMAINNAME
+HAVE_DECL_FDATASYNC
HAVE_DECL_FCHDIR
HAVE_DECL_ENVIRON
HAVE_USLEEP
@@ -1648,6 +1668,7 @@ HAVE_GETGROUPS
HAVE_GETDTABLESIZE
HAVE_FTRUNCATE
HAVE_FSYNC
+HAVE_FDATASYNC
HAVE_FCHOWNAT
HAVE_FCHDIR
HAVE_FACCESSAT
@@ -1690,6 +1711,7 @@ GNULIB_GETDOMAINNAME
GNULIB_GETCWD
GNULIB_FTRUNCATE
GNULIB_FSYNC
+GNULIB_FDATASYNC
GNULIB_FCHOWNAT
GNULIB_FCHDIR
GNULIB_FACCESSAT
@@ -1697,8 +1719,10 @@ GNULIB_EUIDACCESS
GNULIB_ENVIRON
GNULIB_DUP3
GNULIB_DUP2
+GNULIB_DUP
GNULIB_CLOSE
GNULIB_CHOWN
+GNULIB_CHDIR
HAVE_WS2TCPIP_H
HAVE_SYS_SOCKET_H
NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
@@ -2496,7 +2520,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures libvirt 0.9.6 to adapt to many kinds of systems.
+\`configure' configures libvirt 0.9.7 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -2566,7 +2590,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of libvirt 0.9.6:";;
+ short | recursive ) echo "Configuration of libvirt 0.9.7:";;
esac
cat <<\_ACEOF
@@ -2823,7 +2847,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-libvirt configure 0.9.6
+libvirt configure 0.9.7
generated by GNU Autoconf 2.66
Copyright (C) 2010 Free Software Foundation, Inc.
@@ -3527,7 +3551,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by libvirt $as_me 0.9.6, which was
+It was created by libvirt $as_me 0.9.7, which was
generated by GNU Autoconf 2.66. Invocation command line was
$ $0 $@
@@ -3818,7 +3842,10 @@ gl_header_list="$gl_header_list sys/param.h"
gl_func_list="$gl_func_list readlinkat"
gl_func_list="$gl_func_list chown"
gl_func_list="$gl_func_list fchown"
+gl_func_list="$gl_func_list _set_invalid_parameter_handler"
+gl_header_list="$gl_header_list unistd.h"
gl_func_list="$gl_func_list fcntl"
+gl_func_list="$gl_func_list symlink"
gl_func_list="$gl_func_list ffs"
gl_func_list="$gl_func_list btowc"
gl_func_list="$gl_func_list isblank"
@@ -3851,7 +3878,6 @@ gl_header_list="$gl_header_list sys/mman.h"
gl_func_list="$gl_func_list mprotect"
gl_func_list="$gl_func_list mkstemp"
gl_func_list="$gl_func_list mkstemps"
-gl_header_list="$gl_header_list unistd.h"
gl_func_list="$gl_func_list alarm"
gl_func_list="$gl_func_list recvmsg"
gl_func_list="$gl_func_list sendmsg"
@@ -3870,6 +3896,7 @@ gl_func_list="$gl_func_list sigaction"
gl_func_list="$gl_func_list sigaltstack"
gl_func_list="$gl_func_list siginterrupt"
gl_func_list="$gl_func_list sleep"
+gl_func_list="$gl_func_list snprintf"
gl_header_list="$gl_header_list wchar.h"
gl_header_list="$gl_header_list stdint.h"
gl_func_list="$gl_func_list strdup"
@@ -3887,6 +3914,7 @@ gl_func_list="$gl_func_list usleep"
gl_func_list="$gl_func_list vasnprintf"
gl_func_list="$gl_func_list iswcntrl"
gl_func_list="$gl_func_list getegid"
+gl_func_list="$gl_func_list ftruncate"
gl_header_list="$gl_header_list grp.h"
gl_header_list="$gl_header_list inttypes.h"
gl_header_list="$gl_header_list xlocale.h"
@@ -3896,12 +3924,10 @@ gl_func_list="$gl_func_list socketpair"
gl_func_list="$gl_func_list posix_spawn"
gl_func_list="$gl_func_list setenv"
gl_header_list="$gl_header_list spawn.h"
-gl_func_list="$gl_func_list symlink"
gl_func_list="$gl_func_list shutdown"
gl_func_list="$gl_func_list wcrtomb"
gl_func_list="$gl_func_list wctob"
gl_func_list="$gl_func_list cfmakeraw"
-gl_func_list="$gl_func_list fdatasync"
gl_func_list="$gl_func_list geteuid"
gl_func_list="$gl_func_list getgid"
gl_func_list="$gl_func_list getgrnam_r"
@@ -4456,7 +4482,7 @@ fi
# Define the identity of the package.
PACKAGE='libvirt'
- VERSION='0.9.6'
+ VERSION='0.9.7'
cat >>confdefs.h <<_ACEOF
@@ -7811,6 +7837,7 @@ fi
# Code from module accept:
+ # Code from module accept-tests:
# Code from module alignof:
# Code from module alignof-tests:
# Code from module alloca:
@@ -7826,6 +7853,7 @@ fi
# Code from module binary-io:
# Code from module binary-io-tests:
# Code from module bind:
+ # Code from module bind-tests:
# Code from module btowc:
# Code from module btowc-tests:
# Code from module byteswap:
@@ -7845,8 +7873,10 @@ fi
# Code from module cloexec:
# Code from module cloexec-tests:
# Code from module close:
+ # Code from module close-tests:
# Code from module configmake:
# Code from module connect:
+ # Code from module connect-tests:
# Code from module count-one-bits:
# Code from module count-one-bits-tests:
# Code from module crypto/md5:
@@ -7854,6 +7884,8 @@ fi
# Code from module dirname-lgpl:
# Code from module dosname:
# Code from module double-slash-root:
+ # Code from module dup:
+ # Code from module dup-tests:
# Code from module dup2:
# Code from module dup2-tests:
# Code from module environ:
@@ -7872,11 +7904,16 @@ fi
# Code from module fcntl-h-tests:
# Code from module fcntl-tests:
# Code from module fd-hook:
+ # Code from module fdatasync:
+ # Code from module fdatasync-tests:
+ # Code from module fdopen:
+ # Code from module fdopen-tests:
# Code from module fflush:
# Code from module fflush-tests:
# Code from module ffs:
# Code from module ffs-tests:
+ # Code from module fgetc-tests:
# Code from module float:
# Code from module float-tests:
# Code from module fnmatch:
@@ -7886,6 +7923,8 @@ fi
# Code from module fpucw:
# Code from module fpurge:
# Code from module fpurge-tests:
+ # Code from module fputc-tests:
+ # Code from module fread-tests:
# Code from module freading:
# Code from module freading-tests:
# Code from module fseek:
@@ -7893,6 +7932,8 @@ fi
# Code from module fseeko:
# Code from module fseeko-tests:
+ # Code from module fstat:
+ # Code from module fstat-tests:
# Code from module fsync:
# Code from module fsync-tests:
# Code from module ftell:
@@ -7900,8 +7941,11 @@ fi
# Code from module ftello:
# Code from module ftello-tests:
+ # Code from module ftruncate:
+ # Code from module ftruncate-tests:
# Code from module func:
# Code from module func-tests:
+ # Code from module fwrite-tests:
# Code from module getaddrinfo:
# Code from module getaddrinfo-tests:
# Code from module getcwd-lgpl:
@@ -7919,8 +7963,11 @@ fi
# Code from module getpagesize:
# Code from module getpass:
# Code from module getpeername:
+ # Code from module getpeername-tests:
# Code from module getsockname:
+ # Code from module getsockname-tests:
# Code from module getsockopt:
+ # Code from module getsockopt-tests:
# Code from module gettext-h:
# Code from module gettimeofday:
# Code from module gettimeofday-tests:
@@ -7943,9 +7990,11 @@ fi
# Code from module inttypes-incomplete:
# Code from module inttypes-tests:
# Code from module ioctl:
+ # Code from module ioctl-tests:
# Code from module largefile:
# Code from module listen:
+ # Code from module listen-tests:
# Code from module localcharset:
# Code from module locale:
# Code from module locale-tests:
@@ -7977,6 +8026,8 @@ fi
# Code from module mktempd:
# Code from module mktime:
# Code from module mktime-internal:
+ # Code from module msvc-inval:
+ # Code from module msvc-nothrow:
# Code from module multiarch:
# Code from module netdb:
# Code from module netdb-tests:
@@ -8007,8 +8058,11 @@ fi
# Code from module posix-shell:
# Code from module posix_spawn-internal:
# Code from module posix_spawn_file_actions_addclose:
+ # Code from module posix_spawn_file_actions_addclose-tests:
# Code from module posix_spawn_file_actions_adddup2:
+ # Code from module posix_spawn_file_actions_adddup2-tests:
# Code from module posix_spawn_file_actions_addopen:
+ # Code from module posix_spawn_file_actions_addopen-tests:
# Code from module posix_spawn_file_actions_destroy:
# Code from module posix_spawn_file_actions_init:
# Code from module posix_spawnattr_destroy:
@@ -8022,33 +8076,39 @@ fi
# Code from module pthread_sigmask:
# Code from module pthread_sigmask-tests:
# Code from module putenv:
+ # Code from module raise:
+ # Code from module raise-tests:
# Code from module random_r:
# Code from module random_r-tests:
# Code from module rawmemchr:
# Code from module rawmemchr-tests:
# Code from module read:
+ # Code from module read-tests:
# Code from module readlink:
# Code from module readlink-tests:
# Code from module realloc-gnu:
# Code from module realloc-gnu-tests:
# Code from module realloc-posix:
# Code from module recv:
+ # Code from module recv-tests:
# Code from module same-inode:
# Code from module sched:
# Code from module sched-tests:
# Code from module select:
# Code from module select-tests:
# Code from module send:
+ # Code from module send-tests:
# Code from module servent:
# Code from module setenv:
# Code from module setenv-tests:
# Code from module setlocale:
# Code from module setlocale-tests:
# Code from module setsockopt:
+ # Code from module setsockopt-tests:
# Code from module sigaction:
# Code from module sigaction-tests:
- # Code from module signal:
- # Code from module signal-tests:
+ # Code from module signal-h:
+ # Code from module signal-h-tests:
# Code from module sigpipe:
# Code from module sigpipe-tests:
# Code from module sigprocmask:
@@ -8076,6 +8136,8 @@ fi
# Code from module stat-time-tests:
# Code from module stdarg:
+
+
# Code from module stdbool:
# Code from module stdbool-tests:
# Code from module stddef:
@@ -8087,6 +8149,7 @@ fi
# Code from module stdlib:
# Code from module stdlib-tests:
# Code from module stpcpy:
+ # Code from module strcase:
# Code from module strchrnul:
# Code from module strchrnul-tests:
# Code from module strdup-posix:
@@ -8119,6 +8182,8 @@ fi
# Code from module sys_stat-tests:
# Code from module sys_time:
# Code from module sys_time-tests:
+ # Code from module sys_types:
+ # Code from module sys_types-tests:
# Code from module sys_uio:
# Code from module sys_uio-tests:
# Code from module sys_utsname:
@@ -8169,6 +8234,7 @@ fi
# Code from module wctype-h:
# Code from module wctype-h-tests:
# Code from module write:
+ # Code from module write-tests:
# Code from module xalloc:
# Code from module xalloc-die:
# Code from module xalloc-die-tests:
@@ -8406,8 +8472,10 @@ $as_echo "$gl_cv_pragma_columns" >&6; }
+ GNULIB_CHDIR=0;
GNULIB_CHOWN=0;
GNULIB_CLOSE=0;
+ GNULIB_DUP=0;
GNULIB_DUP2=0;
GNULIB_DUP3=0;
GNULIB_ENVIRON=0;
@@ -8415,6 +8483,7 @@ $as_echo "$gl_cv_pragma_columns" >&6; }
GNULIB_FACCESSAT=0;
GNULIB_FCHDIR=0;
GNULIB_FCHOWNAT=0;
+ GNULIB_FDATASYNC=0;
GNULIB_FSYNC=0;
GNULIB_FTRUNCATE=0;
GNULIB_GETCWD=0;
@@ -8457,6 +8526,7 @@ $as_echo "$gl_cv_pragma_columns" >&6; }
HAVE_FACCESSAT=1;
HAVE_FCHDIR=1;
HAVE_FCHOWNAT=1;
+ HAVE_FDATASYNC=1;
HAVE_FSYNC=1;
HAVE_FTRUNCATE=1;
HAVE_GETDTABLESIZE=1;
@@ -8481,6 +8551,7 @@ $as_echo "$gl_cv_pragma_columns" >&6; }
HAVE_USLEEP=1;
HAVE_DECL_ENVIRON=1;
HAVE_DECL_FCHDIR=1;
+ HAVE_DECL_FDATASYNC=1;
HAVE_DECL_GETDOMAINNAME=1;
HAVE_DECL_GETLOGIN_R=1;
HAVE_DECL_GETPAGESIZE=1;
@@ -8649,13 +8720,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'sys/socket.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'sys/socket.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/sys/socket.h#{
- s#.*"\(.*/sys/socket.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
else
gl_cv_next_sys_socket_h='<'sys/socket.h'>'
fi
@@ -8999,6 +9081,8 @@ fi
GNULIB_INET_PTON=0;
HAVE_DECL_INET_NTOP=1;
HAVE_DECL_INET_PTON=1;
+ REPLACE_INET_NTOP=0;
+ REPLACE_INET_PTON=0;
@@ -9331,6 +9415,34 @@ nocrash_init (void)
}
}
}
+#elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+/* Avoid a crash on native Windows. */
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+#include <winerror.h>
+static LONG WINAPI
+exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
+{
+ switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
+ {
+ case EXCEPTION_ACCESS_VIOLATION:
+ case EXCEPTION_IN_PAGE_ERROR:
+ case EXCEPTION_STACK_OVERFLOW:
+ case EXCEPTION_GUARD_PAGE:
+ case EXCEPTION_PRIV_INSTRUCTION:
+ case EXCEPTION_ILLEGAL_INSTRUCTION:
+ case EXCEPTION_DATATYPE_MISALIGNMENT:
+ case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
+ case EXCEPTION_NONCONTINUABLE_EXCEPTION:
+ exit (1);
+ }
+ return EXCEPTION_CONTINUE_SEARCH;
+}
+static void
+nocrash_init (void)
+{
+ SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
+}
#else
/* Avoid a crash on POSIX systems. */
#include <signal.h>
@@ -9737,6 +9849,29 @@ $as_echo "#define CHOWN_CHANGE_TIME_BUG 1" >>confdefs.h
fi
+
+
+
+
+
+
+ :
+
+
+
+
+
+ if test $ac_cv_func__set_invalid_parameter_handler = yes; then
+ HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
+
+$as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
+
+ else
+ HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
+ fi
+
+
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
$as_echo_n "checking for unsigned long long int... " >&6; }
if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
@@ -10024,6 +10159,19 @@ $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
+
+
+
+
+
+ :
+
+
+
+
+
+
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
$as_echo_n "checking if environ is properly declared... " >&6; }
if test "${gt_cv_var_environ_declaration+set}" = set; then :
@@ -10032,7 +10180,12 @@ else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-#include <unistd.h>
+#if HAVE_UNISTD_H
+ #include <unistd.h>
+ #endif
+ /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
+ #include <stdlib.h>
+
extern struct { int foo; } environ;
int
main ()
@@ -10157,13 +10310,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'errno.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'errno.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/errno.h#{
- s#.*"\(.*/errno.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
fi
@@ -10412,6 +10576,7 @@ $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
GNULIB_DPRINTF=0;
GNULIB_FCLOSE=0;
+ GNULIB_FDOPEN=0;
GNULIB_FFLUSH=0;
GNULIB_FGETC=0;
GNULIB_FGETS=0;
@@ -10436,6 +10601,7 @@ $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
GNULIB_GETS=0;
GNULIB_OBSTACK_PRINTF=0;
GNULIB_OBSTACK_PRINTF_POSIX=0;
+ GNULIB_PCLOSE=0;
GNULIB_PERROR=0;
GNULIB_POPEN=0;
GNULIB_PRINTF=0;
@@ -10473,11 +10639,14 @@ $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
HAVE_DPRINTF=1;
HAVE_FSEEKO=1;
HAVE_FTELLO=1;
+ HAVE_PCLOSE=1;
+ HAVE_POPEN=1;
HAVE_RENAMEAT=1;
HAVE_VASPRINTF=1;
HAVE_VDPRINTF=1;
REPLACE_DPRINTF=0;
REPLACE_FCLOSE=0;
+ REPLACE_FDOPEN=0;
REPLACE_FFLUSH=0;
REPLACE_FOPEN=0;
REPLACE_FPRINTF=0;
@@ -10526,6 +10695,26 @@ $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
+
+
+
+
+
+
+
+ :
+
+
+
+
+
+
+ :
+
+
+
+
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
$as_echo_n "checking for working fcntl.h... " >&6; }
if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
@@ -10538,7 +10727,13 @@ else
/* end confdefs.h. */
#include <sys/types.h>
#include <sys/stat.h>
- #include <unistd.h>
+ #if HAVE_UNISTD_H
+ # include <unistd.h>
+ #else /* on Windows with MSVC */
+ # include <io.h>
+ # include <stdlib.h>
+ # defined sleep(n) _sleep ((n) * 1000)
+ #endif
#include <fcntl.h>
#ifndef O_NOATIME
#define O_NOATIME 0
@@ -10557,6 +10752,7 @@ main ()
{
int result = !constants;
+ #if HAVE_SYMLINK
{
static char const sym[] = "conftest.sym";
if (symlink (".", sym) != 0)
@@ -10572,6 +10768,7 @@ main ()
}
unlink (sym);
}
+ #endif
{
static char const file[] = "confdefs.h";
int fd = open (file, O_RDONLY | O_NOATIME);
@@ -10648,6 +10845,41 @@ cat >>confdefs.h <<_ACEOF
_ACEOF
+ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
+if test "x$ac_cv_type_pid_t" = x""yes; then :
+
+else
+
+cat >>confdefs.h <<_ACEOF
+#define pid_t int
+_ACEOF
+
+fi
+
+ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
+if test "x$ac_cv_type_mode_t" = x""yes; then :
+
+else
+
+cat >>confdefs.h <<_ACEOF
+#define mode_t int
+_ACEOF
+
+fi
+
+
+ ac_fn_c_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "$ac_includes_default"
+if test "x$ac_cv_have_decl_fdatasync" = x""yes; then :
+ ac_have_decl=1
+else
+ ac_have_decl=0
+fi
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_DECL_FDATASYNC $ac_have_decl
+_ACEOF
+
+
GNULIB_FFS=0;
HAVE_FFS=1;
@@ -10869,6 +11101,13 @@ $as_echo "$gl_cv_func_fseeko" >&6; }
fi
+
+ :
+
+
+
+
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fflush works on input streams" >&5
$as_echo_n "checking whether fflush works on input streams... " >&6; }
if test "${gl_cv_func_fflush_stdin+set}" = set; then :
@@ -10882,7 +11121,11 @@ else
/* end confdefs.h. */
#include <stdio.h>
-#include <unistd.h>
+#if HAVE_UNISTD_H
+# include <unistd.h>
+#else /* on Windows with MSVC */
+# include <io.h>
+#endif
int
main ()
@@ -10949,6 +11192,41 @@ $as_echo "$gl_cv_func_fflush_stdin" >&6; }
fi
+ GNULIB_FCHMODAT=0;
+ GNULIB_FSTAT=0;
+ GNULIB_FSTATAT=0;
+ GNULIB_FUTIMENS=0;
+ GNULIB_LCHMOD=0;
+ GNULIB_LSTAT=0;
+ GNULIB_MKDIRAT=0;
+ GNULIB_MKFIFO=0;
+ GNULIB_MKFIFOAT=0;
+ GNULIB_MKNOD=0;
+ GNULIB_MKNODAT=0;
+ GNULIB_STAT=0;
+ GNULIB_UTIMENSAT=0;
+ HAVE_FCHMODAT=1;
+ HAVE_FSTATAT=1;
+ HAVE_FUTIMENS=1;
+ HAVE_LCHMOD=1;
+ HAVE_LSTAT=1;
+ HAVE_MKDIRAT=1;
+ HAVE_MKFIFO=1;
+ HAVE_MKFIFOAT=1;
+ HAVE_MKNOD=1;
+ HAVE_MKNODAT=1;
+ HAVE_UTIMENSAT=1;
+ REPLACE_FSTAT=0;
+ REPLACE_FSTATAT=0;
+ REPLACE_FUTIMENS=0;
+ REPLACE_LSTAT=0;
+ REPLACE_MKDIR=0;
+ REPLACE_MKFIFO=0;
+ REPLACE_MKNOD=0;
+ REPLACE_STAT=0;
+ REPLACE_UTIMENSAT=0;
+
+
@@ -11172,13 +11450,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'netdb.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'netdb.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_netdb_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/netdb.h#{
- s#.*"\(.*/netdb.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
else
gl_cv_next_netdb_h='<'netdb.h'>'
fi
@@ -11448,9 +11737,68 @@ done
- HAVE_INET_NTOP=1
- gl_save_LIBS=$LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
+
+
+
+
+ HAVE_INET_NTOP=1
+ INET_NTOP_LIB=
+
+
+
+
+ :
+
+
+
+
+
+ if test $ac_cv_header_sys_socket_h != yes; then
+ for ac_header in winsock2.h
+do :
+ ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
+if test "x$ac_cv_header_winsock2_h" = x""yes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_WINSOCK2_H 1
+_ACEOF
+
+fi
+
+done
+
+ fi
+ if test "$ac_cv_header_winsock2_h" = yes; then
+ HAVE_WINSOCK2_H=1
+ UNISTD_H_HAVE_WINSOCK2_H=1
+ SYS_IOCTL_H_HAVE_WINSOCK2_H=1
+ else
+ HAVE_WINSOCK2_H=0
+ fi
+
+
+ if test $HAVE_WINSOCK2_H = 1; then
+ ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
+"
+if test "x$ac_cv_have_decl_inet_ntop" = x""yes; then :
+ ac_have_decl=1
+else
+ ac_have_decl=0
+fi
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_DECL_INET_NTOP $ac_have_decl
+_ACEOF
+
+ if test $ac_cv_have_decl_inet_ntop = yes; then
+ REPLACE_INET_NTOP=1
+ INET_NTOP_LIB="-lws2_32"
+ else
+ HAVE_DECL_INET_NTOP=0
+ HAVE_INET_NTOP=0
+ fi
+ else
+ gl_save_LIBS=$LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
$as_echo_n "checking for library containing inet_ntop... " >&6; }
if test "${ac_cv_search_inet_ntop+set}" = set; then :
$as_echo_n "(cached) " >&6
@@ -11474,7 +11822,7 @@ return inet_ntop ();
return 0;
}
_ACEOF
-for ac_lib in '' nsl; do
+for ac_lib in '' nsl resolv; do
if test -z "$ac_lib"; then
ac_res="none required"
else
@@ -11516,20 +11864,18 @@ _ACEOF
fi
done
- if test $ac_cv_func_inet_ntop = no; then
- HAVE_INET_NTOP=0
- fi
+ if test $ac_cv_func_inet_ntop = no; then
+ HAVE_INET_NTOP=0
+ fi
fi
- LIBS=$gl_save_LIBS
-
- INET_NTOP_LIB=
- if test "$ac_cv_search_inet_ntop" != "no" &&
- test "$ac_cv_search_inet_ntop" != "none required"; then
- INET_NTOP_LIB="$ac_cv_search_inet_ntop"
- fi
+ LIBS=$gl_save_LIBS
+ if test "$ac_cv_search_inet_ntop" != "no" \
+ && test "$ac_cv_search_inet_ntop" != "none required"; then
+ INET_NTOP_LIB="$ac_cv_search_inet_ntop"
+ fi
:
@@ -11538,10 +11884,10 @@ fi
- ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
- #if HAVE_NETDB_H
- # include <netdb.h>
- #endif
+ ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
+ #if HAVE_NETDB_H
+ # include <netdb.h>
+ #endif
"
if test "x$ac_cv_have_decl_inet_ntop" = x""yes; then :
@@ -11554,9 +11900,9 @@ cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_INET_NTOP $ac_have_decl
_ACEOF
- if test $ac_cv_have_decl_inet_ntop = no; then
- HAVE_DECL_INET_NTOP=0
-
+ if test $ac_cv_have_decl_inet_ntop = no; then
+ HAVE_DECL_INET_NTOP=0
+ fi
fi
@@ -11567,6 +11913,7 @@ _ACEOF
+
:
@@ -11662,7 +12009,14 @@ $as_echo "#define HAVE_IPV6 1" >>confdefs.h
fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
+
+ :
+
+
+
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
$as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
if test "${gl_cv_func_getcwd_null+set}" = set; then :
$as_echo_n "(cached) " >&6
@@ -11682,7 +12036,11 @@ else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-# include <unistd.h>
+# if HAVE_UNISTD_H
+# include <unistd.h>
+# else /* on Windows with MSVC */
+# include <direct.h>
+# endif
# ifndef getcwd
char *getcwd ();
# endif
@@ -11958,13 +12316,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'sys/time.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'sys/time.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/sys/time.h#{
- s#.*"\(.*/sys/time.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
else
gl_cv_next_sys_time_h='<'sys/time.h'>'
fi
@@ -11993,6 +12362,39 @@ $as_echo "$gl_cv_next_sys_time_h" >&6; }
HAVE_SYS_TIME_H=0
fi
+
+
+
+
+ :
+
+
+
+
+
+ if test $ac_cv_header_sys_socket_h != yes; then
+ for ac_header in winsock2.h
+do :
+ ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
+if test "x$ac_cv_header_winsock2_h" = x""yes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_WINSOCK2_H 1
+_ACEOF
+
+fi
+
+done
+
+ fi
+ if test "$ac_cv_header_winsock2_h" = yes; then
+ HAVE_WINSOCK2_H=1
+ UNISTD_H_HAVE_WINSOCK2_H=1
+ SYS_IOCTL_H_HAVE_WINSOCK2_H=1
+ else
+ HAVE_WINSOCK2_H=0
+ fi
+
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
$as_echo_n "checking for struct timeval... " >&6; }
if test "${gl_cv_sys_struct_timeval+set}" = set; then :
@@ -12004,6 +12406,9 @@ else
#include <sys/time.h>
#endif
#include <time.h>
+ #if HAVE_WINSOCK2_H
+ # include <winsock2.h>
+ #endif
int
main ()
@@ -13200,40 +13605,6 @@ $as_echo "$gl_threads_api" >&6; }
- GNULIB_FCHMODAT=0;
- GNULIB_FSTATAT=0;
- GNULIB_FUTIMENS=0;
- GNULIB_LCHMOD=0;
- GNULIB_LSTAT=0;
- GNULIB_MKDIRAT=0;
- GNULIB_MKFIFO=0;
- GNULIB_MKFIFOAT=0;
- GNULIB_MKNOD=0;
- GNULIB_MKNODAT=0;
- GNULIB_STAT=0;
- GNULIB_UTIMENSAT=0;
- HAVE_FCHMODAT=1;
- HAVE_FSTATAT=1;
- HAVE_FUTIMENS=1;
- HAVE_LCHMOD=1;
- HAVE_LSTAT=1;
- HAVE_MKDIRAT=1;
- HAVE_MKFIFO=1;
- HAVE_MKFIFOAT=1;
- HAVE_MKNOD=1;
- HAVE_MKNODAT=1;
- HAVE_UTIMENSAT=1;
- REPLACE_FSTAT=0;
- REPLACE_FSTATAT=0;
- REPLACE_FUTIMENS=0;
- REPLACE_LSTAT=0;
- REPLACE_MKDIR=0;
- REPLACE_MKFIFO=0;
- REPLACE_MKNOD=0;
- REPLACE_STAT=0;
- REPLACE_UTIMENSAT=0;
-
-
@@ -14369,11 +14740,6 @@ $as_echo "$gl_cv_func_memchr_works" >&6; }
-
-
-
-
-
gl_cv_c_multiarch=no
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -14427,7 +14793,30 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#ifdef _MSC_VER
+MicrosoftCompiler
+#endif
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "MicrosoftCompiler" >/dev/null 2>&1; then :
+ gl_asmext='asm'
+ gl_c_asm_opt='-c -Fa'
+
+else
+ gl_asmext='s'
+ gl_c_asm_opt='-S'
+
+fi
+rm -f conftest*
+
+
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5
$as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
if test "${gl_cv_prog_as_underscore+set}" = set; then :
$as_echo_n "(cached) " >&6
@@ -14439,13 +14828,13 @@ extern "C" int foo (void);
int foo(void) { return 0; }
EOF
# Look for the assembly language name in the .s file.
- { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c'
+ { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c'
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
(eval $ac_try) 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; } >/dev/null 2>&1
- if grep _foo conftest.s >/dev/null ; then
+ if grep _foo conftest.$gl_asmext >/dev/null ; then
gl_cv_prog_as_underscore=yes
else
gl_cv_prog_as_underscore=no
@@ -14468,17 +14857,6 @@ _ACEOF
ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
-ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
-if test "x$ac_cv_type_mode_t" = x""yes; then :
-
-else
-
-cat >>confdefs.h <<_ACEOF
-#define mode_t int
-_ACEOF
-
-fi
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
@@ -14915,13 +15293,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'poll.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'poll.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_poll_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/poll.h#{
- s#.*"\(.*/poll.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
else
gl_cv_next_poll_h='<'poll.h'>'
fi
@@ -14953,6 +15342,204 @@ $as_echo "$gl_cv_next_poll_h" >&6; }
+ :
+
+
+
+
+
+ if test $ac_cv_header_sys_socket_h != yes; then
+ for ac_header in winsock2.h
+do :
+ ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
+if test "x$ac_cv_header_winsock2_h" = x""yes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_WINSOCK2_H 1
+_ACEOF
+
+fi
+
+done
+
+ fi
+ if test "$ac_cv_header_winsock2_h" = yes; then
+ HAVE_WINSOCK2_H=1
+ UNISTD_H_HAVE_WINSOCK2_H=1
+ SYS_IOCTL_H_HAVE_WINSOCK2_H=1
+ else
+ HAVE_WINSOCK2_H=0
+ fi
+
+ LIBSOCKET=
+ if test $HAVE_WINSOCK2_H = 1; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to call WSAStartup in winsock2.h and -lws2_32" >&5
+$as_echo_n "checking if we need to call WSAStartup in winsock2.h and -lws2_32... " >&6; }
+if test "${gl_cv_func_wsastartup+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+
+ gl_save_LIBS="$LIBS"
+ LIBS="$LIBS -lws2_32"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#ifdef HAVE_WINSOCK2_H
+# include <winsock2.h>
+#endif
+int
+main ()
+{
+
+ WORD wVersionRequested = MAKEWORD(1, 1);
+ WSADATA wsaData;
+ int err = WSAStartup(wVersionRequested, &wsaData);
+ WSACleanup ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ gl_cv_func_wsastartup=yes
+else
+ gl_cv_func_wsastartup=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ LIBS="$gl_save_LIBS"
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5
+$as_echo "$gl_cv_func_wsastartup" >&6; }
+ if test "$gl_cv_func_wsastartup" = "yes"; then
+
+$as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h
+
+ LIBSOCKET='-lws2_32'
+ fi
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
+$as_echo_n "checking for library containing setsockopt... " >&6; }
+if test "${gl_cv_lib_socket+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+
+ gl_cv_lib_socket=
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+extern
+#ifdef __cplusplus
+"C"
+#endif
+char setsockopt();
+int
+main ()
+{
+setsockopt();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+
+else
+ gl_save_LIBS="$LIBS"
+ LIBS="$gl_save_LIBS -lsocket"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+extern
+#ifdef __cplusplus
+"C"
+#endif
+char setsockopt();
+int
+main ()
+{
+setsockopt();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ gl_cv_lib_socket="-lsocket"
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ if test -z "$gl_cv_lib_socket"; then
+ LIBS="$gl_save_LIBS -lnetwork"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+extern
+#ifdef __cplusplus
+"C"
+#endif
+char setsockopt();
+int
+main ()
+{
+setsockopt();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ gl_cv_lib_socket="-lnetwork"
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ if test -z "$gl_cv_lib_socket"; then
+ LIBS="$gl_save_LIBS -lnet"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+extern
+#ifdef __cplusplus
+"C"
+#endif
+char setsockopt();
+int
+main ()
+{
+setsockopt();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ gl_cv_lib_socket="-lnet"
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ fi
+ fi
+ LIBS="$gl_save_LIBS"
+
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ if test -z "$gl_cv_lib_socket"; then
+ gl_cv_lib_socket="none needed"
+ fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5
+$as_echo "$gl_cv_lib_socket" >&6; }
+ if test "$gl_cv_lib_socket" != "none needed"; then
+ LIBSOCKET="$gl_cv_lib_socket"
+ fi
+ fi
+
+
+
+
+
+
+ :
+
+
+
+
+
+
+
@@ -14969,6 +15556,26 @@ $as_echo "$gl_cv_next_poll_h" >&6; }
+ GNULIB_PTHREAD_SIGMASK=0;
+ GNULIB_RAISE=0;
+ GNULIB_SIGNAL_H_SIGPIPE=0;
+ GNULIB_SIGPROCMASK=0;
+ GNULIB_SIGACTION=0;
+ HAVE_POSIX_SIGNALBLOCKING=1;
+ HAVE_PTHREAD_SIGMASK=1;
+ HAVE_RAISE=1;
+ HAVE_SIGSET_T=1;
+ HAVE_SIGINFO_T=1;
+ HAVE_SIGACTION=1;
+ HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
+
+ HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
+
+ HAVE_SIGHANDLER_T=1;
+ REPLACE_PTHREAD_SIGMASK=0;
+ REPLACE_RAISE=0;
+
+
@@ -15851,21 +16458,56 @@ $as_echo "$gl_threads_api" >&6; }
- GNULIB_PTHREAD_SIGMASK=0;
- GNULIB_SIGNAL_H_SIGPIPE=0;
- GNULIB_SIGPROCMASK=0;
- GNULIB_SIGACTION=0;
- HAVE_POSIX_SIGNALBLOCKING=1;
- HAVE_PTHREAD_SIGMASK=1;
- HAVE_SIGSET_T=1;
- HAVE_SIGINFO_T=1;
- HAVE_SIGACTION=1;
- HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
+ ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
+ #include <signal.h>
+ /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
+ #include <sys/types.h>
- HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
+"
+if test "x$ac_cv_type_sigset_t" = x""yes; then :
- HAVE_SIGHANDLER_T=1;
- REPLACE_PTHREAD_SIGMASK=0;
+cat >>confdefs.h <<_ACEOF
+#define HAVE_SIGSET_T 1
+_ACEOF
+
+gl_cv_type_sigset_t=yes
+else
+ gl_cv_type_sigset_t=no
+fi
+
+ if test $gl_cv_type_sigset_t != yes; then
+ HAVE_SIGSET_T=0
+ fi
+
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPIPE" >&5
+$as_echo_n "checking for SIGPIPE... " >&6; }
+if test "${gl_cv_header_signal_h_SIGPIPE+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include <signal.h>
+#if !defined SIGPIPE
+booboo
+#endif
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "booboo" >/dev/null 2>&1; then :
+ gl_cv_header_signal_h_SIGPIPE=no
+else
+ gl_cv_header_signal_h_SIGPIPE=yes
+fi
+rm -f conftest*
+
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_signal_h_SIGPIPE" >&5
+$as_echo "$gl_cv_header_signal_h_SIGPIPE" >&6; }
@@ -16004,13 +16646,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'sys/select.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'sys/select.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/sys/select.h#{
- s#.*"\(.*/sys/select.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
else
gl_cv_next_sys_select_h='<'sys/select.h'>'
fi
@@ -16081,190 +16734,25 @@ done
- :
- if test $ac_cv_header_sys_socket_h != yes; then
- for ac_header in winsock2.h
-do :
- ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
-if test "x$ac_cv_header_winsock2_h" = x""yes; then :
- cat >>confdefs.h <<_ACEOF
-#define HAVE_WINSOCK2_H 1
-_ACEOF
-fi
-done
- fi
- if test "$ac_cv_header_winsock2_h" = yes; then
- HAVE_WINSOCK2_H=1
- UNISTD_H_HAVE_WINSOCK2_H=1
- SYS_IOCTL_H_HAVE_WINSOCK2_H=1
- else
- HAVE_WINSOCK2_H=0
- fi
- LIBSOCKET=
- if test $HAVE_WINSOCK2_H = 1; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to call WSAStartup in winsock2.h and -lws2_32" >&5
-$as_echo_n "checking if we need to call WSAStartup in winsock2.h and -lws2_32... " >&6; }
-if test "${gl_cv_func_wsastartup+set}" = set; then :
- $as_echo_n "(cached) " >&6
-else
- gl_save_LIBS="$LIBS"
- LIBS="$LIBS -lws2_32"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#ifdef HAVE_WINSOCK2_H
-# include <winsock2.h>
-#endif
-int
-main ()
-{
- WORD wVersionRequested = MAKEWORD(1, 1);
- WSADATA wsaData;
- int err = WSAStartup(wVersionRequested, &wsaData);
- WSACleanup ();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
- gl_cv_func_wsastartup=yes
-else
- gl_cv_func_wsastartup=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS="$gl_save_LIBS"
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5
-$as_echo "$gl_cv_func_wsastartup" >&6; }
- if test "$gl_cv_func_wsastartup" = "yes"; then
-$as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h
- LIBSOCKET='-lws2_32'
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
-$as_echo_n "checking for library containing setsockopt... " >&6; }
-if test "${gl_cv_lib_socket+set}" = set; then :
- $as_echo_n "(cached) " >&6
-else
- gl_cv_lib_socket=
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-extern
-#ifdef __cplusplus
-"C"
-#endif
-char setsockopt();
-int
-main ()
-{
-setsockopt();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-else
- gl_save_LIBS="$LIBS"
- LIBS="$gl_save_LIBS -lsocket"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-extern
-#ifdef __cplusplus
-"C"
-#endif
-char setsockopt();
-int
-main ()
-{
-setsockopt();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
- gl_cv_lib_socket="-lsocket"
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- if test -z "$gl_cv_lib_socket"; then
- LIBS="$gl_save_LIBS -lnetwork"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-extern
-#ifdef __cplusplus
-"C"
-#endif
-char setsockopt();
-int
-main ()
-{
-setsockopt();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
- gl_cv_lib_socket="-lnetwork"
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- if test -z "$gl_cv_lib_socket"; then
- LIBS="$gl_save_LIBS -lnet"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-extern
-#ifdef __cplusplus
-"C"
-#endif
-char setsockopt();
-int
-main ()
-{
-setsockopt();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
- gl_cv_lib_socket="-lnet"
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- fi
- fi
- LIBS="$gl_save_LIBS"
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- if test -z "$gl_cv_lib_socket"; then
- gl_cv_lib_socket="none needed"
- fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5
-$as_echo "$gl_cv_lib_socket" >&6; }
- if test "$gl_cv_lib_socket" != "none needed"; then
- LIBSOCKET="$gl_cv_lib_socket"
- fi
- fi
@@ -16281,77 +16769,7 @@ $as_echo "$gl_cv_lib_socket" >&6; }
-
-
-
-
-
-
-
-
-
-
-
-
- ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
- #include <signal.h>
- /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
- #include <sys/types.h>
-
-"
-if test "x$ac_cv_type_sigset_t" = x""yes; then :
-
-cat >>confdefs.h <<_ACEOF
-#define HAVE_SIGSET_T 1
-_ACEOF
-
-gl_cv_type_sigset_t=yes
-else
- gl_cv_type_sigset_t=no
-fi
-
- if test $gl_cv_type_sigset_t != yes; then
- HAVE_SIGSET_T=0
- fi
-
-
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPIPE" >&5
-$as_echo_n "checking for SIGPIPE... " >&6; }
-if test "${gl_cv_header_signal_h_SIGPIPE+set}" = set; then :
- $as_echo_n "(cached) " >&6
-else
-
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-#include <signal.h>
-#if !defined SIGPIPE
-booboo
-#endif
-
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "booboo" >/dev/null 2>&1; then :
- gl_cv_header_signal_h_SIGPIPE=no
-else
- gl_cv_header_signal_h_SIGPIPE=yes
-fi
-rm -f conftest*
-
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_signal_h_SIGPIPE" >&5
-$as_echo "$gl_cv_header_signal_h_SIGPIPE" >&6; }
-
-
-
-
-
-
-
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
+ { $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
@@ -16394,15 +16812,29 @@ else
#include <stdio.h>
#include <string.h>
+#if HAVE_SNPRINTF
+# define my_snprintf snprintf
+#else
+# include <stdarg.h>
+static int my_snprintf (char *buf, int size, const char *format, ...)
+{
+ va_list args;
+ int ret;
+ va_start (args, format);
+ ret = vsnprintf (buf, size, format, args);
+ va_end (args);
+ return ret;
+}
+#endif
static char buf[100];
int main ()
{
strcpy (buf, "ABCDEF");
- if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
+ if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
return 1;
- if (snprintf (buf, 0, "%d %d", 4567, 89) != 7)
+ if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
return 2;
- if (snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
+ if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
return 3;
return 0;
}
@@ -16649,13 +17081,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdint.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'stdint.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/stdint.h#{
- s#.*"\(.*/stdint.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
else
gl_cv_next_stdint_h='<'stdint.h'>'
fi
@@ -17279,6 +17722,10 @@ _ACEOF
+ if test $BITSIZEOF_WINT_T -lt 32; then
+ BITSIZEOF_WINT_T=32
+ fi
+
STDINT_H=stdint.h
fi
@@ -17343,13 +17790,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'string.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'string.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/string.h#{
- s#.*"\(.*/string.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
fi
@@ -17386,6 +17844,7 @@ $as_echo "$gl_cv_next_string_h" >&6; }
+
:
@@ -17416,13 +17875,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'strings.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'strings.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_strings_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/strings.h#{
- s#.*"\(.*/strings.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
else
gl_cv_next_strings_h='<'strings.h'>'
fi
@@ -17446,6 +17916,12 @@ $as_echo "$gl_cv_next_strings_h" >&6; }
+ if test $ac_cv_header_strings_h = yes; then
+ HAVE_STRINGS_H=1
+ else
+ HAVE_STRINGS_H=0
+ fi
+
@@ -17563,6 +18039,8 @@ fi
+
+
GNULIB_UNAME=0;
HAVE_UNAME=1;
HAVE_STRUCT_UTSNAME=1;
@@ -17719,13 +18197,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'time.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'time.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/time.h#{
- s#.*"\(.*/time.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
fi
@@ -18271,6 +18760,11 @@ $as_echo "#define FUNC_UNGETC_BROKEN 1" >>confdefs.h
fi
+
+
+
+
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
$as_echo_n "checking type of array argument to getgroups... " >&6; }
if test "${ac_cv_type_getgroups+set}" = set; then :
@@ -18509,13 +19003,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'inttypes.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'inttypes.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/inttypes.h#{
- s#.*"\(.*/inttypes.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
else
gl_cv_next_inttypes_h='<'inttypes.h'>'
fi
@@ -19286,11 +19791,6 @@ done
-
-
-
-
-
ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
if test "x$ac_cv_have_decl_unsetenv" = x""yes; then :
ac_have_decl=1
@@ -19471,13 +19971,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'arpa/inet.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'arpa/inet.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_arpa_inet_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/arpa/inet.h#{
- s#.*"\(.*/arpa/inet.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
else
gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
fi
@@ -19727,6 +20238,10 @@ $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
+ if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
+ REPLACE_CLOSE=1
+ fi
+
@@ -20004,6 +20519,7 @@ if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
+
fi
@@ -20041,6 +20557,13 @@ $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
+
+ :
+
+
+
+
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fflush works on input streams" >&5
$as_echo_n "checking whether fflush works on input streams... " >&6; }
if test "${gl_cv_func_fflush_stdin+set}" = set; then :
@@ -20054,7 +20577,11 @@ else
/* end confdefs.h. */
#include <stdio.h>
-#include <unistd.h>
+#if HAVE_UNISTD_H
+# include <unistd.h>
+#else /* on Windows with MSVC */
+# include <io.h>
+#endif
int
main ()
@@ -20370,13 +20897,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'fcntl.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'fcntl.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/fcntl.h#{
- s#.*"\(.*/fcntl.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
fi
@@ -20403,6 +20941,135 @@ $as_echo "$gl_cv_next_fcntl_h" >&6; }
+
+
+
+
+
+ :
+
+
+
+
+
+ LIB_FDATASYNC=
+
+
+ if test $ac_cv_have_decl_fdatasync = no; then
+ HAVE_DECL_FDATASYNC=0
+ for ac_func in fdatasync
+do :
+ ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
+if test "x$ac_cv_func_fdatasync" = x""yes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_FDATASYNC 1
+_ACEOF
+
+fi
+done
+
+ if test $ac_cv_func_fdatasync = no; then
+ HAVE_FDATASYNC=0
+ fi
+ else
+ gl_saved_libs=$LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
+$as_echo_n "checking for library containing fdatasync... " >&6; }
+if test "${ac_cv_search_fdatasync+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_func_search_save_LIBS=$LIBS
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char fdatasync ();
+int
+main ()
+{
+return fdatasync ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' rt posix4; do
+ if test -z "$ac_lib"; then
+ ac_res="none required"
+ else
+ ac_res=-l$ac_lib
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ fi
+ if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_search_fdatasync=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if test "${ac_cv_search_fdatasync+set}" = set; then :
+ break
+fi
+done
+if test "${ac_cv_search_fdatasync+set}" = set; then :
+
+else
+ ac_cv_search_fdatasync=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
+$as_echo "$ac_cv_search_fdatasync" >&6; }
+ac_res=$ac_cv_search_fdatasync
+if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+ test "$ac_cv_search_fdatasync" = "none required" ||
+ LIB_FDATASYNC=$ac_cv_search_fdatasync
+fi
+
+ LIBS=$gl_saved_libs
+ fi
+
+if test $HAVE_FDATASYNC = 0; then
+
+
+
+
+
+
+
+
+ gl_LIBOBJS="$gl_LIBOBJS fdatasync.$ac_objext"
+
+fi
+
+
+
+
+
+ GNULIB_FDATASYNC=1
+
+
+
+
+
+$as_echo "#define GNULIB_TEST_FDATASYNC 1" >>confdefs.h
+
+
+
+
+
+
+
+ :
+
+
+
+
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fflush works on input streams" >&5
$as_echo_n "checking whether fflush works on input streams... " >&6; }
if test "${gl_cv_func_fflush_stdin+set}" = set; then :
@@ -20416,7 +21083,11 @@ else
/* end confdefs.h. */
#include <stdio.h>
-#include <unistd.h>
+#if HAVE_UNISTD_H
+# include <unistd.h>
+#else /* on Windows with MSVC */
+# include <io.h>
+#endif
int
main ()
@@ -20587,14 +21258,84 @@ rm -f conftest*
;;
esac
;;
+ linux*)
+ case "$host_cpu" in
+ powerpc*)
+ FLOAT_H=float.h
+ ;;
+ esac
+ ;;
esac
case "$host_os" in
- aix* | freebsd*)
+ aix* | freebsd* | linux*)
if test -n "$FLOAT_H"; then
REPLACE_FLOAT_LDBL=1
fi
;;
esac
+
+ REPLACE_ITOLD=0
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
+$as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
+if test "${gl_cv_func_itold_works+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+
+ if test "$cross_compiling" = yes; then :
+ case "$host" in
+ sparc*-*-linux*)
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#if defined __LP64__ || defined __arch64__
+ yes
+ #endif
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "yes" >/dev/null 2>&1; then :
+ gl_cv_func_itold_works="guessing no"
+else
+ gl_cv_func_itold_works="guessing yes"
+fi
+rm -f conftest*
+
+ ;;
+ *) gl_cv_func_itold_works="guessing yes" ;;
+ esac
+
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int i = -1;
+volatile long double ld;
+int main ()
+{
+ ld += i * 1.0L;
+ if (ld > 0)
+ return 1;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_run "$LINENO"; then :
+ gl_cv_func_itold_works=yes
+else
+ gl_cv_func_itold_works=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_itold_works" >&5
+$as_echo "$gl_cv_func_itold_works" >&6; }
+ case "$gl_cv_func_itold_works" in
+ *no)
+ REPLACE_ITOLD=1
+ FLOAT_H=float.h
+ ;;
+ esac
+
if test -n "$FLOAT_H"; then
@@ -20622,13 +21363,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'float.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'float.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/float.h#{
- s#.*"\(.*/float.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
fi
@@ -20660,6 +21412,7 @@ else
fi
+
if test $REPLACE_FLOAT_LDBL = 1; then
@@ -20672,6 +21425,18 @@ if test $REPLACE_FLOAT_LDBL = 1; then
gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
fi
+if test $REPLACE_ITOLD = 1; then
+
+
+
+
+
+
+
+
+ gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
+
+fi
@@ -21094,6 +21859,13 @@ $as_echo "$gl_cv_func_fseeko" >&6; }
fi
+
+ :
+
+
+
+
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fflush works on input streams" >&5
$as_echo_n "checking whether fflush works on input streams... " >&6; }
if test "${gl_cv_func_fflush_stdin+set}" = set; then :
@@ -21107,7 +21879,11 @@ else
/* end confdefs.h. */
#include <stdio.h>
-#include <unistd.h>
+#if HAVE_UNISTD_H
+# include <unistd.h>
+#else /* on Windows with MSVC */
+# include <io.h>
+#endif
int
main ()
@@ -21203,6 +21979,44 @@ $as_echo "#define GNULIB_TEST_FSEEKO 1" >>confdefs.h
+ if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
+ REPLACE_FSTAT=1
+ fi
+
+
+if test $REPLACE_FSTAT = 1; then
+
+
+
+
+
+
+
+
+ gl_LIBOBJS="$gl_LIBOBJS fstat.$ac_objext"
+
+
+
+
+fi
+
+
+
+
+
+ GNULIB_FSTAT=1
+
+
+
+
+
+$as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
+
+
+
+
+
+
:
@@ -22152,6 +22966,9 @@ if test $HAVE_GETDTABLESIZE = 0; then
gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
+
+
+
fi
@@ -22581,9 +23398,9 @@ if test $HAVE_GETPASS = 0; then
ac_fn_c_check_decl "$LINENO" "__fsetlocking" "ac_cv_have_decl___fsetlocking" "#include <stdio.h>
- #if HAVE_STDIO_EXT_H
- #include <stdio_ext.h>
- #endif
+ #if HAVE_STDIO_EXT_H
+ #include <stdio_ext.h>
+ #endif
"
if test "x$ac_cv_have_decl___fsetlocking" = x""yes; then :
ac_have_decl=1
@@ -23019,9 +23836,68 @@ done
- HAVE_INET_NTOP=1
- gl_save_LIBS=$LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
+
+
+
+
+ HAVE_INET_NTOP=1
+ INET_NTOP_LIB=
+
+
+
+
+ :
+
+
+
+
+
+ if test $ac_cv_header_sys_socket_h != yes; then
+ for ac_header in winsock2.h
+do :
+ ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
+if test "x$ac_cv_header_winsock2_h" = x""yes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_WINSOCK2_H 1
+_ACEOF
+
+fi
+
+done
+
+ fi
+ if test "$ac_cv_header_winsock2_h" = yes; then
+ HAVE_WINSOCK2_H=1
+ UNISTD_H_HAVE_WINSOCK2_H=1
+ SYS_IOCTL_H_HAVE_WINSOCK2_H=1
+ else
+ HAVE_WINSOCK2_H=0
+ fi
+
+
+ if test $HAVE_WINSOCK2_H = 1; then
+ ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
+"
+if test "x$ac_cv_have_decl_inet_ntop" = x""yes; then :
+ ac_have_decl=1
+else
+ ac_have_decl=0
+fi
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_DECL_INET_NTOP $ac_have_decl
+_ACEOF
+
+ if test $ac_cv_have_decl_inet_ntop = yes; then
+ REPLACE_INET_NTOP=1
+ INET_NTOP_LIB="-lws2_32"
+ else
+ HAVE_DECL_INET_NTOP=0
+ HAVE_INET_NTOP=0
+ fi
+ else
+ gl_save_LIBS=$LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
$as_echo_n "checking for library containing inet_ntop... " >&6; }
if test "${ac_cv_search_inet_ntop+set}" = set; then :
$as_echo_n "(cached) " >&6
@@ -23045,7 +23921,7 @@ return inet_ntop ();
return 0;
}
_ACEOF
-for ac_lib in '' nsl; do
+for ac_lib in '' nsl resolv; do
if test -z "$ac_lib"; then
ac_res="none required"
else
@@ -23087,20 +23963,18 @@ _ACEOF
fi
done
- if test $ac_cv_func_inet_ntop = no; then
- HAVE_INET_NTOP=0
- fi
+ if test $ac_cv_func_inet_ntop = no; then
+ HAVE_INET_NTOP=0
+ fi
fi
- LIBS=$gl_save_LIBS
-
- INET_NTOP_LIB=
- if test "$ac_cv_search_inet_ntop" != "no" &&
- test "$ac_cv_search_inet_ntop" != "none required"; then
- INET_NTOP_LIB="$ac_cv_search_inet_ntop"
- fi
+ LIBS=$gl_save_LIBS
+ if test "$ac_cv_search_inet_ntop" != "no" \
+ && test "$ac_cv_search_inet_ntop" != "none required"; then
+ INET_NTOP_LIB="$ac_cv_search_inet_ntop"
+ fi
:
@@ -23109,10 +23983,10 @@ fi
- ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
- #if HAVE_NETDB_H
- # include <netdb.h>
- #endif
+ ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
+ #if HAVE_NETDB_H
+ # include <netdb.h>
+ #endif
"
if test "x$ac_cv_have_decl_inet_ntop" = x""yes; then :
@@ -23125,12 +23999,13 @@ cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_INET_NTOP $ac_have_decl
_ACEOF
- if test $ac_cv_have_decl_inet_ntop = no; then
- HAVE_DECL_INET_NTOP=0
-
+ if test $ac_cv_have_decl_inet_ntop = no; then
+ HAVE_DECL_INET_NTOP=0
+ fi
fi
-if test $HAVE_INET_NTOP = 0; then
+
+if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then
@@ -23158,9 +24033,68 @@ fi
- HAVE_INET_PTON=1
- gl_save_LIBS=$LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
+
+
+
+
+ HAVE_INET_PTON=1
+ INET_PTON_LIB=
+
+
+
+
+ :
+
+
+
+
+
+ if test $ac_cv_header_sys_socket_h != yes; then
+ for ac_header in winsock2.h
+do :
+ ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
+if test "x$ac_cv_header_winsock2_h" = x""yes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_WINSOCK2_H 1
+_ACEOF
+
+fi
+
+done
+
+ fi
+ if test "$ac_cv_header_winsock2_h" = yes; then
+ HAVE_WINSOCK2_H=1
+ UNISTD_H_HAVE_WINSOCK2_H=1
+ SYS_IOCTL_H_HAVE_WINSOCK2_H=1
+ else
+ HAVE_WINSOCK2_H=0
+ fi
+
+
+ if test $HAVE_WINSOCK2_H = 1; then
+ ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <ws2tcpip.h>
+"
+if test "x$ac_cv_have_decl_inet_pton" = x""yes; then :
+ ac_have_decl=1
+else
+ ac_have_decl=0
+fi
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_DECL_INET_PTON $ac_have_decl
+_ACEOF
+
+ if test $ac_cv_have_decl_inet_pton = yes; then
+ REPLACE_INET_PTON=1
+ INET_PTON_LIB="-lws2_32"
+ else
+ HAVE_DECL_INET_PTON=0
+ HAVE_INET_PTON=0
+ fi
+ else
+ gl_save_LIBS=$LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
$as_echo_n "checking for library containing inet_pton... " >&6; }
if test "${ac_cv_search_inet_pton+set}" = set; then :
$as_echo_n "(cached) " >&6
@@ -23184,7 +24118,7 @@ return inet_pton ();
return 0;
}
_ACEOF
-for ac_lib in '' nsl; do
+for ac_lib in '' nsl resolv; do
if test -z "$ac_lib"; then
ac_res="none required"
else
@@ -23226,20 +24160,18 @@ _ACEOF
fi
done
- if test $ac_cv_func_inet_pton = no; then
- HAVE_INET_PTON=0
- fi
+ if test $ac_cv_func_inet_pton = no; then
+ HAVE_INET_PTON=0
+ fi
fi
- LIBS=$gl_save_LIBS
-
- INET_PTON_LIB=
- if test "$ac_cv_search_inet_pton" != "no" &&
- test "$ac_cv_search_inet_pton" != "none required"; then
- INET_PTON_LIB="$ac_cv_search_inet_pton"
- fi
+ LIBS=$gl_save_LIBS
+ if test "$ac_cv_search_inet_pton" != "no" \
+ && test "$ac_cv_search_inet_pton" != "none required"; then
+ INET_PTON_LIB="$ac_cv_search_inet_pton"
+ fi
:
@@ -23248,10 +24180,10 @@ fi
- ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <arpa/inet.h>
- #if HAVE_NETDB_H
- # include <netdb.h>
- #endif
+ ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <arpa/inet.h>
+ #if HAVE_NETDB_H
+ # include <netdb.h>
+ #endif
"
if test "x$ac_cv_have_decl_inet_pton" = x""yes; then :
@@ -23264,12 +24196,13 @@ cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_INET_PTON $ac_have_decl
_ACEOF
- if test $ac_cv_have_decl_inet_pton = no; then
- HAVE_DECL_INET_PTON=0
-
+ if test $ac_cv_have_decl_inet_pton = no; then
+ HAVE_DECL_INET_PTON=0
+ fi
fi
-if test $HAVE_INET_PTON = 0; then
+
+if test $HAVE_INET_PTON = 0 || test $REPLACE_INET_NTOP = 1; then
@@ -23430,6 +24363,13 @@ LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_ba
+
+ :
+
+
+
+
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
$as_echo_n "checking whether lseek detects pipes... " >&6; }
if test "${gl_cv_func_lseek_pipe+set}" = set; then :
@@ -23441,7 +24381,12 @@ else
#include <sys/types.h> /* for off_t */
#include <stdio.h> /* for SEEK_CUR */
-#include <unistd.h>
+#if HAVE_UNISTD_H
+# include <unistd.h>
+#else /* on Windows with MSVC */
+# include <io.h>
+#endif
+
int
main ()
{
@@ -25337,6 +26282,51 @@ if test $REPLACE_MKTIME = 1; then
fi
+ :
+
+
+
+
+
+ if test $ac_cv_func__set_invalid_parameter_handler = yes; then
+ HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
+
+$as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
+
+ else
+ HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
+ fi
+
+
+if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
+
+
+
+
+
+
+
+
+ gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
+
+fi
+
+
+
+if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
+
+
+
+
+
+
+
+
+ gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
+
+fi
+
+
@@ -25374,13 +26364,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'netdb.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'netdb.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_netdb_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/netdb.h#{
- s#.*"\(.*/netdb.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
else
gl_cv_next_netdb_h='<'netdb.h'>'
fi
@@ -25493,13 +26494,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'netinet/in.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'netinet/in.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_netinet_in_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/netinet/in.h#{
- s#.*"\(.*/netinet/in.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
else
gl_cv_next_netinet_in_h='<'netinet/in.h'>'
fi
@@ -25944,7 +26956,8 @@ $as_echo "#define GNULIB_TEST_PIPE2 1" >>confdefs.h
- if test "$ac_cv_header_poll_h" = no; then
+
+ if test $ac_cv_header_poll_h = no; then
ac_cv_func_poll=no
gl_cv_func_poll=no
else
@@ -26039,6 +27052,34 @@ $as_echo "#define HAVE_POLL 1" >>confdefs.h
fi
+ LIB_POLL="$LIBSOCKET"
+ if test $HAVE_POLL = 0 || test $REPLACE_POLL = 1; then
+ case "$host_os" in
+ mingw*)
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+int
+main ()
+{
+ MsgWaitForMultipleObjects (0, NULL, 0, 0, 0);
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+
+else
+ LIB_POLL="$LIB_POLL -luser32"
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ ;;
+ esac
+ fi
+
+
if test $HAVE_POLL = 0 || test $REPLACE_POLL = 1; then
@@ -26131,13 +27172,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'poll.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'poll.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_poll_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/poll.h#{
- s#.*"\(.*/poll.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
else
gl_cv_next_poll_h='<'poll.h'>'
fi
@@ -26257,13 +27309,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'pthread.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'pthread.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_pthread_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/pthread.h#{
- s#.*"\(.*/pthread.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
else
gl_cv_next_pthread_h='<'pthread.h'>'
fi
@@ -26404,6 +27467,8 @@ $as_echo "$gl_cv_search_pthread_join" >&6; }
+
+
:
@@ -26699,6 +27764,85 @@ $as_echo "#define GNULIB_TEST_PTHREAD_SIGMASK 1" >>confdefs.h
+
+ for ac_func in raise
+do :
+ ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
+if test "x$ac_cv_func_raise" = x""yes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_RAISE 1
+_ACEOF
+
+fi
+done
+
+ if test $ac_cv_func_raise = no; then
+ HAVE_RAISE=0
+ else
+ if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
+ REPLACE_RAISE=1
+ fi
+
+
+
+
+ if test $gl_cv_type_sigset_t = yes; then
+ ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
+if test "x$ac_cv_func_sigprocmask" = x""yes; then :
+ gl_cv_func_sigprocmask=1
+fi
+
+ fi
+ if test -z "$gl_cv_func_sigprocmask"; then
+ HAVE_POSIX_SIGNALBLOCKING=0
+ fi
+
+ if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
+
+
+
+
+ if test $gl_cv_header_signal_h_SIGPIPE != yes; then
+ REPLACE_RAISE=1
+ fi
+
+ fi
+
+ fi
+
+if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
+
+
+
+
+
+
+
+
+ gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
+
+
+
+
+fi
+
+
+
+
+
+ GNULIB_RAISE=1
+
+
+
+
+
+$as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
+
+
+
+
+
+
for ac_header in random.h
do :
ac_fn_c_check_header_compile "$LINENO" "random.h" "ac_cv_header_random_h" "$ac_includes_default
@@ -27015,6 +28159,7 @@ $as_echo "#define GNULIB_TEST_RECV 1" >>confdefs.h
#include <sched.h>
struct sched_param a;
int b[] = { SCHED_FIFO, SCHED_RR, SCHED_OTHER };
+ pid_t t1;
int
main ()
@@ -27065,13 +28210,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'sched.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'sched.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_sched_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/sched.h#{
- s#.*"\(.*/sched.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
else
gl_cv_next_sched_h='<'sched.h'>'
fi
@@ -27113,6 +28269,8 @@ fi
+
+
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
@@ -27189,6 +28347,34 @@ $as_echo "$gl_cv_func_select_supports0" >&6; }
esac
fi
+ LIB_SELECT="$LIBSOCKET"
+ if test $REPLACE_SELECT = 1; then
+ case "$host_os" in
+ mingw*)
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+int
+main ()
+{
+ MsgWaitForMultipleObjects (0, NULL, 0, 0, 0);
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+
+else
+ LIB_SELECT="$LIB_SELECT -luser32"
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ ;;
+ esac
+ fi
+
+
if test $REPLACE_SELECT = 1; then
@@ -27505,13 +28691,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'signal.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'signal.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/signal.h#{
- s#.*"\(.*/signal.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
fi
@@ -27549,6 +28746,8 @@ fi
+
+
ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
#include <signal.h>
@@ -27604,7 +28803,9 @@ if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
- :
+
+
+
fi
@@ -27843,6 +29044,7 @@ done
if test $ac_cv_func_snprintf = yes; then
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
$as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
if test "${gl_cv_func_snprintf_size1+set}" = set; then :
@@ -27856,10 +29058,24 @@ else
/* end confdefs.h. */
#include <stdio.h>
+#if HAVE_SNPRINTF
+# define my_snprintf snprintf
+#else
+# include <stdarg.h>
+static int my_snprintf (char *buf, int size, const char *format, ...)
+{
+ va_list args;
+ int ret;
+ va_start (args, format);
+ ret = vsnprintf (buf, size, format, args);
+ va_end (args);
+ return ret;
+}
+#endif
int main()
{
static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
- snprintf (buf, 1, "%d", 12345);
+ my_snprintf (buf, 1, "%d", 12345);
return buf[1] != 'E';
}
_ACEOF
@@ -28536,13 +29752,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdarg.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'stdarg.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/stdarg.h#{
- s#.*"\(.*/stdarg.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
fi
@@ -28725,13 +29952,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stddef.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'stddef.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/stddef.h#{
- s#.*"\(.*/stddef.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
fi
@@ -28784,13 +30022,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdio.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'stdio.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/stdio.h#{
- s#.*"\(.*/stdio.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
fi
@@ -28916,13 +30165,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdlib.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'stdlib.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/stdlib.h#{
- s#.*"\(.*/stdlib.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
fi
@@ -29000,6 +30260,88 @@ $as_echo "#define GNULIB_TEST_STPCPY 1" >>confdefs.h
+ for ac_func in strcasecmp
+do :
+ ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
+if test "x$ac_cv_func_strcasecmp" = x""yes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_STRCASECMP 1
+_ACEOF
+
+fi
+done
+
+ if test $ac_cv_func_strcasecmp = no; then
+ HAVE_STRCASECMP=0
+ fi
+
+
+
+ for ac_func in strncasecmp
+do :
+ ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
+if test "x$ac_cv_func_strncasecmp" = x""yes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_STRNCASECMP 1
+_ACEOF
+
+fi
+done
+
+ if test $ac_cv_func_strncasecmp = yes; then
+ HAVE_STRNCASECMP=1
+ else
+ HAVE_STRNCASECMP=0
+ fi
+ ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
+if test "x$ac_cv_have_decl_strncasecmp" = x""yes; then :
+ ac_have_decl=1
+else
+ ac_have_decl=0
+fi
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_DECL_STRNCASECMP $ac_have_decl
+_ACEOF
+
+ if test $ac_cv_have_decl_strncasecmp = no; then
+ HAVE_DECL_STRNCASECMP=0
+ fi
+
+
+if test $HAVE_STRCASECMP = 0; then
+
+
+
+
+
+
+
+
+ gl_LIBOBJS="$gl_LIBOBJS strcasecmp.$ac_objext"
+
+
+ :
+
+fi
+if test $HAVE_STRNCASECMP = 0; then
+
+
+
+
+
+
+
+
+ gl_LIBOBJS="$gl_LIBOBJS strncasecmp.$ac_objext"
+
+
+ :
+
+fi
+
+
+
for ac_func in strchrnul
do :
@@ -29352,6 +30694,13 @@ if test $HAVE_DECL_STRERROR_R = 0 || test $REPLACE_STRERROR_R = 1; then
+ :
+
+
+
+
+
+
fi
@@ -29873,13 +31222,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'sys/ioctl.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'sys/ioctl.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_sys_ioctl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/sys/ioctl.h#{
- s#.*"\(.*/sys/ioctl.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
else
gl_cv_next_sys_ioctl_h='<'sys/ioctl.h'>'
fi
@@ -30027,13 +31387,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'sys/select.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'sys/select.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/sys/select.h#{
- s#.*"\(.*/sys/select.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
else
gl_cv_next_sys_select_h='<'sys/select.h'>'
fi
@@ -30224,13 +31595,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'sys/socket.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'sys/socket.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/sys/socket.h#{
- s#.*"\(.*/sys/socket.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
else
gl_cv_next_sys_socket_h='<'sys/socket.h'>'
fi
@@ -30423,13 +31805,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'sys/stat.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'sys/stat.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/sys/stat.h#{
- s#.*"\(.*/sys/stat.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
else
gl_cv_next_sys_stat_h='<'sys/stat.h'>'
fi
@@ -30454,6 +31847,8 @@ $as_echo "$gl_cv_next_sys_stat_h" >&6; }
+
+
ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
#include <sys/stat.h>
"
@@ -30481,6 +31876,78 @@ fi
+
+
+ if test $gl_cv_have_include_next = yes; then
+ gl_cv_next_sys_types_h='<'sys/types.h'>'
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
+$as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
+if test "${gl_cv_next_sys_types_h+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <sys/types.h>
+
+_ACEOF
+ case "$host_os" in
+ aix*) gl_absname_cpp="$ac_cpp -C" ;;
+ *) gl_absname_cpp="$ac_cpp" ;;
+ esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'sys/types.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'sys/types.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
+ gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
+ sed -n "$gl_absolute_header_sed"`'"'
+
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
+$as_echo "$gl_cv_next_sys_types_h" >&6; }
+ fi
+ NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
+
+ if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
+ # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
+ gl_next_as_first_directive='<'sys/types.h'>'
+ else
+ # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
+ gl_next_as_first_directive=$gl_cv_next_sys_types_h
+ fi
+ NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
:
@@ -30511,13 +31978,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'sys/uio.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'sys/uio.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_sys_uio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/sys/uio.h#{
- s#.*"\(.*/sys/uio.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
else
gl_cv_next_sys_uio_h='<'sys/uio.h'>'
fi
@@ -30588,13 +32066,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'sys/utsname.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'sys/utsname.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_sys_utsname_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/sys/utsname.h#{
- s#.*"\(.*/sys/utsname.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
else
gl_cv_next_sys_utsname_h='<'sys/utsname.h'>'
fi
@@ -30686,13 +32175,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'sys/wait.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'sys/wait.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_sys_wait_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/sys/wait.h#{
- s#.*"\(.*/sys/wait.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
else
gl_cv_next_sys_wait_h='<'sys/wait.h'>'
fi
@@ -30722,6 +32222,8 @@ $as_echo "$gl_cv_next_sys_wait_h" >&6; }
+
+
:
@@ -30764,13 +32266,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'termios.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'termios.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_termios_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/termios.h#{
- s#.*"\(.*/termios.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
else
gl_cv_next_termios_h='<'termios.h'>'
fi
@@ -30814,6 +32327,8 @@ $as_echo "$gl_cv_next_termios_h" >&6; }
+
+
:
@@ -31038,13 +32553,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'unistd.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'unistd.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/unistd.h#{
- s#.*"\(.*/unistd.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
else
gl_cv_next_unistd_h='<'unistd.h'>'
fi
@@ -31081,6 +32607,8 @@ $as_echo "$gl_cv_next_unistd_h" >&6; }
+
+
:
@@ -31345,6 +32873,7 @@ done
if test $ac_cv_func_vsnprintf = yes; then
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
$as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
if test "${gl_cv_func_snprintf_size1+set}" = set; then :
@@ -31358,10 +32887,24 @@ else
/* end confdefs.h. */
#include <stdio.h>
+#if HAVE_SNPRINTF
+# define my_snprintf snprintf
+#else
+# include <stdarg.h>
+static int my_snprintf (char *buf, int size, const char *format, ...)
+{
+ va_list args;
+ int ret;
+ va_start (args, format);
+ ret = vsnprintf (buf, size, format, args);
+ va_end (args);
+ return ret;
+}
+#endif
int main()
{
static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
- snprintf (buf, 1, "%d", 12345);
+ my_snprintf (buf, 1, "%d", 12345);
return buf[1] != 'E';
}
_ACEOF
@@ -31561,13 +33104,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'wchar.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'wchar.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/wchar.h#{
- s#.*"\(.*/wchar.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
else
gl_cv_next_wchar_h='<'wchar.h'>'
fi
@@ -31674,13 +33228,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'wctype.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'wctype.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/wctype.h#{
- s#.*"\(.*/wctype.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
else
gl_cv_next_wctype_h='<'wctype.h'>'
fi
@@ -32658,6 +34223,50 @@ $as_echo "$gt_cv_locale_tr_utf8" >&6; }
+
+
+ if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
+ REPLACE_DUP=1
+ fi
+
+
+if test $REPLACE_DUP = 1; then
+
+
+
+
+
+
+
+
+ gltests_LIBOBJS="$gltests_LIBOBJS dup.$ac_objext"
+
+
+
+
+fi
+
+
+
+
+
+ if test "$GNULIB_DUP" != 1; then
+ if test "$GNULIB_DUP" = 0; then
+ GNULIB_DUP=$gl_module_indicator_condition
+ else
+ GNULIB_DUP="($GNULIB_DUP || $gl_module_indicator_condition)"
+ fi
+ fi
+
+
+
+
+
+$as_echo "#define GNULIB_TEST_DUP 1" >>confdefs.h
+
+
+
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
$as_echo_n "checking for error_at_line... " >&6; }
if test "${ac_cv_lib_error_at_line+set}" = set; then :
@@ -32727,6 +34336,155 @@ fi
+ if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
+ REPLACE_FDOPEN=1
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopen sets errno" >&5
+$as_echo_n "checking whether fdopen sets errno... " >&6; }
+if test "${gl_cv_func_fdopen_works+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+
+ if test "$cross_compiling" = yes; then :
+ case "$host_os" in
+ mingw*) gl_cv_func_fdopen_works="guessing no" ;;
+ *) gl_cv_func_fdopen_works="guessing yes" ;;
+ esac
+
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include <stdio.h>
+#include <errno.h>
+int
+main (void)
+{
+ FILE *fp;
+ errno = 0;
+ fp = fdopen (-1, "r");
+ if (fp != NULL)
+ return 1;
+ if (errno == 0)
+ return 2;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_run "$LINENO"; then :
+ gl_cv_func_fdopen_works=yes
+else
+ gl_cv_func_fdopen_works=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_fdopen_works" >&5
+$as_echo "$gl_cv_func_fdopen_works" >&6; }
+ case "$gl_cv_func_fdopen_works" in
+ *no) REPLACE_FDOPEN=1 ;;
+ esac
+ fi
+
+if test $REPLACE_FDOPEN = 1; then
+
+
+
+
+
+
+
+
+ gltests_LIBOBJS="$gltests_LIBOBJS fdopen.$ac_objext"
+
+
+fi
+
+
+
+
+
+ if test "$GNULIB_FDOPEN" != 1; then
+ if test "$GNULIB_FDOPEN" = 0; then
+ GNULIB_FDOPEN=$gl_module_indicator_condition
+ else
+ GNULIB_FDOPEN="($GNULIB_FDOPEN || $gl_module_indicator_condition)"
+ fi
+ fi
+
+
+
+
+
+$as_echo "#define GNULIB_TEST_FDOPEN 1" >>confdefs.h
+
+
+
+
+
+
+
+
+
+
+ :
+
+
+
+
+
+ if test $ac_cv_func_ftruncate = no; then
+ HAVE_FTRUNCATE=0
+ fi
+
+if test $HAVE_FTRUNCATE = 0; then
+
+
+
+
+
+
+
+
+ gltests_LIBOBJS="$gltests_LIBOBJS ftruncate.$ac_objext"
+
+
+
+ for ac_func in chsize
+do :
+ ac_fn_c_check_func "$LINENO" "chsize" "ac_cv_func_chsize"
+if test "x$ac_cv_func_chsize" = x""yes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_CHSIZE 1
+_ACEOF
+
+fi
+done
+
+
+fi
+
+
+
+
+
+ if test "$GNULIB_FTRUNCATE" != 1; then
+ if test "$GNULIB_FTRUNCATE" = 0; then
+ GNULIB_FTRUNCATE=$gl_module_indicator_condition
+ else
+ GNULIB_FTRUNCATE="($GNULIB_FTRUNCATE || $gl_module_indicator_condition)"
+ fi
+ fi
+
+
+
+
+
+$as_echo "#define GNULIB_TEST_FTRUNCATE 1" >>confdefs.h
+
+
@@ -33797,13 +35555,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'locale.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'locale.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_locale_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/locale.h#{
- s#.*"\(.*/locale.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
fi
@@ -35805,6 +37574,10 @@ $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
+ if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
+ REPLACE_READ=1
+ fi
+
@@ -35824,6 +37597,9 @@ if test $REPLACE_READ = 1; then
gltests_LIBOBJS="$gltests_LIBOBJS read.$ac_objext"
+
+
+
fi
@@ -36651,13 +38427,24 @@ _ACEOF
aix*) gl_absname_cpp="$ac_cpp -C" ;;
*) gl_absname_cpp="$ac_cpp" ;;
esac
+
+ case "$host_os" in
+ mingw*)
+ gl_dirsep_regex='[/\\]'
+ ;;
+ *)
+ gl_dirsep_regex='/'
+ ;;
+ esac
+
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'spawn.h|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'spawn.h\)".*|\1|
+ s|^/[^/]|//&|
+ p
+ q
+ }'
gl_cv_next_spawn_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
- sed -n '\#/spawn.h#{
- s#.*"\(.*/spawn.h\)".*#\1#
- s#^/[^/]#//&#
- p
- q
- }'`'"'
+ sed -n "$gl_absolute_header_sed"`'"'
else
gl_cv_next_spawn_h='<'spawn.h'>'
fi
@@ -36731,6 +38518,10 @@ fi
+
+
+
+
:
@@ -37191,11 +38982,7 @@ extern
#ifdef __cplusplus
"C"
#endif
-#if defined(__STDC__) || defined(__cplusplus)
int unsetenv (const char *name);
-#else
-int unsetenv();
-#endif
int
main ()
@@ -38421,6 +40208,10 @@ $as_echo "#define GNULIB_TEST_WCTOMB 1" >>confdefs.h
+ if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
+ REPLACE_WRITE=1
+ fi
+
@@ -38448,6 +40239,9 @@ if test $REPLACE_WRITE = 1; then
gltests_LIBOBJS="$gltests_LIBOBJS write.$ac_objext"
+
+
+
fi
@@ -46381,11 +48175,6 @@ _ACEOF
-
-
-
-
-
:
@@ -46432,14 +48221,6 @@ _ACEOF
-
-
-if test $ac_cv_func_fdatasync = no; then
-
-$as_echo "#define fdatasync fsync" >>confdefs.h
-
-fi
-
old_LIBS=$LIBS
LIBS="$LIBS $LIB_PTHREAD"
for ac_func in pthread_mutexattr_init
@@ -48325,12 +50106,13 @@ if test "$with_lxc" = "yes" || test "$with_lxc" = "check"; then
/* end confdefs.h. */
#include <sched.h>
+ #include <linux/loop.h>
int
main ()
{
- unshare (1);
+ unshare (!LO_FLAGS_AUTOCLEAR);
;
return 0;
@@ -57139,7 +58921,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by libvirt $as_me 0.9.6, which was
+This file was extended by libvirt $as_me 0.9.7, which was
generated by GNU Autoconf 2.66. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -57210,7 +58992,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
-libvirt config.status 0.9.6
+libvirt config.status 0.9.7
configured by $0, generated by GNU Autoconf 2.66,
with options \\"\$ac_cs_config\\"