NEWS.stable: log cherry-pick [3180807]->[768eb31] doc/lgpl-2.1.texi
[gnulib.git] / modules / link-warning
index 6b998f5..06f3675 100644 (file)
@@ -1,21 +1,31 @@
 Description:
 A C macro for emitting link time warnings.
 
+Applicability:
+all
+
 Files:
 build-aux/link-warning.h
 
 Depends-on:
 
 configure.ac:
+AC_REQUIRE([gl_FEATURES_H])
 
 Makefile.am:
+# The BUILT_SOURCES created by this Makefile snippet are not used via #include
+# statements but through direct file reference. Therefore this snippet must be
+# present in all Makefile.am that need it. This is ensured by the applicability
+# 'all' defined above.
+
 BUILT_SOURCES += link-warning.h
 # The link-warning.h that gets inserted into generated .h files is the same as
 # build-aux/link-warning.h, except that it has the copyright header cut off.
 link-warning.h: $(top_srcdir)/build-aux/link-warning.h
        $(AM_V_GEN)rm -f $@-t $@ && \
-       sed -n -e '/GL_LINK_WARNING/,$$p' \
+       sed -n -e '/HAVE_FEATURES_H/,$$p' \
          < $(top_srcdir)/build-aux/link-warning.h \
+       | sed -e 's|@''HAVE_FEATURES_H''@|$(HAVE_FEATURES_H)|g' \
          > $@-t && \
        mv $@-t $@
 MOSTLYCLEANFILES += link-warning.h link-warning.h-t