summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorKovensky <diogomfranco@gmail.com>2013-03-23 16:17:46 -0300
committerwm4 <wm4@nowhere>2013-03-23 21:04:39 +0100
commit746b5e6027754853d2f33f764f0e5ffd75f3bd93 (patch)
tree8a9387196c799f6436921f7e5188a7741e3edade /configure
parent16b15885ff062f73815832e2f59cf81bec2afb22 (diff)
downloadmpv-746b5e6027754853d2f33f764f0e5ffd75f3bd93.tar.bz2
mpv-746b5e6027754853d2f33f764f0e5ffd75f3bd93.tar.xz
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.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure b/configure
index ed7846a563..a32fb4893f 100755
--- a/configure
+++ b/configure
@@ -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