diff options
| author | Zoxc <zoxc32@gmail.com> | 2010-06-14 01:20:54 +0200 |
|---|---|---|
| committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-06-14 12:46:26 +0100 |
| commit | 505a0456d2498112155db7e7f275a14dc98f643e (patch) | |
| tree | df0b9fc3a851e9ca60c1f29d7bdb3da74af67ce6 /configure.ac | |
| parent | fd6c38b9e006feefa20ce4f54d3108dad51c828d (diff) | |
gl: Added WGL context and surface.
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index dc54b588..fe262b20 100644 --- a/configure.ac +++ b/configure.ac @@ -348,6 +348,7 @@ CAIRO_ENABLE_SURFACE_BACKEND(gl, OpenGL, no, [ CAIRO_CFLAGS="$CAIRO_CFLAGS -I\$(top_srcdir)/src/glew" fi need_glx_functions=yes + need_wgl_functions=yes need_egl_functions=yes ]) @@ -417,6 +418,14 @@ CAIRO_ENABLE_FUNCTIONS(glx, GLX, auto, [ fi ]) +CAIRO_ENABLE_FUNCTIONS(wgl, WGL, auto, [ + if test "x$need_wgl_functions" = "xyes"; then + AC_CHECK_HEADER(windows.h,, [use_wgl="no (WGL headers not found)"]) + else + use_wgl="no (not required by any backend)" + fi +]) + dnl =========================================================================== any2ppm_cs=no |
