+2010-09-07 Eric Blake <eblake@redhat.com>
+
+ getopt: handle POSIXLY_CORRECT set but not exported
+ * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
+ export state of POSIXLY_CORRECT, due to bash set -o posix.
+ Reported by Dustin J. Mitchell.
+
+2010-09-05 Bruno Haible <bruno@clisp.org>
+
+ gnulib-tool: Highlight the changed options.
+ * gnulib-tool (func_usage): Display the --import, --add-import,
+ --remove-import explanations in bold font.
+
+2010-09-06 Karl Berry <karl@gnu.org>
+
+ * doc/gnulib-tool.texi (Modified imports): doc tweaks.
+
+2010-09-05 Bruno Haible <bruno@clisp.org>
+
+ uniwidth/width: Update comment.
+ * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
+ Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
+
+2010-09-05 Bruno Haible <bruno@clisp.org>
+
+ isinf, isnan: Relax license.
+ * modules/isinf (License): Change from GPL to LGPL, with consent from
+ Ben Pfaff.
+ * modules/isnan (License): Likewise.
+ Requested by Ludovic Courtès.
+
+2010-09-04 Bruno Haible <bruno@clisp.org>
+
+ gnulib-tool: Help migration from --import to --add-import or --update.
+ * gnulib-tool: Emit a verbose error message when --import is used
+ without any module name.
+
+2010-09-04 Bruno Haible <bruno@clisp.org>
+
+ Update doc about gnulib-tool.
+ * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
+ 'gnulib-tool --update' in more detail.
+ Reported by Eric Blake.
+
+2010-09-04 Bruno Haible <bruno@clisp.org>
+
+ gnulib-tool: Change --import. New options --add/remove-import.
+ * gnulib-tool: New options --add-import, --remove-import.
+ (func_usage): Document them.
+ (have_associative): Define always.
+ (func_import): In import mode, don't merge the specified settings with
+ the cached settings. Implement remove-import mode.
+ * doc/gnulib-tool.texi (Modified imports): Mention the new options.
+ Explain when to use them versus --import.
+ (Simple update): Use --add-import instead of --import.
+ * NEWS: Mention the change.
+
+2010-09-04 Bruno Haible <bruno@clisp.org>
+
+ * doc/gnulib-tool.texi (Initial import): Update paragraph about
+ separate gnulib.mk.
+
+2010-09-04 Bruno Haible <bruno@clisp.org>
+
+ gnulib-tool: Don't talk about CVS any more.
+ * gnulib-tool (func_usage, func_import): Write "version control"
+ instead of CVS.
+
+2010-09-04 Jim Meyering <meyering@redhat.com>
+
+ maint.mk: avoid obscure sc_copyright_check failure in coreutils
+ * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
+ false positives (whose names may be ill-chosen) when searching
+ non-VC'd files. Otherwise, a file named "a b/lib/version-etc.c"
+ would cause a false-positive.
+
+ avoid coreutils "make distcheck" failure
+ Coreutils tests with an absolute build directory name that contains
+ a space. Not quoting this directory name caused a failure.
+ * tests/test-vc-list-files-git.sh: Quote PATH dir name.
+ * tests/test-vc-list-files-cvs.sh: Likewise.
+
+2010-09-04 Bruno Haible <bruno@clisp.org>
+
+ gnulib-tool: Avoid error when run in a package without Makefile.am.
+ * gnulib-tool: When collecting the m4dirs in a package that does not
+ have a Makefile.am, eliminate those directories that contain no
+ gnulib-cache.m4. Fix expression that counts these directories.
+
+2010-09-04 Bruno Haible <bruno@clisp.org>
+
+ update-copyright test: Improve output when perl is missing or too old.
+ * tests/test-update-copyright.sh: Move test of Perl version down after
+ the test whether Perl exists. Provide an explanation relating Perl's
+ error message to Automake's SKIP: message.
+
+2010-09-04 Bruno Haible <bruno@clisp.org>
+
+ Don't augment PATH in TESTS_ENVIRONMENT.
+ * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
+ set abs_aux_dir instead of augmenting PATH.
+ * modules/vc-list-files-tests (Makefile.am): Likewise.
+ * tests/test-update-copyright.sh: Augment PATH here.
+ * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
+ path_prepend_.
+ * tests/test-vc-list-files-git.sh: Likewise.
+
+2010-09-04 Jim Meyering <meyering@redhat.com>
+
+ tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
+ * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
+
+2010-09-04 Bruno Haible <bruno@clisp.org>
+
+ strdup: Fix compilation error in C++ mode.
+ * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
+ the macro.
+
+2010-09-04 Bruno Haible <bruno@clisp.org>
+
+ dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
+ * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
+ macro into a function.
+ Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
+
+2010-09-04 Bruno Haible <bruno@clisp.org>
+
+ Set PATH_SEPARATOR the same way autoconf does.
+ * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
+ the value of PATH_SEPARATOR the same way autoconf-generated configure
+ scripts do.
+ * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
+ * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
+
+2010-09-04 Stefano Lattarini <stefano.lattarini@gmail.com> (tiny change)
+
+ Set PATH_SEPARATOR the same way autoconf does.
+ * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
+ the same way autoconf-generated configure scripts do.
+ * posix-modules: Likewise.
+
+2010-09-02 Paul Eggert <eggert@cs.ucla.edu>
+
+ hash: fix safe_hasher const typo
+ * lib/hash.c (safe_hasher): Result is pointer, not pointer to
+ const; otherwise, there is a type error later.
+
+2010-09-02 Jim Meyering <meyering@redhat.com>
+
+ test-update-copyright.sh: require perl 5.8.0
+ * tests/test-update-copyright.sh: Require 5.8.0,
+ which Tom G. Christensen has confirmed is adequate,
+ while 5.6.1 is not.
+
+2010-09-02 Eric Blake <eblake@redhat.com>
+
+ tests: init.sh improvements for re-exec'ing with zsh
+ * tests/init.sh: Borrow autoconf POSIX-mode sanitization. Pass
+ -vx through shell re-exec.
+ Reported by Tom G. Christensen.
+
+ wctype: fix typo in previous commit
+ * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
+ Reported by Ludovic Courtès.
+
+2010-09-02 Jim Meyering <meyering@redhat.com>
+
+ test-update-copyright.sh: skip test if Perl is too old
+ * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
+ Reported by Tom G. Christensen.
+
+2010-09-02 Bruno Haible <bruno@clisp.org>
+
+ wctype: Avoid compilation error on IRIX 6.5.30.
+ * lib/wctype.in.h (iswblank): Declare with a replacement if
+ REPLACE_ISWBLANK is set.
+ * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
+ declared. Set REPLACE_ISWBLANK.
+ * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
+ * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
+ * doc/posix-headers/wctype.texi: Likewise.
+ Reported by Tom G. Christensen <tgc@jupiterrise.com>.
+
+2010-09-01 Bruno Haible <bruno@clisp.org>
+
+ New module 'socketlib'.
+ * modules/socketlib: New file.
+ * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
+ * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
+ * modules/sockets (Depends-on): Add socketlib.
+ Suggested by Sam Steingold <sds@gnu.org>.
+
+2010-09-01 Paul Eggert <eggert@cs.ucla.edu>
+
+ fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
+
+ POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
+ when one needs search access to a directory but not read access.
+ On systems where it is available, it works in some cases where
+ O_RDONLY does not, namely on directories that are searchable but
+ not readable, and which need only to be searchable. If O_SEARCH
+ is not available, fall back to the traditional method of using
+ O_RDONLY.
+
+ * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
+ * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
+ when opening a directory that needs only to be searchable.
+ * lib/chdir-safer.c (chdir_no_follow): Likewise.
+ * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
+ * lib/openat-proc.c (openat_proc_name): Likewise.
+ * lib/openat.c (openat_needs_fchdir): Likewise.
+ * lib/save-cwd.c (save_cwd): Likewise.
+ * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
+
+2010-08-28 Bruno Haible <bruno@clisp.org>
+
+ New module 'host-cpu-c-abi'.
+ * modules/host-cpu-c-abi: New file.
+ * m4/host-cpu-c-abi.m4: New file, based on part of
+ clisp/src/m4/general.m4.
+ Requested by Sam Steingold <sds@gnu.org>.
+
+2010-08-31 Eric Blake <eblake@redhat.com>
+ and Jim Meyering <meyering@redhat.com>
+
+ hash: factor, and guard against misbehaving hasher function
+ * lib/hash.c (safe_hasher): New function, to encapsulate the checking
+ of table->hasher's return value. Also protect against a hash value
+ so large that adding it to table->bucket results in a NULL pointer.
+ (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
+ Use it in place of open-coded check-and-abort.
+
+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
+ * modules/stat-time (License): Change from GPL to LGPL,
+ with consent from all contributors, for use in libguile.
+ Requested by Ludovic Courtès.
+
+2010-08-26 Erik Faye-Lund <kusmabite@gmail.com>
+
+ poll: return immediately on POLLHUP.
+ * lib/poll.c (poll): Always set timeout before wait_timeout is
+ computed.
+
+2010-08-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ Fix test-unlinkat, test-rmdir failure on AIX 5.3.
+ * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
+ rmdir ("dir/.//"), unlinkat.
+
+2010-08-24 Paul Eggert <eggert@cs.ucla.edu>
+
+ stdbool: avoid spurious failure with modern xlc
+ * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
+
+2010-08-24 Bruno Haible <bruno@clisp.org>
+
+ getloadavg: simplify code
+ * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
+ gl_have_func. Update comments.
+
+2010-08-24 Eric Blake <eblake@redhat.com>
+
+ getloadavg: don't define SVR4 on cygwin
+ * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
+ only define SVR4 when -lkvm is required.
+ Reported by Yaakov Selkowitz.
+
+2010-08-24 Bruno Haible <bruno@clisp.org>
+
+ priv-set: fix comment
+ * lib/priv-set.c (priv_set_restore): Fix typo in comment.
+
+2010-08-23 Paul Eggert <eggert@cs.ucla.edu>
+
+ priv-set: fix comments
+ * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
+ to match code, as suggested by David Bartley in:
+ http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
+
+2010-08-23 Eric Blake <eblake@redhat.com>
+
+ stdbool: avoid rejecting clang
+ * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
+ * tests/test-stdbool.c: Enable more tests if using the system
+ <stdbool.h> instead of the gnulib replacement.
+ (main): Move xlc bug test to a runtime test for all compilers.
+ Reported by Anders Kaseorg.
+
+ argz: fix shell quoting issue
+ * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
+ Reported by Charles Wilson.
+
+2010-08-22 Paolo Bonzini <bonzini@gnu.org>
+ Erik Faye-Lund <kusmabite@gmail.com>
+
+ poll, select: handle ERROR_BROKEN_PIPE.
+ * lib/poll.c (win32_compute_revents): Return POLLHUP when
+ PeekNamedPipe fails with ERROR_BROKEN_PIPE.
+ * lib/select.c (win32_compute_revents): Do not mark a pipe
+ as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
+
+2010-08-22 Giuseppe Scrivano <gscrivano@gnu.org>
+
+ fts: allow compilation with C++
+ * lib/fts_.h: Specify extern "C" linkage with C++.
+
+2010-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ Fix gnulib-tool sed script de-commentation for AIX sed.
+ * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
+ sed.
+
+2010-08-17 Eric Blake <eblake@redhat.com>
+
+ test-stddef: test for (some) offsetof bugs
+ * tests/test-stddef.c: Enhance test to ensure correct type of
+ offsetof.
+ * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
+ that we are not fixing at this time.
+
+2010-08-15 Bruno Haible <bruno@clisp.org>
+
+ stpncpy: Allow stpncpy to be defined as a macro.
+ * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
+ if it's already correctly declared.
+ * lib/string.in.h (stpncpy): Undefine before redefining.
+ Reported by Jeremy Huddleston <jeremyhu@macports.org>.
+
+2010-08-14 Bruno Haible <bruno@clisp.org>
+
+ Rename module 'memxfrm' to 'amemxfrm'.
+ * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
+ (amemxfrm): Renamed from memxfrm.
+ * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
+ (amemxfrm): Renamed from memxfrm.
+ * modules/amemxfrm: Renamed from modules/memxfrm. Update.
+ * NEWS: Mention the change.
+ * MODULES.html.sh (String handling <string.h>): Update.
+ * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
+ * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
+ * lib/unicase/u16-casexfrm.c: Likewise.
+ * lib/unicase/u32-casexfrm.c: Likewise.
+ * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
+ * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
+ * lib/uninorm/u16-normxfrm.c: Likewise.
+ * lib/uninorm/u32-normxfrm.c: Likewise.
+ * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
+ memxfrm.
+ * modules/unicase/u16-casexfrm (Depends-on): Likewise.
+ * modules/unicase/u32-casexfrm (Depends-on): Likewise.
+ * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
+ * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
+ * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
+ Suggested by Paul Eggert.
+
+2010-08-14 Bruno Haible <bruno@clisp.org>
+
+ Tests for module 'astrxfrm'.
+ * modules/astrxfrm-tests: New file.
+ * tests/test-astrxfrm.c: New file.
+
+ New module 'astrxfrm'.
+ * lib/astrxfrm.h: New file.
+ * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
+ * modules/astrxfrm: New file.
+
+2010-08-14 Reuben Thomas <rrt@sc3d.org>
+
+ regex: Tweak doc.
+ * doc/regex.texi (Overview): Don't mention regex.c.
+ (GNU Regular Expression Compiling): Likewise.
+ (Match-end-of-line Operator): Mention 'not_eol'.
+
+2010-08-14 Brian Gough <bjg@gnu.org>
+ Bruno Haible <bruno@clisp.org>
+
+ git-merge-changelog: add doc relating to use with bzr and hg.
+ * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
+
+2010-08-14 Matthias Bolte <matthias.bolte@googlemail.com>
+
+ pthread: fix pthread.h creation for srcdir != builddir
+ * modules/pthread (Makefile.am): Fix the rule to work also in a
+ non-srcdir build.
+
+2010-08-13 Karl Berry <karl@gnu.org>
+
+ * doc/regex.texi (Predefined Syntaxes): @smallexample.
+ * doc/posix-*/*: force line break before @url of POSIX
+ specifications.
+ Suggested by Werner Lemberg.
+
+2010-08-10 Paul Eggert <eggert@cs.ucla.edu>
+
+ strtod: fix const diagnostic
+ * lib/strtod.c (strtod): Don't assign const char * to char *,
+ as this elicits a warning from GCC when warnings are enabled.
+
+2010-08-10 Pádraig Brady <P@draigbrady.com>
+ and Eric Blake <eblake@redhat.com>
+
+ copy-acl: ignore ENOTSUP on HP-UX
+ * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
+ so that it is available for HP-UX.
+ * lib/copy-acl.c (qcopy_acl): Use it.
+ Reported by Patrick M. Callahan.
+
+2010-08-10 Eric Blake <eblake@redhat.com>
+
+ open, chown: relax license
+ * modules/open (License): Change to LGPLv2+, with consent by all
+ authors, for use in augeas.
+ * modules/chown (License): Likewise.
+ * modules/lchown (Likewise): Likewise.
+ Requested by Adam Stokes.
+
+2010-08-09 Karl Berry <karl@gnu.org>
+
+ * build-aux/ar-lib: new file, import from Automake.
+ * config/srclist.txt: autocheck for updates.
+
+2010-08-09 Eric Blake <eblake@redhat.com>
+
+ readlinkat: adjust client modules
+ * modules/areadlinkat (Depends-on): Use readlinkat, not
+ symlinkat.
+ * modules/areadlinkat-with-size (Depends-on): Likewise.
+
+ mknod: be more vocal about danger of running tests as root
+ * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
+ root, since that is just asking for problems.
+ Suggested by Bruno Haible, based on a report by Rainer Tammer.
+
+ readlinkat: split into its own module
+ * modules/symlinkat: Split readlinkat...
+ * modules/readlinkat: ...into separate module.
+ * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
+ * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
+ * lib/symlinkat.c (readlinkat): Move...
+ * lib/readlinkat.c: ...into new file.
+ * modules/symlinkat-tests: Split readlinkat test...
+ * modules/readlinkat-tests: ...into separate module.
+ * tests/test-symlinkat.c: Split...
+ * tests/test-readlinkat.c: ...into new file.
+ * NEWS: Document the split.
+ * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
+ * lib/unistd.in.h (readlinkat): Likewise.
+ Suggested by Bruno Haible.
+
+2010-08-08 Bruno Haible <bruno@clisp.org>
+
+ memxfrm: Speed up.
+ * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
+ that usually only one call to strxfrm is necessary for each string
+ part.
+ Reported by Paul Eggert <eggert@cs.ucla.edu>.
+
+2010-08-07 Karl Berry <karl@gnu.org>
+
+ * doc/posix-headers/limits.texi,
+ * doc/posix-functions/malloc.texi,
+ * doc/posix-functions/strsignal.texi: missing @item.
+ * doc/ld-version-script.texi: spurious leading i.
+ * doc/regex.texi (Interval Operators): no commas inside @var.
+
+2010-08-01 Bruno Haible <bruno@clisp.org>
+
+ Integrate the regex documentation.
+ * doc/gnulib.texi: Define 'cn' index.
+ (Regular expressions): New a chapter that includes regex.texi and
+ regexprops-generic.texi.
+ * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
+ syntax.
+
+ Whitespace cleanup.
+ * doc/regex.texi: Remove trailing spaces.
+
+ Add regex documentation.
+ * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
+ http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
+ Written by Kathy A. Hargreaves and Karl Berry.
+
+2010-08-01 Bruno Haible <bruno@clisp.org>
+
+ link: Update documentation.
+ * doc/posix-functions/link.texi: Update regarding Solaris.
+
+2010-07-31 Bruno Haible <bruno@clisp.org>
+
+ Update modules list.
+ * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
+ (String handling <string.h>): Add memcmp2, memxfrm.
+ (Container data structures): Add xlist, xsublist, xoset.
+ (Core language properties): Add alignof, unused-parameter.
+ (Process control, Numeric conversion functions <stdlib.h>): Renamed
+ from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
+ (Unibyte characters <ctype.h>): New section.
+ (String handling <string.h>): New section.
+ (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
+ atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
+ fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
+ modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
+ tan, tanh, tanl, y0, y1, yn.
+ (Support for systems lacking POSIX:2008): Add alphasort, dirent,
+ dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
+ grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
+ ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
+ unlockpt, vdprintf, vdprintf-posix.
+ (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
+ (File system functions): Add concat-filename, sys_file, sys_ioctl,
+ xconcat-filename.
+ (File descriptor based Input/Output): Add dup3, fd-safer-flag,
+ getdtablesize, pipe2, pipe2-safer.
+ (Security): New section.
+ (Networking functions): Add accept4.
+ (Signal handling): Add sigpipe.
+ (Internationalization functions): Add xstriconveh, mbmemcasecmp,
+ mbmemcasecoll.
+ (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
+ unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
+ (Executing programs): Add findprog-lgpl, pipe-filter-gi,
+ pipe-filter-ii.
+ (Misc): Add argp-version-etc, login_tty, parse-duration.
+
+2010-07-31 Bruno Haible <bruno@clisp.org>
+
+ Improve doc in MODULES.html.
+ * modules/linkat (Description): Add the word "function".
+ * modules/mkfifo (Description): Likewise.
+ * modules/mknod (Description): Likewise.
+ * modules/remove (Description): Likewise.
+ * modules/renameat (Description): Likewise.
+ * modules/stat (Description): Likewise.
+ * modules/symlink (Description): Likewise.
+ * modules/unlink (Description): Likewise.
+
+2010-07-31 Bruno Haible <bruno@clisp.org>
+
+ ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
+ * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
+ option --enable/disable-c++ instead of --enable/disable-cxx.
+ * NEWS: Mention the change.
+
+2010-07-31 Bruno Haible <bruno@clisp.org>
+
+ readlink, areadlink: Relax test a bit.
+ * tests/test-readlink.h (test_readlink): Accept EINVAL as an
+ alternative to ENOTDIR.
+ * tests/test-areadlink.h (test_areadlink): Likewise.
+ Reported by Rainer Tammer.
+
+2010-07-31 Bruno Haible <bruno@clisp.org>
+
+ unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
+ * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
+ character, perform the search using U_STRCHR.
+ * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
+ * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
+ * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
+ * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
+ Suggested by Paolo Bonzini.
+
+2010-07-31 Bruno Haible <bruno@clisp.org>
+
+ unistr/u*-strstr: Fix dependencies.
+ * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
+ * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
+ * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
+
+2010-07-31 Bruno Haible <bruno@clisp.org>
+
+ unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
+ * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
+ the beginning of the loop.
+ * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
+ cases in 'switch' statement.
+
+ unistr/u8-strchr: Fix several bugs.
+ * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
+ the string. When not found, return NULL, not a pointer near the end.
+
+ More tests for unistr/u8-strchr.
+ * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
+ that the function does not read past the first occurrence of the byte
+ being searched.
+ * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
+ * tests/unistr/test-u16-strchr.c (main): New function.
+ * tests/unistr/test-u32-strchr.c (main): New function.
+
+2010-07-31 Bruno Haible <bruno@clisp.org>
+
+ posix-modules: Ignore backup files of documentation files.
+ * posix-modules: grep only through files named *.texi.
+
+2010-07-31 Bruno Haible <bruno@clisp.org>
+
+ symlinkat: Fix documentation.
+ * doc/posix-functions/readlinkat.texi: Fix module name.
+
+2010-07-31 Bruno Haible <bruno@clisp.org>
+
+ fchownat: Replace also when chown has the trailing slash bug.
+ * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
+ outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
+ introduced on 2010-04-10.
+ Reported by Rainer Tammer.
+
+2010-07-31 Bruno Haible <bruno@clisp.org>
+
+ linkat: Work around AIX 7.1 bug.
+ * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
+ whether linkat handles trailing slash correctly. If not, replace linkat
+ and define LINKAT_TRAILING_SLASH_BUG.
+ * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
+ check whether (fd1,file1) points to a directory if file1 or file2 ends
+ in a slash. Code taken from lib/link.c.
+ * doc/posix-functions/linkat.texi: Mention trailing slash bug.
+ Reported by Rainer Tammer.
+
+2010-07-31 Bruno Haible <bruno@clisp.org>
+
+ Correctly determine whether pow is available in libc on AIX 7 with xlc.
+ * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
+ This disables an xlc optimization that was causing wrong test results.
+ Reported by Rainer Tammer.
+
+2010-07-31 Bruno Haible <bruno@clisp.org>
+
+ iconv: Work around AIX 6.1..7.1 bug.
+ * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
+ * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
+ cross-compiling, guess no on all versions of AIX.
+ Reported by Rainer Tammer.
+
+2010-07-31 Bruno Haible <bruno@clisp.org>
+
+ readlink: Relax test a bit.
+ * tests/test-readlink.h (test_readlink): Allow different errno value
+ when readlink is called with a file name that ends in / and refers to
+ a file.
+ Suggested by Eric Blake.
+ Reported by Rainer Tammer.
+
+2010-07-31 Bruno Haible <bruno@clisp.org>
+
+ copysign: Does not require -lm on glibc systems.
+ * modules/copysign (configure.ac): Use gl_MATHFUNC, not
+ gl_COMMON_DOUBLE_MATHFUNC.
+ * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
+
+2010-07-31 Bruno Haible <bruno@clisp.org>
+
+ duplocale: Work around AIX 7.1 bug.
+ * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
+ duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
+ * lib/duplocale.c (rpl_duplocale): Update comment.
+ * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
+ Reported by Rainer Tammer.
+
+2010-07-30 Bruno Haible <bruno@clisp.org>
+
+ dirfd: Avoid link error on AIX 7.1.
+ * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
+ * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
+ exist, set REPLACE_DIRFD.
+ * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
+ * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
+ * doc/posix-functions/dirfd.texi: Update.
+ Reported by Rainer Tammer.
+
+2010-07-30 Eric Blake <eblake@redhat.com>
+
+ strtod: next round of AIX fixes
+ * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
+ exponent.
+ * tests/test-strtod.c (main): Enhance tests.
+ * doc/posix-functions/strtod.texi (strtod): Document next bug.
+ Reported by Rainer Tammer.
+
+ futimens: fix configure check
+ * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
+ Reported by Bruno Haible.
+
+2010-07-30 Bruno Haible <bruno@clisp.org>
+
+ getline: Update regarding AIX.
+ * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
+ Reported by Rainer Tammer.
+
+2010-07-30 Bruno Haible <bruno@clisp.org>
+
+ wcwidth: Drop replacement on AIX 7.
+ * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
+ AIX 7.
+ Reported by Rainer Tammer.
+
+2010-07-30 Bruno Haible <bruno@clisp.org>
+
+ strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
+ * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
+ a 'char *'.
+ Reported by Rainer Tammer.
+
+2010-07-30 Bruno Haible <bruno@clisp.org>
+
+ unlink: Update regarding AIX.
+ * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
+ * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
+ Reported by Rainer Tammer.
+
+2010-07-30 Bruno Haible <bruno@clisp.org>
+
+ symlink: Update regarding AIX.
+ * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
+ * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
+ Reported by Rainer Tammer.
+
+2010-07-30 Bruno Haible <bruno@clisp.org>
+
+ strndup: Update regarding AIX.
+ * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
+ AIX 7.
+ Reported by Rainer Tammer.
+
+2010-07-30 Bruno Haible <bruno@clisp.org>
+
+ stat: Update regarding AIX.
+ * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
+ * m4/stat.m4 (gl_FUNC_STAT): Update comment.
+ Reported by Rainer Tammer.
+
+2010-07-30 Bruno Haible <bruno@clisp.org>
+
+ truncl: Fix autoconf test.
+ * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
+ whether truncl works.
+ Reported by Rainer Tammer.
+
+2010-07-30 Bruno Haible <bruno@clisp.org>
+
+ round: Update regarding AIX.
+ * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
+ * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
+ Reported by Rainer Tammer.
+
+2010-07-30 Bruno Haible <bruno@clisp.org>
+
+ rename: Update regarding AIX.
+ * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
+ * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
+ Reported by Rainer Tammer.
+
+2010-07-30 Bruno Haible <bruno@clisp.org>
+
+ printf.m4: Update regarding AIX.
+ * m4/printf.m4: Update comments regarding AIX.
+ Reported by Rainer Tammer.
+
+2010-07-30 Bruno Haible <bruno@clisp.org>
+
+ iconv: Update regarding AIX.
+ * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
+ AIX 7.
+ Reported by Rainer Tammer.
+
+2010-07-30 Bruno Haible <bruno@clisp.org>
+
+ getopt: Update regarding AIX.
+ * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
+ no on AIX.
+ * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
+ Reported by Rainer Tammer.
+
+2010-07-30 Bruno Haible <bruno@clisp.org>
+
+ ldexpl; Update regarding AIX.
+ * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
+ on AIX 7.
+ Reported by Rainer Tammer.
+
+2010-07-30 Bruno Haible <bruno@clisp.org>
+
+ frexpl: Update regarding AIX.
+ * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
+ on AIX 7.
+ Reported by Rainer Tammer.
+
+2010-07-30 Bruno Haible <bruno@clisp.org>
+
+ open, fopen: Update regarding AIX.
+ * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
+ * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
+ * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
+ * doc/posix-functions/fopen.texi: Likewise.
+ Reported by Rainer Tammer.
+
+2010-07-30 Bruno Haible <bruno@clisp.org>
+
+ chown: Update doc regarding AIX.
+ * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
+ * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
+ Reported by Rainer Tammer.
+
+2010-07-30 Eric Blake <eblake@redhat.com>
+
+ strtod: fix bug in replacement function on AIX
+ * lib/strtod.c (strtod): Special case broken "0x" parse in
+ underlying strtod.
+ * tests/test-strtod.c (main): Document AIX 7.1 bugs.
+ * doc/posix-functions/strtod.texi (strtod): Likewise.
+ Reported by Rainer Tammer.
+
+2010-07-30 Bruno Haible <bruno@clisp.org>
+
+ mbrlen: Fix cross-compilation guess for AIX.
+ * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
+ guess. Leftover from 2008-12-22.
+
+2010-07-30 Bruno Haible <bruno@clisp.org>
+
+ mbrtowc: Fix cross-compilation guess for AIX.
+ * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
+ guess. Leftover from 2008-12-21.
+
+2010-07-29 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
+
+ init.sh: work around trap limitation of some shells
+ * tests/init.sh (setup_): Move exit trap outside of shell function.
+
+2010-07-29 Eric Blake <eblake@redhat.com>
+
+ strtod: aid debugging
+ * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
+ understanding why strtod is rejected.
+
+2010-07-28 Bruno Haible <bruno@clisp.org>
+
+ unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
+ * lib/unistr/u8-chr.c: Include <string.h>.
+ * tests/unistr/test-u8-chr.c: Likewise.
+ * tests/unistr/test-u16-chr.c: Likewise.
+ * tests/unistr/test-u32-chr.c: Likewise.
+ * tests/unistr/test-u8-strchr.c: Likewise.
+ * tests/unistr/test-u16-strchr.c: Likewise.
+ * tests/unistr/test-u32-strchr.c: Likewise.
+ * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
+ * modules/unistr/u16-chr-tests (Depends-on): Likewise.
+ * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
+ * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
+
+2010-07-28 Bruno Haible <bruno@clisp.org>
+
+ Use spaces for indentation, not tabs.
+ * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
+
+2010-07-27 Bruno Haible <bruno@clisp.org>
+
+ mbspcasecmp: Fix function specification.
+ * lib/string.in.h (mbspcasecmp): Fix specification comment.
+ * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
+ Reported by Eric Blake <eblake@redhat.com>.
+
+2010-07-26 Paul R. Eggert <eggert@cs.ucla.edu>
+
+ timespec: use cast and not conditional, as truncation isn't possible
+ * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
+ instead of a conditional. Comment about the situation in more detail.
+ This undoes most of the 2009-10-29 patch.
+
+2010-07-23 Paolo Bonzini <pbonzini@redhat.com>
+
+ unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
+ * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
+ * lib/unistr/u8-strchr.c: Likewise.
+ * modules/unistr/u8-chr: Depend on memchr.
+
+ unistr/u*-strchr: add tests
+ * modules/unistr/u8-strchr-tests: New file.
+ * modules/unistr/u16-strchr-tests: New file.
+ * modules/unistr/u32-strchr-tests: New file.
+ * tests/unistr/test-strchr.h: New file.
+ * tests/unistr/test-u8-strchr.c: New file.
+ * tests/unistr/test-u16-strchr.c: New file.
+ * tests/unistr/test-u32-strchr.c: New file.
+
+ unistr/u*-chr: test multibyte sequences more
+ * tests/unistr/test-chr.h: Do complete testing of the characters in the
+ test vector.
+ * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
+ * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
+ * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
+
+ unistr/u*-chr: test multibyte sequences
+ * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
+
+ unistr/u*-chr: prepare for multibyte tests
+ * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
+ * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
+ * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
+ * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
+ * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
+ * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
+
+2010-07-18 Bruno Haible <bruno@clisp.org>
+
+ unistr/u8-strchr: Optimize non-ASCII argument case.
+ * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
+ because the first byte often matches anyway.
+ Reported by Pádraig Brady <P@draigbrady.com>.
+
2010-07-15 Karl Berry <karl@gnu.org>
* config/srclist.txt (fdl.texi): only one copy, from gnustandards.