[PATCH libxkbcommon] Check for x11 as well through pkg-config.

Cyril Brulebois kibi at debian.org
Fri Jan 28 18:31:20 PST 2011


Otherwise, ./configure returns successfully while xkbparse.lo can fail
to build due to a missing include:
|   YACC   xkbparse.c
|   CC     xkbparse.lo
| xkbparse.y:98:22: error: X11/Xlib.h: No such file or directory

Signed-off-by: Cyril Brulebois <kibi at debian.org>
---
 configure.ac |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 0026441..d8db8fd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -66,7 +66,7 @@ if test "x$CC_FOR_BUILD" = x; then
 fi
 
 # Obtain protocols headers include directives
-PKG_CHECK_MODULES([X11], [xproto kbproto >= 1.0.5])
+PKG_CHECK_MODULES([X11], [x11 xproto kbproto >= 1.0.5])
 
 # Obtain the path to the X Window System Core Protocol
 AC_MSG_CHECKING([for X11 includedir])
-- 
1.7.2.3



More information about the xorg-devel mailing list