pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/gettext-lib Move the section that sets up some G...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e79c84d7e2de
branches:  trunk
changeset: 483882:e79c84d7e2de
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sun Nov 21 02:40:15 2004 +0000

description:
Move the section that sets up some GNU configure variables to force
"GNU gettext" detection outside of the BROKEN_GETTEXT_DETECTION block.
We will need this to happen all the time if we're using a built-in
gettext that isn't really GNU gettext.

diffstat:

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

diffs (38 lines):

diff -r 7167c2571ab7 -r e79c84d7e2de devel/gettext-lib/builtin.mk
--- a/devel/gettext-lib/builtin.mk      Sun Nov 21 01:37:36 2004 +0000
+++ b/devel/gettext-lib/builtin.mk      Sun Nov 21 02:40:15 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.12 2004/11/14 04:05:16 jlam Exp $
+# $NetBSD: builtin.mk,v 1.13 2004/11/21 02:40:15 jlam Exp $
 
 .if !defined(_BLNK_LIBINTL_FOUND)
 _BLNK_LIBINTL_FOUND!=  \
@@ -178,16 +178,22 @@
 BROKEN_GETTEXT_DETECTION?=     yes
 .if !empty(BROKEN_GETTEXT_DETECTION:M[yY][eE][sS])
 BUILDLINK_LIBS.gettext+=       ${BUILDLINK_LDADD.gettext}
-CONFIGURE_ENV+=                INTLLIBS="${BUILDLINK_LDADD.gettext}"
-.  if !empty(USE_BUILTIN.gettext:M[yY][eE][sS])
-.    if !empty(_BLNK_LIBINTL_FOUND:M[yY][eE][sS])
+CONFIGURE_ENV+=                        INTLLIBS="${BUILDLINK_LDADD.gettext}"
+.endif # BROKEN_GETTEXT_DETECTION
+
+# If using a built-in libintl that isn't from GNU gettext, then set up
+# some GNU configure variables that are checked by modern gettext.m4
+# so that it will detect "GNU gettext" in the existing libintl.
+#
+.if !empty(USE_BUILTIN.gettext:M[yY][eE][sS])
+.  if !empty(_BLNK_LIBINTL_FOUND:M[yY][eE][sS])
+CONFIGURE_ENV+=                gt_cv_func_gnugettext_libintl="yes"
 CONFIGURE_ENV+=                gt_cv_func_gnugettext1_libintl="yes"
-.      if defined(_GETTEXT_NGETTEXT) && !empty(_GETTEXT_NGETTEXT:M[yY][eE][sS])
+.    if defined(_GETTEXT_NGETTEXT) && !empty(_GETTEXT_NGETTEXT:M[yY][eE][sS])
 CONFIGURE_ENV+=                gt_cv_func_gnugettext2_libintl="yes"
-.      endif
 .    endif
 .  endif
-.endif # BROKEN_GETTEXT_DETECTION
+.endif
 
 .if defined(GNU_CONFIGURE)
 .  if !empty(USE_BUILTIN.gettext:M[nN][oO])



Home | Main Index | Thread Index | Old Index