Skip to content

Commit

Permalink
configure.ac: configuration check to enable either gl or glesv2, not …
Browse files Browse the repository at this point in the history
…both at the same time

A proposed solution for the discussion in
https://bugs.freedesktop.org/show_bug.cgi?id=57379#c12,
to avoid muliple definition of cairo_gl_* symbols when
both gl and glesv2 backends are enabled at the same time

Signed-off-by: Ravi Nanjundappa <nravi.n@samsung.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
  • Loading branch information
Ravi Nanjundappa authored and Bryce Harrington committed Aug 21, 2014
1 parent 932548e commit eab218d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,10 @@ CAIRO_ENABLE_SURFACE_BACKEND(glesv2, OpenGLESv2, no, [
glesv2_LIBS="$glesv2_LIBS -ldl"
fi
if test "x$use_glesv2" = "xyes" -a "x$use_gl" = "xyes"; then
AC_MSG_ERROR([use either --enable-gl=yes or --enable-glesv2=yes. Not both at the same time.])
fi
need_egl_functions=yes
])

Expand Down

0 comments on commit eab218d

Please sign in to comment.