ansi-c++-opt: skip C++ dependency style if C++ is unused
[pspp] / ChangeLog
index a4d5acc840042c22bfd566516f6c0326dea25122..263f1a099dd25238741b22fda71235979121d0fc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,134 @@
+2011-01-18  Eric Blake  <eblake@redhat.com>
+
+       ansi-c++-opt: skip C++ dependency style if C++ is unused
+       * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
+       tests when we know C++ compilation is not desired.
+       Reported by Scott McCreary.
+
+2011-01-18  Bruno Haible  <bruno@clisp.org>
+
+       *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
+       * tests/test-fprintf-posix3.c: Include "resource-ext.h".
+       (main): Perform test also when getrlimit and setrlimit don't exist or
+       when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
+       limiting the address space size using setrlimit, compare the address
+       space size before and after the the test.
+       * tests/test-dprintf-posix2.c: Likewise.
+       * tests/test-fprintf-posix3.sh: Update skip messages.
+       * tests/test-dprintf-posix2.sh: Likewise.
+       * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
+       * modules/dprintf-posix-tests (Depends-on): Likewise.
+       Reported by Bruce Korb <bkorb@gnu.org> and
+       Gary V. Vaughan <gary@gnu.org>.
+
+2011-01-18  Bruno Haible  <bruno@clisp.org>
+
+       get-rusage-as: Improvement for Cygwin.
+       * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
+       areas that are merely reserved.
+
+2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
+
+       strftime: remove dependencies on multibyte modules
+
+       strftime depended on mbrlen, mbsinit, and wchar, but these modules
+       are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
+       only if __osf__ is defined, and I suspect OSF doesn't need these
+       other modules.  If my guess is wrong, we'll need to come up with a
+       variant of strftime that doesn't need the multibyte modules.
+
+       I discovered this problem when attempting modify Emacs to use the
+       strftime module.  With the previous gnulib, this caused Emacs to
+       need 31 new files, ranging from lib/config.charset to
+       m4/wint_t.m4.  This was overkill and I expect would be offputting
+       to the Emacs maintainers.  After this change, only 6 new files are
+       needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
+       stdbool.m4, and tm_gmtoff.m4.
+
+       * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
+       Suggested by Bruno Haible in
+       <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
+       * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
+       and do not check for wchar.h.
+       * modules/strftime (Files): Remove m4/mbstate_t.m4.
+       (Depends-on): Remove mbrlen, mbsinit, wchar.
+
+2011-01-18  Bruno Haible  <bruno@clisp.org>
+
+       Tests for module 'get-rusage-as'.
+       * modules/get-rusage-as-tests: New file.
+       * tests/test-get-rusage-as.c: New file.
+
+       New module 'get-rusage-as'.
+       * modules/get-rusage-as: New file.
+       * lib/resource-ext.h: New file.
+       * lib/get-rusage-as.c: New file.
+
+2011-01-17  Eric Blake  <eblake@redhat.com>
+
+       sigaction: relax license from LGPLv3+ to LGPLv2+
+       * modules/sigaction (License): Relax to LGPLv2+.
+
+2011-01-14  Bruno Haible  <bruno@clisp.org>
+
+       filemode: Make function declarations usable in C++ mode.
+       * lib/filemode.h: Enclose function declarations in extern "C" block.
+       Reported by John W. Eaton <jwe@gnu.org>.
+
+2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
+
+       save-cwd: no longer include "xgetcwd.h"
+       * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
+       This avoids a compilation failure in projects that use save-cwd
+       without also using the xgetcwd module.
+
+2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
+
+       ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
+       This is so that a program like Emacs, which needs only dtoastr,
+       does not have to bother with distributing and compiling ftoastr
+       and ldtoastr.
+       * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
+       * modules/dtoastr, modules/ldtoastr: New files.
+       * modules/ftoastr: Now works just for 'float'.
+       (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
+       (Makefile.am): Remove ftoastr.h (not needed and no effect),
+       dtoastr.c, ldtoastr.c.
+
+2011-01-11  Jim Meyering  <meyering@redhat.com>
+
+       save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
+       There is no need to work around the lack of the fchdir function,
+       since gnulib can now provide a replacement when required.
+       * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
+       * modules/save-cwd (Depends-on): Add fchdir.
+
+2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
+
+       openat, save-cwd: avoid xmalloc
+
+       This removes a direct (but undocumented) dependency of openat on
+       xalloc, along with an indirect dependency via save-cwd.  It also
+       removes a dependency of save-cwd on xgetcwd, and thereby
+       indirectly on xalloc.  This change causes the openat substitute
+       to fall back on save_cwd when memory is tight, and for save_cwd to
+       fail instead of dying when memory is tight, but that's good enough.
+
+       * lib/openat-proc.c: Include stdlib.h (for malloc), not
+       xalloc.h (for xmalloc).
+       (openat_proc_name): Use malloc, not xmalloc.
+       * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
+       * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
+
+       openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
+       This avoids heap allocation for file names whose lengths are in
+       the range 512..1023, with the upper bound increasing to at most
+       4031 depending on the platform's PATH_MAX.  (We do not want
+       pathmax.h here as it might supply a non-constant PATH_MAX.)
+       * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
+       Perhaps they should be moved to malloca.h?
+       (OPENAT_BUFFER_SIZE): Use them.
+
 2011-01-10  Bruno Haible  <bruno@clisp.org>
 
        doc: Update users.txt.