diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-07-21 22:28:44 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-07-21 22:28:44 +0100 |
commit | 1ae5942a3aa9f73aa71438dc40221836b0dff7e2 (patch) | |
tree | a39297460aaaf3b88c4b26480d12b40ec4eed545 /configure.ac | |
parent | fd9df4978d56bbb85ecd795afce72c0310dbcf3f (diff) | |
parent | 6a5957475139a7c80a6bb55fb63927e5ec8866f6 (diff) |
Merge commit 'anholt/gl'
Conflicts:
boilerplate/Makefile.sources
boilerplate/cairo-boilerplate.c
build/configure.ac.features
src/cairo.h
util/cairo-script/Makefile.am
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 2d4d5bb6..9b2f77f5 100644 --- a/configure.ac +++ b/configure.ac @@ -195,6 +195,24 @@ CAIRO_ENABLE_FUNCTIONS(png, PNG, yes, [ ]) dnl =========================================================================== +CAIRO_ENABLE_SURFACE_BACKEND(gl, OpenGL, no, [ + gl_REQUIRES="gl" + PKG_CHECK_MODULES(gl, $gl_REQUIRES, , [AC_MSG_RESULT(no) + use_gl="no (requires gl.pc)"]) + + AC_CHECK_LIB(GLEW, glewInit, [ + AC_CHECK_HEADER(GL/glew.h, [], [ + use_gl="no (requires glew http://glew.sourceforge.net/)" + ]) + ], [ + use_gl="no (requires glew http://glew.sourceforge.net/)" + ]) + gl_NONPKGCONFIG_LIBS="-lGLEW" + need_glx_functions=yes + need_eagle_functions=yes +]) + +dnl =========================================================================== GLITZ_MIN_VERSION=0.5.1 CAIRO_ENABLE_SURFACE_BACKEND(glitz, glitz, no, [ @@ -253,6 +271,17 @@ CAIRO_ENABLE_SURFACE_BACKEND(vg, OpenVG, no, [ fi ]) +CAIRO_ENABLE_FUNCTIONS(eagle, eagle, auto, [ + if test "x$need_eagle_functions" = "xyes"; then + eagle_REQUIRES="eagle" + PKG_CHECK_MODULES(eagle, $eagle_REQUIRES, , + [AC_MSG_RESULT(no) + use_eagle="no (requires eagle)"]) + else + use_eagle="no (not required by any backend)" + fi +]) + CAIRO_ENABLE_FUNCTIONS(egl, EGL, auto, [ if test "x$need_egl_functions" = "xyes"; then AC_CHECK_HEADER(EGL/egl.h,, [use_egl="no (EGL headers not found)"]) |