diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-06-15 11:45:54 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-06-15 11:45:54 +0100 |
commit | e2220a1f3a7b483e615f5bb993a014d20b0f788a (patch) | |
tree | a0fe84f1fb683accd31abfa0f5fb3c24c9ac075c /configure.ac | |
parent | 25ec0c1e9b5af2ba68200b79b252de5c1b371d0a (diff) |
configure: Try an alternate name for system glew.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index eeb34f0d2..96fb4a027 100644 --- a/configure.ac +++ b/configure.ac @@ -341,12 +341,14 @@ CAIRO_ENABLE_SURFACE_BACKEND(gl, OpenGL, no, [ *-linux*|*-*bsd*|*-solaris*) ;; *) - AC_CHECK_LIB(GLEW, glewInit, - [AC_CHECK_HEADER(GL/glew.h, [have_glew="yes"], [])]) + AC_CHECK_HEADER(GL/glew.h, + [AC_CHECK_LIB(GLEW, glewInit, [have_glew="GLEW"], + [AC_CHECK_LIB(glew32, glewInit, [have_glew="glew32"], + [])])]) ;; esac - if test "x$have_glew" = "xyes"; then - gl_NONPKGCONFIG_LIBS="-lGLEW $gl_NONPKGCONFIG_LIBS" + if test "x$have_glew" != "xno"; then + gl_NONPKGCONFIG_LIBS="-l$have_glew $gl_NONPKGCONFIG_LIBS" use_glew="yes (system library)" else CAIRO_ENABLE_FUNCTIONS(glew, GLEW, always) |