summaryrefslogtreecommitdiff
path: root/modules/maintainer-makefile
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2010-01-25 10:55:34 +0000
committerJim Meyering <meyering@redhat.com>2010-01-25 13:27:18 +0100
commit22970f8ac1f173d882139e4dccc7831871252f47 (patch)
treed9fb436bea4b0cf17a6e8bd50eb233134d30066d /modules/maintainer-makefile
parent6d28070c3cc7a02107bf66402983b9fe4c6f8f6f (diff)
downloadgnulib-22970f8ac1f173d882139e4dccc7831871252f47.tar.gz
syntax-check: detect incorrect boolean macro values in config.h
* modules/maintainer-makefile (configure.ac): Parameterize the location of config.h which will be available to makefiles as $(CONFIG_INCLUDE). The logic is from Eric Blake and the location indicated by Jim Meyering. Note the more natural CONFIG_HEADER name is prohibited by automake for backwards compatibility reasons. * top/maint.mk (sc_Wundef_boolean): New rule.
Diffstat (limited to 'modules/maintainer-makefile')
-rw-r--r--modules/maintainer-makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/maintainer-makefile b/modules/maintainer-makefile
index 21c28020ec..ed43e8790a 100644
--- a/modules/maintainer-makefile
+++ b/modules/maintainer-makefile
@@ -9,6 +9,10 @@ gnumakefile
useless-if-before-free
vc-list-files
+configure.ac:
+AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER],
+ [AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])])
+
License:
GPLed build tool