diff options
author | Bruno Haible <bruno@clisp.org> | 2010-09-02 11:15:39 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2010-09-02 11:17:10 +0200 |
commit | 0ad84b5297860975e72ef9a27e2c3218c3628b33 (patch) | |
tree | 91db7f93cfa2d31c871321ecdf7e3a4a996b6151 /m4 | |
parent | 033113d09f2bf94d366c6ddf1fbad47fed94f909 (diff) | |
download | gnulib-0ad84b5297860975e72ef9a27e2c3218c3628b33.tar.gz |
wctype: Avoid compilation error on IRIX 6.5.30.
* lib/wctype.in.h (iswblank): Declare with a replacement if
REPLACE_ISWBLANK is set.
* m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
declared. Set REPLACE_ISWBLANK.
* modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
* doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
* doc/posix-headers/wctype.texi: Likewise.
Reported by Tom G. Christensen <tgc@jupiterrise.com>.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/wctype_h.m4 | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/m4/wctype_h.m4 b/m4/wctype_h.m4 index 3292451477..7323e54429 100644 --- a/m4/wctype_h.m4 +++ b/m4/wctype_h.m4 @@ -1,4 +1,4 @@ -# wctype_h.m4 serial 6 +# wctype_h.m4 serial 7 dnl A placeholder for ISO C99 <wctype.h>, for platforms that lack it. @@ -21,12 +21,21 @@ AC_DEFUN([gl_WCTYPE_H], fi AC_SUBST([HAVE_ISWCNTRL]) AC_CHECK_FUNCS_ONCE([iswblank]) + AC_CHECK_DECLS_ONCE([iswblank]) if test $ac_cv_func_iswblank = yes; then HAVE_ISWBLANK=1 + REPLACE_HAVE_ISWBLANK=0 else HAVE_ISWBLANK=0 + if test $ac_cv_have_decl_iswblank = yes; then + REPLACE_HAVE_ISWBLANK=1 + else + REPLACE_HAVE_ISWBLANK=0 + fi fi AC_SUBST([HAVE_ISWBLANK]) + AC_SUBST([REPLACE_ISWBLANK]) + AC_CHECK_HEADERS_ONCE([wctype.h]) AC_REQUIRE([AC_C_INLINE]) |