Jim Meyering [Thu, 8 Nov 2001 23:20:01 +0000 (23:20 +0000)]
Require autoconf-2.52f.
(AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
Use these AC_-prefixed names, not the AM_-prefixed ones.
Jim Meyering [Thu, 8 Nov 2001 23:17:52 +0000 (23:17 +0000)]
*** empty log message ***
Jim Meyering [Thu, 8 Nov 2001 23:17:41 +0000 (23:17 +0000)]
(jm_AFS): Quote the body. Patch by Akim Demaille.
Jim Meyering [Mon, 5 Nov 2001 11:20:15 +0000 (11:20 +0000)]
*** empty log message ***
Jim Meyering [Mon, 5 Nov 2001 11:20:02 +0000 (11:20 +0000)]
(slash_aware_lstat): Correct a misleading comment.
Jim Meyering [Sun, 4 Nov 2001 07:16:06 +0000 (07:16 +0000)]
*** empty log message ***
Jim Meyering [Sun, 4 Nov 2001 07:15:57 +0000 (07:15 +0000)]
Remove unused cruft that saved, set, and restored $DEFS.
Jim Meyering [Sat, 3 Nov 2001 22:22:50 +0000 (22:22 +0000)]
*** empty log message ***
Jim Meyering [Sat, 3 Nov 2001 22:22:41 +0000 (22:22 +0000)]
(jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg of AC_DEFUN.
Jim Meyering [Sat, 3 Nov 2001 21:46:35 +0000 (21:46 +0000)]
*** empty log message ***
Jim Meyering [Sat, 3 Nov 2001 21:46:29 +0000 (21:46 +0000)]
(ARGMATCH_TO_ARGUMENT): Remove casts of first two args
in argmatch_to_argument call.
Jim Meyering [Sat, 3 Nov 2001 20:07:10 +0000 (20:07 +0000)]
it's CFLAGS, not DEFS
Jim Meyering [Sat, 3 Nov 2001 20:00:36 +0000 (20:00 +0000)]
fix indentation of cpp `#'s
Jim Meyering [Sat, 3 Nov 2001 18:51:46 +0000 (18:51 +0000)]
.
Jim Meyering [Sat, 3 Nov 2001 18:51:38 +0000 (18:51 +0000)]
*** empty log message ***
Jim Meyering [Sat, 3 Nov 2001 18:50:53 +0000 (18:50 +0000)]
(dirfd): Reflect the fact that DIR_TO_FD now takes an argument.
Jim Meyering [Sat, 3 Nov 2001 18:49:27 +0000 (18:49 +0000)]
(UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
know the name of the variable in the macro definition.
Jim Meyering [Sat, 3 Nov 2001 08:24:27 +0000 (08:24 +0000)]
*** empty log message ***
Jim Meyering [Sat, 3 Nov 2001 08:23:54 +0000 (08:23 +0000)]
(hash_clear): Fix a bug that could lead to an infloop or
e.g., a fault due to an attempt to free a NULL pointer.
Stefan Monnier [Fri, 2 Nov 2001 16:06:54 +0000 (16:06 +0000)]
(re_wctype): Try to fix some warnings.
(regcomp, regexec): Don't forget the __restrict.
Jim Meyering [Fri, 2 Nov 2001 07:37:19 +0000 (07:37 +0000)]
put `const' back, now that the .m4 test works
Jim Meyering [Fri, 2 Nov 2001 07:36:35 +0000 (07:36 +0000)]
Use the replacement only if we have neither the function
nor a declaration.
Jim Meyering [Thu, 1 Nov 2001 22:16:43 +0000 (22:16 +0000)]
remove const
Jim Meyering [Thu, 1 Nov 2001 22:14:26 +0000 (22:14 +0000)]
whoops
Jim Meyering [Thu, 1 Nov 2001 17:58:09 +0000 (17:58 +0000)]
*** empty log message ***
Jim Meyering [Thu, 1 Nov 2001 17:57:56 +0000 (17:57 +0000)]
(libfetish_a_SOURCES): Add dirfd.h.
Jim Meyering [Thu, 1 Nov 2001 17:57:09 +0000 (17:57 +0000)]
.
Jim Meyering [Thu, 1 Nov 2001 17:44:43 +0000 (17:44 +0000)]
*** empty log message ***
Jim Meyering [Thu, 1 Nov 2001 16:57:18 +0000 (16:57 +0000)]
*** empty log message ***
Jim Meyering [Thu, 1 Nov 2001 16:55:16 +0000 (16:55 +0000)]
use AC_HEADER_DIRECT and all the associated cruft
Jim Meyering [Thu, 1 Nov 2001 16:47:00 +0000 (16:47 +0000)]
don't indent the #include directive
Jim Meyering [Thu, 1 Nov 2001 16:46:06 +0000 (16:46 +0000)]
check for decl, too
Jim Meyering [Thu, 1 Nov 2001 16:43:02 +0000 (16:43 +0000)]
*** empty log message ***
Jim Meyering [Thu, 1 Nov 2001 16:42:53 +0000 (16:42 +0000)]
(jm_MACROS): Require UTILS_FUNC_DIRFD.
Jim Meyering [Thu, 1 Nov 2001 16:41:57 +0000 (16:41 +0000)]
(UTILS_FUNC_DIRFD): New macro.
Jim Meyering [Thu, 1 Nov 2001 15:55:59 +0000 (15:55 +0000)]
*** empty log message ***
Jim Meyering [Thu, 1 Nov 2001 15:55:53 +0000 (15:55 +0000)]
(hash_print) [TESTING]: Clean up.
Jeff Bailey [Mon, 22 Oct 2001 13:45:41 +0000 (13:45 +0000)]
Checking initial copies various licenses, README, and general COPYING document.
Jim Meyering [Mon, 22 Oct 2001 08:02:38 +0000 (08:02 +0000)]
.
Jim Meyering [Mon, 22 Oct 2001 08:01:22 +0000 (08:01 +0000)]
(alloca): Define to __builtin_alloca if __GNUC__,
to avoid a warning if -Wall.
Jim Meyering [Mon, 22 Oct 2001 06:56:44 +0000 (06:56 +0000)]
*** empty log message ***
Jim Meyering [Mon, 22 Oct 2001 06:56:31 +0000 (06:56 +0000)]
(uintptr_t): Remove macro and decl; it's config.h's job.
Jim Meyering [Sun, 21 Oct 2001 15:12:39 +0000 (15:12 +0000)]
whoops! fix comment on first line :-)
Jim Meyering [Sun, 21 Oct 2001 13:39:20 +0000 (13:39 +0000)]
*** empty log message ***
Jim Meyering [Sun, 21 Oct 2001 13:39:12 +0000 (13:39 +0000)]
(_): Honor the setting of ENABLE_NLS. Otherwise,
this code would end up calling gettext even in packages built
with --disable-nls.
Jim Meyering [Sun, 21 Oct 2001 10:55:36 +0000 (10:55 +0000)]
*** empty log message ***
Jim Meyering [Sun, 21 Oct 2001 10:55:29 +0000 (10:55 +0000)]
(_): Honor the setting of ENABLE_NLS. Otherwise,
this code would end up calling gettext even in packages built
with --disable-nls.
Jim Meyering [Sun, 21 Oct 2001 09:01:31 +0000 (09:01 +0000)]
*** empty log message ***
Jim Meyering [Sun, 21 Oct 2001 09:01:24 +0000 (09:01 +0000)]
(_): Honor the setting of ENABLE_NLS. Otherwise,
this code would end up calling gettext even in packages built
with --disable-nls.
Jim Meyering [Sun, 21 Oct 2001 07:59:09 +0000 (07:59 +0000)]
*** empty log message ***
Jim Meyering [Sun, 21 Oct 2001 07:59:04 +0000 (07:59 +0000)]
(strerror_r): Do not declare unless !_LIBC.
Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
Use strerror_r that is only a macro, even if it is not a function.
(strerror): Check for HAVE_DECL_STRERROR before declaring.
(private_strerror): Use prototypes, not old-style function definition.
(print_errno_message): New function.
Support the POSIX 'int'-flavored strerror_r, as well as the traditional
char*-flavored one.
(error_tail, error, error_at_line): Use it.
Jim Meyering [Sun, 21 Oct 2001 07:49:37 +0000 (07:49 +0000)]
*** empty log message ***
Jim Meyering [Sun, 21 Oct 2001 07:49:27 +0000 (07:49 +0000)]
(jm_PREREQ_ERROR):
Do not invoke AC_CHECK_FUNCS with strerror_r, as
AC_FUNC_STRERROR_R does that.
Jim Meyering [Sun, 21 Oct 2001 07:49:13 +0000 (07:49 +0000)]
Add copyright notice, as nontrivial m4 files
are supposed to have them these days.
(AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
Merge changes from latest Autoconf CVS.
Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
POSIX decided to standardize on the int flavor of strerror_r.
Jim Meyering [Thu, 11 Oct 2001 15:52:22 +0000 (15:52 +0000)]
*** empty log message ***
Jim Meyering [Thu, 11 Oct 2001 15:52:17 +0000 (15:52 +0000)]
(argmatch_invalid): Use quotearg_n_style (0, ...
and quote_n (1, ... to avoid clobbering a buffer.
Gerd Moellmann [Tue, 9 Oct 2001 10:05:13 +0000 (10:05 +0000)]
(WIDE_CHAR_SUPPORT): Do not use defined() in macro.
From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
Jim Meyering [Fri, 5 Oct 2001 11:45:36 +0000 (11:45 +0000)]
.
Jim Meyering [Fri, 5 Oct 2001 11:45:25 +0000 (11:45 +0000)]
(libfetish_a_SOURCES): Add hash-pjw.c and hash-pjw.h.
Jim Meyering [Fri, 5 Oct 2001 11:44:30 +0000 (11:44 +0000)]
*** empty log message ***
Jim Meyering [Sun, 30 Sep 2001 21:39:54 +0000 (21:39 +0000)]
*** empty log message ***
Jim Meyering [Sun, 30 Sep 2001 21:39:51 +0000 (21:39 +0000)]
(jm_LIST_MOUNTED_FILESYSTEMS): See if
`struct fsstat' has the `f_fstypename' member.
Use that to define FS_TYPE, which is now used to make
the getfsstat link test tighter.
Jim Meyering [Sun, 30 Sep 2001 21:28:26 +0000 (21:28 +0000)]
*** empty log message ***
Jim Meyering [Sun, 30 Sep 2001 21:28:15 +0000 (21:28 +0000)]
[MOUNTED_GETFSSTAT]:
Include <sys/ucred.h>, for Apple Darwin.
Include sys/mount.h and sys/fs_types.h only if available.
(FS_TYPE): Define.
(read_filesystem_list): Use FS_TYPE.
Jim Meyering [Sun, 30 Sep 2001 06:26:57 +0000 (06:26 +0000)]
*** empty log message ***
Jim Meyering [Sun, 30 Sep 2001 06:26:46 +0000 (06:26 +0000)]
(excluded_filename): 0 -> false, since it's a boolean context.
Jim Meyering [Sat, 29 Sep 2001 10:30:41 +0000 (10:30 +0000)]
*** empty log message ***
Jim Meyering [Sat, 29 Sep 2001 10:29:25 +0000 (10:29 +0000)]
*** empty log message ***
Jim Meyering [Sat, 29 Sep 2001 10:27:35 +0000 (10:27 +0000)]
*** empty log message ***
Jim Meyering [Sat, 29 Sep 2001 10:27:28 +0000 (10:27 +0000)]
(jm_LIST_MOUNTED_FILESYSTEMS)
Check for these headers: sys/param.h sys/ucred.h sys/mount.h
sys/fs_types.h, and make the link-test for getfsstat guard #include
directives with appropriate #if HAVE_*_H tests so that we can
detect getfsstat on Apple Darwin1.3.7 systems.
Also fix harmless typo in cache variable name: s/getsstat/getfsstat/.
Jim Meyering [Sat, 29 Sep 2001 08:13:26 +0000 (08:13 +0000)]
*** empty log message ***
Jim Meyering [Sat, 29 Sep 2001 08:13:18 +0000 (08:13 +0000)]
(jm_LIST_MOUNTED_FILESYSTEMS)
[one-argument getmntent function]): Include stdio.h before mntent.h.
SunOS4.1.x needs it for the declaration of `FILE'.
Patch by Volker Borchert.
Jim Meyering [Fri, 28 Sep 2001 19:37:38 +0000 (19:37 +0000)]
* xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
Check for strtoul and strtoumax,
as those declarations are made even in the signed case.
* xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
Likewise, for strtol and strtoimax.
Jim Meyering [Fri, 28 Sep 2001 19:35:57 +0000 (19:35 +0000)]
*** empty log message ***
Jim Meyering [Fri, 28 Sep 2001 19:35:01 +0000 (19:35 +0000)]
*** empty log message ***
Jim Meyering [Fri, 28 Sep 2001 19:34:31 +0000 (19:34 +0000)]
(strtol): Do not declare if HAVE_DECL_STRTOL.
(strtoul): Do not declare if HAVE_DECL_STRTOUL.
(strtoimax, strtoumax): Do not declare if already defined as a macro.
Jim Meyering [Wed, 26 Sep 2001 08:27:49 +0000 (08:27 +0000)]
*** empty log message ***
Jim Meyering [Wed, 26 Sep 2001 08:27:42 +0000 (08:27 +0000)]
(USE_UNLOCKED_IO): Define to 1 if not already defined.
Jim Meyering [Wed, 26 Sep 2001 08:22:37 +0000 (08:22 +0000)]
.
Jim Meyering [Wed, 26 Sep 2001 08:21:55 +0000 (08:21 +0000)]
*** empty log message ***
Jim Meyering [Wed, 26 Sep 2001 08:21:06 +0000 (08:21 +0000)]
remove now-unused tmp/trap junk
Jim Meyering [Wed, 26 Sep 2001 08:20:38 +0000 (08:20 +0000)]
exit from only one place: the end
Jim Meyering [Wed, 26 Sep 2001 08:19:17 +0000 (08:19 +0000)]
portability tweaks
Jim Meyering [Wed, 26 Sep 2001 08:13:41 +0000 (08:13 +0000)]
*** empty log message ***
Jim Meyering [Wed, 26 Sep 2001 08:13:27 +0000 (08:13 +0000)]
(unlocked-io.h): Use $(SHELL).
Jim Meyering [Wed, 26 Sep 2001 08:11:20 +0000 (08:11 +0000)]
.
Jim Meyering [Wed, 26 Sep 2001 08:11:01 +0000 (08:11 +0000)]
(unlocked-io.h): Rewrite to use a separate script,
rather than trying to embed it here.
(EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
Jim Meyering [Wed, 26 Sep 2001 07:55:04 +0000 (07:55 +0000)]
.
Jim Meyering [Tue, 25 Sep 2001 13:01:36 +0000 (13:01 +0000)]
*** empty log message ***
Jim Meyering [Tue, 25 Sep 2001 13:01:22 +0000 (13:01 +0000)]
(rpl_gettimeofday): Declare local variable `result'.
Jim Meyering [Mon, 24 Sep 2001 15:35:09 +0000 (15:35 +0000)]
.
Jim Meyering [Mon, 24 Sep 2001 15:35:00 +0000 (15:35 +0000)]
Use the version from gettext-0.10.40, not CVS.
Jim Meyering [Sun, 23 Sep 2001 15:47:00 +0000 (15:47 +0000)]
.
Jim Meyering [Sun, 23 Sep 2001 14:24:35 +0000 (14:24 +0000)]
*** empty log message ***
Jim Meyering [Sun, 23 Sep 2001 14:24:23 +0000 (14:24 +0000)]
(jm_LIST_MOUNTED_FILESYSTEMS): In the outer getmntent if-block, don't
die if neither of the getmntent tests succeeds. Instead, just fall
through and continue with the remaianing tests.
Jim Meyering [Sun, 23 Sep 2001 09:19:52 +0000 (09:19 +0000)]
*** empty log message ***
Jim Meyering [Sun, 23 Sep 2001 09:19:42 +0000 (09:19 +0000)]
(jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
instead of the mere test for existence of mntent.h. The latter
would get a false-positive on AIX 3.4 systems.
Jim Meyering [Sun, 23 Sep 2001 08:56:27 +0000 (08:56 +0000)]
*** empty log message ***
Jim Meyering [Sun, 23 Sep 2001 08:56:11 +0000 (08:56 +0000)]
Remove useless parentheses in #if directives.
(MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
the deprecated MOUNTED symbol is no longer defined in mntent.h.
Jim Meyering [Sat, 22 Sep 2001 16:45:36 +0000 (16:45 +0000)]
*** empty log message ***