summaryrefslogtreecommitdiff
path: root/mk/bdb.buildlink3.mk
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-05-30 10:40:02 +0000
committergrant <grant@pkgsrc.org>2004-05-30 10:40:02 +0000
commitcbd2865637bcdac60c461fb4b4448354d0b49d8d (patch)
tree1811a4782dbb4725bc2f30d5a62563701cc656ff /mk/bdb.buildlink3.mk
parenta2d88842c64e9cf2d22077d652ebd1c1899a4851 (diff)
downloadpkgsrc-cbd2865637bcdac60c461fb4b4448354d0b49d8d.tar.gz
correctly set BDB_TYPE when native db is not available, eg. Solaris,
IRIX using the first BDB_ACCEPTED.
Diffstat (limited to 'mk/bdb.buildlink3.mk')
-rw-r--r--mk/bdb.buildlink3.mk10
1 files changed, 4 insertions, 6 deletions
diff --git a/mk/bdb.buildlink3.mk b/mk/bdb.buildlink3.mk
index 50dc02bd35e..523498c5568 100644
--- a/mk/bdb.buildlink3.mk
+++ b/mk/bdb.buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bdb.buildlink3.mk,v 1.9 2004/05/26 20:26:29 wiz Exp $
+# $NetBSD: bdb.buildlink3.mk,v 1.10 2004/05/30 10:40:02 grant Exp $
#
# This Makefile fragment is meant to be included by packages that
# require a Berkeley DB implementation. bdb.buildlink3.mk will:
@@ -98,16 +98,14 @@ _BDB_TYPE= ${_BDB_DEFAULT}
. for _bdb_ in ${_BDB_ACCEPTED}
. if !empty(_BDB_INSTALLED.${_bdb_}:M[yY][eE][sS])
_BDB_TYPE?= ${_bdb_}
-. else
-_BDB_FIRSTACCEPTED?= ${_bdb_}
. endif
. endfor
#
# ...otherwise, just use the first accepted Berkeley DB package.
#
-. if defined(_BDB_FIRSTACCEPTED)
-_BDB_TYPE?= ${_BDB_FIRSTACCEPTED}
-. endif
+. for _bdb_ in ${_BDB_ACCEPTED:Nnative}
+_BDB_TYPE?= ${_bdb_}
+. endfor
_BDB_TYPE?= none
MAKEFLAGS+= _BDB_TYPE=${_BDB_TYPE}
. endif