--- configure.ac Fri Aug 12 15:56:51 2011
+++ configure.ac Fri Aug 12 15:59:25 2011
@@ -108,7 +108,11 @@
PKG_CHECK_MODULES(DRM, [libdrm >= 2.4.23])
PKG_CHECK_MODULES(PCIACCESS, [pciaccess >= 0.10])
-sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
+AC_ARG_WITH(xorg-sdk-dir,
+ AC_HELP_STRING([--with-xorg-sdk-dir=DIR],
+ [Default xorg sdk include directory [[default is taken from pkgconfig]]]),
+ [sdkdir="$withval"],
+ [sdkdir=$(pkg-config --variable=sdkdir xorg-server)])
save_CFLAGS="$CFLAGS"
CFLAGS="$XORG_CFLAGS $DRI_CFLAGS $DRM_CFLAGS"