Before using ABI, make sure include bsd.prefs.mk and check whether it is defined.

This commit is contained in:
obache 2012-02-09 08:49:58 +00:00
parent 99a2b322a7
commit eb0a70f42d

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2012/02/07 11:34:00 fhajny Exp $
# $NetBSD: Makefile,v 1.3 2012/02/09 08:49:58 obache Exp $
#
DISTNAME= libmemcached-1.0.4
@ -19,8 +19,9 @@ USE_LIBTOOL= yes
PKGCONFIG_OVERRIDE+= support/libmemcached.pc.in
.include "../../mk/bsd.prefs.mk"
# Avoid building 64bit on a 32bit bootstrap (affects SunOS)
.if empty(ABI:M64)
.if defined(ABI) && empty(ABI:M64)
CONFIGURE_ARGS+= --disable-64bit
.endif