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.
reverse-scroll
nirenjan 2021-09-05 13:08:29 -07:00
parent 3a81acf828
commit 8874a282aa
1 changed files with 5 additions and 0 deletions

View File

@ -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 # Pinelog configuration
AX_APPEND_FLAG([-DPINELOG_SHOW_LEVEL=1], [PINELOG_CFLAGS]) AX_APPEND_FLAG([-DPINELOG_SHOW_LEVEL=1], [PINELOG_CFLAGS])
AX_APPEND_FLAG([-DPINELOG_SHOW_BACKTRACE=1], [PINELOG_CFLAGS]) AX_APPEND_FLAG([-DPINELOG_SHOW_BACKTRACE=1], [PINELOG_CFLAGS])