diff options
author | jlam <jlam> | 2006-03-30 18:06:17 +0000 |
---|---|---|
committer | jlam <jlam> | 2006-03-30 18:06:17 +0000 |
commit | a35f9b4747edb8252e3b814ea5580fd22f62dc6b (patch) | |
tree | a4e8c404ab7153a9727f5d7f913a25bdd6b97971 /devel/zlib | |
parent | a363c62fe6f0f041b9e87d700fa75aa44358a5d9 (diff) | |
download | pkgsrc-a35f9b4747edb8252e3b814ea5580fd22f62dc6b.tar.gz |
Avoid extra stat() calls by not repeatedly checking whether a file
exists on the disk -- we can just check whether a variable defined by
find-files.mk is "__nonexistent__" or not.
Diffstat (limited to 'devel/zlib')
-rw-r--r-- | devel/zlib/builtin.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/devel/zlib/builtin.mk b/devel/zlib/builtin.mk index cfc48374a44..26080ad9a86 100644 --- a/devel/zlib/builtin.mk +++ b/devel/zlib/builtin.mk @@ -1,4 +1,4 @@ -# $NetBSD: builtin.mk,v 1.3 2005/06/01 18:02:45 jlam Exp $ +# $NetBSD: builtin.mk,v 1.4 2006/03/30 18:06:17 jlam Exp $ BUILTIN_PKG:= zlib @@ -13,7 +13,7 @@ BUILTIN_FIND_FILES.H_ZLIB= /usr/include/zlib.h ### .if !defined(IS_BUILTIN.zlib) IS_BUILTIN.zlib= no -. if empty(H_ZLIB:M${LOCALBASE}/*) && exists(${H_ZLIB}) +. if empty(H_ZLIB:M__nonexistent__) && empty(H_ZLIB:M${LOCALBASE}/*) IS_BUILTIN.zlib= yes . endif .endif @@ -25,7 +25,7 @@ MAKEVARS+= IS_BUILTIN.zlib ### .if !defined(BUILTIN_PKG.zlib) && \ !empty(IS_BUILTIN.zlib:M[yY][eE][sS]) && \ - exists(${H_ZLIB}) + empty(H_ZLIB:M__nonexistent__) BUILTIN_VERSION.zlib!= \ ${AWK} '/\#define[ ]*ZLIB_VERSION/ { \ vers = $$3; \ |