X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=modules%2Flink-warning;h=06f3675cb1bd81d86448ca9c7f979020759a55d9;hb=8248d1a430eb615a0fd0fd49988b830198e0a9eb;hp=94fca4fcb268f367d0959ada1bf068afd5c8b560;hpb=5d2cd3c5f067d383355242cfbc575e544e8a0eb4;p=gnulib.git diff --git a/modules/link-warning b/modules/link-warning index 94fca4fcb..06f3675cb 100644 --- a/modules/link-warning +++ b/modules/link-warning @@ -1,20 +1,41 @@ 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: -LINK_WARNING_H=$(top_srcdir)/build-aux/link-warning.h +# 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 '/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 + +LINK_WARNING_H=link-warning.h Include: License: -LGPL +LGPLv2+ Maintainer: Bruno Haible