gnulib.git
14 years agoadd warnings to selinux-h module's configure macros
Paolo Bonzini [Sat, 27 Jun 2009 11:00:37 +0000 (13:00 +0200)]
add warnings to selinux-h module's configure macros

2009-06-27  Paolo Bonzini  <bonzini@gnu.org>

* m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
self-explaining comment.
* m4/selinux-selinux-h: Update serial.
 (gl_LIBSELINUX): Warn if SELinux is found but libselinux is absent;
extracted from...
(gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
Add warning for missing development packages here, too.

14 years agoFix bootstrap for git 1.6.x
Paolo Bonzini [Sat, 27 Jun 2009 10:54:35 +0000 (12:54 +0200)]
Fix bootstrap for git 1.6.x

2009-06-26  Paolo Bonzini  <bonzini@gnu.org>

* build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.

14 years agoversion-etc: fix regression
Eric Blake [Thu, 25 Jun 2009 18:13:35 +0000 (12:13 -0600)]
version-etc: fix regression

* lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
gcc.
(version_etc): Use it, to catch bugs with trailing NULL.
* lib/version-etc.c (version_etc_arn): Delete unused argument.
(version_etc_va): Fix logic bug.
* modules/version-etc-tests: Add test.
* tests/test-version-etc.c: New file.
* tests/test-version-etc.sh: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agoMake the tests work with a C++ compiler.
Sam Steingold [Fri, 26 Jun 2009 00:58:34 +0000 (02:58 +0200)]
Make the tests work with a C++ compiler.

14 years agofpurge: migrate into <stdio.h>
Eric Blake [Wed, 24 Jun 2009 12:49:00 +0000 (06:49 -0600)]
fpurge: migrate into <stdio.h>

* lib/fpurge.h: Delete...
* lib/stdio.in.h (fpurge): ...and declare here, instead.
* lib/fpurge.c (fpurge): Change declaring header.
* modules/fpurge (Files): Drop deleted file.
(Depends-on): Add stdio.
(configure.ac): Set witness.
* modules/stdio (Makefile.am): Support fpurge macros.
* m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
* m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
* lib/fflush.c: Update client.
* tests/test-fpurge.c: Likewise.
* NEWS: Mention the change.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agoFix inconsistencies in the previous commit.
Sergey Poznyakoff [Thu, 25 Jun 2009 11:05:03 +0000 (14:05 +0300)]
Fix inconsistencies in the previous commit.

* lib/argp-version-etc.c (program_authors): Add const
qualifier.
* lib/version-etc.c: Fix typos in the comments.
* modules/argp-version-etc: Depends on version-etc.

14 years agoargp-version-etc: new module.
Sergey Poznyakoff [Thu, 25 Jun 2009 07:42:21 +0000 (10:42 +0300)]
argp-version-etc: new module.

* lib/argp-version-etc.c: New file.
* lib/argp-version-etc.h: New file.
* modules/argp-version-etc: New file.
* modules/argp-version-etc-tests: New file.
* tests/test-argp-version-etc.c: New test.
* tests/test-argp-version-etc-1.sh: New test.

14 years agoProvide additional interfaces and documentation for version-etc module.
Sergey Poznyakoff [Thu, 25 Jun 2009 07:31:56 +0000 (10:31 +0300)]
Provide additional interfaces and documentation for version-etc module.

* lib/version-etc.c (version_etc_arn, version_etc_ar): New
interfaces.
* lib/version-etc.h (version_etc_arn, version_etc_ar): New
prototypes.

14 years agoFix a description string.
Bruno Haible [Wed, 24 Jun 2009 10:18:18 +0000 (12:18 +0200)]
Fix a description string.

14 years agohash-tests: Fix build error.
Simon Josefsson [Tue, 23 Jun 2009 09:29:11 +0000 (11:29 +0200)]
hash-tests: Fix build error.

14 years agoMake two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS work.
Bruno Haible [Sun, 21 Jun 2009 17:19:33 +0000 (19:19 +0200)]
Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS work.

14 years agotests: maint.mk: make sc_require_test_exit_idiom more generic
Jim Meyering [Fri, 19 Jun 2009 12:25:37 +0000 (14:25 +0200)]
tests: maint.mk: make sc_require_test_exit_idiom more generic

* top/maint.mk (Exit_witness_file): New overridable variable.
(sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
Relax test for /^Exit \$fail$$/ to just /^Exit ./.

14 years agohash: reverse order of src/dst parameters in an internal interface
Jim Meyering [Fri, 19 Jun 2009 16:49:24 +0000 (18:49 +0200)]
hash: reverse order of src/dst parameters in an internal interface

* lib/hash.c (transfer_entries): Reverse order of parameters to
put DST before SRC.  Adjust callers.

14 years agotests: test-hash: avoid wholesale duplication
Jim Meyering [Fri, 19 Jun 2009 16:15:28 +0000 (18:15 +0200)]
tests: test-hash: avoid wholesale duplication

* tests/test-hash.c (main): Don't copy/paste a 60-line loop.
Instead, use a loop and add a single conditional.

14 years agotests: test-hash: allow seed selection via a command line argument
Jim Meyering [Fri, 19 Jun 2009 14:56:48 +0000 (16:56 +0200)]
tests: test-hash: allow seed selection via a command line argument

* tests/test-hash.c (get_seed): New function.
(main): Use it.

14 years agohash: avoid memory leak on allocation failure
Eric Blake [Mon, 8 Jun 2009 11:56:37 +0000 (05:56 -0600)]
hash: avoid memory leak on allocation failure

* lib/hash.c: (hash_rehash): Avoid memory leak on allocation
failure.  Factor repeated algorithm...
(transfer_entries): ...into new helper routine.
(hash_delete): React to hash_rehash return value.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agohash: reduce memory pressure in hash_rehash no-op case
Eric Blake [Fri, 19 Jun 2009 12:35:11 +0000 (06:35 -0600)]
hash: reduce memory pressure in hash_rehash no-op case

* lib/hash.c (next_prime): Avoid overflow.
(hash_initialize): Factor bucket size computation...
(compute_bucket_size): ...into new helper function.
(hash_rehash): Use new function and open coding to reduce memory
pressure, and avoid a memory leak in USE_OBSTACK code.
Reported by Jim Meyering.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agohash: make rotation more obvious
Eric Blake [Thu, 18 Jun 2009 19:31:11 +0000 (13:31 -0600)]
hash: make rotation more obvious

* modules/hash (Depends-on): Add bitrotate and stdint.
* lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
* lib/hash.c (headers): Drop limits.h.  Add stdint.h.
(SIZE_MAX): Rely on headers for definition.
(hash_string) [USE_DIFF_HASH]: Use rotl_sz.
(raw_hasher): Use rotr_sz.
Suggested by Jim Meyering.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agohash: fix memory leak in last patch
Eric Blake [Thu, 18 Jun 2009 21:24:38 +0000 (15:24 -0600)]
hash: fix memory leak in last patch

* lib/hash.c (hash_rehash): Avoid memory leak.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agohash: avoid no-op rehashing
Eric Blake [Thu, 18 Jun 2009 19:18:34 +0000 (13:18 -0600)]
hash: avoid no-op rehashing

* lib/hash.c (hash_rehash): Recognize useless rehash attempts.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agohash: provide default callback functions
Eric Blake [Thu, 18 Jun 2009 13:11:39 +0000 (07:11 -0600)]
hash: provide default callback functions

* lib/hash.c (raw_hasher, raw_comparator): New functions.
(hash_initialize): Use them as defaults.
* tests/test-hash.c (main): Test this.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agohash: minor optimization
Eric Blake [Thu, 18 Jun 2009 12:56:13 +0000 (06:56 -0600)]
hash: minor optimization

* lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
when possible.
(hash_initialize): Document this promise.
(hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
* tests/test-hash.c (hash_compare_strings): Test this.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agoSkip linear time check if it is redundant.
Bruno Haible [Thu, 18 Jun 2009 08:19:48 +0000 (10:19 +0200)]
Skip linear time check if it is redundant.

14 years agoSkip linear-time test if it is redundant.
Bruno Haible [Thu, 18 Jun 2009 08:16:21 +0000 (10:16 +0200)]
Skip linear-time test if it is redundant.

14 years agohash: check for resize before insertion
Eric Blake [Wed, 17 Jun 2009 19:01:41 +0000 (13:01 -0600)]
hash: check for resize before insertion

* lib/hash.c (hash_insert): Check whether bucket usage exceeds
threshold before insertion, so that a pathological hash_rehash
that fills every bucket can still trigger another rehash.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agohash-tests: add a loop around the small tests
Jim Meyering [Thu, 18 Jun 2009 05:36:54 +0000 (07:36 +0200)]
hash-tests: add a loop around the small tests

* tests/test-hash.c (main): Repeat small tests with selected
small initial table sizes.

14 years agohash: minor cleanups
Eric Blake [Thu, 18 Jun 2009 03:04:55 +0000 (21:04 -0600)]
hash: minor cleanups

* lib/hash.h (hash_entry): Make opaque, by moving...
* lib/hash.c (hash_entry): ...here.
(hash_insert): Clarify restrictions on what can be inserted.
(hash_get_next): Clarify when it is safe to remove an element
during traversal.
(check_tuning): Skip verification when tuning is known safe.
(hash_initialize): Clarify restrictions on tuning.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agohash-tests: new module
Jim Meyering [Wed, 17 Jun 2009 20:09:53 +0000 (22:09 +0200)]
hash-tests: new module

* modules/hash-tests: New file.
* tests/test-hash.c: New file.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agostrstr-simple: document new module
Eric Blake [Wed, 17 Jun 2009 14:48:40 +0000 (08:48 -0600)]
strstr-simple: document new module

* MODULES.html.sh: Document new module.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agostrstr, strcasestr: replace on platforms with broken memchr
Eric Blake [Tue, 16 Jun 2009 12:14:05 +0000 (06:14 -0600)]
strstr, strcasestr: replace on platforms with broken memchr

* modules/strstr: Split into...
* modules/strstr-simple: ...new module that does not care about
performance, but does care about glibc bug.
* m4/strstr.m4 (gl_FUNC_STRSTR): Split...
(gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
if platform memchr is broken, per Debian bug 521737.
* m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
memchr.
* m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
* doc/posix-functions/strstr.texi (strstr): Document the fix.
* doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
* modules/mountlist (Depends-on): Add strstr-simple.
* modules/gen-uni-tables (Depends-on): Likewise.
* modules/argz (Depends-on): Add strstr.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agoDepend on 'errno' module (for ESTALE).
Bruno Haible [Wed, 17 Jun 2009 08:40:56 +0000 (10:40 +0200)]
Depend on 'errno' module (for ESTALE).

14 years agoDefine missing ESTALE on Interix 3.5.
Bruno Haible [Wed, 17 Jun 2009 08:37:33 +0000 (10:37 +0200)]
Define missing ESTALE on Interix 3.5.

14 years agomemchr, memchr2: add valgrind exception
Eric Blake [Mon, 15 Jun 2009 17:04:21 +0000 (11:04 -0600)]
memchr, memchr2: add valgrind exception

* lib/memchr.valgrind: New file.
* lib/memchr2.valgrind: New file.
* modules/memchr (Files): Distribute valgrind file.
* modules/memchr2 (Files): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agodocs: memchr is no longer obsolete
Eric Blake [Mon, 15 Jun 2009 13:49:35 +0000 (07:49 -0600)]
docs: memchr is no longer obsolete

* MODULES.html.sh: Move memchr from obsolete to string.h section.
* lib/string.in.h (memchr): Simplify logic.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agolink-follow: fix the "checking..." message to not mention trailing slash
Jim Meyering [Sun, 14 Jun 2009 15:58:39 +0000 (17:58 +0200)]
link-follow: fix the "checking..." message to not mention trailing slash

* m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
never considered trailing slashes.

14 years agoMention also the glibc bug on IA-64.
Bruno Haible [Sun, 14 Jun 2009 21:40:38 +0000 (23:40 +0200)]
Mention also the glibc bug on IA-64.

14 years agomemchr: detect broken x86_64 and alpha implementations
Eric Blake [Mon, 8 Jun 2009 12:29:17 +0000 (06:29 -0600)]
memchr: detect broken x86_64 and alpha implementations

* modules/memchr-tests (Depends-on): Move mmap detection...
* modules/memchr (Depends-on): ...here.
(configure.ac): Set indicator.
* lib/string.in.h (memchr): Declare replacement.
* modules/string (Makefile.am): Trigger replacement.
* m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
* m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
bugs.
* doc/posix-functions/memchr.texi (memchr): Document the bug.
* modules/getpagesize (License): Relax license.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agoAdd more references.
Bruno Haible [Thu, 11 Jun 2009 17:15:42 +0000 (19:15 +0200)]
Add more references.

14 years agoautoupdate
Karl Berry [Thu, 11 Jun 2009 13:19:06 +0000 (06:19 -0700)]
autoupdate

14 years agoautoupdate
Karl Berry [Wed, 10 Jun 2009 13:59:03 +0000 (06:59 -0700)]
autoupdate

14 years agoautoupdate
Karl Berry [Tue, 9 Jun 2009 13:42:55 +0000 (06:42 -0700)]
autoupdate

14 years agoTests for module 'idpriv-droptemp'.
Bruno Haible [Mon, 8 Jun 2009 23:01:20 +0000 (01:01 +0200)]
Tests for module 'idpriv-droptemp'.

14 years agoNew module 'idpriv-droptemp'.
Bruno Haible [Mon, 8 Jun 2009 22:59:34 +0000 (00:59 +0200)]
New module 'idpriv-droptemp'.

14 years agoTests for module 'idpriv-drop'.
Bruno Haible [Mon, 8 Jun 2009 22:56:36 +0000 (00:56 +0200)]
Tests for module 'idpriv-drop'.

14 years agoNew module 'idpriv-drop'.
Bruno Haible [Mon, 8 Jun 2009 22:55:12 +0000 (00:55 +0200)]
New module 'idpriv-drop'.

14 years agoDepend on memchr.
Bruno Haible [Mon, 8 Jun 2009 22:20:53 +0000 (00:20 +0200)]
Depend on memchr.

14 years agotest-strstr: use memory fence, when possible
Eric Blake [Mon, 8 Jun 2009 12:17:39 +0000 (06:17 -0600)]
test-strstr: use memory fence, when possible

* tests/test-strstr.c (main): Use memory fence, in order to be
more likely to trigger Debian bug 521737.
* modules/strstr-tests (Files): Pull in additional files.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agomemchr: no longer obsolete, for wider field testing
Eric Blake [Mon, 8 Jun 2009 12:11:16 +0000 (06:11 -0600)]
memchr: no longer obsolete, for wider field testing

* modules/memchr (Status, Notice): Delete, this module is no
longer obsolete.
* modules/vasnprintf (Depends-on): Add memchr.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agohash: declare some functions with the warn_unused_result attribute
Jim Meyering [Sat, 6 Jun 2009 20:39:23 +0000 (22:39 +0200)]
hash: declare some functions with the warn_unused_result attribute

* lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.

14 years agoDon't test int64_t if it does not exist.
Bruno Haible [Sun, 7 Jun 2009 09:57:05 +0000 (11:57 +0200)]
Don't test int64_t if it does not exist.

14 years agotest-alignof: fix typo with long double
Eric Blake [Sat, 6 Jun 2009 19:23:51 +0000 (13:23 -0600)]
test-alignof: fix typo with long double

* tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
compiler error.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agoEscape non-texinfo { and }s
Neil Jerram [Fri, 5 Jun 2009 22:42:52 +0000 (23:42 +0100)]
Escape non-texinfo { and }s

* doc/ld-output-def.texi (Visual Studio Compatibility): Fix
markup error.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agoautoupdate
Karl Berry [Thu, 4 Jun 2009 17:38:14 +0000 (10:38 -0700)]
autoupdate

14 years agogitlog-to-changelog: don't infloop on an empty commit log
Jim Meyering [Thu, 4 Jun 2009 09:06:35 +0000 (11:06 +0200)]
gitlog-to-changelog: don't infloop on an empty commit log

* build-aux/gitlog-to-changelog: Warn about an empty log message.
Reported by Boris Petersen <transacid@centerim.org>.

14 years agoversion-etc: extend for packagers
Mike Frysinger [Mon, 1 Jun 2009 03:13:38 +0000 (23:13 -0400)]
version-etc: extend for packagers

Add three new configure options, intended for packagers:
  --with-packager="packager name"
  --with-packager-version="packager-specific version"
  --with-packager-bug-reports="packager bug reporting"

An example with coreutils:

  $ ./configure \
    --with-packager=Gentoo \
    --with-packager-bug-report=http://bugs.gentoo.org/ \
    --with-packager-version="patchset 1.6"

  $ ./src/ls --version | head -n3
  ls (GNU coreutils) 7.1-dirty
  Packaged by Gentoo (patchset 1.6)
  Copyright (C) 2009 Free Software Foundation, Inc.

Note that the bug reporting info via --help doesn't show up because
coreutils uses its own custom emit_bug_reporting_address() implementation
in src/system.h.  If it didn't, it'd look like:

  $ ./src/ls --help | tail -n4
  Report bugs to <bug-coreutils@gnu.org>.
  Report Gentoo bugs to <http://bugs.gentoo.org/>.
  GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
  General help using GNU software: <http://www.gnu.org/gethelp/>.

* lib/version-etc.c: Print new information, if provided.
* m4/version-etc.m4: New file.
* modules/version-etc (Files): Add m4/version-etc.m4.
(configure.ac): Add gl_VERSION_ETC.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agoautoupdate
Karl Berry [Wed, 3 Jun 2009 13:34:09 +0000 (06:34 -0700)]
autoupdate

14 years agoTest also the types 'long double' and 'int64_t'.
Bruno Haible [Sun, 31 May 2009 19:52:05 +0000 (21:52 +0200)]
Test also the types 'long double' and 'int64_t'.

14 years agoImprove comments.
Bruno Haible [Sun, 31 May 2009 19:46:14 +0000 (21:46 +0200)]
Improve comments.

14 years agoFix test-alignof failure.
Bruno Haible [Sun, 31 May 2009 19:43:32 +0000 (21:43 +0200)]
Fix test-alignof failure.

14 years agoCheck that memchr does not read past the first occurrence of the byte.
Bruno Haible [Sun, 31 May 2009 12:38:11 +0000 (14:38 +0200)]
Check that memchr does not read past the first occurrence of the byte.

14 years agoExplain how to use dumpbin.
Bruno Haible [Sat, 30 May 2009 12:25:21 +0000 (14:25 +0200)]
Explain how to use dumpbin.

14 years agotests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
Simon Josefsson [Tue, 2 Jun 2009 08:45:21 +0000 (10:45 +0200)]
tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.

14 years agomanywarnings: Add GCC 4.4 warnings.
Simon Josefsson [Tue, 2 Jun 2009 08:41:29 +0000 (10:41 +0200)]
manywarnings: Add GCC 4.4 warnings.

15 years agoDon't do HAVE_CONFIG_H replacements on build-aux/ files.
Bruno Haible [Thu, 28 May 2009 11:09:26 +0000 (13:09 +0200)]
Don't do HAVE_CONFIG_H replacements on build-aux/ files.

15 years agognulib-tool: Transform license on build-aux/ files too.
Simon Josefsson [Thu, 28 May 2009 08:58:47 +0000 (10:58 +0200)]
gnulib-tool: Transform license on build-aux/ files too.

15 years agognulib-tool: Don't use non-POSIX regexps.
Simon Josefsson [Wed, 27 May 2009 11:28:27 +0000 (13:28 +0200)]
gnulib-tool: Don't use non-POSIX regexps.

15 years agotests/test-strstr.c: Rewrite to use malloc/strcpy instead of strdup.
Simon Josefsson [Tue, 26 May 2009 13:31:53 +0000 (15:31 +0200)]
tests/test-strstr.c: Rewrite to use malloc/strcpy instead of strdup.
Suggested by Eric Blake  <ebb9@byu.net>.

15 years agotests/test-strstr.c: Add another self-test.
Simon Josefsson [Tue, 26 May 2009 12:14:51 +0000 (14:14 +0200)]
tests/test-strstr.c: Add another self-test.

15 years agoupdate from texinfo
Karl Berry [Mon, 25 May 2009 00:43:21 +0000 (17:43 -0700)]
update from texinfo

15 years agoUpdate doc for 2009-04-26 change.
Bruno Haible [Sat, 23 May 2009 22:26:45 +0000 (00:26 +0200)]
Update doc for 2009-04-26 change.

15 years agoautoupdate
Karl Berry [Fri, 22 May 2009 13:58:47 +0000 (06:58 -0700)]
autoupdate

15 years agoSimplify use of mode_t varargs.
Bruno Haible [Fri, 22 May 2009 11:48:52 +0000 (13:48 +0200)]
Simplify use of mode_t varargs.

15 years agoMention glibc function 'fallocate'.
Pádraig Brady [Fri, 22 May 2009 10:54:02 +0000 (12:54 +0200)]
Mention glibc function 'fallocate'.

15 years agoRemove redundant m4_quote invocations.
Bruno Haible [Thu, 21 May 2009 17:19:02 +0000 (19:19 +0200)]
Remove redundant m4_quote invocations.

15 years agoSecond attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
Eric Blake [Thu, 21 May 2009 14:48:12 +0000 (16:48 +0200)]
Second attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.

15 years agoAvoid redefinition warnings for SIZE_MAX.
Bruno Haible [Thu, 21 May 2009 13:15:09 +0000 (15:15 +0200)]
Avoid redefinition warnings for SIZE_MAX.

15 years agoSimplify m4 code.
Bruno Haible [Thu, 21 May 2009 12:57:15 +0000 (14:57 +0200)]
Simplify m4 code.

15 years agoMake zeroptr.h work on mingw.
Bruno Haible [Wed, 20 May 2009 11:26:51 +0000 (13:26 +0200)]
Make zeroptr.h work on mingw.

15 years agotests/test-glob.c: Include string.h for strcmp prototype.
Simon Josefsson [Wed, 20 May 2009 07:43:43 +0000 (09:43 +0200)]
tests/test-glob.c: Include string.h for strcmp prototype.

15 years agogetdelim: Use SIZE_MAX from stdint.h.
Simon Josefsson [Wed, 20 May 2009 07:36:35 +0000 (09:36 +0200)]
getdelim: Use SIZE_MAX from stdint.h.

15 years agosys_socket: MinGW and IRIX does not have sa_family_t type.
Simon Josefsson [Wed, 20 May 2009 06:52:49 +0000 (08:52 +0200)]
sys_socket: MinGW and IRIX does not have sa_family_t type.
Reported by "Tom G. Christensen" <tgc@jupiterrise.com>.

15 years agoautoupdate
Karl Berry [Mon, 18 May 2009 13:38:50 +0000 (06:38 -0700)]
autoupdate

15 years agomaint.mk: allow gnulib_dir in VPATH build
Eric Blake [Mon, 18 May 2009 12:12:37 +0000 (06:12 -0600)]
maint.mk: allow gnulib_dir in VPATH build

* top/maint.mk (gnulib_dir): Make relative to $(srcdir).

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoupdate from texinfo
Karl Berry [Sun, 17 May 2009 13:18:00 +0000 (06:18 -0700)]
update from texinfo

15 years agomaint.mk: Give gnulib_dir a default definition.
Jim Meyering [Fri, 15 May 2009 13:00:44 +0000 (15:00 +0200)]
maint.mk: Give gnulib_dir a default definition.

* top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
Thus, most packages no longer need to specify this variable in cfg.mk

15 years agorename.m4: fix typos that would make non-mingw cross-configure fail
Tom Prince [Thu, 14 May 2009 04:35:34 +0000 (00:35 -0400)]
rename.m4: fix typos that would make non-mingw cross-configure fail

* m4/rename.m4 (gl_FUNC_RENAME): Fix typos.

15 years agommap-anon: avoid out-of-order autoconf expansion
Eric Blake [Thu, 14 May 2009 02:38:30 +0000 (20:38 -0600)]
mmap-anon: avoid out-of-order autoconf expansion

* m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
* modules/memchr-tests (Depends-on): Add extensions.
* modules/memchr2-tests (Depends-on): Add extensions.
* modules/memcmp-tests (Depends-on): Add extensions.
* modules/memmem-tests (Depends-on): Add extensions.
* modules/memrchr-tests (Depends-on): Add extensions.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoMake some tests ISO C 99 compliant.
Bruno Haible [Wed, 13 May 2009 23:39:07 +0000 (01:39 +0200)]
Make some tests ISO C 99 compliant.

15 years agoTests for module 'alignof'.
Bruno Haible [Wed, 13 May 2009 01:23:42 +0000 (03:23 +0200)]
Tests for module 'alignof'.

15 years agoFix alignof macro.
Bruno Haible [Wed, 13 May 2009 01:20:17 +0000 (03:20 +0200)]
Fix alignof macro.

15 years agoRevert "Use module 'alignof'." commit.
Bruno Haible [Wed, 13 May 2009 01:17:29 +0000 (03:17 +0200)]
Revert "Use module 'alignof'." commit.

15 years agoMake the MAP_ANONYMOUS detection work on HP-UX 11.
Bruno Haible [Wed, 13 May 2009 00:37:05 +0000 (02:37 +0200)]
Make the MAP_ANONYMOUS detection work on HP-UX 11.

15 years agoAdd comments.
Bruno Haible [Wed, 13 May 2009 00:03:30 +0000 (02:03 +0200)]
Add comments.

15 years ago* top/maint.mk: Adjust backslash alignment.
Jim Meyering [Tue, 12 May 2009 06:15:54 +0000 (08:15 +0200)]
* top/maint.mk: Adjust backslash alignment.

15 years agotop/maint.mk: Make $(srcdir)/build-aux configurable.
Simon Josefsson [Mon, 11 May 2009 13:23:05 +0000 (15:23 +0200)]
top/maint.mk: Make $(srcdir)/build-aux configurable.

15 years agoargp: avoid undefined behavior
Eric Blake [Mon, 11 May 2009 11:54:20 +0000 (05:54 -0600)]
argp: avoid undefined behavior

* lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
macros.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agotests/test-vc-list-files-git.sh: Avoid git config complaints.
Simon Josefsson [Sun, 10 May 2009 19:54:23 +0000 (21:54 +0200)]
tests/test-vc-list-files-git.sh: Avoid git config complaints.

15 years agoFix the rewriting rules for file names.
Bruno Haible [Sun, 10 May 2009 14:50:39 +0000 (16:50 +0200)]
Fix the rewriting rules for file names.

15 years agoDon't use undefined macro 'max'.
Bruno Haible [Fri, 8 May 2009 22:01:36 +0000 (00:01 +0200)]
Don't use undefined macro 'max'.

15 years agom4/sys_socket_h.m4: Test for ws2tcpip.h earlier.
Simon Josefsson [Fri, 8 May 2009 18:34:18 +0000 (20:34 +0200)]
m4/sys_socket_h.m4: Test for ws2tcpip.h earlier.