diff options
author | Manuel Bachmann <manuel.bachmann@open.eurogiciel.org> | 2014-08-19 04:34:20 -0700 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2014-08-19 08:22:50 -0400 |
commit | 1b6616cb3a78565eaaba3d874a588f9a277bd93f (patch) | |
tree | 7a174c4567e85ee1f445795ef91458e8f611d5c5 /m4 | |
parent | 45ccffa8378367242462c06fb3b6b47f2f68a9e8 (diff) |
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>
Diffstat (limited to '')
-rw-r--r-- | m4/evas_check_engine.m4 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/m4/evas_check_engine.m4 b/m4/evas_check_engine.m4 index 6c8ed81d8c..fd29393096 100644 --- a/m4/evas_check_engine.m4 +++ b/m4/evas_check_engine.m4 | |||
@@ -568,6 +568,9 @@ PKG_CHECK_EXISTS([egl >= 7.10 ${gl_library} wayland-client >= 1.3.0 wayland-egl | |||
568 | [have_dep="no"]) | 568 | [have_dep="no"]) |
569 | 569 | ||
570 | if test "x${have_dep}" = "xyes" ; then | 570 | if test "x${have_dep}" = "xyes" ; then |
571 | if test "${gl_library}" != "gl" ; then | ||
572 | have_egl="yes" | ||
573 | fi | ||
571 | if test "x$3" = "xstatic" ; then | 574 | if test "x$3" = "xstatic" ; then |
572 | requirements_pc_evas="${requirement} ${requirements_pc_evas}" | 575 | requirements_pc_evas="${requirement} ${requirements_pc_evas}" |
573 | requirements_pc_deps_evas="${requirement} ${requirements_pc_deps_evas}" | 576 | requirements_pc_deps_evas="${requirement} ${requirements_pc_deps_evas}" |