diff options
author | Gustavo Sverzut Barbieri <barbieri@gmail.com> | 2013-01-04 19:47:09 +0000 |
---|---|---|
committer | Gustavo Sverzut Barbieri <barbieri@gmail.com> | 2013-01-04 19:47:09 +0000 |
commit | c0a827d2ebf8472173c2a00ca2d2494a00d4fbae (patch) | |
tree | 85a76d632b2a1c26f8233f3ccfda6956681d17e3 | |
parent | b40dcff62f1e25cd7f9b5d5ff5f43b13ea6acd54 (diff) |
efl: removed as they are now unused.
SVN revision: 82231
-rw-r--r-- | m4/efl_binary.m4 | 77 | ||||
-rw-r--r-- | m4/efl_enable.m4 | 33 |
2 files changed, 0 insertions, 110 deletions
diff --git a/m4/efl_binary.m4 b/m4/efl_binary.m4 deleted file mode 100644 index b4fb0ec126..0000000000 --- a/m4/efl_binary.m4 +++ /dev/null | |||
@@ -1,77 +0,0 @@ | |||
1 | dnl Copyright (C) 2010 Vincent Torri <vtorri at univ-evry dot fr> | ||
2 | dnl That code is public domain and can be freely used or copied. | ||
3 | |||
4 | dnl Macro that checks if a binary is built or not | ||
5 | |||
6 | dnl Usage: EFL_ENABLE_BIN(binary) | ||
7 | dnl Call AC_SUBST(BINARY_PRG) (BINARY is the uppercase of binary, - being transformed into _) | ||
8 | dnl Define have_binary (- is transformed into _) | ||
9 | dnl Define conditional BUILD_BINARY (BINARY is the uppercase of binary, - being transformed into _) | ||
10 | |||
11 | AC_DEFUN([EFL_ENABLE_BIN], | ||
12 | [ | ||
13 | |||
14 | m4_pushdef([UP], m4_translit([[$1]], [-a-z], [_A-Z]))dnl | ||
15 | m4_pushdef([DOWN], m4_translit([[$1]], [-A-Z], [_a-z]))dnl | ||
16 | |||
17 | have_[]m4_defn([DOWN])="yes" | ||
18 | |||
19 | dnl configure option | ||
20 | |||
21 | AC_ARG_ENABLE([binary-$1], | ||
22 | [AC_HELP_STRING([--disable-binary-$1], [disable building of ]DOWN[ binary])], | ||
23 | [ | ||
24 | if test "x${enableval}" = "xyes" ; then | ||
25 | have_[]m4_defn([DOWN])="yes" | ||
26 | else | ||
27 | have_[]m4_defn([DOWN])="no" | ||
28 | fi | ||
29 | ]) | ||
30 | |||
31 | AC_MSG_CHECKING([whether to build ]DOWN[ binary]) | ||
32 | AC_MSG_RESULT([$have_[]m4_defn([DOWN])]) | ||
33 | |||
34 | if test "x$have_[]m4_defn([DOWN])" = "xyes"; then | ||
35 | UP[]_PRG=DOWN[${EXEEXT}] | ||
36 | fi | ||
37 | |||
38 | AC_SUBST(UP[]_PRG) | ||
39 | |||
40 | AS_IF([test "x$have_[]m4_defn([DOWN])" = "xyes"], [$2], [$3]) | ||
41 | |||
42 | ]) | ||
43 | |||
44 | dnl Macro that specifies the binary to be used | ||
45 | |||
46 | dnl Usage: EFL_WITH_BIN(binary, package, msg) | ||
47 | dnl Call AC_SUBST(BINARY_PRG) (BINARY is the uppercase of binary, - being transformed into _) | ||
48 | dnl Define with_binary (- is transformed into _) | ||
49 | dnl Define conditional BUILD_BINARY (BINARY is the uppercase of binary, - being transformed into _) | ||
50 | |||
51 | AC_DEFUN([EFL_WITH_BIN], | ||
52 | [ | ||
53 | |||
54 | m4_pushdef([UP], m4_translit([[$1]], [-a-z], [_A-Z]))dnl | ||
55 | m4_pushdef([DOWN], m4_translit([[$1]], [-A-Z], [_a-z]))dnl | ||
56 | |||
57 | AC_REQUIRE([PKG_PROG_PKG_CONFIG]) | ||
58 | AC_MSG_NOTICE([$PKG_CONFIG]) | ||
59 | |||
60 | with_[]m4_defn([DOWN])=m4_esyscmd($PKG_CONFIG --variable=prefix $2)/bin/m4_defn([DOWN]) | ||
61 | |||
62 | dnl configure option | ||
63 | |||
64 | AC_ARG_WITH([$1], | ||
65 | [AC_HELP_STRING([--with-$1-bin=PATH], [specify a specific path to ]DOWN)], | ||
66 | [ | ||
67 | with_[]m4_defn([DOWN])=$withval | ||
68 | _efl_msg="( explicitely set)" | ||
69 | ]) | ||
70 | |||
71 | AC_MSG_NOTICE([$msg: ]m4_defn([DOWN])[$_efl_msg]) | ||
72 | |||
73 | AC_SUBST(with_[]m4_defn([DOWN])) | ||
74 | |||
75 | AS_IF([test "x$have_[]m4_defn([DOWN])" = "xyes"], [$4], [$5]) | ||
76 | |||
77 | ]) | ||
diff --git a/m4/efl_enable.m4 b/m4/efl_enable.m4 deleted file mode 100644 index aad6ce6795..0000000000 --- a/m4/efl_enable.m4 +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
1 | dnl Copyright (C) 2012 Vincent Torri <vtorri at univ-evry dot fr> | ||
2 | dnl That code is public domain and can be freely used or copied. | ||
3 | |||
4 | dnl Macro that allows an EFL to not be built | ||
5 | |||
6 | dnl Usage: EFL_ENABLE_LIB(lib, want) | ||
7 | dnl Define efl_want_build_lib (- is transformed into _) | ||
8 | dnl Define conditional EFL_BUILD_LIB (LIB is the uppercase of lib, - being transformed into _) | ||
9 | |||
10 | AC_DEFUN([EFL_ENABLE_LIB], | ||
11 | [ | ||
12 | |||
13 | m4_pushdef([UP], m4_translit([[$1]], [-a-z], [_A-Z]))dnl | ||
14 | m4_pushdef([DOWN], m4_translit([[$1]], [-A-Z], [_a-z]))dnl | ||
15 | |||
16 | dnl configure option | ||
17 | |||
18 | AC_ARG_ENABLE([build-$1], | ||
19 | [AC_HELP_STRING([--disable-build-$1], [disable building of ]DOWN)], | ||
20 | [ | ||
21 | if test "x${enableval}" = "xyes" ; then | ||
22 | efl_want_build_[]m4_defn([DOWN])="yes" | ||
23 | else | ||
24 | efl_want_build_[]m4_defn([DOWN])="no" | ||
25 | fi | ||
26 | ], | ||
27 | [efl_want_build_[]m4_defn([DOWN])=$2]) | ||
28 | |||
29 | AC_MSG_CHECKING([whether to build ]DOWN[ binary]) | ||
30 | AC_MSG_RESULT([${efl_want_build_[]m4_defn([DOWN])}]) | ||
31 | |||
32 | AM_CONDITIONAL(EFL_BUILD_[]UP, test "x${efl_want_build_[]m4_defn([DOWN])}" = "xyes") | ||
33 | ]) | ||