summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-06-12 15:20:18 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-06-12 15:20:18 +0100
commit9a4deeafe2cf4f5972bf8e777a059b1a6dda0f52 (patch)
tree18404f9ded1414f371118d76d02f41bcd631f94e /m4
parentbe0062ab0f233869803d770fb207e051e9b12619 (diff)
m4: EFL_WITH_BIN_SUFFIX, make use of it in configure.ac
Diffstat (limited to 'm4')
-rw-r--r--m4/efl_binary.m415
1 files changed, 9 insertions, 6 deletions
diff --git a/m4/efl_binary.m4 b/m4/efl_binary.m4
index a86a41d..3a811f8 100644
--- a/m4/efl_binary.m4
+++ b/m4/efl_binary.m4
@@ -1,9 +1,7 @@
1 1dnl Usage: EFL_WITH_BIN_SUFFIX(package, binary, suffix)
2
3dnl Usage: EFL_WITH_BIN(package, binary)
4dnl Call AC_SUBST(_binary) (_binary is the lowercase of binary, - being transformed into _ by default, or the value set by the user) 2dnl Call AC_SUBST(_binary) (_binary is the lowercase of binary, - being transformed into _ by default, or the value set by the user)
5 3
6AC_DEFUN([EFL_WITH_BIN], 4AC_DEFUN([EFL_WITH_BIN_SUFFIX],
7[ 5[
8 6
9m4_pushdef([DOWN], m4_translit([[$2]], [-A-Z], [_a-z]))dnl 7m4_pushdef([DOWN], m4_translit([[$2]], [-A-Z], [_a-z]))dnl
@@ -31,9 +29,14 @@ AC_ARG_WITH([bin-$2],
31DOWN=${_efl_with_binary} 29DOWN=${_efl_with_binary}
32AC_MSG_NOTICE(DOWN[ set to ${_efl_with_binary}]) 30AC_MSG_NOTICE(DOWN[ set to ${_efl_with_binary}])
33 31
34with_binary_[]m4_defn([DOWN])=${_efl_with_binary} 32with_binary_[]m4_defn([DOWN])[]$3=${_efl_with_binary}
35 33
36AM_CONDITIONAL(HAVE_[]UP, [test "x${_efl_binary_define}" = "xyes"]) 34AM_CONDITIONAL(HAVE_[]UP[]m4_translit([[$3]], [a-z], [A-Z]), [test "x${_efl_binary_define}" = "xyes"])
37AC_SUBST(DOWN) 35AC_SUBST(DOWN)
38 36
39]) 37])
38
39dnl Usage: EFL_WITH_BIN(package, binary)
40dnl Call AC_SUBST(_binary) (_binary is the lowercase of binary, - being transformed into _ by default, or the value set by the user)
41
42AC_DEFUN([EFL_WITH_BIN], [EFL_WITH_BIN_SUFFIX([$1], [$2], [])])