diff options
author | Christopher Michael <cp.michael@samsung.com> | 2013-01-24 09:13:48 +0000 |
---|---|---|
committer | Christopher Michael <cpmichael1@comcast.net> | 2013-01-24 09:13:48 +0000 |
commit | 6f9d4f9fd44201ab9bf09a6805268578bcc17fed (patch) | |
tree | 79520c99b2779f5b0dec5caf25a9d4d223a0ed3f /m4/evas_check_engine.m4 | |
parent | 0c7425a0aa99edcbd34c73218174addacb05981e (diff) |
Add wayland-client as a dependency for the evas wayland shm engine.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83210
Diffstat (limited to 'm4/evas_check_engine.m4')
-rw-r--r-- | m4/evas_check_engine.m4 | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/m4/evas_check_engine.m4 b/m4/evas_check_engine.m4 index 021b176701..5e6655ccf5 100644 --- a/m4/evas_check_engine.m4 +++ b/m4/evas_check_engine.m4 | |||
@@ -509,6 +509,41 @@ AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5]) | |||
509 | ]) | 509 | ]) |
510 | 510 | ||
511 | 511 | ||
512 | dnl use: EVAS_CHECK_ENGINE_DEP_WAYLAND_SHM(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) | ||
513 | |||
514 | AC_DEFUN([EVAS_CHECK_ENGINE_DEP_WAYLAND_SHM], | ||
515 | [ | ||
516 | |||
517 | requirement="" | ||
518 | have_dep="no" | ||
519 | evas_engine_[]$1[]_cflags="" | ||
520 | evas_engine_[]$1[]_libs="" | ||
521 | |||
522 | PKG_CHECK_EXISTS([wayland-client], | ||
523 | [ | ||
524 | have_dep="yes" | ||
525 | requirement="wayland-client" | ||
526 | ], | ||
527 | [have_dep="no"]) | ||
528 | |||
529 | if test "x${have_dep}" = "xyes" ; then | ||
530 | if test "x$3" = "xstatic" ; then | ||
531 | requirements_pc_evas="${requirement} ${requirements_pc_evas}" | ||
532 | requirements_pc_deps_evas="${requirement} ${requirements_pc_deps_evas}" | ||
533 | else | ||
534 | PKG_CHECK_MODULES([WAYLAND_SHM], [${requirement}]) | ||
535 | evas_engine_[]$1[]_cflags="${WAYLAND_SHM_CFLAGS}" | ||
536 | evas_engine_[]$1[]_libs="${WAYLAND_SHM_LIBS}" | ||
537 | fi | ||
538 | fi | ||
539 | |||
540 | AC_SUBST([evas_engine_$1_cflags]) | ||
541 | AC_SUBST([evas_engine_$1_libs]) | ||
542 | |||
543 | AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5]) | ||
544 | |||
545 | ]) | ||
546 | |||
512 | dnl use: EVAS_CHECK_ENGINE_DEP_WAYLAND_EGL(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) | 547 | dnl use: EVAS_CHECK_ENGINE_DEP_WAYLAND_EGL(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) |
513 | 548 | ||
514 | AC_DEFUN([EVAS_CHECK_ENGINE_DEP_WAYLAND_EGL], | 549 | AC_DEFUN([EVAS_CHECK_ENGINE_DEP_WAYLAND_EGL], |