diff options
author | hubertf <hubertf@pkgsrc.org> | 2000-09-25 12:47:44 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 2000-09-25 12:47:44 +0000 |
commit | d45b6cd547a83eed50543b055f7c7c6191e66028 (patch) | |
tree | ef7b7b852c24dcfa331224d2f9e538dfeeee5776 /devel/libsmi/Makefile | |
parent | da25bc0f03149d1330f3bded82267338501b9ebb (diff) | |
download | pkgsrc-d45b6cd547a83eed50543b055f7c7c6191e66028.tar.gz |
Make this compile on alpha, but keep backward compatibility for systems that
don't have strtoll, strtoull.
Discussed with Kazuki Sakamoto <sakamoto@splhack.org>
Diffstat (limited to 'devel/libsmi/Makefile')
-rw-r--r-- | devel/libsmi/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/devel/libsmi/Makefile b/devel/libsmi/Makefile index e127597b910..8a425afaa6f 100644 --- a/devel/libsmi/Makefile +++ b/devel/libsmi/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2000/08/14 17:51:20 wiz Exp $ +# $NetBSD: Makefile,v 1.4 2000/09/25 12:47:44 hubertf Exp $ # DISTNAME= libsmi-0.1.6 @@ -13,11 +13,16 @@ MIBDIR= ${PREFIX}/share/libsmi/mibs USE_LIBTOOL= YES LTCONFIG_OVERRIDE=${WRKSRC}/ltconfig GNU_CONFIGURE= YES -CPPFLAGS+= -Dstrtoll=strtoq -Dstrtoull=strtouq -CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" CONFIGURE_ARGS+=--with-mibdir="${MIBDIR}" # this might make it easier to use scotty's and ucd-snmp's mibs, # and local ones too CONFIGURE_ARGS+=--with-smipath="${MIBDIR}:${PREFIX}/share/snmp/mibs:${PREFIX}/lib/tnm2.1.8/mibs:/usr/local/share/snmp/mibs" +# Only for systems that don't have these: +.include "../../mk/bsd.prefs.mk" +.if ${OS_VERSION:M1.4} || ${OS_VERSION:M1.3} || ${OS_VERSION:M1.2} +CPPFLAGS+= -Dstrtoll=strtoq -Dstrtoull=strtouq +CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" +.endif + .include "../../mk/bsd.pkg.mk" |