2 A <wchar.h> that works around platform issues.
16 BUILT_SOURCES += $(WCHAR_H)
18 # We need the following in order to create <wchar.h> when the system
19 # version does not work standalone.
22 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
23 sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \
24 -e 's|@''NEXT_WCHAR_H''@|$(NEXT_WCHAR_H)|g' \
25 -e 's/@''HAVE_WCHAR_H''@/$(HAVE_WCHAR_H)/g' \
26 -e 's|@''GNULIB_WCWIDTH''@|$(GNULIB_WCWIDTH)|g' \
27 -e 's|@''HAVE_DECL_WCWIDTH''@|$(HAVE_DECL_WCWIDTH)|g' \
28 -e 's|@''REPLACE_WCWIDTH''@|$(REPLACE_WCWIDTH)|g' \
29 -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
30 < $(srcdir)/wchar.in.h; \
33 MOSTLYCLEANFILES += wchar.h wchar.h-t