+2013-02-06 Paul Eggert <eggert@cs.ucla.edu>
+
+ extensions: port better to MINUX 3, HP-UX, autoheader 2.62
+ Some of these changes are merged in from git Autoconf.
+ * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
+ When deciding whether to define _XOPEN_SOURCE, inspect the
+ preprocessor macro __hpux instead of the more-heavyweight
+ operation of requiring AC_CANONICAL_HOST. Define _NETBSD_HOST on
+ MINUX, for MINUX 3. Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
+ as the key for __EXTENSIONS__.
+
+ unistd: avoid namespace pollution on non-glibc systems
+ * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
+ This avoids namespace pollution on non-glibc systems, by causing
+ gnulib unistd.h to behave more like glibc unistd.h. I also hope
+ that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
+ <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
+
+2013-02-04 Paul Eggert <eggert@cs.ucla.edu>
+
+ tmpdir: use secure_getenv
+ * lib/tmpdir.c (__secure_getenv) [!LIBC]:
+ Define to secure_getenv, not getenv.
+ * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
+ as that's now secure_getenv's job.
+ * modules/tmpdir (Depends-on): Add secure_getenv.
+
+ tempname: use secure_getenv
+ * lib/tempname.c (__secure_getenv) [!_LIBC]:
+ Define to secure_getenv, not getenv.
+ * modules/tempname (Depends-on):
+ Add secure_getenv.
+
+ secure_getenv: new module
+ * MODULES.html.sh (Extra functions based on ANSI C 89):
+ Add secure_getenv.
+ * doc/glibc-functions/secure_getenv.texi: New file.
+ * doc/gnulib.texi: Include it.
+ * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
+ New files.
+ * lib/stdlib.in.h (secure_getenv): New decl.
+ * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
+ * modules/stdlib (stdlib.h):
+ Add secure_getenv checks.
+
2013-02-03 Paul Eggert <eggert@cs.ucla.edu>
+ getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
+ Reported for OS X 10.8.2 by Assaf Gordon in
+ <http://bugs.gnu.org/13516>.
+ * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
+ !HAVE_OPENAT && !HAVE_FDOPENDIR.
+ * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
+ so that they can be kept in sync more easily. Avoid PATH_MAX
+ test on the Hurd. Sync from test-getcwd.c for errno tests after
+ mkdir or chdir failure.
+ * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
+ lib/getcwd.c.
+ (test_abort_bug): Do not test for the deep directory bug unless we
+ have openat support. Avoid PATH_MAX test on the Hurd.
+
+ regex-tests, regex: fix bug: memset undeclared
+ * tests/test-regex.c: Don't include regex.h twice. Include
+ string.h, to declare memset. Christensen's report also mentioned
+ this issue.
+ * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
+ test-regex.c, to avoid future problems like this. Remove
+ AC_INCLUDES_DEFAULT. Include <string.h>. Don't include <regex.h>
+ twice.
+
regex-tests: fix link errors on older Solaris
These need to link with @LIBINTL@ to get libintl_gettext.
Problem reported by Tom G. Christensen in