diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rwxr-xr-x | automake.in | 8 | ||||
-rw-r--r-- | m4/init.m4 | 6 |
3 files changed, 11 insertions, 7 deletions
@@ -1,5 +1,9 @@ 1999-04-11 Tom Tromey <tromey@cygnus.com> + * automake.in (handle_dist): Use AMTAR. + (initialize_global_constants): Likewise. + * m4/init.m4 (AM_INIT_AUTOMAKE): Use AMTAR, not TAR. + * automake.in (lang_sub_obj): New function. (lang_cxx_rewrite): Use it. (lang_asm_rewrite): Likewise. diff --git a/automake.in b/automake.in index 4c4900db6..a047d67e8 100755 --- a/automake.in +++ b/automake.in @@ -2672,7 +2672,7 @@ sub handle_dist # tarfile. distcheck: dist -rm -rf $(distdir) - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(TAR) xf - + GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf - mkdir $(distdir)/=build mkdir $(distdir)/=inst dc_install_base=`cd $(distdir)/=inst && pwd`; \\' @@ -6619,17 +6619,17 @@ sub initialize_global_constants # if we chmod a symlink. $dist_header = "\t" . '-chmod -R a+r $(distdir)' . "\n"; $dist{'dist-bzip2'} = ("\t" - . '$(TAR) ch$(AMTARFLAGS)f - $(distdir) | bzip --best -c > $(distdir).bz2' + . '$(AMTAR) ch$(AMTARFLAGS)f - $(distdir) | bzip --best -c > $(distdir).bz2' . "\n"); $dist{'dist-tarZ'} = ("\t" - . '$(TAR) ch$(AMTARFLAGS)f - $(distdir) | compress -c > $(distdir).tar.Z' + . '$(AMTAR) ch$(AMTARFLAGS)f - $(distdir) | compress -c > $(distdir).tar.Z' . "\n"); $dist{'dist-shar'} = ("\t" . 'shar $(distdir) | gzip > $(distdir).shar.gz' . "\n"); $dist{'dist-zip'} = "\t" . 'zip -rq $(distdir).zip $(distdir)' . "\n"; $dist{'dist'} = ("\t" - . '$(TAR) ch$(AMTARFLAGS)f - $(distdir) | GZIP=$(GZIP_ENV) gzip -c > $(distdir).tar.gz' + . '$(AMTAR) ch$(AMTARFLAGS)f - $(distdir) | GZIP=$(GZIP_ENV) gzip -c > $(distdir).tar.gz' . "\n"); $dist_trailer = "\t" . '-rm -rf $(distdir)' . "\n"; } diff --git a/m4/init.m4 b/m4/init.m4 index 45b621747..ff0b2e04e 100644 --- a/m4/init.m4 +++ b/m4/init.m4 @@ -35,10 +35,10 @@ dnl We check for tar when the user configures the end package. dnl This is sad, since we only need this for "dist". However, dnl there's no other good way to do it. We prefer GNU tar if dnl we can find it. If we can't find a tar, it doesn't really matter. -AC_CHECK_PROGS(TAR, gnutar gtar tar) +AC_CHECK_PROGS(AMTAR, gnutar gtar tar) AMTARFLAGS= -if test -n "$TAR"; then - if $SHELL -c "$TAR --version" > /dev/null 2>&1; then +if test -n "$AMTAR"; then + if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then dnl We have GNU tar. AMTARFLAGS=o fi |