Mercurial > hg > octave-jordi > gnulib-hg
changeset 4694:f411b1e0c5bd
Remove K&R cruft.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Fri, 12 Sep 2003 19:38:19 +0000 |
parents | 490ea9ec1ffb |
children | 4cd5b2420ecf |
files | m4/check-decl.m4 m4/closeout.m4 m4/gettimeofday.m4 m4/lstat.m4 m4/readdir.m4 m4/readutmp.m4 m4/strtoumax.m4 |
diffstat | 7 files changed, 17 insertions(+), 39 deletions(-) [+] |
line wrap: on
line diff
--- a/m4/check-decl.m4 +++ b/m4/check-decl.m4 @@ -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_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
--- a/m4/closeout.m4 +++ b/m4/closeout.m4 @@ -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 @@ AC_DEFUN([gl_CLOSEOUT], [ dnl Prerequisites of lib/closeout.c. - AC_CHECK_HEADERS_ONCE(stdlib.h) + : ])
--- a/m4/gettimeofday.m4 +++ b/m4/gettimeofday.m4 @@ -1,4 +1,4 @@ -#serial 4 +#serial 5 dnl From Jim Meyering. dnl @@ -12,14 +12,11 @@ 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 @@ # endif #endif -#if HAVE_STDLIB_H -# include <stdlib.h> -#endif +#include <stdlib.h> int main ()
--- a/m4/lstat.m4 +++ b/m4/lstat.m4 @@ -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([gl_PREREQ_LSTAT], [ AC_REQUIRE([AC_HEADER_STAT]) - AC_CHECK_HEADERS_ONCE(stdlib.h) - AC_CHECK_DECLS_ONCE(free) + : ])
--- a/m4/readdir.m4 +++ b/m4/readdir.m4 @@ -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 @@ 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_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>
--- a/m4/readutmp.m4 +++ b/m4/readutmp.m4 @@ -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 @@ # Prerequisites of lib/readutmp.c. AC_DEFUN([gl_PREREQ_READUTMP], [ - AC_REQUIRE([AC_HEADER_STDC]) - AC_CHECK_HEADERS_ONCE(string.h) + : ])
--- a/m4/strtoumax.m4 +++ b/m4/strtoumax.m4 @@ -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 @@ # 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]) ])