diff options
author | schmonz <schmonz> | 2002-12-18 06:18:14 +0000 |
---|---|---|
committer | schmonz <schmonz> | 2002-12-18 06:18:14 +0000 |
commit | 63729b85b3259e0cca81f3e609b6dd14a22dcb2e (patch) | |
tree | 9347da4ab63c084c93d04d8e5471cd96f8119f9f /mk/bsd.prefs.mk | |
parent | d8f50068fd4537cc8160d82b79763ca6ab6b392e (diff) | |
download | pkgsrc-63729b85b3259e0cca81f3e609b6dd14a22dcb2e.tar.gz |
Introduce _OPSYS_HAS_INET6, and use it to determine the default
value of USE_INET6.
Diffstat (limited to 'mk/bsd.prefs.mk')
-rw-r--r-- | mk/bsd.prefs.mk | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk index 49fd9b3d271..2cb550d7898 100644 --- a/mk/bsd.prefs.mk +++ b/mk/bsd.prefs.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.prefs.mk,v 1.96 2002/12/15 01:15:24 taca Exp $ +# $NetBSD: bsd.prefs.mk,v 1.97 2002/12/18 06:18:14 schmonz Exp $ # # Make file, included to get the site preferences, if any. Should # only be included by package Makefiles before any .if defined() @@ -193,23 +193,6 @@ SHAREMODE?= ${DOCMODE} @${FALSE} .endif -# if the system is IPv6-ready, compile with IPv6 support turned on. -.if (${OPSYS} == "NetBSD") && !defined(USE_SOCKS) && \ - exists(/usr/include/netinet6) -USE_INET6?= YES -.elif ${OPSYS} == "SunOS" && exists(/usr/include/netinet/ip6.h) -USE_INET6?= YES -.elif ${OPSYS} == "Darwin" -. if ${OS_VERSION} < 6.0 -USE_INET6?= NO -. endif -# other KAME -.elif exists(/usr/include/netinet6) -USE_INET6?= YES -.else -USE_INET6?= NO -.endif - # Preload all default values for CFLAGS, LDFLAGS, etc. before bsd.pkg.mk # or a pkg Makefile modifies them. .include <sys.mk> @@ -230,6 +213,13 @@ USE_INET6?= NO .include "${.CURDIR}/mk/defs.NetBSD.mk" .endif +# if the system is IPv6-ready, compile with IPv6 support turned on. +.if empty(_OPSYS_HAS_INET6:M[nN][oO]) && !defined(USE_SOCKS) +USE_INET6?= YES +.else +USE_INET6?= NO +.endif + LOCALBASE?= ${DESTDIR}/usr/pkg .if ${OPSYS} == "SunOS" # On Solaris, we default to using OpenWindows for X11. |