Skip to content

Commit

Permalink
configure: Try an alternate name for system glew.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Wilson committed Jun 15, 2010
1 parent 25ec0c1 commit e2220a1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e2220a1

Please sign in to comment.