summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-05-03 12:02:20 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-05-27 11:57:53 -0400
commitccb573ec7b460326e5d45ce2a3f9ac7a7470e335 (patch)
tree797c50b6a98a3449e067b95f8b4575839f0cb0b9 /m4
parent13337c2583d089909dd2c872fcfa9cab11e9eb70 (diff)
evas-engines: Port evas drm engines to use Ecore_Drm2 library
This patch ports the evas drm and gl_drm engines to use the new Ecore_Drm2 library Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
Diffstat (limited to 'm4')
-rw-r--r--m4/evas_check_engine.m413
1 files changed, 10 insertions, 3 deletions
diff --git a/m4/evas_check_engine.m4 b/m4/evas_check_engine.m4
index 448a210592..4789d4b9f0 100644
--- a/m4/evas_check_engine.m4
+++ b/m4/evas_check_engine.m4
@@ -597,16 +597,23 @@ AC_DEFUN([EVAS_CHECK_ENGINE_DEP_DRM],
[
requirement=""
-have_dep="yes"
+have_dep="no"
have_hw_dep="no"
evas_engine_[]$1[]_cflags=""
evas_engine_[]$1[]_libs=""
+PKG_CHECK_EXISTS([libdrm],
+ [
+ have_dep="yes"
+ requirement="libdrm"
+ ], [have_dep="no"])
+
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}"
else
+ PKG_CHECK_MODULES([DRM], [${requirement}])
evas_engine_[]$1[]_cflags="${DRM_CFLAGS}"
evas_engine_[]$1[]_libs="${DRM_LIBS}"
fi
@@ -636,10 +643,10 @@ else
AC_MSG_ERROR([We currently do not support GL DRM without OpenGL ES. Please consider OpenGL ES if you want to use it.])
fi
-PKG_CHECK_EXISTS([egl ${gl_library} gbm wayland-client >= REQUIRED_WAYLAND_VERSION],
+PKG_CHECK_EXISTS([egl ${gl_library} libdrm gbm wayland-client >= REQUIRED_WAYLAND_VERSION],
[
have_dep="yes"
- requirement="egl ${gl_library} gbm wayland-client >= REQUIRED_WAYLAND_VERSION"
+ requirement="egl ${gl_library} libdrm gbm wayland-client >= REQUIRED_WAYLAND_VERSION"
],
[have_dep="no"])