iproute2: fix em_ipset build issue
authorPeter Korsgaard <jacmet@sunsite.dk>
Sat, 3 Nov 2012 15:50:51 +0000 (16:50 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sat, 3 Nov 2012 15:58:25 +0000 (16:58 +0100)
Fixes http://autobuild.buildroot.net/results/be19e39c19b62946ea48dd6b3dfd55f5c3ccd7c9

em_ipset.c uses xtables.h from iptables, but the configure script fails
to to check for this, so forcibly disable it if not available.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/iproute2/iproute2.mk

index 03767ccda81e386ffcee2e82a3a5d2ce5896cd22..6f5ee516074d5a8b9759e7b1b4c6fcefdd3f4e87 100644 (file)
@@ -24,6 +24,11 @@ define IPROUTE2_WITH_IPTABLES
        $(SED) "s/-DIPT/-DXT/" $(IPROUTE2_DIR)/tc/Makefile
        echo "TC_CONFIG_XT:=y" >>$(IPROUTE2_DIR)/Config
 endef
+else
+define IPROUTE2_WITH_IPTABLES
+       # em_ipset needs xtables, but configure misdetects it
+       echo "TC_CONFIG_IPSET:=n" >>$(IPROUTE2_DIR)/Config
+endef
 endif
 
 define IPROUTE2_CONFIGURE_CMDS