Fix a compilation error of realloc.c on OSF/1 4.0d and similar bugs.
[gnulib.git] / ChangeLog
index 84ef90f..3d17132 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,785 @@
+2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+            Bruno Haible  <bruno@clisp.org>
+
+       * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
+       * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
+       * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
+       (malloc): Undefine also before including <stdlib.h>.
+       (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
+       Needed on OSF/1 4.0.
+
+2007-11-05  Jim Meyering  <meyering@redhat.com>
+
+       git-version-gen: sync from coreutils.
+       * build-aux/git-version-gen: Add comments.
+       Change the first '-' to '.' in the snapshot version string,
+       e.g., 6.9-377-08144 -> 6.9.377-08144
+       Remove first parameter.
+       Don't declare a version "-dirty" merely because a time
+       stamp has changed.
+
+2007-11-04  Bruno Haible  <bruno@clisp.org>
+
+       * lib/lock.h: Protect all macro definitions containing an 'if'
+       statement through a "do { ... } while (0)".
+       * lib/tls.h: Likewise.
+
+2007-11-04  Bruno Haible  <bruno@clisp.org>
+
+       * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
+
+2007-11-04  Bruno Haible  <bruno@clisp.org>
+
+       * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
+       * modules/fprintf-posix (Depends-on): Add nocrash.
+       * modules/snprintf-posix (Depends-on): Likewise.
+       * modules/sprintf-posix (Depends-on): Likewise.
+       * modules/vasnprintf-posix (Depends-on): Likewise.
+       * modules/vasprintf-posix (Depends-on): Likewise.
+       * modules/vfprintf-posix (Depends-on): Likewise.
+       * modules/vsnprintf-posix (Depends-on): Likewise.
+       * modules/vsprintf-posix (Depends-on): Likewise.
+       * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
+       * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
+       * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
+       * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
+       * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
+       * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
+       * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
+
+2007-11-04  Bruno Haible  <bruno@clisp.org>
+
+       * modules/nocrash: New file.
+       * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
+       GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
+
+2007-11-04  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-vasnprintf-posix.c (test_function): Add some tests of
+       precision handling.
+       * tests/test-vasprintf-posix.c (test_function): Likewise.
+       * tests/test-snprintf-posix.h (test_function): Likewise.
+       * tests/test-sprintf-posix.h (test_function): Likewise.
+
+       Fix *printf behaviour for large precisions on mingw and BeOS.
+       * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
+       * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
+       * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
+       (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
+       * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
+       gl_PRINTF_PRECISION and test its result. Invoke
+       gl_PREREQ_VASNPRINTF_PRECISION.
+       * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
+       * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
+       * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
+       * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
+       * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
+       * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
+       * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
+       * doc/functions/fprintf.texi: Update.
+       * doc/functions/printf.texi: Update.
+       * doc/functions/snprintf.texi: Update.
+       * doc/functions/sprintf.texi: Update.
+       * doc/functions/vfprintf.texi: Update.
+       * doc/functions/vprintf.texi: Update.
+       * doc/functions/vsnprintf.texi: Update.
+       * doc/functions/vsprintf.texi: Update.
+
+2007-11-04  Bruno Haible  <bruno@clisp.org>
+
+       * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
+
+2007-11-04  Bruno Haible  <bruno@clisp.org>
+
+       * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
+       Reported by Sylvain Beucler <beuc@gnu.org>.
+
+2007-11-03  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-fprintf-posix2.sh: New file.
+       * tests/test-fprintf-posix2.c: New file.
+       * modules/fprintf-posix-tests (Files): Add them.
+       (TESTS): Add test-fprintf-posix2.sh.
+       (configure.ac): Check for getrlimit and setrlimit.
+       (check_PROGRAMS): Add test-fprintf-posix2.
+
+       * tests/test-printf-posix2.sh: New file.
+       * tests/test-printf-posix2.c: New file.
+       * modules/printf-posix-tests (Files): Add them.
+       (TESTS): Add test-printf-posix2.sh.
+       (configure.ac): Check for getrlimit and setrlimit.
+       (check_PROGRAMS): Add test-printf-posix2.
+
+       Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
+       * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
+       * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
+       (decode_double): New function, copied from decode_long_double.
+       (scale10_round_decimal_decoded): New function, extracted from
+       scale10_round_decimal_long_double.
+       (scale10_round_decimal_long_double): Use it.
+       (scale10_round_decimal_double): New function.
+       (floorlog10): New function.
+       (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
+       * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
+       (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
+       * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
+       gl_PRINTF_ENOMEM and test its result. Invoke
+       gl_PREREQ_VASNPRINTF_ENOMEM.
+       * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
+       * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
+       * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
+       * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
+       * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
+       * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
+       * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
+       * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
+       * modules/snprintf-posix (Depends-on): Likewise.
+       * modules/sprintf-posix (Depends-on): Likewise.
+       * modules/vasnprintf-posix (Depends-on): Likewise.
+       * modules/vasprintf-posix (Depends-on): Likewise.
+       * modules/vfprintf-posix (Depends-on): Likewise.
+       * modules/vsnprintf-posix (Depends-on): Likewise.
+       * modules/vsprintf-posix (Depends-on): Likewise.
+       * doc/functions/fprintf.texi: Update.
+       * doc/functions/printf.texi: Update.
+       * doc/functions/snprintf.texi: Update.
+       * doc/functions/sprintf.texi: Update.
+       * doc/functions/vfprintf.texi: Update.
+       * doc/functions/vprintf.texi: Update.
+       * doc/functions/vsnprintf.texi: Update.
+       * doc/functions/vsprintf.texi: Update.
+
+2007-11-03  Bruno Haible  <bruno@clisp.org>
+
+       * modules/frexp-nolibm-tests: New file.
+
+       * modules/frexp-nolibm: New file.
+       * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
+
+2007-11-03  Bruno Haible  <bruno@clisp.org>
+
+       * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
+       value is C99 compliant.
+       Needed for OSF/1 5.1.
+
+2007-11-03  Bruno Haible  <bruno@clisp.org>
+
+       Fix out-of-memory handling of vasnprintf.
+       * lib/printf-parse.c: Include <errno.h>.
+       (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
+       * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
+       is already set.
+
+2007-11-02  Eric Blake  <ebb9@byu.net>
+
+       Fix tests on cygwin.
+       * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
+
+2007-11-01  Bruno Haible  <bruno@clisp.org>
+
+       * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
+       warning.
+       * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
+       needed for POSIX compatibility.
+
+2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
+       for compatibility with GNU.
+
+2007-11-01  Bruno Haible  <bruno@clisp.org>
+
+       * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
+       (putenv): Renamed from rpl_putenv. Change argument type from
+       'const char *' to 'char *'.
+       * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
+       of defining putenv in config.h, just set REPLACE_PUTENV.
+       * modules/putenv (Depends-on): Add stdlib.
+       (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
+       (Include): Use <stdlib.h>.
+       * lib/stdlib.in.h (putenv): New declaration.
+       * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
+       REPLACE_PUTENV.
+       * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
+       REPLACE_PUTENV.
+       Needed for MacOS X 10.5.0.
+       Reported by Peter O'Gorman <peter@pogma.com>.
+
+2007-11-01  Jim Meyering  <meyering@redhat.com>
+
+       Treat an empty date string exactly like "0".
+       * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
+       if the remaining date string (to be parsed) is empty, use "0".
+       Reported by Mischa Molhoek and discussed in this thread:
+       <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
+
+2007-10-31  Bruno Haible  <bruno@clisp.org>
+
+       * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
+       AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
+       * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
+       AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
+       * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
+       * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
+
+2007-10-31  Bruno Haible  <bruno@clisp.org>
+
+       * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
+       from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
+       (AC_TYPE_LONG_LONG_INT): Use it.
+       (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
+       it as well.
+       * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
+       to m4/longlong.m4.
+       * modules/stdint (Files): Remove m4/ulonglong.m4.
+       * modules/strtoull (Files): Use m4/longlong.m4 instead of
+       m4/ulonglong.m4.
+       * modules/strtoumax (Files): Likewise.
+
+2007-10-30  Bruno Haible  <bruno@clisp.org>
+
+       * modules/xvasprintf-posix: New file.
+       Suggested by Eric Blake.
+
+2007-10-30  Bruno Haible  <bruno@clisp.org>
+
+       * modules/xprintf-posix-tests: New file.
+       * tests/test-xprintf-posix.sh: New file.
+       * tests/test-xprintf-posix.c: New file.
+       * tests/test-xfprintf-posix.c: New file.
+
+       * modules/xprintf-posix: New file.
+
+2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
+       * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
+       * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
+
+2007-10-29  Bruno Haible  <bruno@clisp.org>
+
+       * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
+       contain the special marker '_cv_'.
+       * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
+       * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
+       * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
+       * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
+       * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
+       Reported by Ralf Wildenhues.
+
+2007-10-29  Bruno Haible  <bruno@clisp.org>
+
+       * gnulib-tool (func_import): When --lgpl is not specified, set
+       sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
+       GPLv3.
+       Reported by Simon Josefsson.
+
+2007-10-28  Bruno Haible  <bruno@clisp.org>
+
+       * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
+       * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
+       HAVE_DECL_ISFINITE.
+       * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
+       * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
+       HAVE_DECL_ISFINITE.
+
+2007-10-28  Bruno Haible  <bruno@clisp.org>
+
+       * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
+       integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
+
+2007-10-28  Bruno Haible  <bruno@clisp.org>
+
+       Fix link errors with Sun C 5.0 on Solaris 10.
+       * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
+       function is declared but not present in the compiler's libm.
+       * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
+       * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
+       * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
+       * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
+       Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
+       Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
+       Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
+       * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
+       * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
+       HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
+       REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
+       HAVE_DECL_FLOORL.
+
+2007-10-28  Bruno Haible  <bruno@clisp.org>
+
+       * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
+       gl_FUNC_FLOORL. Cache the result.
+       (gl_FUNC_FLOORL): Use it.
+       * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
+       gl_FUNC_CEILL. Cache the result.
+       (gl_FUNC_CEILL): Use it.
+
+       * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
+       gl_FUNC_FLOOR. Cache the result.
+       (gl_FUNC_FLOOR): Use it.
+       * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
+       gl_FUNC_CEIL. Cache the result.
+       (gl_FUNC_CEIL): Use it.
+
+       * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
+       gl_FUNC_FLOORF. Cache the result.
+       (gl_FUNC_FLOORF): Use it.
+       * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
+       gl_FUNC_CEILF. Cache the result.
+       (gl_FUNC_CEILF): Use it.
+
+2007-10-28  Bruno Haible  <bruno@clisp.org>
+
+       * gnulib-tool: Allow specifying the LGPL version number through
+       --lgpl=2 or --lgpl=3.
+       (func_usage): Document --lgpl with argument.
+       Handle --lgpl=... arguments.
+       (func_import): Recognize also gl_LGPL calls with an argument. When
+       --lgpl=2 is used and the module's license is just LGPL, report an
+       error. Set sed_transform_lib_file according to the lgpl variable. In
+       the generated files, use --lgpl or gl_LGPL invocations with argument,
+       if necessary.
+       * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
+       an LGPv2+ license.
+       * doc/gnulib-tool.texi (Modified imports): Update explanation of
+       gl_LGPL macro.
+
+2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+            Bruno Haible  <bruno@clisp.org>
+
+       * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
+       (u16_uctomb_aux): Likewise.
+       * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
+       !HAVE_INLINE.
+       * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
+
+2007-10-28  Bruno Haible  <bruno@clisp.org>
+
+       * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
+       Invoke AM_GETTEXT_OPTION if it exists.
+       * modules/vasprintf: Likewise.
+       * modules/verror: Likewise.
+       * modules/xprintf: Likewise.
+       * modules/xvasprintf: Likewise.
+
+2007-10-27  Ben Pfaff  <blp@gnu.org>
+
+       * lib/math.in.h: Define isfinite macro and prototypes for
+       gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
+       implementations.
+       * m4/math_h.m4: New substitutions for isfinite module.
+       * lib/isfinite.c: New file.
+       * m4/isfinite.m4: New file.
+       * modules/math: Replace isfinite-related @VARS@ in math.in.h.
+       * modules/isfinite: New file.
+       * modules/isfinite-tests: New file.
+       * tests/tests-isfinite.c: New file.
+       * doc/functions/isfinite.texi: Mention isfinite module.
+       * MODULES.html.sh: Mention new module.
+
+2007-10-27  Ben Pfaff  <blp@gnu.org>
+
+       Ralf Wildenhues reported that Tru64 4.0D declares the round
+       functions but does not have definitions.
+       * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
+       cannot be found in any library, set the output variable to
+       "missing" instead of "".
+       * m4/round.m4: Also use our substitute if we cannot find round in
+       any library, even if it is declared.
+       * m4/roundf.m4: Likewise for roundf.
+       * m4/roundl.m4: Likewise for roundl.
+       * lib/math.in.h: Undefine roundf, round, roundl before defining
+       their replacements, to allow for hypothetical systems where these
+       may be defined as macros but not available in libraries.
+
+2007-10-27  Bruno Haible  <bruno@clisp.org>
+
+       * doc/gnulib.texi: Invoke @firstparagraphindent.
+       * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
+       changes in gnulib.
+       (Source changes): New section.
+
+2007-10-26  Bruno Haible  <bruno@clisp.org>
+
+       * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
+       borrowed from autoconf.
+
+2007-10-26  Bruno Haible  <bruno@clisp.org>
+
+       * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
+       strerror returned the empty string. Needed on HP-UX 11.00.
+
+2007-10-24  Micah Cowan  <micah@cowan.name>
+
+       Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
+       * build-aux/bootstrap: Remove support for now-unnecessary option,
+       --cvs-user, and envvars CVS_USER, CVS_RSH.
+
+2007-10-24  Jim Meyering  <meyering@redhat.com>
+
+       Avoid diagnostics from sha1sum when there is no cached checksum.
+       * build-aux/bootstrap (update_po_files): Skip the sha1sum check
+       if the po.s1 file hasn't been created yet.
+
+       * build-aux/bootstrap: Sync from coreutils:
+       2007-10-24  Jim Meyering  <meyering@redhat.com>
+       Get gnulib from the git repository, not from an obsolete cvs one.
+       * build-aux/bootstrap: Suggestion from Micah Cowan.
+       2007-10-04  Jim Meyering  <jim@meyering.net>
+       * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
+       (update_po_files): Work also when there are no .po files in po/.
+
+2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * README: Append ".git" to git and cg examples.
+       Problem reported by Benoit Sigoure.
+
+2007-10-23  Micah Cowan  <micah@cowan.name>
+
+       * users.txt: Add wget.
+
+2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       Fix linking of some unistdio tests on FreeBSD.
+       * modules/unistdio/u16-vsnprintf-tests
+       (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
+       * modules/unistdio/u16-vsprintf-tests
+       (test_u16_vsnprintf1_LDADD): Likewise.
+       * modules/unistdio/u32-vsnprintf-tests
+       (test_u32_vsnprintf1_LDADD): Likewise.
+       * modules/unistdio/u32-vsprintf-tests
+       (test_u32_vsprintf1_LDADD): Likewise.
+       * modules/unistdio/u8-vsnprintf-tests
+       (test_u8_vsnprintf1_LDADD): Likewise.
+       * modules/unistdio/u8-vsprintf-tests
+       (test_u8_vsprintf1_LDADD): Likewise.
+       * modules/unistdio/ulc-vsnprintf-tests
+       (test_ulc_vsnprintf1_LDADD): Likewise.
+       * modules/unistdio/ulc-vsprintf-tests
+       (test_ulc_vsprintf1_LDADD): Likewise.
+
+       Fix linking of some uniconv tests on FreeBSD.
+       * modules/uniconv/u16-conv-from-enc-tests
+       (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
+       * modules/uniconv/u16-conv-to-enc-tests
+       (test_u16_conv_to_enc_LDADD): Likewise.
+       * modules/uniconv/u16-strconv-from-enc-tests
+       (test_u16_strconv_from_enc_LDADD): Likewise.
+       * modules/uniconv/u16-strconv-to-enc-tests
+       (test_u16_strconv_to_enc_LDADD): Likewise.
+       * modules/uniconv/u32-conv-from-enc-tests
+       (test_u32_conv_from_enc_LDADD): Likewise.
+       * modules/uniconv/u32-conv-to-enc-tests
+       (test_u32_conv_to_enc_LDADD): Likewise.
+       * modules/uniconv/u32-strconv-from-enc-tests
+       (test_u32_strconv_from_enc_LDADD): Likewise.
+       * modules/uniconv/u32-strconv-to-enc-tests
+       (test_u32_strconv_to_enc_LDADD): Likewise.
+       * modules/uniconv/u8-conv-from-enc-tests
+       (test_u8_conv_from_enc_LDADD): Likewise.
+       * modules/uniconv/u8-conv-to-enc-tests
+       (test_u8_conv_to_enc_LDADD): Likewise.
+       * modules/uniconv/u8-strconv-from-enc-tests
+       (test_u8_strconv_from_enc_LDADD): Likewise.
+       * modules/uniconv/u8-strconv-to-enc-tests
+       (test_u8_strconv_to_enc_LDADD): Likewise.
+
+2007-10-22  Bruno Haible  <bruno@clisp.org>
+
+       * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
+       size.
+
+2007-10-22  Eric Blake  <ebb9@byu.net>
+
+       Tweak x*printf documentation.
+       * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
+       variable name and comments.
+       Suggested by Bruno Haible.
+
+2007-10-22  Bruno Haible  <bruno@clisp.org>
+
+       * lib/acl.c (copy_acl): Fix file name in comment.
+
+2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Fix Tru64 problem with stdbool.h.
+       * lib/stdbool.in.h (false, true):
+       [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
+       Don't declare as an enum in this situation; it runs afoul of Tru64.
+       Problem reported by Steven M. Schweda in
+       <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
+
+2007-10-22  Eric Blake  <ebb9@byu.net>
+
+       Also wrap vf?printf.
+       * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
+       * lib/xprintf.c (xprintf, xfprintf): Work for C89.
+       (xvprintf, xvfprintf): New functions.
+
+2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
+       @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
+
+       * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
+       * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
+
+2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
+       by Bruno Haible.
+
+2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * lib/getloadavg.c
+       [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
+       Undef `sys' after including sys/table.h, for Tru64 4.0D.
+
+       * tests/test-i-ring.c: Work for C89.
+
+2007-10-22  Bruno Haible  <bruno@clisp.org>
+
+       * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
+       -1u, in preprocessor expression, so that we don't test for the bug
+       in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
+       <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
+
+2007-10-22  Eric Blake  <ebb9@byu.net>
+
+       * tests/test-yesno.sh: Silence stderr during test.
+
+2007-10-22  Simon Josefsson  <simon@josefsson.org>
+
+       * modules/crypto/gc-camellia: New file.
+
+       * m4/gc-camellia.m4: New file.
+
+       * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
+
+       * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
+
+2007-10-22  Simon Josefsson  <simon@josefsson.org>
+
+       * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
+       --help to stdout.  Reported by sms@antinode.org (Steven
+       M. Schweda).
+
+2007-10-22  Simon Josefsson  <simon@josefsson.org>
+
+       * users.txt: Fix link to libksba.
+
+2007-10-21  Ben Pfaff  <blp@gnu.org>
+
+       * modules/roundf-tests: Add dependency on floorf, ceilf to allow
+       round.c roundf implementation that depends on floorf and ceilf to
+       be tested unconditionally.
+
+2007-10-21  Ben Pfaff  <blp@gnu.org>
+
+       * m4/check-libm-func.m4: Removed.
+       * m4/check-math-lib.m4: New file.
+       * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
+       * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
+       definition and lack of AC_LIBOBJ([roundf]).
+       * m4/roundl.m4: Ditto, and similarly for roundl.
+       * modules/round: Reference new m4 file.
+       * modules/roundf: Ditto.
+       * modules/roundl: Ditto.
+       * tests/test-round2.c (main): Use ROUND instead of round.
+       Bug report from Bruno Haible.
+
+2007-10-21  Bruno Haible  <bruno@clisp.org>
+
+       * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
+       context.
+
+2007-10-21  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-wcwidth.c (main): Allow negative result for some control
+       characters.
+
+       * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
+       Needed on OSF/1 5.1.
+
+2007-10-21  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-floorf1.c: Include isnanf.h.
+       (main): Use isnanf() instead of isnan().
+       * tests/test-ceilf1.c: Include isnanf.h.
+       (main): Use isnanf() instead of isnan().
+       * tests/test-truncf1.c: Include isnanf.h.
+       (main): Use isnanf() instead of isnan().
+       * tests/test-roundf1.c: Include isnanf.h.
+       (main): Use isnanf() instead of isnan().
+
+2007-10-21  Eric Blake  <ebb9@byu.net>
+
+       * users.txt: Update URL for m4.
+
+2007-10-21  Bruno Haible  <bruno@clisp.org>
+
+       * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
+
+2007-10-21  Bruno Haible  <bruno@clisp.org>
+
+       * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
+       Git's management files if the CVS files are not present.
+
+2007-10-20  Bruno Haible  <bruno@clisp.org>
+
+       * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
+       gcc-3.4.x.
+
+2007-10-20  Ben Pfaff  <blp@gnu.org>
+
+       * lib/math.in.h: Declare round, roundf, roundl if we are providing
+       implementations.
+       * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
+       * lib/round.c: New file.
+       * lib/roundf.c: New file.
+       * lib/roundl.c: New file.
+       * m4/round.m4: New file.
+       * m4/roundf.m4: New file.
+       * m4/roundl.m4: New file.
+       * m4/check-libm-func-m4: New file.
+       * modules/math: Replace round, roundf, roundl related @VARS@ in
+       math.in.h.
+       * modules/round: New file.
+       * modules/round-tests: New file.
+       * modules/roundf: New file.
+       * modules/roundf-tests: New file.
+       * modules/roundl: New file.
+       * modules/roundl-tests: New file.
+       * tests/test-round1.c: New file.
+       * tests/test-round2.c: New file.
+       * tests/test-roundf1.c: New file.
+       * tests/test-roundf2.c: New file.
+       * tests/test-roundl.c: New file.
+       * doc/functions/round.texi: Mention round module.
+       * doc/functions/roundf.texi: Mention roundf module.
+       * doc/functions/roundl.texi: Mention roundl module.
+       * MODULES.html.sh: Mention new modules.
+       Thanks to Bruno Haible for suggestions.
+
+2007-10-20  Jim Meyering  <meyering@redhat.com>
+
+       * lib/xprintf.c: Include <config.h> unconditionally.
+
+       Change xprintf's license to GPL.
+       * modules/xprintf (License): s/LGPL/GPL/, since this module
+       depends on modules (exit and exitfail) which are GPL.
+       Suggestion from Bruno Haible.
+
+       xprintf fixes.
+       * lib/xprintf.c (xprintf, xfprintf): Use va_end.
+       Use a clearer diagnostic.
+       Patch from Bruno Haible.
+
+2007-10-20  Bruno Haible  <bruno@clisp.org>
+
+       * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
+       length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
+       Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
+
+2007-10-20  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-floorf2.c (correct_result_p): Don't rely on excess
+       precision in the comparison result > x - 1 or similar.
+       * tests/test-ceilf2.c (correct_result_p): Likewise.
+       * tests/test-truncf2.c (correct_result_p): Likewise.
+       * tests/test-trunc2.c (correct_result_p): Likewise.
+       Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
+
+2007-10-20  Bruno Haible  <bruno@clisp.org>
+
+       * modules/ceil: New file.
+       * m4/ceil.m4: New file.
+       * doc/functions/ceil.texi: Mention the 'ceil' module.
+
+2007-10-20  Bruno Haible  <bruno@clisp.org>
+
+       * modules/floor: New file.
+       * m4/floor.m4: New file.
+       * doc/functions/floor.texi: Mention the 'floor' module.
+
+2007-10-20  Bruno Haible  <bruno@clisp.org>
+
+       * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
+       of %a.
+       * modules/floorf-tests (Depends-on): Likewise.
+       * modules/truncf-tests (Depends-on): Likewise.
+       * modules/trunc-tests (Depends-on): Likewise.
+       Reported by Ben Pfaff.
+
+2007-10-19  Jim Meyering  <meyering@redhat.com>
+
+       * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
+       Don't bother testing specific errno values.  Just test ferror.
+
+       New module: xprintf
+       * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
+
+2007-10-19  Bruno Haible  <bruno@clisp.org>
+
+       * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
+       syntax.
+       * modules/javaexec (Makefile.am): Likewise.
+       * modules/relocatable-prog (Makefile.am): Likewise.
+       Suggested by Jim Meyering.
+
+2007-10-18  Bruno Haible  <bruno@clisp.org>
+
+       * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
+       Reported by Jim Meyering.
+
+2007-10-18  Eric Blake  <ebb9@byu.net>
+
+       * modules/filenamecat-tests (Makefile.am): Link against -lintl.
+
+2007-10-18  Bruno Haible  <bruno@clisp.org>
+
+       * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
+       the format string into writable memory. Needed in Fortify conditions.
+
+2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
+           Bruno Haible  <bruno@clisp.org>
+
+       * lib/trim.c: Include config.h unconditionally. Include trim.h always.
+       Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
+       * modules/trim (Depends-on): Add mbchar.
+       (configure.ac): Add gl_FUNC_MBRTOWC.
+       (Makefile.am): Augment lib_SOURCES.
+
+2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Modify glob.c to use fstatat and dirfd, to simplify it.
+       Suggested by Eric Blake.
+       * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
+       Don't include <stdbool.h>; not used.
+       (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
+       (link_exists_p): Simplify implementation, since we can now assume
+       dirfd and fstatat.
+       * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
+
+2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * gnulib-tool (func_get_dependencies): Fix sed script to
+       match only tests.
+
+2007-10-17  Bruno Haible  <bruno@clisp.org>
+
+       * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
+       allow locale names without encoding suffix.
+       * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
+       * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
+
+2007-10-16  Bruno Haible  <bruno@clisp.org>
+
+       * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
+       * lib/getgroups.c (getgroups): Likewise.
+       * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
+
 2007-10-16  Bruno Haible  <bruno@clisp.org>
 
        * modules/absolute-header (License): Change from LGPL to LGPLv2+.
 2007-10-16  Bruno Haible  <bruno@clisp.org>
 
        * modules/absolute-header (License): Change from LGPL to LGPLv2+.
        * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
 
 2007-10-13  Albert Chin  <china@thewrittenword.com>
        * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
 
 2007-10-13  Albert Chin  <china@thewrittenword.com>
-            Bruno Haible  <bruno@clisp.org>
+           Bruno Haible  <bruno@clisp.org>
 
        * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
        through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
 
        * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
        through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
        * m4/uintmax_t.m4: New file.
        * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
 
        * m4/uintmax_t.m4: New file.
        * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
 
-Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
-  Free Software Foundation, Inc.
+Copyright (C) 1997-2007 Free Software Foundation, Inc.
 Copying and distribution of this file, with or without modification,
 are permitted provided the copyright notice and this notice are preserved.
 Copying and distribution of this file, with or without modification,
 are permitted provided the copyright notice and this notice are preserved.