znc: control ipv6 support based on DISTRO_FEATURES

Add PACKAGECONFIG for ipv6 and control it based
on DISTRO_FEATURES.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
This commit is contained in:
Jackie Huang 2016-08-24 17:06:59 +08:00 committed by Joe MacDonald
parent 940a621f19
commit 20681efaff

View File

@ -21,6 +21,9 @@ S = "${WORKDIR}/git"
inherit autotools-brokensep pkgconfig
PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', d)}"
PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
# ZNC has a custom autogen.sh that states that this command is needed *and* expected to fail
do_configure_prepend() {
automake --add-missing || true