[PATCH 09/10] xf86-input-acecad: Simplify value of $sdkdir.

Paulo Cesar Pereira de Andrade pcpa at mandriva.com.br
Fri Feb 13 10:02:35 PST 2009


  When setting the variable value using `pkg-config --variable`
it causes make distcheck to fail, and needing to circunvent the
problem by adding a configure option.
  This solution should be significantly cleaner, but a macro
in xorg-server.m4 could be a better approach, as it would be
required to change only that file once macros are used in
drivers.

Signed-off-by: Paulo Cesar Pereira de Andrade <pcpa at mandriva.com.br>
---
 configure.ac |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index caa1df8..fec817a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -53,6 +53,8 @@ AC_ARG_WITH(xorg-module-dir,
             [moduledir="$libdir/xorg/modules"])
 inputdir=${moduledir}/input
 AC_SUBST(inputdir)
+sdkdir=${includedir}/xorg
+AC_SUBST(sdkdir)
 
 # Checks for extensions
 XORG_DRIVER_CHECK_EXT(RANDR, randrproto)
@@ -60,7 +62,6 @@ XORG_DRIVER_CHECK_EXT(XINPUT, inputproto)
 
 # Checks for pkg-config packages
 PKG_CHECK_MODULES(XORG, [xorg-server >= 1.0.99.901] xproto $REQUIRED_MODULES)
-sdkdir=$(pkg-config --variable=sdkdir xorg-server)
 
 # Checks for libraries.
 
-- 
1.6.1.3



More information about the xorg-devel mailing list