[weston PATCH] conf: add K_OFF check in autoconf
juan.j.zhao at linux.intel.com
juan.j.zhao at linux.intel.com
Fri Apr 13 01:53:59 PDT 2012
From: Juan Zhao <juan.j.zhao at linux.intel.com>
weston tty need to use K_OFF which is added in the kernel on linux-2.6.39.
add this check in the configure stage.
Bug Fix for https://bugs.freedesktop.org/show_bug.cgi?id=48579
Signed-off-by: Juan Zhao <juan.j.zhao at linux.intel.com>
Reported-by: Shuang He <shuang.he at intel.com>
---
configure.ac | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index 6da7922..89981d9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -187,6 +187,9 @@ if test "x$GCC" = "xyes"; then
fi
AC_SUBST(GCC_CFLAGS)
+TEST_INCLUDES="#include <linux/kd.h>"
+AC_CHECK_DECL(K_OFF,,[AC_MSG_ERROR([Please update your kernel version higher than 2.6.39])],[$TEST_INCLUDES])
+
WAYLAND_SCANNER_RULES(['$(top_srcdir)/protocol'])
AC_CONFIG_FILES([Makefile
--
1.7.5.4
More information about the wayland-devel
mailing list