From 5b855b2cff47ae3ebbd867a00d2b17b39ee02404 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 11 Apr 1999 22:27:37 +0000 Subject: [PATCH] * automake.in (handle_dist): Use AMTAR. (initialize_global_constants): Likewise. * m4/init.m4 (AM_INIT_AUTOMAKE): Use AMTAR, not TAR. --- ChangeLog | 4 ++++ automake.in | 8 ++++---- m4/init.m4 | 6 +++--- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index e0eefa42..2321fc92 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 1999-04-11 Tom Tromey + * 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 4c4900db..a047d67e 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 45b62174..ff0b2e04 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 -- 2.43.5