aboutsummaryrefslogtreecommitdiff
path: root/package/ipsec-tools
diff options
context:
space:
mode:
authorGravatar Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-06-26 17:45:08 +0000
committerGravatar Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-06-26 17:45:08 +0000
commitf203aaf7c03e5f17f36e4d0b584dcba9400a68a6 (patch)
tree9632be16523150ed97654d13b220f5a3428fcf11 /package/ipsec-tools
parent4ec94aed2e2478e36f87a0cdf8927c4076cccec0 (diff)
downloadbuildroot-f203aaf7c03e5f17f36e4d0b584dcba9400a68a6.tar.gz
buildroot-f203aaf7c03e5f17f36e4d0b584dcba9400a68a6.tar.bz2
- use BR2_INET_IPV6
Diffstat (limited to 'package/ipsec-tools')
-rw-r--r--package/ipsec-tools/Config.in2
-rw-r--r--package/ipsec-tools/ipsec-tools.mk8
2 files changed, 4 insertions, 6 deletions
diff --git a/package/ipsec-tools/Config.in b/package/ipsec-tools/Config.in
index e7a948905e..f868c6bb07 100644
--- a/package/ipsec-tools/Config.in
+++ b/package/ipsec-tools/Config.in
@@ -44,7 +44,7 @@ config BR2_PACKAGE_IPSEC_TOOLS_STATS
config BR2_PACKAGE_IPSEC_TOOLS_IPV6
default y
- depends on BR2_PACKAGE_IPSEC_TOOLS
+ depends on BR2_PACKAGE_IPSEC_TOOLS && BR2_INET_IPV6
bool "Enable IPv6 support"
help
This option has no effect if uClibc has been compiled without
diff --git a/package/ipsec-tools/ipsec-tools.mk b/package/ipsec-tools/ipsec-tools.mk
index d6b9c7bbe1..52e53f25ac 100644
--- a/package/ipsec-tools/ipsec-tools.mk
+++ b/package/ipsec-tools/ipsec-tools.mk
@@ -42,18 +42,16 @@ else
IPSEC_TOOLS_CONFIG_FLAGS+= --disable-stats
endif
-# At first check, if uClibc supports IPv6
-ifeq ($(shell grep -qs '__UCLIBC_HAS_IPV6__ 1' \
- $(STAGING_DIR)/include/bits/uClibc_config.h && echo IPV6), IPV6)
+ifeq ($(BR2_INET_IPV6),y)
ifeq ($(strip $(BR2_PACKAGE_IPSEC_TOOLS_IPV6)), y)
IPSEC_TOOLS_CONFIG_FLAGS+= --enable-ipv6
else
-IPSEC_TOOLS_CONFIG_FLAGS+= --disable-ipv6
+IPSEC_TOOLS_CONFIG_FLAGS+= $(DISABLE_IPV6)
endif
else # ignore user's choice if it doesn't
-IPSEC_TOOLS_CONFIG_FLAGS+= --disable-ipv6
+IPSEC_TOOLS_CONFIG_FLAGS+= $(DISABLE_IPV6)
endif
ifneq ($(strip $(BR2_PACKAGE_IPSEC_TOOLS_READLINE)), y)