Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 577464
Collapse All | Expand All

(-)iproute2-4.5.0/configure~ (-1 / +16 lines)
Lines 169-178 Link Here
169
169
170
check_ipt()
170
check_ipt()
171
{
171
{
172
	if ! grep TC_CONFIG_XT Config > /dev/null
172
	if grep -q TC_CONFIG_XT Config
173
	then
173
	then
174
		return
175
	fi
176
177
	cat >$TMPDIR/ipttest.c <<EOF
178
#include <iptables.h>
179
int main() { return 0; }
180
EOF
181
182
	if $CC -std=c90 -I$INCLUDE $IPTC -o $TMPDIR/ipttest $TMPDIR/ipttest.c $IPTL \
183
		$(${PKG_CONFIG} libiptc --cflags --libs 2>/dev/null) -ldl >/dev/null 2>&1
184
	then
185
		echo "TC_CONFIG_IPT:=y" >>Config
174
		echo "using iptables"
186
		echo "using iptables"
187
	else
188
		echo "no"
175
	fi
189
	fi
190
	rm -f $TMPDIR/ipttest.c $TMPDIR/ipttest
176
}
191
}
177
192
178
check_ipt_lib_dir()
193
check_ipt_lib_dir()
(-)iproute2-4.5.0/tc/Makefile~ (-1 / +3 lines)
Lines 88-94 Link Here
88
	CFLAGS += -DTC_CONFIG_XT_H
88
	CFLAGS += -DTC_CONFIG_XT_H
89
	TCSO += m_xt_old.so
89
	TCSO += m_xt_old.so
90
    else
90
    else
91
      TCMODULES += m_ipt.o
91
      ifeq ($(TC_CONFIG_IPT),y)
92
        TCMODULES += m_ipt.o
93
      endif
92
    endif
94
    endif
93
  endif
95
  endif
94
endif
96
endif

Return to bug 577464