diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-06-15 10:59:01 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-06-15 10:59:01 +0100 |
commit | 25ec0c1e9b5af2ba68200b79b252de5c1b371d0a (patch) | |
tree | 8889683552cea6bc5a5affc81943e99b6f6fac6c | |
parent | 52624446636bb5941ca2180afa2c0be275414cec (diff) |
build: Enable system GLEW on non-UNIX platforms
-rw-r--r-- | configure.ac | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index fe262b20..eeb34f0d 100644 --- a/configure.ac +++ b/configure.ac @@ -335,10 +335,16 @@ 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" - # Disable system GLEW since it assumes X and crashes with EGL - #AC_CHECK_LIB(GLEW, glewInit, - # [AC_CHECK_HEADER(GL/glew.h, [have_glew="yes"], [])]) + case "$host" in + *-linux*|*-*bsd*|*-solaris*) + ;; + *) + AC_CHECK_LIB(GLEW, glewInit, + [AC_CHECK_HEADER(GL/glew.h, [have_glew="yes"], [])]) + ;; + esac if test "x$have_glew" = "xyes"; then gl_NONPKGCONFIG_LIBS="-lGLEW $gl_NONPKGCONFIG_LIBS" use_glew="yes (system library)" |