From c96ae959b3159002c03252507e533671a659041d Mon Sep 17 00:00:00 2001 From: orbea Date: Sat, 30 Dec 2017 10:30:23 -0800 Subject: [PATCH] qb: Add a fallback path for jack audio without pkg-config This is a proof of concept for the fallback path without pkg-config. As jack is something often not installed by default it demonstrates that when pkg-config exists and the dependency doesn't the check_val function in qb/qb.libs.sh will redundantly check -ljack and as expected, fail. It also shows that when pkg-config is not installed and jack is enabled with --enable-jack it will bail and print a configure error. --- qb/config.libs.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qb/config.libs.sh b/qb/config.libs.sh index f9b643b396..59e1418b34 100644 --- a/qb/config.libs.sh +++ b/qb/config.libs.sh @@ -261,6 +261,8 @@ check_pkgconf PULSE libpulse check_pkgconf SDL sdl 1.2.10 check_pkgconf SDL2 sdl2 2.0.0 +check_val '' JACK -ljack + if [ "$HAVE_SDL2" = 'yes' ]; then if [ "$HAVE_SDL2" = 'yes' ] && [ "$HAVE_SDL" = 'yes' ]; then die : 'Notice: SDL drivers will be replaced by SDL2 ones.'