aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2014-01-10 07:30:32 +0000
committerChris Michael <cp.michael@samsung.com>2014-01-29 15:27:23 +0000
commitf8148865c25ee6eea9de14b7226a6299aca1c15b (patch)
tree6f205e9dbeb85d040790bbc389f91e24b14bd140
parentRemove old outbuf file (diff)
downloadefl-f8148865c25ee6eea9de14b7226a6299aca1c15b.tar.gz
Modify evas_check_engine macros (for drm) to detect egl
Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--m4/evas_check_engine.m424
1 files changed, 21 insertions, 3 deletions
diff --git a/m4/evas_check_engine.m4 b/m4/evas_check_engine.m4
index 3fd4890dd5..cc6e0737fa 100644
--- a/m4/evas_check_engine.m4
+++ b/m4/evas_check_engine.m4
@@ -591,10 +591,18 @@ AC_DEFUN([EVAS_CHECK_ENGINE_DEP_DRM],
[
requirement=""
+requirement_egl=""
have_dep="no"
+have_egl="no"
evas_engine_[]$1[]_cflags=""
evas_engine_[]$1[]_libs=""
+if test "x${with_opengl}" = "xes" ; then
+ gl_library="glesv2"
+else
+ gl_library="no"
+fi
+
PKG_CHECK_EXISTS([libdrm],
[
have_dep="yes"
@@ -602,12 +610,22 @@ PKG_CHECK_EXISTS([libdrm],
],
[have_dep="no"])
+if test "x${gl_library}" = "xglesv2" ; then
+ PKG_CHECK_EXISTS([egl >= 7.10 ${gl_library}],
+ [
+ have_egl="yes"
+ requirement_egl="egl >= 7.10 ${gl_library}"
+ ],
+ [have_egl="no"])
+fi
+
+
if test "x${have_dep}" = "xyes" ; then
if test "x$3" = "xstatic" ; then
- requirements_pc_evas="${requirement} ${requirements_pc_evas}"
- requirements_pc_deps_evas="${requirement} ${requirements_pc_deps_evas}"
+ requirements_pc_evas="${requirement} ${requirement_egl} ${requirements_pc_evas}"
+ requirements_pc_deps_evas="${requirement} ${requirement_egl} ${requirements_pc_deps_evas}"
else
- PKG_CHECK_MODULES([DRM], [${requirement}])
+ PKG_CHECK_MODULES([DRM], [${requirement} ${requirement_egl}])
evas_engine_[]$1[]_cflags="${DRM_CFLAGS}"
evas_engine_[]$1[]_libs="${DRM_LIBS}"
fi