maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
authorJim Meyering <meyering@redhat.com>
Wed, 27 Jul 2011 18:27:48 +0000 (20:27 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 27 Jul 2011 20:06:27 +0000 (22:06 +0200)
* top/maint.mk (gl_extract_significant_defines_): Now that
SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
gnulib/lib/signal.in.h, and now that we recommend to
define-if-undefined those two symbols in application code,
we must filter them out of the "significant" list.
This avoids a "make syntax-check" failure in coreutils.

ChangeLog
top/maint.mk

index 566156b..aad436b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2011-07-27  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
+       * top/maint.mk (gl_extract_significant_defines_): Now that
+       SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
+       gnulib/lib/signal.in.h, and now that we recommend to
+       define-if-undefined those two symbols in application code,
+       we must filter them out of the "significant" list.
+       This avoids a "make syntax-check" failure in coreutils.
+
 2011-07-26  Eric Blake  <eblake@redhat.com>
 
        warnings: add comments about previous patch
index 9357728..6c1bf44 100644 (file)
@@ -753,6 +753,7 @@ gl_extract_significant_defines_ = \
   /^\# *define ([^_ (][^ (]*)(\s*\(|\s+\w+)/\
     && $$2 !~ /(?:rpl_|_used_without_)/\
     && $$1 !~ /^(?:NSIG)$$/\
+    && $$1 !~ /^(?:SA_RESETHAND|SA_RESTART)$$/\
     and print $$1
 
 # Create a list of regular expressions matching the names