summaryrefslogtreecommitdiff
path: root/m4/eina_check.m4
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-05-26 18:30:54 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-06-18 08:11:55 +0200
commite8c69667b01e2795c1e4ead0536652f935ffa674 (patch)
treedc72c59b87a83d02758ae81f979a25e21b226a8b /m4/eina_check.m4
parente6bf359990f8356dc03ad65bfd56bb3fcf8f6186 (diff)
autotools: REMOVAL!
Get your seatbelt fastend! It is happening! AUTOTOOLS IS GONE NOW! All praise to meson! Differential Revision: https://phab.enlightenment.org/D9027
Diffstat (limited to 'm4/eina_check.m4')
-rw-r--r--m4/eina_check.m449
1 files changed, 0 insertions, 49 deletions
diff --git a/m4/eina_check.m4 b/m4/eina_check.m4
deleted file mode 100644
index 251d4cb..0000000
--- a/m4/eina_check.m4
+++ /dev/null
@@ -1,49 +0,0 @@
1dnl use: EINA_CHECK_MODULE(foo-bar, have_dependency, description)
2AC_DEFUN([EINA_CHECK_MODULE],
3[
4m4_pushdef([UP], m4_translit([$1], [-a-z], [_A-Z]))dnl
5m4_pushdef([DOWN], m4_translit([$1], [-A-Z], [_a-z]))dnl
6
7# AC_ARG_ENABLE([mempool-$1],
8# [AC_HELP_STRING([--enable-mempool-$1], [enable build of $3 @<:@default=$2@:>@])],
9# [
10# if test "x${enableval}" = "xyes" ; then
11# enable_module="yes"
12# else
13# if test "x${enableval}" = "xstatic" ; then
14# enable_module="static"
15# else
16# enable_module="no"
17# fi
18# fi
19# ],
20# [enable_module=$2])
21enable_module=$2
22
23have_module="no"
24if test "x${enable_module}" = "xyes" || test "x${enable_module}" = "xstatic" ; then
25 have_module="yes"
26fi
27
28AC_MSG_CHECKING([whether to enable $3 built])
29AC_MSG_RESULT([${have_module}])
30
31static_module="no"
32if test "x${enable_module}" = "xstatic" ; then
33 static_module="yes"
34 have_static_module="yes"
35 AC_DEFINE(EINA_STATIC_BUILD_[]UP, 1, [Set to 1 if $2 is statically built])
36fi
37
38if ! test "x${enable_module}" = "xno" ; then
39 AC_DEFINE(EINA_BUILD_[]UP, 1, [Set to 1 if $2 is built])
40fi
41
42AM_CONDITIONAL(EINA_BUILD_[]UP, [test "x${have_module}" = "xyes"])
43AM_CONDITIONAL(EINA_STATIC_BUILD_[]UP, [test "x${static_module}" = "xyes"])
44
45enable_[]DOWN=${enable_module}
46
47m4_popdef([UP])
48m4_popdef([DOWN])
49])