From 12316946dcceb0aba0b7f45d8f67c7a77dc5aff5 Mon Sep 17 00:00:00 2001 From: reimar Date: Mon, 30 Jul 2007 19:02:45 +0000 Subject: Extend OpenGL configure test to also check for glx/wgl and proper linking. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23950 b3059339-0415-0410-9bf9-f77b7e298cf2 --- configure | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index 7d33a53830..14fd16c04b 100755 --- a/configure +++ b/configure @@ -4025,7 +4025,23 @@ echocheck "OpenGL" if (test "$_x11" = yes || win32) && test "$_gl" != no ; then cat > $TMPC << EOF #include -int main(void) { return 0; } +#ifdef GL_WIN32 +#include +#include +#else +#include +#include +#endif +int main(void) { +#ifdef GL_WIN32 + HDC dc; + wglCreateContext(dc); +#else + glXCreateContext(NULL, NULL, NULL, True); +#endif + glFinish(); + return 0; +} EOF _gl=no if cc_check -lGL $_ld_lm ; then -- cgit v1.2.3