diff options
| -rw-r--r-- | configure.in | 15 | 
1 files changed, 15 insertions, 0 deletions
| diff --git a/configure.in b/configure.in index bc49b56b..4d57acdd 100644 --- a/configure.in +++ b/configure.in @@ -44,6 +44,12 @@ AC_ARG_WITH(bluez-includes,  	BLUEZ_INCDIR='../libs/include /usr/include'  ) +AC_ARG_ENABLE(dbus, +	--enable-dbus		  use D-BUS, +	BLUEZ_DBUS="$enableval", +	BLUEZ_DBUS="no" +) +  AC_SEARCH_HEADERS(bluetooth/bluetooth.h, $BLUEZ_INCDIR,,  	AC_MSG_ERROR(Bluetooth headers not found.  		Please compile and install bluez-libs package.) @@ -71,4 +77,13 @@ AC_ARG_ENABLE(pcmcia,             AC_TEST_DIR(/etc/pcmcia, PCMCIA=pcmcia, PCMCIA=)      fi ]) +if test x"$BLUEZ_DBUS" == "xyes"; then +  PKG_CHECK_MODULES(DBUS, dbus-1, have_dbus=yes, have_dbus=no) + +  CFLAGS="$CFLAGS $DBUS_CFLAGS -DENABLE_DBUS" +  LIBS="$LIBS $DBUS_LIBS" +fi + +AM_CONDITIONAL(ENABLE_DBUS, test x$BLUEZ_DBUS = xyes) +  AC_OUTPUT(Makefile hcid/Makefile tools/Makefile rfcomm/Makefile test/Makefile scripts/Makefile pcmcia/Makefile) | 
