summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorRene Engelhard <rene@debian.org>2012-09-18 13:19:57 +0200
committerRene Engelhard <rene@debian.org>2012-09-18 16:21:45 +0200
commit85dbc8129887fb94370afcb587e2a9264cb2ed10 (patch)
treebc61755fe67411929586c853a65cfe8588d3aff6 /configure.in
parent8c5cd962353dd9ce8234211a66547eb057202eb5 (diff)
add --with-system-bluez and alöllow disabling of sdremote
Change-Id: I1b0dbc8e8efa7535bdc699e343e31594af00d553
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in39
1 files changed, 39 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 9aaa2eb7d195..f8a4a4524049 100644
--- a/configure.in
+++ b/configure.in
@@ -863,6 +863,12 @@ AC_ARG_ENABLE(packagekit,
Right now that is auto font install])
,)
+AC_ARG_ENABLE(sdremote,
+ AS_HELP_STRING([--disable-sdremote],
+ [Determines whether to enable Impress remote control.
+ Uses dbus and bluetooth (bluez(.])
+,enable_sdremote=yes)
+
AC_ARG_ENABLE(gconf,
AS_HELP_STRING([--disable-gconf],
[Determines whether to use the GConf support.]),
@@ -1576,6 +1582,11 @@ AC_ARG_WITH(system-sane,
[Use sane.h already on system.]),,
[with_system_sane="$with_system_headers"])
+AC_ARG_WITH(system-bluez,
+ AS_HELP_STRING([--with-system-bluez],
+ [Use bluetooth.h already on system.]),,
+ [with_system_bluez="$with_system_headers"])
+
AC_ARG_WITH(system-xextensions-headers,
AS_HELP_STRING([--with-system-xextensions-headers],
[To build without system X11 extensions headers, use
@@ -9317,6 +9328,34 @@ else
fi
AC_SUBST(ENABLE_PACKAGEKIT)
+AC_MSG_CHECKING([whether to enable sd remotecontrol])
+if test "$ENABLE_DBUS" = "TRUE"; then
+ if test -n "$enable_sdremote"; then
+ AC_MSG_RESULT([yes])
+ ENABLE_SDREMOTE=YES
+ if test "$OS" = "LINUX"; then
+ dnl ===================================================================
+ dnl Check for system bluez
+ dnl ===================================================================
+ AC_MSG_CHECKING([which bluetooth header to use])
+ if test "$with_system_bluez" = "yes"; then
+ AC_MSG_RESULT([external])
+ AC_CHECK_HEADER(bluetooth/bluetooth.h, [],
+ [AC_MSG_ERROR(bluetooth.h not found. install bluez)], [])
+ else
+ AC_MSG_RESULT([internal])
+ BUILD_TYPE="$BUILD_TYPE BLUEZ"
+ fi
+ fi
+ else
+ ENABLE_SDREMOTE=NO
+ AC_MSG_RESULT([no])
+ fi
+else
+ AC_MSG_RESULT([no, dbus disabled.])
+fi
+AC_SUBST(ENABLE_SDREMOTE)
+
dnl ===================================================================
dnl Check whether the gtk 2.0 libraries are available.
dnl ===================================================================