miniupnpd: improve detection of iptables 1.4.16+

This commit is contained in:
Thomas BERNARD 2024-09-29 19:36:17 +02:00 committed by Thomas Bernard
parent f80bb2e111
commit f0ff3a4f4d

5
miniupnpd/configure vendored
View File

@ -615,7 +615,10 @@ case $FW in
fi
elif [ -z "${PKG_CONFIG}" ] ; then
# IPTABLESPATH not defined and no pkg-config
if test -f /usr/include/xtables.h && \
echo "WARNING: no pkg-config and IPTABLESPATH not defined. checking /usr/include/xtables.h"
# since 1.4.16, XTABLES_VERSION_CODE has been moved to xtables-version.h
if test -f /usr/include/xtables-version.h || \
test -f /usr/include/xtables.h && \
grep -q "XTABLES_VERSION_CODE" /usr/include/xtables.h ; then
IPTABLES_143=1
echo "LDLIBS += -liptc" >> ${CONFIG_MK}