gnulib.git
16 years ago* lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
Paul Eggert [Sat, 29 Dec 2007 09:17:08 +0000 (01:17 -0800)]
* lib/memmem.c (knuth_morris_pratt): Check for size_t overflow

when multiplying M by sizeof (size_t).

16 years agoOverride getpagesize on mingw.
Martin Lambers [Wed, 26 Dec 2007 15:37:29 +0000 (16:37 +0100)]
Override getpagesize on mingw.

16 years agoThe localcharset module requires a modified TESTS_ENVIRONMENT; tell the user.
Bruno Haible [Wed, 26 Dec 2007 15:33:48 +0000 (16:33 +0100)]
The localcharset module requires a modified TESTS_ENVIRONMENT; tell the user.

16 years agoAvoid using the syntax symbol() in formatted documentation.
Bruno Haible [Wed, 26 Dec 2007 15:31:08 +0000 (16:31 +0100)]
Avoid using the syntax symbol() in formatted documentation.

16 years agoUse plain ANSI C syntax.
Bruno Haible [Wed, 26 Dec 2007 15:28:08 +0000 (16:28 +0100)]
Use plain ANSI C syntax.

16 years agoMake --enable-relocatable work with DESTDIR.
Bruno Haible [Wed, 26 Dec 2007 15:26:26 +0000 (16:26 +0100)]
Make --enable-relocatable work with DESTDIR.

16 years agoFix link error in relocatability wrappers, due to xalloc_die().
Bruno Haible [Wed, 26 Dec 2007 15:25:28 +0000 (16:25 +0100)]
Fix link error in relocatability wrappers, due to xalloc_die().

16 years agoSplit setenv module into setenv and unsetenv. Get rid of setenv.h.
Bruno Haible [Wed, 26 Dec 2007 15:23:54 +0000 (16:23 +0100)]
Split setenv module into setenv and unsetenv. Get rid of setenv.h.

16 years agoSplit setenv module into setenv and unsetenv. Get rid of setenv.h.
Bruno Haible [Wed, 26 Dec 2007 15:20:10 +0000 (16:20 +0100)]
Split setenv module into setenv and unsetenv. Get rid of setenv.h.

16 years agoUse GNU style coding conventions.
Bruno Haible [Wed, 26 Dec 2007 15:13:28 +0000 (16:13 +0100)]
Use GNU style coding conventions.

16 years agoAdd more comments about Knuth-Morris-Pratt algorithm.
Bruno Haible [Wed, 26 Dec 2007 15:10:15 +0000 (16:10 +0100)]
Add more comments about Knuth-Morris-Pratt algorithm.

16 years agoUse standard idioms.
Bruno Haible [Wed, 26 Dec 2007 15:02:46 +0000 (16:02 +0100)]
Use standard idioms.

16 years agoFix the value of $auxdir used when generating the tests directory.
Bruno Haible [Wed, 26 Dec 2007 15:01:15 +0000 (16:01 +0100)]
Fix the value of $auxdir used when generating the tests directory.

16 years agoRemove unnecessary -l options from LDFLAGS.
Bruno Haible [Wed, 26 Dec 2007 14:59:53 +0000 (15:59 +0100)]
Remove unnecessary -l options from LDFLAGS.

16 years agoWork around circular library issue when cross-compiling.
Eric Blake [Thu, 20 Dec 2007 20:15:27 +0000 (13:15 -0700)]
Work around circular library issue when cross-compiling.

* lib/progname.c (set_program_name): Use strncmp, not memcmp, so
that progname.o does not need to pull in rpl_memcmp.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix memmem to avoid O(n^2) worst-case complexity.
Eric Blake [Wed, 19 Dec 2007 23:09:03 +0000 (16:09 -0700)]
Fix memmem to avoid O(n^2) worst-case complexity.

* lib/memmem.c (knuth_morris_pratt): New function.
(memmem): Use it if first few naive iterations fail.
* m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
* modules/memcmp (License): Set to LGPLv2+, not LGPL.
* modules/memchr (License): Likewise.
* modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
malloca.
* tests/test-memmem.c: Rewrite, borrowing ideas from
test-mbsstr1.c; the old version wouldn't even compile!
* modules/memmem-tests: New file.
* lib/string.in.h (rpl_memmem): Add declaration.
* modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
* m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
REPLACE_MEMMEM.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
Paul Eggert [Wed, 19 Dec 2007 00:11:25 +0000 (16:11 -0800)]
Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.

* lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
before any system include files, and undef after them all.  This
should fix a problem on VMS reported by John E. Malmberg in
<http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.

16 years agoRevert addition of verify, for BSD/OS.
Eric Blake [Tue, 18 Dec 2007 04:50:40 +0000 (21:50 -0700)]
Revert addition of verify, for BSD/OS.

* lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
can't handle large files, for the sake of obsolete platforms.
* modules/fseeko (Depends-on): Remove verify.
* doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
* doc/functions/ftello.texi (ftello): Likewise.
* doc/functions/fgetpos.texi (fgetpos): Likewise.
Reported by Larry Jones.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agogetcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
Petr Salinger [Mon, 17 Dec 2007 12:30:09 +0000 (13:30 +0100)]
getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT

* lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.

16 years agoPort to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
Jim Meyering [Fri, 14 Dec 2007 18:46:26 +0000 (19:46 +0100)]
Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,

which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
* lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
* modules/getcwd (Depends-on): Add openat.
Reported by Petr Salinger.

16 years agoAvoid a crash of a configure test on some x86_64 systems.
Bruno Haible [Mon, 17 Dec 2007 11:21:10 +0000 (12:21 +0100)]
Avoid a crash of a configure test on some x86_64 systems.

16 years agoMerge branch 'master' of ssh://karl@git.sv.gnu.org/srv/git/gnulib
Karl Berry [Sat, 15 Dec 2007 14:41:32 +0000 (06:41 -0800)]
Merge branch 'master' of ssh://karl@git.sv.gnu.org/srv/git/gnulib

16 years agoupdate from texinfo
Karl Berry [Sat, 15 Dec 2007 14:39:03 +0000 (06:39 -0800)]
update from texinfo

16 years agoFix typo in previous ChangeLog entry.
Jim Meyering [Sat, 15 Dec 2007 14:31:00 +0000 (15:31 +0100)]
Fix typo in previous ChangeLog entry.

16 years ago* build-aux/gnupload (GPG): Don't hard-code patch to gpg binary.
Jim Meyering [Sat, 15 Dec 2007 09:21:05 +0000 (10:21 +0100)]
* build-aux/gnupload (GPG): Don't hard-code patch to gpg binary.

16 years agoAnother fseek test.
Eric Blake [Thu, 13 Dec 2007 21:58:44 +0000 (14:58 -0700)]
Another fseek test.

* tests/test-fseek.c (main): Also test ungetc handling.
* tests/test-fseeko.c (main): Likewise.
* modules/fseeko (Depends-on): Add verify.
* lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
large.
Reported by Larry Jones.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix fseeko on mingw.
Eric Blake [Thu, 13 Dec 2007 19:09:31 +0000 (12:09 -0700)]
Fix fseeko on mingw.

* lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
seek.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoBeef up fseek tests.
Eric Blake [Thu, 13 Dec 2007 18:25:42 +0000 (11:25 -0700)]
Beef up fseek tests.

* tests/test-fseek.c (main): Also test eof handling.
* tests/test-fseeko.c (main): Likewise.
Reported by Larry Jones.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix fseeko on BSD-based platforms.
Larry Jones [Thu, 13 Dec 2007 18:11:53 +0000 (11:11 -0700)]
Fix fseeko on BSD-based platforms.

* lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
successful seek.

16 years agoautoupdate
Karl Berry [Thu, 13 Dec 2007 14:23:06 +0000 (06:23 -0800)]
autoupdate

16 years agoAllow circular dependency of separate libtests.a
Eric Blake [Wed, 12 Dec 2007 17:29:17 +0000 (10:29 -0700)]
Allow circular dependency of separate libtests.a

* gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
when use_libtests.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix bug with -0.0L in previous patch.
Eric Blake [Tue, 11 Dec 2007 21:00:26 +0000 (14:00 -0700)]
Fix bug with -0.0L in previous patch.

* lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
* tests/test-isnan.c (main): Also test on zeroes.
* tests/test-isnanf.c (main): Likewise.
* tests/test-isnanl.h (main): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoDetect pseudo-denormals on x86 even when cross-compiling.
Eric Blake [Tue, 11 Dec 2007 18:35:55 +0000 (11:35 -0700)]
Detect pseudo-denormals on x86 even when cross-compiling.

* lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
&& USE_LONG_DOUBLE && x86]: Add one more check to filter out
invalid bit patterns that happen to satisfy ==.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAvoid link failures with separate libtests.a.
Eric Blake [Mon, 10 Dec 2007 16:54:54 +0000 (09:54 -0700)]
Avoid link failures with separate libtests.a.

* gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
last, to satisfy circular dependencies.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix OpenBSD 4.0 <float.h> handling of long double.
Eric Blake [Tue, 11 Dec 2007 15:17:24 +0000 (08:17 -0700)]
Fix OpenBSD 4.0 <float.h> handling of long double.

* m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
* lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
* doc/headers/float.texi (float.h): Document OpenBSD bug.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years ago* users.txt: Add libvirt.
Jim Meyering [Tue, 11 Dec 2007 12:42:58 +0000 (13:42 +0100)]
* users.txt: Add libvirt.

16 years agoSupport versions of autoconf prior to 2.59c.
Jim Meyering [Thu, 6 Dec 2007 20:00:24 +0000 (21:00 +0100)]
Support versions of autoconf prior to 2.59c.

* gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
if it is not already defined.

16 years agoCollect sources for tests-related modules in tests/, compile them to libtests.a.
Bruno Haible [Mon, 10 Dec 2007 11:13:34 +0000 (12:13 +0100)]
Collect sources for tests-related modules in tests/, compile them to libtests.a.

16 years agoFix references to the build-aux directory in the generated tests/Makefile.am.
Bruno Haible [Mon, 10 Dec 2007 11:06:35 +0000 (12:06 +0100)]
Fix references to the build-aux directory in the generated tests/Makefile.am.

16 years agoRemove redundant code.
Bruno Haible [Mon, 10 Dec 2007 11:03:15 +0000 (12:03 +0100)]
Remove redundant code.

16 years agoAgain, remake scripts executable.
Eric Blake [Sat, 8 Dec 2007 00:01:25 +0000 (17:01 -0700)]
Again, remake scripts executable.

* build-aux/config.guess: Autoupdates are killing the mode.
* build-aux/config.sub: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoMerge branch 'master' of ssh://karl@git.sv.gnu.org/srv/git/gnulib
Karl Berry [Fri, 7 Dec 2007 17:53:27 +0000 (09:53 -0800)]
Merge branch 'master' of ssh://karl@git.sv.gnu.org/srv/git/gnulib

16 years agoautoupdate
Karl Berry [Fri, 7 Dec 2007 17:46:02 +0000 (09:46 -0800)]
autoupdate

16 years agoLet these macros work also with autoconf-2.59.
Jim Meyering [Fri, 7 Dec 2007 15:20:57 +0000 (16:20 +0100)]
Let these macros work also with autoconf-2.59.

* m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
* m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.

16 years agoAvoid a configure-time syntax error in gl_FUNC_ACL.
Jim Meyering [Thu, 6 Dec 2007 15:49:19 +0000 (16:49 +0100)]
Avoid a configure-time syntax error in gl_FUNC_ACL.

* m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
function in each branch, before testing the cache variable.

16 years agoUpdate comments after last change.
Bruno Haible [Wed, 5 Dec 2007 21:38:39 +0000 (22:38 +0100)]
Update comments after last change.

16 years agoMake scripts executable.
Eric Blake [Tue, 4 Dec 2007 21:45:04 +0000 (14:45 -0700)]
Make scripts executable.

* build-aux/config.guess: Add execute permissions.
* build-aux/config.sub: Likewise.
* build-aux/gendocs.sh: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix frexp on mingw.
Eric Blake [Tue, 4 Dec 2007 15:40:17 +0000 (08:40 -0700)]
Fix frexp on mingw.

* m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
cross-compiling.
* doc/functions/frexp.texi (frexp): Document the bug.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoMake cygwin fseeko check more reliable.
Eric Blake [Tue, 4 Dec 2007 15:38:22 +0000 (08:38 -0700)]
Make cygwin fseeko check more reliable.

* m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
version numbers, rather than unrelated feature check.
* doc/functions/fseeko.texi (fseeko): Tweak failure report.
* doc/functions/ftello.texi (ftello): Likewise.
Reported by Bruno Haible.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years ago* m4/strerror.m4: Bump version number.
Eric Blake [Tue, 4 Dec 2007 15:35:02 +0000 (08:35 -0700)]
* m4/strerror.m4: Bump version number.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoMention a mingw problem.
Bruno Haible [Tue, 4 Dec 2007 08:44:15 +0000 (09:44 +0100)]
Mention a mingw problem.

16 years agoFix strerror module on Solaris 7.
Eric Blake [Mon, 3 Dec 2007 23:49:30 +0000 (16:49 -0700)]
Fix strerror module on Solaris 7.

* m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
REPLACE_STRERROR is initialized before this macro.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAdd support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
Paul Eggert [Mon, 3 Dec 2007 23:30:36 +0000 (15:30 -0800)]
Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.

* modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
* m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
put -lsec in even for programs other than 'ls'.  This fixes a problem
for gettext reported by Bruno Haible in
<http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
* lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
Add support for Solaris 10.  This isn't efficient, but should get the
job done for now.

16 years ago* doc/regexprops-generic.texi: change "an close-group" to "a
James Youngman [Mon, 3 Dec 2007 17:53:02 +0000 (09:53 -0800)]
* doc/regexprops-generic.texi: change "an close-group" to "a

close-group" and "illegal" to "not allowed".

16 years agoFix a build error when someone uses "make maintainer-clean".
Bruno Haible [Mon, 3 Dec 2007 11:58:14 +0000 (12:58 +0100)]
Fix a build error when someone uses "make maintainer-clean".

16 years agoMove declaration of getpagesize() from getpagesize.h to unistd.h.
Bruno Haible [Mon, 3 Dec 2007 11:57:05 +0000 (12:57 +0100)]
Move declaration of getpagesize() from getpagesize.h to unistd.h.

16 years agoTests for module 'strings'.
Bruno Haible [Mon, 3 Dec 2007 11:53:14 +0000 (12:53 +0100)]
Tests for module 'strings'.

16 years agoMove declarations of str{,n}casecmp from <string.h> to <strings.h>.
Bruno Haible [Mon, 3 Dec 2007 11:50:59 +0000 (12:50 +0100)]
Move declarations of str{,n}casecmp from <string.h> to <strings.h>.

16 years agoFix fseeko detection for cygwin 1.5.25.
Eric Blake [Sat, 1 Dec 2007 18:53:07 +0000 (11:53 -0700)]
Fix fseeko detection for cygwin 1.5.25.

* m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
accomodate fix in cygwin 1.5.25.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix a 4-year-old used-uninitialized bug in regcomp.c.
Jim Meyering [Sat, 1 Dec 2007 14:34:41 +0000 (15:34 +0100)]
Fix a 4-year-old used-uninitialized bug in regcomp.c.

* lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
that would inhibit utf8-optimization of a regexp containing line-
or buffer-anchors, e.g., `^', `$'.

16 years agoMake recursive locks really recursive on POSIX systems.
Bruno Haible [Fri, 30 Nov 2007 15:39:12 +0000 (16:39 +0100)]
Make recursive locks really recursive on POSIX systems.

16 years agoautoupdate
Karl Berry [Thu, 29 Nov 2007 23:05:32 +0000 (15:05 -0800)]
autoupdate

16 years agoNew function qset_acl, like set_acl but with syscall semantics.
Paul Eggert [Wed, 28 Nov 2007 21:56:55 +0000 (13:56 -0800)]
New function qset_acl, like set_acl but with syscall semantics.

* lib/acl.h (qset_acl): New decl.
* lib/acl.c (qset_acl): New function.
(set_acl): Use new function.  Use more-consistent diagnostics.

16 years ago* modules/physmem (License): Change from GPL to LGPLv2+.
Jim Meyering [Wed, 28 Nov 2007 17:25:36 +0000 (18:25 +0100)]
* modules/physmem (License): Change from GPL to LGPLv2+.

16 years agoDon't abort if the 'long double' type has excess precision.
Bruno Haible [Mon, 26 Nov 2007 20:13:57 +0000 (21:13 +0100)]
Don't abort if the 'long double' type has excess precision.

16 years agoautoupdate
Karl Berry [Mon, 26 Nov 2007 14:17:07 +0000 (06:17 -0800)]
autoupdate

16 years agoautoupdate
Karl Berry [Mon, 26 Nov 2007 14:16:09 +0000 (06:16 -0800)]
autoupdate

16 years agosync with autoconf
Karl Berry [Sun, 25 Nov 2007 19:05:04 +0000 (11:05 -0800)]
sync with autoconf

16 years ago* doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
Ralf Wildenhues [Sun, 25 Nov 2007 16:09:25 +0000 (17:09 +0100)]
* doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
Sync from <http://gnu.org/licenses>.
* modules/agpl-3.0, doc/agpl-3.0.texi: New module,
with license text from same location.
* doc/maintain.texi, doc/standards.texi:  Sync from
<http://savannah.gnu.org/projects/gnustandards>.

16 years agoAdjust getdate's grammar to accept a slightly more regular language.
Ondřej Vašík [Thu, 22 Nov 2007 21:13:20 +0000 (22:13 +0100)]
Adjust getdate's grammar to accept a slightly more regular language.

E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
Before, the former was rejected.
* lib/getdate.y (digits_to_date_time): New function, factored
out of ...
(number): ...here.  Just call digits_to_date_time.
(hybrid): New non-terminal to handle an <unsigned number,
signed relative offset> sequence consistently.

16 years agoPull my changes from coreutils:
Jim Meyering [Sun, 18 Nov 2007 10:51:26 +0000 (11:51 +0100)]
Pull my changes from coreutils:

bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
* build-aux/bootstrap (gnulib_tool_options): Add a space before the
use of $gnulib_tool_option_extras, so that it's separated from the
preceding argument.

Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
* build-aux/bootstrap (cp_mark_as_generated): Create any required
parent destination directories before copying a file into place.

16 years agobootstrap: work also with 4-argument variant of AC_INIT
Sergey Poznyakoff [Sun, 18 Nov 2007 10:42:16 +0000 (11:42 +0100)]
bootstrap: work also with 4-argument variant of AC_INIT

* build-aux/bootstrap (gnulib_extra_files): Adjust sed command.

16 years agoPort test-getaddrinfo to Solaris (fixed version; previous change was wrong).
Paul Eggert [Fri, 16 Nov 2007 21:16:27 +0000 (13:16 -0800)]
Port test-getaddrinfo to Solaris (fixed version; previous change was wrong).

16 years agoPort test-getaddrinfo to Solaris.
Paul Eggert [Fri, 16 Nov 2007 19:18:36 +0000 (11:18 -0800)]
Port test-getaddrinfo to Solaris.

Problem reported by Bruno Haible in
<http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
* tests/test-getaddrinfo.c (simple): Add a comment asking for an
explanation of setting 'hints'.
(SERV1, SERV2, SERV3): Don't use "http" and "https"; this doesn't
work in Solaris 10 and earlier.

16 years agoThe license of gnu-make and posix-shell is now "GPLed build tool".
Paul Eggert [Fri, 16 Nov 2007 04:58:12 +0000 (20:58 -0800)]
The license of gnu-make and posix-shell is now "GPLed build tool".

* modules/gnu-make (License): Likewise.
* modules/posix-shell (License): Likewise.

16 years agoNew module posix-shell, for determining a POSIX shell
Paul Eggert [Fri, 16 Nov 2007 00:28:05 +0000 (16:28 -0800)]
New module posix-shell, for determining a POSIX shell

or perhaps something that is close enough to a POSIX shell.
* m4/posix-shell.m4: New file.
* modules/posix-shell: New file.
* MODULES.html.sh: Mention new module.

16 years agoNew module gnu-make, for determining whether we're using GNU Make.
Paul Eggert [Thu, 15 Nov 2007 23:52:13 +0000 (15:52 -0800)]
New module gnu-make, for determining whether we're using GNU Make.

* m4/gnu-make.m4: New file.
* modules/gnu-make: New file.
* MODULES.html.sh: Mention new module.

16 years agoDefine a sometimes-link-required function using ARGMATCH_DIE_DECL.
Jim Meyering [Wed, 14 Nov 2007 12:33:21 +0000 (13:33 +0100)]
Define a sometimes-link-required function using ARGMATCH_DIE_DECL.

* tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
use this macro to create a function _definition_.
Remove useless "#undef ARGMATCH_DIE".

16 years agoPort to OpenBSD 4.1.
Bruno Haible [Wed, 14 Nov 2007 12:08:37 +0000 (13:08 +0100)]
Port to OpenBSD 4.1.

16 years agoDocument 64-bit #if problems in stdint.texi.
Paul Eggert [Tue, 13 Nov 2007 07:43:16 +0000 (23:43 -0800)]
Document 64-bit #if problems in stdint.texi.

* doc/headers/stdint.texi (stdint.h): Mention problems with
64-bit-#if, and how to work around them.

16 years agoDon't insist on 'long long int' support in the preprocessor. It
Paul Eggert [Mon, 12 Nov 2007 23:50:17 +0000 (15:50 -0800)]
Don't insist on 'long long int' support in the preprocessor.  It

breaks too many things.  For example, PRIdMAX still uses a 'long
long int' format with the latest Sun compiler, even though
HAVE_LONG_LONG_INT isn't defined due to that compiler's
preprocessor problem.  This causes the latest coreutils to dump
core on Solaris 10 sparc with the Sun C compiler.
Instead, fix the 2007-10-16 problem in a different way, by evaluating
the troublesome expressions at configure-time, not at #if-time.
* m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
preprocessor.
* m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
compile-time C checks, done at 'configure'-time.
(gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
* modules/inttypes (Makefile): Substitute the new symbols that
gl_INTTYPES_H now generates.
* lib/inttypes.in.h: Don't use constants wider than 'long' in #if.

16 years agoTests for Unicode character classification functions.
Bruno Haible [Mon, 12 Nov 2007 23:25:37 +0000 (00:25 +0100)]
Tests for Unicode character classification functions.

16 years agoUnicode character classification functions.
Bruno Haible [Mon, 12 Nov 2007 23:15:53 +0000 (00:15 +0100)]
Unicode character classification functions.

16 years agoNew module 'gperf'.
Bruno Haible [Mon, 12 Nov 2007 00:39:22 +0000 (01:39 +0100)]
New module 'gperf'.

16 years agoDetect round() bug on NetBSD 3.0/x86.
Bruno Haible [Sun, 11 Nov 2007 14:14:24 +0000 (15:14 +0100)]
Detect round() bug on NetBSD 3.0/x86.

16 years agoA better way to avoid link failure for the argmatch test.
Bruno Haible [Sun, 11 Nov 2007 13:26:28 +0000 (14:26 +0100)]
A better way to avoid link failure for the argmatch test.

16 years agoUse the shared tests for the floor* and ceil* functions.
Bruno Haible [Sun, 11 Nov 2007 13:17:22 +0000 (14:17 +0100)]
Use the shared tests for the floor* and ceil* functions.

16 years agoHandle the case that floorl and roundl are declared but do not exist.
Bruno Haible [Sun, 11 Nov 2007 13:08:25 +0000 (14:08 +0100)]
Handle the case that floorl and roundl are declared but do not exist.

16 years agoUse REPLACE_ROUND instead of HAVE_DECL_ROUND.
Bruno Haible [Sun, 11 Nov 2007 12:58:25 +0000 (13:58 +0100)]
Use REPLACE_ROUND instead of HAVE_DECL_ROUND.

16 years agoAlign checks for ptrdiff_t.
Bruno Haible [Sun, 11 Nov 2007 00:37:52 +0000 (01:37 +0100)]
Align checks for ptrdiff_t.

16 years agoAvoid link failure for the argmatch test.
Jim Meyering [Sat, 10 Nov 2007 15:31:31 +0000 (16:31 +0100)]
Avoid link failure for the argmatch test.

* tests/test-argmatch.c (usage): Define function to avoid a link
failure: argmatch_die requires a usage function.

16 years agoDocument and work around a BeOS snprintf() bug.
Bruno Haible [Fri, 9 Nov 2007 11:59:46 +0000 (12:59 +0100)]
Document and work around a BeOS snprintf() bug.

16 years agoFix inefficiency introduced on 2007-11-03.
Bruno Haible [Fri, 9 Nov 2007 11:52:05 +0000 (12:52 +0100)]
Fix inefficiency introduced on 2007-11-03.

16 years agoAvoid a test failure on BeOS.
Bruno Haible [Fri, 9 Nov 2007 11:24:38 +0000 (12:24 +0100)]
Avoid a test failure on BeOS.

16 years agoChange cache variable name prefix "jm_" to "gl_" everywhere.
Jim Meyering [Thu, 1 Nov 2007 17:34:38 +0000 (18:34 +0100)]
Change cache variable name prefix "jm_" to "gl_" everywhere.

* m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
* m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
* m4/uptime.m4: s/gl_/jm_/

16 years agoUpgrade to gettext-0.17.
Bruno Haible [Wed, 7 Nov 2007 01:12:43 +0000 (02:12 +0100)]
Upgrade to gettext-0.17.

16 years agoUpdate version number, from gettext-0.17.
Bruno Haible [Wed, 7 Nov 2007 01:00:34 +0000 (02:00 +0100)]
Update version number, from gettext-0.17.

16 years agoFix port to QNX.
Bruno Haible [Wed, 7 Nov 2007 00:36:49 +0000 (01:36 +0100)]
Fix port to QNX.

16 years agoPort to QNX.
Bruno Haible [Wed, 7 Nov 2007 00:24:59 +0000 (01:24 +0100)]
Port to QNX.

16 years agoFix the processing of finite numbers with the 'a' and 'A' directives.
Bruno Haible [Mon, 5 Nov 2007 23:41:57 +0000 (00:41 +0100)]
Fix the processing of finite numbers with the 'a' and 'A' directives.