This is mostly a preparatory refactoring in view of future changes.
* automake.in (handle_dist): Define the new internal variable
'am.dist.handle-gettext' to "yes" if the package uses gettext,
to the empty string otherwise. This takes over the role of the
transform 'GETTEXT', which has thus been removed.
* lib/am/distdir.am (distcheck): Adjust to rely on the new variable
instead than of the removed transform.
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
define_variable ('am.dist.handle-distcheck-hook', INTERNAL,
rule ('distcheck-hook') ? 'yes' : '');
- $transform{'GETTEXT'} = $seen_gettext && !$seen_gettext_external;
+ define_variable ('am.dist.handle-gettext', INTERNAL,
+ $seen_gettext && !$seen_gettext_external ? 'yes' : '');
# If the target 'dist-hook' exists, make sure it is run. This
# allows users to do random weird things to the distribution
$(if $(am.dist.handle-distcheck-hook),&& $(MAKE) distcheck-hook) \
&& cd $(distdir)/_build \
&& ../configure --srcdir=.. --prefix="$$dc_install_base" \
-?GETTEXT? --with-included-gettext \
+ $(if $(am.dist.handle-gettext),--with-included-gettext) \
## Additional flags for configure. Keep this last in the configure
## invocation so the developer and user can override previous options,
## and let the user's flags take precedence over the developer's ones.