summaryrefslogtreecommitdiff
path: root/m4/elm_check_backend.m4
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2016-03-23 12:56:14 -0700
committerCedric BAIL <cedric@osg.samsung.com>2016-03-23 13:24:41 -0700
commitc2a1c49ab2042f559b28e840e54feb8494888e0e (patch)
treec6eb110b7c479499854eede9d0c3ab0a80c9a11a /m4/elm_check_backend.m4
parent9340855597e7e465435c69b6278650346688da14 (diff)
elementary: move all legacy files to their expected new location.
Diffstat (limited to 'm4/elm_check_backend.m4')
-rw-r--r--m4/elm_check_backend.m438
1 files changed, 38 insertions, 0 deletions
diff --git a/m4/elm_check_backend.m4 b/m4/elm_check_backend.m4
new file mode 100644
index 0000000000..471218f90e
--- /dev/null
+++ b/m4/elm_check_backend.m4
@@ -0,0 +1,38 @@
1
2dnl use: ELM_CHECK_BACKEND(engine)
3AC_DEFUN([ELM_CHECK_BACKEND],
4[dnl
5m4_pushdef([UP], m4_translit([$1], [-a-z], [_A-Z]))dnl
6m4_pushdef([DOWN], m4_translit([$1], [-A-Z], [_a-z]))dnl
7
8have_elementary_[]DOWN="no"
9
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
15AC_MSG_CHECKING([whether to enable $1 backend])
16AC_MSG_RESULT([${want_backend}])
17
18if test "x${want_backend}" != "xno"; then
19 PKG_CHECK_EXISTS([ecore-]DOWN[ >= efl_version],
20 [
21 AC_DEFINE([HAVE_ELEMENTARY_]UP, [1], [$1 support for Elementary])
22 have_elementary_[]DOWN="yes"
23 requirement_elm_pc="ecore-[]DOWN >= efl_version ${requirement_elm_pc}"
24 ],
25 [have_elementary_]DOWN[="no"]
26 )
27fi
28
29AC_MSG_CHECKING([whether to build $1 backend])
30AC_MSG_RESULT([${have_elementary_[]DOWN}])
31
32if test "x${want_backend}" = "xyes" && test "x$have_elementary_[]DOWN" = "xno"; then
33 AC_MSG_ERROR([ecore-]DOWN[ support requested, but ecore-]DOWN[ was not found by pkg-config.])
34fi
35
36m4_popdef([UP])dnl
37m4_popdef([DOWN])dnl
38])