Paul Eggert [Sat, 25 Mar 2006 09:48:47 +0000 (09:48 +0000)]
* regex.m4 (gl_REGEX): Fix a longstanding typo in the
implementation of Spencer ERE test #75 from grep 2.3.
Also, change sense of cached
variable, so that the message makes sense.
Paul Eggert [Sat, 25 Mar 2006 09:09:59 +0000 (09:09 +0000)]
* regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
glibc names. Even if glibc is changed to conform to POSIX, the
traditional names will be available anyway, since regex depends on
the extensions module. Problem reported by Emanuele Giaquinta.
Paul Eggert [Fri, 17 Mar 2006 07:26:42 +0000 (07:26 +0000)]
* lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
Typedef to long int, not to off_, as POSIX will likely change
in that direction.
* m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
no longer needs it. Instead, check that regoff_t is as least
as wide as ptrdiff_t.
Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
so that our regex.h stays compatible with the installed regex.
This is helpful for installers who configure --without-included-regex.
Problem reported by Emanuele Giaquinta.
Paul Eggert [Sun, 12 Mar 2006 07:58:12 +0000 (07:58 +0000)]
* time_r.h (asctime_r, ctime_r): Remove. These functions can
overrun buffers and shouldn't be used (much as gets shouldn't be
used).
* time_r.c (asctime_r, ctime_r): Likewise.
Simon Josefsson [Tue, 7 Mar 2006 13:20:11 +0000 (13:20 +0000)]
* readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
test to be side-effect free by storing the result in the cache
variable gl_cv_lib_readline, and moving the assignment of
LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
Paul Eggert [Sat, 4 Mar 2006 06:34:54 +0000 (06:34 +0000)]
(gl_FUNC_POLL): If we deem poll(2) unacceptable, use
our replacement poll.h in any case, to avoid a differing
declaration from a system header. Seen on AIX.
Simon Josefsson [Thu, 16 Feb 2006 09:48:07 +0000 (09:48 +0000)]
* sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
'present but cannot compile' warnings on cygwin.
* socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
use ws2tcpip.h if sys/socket.h works.
* getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
(gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
Paul Eggert [Tue, 14 Feb 2006 23:00:23 +0000 (23:00 +0000)]
Sync from coreutils.
* modules/lstat (Depends-on): Don't depend on xalloc.
(License): Change from GPL to LGPL, since this is now simply a
replacement for a libc function.
Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
failure on deficient systems, and simplify gnulib lgpl dependencies.
* lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
xmalloc/lstat combination. Based on a patch from Bruno Haible.
* lib/xalloc-die.c: Remove unused definition of N_.
* m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke AC_CHECK_FUNCS(getmntent)
unconditionally so that tests of $ac_cv_func_getmntent (e.g., in
gl_LIST_MOUNTED_FILE_SYSTEMS) need not double-quote uses of that
variable, to accommodate the rare case in which getmntent is
available in none of the libraries checked. This happens at
least on FreeBSD 5.0.
Simon Josefsson [Tue, 14 Feb 2006 12:52:55 +0000 (12:52 +0000)]
* build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
and (the local) Makefile.cfg to maint-cfg.mk.
* build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
to the latter.
Simon Josefsson [Tue, 14 Feb 2006 11:25:31 +0000 (11:25 +0000)]
* modules/maintainer-makefile: New module.
* build-aux/Makefile.maint: New file, from GNU CoreUtils, although
severaly stripped to make it possible to build it up from scratch
with reliable tests.
* build-aux/GNUmakefile: New file, from GNU CoreUtils with some
fixes to permit overriding the default actions when configure and
makefile are not available.