From 683a55e504f4fc2d1c847c54986439a0c61b2f20 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 25 Oct 2011 09:59:50 +1000 Subject: 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 --- configure.ac | 1 + 1 file changed, 1 insertion(+) (limited to 'configure.ac') 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, -- cgit v1.2.3