summaryrefslogtreecommitdiff
path: root/Makefile.maint
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-09-24 13:41:20 +0000
committerJim Meyering <jim@meyering.net>2005-09-24 13:41:20 +0000
commiteae3fa54bfdc17a383fbfd97e1eb62fbc3ed6e7b (patch)
tree99416a6f8739c85356c83cabcf52d58b15e18e9c /Makefile.maint
parent26ddff0c1728fe5bdbc75d5fc49ce61cbf6a4157 (diff)
downloadcoreutils-eae3fa54bfdc17a383fbfd97e1eb62fbc3ed6e7b.tar.xz
(sc_no_if_have_config_h): New rule.
(syntax-check-rules): Add it.
Diffstat (limited to 'Makefile.maint')
-rw-r--r--Makefile.maint8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile.maint b/Makefile.maint
index cb94c3934..d67ce7931 100644
--- a/Makefile.maint
+++ b/Makefile.maint
@@ -74,6 +74,7 @@ syntax-check-rules = \
sc_dd_max_sym_length \
sc_error_exit_success \
sc_file_system \
+ sc_no_if_have_config_h \
sc_obsolete_symbols \
sc_prohibit_atoi_atof \
sc_prohibit_jm_in_m4 \
@@ -148,6 +149,13 @@ sc_file_system:
'rewrite to use "file system"' 1>&2; \
exit 1; } || :
+sc_no_if_have_config_h:
+ @( $(CVS_LIST) ) > /dev/null 2>&1 || : && \
+ grep '^# *if HAVE_CONFIG_H' \
+ $$($(CVS_LIST) | grep -vEf .x-$@ ) && \
+ { echo '$(ME): found use of #if HAVE_CONFIG_H; use #ifdef' \
+ 1>&2; exit 1; } || :
+
sc_obsolete_symbols:
@( $(CVS_LIST) ) > /dev/null 2>&1 || : && \
grep -E '\<(HAVE_FCNTL_H)\>' \