Add wayland-client as a dependency for the evas wayland shm engine.
authorChristopher Michael <cp.michael@samsung.com>
Thu, 24 Jan 2013 09:13:48 +0000 (09:13 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Thu, 24 Jan 2013 09:13:48 +0000 (09:13 +0000)
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83210

m4/evas_check_engine.m4

index 021b176701b8953e76fd72c5b9cf353ec2f139f7..5e6655ccf598157ab0c350104b3e5d26fdf7abe5 100644 (file)
@@ -509,6 +509,41 @@ AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5])
 ])
 
 
+dnl use: EVAS_CHECK_ENGINE_DEP_WAYLAND_SHM(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
+
+AC_DEFUN([EVAS_CHECK_ENGINE_DEP_WAYLAND_SHM],
+[
+
+requirement=""
+have_dep="no"
+evas_engine_[]$1[]_cflags=""
+evas_engine_[]$1[]_libs=""
+
+PKG_CHECK_EXISTS([wayland-client],
+   [
+    have_dep="yes"
+    requirement="wayland-client"
+   ],
+   [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([WAYLAND_SHM], [${requirement}])
+      evas_engine_[]$1[]_cflags="${WAYLAND_SHM_CFLAGS}"
+      evas_engine_[]$1[]_libs="${WAYLAND_SHM_LIBS}"
+   fi
+fi
+
+AC_SUBST([evas_engine_$1_cflags])
+AC_SUBST([evas_engine_$1_libs])
+
+AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5])
+
+])
+
 dnl use: EVAS_CHECK_ENGINE_DEP_WAYLAND_EGL(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
 
 AC_DEFUN([EVAS_CHECK_ENGINE_DEP_WAYLAND_EGL],