pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/gettext-lib older versions of GNU gettext do not...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/38ed1ca37109
branches:  trunk
changeset: 481418:38ed1ca37109
user:      grant <grant%pkgsrc.org@localhost>
date:      Mon Oct 04 10:42:39 2004 +0000

description:
older versions of GNU gettext do not provide ngettext() and a bunch
of other functions. only consider the base system's gettext suitable
if it provides at least ngettext().

diffstat:

 devel/gettext-lib/builtin.mk |  20 +++++++++++++++-----
 1 files changed, 15 insertions(+), 5 deletions(-)

diffs (36 lines):

diff -r 382562d4ea71 -r 38ed1ca37109 devel/gettext-lib/builtin.mk
--- a/devel/gettext-lib/builtin.mk      Mon Oct 04 09:48:17 2004 +0000
+++ b/devel/gettext-lib/builtin.mk      Mon Oct 04 10:42:39 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.9 2004/10/03 22:37:16 heinz Exp $
+# $NetBSD: builtin.mk,v 1.10 2004/10/04 10:42:39 grant Exp $
 
 .if !defined(_BLNK_LIBINTL_FOUND)
 _BLNK_LIBINTL_FOUND!=  \
@@ -66,12 +66,22 @@
 .  endif
 
 .  if ${PREFER.gettext} == "native"
-# XXX
-# XXX By default, assume that the native gettext implementation is good
-# XXX enough.
-# XXX
+#
+# By default, assume that the native gettext implementation is good
+# enough if it has a prototype for ngettext().
+#
 .    if exists(${_LIBINTL_H})
+_GETTEXT_NGETTEXT!=    \
+       if ${GREP} -q ngettext ${_LIBINTL_H}; then                      \
+               echo yes;                                               \
+       else                                                            \
+               echo no;                                                \
+       fi
+.      if !empty(_GETTEXT_NGETTEXT:Myes)
 USE_BUILTIN.gettext=   yes
+.      else
+USE_BUILTIN.gettext=   no
+.      endif
 #
 # The listed platforms have an implementation of gettext that isn't
 # GNUish enough.



Home | Main Index | Thread Index | Old Index