X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fwctype_h.m4;h=bc6b6e791438c81de55e934b305bdd51dbe0e44c;hb=423d3cac13c30bb0d5f85e5fac6ab1406ed1731a;hp=329245147797273006eea0c3207487d7c249a854;hpb=cbe58fc8e512953696f9b034afbe7807eaed7fe6;p=gnulib.git diff --git a/m4/wctype_h.m4 b/m4/wctype_h.m4 index 329245147..bc6b6e791 100644 --- a/m4/wctype_h.m4 +++ b/m4/wctype_h.m4 @@ -1,4 +1,4 @@ -# wctype_h.m4 serial 6 +# wctype_h.m4 serial 8 dnl A placeholder for ISO C99 , 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_ISWBLANK=0 else HAVE_ISWBLANK=0 + if test $ac_cv_have_decl_iswblank = yes; then + REPLACE_ISWBLANK=1 + else + REPLACE_ISWBLANK=0 + fi fi AC_SUBST([HAVE_ISWBLANK]) + AC_SUBST([REPLACE_ISWBLANK]) + AC_CHECK_HEADERS_ONCE([wctype.h]) AC_REQUIRE([AC_C_INLINE])