From: Jim Meyering Date: Sun, 20 Dec 2009 16:41:12 +0000 (+0100) Subject: build: add a syntax-check X-Git-Tag: v1.4~16 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=a5ca1651a1b564b59a104236d9552d9ae75faf3e;p=debian%2Fgzip build: add a syntax-check * cfg.mk (sc_prohibit_obsolete_HAVE_HEADER_H): New rule. --- diff --git a/cfg.mk b/cfg.mk index d6197e8..ce02851 100644 --- a/cfg.mk +++ b/cfg.mk @@ -41,3 +41,10 @@ bootstrap-tools = autoconf,automake,gnulib export VERBOSE = yes old_NEWS_hash = 22b19691660f1870cec5f64b2c0e4641 + +sc_obs_header_regex = \ + \<(STDC_HEADERS|HAVE_(LIMITS|STRING|UNISTD|STDLIB)_H)\> +sc_prohibit_obsolete_HAVE_HEADER_H: + @re='^[ ]*#[ ]*(el)?if.*$(sc_obs_header_regex)' \ + msg='remove the above obsolete #if...HAVE_HEADER_H test(s)' \ + $(_prohibit_regexp)