From f8b0f9b8719226d51054522490e39f5c8d2f3ca4 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Mon, 16 Feb 2026 23:28:11 -0800 Subject: Use command instead of which in ./configure. --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index e7b2b312..bc723443 100755 --- a/configure +++ b/configure @@ -213,7 +213,7 @@ esac if test $cover -eq 1; then if test "$clang" -eq 1; then if test "$cc" = "clang"; then - if which -s llvm-cov; then + if command -v llvm-cov >/dev/null 2>&1; then GCOV="llvm-cov" LLVM_GCOV_FLAG="gcov" GCOV="llvm-cov" @@ -227,7 +227,7 @@ if test $cover -eq 1; then fi else clangV=`echo "$cc" | sed -e 's/^.*-//'` - if which -s llvm-cov-${clangV}; then + if command -v llvm-cov-${clangV} >/dev/null 2>&1; then GCOV="llvm-cov-${clangV}" LLVM_GCOV_FLAG="gcov" echo "Using ${GCOV} for coverage" -- cgit v1.2.3-55-g6feb