mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-03-24 01:34:04 +00:00
configure.ac: make libudev optional
This commit is contained in:
@@ -45,7 +45,10 @@ XORG_DEFAULT_OPTIONS
|
||||
|
||||
# Obtain compiler/linker options from server and required extensions
|
||||
PKG_CHECK_MODULES(XORG, [xorg-server >= 25.0.0] xproto [inputproto >= 2.1.99.3])
|
||||
PKG_CHECK_MODULES(UDEV, libudev, [AC_DEFINE(HAVE_LIBUDEV, 1,[libudev support])])
|
||||
PKG_CHECK_MODULES(UDEV, libudev,
|
||||
[HAVE_UDEV=yes], [HAVE_UDEV=no])
|
||||
AS_IF([test "$HAVE_UDEV" = "yes"],
|
||||
[AC_DEFINE([HAVE_LIBUDEV], [1], [Define if libudev is available])])
|
||||
|
||||
PKG_CHECK_MODULES(LIBEVDEV, [libevdev >= 0.4])
|
||||
PKG_CHECK_MODULES(MTDEV, mtdev)
|
||||
|
||||
Reference in New Issue
Block a user