"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "configure" between
le-1.16.5.tar.gz and le-1.16.6.tar.gz

About: le is a terminal text editor (many block operations with stream and rectangular blocks, tunable syntax highlighting, etc.).

configure  (le-1.16.5):configure  (le-1.16.6)
#! /bin/sh #! /bin/sh
# Guess values for system-dependent variables and create Makefiles. # Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for le 1.16.5. # Generated by GNU Autoconf 2.69 for le 1.16.6.
# #
# Report bugs to <le@uniyar.ac.ru>. # Report bugs to <le@uniyar.ac.ru>.
# #
# #
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
# #
# #
# This configure script is free software; the Free Software Foundation # This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it. # gives unlimited permission to copy, distribute and modify it.
## -------------------- ## ## -------------------- ##
skipping to change at line 576 skipping to change at line 576
ac_config_libobj_dir=. ac_config_libobj_dir=.
LIBOBJS= LIBOBJS=
cross_compiling=no cross_compiling=no
subdirs= subdirs=
MFLAGS= MFLAGS=
MAKEFLAGS= MAKEFLAGS=
# Identity of this package. # Identity of this package.
PACKAGE_NAME='le' PACKAGE_NAME='le'
PACKAGE_TARNAME='le' PACKAGE_TARNAME='le'
PACKAGE_VERSION='1.16.5' PACKAGE_VERSION='1.16.6'
PACKAGE_STRING='le 1.16.5' PACKAGE_STRING='le 1.16.6'
PACKAGE_BUGREPORT='le@uniyar.ac.ru' PACKAGE_BUGREPORT='le@uniyar.ac.ru'
PACKAGE_URL='' PACKAGE_URL=''
ac_config_libobj_dir=lib ac_config_libobj_dir=lib
ac_unique_file="src/edit.cc" ac_unique_file="src/edit.cc"
# Factoring default headers for most tests. # Factoring default headers for most tests.
ac_includes_default="\ ac_includes_default="\
#include <stdio.h> #include <stdio.h>
#ifdef HAVE_SYS_TYPES_H #ifdef HAVE_SYS_TYPES_H
# include <sys/types.h> # include <sys/types.h>
skipping to change at line 619 skipping to change at line 619
#ifdef HAVE_INTTYPES_H #ifdef HAVE_INTTYPES_H
# include <inttypes.h> # include <inttypes.h>
#endif #endif
#ifdef HAVE_STDINT_H #ifdef HAVE_STDINT_H
# include <stdint.h> # include <stdint.h>
#endif #endif
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif" #endif"
gl_func_list= ac_func_list=
gl_header_list= ac_header_list=
gl_fnmatch_required=POSIX gl_fnmatch_required=POSIX
gl_getopt_required=POSIX gl_getopt_required=POSIX
ac_subst_vars='gltests_LTLIBOBJS ac_subst_vars='gltests_LTLIBOBJS
gltests_LIBOBJS gltests_LIBOBJS
gl_LTLIBOBJS gl_LTLIBOBJS
gl_LIBOBJS gl_LIBOBJS
am__EXEEXT_FALSE am__EXEEXT_FALSE
am__EXEEXT_TRUE am__EXEEXT_TRUE
LTLIBOBJS LTLIBOBJS
LIBOBJS LIBOBJS
skipping to change at line 925 skipping to change at line 925
LIB_POLL LIB_POLL
LIBSOCKET LIBSOCKET
NEXT_AS_FIRST_DIRECTIVE_POLL_H NEXT_AS_FIRST_DIRECTIVE_POLL_H
NEXT_POLL_H NEXT_POLL_H
HAVE_POLL_H HAVE_POLL_H
REPLACE_POLL REPLACE_POLL
HAVE_POLL HAVE_POLL
GNULIB_POLL GNULIB_POLL
APPLE_UNIVERSAL_BUILD APPLE_UNIVERSAL_BUILD
UNDEFINE_STRTOK_R UNDEFINE_STRTOK_R
REPLACE_STRTOK_R
REPLACE_STRSIGNAL REPLACE_STRSIGNAL
REPLACE_STRNLEN
REPLACE_STRNDUP
REPLACE_STRNCAT
REPLACE_STRERROR_R REPLACE_STRERROR_R
REPLACE_STRERROR REPLACE_STRERROR
REPLACE_STRCHRNUL REPLACE_STRTOK_R
REPLACE_STRCASESTR REPLACE_STRCASESTR
REPLACE_STRSTR REPLACE_STRSTR
REPLACE_STRNLEN
REPLACE_STRNDUP
REPLACE_STRNCAT
REPLACE_STRDUP REPLACE_STRDUP
REPLACE_STRCHRNUL
REPLACE_STPNCPY REPLACE_STPNCPY
REPLACE_MEMMEM REPLACE_MEMMEM
REPLACE_MEMCHR REPLACE_MEMCHR
HAVE_STRVERSCMP HAVE_STRVERSCMP
HAVE_DECL_STRSIGNAL HAVE_DECL_STRSIGNAL
HAVE_DECL_STRERROR_R HAVE_DECL_STRERROR_R
HAVE_DECL_STRTOK_R HAVE_DECL_STRTOK_R
HAVE_STRCASESTR HAVE_STRCASESTR
HAVE_STRSEP HAVE_STRSEP
HAVE_STRPBRK HAVE_STRPBRK
skipping to change at line 1004 skipping to change at line 1004
GNULIB_MEMMEM GNULIB_MEMMEM
GNULIB_MEMCHR GNULIB_MEMCHR
GNULIB_FFSLL GNULIB_FFSLL
GNULIB_FFSL GNULIB_FFSL
GNULIB_EXPLICIT_BZERO GNULIB_EXPLICIT_BZERO
LOCALE_FR_UTF8 LOCALE_FR_UTF8
LOCALE_ZH_CN LOCALE_ZH_CN
LOCALE_JA LOCALE_JA
REPLACE_WCTOMB REPLACE_WCTOMB
REPLACE_UNSETENV REPLACE_UNSETENV
REPLACE_STRTOLD
REPLACE_STRTOD REPLACE_STRTOD
REPLACE_SETSTATE
REPLACE_SETENV REPLACE_SETENV
REPLACE_REALPATH REPLACE_REALPATH
REPLACE_REALLOC REPLACE_REALLOC
REPLACE_RANDOM_R REPLACE_RANDOM_R
REPLACE_RANDOM
REPLACE_QSORT_R REPLACE_QSORT_R
REPLACE_PUTENV REPLACE_PUTENV
REPLACE_PTSNAME_R REPLACE_PTSNAME_R
REPLACE_PTSNAME REPLACE_PTSNAME
REPLACE_MKSTEMP REPLACE_MKSTEMP
REPLACE_MBTOWC REPLACE_MBTOWC
REPLACE_MALLOC REPLACE_MALLOC
REPLACE_INITSTATE
REPLACE_CANONICALIZE_FILE_NAME REPLACE_CANONICALIZE_FILE_NAME
REPLACE_CALLOC REPLACE_CALLOC
HAVE_DECL_UNSETENV HAVE_DECL_UNSETENV
HAVE_UNLOCKPT HAVE_UNLOCKPT
HAVE_SYS_LOADAVG_H HAVE_SYS_LOADAVG_H
HAVE_STRUCT_RANDOM_DATA HAVE_STRUCT_RANDOM_DATA
HAVE_STRTOULL HAVE_STRTOULL
HAVE_STRTOLL HAVE_STRTOLL
HAVE_STRTOLD
HAVE_STRTOD HAVE_STRTOD
HAVE_DECL_SETSTATE HAVE_DECL_SETSTATE
HAVE_SETSTATE
HAVE_DECL_SETENV HAVE_DECL_SETENV
HAVE_SETENV HAVE_SETENV
HAVE_SECURE_GETENV HAVE_SECURE_GETENV
HAVE_RPMATCH HAVE_RPMATCH
HAVE_REALPATH HAVE_REALPATH
HAVE_REALLOCARRAY HAVE_REALLOCARRAY
HAVE_RANDOM_R HAVE_RANDOM_R
HAVE_RANDOM_H HAVE_RANDOM_H
HAVE_RANDOM HAVE_RANDOM
HAVE_QSORT_R HAVE_QSORT_R
HAVE_PTSNAME_R HAVE_PTSNAME_R
HAVE_PTSNAME HAVE_PTSNAME
HAVE_POSIX_OPENPT HAVE_POSIX_OPENPT
HAVE_MKSTEMPS HAVE_MKSTEMPS
HAVE_MKSTEMP HAVE_MKSTEMP
HAVE_MKOSTEMPS HAVE_MKOSTEMPS
HAVE_MKOSTEMP HAVE_MKOSTEMP
HAVE_MKDTEMP HAVE_MKDTEMP
HAVE_MBTOWC
HAVE_DECL_INITSTATE HAVE_DECL_INITSTATE
HAVE_INITSTATE
HAVE_GRANTPT HAVE_GRANTPT
HAVE_GETSUBOPT HAVE_GETSUBOPT
HAVE_DECL_GETLOADAVG HAVE_DECL_GETLOADAVG
HAVE_CANONICALIZE_FILE_NAME HAVE_CANONICALIZE_FILE_NAME
HAVE_ATOLL HAVE_ATOLL
HAVE__EXIT HAVE__EXIT
GNULIB_WCTOMB GNULIB_WCTOMB
GNULIB_UNSETENV GNULIB_UNSETENV
GNULIB_UNLOCKPT GNULIB_UNLOCKPT
GNULIB_SYSTEM_POSIX GNULIB_SYSTEM_POSIX
GNULIB_STRTOULL GNULIB_STRTOULL
GNULIB_STRTOLL GNULIB_STRTOLL
GNULIB_STRTOLD
GNULIB_STRTOD GNULIB_STRTOD
GNULIB_SETENV GNULIB_SETENV
GNULIB_SECURE_GETENV GNULIB_SECURE_GETENV
GNULIB_RPMATCH GNULIB_RPMATCH
GNULIB_REALPATH GNULIB_REALPATH
GNULIB_REALLOC_POSIX GNULIB_REALLOC_POSIX
GNULIB_REALLOCARRAY GNULIB_REALLOCARRAY
GNULIB_RANDOM_R GNULIB_RANDOM_R
GNULIB_RANDOM GNULIB_RANDOM
GNULIB_QSORT_R GNULIB_QSORT_R
skipping to change at line 1086 skipping to change at line 1095
GNULIB_MBTOWC GNULIB_MBTOWC
GNULIB_MALLOC_POSIX GNULIB_MALLOC_POSIX
GNULIB_GRANTPT GNULIB_GRANTPT
GNULIB_GETSUBOPT GNULIB_GETSUBOPT
GNULIB_GETLOADAVG GNULIB_GETLOADAVG
GNULIB_CANONICALIZE_FILE_NAME GNULIB_CANONICALIZE_FILE_NAME
GNULIB_CALLOC_POSIX GNULIB_CALLOC_POSIX
GNULIB_ATOLL GNULIB_ATOLL
GNULIB__EXIT GNULIB__EXIT
LOCALCHARSET_TESTS_ENVIRONMENT LOCALCHARSET_TESTS_ENVIRONMENT
GLIBC21
GL_GENERATE_LIMITS_H_FALSE GL_GENERATE_LIMITS_H_FALSE
GL_GENERATE_LIMITS_H_TRUE GL_GENERATE_LIMITS_H_TRUE
LIMITS_H LIMITS_H
NEXT_AS_FIRST_DIRECTIVE_LIMITS_H NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
NEXT_LIMITS_H NEXT_LIMITS_H
LTLIBINTL LTLIBINTL
LIBINTL LIBINTL
GNULIB_GL_UNISTD_H_GETOPT GNULIB_GL_UNISTD_H_GETOPT
GETOPT_CDEFS_H GETOPT_CDEFS_H
GETOPT_H GETOPT_H
skipping to change at line 1142 skipping to change at line 1150
GNULIB_MKDIRAT GNULIB_MKDIRAT
GNULIB_LSTAT GNULIB_LSTAT
GNULIB_LCHMOD GNULIB_LCHMOD
GNULIB_FUTIMENS GNULIB_FUTIMENS
GNULIB_FSTATAT GNULIB_FSTATAT
GNULIB_FSTAT GNULIB_FSTAT
GNULIB_FCHMODAT GNULIB_FCHMODAT
GL_GENERATE_FNMATCH_H_FALSE GL_GENERATE_FNMATCH_H_FALSE
GL_GENERATE_FNMATCH_H_TRUE GL_GENERATE_FNMATCH_H_TRUE
FNMATCH_H FNMATCH_H
HAVE_FNMATCH_H
NEXT_AS_FIRST_DIRECTIVE_FNMATCH_H
NEXT_FNMATCH_H
REPLACE_FNMATCH
HAVE_FNMATCH
GNULIB_FNMATCH
NEXT_AS_FIRST_DIRECTIVE_FCNTL_H NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
NEXT_FCNTL_H NEXT_FCNTL_H
REPLACE_OPENAT REPLACE_OPENAT
REPLACE_OPEN REPLACE_OPEN
REPLACE_FCNTL REPLACE_FCNTL
HAVE_OPENAT HAVE_OPENAT
HAVE_FCNTL HAVE_FCNTL
GNULIB_OPENAT GNULIB_OPENAT
GNULIB_OPEN GNULIB_OPEN
GNULIB_NONBLOCKING GNULIB_NONBLOCKING
skipping to change at line 1219 skipping to change at line 1233
REPLACE_READLINKAT REPLACE_READLINKAT
REPLACE_READLINK REPLACE_READLINK
REPLACE_READ REPLACE_READ
REPLACE_PWRITE REPLACE_PWRITE
REPLACE_PREAD REPLACE_PREAD
REPLACE_LSEEK REPLACE_LSEEK
REPLACE_LINKAT REPLACE_LINKAT
REPLACE_LINK REPLACE_LINK
REPLACE_LCHOWN REPLACE_LCHOWN
REPLACE_ISATTY REPLACE_ISATTY
REPLACE_GETPASS
REPLACE_GETPAGESIZE REPLACE_GETPAGESIZE
REPLACE_GETGROUPS REPLACE_GETGROUPS
REPLACE_GETLOGIN_R REPLACE_GETLOGIN_R
REPLACE_GETDTABLESIZE REPLACE_GETDTABLESIZE
REPLACE_GETDOMAINNAME REPLACE_GETDOMAINNAME
REPLACE_GETCWD REPLACE_GETCWD
REPLACE_FTRUNCATE REPLACE_FTRUNCATE
REPLACE_FCHOWNAT REPLACE_FCHOWNAT
REPLACE_FACCESSAT
REPLACE_DUP2 REPLACE_DUP2
REPLACE_DUP REPLACE_DUP
REPLACE_CLOSE REPLACE_CLOSE
REPLACE_CHOWN REPLACE_CHOWN
HAVE_SYS_PARAM_H HAVE_SYS_PARAM_H
HAVE_OS_H HAVE_OS_H
HAVE_DECL_TTYNAME_R HAVE_DECL_TTYNAME_R
HAVE_DECL_TRUNCATE
HAVE_DECL_SETHOSTNAME HAVE_DECL_SETHOSTNAME
HAVE_DECL_GETUSERSHELL HAVE_DECL_GETUSERSHELL
HAVE_DECL_GETPAGESIZE HAVE_DECL_GETPAGESIZE
HAVE_DECL_GETLOGIN_R HAVE_DECL_GETLOGIN_R
HAVE_DECL_GETLOGIN HAVE_DECL_GETLOGIN
HAVE_DECL_GETDOMAINNAME HAVE_DECL_GETDOMAINNAME
HAVE_DECL_FDATASYNC HAVE_DECL_FDATASYNC
HAVE_DECL_FCHDIR HAVE_DECL_FCHDIR
HAVE_DECL_ENVIRON HAVE_DECL_ENVIRON
HAVE_USLEEP HAVE_USLEEP
HAVE_UNLINKAT HAVE_UNLINKAT
HAVE_TRUNCATE
HAVE_SYMLINKAT HAVE_SYMLINKAT
HAVE_SYMLINK HAVE_SYMLINK
HAVE_SLEEP HAVE_SLEEP
HAVE_SETHOSTNAME HAVE_SETHOSTNAME
HAVE_READLINKAT HAVE_READLINKAT
HAVE_READLINK HAVE_READLINK
HAVE_PWRITE HAVE_PWRITE
HAVE_PREAD HAVE_PREAD
HAVE_PIPE2 HAVE_PIPE2
HAVE_PIPE HAVE_PIPE
HAVE_LINKAT HAVE_LINKAT
HAVE_LINK HAVE_LINK
HAVE_LCHOWN HAVE_LCHOWN
HAVE_GROUP_MEMBER HAVE_GROUP_MEMBER
HAVE_GETPASS
HAVE_GETPAGESIZE HAVE_GETPAGESIZE
HAVE_GETLOGIN HAVE_GETLOGIN
HAVE_GETHOSTNAME HAVE_GETHOSTNAME
HAVE_GETGROUPS HAVE_GETGROUPS
HAVE_GETDTABLESIZE HAVE_GETDTABLESIZE
HAVE_FTRUNCATE HAVE_FTRUNCATE
HAVE_FSYNC HAVE_FSYNC
HAVE_FDATASYNC HAVE_FDATASYNC
HAVE_FCHOWNAT HAVE_FCHOWNAT
HAVE_FCHDIR HAVE_FCHDIR
skipping to change at line 1302 skipping to change at line 1319
GNULIB_PREAD GNULIB_PREAD
GNULIB_PIPE2 GNULIB_PIPE2
GNULIB_PIPE GNULIB_PIPE
GNULIB_LSEEK GNULIB_LSEEK
GNULIB_LINKAT GNULIB_LINKAT
GNULIB_LINK GNULIB_LINK
GNULIB_LCHOWN GNULIB_LCHOWN
GNULIB_ISATTY GNULIB_ISATTY
GNULIB_GROUP_MEMBER GNULIB_GROUP_MEMBER
GNULIB_GETUSERSHELL GNULIB_GETUSERSHELL
GNULIB_GETPASS
GNULIB_GETPAGESIZE GNULIB_GETPAGESIZE
GNULIB_GETLOGIN_R GNULIB_GETLOGIN_R
GNULIB_GETLOGIN GNULIB_GETLOGIN
GNULIB_GETHOSTNAME GNULIB_GETHOSTNAME
GNULIB_GETGROUPS GNULIB_GETGROUPS
GNULIB_GETDTABLESIZE GNULIB_GETDTABLESIZE
GNULIB_GETDOMAINNAME GNULIB_GETDOMAINNAME
GNULIB_GETCWD GNULIB_GETCWD
GNULIB_FTRUNCATE GNULIB_FTRUNCATE
GNULIB_FSYNC GNULIB_FSYNC
skipping to change at line 2089 skipping to change at line 2107
eval ac_cv_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_value=\$${ac_var}
done done
# #
# Report the --help message. # Report the --help message.
# #
if test "$ac_init_help" = "long"; then if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing. # 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. # This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF cat <<_ACEOF
\`configure' configures le 1.16.5 to adapt to many kinds of systems. \`configure' configures le 1.16.6 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]... Usage: $0 [OPTION]... [VAR=VALUE]...
To assign environment variables (e.g., CC, CFLAGS...), specify them as To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables. VAR=VALUE. See below for descriptions of some of the useful variables.
Defaults for the options are specified in brackets. Defaults for the options are specified in brackets.
Configuration: Configuration:
-h, --help display this help and exit -h, --help display this help and exit
skipping to change at line 2159 skipping to change at line 2177
--program-transform-name=PROGRAM run sed PROGRAM on installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names
System types: System types:
--build=BUILD configure for building on BUILD [guessed] --build=BUILD configure for building on BUILD [guessed]
--host=HOST cross-compile to build programs to run on HOST [BUILD] --host=HOST cross-compile to build programs to run on HOST [BUILD]
_ACEOF _ACEOF
fi fi
if test -n "$ac_init_help"; then if test -n "$ac_init_help"; then
case $ac_init_help in case $ac_init_help in
short | recursive ) echo "Configuration of le 1.16.5:";; short | recursive ) echo "Configuration of le 1.16.6:";;
esac esac
cat <<\_ACEOF cat <<\_ACEOF
Optional Features: Optional Features:
--disable-option-checking ignore unrecognized --enable/--with options --disable-option-checking ignore unrecognized --enable/--with options
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-silent-rules less verbose build output (undo: "make V=1") --enable-silent-rules less verbose build output (undo: "make V=1")
--disable-silent-rules verbose build output (undo: "make V=0") --disable-silent-rules verbose build output (undo: "make V=0")
--disable-file-locks disable file locking --disable-file-locks disable file locking
skipping to change at line 2261 skipping to change at line 2279
else else
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
fi || ac_status=$? fi || ac_status=$?
cd "$ac_pwd" || { ac_status=$?; break; } cd "$ac_pwd" || { ac_status=$?; break; }
done done
fi fi
test -n "$ac_init_help" && exit $ac_status test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then if $ac_init_version; then
cat <<\_ACEOF cat <<\_ACEOF
le configure 1.16.5 le configure 1.16.6
generated by GNU Autoconf 2.69 generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc. Copyright (C) 2012 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it. gives unlimited permission to copy, distribute and modify it.
_ACEOF _ACEOF
exit exit
fi fi
## ------------------------ ## ## ------------------------ ##
skipping to change at line 3096 skipping to change at line 3114
eval ac_res=\$$4 eval ac_res=\$$4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; } $as_echo "$ac_res" >&6; }
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
} # ac_fn_c_check_member } # ac_fn_c_check_member
cat >config.log <<_ACEOF cat >config.log <<_ACEOF
This file contains any messages produced by compilers while This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake. running configure, to aid debugging if configure makes a mistake.
It was created by le $as_me 1.16.5, which was It was created by le $as_me 1.16.6, which was
generated by GNU Autoconf 2.69. Invocation command line was generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@ $ $0 $@
_ACEOF _ACEOF
exec 5>>config.log exec 5>>config.log
{ {
cat <<_ASUNAME cat <<_ASUNAME
## --------- ## ## --------- ##
## Platform. ## ## Platform. ##
skipping to change at line 3373 skipping to change at line 3391
[\\/]* | ?:[\\/]* ) . "$cache_file";; [\\/]* | ?:[\\/]* ) . "$cache_file";;
*) . "./$cache_file";; *) . "./$cache_file";;
esac esac
fi fi
else else
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
$as_echo "$as_me: creating cache $cache_file" >&6;} $as_echo "$as_me: creating cache $cache_file" >&6;}
>$cache_file >$cache_file
fi fi
gl_func_list="$gl_func_list btowc" as_fn_append ac_func_list " btowc"
gl_header_list="$gl_header_list unistd.h" as_fn_append ac_header_list " unistd.h"
gl_header_list="$gl_header_list sys/param.h" as_fn_append ac_header_list " sys/param.h"
gl_func_list="$gl_func_list _set_invalid_parameter_handler" as_fn_append ac_func_list " _set_invalid_parameter_handler"
gl_header_list="$gl_header_list sys/socket.h" as_fn_append ac_header_list " sys/socket.h"
gl_func_list="$gl_func_list fchdir" as_fn_append ac_func_list " fchdir"
gl_header_list="$gl_header_list dirent.h" as_fn_append ac_header_list " dirent.h"
gl_func_list="$gl_func_list fcntl" as_fn_append ac_func_list " fcntl"
gl_func_list="$gl_func_list symlink" as_fn_append ac_func_list " symlink"
gl_func_list="$gl_func_list fdopendir" as_fn_append ac_func_list " fdopendir"
gl_func_list="$gl_func_list mempcpy" as_fn_append ac_func_list " mempcpy"
gl_func_list="$gl_func_list isblank" as_fn_append ac_header_list " fnmatch.h"
gl_func_list="$gl_func_list iswctype" as_fn_append ac_func_list " fnmatch"
gl_func_list="$gl_func_list mbsrtowcs" as_fn_append ac_func_list " isblank"
gl_func_list="$gl_func_list wmemchr" as_fn_append ac_func_list " iswctype"
gl_func_list="$gl_func_list wmemcpy" as_fn_append ac_func_list " mbsrtowcs"
gl_func_list="$gl_func_list wmempcpy" as_fn_append ac_func_list " wmemchr"
gl_header_list="$gl_header_list wctype.h" as_fn_append ac_func_list " wmemcpy"
gl_header_list="$gl_header_list sys/stat.h" as_fn_append ac_func_list " wmempcpy"
gl_func_list="$gl_func_list fstatat" as_fn_append ac_header_list " wctype.h"
gl_func_list="$gl_func_list ftruncate" as_fn_append ac_header_list " sys/stat.h"
gl_func_list="$gl_func_list getdtablesize" as_fn_append ac_func_list " fstatat"
as_fn_append ac_func_list " ftruncate"
as_fn_append ac_func_list " getdtablesize"
gl_getopt_required=GNU gl_getopt_required=GNU
gl_header_list="$gl_header_list getopt.h" as_fn_append ac_header_list " getopt.h"
gl_header_list="$gl_header_list sys/cdefs.h" as_fn_append ac_header_list " sys/cdefs.h"
gl_func_list="$gl_func_list getprogname" as_fn_append ac_func_list " getprogname"
gl_func_list="$gl_func_list getexecname" as_fn_append ac_func_list " getexecname"
gl_header_list="$gl_header_list limits.h" as_fn_append ac_header_list " limits.h"
gl_func_list="$gl_func_list lstat" as_fn_append ac_func_list " lstat"
gl_func_list="$gl_func_list mbsinit" as_fn_append ac_func_list " mbsinit"
gl_func_list="$gl_func_list mbrtowc" as_fn_append ac_func_list " mbrtowc"
gl_header_list="$gl_header_list wchar.h" as_fn_append ac_header_list " wchar.h"
gl_func_list="$gl_func_list isascii" as_fn_append ac_func_list " isascii"
gl_header_list="$gl_header_list sys/mman.h" as_fn_append ac_header_list " sys/mman.h"
gl_func_list="$gl_func_list mprotect" as_fn_append ac_func_list " mprotect"
gl_func_list="$gl_func_list openat" as_fn_append ac_func_list " openat"
gl_header_list="$gl_header_list poll.h" as_fn_append ac_header_list " poll.h"
gl_header_list="$gl_header_list sys/ioctl.h" as_fn_append ac_header_list " sys/ioctl.h"
gl_header_list="$gl_header_list sys/filio.h" as_fn_append ac_header_list " sys/filio.h"
gl_header_list="$gl_header_list sys/select.h" as_fn_append ac_header_list " sys/select.h"
gl_header_list="$gl_header_list stdint.h" as_fn_append ac_header_list " sys/time.h"
gl_func_list="$gl_func_list strdup" as_fn_append ac_header_list " stdint.h"
gl_header_list="$gl_header_list sys/time.h" as_fn_append ac_func_list " strdup"
gl_header_list="$gl_header_list sys/times.h" as_fn_append ac_header_list " sys/times.h"
gl_header_list="$gl_header_list sys/uio.h" as_fn_append ac_header_list " sys/uio.h"
gl_func_list="$gl_func_list times" as_fn_append ac_func_list " times"
gl_func_list="$gl_func_list pipe" as_fn_append ac_func_list " pipe"
gl_header_list="$gl_header_list features.h" as_fn_append ac_header_list " features.h"
gl_header_list="$gl_header_list crtdefs.h" as_fn_append ac_header_list " crtdefs.h"
gl_func_list="$gl_func_list iswcntrl" as_fn_append ac_func_list " iswcntrl"
gl_func_list="$gl_func_list wcwidth" as_fn_append ac_func_list " wcwidth"
# Check that the precious variables saved in the cache have kept the same # Check that the precious variables saved in the cache have kept the same
# value. # value.
ac_cache_corrupted=false ac_cache_corrupted=false
for ac_var in $ac_precious_vars; do for ac_var in $ac_precious_vars; do
eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_old_set=\$ac_cv_env_${ac_var}_set
eval ac_new_set=\$ac_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set
eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_old_val=\$ac_cv_env_${ac_var}_value
eval ac_new_val=\$ac_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value
case $ac_old_set,$ac_new_set in case $ac_old_set,$ac_new_set in
set,) set,)
skipping to change at line 4002 skipping to change at line 4022
if test -z "$CYGPATH_W"; then if test -z "$CYGPATH_W"; then
if (cygpath --version) >/dev/null 2>/dev/null; then if (cygpath --version) >/dev/null 2>/dev/null; then
CYGPATH_W='cygpath -w' CYGPATH_W='cygpath -w'
else else
CYGPATH_W=echo CYGPATH_W=echo
fi fi
fi fi
# Define the identity of the package. # Define the identity of the package.
PACKAGE='le' PACKAGE='le'
VERSION='1.16.5' VERSION='1.16.6'
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define PACKAGE "$PACKAGE" #define PACKAGE "$PACKAGE"
_ACEOF _ACEOF
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define VERSION "$VERSION" #define VERSION "$VERSION"
_ACEOF _ACEOF
# Some tools Automake needs. # Some tools Automake needs.
skipping to change at line 5657 skipping to change at line 5677
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_sou rce" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_sou rce" >&5
$as_echo "$ac_cv_should_define__xopen_source" >&6; } $as_echo "$ac_cv_should_define__xopen_source" >&6; }
test $ac_cv_should_define__xopen_source = yes && test $ac_cv_should_define__xopen_source = yes &&
$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
$as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler " >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler " >&5
$as_echo_n "checking for Minix Amsterdam compiler... " >&6; } $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
if ${gl_cv_c_amsterdam_compiler+:} false; then : if ${gl_cv_c_amsterdam_compiler+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#ifdef __ACK__ #ifdef __ACK__
skipping to change at line 6126 skipping to change at line 6148
# Code from module fchdir: # Code from module fchdir:
# Code from module fcntl: # Code from module fcntl:
# Code from module fcntl-h: # Code from module fcntl-h:
# Code from module fd-hook: # Code from module fd-hook:
# Code from module fd-safer-flag: # Code from module fd-safer-flag:
# Code from module fdopendir: # Code from module fdopendir:
# Code from module filename: # Code from module filename:
# Code from module filenamecat-lgpl: # Code from module filenamecat-lgpl:
# Code from module flexmember: # Code from module flexmember:
# Code from module fnmatch: # Code from module fnmatch:
# Code from module fnmatch-h:
# Code from module fstat: # Code from module fstat:
# Code from module fstatat: # Code from module fstatat:
# Code from module ftruncate: # Code from module ftruncate:
# Code from module getcwd: # Code from module getcwd:
# Code from module getcwd-lgpl: # Code from module getcwd-lgpl:
# Code from module getdtablesize: # Code from module getdtablesize:
# Code from module getopt-gnu: # Code from module getopt-gnu:
# Code from module getopt-posix: # Code from module getopt-posix:
# Code from module getprogname: # Code from module getprogname:
# Code from module gettext-h: # Code from module gettext-h:
skipping to change at line 6183 skipping to change at line 6206
# Code from module signal-h: # Code from module signal-h:
# Code from module snippet/_Noreturn: # Code from module snippet/_Noreturn:
# Code from module snippet/arg-nonnull: # Code from module snippet/arg-nonnull:
# Code from module snippet/c++defs: # Code from module snippet/c++defs:
# Code from module snippet/warn-on-use: # Code from module snippet/warn-on-use:
# Code from module socketlib: # Code from module socketlib:
# Code from module sockets: # Code from module sockets:
# Code from module socklen: # Code from module socklen:
# Code from module ssize_t: # Code from module ssize_t:
# Code from module stat: # Code from module stat:
# Code from module stat-time:
# Code from module stdalign: # Code from module stdalign:
# Code from module stdbool: # Code from module stdbool:
# Code from module stddef: # Code from module stddef:
# Code from module stdint: # Code from module stdint:
# Code from module stdio: # Code from module stdio:
# Code from module stdlib: # Code from module stdlib:
# Code from module strdup:
# Code from module strdup-posix: # Code from module strdup-posix:
# Code from module streq: # Code from module streq:
# Code from module strerror: # Code from module strerror:
# Code from module strerror-override: # Code from module strerror-override:
# Code from module string: # Code from module string:
# Code from module strnlen1: # Code from module strnlen1:
# Code from module strtol:
# Code from module sys_select: # Code from module sys_select:
# Code from module sys_socket: # Code from module sys_socket:
# Code from module sys_stat: # Code from module sys_stat:
# Code from module sys_time: # Code from module sys_time:
# Code from module sys_times: # Code from module sys_times:
# Code from module sys_types: # Code from module sys_types:
# Code from module sys_uio: # Code from module sys_uio:
# Code from module time: # Code from module time:
# Code from module times: # Code from module times:
# Code from module unistd: # Code from module unistd:
skipping to change at line 7527 skipping to change at line 7549
#include <stddef.h> #include <stddef.h>
#include <stdio.h> #include <stdio.h>
#include <time.h> #include <time.h>
#include <wchar.h> #include <wchar.h>
extern int zero (void); extern int zero (void);
int main () { return zero(); } int main () { return zero(); }
_ACEOF _ACEOF
save_ac_compile="$ac_compile" save_ac_compile="$ac_compile"
ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/` ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 if echo '#include "conftest.c"' >conftest1.c &&
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then test $ac_status = 0; }; then
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#define wcstod renamed_wcstod #define wcstod renamed_wcstod
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
<wchar.h>. <wchar.h>.
BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
included before <wchar.h>. */ included before <wchar.h>. */
#include <stddef.h> #include <stddef.h>
#include <stdio.h> #include <stdio.h>
#include <time.h> #include <time.h>
#include <wchar.h> #include <wchar.h>
int zero (void) { return 0; } int zero (void) { return 0; }
_ACEOF _ACEOF
ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/` ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } > if echo '#include "conftest.c"' >conftest2.c &&
&5 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >
&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then test $ac_status = 0; }; then
if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conf test2.$ac_objext $LIBS >&5 2>&1; then if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conf test2.$ac_objext $LIBS >&5 2>&1; then
: :
else else
gl_cv_header_wchar_h_correct_inline=no gl_cv_header_wchar_h_correct_inline=no
fi fi
fi fi
fi fi
ac_compile="$save_ac_compile" ac_compile="$save_ac_compile"
rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext rm -f conftest12.c conftest12.$ac_objext conftest$ac_exeext
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_i nline" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_i nline" >&5
$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; } $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
if test $gl_cv_header_wchar_h_correct_inline = no; then if test $gl_cv_header_wchar_h_correct_inline = no; then
as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CP PFLAGS). as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CP PFLAGS).
This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
C99 mode. You have four options: C99 mode. You have four options:
- Add the flag -fgnu89-inline to CC and reconfigure, or - Add the flag -fgnu89-inline to CC and reconfigure, or
- Fix your include files, using parts of - Fix your include files, using parts of
<http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d70 6c2e18c929d0e69a621>, or <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d7 06c2e18c929d0e69a621>, or
- Use a gcc version older than 4.3, or - Use a gcc version older than 4.3, or
- Don't use the flags -std=c99 or -std=gnu99. - Don't use the flags -std=c99 or -std=gnu99.
Configuration aborted." "$LINENO" 5 Configuration aborted." "$LINENO" 5
fi fi
for ac_func in $gl_func_list for ac_func in $ac_func_list
do : do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF _ACEOF
fi fi
done done
skipping to change at line 7711 skipping to change at line 7735
#include <locale.h> #include <locale.h>
#include <time.h> #include <time.h>
#if HAVE_LANGINFO_CODESET #if HAVE_LANGINFO_CODESET
# include <langinfo.h> # include <langinfo.h>
#endif #endif
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
struct tm t; struct tm t;
char buf[16]; char buf[16];
int main () { int main () {
/* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
imitates locale dependent behaviour by looking at the environment
variables, and all locales use the UTF-8 encoding. */
#if defined __BEOS__ || defined __HAIKU__
return 1;
#else
/* Check whether the given locale name is recognized by the system. */ /* Check whether the given locale name is recognized by the system. */
#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ # if defined _WIN32 && !defined __CYGWIN__
/* On native Windows, setlocale(category, "") looks at the system settings, /* On native Windows, setlocale(category, "") looks at the system settings,
not at the environment variables. Also, when an encoding suffix such not at the environment variables. Also, when an encoding suffix such
as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
category of the locale to "C". */ category of the locale to "C". */
if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
|| strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
return 1; return 1;
#else # else
if (setlocale (LC_ALL, "") == NULL) return 1; if (setlocale (LC_ALL, "") == NULL) return 1;
#endif # endif
/* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
is empty, and the behaviour of Tcl 8.4 in this locale is not useful. is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
On OpenBSD 4.0, when an unsupported locale is specified, setlocale() On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
succeeds but then nl_langinfo(CODESET) is "646". In this situation, succeeds but then nl_langinfo(CODESET) is "646". In this situation,
some unit tests fail. some unit tests fail.
On MirBSD 10, when an unsupported locale is specified, setlocale() On MirBSD 10, when an unsupported locale is specified, setlocale()
succeeds but then nl_langinfo(CODESET) is "UTF-8". */ succeeds but then nl_langinfo(CODESET) is "UTF-8". */
#if HAVE_LANGINFO_CODESET # if HAVE_LANGINFO_CODESET
{ {
const char *cs = nl_langinfo (CODESET); const char *cs = nl_langinfo (CODESET);
if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
|| strcmp (cs, "UTF-8") == 0) || strcmp (cs, "UTF-8") == 0)
return 1; return 1;
} }
#endif # endif
#ifdef __CYGWIN__ # ifdef __CYGWIN__
/* On Cygwin, avoid locale names without encoding suffix, because the /* On Cygwin, avoid locale names without encoding suffix, because the
locale_charset() function relies on the encoding suffix. Note that locale_charset() function relies on the encoding suffix. Note that
LC_ALL is set on the command line. */ LC_ALL is set on the command line. */
if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
#endif # endif
/* Check whether in the abbreviation of the second month, the second /* Check whether in the abbreviation of the second month, the second
character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
one byte long. This excludes the UTF-8 encoding. */ one byte long. This excludes the UTF-8 encoding. */
t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1; if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ # if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
/* Check whether the decimal separator is a comma. /* Check whether the decimal separator is a comma.
On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
are nl_langinfo(RADIXCHAR) are both ".". */ are nl_langinfo(RADIXCHAR) are both ".". */
if (localeconv () ->decimal_point[0] != ',') return 1; if (localeconv () ->decimal_point[0] != ',') return 1;
#endif # endif
return 0; return 0;
#endif
} }
_ACEOF _ACEOF
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; } && test -s conftest$ac_exeext; then test $ac_status = 0; } && test -s conftest$ac_exeext; then
case "$host_os" in case "$host_os" in
# Handle native Windows specially, because there setlocale() interprets # Handle native Windows specially, because there setlocale() interprets
skipping to change at line 7845 skipping to change at line 7876
GNULIB_FSYNC=0; GNULIB_FSYNC=0;
GNULIB_FTRUNCATE=0; GNULIB_FTRUNCATE=0;
GNULIB_GETCWD=0; GNULIB_GETCWD=0;
GNULIB_GETDOMAINNAME=0; GNULIB_GETDOMAINNAME=0;
GNULIB_GETDTABLESIZE=0; GNULIB_GETDTABLESIZE=0;
GNULIB_GETGROUPS=0; GNULIB_GETGROUPS=0;
GNULIB_GETHOSTNAME=0; GNULIB_GETHOSTNAME=0;
GNULIB_GETLOGIN=0; GNULIB_GETLOGIN=0;
GNULIB_GETLOGIN_R=0; GNULIB_GETLOGIN_R=0;
GNULIB_GETPAGESIZE=0; GNULIB_GETPAGESIZE=0;
GNULIB_GETPASS=0;
GNULIB_GETUSERSHELL=0; GNULIB_GETUSERSHELL=0;
GNULIB_GROUP_MEMBER=0; GNULIB_GROUP_MEMBER=0;
GNULIB_ISATTY=0; GNULIB_ISATTY=0;
GNULIB_LCHOWN=0; GNULIB_LCHOWN=0;
GNULIB_LINK=0; GNULIB_LINK=0;
GNULIB_LINKAT=0; GNULIB_LINKAT=0;
GNULIB_LSEEK=0; GNULIB_LSEEK=0;
GNULIB_PIPE=0; GNULIB_PIPE=0;
GNULIB_PIPE2=0; GNULIB_PIPE2=0;
GNULIB_PREAD=0; GNULIB_PREAD=0;
skipping to change at line 7887 skipping to change at line 7919
HAVE_FCHDIR=1; HAVE_FCHDIR=1;
HAVE_FCHOWNAT=1; HAVE_FCHOWNAT=1;
HAVE_FDATASYNC=1; HAVE_FDATASYNC=1;
HAVE_FSYNC=1; HAVE_FSYNC=1;
HAVE_FTRUNCATE=1; HAVE_FTRUNCATE=1;
HAVE_GETDTABLESIZE=1; HAVE_GETDTABLESIZE=1;
HAVE_GETGROUPS=1; HAVE_GETGROUPS=1;
HAVE_GETHOSTNAME=1; HAVE_GETHOSTNAME=1;
HAVE_GETLOGIN=1; HAVE_GETLOGIN=1;
HAVE_GETPAGESIZE=1; HAVE_GETPAGESIZE=1;
HAVE_GETPASS=1;
HAVE_GROUP_MEMBER=1; HAVE_GROUP_MEMBER=1;
HAVE_LCHOWN=1; HAVE_LCHOWN=1;
HAVE_LINK=1; HAVE_LINK=1;
HAVE_LINKAT=1; HAVE_LINKAT=1;
HAVE_PIPE=1; HAVE_PIPE=1;
HAVE_PIPE2=1; HAVE_PIPE2=1;
HAVE_PREAD=1; HAVE_PREAD=1;
HAVE_PWRITE=1; HAVE_PWRITE=1;
HAVE_READLINK=1; HAVE_READLINK=1;
HAVE_READLINKAT=1; HAVE_READLINKAT=1;
HAVE_SETHOSTNAME=1; HAVE_SETHOSTNAME=1;
HAVE_SLEEP=1; HAVE_SLEEP=1;
HAVE_SYMLINK=1; HAVE_SYMLINK=1;
HAVE_SYMLINKAT=1; HAVE_SYMLINKAT=1;
HAVE_TRUNCATE=1;
HAVE_UNLINKAT=1; HAVE_UNLINKAT=1;
HAVE_USLEEP=1; HAVE_USLEEP=1;
HAVE_DECL_ENVIRON=1; HAVE_DECL_ENVIRON=1;
HAVE_DECL_FCHDIR=1; HAVE_DECL_FCHDIR=1;
HAVE_DECL_FDATASYNC=1; HAVE_DECL_FDATASYNC=1;
HAVE_DECL_GETDOMAINNAME=1; HAVE_DECL_GETDOMAINNAME=1;
HAVE_DECL_GETLOGIN=1; HAVE_DECL_GETLOGIN=1;
HAVE_DECL_GETLOGIN_R=1; HAVE_DECL_GETLOGIN_R=1;
HAVE_DECL_GETPAGESIZE=1; HAVE_DECL_GETPAGESIZE=1;
HAVE_DECL_GETUSERSHELL=1; HAVE_DECL_GETUSERSHELL=1;
HAVE_DECL_SETHOSTNAME=1; HAVE_DECL_SETHOSTNAME=1;
HAVE_DECL_TRUNCATE=1;
HAVE_DECL_TTYNAME_R=1; HAVE_DECL_TTYNAME_R=1;
HAVE_OS_H=0; HAVE_OS_H=0;
HAVE_SYS_PARAM_H=0; HAVE_SYS_PARAM_H=0;
REPLACE_CHOWN=0; REPLACE_CHOWN=0;
REPLACE_CLOSE=0; REPLACE_CLOSE=0;
REPLACE_DUP=0; REPLACE_DUP=0;
REPLACE_DUP2=0; REPLACE_DUP2=0;
REPLACE_FACCESSAT=0;
REPLACE_FCHOWNAT=0; REPLACE_FCHOWNAT=0;
REPLACE_FTRUNCATE=0; REPLACE_FTRUNCATE=0;
REPLACE_GETCWD=0; REPLACE_GETCWD=0;
REPLACE_GETDOMAINNAME=0; REPLACE_GETDOMAINNAME=0;
REPLACE_GETDTABLESIZE=0; REPLACE_GETDTABLESIZE=0;
REPLACE_GETLOGIN_R=0; REPLACE_GETLOGIN_R=0;
REPLACE_GETGROUPS=0; REPLACE_GETGROUPS=0;
REPLACE_GETPAGESIZE=0; REPLACE_GETPAGESIZE=0;
REPLACE_GETPASS=0;
REPLACE_ISATTY=0; REPLACE_ISATTY=0;
REPLACE_LCHOWN=0; REPLACE_LCHOWN=0;
REPLACE_LINK=0; REPLACE_LINK=0;
REPLACE_LINKAT=0; REPLACE_LINKAT=0;
REPLACE_LSEEK=0; REPLACE_LSEEK=0;
REPLACE_PREAD=0; REPLACE_PREAD=0;
REPLACE_PWRITE=0; REPLACE_PWRITE=0;
REPLACE_READ=0; REPLACE_READ=0;
REPLACE_READLINK=0; REPLACE_READLINK=0;
REPLACE_READLINKAT=0; REPLACE_READLINKAT=0;
skipping to change at line 7951 skipping to change at line 7986
REPLACE_SYMLINKAT=0; REPLACE_SYMLINKAT=0;
REPLACE_TRUNCATE=0; REPLACE_TRUNCATE=0;
REPLACE_TTYNAME_R=0; REPLACE_TTYNAME_R=0;
REPLACE_UNLINK=0; REPLACE_UNLINK=0;
REPLACE_UNLINKAT=0; REPLACE_UNLINKAT=0;
REPLACE_USLEEP=0; REPLACE_USLEEP=0;
REPLACE_WRITE=0; REPLACE_WRITE=0;
UNISTD_H_HAVE_WINSOCK2_H=0; UNISTD_H_HAVE_WINSOCK2_H=0;
UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0; UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
for ac_header in $gl_header_list for ac_header in $ac_header_list
do : do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_include ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_include
s_default" s_default
"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF _ACEOF
fi fi
done done
:
:
if test $ac_cv_func__set_invalid_parameter_handler = yes; then if test $ac_cv_func__set_invalid_parameter_handler = yes; then
HAVE_MSVC_INVALID_PARAMETER_HANDLER=1 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
$as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
else else
HAVE_MSVC_INVALID_PARAMETER_HANDLER=0 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
fi fi
GNULIB_OPENDIR=0; GNULIB_OPENDIR=0;
skipping to change at line 8591 skipping to change at line 8623
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
if test $ac_cv_func_strerror_r_char_p = yes; then if test $ac_cv_func_strerror_r_char_p = yes; then
$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
fi fi
XGETTEXT_EXTRA_OPTIONS= XGETTEXT_EXTRA_OPTIONS=
ac_fn_c_check_decl "$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includ es_default" ac_fn_c_check_decl "$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includes_def ault"
if test "x$ac_cv_have_decl_fchdir" = xyes; then : if test "x$ac_cv_have_decl_fchdir" = xyes; then :
ac_have_decl=1 ac_have_decl=1
else else
ac_have_decl=0 ac_have_decl=0
fi fi
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_FCHDIR $ac_have_decl #define HAVE_DECL_FCHDIR $ac_have_decl
_ACEOF _ACEOF
GNULIB_FCNTL=0; GNULIB_FCNTL=0;
GNULIB_NONBLOCKING=0; GNULIB_NONBLOCKING=0;
GNULIB_OPEN=0; GNULIB_OPEN=0;
GNULIB_OPENAT=0; GNULIB_OPENAT=0;
HAVE_FCNTL=1; HAVE_FCNTL=1;
HAVE_OPENAT=1; HAVE_OPENAT=1;
REPLACE_FCNTL=0; REPLACE_FCNTL=0;
REPLACE_OPEN=0; REPLACE_OPEN=0;
REPLACE_OPENAT=0; REPLACE_OPENAT=0;
:
:
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
$as_echo_n "checking for working fcntl.h... " >&6; } $as_echo_n "checking for working fcntl.h... " >&6; }
if ${gl_cv_header_working_fcntl_h+:} false; then : if ${gl_cv_header_working_fcntl_h+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
if test "$cross_compiling" = yes; then : if test "$cross_compiling" = yes; then :
case "$host_os" in case "$host_os" in
# Guess 'no' on native Windows. # Guess 'no' on native Windows.
mingw*) gl_cv_header_working_fcntl_h='no' ;; mingw*) gl_cv_header_working_fcntl_h='no' ;;
*) gl_cv_header_working_fcntl_h=cross-compiling ;; *) gl_cv_header_working_fcntl_h=cross-compiling ;;
skipping to change at line 8782 skipping to change at line 8810
if test "x$ac_cv_type_mode_t" = xyes; then : if test "x$ac_cv_type_mode_t" = xyes; then :
else else
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define mode_t int #define mode_t int
_ACEOF _ACEOF
fi fi
GNULIB_FNMATCH=0;
HAVE_FNMATCH=1;
REPLACE_FNMATCH=0;
if test $gl_cv_have_include_next = yes; then
gl_cv_next_fnmatch_h='<'fnmatch.h'>'
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fnmat
ch.h>" >&5
$as_echo_n "checking absolute name of <fnmatch.h>... " >&6; }
if ${gl_cv_next_fnmatch_h+:} false; then :
$as_echo_n "(cached) " >&6
else
if test $ac_cv_header_fnmatch_h = yes; then
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <fnmatch.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_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
gl_header_literal_regex=`echo 'fnmatch.h' \
| sed -e "$gl_make_literal_regex_sed"`
gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
s|^/[^/]|//&|
p
q
}'
gl_cv_absolute_fnmatch_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5
|
sed -n "$gl_absolute_header_sed"`
gl_header=$gl_cv_absolute_fnmatch_h
gl_cv_next_fnmatch_h='"'$gl_header'"'
else
gl_cv_next_fnmatch_h='<'fnmatch.h'>'
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fnmatch_h" >&5
$as_echo "$gl_cv_next_fnmatch_h" >&6; }
fi
NEXT_FNMATCH_H=$gl_cv_next_fnmatch_h
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = b
uggy; then
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
gl_next_as_first_directive='<'fnmatch.h'>'
else
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
gl_next_as_first_directive=$gl_cv_next_fnmatch_h
fi
NEXT_AS_FIRST_DIRECTIVE_FNMATCH_H=$gl_next_as_first_directive
if test $ac_cv_header_fnmatch_h = yes; then
HAVE_FNMATCH_H=1
else
HAVE_FNMATCH_H=0
fi
FNMATCH_H=''
if false; then
FNMATCH_H=fnmatch.h
else
if test $ac_cv_header_fnmatch_h != yes; then
FNMATCH_H=fnmatch.h
fi
fi
if test -n "$FNMATCH_H"; then
GL_GENERATE_FNMATCH_H_TRUE=
GL_GENERATE_FNMATCH_H_FALSE='#'
else
GL_GENERATE_FNMATCH_H_TRUE='#'
GL_GENERATE_FNMATCH_H_FALSE=
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
$as_echo_n "checking for mbstate_t... " >&6; } $as_echo_n "checking for mbstate_t... " >&6; }
if ${ac_cv_type_mbstate_t+:} false; then : if ${ac_cv_type_mbstate_t+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
$ac_includes_default $ac_includes_default
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
<wchar.h>. <wchar.h>.
skipping to change at line 8978 skipping to change at line 9095
else else
WINDOWS_64_BIT_ST_SIZE=0 WINDOWS_64_BIT_ST_SIZE=0
fi fi
;; ;;
*) *)
WINDOWS_64_BIT_OFF_T=0 WINDOWS_64_BIT_OFF_T=0
WINDOWS_64_BIT_ST_SIZE=0 WINDOWS_64_BIT_ST_SIZE=0
;; ;;
esac esac
:
if test $gl_cv_have_include_next = yes; then if test $gl_cv_have_include_next = yes; then
gl_cv_next_sys_stat_h='<'sys/stat.h'>' gl_cv_next_sys_stat_h='<'sys/stat.h'>'
else else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/s tat.h>" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/s tat.h>" >&5
$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; } $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
if ${gl_cv_next_sys_stat_h+:} false; then : if ${gl_cv_next_sys_stat_h+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
if test $ac_cv_header_sys_stat_h = yes; then if test $ac_cv_header_sys_stat_h = yes; then
skipping to change at line 9055 skipping to change at line 9170
#include <sys/stat.h> #include <sys/stat.h>
" "
if test "x$ac_cv_type_nlink_t" = xyes; then : if test "x$ac_cv_type_nlink_t" = xyes; then :
else else
$as_echo "#define nlink_t int" >>confdefs.h $as_echo "#define nlink_t int" >>confdefs.h
fi fi
for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo m
kfifoat mknod mknodat stat utimensat; 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 declar
ed without a macro" >&5
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
if eval \${$as_gl_Symbol+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <sys/stat.h>
int
main ()
{
#undef $gl_func
(void) $gl_func;
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
eval "$as_gl_Symbol=yes"
else
eval "$as_gl_Symbol=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$as_gl_Symbol
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
_ACEOF
eval ac_cv_have_decl_$gl_func=yes
fi
done
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correct ly handles trailing slash" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correct ly handles trailing slash" >&5
$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then : if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
rm -f conftest.sym conftest.file rm -f conftest.sym conftest.file
echo >conftest.file echo >conftest.file
if test "$cross_compiling" = yes; then : if test "$cross_compiling" = yes; then :
case "$host_os" in case "$host_os" in
*-gnu*) linux-* | linux)
# Guess yes on Linux systems.
gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
*-gnu* | gnu*)
# Guess yes on glibc systems. # Guess yes on glibc systems.
gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;; gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
mingw*) mingw*)
# Guess no on native Windows. # Guess no on native Windows.
gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;; gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
*) *)
# If we don't know, assume the worst. # If we don't know, assume the worst.
gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;; gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
esac esac
skipping to change at line 9157 skipping to change at line 9236
case "$gl_cv_func_lstat_dereferences_slashed_symlink" in case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
*yes) *yes)
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
_ACEOF _ACEOF
;; ;;
esac esac
:
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) al locates memory for result" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) al locates memory for result" >&5
$as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " > &6; } $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " > &6; }
if ${gl_cv_func_getcwd_null+:} false; then : if ${gl_cv_func_getcwd_null+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
if test "$cross_compiling" = yes; then : if test "$cross_compiling" = yes; then :
case "$host_os" in case "$host_os" in
# Guess yes on glibc systems. # Guess yes on glibc systems.
*-gnu*) gl_cv_func_getcwd_null="guessing yes";; *-gnu* | gnu*) gl_cv_func_getcwd_null="guessing yes";;
# Guess yes on Cygwin. # Guess yes on Cygwin.
cygwin*) gl_cv_func_getcwd_null="guessing yes";; cygwin*) gl_cv_func_getcwd_null="guessing yes";;
# If we don't know, assume the worst. # If we don't know, assume the worst.
*) gl_cv_func_getcwd_null="guessing no";; *) gl_cv_func_getcwd_null="guessing no";;
esac esac
else else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
# include <stdlib.h> # include <stdlib.h>
# if HAVE_UNISTD_H # if HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
# else /* on Windows with MSVC */ # else /* on Windows with MSVC */
# include <direct.h> # include <direct.h>
# endif # endif
# ifndef getcwd # ifndef getcwd
char *getcwd (); char *getcwd ();
# endif # endif
int int
main () main ()
{ {
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ #if defined _WIN32 && ! defined __CYGWIN__
/* mingw cwd does not start with '/', but getcwd does allocate. /* mingw cwd does not start with '/', but getcwd does allocate.
However, mingw fails to honor non-zero size. */ However, mingw fails to honor non-zero size. */
#else #else
if (chdir ("/") != 0) if (chdir ("/") != 0)
return 1; return 1;
else else
{ {
char *f = getcwd (NULL, 0); char *f = getcwd (NULL, 0);
if (! f) if (! f)
return 2; return 2;
skipping to change at line 9262 skipping to change at line 9339
gl_cv_func_getcwd_posix_signature=yes gl_cv_func_getcwd_posix_signature=yes
else else
gl_cv_func_getcwd_posix_signature=no gl_cv_func_getcwd_posix_signature=no
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signat ure" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signat ure" >&5
$as_echo "$gl_cv_func_getcwd_posix_signature" >&6; } $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
ac_fn_c_check_decl "$LINENO" "getcwd" "ac_cv_have_decl_getcwd" "$ac_includ es_default" ac_fn_c_check_decl "$LINENO" "getcwd" "ac_cv_have_decl_getcwd" "$ac_includes_def ault"
if test "x$ac_cv_have_decl_getcwd" = xyes; then : if test "x$ac_cv_have_decl_getcwd" = xyes; then :
ac_have_decl=1 ac_have_decl=1
else else
ac_have_decl=0 ac_have_decl=0
fi fi
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_GETCWD $ac_have_decl #define HAVE_DECL_GETCWD $ac_have_decl
_ACEOF _ACEOF
ac_fn_c_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesiz e" "$ac_includes_default" ac_fn_c_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$a c_includes_default"
if test "x$ac_cv_have_decl_getdtablesize" = xyes; then : if test "x$ac_cv_have_decl_getdtablesize" = xyes; then :
ac_have_decl=1 ac_have_decl=1
else else
ac_have_decl=0 ac_have_decl=0
fi fi
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_GETDTABLESIZE $ac_have_decl #define HAVE_DECL_GETDTABLESIZE $ac_have_decl
_ACEOF _ACEOF
:
if test $gl_cv_have_include_next = yes; then if test $gl_cv_have_include_next = yes; then
gl_cv_next_getopt_h='<'getopt.h'>' gl_cv_next_getopt_h='<'getopt.h'>'
else else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getop t.h>" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getop t.h>" >&5
$as_echo_n "checking absolute name of <getopt.h>... " >&6; } $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
if ${gl_cv_next_getopt_h+:} false; then : if ${gl_cv_next_getopt_h+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
if test $ac_cv_header_getopt_h = yes; then if test $ac_cv_header_getopt_h = yes; then
skipping to change at line 9651 skipping to change at line 9726
for a particular thread. This has the effect that when our exception for a particular thread. This has the effect that when our exception
port gets the message, the thread specific exception port has already port gets the message, the thread specific exception port has already
been asked, and we don't need to bother about it. been asked, and we don't need to bother about it.
See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exce ption_ports.html. */ See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exce ption_ports.html. */
task_set_exception_ports (self, mask, our_exception_port, task_set_exception_ports (self, mask, our_exception_port,
EXCEPTION_DEFAULT, MACHINE_THREAD_STATE); EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
} }
} }
} }
} }
#elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ #elif defined _WIN32 && ! defined __CYGWIN__
/* Avoid a crash on native Windows. */ /* Avoid a crash on native Windows. */
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>
#include <winerror.h> #include <winerror.h>
static LONG WINAPI static LONG WINAPI
exception_filter (EXCEPTION_POINTERS *ExceptionInfo) exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
{ {
switch (ExceptionInfo->ExceptionRecord->ExceptionCode) switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
{ {
case EXCEPTION_ACCESS_VIOLATION: case EXCEPTION_ACCESS_VIOLATION:
skipping to change at line 9865 skipping to change at line 9940
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >& 5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >& 5
$as_echo "$gl_cv_func_getopt_long_gnu" >&6; } $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
case "$gl_cv_func_getopt_long_gnu" in case "$gl_cv_func_getopt_long_gnu" in
*yes) ;; *yes) ;;
*) gl_replace_getopt=yes ;; *) gl_replace_getopt=yes ;;
esac esac
fi fi
fi fi
:
if test $gl_cv_have_include_next = yes; then if test $gl_cv_have_include_next = yes; then
gl_cv_next_limits_h='<'limits.h'>' gl_cv_next_limits_h='<'limits.h'>'
else else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limit s.h>" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limit s.h>" >&5
$as_echo_n "checking absolute name of <limits.h>... " >&6; } $as_echo_n "checking absolute name of <limits.h>... " >&6; }
if ${gl_cv_next_limits_h+:} false; then : if ${gl_cv_next_limits_h+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
if test $ac_cv_header_limits_h = yes; then if test $ac_cv_header_limits_h = yes; then
skipping to change at line 9929 skipping to change at line 10002
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = b uggy; then if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = b uggy; then
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
gl_next_as_first_directive='<'limits.h'>' gl_next_as_first_directive='<'limits.h'>'
else else
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
gl_next_as_first_directive=$gl_cv_next_limits_h gl_next_as_first_directive=$gl_cv_next_limits_h
fi fi
NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has ULLONG_ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has LLONG_M
WIDTH etc." >&5 AX, WORD_BIT, ULLONG_WIDTH etc." >&5
$as_echo_n "checking whether limits.h has ULLONG_WIDTH etc.... " >&6; } $as_echo_n "checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.
... " >&6; }
if ${gl_cv_header_limits_width+:} false; then : if ${gl_cv_header_limits_width+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#ifndef __STDC_WANT_IEC_60559_BFP_EXT__ #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
#define __STDC_WANT_IEC_60559_BFP_EXT__ 1 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
#endif #endif
#include <limits.h> #include <limits.h>
int ullw = ULLONG_WIDTH; long long llm = LLONG_MAX;
int wb = WORD_BIT;
int ullw = ULLONG_WIDTH;
int int
main () main ()
{ {
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
if ac_fn_c_try_compile "$LINENO"; then : if ac_fn_c_try_compile "$LINENO"; then :
gl_cv_header_limits_width=yes gl_cv_header_limits_width=yes
skipping to change at line 9972 skipping to change at line 10048
fi fi
if test -n "$LIMITS_H"; then if test -n "$LIMITS_H"; then
GL_GENERATE_LIMITS_H_TRUE= GL_GENERATE_LIMITS_H_TRUE=
GL_GENERATE_LIMITS_H_FALSE='#' GL_GENERATE_LIMITS_H_FALSE='#'
else else
GL_GENERATE_LIMITS_H_TRUE='#' GL_GENERATE_LIMITS_H_TRUE='#'
GL_GENERATE_LIMITS_H_FALSE= GL_GENERATE_LIMITS_H_FALSE=
fi fi
ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocke
d" "$ac_includes_default"
if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
ac_have_decl=1
else
ac_have_decl=0
fi
cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
_ACEOF
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the G
NU C Library >= 2.1 or uClibc" >&5
$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc...
" >&6; }
if ${ac_cv_gnu_library_2_1+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <features.h>
#ifdef __GNU_LIBRARY__
#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
Lucky GNU user
#endif
#endif
#ifdef __UCLIBC__
Lucky user
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "Lucky" >/dev/null 2>&1; then :
ac_cv_gnu_library_2_1=yes
else
ac_cv_gnu_library_2_1=no
fi
rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
$as_echo "$ac_cv_gnu_library_2_1" >&6; }
GLIBC21="$ac_cv_gnu_library_2_1"
GNULIB__EXIT=0; GNULIB__EXIT=0;
GNULIB_ATOLL=0; GNULIB_ATOLL=0;
GNULIB_CALLOC_POSIX=0; GNULIB_CALLOC_POSIX=0;
GNULIB_CANONICALIZE_FILE_NAME=0; GNULIB_CANONICALIZE_FILE_NAME=0;
GNULIB_GETLOADAVG=0; GNULIB_GETLOADAVG=0;
GNULIB_GETSUBOPT=0; GNULIB_GETSUBOPT=0;
GNULIB_GRANTPT=0; GNULIB_GRANTPT=0;
GNULIB_MALLOC_POSIX=0; GNULIB_MALLOC_POSIX=0;
GNULIB_MBTOWC=0; GNULIB_MBTOWC=0;
GNULIB_MKDTEMP=0; GNULIB_MKDTEMP=0;
skipping to change at line 10044 skipping to change at line 10076
GNULIB_QSORT_R=0; GNULIB_QSORT_R=0;
GNULIB_RANDOM=0; GNULIB_RANDOM=0;
GNULIB_RANDOM_R=0; GNULIB_RANDOM_R=0;
GNULIB_REALLOCARRAY=0; GNULIB_REALLOCARRAY=0;
GNULIB_REALLOC_POSIX=0; GNULIB_REALLOC_POSIX=0;
GNULIB_REALPATH=0; GNULIB_REALPATH=0;
GNULIB_RPMATCH=0; GNULIB_RPMATCH=0;
GNULIB_SECURE_GETENV=0; GNULIB_SECURE_GETENV=0;
GNULIB_SETENV=0; GNULIB_SETENV=0;
GNULIB_STRTOD=0; GNULIB_STRTOD=0;
GNULIB_STRTOLD=0;
GNULIB_STRTOLL=0; GNULIB_STRTOLL=0;
GNULIB_STRTOULL=0; GNULIB_STRTOULL=0;
GNULIB_SYSTEM_POSIX=0; GNULIB_SYSTEM_POSIX=0;
GNULIB_UNLOCKPT=0; GNULIB_UNLOCKPT=0;
GNULIB_UNSETENV=0; GNULIB_UNSETENV=0;
GNULIB_WCTOMB=0; GNULIB_WCTOMB=0;
HAVE__EXIT=1; HAVE__EXIT=1;
HAVE_ATOLL=1; HAVE_ATOLL=1;
HAVE_CANONICALIZE_FILE_NAME=1; HAVE_CANONICALIZE_FILE_NAME=1;
HAVE_DECL_GETLOADAVG=1; HAVE_DECL_GETLOADAVG=1;
HAVE_GETSUBOPT=1; HAVE_GETSUBOPT=1;
HAVE_GRANTPT=1; HAVE_GRANTPT=1;
HAVE_INITSTATE=1;
HAVE_DECL_INITSTATE=1; HAVE_DECL_INITSTATE=1;
HAVE_MBTOWC=1;
HAVE_MKDTEMP=1; HAVE_MKDTEMP=1;
HAVE_MKOSTEMP=1; HAVE_MKOSTEMP=1;
HAVE_MKOSTEMPS=1; HAVE_MKOSTEMPS=1;
HAVE_MKSTEMP=1; HAVE_MKSTEMP=1;
HAVE_MKSTEMPS=1; HAVE_MKSTEMPS=1;
HAVE_POSIX_OPENPT=1; HAVE_POSIX_OPENPT=1;
HAVE_PTSNAME=1; HAVE_PTSNAME=1;
HAVE_PTSNAME_R=1; HAVE_PTSNAME_R=1;
HAVE_QSORT_R=1; HAVE_QSORT_R=1;
HAVE_RANDOM=1; HAVE_RANDOM=1;
HAVE_RANDOM_H=1; HAVE_RANDOM_H=1;
HAVE_RANDOM_R=1; HAVE_RANDOM_R=1;
HAVE_REALLOCARRAY=1; HAVE_REALLOCARRAY=1;
HAVE_REALPATH=1; HAVE_REALPATH=1;
HAVE_RPMATCH=1; HAVE_RPMATCH=1;
HAVE_SECURE_GETENV=1; HAVE_SECURE_GETENV=1;
HAVE_SETENV=1; HAVE_SETENV=1;
HAVE_DECL_SETENV=1; HAVE_DECL_SETENV=1;
HAVE_SETSTATE=1;
HAVE_DECL_SETSTATE=1; HAVE_DECL_SETSTATE=1;
HAVE_STRTOD=1; HAVE_STRTOD=1;
HAVE_STRTOLD=1;
HAVE_STRTOLL=1; HAVE_STRTOLL=1;
HAVE_STRTOULL=1; HAVE_STRTOULL=1;
HAVE_STRUCT_RANDOM_DATA=1; HAVE_STRUCT_RANDOM_DATA=1;
HAVE_SYS_LOADAVG_H=0; HAVE_SYS_LOADAVG_H=0;
HAVE_UNLOCKPT=1; HAVE_UNLOCKPT=1;
HAVE_DECL_UNSETENV=1; HAVE_DECL_UNSETENV=1;
REPLACE_CALLOC=0; REPLACE_CALLOC=0;
REPLACE_CANONICALIZE_FILE_NAME=0; REPLACE_CANONICALIZE_FILE_NAME=0;
REPLACE_INITSTATE=0;
REPLACE_MALLOC=0; REPLACE_MALLOC=0;
REPLACE_MBTOWC=0; REPLACE_MBTOWC=0;
REPLACE_MKSTEMP=0; REPLACE_MKSTEMP=0;
REPLACE_PTSNAME=0; REPLACE_PTSNAME=0;
REPLACE_PTSNAME_R=0; REPLACE_PTSNAME_R=0;
REPLACE_PUTENV=0; REPLACE_PUTENV=0;
REPLACE_QSORT_R=0; REPLACE_QSORT_R=0;
REPLACE_RANDOM=0;
REPLACE_RANDOM_R=0; REPLACE_RANDOM_R=0;
REPLACE_REALLOC=0; REPLACE_REALLOC=0;
REPLACE_REALPATH=0; REPLACE_REALPATH=0;
REPLACE_SETENV=0; REPLACE_SETENV=0;
REPLACE_SETSTATE=0;
REPLACE_STRTOD=0; REPLACE_STRTOD=0;
REPLACE_STRTOLD=0;
REPLACE_UNSETENV=0; REPLACE_UNSETENV=0;
REPLACE_WCTOMB=0; REPLACE_WCTOMB=0;
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, cal loc are POSIX compliant" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, cal loc are POSIX compliant" >&5
$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >& 6; } $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >& 6; }
if ${gl_cv_func_malloc_posix+:} false; then : if ${gl_cv_func_malloc_posix+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
int int
main () main ()
{ {
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ #if defined _WIN32 && ! defined __CYGWIN__
choke me choke me
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
if ac_fn_c_try_compile "$LINENO"; then : if ac_fn_c_try_compile "$LINENO"; then :
gl_cv_func_malloc_posix=yes gl_cv_func_malloc_posix=yes
else else
skipping to change at line 10151 skipping to change at line 10192
done done
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible mall oc" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible mall oc" >&5
$as_echo_n "checking for GNU libc compatible malloc... " >&6; } $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
if ${ac_cv_func_malloc_0_nonnull+:} false; then : if ${ac_cv_func_malloc_0_nonnull+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
if test "$cross_compiling" = yes; then : if test "$cross_compiling" = yes; then :
case "$host_os" in case "$host_os" in
# Guess yes on platforms where we know the result. # Guess yes on platforms where we know the result.
*-gnu* | freebsd* | netbsd* | openbsd* \ *-gnu* | gnu* | freebsd* | netbsd* | openbsd* \
| hpux* | solaris* | cygwin* | mingw*) | hpux* | solaris* | cygwin* | mingw*)
ac_cv_func_malloc_0_nonnull=yes ;; ac_cv_func_malloc_0_nonnull=yes ;;
# If we don't know, assume the worst. # If we don't know, assume the worst.
*) ac_cv_func_malloc_0_nonnull=no ;; *) ac_cv_func_malloc_0_nonnull=no ;;
esac esac
else else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#if defined STDC_HEADERS || defined HAVE_STDLIB_H #if defined STDC_HEADERS || defined HAVE_STDLIB_H
skipping to change at line 10335 skipping to change at line 10376
#include <time.h> #include <time.h>
#if HAVE_LANGINFO_CODESET #if HAVE_LANGINFO_CODESET
# include <langinfo.h> # include <langinfo.h>
#endif #endif
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
struct tm t; struct tm t;
char buf[16]; char buf[16];
int main () int main ()
{ {
const char *p; /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
imitates locale dependent behaviour by looking at the environment
variables, and all locales use the UTF-8 encoding. */
#if defined __BEOS__ || defined __HAIKU__
return 1;
#else
/* Check whether the given locale name is recognized by the system. */ /* Check whether the given locale name is recognized by the system. */
#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ # if defined _WIN32 && !defined __CYGWIN__
/* On native Windows, setlocale(category, "") looks at the system settings, /* On native Windows, setlocale(category, "") looks at the system settings,
not at the environment variables. Also, when an encoding suffix such not at the environment variables. Also, when an encoding suffix such
as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
category of the locale to "C". */ category of the locale to "C". */
if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
|| strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
return 1; return 1;
#else # else
if (setlocale (LC_ALL, "") == NULL) return 1; if (setlocale (LC_ALL, "") == NULL) return 1;
#endif # endif
/* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
is empty, and the behaviour of Tcl 8.4 in this locale is not useful. is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
On OpenBSD 4.0, when an unsupported locale is specified, setlocale() On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
succeeds but then nl_langinfo(CODESET) is "646". In this situation, succeeds but then nl_langinfo(CODESET) is "646". In this situation,
some unit tests fail. some unit tests fail.
On MirBSD 10, when an unsupported locale is specified, setlocale() On MirBSD 10, when an unsupported locale is specified, setlocale()
succeeds but then nl_langinfo(CODESET) is "UTF-8". */ succeeds but then nl_langinfo(CODESET) is "UTF-8". */
#if HAVE_LANGINFO_CODESET # if HAVE_LANGINFO_CODESET
{ {
const char *cs = nl_langinfo (CODESET); const char *cs = nl_langinfo (CODESET);
if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
|| strcmp (cs, "UTF-8") == 0) || strcmp (cs, "UTF-8") == 0)
return 1; return 1;
} }
#endif # endif
#ifdef __CYGWIN__ # ifdef __CYGWIN__
/* On Cygwin, avoid locale names without encoding suffix, because the /* On Cygwin, avoid locale names without encoding suffix, because the
locale_charset() function relies on the encoding suffix. Note that locale_charset() function relies on the encoding suffix. Note that
LC_ALL is set on the command line. */ LC_ALL is set on the command line. */
if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
#endif # endif
/* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
on Cygwin 1.5.x. */ on Cygwin 1.5.x. */
if (MB_CUR_MAX == 1) if (MB_CUR_MAX == 1)
return 1; return 1;
/* Check whether in a month name, no byte in the range 0x80..0x9F occurs. /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
This excludes the UTF-8 encoding (except on MirBSD). */ This excludes the UTF-8 encoding (except on MirBSD). */
t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; {
if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; const char *p;
for (p = buf; *p != '\0'; p++) t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
return 1; for (p = buf; *p != '\0'; p++)
if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
return 1;
}
return 0; return 0;
#endif
} }
_ACEOF _ACEOF
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; } && test -s conftest$ac_exeext; then test $ac_status = 0; } && test -s conftest$ac_exeext; then
case "$host_os" in case "$host_os" in
# Handle native Windows specially, because there setlocale() interprets # Handle native Windows specially, because there setlocale() interprets
skipping to change at line 10471 skipping to change at line 10521
#include <time.h> #include <time.h>
#if HAVE_LANGINFO_CODESET #if HAVE_LANGINFO_CODESET
# include <langinfo.h> # include <langinfo.h>
#endif #endif
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
struct tm t; struct tm t;
char buf[16]; char buf[16];
int main () int main ()
{ {
const char *p; /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
imitates locale dependent behaviour by looking at the environment
variables, and all locales use the UTF-8 encoding. */
#if defined __BEOS__ || defined __HAIKU__
return 1;
#else
/* Check whether the given locale name is recognized by the system. */ /* Check whether the given locale name is recognized by the system. */
#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ # if defined _WIN32 && !defined __CYGWIN__
/* On native Windows, setlocale(category, "") looks at the system settings, /* On native Windows, setlocale(category, "") looks at the system settings,
not at the environment variables. Also, when an encoding suffix such not at the environment variables. Also, when an encoding suffix such
as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
category of the locale to "C". */ category of the locale to "C". */
if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
|| strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
return 1; return 1;
#else # else
if (setlocale (LC_ALL, "") == NULL) return 1; if (setlocale (LC_ALL, "") == NULL) return 1;
#endif # endif
/* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
is empty, and the behaviour of Tcl 8.4 in this locale is not useful. is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
On OpenBSD 4.0, when an unsupported locale is specified, setlocale() On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
succeeds but then nl_langinfo(CODESET) is "646". In this situation, succeeds but then nl_langinfo(CODESET) is "646". In this situation,
some unit tests fail. some unit tests fail.
On MirBSD 10, when an unsupported locale is specified, setlocale() On MirBSD 10, when an unsupported locale is specified, setlocale()
succeeds but then nl_langinfo(CODESET) is "UTF-8". */ succeeds but then nl_langinfo(CODESET) is "UTF-8". */
#if HAVE_LANGINFO_CODESET # if HAVE_LANGINFO_CODESET
{ {
const char *cs = nl_langinfo (CODESET); const char *cs = nl_langinfo (CODESET);
if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
|| strcmp (cs, "UTF-8") == 0) || strcmp (cs, "UTF-8") == 0)
return 1; return 1;
} }
#endif # endif
#ifdef __CYGWIN__ # ifdef __CYGWIN__
/* On Cygwin, avoid locale names without encoding suffix, because the /* On Cygwin, avoid locale names without encoding suffix, because the
locale_charset() function relies on the encoding suffix. Note that locale_charset() function relies on the encoding suffix. Note that
LC_ALL is set on the command line. */ LC_ALL is set on the command line. */
if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
#endif # endif
/* Check whether in a month name, no byte in the range 0x80..0x9F occurs. /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
This excludes the UTF-8 encoding (except on MirBSD). */ This excludes the UTF-8 encoding (except on MirBSD). */
t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; {
if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; const char *p;
for (p = buf; *p != '\0'; p++) t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
return 1; for (p = buf; *p != '\0'; p++)
if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
return 1;
}
/* Check whether a typical GB18030 multibyte sequence is recognized as a /* Check whether a typical GB18030 multibyte sequence is recognized as a
single wide character. This excludes the GB2312 and GBK encodings. */ single wide character. This excludes the GB2312 and GBK encodings. */
if (mblen ("\203\062\332\066", 5) != 4) if (mblen ("\203\062\332\066", 5) != 4)
return 1; return 1;
return 0; return 0;
#endif
} }
_ACEOF _ACEOF
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; } && test -s conftest$ac_exeext; then test $ac_status = 0; } && test -s conftest$ac_exeext; then
case "$host_os" in case "$host_os" in
# Handle native Windows specially, because there setlocale() interprets # Handle native Windows specially, because there setlocale() interprets
skipping to change at line 10603 skipping to change at line 10662
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
struct tm t; struct tm t;
char buf[16]; char buf[16];
int main () { int main () {
/* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
imitates locale dependent behaviour by looking at the environment imitates locale dependent behaviour by looking at the environment
variables, and all locales use the UTF-8 encoding. */ variables, and all locales use the UTF-8 encoding. */
#if !(defined __BEOS__ || defined __HAIKU__) #if !(defined __BEOS__ || defined __HAIKU__)
/* Check whether the given locale name is recognized by the system. */ /* Check whether the given locale name is recognized by the system. */
# if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ # if defined _WIN32 && !defined __CYGWIN__
/* On native Windows, setlocale(category, "") looks at the system settings, /* On native Windows, setlocale(category, "") looks at the system settings,
not at the environment variables. Also, when an encoding suffix such not at the environment variables. Also, when an encoding suffix such
as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
category of the locale to "C". */ category of the locale to "C". */
if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
|| strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
return 1; return 1;
# else # else
if (setlocale (LC_ALL, "") == NULL) return 1; if (setlocale (LC_ALL, "") == NULL) return 1;
# endif # endif
skipping to change at line 10704 skipping to change at line 10763
;; ;;
esac esac
fi fi
rm -fr conftest* rm -fr conftest*
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
$as_echo "$gt_cv_locale_fr_utf8" >&6; } $as_echo "$gt_cv_locale_fr_utf8" >&6; }
LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
$as_echo_n "checking for inline... " >&6; }
if ${ac_cv_c_inline+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#ifndef __cplusplus
typedef int foo_t;
static $ac_kw foo_t static_foo () {return 0; }
$ac_kw foo_t foo () {return 0; }
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
ac_cv_c_inline=$ac_kw
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
test "$ac_cv_c_inline" != no && break
done
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
$as_echo "$ac_cv_c_inline" >&6; }
case $ac_cv_c_inline in
inline | yes) ;;
*)
case $ac_cv_c_inline in
no) ac_val=;;
*) ac_val=$ac_cv_c_inline;;
esac
cat >>confdefs.h <<_ACEOF
#ifndef __cplusplus
#define inline $ac_val
#endif
_ACEOF
;;
esac
GNULIB_EXPLICIT_BZERO=0; GNULIB_EXPLICIT_BZERO=0;
GNULIB_FFSL=0; GNULIB_FFSL=0;
GNULIB_FFSLL=0; GNULIB_FFSLL=0;
GNULIB_MEMCHR=0; GNULIB_MEMCHR=0;
GNULIB_MEMMEM=0; GNULIB_MEMMEM=0;
GNULIB_MEMPCPY=0; GNULIB_MEMPCPY=0;
GNULIB_MEMRCHR=0; GNULIB_MEMRCHR=0;
GNULIB_RAWMEMCHR=0; GNULIB_RAWMEMCHR=0;
GNULIB_STPCPY=0; GNULIB_STPCPY=0;
GNULIB_STPNCPY=0; GNULIB_STPNCPY=0;
skipping to change at line 10767 skipping to change at line 10868
HAVE_STRPBRK=1; HAVE_STRPBRK=1;
HAVE_STRSEP=1; HAVE_STRSEP=1;
HAVE_STRCASESTR=1; HAVE_STRCASESTR=1;
HAVE_DECL_STRTOK_R=1; HAVE_DECL_STRTOK_R=1;
HAVE_DECL_STRERROR_R=1; HAVE_DECL_STRERROR_R=1;
HAVE_DECL_STRSIGNAL=1; HAVE_DECL_STRSIGNAL=1;
HAVE_STRVERSCMP=1; HAVE_STRVERSCMP=1;
REPLACE_MEMCHR=0; REPLACE_MEMCHR=0;
REPLACE_MEMMEM=0; REPLACE_MEMMEM=0;
REPLACE_STPNCPY=0; REPLACE_STPNCPY=0;
REPLACE_STRCHRNUL=0;
REPLACE_STRDUP=0; REPLACE_STRDUP=0;
REPLACE_STRNCAT=0;
REPLACE_STRNDUP=0;
REPLACE_STRNLEN=0;
REPLACE_STRSTR=0; REPLACE_STRSTR=0;
REPLACE_STRCASESTR=0; REPLACE_STRCASESTR=0;
REPLACE_STRCHRNUL=0; REPLACE_STRTOK_R=0;
REPLACE_STRERROR=0; REPLACE_STRERROR=0;
REPLACE_STRERROR_R=0; REPLACE_STRERROR_R=0;
REPLACE_STRNCAT=0;
REPLACE_STRNDUP=0;
REPLACE_STRNLEN=0;
REPLACE_STRSIGNAL=0; REPLACE_STRSIGNAL=0;
REPLACE_STRTOK_R=0;
UNDEFINE_STRTOK_R=0; UNDEFINE_STRTOK_R=0;
# Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it # 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 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
# irrelevant for anonymous mappings. # irrelevant for anonymous mappings.
ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
if test "x$ac_cv_func_mmap" = xyes; then : if test "x$ac_cv_func_mmap" = xyes; then :
gl_have_mmap=yes gl_have_mmap=yes
else else
gl_have_mmap=no gl_have_mmap=no
skipping to change at line 10839 skipping to change at line 10940
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >& 5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >& 5
$as_echo "$gl_have_mmap_anonymous" >&6; } $as_echo "$gl_have_mmap_anonymous" >&6; }
if test $gl_have_mmap_anonymous = yes; then if test $gl_have_mmap_anonymous = yes; then
$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
fi fi
fi fi
:
:
if test $HAVE_MEMCHR = 1; then if test $HAVE_MEMCHR = 1; then
# Detect platform-specific bugs in some versions of glibc: # Detect platform-specific bugs in some versions of glibc:
# memchr should not dereference anything with length 0 # memchr should not dereference anything with length 0
# http://bugzilla.redhat.com/499689 # https://bugzilla.redhat.com/show_bug.cgi?id=499689
# memchr should not dereference overestimated length after a match # memchr should not dereference overestimated length after a match
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
# http://sourceware.org/bugzilla/show_bug.cgi?id=10162 # https://sourceware.org/bugzilla/show_bug.cgi?id=10162
# memchr should cast the second argument to 'unsigned char'.
# This bug exists in Android 4.3.
# Assume that memchr works on platforms that lack mprotect. # Assume that memchr works on platforms that lack mprotect.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
$as_echo_n "checking whether memchr works... " >&6; } $as_echo_n "checking whether memchr works... " >&6; }
if ${gl_cv_func_memchr_works+:} false; then : if ${gl_cv_func_memchr_works+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
if test "$cross_compiling" = yes; then : if test "$cross_compiling" = yes; then :
case "$host_os" in case "$host_os" in
# Guess yes on native Windows. # Guess no on Android.
mingw*) gl_cv_func_memchr_works="guessing yes" ;; linux*-android*) gl_cv_func_memchr_works="guessing no" ;;
# Be pessimistic for now. # Guess yes on native Windows.
*) gl_cv_func_memchr_works="guessing no" ;; mingw*) gl_cv_func_memchr_works="guessing yes" ;;
# Be pessimistic for now.
*) gl_cv_func_memchr_works="guessing no" ;;
esac esac
else else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#include <string.h> #include <string.h>
#if HAVE_SYS_MMAN_H #if HAVE_SYS_MMAN_H
# include <fcntl.h> # include <fcntl.h>
# include <unistd.h> # include <unistd.h>
skipping to change at line 10914 skipping to change at line 11015
if (fence) if (fence)
{ {
if (memchr (fence, 0, 0)) if (memchr (fence, 0, 0))
result |= 1; result |= 1;
strcpy (fence - 9, "12345678"); strcpy (fence - 9, "12345678");
if (memchr (fence - 9, 0, 79) != fence - 1) if (memchr (fence - 9, 0, 79) != fence - 1)
result |= 2; result |= 2;
if (memchr (fence - 1, 0, 3) != fence - 1) if (memchr (fence - 1, 0, 3) != fence - 1)
result |= 4; result |= 4;
} }
/* Test against bug on Android 4.3. */
{
char input[3];
input[0] = 'a';
input[1] = 'b';
input[2] = 'c';
if (memchr (input, 0x789abc00 | 'b', 3) != input + 1)
result |= 8;
}
return result; return result;
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
if ac_fn_c_try_run "$LINENO"; then : if ac_fn_c_try_run "$LINENO"; then :
gl_cv_func_memchr_works=yes gl_cv_func_memchr_works=yes
else else
gl_cv_func_memchr_works=no gl_cv_func_memchr_works=no
skipping to change at line 10949 skipping to change at line 11059
$as_echo_n "checking for C/C++ restrict keyword... " >&6; } $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
if ${ac_cv_c_restrict+:} false; then : if ${ac_cv_c_restrict+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
ac_cv_c_restrict=no ac_cv_c_restrict=no
# The order here caters to the fact that C++ does not require restrict. # The order here caters to the fact that C++ does not require restrict.
for ac_kw in __restrict __restrict__ _Restrict restrict; do for ac_kw in __restrict __restrict__ _Restrict restrict; do
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
typedef int *int_ptr; typedef int *int_ptr;
int foo (int_ptr $ac_kw ip) { return ip[0]; } int foo (int_ptr $ac_kw ip) { return ip[0]; }
int bar (int [$ac_kw]); /* Catch GCC bug 14050. */ int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
int bar (int ip[$ac_kw]) { return ip[0]; } int bar (int ip[$ac_kw]) { return ip[0]; }
int int
main () main ()
{ {
int s[1]; int s[1];
int *$ac_kw t = s; int *$ac_kw t = s;
t[0] = 0; t[0] = 0;
return foo (t) + bar (t); return foo (t) + bar (t);
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
if ac_fn_c_try_compile "$LINENO"; then : if ac_fn_c_try_compile "$LINENO"; then :
ac_cv_c_restrict=$ac_kw ac_cv_c_restrict=$ac_kw
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
test "$ac_cv_c_restrict" != no && break test "$ac_cv_c_restrict" != no && break
skipping to change at line 10986 skipping to change at line 11096
case $ac_cv_c_restrict in case $ac_cv_c_restrict in
restrict) ;; restrict) ;;
no) $as_echo "#define restrict /**/" >>confdefs.h no) $as_echo "#define restrict /**/" >>confdefs.h
;; ;;
*) cat >>confdefs.h <<_ACEOF *) cat >>confdefs.h <<_ACEOF
#define restrict $ac_cv_c_restrict #define restrict $ac_cv_c_restrict
_ACEOF _ACEOF
;; ;;
esac esac
ac_fn_c_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_incl udes_default" ac_fn_c_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_d efault"
if test "x$ac_cv_have_decl_memrchr" = xyes; then : if test "x$ac_cv_have_decl_memrchr" = xyes; then :
ac_have_decl=1 ac_have_decl=1
else else
ac_have_decl=0 ac_have_decl=0
fi fi
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_MEMRCHR $ac_have_decl #define HAVE_DECL_MEMRCHR $ac_have_decl
_ACEOF _ACEOF
skipping to change at line 11103 skipping to change at line 11213
$as_echo "$gl_cv_promoted_mode_t" >&6; } $as_echo "$gl_cv_promoted_mode_t" >&6; }
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define PROMOTED_MODE_T $gl_cv_promoted_mode_t #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
_ACEOF _ACEOF
GNULIB_POLL=0; GNULIB_POLL=0;
HAVE_POLL=1; HAVE_POLL=1;
REPLACE_POLL=0; REPLACE_POLL=0;
:
if test $ac_cv_header_poll_h = yes; then if test $ac_cv_header_poll_h = yes; then
HAVE_POLL_H=1 HAVE_POLL_H=1
else else
HAVE_POLL_H=0 HAVE_POLL_H=0
fi fi
:
if test $gl_cv_have_include_next = yes; then if test $gl_cv_have_include_next = yes; then
gl_cv_next_poll_h='<'poll.h'>' gl_cv_next_poll_h='<'poll.h'>'
else else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <poll. h>" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <poll. h>" >&5
$as_echo_n "checking absolute name of <poll.h>... " >&6; } $as_echo_n "checking absolute name of <poll.h>... " >&6; }
if ${gl_cv_next_poll_h+:} false; then : if ${gl_cv_next_poll_h+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
if test $ac_cv_header_poll_h = yes; then if test $ac_cv_header_poll_h = yes; then
skipping to change at line 11175 skipping to change at line 11281
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = b uggy; then if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = b uggy; then
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
gl_next_as_first_directive='<'poll.h'>' gl_next_as_first_directive='<'poll.h'>'
else else
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
gl_next_as_first_directive=$gl_cv_next_poll_h gl_next_as_first_directive=$gl_cv_next_poll_h
fi fi
NEXT_AS_FIRST_DIRECTIVE_POLL_H=$gl_next_as_first_directive NEXT_AS_FIRST_DIRECTIVE_POLL_H=$gl_next_as_first_directive
for gl_func in poll; 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 declar
ed without a macro" >&5
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
if eval \${$as_gl_Symbol+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <poll.h>
int
main ()
{
#undef $gl_func
(void) $gl_func;
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
eval "$as_gl_Symbol=yes"
else
eval "$as_gl_Symbol=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$as_gl_Symbol
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
_ACEOF
eval ac_cv_have_decl_$gl_func=yes
fi
done
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
$as_echo_n "checking for inline... " >&6; }
if ${ac_cv_c_inline+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#ifndef __cplusplus
typedef int foo_t;
static $ac_kw foo_t static_foo () {return 0; }
$ac_kw foo_t foo () {return 0; }
#endif
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
ac_cv_c_inline=$ac_kw
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
test "$ac_cv_c_inline" != no && break
done
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
$as_echo "$ac_cv_c_inline" >&6; }
case $ac_cv_c_inline in
inline | yes) ;;
*)
case $ac_cv_c_inline in
no) ac_val=;;
*) ac_val=$ac_cv_c_inline;;
esac
cat >>confdefs.h <<_ACEOF
#ifndef __cplusplus
#define inline $ac_val
#endif
_ACEOF
;;
esac
:
if test $ac_cv_header_sys_socket_h != yes; then if test $ac_cv_header_sys_socket_h != yes; then
for ac_header in winsock2.h for ac_header in winsock2.h
do : do :
ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 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" = xyes; then : if test "x$ac_cv_header_winsock2_h" = xyes; then :
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define HAVE_WINSOCK2_H 1 #define HAVE_WINSOCK2_H 1
_ACEOF _ACEOF
fi fi
skipping to change at line 11326 skipping to change at line 11350
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5
$as_echo "$gl_cv_func_wsastartup" >&6; } $as_echo "$gl_cv_func_wsastartup" >&6; }
if test "$gl_cv_func_wsastartup" = "yes"; then if test "$gl_cv_func_wsastartup" = "yes"; then
$as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h $as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h
LIBSOCKET='-lws2_32' LIBSOCKET='-lws2_32'
fi fi
else else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for librar y containing setsockopt" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: che cking for library containing setsockopt" >&5
$as_echo_n "checking for library containing setsockopt... " >&6; } $as_echo_n "checking for library containing setsockopt... " >&6; }
if ${gl_cv_lib_socket+:} false; then : if ${gl_cv_lib_socket+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
gl_cv_lib_socket= gl_cv_lib_socket=
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
extern extern
#ifdef __cplusplus #ifdef __cplusplus
skipping to change at line 11526 skipping to change at line 11550
conftest$ac_exeext conftest.$ac_ext conftest$ac_exeext conftest.$ac_ext
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi fi
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_self contained" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_self contained" >&5
$as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; } $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
:
if test $gl_cv_have_include_next = yes; then if test $gl_cv_have_include_next = yes; then
gl_cv_next_sys_select_h='<'sys/select.h'>' gl_cv_next_sys_select_h='<'sys/select.h'>'
else else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/s elect.h>" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/s elect.h>" >&5
$as_echo_n "checking absolute name of <sys/select.h>... " >&6; } $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
if ${gl_cv_next_sys_select_h+:} false; then : if ${gl_cv_next_sys_select_h+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
if test $ac_cv_header_sys_select_h = yes; then if test $ac_cv_header_sys_select_h = yes; then
skipping to change at line 11596 skipping to change at line 11618
gl_next_as_first_directive=$gl_cv_next_sys_select_h gl_next_as_first_directive=$gl_cv_next_sys_select_h
fi fi
NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
if test $ac_cv_header_sys_select_h = yes; then if test $ac_cv_header_sys_select_h = yes; then
HAVE_SYS_SELECT_H=1 HAVE_SYS_SELECT_H=1
else else
HAVE_SYS_SELECT_H=0 HAVE_SYS_SELECT_H=0
fi fi
:
if test $ac_cv_header_sys_socket_h != yes; then if test $ac_cv_header_sys_socket_h != yes; then
for ac_header in winsock2.h for ac_header in winsock2.h
do : do :
ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 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" = xyes; then : if test "x$ac_cv_header_winsock2_h" = xyes; then :
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define HAVE_WINSOCK2_H 1 #define HAVE_WINSOCK2_H 1
_ACEOF _ACEOF
fi fi
skipping to change at line 11620 skipping to change at line 11640
fi fi
if test "$ac_cv_header_winsock2_h" = yes; then if test "$ac_cv_header_winsock2_h" = yes; then
HAVE_WINSOCK2_H=1 HAVE_WINSOCK2_H=1
UNISTD_H_HAVE_WINSOCK2_H=1 UNISTD_H_HAVE_WINSOCK2_H=1
SYS_IOCTL_H_HAVE_WINSOCK2_H=1 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
else else
HAVE_WINSOCK2_H=0 HAVE_WINSOCK2_H=0
fi fi
for gl_func in pselect select; 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 declar
ed without a macro" >&5
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
if eval \${$as_gl_Symbol+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* Some systems require prerequisite headers. */
#include <sys/types.h>
#if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#include <sys/select.h>
int
main ()
{
#undef $gl_func
(void) $gl_func;
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
eval "$as_gl_Symbol=yes"
else
eval "$as_gl_Symbol=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$as_gl_Symbol
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
_ACEOF
eval ac_cv_have_decl_$gl_func=yes
fi
done
GNULIB_PTHREAD_SIGMASK=0; GNULIB_PTHREAD_SIGMASK=0;
GNULIB_RAISE=0; GNULIB_RAISE=0;
GNULIB_SIGNAL_H_SIGPIPE=0; GNULIB_SIGNAL_H_SIGPIPE=0;
GNULIB_SIGPROCMASK=0; GNULIB_SIGPROCMASK=0;
GNULIB_SIGACTION=0; GNULIB_SIGACTION=0;
HAVE_POSIX_SIGNALBLOCKING=1; HAVE_POSIX_SIGNALBLOCKING=1;
HAVE_PTHREAD_SIGMASK=1; HAVE_PTHREAD_SIGMASK=1;
HAVE_RAISE=1; HAVE_RAISE=1;
HAVE_SIGSET_T=1; HAVE_SIGSET_T=1;
HAVE_SIGINFO_T=1; HAVE_SIGINFO_T=1;
skipping to change at line 11734 skipping to change at line 11709
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
$as_echo "$ac_cv_type_uid_t" >&6; } $as_echo "$ac_cv_type_uid_t" >&6; }
if test $ac_cv_type_uid_t = no; then if test $ac_cv_type_uid_t = no; then
$as_echo "#define uid_t int" >>confdefs.h $as_echo "#define uid_t int" >>confdefs.h
$as_echo "#define gid_t int" >>confdefs.h $as_echo "#define gid_t int" >>confdefs.h
fi fi
:
if test $ac_cv_header_sys_socket_h = no; then if test $ac_cv_header_sys_socket_h = no; then
for ac_header in ws2tcpip.h for ac_header in ws2tcpip.h
do : do :
ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default" ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
if test "x$ac_cv_header_ws2tcpip_h" = xyes; then : if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define HAVE_WS2TCPIP_H 1 #define HAVE_WS2TCPIP_H 1
_ACEOF _ACEOF
fi fi
skipping to change at line 11804 skipping to change at line 11777
char g[true]; char g[true];
char h[sizeof (Bool)]; char h[sizeof (Bool)];
char i[sizeof s.t]; char i[sizeof s.t];
enum { j = false, k = true, l = false * true, m = true * 256 }; enum { j = false, k = true, l = false * true, m = true * 256 };
/* The following fails for /* The following fails for
HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
Bool n[m]; Bool n[m];
char o[sizeof n == m * sizeof n[0] ? 1 : -1]; char o[sizeof n == m * sizeof n[0] ? 1 : -1];
char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
/* Catch a bug in an HP-UX C compiler. See /* Catch a bug in an HP-UX C compiler. See
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
.html
*/ */
Bool q = true; Bool q = true;
Bool *pq = &q; Bool *pq = &q;
bool *qq = &q; bool *qq = &q;
int int
main () main ()
{ {
bool e = &s; bool e = &s;
skipping to change at line 11976 skipping to change at line 11949
else else
HAVE_LONG_LONG_INT=0 HAVE_LONG_LONG_INT=0
fi fi
if test $ac_cv_type_unsigned_long_long_int = yes; then if test $ac_cv_type_unsigned_long_long_int = yes; then
HAVE_UNSIGNED_LONG_LONG_INT=1 HAVE_UNSIGNED_LONG_LONG_INT=1
else else
HAVE_UNSIGNED_LONG_LONG_INT=0 HAVE_UNSIGNED_LONG_LONG_INT=0
fi fi
:
if test $ac_cv_header_wchar_h = yes; then if test $ac_cv_header_wchar_h = yes; then
HAVE_WCHAR_H=1 HAVE_WCHAR_H=1
else else
HAVE_WCHAR_H=0 HAVE_WCHAR_H=0
fi fi
if test $ac_cv_header_inttypes_h = yes; then if test $ac_cv_header_inttypes_h = yes; then
HAVE_INTTYPES_H=1 HAVE_INTTYPES_H=1
else else
HAVE_INTTYPES_H=0 HAVE_INTTYPES_H=0
fi fi
if test $ac_cv_header_sys_types_h = yes; then if test $ac_cv_header_sys_types_h = yes; then
HAVE_SYS_TYPES_H=1 HAVE_SYS_TYPES_H=1
else else
HAVE_SYS_TYPES_H=0 HAVE_SYS_TYPES_H=0
fi fi
:
if test $gl_cv_have_include_next = yes; then if test $gl_cv_have_include_next = yes; then
gl_cv_next_stdint_h='<'stdint.h'>' gl_cv_next_stdint_h='<'stdint.h'>'
else else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdin t.h>" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdin t.h>" >&5
$as_echo_n "checking absolute name of <stdint.h>... " >&6; } $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
if ${gl_cv_next_stdint_h+:} false; then : if ${gl_cv_next_stdint_h+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
if test $ac_cv_header_stdint_h = yes; then if test $ac_cv_header_stdint_h = yes; then
skipping to change at line 12754 skipping to change at line 12723
done done
if test $GNULIB_OVERRIDES_WINT_T = 1; then if test $GNULIB_OVERRIDES_WINT_T = 1; then
BITSIZEOF_WINT_T=32 BITSIZEOF_WINT_T=32
fi fi
;; ;;
esac esac
LIMITS_H=limits.h LIMITS_H='limits.h'
if test -n "$LIMITS_H"; then if test -n "$LIMITS_H"; then
GL_GENERATE_LIMITS_H_TRUE= GL_GENERATE_LIMITS_H_TRUE=
GL_GENERATE_LIMITS_H_FALSE='#' GL_GENERATE_LIMITS_H_FALSE='#'
else else
GL_GENERATE_LIMITS_H_TRUE='#' GL_GENERATE_LIMITS_H_TRUE='#'
GL_GENERATE_LIMITS_H_FALSE= GL_GENERATE_LIMITS_H_FALSE=
fi fi
if test -n "$STDINT_H"; then if test -n "$STDINT_H"; then
GL_GENERATE_STDINT_H_TRUE= GL_GENERATE_STDINT_H_TRUE=
skipping to change at line 12873 skipping to change at line 12842
REPLACE_STDIO_READ_FUNCS=0; REPLACE_STDIO_READ_FUNCS=0;
REPLACE_STDIO_WRITE_FUNCS=0; REPLACE_STDIO_WRITE_FUNCS=0;
REPLACE_TMPFILE=0; REPLACE_TMPFILE=0;
REPLACE_VASPRINTF=0; REPLACE_VASPRINTF=0;
REPLACE_VDPRINTF=0; REPLACE_VDPRINTF=0;
REPLACE_VFPRINTF=0; REPLACE_VFPRINTF=0;
REPLACE_VPRINTF=0; REPLACE_VPRINTF=0;
REPLACE_VSNPRINTF=0; REPLACE_VSNPRINTF=0;
REPLACE_VSPRINTF=0; REPLACE_VSPRINTF=0;
ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includ es_default" ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_def ault"
if test "x$ac_cv_have_decl_strdup" = xyes; then : if test "x$ac_cv_have_decl_strdup" = xyes; then :
ac_have_decl=1 ac_have_decl=1
else else
ac_have_decl=0 ac_have_decl=0
fi fi
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_STRDUP $ac_have_decl #define HAVE_DECL_STRDUP $ac_have_decl
_ACEOF _ACEOF
REPLACE_STRERROR_0=0 REPLACE_STRERROR_0=0
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds " >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds " >&5
$as_echo_n "checking whether strerror(0) succeeds... " >&6; } $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
if ${gl_cv_func_strerror_0_works+:} false; then : if ${gl_cv_func_strerror_0_works+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
if test "$cross_compiling" = yes; then : if test "$cross_compiling" = yes; then :
case "$host_os" in case "$host_os" in
# Guess yes on glibc systems. # Guess yes on glibc systems.
*-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;; *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
# Guess yes on native Windows. # Guess yes on native Windows.
mingw*) gl_cv_func_strerror_0_works="guessing yes" ;; mingw*) gl_cv_func_strerror_0_works="guessing yes" ;;
# If we don't know, assume the worst. # If we don't know, assume the worst.
*) gl_cv_func_strerror_0_works="guessing no" ;; *) gl_cv_func_strerror_0_works="guessing no" ;;
esac esac
else else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
int int
main () main ()
skipping to change at line 13001 skipping to change at line 12970
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = b uggy; then if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = b uggy; then
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
gl_next_as_first_directive='<'string.h'>' gl_next_as_first_directive='<'string.h'>'
else else
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
gl_next_as_first_directive=$gl_cv_next_string_h gl_next_as_first_directive=$gl_cv_next_string_h
fi fi
NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy st
rchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r
strerror_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 declar
ed without a macro" >&5
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
if eval \${$as_gl_Symbol+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <string.h>
int
main ()
{
#undef $gl_func
(void) $gl_func;
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
eval "$as_gl_Symbol=yes"
else
eval "$as_gl_Symbol=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$as_gl_Symbol
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
_ACEOF
eval ac_cv_have_decl_$gl_func=yes
fi
done
GNULIB_SOCKET=0; GNULIB_SOCKET=0;
GNULIB_CONNECT=0; GNULIB_CONNECT=0;
GNULIB_ACCEPT=0; GNULIB_ACCEPT=0;
GNULIB_BIND=0; GNULIB_BIND=0;
GNULIB_GETPEERNAME=0; GNULIB_GETPEERNAME=0;
GNULIB_GETSOCKNAME=0; GNULIB_GETSOCKNAME=0;
GNULIB_GETSOCKOPT=0; GNULIB_GETSOCKOPT=0;
GNULIB_LISTEN=0; GNULIB_LISTEN=0;
GNULIB_RECV=0; GNULIB_RECV=0;
GNULIB_SEND=0; GNULIB_SEND=0;
skipping to change at line 13143 skipping to change at line 13073
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut " >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut " >&5
$as_echo "$gl_cv_header_sys_socket_h_shut" >&6; } $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
if test $gl_cv_header_sys_socket_h_shut = no; then if test $gl_cv_header_sys_socket_h_shut = no; then
SYS_SOCKET_H='sys/socket.h' SYS_SOCKET_H='sys/socket.h'
fi fi
fi fi
fi fi
# We need to check for ws2tcpip.h now. # We need to check for ws2tcpip.h now.
:
if test $gl_cv_have_include_next = yes; then if test $gl_cv_have_include_next = yes; then
gl_cv_next_sys_socket_h='<'sys/socket.h'>' gl_cv_next_sys_socket_h='<'sys/socket.h'>'
else else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/s ocket.h>" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/s ocket.h>" >&5
$as_echo_n "checking absolute name of <sys/socket.h>... " >&6; } $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
if ${gl_cv_next_sys_socket_h+:} false; then : if ${gl_cv_next_sys_socket_h+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
if test $ac_cv_header_sys_socket_h = yes; then if test $ac_cv_header_sys_socket_h = yes; then
skipping to change at line 13292 skipping to change at line 13220
else else
HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0
fi fi
fi fi
if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \ if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \
|| test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
SYS_SOCKET_H='sys/socket.h' SYS_SOCKET_H='sys/socket.h'
fi fi
:
if test $ac_cv_header_sys_socket_h != yes; then if test $ac_cv_header_sys_socket_h != yes; then
for ac_header in winsock2.h for ac_header in winsock2.h
do : do :
ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 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" = xyes; then : if test "x$ac_cv_header_winsock2_h" = xyes; then :
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define HAVE_WINSOCK2_H 1 #define HAVE_WINSOCK2_H 1
_ACEOF _ACEOF
fi fi
skipping to change at line 13316 skipping to change at line 13242
fi fi
if test "$ac_cv_header_winsock2_h" = yes; then if test "$ac_cv_header_winsock2_h" = yes; then
HAVE_WINSOCK2_H=1 HAVE_WINSOCK2_H=1
UNISTD_H_HAVE_WINSOCK2_H=1 UNISTD_H_HAVE_WINSOCK2_H=1
SYS_IOCTL_H_HAVE_WINSOCK2_H=1 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
else else
HAVE_WINSOCK2_H=0 HAVE_WINSOCK2_H=0
fi fi
for gl_func in socket connect accept bind getpeername getsockname getsockopt
listen recv send recvfrom sendto setsockopt shutdown accept4; 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 declar
ed without a macro" >&5
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
if eval \${$as_gl_Symbol+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* Some systems require prerequisite headers. */
#include <sys/types.h>
#include <sys/socket.h>
int
main ()
{
#undef $gl_func
(void) $gl_func;
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
eval "$as_gl_Symbol=yes"
else
eval "$as_gl_Symbol=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$as_gl_Symbol
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
_ACEOF
eval ac_cv_have_decl_$gl_func=yes
fi
done
GNULIB_GETTIMEOFDAY=0; GNULIB_GETTIMEOFDAY=0;
HAVE_GETTIMEOFDAY=1; HAVE_GETTIMEOFDAY=1;
HAVE_STRUCT_TIMEVAL=1; HAVE_STRUCT_TIMEVAL=1;
HAVE_SYS_TIME_H=1; HAVE_SYS_TIME_H=1;
REPLACE_GETTIMEOFDAY=0; REPLACE_GETTIMEOFDAY=0;
REPLACE_STRUCT_TIMEVAL=0; REPLACE_STRUCT_TIMEVAL=0;
:
:
if test $gl_cv_have_include_next = yes; then if test $gl_cv_have_include_next = yes; then
gl_cv_next_sys_time_h='<'sys/time.h'>' gl_cv_next_sys_time_h='<'sys/time.h'>'
else else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/t ime.h>" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/t ime.h>" >&5
$as_echo_n "checking absolute name of <sys/time.h>... " >&6; } $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
if ${gl_cv_next_sys_time_h+:} false; then : if ${gl_cv_next_sys_time_h+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
if test $ac_cv_header_sys_time_h = yes; then if test $ac_cv_header_sys_time_h = yes; then
skipping to change at line 13435 skipping to change at line 13315
else else
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
gl_next_as_first_directive=$gl_cv_next_sys_time_h gl_next_as_first_directive=$gl_cv_next_sys_time_h
fi fi
NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
if test $ac_cv_header_sys_time_h != yes; then if test $ac_cv_header_sys_time_h != yes; then
HAVE_SYS_TIME_H=0 HAVE_SYS_TIME_H=0
fi fi
:
if test $ac_cv_header_sys_socket_h != yes; then if test $ac_cv_header_sys_socket_h != yes; then
for ac_header in winsock2.h for ac_header in winsock2.h
do : do :
ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 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" = xyes; then : if test "x$ac_cv_header_winsock2_h" = xyes; then :
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define HAVE_WINSOCK2_H 1 #define HAVE_WINSOCK2_H 1
_ACEOF _ACEOF
fi fi
skipping to change at line 13537 skipping to change at line 13415
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_se c" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_se c" >&5
$as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; } $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
if test $gl_cv_sys_struct_timeval_tv_sec != yes; then if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
REPLACE_STRUCT_TIMEVAL=1 REPLACE_STRUCT_TIMEVAL=1
fi fi
fi fi
for gl_func in gettimeofday; 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 declar
ed without a macro" >&5
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
if eval \${$as_gl_Symbol+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#if HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#include <time.h>
int
main ()
{
#undef $gl_func
(void) $gl_func;
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
eval "$as_gl_Symbol=yes"
else
eval "$as_gl_Symbol=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$as_gl_Symbol
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
_ACEOF
eval ac_cv_have_decl_$gl_func=yes
fi
done
GNULIB_TIMES=0; GNULIB_TIMES=0;
HAVE_STRUCT_TMS=1; HAVE_STRUCT_TMS=1;
HAVE_TIMES=1; HAVE_TIMES=1;
$as_echo "#define _USE_STD_STAT 1" >>confdefs.h $as_echo "#define _USE_STD_STAT 1" >>confdefs.h
if test $gl_cv_have_include_next = yes; then if test $gl_cv_have_include_next = yes; then
gl_cv_next_sys_types_h='<'sys/types.h'>' gl_cv_next_sys_types_h='<'sys/types.h'>'
else else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/t ypes.h>" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/t ypes.h>" >&5
skipping to change at line 13673 skipping to change at line 13508
REPLACE_MKTIME=GNULIB_PORTCHECK; REPLACE_MKTIME=GNULIB_PORTCHECK;
REPLACE_NANOSLEEP=GNULIB_PORTCHECK; REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
REPLACE_STRFTIME=GNULIB_PORTCHECK; REPLACE_STRFTIME=GNULIB_PORTCHECK;
REPLACE_TIMEGM=GNULIB_PORTCHECK; REPLACE_TIMEGM=GNULIB_PORTCHECK;
REPLACE_TZSET=GNULIB_PORTCHECK; REPLACE_TZSET=GNULIB_PORTCHECK;
: ${GNULIB_GETTIMEOFDAY=0}; : ${GNULIB_GETTIMEOFDAY=0};
REPLACE_GMTIME=0; REPLACE_GMTIME=0;
REPLACE_LOCALTIME=0; REPLACE_LOCALTIME=0;
:
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time .h>" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time .h>" >&5
$as_echo_n "checking for struct timespec in <time.h>... " >&6; } $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then : if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#include <time.h> #include <time.h>
int int
skipping to change at line 13879 skipping to change at line 13712
0 0
q q
' '
if test "$HAVE_LIBUNISTRING" = yes; then if test "$HAVE_LIBUNISTRING" = yes; then
LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_li bunistring_sed_extract_major"` LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_li bunistring_sed_extract_major"`
LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_li bunistring_sed_extract_minor"` LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_li bunistring_sed_extract_minor"`
LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl _libunistring_sed_extract_subminor"` LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl _libunistring_sed_extract_subminor"`
fi fi
:
if test $ac_cv_header_features_h = yes; then if test $ac_cv_header_features_h = yes; then
HAVE_FEATURES_H=1 HAVE_FEATURES_H=1
else else
HAVE_FEATURES_H=0 HAVE_FEATURES_H=0
fi fi
:
if test $ac_cv_header_crtdefs_h = yes; then if test $ac_cv_header_crtdefs_h = yes; then
HAVE_CRTDEFS_H=1 HAVE_CRTDEFS_H=1
else else
HAVE_CRTDEFS_H=0 HAVE_CRTDEFS_H=0
fi fi
GNULIB_ISWBLANK=0; GNULIB_ISWBLANK=0;
GNULIB_WCTYPE=0; GNULIB_WCTYPE=0;
GNULIB_ISWCTYPE=0; GNULIB_ISWCTYPE=0;
GNULIB_WCTRANS=0; GNULIB_WCTRANS=0;
skipping to change at line 13973 skipping to change at line 13802
if test -n "$ALLOCA_H"; then if test -n "$ALLOCA_H"; then
GL_GENERATE_ALLOCA_H_TRUE= GL_GENERATE_ALLOCA_H_TRUE=
GL_GENERATE_ALLOCA_H_FALSE='#' GL_GENERATE_ALLOCA_H_FALSE='#'
else else
GL_GENERATE_ALLOCA_H_TRUE='#' GL_GENERATE_ALLOCA_H_TRUE='#'
GL_GENERATE_ALLOCA_H_FALSE= GL_GENERATE_ALLOCA_H_FALSE=
fi fi
gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext" gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
:
if test $ac_cv_func_btowc = no; then if test $ac_cv_func_btowc = no; then
HAVE_BTOWC=0 HAVE_BTOWC=0
else else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is co rrect" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is co rrect" >&5
$as_echo_n "checking whether btowc(0) is correct... " >&6; } $as_echo_n "checking whether btowc(0) is correct... " >&6; }
if ${gl_cv_func_btowc_nul+:} false; then : if ${gl_cv_func_btowc_nul+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
skipping to change at line 14184 skipping to change at line 14011
#if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
# include <sys/param.h> # include <sys/param.h>
#endif #endif
#if !defined PATH_MAX && defined MAXPATHLEN #if !defined PATH_MAX && defined MAXPATHLEN
# define PATH_MAX MAXPATHLEN # define PATH_MAX MAXPATHLEN
#endif #endif
#ifdef __hpux #ifdef __hpux
# undef PATH_MAX # undef PATH_MAX
# define PATH_MAX 1024 # define PATH_MAX 1024
#endif #endif
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ #if defined _WIN32 && ! defined __CYGWIN__
# undef PATH_MAX # undef PATH_MAX
# define PATH_MAX 260 # define PATH_MAX 260
#endif #endif
#ifdef PATH_MAX #ifdef PATH_MAX
have_arbitrary_file_name_length_limit have_arbitrary_file_name_length_limit
#endif #endif
_ACEOF _ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "have_arbitrary_file_name_length_limit" >/dev/null 2>&1; then : $EGREP "have_arbitrary_file_name_length_limit" >/dev/null 2>&1; then :
skipping to change at line 14218 skipping to change at line 14045
: :
fi fi
$as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
REPLACE_CLOSE=1 REPLACE_CLOSE=1
fi fi
:
if test $ac_cv_header_sys_socket_h != yes; then if test $ac_cv_header_sys_socket_h != yes; then
for ac_header in winsock2.h for ac_header in winsock2.h
do : do :
ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 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" = xyes; then : if test "x$ac_cv_header_winsock2_h" = xyes; then :
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define HAVE_WINSOCK2_H 1 #define HAVE_WINSOCK2_H 1
_ACEOF _ACEOF
fi fi
skipping to change at line 14248 skipping to change at line 14073
else else
HAVE_WINSOCK2_H=0 HAVE_WINSOCK2_H=0
fi fi
if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
REPLACE_CLOSE=1 REPLACE_CLOSE=1
fi fi
if test $REPLACE_CLOSE = 0; then if test $REPLACE_CLOSE = 0; then
:
if test $ac_cv_func_fchdir = no; then if test $ac_cv_func_fchdir = no; then
HAVE_FCHDIR=0 HAVE_FCHDIR=0
fi fi
if test $HAVE_FCHDIR = 0; then if test $HAVE_FCHDIR = 0; then
REPLACE_CLOSE=1 REPLACE_CLOSE=1
fi fi
fi fi
if test $REPLACE_CLOSE = 1; then if test $REPLACE_CLOSE = 1; then
skipping to change at line 14284 skipping to change at line 14107
#define HAVE_CLOSEDIR 1 #define HAVE_CLOSEDIR 1
_ACEOF _ACEOF
fi fi
done done
if test $ac_cv_func_closedir = no; then if test $ac_cv_func_closedir = no; then
HAVE_CLOSEDIR=0 HAVE_CLOSEDIR=0
fi fi
:
if test $ac_cv_func_fchdir = no; then if test $ac_cv_func_fchdir = no; then
HAVE_FCHDIR=0 HAVE_FCHDIR=0
fi fi
if test $HAVE_FCHDIR = 0; then if test $HAVE_FCHDIR = 0; then
if test $HAVE_CLOSEDIR = 1; then if test $HAVE_CLOSEDIR = 1; then
REPLACE_CLOSEDIR=1 REPLACE_CLOSEDIR=1
fi fi
fi fi
skipping to change at line 14311 skipping to change at line 14132
if test $HAVE_CLOSEDIR = 0 || test $REPLACE_CLOSEDIR = 1; then if test $HAVE_CLOSEDIR = 0 || test $REPLACE_CLOSEDIR = 1; then
gl_LIBOBJS="$gl_LIBOBJS closedir.$ac_objext" gl_LIBOBJS="$gl_LIBOBJS closedir.$ac_objext"
fi fi
GNULIB_CLOSEDIR=1 GNULIB_CLOSEDIR=1
$as_echo "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h $as_echo "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h
if test "x$datarootdir" = x; then
datarootdir='${datadir}'
fi
if test "x$docdir" = x; then
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
fi
if test "x$htmldir" = x; then
htmldir='${docdir}'
fi
if test "x$dvidir" = x; then
dvidir='${docdir}'
fi
if test "x$pdfdir" = x; then
pdfdir='${docdir}'
fi
if test "x$psdir" = x; then
psdir='${docdir}'
fi
if test "x$lispdir" = x; then if test "x$lispdir" = x; then
lispdir='${datarootdir}/emacs/site-lisp' lispdir='${datarootdir}/emacs/site-lisp'
fi fi
if test "x$localedir" = x; then
localedir='${datarootdir}/locale'
fi
if test "x$runstatedir" = x; then if test "x$runstatedir" = x; then
runstatedir='${localstatedir}/run' runstatedir='${localstatedir}/run'
fi fi
pkglibexecdir='${libexecdir}/${PACKAGE}' pkglibexecdir='${libexecdir}/${PACKAGE}'
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino member in dire ctory struct" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino member in dire ctory struct" >&5
$as_echo_n "checking for d_ino member in directory struct... " >&6; } $as_echo_n "checking for d_ino member in directory struct... " >&6; }
if ${gl_cv_struct_dirent_d_ino+:} false; then : if ${gl_cv_struct_dirent_d_ino+:} false; then :
skipping to change at line 14414 skipping to change at line 14207
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_ino" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_ino" >&5
$as_echo "$gl_cv_struct_dirent_d_ino" >&6; } $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
case "$gl_cv_struct_dirent_d_ino" in case "$gl_cv_struct_dirent_d_ino" in
*yes) *yes)
$as_echo "#define D_INO_IN_DIRENT 1" >>confdefs.h $as_echo "#define D_INO_IN_DIRENT 1" >>confdefs.h
;; ;;
esac esac
:
if test $gl_cv_have_include_next = yes; then if test $gl_cv_have_include_next = yes; then
gl_cv_next_dirent_h='<'dirent.h'>' gl_cv_next_dirent_h='<'dirent.h'>'
else else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <diren t.h>" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <diren t.h>" >&5
$as_echo_n "checking absolute name of <dirent.h>... " >&6; } $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
if ${gl_cv_next_dirent_h+:} false; then : if ${gl_cv_next_dirent_h+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
if test $ac_cv_header_dirent_h = yes; then if test $ac_cv_header_dirent_h = yes; then
skipping to change at line 14484 skipping to change at line 14275
gl_next_as_first_directive=$gl_cv_next_dirent_h gl_next_as_first_directive=$gl_cv_next_dirent_h
fi fi
NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
if test $ac_cv_header_dirent_h = yes; then if test $ac_cv_header_dirent_h = yes; then
HAVE_DIRENT_H=1 HAVE_DIRENT_H=1
else else
HAVE_DIRENT_H=0 HAVE_DIRENT_H=0
fi fi
for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir
scandir; 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 declar
ed without a macro" >&5
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
if eval \${$as_gl_Symbol+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <dirent.h>
int
main ()
{
#undef $gl_func
(void) $gl_func;
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
eval "$as_gl_Symbol=yes"
else
eval "$as_gl_Symbol=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$as_gl_Symbol
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
_ACEOF
eval ac_cv_have_decl_$gl_func=yes
fi
done
for ac_func in dirfd for ac_func in dirfd
do : do :
ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd" ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
if test "x$ac_cv_func_dirfd" = xyes; then : if test "x$ac_cv_func_dirfd" = xyes; then :
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define HAVE_DIRFD 1 #define HAVE_DIRFD 1
_ACEOF _ACEOF
fi fi
done done
skipping to change at line 14686 skipping to change at line 14438
if test "$gl_cv_double_slash_root" = yes; then if test "$gl_cv_double_slash_root" = yes; then
$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
fi fi
if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
REPLACE_DUP=1 REPLACE_DUP=1
fi fi
:
if test $ac_cv_func_fchdir = no; then if test $ac_cv_func_fchdir = no; then
HAVE_FCHDIR=0 HAVE_FCHDIR=0
fi fi
if test $HAVE_FCHDIR = 0; then if test $HAVE_FCHDIR = 0; then
REPLACE_DUP=1 REPLACE_DUP=1
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup works" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup works" >&5
$as_echo_n "checking whether dup works... " >&6; } $as_echo_n "checking whether dup works... " >&6; }
skipping to change at line 14878 skipping to change at line 14628
#define HAVE_SETDTABLESIZE 1 #define HAVE_SETDTABLESIZE 1
_ACEOF _ACEOF
fi fi
done done
;; ;;
esac esac
fi fi
:
if test $ac_cv_func_fchdir = no; then if test $ac_cv_func_fchdir = no; then
HAVE_FCHDIR=0 HAVE_FCHDIR=0
fi fi
if test $HAVE_FCHDIR = 0; then if test $HAVE_FCHDIR = 0; then
if test $HAVE_DUP2 = 1; then if test $HAVE_DUP2 = 1; then
REPLACE_DUP2=1 REPLACE_DUP2=1
fi fi
fi fi
skipping to change at line 14939 skipping to change at line 14687
gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext" gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
: :
fi fi
XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format" XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-forma t" XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-forma t"
:
if test $ac_cv_have_decl_fchdir = no; then if test $ac_cv_have_decl_fchdir = no; then
HAVE_DECL_FCHDIR=0 HAVE_DECL_FCHDIR=0
fi fi
if test $HAVE_FCHDIR = 0; then if test $HAVE_FCHDIR = 0; then
gl_LIBOBJS="$gl_LIBOBJS fchdir.$ac_objext" gl_LIBOBJS="$gl_LIBOBJS fchdir.$ac_objext"
: :
$as_echo "#define REPLACE_FCHDIR 1" >>confdefs.h $as_echo "#define REPLACE_FCHDIR 1" >>confdefs.h
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open c an visit directories" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open c an visit directories" >&5
$as_echo_n "checking whether open can visit directories... " >&6; } $as_echo_n "checking whether open can visit directories... " >&6; }
if ${gl_cv_func_open_directory_works+:} false; then : if ${gl_cv_func_open_directory_works+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
if test "$cross_compiling" = yes; then : if test "$cross_compiling" = yes; then :
case "$host_os" in case "$host_os" in
# Guess yes on glibc systems. # Guess yes on Linux systems.
*-gnu*) gl_cv_func_open_directory_works="guessing yes" ;; linux-* | linux) gl_cv_func_open_directory_works="guessing yes" ;;
# Guess no on native Windows. # Guess yes on glibc systems.
mingw*) gl_cv_func_open_directory_works="guessing no" ;; *-gnu* | gnu*) gl_cv_func_open_directory_works="guessing yes" ;;
# If we don't know, assume the worst. # Guess no on native Windows.
*) gl_cv_func_open_directory_works="guessing no" ;; mingw*) gl_cv_func_open_directory_works="guessing no" ;;
# If we don't know, assume the worst.
*) gl_cv_func_open_directory_works="guessing no" ;;
esac esac
else else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#include <fcntl.h> #include <fcntl.h>
int int
main () main ()
{ {
skipping to change at line 15007 skipping to change at line 14755
$as_echo "#define REPLACE_OPEN_DIRECTORY 1" >>confdefs.h $as_echo "#define REPLACE_OPEN_DIRECTORY 1" >>confdefs.h
;; ;;
esac esac
fi fi
GNULIB_FCHDIR=1 GNULIB_FCHDIR=1
$as_echo "#define GNULIB_TEST_FCHDIR 1" >>confdefs.h $as_echo "#define GNULIB_TEST_FCHDIR 1" >>confdefs.h
:
if test $ac_cv_func_fcntl = no; then if test $ac_cv_func_fcntl = no; then
:
if test $ac_cv_func_fcntl = no; then if test $ac_cv_func_fcntl = no; then
HAVE_FCNTL=0 HAVE_FCNTL=0
else else
REPLACE_FCNTL=1 REPLACE_FCNTL=1
fi fi
else else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl hand les F_DUPFD correctly" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl hand les F_DUPFD correctly" >&5
$as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; } $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
if ${gl_cv_func_fcntl_f_dupfd_works+:} false; then : if ${gl_cv_func_fcntl_f_dupfd_works+:} false; then :
skipping to change at line 15094 skipping to change at line 14838
conftest.$ac_objext conftest.beam conftest.$ac_ext conftest.$ac_objext conftest.beam conftest.$ac_ext
fi fi
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works " >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works " >&5
$as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; } $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
case $gl_cv_func_fcntl_f_dupfd_works in case $gl_cv_func_fcntl_f_dupfd_works in
*yes) ;; *yes) ;;
*) *)
:
if test $ac_cv_func_fcntl = no; then if test $ac_cv_func_fcntl = no; then
HAVE_FCNTL=0 HAVE_FCNTL=0
else else
REPLACE_FCNTL=1 REPLACE_FCNTL=1
fi fi
$as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
;; ;;
esac esac
skipping to change at line 15160 skipping to change at line 14902
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else else
gl_cv_func_fcntl_f_dupfd_cloexec=no gl_cv_func_fcntl_f_dupfd_cloexec=no
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloex ec" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloex ec" >&5
$as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; } $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
:
if test $ac_cv_func_fcntl = no; then if test $ac_cv_func_fcntl = no; then
HAVE_FCNTL=0 HAVE_FCNTL=0
else else
REPLACE_FCNTL=1 REPLACE_FCNTL=1
fi fi
fi fi
fi fi
:
if test $ac_cv_func_fchdir = no; then if test $ac_cv_func_fchdir = no; then
HAVE_FCHDIR=0 HAVE_FCHDIR=0
fi fi
if test $HAVE_FCHDIR = 0; then if test $HAVE_FCHDIR = 0; then
:
if test $ac_cv_func_fcntl = no; then if test $ac_cv_func_fcntl = no; then
HAVE_FCNTL=0 HAVE_FCNTL=0
else else
REPLACE_FCNTL=1 REPLACE_FCNTL=1
fi fi
fi fi
if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
skipping to change at line 15256 skipping to change at line 14992
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = b uggy; then if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = b uggy; then
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
gl_next_as_first_directive='<'fcntl.h'>' gl_next_as_first_directive='<'fcntl.h'>'
else else
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
gl_next_as_first_directive=$gl_cv_next_fcntl_h gl_next_as_first_directive=$gl_cv_next_fcntl_h
fi fi
NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
for gl_func in fcntl openat; 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 declar
ed without a macro" >&5
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
if eval \${$as_gl_Symbol+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <fcntl.h>
int
main ()
{
#undef $gl_func
(void) $gl_func;
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
eval "$as_gl_Symbol=yes"
else
eval "$as_gl_Symbol=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$as_gl_Symbol
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
_ACEOF
eval ac_cv_have_decl_$gl_func=yes
fi
done
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define GNULIB_FD_SAFER_FLAG 1 #define GNULIB_FD_SAFER_FLAG 1
_ACEOF _ACEOF
ac_fn_c_check_decl "$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" " ac_fn_c_check_decl "$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
#include <dirent.h> #include <dirent.h>
" "
if test "x$ac_cv_have_decl_fdopendir" = xyes; then : if test "x$ac_cv_have_decl_fdopendir" = xyes; then :
ac_have_decl=1 ac_have_decl=1
skipping to change at line 15318 skipping to change at line 15015
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_FDOPENDIR $ac_have_decl #define HAVE_DECL_FDOPENDIR $ac_have_decl
_ACEOF _ACEOF
if test $ac_have_decl = 1; then : if test $ac_have_decl = 1; then :
else else
HAVE_DECL_FDOPENDIR=0 HAVE_DECL_FDOPENDIR=0
fi fi
:
if test $ac_cv_func_fdopendir = no; then if test $ac_cv_func_fdopendir = no; then
HAVE_FDOPENDIR=0 HAVE_FDOPENDIR=0
else else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" > &5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" > &5
$as_echo_n "checking whether fdopendir works... " >&6; } $as_echo_n "checking whether fdopendir works... " >&6; }
if ${gl_cv_func_fdopendir_works+:} false; then : if ${gl_cv_func_fdopendir_works+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
if test "$cross_compiling" = yes; then : if test "$cross_compiling" = yes; then :
case "$host_os" in case "$host_os" in
skipping to change at line 15398 skipping to change at line 15093
fi fi
GNULIB_FDOPENDIR=1 GNULIB_FDOPENDIR=1
$as_echo "#define GNULIB_TEST_FDOPENDIR 1" >>confdefs.h $as_echo "#define GNULIB_TEST_FDOPENDIR 1" >>confdefs.h
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define GNULIB_FDOPENDIR 1 #define GNULIB_FDOPENDIR 1
_ACEOF _ACEOF
:
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" > &5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" > &5
$as_echo_n "checking for flexible array member... " >&6; } $as_echo_n "checking for flexible array member... " >&6; }
if ${ac_cv_c_flexmember+:} false; then : if ${ac_cv_c_flexmember+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <stddef.h> #include <stddef.h>
skipping to change at line 15446 skipping to change at line 15139
$as_echo "$ac_cv_c_flexmember" >&6; } $as_echo "$ac_cv_c_flexmember" >&6; }
if test $ac_cv_c_flexmember = yes; then if test $ac_cv_c_flexmember = yes; then
$as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
else else
$as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
fi fi
FNMATCH_H=
gl_fnmatch_required_lowercase=` gl_fnmatch_required_lowercase=`
echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]' echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
` `
gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_requ if test $ac_cv_func_fnmatch = no; then
ired fnmatch" >&5 HAVE_FNMATCH=0
else
gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_re
quired fnmatch" >&5
$as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; } $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
if eval \${$gl_fnmatch_cache_var+:} false; then : if eval \${$gl_fnmatch_cache_var+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
if test $gl_fnmatch_required = GNU; then if test $gl_fnmatch_required = GNU; then
gl_fnmatch_gnu_start= gl_fnmatch_gnu_start=
gl_fnmatch_gnu_end= gl_fnmatch_gnu_end=
else else
gl_fnmatch_gnu_start='#if 0' gl_fnmatch_gnu_start='#if 0'
gl_fnmatch_gnu_end='#endif' gl_fnmatch_gnu_end='#endif'
fi fi
if test "$cross_compiling" = yes; then : if test "$cross_compiling" = yes; then :
eval "$gl_fnmatch_cache_var=\"guessing no\"" eval "$gl_fnmatch_cache_var=\"guessing no\""
else else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#include <fnmatch.h> #include <fnmatch.h>
static int static int
y (char const *pattern, char const *string, int flags) y (char const *pattern, char const *string, int flags)
{ {
return fnmatch (pattern, string, flags) == 0; return fnmatch (pattern, string, flags) == 0;
} }
static int static int
n (char const *pattern, char const *string, int flags) n (char const *pattern, char const *string, int flags)
{ {
return fnmatch (pattern, string, flags) == FNM_NOMATCH; return fnmatch (pattern, string, flags) == FNM_NOMATCH;
} }
int int
main () main ()
{ {
char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]"; char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]"; char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
static char const A_1[] = { 'A' - 1, 0 }; static char const A_1[] = { 'A' - 1, 0 };
static char const A01[] = { 'A' + 1, 0 }; static char const A01[] = { 'A' + 1, 0 };
static char const a_1[] = { 'a' - 1, 0 }; static char const a_1[] = { 'a' - 1, 0 };
static char const a01[] = { 'a' + 1, 0 }; static char const a01[] = { 'a' + 1, 0 };
static char const bs_1[] = { '\\\\' - 1, 0 }; static char const bs_1[] = { '\\\\' - 1, 0 };
static char const bs01[] = { '\\\\' + 1, 0 }; static char const bs01[] = { '\\\\' + 1, 0 };
int result = 0; int result = 0;
if (!n ("a*", "", 0)) if (!n ("a*", "", 0))
return 1; return 1;
if (!y ("a*", "abc", 0)) if (!y ("a*", "abc", 0))
return 1; return 1;
if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */ if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
return 1; return 1;
if (!n ("d*/*1", "d/s/1", FNM_PATHNAME)) if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
return 2; return 2;
if (!y ("a\\\\bc", "abc", 0)) if (!y ("a\\\\bc", "abc", 0))
return 3; return 3;
if (!n ("a\\\\bc", "abc", FNM_NOESCAPE)) if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
return 3; return 3;
if (!y ("*x", ".x", 0)) if (!y ("*x", ".x", 0))
return 4; return 4;
if (!n ("*x", ".x", FNM_PERIOD)) if (!n ("*x", ".x", FNM_PERIOD))
return 4; return 4;
if (!y (Apat, "\\\\", 0)) if (!y (Apat, "\\\\", 0))
return 5; return 5;
if (!y (Apat, "A", 0)) if (!y (Apat, "A", 0))
return 5; return 5;
if (!y (apat, "\\\\", 0)) if (!y (apat, "\\\\", 0))
return 5; return 5;
if (!y (apat, "a", 0)) if (!y (apat, "a", 0))
return 5; return 5;
if (!(n (Apat, A_1, 0) == ('A' < '\\\\'))) if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
return 5; return 5;
if (!(n (apat, a_1, 0) == ('a' < '\\\\'))) if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
return 5; return 5;
if (!(y (Apat, A01, 0) == ('A' < '\\\\'))) if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
return 5; return 5;
if (!(y (apat, a01, 0) == ('a' < '\\\\'))) if (!(y (apat, a01, 0) == ('a' < '\\\\')))
return 5; return 5;
if (!(y (Apat, bs_1, 0) == ('A' < '\\\\'))) if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
return 5; return 5;
if (!(y (apat, bs_1, 0) == ('a' < '\\\\'))) if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
return 5; return 5;
if (!(n (Apat, bs01, 0) == ('A' < '\\\\'))) if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
return 5; return 5;
if (!(n (apat, bs01, 0) == ('a' < '\\\\'))) if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
return 5; return 5;
$gl_fnmatch_gnu_start $gl_fnmatch_gnu_start
if (!y ("xxXX", "xXxX", FNM_CASEFOLD)) if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
result |= 8; result |= 8;
if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)) if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
result |= 16; result |= 16;
if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME)) if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
result |= 32; result |= 32;
if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)) if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
result |= 64; result |= 64;
if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)) if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
result |= 64; result |= 64;
if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)) if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
result |= 64; result |= 64;
$gl_fnmatch_gnu_end $gl_fnmatch_gnu_end
return result; return result;
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
if ac_fn_c_try_run "$LINENO"; then : if ac_fn_c_try_run "$LINENO"; then :
eval "$gl_fnmatch_cache_var=yes" eval "$gl_fnmatch_cache_var=yes"
else else
eval "$gl_fnmatch_cache_var=no" eval "$gl_fnmatch_cache_var=no"
fi fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext conftest.$ac_objext conftest.beam conftest.$ac_ext
fi fi
fi fi
eval ac_res=\$$gl_fnmatch_cache_var eval ac_res=\$$gl_fnmatch_cache_var
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; } $as_echo "$ac_res" >&6; }
eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\"" eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
if test "$gl_fnmatch_result" = yes; then if test "$gl_fnmatch_result" != yes; then
rm -f "$gl_source_base/fnmatch.h" REPLACE_FNMATCH=1
else fi
FNMATCH_H=fnmatch.h
fi fi
if test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1; then
FNMATCH_H='fnmatch.h'
if test -n "$FNMATCH_H"; then if test -n "$FNMATCH_H"; then
GL_GENERATE_FNMATCH_H_TRUE= GL_GENERATE_FNMATCH_H_TRUE=
GL_GENERATE_FNMATCH_H_FALSE='#' GL_GENERATE_FNMATCH_H_FALSE='#'
else else
GL_GENERATE_FNMATCH_H_TRUE='#' GL_GENERATE_FNMATCH_H_TRUE='#'
GL_GENERATE_FNMATCH_H_FALSE= GL_GENERATE_FNMATCH_H_FALSE=
fi fi
if test -n "$FNMATCH_H"; then fi
gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext" if test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1; then
cat >>confdefs.h <<_ACEOF gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
#define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
_ACEOF
ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ct ype.h> ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ct ype.h>
" "
if test "x$ac_cv_have_decl_isblank" = xyes; then : if test "x$ac_cv_have_decl_isblank" = xyes; then :
ac_have_decl=1 ac_have_decl=1
else else
ac_have_decl=0 ac_have_decl=0
fi fi
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_ISBLANK $ac_have_decl #define HAVE_DECL_ISBLANK $ac_have_decl
_ACEOF _ACEOF
: fi
: GNULIB_FNMATCH=1
fi $as_echo "#define GNULIB_TEST_FNMATCH 1" >>confdefs.h
case "$host_os" in case "$host_os" in
mingw*) mingw* | solaris*)
REPLACE_FSTAT=1 REPLACE_FSTAT=1
;; ;;
esac esac
:
if test $ac_cv_func_fchdir = no; then if test $ac_cv_func_fchdir = no; then
HAVE_FCHDIR=0 HAVE_FCHDIR=0
fi fi
if test $HAVE_FCHDIR = 0; then if test $HAVE_FCHDIR = 0; then
case "$gl_cv_func_open_directory_works" in case "$gl_cv_func_open_directory_works" in
*yes) ;; *yes) ;;
*) *)
REPLACE_FSTAT=1 REPLACE_FSTAT=1
;; ;;
skipping to change at line 15647 skipping to change at line 15340
esac esac
: :
fi fi
GNULIB_FSTAT=1 GNULIB_FSTAT=1
$as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
:
if test $ac_cv_func_fstatat = no; then if test $ac_cv_func_fstatat = no; then
HAVE_FSTATAT=0 HAVE_FSTATAT=0
else else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (. .., 0) works" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (. .., 0) works" >&5
$as_echo_n "checking whether fstatat (..., 0) works... " >&6; } $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
if ${gl_cv_func_fstatat_zero_flag+:} false; then : if ${gl_cv_func_fstatat_zero_flag+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
if test "$cross_compiling" = yes; then : if test "$cross_compiling" = yes; then :
case "$host_os" in case "$host_os" in
skipping to change at line 15692 skipping to change at line 15383
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
conftest.$ac_objext conftest.beam conftest.$ac_ext conftest.$ac_objext conftest.beam conftest.$ac_ext
fi fi
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
$as_echo "$gl_cv_func_fstatat_zero_flag" >&6; } $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_sy mlink in case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_sy mlink in
*yes+*yes) ;; *yes+*yes) ;;
*) REPLACE_FSTATAT=1 *) REPLACE_FSTATAT=1 ;;
case $gl_cv_func_fstatat_zero_flag in esac
*yes)
case $host_os in
solaris*)
REPLACE_FSTATAT=1 ;;
esac
case $REPLACE_FSTATAT,$gl_cv_func_fstatat_zero_flag in
1,*yes)
$as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
;; ;;
esac
;;
esac esac
fi fi
if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext" gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
fi fi
GNULIB_FSTATAT=1 GNULIB_FSTATAT=1
$as_echo "#define GNULIB_TEST_FSTATAT 1" >>confdefs.h $as_echo "#define GNULIB_TEST_FSTATAT 1" >>confdefs.h
:
if test $ac_cv_func_ftruncate = yes; then if test $ac_cv_func_ftruncate = yes; then
case "$host_os" in case "$host_os" in
mingw*) mingw*)
REPLACE_FT RUNCATE=1 REPLACE_FT RUNCATE=1
;; ;;
esac esac
else else
HAVE_FTRUNCATE=0 HAVE_FTRUNCATE=0
skipping to change at line 15756 skipping to change at line 15450
$as_echo "#define GNULIB_TEST_FTRUNCATE 1" >>confdefs.h $as_echo "#define GNULIB_TEST_FTRUNCATE 1" >>confdefs.h
gl_abort_bug=no gl_abort_bug=no
case "$host_os" in case "$host_os" in
mingw*) mingw*)
gl_cv_func_getcwd_path_max=yes gl_cv_func_getcwd_path_max=yes
;; ;;
*) *)
:
:
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd handles long file names properly" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd handles long file names properly" >&5
$as_echo_n "checking whether getcwd handles long file names properly... " >&6; } $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
if ${gl_cv_func_getcwd_path_max+:} false; then : if ${gl_cv_func_getcwd_path_max+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
# Arrange for deletion of the temporary directory this test creates. # Arrange for deletion of the temporary directory this test creates.
ac_clean_files="$ac_clean_files confdir3" ac_clean_files="$ac_clean_files confdir3"
if test "$cross_compiling" = yes; then : if test "$cross_compiling" = yes; then :
case "$host_os" in # Cross-compilation guesses:
aix*) gl_cv_func_getcwd_path_max='no, it has the AIX bug';; case "$host_os" in
*) gl_cv_func_getcwd_path_max=no;; aix*) # On AIX, it has the AIX bug.
gl_cv_func_getcwd_path_max='no, it has the AIX bug' ;;
gnu*) # On Hurd, it is 'yes'.
gl_cv_func_getcwd_path_max=yes ;;
linux* | kfreebsd*)
# On older Linux+glibc it's 'no, but it is partly working',
# on newer Linux+glibc it's 'yes'.
# On Linux+musl libc, it's 'no, but it is partly working'.
# On kFreeBSD+glibc, it's 'no, but it is partly working'.
gl_cv_func_getcwd_path_max='no, but it is partly working' ;;
*) # If we don't know, assume the worst.
gl_cv_func_getcwd_path_max=no ;;
esac esac
else else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#include <errno.h> #include <errno.h>
#include <stdlib.h> #include <stdlib.h>
#if HAVE_UNISTD_H #if HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#else #else
# include <direct.h> # include <direct.h>
skipping to change at line 15804 skipping to change at line 15506
#if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
# include <sys/param.h> # include <sys/param.h>
#endif #endif
#if !defined PATH_MAX && defined MAXPATHLEN #if !defined PATH_MAX && defined MAXPATHLEN
# define PATH_MAX MAXPATHLEN # define PATH_MAX MAXPATHLEN
#endif #endif
#ifdef __hpux #ifdef __hpux
# undef PATH_MAX # undef PATH_MAX
# define PATH_MAX 1024 # define PATH_MAX 1024
#endif #endif
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ #if defined _WIN32 && ! defined __CYGWIN__
# undef PATH_MAX # undef PATH_MAX
# define PATH_MAX 260 # define PATH_MAX 260
#endif #endif
#ifndef AT_FDCWD #ifndef AT_FDCWD
# define AT_FDCWD 0 # define AT_FDCWD 0
#endif #endif
#ifdef ENAMETOOLONG #ifdef ENAMETOOLONG
# define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG) # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
#else #else
skipping to change at line 15877 skipping to change at line 15579
while (1) while (1)
{ {
size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN); size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
char *c = NULL; char *c = NULL;
cwd_len += DIR_NAME_SIZE; cwd_len += DIR_NAME_SIZE;
/* If mkdir or chdir fails, it could be that this system cannot create /* If mkdir or chdir fails, it could be that this system cannot create
any file with an absolute name longer than PATH_MAX, such as cygwin. any file with an absolute name longer than PATH_MAX, such as cygwin.
If so, leave fail as 0, because the current working directory can't If so, leave fail as 0, because the current working directory can't
be too long for getcwd if it can't even be created. For other be too long for getcwd if it can't even be created. On Linux with
errors, be pessimistic and consider that as a failure, too. */ the 9p file system, mkdir fails with error EINVAL when cwd_len gets
too long; ignore this failure because the getcwd() system call
produces good results whereas the gnulib substitute calls getdents64
which fails with error EPROTO.
For other errors, be pessimistic and consider that as a failure,
too. */
if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0) if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
{ {
if (! (errno == ERANGE || is_ENAMETOOLONG (errno))) if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
fail = 20; #ifdef __linux__
if (! (errno == EINVAL))
#endif
fail = 20;
break; break;
} }
if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE) if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
{ {
struct stat sb; struct stat sb;
c = getcwd (buf, PATH_MAX); c = getcwd (buf, PATH_MAX);
if (!c && errno == ENOENT) if (!c && errno == ENOENT)
{ {
skipping to change at line 15990 skipping to change at line 15700
conftest.$ac_objext conftest.beam conftest.$ac_ext conftest.$ac_objext conftest.beam conftest.$ac_ext
fi fi
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_path_max" >& 5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_path_max" >& 5
$as_echo "$gl_cv_func_getcwd_path_max" >&6; } $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
case "$gl_cv_func_getcwd_null" in case "$gl_cv_func_getcwd_null" in
*yes) *yes)
: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
$as_echo_n "checking for getpagesize... " >&6; }
if ${gl_cv_func_getpagesize+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <unistd.h>
int
main ()
{
return getpagesize();
;
return 0;
}
: _ACEOF
if ac_fn_c_try_link "$LINENO"; then :
gl_cv_func_getpagesize=yes
else
gl_cv_func_getpagesize=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
for ac_func in getpagesize fi
do : { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getpagesize" >&5
ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" $as_echo "$gl_cv_func_getpagesize" >&6; }
if test "x$ac_cv_func_getpagesize" = xyes; then :
cat >>confdefs.h <<_ACEOF if test $gl_cv_func_getpagesize = yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_GETPAGESIZE 1 #define HAVE_GETPAGESIZE 1
_ACEOF _ACEOF
fi fi
done
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd aborts when 4 k < cwd_length < 16k" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd aborts when 4 k < cwd_length < 16k" >&5
$as_echo_n "checking whether getcwd aborts when 4k < cwd_length < 16k... " >&6; } $as_echo_n "checking whether getcwd aborts when 4k < cwd_length < 16k... " >&6; }
if ${gl_cv_func_getcwd_abort_bug+:} false; then : if ${gl_cv_func_getcwd_abort_bug+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
# Remove any remnants of a previous test. # Remove any remnants of a previous test.
rm -rf confdir-14B--- rm -rf confdir-14B---
# Arrange for deletion of the temporary directory this test creates. # Arrange for deletion of the temporary directory this test creates.
ac_clean_files="$ac_clean_files confdir-14B---" ac_clean_files="$ac_clean_files confdir-14B---"
skipping to change at line 16045 skipping to change at line 15777
#if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
# include <sys/param.h> # include <sys/param.h>
#endif #endif
#if !defined PATH_MAX && defined MAXPATHLEN #if !defined PATH_MAX && defined MAXPATHLEN
# define PATH_MAX MAXPATHLEN # define PATH_MAX MAXPATHLEN
#endif #endif
#ifdef __hpux #ifdef __hpux
# undef PATH_MAX # undef PATH_MAX
# define PATH_MAX 1024 # define PATH_MAX 1024
#endif #endif
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ #if defined _WIN32 && ! defined __CYGWIN__
# undef PATH_MAX # undef PATH_MAX
# define PATH_MAX 260 # define PATH_MAX 260
#endif #endif
/* Don't get link errors because mkdir is redefined to rpl_mkdir. */ /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
#undef mkdir #undef mkdir
#ifndef S_IRWXU #ifndef S_IRWXU
# define S_IRWXU 0700 # define S_IRWXU 0700
#endif #endif
skipping to change at line 16219 skipping to change at line 15951
if test $REPLACE_GETCWD = 1; then if test $REPLACE_GETCWD = 1; then
gl_LIBOBJS="$gl_LIBOBJS getcwd-lgpl.$ac_objext" gl_LIBOBJS="$gl_LIBOBJS getcwd-lgpl.$ac_objext"
fi fi
GNULIB_GETCWD=1 GNULIB_GETCWD=1
$as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
:
:
if test $ac_cv_func_getdtablesize = yes && if test $ac_cv_func_getdtablesize = yes &&
test $ac_cv_have_decl_getdtablesize = yes; then test $ac_cv_have_decl_getdtablesize = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize work s" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize work s" >&5
$as_echo_n "checking whether getdtablesize works... " >&6; } $as_echo_n "checking whether getdtablesize works... " >&6; }
if ${gl_cv_func_getdtablesize_works+:} false; then : if ${gl_cv_func_getdtablesize_works+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
case "$host_os" in case "$host_os" in
vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;; vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;;
*) *)
skipping to change at line 16299 skipping to change at line 16027
$as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
REPLACE_GETOPT=0 REPLACE_GETOPT=0
if test -n "$gl_replace_getopt"; then if test -n "$gl_replace_getopt"; then
REPLACE_GETOPT=1 REPLACE_GETOPT=1
fi fi
if test $REPLACE_GETOPT = 1; then if test $REPLACE_GETOPT = 1; then
:
if test $ac_cv_header_sys_cdefs_h = yes; then if test $ac_cv_header_sys_cdefs_h = yes; then
HAVE_SYS_CDEFS_H=1 HAVE_SYS_CDEFS_H=1
else else
HAVE_SYS_CDEFS_H=0 HAVE_SYS_CDEFS_H=0
fi fi
$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
GETOPT_H=getopt.h GETOPT_H=getopt.h
GETOPT_CDEFS_H=getopt-cdefs.h GETOPT_CDEFS_H=getopt-cdefs.h
skipping to change at line 16323 skipping to change at line 16049
if test $REPLACE_GETOPT = 1; then if test $REPLACE_GETOPT = 1; then
gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
GNULIB_GL_UNISTD_H_GETOPT=1 GNULIB_GL_UNISTD_H_GETOPT=1
fi fi
:
ac_found=0 ac_found=0
ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_progra m_invocation_name" "#include <errno.h> ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_progra m_invocation_name" "#include <errno.h>
" "
if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then : if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
ac_have_decl=1 ac_have_decl=1
else else
ac_have_decl=0 ac_have_decl=0
fi fi
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
skipping to change at line 16411 skipping to change at line 16135
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
$as_echo "$gl_cv_var___progname" >&6; } $as_echo "$gl_cv_var___progname" >&6; }
if test "$gl_cv_var___progname" = yes; then if test "$gl_cv_var___progname" = yes; then
$as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
fi fi
fi fi
: LOCALCHARSET_TESTS_ENVIRONMENT=
:
LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_sou
rce_base\""
:
if test $ac_cv_func_lstat = yes; then if test $ac_cv_func_lstat = yes; then
case "$gl_cv_func_lstat_dereferences_slashed_symlink" in case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in
*no) solaris* | *no)
REPLACE_LSTAT=1 REPLACE_LSTAT=1
;; ;;
esac esac
else else
HAVE_LSTAT=0 HAVE_LSTAT=0
fi fi
if test $REPLACE_LSTAT = 1; then if test $REPLACE_LSTAT = 1; then
gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext" gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
skipping to change at line 16459 skipping to change at line 16177
if test $REPLACE_MALLOC = 1; then if test $REPLACE_MALLOC = 1; then
gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext" gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
fi fi
GNULIB_MALLOC_POSIX=1 GNULIB_MALLOC_POSIX=1
$as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
:
:
if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles i ncomplete characters" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles i ncomplete characters" >&5
$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; } $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then : if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
case "$host_os" in case "$host_os" in
# Guess no on AIX and OSF/1. # Guess no on AIX and OSF/1.
skipping to change at line 16602 skipping to change at line 16316
*) REPLACE_MBSTATE_T=1 ;; *) REPLACE_MBSTATE_T=1 ;;
esac esac
case "$gl_cv_func_mbrtowc_sanitycheck" in case "$gl_cv_func_mbrtowc_sanitycheck" in
*yes) ;; *yes) ;;
*) REPLACE_MBSTATE_T=1 ;; *) REPLACE_MBSTATE_T=1 ;;
esac esac
else else
REPLACE_MBSTATE_T=1 REPLACE_MBSTATE_T=1
fi fi
:
if test $ac_cv_func_mbrtowc = no; then if test $ac_cv_func_mbrtowc = no; then
HAVE_MBRTOWC=0 HAVE_MBRTOWC=0
ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" " ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
<wchar.h>. <wchar.h>.
BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
included before <wchar.h>. */ included before <wchar.h>. */
#include <stddef.h> #include <stddef.h>
#include <stdio.h> #include <stdio.h>
#include <time.h> #include <time.h>
skipping to change at line 16970 skipping to change at line 16682
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; } $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
$as_echo_n "checking whether mbrtowc works on empty input... " >&6; } $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
if ${gl_cv_func_mbrtowc_empty_input+:} false; then : if ${gl_cv_func_mbrtowc_empty_input+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
case "$host_os" in case "$host_os" in
# Guess no on AIX and glibc systems. # Guess no on AIX and glibc systems.
aix* | *-gnu*) aix* | *-gnu* | gnu*) gl_cv_func_mbrtowc_empty_input="guessing no" ;;
gl_cv_func_mbrtowc_empty_input="guessing no" ;; # Guess yes on native Windows.
# Guess yes on native Windows. mingw*) gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
mingw*) gl_cv_func_mbrtowc_empty_input="guessing yes" ;; *) gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
*) gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
esac esac
if test "$cross_compiling" = yes; then : if test "$cross_compiling" = yes; then :
: :
else else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#include <wchar.h> #include <wchar.h>
static wchar_t wc; static wchar_t wc;
static mbstate_t mbs; static mbstate_t mbs;
skipping to change at line 17125 skipping to change at line 16836
gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext" gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
: :
fi fi
GNULIB_MBRTOWC=1 GNULIB_MBRTOWC=1
$as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
:
:
if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles i ncomplete characters" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles i ncomplete characters" >&5
$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; } $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then : if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
case "$host_os" in case "$host_os" in
# Guess no on AIX and OSF/1. # Guess no on AIX and OSF/1.
skipping to change at line 17268 skipping to change at line 16975
*) REPLACE_MBSTATE_T=1 ;; *) REPLACE_MBSTATE_T=1 ;;
esac esac
case "$gl_cv_func_mbrtowc_sanitycheck" in case "$gl_cv_func_mbrtowc_sanitycheck" in
*yes) ;; *yes) ;;
*) REPLACE_MBSTATE_T=1 ;; *) REPLACE_MBSTATE_T=1 ;;
esac esac
else else
REPLACE_MBSTATE_T=1 REPLACE_MBSTATE_T=1
fi fi
:
if test $ac_cv_func_mbsinit = no; then if test $ac_cv_func_mbsinit = no; then
HAVE_MBSINIT=0 HAVE_MBSINIT=0
ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" " ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
<wchar.h>. <wchar.h>.
BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
included before <wchar.h>. */ included before <wchar.h>. */
#include <stddef.h> #include <stddef.h>
#include <stdio.h> #include <stdio.h>
#include <time.h> #include <time.h>
skipping to change at line 17318 skipping to change at line 17023
gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext" gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
: :
fi fi
GNULIB_MBSINIT=1 GNULIB_MBSINIT=1
$as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
:
:
if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles i ncomplete characters" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles i ncomplete characters" >&5
$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; } $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then : if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
case "$host_os" in case "$host_os" in
# Guess no on AIX and OSF/1. # Guess no on AIX and OSF/1.
skipping to change at line 17461 skipping to change at line 17162
*) REPLACE_MBSTATE_T=1 ;; *) REPLACE_MBSTATE_T=1 ;;
esac esac
case "$gl_cv_func_mbrtowc_sanitycheck" in case "$gl_cv_func_mbrtowc_sanitycheck" in
*yes) ;; *yes) ;;
*) REPLACE_MBSTATE_T=1 ;; *) REPLACE_MBSTATE_T=1 ;;
esac esac
else else
REPLACE_MBSTATE_T=1 REPLACE_MBSTATE_T=1
fi fi
:
if test $ac_cv_func_mbsrtowcs = no; then if test $ac_cv_func_mbsrtowcs = no; then
HAVE_MBSRTOWCS=0 HAVE_MBSRTOWCS=0
ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" " ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
<wchar.h>. <wchar.h>.
BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
included before <wchar.h>. */ included before <wchar.h>. */
#include <stddef.h> #include <stddef.h>
#include <stdio.h> #include <stdio.h>
#include <time.h> #include <time.h>
skipping to change at line 17622 skipping to change at line 17321
gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext" gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
: :
fi fi
GNULIB_MBSRTOWCS=1 GNULIB_MBSRTOWCS=1
$as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
:
:
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbswidth is decl ared in <wchar.h>" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbswidth is decl ared in <wchar.h>" >&5
$as_echo_n "checking whether mbswidth is declared in <wchar.h>... " >&6; } $as_echo_n "checking whether mbswidth is declared in <wchar.h>... " >&6; }
if ${ac_cv_have_decl_mbswidth+:} false; then : if ${ac_cv_have_decl_mbswidth+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
<wchar.h>. <wchar.h>.
skipping to change at line 17716 skipping to change at line 17411
if test $ac_cv_type_mbstate_t = yes; then if test $ac_cv_type_mbstate_t = yes; then
$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
else else
$as_echo "#define mbstate_t int" >>confdefs.h $as_echo "#define mbstate_t int" >>confdefs.h
fi fi
if false; then for ac_func in mbtowc
REPLACE_MBTOWC=1 do :
ac_fn_c_check_func "$LINENO" "mbtowc" "ac_cv_func_mbtowc"
if test "x$ac_cv_func_mbtowc" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_MBTOWC 1
_ACEOF
fi
done
if test $ac_cv_func_mbtowc = no; then
HAVE_MBTOWC=0
else
if false; then
REPLACE_MBTOWC=1
fi
fi fi
if test $REPLACE_MBTOWC = 1; then if test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1; then
gl_LIBOBJS="$gl_LIBOBJS mbtowc.$ac_objext" gl_LIBOBJS="$gl_LIBOBJS mbtowc.$ac_objext"
: :
fi fi
GNULIB_MBTOWC=1 GNULIB_MBTOWC=1
$as_echo "#define GNULIB_TEST_MBTOWC 1" >>confdefs.h $as_echo "#define GNULIB_TEST_MBTOWC 1" >>confdefs.h
skipping to change at line 17781 skipping to change at line 17491
gl_LIBOBJS="$gl_LIBOBJS mempcpy.$ac_objext" gl_LIBOBJS="$gl_LIBOBJS mempcpy.$ac_objext"
: :
fi fi
GNULIB_MEMPCPY=1 GNULIB_MEMPCPY=1
$as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
:
if test $ac_cv_have_decl_memrchr = no; then if test $ac_cv_have_decl_memrchr = no; then
HAVE_DECL_MEMRCHR=0 HAVE_DECL_MEMRCHR=0
fi fi
for ac_func in memrchr for ac_func in memrchr
do : do :
ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr" ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
if test "x$ac_cv_func_memrchr" = xyes; then : if test "x$ac_cv_func_memrchr" = xyes; then :
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define HAVE_MEMRCHR 1 #define HAVE_MEMRCHR 1
skipping to change at line 17809 skipping to change at line 17517
gl_LIBOBJS="$gl_LIBOBJS memrchr.$ac_objext" gl_LIBOBJS="$gl_LIBOBJS memrchr.$ac_objext"
: :
fi fi
GNULIB_MEMRCHR=1 GNULIB_MEMRCHR=1
$as_echo "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h $as_echo "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h
:
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles traili ng slash" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles traili ng slash" >&5
$as_echo_n "checking whether mkdir handles trailing slash... " >&6; } $as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
if ${gl_cv_func_mkdir_trailing_slash_works+:} false; then : if ${gl_cv_func_mkdir_trailing_slash_works+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
rm -rf conftest.dir rm -rf conftest.dir
if test "$cross_compiling" = yes; then : if test "$cross_compiling" = yes; then :
case "$host_os" in case "$host_os" in
# Guess yes on glibc systems. # Guess yes on Linux systems.
*-gnu*) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;; linux-* | linux) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;
# Guess yes on MSVC, no on mingw. ;
mingw*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext # Guess yes on glibc systems.
*-gnu* | gnu*) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;
;
# Guess yes on MSVC, no on mingw.
mingw*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#ifdef _MSC_VER #ifdef _MSC_VER
Known Known
#endif #endif
_ACEOF _ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "Known" >/dev/null 2>&1; then : $EGREP "Known" >/dev/null 2>&1; then :
gl_cv_func_mkdir_trailing_slash_works="guessing yes" gl_cv_func_mkdir_trailing_slash_works="guessing yes"
else else
gl_cv_func_mkdir_trailing_slash_works="guessing no" gl_cv_func_mkdir_trailing_slash_works="guessing no"
fi fi
rm -f conftest* rm -f conftest*
;; ;;
# If we don't know, assume the worst. # If we don't know, assume the worst.
*) gl_cv_func_mkdir_trailing_slash_works="guessing no" ;; *) gl_cv_func_mkdir_trailing_slash_works="guessing no" ;;
esac esac
else else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
# include <sys/types.h> # include <sys/types.h>
# include <sys/stat.h> # include <sys/stat.h>
int int
skipping to change at line 17887 skipping to change at line 17595
esac esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles traili ng dot" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles traili ng dot" >&5
$as_echo_n "checking whether mkdir handles trailing dot... " >&6; } $as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
if ${gl_cv_func_mkdir_trailing_dot_works+:} false; then : if ${gl_cv_func_mkdir_trailing_dot_works+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
rm -rf conftest.dir rm -rf conftest.dir
if test "$cross_compiling" = yes; then : if test "$cross_compiling" = yes; then :
case "$host_os" in case "$host_os" in
# Guess yes on glibc systems. # Guess yes on glibc systems.
*-gnu*) gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;; *-gnu* | gnu*) gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;;
# Guess no on native Windows. # Guess no on native Windows.
mingw*) gl_cv_func_mkdir_trailing_dot_works="guessing no" ;; mingw*) gl_cv_func_mkdir_trailing_dot_works="guessing no" ;;
# If we don't know, assume the worst. # If we don't know, assume the worst.
*) gl_cv_func_mkdir_trailing_dot_works="guessing no" ;; *) gl_cv_func_mkdir_trailing_dot_works="guessing no" ;;
esac esac
else else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
# include <sys/types.h> # include <sys/types.h>
# include <sys/stat.h> # include <sys/stat.h>
int int
skipping to change at line 17962 skipping to change at line 17670
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define GNULIB_MSVC_NOTHROW 1 #define GNULIB_MSVC_NOTHROW 1
_ACEOF _ACEOF
case "$host_os" in case "$host_os" in
mingw* | pw*) mingw* | pw*)
REPLACE_OPEN=1 REPLACE_OPEN=1
;; ;;
*) *)
:
if test "$gl_cv_macro_O_CLOEXEC" != yes; then if test "$gl_cv_macro_O_CLOEXEC" != yes; then
REPLACE_OPEN=1 REPLACE_OPEN=1
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
$as_echo_n "checking whether open recognizes a trailing slash... " >&6; } $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
if ${gl_cv_func_open_slash+:} false; then : if ${gl_cv_func_open_slash+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
# Assume that if we have lstat, we can also check symlinks. # Assume that if we have lstat, we can also check symlinks.
if test $ac_cv_func_lstat = yes; then if test $ac_cv_func_lstat = yes; then
skipping to change at line 18033 skipping to change at line 17739
$as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
REPLACE_OPEN=1 REPLACE_OPEN=1
;; ;;
esac esac
;; ;;
esac esac
if test $REPLACE_OPEN = 0; then if test $REPLACE_OPEN = 0; then
:
if test $ac_cv_func_fchdir = no; then if test $ac_cv_func_fchdir = no; then
HAVE_FCHDIR=0 HAVE_FCHDIR=0
fi fi
if test $HAVE_FCHDIR = 0; then if test $HAVE_FCHDIR = 0; then
REPLACE_OPEN=1 REPLACE_OPEN=1
fi fi
fi fi
if test $REPLACE_OPEN = 1; then if test $REPLACE_OPEN = 1; then
skipping to change at line 18056 skipping to change at line 17760
gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext" gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
: :
fi fi
GNULIB_OPEN=1 GNULIB_OPEN=1
$as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
:
case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink+$gl_cv_ macro_O_CLOEXEC in case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink+$gl_cv_ macro_O_CLOEXEC in
yes+*yes+yes) yes+*yes+yes)
;; ;;
yes+*) yes+*)
# Solaris 10 lacks O_CLOEXEC. # Solaris 10 lacks O_CLOEXEC.
# Solaris 9 has *at functions, but uniformly mishandles trailing # Solaris 9 has *at functions, but uniformly mishandles trailing
# slash in all of them. # slash in all of them.
REPLACE_OPENAT=1 REPLACE_OPENAT=1
;; ;;
*) *)
skipping to change at line 18103 skipping to change at line 17805
#define HAVE_OPENDIR 1 #define HAVE_OPENDIR 1
_ACEOF _ACEOF
fi fi
done done
if test $ac_cv_func_opendir = no; then if test $ac_cv_func_opendir = no; then
HAVE_OPENDIR=0 HAVE_OPENDIR=0
fi fi
:
if test $ac_cv_func_fchdir = no; then if test $ac_cv_func_fchdir = no; then
HAVE_FCHDIR=0 HAVE_FCHDIR=0
fi fi
if test $HAVE_FCHDIR = 0; then if test $HAVE_FCHDIR = 0; then
if test $HAVE_OPENDIR = 1; then if test $HAVE_OPENDIR = 1; then
REPLACE_OPENDIR=1 REPLACE_OPENDIR=1
fi fi
fi fi
skipping to change at line 18130 skipping to change at line 17830
if test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1; then if test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1; then
gl_LIBOBJS="$gl_LIBOBJS opendir.$ac_objext" gl_LIBOBJS="$gl_LIBOBJS opendir.$ac_objext"
fi fi
GNULIB_OPENDIR=1 GNULIB_OPENDIR=1
$as_echo "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h $as_echo "#define GNULIB_TEST_OPENDIR 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 ac_cv_func_poll=no
gl_cv_func_poll=no gl_cv_func_poll=no
else else
ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
if test "x$ac_cv_func_poll" = xyes; then : if test "x$ac_cv_func_poll" = xyes; then :
# Check whether poll() works on special files (like /dev/null) and # Check whether poll() works on special files (like /dev/null) and
# and ttys (like /dev/tty). On Mac OS X 10.4.0 and AIX 5.3, it doesn't. # and ttys (like /dev/tty). On Mac OS X 10.4.0 and AIX 5.3, it doesn't.
if test "$cross_compiling" = yes; then : if test "$cross_compiling" = yes; then :
# When cross-compiling, assume that poll() works everywhere except on # When cross-compiling, assume that poll() works everywhere except on
skipping to change at line 18258 skipping to change at line 17956
rm -f core conftest.err conftest.$ac_objext \ rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext conftest$ac_exeext conftest.$ac_ext
;; ;;
esac esac
fi fi
if test $HAVE_POLL = 0 || test $REPLACE_POLL = 1; then if test $HAVE_POLL = 0 || test $REPLACE_POLL = 1; then
gl_LIBOBJS="$gl_LIBOBJS poll.$ac_objext" gl_LIBOBJS="$gl_LIBOBJS poll.$ac_objext"
:
fi fi
GNULIB_POLL=1 GNULIB_POLL=1
$as_echo "#define GNULIB_TEST_POLL 1" >>confdefs.h $as_echo "#define GNULIB_TEST_POLL 1" >>confdefs.h
:
if test $ac_cv_header_poll_h = yes; then if test $ac_cv_header_poll_h = yes; then
HAVE_POLL_H=1 HAVE_POLL_H=1
else else
HAVE_POLL_H=0 HAVE_POLL_H=0
fi fi
:
if test $gl_cv_have_include_next = yes; then if test $gl_cv_have_include_next = yes; then
gl_cv_next_poll_h='<'poll.h'>' gl_cv_next_poll_h='<'poll.h'>'
else else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <poll. h>" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <poll. h>" >&5
$as_echo_n "checking absolute name of <poll.h>... " >&6; } $as_echo_n "checking absolute name of <poll.h>... " >&6; }
if ${gl_cv_next_poll_h+:} false; then : if ${gl_cv_next_poll_h+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
if test $ac_cv_header_poll_h = yes; then if test $ac_cv_header_poll_h = yes; then
skipping to change at line 18338 skipping to change at line 18030
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = b uggy; then if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = b uggy; then
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
gl_next_as_first_directive='<'poll.h'>' gl_next_as_first_directive='<'poll.h'>'
else else
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
gl_next_as_first_directive=$gl_cv_next_poll_h gl_next_as_first_directive=$gl_cv_next_poll_h
fi fi
NEXT_AS_FIRST_DIRECTIVE_POLL_H=$gl_next_as_first_directive NEXT_AS_FIRST_DIRECTIVE_POLL_H=$gl_next_as_first_directive
for gl_func in poll; 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 declar
ed without a macro" >&5
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
if eval \${$as_gl_Symbol+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <poll.h>
int
main ()
{
#undef $gl_func
(void) $gl_func;
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
eval "$as_gl_Symbol=yes"
else
eval "$as_gl_Symbol=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$as_gl_Symbol
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
_ACEOF
eval ac_cv_have_decl_$gl_func=yes
fi
done
for ac_func in readdir for ac_func in readdir
do : do :
ac_fn_c_check_func "$LINENO" "readdir" "ac_cv_func_readdir" ac_fn_c_check_func "$LINENO" "readdir" "ac_cv_func_readdir"
if test "x$ac_cv_func_readdir" = xyes; then : if test "x$ac_cv_func_readdir" = xyes; then :
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define HAVE_READDIR 1 #define HAVE_READDIR 1
_ACEOF _ACEOF
fi fi
done done
skipping to change at line 18444 skipping to change at line 18098
if test $HAVE_REWINDDIR = 0; then if test $HAVE_REWINDDIR = 0; then
gl_LIBOBJS="$gl_LIBOBJS rewinddir.$ac_objext" gl_LIBOBJS="$gl_LIBOBJS rewinddir.$ac_objext"
fi fi
GNULIB_REWINDDIR=1 GNULIB_REWINDDIR=1
$as_echo "#define GNULIB_TEST_REWINDDIR 1" >>confdefs.h $as_echo "#define GNULIB_TEST_REWINDDIR 1" >>confdefs.h
:
if test "$ac_cv_header_winsock2_h" = yes; then if test "$ac_cv_header_winsock2_h" = yes; then
REPLACE_SELECT=1 REPLACE_SELECT=1
else else
:
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select supports a 0 argument" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select supports a 0 argument" >&5
$as_echo_n "checking whether select supports a 0 argument... " >&6; } $as_echo_n "checking whether select supports a 0 argument... " >&6; }
if ${gl_cv_func_select_supports0+:} false; then : if ${gl_cv_func_select_supports0+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
if test "$cross_compiling" = yes; then : if test "$cross_compiling" = yes; then :
case "$host_os" in case "$host_os" in
# Guess no on Interix. # Guess no on Interix.
skipping to change at line 18510 skipping to change at line 18160
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select detects invalid fds" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select detects invalid fds" >&5
$as_echo_n "checking whether select detects invalid fds... " >&6; } $as_echo_n "checking whether select detects invalid fds... " >&6; }
if ${gl_cv_func_select_detects_ebadf+:} false; then : if ${gl_cv_func_select_detects_ebadf+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
if test "$cross_compiling" = yes; then : if test "$cross_compiling" = yes; then :
case "$host_os" in case "$host_os" in
# Guess yes on glibc systems. # Guess yes on Linux systems.
*-gnu*) gl_cv_func_select_detects_ebadf="guessing yes" ;; linux-* | linux) gl_cv_func_select_detects_ebadf="guessing yes" ;;
# If we don't know, assume the worst. # Guess yes on glibc systems.
*) gl_cv_func_select_detects_ebadf="guessing no" ;; *-gnu* | gnu*) gl_cv_func_select_detects_ebadf="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_select_detects_ebadf="guessing no" ;;
esac esac
else else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#include <sys/types.h> #include <sys/types.h>
#include <sys/time.h> #include <sys/time.h>
#if HAVE_SYS_SELECT_H #if HAVE_SYS_SELECT_H
# include <sys/select.h> # include <sys/select.h>
skipping to change at line 18680 skipping to change at line 18332
ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" " ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
#include <signal.h> #include <signal.h>
" "
if test "x$ac_cv_type_sighandler_t" = xyes; then : if test "x$ac_cv_type_sighandler_t" = xyes; then :
else else
HAVE_SIGHANDLER_T=0 HAVE_SIGHANDLER_T=0
fi fi
for gl_func in pthread_sigmask sigaction sigaddset sigdelset sigemptyset
sigfillset sigismember sigpending sigprocmask; 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 declar
ed without a macro" >&5
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
if eval \${$as_gl_Symbol+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <signal.h>
int
main ()
{
#undef $gl_func
(void) $gl_func;
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
eval "$as_gl_Symbol=yes"
else
eval "$as_gl_Symbol=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$as_gl_Symbol
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
_ACEOF
eval ac_cv_have_decl_$gl_func=yes
fi
done
ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
/* <sys/types.h> is not needed according to POSIX, but the /* <sys/types.h> is not needed according to POSIX, but the
<sys/socket.h> in i386-unknown-freebsd4.10 and <sys/socket.h> in i386-unknown-freebsd4.10 and
powerpc-apple-darwin5.5 required it. */ powerpc-apple-darwin5.5 required it. */
#include <sys/types.h> #include <sys/types.h>
#if HAVE_SYS_SOCKET_H #if HAVE_SYS_SOCKET_H
# include <sys/socket.h> # include <sys/socket.h>
#elif HAVE_WS2TCPIP_H #elif HAVE_WS2TCPIP_H
# include <ws2tcpip.h> # include <ws2tcpip.h>
#endif #endif
" "
if test "x$ac_cv_type_socklen_t" = xyes; then : if test "x$ac_cv_type_socklen_t" = xyes; then :
else else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >& 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >& 5
$as_echo_n "checking for socklen_t equivalent... " >&6; } $as_echo_n "checking for socklen_t equivalent... " >&6; }
if ${gl_cv_socklen_t_equiv+:} false; then : if ${gl_cv_socklen_t_equiv+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
# Systems have either "struct sockaddr *" or # Systems have either "struct sockaddr *" or
# "void *" as the second argument to getpeername # "void *" as the second argument to getpeername
gl_cv_socklen_t_equiv= gl_cv_socklen_t_equiv=
for arg2 in "struct sockaddr" void; do for arg2 in "struct sockaddr" void; do
for t in int size_t "unsigned int" "long int" "unsigned long int"; do for t in int size_t "unsigned int" "long int" "unsigned long int"; do
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#include <sys/types.h> #include <sys/types.h>
skipping to change at line 18767 skipping to change at line 18380
} }
_ACEOF _ACEOF
if ac_fn_c_try_compile "$LINENO"; then : if ac_fn_c_try_compile "$LINENO"; then :
gl_cv_socklen_t_equiv="$t" gl_cv_socklen_t_equiv="$t"
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
test "$gl_cv_socklen_t_equiv" != "" && break test "$gl_cv_socklen_t_equiv" != "" && break
done done
test "$gl_cv_socklen_t_equiv" != "" && break test "$gl_cv_socklen_t_equiv" != "" && break
done done
if test "$gl_cv_socklen_t_equiv" = ""; then
as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LI
NENO" 5
fi
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
if test "$gl_cv_socklen_t_equiv" = ""; then
as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINEN
O" 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >
&5
$as_echo "$gl_cv_socklen_t_equiv" >&6; } $as_echo "$gl_cv_socklen_t_equiv" >&6; }
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define socklen_t $gl_cv_socklen_t_equiv #define socklen_t $gl_cv_socklen_t_equiv
_ACEOF _ACEOF
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
$as_echo_n "checking for ssize_t... " >&6; } $as_echo_n "checking for ssize_t... " >&6; }
skipping to change at line 18814 skipping to change at line 18426
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
$as_echo "$gt_cv_ssize_t" >&6; } $as_echo "$gt_cv_ssize_t" >&6; }
if test $gt_cv_ssize_t = no; then if test $gt_cv_ssize_t = no; then
$as_echo "#define ssize_t int" >>confdefs.h $as_echo "#define ssize_t int" >>confdefs.h
fi fi
:
case "$host_os" in case "$host_os" in
mingw*) mingw*)
REPLACE_STAT=1 REPLACE_STAT=1
;; ;;
*) *)
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whethe r stat handles trailing slashes on files" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whethe r stat handles trailing slashes on files" >&5
$as_echo_n "checking whether stat handles trailing slashes on files... " >&6; } $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
if ${gl_cv_func_stat_file_slash+:} false; then : if ${gl_cv_func_stat_file_slash+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
touch conftest.tmp touch conftest.tmp
# Assume that if we have lstat, we can also check symlinks. # Assume that if we have lstat, we can also check symlinks.
if test $ac_cv_func_lstat = yes; then if test $ac_cv_func_lstat = yes; then
ln -s conftest.tmp conftest.lnk ln -s conftest.tmp conftest.lnk
fi fi
if test "$cross_compiling" = yes; then : if test "$cross_compiling" = yes; then :
case "$host_os" in case "$host_os" in
# Guess yes on glibc systems. # Guess yes on Linux systems.
*-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;; linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;;
# If we don't know, assume the worst. # Guess yes on glibc systems.
*) gl_cv_func_stat_file_slash="guessing no" ;; *-gnu* | gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
# If we don't know, assume the worst.
*) gl_cv_func_stat_file_slash="guessing no" ;;
esac esac
else else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#include <sys/stat.h> #include <sys/stat.h>
int int
main () main ()
{ {
skipping to change at line 18881 skipping to change at line 18493
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >& 5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >& 5
$as_echo "$gl_cv_func_stat_file_slash" >&6; } $as_echo "$gl_cv_func_stat_file_slash" >&6; }
case $gl_cv_func_stat_file_slash in case $gl_cv_func_stat_file_slash in
*no) *no)
REPLACE_STAT=1 REPLACE_STAT=1
$as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
;; ;;
esac esac
case $host_os in
solaris*)
REPLACE_FSTAT=1 ;;
esac
;; ;;
esac esac
if test $REPLACE_STAT = 1; then if test $REPLACE_STAT = 1; then
gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext" gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
case "$host_os" in case "$host_os" in
mingw*) mingw*)
skipping to change at line 18904 skipping to change at line 18520
esac esac
: :
fi fi
GNULIB_STAT=1 GNULIB_STAT=1
$as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_s
truct_stat_st_atim_tv_nsec" "#include <sys/types.h>
#include <sys/stat.h>
"
if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
_ACEOF
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is
of type struct timespec" >&5
$as_echo_n "checking whether struct stat.st_atim is of type struct timespec... "
>&6; }
if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <sys/types.h>
#include <sys/stat.h>
#if HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#include <time.h>
struct timespec ts;
struct stat st;
int
main ()
{
st.st_atim = ts;
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
else
ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_at
im_is_struct_timespec" >&5
$as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
$as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
fi
else
ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_mem
ber_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
#include <sys/stat.h>
"
if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
_ACEOF
else
ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_stru
ct_stat_st_atimensec" "#include <sys/types.h>
#include <sys/stat.h>
"
if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
_ACEOF
else
ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_
member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
#include <sys/stat.h>
"
if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
_ACEOF
fi
fi
fi
fi
ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv
_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h>
#include <sys/stat.h>
"
if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
_ACEOF
else
ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_
struct_stat_st_birthtimensec" "#include <sys/types.h>
#include <sys/stat.h>
"
if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
_ACEOF
else
ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_memb
er_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h>
#include <sys/stat.h>
"
if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
_ACEOF
fi
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
$as_echo_n "checking for working stdalign.h... " >&6; } $as_echo_n "checking for working stdalign.h... " >&6; }
if ${gl_cv_header_working_stdalign_h+:} false; then : if ${gl_cv_header_working_stdalign_h+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#include <stdalign.h> #include <stdalign.h>
#include <stddef.h> #include <stddef.h>
/* Test that alignof yields a result consistent with offsetof. /* Test that alignof yields a result consistent with offsetof.
This catches GCC bug 52023 This catches GCC bug 52023
<http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */ <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
#ifdef __cplusplus #ifdef __cplusplus
template <class t> struct alignof_helper { char a; t b; }; template <class t> struct alignof_helper { char a; t b; };
# define ao(type) offsetof (alignof_helper<type>, b) # define ao(type) offsetof (alignof_helper<type>, b)
#else #else
# define ao(type) offsetof (struct { char a; type b; }, b) # define ao(type) offsetof (struct { char a; type b; }, b)
#endif #endif
char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1]; char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1]; char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1]; char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
skipping to change at line 18996 skipping to change at line 18735
GL_GENERATE_STDBOOL_H_FALSE= GL_GENERATE_STDBOOL_H_FALSE=
fi fi
if test "$ac_cv_type__Bool" = yes; then if test "$ac_cv_type__Bool" = yes; then
HAVE__BOOL=1 HAVE__BOOL=1
else else
HAVE__BOOL=0 HAVE__BOOL=0
fi fi
STDDEF_H= STDDEF_H=
ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&
if test "x$ac_cv_type_max_align_t" = xyes; then : 5
$as_echo_n "checking for good max_align_t... " >&6; }
if ${gl_cv_type_max_align_t+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <stddef.h>
unsigned int s = sizeof (max_align_t);
#if defined __GNUC__ || defined __IBM__ALIGNOF__
int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) -
1];
int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_
t)) - 1];
#endif
int
main ()
{
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
gl_cv_type_max_align_t=yes
else else
HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h gl_cv_type_max_align_t=no
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
$as_echo "$gl_cv_type_max_align_t" >&6; }
if test $gl_cv_type_max_align_t = no; then
HAVE_MAX_ALIGN_T=0
STDDEF_H=stddef.h
fi
if test $gt_cv_c_wchar_t = no; then if test $gt_cv_c_wchar_t = no; then
HAVE_WCHAR_T=0 HAVE_WCHAR_T=0
STDDEF_H=stddef.h STDDEF_H=stddef.h
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; } $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
if ${gl_cv_decl_null_works+:} false; then : if ${gl_cv_decl_null_works+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#include <stddef.h> #include <stddef.h>
int test[2 * (sizeof NULL == sizeof (void *)) -1]; int test[2 * (sizeof NULL == sizeof (void *)) -1];
skipping to change at line 19183 skipping to change at line 18952
else else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#define __STDC_FORMAT_MACROS 1 #define __STDC_FORMAT_MACROS 1
#include <stdio.h> #include <stdio.h>
#include <inttypes.h> #include <inttypes.h>
/* For non-mingw systems, compilation will trivially succeed. /* For non-mingw systems, compilation will trivially succeed.
For mingw, compilation will succeed for older mingw (system For mingw, compilation will succeed for older mingw (system
printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */ printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
#if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \ #if (defined _WIN32 && ! defined __CYGWIN__) && \
(__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1]; extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
#endif #endif
int int
main () main ()
{ {
; ;
return 0; return 0;
skipping to change at line 19240 skipping to change at line 19009
GNULIB_PRINTF=1 GNULIB_PRINTF=1
GNULIB_VFPRINTF=1 GNULIB_VFPRINTF=1
GNULIB_VPRINTF=1 GNULIB_VPRINTF=1
GNULIB_FPUTC=1 GNULIB_FPUTC=1
GNULIB_PUTC=1 GNULIB_PUTC=1
GNULIB_PUTCHAR=1 GNULIB_PUTCHAR=1
GNULIB_FPUTS=1 GNULIB_FPUTS=1
GNULIB_PUTS=1 GNULIB_PUTS=1
GNULIB_FWRITE=1 GNULIB_FWRITE=1
for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose pop
en 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 declar
ed without a macro" >&5
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
if eval \${$as_gl_Symbol+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <stdio.h>
int
main ()
{
#undef $gl_func
(void) $gl_func;
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
eval "$as_gl_Symbol=yes"
else
eval "$as_gl_Symbol=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$as_gl_Symbol
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
_ACEOF
eval ac_cv_have_decl_$gl_func=yes
fi
done
if test $gl_cv_have_include_next = yes; then if test $gl_cv_have_include_next = yes; then
gl_cv_next_stdlib_h='<'stdlib.h'>' gl_cv_next_stdlib_h='<'stdlib.h'>'
else else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdli b.h>" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdli b.h>" >&5
$as_echo_n "checking absolute name of <stdlib.h>... " >&6; } $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
if ${gl_cv_next_stdlib_h+:} false; then : if ${gl_cv_next_stdlib_h+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
skipping to change at line 19336 skipping to change at line 19066
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = b uggy; then if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = b uggy; then
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
gl_next_as_first_directive='<'stdlib.h'>' gl_next_as_first_directive='<'stdlib.h'>'
else else
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
gl_next_as_first_directive=$gl_cv_next_stdlib_h gl_next_as_first_directive=$gl_cv_next_stdlib_h
fi fi
NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grant
pt initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps pos
ix_openpt ptsname ptsname_r qsort_r random random_r reallocarray realpath rp
match secure_getenv setenv setstate setstate_r srandom srandom_r strtod strt
oll 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 declar
ed without a macro" >&5
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
if eval \${$as_gl_Symbol+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <stdlib.h>
#if HAVE_SYS_LOADAVG_H
# include <sys/loadavg.h>
#endif
#if HAVE_RANDOM_H
# include <random.h>
#endif
int
main ()
{
#undef $gl_func
(void) $gl_func;
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
eval "$as_gl_Symbol=yes"
else
eval "$as_gl_Symbol=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$as_gl_Symbol
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
_ACEOF
eval ac_cv_have_decl_$gl_func=yes
fi
done
:
:
if test $ac_cv_have_decl_strdup = no; then
HAVE_DECL_STRDUP=0
fi
if test $ac_cv_func_strdup = no; then
gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext"
:
fi
GNULIB_STRDUP=1
$as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
:
if test $ac_cv_func_strdup = yes; then if test $ac_cv_func_strdup = yes; then
if test $gl_cv_func_malloc_posix != yes; then if test $gl_cv_func_malloc_posix != yes; then
REPLACE_STRDUP=1 REPLACE_STRDUP=1
fi fi
fi fi
:
if test $ac_cv_have_decl_strdup = no; then if test $ac_cv_have_decl_strdup = no; then
HAVE_DECL_STRDUP=0 HAVE_DECL_STRDUP=0
fi fi
if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then
gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext" gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext"
: :
fi fi
skipping to change at line 19433 skipping to change at line 19095
$as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror funct ion" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror funct ion" >&5
$as_echo_n "checking for working strerror function... " >&6; } $as_echo_n "checking for working strerror function... " >&6; }
if ${gl_cv_func_working_strerror+:} false; then : if ${gl_cv_func_working_strerror+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
if test "$cross_compiling" = yes; then : if test "$cross_compiling" = yes; then :
case "$host_os" in case "$host_os" in
# Guess yes on glibc systems. # Guess yes on glibc systems.
*-gnu*) gl_cv_func_working_strerror="guessing yes" ;; *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;;
# If we don't know, assume the worst. # If we don't know, assume the worst.
*) gl_cv_func_working_strerror="guessing no" ;; *) gl_cv_func_working_strerror="guessing no" ;;
esac esac
else else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#include <string.h> #include <string.h>
int int
main () main ()
{ {
skipping to change at line 19493 skipping to change at line 19155
_ACEOF _ACEOF
GNULIB_STRERROR=1 GNULIB_STRERROR=1
$as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext" gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
:
if test $ac_cv_header_sys_socket_h != yes; then if test $ac_cv_header_sys_socket_h != yes; then
for ac_header in winsock2.h for ac_header in winsock2.h
do : do :
ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 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" = xyes; then : if test "x$ac_cv_header_winsock2_h" = xyes; then :
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define HAVE_WINSOCK2_H 1 #define HAVE_WINSOCK2_H 1
_ACEOF _ACEOF
fi fi
skipping to change at line 19519 skipping to change at line 19179
if test "$ac_cv_header_winsock2_h" = yes; then if test "$ac_cv_header_winsock2_h" = yes; then
HAVE_WINSOCK2_H=1 HAVE_WINSOCK2_H=1
UNISTD_H_HAVE_WINSOCK2_H=1 UNISTD_H_HAVE_WINSOCK2_H=1
SYS_IOCTL_H_HAVE_WINSOCK2_H=1 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
else else
HAVE_WINSOCK2_H=0 HAVE_WINSOCK2_H=0
fi fi
fi fi
for ac_func in strtol
do :
ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
if test "x$ac_cv_func_strtol" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_STRTOL 1
_ACEOF
fi
done
if test $ac_cv_func_strtol = no; then
gl_LIBOBJS="$gl_LIBOBJS strtol.$ac_objext"
fi
:
if test $gl_cv_have_include_next = yes; then if test $gl_cv_have_include_next = yes; then
gl_cv_next_sys_stat_h='<'sys/stat.h'>' gl_cv_next_sys_stat_h='<'sys/stat.h'>'
else else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/s tat.h>" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/s tat.h>" >&5
$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; } $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
if ${gl_cv_next_sys_stat_h+:} false; then : if ${gl_cv_next_sys_stat_h+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
if test $ac_cv_header_sys_stat_h = yes; then if test $ac_cv_header_sys_stat_h = yes; then
skipping to change at line 19613 skipping to change at line 19254
#include <sys/stat.h> #include <sys/stat.h>
" "
if test "x$ac_cv_type_nlink_t" = xyes; then : if test "x$ac_cv_type_nlink_t" = xyes; then :
else else
$as_echo "#define nlink_t int" >>confdefs.h $as_echo "#define nlink_t int" >>confdefs.h
fi fi
for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo m
kfifoat mknod mknodat stat utimensat; 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 declar
ed without a macro" >&5
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
if eval \${$as_gl_Symbol+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <sys/stat.h>
int
main ()
{
#undef $gl_func
(void) $gl_func;
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
eval "$as_gl_Symbol=yes"
else
eval "$as_gl_Symbol=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$as_gl_Symbol
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
_ACEOF
eval ac_cv_have_decl_$gl_func=yes
fi
done
:
if test $gl_cv_have_include_next = yes; then if test $gl_cv_have_include_next = yes; then
gl_cv_next_sys_times_h='<'sys/times.h'>' gl_cv_next_sys_times_h='<'sys/times.h'>'
else else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/t imes.h>" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/t imes.h>" >&5
$as_echo_n "checking absolute name of <sys/times.h>... " >&6; } $as_echo_n "checking absolute name of <sys/times.h>... " >&6; }
if ${gl_cv_next_sys_times_h+:} false; then : if ${gl_cv_next_sys_times_h+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
if test $ac_cv_header_sys_times_h = yes; then if test $ac_cv_header_sys_times_h = yes; then
skipping to change at line 19737 skipping to change at line 19337
else else
HAVE_STRUCT_TMS=0 HAVE_STRUCT_TMS=0
fi fi
else else
HAVE_SYS_TIMES_H=0 HAVE_SYS_TIMES_H=0
HAVE_STRUCT_TMS=0 HAVE_STRUCT_TMS=0
fi fi
for gl_func in times; 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 declar
ed without a macro" >&5
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
if eval \${$as_gl_Symbol+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* Some systems have incomplete headers. */
#if !(defined __GLIBC__ && !defined __UCLIBC__)
# include <time.h>
#endif
#include <sys/times.h>
int
main ()
{
#undef $gl_func
(void) $gl_func;
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
eval "$as_gl_Symbol=yes"
else
eval "$as_gl_Symbol=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$as_gl_Symbol
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
_ACEOF
eval ac_cv_have_decl_$gl_func=yes
fi
done
:
if test $gl_cv_have_include_next = yes; then if test $gl_cv_have_include_next = yes; then
gl_cv_next_sys_uio_h='<'sys/uio.h'>' gl_cv_next_sys_uio_h='<'sys/uio.h'>'
else else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/u io.h>" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/u io.h>" >&5
$as_echo_n "checking absolute name of <sys/uio.h>... " >&6; } $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
if ${gl_cv_next_sys_uio_h+:} false; then : if ${gl_cv_next_sys_uio_h+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
if test $ac_cv_header_sys_uio_h = yes; then if test $ac_cv_header_sys_uio_h = yes; then
skipping to change at line 19851 skipping to change at line 19405
gl_next_as_first_directive=$gl_cv_next_sys_uio_h gl_next_as_first_directive=$gl_cv_next_sys_uio_h
fi fi
NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H=$gl_next_as_first_directive NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H=$gl_next_as_first_directive
if test $ac_cv_header_sys_uio_h = yes; then if test $ac_cv_header_sys_uio_h = yes; then
HAVE_SYS_UIO_H=1 HAVE_SYS_UIO_H=1
else else
HAVE_SYS_UIO_H=0 HAVE_SYS_UIO_H=0
fi fi
:
if test $ac_cv_func_times = no; then if test $ac_cv_func_times = no; then
HAVE_TIMES=0 HAVE_TIMES=0
fi fi
if test $HAVE_TIMES = 0; then if test $HAVE_TIMES = 0; then
gl_LIBOBJS="$gl_LIBOBJS times.$ac_objext" gl_LIBOBJS="$gl_LIBOBJS times.$ac_objext"
fi fi
GNULIB_TIMES=1 GNULIB_TIMES=1
:
if test $gl_cv_have_include_next = yes; then if test $gl_cv_have_include_next = yes; then
gl_cv_next_unistd_h='<'unistd.h'>' gl_cv_next_unistd_h='<'unistd.h'>'
else else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unist d.h>" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unist d.h>" >&5
$as_echo_n "checking absolute name of <unistd.h>... " >&6; } $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
if ${gl_cv_next_unistd_h+:} false; then : if ${gl_cv_next_unistd_h+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
if test $ac_cv_header_unistd_h = yes; then if test $ac_cv_header_unistd_h = yes; then
skipping to change at line 19935 skipping to change at line 19485
gl_next_as_first_directive=$gl_cv_next_unistd_h gl_next_as_first_directive=$gl_cv_next_unistd_h
fi fi
NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
if test $ac_cv_header_unistd_h = yes; then if test $ac_cv_header_unistd_h = yes; then
HAVE_UNISTD_H=1 HAVE_UNISTD_H=1
else else
HAVE_UNISTD_H=0 HAVE_UNISTD_H=0
fi fi
for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir
fchownat fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgr
oups gethostname getlogin getlogin_r getpagesize getusershell setusershe
ll endusershell group_member isatty lchown link linkat lseek pipe pipe2 prea
d pwrite readlink readlinkat rmdir sethostname sleep symlink symlinkat t
runcate 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 declar
ed without a macro" >&5
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
if eval \${$as_gl_Symbol+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
/* Some systems declare various items in the wrong headers. */
#if !(defined __GLIBC__ && !defined __UCLIBC__)
# include <fcntl.h>
# include <stdio.h>
# include <stdlib.h>
# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
# include <io.h>
# endif
#endif
int
main ()
{
#undef $gl_func
(void) $gl_func;
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
eval "$as_gl_Symbol=yes"
else
eval "$as_gl_Symbol=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$as_gl_Symbol
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
_ACEOF
eval ac_cv_have_decl_$gl_func=yes
fi
done
:
if { test "$HAVE_LIBUNISTRING" != yes \ if { test "$HAVE_LIBUNISTRING" != yes \
|| { || {
test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
|| { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
&& { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
|| { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
&& test $LIBUNISTRING_VERSION_SUBMINOR -lt 4 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
} }
} }
skipping to change at line 20033 skipping to change at line 19530
LIBUNISTRING_UNIWIDTH_H= LIBUNISTRING_UNIWIDTH_H=
fi fi
if { test "$HAVE_LIBUNISTRING" != yes \ if { test "$HAVE_LIBUNISTRING" != yes \
|| { || {
test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
|| { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
&& { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
|| { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
&& test $LIBUNISTRING_VERSION_SUBMINOR -lt 6 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
} }
} }
} }
} }
}; then }; then
LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE= LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE=
LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#' LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#'
else else
LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#' LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#'
LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE= LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE=
fi fi
:
if test $gl_cv_have_include_next = yes; then if test $gl_cv_have_include_next = yes; then
gl_cv_next_wchar_h='<'wchar.h'>' gl_cv_next_wchar_h='<'wchar.h'>'
else else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar .h>" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar .h>" >&5
$as_echo_n "checking absolute name of <wchar.h>... " >&6; } $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
if ${gl_cv_next_wchar_h+:} false; then : if ${gl_cv_next_wchar_h+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
if test $ac_cv_header_wchar_h = yes; then if test $ac_cv_header_wchar_h = yes; then
skipping to change at line 20123 skipping to change at line 19618
else else
HAVE_WCHAR_H=0 HAVE_WCHAR_H=0
fi fi
if test $gt_cv_c_wint_t = yes; then if test $gt_cv_c_wint_t = yes; then
HAVE_WINT_T=1 HAVE_WINT_T=1
else else
HAVE_WINT_T=0 HAVE_WINT_T=0
fi fi
for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrto
mb wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset
wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp wcsnc
mp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr wcscspn wcs
spn wcspbrk wcsstr wcstok wcswidth wcsftime ; 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 declar
ed without a macro" >&5
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
if eval \${$as_gl_Symbol+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
<wchar.h>.
BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
included before <wchar.h>. */
#if !(defined __GLIBC__ && !defined __UCLIBC__)
# include <stddef.h>
# include <stdio.h>
# include <time.h>
#endif
#include <wchar.h>
int
main ()
{
#undef $gl_func
(void) $gl_func;
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
eval "$as_gl_Symbol=yes"
else
eval "$as_gl_Symbol=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$as_gl_Symbol
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
_ACEOF
eval ac_cv_have_decl_$gl_func=yes
fi
done
:
if test $ac_cv_func_iswcntrl = yes; then if test $ac_cv_func_iswcntrl = yes; then
HAVE_ISWCNTRL=1 HAVE_ISWCNTRL=1
else else
HAVE_ISWCNTRL=0 HAVE_ISWCNTRL=0
fi fi
if test $gt_cv_c_wint_t = yes; then if test $gt_cv_c_wint_t = yes; then
HAVE_WINT_T=1 HAVE_WINT_T=1
else else
HAVE_WINT_T=0 HAVE_WINT_T=0
fi fi
:
if test $gl_cv_have_include_next = yes; then if test $gl_cv_have_include_next = yes; then
gl_cv_next_wctype_h='<'wctype.h'>' gl_cv_next_wctype_h='<'wctype.h'>'
else else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctyp e.h>" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctyp e.h>" >&5
$as_echo_n "checking absolute name of <wctype.h>... " >&6; } $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
if ${gl_cv_next_wctype_h+:} false; then : if ${gl_cv_next_wctype_h+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
if test $ac_cv_header_wctype_h = yes; then if test $ac_cv_header_wctype_h = yes; then
skipping to change at line 20457 skipping to change at line 19899
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
$as_echo "$gl_cv_type_wctrans_t" >&6; } $as_echo "$gl_cv_type_wctrans_t" >&6; }
if test $gl_cv_type_wctrans_t = no; then if test $gl_cv_type_wctrans_t = no; then
HAVE_WCTRANS_T=0 HAVE_WCTRANS_T=0
fi fi
for gl_func in wctype iswctype wctrans towctrans ; 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 declar
ed without a macro" >&5
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
if eval \${$as_gl_Symbol+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
<wchar.h>.
BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
included before <wchar.h>. */
#if !(defined __GLIBC__ && !defined __UCLIBC__)
# include <stddef.h>
# include <stdio.h>
# include <time.h>
# include <wchar.h>
#endif
#include <wctype.h>
int
main ()
{
#undef $gl_func
(void) $gl_func;
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
eval "$as_gl_Symbol=yes"
else
eval "$as_gl_Symbol=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$as_gl_Symbol
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
_ACEOF
eval ac_cv_have_decl_$gl_func=yes
fi
done
:
:
ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" " ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "
/* AIX 3.2.5 declares wcwidth in <string.h>. */ /* AIX 3.2.5 declares wcwidth in <string.h>. */
#include <string.h> #include <string.h>
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
<wchar.h>. <wchar.h>.
BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
before <wchar.h>. */ before <wchar.h>. */
#include <stddef.h> #include <stddef.h>
#include <stdio.h> #include <stdio.h>
#include <time.h> #include <time.h>
skipping to change at line 20538 skipping to change at line 19926
fi fi
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_WCWIDTH $ac_have_decl #define HAVE_DECL_WCWIDTH $ac_have_decl
_ACEOF _ACEOF
if test $ac_cv_have_decl_wcwidth != yes; then if test $ac_cv_have_decl_wcwidth != yes; then
HAVE_DECL_WCWIDTH=0 HAVE_DECL_WCWIDTH=0
fi fi
if test $ac_cv_func_wcwidth = yes; then if test $ac_cv_func_wcwidth != yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth is a macro
" >&5
$as_echo_n "checking whether wcwidth is a macro... " >&6; }
if ${gl_cv_func_wcwidth_macro+:} false; then :
$as_echo_n "(cached) " >&6
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <wchar.h>
#ifdef wcwidth
wchar_header_defines_wcwidth
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "wchar_header_defines_wcwidth" >/dev/null 2>&1; then :
gl_cv_func_wcwidth_macro=yes
else
gl_cv_func_wcwidth_macro=no
fi
rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_macro" >&5
$as_echo "$gl_cv_func_wcwidth_macro" >&6; }
fi
if test $ac_cv_func_wcwidth = yes || test $gl_cv_func_wcwidth_macro = yes; the
n
HAVE_WCWIDTH=1 HAVE_WCWIDTH=1
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking wh ether wcwidth works reasonably in UTF-8 locales" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking wh ether wcwidth works reasonably in UTF-8 locales" >&5
$as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; } $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
if ${gl_cv_func_wcwidth_works+:} false; then : if ${gl_cv_func_wcwidth_works+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
if test "$cross_compiling" = yes; then : if test "$cross_compiling" = yes; then :
case "$host_os" in case "$host_os" in
# Guess yes on glibc and AIX 7 systems. # Guess yes on glibc and AIX 7 systems.
*-gnu* | aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";; *-gnu* | gnu* | aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";
*) gl_cv_func_wcwidth_works="guessing no";; ;
*) gl_cv_func_wcwidth_works="guessing no";;
esac esac
else else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#include <locale.h> #include <locale.h>
/* AIX 3.2.5 declares wcwidth in <string.h>. */ /* AIX 3.2.5 declares wcwidth in <string.h>. */
#include <string.h> #include <string.h>
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
skipping to change at line 20620 skipping to change at line 20035
*no) REPLACE_WCWIDTH=1 ;; *no) REPLACE_WCWIDTH=1 ;;
esac esac
else else
HAVE_WCWIDTH=0 HAVE_WCWIDTH=0
fi fi
if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then
gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext" gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
:
fi fi
GNULIB_WCWIDTH=1 GNULIB_WCWIDTH=1
$as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h $as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h
# End of code from modules # End of code from modules
gltests_libdeps= gltests_libdeps=
gltests_ltlibdeps= gltests_ltlibdeps=
skipping to change at line 21943 skipping to change at line 21360
Usually this means the macro was only invoked conditionally." "$LINENO" 5 Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi fi
if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE }"; then if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE }"; then
as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined. as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5 Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi fi
if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_F ALSE}"; then if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_F ALSE}"; then
as_fn_error $? "conditional \"GL_GENERATE_FNMATCH_H\" was never defined. as_fn_error $? "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5 Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi fi
if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_F
ALSE}"; then
as_fn_error $? "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FAL SE}"; then if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FAL SE}"; then
as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined. as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5 Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi fi
if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H _FALSE}"; then if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H _FALSE}"; then
as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined. as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5 Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi fi
if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_F ALSE}"; then if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_F ALSE}"; then
as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined. as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
skipping to change at line 22387 skipping to change at line 21808
## Main body of $CONFIG_STATUS script. ## ## Main body of $CONFIG_STATUS script. ##
## ----------------------------------- ## ## ----------------------------------- ##
_ASEOF _ASEOF
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# Save the log message, to keep $0 and so on meaningful, and to # Save the log message, to keep $0 and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their # report actual input values of CONFIG_FILES etc. instead of their
# values after options handling. # values after options handling.
ac_log=" ac_log="
This file was extended by le $as_me 1.16.5, which was This file was extended by le $as_me 1.16.6, which was
generated by GNU Autoconf 2.69. Invocation command line was generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES CONFIG_FILES = $CONFIG_FILES
CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_HEADERS = $CONFIG_HEADERS
CONFIG_LINKS = $CONFIG_LINKS CONFIG_LINKS = $CONFIG_LINKS
CONFIG_COMMANDS = $CONFIG_COMMANDS CONFIG_COMMANDS = $CONFIG_COMMANDS
$ $0 $@ $ $0 $@
on `(hostname || uname -n) 2>/dev/null | sed 1q` on `(hostname || uname -n) 2>/dev/null | sed 1q`
" "
skipping to change at line 22452 skipping to change at line 21873
Configuration commands: Configuration commands:
$config_commands $config_commands
Report bugs to <le@uniyar.ac.ru>." Report bugs to <le@uniyar.ac.ru>."
_ACEOF _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g '`" ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g '`"
ac_cs_version="\\ ac_cs_version="\\
le config.status 1.16.5 le config.status 1.16.6
configured by $0, generated by GNU Autoconf 2.69, configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\" with options \\"\$ac_cs_config\\"
Copyright (C) 2012 Free Software Foundation, Inc. Copyright (C) 2012 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it." gives unlimited permission to copy, distribute and modify it."
ac_pwd='$ac_pwd' ac_pwd='$ac_pwd'
srcdir='$srcdir' srcdir='$srcdir'
INSTALL='$INSTALL' INSTALL='$INSTALL'
 End of changes. 269 change blocks. 
1448 lines changed or deleted 848 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)