forked from enlightenment/efl
efl: remove option to debug threads, now enabled based on build profile.
If --with-profile=dev, we enable threads debug. SVN revision: 77806
This commit is contained in:
parent
1337582286
commit
16b14f9ce5
|
@ -539,11 +539,11 @@ EFL_CHECK_THREADS
|
||||||
EINA_CONFIGURE_HAVE_THREADS="#define EINA_HAVE_THREADS"
|
EINA_CONFIGURE_HAVE_THREADS="#define EINA_HAVE_THREADS"
|
||||||
AC_SUBST(EINA_CONFIGURE_HAVE_THREADS)
|
AC_SUBST(EINA_CONFIGURE_HAVE_THREADS)
|
||||||
|
|
||||||
if test "x${efl_have_debug_threads}" = "xyes"; then
|
if test "$build_profile" = "dev"; then
|
||||||
EINA_CONFIGURE_HAVE_DEBUG_THREADS="#define EINA_HAVE_DEBUG_THREADS"
|
EINA_CONFIGURE_HAVE_DEBUG_THREADS="#define EINA_HAVE_DEBUG_THREADS"
|
||||||
|
AC_DEFINE([EFL_DEBUG_THREADS], [1], [Assert when forgot to call eina_threads_init])
|
||||||
fi
|
fi
|
||||||
AC_SUBST(EINA_CONFIGURE_HAVE_DEBUG_THREADS)
|
AC_SUBST(EINA_CONFIGURE_HAVE_DEBUG_THREADS)
|
||||||
AM_CONDITIONAL([EINA_DEBUG_THREADS], [test "x${efl_have_debug_threads}" = "xyes"])
|
|
||||||
|
|
||||||
### Modules
|
### Modules
|
||||||
EINA_CHECK_MODULE([chained-pool], [static], [chained pool])
|
EINA_CHECK_MODULE([chained-pool], [static], [chained pool])
|
||||||
|
@ -866,7 +866,6 @@ echo
|
||||||
echo " Thread Support.......: ${efl_have_threads}"
|
echo " Thread Support.......: ${efl_have_threads}"
|
||||||
if test "${efl_have_threads}" = "POSIX" ; then
|
if test "${efl_have_threads}" = "POSIX" ; then
|
||||||
echo " spinlock...........: ${efl_have_posix_threads_spinlock}"
|
echo " spinlock...........: ${efl_have_posix_threads_spinlock}"
|
||||||
echo " debug usage........: ${efl_have_debug_threads}"
|
|
||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
echo "Compilation............: make (or gmake)"
|
echo "Compilation............: make (or gmake)"
|
||||||
|
|
|
@ -117,19 +117,6 @@ if test "x${efl_have_posix_threads_spinlock}" = "xyes" ; then
|
||||||
AC_DEFINE([EFL_HAVE_POSIX_THREADS_SPINLOCK], [1], [Define to mention that POSIX threads spinlocks are supported])
|
AC_DEFINE([EFL_HAVE_POSIX_THREADS_SPINLOCK], [1], [Define to mention that POSIX threads spinlocks are supported])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl Check debug threads
|
|
||||||
|
|
||||||
_efl_enable_debug_threads="no"
|
|
||||||
AC_ARG_ENABLE([debug-threads],
|
|
||||||
[AC_HELP_STRING([--enable-debug-threads], [disable assert when you forgot to call eina_threads_init])],
|
|
||||||
[_efl_enable_debug_threads="${enableval}"])
|
|
||||||
|
|
||||||
efl_have_debug_threads="no"
|
|
||||||
if test "x${_efl_have_posix_threads}" = "xyes" && test "x${_efl_enable_debug_threads}" = "xyes"; then
|
|
||||||
efl_have_debug_threads="yes"
|
|
||||||
AC_DEFINE([EFL_DEBUG_THREADS], [1], [Assert when forgot to call eina_threads_init])
|
|
||||||
fi
|
|
||||||
|
|
||||||
AS_IF([test "x$_efl_have_posix_threads" = "xyes" || test "x$_efl_have_win32_threads" = "xyes"],
|
AS_IF([test "x$_efl_have_posix_threads" = "xyes" || test "x$_efl_have_win32_threads" = "xyes"],
|
||||||
[$1],
|
[$1],
|
||||||
[m4_if([$2], [$2], [AC_MSG_ERROR([Threads are required.])])])
|
[m4_if([$2], [$2], [AC_MSG_ERROR([Threads are required.])])])
|
||||||
|
|
Loading…
Reference in New Issue