summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2012-01-06 15:01:26 +0100
committerStefano Lattarini <stefano.lattarini@gmail.com>2012-01-06 15:01:26 +0100
commitdacb456ac6435c15c1ee230533129e05f7ab06bf (patch)
treeb3adfd4d3bfce3880784982867492f8083b8d018 /m4
parent254227b6d5167a76f7ad96fa8a5657d81a7025c1 (diff)
parent01c3294bac3b67004d208449fe9460fc3ab61ee4 (diff)
downloadautomake-dacb456ac6435c15c1ee230533129e05f7ab06bf.tar.gz
Merge branch 'maint'
* maint: dist: do not wrap calls to 'tar' with the 'missing' script fixup: previous commit v1.11-627-g1e0aedc tests: fix spurious failures due to autom4te caching
Diffstat (limited to 'm4')
-rw-r--r--m4/tar.m49
1 files changed, 5 insertions, 4 deletions
diff --git a/m4/tar.m4 b/m4/tar.m4
index a4a00ecf0..0683951ba 100644
--- a/m4/tar.m4
+++ b/m4/tar.m4
@@ -1,6 +1,6 @@
# Check how to create a tarball. -*- Autoconf -*-
-# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -22,10 +22,11 @@
# a tarball read from stdin.
# $(am__untar) < result.tar
AC_DEFUN([_AM_PROG_TAR],
-[# Always define AMTAR for backward compatibility.
-AM_MISSING_PROG([AMTAR], [tar])
+[# Always define AMTAR for backward compatibility. Yes, it's still used
+# in the wild :-( We should find a proper way to deprecate it ...
+AC_SUBST([AMTAR], ['$${TAR-tar}'])
m4_if([$1], [v7],
- [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
+ [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
[m4_case([$1], [ustar],, [pax],,
[m4_fatal([Unknown tar format])])
AC_MSG_CHECKING([how to create a $1 tar archive])