From: Tanu Kaskinen Date: Sat, 22 Sep 2012 15:16:24 +0000 (+0300) Subject: build: Don't enable BlueZ if libbluetooth is not found. X-Git-Tag: v3.99.1~206 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=68d2bcccd7a6d27d7d9d8155a54f8b7d35dd7ab4;p=platform%2Fupstream%2Fpulseaudio.git build: Don't enable BlueZ if libbluetooth is not found. Previously, if libsbc was available but libbluetooth was not, BlueZ would get incorrectly enabled. --- diff --git a/configure.ac b/configure.ac index 3199d85..d11af11 100644 --- a/configure.ac +++ b/configure.ac @@ -1007,8 +1007,9 @@ AS_IF([test "x$enable_bluez" != "xno"], [PKG_CHECK_MODULES(BLUEZ, [ bluez >= 4.99 ], HAVE_BLUEZ=1, HAVE_BLUEZ=0)], HAVE_BLUEZ=0) AS_IF([test "x$enable_bluez" != "xno"], - [PKG_CHECK_MODULES(SBC, [ sbc >= 1.0 ], HAVE_BLUEZ=1, HAVE_BLUEZ=0)], - HAVE_BLUEZ=0) + [PKG_CHECK_MODULES(SBC, [ sbc >= 1.0 ], HAVE_SBC=1, HAVE_SBC=0)], + HAVE_SBC=0) +AS_IF([test "x$HAVE_SBC" != "x1"], HAVE_BLUEZ=0) AS_IF([test "x$HAVE_DBUS" != "x1"], HAVE_BLUEZ=0) AS_IF([test "x$enable_bluez" = "xyes" && test "x$HAVE_BLUEZ" = "x0"],