diff options
| author | Jan Engelhardt <jengelh@inai.de> | 2012-08-31 03:59:07 +0200 | 
|---|---|---|
| committer | Jan Engelhardt <jengelh@inai.de> | 2012-08-31 04:12:18 +0200 | 
| commit | df60a301bf24c3b3e37188d9da155b97fd6dc076 (patch) | |
| tree | 4c49a41af3e8137b11ce5f8532ba6feef214e07b | |
| parent | 053a4fdf6536ca63ad640d0b75f54c3f4964ca2b (diff) | |
build: separate AC variable replacements from xtables.h
It was/is a bit annoying that modifying xtables.h.in causes configure
to rerun. Split the @foo@ things into a separate file to bypass this.
Signed-off-by: Jan Engelhardt <jengelh@inai.de>
| -rw-r--r-- | .gitignore | 2 | ||||
| -rw-r--r-- | Makefile.am | 2 | ||||
| -rw-r--r-- | configure.ac | 2 | ||||
| -rw-r--r-- | include/Makefile.am | 2 | ||||
| -rw-r--r-- | include/xtables-version.h.in | 2 | ||||
| -rw-r--r-- | include/xtables.h (renamed from include/xtables.h.in) | 3 | 
6 files changed, 7 insertions, 6 deletions
| @@ -9,7 +9,7 @@  Makefile  Makefile.in -/include/xtables.h +/include/xtables-version.h  /include/iptables/internal.h  /aclocal.m4 diff --git a/Makefile.am b/Makefile.am index 4eb63ebe..6400ba41 100644 --- a/Makefile.am +++ b/Makefile.am @@ -27,4 +27,4 @@ tarball:  	rm -Rf /tmp/${PACKAGE_TARNAME}-${PACKAGE_VERSION};  config.status: extensions/GNUmakefile.in \ -	include/xtables.h.in include/iptables/internal.h.in +	include/xtables-version.h.in include/iptables/internal.h.in diff --git a/configure.ac b/configure.ac index 861f5b3e..4060f901 100644 --- a/configure.ac +++ b/configure.ac @@ -127,5 +127,5 @@ AC_CONFIG_FILES([Makefile extensions/GNUmakefile include/Makefile  	libiptc/Makefile libiptc/libiptc.pc  	libiptc/libip4tc.pc libiptc/libip6tc.pc  	libxtables/Makefile utils/Makefile -	include/xtables.h include/iptables/internal.h]) +	include/xtables-version.h include/iptables/internal.h])  AC_OUTPUT diff --git a/include/Makefile.am b/include/Makefile.am index 6f7da598..e6951209 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -1,7 +1,7 @@  # -*- Makefile -*-  include_HEADERS = -nobase_include_HEADERS = xtables.h +nobase_include_HEADERS = xtables.h xtables-version.h  if ENABLE_LIBIPQ  include_HEADERS += libipq/libipq.h diff --git a/include/xtables-version.h.in b/include/xtables-version.h.in new file mode 100644 index 00000000..cb13827c --- /dev/null +++ b/include/xtables-version.h.in @@ -0,0 +1,2 @@ +#define XTABLES_VERSION "libxtables.so.@libxtables_vmajor@" +#define XTABLES_VERSION_CODE @libxtables_vmajor@ diff --git a/include/xtables.h.in b/include/xtables.h index db69c03b..3b15e67e 100644 --- a/include/xtables.h.in +++ b/include/xtables.h @@ -31,8 +31,7 @@  #define IPPROTO_UDPLITE	136  #endif -#define XTABLES_VERSION "libxtables.so.@libxtables_vmajor@" -#define XTABLES_VERSION_CODE @libxtables_vmajor@ +#include <xtables-version.h>  struct in_addr; | 
