autotools: do not link with libGL if we have "wayland-egl" without "gl"

If we have "wayland-egl" and choose to use another engine than "gl"
("glesv2" with "--with-opengl=es" e.g.), then we are in a case where
linking with libGL is not necessary. This is especially useful on a
pure Wayland system.

Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Manuel Bachmann 2014-08-19 04:34:20 -07:00 committed by Chris Michael
parent 45ccffa837
commit 1b6616cb3a
1 changed files with 3 additions and 0 deletions

View File

@ -568,6 +568,9 @@ PKG_CHECK_EXISTS([egl >= 7.10 ${gl_library} wayland-client >= 1.3.0 wayland-egl
[have_dep="no"])
if test "x${have_dep}" = "xyes" ; then
if test "${gl_library}" != "gl" ; then
have_egl="yes"
fi
if test "x$3" = "xstatic" ; then
requirements_pc_evas="${requirement} ${requirements_pc_evas}"
requirements_pc_deps_evas="${requirement} ${requirements_pc_deps_evas}"