From 2467f4afb3ac9b8ef71271e8152f02563ad208b8 Mon Sep 17 00:00:00 2001 From: jlam Date: Thu, 2 Jun 2005 00:27:22 +0000 Subject: Check that a variable is defined before using it. --- net/bind9/builtin.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'net/bind9') diff --git a/net/bind9/builtin.mk b/net/bind9/builtin.mk index d313b6508c3..0e2987ef934 100644 --- a/net/bind9/builtin.mk +++ b/net/bind9/builtin.mk @@ -1,4 +1,4 @@ -# $NetBSD: builtin.mk,v 1.7 2005/06/01 18:03:07 jlam Exp $ +# $NetBSD: builtin.mk,v 1.8 2005/06/02 00:27:22 jlam Exp $ BUILTIN_PKG:= bind @@ -32,7 +32,8 @@ MAKEVARS+= IS_BUILTIN.bind ### a package name to represent the built-in package. ### .if !defined(BUILTIN_PKG.bind) && \ - !empty(IS_BUILTIN.bind:M[yY][eE][sS]) + !empty(IS_BUILTIN.bind:M[yY][eE][sS]) && \ + defined(BUILTIN_VERSION.bind) BUILTIN_PKG.bind= bind-${BUILTIN_VERSION.bind:Nvers} .endif MAKEVARS+= BUILTIN_PKG.bind -- cgit v1.2.3