diff options
author | Martin Mares <mj@ucw.cz> | 2022-10-30 13:42:12 +0100 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2022-10-30 13:42:12 +0100 |
commit | 9423a811ab7324cdee22208d95079e8a59f266fb (patch) | |
tree | 6ccb05497d25219df69b763efafa0e517092429d | |
parent | a165591213039657f65a466ba1762e02a1c6e310 (diff) | |
parent | a74832198ab36683a867c79b3d6ef2cac9baad55 (diff) | |
download | pciutils-9423a811ab7324cdee22208d95079e8a59f266fb.tar.gz |
Merge remote-tracking branch 'thesamesam/which-hunt'
-rwxr-xr-x | lib/configure | 4 |
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 |