From 6ac6c7e4b77898d6d82d5565b5d8b053ecacbc64 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 19 Oct 2009 07:55:42 +0200 Subject: build: use gnulib's isblank module * bootstrap.conf (gnulib_modules): Add isblank. * src/system.h (isblank): Don't define. * m4/check-decl.m4: Don't check for isblank declaration. * gnulib: Update submodule to latest. --- bootstrap.conf | 1 + gnulib | 2 +- m4/check-decl.m4 | 4 +--- src/system.h | 4 ---- 4 files changed, 3 insertions(+), 8 deletions(-) diff --git a/bootstrap.conf b/bootstrap.conf index e9b198c53..185748936 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -127,6 +127,7 @@ gnulib_modules=" inttostr inttypes isapipe + isblank lchmod lchown lib-ignore diff --git a/gnulib b/gnulib index 791cc509a..f7f4cd99f 160000 --- a/gnulib +++ b/gnulib @@ -1 +1 @@ -Subproject commit 791cc509ac459a2555f8d633ad67455cf8d3fe4d +Subproject commit f7f4cd99ff9ce8efee94aafdd5980cb4bb1d1395 diff --git a/m4/check-decl.m4 b/m4/check-decl.m4 index 530c59e16..0bd7b549a 100644 --- a/m4/check-decl.m4 +++ b/m4/check-decl.m4 @@ -1,4 +1,4 @@ -#serial 25 +#serial 26 # Check declarations for this package. dnl Copyright (C) 1997-2001, 2003-2006, 2008-2009 Free Software @@ -35,8 +35,6 @@ AC_DEFUN([gl_CHECK_DECLS], getpwuid, ttyname], , , $headers) - AC_CHECK_DECLS([isblank], [], [], [#include ]) - AC_CHECK_DECLS_ONCE([geteuid]) AC_CHECK_DECLS_ONCE([getlogin]) AC_CHECK_DECLS_ONCE([getuid]) diff --git a/src/system.h b/src/system.h index 8de0f3cd2..b4d5e774f 100644 --- a/src/system.h +++ b/src/system.h @@ -212,10 +212,6 @@ enum #include -#if ! (defined isblank || HAVE_DECL_ISBLANK) -# define isblank(c) ((c) == ' ' || (c) == '\t') -#endif - /* ISDIGIT differs from isdigit, as follows: - Its arg may be any int or unsigned int; it need not be an unsigned char or EOF. -- cgit v1.2.3-70-g09d2