]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Dynamically create xtables.h.in with version
authorJan Engelhardt <jengelh@medozas.de>
Tue, 15 Apr 2008 09:15:16 +0000 (11:15 +0200)
committerPatrick McHardy <kaber@trash.net>
Tue, 15 Apr 2008 11:54:07 +0000 (13:54 +0200)
configure.ac
include/xtables.h.in [moved from include/xtables.h with 99% similarity]

index 2d9862efa2e686e6a6d24503fba7aba054b1d907..b6afa349aba877e21e32dd40f771b961f052a271 100644 (file)
@@ -56,4 +56,4 @@ AC_SUBST([kinclude_CFLAGS])
 AC_SUBST([kbuilddir])
 AC_SUBST([ksourcedir])
 AC_SUBST([xtlibdir])
-AC_OUTPUT([Makefile extensions/GNUmakefile libipq/Makefile])
+AC_OUTPUT([Makefile extensions/GNUmakefile libipq/Makefile include/xtables.h])
similarity index 99%
rename from include/xtables.h
rename to include/xtables.h.in
index 5eba8aca092be6adc7afe8aa20c7b1a72210dc10..c8a8746f67280d4b6227a2d7b05c63cf60d04798 100644 (file)
@@ -17,6 +17,8 @@
 #define IPPROTO_UDPLITE        136
 #endif
 
+#define XTABLES_VERSION "@PACKAGE_VERSION@"
+
 /* Include file for additions: new matches and targets. */
 struct xtables_match
 {