From 14e159decff37a8cd7f64483f58050a0d4950799 Mon Sep 17 00:00:00 2001 From: orbea Date: Thu, 31 Oct 2019 22:32:28 -0700 Subject: [PATCH] qb: Make the pkgconfig check more simple. --- qb/qb.comp.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/qb/qb.comp.sh b/qb/qb.comp.sh index 053597a0f4..0468f281be 100644 --- a/qb/qb.comp.sh +++ b/qb/qb.comp.sh @@ -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"