]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
[ng] distcheck: --with-included-gettext: with a variable, not a transform
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 10 Aug 2012 14:29:58 +0000 (16:29 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 10 Aug 2012 14:29:58 +0000 (16:29 +0200)
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>
automake.in
lib/am/distdir.am

index 247da23149ca93157a02092075f19f17d1de298c..a7f423b97c7e4c4123914c7b457fa794ed85e315 100644 (file)
@@ -3285,7 +3285,8 @@ sub handle_dist ()
 
   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
index 813506283a2f952e89131a6ac966b81c60d67397..844515e35d4bb71ba64abc539959db5f87e23617 100644 (file)
@@ -446,7 +446,7 @@ distcheck: dist
          $(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.