summaryrefslogtreecommitdiff
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
parenta9cdb6590cdf72917cdfeb17e2fcc6a110b2c7d1 (diff)
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,