2001-07-26 Tom Tromey <tromey@redhat.com>
+ * automake.texi (Optional): Don't mention ALL_LINGUAS.
+ (gettext): Likewise.
+ * automake.in (seen_linguas, all_linguas, all_linguas_line):
+ Removed.
+ (handle_gettext): Don't do any checking of the languages.
+ (scan_one_autoconf_file): Don't look for ALL_LINGUAS.
+
* automake.in (am_print_error): New function.
(am_error): Use it.
(am_file_error): Likewise.
# Line number at which AM_GNU_GETTEXT seen.
my $ac_gettext_line = 0;
-# Whether ALL_LINGUAS has been seen.
-my $seen_linguas = '';
-# The actual text.
-my $all_linguas = '';
-# Line number at which it appears.
-my $all_linguas_line = 0;
-
# TRUE if AC_DECL_YYTEXT was seen.
my $seen_decl_yytext = 0;
if ! grep ('intl', @subdirs);
&require_file_with_conf_line ($ac_gettext_line, $GNU, 'ABOUT-NLS');
-
- # Ensure that each language in ALL_LINGUAS has a .po file, and
- # each po file is mentioned in ALL_LINGUAS.
- if ($seen_linguas)
- {
- my %linguas = map { $_ => 1 } split (' ', $all_linguas);
-
- foreach (<po/*.po>)
- {
- s/^po\///;
- s/\.po$//;
-
- &am_line_error ($all_linguas_line,
- ("po/$_.po exists but `$_' not in `ALL_LINGUAS'"))
- if ! $linguas{$_};
- }
-
- foreach (keys %linguas)
- {
- &am_line_error ($all_linguas_line,
- "$_ in `ALL_LINGUAS' but po/$_.po does not exist")
- if ! -f "po/$_.po";
- }
- }
- else
- {
- &am_error ("AM_GNU_GETTEXT in `$configure_ac' but `ALL_LINGUAS' not defined");
- }
}
# Handle footer elements.
$ac_gettext_line = $.;
}
- # Look for ALL_LINGUAS.
- if (/ALL_LINGUAS="(.*)"$/ || /ALL_LINGUAS=(.*)$/)
- {
- $seen_linguas = 1;
- $all_linguas = $1;
- $all_linguas_line = $.;
- }
-
# Handle configuration headers. A config header of `[$1]'
# means we are actually scanning AM_CONFIG_HEADER from
# aclocal.m4.
Autoconf Manual}.
@cvindex AC_PROG_LEX
-@item ALL_LINGUAS
-If Automake sees that this variable is set in @file{configure.in}, it
-will check the @file{po} directory to ensure that all the named
-@samp{.po} files exist, and that all the @samp{.po} files that exist are
-named.
-@cvindex ALL_LINGUAS
-
@item AM_C_PROTOTYPES
This is required when using automatic de-ANSI-fication; see @ref{ANSI}.
@cvindex AM_C_PROTOTYPES
insures that these directories exist and are mentioned in
@code{SUBDIRS}.
-Furthermore, Automake checks that the definition of @code{ALL_LINGUAS}
-in @file{configure.in} corresponds to all the valid @file{.po} files,
-and nothing more.
-
@node Libtool, Java, gettext, Other GNU Tools
@section Libtool