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>
This commit is contained in:
parent
6635075596
commit
d3fcbb1678
4
configure
vendored
4
configure
vendored
@ -2442,9 +2442,9 @@ if test "$opengl" != "no" ; then
|
|||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
#include <GL/gl.h>
|
#include <GL/gl.h>
|
||||||
#include <GL/glx.h>
|
#include <GL/glx.h>
|
||||||
int main(void) { return GL_VERSION != 0; }
|
int main(void) { glBegin(0); glXQueryVersion(0,0,0); return 0; }
|
||||||
EOF
|
EOF
|
||||||
if compile_prog "" "-lGL" ; then
|
if compile_prog "" "-lGL -lX11" ; then
|
||||||
opengl=yes
|
opengl=yes
|
||||||
else
|
else
|
||||||
if test "$opengl" = "yes" ; then
|
if test "$opengl" = "yes" ; then
|
||||||
|
Loading…
Reference in New Issue
Block a user