From bc4d14149afe015b0b464b43462b60ad9441e473 Mon Sep 17 00:00:00 2001 From: orbea Date: Sat, 25 Nov 2017 12:19:22 -0800 Subject: [PATCH] qb: Clean up empty defines in config.mk --- qb/qb.libs.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/qb/qb.libs.sh b/qb/qb.libs.sh index b641ec561a..994d2c31ba 100644 --- a/qb/qb.libs.sh +++ b/qb/qb.libs.sh @@ -93,12 +93,13 @@ check_pkgconf() #$1 = HAVE_$1 $2 = package $3 = version $4 = critical error mess eval HAVE_$1="$answer"; echo "$ECHOBUF ... $version" - PKG_CONF_USED="$PKG_CONF_USED $1" - [ "$answer" = 'no' ] && { + if [ "$answer" = 'no' ]; then [ "$4" ] && die 1 "$4" [ "$tmpval" = 'yes' ] && \ die 1 "Forced to build with package $2, but cannot locate. Exiting ..." - } + else + PKG_CONF_USED="$PKG_CONF_USED $1" + fi } check_header() #$1 = HAVE_$1 $2..$5 = header files