[PATCH xf86-video-intel] configure: Pass user-defined CFLAGS when checking for DRI headers.
Thierry Reding
thierry.reding at avionic-design.de
Tue Aug 2 05:33:12 PDT 2011
This patch keeps any user-defined CFLAGS and CPPFLAGS when looking for
the DRI headers. One example where this actually failed was with a
sysroot build, where the old snippet would drop the --sysroot argument
passed to the configure script.
---
configure.ac | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index b6091a8..ba28ebe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -143,8 +143,8 @@ sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
if test "x$enable_dri" != "xno"; then
save_CFLAGS="$CFLAGS"
save_CPPFLAGS="$CPPFLAGS"
- CFLAGS="$XORG_CFLAGS $DRI_CFLAGS $DRM_CFLAGS"
- CPPFLAGS="$XORG_CFLAGS $DRI_CFLAGS $DRM_CFLAGS"
+ CFLAGS="$CFLAGS $XORG_CFLAGS $DRI_CFLAGS $DRM_CFLAGS"
+ CPPFLAGS="$CPPFLAGS $XORG_CFLAGS $DRI_CFLAGS $DRM_CFLAGS"
AC_CHECK_HEADERS([dri.h sarea.h dristruct.h],, [DRI=no],
[/* for dri.h */
#include <xf86str.h>
--
1.7.6
More information about the xorg-devel
mailing list