* make chained mempool static by default
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 26 Jan 2010 15:30:40 +0000 (15:30 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 26 Jan 2010 15:30:40 +0000 (15:30 +0000)
 * disable other by default

if you experience an problem, please report in that thread

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45593 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

configure.ac
m4/eina_check.m4

index 21d555c..db96b45 100644 (file)
@@ -377,12 +377,12 @@ AC_SUBST(fnmatch_libs)
 
 ### Modules
 
-EINA_CHECK_MODULE([chained-pool], [yes], [chained pool])
-EINA_CHECK_MODULE([ememoa-fixed], [${enable_ememoa}], [ememoa fixed])
+EINA_CHECK_MODULE([chained-pool],   [static],           [chained pool])
+EINA_CHECK_MODULE([ememoa-fixed],   [${enable_ememoa}], [ememoa fixed])
 EINA_CHECK_MODULE([ememoa-unknown], [${enable_ememoa}], [ememoa unknown])
-EINA_CHECK_MODULE([fixed-bitmap], [yes], [fixed bitmap])
-EINA_CHECK_MODULE([pass-through], [yes], [pass through])
-EINA_CHECK_MODULE([buddy], [yes], [buddy])
+EINA_CHECK_MODULE([fixed-bitmap],   [no],               [fixed bitmap])
+EINA_CHECK_MODULE([pass-through],   [no],               [pass through])
+EINA_CHECK_MODULE([buddy],          [no],               [buddy])
 
 
 ### Make the debug preprocessor configurable
index 6889c9d..6a335b9 100644 (file)
@@ -4,10 +4,8 @@ AC_DEFUN([EINA_CHECK_MODULE],
 m4_pushdef([UP], m4_translit([$1], [-a-z], [_A-Z]))dnl
 m4_pushdef([DOWN], m4_translit([$1], [-A-Z], [_a-z]))dnl
 
-want_module="$2"
-
 AC_ARG_ENABLE([mempool-$1],
-   [AC_HELP_STRING([--enable-mempool-$1], [enable build of $3 @<:@default=yes@:>@])],
+   [AC_HELP_STRING([--enable-mempool-$1], [enable build of $3 @<:@default=$2@:>@])],
    [
     if test "x${enableval}" = "xyes" ; then
        enable_module="yes"
@@ -19,7 +17,7 @@ AC_ARG_ENABLE([mempool-$1],
        fi
     fi
    ],
-   [enable_module="yes"])
+   [enable_module=$2])
 
 have_module="no"
 if test "x${enable_module}" = "xyes" || test "x${enable_module}" = "xstatic" ; then
@@ -29,31 +27,17 @@ fi
 AC_MSG_CHECKING([whether to enable $3 built])
 AC_MSG_RESULT([${have_module}])
 
-build_module="no"
-if test "x${want_module}" = "xyes" && test "x${have_module}" = "xyes" ; then
-   build_module="yes"
-fi
-
-AC_MSG_CHECKING([whether to build $3])
-AC_MSG_RESULT([${build_module}])
-
 static_module="no"
-if test "x${want_module}" = "xyes" && test "x${enable_module}" = "xstatic" ; then
+if test "x${enable_module}" = "xstatic" ; then
    static_module="yes"
+   have_static_module="yes"
+   AC_DEFINE(EINA_STATIC_BUILD_[]UP, 1, [Set to 1 if $2 is statically built])
 fi
 
-AM_CONDITIONAL(EINA_BUILD_[]UP, [test "x${build_module}" = "xyes"])
+AM_CONDITIONAL(EINA_BUILD_[]UP, [test "x${have_module}" = "xyes"])
 AM_CONDITIONAL(EINA_STATIC_BUILD_[]UP, [test "x${static_module}" = "xyes"])
 
-if test "x${static_module}" = "xyes" ; then
-   AC_DEFINE(EINA_STATIC_BUILD_[]UP, 1, [Set to 1 if $2 is statically built])
-   have_static_module="yes"
-fi
-
-enable_[]DOWN="no"
-if test "x${want_module}" = "xyes" ; then
-   enable_[]DOWN=${enable_module}
-fi
+enable_[]DOWN=${enable_module}
 
 m4_popdef([UP])
 m4_popdef([DOWN])