summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRavi Nanjundappa <nravi.n@samsung.com>2014-08-20 11:45:19 +0530
committerBryce Harrington <bryce@osg.samsung.com>2014-08-21 12:34:10 -0700
commiteab218d1e3b0f2a3c0ab33d3173c42cc57e9bf8c (patch)
tree746fbce283de706b2cfad8d271fe21d740960b02
parent932548ef25864958ef966ffe83e7c945c3ff3cd4 (diff)
configure.ac: configuration check to enable either gl or glesv2, not 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>
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 23f2054da..4e28adfb4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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
])