summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2012-12-04 11:26:39 +0200
committerTor Lillqvist <tlillqvist@suse.com>2012-12-05 08:56:50 +0200
commit17f7ee8442472e3ef743891b4d4f1a6a8c063472 (patch)
tree37d0fdb32568dfbc56c2da0a5eb14739dd60421f
parentbf5cf1a30bad7d831a501e5bf037ed83df8b2009 (diff)
Let's try to enable compiling the Bluetooth code for Windows
-rw-r--r--configure.ac34
1 files changed, 24 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac
index bb7575f0b680..7a9648531a6e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -861,9 +861,8 @@ AC_ARG_ENABLE(sdremote,
AC_ARG_ENABLE(sdremote-bluetooth,
AS_HELP_STRING([--disable-sdremote-bluetooth],
- [Determines whether to build sdremote with bluetooth support
- Requires: dbus]),
-,enable_sdremote_bluetooth=yes)
+ [Determines whether to build sdremote with bluetooth support.
+ Requires dbus on Linux.]))
AC_ARG_ENABLE(gconf,
AS_HELP_STRING([--disable-gconf],
@@ -9335,12 +9334,28 @@ else
fi
AC_SUBST(ENABLE_PACKAGEKIT)
-AC_MSG_CHECKING([whether to enable sd remotecontrol])
+AC_MSG_CHECKING([whether to enable Impress remote control])
if test -n "$enable_sdremote" -a "$enable_sdremote" != "no"; then
AC_MSG_RESULT([yes])
ENABLE_SDREMOTE=YES
- AC_MSG_CHECKING([whether to enable bluetooth support in sdremote])
- if test -n "$enable_sdremote_bluetooth" -a "$enable_sdremote_bluetooth" != "no"; then
+ AC_MSG_CHECKING([whether to enable Bluetooth support in Impress remote control])
+
+ # If not explicitly enabled or disabled, default
+ if test -z "$enable_sdremote_bluetooth"; then
+ case "$OS" in
+ LINUX|WNT)
+ # Default to yes for these
+ enable_sdremote_bluetooth=yes
+ ;;
+ *)
+ # otherwise no
+ enable_sdremote_bluetooth=no
+ ;;
+ esac
+ fi
+ # $enable_sdremote_bluetooth is guaranteed non-empty now
+
+ if test "$enable_sdremote_bluetooth" != "no"; then
if test "$OS" = "LINUX"; then
if test "$ENABLE_DBUS" = "TRUE"; then
AC_MSG_RESULT([yes])
@@ -9348,7 +9363,7 @@ if test -n "$enable_sdremote" -a "$enable_sdremote" != "no"; then
dnl ===================================================================
dnl Check for system bluez
dnl ===================================================================
- AC_MSG_CHECKING([which bluetooth header to use])
+ 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, [],
@@ -9362,9 +9377,8 @@ if test -n "$enable_sdremote" -a "$enable_sdremote" != "no"; then
ENABLE_SDREMOTE_BLUETOOTH=NO
fi
else
- # FIXME: should this really be disabled in everything non-Linux?
- AC_MSG_RESULT([no])
- ENABLE_SDREMOTE_BLUETOOTH=NO
+ AC_MSG_RESULT([yes])
+ ENABLE_SDREMOTE_BLUETOOTH=YES
fi
else
AC_MSG_RESULT([no])