This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
NLS patches
- To: gcc-patches at gcc dot gnu dot org
- Subject: NLS patches
- From: Philipp Thomas <pthomas at suse dot de>
- Date: Wed, 31 May 2000 19:57:46 +0200
I've now commited my changes to the i18n configury, thus activating the NLS
support for all but canadian cross compilers (as discussed with rth). Here's
what I checked in, omitting the newly added gcc.pot, cat-id-tbl.c and
stamp-cat-id:
gcc:
2000-05-31 Philipp Thomas <pthomas@suse.de>
* configure.in (enable-nls): Enable if build == host, i.e. when
not building a canadian cross compiler.
(enable-maintainer-mode): Added for use with i18n.
* aclocal.m4 (AM_GNU_GETTEXT): Only build catalogs that are a
cross section of ALL_LINGUAS and LINGUAS.
* configure: Rebuild.
gcc/po:
2000-05-30 Philipp Thomas <pthomas@suse.de>
* Makefile.in.in: Create compiled catalogs in objdir, not
srcdir. Create gcc.pot and cat-tbl-id.c only in maintainer
mode.
* gcc.pot: Generated and checked in.
* cat-tbl-id.c: Generated and checked in.
* stamp-cat-id: Generated and checked in.
Index: aclocal.m4
===================================================================
RCS file: /cvs/gcc/egcs/gcc/aclocal.m4,v
retrieving revision 1.27
diff -u -p -r1.27 aclocal.m4
--- aclocal.m4 2000/05/23 17:42:18 1.27
+++ aclocal.m4 2000/05/31 17:39:07
@@ -513,9 +513,9 @@ strdup __argz_count __argz_stringify __a
else
AC_MSG_CHECKING(for catalogs to be installed)
NEW_LINGUAS=
- for lang in ${LINGUAS=$ALL_LINGUAS}; do
- case "$ALL_LINGUAS" in
- *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
+ for lang in $ALL_LINGUAS; do
+ case " $LINGUAS " in
+ *" $lang "*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
esac
done
LINGUAS=$NEW_LINGUAS
Index: configure.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/configure.in,v
retrieving revision 1.380
diff -u -p -r1.380 configure.in
--- configure.in 2000/05/27 22:34:04 1.380
+++ configure.in 2000/05/31 17:39:08
@@ -4104,11 +4104,19 @@ 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)],
+ , enable_nls=yes)
+# if cross compiling, disable NLS support.
+# It's not worth the trouble, at least for now.
+
+if test "${build}" != "${host}" && test "x$enable_nls" == "xyes" then
+ AC_MSG_WARN(Disabling NLS support for canadian cross compiler.)
+ enable_nls=no
+fi
+
AM_GNU_GETTEXT
XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
@@ -4748,6 +4756,25 @@ else
fi
AC_DEFINE_UNQUOTED(ENABLE_STD_NAMESPACE, $ac_esn,
[Define to 1 if you want to enable namespaces (-fhonor-std) by default.])
+
+dnl Very limited version of automake's enable-maintainer-mode
+
+AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
+ dnl maintainer-mode is disabled by default
+ AC_ARG_ENABLE(maintainer-mode,
+[ --enable-maintainer-mode enable make rules and dependencies not useful
+ (and sometimes confusing) to the casual installer],
+ maintainer_mode=$enableval,
+ maintainer_mode=no)
+
+AC_MSG_RESULT($maintainer_mode)
+
+if test "$maintainer_mode" = "yes"; then
+ MAINT=''
+else
+ MAINT='#'
+fi
+AC_SUBST(MAINT)dnl
# Make empty files to contain the specs and options for each language.
# Then add #include lines to for a compiler that has specs and/or options.
Index: po/Makefile.in.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/po/Makefile.in.in,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile.in.in
--- Makefile.in.in 1999/09/04 15:08:49 1.2
+++ Makefile.in.in 2000/05/31 17:39:10
@@ -69,7 +69,7 @@ INSTOBJEXT = @INSTOBJEXT@
$(MSGFMT) -o $@ $<
.po.gmo:
- file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \
+ file=`echo $* | sed 's,.*/,,'`.gmo \
&& rm -f $$file && $(GMSGFMT) -o $$file $<
.po.cat:
@@ -79,7 +79,7 @@ INSTOBJEXT = @INSTOBJEXT@
all: all-@USE_NLS@
-all-yes: $(srcdir)/cat-id-tbl.c $(CATALOGS)
+all-yes: $(CATALOGS) @MAINT@ $(srcdir)/cat-id-tbl.c
all-no:
$(srcdir)/$(PACKAGE).pot: $(POTFILES)
--
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