[Xcb-commit] configure.ac xcb.pc.in

Julien Danjou jdanjou at kemper.freedesktop.org
Mon May 25 03:20:55 PDT 2009


 configure.ac |    4 ++++
 xcb.pc.in    |    1 +
 2 files changed, 5 insertions(+)

New commits:
commit 62fe187e2d617eb0feb1ca03d8b4a64db9dd952b
Author: Bob Ham <rah at bash.sh>
Date:   Mon May 25 12:20:23 2009 +0200

    Store xcbproto version libxcb was compiled with
    
    Signed-off-by: Julien Danjou <julien at danjou.info>

diff --git a/configure.ac b/configure.ac
index a8a1358..6b0f3d2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -58,6 +58,10 @@ XCBPROTO_XCBINCLUDEDIR=`$PKG_CONFIG --variable=xcbincludedir xcb-proto`
 AC_MSG_RESULT($XCBPROTO_XCBINCLUDEDIR)
 AC_SUBST(XCBPROTO_XCBINCLUDEDIR)
 
+# Find the xcb-proto version
+XCBPROTO_VERSION=`$PKG_CONFIG --modversion xcb-proto`
+AC_SUBST(XCBPROTO_VERSION)
+
 # Find the xcbgen Python package
 AC_MSG_CHECKING(XCBPROTO_XCBPYTHONDIR)
 XCBPROTO_XCBPYTHONDIR=`$PKG_CONFIG --variable=pythondir xcb-proto`
diff --git a/xcb.pc.in b/xcb.pc.in
index 69a335c..2dc8c13 100644
--- a/xcb.pc.in
+++ b/xcb.pc.in
@@ -2,6 +2,7 @@ prefix=@prefix@
 exec_prefix=@exec_prefix@
 libdir=@libdir@
 includedir=@includedir@
+xcbproto_version=@XCBPROTO_VERSION@
 
 Name: XCB
 Description: X-protocol C Binding


More information about the xcb-commit mailing list