This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch/rfc] Only use ../intl/ when present
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com, binutils at sources dot redhat dot com
- Date: Mon, 17 Jan 2005 19:02:19 -0500
- Subject: [patch/rfc] Only use ../intl/ when present
Hello,
This patch should stop getgext.m4 trying to use ../intl when it isn't
present.
I can't actually test it - all the systems I looked to test it on had a
bundled gettext :-/
comments?
Andrew
(I'll need to regenerate the binutils@ and gdb@ configure files, hence
the cross post.)
2005-01-17 Andrew Cagney <cagney@gnu.org>
* gettext.m4: Only fall back to ../intl/ when it's present.
Index: gettext.m4
===================================================================
RCS file: /cvs/src/src/gettext.m4,v
retrieving revision 1.3
diff -p -u -r1.3 gettext.m4
--- gettext.m4 14 Jan 2004 13:41:36 -0000 1.3
+++ gettext.m4 17 Jan 2005 23:56:17 -0000
@@ -81,9 +81,9 @@ AC_DEFUN([CY_WITH_NLS],
dnl In the standard gettext, we would now check for catgets.
dnl However, we never want to use catgets for our releases.
- if test "$CATOBJEXT" = "NONE"; then
- dnl Neither gettext nor catgets in included in the C library.
- dnl Fall back on GNU gettext library.
+ if test "$CATOBJEXT" = "NONE" && test -d $srcdir/../intl; then
+ # Neither gettext nor catgets in included in the C library.
+ # Fall back on GNU gettext library (assuming it is present).
nls_cv_use_gnu_gettext=yes
fi
fi