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 | |
parent | 77e557e7e5e19ab1e76a3635266eb7e1a6584e7d (diff) | |
download | efl-0fbe8161ba21906b0eb504049e534edc220b6196.tar.gz |
edje: add option to enable theme compilation when cross compiling
Diffstat (limited to 'm4')
-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 @@ + + +dnl Usage: EFL_WITH_BIN(package, binary) +dnl Call AC_SUBST(_binary) (_binary is the lowercase of binary, - being transformed into _ by default, or the value set by the user) + +AC_DEFUN([EFL_WITH_BIN], +[ + +m4_pushdef([DOWN], m4_translit([[$2]], [-A-Z], [_a-z]))dnl + +dnl configure option + +AC_ARG_WITH([bin-$2], + [AC_HELP_STRING([--with-bin-$2=PATH], [specify a specific path to ]DOWN[ @<:@default=]DOWN[@:>@])], + [_efl_with_binary=${withval}], + [_efl_with_binary="EFL_RUN_IN_TREE=1 $(top_builddir)/bin/$1/]DOWN") + +DOWN=${_efl_with_binary} +AC_MSG_NOTICE(DOWN[ set to ${_efl_with_binary}]) + +with_binary_[]m4_defn([DOWN])=${_efl_with_binary} + +AC_SUBST(DOWN) + +]) |