aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2022-10-30 13:42:12 +0100
committerMartin Mares <mj@ucw.cz>2022-10-30 13:42:12 +0100
commit9423a811ab7324cdee22208d95079e8a59f266fb (patch)
tree6ccb05497d25219df69b763efafa0e517092429d
parenta165591213039657f65a466ba1762e02a1c6e310 (diff)
parenta74832198ab36683a867c79b3d6ef2cac9baad55 (diff)
downloadpciutils-9423a811ab7324cdee22208d95079e8a59f266fb.tar.gz
Merge remote-tracking branch 'thesamesam/which-hunt'
-rwxr-xr-xlib/configure4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/configure b/lib/configure
index 2c74d9d..7585bfe 100755
--- a/lib/configure
+++ b/lib/configure
@@ -239,7 +239,7 @@ if [ "$sys" = linux ] ; then
PKG_CONFIG=pkg-config
fi
if [ "$LIBKMOD" != no ] ; then
- if ! which $PKG_CONFIG >/dev/null ; then
+ if ! command -v $PKG_CONFIG >/dev/null ; then
echo_n "($PKG_CONFIG not found) "
elif $PKG_CONFIG libkmod ; then
LIBKMOD_DETECTED=1
@@ -269,7 +269,7 @@ if [ "$sys" = linux ] ; then
if [ "$HWDB" = yes -o "$HWDB" = no ] ; then
echo "$HWDB (set manually)"
else
- if `which pkg-config >/dev/null && pkg-config --atleast-version=196 libudev` ; then
+ if `command -v $PKG_CONFIG >/dev/null && $PKG_CONFIG --atleast-version=196 libudev` ; then
HWDB=yes
else
HWDB=no