From 9a82c5db3f8332d10b31d68e5b86d3a6b136dc5e Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Mon, 27 Apr 2009 13:26:03 -0400 Subject: Fix xf86ModeBandwidth check --- configure.ac | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 923b434..f0119dd 100644 --- a/configure.ac +++ b/configure.ac @@ -109,10 +109,16 @@ CFLAGS="$XORG_CFLAGS" AC_CHECK_DECL(XSERVER_LIBPCIACCESS, [XSERVER_LIBPCIACCESS=yes], [XSERVER_LIBPCIACCESS=no], [#include "xorg-server.h"]) +CFLAGS="$save_CFLAGS" + +save_CFLAGS="$CFLAGS" +CFLAGS="$XORG_CFLAGS" AC_CHECK_DECL(xf86ModeBandwidth, [AC_DEFINE(HAVE_XF86MODEBANDWIDTH, 1, [Have xf86ModeBandwidth])], [], - [#include "xf86Modes.h"]) + [#include + #include "xorg-server.h" + #include "xf86Modes.h"]) CFLAGS="$save_CFLAGS" if test "x$XSERVER_LIBPCIACCESS" = xyes; then -- cgit v1.2.3