summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAlexandros Frantzis <alexandros.frantzis@linaro.org>2010-12-06 14:01:20 +0200
committerChris Wilson <chris@chris-wilson.co.uk>2010-12-15 15:32:20 +0000
commit2a632b1f54bfa2f6466860fcdd151cb6187128d2 (patch)
tree092a2b93bc6135ed220c21ed8bf38bcadcb7a6fd /configure.ac
parent7cf989354679793e3ffd9c058e0e0c8e5a641d35 (diff)
gl: Remove GLEW from the build system and the source tree
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac21
1 files changed, 0 insertions, 21 deletions
diff --git a/configure.ac b/configure.ac
index 1238f5e5b..023e3e3c2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -298,7 +298,6 @@ CAIRO_ENABLE_FUNCTIONS(png, PNG, yes, [
])
dnl ===========================================================================
-use_glew="no (not required by any backend)"
CAIRO_ENABLE_SURFACE_BACKEND(gl, OpenGL, no, [
gl_REQUIRES="gl"
PKG_CHECK_MODULES(gl, $gl_REQUIRES,, [
@@ -309,30 +308,10 @@ CAIRO_ENABLE_SURFACE_BACKEND(gl, OpenGL, no, [
gl_NONPKGCONFIG_LIBS="-lGL"
fi])
- # Disable system GLEW on UNIX since it assumes X and crashes with EGL
- have_glew="no"
- case "$host" in
- *-linux*|*-*bsd*|*-solaris*)
- ;;
- *)
- AC_CHECK_HEADER(GL/glew.h,
- [AC_CHECK_LIB(GLEW, glewInit, [have_glew="GLEW"],
- [AC_CHECK_LIB(glew32, glewInit, [have_glew="glew32"],
- [])])])
- ;;
- esac
- AS_IF([test "x$have_glew" != "xno"],[
- gl_NONPKGCONFIG_LIBS="-l$have_glew $gl_NONPKGCONFIG_LIBS"
- use_glew="yes (system library)"
- ], [
- use_glew="yes (private copy)"
- CAIRO_CFLAGS="$CAIRO_CFLAGS -I\$(top_srcdir)/src/glew"
- ])
need_glx_functions=yes
need_wgl_functions=yes
need_egl_functions=yes
])
-AM_CONDITIONAL(BUILD_PRIVATE_GLEW, test "x$use_glew" = "xyes (private copy)")
dnl ===========================================================================