summaryrefslogtreecommitdiff
path: root/m4/efl_binary.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/efl_binary.m4')
-rw-r--r--m4/efl_binary.m442
1 files changed, 0 insertions, 42 deletions
diff --git a/m4/efl_binary.m4 b/m4/efl_binary.m4
deleted file mode 100644
index d11e1db..0000000
--- a/m4/efl_binary.m4
+++ /dev/null
@@ -1,42 +0,0 @@
1dnl Usage: EFL_WITH_BIN_SUFFIX(package, binary, suffix)
2dnl Call AC_SUBST(_binary) (_binary is the lowercase of binary, - being transformed into _ by default, or the value set by the user)
3
4AC_DEFUN([EFL_WITH_BIN_SUFFIX],
5[
6
7m4_pushdef([DOWN], m4_translit([[$2]], [-A-Z], [_a-z]))dnl
8m4_pushdef([UP], m4_translit([[$2]], [-a-z], [_A-Z]))dnl
9dnl configure option
10
11_efl_with_binary=""
12_efl_binary_define="no"
13
14AC_ARG_WITH([$2],
15 [AC_HELP_STRING([--with-$2=PATH], [specify a specific path to ]DOWN[ @<:@default=]DOWN[@:>@])],
16 [
17 _efl_with_binary=${withval}
18 _efl_binary_define="yes"
19 ], [])
20
21AC_ARG_WITH([bin-$2],
22 [AC_HELP_STRING([--with-bin-$2=PATH], [specify a specific path to ]DOWN[ @<:@default=]DOWN[@:>@ DEPRECATED])],
23 [
24 _efl_with_binary=${withval}
25 _efl_binary_define="yes"
26 efl_deprecated_option="yes"
27 ], [])
28
29DOWN[]$3=${_efl_with_binary}
30AC_MSG_NOTICE(DOWN[ set to ${_efl_with_binary}])
31
32with_binary_[]m4_defn([DOWN])[]$3=${_efl_with_binary}
33
34AM_CONDITIONAL(HAVE_[]UP[]m4_translit([[$3]], [a-z], [A-Z]), [test "x${_efl_binary_define}" = "xyes"])
35AC_SUBST(DOWN[]$3)
36
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], [])])