Author: matt
Date: 2011-09-30 10:47:37 -0700 (Fri, 30 Sep 2011)
New Revision: 9106
Log:
Updated Fluid buildfile generation.

Modified:
   branches/branch-3.0/fluid/file_make.cxx

Modified: branches/branch-3.0/fluid/file_make.cxx
===================================================================
--- branches/branch-3.0/fluid/file_make.cxx     2011-09-30 17:41:26 UTC (rev 
9105)
+++ branches/branch-3.0/fluid/file_make.cxx     2011-09-30 17:47:37 UTC (rev 
9106)
@@ -1212,6 +1212,16 @@
   fprintf(out, "                LIBS=\"-lXext $LIBS\")\n");
   fprintf(out, "        fi\n");
   fprintf(out, "\n");
+  fprintf(out, "       dnl Check for the XRandR extension unless 
disabled...\n");
+  fprintf(out, "        AC_ARG_ENABLE(xrandr, [  --enable-xrandr         turn 
on XRandR support [default=yes]])\n");
+  fprintf(out, "\n");
+  fprintf(out, "       if test x$enable_xrandr != xno; then\n");
+  fprintf(out, "           AC_CHECK_HEADER(X11/extensions/Xrandr.h, 
AC_DEFINE(HAVE_XRANDR),,\n");
+  fprintf(out, "               [#include <X11/Xlib.h>])\n");
+  fprintf(out, "           AC_CHECK_LIB(Xrandr, XRRQueryExtension,\n");
+  fprintf(out, "               LIBS=\"-lXrandr $LIBS\")\n");
+  fprintf(out, "       fi\n");
+  fprintf(out, "\n");
   fprintf(out, "        dnl Check for overlay visuals...\n");
   fprintf(out, "        AC_PATH_PROG(XPROP, xprop)\n");
   fprintf(out, "        AC_CACHE_CHECK(for X overlay visuals, 
ac_cv_have_overlay,\n");
@@ -1545,6 +1555,9 @@
   fprintf(out, "        if test x$enable_xdbe != xno; then\n");
   fprintf(out, "            graphics=\"$graphics+Xdbe\"\n");
   fprintf(out, "        fi\n");
+  fprintf(out, "       if test x$enable_xrandr != xno; then\n");
+  fprintf(out, "           graphics=\"$graphics+Xrandr\"\n");
+  fprintf(out, "       fi\n");
   fprintf(out, "        if test x$enable_xinerama != xno; then\n");
   fprintf(out, "            graphics=\"$graphics+Xinerama\"\n");
   fprintf(out, "        fi\n");

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to