X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fconfigure;h=7585bfe5b6deb739dc916f1f70629277c7c06177;hb=9423a811ab7324cdee22208d95079e8a59f266fb;hp=2c74d9df64e8ab17e94fadd8ba9040aa8e8202cb;hpb=2d0af6fc3abc1e9bde968668eb27ebf18061d0da;p=pciutils.git 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