gnulib.git
15 years agofix more require-before-expand issues
Eric Blake [Wed, 28 Jan 2009 16:16:10 +0000 (09:16 -0700)]
fix more require-before-expand issues

* m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
expand, AC_PROG_AWK.
* m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoautoupdate
Karl Berry [Fri, 30 Jan 2009 14:17:28 +0000 (06:17 -0800)]
autoupdate

15 years agoversion-etc: use consistent URL formatting
Eric Blake [Tue, 27 Jan 2009 17:00:51 +0000 (10:00 -0700)]
version-etc: use consistent URL formatting

* lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
Improve formatting.  Use fputs for string without %.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years ago00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
Jim Meyering [Wed, 28 Jan 2009 13:02:54 +0000 (14:02 +0100)]
00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning

* m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
"underquoted definition of NAME" from autoconf-2.59.

15 years agoAdd an index entry.
Bruno Haible [Wed, 28 Jan 2009 10:02:18 +0000 (11:02 +0100)]
Add an index entry.

15 years agouseless-if-before-free: correction
Jim Meyering [Wed, 28 Jan 2009 08:27:32 +0000 (09:27 +0100)]
useless-if-before-free: correction

It does *not* recognize "if (p != (void*)0) free(p);",
since the RHS in this example may not contain ")"

15 years agouseless-if-before-free: recognize more variants
Jim Meyering [Wed, 28 Jan 2009 08:19:28 +0000 (09:19 +0100)]
useless-if-before-free: recognize more variants

* build-aux/useless-if-before-free: Also recognize e.g.,
if (NULL != p) free (p);

15 years agotest-getaddrinfo: skip (don't fail) this test when there's no network
Mark McLoughlin [Tue, 27 Jan 2009 18:06:31 +0000 (19:06 +0100)]
test-getaddrinfo: skip (don't fail) this test when there's no network

* tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
on the presumption that it means you lack network access.

15 years agoautoupdate
Karl Berry [Tue, 27 Jan 2009 14:58:49 +0000 (06:58 -0800)]
autoupdate

15 years agofflush: avoid warnings on modern systems
Jim Meyering [Mon, 26 Jan 2009 17:32:23 +0000 (18:32 +0100)]
fflush: avoid warnings on modern systems

* lib/fflush.c (rpl_fflush): Move declarations of locals,
pos and result, into scopes where they're used.

15 years agoSilence warning reintroduced by recent extensions patch.
Eric Blake [Mon, 26 Jan 2009 16:24:23 +0000 (09:24 -0700)]
Silence warning reintroduced by recent extensions patch.

* m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
(gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
autoconf.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoBackport improved autoconf semantics of AC_DEFUN_ONCE.
Eric Blake [Mon, 26 Jan 2009 16:08:48 +0000 (09:08 -0700)]
Backport improved autoconf semantics of AC_DEFUN_ONCE.

* m4/00gnulib.m4: New file.
* gnulib-tool (func_get_filelist): Always use it.
* m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
Reported by Bruno Haible, with suggestions from Paolo Bonzini.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoMake test-quotearg work on MacOS X and AIX.
Bruno Haible [Mon, 26 Jan 2009 02:22:46 +0000 (03:22 +0100)]
Make test-quotearg work on MacOS X and AIX.

15 years agoUse non-UTF-8 locales on MacOS X.
Bruno Haible [Mon, 26 Jan 2009 02:09:26 +0000 (03:09 +0100)]
Use non-UTF-8 locales on MacOS X.

15 years agoAvoid link errors on MacOS X 10.3 / PowerPC.
Bruno Haible [Mon, 26 Jan 2009 02:03:21 +0000 (03:03 +0100)]
Avoid link errors on MacOS X 10.3 / PowerPC.

15 years agoUse the posix_spawn or its replacement on all Unix platforms.
Bruno Haible [Sun, 25 Jan 2009 23:12:36 +0000 (00:12 +0100)]
Use the posix_spawn or its replacement on all Unix platforms.

15 years agoAvoid a compilation warning.
Bruno Haible [Sun, 25 Jan 2009 22:45:07 +0000 (23:45 +0100)]
Avoid a compilation warning.

15 years agoAvoid warning from OSF/1 C compiler.
Bruno Haible [Sun, 25 Jan 2009 22:31:44 +0000 (23:31 +0100)]
Avoid warning from OSF/1 C compiler.

15 years agoAdd support for the GB18030 encoding.
Bruno Haible [Sun, 25 Jan 2009 21:39:28 +0000 (22:39 +0100)]
Add support for the GB18030 encoding.

15 years agoAvoid redefining 'struct random_data' on OSF/1 5.1.
Bruno Haible [Sun, 25 Jan 2009 20:47:34 +0000 (21:47 +0100)]
Avoid redefining 'struct random_data' on OSF/1 5.1.

15 years agoDon't install charset.alias on MacOS X >= 10.3.
Bruno Haible [Sun, 25 Jan 2009 19:16:06 +0000 (20:16 +0100)]
Don't install charset.alias on MacOS X >= 10.3.

15 years agoDon't install charset.alias on mingw and Cygwin.
Bruno Haible [Sun, 25 Jan 2009 17:15:44 +0000 (18:15 +0100)]
Don't install charset.alias on mingw and Cygwin.

15 years agoMake it possible again to use AC_GNU_SOURCE together with gnulib.
Bruno Haible [Sun, 25 Jan 2009 12:17:21 +0000 (13:17 +0100)]
Make it possible again to use AC_GNU_SOURCE together with gnulib.

15 years agoc-strtod: avoid warnings
Jim Meyering [Sun, 25 Jan 2009 09:50:00 +0000 (10:50 +0100)]
c-strtod: avoid warnings

* lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
"assignment discards qualifiers from pointer target type" warnings.

15 years agoAdd support for non-UTF-8 locales on MacOS X.
Bruno Haible [Sat, 24 Jan 2009 23:51:34 +0000 (00:51 +0100)]
Add support for non-UTF-8 locales on MacOS X.

15 years agoDocument the meaning of obsolete modules.
Bruno Haible [Sat, 24 Jan 2009 15:44:34 +0000 (16:44 +0100)]
Document the meaning of obsolete modules.

15 years agoAdd hint regarding "TeX capacity exceeded" error.
Bruno Haible [Sat, 24 Jan 2009 15:17:41 +0000 (16:17 +0100)]
Add hint regarding "TeX capacity exceeded" error.

15 years agoAdjust specification.
Bruno Haible [Sat, 24 Jan 2009 14:01:21 +0000 (15:01 +0100)]
Adjust specification.

15 years agoOn HP-UX, don't pretend it was a SIGSEGV when it was a stack overflow.
Bruno Haible [Sat, 24 Jan 2009 13:05:48 +0000 (14:05 +0100)]
On HP-UX, don't pretend it was a SIGSEGV when it was a stack overflow.

15 years agoAdd formal specification of what c_strtod, c_strtold do.
Bruno Haible [Sat, 24 Jan 2009 10:43:44 +0000 (11:43 +0100)]
Add formal specification of what c_strtod, c_strtold do.

15 years agoChange c_strtod, c_strtold to no longer call xalloc_die().
Bruno Haible [Fri, 23 Jan 2009 22:41:16 +0000 (23:41 +0100)]
Change c_strtod, c_strtold to no longer call xalloc_die().

15 years agoc-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
Jim Meyering [Fri, 23 Jan 2009 15:21:57 +0000 (16:21 +0100)]
c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path

* lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.

15 years agoversion-etc: Add emit_bug_reporting_address.
Simon Josefsson [Fri, 23 Jan 2009 15:01:59 +0000 (16:01 +0100)]
version-etc: Add emit_bug_reporting_address.

15 years agoCache the C locale object.
Bruno Haible [Thu, 22 Jan 2009 11:07:16 +0000 (12:07 +0100)]
Cache the C locale object.

15 years agoImprove error checking of c_strtod call.
Bruno Haible [Wed, 21 Jan 2009 22:55:58 +0000 (23:55 +0100)]
Improve error checking of c_strtod call.

15 years agoImprove error handling of c_strtod.
Bruno Haible [Wed, 21 Jan 2009 22:35:43 +0000 (23:35 +0100)]
Improve error handling of c_strtod.

15 years agonanosleep: skip configure test (fail it) for apple universal builds
Bruno Haible [Wed, 21 Jan 2009 19:27:39 +0000 (20:27 +0100)]
nanosleep: skip configure test (fail it) for apple universal builds

* m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
universal builds, assume that nanosleep does not work.
* modules/nanosleep (Depends-on): Add multiarch.

15 years agomktime: skip configure test (fail it) for apple universal builds
Bruno Haible [Wed, 21 Jan 2009 19:26:05 +0000 (20:26 +0100)]
mktime: skip configure test (fail it) for apple universal builds

* m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
universal builds, assume that mktime does not work.
* modules/mktime (Depends-on): Add multiarch.

15 years agomultiarch: avoid expand-before-require warning
Eric Blake [Wed, 21 Jan 2009 17:55:43 +0000 (10:55 -0700)]
multiarch: avoid expand-before-require warning

* modules/multiarch (configure.ac): Require, rather than expand,
gl_MULTIARCH.
* m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
(gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
enforce that all clients require it.  Partial reversion of
2008-12-29 patch.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoerror: avoid expand-before-require warning
Eric Blake [Wed, 21 Jan 2009 17:33:24 +0000 (10:33 -0700)]
error: avoid expand-before-require warning

* modules/errno (configure.ac): Require, rather than expand,
gl_HEADER_ERRNO_H.
* m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
(gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
enforce that all clients require it.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agognulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
Eric Blake [Wed, 21 Jan 2009 16:55:55 +0000 (09:55 -0700)]
gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE

* gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
and rely solely on gl_USE_SYSTEM_EXTENSIONS.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoRevert "regex: do not depend on obsolete modules."
Paolo Bonzini [Wed, 21 Jan 2009 07:53:53 +0000 (08:53 +0100)]
Revert "regex: do not depend on obsolete modules."

This reverts commit 1a6b59df981785c8a2c335e96d173a884b335fbf.

15 years agoMake the 'link' module link on Windows NT 4.
Bruno Haible [Tue, 20 Jan 2009 23:58:26 +0000 (00:58 +0100)]
Make the 'link' module link on Windows NT 4.

15 years agoDon't assume that EOPNOTSUPP exists.
Bruno Haible [Tue, 20 Jan 2009 23:29:53 +0000 (00:29 +0100)]
Don't assume that EOPNOTSUPP exists.

15 years agoMention a couple of restrictions of c_strtod.
Michael Gold [Tue, 20 Jan 2009 22:12:32 +0000 (23:12 +0100)]
Mention a couple of restrictions of c_strtod.

15 years agoupdate from texinfo
Karl Berry [Tue, 20 Jan 2009 14:19:22 +0000 (06:19 -0800)]
update from texinfo

15 years agogettimeofday: move more declarations out of functions
Jim Meyering [Mon, 19 Jan 2009 11:16:07 +0000 (12:16 +0100)]
gettimeofday: move more declarations out of functions

* lib/gettimeofday.c: Move extern declarations of tzset and
gmtime out of containing functions.  Prompted by Bruno Haible.

15 years agoregex: do not depend on obsolete modules.
Paolo Bonzini [Tue, 20 Jan 2009 09:10:13 +0000 (10:10 +0100)]
regex: do not depend on obsolete modules.

* modules/regex: Remove memcmp and memmove.

15 years agoDon't use AC_REQUIRE([AC_C_BIGENDIAN]).
Bruno Haible [Tue, 20 Jan 2009 00:26:11 +0000 (01:26 +0100)]
Don't use AC_REQUIRE([AC_C_BIGENDIAN]).

15 years agoSkip test when a hard link cannot be created.
Bruno Haible [Tue, 20 Jan 2009 00:21:30 +0000 (01:21 +0100)]
Skip test when a hard link cannot be created.

15 years agoTests for module 'link'.
Martin Lambers [Tue, 20 Jan 2009 00:07:00 +0000 (01:07 +0100)]
Tests for module 'link'.

15 years agodoc: mention another function added in cygwin 1.7.0
Eric Blake [Mon, 19 Jan 2009 23:58:17 +0000 (16:58 -0700)]
doc: mention another function added in cygwin 1.7.0

* doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
Another new function in cygwin 1.7.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoDon't use AC_REQUIRE([AC_C_BIGENDIAN]).
Bruno Haible [Mon, 19 Jan 2009 23:57:07 +0000 (00:57 +0100)]
Don't use AC_REQUIRE([AC_C_BIGENDIAN]).

15 years agoUse module 'progname' in some more tests.
Bruno Haible [Mon, 19 Jan 2009 23:14:31 +0000 (00:14 +0100)]
Use module 'progname' in some more tests.

15 years agoAdd a newline after the specification header.
Bruno Haible [Mon, 19 Jan 2009 21:04:04 +0000 (22:04 +0100)]
Add a newline after the specification header.

15 years agotest-unistd: test previous patch
Eric Blake [Mon, 19 Jan 2009 16:37:19 +0000 (09:37 -0700)]
test-unistd: test previous patch

* tests/test-unistd.c: Test *_FILENO macros.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agounistd: guarantee STDIN_FILENO here, for OS/2 EMX
Eric Blake [Mon, 19 Jan 2009 16:27:47 +0000 (09:27 -0700)]
unistd: guarantee STDIN_FILENO here, for OS/2 EMX

* lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
Guarantee a definition.
* doc/posix-headers/unistd.texi (unistd.h): Document the bug.
* modules/unistd-safer (Depends-on): Add dependency on unistd.
* lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
* lib/dup-safer.c (STDERR_FILENO): Likewise.
* lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
Likewise.
* lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
* lib/fopen-safer.c (STDERR_FILENO): Likewise.
* lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
Likewise.
* lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
* tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
(STDERR_FILENO): Likewise.
* tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
(STDERR_FILENO): Likewise.
* tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
(STDERR_FILENO): Likewise.
Reported by Elbert Pol.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agodoc: mention more functions added in cygwin 1.7.0
Eric Blake [Mon, 19 Jan 2009 13:38:16 +0000 (06:38 -0700)]
doc: mention more functions added in cygwin 1.7.0

* doc/posix-functions/abort.texi (abort): Update wording related
to cygwin.
* doc/posix-functions/daylight.texi (daylight): Likewise.
* doc/posix-functions/optarg.texi (optarg): Likewise.
* doc/posix-functions/optarg.texi (opterr): Likewise.
* doc/posix-functions/optarg.texi (optind): Likewise.
* doc/posix-functions/optarg.texi (optopt): Likewise.
* doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
worked in 1.5.x, and was withdrawn in 1.7.
* doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
* doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
cygwin versions.
* doc/posix-functions/perror.texi (perror): Likewise.
* doc/posix-functions/printf.texi (printf): Likewise.
* doc/posix-functions/snprintf.texi (snprintf): Likewise.
* doc/posix-functions/sprintf.texi (sprintf): Likewise.
* doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
* doc/posix-functions/vprintf.texi (vprintf): Likewise.
* doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
* doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
* doc/glibc-functions/obstack_printf.texi (obstack_printf):
Likewise.
* doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
Likewise.
* doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
this function.
* doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
* doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
Likewise.
* doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
* doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
* doc/posix-functions/confstr.texi (confstr): Likewise.
* doc/posix-functions/dprintf.texi (dprintf): Likewise.
* doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
* doc/posix-functions/fgetws.texi (fgetws): Likewise.
* doc/posix-functions/fputwc.texi (fputwc): Likewise.
* doc/posix-functions/fputws.texi (fputws): Likewise.
* doc/posix-functions/fwide.texi (fwide): Likewise.
* doc/posix-functions/getwc.texi (getwc): Likewise.
* doc/posix-functions/getwchar.texi (getwchar): Likewise.
* doc/posix-functions/putwc.texi (putwc): Likewise.
* doc/posix-functions/putwchar.texi (putwchar): Likewise.
* doc/posix-functions/sigignore.texi (sigignore): Likewise.
* doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
* doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
* doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
* doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
* doc/posix-functions/wcstol.texi (wcstol): Likewise.
* doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
* doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
* doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
* doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoioctl: avoid warning: no previous prototype for 'rpl_ioctl'
Daniel P. Berrange [Mon, 19 Jan 2009 07:04:27 +0000 (08:04 +0100)]
ioctl: avoid warning: no previous prototype for 'rpl_ioctl'

* lib/ioctl.c: Include <sys/ioctl.h>.

15 years agogetdate-test: Use progname module.
Simon Josefsson [Mon, 19 Jan 2009 10:36:05 +0000 (11:36 +0100)]
getdate-test: Use progname module.

15 years agofstrcmp-tests and filenamecat-tests: Use progname module.
Simon Josefsson [Mon, 19 Jan 2009 09:58:57 +0000 (10:58 +0100)]
fstrcmp-tests and filenamecat-tests: Use progname module.

15 years agogettimeofday: avoid warning: nested extern declaration of 'localtime'
Daniel P. Berrange [Mon, 19 Jan 2009 07:13:17 +0000 (08:13 +0100)]
gettimeofday: avoid warning: nested extern declaration of 'localtime'

* lib/gettimeofday.c: Move extern declaration out of function.

15 years agoRevisit the condition when to use multibyte parsing in strftime.
Bruno Haible [Sun, 18 Jan 2009 22:48:59 +0000 (23:48 +0100)]
Revisit the condition when to use multibyte parsing in strftime.

15 years agoRemove unused code for mempcpy.
Bruno Haible [Sun, 18 Jan 2009 20:46:46 +0000 (21:46 +0100)]
Remove unused code for mempcpy.

15 years agoNew module 'link'.
Martin Lambers [Sun, 18 Jan 2009 18:28:53 +0000 (19:28 +0100)]
New module 'link'.

15 years agoUse module progname correctly in the tests that need it.
Bruno Haible [Sun, 18 Jan 2009 17:35:25 +0000 (18:35 +0100)]
Use module progname correctly in the tests that need it.

15 years agoNew module 'alphasort'.
Bruno Haible [Sun, 18 Jan 2009 11:40:22 +0000 (12:40 +0100)]
New module 'alphasort'.

15 years agoNew module 'scandir'.
Bruno Haible [Sun, 18 Jan 2009 11:28:05 +0000 (12:28 +0100)]
New module 'scandir'.

15 years agoImprove func_remove_prefix, func_remove_suffix.
Bruno Haible [Sun, 18 Jan 2009 03:07:35 +0000 (04:07 +0100)]
Improve func_remove_prefix, func_remove_suffix.

15 years agoTests for module 'dprintf-posix'.
Bruno Haible [Sun, 18 Jan 2009 02:22:58 +0000 (03:22 +0100)]
Tests for module 'dprintf-posix'.

15 years agoNew modules 'dprintf', 'dprintf-posix'.
Bruno Haible [Sun, 18 Jan 2009 02:22:08 +0000 (03:22 +0100)]
New modules 'dprintf', 'dprintf-posix'.

15 years agoTests for module 'vdprintf-posix'.
Bruno Haible [Sun, 18 Jan 2009 01:50:29 +0000 (02:50 +0100)]
Tests for module 'vdprintf-posix'.

15 years agoNew modules 'vdprintf', 'vdprintf-posix'.
Bruno Haible [Sun, 18 Jan 2009 01:48:41 +0000 (02:48 +0100)]
New modules 'vdprintf', 'vdprintf-posix'.

15 years agoFix test-fopen failure on mingw.
Bruno Haible [Sat, 17 Jan 2009 16:39:50 +0000 (17:39 +0100)]
Fix test-fopen failure on mingw.

15 years agoFix compilation error on HP-UX 11.00.
Bruno Haible [Sat, 17 Jan 2009 16:12:42 +0000 (17:12 +0100)]
Fix compilation error on HP-UX 11.00.

15 years agoAvoid test-fflush2.sh failure on mingw.
Bruno Haible [Sat, 17 Jan 2009 15:39:41 +0000 (16:39 +0100)]
Avoid test-fflush2.sh failure on mingw.

15 years agoAttempt to avoid a recursive include of wchar.h on IRIX 6.5.
Bruno Haible [Sat, 17 Jan 2009 13:06:30 +0000 (14:06 +0100)]
Attempt to avoid a recursive include of wchar.h on IRIX 6.5.

15 years agoSupport for stripping executables in --enable-relocatable.
Bruno Haible [Sat, 17 Jan 2009 08:46:08 +0000 (09:46 +0100)]
Support for stripping executables in --enable-relocatable.

15 years agoOops, fix unintended commit.
Bruno Haible [Sat, 17 Jan 2009 08:30:17 +0000 (09:30 +0100)]
Oops, fix unintended commit.

15 years agoRemove debugging information left over by C compiler on MacOS X.
Bruno Haible [Sat, 17 Jan 2009 08:29:19 +0000 (09:29 +0100)]
Remove debugging information left over by C compiler on MacOS X.

15 years agoUpdate use of API that has changed in MacOS X 10.4.
Bruno Haible [Sat, 17 Jan 2009 08:24:00 +0000 (09:24 +0100)]
Update use of API that has changed in MacOS X 10.4.

15 years agostrerror: avoid warnings about discarding "const"
Jim Meyering [Fri, 16 Jan 2009 11:09:48 +0000 (12:09 +0100)]
strerror: avoid warnings about discarding "const"

* lib/strerror.c (rpl_strerror): Instead of returning a const
string from each and every "case", use a variable, and add a single
cast after the switch.

15 years agoAdd ChangeLog entry.
Simon Josefsson [Fri, 16 Jan 2009 12:08:48 +0000 (13:08 +0100)]
Add ChangeLog entry.

15 years agolib/arpa_inet.in.h: Add extern "C" block for C++.
Albert Chin-A-Young [Thu, 15 Jan 2009 18:38:28 +0000 (12:38 -0600)]
lib/arpa_inet.in.h: Add extern "C" block for C++.

* lib/arpa_inet.in.h: Add extern "C" block for C++.

15 years agoUse an array initializer syntax that also works in C++ mode.
Bruno Haible [Fri, 16 Jan 2009 11:21:48 +0000 (12:21 +0100)]
Use an array initializer syntax that also works in C++ mode.

15 years agopoll: suppress a warning
Jim Meyering [Fri, 16 Jan 2009 08:36:21 +0000 (09:36 +0100)]
poll: suppress a warning

* lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
to ignore "...unsigned expression < 0 is always false" warnings.

15 years agopoll: remove declarations of unused variables
Daniel P. Berrange [Thu, 15 Jan 2009 21:29:34 +0000 (22:29 +0100)]
poll: remove declarations of unused variables

* lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
sockbuf and optlen.

15 years agoMake fflush-after-ungetc POSIX compliant on BSD systems.
Bruno Haible [Fri, 16 Jan 2009 01:07:53 +0000 (02:07 +0100)]
Make fflush-after-ungetc POSIX compliant on BSD systems.

15 years agoMake fflush-after-ungetc POSIX compliant on glibc systems.
Bruno Haible [Thu, 15 Jan 2009 23:24:35 +0000 (00:24 +0100)]
Make fflush-after-ungetc POSIX compliant on glibc systems.

15 years agoopenmp.m4: revert quote-adding change, for portability to older autoconf
Jim Meyering [Thu, 15 Jan 2009 12:08:05 +0000 (13:08 +0100)]
openmp.m4: revert quote-adding change, for portability to older autoconf

* m4/openmp.m4: Remove the quotes added on 2009-01-14.
This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
Simon Josefsson noticed the problem when using autoconf-2.61.

15 years agoEnable tests for fflush after ungetc.
Bruno Haible [Thu, 15 Jan 2009 11:24:04 +0000 (12:24 +0100)]
Enable tests for fflush after ungetc.

15 years agomktime.m4: remove K&R-style function prototypes
Albert Chin-A-Young [Wed, 14 Jan 2009 18:56:51 +0000 (12:56 -0600)]
mktime.m4: remove K&R-style function prototypes

* m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
for the Sun C++ compiler.

15 years agoFix a syntax error due to recursive inclusion of wchar.h on HP-UX 11.00.
Bruno Haible [Wed, 14 Jan 2009 23:27:45 +0000 (00:27 +0100)]
Fix a syntax error due to recursive inclusion of wchar.h on HP-UX 11.00.

15 years agoUpdate or remove references to gettext release.
Bruno Haible [Wed, 14 Jan 2009 22:06:50 +0000 (23:06 +0100)]
Update or remove references to gettext release.

15 years agoAdd more comments.
Bruno Haible [Wed, 14 Jan 2009 21:51:53 +0000 (22:51 +0100)]
Add more comments.

15 years agoMention every modified file in the ChangeLog entry.
Bruno Haible [Wed, 14 Jan 2009 21:48:52 +0000 (22:48 +0100)]
Mention every modified file in the ChangeLog entry.

15 years agosys_stat: Include sys/types.h for nlink_t.
Simon Josefsson [Wed, 14 Jan 2009 15:41:22 +0000 (16:41 +0100)]
sys_stat: Include sys/types.h for nlink_t.

15 years agoadd ChangeLog for "many *.m4 files: improve m4 quoting"
Jim Meyering [Wed, 14 Jan 2009 10:30:26 +0000 (11:30 +0100)]
add ChangeLog for "many *.m4 files: improve m4 quoting"

15 years agomany *.m4 files: improve m4 quoting
Jim Meyering [Tue, 13 Jan 2009 07:48:48 +0000 (08:48 +0100)]
many *.m4 files: improve m4 quoting

99% of this change was performed by running the following commands:
git ls-files | grep '\.m4$' | xargs perl -pi \
  -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
  -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
  -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
  -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4

The remainder were to add Copyright dates, increment serial numbers,
undo some changes in comments, exclude m4/intl.m4, and add quotes
around the "1" in ",1" where the unusual spacing prohibited the
above regexps from doing the job.  For more details, see
<http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.

15 years agoAvoid test-copy-file.sh failures when ACL support insufficient.
Bruno Haible [Tue, 13 Jan 2009 23:12:56 +0000 (00:12 +0100)]
Avoid test-copy-file.sh failures when ACL support insufficient.