+2002-05-11 Bruno Haible <bruno@clisp.org>
+
+ * autopoint.texi: Recommend AM_GNU_GETTEXT_VERSION(..) syntax.
+ * gettext.texi (AM_GNU_GETTEXT_VERSION): New subsection.
+
2002-05-08 Bruno Haible <bruno@clisp.org>
* matrix.texi: Update.
@end example
The @code{autopoint} program copies standard gettext infrastructure files
-into a source package. It extracts from an assignment of the form
-@code{GETTEXT_VERSION=@var{version}}, found in the package's
+into a source package. It extracts from a macro call of the form
+@code{AM_GNU_GETTEXT_VERSION(@var{version})}, found in the package's
@file{configure.in} or @file{configure.ac} file, the gettext version
used by the package, and copies the infrastructure files belonging to
this version into the package.
Autoconf macros for use in @file{configure.in}
* AM_GNU_GETTEXT:: AM_GNU_GETTEXT in @file{gettext.m4}
+* AM_GNU_GETTEXT_VERSION:: AM_GNU_GETTEXT_VERSION in @file{gettext.m4}
* AM_ICONV:: AM_ICONV in @file{iconv.m4}
Integrating with CVS
@menu
* AM_GNU_GETTEXT:: AM_GNU_GETTEXT in @file{gettext.m4}
+* AM_GNU_GETTEXT_VERSION:: AM_GNU_GETTEXT_VERSION in @file{gettext.m4}
* AM_ICONV:: AM_ICONV in @file{iconv.m4}
@end menu
-@node AM_GNU_GETTEXT, AM_ICONV, autoconf macros, autoconf macros
+@node AM_GNU_GETTEXT, AM_GNU_GETTEXT_VERSION, autoconf macros, autoconf macros
@subsection AM_GNU_GETTEXT in @file{gettext.m4}
@amindex AM_GNU_GETTEXT
and @code{LTLIBINTL} variables.
@end itemize
-@node AM_ICONV, , AM_GNU_GETTEXT, autoconf macros
+@node AM_GNU_GETTEXT_VERSION, AM_ICONV, AM_GNU_GETTEXT, autoconf macros
+@subsection AM_GNU_GETTEXT_VERSION in @file{gettext.m4}
+
+@amindex AM_GNU_GETTEXT_VERSION
+The @code{AM_GNU_GETTEXT_VERSION} macro declares the version number of
+the GNU gettext infrastructure that is used by the package.
+
+The use of this macro is optional; only the @code{autopoint} program makes
+use of it (@pxref{CVS Issues}).
+
+@node AM_ICONV, , AM_GNU_GETTEXT_VERSION, autoconf macros
@subsection AM_ICONV in @file{iconv.m4}
@amindex AM_ICONV
+2002-05-11 Bruno Haible <bruno@clisp.org>
+
+ * autopoint.in: Recognize AM_GNU_GETTEXT_VERSION(..) syntax.
+ * gettextize.in: Likewise.
+
2002-05-03 Bruno Haible <bruno@clisp.org>
* autopoint.in: Unset all other environment variables which influence
# Check whether the -V option and the version number in configure.in match.
# At least one of the two must be given. If both are given, they must agree.
-xver=`cat "$configure_in" | grep '^GETTEXT_VERSION=' | sed -e 's/^GETTEXT_VERSION=\([-+_.0-9A-Za-z]*\).*/\1/' | sed -e 1q`
+xver=`cat "$configure_in" | grep '^AM_GNU_GETTEXT_VERSION(' | sed -e 's/^AM_GNU_GETTEXT_VERSION(\([^()]*\))/\1/p' | sed -e 's/^\[\(.*\)\]$/\1/' | sed -e 1q`
if test -z "$xver" && test -f intl/VERSION; then
xver=`cat intl/VERSION | sed -n -e 's/^.*gettext-\(-+_.0-9A-Za-z]*\).*$/\1/p'`
fi
fi
else
if test -z "$ver"; then
- func_fatal_error "Missing version: please specify in $configure_in through a line 'GETTEXT_VERSION=x.yy.zz' the gettext version the package is using"
+ func_fatal_error "Missing version: please specify in $configure_in through a line 'AM_GNU_GETTEXT_VERSION(x.yy.zz)' the gettext version the package is using"
fi
fi
func_modify_configure_in "(AC_OUTPUT): Remove command that created po/Makefile."
sed -e '/^\(dnl \|\)AC_LINK_FILES(\$nls_cv_header_libgt, \$nls_cv_header_intl)$/d' < "$srcdir/$configure_in" > "$srcdir/$configure_in.tmp"
func_modify_configure_in "(AC_LINK_FILES): Remove invocation."
-sed -e 's/^GETTEXT_VERSION=\([-+_.0-9A-Za-z]*\)/GETTEXT_VERSION='"$version"'/' < "$srcdir/$configure_in" > "$srcdir/$configure_in.tmp"
-func_modify_configure_in "(GETTEXT_VERSION): Bump to $version."
+sed -e 's/^AM_GNU_GETTEXT_VERSION([^()]*)/AM_GNU_GETTEXT_VERSION('"$version"'/' < "$srcdir/$configure_in" > "$srcdir/$configure_in.tmp"
+func_modify_configure_in "(AM_GNU_GETTEXT_VERSION): Bump to $version."
$do_changelog && func_ChangeLog_finish
# Recommend replacement for deprecated Makefile variables.