]> git.proxmox.com Git - qemu.git/commitdiff
configure: proper OpenGL/GLX probe
authorMichael Walle <michael@walle.cc>
Wed, 6 Mar 2013 19:16:58 +0000 (20:16 +0100)
committerMichael Walle <michael@walle.cc>
Mon, 18 Mar 2013 18:40:34 +0000 (19:40 +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 <michael@walle.cc>
configure

index 46a75947cd9a5a87ecec73aabe4cf4aa85f16150..d44d6b887fa02f9493bb0ed253841b63b01abe54 100755 (executable)
--- a/configure
+++ b/configure
@@ -2442,9 +2442,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