Browse Source

Forgot to check in these for XF86DGA stuff

rdb 16 years ago
parent
commit
bcd844a43a
3 changed files with 21 additions and 0 deletions
  1. 7 0
      dtool/Config.pp
  2. 7 0
      dtool/LocalSetup.pp
  3. 7 0
      dtool/pptempl/Global.pp

+ 7 - 0
dtool/Config.pp

@@ -690,6 +690,13 @@
 #define X11_LIBS X11
 #defer HAVE_X11 $[and $[IS_LINUX],$[libtest $[X11_LPATH],$[X11_LIBS]]]
 
+// This defines if we have XF86DGA installed. This enables smooth
+// FPS-style mouse in glxdisplay, when mouse mode M_relative is used.
+#define XF86DGA_IPATH /usr/include/X11/extensions
+#define XF86DGA_LPATH /usr/lib
+#define XF86DGA_LIBS Xxf86dga
+#defer HAVE_XF86DGA $[libtest $[XF86DGA_LPATH],$[XF86DGA_LIBS]]
+
 // How about GLX?
 #define GLX_IPATH
 #define GLX_LPATH

+ 7 - 0
dtool/LocalSetup.pp

@@ -146,7 +146,11 @@
 //#print - Did not find SDL
 //#endif
 #if $[HAVE_X11]
+#if $[HAVE_XF86DGA]
+#print + X11, with XFree86-DGA
+#else
 #print + X11
+#endif
 #else
 #print - Did not find X11
 #endif
@@ -382,6 +386,9 @@ $[cdefine HAVE_SDL]
 /* Define if we have X11. */
 $[cdefine HAVE_X11]
 
+/* Define if we have the XFree86-DGA extension. */
+$[cdefine HAVE_XF86DGA]
+
 /* Define if we want to compile the threading code.  */
 $[cdefine HAVE_THREADS]
 

+ 7 - 0
dtool/pptempl/Global.pp

@@ -143,6 +143,13 @@
   #define x11_framework $[X11_FRAMEWORK]
 #endif
 
+#if $[HAVE_XF86DGA]
+  #define xf86dga_ipath $[wildcard $[XF86DGA_IPATH]]
+  #define xf86dga_lpath $[wildcard $[XF86DGA_LPATH]]
+  #define xf86dga_cflags $[XF86DGA_CFLAGS]
+  #define xf86dga_libs $[XF86DGA_LIBS]
+#endif
+
 #if $[HAVE_MESA]
   #define mesa_ipath $[wildcard $[MESA_IPATH]]
   #define mesa_lpath $[wildcard $[MESA_LPATH]]