diff options
author | itojun <itojun@pkgsrc.org> | 2000-11-09 14:02:46 +0000 |
---|---|---|
committer | itojun <itojun@pkgsrc.org> | 2000-11-09 14:02:46 +0000 |
commit | 3e7c6f02b8865106df9ac84a4701c08b5add71cb (patch) | |
tree | 6e03e3f7005af182892cfc4473c26221647667de | |
parent | 3a58c0753fa2dfb43ed960757c0ed0baa0d58ac6 (diff) | |
download | pkgsrc-3e7c6f02b8865106df9ac84a4701c08b5add71cb.tar.gz |
USE_LIBINTL: workaround brokenness in gettext.m4 (configure.in fragment
ships with GNU gettext).
-rw-r--r-- | mk/bsd.pkg.mk | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 88c86f84bb3..422c3387f2b 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.597 2000/11/02 12:17:03 mjl Exp $ +# $NetBSD: bsd.pkg.mk,v 1.598 2000/11/09 14:02:46 itojun Exp $ # # This file is in the public domain. # @@ -201,8 +201,22 @@ DEPENDS+= ncurses>=5.0:../../devel/ncurses DEPENDS+= gtexinfo-3.12:../../devel/gtexinfo .endif -.if defined(USE_LIBINTL) && !exists(/usr/include/libintl.h) +# -lintl in CONFIGURE_ENV is to workaround broken gettext.m4 +# (gettext.m4 does not add -lintl where it should, and fails to detect +# if libintl.a is genuine GNU gettext or not). +.if defined(USE_LIBINTL) +.if exists(/usr/include/libintl.h) +.if defined(GNU_CONFIGURE) +CONFIGURE_ENV+= LIBS="-lintl" +.endif +.else DEPENDS+= gettext-lib>=0.10.35nb1:../../devel/gettext-lib +.if defined(GNU_CONFIGURE) +CPPFLAGS+= -I${LOCALBASE}/include +CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" +CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib -lintl" +.endif +.endif .endif .if defined(USE_LIBTOOL) |