summaryrefslogtreecommitdiff
path: root/mk/bsd.prefs.mk
diff options
context:
space:
mode:
authoritojun <itojun@pkgsrc.org>2000-01-24 07:04:28 +0000
committeritojun <itojun@pkgsrc.org>2000-01-24 07:04:28 +0000
commit2b821a1bf95d10326e713c80a3c6f7164ed577c7 (patch)
treebbcb8c6ac1f72e1e8775e1315675d94c4be028f4 /mk/bsd.prefs.mk
parent2d444e46651fc19374c5b6e1abe9ff8f8af5157d (diff)
downloadpkgsrc-2b821a1bf95d10326e713c80a3c6f7164ed577c7.tar.gz
make USE_INET6=YES a default, if the package is compiled on IPv6-ready
userland (checked by existence of /sbin/ping6). with the change, the default value for USE_INET6 will be like this: - non-NetBSD: undefined - NetBSD releases prior and including 1.4.x: undefined - NetBSD-current (pre-1.5) prior to IPv6 integration: undefined - NetBSD-current after IPv6 integration: USE_INET6=YES It is advised to obey the default.
Diffstat (limited to 'mk/bsd.prefs.mk')
-rw-r--r--mk/bsd.prefs.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk
index da053f199bc..394f6922fdc 100644
--- a/mk/bsd.prefs.mk
+++ b/mk/bsd.prefs.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.13 1999/09/18 15:33:55 kim Exp $
+# $NetBSD: bsd.prefs.mk,v 1.14 2000/01/24 07:04:28 itojun Exp $
#
# Make file, included to get the site preferences, if any. Should
# only be included by package Makefiles before any .if defined()
@@ -92,6 +92,11 @@ MAKE_ENV+= EXTRA_SYS_MK_INCLUDES="<bsd.own.mk>"
@${FALSE}
.endif
+# if the system is IPv6-ready NetBSD, compile with IPv6 support turned on.
+.if (${OPSYS} == "NetBSD") && exists(/sbin/ping6)
+USE_INET6?= YES
+.endif
+
# Preload all default values for CFLAGS, LDFLAGS, etc. before bsd.pkg.mk
# or a pkg Makefile modifies them.
.include <sys.mk>