2 A <locale.h> that conforms to POSIX.
19 BUILT_SOURCES += locale.h
21 # We need the following in order to create <locale.h> when the system
22 # doesn't have one that provides all definitions.
23 locale.h: locale.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
24 $(AM_V_GEN)rm -f $@-t $@ && \
25 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
26 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
27 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
28 -e 's|@''NEXT_LOCALE_H''@|$(NEXT_LOCALE_H)|g' \
29 -e 's|@''GNULIB_DUPLOCALE''@|$(GNULIB_DUPLOCALE)|g' \
30 -e 's|@''HAVE_XLOCALE_H''@|$(HAVE_XLOCALE_H)|g' \
31 -e 's|@''REPLACE_DUPLOCALE''@|$(REPLACE_DUPLOCALE)|g' \
32 -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
33 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
34 < $(srcdir)/locale.in.h; \
37 MOSTLYCLEANFILES += locale.h locale.h-t