fi
AM_CONDITIONAL(WIFI, test "${enable_wifi}" = "yes")
+AC_ARG_ENABLE(bluetooth, AC_HELP_STRING([--enable-bluetooth],
+ [enable Bluetooth support]), [enable_bluetooth=${enableval}])
+AM_CONDITIONAL(BLUETOOTH, test "${enable_bluetooth}" = "yes")
+
AC_ARG_WITH(udhcpc, AC_HELP_STRING([--with-udhcpc=PROGRAM],
[specify location of udhcpc binary]), [path_udhcpc=${withval}])
plugindir = $(libdir)/connman/plugins
-plugin_LTLIBRARIES = bluetooth.la ipv4.la
+plugin_LTLIBRARIES = ipv4.la
if LOOPBACK
plugin_LTLIBRARIES += loopback.la
wifi_la_LIBADD = @GDBUS_LIBS@
endif
+if BLUETOOTH
+plugin_LTLIBRARIES += bluetooth.la
+
bluetooth_la_SOURCES = bluetooth.c inet.h inet.c
bluetooth_la_LIBADD = @GDBUS_LIBS@
+endif
if NOVATEL
plugin_LTLIBRARIES += novatel.la