summaryrefslogtreecommitdiff
path: root/m4/ecore_check_module.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/ecore_check_module.m4')
-rw-r--r--m4/ecore_check_module.m413
1 files changed, 13 insertions, 0 deletions
diff --git a/m4/ecore_check_module.m4 b/m4/ecore_check_module.m4
index 5981fd7f3a..c34a342899 100644
--- a/m4/ecore_check_module.m4
+++ b/m4/ecore_check_module.m4
@@ -7,12 +7,25 @@ m4_pushdef([DOWN], m4_translit([[$1]], [-A-Z], [_a-z]))dnl
7have_ecore_evas_[]m4_defn([DOWN])="no" 7have_ecore_evas_[]m4_defn([DOWN])="no"
8want_module="$2" 8want_module="$2"
9 9
10ecore_evas_engines_[]m4_defn([DOWN])[]_cflags=""
11ecore_evas_engines_[]m4_defn([DOWN])[]_libs=""
12
10if test "x$want_module" = "xyes" || test "x$want_module" = "xstatic"; then 13if test "x$want_module" = "xyes" || test "x$want_module" = "xstatic"; then
11 $3 14 $3
12 15
13 AC_DEFINE([BUILD_ECORE_EVAS_]m4_defn([UP]), [1], [Support for $1 Engine in Ecore_Evas]) 16 AC_DEFINE([BUILD_ECORE_EVAS_]m4_defn([UP]), [1], [Support for $1 Engine in Ecore_Evas])
14 have_ecore_evas_[]m4_defn([DOWN])="yes" 17 have_ecore_evas_[]m4_defn([DOWN])="yes"
18
19 if test "x$1" = "xgl-drm"; then
20 PKG_CHECK_MODULES([GBM], [gbm])
21 ecore_evas_engines_[]m4_defn([DOWN])[]_cflags="${GBM_CFLAGS}"
22 ecore_evas_engines_[]m4_defn([DOWN])[]_libs="${GBM_LIBS}"
23 fi
15fi 24fi
25
26AC_SUBST([ecore_evas_engines_]m4_defn([DOWN])[_cflags])
27AC_SUBST([ecore_evas_engines_]m4_defn([DOWN])[_libs])
28
16EFL_ADD_FEATURE([ECORE_EVAS], [$1], [${want_module}])dnl 29EFL_ADD_FEATURE([ECORE_EVAS], [$1], [${want_module}])dnl
17AM_CONDITIONAL([BUILD_ECORE_EVAS_]UP, [test "x$have_ecore_evas_]m4_defn([DOWN])[" = "xyes"])dnl 30AM_CONDITIONAL([BUILD_ECORE_EVAS_]UP, [test "x$have_ecore_evas_]m4_defn([DOWN])[" = "xyes"])dnl
18m4_popdef([UP])dnl 31m4_popdef([UP])dnl