qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 11/12] configure: proper OpenGL/GLX probe


From: Michael Walle
Subject: [Qemu-devel] [PATCH 11/12] configure: proper OpenGL/GLX probe
Date: Wed, 6 Mar 2013 23:00:08 +0100

Probe for GL and GLX symbols and X11 library. This fixes a build error
where the header files are available but the libraries are not.

Signed-off-by: Michael Walle <address@hidden>
---
 configure |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index 2f98c5a..4f0d011 100755
--- a/configure
+++ b/configure
@@ -2437,9 +2437,9 @@ if test "$opengl" != "no" ; then
 #include <X11/Xlib.h>
 #include <GL/gl.h>
 #include <GL/glx.h>
-int main(void) { return GL_VERSION != 0; }
+int main(void) { glBegin(0); glXQueryVersion(0,0,0); return 0; }
 EOF
-  if compile_prog "" "-lGL" ; then
+  if compile_prog "" "-lGL -lX11" ; then
     opengl=yes
   else
     if test "$opengl" = "yes" ; then
-- 
1.7.2.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]