bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnulib] dirname.h self-contained?


From: Paul Eggert
Subject: Re: [Bug-gnulib] dirname.h self-contained?
Date: 27 May 2003 12:07:26 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Bruno Haible <address@hidden> writes:

> for size_t you need <stddef.h> or <stdlib.h>. So if one needs
> nothing from <stdlib.h> I prefer <stddef.h> since it is smaller.

Another reason is that freestanding C89 implementations need not
support <stdlib.h>.  This is still an issue for old hosts like SunOS
4.1.x, since our current recommendation is to use GCC on such hosts
(rather than the bundled K&R compiler).  But GCC is freestanding, not
hosted, so we can't assume that <stdlib.h> works properly on such
hosts.

We can assume the following C89 headers:

<float.h> <limits.h> <stdarg.h> <stddef.h>

Plus we can assume C99 <stdbool.h> since we emulate it (thanks to Bruno).

Here's a proposed patch to gnulib to simplify the code a bit (and help
forestall the question that started this thread) by assuming the
above-listed headers.  I haven't changed the modules imported from
glibc, nor the modules that I know are used by Emacs (it still wants
portability to K&R, right?), nor have I bothered to change files like
strtol.c that emulate C89 functions.

Index: lib/ChangeLog
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/ChangeLog,v
retrieving revision 1.467
diff -p -u -r1.467 ChangeLog
--- lib/ChangeLog       12 May 2003 09:49:42 -0000      1.467
+++ lib/ChangeLog       27 May 2003 19:03:51 -0000
@@ -1,3 +1,25 @@
+2003-05-27  Paul Eggert  <address@hidden>
+
+       * addext.c, backupfile.c, fsusage.c, human.c, pathmax.h,
+       rpmatch.c, userspec.c, xreadlink.c, xstrtol.c: Include <limits.h>
+       without checking for HAVE_LIMITS_H.
+       * backupfile.c, fsusage.c, hash.c, human.c, safe-read.c, userspec.c,
+       xstrtol.c (CHAR_BIT) : Don't define, since <limits.h> is guaranteed
+       to do that.
+       * error.c, fatal.c: Include <stdarg.h> without checking for __STDC__.
+       * exclude.c: Include <stdbool.h> unconditionally.
+       * fnmatch.c, localcharset.c, tempname.c: Include <stddef.h>
+       unconditionally.
+       * hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
+       * modechange.c, rpmatch.c (NULL): Don't define, since
+       <stddef.h> does that.
+       * quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
+       * safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
+       * safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer needed.
+       * xstrtol.c: Likewise.
+       * safe-read.c: Remove TYPE_SIGNED; no longer needed.
+       * savedir.c: Include <stddef.h> instead of defining NULL.
+
 2003-05-10  Bruno Haible  <address@hidden>
 
        * linebreak.c (iconv_string_length): Don't return -1 just because the
Index: lib/addext.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/addext.c,v
retrieving revision 1.8
diff -p -u -r1.8 addext.c
--- lib/addext.c        13 Aug 2001 06:30:10 -0000      1.8
+++ lib/addext.c        27 May 2003 19:03:51 -0000
@@ -29,9 +29,7 @@
 # define HAVE_LONG_FILE_NAMES 0
 #endif
 
-#if HAVE_LIMITS_H
-# include <limits.h>
-#endif
+#include <limits.h>
 #ifndef _POSIX_NAME_MAX
 # define _POSIX_NAME_MAX 14
 #endif
Index: lib/backupfile.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/backupfile.c,v
retrieving revision 1.37
diff -p -u -r1.37 backupfile.c
--- lib/backupfile.c    16 Jan 2002 22:44:43 -0000      1.37
+++ lib/backupfile.c    27 May 2003 19:03:51 -0000
@@ -80,12 +80,8 @@ char *malloc ();
 # define HAVE_DIR 0
 #endif
 
-#if HAVE_LIMITS_H
-# include <limits.h>
-#endif
-#ifndef CHAR_BIT
-# define CHAR_BIT 8
-#endif
+#include <limits.h>
+
 /* Upper bound on the string length of an integer converted to string.
    302 / 1000 is ceil (log10 (2.0)).  Subtract 1 for the sign bit;
    add 1 for integer division truncation; add 1 more for a minus sign.  */
Index: lib/error.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/error.c,v
retrieving revision 1.29
diff -p -u -r1.29 error.c
--- lib/error.c 6 Dec 2002 08:08:13 -0000       1.29
+++ lib/error.c 27 May 2003 19:03:51 -0000
@@ -34,13 +34,8 @@
 #endif
 
 #if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC
-# if __STDC__
-#  include <stdarg.h>
-#  define VA_START(args, lastarg) va_start(args, lastarg)
-# else
-#  include <varargs.h>
-#  define VA_START(args, lastarg) va_start(args)
-# endif
+# include <stdarg.h>
+# define VA_START(args, lastarg) va_start(args, lastarg)
 #else
 # define va_alist a1, a2, a3, a4, a5, a6, a7, a8
 # define va_dcl char *a1, *a2, *a3, *a4, *a5, *a6, *a7, *a8;
Index: lib/exclude.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/exclude.c,v
retrieving revision 1.12
diff -p -u -r1.12 exclude.c
--- lib/exclude.c       5 Apr 2003 06:53:24 -0000       1.12
+++ lib/exclude.c       27 May 2003 19:03:51 -0000
@@ -24,11 +24,7 @@
 # include <config.h>
 #endif
 
-#if HAVE_STDBOOL_H
-# include <stdbool.h>
-#else
-typedef enum {false = 0, true = 1} bool;
-#endif
+#include <stdbool.h>
 
 #include <errno.h>
 #ifndef errno
Index: lib/fatal.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/fatal.c,v
retrieving revision 1.3
diff -p -u -r1.3 fatal.c
--- lib/fatal.c 17 Nov 2001 13:29:42 -0000      1.3
+++ lib/fatal.c 27 May 2003 19:03:51 -0000
@@ -7,13 +7,8 @@
 #include <stdio.h>
 
 #if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC
-# if __STDC__
-#  include <stdarg.h>
-#  define VA_START(args, lastarg) va_start(args, lastarg)
-# else
-#  include <varargs.h>
-#  define VA_START(args, lastarg) va_start(args)
-# endif
+# include <stdarg.h>
+# define VA_START(args, lastarg) va_start(args, lastarg)
 #else
 # define va_alist a1, a2, a3, a4, a5, a6, a7, a8
 # define va_dcl char *a1, *a2, *a3, *a4, *a5, *a6, *a7, *a8;
Index: lib/fnmatch.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/fnmatch.c,v
retrieving revision 1.23
diff -p -u -r1.23 fnmatch.c
--- lib/fnmatch.c       26 Jun 2002 06:17:35 -0000      1.23
+++ lib/fnmatch.c       27 May 2003 19:03:51 -0000
@@ -58,8 +58,8 @@ char *alloca ();
 # endif
 #endif
 
-#if defined STDC_HEADERS || defined _LIBC
-# include <stddef.h>
+#include <stddef.h>
+#if STDC_HEADERS || defined _LIBC
 # include <stdlib.h>
 #endif
 
Index: lib/fsusage.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/fsusage.c,v
retrieving revision 1.44
diff -p -u -r1.44 fsusage.c
--- lib/fsusage.c       17 Dec 2002 11:48:24 -0000      1.44
+++ lib/fsusage.c       27 May 2003 19:03:52 -0000
@@ -35,12 +35,7 @@
 #include <sys/stat.h>
 #include "fsusage.h"
 
-#if HAVE_LIMITS_H
-# include <limits.h>
-#endif
-#ifndef CHAR_BIT
-# define CHAR_BIT 8
-#endif
+#include <limits.h>
 
 int statfs ();
 
Index: lib/hash.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/hash.c,v
retrieving revision 1.31
diff -p -u -r1.31 hash.c
--- lib/hash.c  13 Mar 2003 19:44:25 -0000      1.31
+++ lib/hash.c  27 May 2003 19:03:52 -0000
@@ -31,6 +31,7 @@
 # include <stdlib.h>
 #endif
 
+#include <limits.h>
 #include <stdbool.h>
 #include <stdio.h>
 
@@ -403,9 +404,6 @@ hash_do_for_each (const Hash_table *tabl
 unsigned
 hash_string (const char *string, unsigned n_buckets)
 {
-# ifndef CHAR_BIT
-#  define CHAR_BIT 8
-# endif
 # define ROTATE_LEFT(Value, Shift) \
   ((Value) << (Shift) | (Value) >> ((sizeof (unsigned) * CHAR_BIT) - (Shift)))
 # define HASH_ONE_CHAR(Value, Byte) \
Index: lib/human.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/human.c,v
retrieving revision 1.17
diff -p -u -r1.17 human.c
--- lib/human.c 5 Nov 2002 21:45:29 -0000       1.17
+++ lib/human.c 27 May 2003 19:03:52 -0000
@@ -27,10 +27,7 @@
 
 #include <sys/types.h>
 #include <stdio.h>
-
-#if HAVE_LIMITS_H
-# include <limits.h>
-#endif
+#include <limits.h>
 
 #if HAVE_STRING_H
 # include <string.h>
@@ -38,9 +35,6 @@
 # include <strings.h>
 #endif
 
-#ifndef CHAR_BIT
-# define CHAR_BIT 8
-#endif
 #if HAVE_STDLIB_H
 # include <stdlib.h>
 #endif
Index: lib/localcharset.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/localcharset.c,v
retrieving revision 1.13
diff -p -u -r1.13 localcharset.c
--- lib/localcharset.c  31 Dec 2002 13:20:21 -0000      1.13
+++ lib/localcharset.c  27 May 2003 19:03:52 -0000
@@ -26,9 +26,7 @@
 /* Specification.  */
 #include "localcharset.h"
 
-#if HAVE_STDDEF_H
-# include <stddef.h>
-#endif
+#include <stddef.h>
 
 #include <stdio.h>
 #if HAVE_STRING_H
Index: lib/modechange.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/modechange.c,v
retrieving revision 1.23
diff -p -u -r1.23 modechange.c
--- lib/modechange.c    9 Dec 2001 22:54:19 -0000       1.23
+++ lib/modechange.c    27 May 2003 19:03:52 -0000
@@ -31,15 +31,12 @@
 #include "modechange.h"
 #include <sys/stat.h>
 #include "xstrtol.h"
+#include <stddef.h>
 
 #if STDC_HEADERS
 # include <stdlib.h>
 #else
 char *malloc ();
-#endif
-
-#ifndef NULL
-# define NULL 0
 #endif
 
 #if STAT_MACROS_BROKEN
Index: lib/pathmax.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/pathmax.h,v
retrieving revision 1.8
diff -p -u -r1.8 pathmax.h
--- lib/pathmax.h       12 Aug 2001 18:49:13 -0000      1.8
+++ lib/pathmax.h       27 May 2003 19:03:52 -0000
@@ -25,7 +25,7 @@
 /* Non-POSIX BSD systems might have gcc's limits.h, which doesn't define
    PATH_MAX but might cause redefinition warnings when sys/param.h is
    later included (as on MORE/BSD 4.3).  */
-# if defined _POSIX_VERSION || (defined HAVE_LIMITS_H && !defined __GNUC__)
+# if defined _POSIX_VERSION || !defined __GNUC__
 #  include <limits.h>
 # endif
 
Index: lib/quote.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/quote.c,v
retrieving revision 1.4
diff -p -u -r1.4 quote.c
--- lib/quote.c 18 Mar 2003 08:50:56 -0000      1.4
+++ lib/quote.c 27 May 2003 19:03:52 -0000
@@ -21,10 +21,6 @@
 # include <config.h>
 #endif
 
-#if HAVE_STDDEF_H
-# include <stddef.h>  /* For the definition of size_t on windows w/MSVC.  */
-#endif
-#include <sys/types.h>
 #include "quotearg.h"
 #include "quote.h"
 
Index: lib/rpmatch.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/rpmatch.c,v
retrieving revision 1.15
diff -p -u -r1.15 rpmatch.c
--- lib/rpmatch.c       5 Nov 2002 21:45:29 -0000       1.15
+++ lib/rpmatch.c       27 May 2003 19:03:52 -0000
@@ -20,20 +20,14 @@
 # include <config.h>
 #endif
 
+#include <stddef.h>
 #if STDC_HEADERS || _LIBC
-# include <stddef.h>
 # include <stdlib.h>
-#else
-# ifndef NULL
-#  define NULL 0
-# endif
 #endif
 
 #if ENABLE_NLS
 # include <sys/types.h>
-# if HAVE_LIMITS_H
-#  include <limits.h>
-# endif
+# include <limits.h>
 # include <regex.h>
 # include "gettext.h"
 # define _(msgid) gettext (msgid)
Index: lib/safe-read.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/safe-read.c,v
retrieving revision 1.22
diff -p -u -r1.22 safe-read.c
--- lib/safe-read.c     8 Jan 2003 18:42:38 -0000       1.22
+++ lib/safe-read.c     27 May 2003 19:03:52 -0000
@@ -45,22 +45,6 @@ extern int errno;
 
 #include <limits.h>
 
-#ifndef CHAR_BIT
-# define CHAR_BIT 8
-#endif
-
-/* The extra casts work around common compiler bugs.  */
-#define TYPE_SIGNED(t) (! ((t) 0 < (t) -1))
-/* The outer cast is needed to work around a bug in Cray C 5.0.3.0.
-   It is necessary at least when t == time_t.  */
-#define TYPE_MINIMUM(t) ((t) (TYPE_SIGNED (t) \
-                             ? ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1) : (t) 0))
-#define TYPE_MAXIMUM(t) ((t) (~ (t) 0 - TYPE_MINIMUM (t)))
-
-#ifndef INT_MAX
-# define INT_MAX TYPE_MAXIMUM (int)
-#endif
-
 #ifdef SAFE_WRITE
 # define safe_rw safe_write
 # define rw write
Index: lib/savedir.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/savedir.c,v
retrieving revision 1.20
diff -p -u -r1.20 savedir.c
--- lib/savedir.c       31 Aug 2001 09:09:53 -0000      1.20
+++ lib/savedir.c       27 May 2003 19:03:52 -0000
@@ -56,9 +56,7 @@ extern int errno;
 # include <stdlib.h>
 # include <string.h>
 #endif
-#ifndef NULL
-# define NULL 0
-#endif
+#include <stddef.h>
 
 #include "savedir.h"
 #include "xalloc.h"
Index: lib/tempname.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/tempname.c,v
retrieving revision 1.9
diff -p -u -r1.9 tempname.c
--- lib/tempname.c      6 Jan 2003 12:38:36 -0000       1.9
+++ lib/tempname.c      27 May 2003 19:03:53 -0000
@@ -43,8 +43,9 @@
 # define __GT_NOCREATE 3
 #endif
 
+#include <stddef.h>
+
 #if STDC_HEADERS || _LIBC
-# include <stddef.h>
 # include <string.h>
 #endif
 
Index: lib/userspec.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/userspec.c,v
retrieving revision 1.35
diff -p -u -r1.35 userspec.c
--- lib/userspec.c      10 Jan 2003 21:06:49 -0000      1.35
+++ lib/userspec.c      27 May 2003 19:03:53 -0000
@@ -32,9 +32,7 @@
 # include <sys/param.h>
 #endif
 
-#if HAVE_LIMITS_H
-# include <limits.h>
-#endif
+#include <limits.h>
 
 #if HAVE_STRING_H
 # include <string.h>
@@ -72,10 +70,6 @@ struct group *getgrgid ();
 
 #ifndef HAVE_ENDPWENT
 # define endpwent() ((void) 0)
-#endif
-
-#ifndef CHAR_BIT
-# define CHAR_BIT 8
 #endif
 
 /* The extra casts work around common compiler bugs.  */
Index: lib/xreadlink.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/xreadlink.c,v
retrieving revision 1.8
diff -p -u -r1.8 xreadlink.c
--- lib/xreadlink.c     9 Dec 2001 22:46:53 -0000       1.8
+++ lib/xreadlink.c     27 May 2003 19:03:53 -0000
@@ -29,9 +29,7 @@
 extern int errno;
 #endif
 
-#if HAVE_LIMITS_H
-# include <limits.h>
-#endif
+#include <limits.h>
 #if HAVE_SYS_TYPES_H
 # include <sys/types.h>
 #endif
Index: lib/xstrtol.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/xstrtol.c,v
retrieving revision 1.30
diff -p -u -r1.30 xstrtol.c
--- lib/xstrtol.c       19 Dec 2001 10:41:27 -0000      1.30
+++ lib/xstrtol.c       27 May 2003 19:03:53 -0000
@@ -52,21 +52,10 @@
 extern int errno;
 #endif
 
-#if HAVE_LIMITS_H
-# include <limits.h>
-#endif
-
-#ifndef CHAR_BIT
-# define CHAR_BIT 8
-#endif
+#include <limits.h>
 
 /* The extra casts work around common compiler bugs.  */
 #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1))
-/* The outer cast is needed to work around a bug in Cray C 5.0.3.0.
-   It is necessary at least when t == time_t.  */
-#define TYPE_MINIMUM(t) ((t) (TYPE_SIGNED (t) \
-                             ? ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1) : (t) 0))
-#define TYPE_MAXIMUM(t) (~ (t) 0 - TYPE_MINIMUM (t))
 
 #if defined (STDC_HEADERS) || (!defined (isascii) && !defined (HAVE_ISASCII))
 # define IN_CTYPE_DOMAIN(c) 1
Index: m4/ChangeLog
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/ChangeLog,v
retrieving revision 1.448
diff -p -u -r1.448 ChangeLog
--- m4/ChangeLog        26 May 2003 19:39:45 -0000      1.448
+++ m4/ChangeLog        27 May 2003 19:03:53 -0000
@@ -1,3 +1,16 @@
+2003-05-27  Paul Eggert  <address@hidden>
+
+       * backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
+       * fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
+       * human.m4 (gl_HUMAN): Likewise.
+       * localcharset.m4 (gl_LOCALCHARSET): Likewise.
+       * pathmax.m4 (gl_PATHMAX): Likewise.
+       * rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
+       * userspec.m4 (gl_USERSPEC): Likewise.
+       * xreadlink.m4 (gl_XREADLINK): Likewise.
+       * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
+       * quote.m4 (gl_QUOTE): Don't check for stddef.h.
+
 2003-05-26  Jim Meyering  <address@hidden>
 
        Merge in a change from coreutils:
Index: m4/backupfile.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/backupfile.m4,v
retrieving revision 1.1
diff -p -u -r1.1 backupfile.m4
--- m4/backupfile.m4    31 Dec 2002 13:42:06 -0000      1.1
+++ m4/backupfile.m4    27 May 2003 19:03:53 -0000
@@ -11,13 +11,13 @@ AC_DEFUN([gl_BACKUPFILE],
   dnl Prerequisites of lib/backupfile.c.
   AC_REQUIRE([AC_HEADER_DIRENT])
   AC_REQUIRE([AC_FUNC_CLOSEDIR_VOID])
-  AC_CHECK_HEADERS_ONCE(limits.h stdlib.h string.h)
+  AC_CHECK_HEADERS_ONCE(stdlib.h string.h)
   AC_CHECK_DECLS_ONCE(getenv malloc)
   jm_CHECK_TYPE_STRUCT_DIRENT_D_INO
 
   dnl Prerequisites of lib/addext.c.
   AC_REQUIRE([jm_AC_DOS])
   AC_SYS_LONG_FILE_NAMES
-  AC_CHECK_HEADERS_ONCE(limits.h string.h unistd.h)
+  AC_CHECK_HEADERS_ONCE(string.h unistd.h)
   AC_CHECK_FUNCS(pathconf)
 ])
Index: m4/fsusage.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/fsusage.m4,v
retrieving revision 1.15
diff -p -u -r1.15 fsusage.m4
--- m4/fsusage.m4       31 Dec 2002 13:43:06 -0000      1.15
+++ m4/fsusage.m4       27 May 2003 19:03:54 -0000
@@ -235,7 +235,7 @@ choke -- this is a workaround for a Sun-
 AC_DEFUN([gl_PREREQ_FSUSAGE_EXTRA],
 [
   AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])
-  AC_CHECK_HEADERS_ONCE(fcntl.h limits.h)
+  AC_CHECK_HEADERS_ONCE(fcntl.h)
   AC_CHECK_HEADERS(dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h 
sys/statvfs.h)
   jm_STATFS_TRUNCATES
 ])
Index: m4/human.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/human.m4,v
retrieving revision 1.1
diff -p -u -r1.1 human.m4
--- m4/human.m4 31 Dec 2002 13:42:07 -0000      1.1
+++ m4/human.m4 27 May 2003 19:03:54 -0000
@@ -12,6 +12,6 @@ AC_DEFUN([gl_HUMAN],
   AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])
 
   dnl Prerequisites of lib/human.c.
-  AC_CHECK_HEADERS_ONCE(limits.h stdlib.h string.h)
+  AC_CHECK_HEADERS_ONCE(stdlib.h string.h)
   AC_CHECK_DECLS_ONCE([getenv])
 ])
Index: m4/localcharset.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/localcharset.m4,v
retrieving revision 1.1
diff -p -u -r1.1 localcharset.m4
--- m4/localcharset.m4  31 Dec 2002 13:42:07 -0000      1.1
+++ m4/localcharset.m4  27 May 2003 19:03:54 -0000
@@ -9,7 +9,7 @@ dnl the same distribution terms as the r
 AC_DEFUN([gl_LOCALCHARSET],
 [
   dnl Prerequisites of lib/localcharset.c.
-  AC_CHECK_HEADERS_ONCE(stddef.h stdlib.h string.h)
+  AC_CHECK_HEADERS_ONCE(stdlib.h string.h)
   AC_REQUIRE([AM_LANGINFO_CODESET])
   AC_CHECK_FUNCS_ONCE(setlocale)
 
Index: m4/pathmax.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/pathmax.m4,v
retrieving revision 1.1
diff -p -u -r1.1 pathmax.m4
--- m4/pathmax.m4       31 Dec 2002 13:42:07 -0000      1.1
+++ m4/pathmax.m4       27 May 2003 19:03:54 -0000
@@ -9,5 +9,5 @@ dnl the same distribution terms as the r
 AC_DEFUN([gl_PATHMAX],
 [
   dnl Prerequisites of lib/pathmax.h.
-  AC_CHECK_HEADERS_ONCE(limits.h sys/param.h unistd.h)
+  AC_CHECK_HEADERS_ONCE(sys/param.h unistd.h)
 ])
Index: m4/quote.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/quote.m4,v
retrieving revision 1.1
diff -p -u -r1.1 quote.m4
--- m4/quote.m4 31 Dec 2002 13:42:07 -0000      1.1
+++ m4/quote.m4 27 May 2003 19:03:54 -0000
@@ -9,5 +9,5 @@ dnl the same distribution terms as the r
 AC_DEFUN([gl_QUOTE],
 [
   dnl Prerequisites of lib/quote.c.
-  AC_CHECK_HEADERS_ONCE(stddef.h)
+  dnl (none)
 ])
Index: m4/rpmatch.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/rpmatch.m4,v
retrieving revision 1.1
diff -p -u -r1.1 rpmatch.m4
--- m4/rpmatch.m4       31 Dec 2002 13:42:07 -0000      1.1
+++ m4/rpmatch.m4       27 May 2003 19:03:54 -0000
@@ -17,6 +17,5 @@ AC_DEFUN([gl_FUNC_RPMATCH],
 # Prerequisites of lib/rpmatch.c.
 AC_DEFUN([gl_PREREQ_RPMATCH], [
   AC_REQUIRE([AC_HEADER_STDC])
-  AC_CHECK_HEADERS_ONCE(limits.h)
 ])
 
Index: m4/userspec.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/userspec.m4,v
retrieving revision 1.1
diff -p -u -r1.1 userspec.m4
--- m4/userspec.m4      31 Dec 2002 13:42:07 -0000      1.1
+++ m4/userspec.m4      27 May 2003 19:03:54 -0000
@@ -11,5 +11,5 @@ AC_DEFUN([gl_USERSPEC],
   dnl Prerequisites of lib/userspec.c.
   AC_REQUIRE([AC_HEADER_STDC])
   AC_REQUIRE([AC_FUNC_ALLOCA])
-  AC_CHECK_HEADERS_ONCE(limits.h string.h sys/param.h unistd.h)
+  AC_CHECK_HEADERS_ONCE(string.h sys/param.h unistd.h)
 ])
Index: m4/xreadlink.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/xreadlink.m4,v
retrieving revision 1.1
diff -p -u -r1.1 xreadlink.m4
--- m4/xreadlink.m4     31 Dec 2002 13:42:07 -0000      1.1
+++ m4/xreadlink.m4     27 May 2003 19:03:54 -0000
@@ -9,5 +9,5 @@ dnl the same distribution terms as the r
 AC_DEFUN([gl_XREADLINK],
 [
   dnl Prerequisites of lib/xreadlink.c.
-  AC_CHECK_HEADERS_ONCE(limits.h stdlib.h sys/types.h unistd.h)
+  AC_CHECK_HEADERS_ONCE(stdlib.h sys/types.h unistd.h)
 ])
Index: m4/xstrtol.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/xstrtol.m4,v
retrieving revision 1.2
diff -p -u -r1.2 xstrtol.m4
--- m4/xstrtol.m4       31 Dec 2002 13:49:01 -0000      1.2
+++ m4/xstrtol.m4       27 May 2003 19:03:54 -0000
@@ -24,7 +24,7 @@ AC_DEFUN([gl_PREREQ_XSTRTOL],
 [
   AC_REQUIRE([gl_PREREQ_XSTRTOL_H])
   AC_REQUIRE([AC_HEADER_STDC])
-  AC_CHECK_HEADERS_ONCE(limits.h string.h)
+  AC_CHECK_HEADERS_ONCE(string.h)
   AC_CHECK_FUNCS_ONCE(isascii)
   AC_CHECK_DECLS_ONCE(strtol strtoul)
   AC_CHECK_DECLS([strtoimax, strtoumax])




reply via email to

[Prev in Thread] Current Thread [Next in Thread]