changeset 14311:fca8886d4520

iswblank: Ensure declaration on glibc systems. * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS. * modules/iswblank (Dependencies): Add 'extensions'. * doc/posix-functions/iswblank.texi: Document the glibc problem.
author Bruno Haible <bruno@clisp.org>
date Sun, 06 Feb 2011 22:12:25 +0100
parents 00537d144c48
children e8b52e48a3ab
files ChangeLog doc/posix-functions/iswblank.texi m4/iswblank.m4 modules/iswblank
diffstat 4 files changed, 14 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Feb 06 22:07:24 2011 +0100
+++ b/ChangeLog	Sun Feb 06 22:12:25 2011 +0100
@@ -1,3 +1,10 @@
+2011-02-06  Bruno Haible  <bruno@clisp.org>
+
+	iswblank: Ensure declaration on glibc systems.
+	* m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
+	* modules/iswblank (Dependencies): Add 'extensions'.
+	* doc/posix-functions/iswblank.texi: Document the glibc problem.
+
 2011-02-06  Bruno Haible  <bruno@clisp.org>
 
 	New module 'iswblank'.
--- a/doc/posix-functions/iswblank.texi	Sun Feb 06 22:07:24 2011 +0100
+++ b/doc/posix-functions/iswblank.texi	Sun Feb 06 22:12:25 2011 +0100
@@ -15,6 +15,9 @@
 This function is declared but not defined on some platforms:
 IRIX 6.5.30.
 @item
+This function is not declared (without @code{-D_GNU_SOURCE}) on some platforms:
+glibc 2.8.
+@item
 This function returns 0 for all possible arguments on some platforms:
 Linux libc5.
 @end itemize
--- a/m4/iswblank.m4	Sun Feb 06 22:07:24 2011 +0100
+++ b/m4/iswblank.m4	Sun Feb 06 22:12:25 2011 +0100
@@ -1,4 +1,4 @@
-# iswblank.m4 serial 1
+# iswblank.m4 serial 2
 dnl Copyright (C) 2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -8,6 +8,8 @@
 [
   AC_REQUIRE([gl_WCTYPE_H_DEFAULTS])
   AC_REQUIRE([gl_WCTYPE_H])
+  dnl Persuade glibc <wctype.h> to declare iswblank().
+  AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
   AC_CHECK_FUNCS_ONCE([iswblank])
   AC_CHECK_DECLS_ONCE([iswblank])
   if test $ac_cv_func_iswblank = no; then
--- a/modules/iswblank	Sun Feb 06 22:07:24 2011 +0100
+++ b/modules/iswblank	Sun Feb 06 22:12:25 2011 +0100
@@ -7,6 +7,7 @@
 
 Depends-on:
 wctype-h
+extensions
 
 configure.ac:
 gl_FUNC_ISWBLANK