]> git.ipfire.org Git - thirdparty/iptables.git/commit
src: replace IPTABLES_VERSION by PACKAGE_VERSION
authorJan Engelhardt <jengelh@inai.de>
Tue, 28 May 2019 09:43:26 +0000 (11:43 +0200)
committerFlorian Westphal <fw@strlen.de>
Thu, 30 May 2019 20:43:17 +0000 (22:43 +0200)
commit093cec72e7f7793d55fa1547cadb6655104feb5e
tree237bfd5ed2672fd18dc93a21dc53ddb11b29de82
parenta84b12c69dcd57eb7df19e59b85af0fb5d98a81b
src: replace IPTABLES_VERSION by PACKAGE_VERSION

The IPTABLES_VERSION C macro replicates the PACKAGE_VERSION C macro
(both have the same definition, "@PACKAGE_VERSION@"). Since
IPTABLES_VERSION, being located in internal.h, is not exposed to
downstream users in any way, it can just be replaced by
PACKAGE_VERSION, which saves a configure-time file substitution.
This goes towards eliminating unnecessary rebuilds after rerunning
./configure.

Signed-off-by: Jan Engelhardt <jengelh@inai.de>
Signed-off-by: Florian Westphal <fw@strlen.de>
16 files changed:
.gitignore
Makefile.am
configure.ac
include/iptables/internal.h [moved from include/iptables/internal.h.in with 81% similarity]
iptables/ip6tables.c
iptables/iptables-restore.c
iptables/iptables-save.c
iptables/iptables-xml.c
iptables/iptables.c
iptables/xtables-arp.c
iptables/xtables-eb.c
iptables/xtables-monitor.c
iptables/xtables-restore.c
iptables/xtables-save.c
iptables/xtables-translate.c
iptables/xtables.c