Author: manolo
Date: 2011-09-30 09:29:23 -0700 (Fri, 30 Sep 2011)
New Revision: 9104
Log:
Backport of changes to 1.3 until Sep 30, 2011.
Modified:
branches/branch-3.0/configure.in
branches/branch-3.0/include/configh.in
Modified: branches/branch-3.0/configure.in
===================================================================
--- branches/branch-3.0/configure.in 2011-09-30 16:19:31 UTC (rev 9103)
+++ branches/branch-3.0/configure.in 2011-09-30 16:29:23 UTC (rev 9104)
@@ -981,6 +981,16 @@
LIBS="-lXext $LIBS")
fi
+ dnl Check for the XRandR extension unless disabled...
+ AC_ARG_ENABLE(xrandr, [ --enable-xrandr turn on XRandR
support [default=yes]])
+
+ if test x$enable_xrandr != xno; then
+ AC_CHECK_HEADER(X11/extensions/Xrandr.h, AC_DEFINE(HAVE_XRANDR),,
+ [#include <X11/Xlib.h>])
+ AC_CHECK_LIB(Xrandr, XRRQueryExtension,
+ LIBS="-lXrandr $LIBS")
+ fi
+
dnl Check for overlay visuals...
AC_PATH_PROG(XPROP, xprop)
AC_CACHE_CHECK(for X overlay visuals, ac_cv_have_overlay,
@@ -1314,6 +1324,9 @@
if test x$enable_xdbe != xno; then
graphics="$graphics+Xdbe"
fi
+ if test x$enable_xrandr != xno; then
+ graphics="$graphics+Xrandr"
+ fi
if test x$enable_xinerama != xno; then
graphics="$graphics+Xinerama"
fi
Modified: branches/branch-3.0/include/configh.in
===================================================================
--- branches/branch-3.0/include/configh.in 2011-09-30 16:19:31 UTC (rev
9103)
+++ branches/branch-3.0/include/configh.in 2011-09-30 16:29:23 UTC (rev
9104)
@@ -93,6 +93,14 @@
#define HAVE_XINERAMA 0
/*
+ * HAVE_XRANDR
+ *
+ * Do we have the Xrandr library to support runtime update of multi-head
displays?
+ */
+
+#define HAVE_XRANDR 0
+
+/*
* USE_XFT
*
* Use the new Xft library to draw anti-aliased text.
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit