* lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
authorEric Blake <ebb9@byu.net>
Wed, 10 Jan 2007 18:25:49 +0000 (18:25 +0000)
committerEric Blake <ebb9@byu.net>
Wed, 10 Jan 2007 18:25:49 +0000 (18:25 +0000)
* m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
* modules/wctype (Makefile.am): Likewise.
Reported by Chris McGuire.

ChangeLog
lib/wctype_.h
m4/wctype.m4
modules/wctype

index ac7722d3b4b69d82f6db7bf76f0a79aeda5dace6..e93b10c16a8ecbcc9e0bb6b4adc1ef82428f869d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-01-10  Eric Blake  <ebb9@byu.net>
+
+       * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
+       * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
+       * modules/wctype (Makefile.am): Likewise.
+       Reported by Chris McGuire.
+
 2007-01-10  Jim Meyering  <jim@meyering.net>
 
        fts.c: a small readability/maintainability improvement
index 6a3c05653ca1609ac1513faae408a4ecf69059d9..3cd3c8750d1692dd02ba83fb6a2ecfe79142d2a8 100644 (file)
@@ -29,7 +29,7 @@
 #ifndef _GL_WCTYPE_H
 #define _GL_WCTYPE_H
 
-#if @HAVE_WINT_T@ - 0
+#if HAVE_WINT_T - 0
 /* Solaris 2.5 has a bug: <wchar.h> must be included before <wctype.h>.
    Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
    <wchar.h>.
index 9d5fe3ff96e3413cc386d23601063a0b80d16599..001d54edb1ee05924cb1a1b0c60579ff61bedf37 100644 (file)
@@ -7,6 +7,8 @@ dnl with or without modifications, as long as this notice is preserved.
 
 dnl Written by Paul Eggert.
 
+# wctype.m4 serial 2
+
 AC_DEFUN([gl_WCTYPE_H],
 [
   AC_CHECK_FUNCS_ONCE([iswcntrl])
@@ -14,7 +16,6 @@ AC_DEFUN([gl_WCTYPE_H],
   AC_REQUIRE([AC_C_INLINE])
 
   AC_REQUIRE([gt_TYPE_WINT_T])
-  AC_SUBST([HAVE_WINT_T])
 
   WCTYPE_H=wctype.h
   if test $ac_cv_header_wctype_h = yes; then
index a6fd3467e9aedcf79e0db2816a49c250ec4f04f5..e514a2d9aaaa5ec0e68cd421d3a49fb595221310 100644 (file)
@@ -23,7 +23,6 @@ wctype.h: wctype_.h
          sed -e 's/@''HAVE_WCTYPE_H''@/$(HAVE_WCTYPE_H)/g' \
              -e 's|@''ABSOLUTE_WCTYPE_H''@|$(ABSOLUTE_WCTYPE_H)|g' \
              -e 's/@''HAVE_WCTYPE_CTMP_BUG''@/$(HAVE_WCTYPE_CTMP_BUG)/g' \
-             -e 's/@''HAVE_WINT_T''@/$(HAVE_WINT_T)/g' \
              < $(srcdir)/wctype_.h; \
        } > $@-t
        mv $@-t $@