diff options
author | Michael Walle <michael@walle.cc> | 2013-03-06 20:16:58 +0100 |
---|---|---|
committer | Michael Walle <michael@walle.cc> | 2013-03-18 19:40:34 +0100 |
commit | d3fcbb16789c6f975ba6e22d8a2ba477519f51bc (patch) | |
tree | 950de10a339de167bf2759141a6472c1dc811ba1 /configure | |
parent | 6635075596e0ae583de9c04ff605e16ceaa7d294 (diff) |
configure: proper OpenGL/GLX probe
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>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |