[RFA] Fix build failure for powerpc

Nick Hudson
2008-03-14T17:13:13Z

[-- Attachment #1: Type: text/plain, Size: 276 bytes --]

Here's a patch to fix a build problem for powerpc where libintl isn't found
properly.

OK?

Can I commit it to the new 6.8 branch?

Thanks,
Nick

ChangeLog
* sim/ppc/configure.ac: Pass ../../intl to ZW_GNU_GETTEXT_SISTER_DIR.
* sim/ppc/configure: Regenerate.

[-- Attachment #2: ChangeLog --]
[-- Type: text/plain, Size: 119 bytes --]

* sim/ppc/configure.ac: Pass ../../intl to ZW_GNU_GETTEXT_SISTER_DIR.
* sim/ppc/configure: Regenerate.

[-- Attachment #3: sim-ppc.diff --]
[-- Type: text/x-diff, Size: 1232 bytes --]

Index: sim/ppc/configure
===================================================================
RCS file: /cvs/src/src/sim/ppc/configure,v
retrieving revision 1.15
diff -u -p -u -r1.15 configure
--- sim/ppc/configure 13 Jun 2006 08:06:50 -0000 1.15
+++ sim/ppc/configure 14 Mar 2008 17:03:31 -0000
@@ -2388,8 +2388,8 @@ XGETTEXT=
GMSGFMT=
POSUB=

-if test -f ../intl/config.intl; then
- . ../intl/config.intl
+if test -f ../../intl/config.intl; then
+ . ../../intl/config.intl
fi
echo "$as_me:$LINENO: checking whether NLS is requested" >&5
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
Index: sim/ppc/configure.ac
===================================================================
RCS file: /cvs/src/src/sim/ppc/configure.ac,v
retrieving revision 1.6
diff -u -p -u -r1.6 configure.ac
--- sim/ppc/configure.ac 31 May 2006 15:14:45 -0000 1.6
+++ sim/ppc/configure.ac 14 Mar 2008 17:03:33 -0000
@@ -17,7 +17,7 @@ CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CF
dnl We don't use gettext, but bfd does. So we do the appropriate checks
dnl to see if there are intl libraries we should link against.
ALL_LINGUAS=
-ZW_GNU_GETTEXT_SISTER_DIR
+ZW_GNU_GETTEXT_SISTER_DIR(../../intl)

AC_ARG_ENABLE(sim-alignment,