* tar-ustar.m4: Not all greps know the -q (quiet) flag, so redirect to

/dev/null instead.
This commit is contained in:
David Shaw 2006-07-11 16:45:17 +00:00
parent b19683689c
commit ce5ed75822
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2006-07-11 David Shaw <dshaw@jabberwocky.com> 2006-07-11 David Shaw <dshaw@jabberwocky.com>
* tar-ustar.m4: Not all greps know the -q (quiet) flag, so
redirect to /dev/null instead.
* tar-ustar.m4: Pass tar data through strings so that greps that * tar-ustar.m4: Pass tar data through strings so that greps that
don't grep in binary files (Solaris) can detect the string. Noted don't grep in binary files (Solaris) can detect the string. Noted
by Mark Davies. by Mark Davies.

View File

@ -1,5 +1,5 @@
dnl Check for a tar program that speaks ustar format dnl Check for a tar program that speaks ustar format
dnl Copyright (C) 2005 Free Software Foundation, Inc. dnl Copyright (C) 2005, 2006 Free Software Foundation, Inc.
dnl dnl
dnl This file is free software, distributed under the terms of the GNU dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General dnl General Public License. As a special exception to the GNU General
@ -27,7 +27,7 @@ AC_DEFUN([GNUPG_CHECK_USTAR],
if test x$_mytar != x ; then if test x$_mytar != x ; then
AC_MSG_CHECKING([whether $_mytar speaks USTAR]) AC_MSG_CHECKING([whether $_mytar speaks USTAR])
echo hithere > conftest.txt echo hithere > conftest.txt
$_mytar -cf - conftest.txt | strings | grep -q ustar $_mytar -cf - conftest.txt | strings | grep ustar > /dev/null
_tar_bad=$? _tar_bad=$?
rm conftest.txt rm conftest.txt