aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-10-25 09:59:50 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-11-11 15:42:31 +1000
commit683a55e504f4fc2d1c847c54986439a0c61b2f20 (patch)
tree90738a5c7c402e1e1ab7c847efdb4dda28f11525 /configure.ac
parentMove misplaced #endif caused by smooth-scrolling merge (diff)
downloadxf86-input-evdev-683a55e504f4fc2d1c847c54986439a0c61b2f20.tar.gz
xf86-input-evdev-683a55e504f4fc2d1c847c54986439a0c61b2f20.tar.bz2
xf86-input-evdev-683a55e504f4fc2d1c847c54986439a0c61b2f20.zip
Use a new "Virtual Device" boolean property to mark virtual devices
Use udev to check for the device's sysfs path, if it contains LNXSYSTM it's a kernel-emulated device. This property can then be used to determine if there are any real devices connected, allowing the desktop environment to e.g. turn off the touchpad whenever there's a mouse attached. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 1494a19..aca3a41 100644
--- a/configure.ac
+++ b/configure.ac
@@ -46,6 +46,7 @@ XORG_DEFAULT_OPTIONS
# Obtain compiler/linker options from server and required extensions
PKG_CHECK_MODULES(XORG, [xorg-server >= 1.10] xproto inputproto)
+PKG_CHECK_MODULES(UDEV, udev)
# Define a configure option for an alternate input module directory
AC_ARG_WITH(xorg-module-dir,