summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac20
1 files changed, 11 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac
index a35eb06..e6c83cd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -135,8 +135,8 @@ AC_ARG_WITH(
]
)
AC_MSG_CHECKING([whether touch accepts -h])
-ln -s conftest.none conftest.link
-if ${TOUCH} -h conftest.link 1>/dev/null 2>&1; then
+ln -s conftest.none conftest.link 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
+if ${TOUCH} -h conftest.link 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD; then
if test -f conftest.none; then
AC_MSG_RESULT([no])
AC_SUBST([HAVE_TOUCH_NODEREF], [false])
@@ -175,14 +175,16 @@ AC_ARG_WITH(
]
)
AC_MSG_CHECKING([whether tar accepts -T and --no-recursion])
-rm -Rf conftest.dir
-mkdir conftest.dir
-touch conftest.dir/foo conftest.dir/bar
+rm -Rf conftest.dir 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
+mkdir conftest.dir 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
+touch conftest.dir/foo conftest.dir/bar \
+ 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
if printf '%s\n' conftest.dir/ conftest.dir/foo | ${TAR} -cf conftest.tar \
- --no-recursion -T -; then
- if ${TAR} -tf conftest.tar | grep -Fq 'foo' && \
- ${TAR} -tf conftest.tar | grep -Fvq 'bar'
- then
+ --no-recursion -T - 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
+then
+ if ${TAR} -tf conftest.tar 2>&AS_MESSAGE_LOG_FD | grep -Fq 'foo' && \
+ ${TAR} -tf conftest.tar 2>&AS_MESSAGE_LOG_FD | \
+ grep -Fvq 'bar'; then
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])