Commit 9f6682b7 by Zack Weinberg

aclocal.m4: (AM_WITH_NLS): Don't look at ALL_LINGUAS.

	* aclocal.m4: (AM_WITH_NLS): Don't look at ALL_LINGUAS.
	(AM_GNU_GETTEXT): Set CATALOGS to a list of .gmo files
	corresponding to the complete set of .po and .gmo files in
	the source directory's po subdir, modified by LINGUAS.  Don't
	look at ALL_LINGUAS.
	* configure.in: Don't set ALL_LINGUAS.
	* configure: Regenerate.

	* Makefile.in (.po.gmo): Don't move into source directory.
	(.po.pox): Clarify comments.
	(install-po): Look for .gmo files in both srcdir and objdir;
	don't fail if a file is totally missing.
	(distclean): rmdir ada subdirectory too.

From-SVN: r46800
parent f3afc192
2001-11-05 Zack Weinberg <zack@codesourcery.com>
* aclocal.m4: (AM_WITH_NLS): Don't look at ALL_LINGUAS.
(AM_GNU_GETTEXT): Set CATALOGS to a list of .gmo files
corresponding to the complete set of .po and .gmo files in
the source directory's po subdir, modified by LINGUAS. Don't
look at ALL_LINGUAS.
* configure.in: Don't set ALL_LINGUAS.
* configure: Regenerate.
* Makefile.in (.po.gmo): Don't move into source directory.
(.po.pox): Clarify comments.
(install-po): Look for .gmo files in both srcdir and objdir;
don't fail if a file is totally missing.
(distclean): rmdir ada subdirectory too.
2001-11-05 Geoffrey Keating <geoffk@redhat.com> 2001-11-05 Geoffrey Keating <geoffk@redhat.com>
* config/rs6000/rs6000.c (rs6000_select_section): Handle * config/rs6000/rs6000.c (rs6000_select_section): Handle
...@@ -63,11 +79,11 @@ Mon Nov 5 16:15:25 CET 2001 Jan Hubicka <jh@suse.cz> ...@@ -63,11 +79,11 @@ Mon Nov 5 16:15:25 CET 2001 Jan Hubicka <jh@suse.cz>
* m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Add missing semi-colon. * m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Add missing semi-colon.
* m88k/dgux.h (SELECT_RTX_SECTION): Add missing argument in call * m88k/dgux.h (SELECT_RTX_SECTION): Add missing argument in call
to symbolic_operand. to symbolic_operand.
* config.gcc (m680[02]0-*-*): Rename case from m68000-*-*. * config.gcc (m680[02]0-*-*): Rename case from m68000-*-*.
(i960-*-*): Set tmake_file. (i960-*-*): Set tmake_file.
(sparc86x-*-elf*): Fix typo in header name. (sparc86x-*-elf*): Fix typo in header name.
* sched-rgn.c (schedule_insns): Delete unused variable. * sched-rgn.c (schedule_insns): Delete unused variable.
2001-11-04 Neil Booth <neil@cat.daikokuya.demon.co.uk> 2001-11-04 Neil Booth <neil@cat.daikokuya.demon.co.uk>
...@@ -237,8 +253,8 @@ Sun Nov 4 11:53:31 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> ...@@ -237,8 +253,8 @@ Sun Nov 4 11:53:31 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2001-11-03 Aldy Hernandez <aldyh@redhat.com> 2001-11-03 Aldy Hernandez <aldyh@redhat.com>
* machmode.def: Add documentation for the seventh argument in * machmode.def: Add documentation for the seventh argument in
vector modes. vector modes.
2001-11-04 Hans-Peter Nilsson <hp@bitrange.com> 2001-11-04 Hans-Peter Nilsson <hp@bitrange.com>
...@@ -348,10 +364,10 @@ Sat Nov 3 10:37:56 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> ...@@ -348,10 +364,10 @@ Sat Nov 3 10:37:56 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2001-11-02 Aldy Hernandez <aldyh@redhat.com> 2001-11-02 Aldy Hernandez <aldyh@redhat.com>
* expmed.c (store_bit_field): Use simplify_gen_subreg to make * expmed.c (store_bit_field): Use simplify_gen_subreg to make
SUBREG so we avoid SUBREGing memory. SUBREG so we avoid SUBREGing memory.
* expmed.c (store_bit_field): Same. * expmed.c (store_bit_field): Same.
2001-11-02 DJ Delorie <dj@redhat.com> 2001-11-02 DJ Delorie <dj@redhat.com>
...@@ -363,7 +379,7 @@ Sat Nov 3 10:37:56 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> ...@@ -363,7 +379,7 @@ Sat Nov 3 10:37:56 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* builtins.c (apply_args_size): Handle vector arguments. * builtins.c (apply_args_size): Handle vector arguments.
(apply_result_size): Same. (apply_result_size): Same.
* machmode.def: Set WIDER mode field for all vector entries. * machmode.def: Set WIDER mode field for all vector entries.
2001-11-02 Graham Stott <grahams@redhat.com> 2001-11-02 Graham Stott <grahams@redhat.com>
...@@ -371,10 +387,10 @@ Sat Nov 3 10:37:56 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> ...@@ -371,10 +387,10 @@ Sat Nov 3 10:37:56 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2001-11-01 Eric Christopher <echristo@redhat.com> 2001-11-01 Eric Christopher <echristo@redhat.com>
* config.gcc: Revert part of earlier patch. * config.gcc: Revert part of earlier patch.
* config/mips/linux.h: Ditto. * config/mips/linux.h: Ditto.
* df.c: Include tm_p.h to avoid warnings. * df.c: Include tm_p.h to avoid warnings.
* config/mips/mips.h (ABI_GAS_ASM_SPEC): Add defaults. Adjust * config/mips/mips.h (ABI_GAS_ASM_SPEC): Add defaults. Adjust
#if/#endif. #if/#endif.
* config/mips/mips.c: Define mips_abi regardless. * config/mips/mips.c: Define mips_abi regardless.
(mips_output_function_prologues): Add long casts for .frame (mips_output_function_prologues): Add long casts for .frame
......
...@@ -2449,7 +2449,7 @@ distclean: clean $(INTL_DISTCLEAN) lang.distclean ...@@ -2449,7 +2449,7 @@ distclean: clean $(INTL_DISTCLEAN) lang.distclean
-rm -f mklibgcc libgcc.map gccbug .gdbinit configargs.h -rm -f mklibgcc libgcc.map gccbug .gdbinit configargs.h
-rm -f gcov.pod -rm -f gcov.pod
-rm -f fixinc/Makefile -rm -f fixinc/Makefile
-rmdir cp f java objc fixinc intl po 2>/dev/null -rmdir ada cp f java objc fixinc intl po 2>/dev/null
# Delete anything likely to be found in the source directory # Delete anything likely to be found in the source directory
# that shouldn't be in the distribution. # that shouldn't be in the distribution.
...@@ -3363,29 +3363,35 @@ build-po: $(CATALOGS) ...@@ -3363,29 +3363,35 @@ build-po: $(CATALOGS)
# by people who are interested in updating .po files. # by people who are interested in updating .po files.
update-po: $(CATALOGS:.gmo=.pox) update-po: $(CATALOGS:.gmo=.pox)
# Update files in $(srcdir) atomically. # N.B. We do not attempt to copy these into $(srcdir). The snapshot
# script does that.
.po.gmo: .po.gmo:
test -d po || mkdir po test -d po || mkdir po
$(GMSGFMT) --statistics $< -o $@ $(GMSGFMT) --statistics $< -o $@
$(SHELL) $(srcdir)/move-if-change $@ $(srcdir)/$@
# This rule does _not_ copy into $(srcdir). User must do this # The new .po has to be gone over by hand, so we deposit it into
# by hand. (User is a translation maintainer and is expected to # build/po with a different extension.
# go through the new .po by hand anyway.)
.po.pox: .po.pox:
test -d po || mkdir po test -d po || mkdir po
$(MSGMERGE) $< $(srcdir)/po/$(PACKAGE).pot -o $@ $(MSGMERGE) $< $(srcdir)/po/$(PACKAGE).pot -o $@
# This rule has to look for .gmo modules in both srcdir and
# the cwd, and has to check that we actually have a catalog
# for each language, in case they weren't built or included
# with the distribution.
install-po: install-po:
$(SHELL) $(srcdir)/mkinstalldirs $(DESTDIR)$(datadir) $(SHELL) $(srcdir)/mkinstalldirs $(DESTDIR)$(datadir)
for cat in $(CATALOGS); do \ for cat in $(CATALOGS); do \
cat=`basename $$cat`; \ lang=`basename $$cat | sed 's/\.gmo$$//'`; \
lang=`echo $$cat | sed 's/\.gmo$$//'`; \ if [ -f $$cat ]; then :; \
elif [ -f $(srcdir)/$$cat ]; then cat=$(srcdir)/$$cat; \
else continue; \
fi; \
dir=$(localedir)/$$lang/LC_MESSAGES; \ dir=$(localedir)/$$lang/LC_MESSAGES; \
echo $(SHELL) $(srcdir)/mkinstalldirs $(DESTDIR)$$dir; \ echo $(SHELL) $(srcdir)/mkinstalldirs $(DESTDIR)$$dir; \
$(SHELL) $(srcdir)/mkinstalldirs $(DESTDIR)$$dir || exit 1; \ $(SHELL) $(srcdir)/mkinstalldirs $(DESTDIR)$$dir || exit 1; \
echo $(INSTALL_DATA) $(srcdir)/po/$$cat $(DESTDIR)$$dir/$(PACKAGE).mo; \ echo $(INSTALL_DATA) $$cat $(DESTDIR)$$dir/$(PACKAGE).mo; \
$(INSTALL_DATA) $(srcdir)/po/$$cat $(DESTDIR)$$dir/$(PACKAGE).mo; \ $(INSTALL_DATA) $$cat $(DESTDIR)$$dir/$(PACKAGE).mo; \
done done
# Rule for regenerating the message template (gcc.pot). # Rule for regenerating the message template (gcc.pot).
......
...@@ -1593,24 +1593,16 @@ changequote([,])dnl ...@@ -1593,24 +1593,16 @@ changequote([,])dnl
INTLBISON=: INTLBISON=:
fi fi
dnl These rules are solely for the distribution goal. While doing this dnl GCC LOCAL: GMOFILES/POFILES removed as unnecessary.
dnl we only have to keep exactly one list of the available catalogs
dnl in configure.in.
for lang in $ALL_LINGUAS; do
GMOFILES="$GMOFILES $lang.gmo"
POFILES="$POFILES $lang.po"
done
dnl Make all variables we use known to autoconf. dnl Make all variables we use known to autoconf.
AC_SUBST(BUILD_INCLUDED_LIBINTL) AC_SUBST(BUILD_INCLUDED_LIBINTL)
AC_SUBST(USE_INCLUDED_LIBINTL) AC_SUBST(USE_INCLUDED_LIBINTL)
AC_SUBST(CATALOGS) AC_SUBST(CATALOGS)
AC_SUBST(CATOBJEXT) AC_SUBST(CATOBJEXT)
AC_SUBST(GMOFILES)
AC_SUBST(INTLLIBS) AC_SUBST(INTLLIBS)
AC_SUBST(INTLDEPS) AC_SUBST(INTLDEPS)
AC_SUBST(INTLOBJS) AC_SUBST(INTLOBJS)
AC_SUBST(POFILES)
AC_SUBST(POSUB) AC_SUBST(POSUB)
dnl GCC LOCAL: Make USE_INCLUDED_LIBINTL visible to C code. dnl GCC LOCAL: Make USE_INCLUDED_LIBINTL visible to C code.
if test $USE_INCLUDED_LIBINTL = yes; then if test $USE_INCLUDED_LIBINTL = yes; then
...@@ -1664,37 +1656,42 @@ strdup strtoul tsearch __argz_count __argz_stringify __argz_next]) ...@@ -1664,37 +1656,42 @@ strdup strtoul tsearch __argz_count __argz_stringify __argz_next])
AM_LC_MESSAGES AM_LC_MESSAGES
AM_WITH_NLS([$1],[$2],[$3]) AM_WITH_NLS([$1],[$2],[$3])
if test "x$CATOBJEXT" != "x"; then dnl GCC LOCAL: The LINGUAS/ALL_LINGUAS/CATALOGS mess that was here
if test "x$ALL_LINGUAS" = "x"; then dnl has been torn out and replaced with this more sensible scheme.
LINGUAS= if test "x$CATOBJEXT" != x; then
else AC_MSG_CHECKING(for catalogs to be installed)
AC_MSG_CHECKING(for catalogs to be installed) # Look for .po and .gmo files in the source directory.
NEW_LINGUAS= CATALOGS=
for presentlang in $ALL_LINGUAS; do XLINGUAS=
useit=no for cat in $srcdir/po/*$CATOBJEXT $srcdir/po/*.po; do
for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do # If there aren't any .gmo files the shell will give us the
# Use the presentlang catalog if desiredlang is # literal string "../path/to/srcdir/po/*.gmo" which has to be
# a. equal to presentlang, or # weeded out.
# b. a variant of presentlang (because in this case, case "$cat" in *\**)
# presentlang can be used as a fallback for messages continue;;
# which are not translated in the desiredlang catalog). esac
case "$desiredlang" in # The quadruple backslash is collapsed to a double backslash
"$presentlang"*) useit=yes;; # by the backticks, then collapsed again by the double quotes,
esac # leaving us with one backslash in the sed expression (right
done # before the dot that mustn't act as a wildcard). The dot to
if test $useit = yes; then # be escaped in the second expression is hiding inside CATOBJEXT.
NEW_LINGUAS="$NEW_LINGUAS $presentlang" cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!$CATOBJEXT!"`
fi lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\$CATOBJEXT!!"`
done # The user is allowed to set LINGUAS to a list of languages to
LINGUAS=$NEW_LINGUAS # install catalogs for. If it's empty that means "all of them."
AC_MSG_RESULT($LINGUAS) if test "x$LINGUAS" = x; then
fi CATALOGS="$CATALOGS $cat"
XLINGUAS="$XLINGUAS $lang"
dnl Construct list of names of catalog files to be constructed. else
dnl GCC LOCAL: Tweak for non-recursive po directory build. case "$LINGUAS" in *$lang*)
if test -n "$LINGUAS"; then CATALOGS="$CATALOGS $cat"
for lang in $LINGUAS; do CATALOGS="$CATALOGS po/$lang$CATOBJEXT"; done XLINGUAS="$XLINGUAS $lang"
fi ;;
esac
fi
done
LINGUAS="$XLINGUAS"
AC_MSG_RESULT($LINGUAS)
fi fi
dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
......
...@@ -907,8 +907,6 @@ AC_DEFINE_UNQUOTED(VERSION, "$VERSION", ...@@ -907,8 +907,6 @@ AC_DEFINE_UNQUOTED(VERSION, "$VERSION",
AC_SUBST(PACKAGE) AC_SUBST(PACKAGE)
AC_SUBST(VERSION) AC_SUBST(VERSION)
ALL_LINGUAS="sv"
# Enable NLS support by default # Enable NLS support by default
AC_ARG_ENABLE(nls, AC_ARG_ENABLE(nls,
[ --enable-nls use Native Language Support (default)], [ --enable-nls use Native Language Support (default)],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment