eina: restore magic debug option for ABI compatibility purpose.

We can't remove that option as it break ABI for people who did turn
it off in 1.7.

- cherry-pick me -
This commit is contained in:
Cedric BAIL 2014-02-05 11:10:29 +09:00
parent 17d028f944
commit b7b6b5f956
1 changed files with 12 additions and 2 deletions

View File

@ -696,7 +696,6 @@ EFL_LIB_START([Eina])
### Default values
have_magic_debug="yes"
have_safety_checks="yes"
want_log="yes"
case "${build_profile}" in
@ -732,7 +731,6 @@ case "${build_profile}" in
esac
EINA_CONFIG([HAVE_ALLOCA_H], [test "x${ac_cv_working_alloca_h}" = "xyes"])
EINA_CONFIG([MAGIC_DEBUG], [test "x${have_magic_debug}" = "xyes"])
EINA_CONFIG([SAFETY_CHECKS], [test "x${have_safety_checks}" = "xyes"])
EINA_CONFIG([DEFAULT_MEMPOOL], [test "x${want_default_mempool}" = "xyes"])
@ -746,6 +744,18 @@ AC_DEFINE_IF([EINA_STRINGSHARE_USAGE],
[1], [Report Eina stringshare usage pattern])
### Additional options to configure
AC_ARG_ENABLE([magic-debug],
[AC_HELP_STRING([--disable-magic-debug], [disable magic debug of eina structure @<:@default=enabled@:>@])],
[
if test "x${enableval}" = "xyes" ; then
have_magic_debug="yes"
else
have_magic_debug="no"
fi
],
[have_magic_debug="yes"])
EINA_CONFIG([MAGIC_DEBUG], [test "x${have_magic_debug}" = "xyes"])
### Checks for programs