I needed that option to compile the DHCP client on an IPv4-only
uclibc-based target system.

Signed-off-by: Bernhard Walle <[email protected]>
---
 rules/dhcp.in   |    7 +++++++
 rules/dhcp.make |    2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/rules/dhcp.in b/rules/dhcp.in
index f2b920c..57dc1db 100644
--- a/rules/dhcp.in
+++ b/rules/dhcp.in
@@ -16,6 +16,13 @@ menuconfig DHCP
 
 if DHCP
 
+config DHCP_DHCPV6
+       bool
+       prompt "Enable DHCPv6"
+       default y
+       help
+         Enables/disables the DHCPv6 protocol.
+
 config DHCP_SERVER
        bool
        prompt "DHCP Server dhcpd"
diff --git a/rules/dhcp.make b/rules/dhcp.make
index fc42a87..ab1b42e 100644
--- a/rules/dhcp.make
+++ b/rules/dhcp.make
@@ -38,7 +38,7 @@ DHCP_DIR      := $(BUILDDIR)/$(DHCP)
 #
 DHCP_AUTOCONF := \
        $(CROSS_AUTOCONF_ROOT) \
-       --enable-dhcpv6
+       --$(call ptx/endis, PTXCONF_DHCP_DHCPV6)-dhcpv6
 
 # overwrite CFLAGS to remove -Werror
 DHCP_MAKE_OPT := \
-- 
1.7.9.5


-- 
ptxdist mailing list
[email protected]

Reply via email to