configure: Check for bluez >= 4.30.
authorAndrzej Zaborowski <andrew.zaborowski@intel.com>
Tue, 15 Feb 2011 08:55:51 +0000 (09:55 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 15 Feb 2011 20:57:01 +0000 (12:57 -0800)
Earlier versions lack struct sockaddr_l2::l2_cid and/or
struct bt_security.

configure.ac

index 4f0348d..7a9be6b 100644 (file)
@@ -184,8 +184,8 @@ AC_ARG_ENABLE(bluetooth, AC_HELP_STRING([--disable-bluetooth],
                                [disable Bluetooth modem support]),
                                        [enable_bluetooth=${enableval}])
 if (test "${enable_bluetooth}" != "no"); then
-       PKG_CHECK_MODULES(BLUEZ, bluez, dummy=yes,
-                               AC_MSG_ERROR(Bluetooth library is required))
+       PKG_CHECK_MODULES(BLUEZ, bluez >= 4.30, dummy=yes,
+                       AC_MSG_ERROR(Bluetooth library >= 4.30 is required))
 fi
 AC_SUBST(BLUEZ_CFLAGS)
 AC_SUBST(BLUEZ_LIBS)