aboutsummaryrefslogtreecommitdiffstats
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
parentelementary: removing webkit2 module as it should now be built outside of tree. (diff)
downloadefl-91367f2c11111bdbc5c843774d18f4b5310a65d8.tar.gz
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
m4_pushdef([DOWN], m4_translit([$1], [-A-Z], [_a-z]))dnl
have_elementary_[]DOWN="no"
-
-AC_ARG_ENABLE([ecore-]DOWN,
- [AC_HELP_STRING([--disable-ecore-]DOWN, [disable ecore-]DOWN[ support. @<:@default=detect@:>@])],
- [want_backend=$enableval],
- [want_backend="auto"])
+want_backend="$2"
AC_MSG_CHECKING([whether to enable $1 backend])
AC_MSG_RESULT([${want_backend}])
if test "x${want_backend}" != "xno"; then
- PKG_CHECK_EXISTS([ecore-]DOWN[ >= efl_version],
- [
- AC_DEFINE([HAVE_ELEMENTARY_]UP, [1], [$1 support for Elementary])
- have_elementary_[]DOWN="yes"
- requirement_elm_pc="ecore-[]DOWN >= efl_version ${requirement_elm_pc}"
- ],
- [have_elementary_]DOWN[="no"]
- )
+ AC_DEFINE([HAVE_ELEMENTARY_]UP, [1], [$1 support for Elementary])
+ have_elementary_[]DOWN="yes"
+ requirement_elm_pc="ecore-[]DOWN >= efl_version ${requirement_elm_pc}"
fi
AC_MSG_CHECKING([whether to build $1 backend])
AC_MSG_RESULT([${have_elementary_[]DOWN}])
-if test "x${want_backend}" = "xyes" && test "x$have_elementary_[]DOWN" = "xno"; then
- AC_MSG_ERROR([ecore-]DOWN[ support requested, but ecore-]DOWN[ was not found by pkg-config.])
-fi
+EFL_ADD_FEATURE([ELEMENTARY], [$1], [${want_backend}])
m4_popdef([UP])dnl
m4_popdef([DOWN])dnl