# HG changeset patch # User reimar # Date 1185822165 0 # Node ID 282a634da2844ad532edc4cbee36263e3e5742bd # Parent 73ff1aa448de9fcc264e69e1f5a1d0f3f1e88851 Extend OpenGL configure test to also check for glx/wgl and proper linking. diff -r 73ff1aa448de -r 282a634da284 configure --- a/configure Mon Jul 30 18:59:00 2007 +0000 +++ b/configure Mon Jul 30 19:02:45 2007 +0000 @@ -4025,7 +4025,23 @@ 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