From 8874a282aaac32bd71030af6a11379b62afdc56a Mon Sep 17 00:00:00 2001 From: nirenjan Date: Sun, 5 Sep 2021 13:08:29 -0700 Subject: [PATCH] Add configure check for libevdev This change is the first in a series of commits to support a virtual mouse controlled by means of the thumbstick on the throttle unit. --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 05d0eee..569bcf4 100644 --- a/configure.ac +++ b/configure.ac @@ -64,6 +64,11 @@ AM_COND_IF([HAVE_SYSTEMD],, ] ) +# evdev support +# This is only on Linux machines, so we need to set an automake conditional +PKG_CHECK_MODULES([EVDEV], [libevdev], [have_evdev=yes], [have_evdev=no]) +AM_CONDITIONAL([HAVE_EVDEV], [test "x$have_evdev" = "xyes"]) + # Pinelog configuration AX_APPEND_FLAG([-DPINELOG_SHOW_LEVEL=1], [PINELOG_CFLAGS]) AX_APPEND_FLAG([-DPINELOG_SHOW_BACKTRACE=1], [PINELOG_CFLAGS])