summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>2008-04-15 11:54:07 +0000
committer/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>2008-04-15 11:54:07 +0000
commit5fd85b2ef17b34e25538df8fb79bc00939fae45d (patch)
treee5fd2af55f674b0bfd27d360212e4ccabec6079d
parent1bb26bbd53e89a444e595b7361f64d498a3428ac (diff)
[PATCH 07/10] Dynamically create xtables.h.in with version
-rw-r--r--configure.ac2
-rw-r--r--include/xtables.h.in (renamed from include/xtables.h)2
2 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 2d9862e..b6afa34 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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])
diff --git a/include/xtables.h b/include/xtables.h.in
index 5eba8ac..c8a8746 100644
--- a/include/xtables.h
+++ b/include/xtables.h.in
@@ -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
{