Check for Xrandr extension.
diff --git a/configure.ac b/configure.ac
index 850eb78..c879249 100644
--- a/configure.ac
+++ b/configure.ac
@@ -258,6 +258,19 @@
AC_MSG_WARN([[XFree86 VMODE extension not found, Wine will be built without it]]),
[#include <X11/Xlib.h>])
+ dnl *** Check for X RandR extension
+ AC_CHECK_HEADERS(X11/extensions/Xrandr.h,
+ [ dnl *** If X11/extensions/Xrandr.h exists...
+ AC_CHECK_LIB(Xrandr, XRRSetScreenConfigAndRate,
+ [ AC_DEFINE(HAVE_LIBXRANDR, 1, [Define if you have the Xrandr library])
+ X_PRE_LIBS="$X_PRE_LIBS -lXrandr"
+ ],,
+ $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
+ )
+ ],
+ AC_MSG_WARN([[Xrandr extension not found, Wine will be built without it]]),
+ [#include <X11/Xlib.h>])
+
dnl *** Check for XVideo extension supporting XvImages
AC_CHECK_HEADERS(X11/extensions/Xvlib.h,
[ dnl *** If X11/extensions/Xvlib.h exists...