[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnulib] check-decl, closeout, gettimeofday, lstat, readdir, readutm
From: |
Paul Eggert |
Subject: |
[Bug-gnulib] check-decl, closeout, gettimeofday, lstat, readdir, readutmp, strtoumax |
Date: |
12 Sep 2003 12:42:51 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
I installed these changes, which should be noncontroversial: they
remove now-unnecessary checks for standard c89 headers.
2003-09-12 Paul Eggert <address@hidden>
* check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
unconditionally.
* closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
* gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
Include <string.h>, <stdlib.h> unconditionally.
* lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
* readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
* readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C headers
or for string.h.
* strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlb.h
or strtoul.
Index: m4/check-decl.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/check-decl.m4,v
retrieving revision 1.28
diff -p -u -r1.28 check-decl.m4
--- m4/check-decl.m4 12 Aug 2001 13:26:00 -0000 1.28
+++ m4/check-decl.m4 12 Sep 2003 19:30:15 -0000
@@ -1,4 +1,4 @@
-#serial 18
+#serial 19
dnl This is just a wrapper function to encapsulate this kludge.
dnl Putting it in a separate file like this helps share it between
@@ -9,19 +9,9 @@ AC_DEFUN([jm_CHECK_DECLS],
AC_REQUIRE([AC_HEADER_TIME])
headers='
#include <stdio.h>
-#if HAVE_STRING_H
-# if !STDC_HEADERS && HAVE_MEMORY_H
-# include <memory.h>
-# endif
-# include <string.h>
-#else
-# if HAVE_STRINGS_H
-# include <strings.h>
-# endif
-#endif
-#if HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <string.h>
+#include <stdlib.h>
+
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
Index: m4/closeout.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/closeout.m4,v
retrieving revision 1.1
diff -p -u -r1.1 closeout.m4
--- m4/closeout.m4 31 Dec 2002 13:42:06 -0000 1.1
+++ m4/closeout.m4 12 Sep 2003 19:30:15 -0000
@@ -1,5 +1,5 @@
-# closeout.m4 serial 1
-dnl Copyright (C) 2002 Free Software Foundation, Inc.
+# closeout.m4 serial 2
+dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
@@ -9,5 +9,5 @@ dnl the same distribution terms as the r
AC_DEFUN([gl_CLOSEOUT],
[
dnl Prerequisites of lib/closeout.c.
- AC_CHECK_HEADERS_ONCE(stdlib.h)
+ :
])
Index: m4/gettimeofday.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/gettimeofday.m4,v
retrieving revision 1.7
diff -p -u -r1.7 gettimeofday.m4
--- m4/gettimeofday.m4 14 Aug 2003 21:59:28 -0000 1.7
+++ m4/gettimeofday.m4 12 Sep 2003 19:30:15 -0000
@@ -1,4 +1,4 @@
-#serial 4
+#serial 5
dnl From Jim Meyering.
dnl
@@ -12,14 +12,11 @@ dnl the wrapper functions that work arou
AC_DEFUN([AC_FUNC_GETTIMEOFDAY_CLOBBER],
[
AC_REQUIRE([AC_HEADER_TIME])
- AC_CHECK_HEADERS_ONCE(stdlib.h string.h)
AC_CACHE_CHECK([whether gettimeofday clobbers localtime buffer],
jm_cv_func_gettimeofday_clobber,
[AC_TRY_RUN([
#include <stdio.h>
-#if HAVE_STRING_H
-# include <string.h>
-#endif
+#include <string.h>
#if TIME_WITH_SYS_TIME
# include <sys/time.h>
@@ -32,9 +29,7 @@ AC_DEFUN([AC_FUNC_GETTIMEOFDAY_CLOBBER],
# endif
#endif
-#if HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
int
main ()
Index: m4/lstat.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/lstat.m4,v
retrieving revision 1.16
diff -p -u -r1.16 lstat.m4
--- m4/lstat.m4 23 Jul 2003 11:08:01 -0000 1.16
+++ m4/lstat.m4 12 Sep 2003 19:30:15 -0000
@@ -1,4 +1,4 @@
-#serial 9
+#serial 10
dnl From Jim Meyering.
dnl Determine whether lstat has the bug that it succeeds when given the
@@ -22,6 +22,5 @@ AC_DEFUN([jm_FUNC_LSTAT],
AC_DEFUN([gl_PREREQ_LSTAT],
[
AC_REQUIRE([AC_HEADER_STAT])
- AC_CHECK_HEADERS_ONCE(stdlib.h)
- AC_CHECK_DECLS_ONCE(free)
+ :
])
Index: m4/readdir.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/readdir.m4,v
retrieving revision 1.11
diff -p -u -r1.11 readdir.m4
--- m4/readdir.m4 16 Aug 2003 09:37:15 -0000 1.11
+++ m4/readdir.m4 12 Sep 2003 19:30:15 -0000
@@ -1,4 +1,4 @@
-#serial 6
+#serial 7
dnl SunOS's readdir is broken in such a way that rm.c has to add extra code
dnl to test whether a NULL return value really means there are no more files
@@ -18,7 +18,6 @@ dnl Written by Jim Meyering.
AC_DEFUN([GL_FUNC_READDIR],
[dnl
AC_REQUIRE([AC_HEADER_DIRENT])
-AC_CHECK_HEADERS_ONCE(string.h)
AC_CACHE_CHECK([for working readdir], gl_cv_func_working_readdir,
[dnl
# Arrange for deletion of the temporary directory this test creates, in
@@ -28,9 +27,7 @@ AC_CACHE_CHECK([for working readdir], gl
AC_TRY_RUN(
[# include <stdio.h>
# include <sys/types.h>
-# if HAVE_STRING_H
-# include <string.h>
-# endif
+# include <string.h>
# ifdef HAVE_DIRENT_H
# include <dirent.h>
Index: m4/readutmp.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/readutmp.m4,v
retrieving revision 1.2
diff -p -u -r1.2 readutmp.m4
--- m4/readutmp.m4 16 Aug 2003 03:51:49 -0000 1.2
+++ m4/readutmp.m4 12 Sep 2003 19:30:15 -0000
@@ -1,4 +1,4 @@
-# readutmp.m4 serial 2
+# readutmp.m4 serial 3
dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
@@ -58,6 +58,5 @@ $ac_includes_default
# Prerequisites of lib/readutmp.c.
AC_DEFUN([gl_PREREQ_READUTMP],
[
- AC_REQUIRE([AC_HEADER_STDC])
- AC_CHECK_HEADERS_ONCE(string.h)
+ :
])
Index: m4/strtoumax.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/strtoumax.m4,v
retrieving revision 1.2
diff -p -u -r1.2 strtoumax.m4
--- m4/strtoumax.m4 17 May 2003 11:52:47 -0000 1.2
+++ m4/strtoumax.m4 12 Sep 2003 19:30:15 -0000
@@ -1,4 +1,4 @@
-# strtoumax.m4 serial 2
+# strtoumax.m4 serial 3
dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
@@ -32,8 +32,6 @@ AC_DEFUN([gl_FUNC_STRTOUMAX],
# Prerequisites of lib/strtoumax.c.
AC_DEFUN([gl_PREREQ_STRTOUMAX], [
jm_AC_TYPE_UINTMAX_T
- AC_CHECK_HEADERS_ONCE(stdlib.h)
- AC_CHECK_DECLS_ONCE(strtoul)
AC_CHECK_DECLS(strtoull)
AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG])
])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-gnulib] check-decl, closeout, gettimeofday, lstat, readdir, readutmp, strtoumax,
Paul Eggert <=