diff options
author | Cedric Bail <cedric.bail@free.fr> | 2013-03-24 13:00:55 +0100 |
---|---|---|
committer | Cedric Bail <cedric.bail@free.fr> | 2013-03-24 22:59:44 +0900 |
commit | 0fbe8161ba21906b0eb504049e534edc220b6196 (patch) | |
tree | 1176ca70fd2e8cc293c68b167afbb548cc885c2e /m4/efl_binary.m4 | |
parent | 77e557e7e5e19ab1e76a3635266eb7e1a6584e7d (diff) |
edje: add option to enable theme compilation when cross compiling
Diffstat (limited to '')
-rw-r--r-- | m4/efl_binary.m4 | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/m4/efl_binary.m4 b/m4/efl_binary.m4 new file mode 100644 index 0000000000..9165eef64f --- /dev/null +++ b/m4/efl_binary.m4 | |||
@@ -0,0 +1,25 @@ | |||
1 | |||
2 | |||
3 | dnl Usage: EFL_WITH_BIN(package, binary) | ||
4 | dnl Call AC_SUBST(_binary) (_binary is the lowercase of binary, - being transformed into _ by default, or the value set by the user) | ||
5 | |||
6 | AC_DEFUN([EFL_WITH_BIN], | ||
7 | [ | ||
8 | |||
9 | m4_pushdef([DOWN], m4_translit([[$2]], [-A-Z], [_a-z]))dnl | ||
10 | |||
11 | dnl configure option | ||
12 | |||
13 | AC_ARG_WITH([bin-$2], | ||
14 | [AC_HELP_STRING([--with-bin-$2=PATH], [specify a specific path to ]DOWN[ @<:@default=]DOWN[@:>@])], | ||
15 | [_efl_with_binary=${withval}], | ||
16 | [_efl_with_binary="EFL_RUN_IN_TREE=1 $(top_builddir)/bin/$1/]DOWN") | ||
17 | |||
18 | DOWN=${_efl_with_binary} | ||
19 | AC_MSG_NOTICE(DOWN[ set to ${_efl_with_binary}]) | ||
20 | |||
21 | with_binary_[]m4_defn([DOWN])=${_efl_with_binary} | ||
22 | |||
23 | AC_SUBST(DOWN) | ||
24 | |||
25 | ]) | ||