eventlircd: fix build with kernel 4.4

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2015-12-18 19:11:09 +01:00
parent f671ea77e9
commit 74a46570d4

View File

@ -0,0 +1,36 @@
From 424810e45bb065151bed0cd8f5e03a3283c06f21 Mon Sep 17 00:00:00 2001
From: Stephan Raue <stephan@openelec.tv>
Date: Fri, 18 Dec 2015 19:09:25 +0100
Subject: [PATCH] [configure.ac] add support for kernel 4.4
Signed-off-by: Stephan Raue <stephan@openelec.tv>
---
configure.ac | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index b5de94d..f04ffc0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -92,10 +92,15 @@ dnl event_name_to_code.h.sh, evkey_code_to_name.h.sh and evkey_type.h.sh
dnl in order for them to generate the header files event_name_to_code.h,
dnl evkey_code_to_name.h and evkey_type.h respectively
AX_ABSOLUTE_HEADER(linux/input.h)
-if test "x$gl_cv_absolute_linux_input_h" = "x" ; then
- AC_MSG_ERROR([failed to find the absolute path to header file linux/input.h])
+AX_ABSOLUTE_HEADER(linux/input-event-codes.h)
+if test "x$gl_cv_absolute_linux_input_event_codes_h" = "x" ; then
+ if test "x$gl_cv_absolute_linux_input_h" = "x" ; then
+ AC_MSG_ERROR([failed to find the absolute path to header file linux/input.h or linux/input-event-codes.h])
+ fi
+ AC_SUBST(ABSOLUTE_LINUX_INPUT_H, $gl_cv_absolute_linux_input_h)
+else
+ AC_SUBST(ABSOLUTE_LINUX_INPUT_H, $gl_cv_absolute_linux_input_event_codes_h)
fi
-AC_SUBST(ABSOLUTE_LINUX_INPUT_H, $gl_cv_absolute_linux_input_h)
PKG_CHECK_MODULES(LIBUDEV, [libudev >= 136])
--
1.9.3