[PATCH input-evdev 3/3] config: evdev depends on RANDR through xf86.h

Gaetan Nadon memsize at videotron.ca
Wed Jun 9 14:17:44 PDT 2010


The xf86.h file contains external declarations specific to RANDR
If this extension is defined (installed) evdev will not compile
if randrproto is not installed.
Because this is an optional extension, XORG_DRIVER_CHECK_EXT
must be used.

evdev also depends on xext, kbproto and inputproto

Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
---
 configure.ac |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 63460b7..84cad8b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -44,8 +44,11 @@ m4_ifndef([XORG_MACROS_VERSION],
 XORG_MACROS_VERSION(1.8)
 XORG_DEFAULT_OPTIONS
 
+# Store the list of server defined optional extensions in REQUIRED_MODULES
+XORG_DRIVER_CHECK_EXT(RANDR, randrproto)
+
 # Obtain compiler/linker options from server and required extensions
-PKG_CHECK_MODULES(XORG, xorg-server xproto inputproto)
+PKG_CHECK_MODULES(XORG, xorg-server xproto inputproto xext kbproto $REQUIRED_MODULES)
 
 # Define a configure option for an alternate input module directory
 AC_ARG_WITH(xorg-module-dir,
-- 
1.6.0.4



More information about the xorg-devel mailing list