summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
Diffstat (limited to 'security')
-rw-r--r--security/PAM/builtin.mk9
1 files changed, 7 insertions, 2 deletions
diff --git a/security/PAM/builtin.mk b/security/PAM/builtin.mk
index 91c7ce1f3ce..8e96806732d 100644
--- a/security/PAM/builtin.mk
+++ b/security/PAM/builtin.mk
@@ -1,8 +1,13 @@
-# $NetBSD: builtin.mk,v 1.3 2004/08/06 03:14:22 reed Exp $
+# $NetBSD: builtin.mk,v 1.4 2004/08/06 15:37:20 jlam Exp $
+
+.include "../../mk/bsd.prefs.mk"
+
+_SECURITY_PAM_APPL_H= /usr/include/security/pam_appl.h
.if !defined(IS_BUILTIN.pam)
IS_BUILTIN.pam= no
-. if exists(/usr/include/security/pam_appl.h) && (${LOCALBASE} != "/usr")
+. if exists(${_SECURITY_PAM_APPL_H}) && \
+ !empty(_SECURITY_PAM_APPL_H:M${LOCALBASE}/*)
IS_BUILTIN.pam= yes
. endif
.endif # IS_BUILTIN.pam