diff options
author | Vincent Torri <vincent.torri@gmail.com> | 2011-01-30 10:03:05 +0000 |
---|---|---|
committer | Vincent Torri <vincent.torri@gmail.com> | 2011-01-30 10:03:05 +0000 |
commit | 05d52f18e40a0de872c45a48f2fafceb1e2bd2d0 (patch) | |
tree | 5f4b903bd9acb5d2cd40a2869fc7138394da6315 /legacy/emotion | |
parent | fd424475c28c76a9b39c31ff4610fee56cddd5b4 (diff) |
set MODULE_EDJE when edje external module is enabled and when edje is found
SVN revision: 56402
Diffstat (limited to 'legacy/emotion')
-rw-r--r-- | legacy/emotion/configure.ac | 9 | ||||
-rw-r--r-- | legacy/emotion/m4/efl_edje_external.m4 | 12 |
2 files changed, 13 insertions, 8 deletions
diff --git a/legacy/emotion/configure.ac b/legacy/emotion/configure.ac index 5f94b6f9db..c4fd975e5e 100644 --- a/legacy/emotion/configure.ac +++ b/legacy/emotion/configure.ac | |||
@@ -53,19 +53,13 @@ AC_SUBST(release_info) | |||
53 | VMAJ=v_maj | 53 | VMAJ=v_maj |
54 | AC_SUBST(VMAJ) | 54 | AC_SUBST(VMAJ) |
55 | 55 | ||
56 | # pkg-config | ||
57 | PKG_PROG_PKG_CONFIG | ||
58 | EDJE_VERSION=`$PKG_CONFIG edje --modversion | awk -F . '{printf("%s.0.0", \$1);}'` | ||
59 | |||
60 | want_vlc="no" | 56 | want_vlc="no" |
61 | case "$host_os" in | 57 | case "$host_os" in |
62 | mingw* | cegcc*) | 58 | mingw* | cegcc*) |
63 | MODULE_EDJE="$host_os-$host_cpu" | ||
64 | want_xine="no" | 59 | want_xine="no" |
65 | want_gstreamer="yes" | 60 | want_gstreamer="yes" |
66 | ;; | 61 | ;; |
67 | *) | 62 | *) |
68 | MODULE_EDJE="$host_os-$host_cpu-${EDJE_VERSION}" | ||
69 | want_xine="yes" | 63 | want_xine="yes" |
70 | want_gstreamer="yes" | 64 | want_gstreamer="yes" |
71 | ;; | 65 | ;; |
@@ -96,6 +90,9 @@ AC_SUBST(edje_cc) | |||
96 | ### Checks for programs | 90 | ### Checks for programs |
97 | AC_PROG_CC | 91 | AC_PROG_CC |
98 | 92 | ||
93 | # pkg-config | ||
94 | PKG_PROG_PKG_CONFIG | ||
95 | |||
99 | # Check whether pkg-config supports Requires.private | 96 | # Check whether pkg-config supports Requires.private |
100 | if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then | 97 | if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then |
101 | pkgconfig_requires_private="Requires.private" | 98 | pkgconfig_requires_private="Requires.private" |
diff --git a/legacy/emotion/m4/efl_edje_external.m4 b/legacy/emotion/m4/efl_edje_external.m4 index 35b74457de..703f83ed00 100644 --- a/legacy/emotion/m4/efl_edje_external.m4 +++ b/legacy/emotion/m4/efl_edje_external.m4 | |||
@@ -1,4 +1,4 @@ | |||
1 | dnl Copyright (C) 2010 Vincent Torri <vtorri at univ-evry dot fr> | 1 | dnl Copyright (C) 2010-2011 Vincent Torri <vtorri at univ-evry dot fr> |
2 | dnl That code is public domain and can be freely used or copied. | 2 | dnl That code is public domain and can be freely used or copied. |
3 | 3 | ||
4 | dnl Macro that check if edje external should be enabled or not | 4 | dnl Macro that check if edje external should be enabled or not |
@@ -29,7 +29,7 @@ AC_MSG_RESULT([${_efl_want_edje_external}]) | |||
29 | _efl_enable_edje_external="no" | 29 | _efl_enable_edje_external="no" |
30 | if ! test "x${_efl_want_edje_external}" = "xno" ; then | 30 | if ! test "x${_efl_want_edje_external}" = "xno" ; then |
31 | PKG_CHECK_MODULES([EDJE_EXTERNAL], | 31 | PKG_CHECK_MODULES([EDJE_EXTERNAL], |
32 | [edje], | 32 | [edje >= 1.0.0], |
33 | [_efl_enable_edje_external="yes"], | 33 | [_efl_enable_edje_external="yes"], |
34 | [_efl_enable_edje_external="no"]) | 34 | [_efl_enable_edje_external="no"]) |
35 | fi | 35 | fi |
@@ -41,6 +41,14 @@ if test "x${_efl_want_edje_external}" = "xyes" && test "x${_efl_enable_edje_exte | |||
41 | AC_MSG_ERROR([Edje EXTERNAL support requested, but Edje not found by pkg-config.]) | 41 | AC_MSG_ERROR([Edje EXTERNAL support requested, but Edje not found by pkg-config.]) |
42 | fi | 42 | fi |
43 | 43 | ||
44 | if test "x${_efl_enable_edje_external}" = "xyes" ; then | ||
45 | EDJE_VERSION=`${PKG_CONFIG} edje --modversion | awk -F . '{printf("%s.0.0", $[]1);}'` | ||
46 | MODULE_EDJE="$host_os-$host_cpu-${EDJE_VERSION}" | ||
47 | AC_DEFINE_UNQUOTED(MODULE_EDJE, "$MODULE_EDJE", "Edje module architecture") | ||
48 | fi | ||
49 | |||
50 | AC_SUBST(MODULE_EDJE) | ||
51 | |||
44 | AM_CONDITIONAL([ENABLE_EDJE_EXTERNAL], [test "x${_efl_enable_edje_external}" = "xyes"]) | 52 | AM_CONDITIONAL([ENABLE_EDJE_EXTERNAL], [test "x${_efl_enable_edje_external}" = "xyes"]) |
45 | 53 | ||
46 | AS_IF([test "x${_efl_enable_edje_external}" = "xyes"], [$1], [$2]) | 54 | AS_IF([test "x${_efl_enable_edje_external}" = "xyes"], [$1], [$2]) |