[pulseaudio-discuss] [PATCH] build: Don't enable BlueZ if libbluetooth is not found.
Tanu Kaskinen
tanuk at iki.fi
Wed Dec 19 22:31:25 PST 2012
On Sat, 2012-09-22 at 18:16 +0300, Tanu Kaskinen wrote:
> Previously, if libsbc was available but libbluetooth was not, BlueZ
> would get incorrectly enabled.
> ---
> configure.ac | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index 06923e3..ff3f96b 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -966,12 +966,13 @@ AS_IF([test "x$enable_bluez" != "xno"],
> [PKG_CHECK_MODULES(BLUEZ, [ bluez >= 3.0 ], 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"],
> - [AC_MSG_ERROR([*** BLUEZ support not found (requires D-Bus)])])
> + [AC_MSG_ERROR([*** BLUEZ support not found (requires D-Bus and libsbc)])])
>
> AC_SUBST(BLUEZ_CFLAGS)
> AC_SUBST(BLUEZ_LIBS)
This is now applied.
--
Tanu
More information about the pulseaudio-discuss
mailing list