summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2016-03-23 16:00:47 -0700
committerCedric BAIL <cedric@osg.samsung.com>2016-03-23 16:00:47 -0700
commit91367f2c11111bdbc5c843774d18f4b5310a65d8 (patch)
treec11d2c4e39d452adfdeea7d18d86d118c50b5522 /m4
parentb1f28ef697725ed879a38e02480ad1a39252da9a (diff)
elementary: merge configure logic.
Diffstat (limited to 'm4')
-rw-r--r--m4/elm_check_backend.m421
1 files changed, 5 insertions, 16 deletions
diff --git a/m4/elm_check_backend.m4 b/m4/elm_check_backend.m4
index 471218f90e..a51235718a 100644
--- a/m4/elm_check_backend.m4
+++ b/m4/elm_check_backend.m4
@@ -6,32 +6,21 @@ m4_pushdef([UP], m4_translit([$1], [-a-z], [_A-Z]))dnl
6m4_pushdef([DOWN], m4_translit([$1], [-A-Z], [_a-z]))dnl 6m4_pushdef([DOWN], m4_translit([$1], [-A-Z], [_a-z]))dnl
7 7
8have_elementary_[]DOWN="no" 8have_elementary_[]DOWN="no"
9 9want_backend="$2"
10AC_ARG_ENABLE([ecore-]DOWN,
11 [AC_HELP_STRING([--disable-ecore-]DOWN, [disable ecore-]DOWN[ support. @<:@default=detect@:>@])],
12 [want_backend=$enableval],
13 [want_backend="auto"])
14 10
15AC_MSG_CHECKING([whether to enable $1 backend]) 11AC_MSG_CHECKING([whether to enable $1 backend])
16AC_MSG_RESULT([${want_backend}]) 12AC_MSG_RESULT([${want_backend}])
17 13
18if test "x${want_backend}" != "xno"; then 14if test "x${want_backend}" != "xno"; then
19 PKG_CHECK_EXISTS([ecore-]DOWN[ >= efl_version], 15 AC_DEFINE([HAVE_ELEMENTARY_]UP, [1], [$1 support for Elementary])
20 [ 16 have_elementary_[]DOWN="yes"
21 AC_DEFINE([HAVE_ELEMENTARY_]UP, [1], [$1 support for Elementary]) 17 requirement_elm_pc="ecore-[]DOWN >= efl_version ${requirement_elm_pc}"
22 have_elementary_[]DOWN="yes"
23 requirement_elm_pc="ecore-[]DOWN >= efl_version ${requirement_elm_pc}"
24 ],
25 [have_elementary_]DOWN[="no"]
26 )
27fi 18fi
28 19
29AC_MSG_CHECKING([whether to build $1 backend]) 20AC_MSG_CHECKING([whether to build $1 backend])
30AC_MSG_RESULT([${have_elementary_[]DOWN}]) 21AC_MSG_RESULT([${have_elementary_[]DOWN}])
31 22
32if test "x${want_backend}" = "xyes" && test "x$have_elementary_[]DOWN" = "xno"; then 23EFL_ADD_FEATURE([ELEMENTARY], [$1], [${want_backend}])
33 AC_MSG_ERROR([ecore-]DOWN[ support requested, but ecore-]DOWN[ was not found by pkg-config.])
34fi
35 24
36m4_popdef([UP])dnl 25m4_popdef([UP])dnl
37m4_popdef([DOWN])dnl 26m4_popdef([DOWN])dnl