2 A <wctype.h> that conforms better to C99.
18 BUILT_SOURCES += wctype.h
20 # We need the following in order to create <wctype.h> when the system
21 # doesn't have one that works with the given compiler.
22 wctype.h: wctype.in.h $(CXXDEFS_H) $(WARN_ON_USE_H)
23 $(AM_V_GEN)rm -f $@-t $@ && \
24 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
25 sed -e 's/@''HAVE_WCTYPE_H''@/$(HAVE_WCTYPE_H)/g' \
26 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
27 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
28 -e 's|@''NEXT_WCTYPE_H''@|$(NEXT_WCTYPE_H)|g' \
29 -e 's/@''HAVE_ISWBLANK''@/$(HAVE_ISWBLANK)/g' \
30 -e 's/@''HAVE_ISWCNTRL''@/$(HAVE_ISWCNTRL)/g' \
31 -e 's/@''HAVE_WINT_T''@/$(HAVE_WINT_T)/g' \
32 -e 's/@''REPLACE_ISWCNTRL''@/$(REPLACE_ISWCNTRL)/g' \
33 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
34 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
35 < $(srcdir)/wctype.in.h; \
38 MOSTLYCLEANFILES += wctype.h wctype.h-t