mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-25 01:20:10 +01:00
configure: Try an alternate name for system glew.
This commit is contained in:
parent
25ec0c1e9b
commit
e2220a1f3a
1 changed files with 6 additions and 4 deletions
10
configure.ac
10
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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue