tests: fix license on several tests
[gnulib.git] / modules / strings
index 7936bc1..33c0608 100644 (file)
@@ -8,6 +8,7 @@ m4/strings_h.m4
 Depends-on:
 include_next
 link-warning
+arg-nonnull
 
 configure.ac:
 gl_HEADER_STRINGS_H
@@ -17,8 +18,8 @@ BUILT_SOURCES += strings.h
 
 # We need the following in order to create <strings.h> when the system
 # doesn't have one that works with the given compiler.
-strings.h: strings.in.h
-       rm -f $@-t $@
+strings.h: strings.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
+       $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
          sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
              -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
@@ -26,13 +27,14 @@ strings.h: strings.in.h
              -e 's|@''HAVE_STRCASECMP''@|$(HAVE_STRCASECMP)|g' \
              -e 's|@''HAVE_DECL_STRNCASECMP''@|$(HAVE_DECL_STRNCASECMP)|g' \
              -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
+             -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
              < $(srcdir)/strings.in.h; \
-       } > $@-t
+       } > $@-t && \
        mv $@-t $@
 MOSTLYCLEANFILES += strings.h strings.h-t
 
 Include:
-#include <strings.h>
+<strings.h>
 
 License:
 LGPLv2+