summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2013-03-24 20:00:22 +0100
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2013-03-24 20:00:22 +0100
commit840c98d190d1b79573987a137ae3372574efcb63 (patch)
tree7d229375613c83791b2528789bc54e5a1f6f5ecb /configure
parent4be6ff5ee33bf1c0fabd00d8f5280e2be222adea (diff)
downloadmpv-840c98d190d1b79573987a137ae3372574efcb63.tar.bz2
mpv-840c98d190d1b79573987a137ae3372574efcb63.tar.xz
configure: fix OpenGL autodetection on OS X
Was broken from 746b5e6 since the OpenGL headers are under OpenGL/ and not GL/ on OS X. Thanks to @Kovensky for the initial patch.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure b/configure
index a32fb4893f..875c1b91f0 100755
--- a/configure
+++ b/configure
@@ -2177,14 +2177,23 @@ EOF
fi
cat > $TMPC << EOF
+#ifdef __APPLE__
+#include <OpenGL/gl.h>
+#include <OpenGL/glext.h>
+#else
#include <GL/gl.h>
#include <GL/glext.h>
+#endif
int main(int argc, char *argv[]) {
return !GL_INVALID_FRAMEBUFFER_OPERATION;
}
EOF
if ! cc_check; then
_gl=no
+ _gl_x11=no
+ _gl_wayland=no
+ _gl_win32=no
+ _gl_cocoa=no
res_comment="missing glext.h, get from http://www.opengl.org/registry/api/glext.h"
fi
else