This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Make --enable-nls the default when not cross-compiling
- To: Mark Mitchell <mark at codesourcery dot com>,Martin von Loewis <loewis at informatik dot hu-berlin dot de>
- Subject: [PATCH] Make --enable-nls the default when not cross-compiling
- From: Philipp Thomas <pthomas at suse dot de>
- Date: Mon, 8 May 2000 02:26:07 +0200
- Cc: gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- References: <20000428015501.H20631@Jeffreys.suse.de> <20000429183206C.mitchell@codesourcery.com> <20000430045009.A3649@Jeffreys.suse.de> <20000430000642I.mitchell@codesourcery.com>
I'm resending this with a more appropriate subject to ease tracking.
* Mark Mitchell (mark@codesourcery.com) [20000430 08:58]:
> If you submit a patch that contains your current patch (making
> --enable-nls) the default, but that also makes sure that we're not
> cross-compiling, or Canadian cross-compiling, then I'll approve it.
Like so ?
Also note that I don't have write privileges, so someone else needs to check
this in.
2000-04-30 Philipp Thomas <pthomas@suse.de>
* configure.in: Enable NLS support by default if not
cross-compiling.
* configure: Regenerate.
Index: configure.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/configure.in,v
retrieving revision 1.364
diff -u -p -r1.364 configure.in
--- configure.in 2000/04/30 11:17:13 1.364
+++ configure.in 2000/04/30 18:20:50
@@ -4027,10 +4027,17 @@ AC_SUBST(VERSION)
ALL_LINGUAS="en_UK"
-# NLS support is still experimental, so disable it by default for now.
+# Enable NLS support by default
AC_ARG_ENABLE(nls,
- [ --enable-nls use Native Language Support (disabled by default)],
- , enable_nls=no)
+ [ --enable-nls use Native Language Support (default yes if not cross compiling)],
+ , enable_nls=yes)
+
+# if cross compiling, disable NLS support.
+# It's not worth the trouble, at least for now.
+if test "${build}" != "${host}" -o "${build}" != "${target}" -o "${host}" != "${target}"
+then
+ enable_nls=no
+fi
AM_GNU_GETTEXT
XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
--
Philipp Thomas <pthomas@suse.de>
Development, SuSE GmbH, Schanzaecker Str. 10, D-90443 Nuremberg, Germany
#define NINODE 50 /* number of in core inodes */
#define NPROC 30 /* max number of processes */
-- Version 7 UNIX fuer PDP 11, /usr/include/sys/param.h