summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2013-04-29 11:54:26 +0100
committerChris Michael <cp.michael@samsung.com>2013-04-29 11:54:26 +0100
commit27c593afa98fb30b33378c9102a56ee4440bf46b (patch)
tree6e0479b61f40a084ca0da5b2f0f8ac8d7ce209f8 /m4
parentb8c6d197480fb10a520c6bc7a05fd2abcbfcca64 (diff)
Add EVAS_CHECK_ENGINE_DEP_DRM to m4
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'm4')
-rw-r--r--m4/evas_check_engine.m435
1 files changed, 35 insertions, 0 deletions
diff --git a/m4/evas_check_engine.m4 b/m4/evas_check_engine.m4
index 5e6655c..907bc8c 100644
--- a/m4/evas_check_engine.m4
+++ b/m4/evas_check_engine.m4
@@ -585,6 +585,41 @@ AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5])
585 585
586]) 586])
587 587
588dnl use: EVAS_CHECK_ENGINE_DEP_DRM(engine, simple, want_static[, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
589
590AC_DEFUN([EVAS_CHECK_ENGINE_DEP_DRM],
591[
592
593requirement=""
594have_dep="no"
595evas_engine_[]$1[]_cflags=""
596evas_engine_[]$1[]_libs=""
597
598PKG_CHECK_EXISTS([libdrm],
599 [
600 have_dep="yes"
601 requirement="libdrm"
602 ],
603 [have_dep="no"])
604
605if test "x${have_dep}" = "xyes" ; then
606 if test "x$3" = "xstatic" ; then
607 requirements_pc_evas="${requirement} ${requirements_pc_evas}"
608 requirements_pc_deps_evas="${requirement} ${requirements_pc_deps_evas}"
609 else
610 PKG_CHECK_MODULES([DRM], [${requirement}])
611 evas_engine_[]$1[]_cflags="${DRM_CFLAGS}"
612 evas_engine_[]$1[]_libs="${DRM_LIBS}"
613 fi
614fi
615
616AC_SUBST([evas_engine_$1_cflags])
617AC_SUBST([evas_engine_$1_libs])
618
619AS_IF([test "x${have_dep}" = "xyes"], [$4], [$5])
620
621])
622
588 623
589dnl use: EVAS_ENGINE(name, want_engine, [DEPENDENCY-CHECK-CODE]) 624dnl use: EVAS_ENGINE(name, want_engine, [DEPENDENCY-CHECK-CODE])
590dnl 625dnl