Make sure not to dump stderr

This commit is contained in:
Don Stewart 2005-05-01 04:05:12 +00:00
parent 87b026603d
commit 2757d85394

View File

@ -135,9 +135,9 @@ AC_ARG_WITH(ghc-pkg,
fi fi
], ],
[ AC_MSG_CHECKING([for ghc-pkg]) [ AC_MSG_CHECKING([for ghc-pkg])
if ghc-pkg-$GHC_VERSION -V > /dev/null ; then if ghc-pkg-$GHC_VERSION -V > /dev/null 2>&1 ; then
GHCPKG=ghc-pkg-$GHC_VERSION GHCPKG=ghc-pkg-$GHC_VERSION
elif test ghc-pkg -V > /dev/null ; then elif test ghc-pkg -V > /dev/null 2>&1 ; then
GHCPKG=ghc-pkg GHCPKG=ghc-pkg
else else
AC_MSG_ERROR(You need ghc-pkg) AC_MSG_ERROR(You need ghc-pkg)