+2009-08-13 Eric Blake <ebb9@byu.net>
+
+ getopt: update client modules
+ * modules/argp (Depends-on): Use getopt-gnu.
+ * modules/git-merge-changelog (Depends-on): Likewise.
+ * modules/long-options (Depends-on): Likewise.
+ * modules/xstrtol (Depends-on): Likewise.
+
+2009-08-13 Simon Josefsson <simon@josefsson.org>
+
+ * tests/test-version-etc.sh: Don't fail on different
+ project/version. Don't fail on CRLF differences. Rewrite to use
+ multiple -e instead of multiple sed forks, suggested by Eric Blake
+ <ebb9@byu.net>.
+ * tests/test-argp-version-etc-1.sh: Likewise.
+
+2009-08-13 Simon Josefsson <simon@josefsson.org>
+
+ * tests/test-version-etc.sh: Don't fail on different
+ project/version.
+
+2009-08-12 Bruno Haible <bruno@clisp.org>
+
+ Tests for modules 'getopt-posix', 'getopt-gnu'.
+ * modules/getopt-posix-tests: New file.
+ * tests/test-getopt.c: New file.
+ * tests/test-getopt.h: New file.
+ * tests/test-getopt_long.h: New file.
+
+ New modules 'getopt-posix', 'getopt-gnu'.
+ * modules/getopt-gnu: New file, renamed from modules/getopt.
+ * modules/getopt-posix: New file.
+ * modules/getopt: Turn into an obsolete alias for getopt-gnu.
+ * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
+ (gl_GETOPT): Remove macro.
+ (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
+ Disable the test against BSD systems that declare optreset. Test
+ against mingw bug. Test against lack of support of optional arguments
+ on many platforms.
+ * doc/glibc-headers/getopt.texi: Update module name and list of
+ relevant platforms.
+ * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
+ 'getopt-gnu' and more portability problems.
+ * NEWS: Mention the changes.
+
+2009-08-12 Bruno Haible <bruno@clisp.org>
+
+ Ensure that optarg etc. get declared by <unistd.h>.
+ * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
+ AC_USE_SYSTEM_EXTENSIONS.
+ * modules/getopt (Depends-on): Add 'extensions'.
+
+2009-08-12 Bruno Haible <bruno@clisp.org>
+
+ Avoid test link errors.
+ * modules/pipe-filter-ii-tests (Makefile.am): Define
+ test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
+ * modules/pipe-filter-gi-tests (Makefile.am): Define
+ test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
+ Reported by Tom G. Christensen <tgc@jupiterrise.com>.
+
+2009-08-12 Bruno Haible <bruno@clisp.org>
+
+ * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
+ gl_GETOPT_SUBSTITUTE before.
+ (gl_GETOPT): Use it.
+ * m4/argp.m4 (gl_ARGP): Update.
+ Reported by Sergey Poznyakoff.
+
+ * m4/getopt.m4: Reorder macros.
+ (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
+ (gl_GETOPT_SUBSTITUTE): Remove macro.
+
+2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
+
+ Minor improvement in gitlog-to-changelog
+
+ * build-aux/gitlog-to-changelog: New option `--format' makes
+ output format string configurable.
+
+2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
+
+ Optimize exclude: use hash tables for non-wildcard patterns.
+
+ * lib/exclude.c: Include hash.h and mbuiter.h
+ (struct exclude_pattern, exclude_segment): New data types.
+ (struct exclude): Rewrite.
+ (fnmatch_pattern_has_wildcards): New function.
+ (new_exclude_segment, free_exclude_segment): New functions.
+ (excluded_file_pattern_p, excluded_file_name_p): New functions.
+ (excluded_file_name, add_exclude): Rewrite using new struct exclude.
+ * lib/exclude.h (is_fnmatch_pattern): New prototype.
+ * modules/exclude: Depend on hash and mbuiter.
+
+ * modules/exclude-tests: New file.
+ * tests/test-exclude.c: New file.
+ * tests/test-exclude1.sh: New file.
+ * tests/test-exclude2.sh: New file.
+ * tests/test-exclude3.sh: New file.
+ * tests/test-exclude4.sh: New file.
+ * tests/test-exclude5.sh: New file.
+ * tests/test-exclude6.sh: New file.
+ * tests/test-exclude7.sh: New file.
+
+2009-08-12 Bruno Haible <bruno@clisp.org>
+
+ Ensure that getopt() gets declared by <unistd.h>.
+ * lib/unistd.in.h: Conditionally include getopt.h.
+ * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
+ Set GNULIB_UNISTD_H_GETOPT.
+ * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
+ GNULIB_UNISTD_H_GETOPT.
+ * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
+
+2009-08-12 Bruno Haible <bruno@clisp.org>
+
+ Clarify logic.
+ * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
+ gl_replace_getopt instead of GETOPT_H.
+
+2009-08-12 Bruno Haible <bruno@clisp.org>
+
+ * m4/getopt.m4: Add comments.
+
+2009-08-12 Bruno Haible <bruno@clisp.org>
+
+ Disable multithread support by default on Cygwin 1.5.x.
+ * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
+ set gl_use_threads=no if not specified otherwise.
+
+2009-08-11 Bruno Haible <bruno@clisp.org>
+
+ Avoid compilation error on NetBSD 5.0.
+ * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
+ * tests/test-stdio.c: Likewise.
+ * tests/test-stdlib.c: Likewise.
+ * tests/test-string.c: Likewise.
+ * tests/test-unistd.c: Likewise.
+ Reported by Greg Troxel <gdt@ir.bbn.com>
+ at <https://savannah.gnu.org/support/?106973>.
+
+2009-08-11 Bruno Haible <bruno@clisp.org>
+
+ * modules/dup2-tests (Depends-on): Remove close.
+
+ Undo 2009-07-19 commit.
+ * modules/acl-tests (Depends-on): Remove close.
+ * modules/binary-io-tests (Depends-on): Likewise.
+ * modules/closein-tests (Depends-on): Likewise.
+ * modules/flock-tests (Depends-on): Likewise.
+ * modules/fsync-tests (Depends-on): Likewise.
+ * modules/lseek-tests (Depends-on): Likewise.
+ * modules/pipe-tests (Depends-on): Likewise.
+ * modules/posix_spawn-tests (Depends-on): Likewise.
+ * modules/posix_spawnp-tests (Depends-on): Likewise.
+ * modules/stat-time-tests (Depends-on): Likewise.
+ * modules/yesno-tests (Depends-on): Likewise.
+
+2009-08-10 Bruno Haible <bruno@clisp.org>
+
+ * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
+
+2009-08-10 Bruno Haible <bruno@clisp.org>
+
+ Fix a gcc warning.
+ * lib/write.c (rpl_write): Cast result of _get_osfhandle.
+
+2009-08-10 Bruno Haible <bruno@clisp.org>
+
+ Don't optimize AC_LIBOBJs, as they may appear in different contexts.
+ * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
+ not only the first time.
+ * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
+ * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
+ * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
+ is 1, not only the the first time.
+
+2009-08-10 Bruno Haible <bruno@clisp.org>
+
+ Make it possible to use module 'gethostname' without module 'close'.
+ * lib/unistd.in.h (close): Evoke a link error only if
+ UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
+ * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
+ UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
+ * modules/unistd (Makefile.am): Substitute
+ UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
+ * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
+ SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
+ * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
+ SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
+ * modules/sys_ioctl (Makefile.am): Substitute
+ SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
+ * modules/socket (configure.ac): On native Windows, set
+ UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
+ SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
+ Reported by Sam Steingold <sds@gnu.org>.
+
+2009-08-10 Bruno Haible <bruno@clisp.org>
+
+ * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
+ * modules/ioctl (configure.ac): Likewise.
+
+2009-08-10 Bruno Haible <bruno@clisp.org>
+
+ Avoid collision between gnulib wrapper and libintl wrapper.
+ * lib/stdio-write.c (printf): Don't define if a printf wrapper is
+ already defined in intl/printf.c.
+ (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
+ (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
+
+2009-08-09 Bruno Haible <bruno@clisp.org>
+
+ Make <sys/select.h> really self-contained, also on Solaris 10.
+ * lib/sys_select.in.h: Include <string.h>.
+ * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
+ Solaris 10 problem.
+ * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
+ * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
+ Reported by Jim Meyering.
+
+2009-08-09 Bruno Haible <bruno@clisp.org>
+
+ Avoid warnings from 'aclocal' that are due to a use of macro name
+ AM_XGETTEXT_OPTION that is not defined in automake.
+ * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
+ automake.
+ * modules/error (configure.ac): Likewise.
+ * modules/propername (configure.ac): Likewise.
+ * modules/vasprintf (configure.ac): Likewise.
+ * modules/verror (configure.ac): Likewise.
+ * modules/xprintf (configure.ac): Likewise.
+ * modules/xvasprintf (configure.ac): Likewise.
+
+2009-08-08 Bruno Haible <bruno@clisp.org>
+
+ Avoid compilation error in C++ mode.
+ * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
+ Reported by Sam Steingold <sds@gnu.org>.
+
+2009-08-08 Bruno Haible <bruno@clisp.org>
+
+ * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
+ for the various Unix platforms.
+ * doc/posix-headers/limits.texi: Update platforms list regarding
+ HOST_NAME_MAX.
+ Reported by Tom G. Christensen <tgc@jupiterrise.com>.
+
+2009-08-07 Jim Meyering <meyering@redhat.com>
+
+ selinux-at: fix typo in a comment
+ * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
+ Spotted by Paolo Bonzini.
+
+ selinux-at: remove redundant m4 code, add documentation
+ * modules/selinux-at (configure.ac): Remove redundant code.
+ LIB_SELINUX is already set via the dependent module, selinux-h.
+ (Include): Add quotes around selinux-at.h.
+ * lib/selinux-at.h: Add documentation.
+ Reported by Bruno Haible in
+ http://marc.info/?l=gnulib-bug&m=124958988300749
+
+2009-08-07 Bruno Haible <bruno@clisp.org>
+
+ Avoid link error on MacOS X 10.3 and 10.4.
+ * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
+ on non-ELF systems.
+ * lib/argp-pv.c (argp_program_version): Likewise.
+ Reported by Simon Josefsson.
+
+2009-08-07 Simon Josefsson <simon@josefsson.org>
+
+ * tests/test-version-etc.sh: Use $EXEEXT.
+
2009-08-06 Joel E. Denny <jdenny@clemson.edu>
update-copyright: update documentation to point to maint.mk