qb: Make the pkgconfig check more simple.

This commit is contained in:
orbea 2019-10-31 22:32:28 -07:00
parent 8809932b49
commit 14e159decf

View File

@ -93,14 +93,10 @@ if [ "$OS" = "Win32" ]; then
fi
if [ -z "$PKG_CONF_PATH" ]; then
PKG_CONF_PATH="none"
for pkgconf in pkgconf pkg-config; do
PKGCONF="$(exists "${CROSS_COMPILE}${pkgconf}")" || PKGCONF=""
[ "$PKGCONF" ] && {
PKG_CONF_PATH="$PKGCONF"
break
}
done
PKGCONF="$(exists "${CROSS_COMPILE}pkgconf" ||
exists "${CROSS_COMPILE}pkg-config" || :)"
PKG_CONF_PATH="${PKGCONF:-none}"
fi
printf %s\\n "Checking for pkg-config ... $PKG_CONF_PATH"