warn-on-use: use instead of link-warning
[gnulib.git] / modules / langinfo
1 Description:
2 A GNU-like <langinfo.h>.
3
4 Files:
5 lib/langinfo.in.h
6 m4/langinfo_h.m4
7
8 Depends-on:
9 extensions
10 include_next
11 warn-on-use
12
13 configure.ac:
14 gl_LANGINFO_H
15
16 Makefile.am:
17 BUILT_SOURCES += langinfo.h
18
19 # We need the following in order to create an empty placeholder for
20 # <langinfo.h> when the system doesn't have one.
21 langinfo.h: langinfo.in.h $(WARN_ON_USE_H)
22         $(AM_V_GEN)rm -f $@-t $@ && \
23         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
24           sed -e 's|@''HAVE_LANGINFO_H''@|$(HAVE_LANGINFO_H)|g' \
25               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
26               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
27               -e 's|@''NEXT_LANGINFO_H''@|$(NEXT_LANGINFO_H)|g' \
28               -e 's|@''GNULIB_NL_LANGINFO''@|$(GNULIB_NL_LANGINFO)|g' \
29               -e 's|@''HAVE_LANGINFO_CODESET''@|$(HAVE_LANGINFO_CODESET)|g' \
30               -e 's|@''HAVE_LANGINFO_ERA''@|$(HAVE_LANGINFO_ERA)|g' \
31               -e 's|@''HAVE_NL_LANGINFO''@|$(HAVE_NL_LANGINFO)|g' \
32               -e 's|@''REPLACE_NL_LANGINFO''@|$(REPLACE_NL_LANGINFO)|g' \
33               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
34               < $(srcdir)/langinfo.in.h; \
35         } > $@-t && \
36         mv $@-t $@
37 MOSTLYCLEANFILES += langinfo.h langinfo.h-t
38
39 Include:
40 <langinfo.h>
41
42 License:
43 LGPLv2+
44
45 Maintainer:
46 Bruno Haible