aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/edje/m4/efl_binary.m4
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/edje/m4/efl_binary.m4')
-rw-r--r--libraries/edje/m4/efl_binary.m427
1 files changed, 27 insertions, 0 deletions
diff --git a/libraries/edje/m4/efl_binary.m4 b/libraries/edje/m4/efl_binary.m4
index 93d6934..c774688 100644
--- a/libraries/edje/m4/efl_binary.m4
+++ b/libraries/edje/m4/efl_binary.m4
@@ -42,3 +42,30 @@ AM_CONDITIONAL(BUILD_[]UP, test "x$have_[]m4_defn([DOWN])" = "xyes")
42AS_IF([test "x$have_[]m4_defn([DOWN])" = "xyes"], [$2], [$3]) 42AS_IF([test "x$have_[]m4_defn([DOWN])" = "xyes"], [$2], [$3])
43 43
44]) 44])
45
46
47dnl Macro that check if a binary is built or not
48
49dnl Usage: EFL_WITH_BIN(package, binary, default_value)
50dnl Call AC_SUBST(_binary) (_binary is the lowercase of binary, - being transformed into _ by default, or the value set by the user)
51
52AC_DEFUN([EFL_WITH_BIN],
53[
54
55m4_pushdef([DOWN], m4_translit([[$2]], [-A-Z], [_a-z]))dnl
56
57dnl configure option
58
59AC_ARG_WITH([$2],
60 [AC_HELP_STRING([--with-$2=PATH], [specify a specific path to ]DOWN[ @<:@default=$3@:>@])],
61 [_efl_with_binary=${withval}],
62 [_efl_with_binary=$(pkg-config --variable=prefix $1)/bin/$3])
63
64DOWN=${_efl_with_binary}
65AC_MSG_NOTICE(DOWN[ set to ${_efl_with_binary}])
66
67with_binary_[]m4_defn([DOWN])=${_efl_with_binary}
68
69AC_SUBST(DOWN)
70
71])