configure: check for presence of glext.h

vo_opengl depends on glext.h to build. Also link to Khronos' copy, which
should work on all compilers and is kept up-to-date with newer
extensions.
This commit is contained in:
Kovensky 2013-03-23 16:17:46 -03:00 committed by wm4
parent 16b15885ff
commit 746b5e6027
1 changed files with 12 additions and 0 deletions

12
configure vendored
View File

@ -2175,6 +2175,18 @@ EOF
_gl=yes
_gl_cocoa=yes
fi
cat > $TMPC << EOF
#include <GL/gl.h>
#include <GL/glext.h>
int main(int argc, char *argv[]) {
return !GL_INVALID_FRAMEBUFFER_OPERATION;
}
EOF
if ! cc_check; then
_gl=no
res_comment="missing glext.h, get from http://www.opengl.org/registry/api/glext.h"
fi
else
_gl=no
fi