gettimeofday: port recent C++ fix to Emacs
[gnulib.git] / modules / snippet / link-warning
1 Description:
2 A C macro for emitting link time warnings.
3
4 Applicability:
5 all
6
7 Files:
8 build-aux/snippet/link-warning.h
9
10 Depends-on:
11
12 configure.ac:
13 AC_REQUIRE([gl_FEATURES_H])
14
15 Makefile.am:
16 # The BUILT_SOURCES created by this Makefile snippet are not used via #include
17 # statements but through direct file reference. Therefore this snippet must be
18 # present in all Makefile.am that need it. This is ensured by the applicability
19 # 'all' defined above.
20
21 BUILT_SOURCES += link-warning.h
22 # The link-warning.h that gets inserted into generated .h files is the same as
23 # build-aux/snippet/link-warning.h, except that it has the copyright header cut
24 # off.
25 link-warning.h: $(top_srcdir)/build-aux/snippet/link-warning.h
26         $(AM_V_GEN)rm -f $@-t $@ && \
27         sed -n -e '/HAVE_FEATURES_H/,$$p' \
28           < $(top_srcdir)/build-aux/snippet/link-warning.h \
29         | sed -e 's|@''HAVE_FEATURES_H''@|$(HAVE_FEATURES_H)|g' \
30           > $@-t && \
31         mv $@-t $@
32 MOSTLYCLEANFILES += link-warning.h link-warning.h-t
33
34 LINK_WARNING_H=link-warning.h
35
36 Include:
37
38 License:
39 LGPLv2+
40
41 Maintainer:
42 Bruno Haible