+2010-08-30 Bruno Haible <bruno@clisp.org>
+
+ hash: silence spurious clang warning
+ * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
+ Reported by Eric Blake.
+
+2010-08-30 Eric Blake <eblake@redhat.com>
+
+ strstr, memmem, strcasestr: avoid leaked shell message
+ * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
+ FreeBSD.
+ * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
+ * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
+
+ tests: silence clang warning
+ * tests/test-malloca.c (do_allocation): Avoid dead store.
+
+2010-08-29 Bruno Haible <bruno@clisp.org>
+
+ gettext: Fix recent mistake.
+ * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
+
+2010-08-29 Bruno Haible <bruno@clisp.org>
+
+ selinux-h: Offer a --without-selinux option.
+ * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
+ --without-selinux was specified, skip all tests and define
+ HAVE_SELINUX_SELINUX_H to 0.
+ (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
+ set LIB_SELINUX to empty.
+ * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
+ gl_LIBSELINUX. If --without-selinux was specified, replace
+ selinux/context.h.
+ Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
+
+2010-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ Bruno Haible <bruno@clisp.org>
+
+ Make the module 'realloc-gnu' work again on AIX and OSF/1.
+ * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
+ of HAVE_REALLOC.
+ * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
+ GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
+ (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
+ * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
+
+2010-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ Bruno Haible <bruno@clisp.org>
+
+ Make the module 'calloc-gnu' work again on AIX and OSF/1.
+ * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
+ HAVE_CALLOC.
+ * lib/xmalloc.c: Update accordingly.
+ * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
+ GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
+ * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
+
+2010-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ Bruno Haible <bruno@clisp.org>
+
+ Make the module 'malloc-gnu' work again on AIX and OSF/1.
+ * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
+ HAVE_MALLOC.
+ * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
+ GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
+ * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
+
+2010-08-29 Bruno Haible <bruno@clisp.org>
+
+ Update modules list.
+ * MODULES.html.sh (Memory management functions <stdlib.h>): Add
+ malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
+ (String handling <string.h>): Add astrxfrm.
+ (File system functions): Add readlinkat.
+
+2010-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ Tests for module 'realloc-gnu'.
+ * modules/realloc-gnu-tests: New file.
+ * tests/test-realloc-gnu.c: New file.
+
+ Tests for module 'calloc-gnu'.
+ * modules/calloc-gnu-tests: New file.
+ * tests/test-calloc-gnu.c: New file.
+
+ Tests for module 'malloc-gnu'.
+ * modules/malloc-gnu-tests: New file.
+ * tests/test-malloc-gnu.c: New file.
+
+2010-08-28 Bruno Haible <bruno@clisp.org>
+
+ Rename module 'realloc' -> 'realloc-gnu'.
+ * modules/realloc-gnu: New file, copied from modules/realloc.
+ * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
+ obsolete.
+ * modules/mgetgroups (Depends-on): Update.
+ * doc/posix-functions/realloc.texi: Update.
+ * NEWS: Mention the change.
+
+ Rename module 'calloc' -> 'calloc-gnu'.
+ * modules/calloc-gnu: New file, copied from modules/calloc.
+ * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
+ obsolete.
+ * doc/posix-functions/calloc.texi: Update.
+ * NEWS: Mention the change.
+
+ Rename module 'malloc' -> 'malloc-gnu'.
+ * modules/malloc-gnu: New file, copied from modules/malloc.
+ * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
+ obsolete.
+ * modules/argp (Depends-on): Update.
+ * modules/regex (Depends-on): Update.
+ * doc/posix-functions/malloc.texi: Update.
+ * NEWS: Mention the change.
+
+2010-08-28 Eric Blake <eblake@redhat.com>
+
+ pread, pwrite: add missing dependency
+ * modules/pread (Depends-on): Add extensions.
+ * modules/pwrite (Depends-on): Likewise.
+
+2010-08-28 Bruno Haible <bruno@clisp.org>
+
+ unistr/u*-strchr: Fix tests dependencies.
+ * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
+ * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
+ Reported by Ian Beckwith <ianb@erislabs.net>.
+
+2010-08-28 Bruno Haible <bruno@clisp.org>
+
+ read-file: Don't occupy too much unused memory.
+ * lib/read-file.c (fread_file): Shrink the buffer at the end.
+
+2010-08-28 Giuseppe Scrivano <gscrivano@gnu.org>
+ Eric Blake <eblake@redhat.com>
+ Bruno Haible <bruno@clisp.org>
+
+ read-file: Avoid memory reallocations with regular files.
+ * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
+ (fread_file): With regular files, use the remaining length as the
+ initial buffer size. Check against overflow.
+ * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
+ sys_stat.
+
+2010-08-28 Bruno Haible <bruno@clisp.org>
+
+ ftello: Relax license.
+ * modules/ftello (License): Relax to LGPLv2+.
+ Reported by Eric Blake.
+
+2010-08-28 Bruno Haible <bruno@clisp.org>
+
+ Avoid relocwrapper link errors due to gnulib replacement functions.
+ * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
+ function.
+ Reported by Ben Pfaff <blp@cs.stanford.edu>.
+
+2010-08-28 Bruno Haible <bruno@clisp.org>
+
+ Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
+ * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
+ defined.
+ * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
+ Suggested by Eric Blake.
+
+2010-08-28 Bruno Haible <bruno@clisp.org>
+
+ sys_socket, netdb: Ensure socklen_t gets defined.
+ * modules/sys_socket (Depends-on): Add socklen.
+ * modules/netdb (Depends-on): Likewise.
+ * modules/getaddrinfo (Depends-on): Remove socklen.
+ * modules/getsockopt (Depends-on): Likewise.
+ * modules/setsockopt (Depends-on): Likewise.
+ * tests/test-sys_socket.c: Check that socklen_t is defined.
+ * tests/test-netdb.c: Likewise.
+ * m4/socklen.m4: Update comments.
+ Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
+
+2010-08-27 Eric Blake <eblake@redhat.com>
+
+ login_tty: add missing dependency
+ * modules/login_tty (Depends-on): Add pty.
+
+2010-08-26 Eric Blake <eblake@redhat.com>
+
+ lib-symbol-versions: fix m4 quoting
+ * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
+ format for AC_LINK_IFELSE.
+
+ glob: fix compile test
+ * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
+
+ btowc: fix missing file
+ * modules/btowc (Files): Also ship locale-fr.m4.
+
+ lseek: fix link test
+ * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
+ AC_LINK_IFELSE.
+
+ include_next: silence autoconf 2.68 warning
+ * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
+ AC_COMPILE_IFELSE as special.
+ (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
+ autoconf < 2.68.
+
+ acl: fix compilation test
+ * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
+ AC_COMPILE_IFELSE.
+
+2010-08-26 Bruno Haible <bruno@clisp.org>
+
+ Modernize AC_TRY_RUN invocations.
+ * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
+ * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
+ * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
+ * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
+ * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
+ * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
+ * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
+ * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
+ * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
+ * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
+ * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
+ * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
+ * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
+ * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
+ * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
+ * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
+ gl_MBRLEN_NUL_RETVAL): Likewise.
+ * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
+ gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
+ Likewise.
+ * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
+ * m4/open.m4 (gl_FUNC_OPEN): Likewise.
+ * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
+ gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
+ gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
+ gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
+ gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
+ gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
+ gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
+ Likewise.
+ * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
+ * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
+ * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
+ * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
+ * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
+ * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
+ * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
+ * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
+ * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
+ * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
+
+2010-08-26 Bruno Haible <bruno@clisp.org>
+
+ Modernize AC_TRY_LINK invocations.
+ * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
+ AC_TRY_LINK.
+ * m4/argp.m4 (gl_ARGP): Likewise.
+ * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
+ * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
+ * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
+ * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
+ * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
+ * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
+ * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
+ * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
+ * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
+ * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
+ * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
+ * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
+ * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
+ * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
+ * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
+ * m4/hostent.m4 (gl_HOSTENT): Likewise.
+ * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
+ * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
+ * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
+ * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
+ Likewise.
+ * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
+ Likewise.
+ * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
+ Likewise.
+ * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
+ * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
+ * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
+ * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
+ * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
+ * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
+ * m4/servent.m4 (gl_SERVENT): Likewise.
+ * m4/signbit.m4 (gl_SIGNBIT): Likewise.
+ * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
+ * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
+ * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
+ * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
+ * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
+ * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
+ * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
+ * modules/tsearch-tests (configure.ac): Likewise.
+
+2010-08-26 Bruno Haible <bruno@clisp.org>
+
+ Modernize AC_TRY_COMPILE invocations.
+ * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
+ AC_TRY_COMPILE.
+ * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
+ * m4/intl.m4 (gt_CHECK_DECL): Likewise.
+ * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
+ * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
+ * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
+ * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
+ * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
+ * m4/lock.m4 (gl_LOCK): Likewise.
+ * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
+ * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
+ * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
+ * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
+ * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
+ * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
+ * m4/stdarg.m4 (gl_STDARG_H): Likewise.
+ * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
+ * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
+ * m4/visibility.m4 (gl_VISIBILITY): Likewise.
+ * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
+ * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
+ * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
+ extraneous semicolon.
+
2010-08-26 Jim Meyering <meyering@redhat.com>
stat-time: relax license LGPL