wctype: Ensure valid C syntax.
authorBruno Haible <bruno@clisp.org>
Sun, 23 Jan 2011 11:40:00 +0000 (12:40 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 23 Jan 2011 11:40:00 +0000 (12:40 +0100)
* m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
unconditionally, instead of gl_NEXT_HEADERS conditionally.

m4/wctype_h.m4

index 014d9d6..d2b37ce 100644 (file)
@@ -1,4 +1,4 @@
-# wctype_h.m4 serial 11
+# wctype_h.m4 serial 12
 
 dnl A placeholder for ISO C99 <wctype.h>, for platforms that lack it.
 
@@ -36,7 +36,6 @@ AC_DEFUN([gl_WCTYPE_H],
   AC_SUBST([HAVE_ISWBLANK])
   AC_SUBST([REPLACE_ISWBLANK])
 
-  AC_CHECK_HEADERS_ONCE([wctype.h])
   AC_REQUIRE([AC_C_INLINE])
 
   AC_REQUIRE([gt_TYPE_WINT_T])
@@ -47,6 +46,7 @@ AC_DEFUN([gl_WCTYPE_H],
   fi
   AC_SUBST([HAVE_WINT_T])
 
+  gl_CHECK_NEXT_HEADERS([wctype.h])
   if test $ac_cv_header_wctype_h = yes; then
     if test $ac_cv_func_iswcntrl = yes; then
       dnl Linux libc5 has an iswprint function that returns 0 for all arguments.
@@ -75,7 +75,6 @@ AC_DEFUN([gl_WCTYPE_H],
             ])
         ])
     fi
-    gl_NEXT_HEADERS([wctype.h])
     HAVE_WCTYPE_H=1
   else
     HAVE_WCTYPE_H=0