build-sys: check for ico-uxf-weston-plugin headers for syscon.
authorKrisztian Litkey <kli@iki.fi>
Tue, 17 Dec 2013 09:24:02 +0000 (11:24 +0200)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Thu, 8 Jan 2015 16:37:12 +0000 (18:37 +0200)
Also since the system-controller auto-enabling tests were
insufficient, now we rather default to no for it and one
has to explicitly enable it.

Change-Id: I5d4ea0e3890d96bfa3bda805f82387db55f4dea1

configure.ac

index 664f580..893dcb8 100644 (file)
@@ -489,24 +489,16 @@ AC_SUBST(TELEPHONY_LIBS)
 # Check if system-controller (plugin) support should be enabled.
 AC_ARG_ENABLE(system-controller,
               [  --enable-system-controller enable system-controller support],
-             [enable_systemctl=$enableval], [enable_systemctl=auto])
-
-if test "$enable_systemctl" != "no"; then
-    if test "$enable_systemctl" = "auto"; then
-        enable_systemctl="$enable_websockets"
-    else
-        if test "$enable_websockets" != "yes"; then
-            AC_MSG_ERROR([System controller requires websocket support.])
-        fi
-    fi
-else
-    AC_MSG_NOTICE([System controller support is disabled.])
-fi
+             [enable_systemctl=$enableval], [enable_systemctl=no])
 
 if test "$enable_systemctl" = "yes"; then
+    if test "$enable_websockets" != "yes"; then
+        AC_MSG_ERROR([System controller requires websocket support.])
+    fi
     AC_MSG_NOTICE([System-controller support is enabled.])
     AC_DEFINE([SYSTEMCTL_ENABLED], 1, [Enable system-controller support ?])
     PKG_CHECK_MODULES(WAYLAND_CLIENT, wayland-client)
+    AC_CHECK_HEADER([ico-uxf-weston-plugin/ico_input_mgr-client-protocol.h])
 else
     AC_MSG_NOTICE([System-controller support is disabled.])
 fi