summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac7
-rw-r--r--m4/efl_threads.m415
-rw-r--r--src/lib/eina/eina_config.h.in5
3 files changed, 0 insertions, 27 deletions
diff --git a/configure.ac b/configure.ac
index 4168b02bee..16326505a2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -545,12 +545,6 @@ fi
545AC_SUBST(EINA_CONFIGURE_HAVE_DEBUG_THREADS) 545AC_SUBST(EINA_CONFIGURE_HAVE_DEBUG_THREADS)
546AM_CONDITIONAL([EINA_DEBUG_THREADS], [test "x${efl_have_debug_threads}" = "xyes"]) 546AM_CONDITIONAL([EINA_DEBUG_THREADS], [test "x${efl_have_debug_threads}" = "xyes"])
547 547
548if ! test "x${efl_have_on_off_threads}" = "xno"; then
549 EINA_CONFIGURE_HAVE_ON_OFF_THREADS="#define EINA_HAVE_ON_OFF_THREADS"
550fi
551AC_SUBST(EINA_CONFIGURE_HAVE_ON_OFF_THREADS)
552AM_CONDITIONAL([EINA_ON_OFF_THREADS], [! test "x${efl_have_on_off_threads}" = "xno"])
553
554### Modules 548### Modules
555EINA_CHECK_MODULE([chained-pool], [static], [chained pool]) 549EINA_CHECK_MODULE([chained-pool], [static], [chained pool])
556EINA_CHECK_MODULE([pass-through], [static], [pass through]) 550EINA_CHECK_MODULE([pass-through], [static], [pass through])
@@ -873,7 +867,6 @@ echo " Thread Support.......: ${efl_have_threads}"
873if test "${efl_have_threads}" = "POSIX" ; then 867if test "${efl_have_threads}" = "POSIX" ; then
874echo " spinlock...........: ${efl_have_posix_threads_spinlock}" 868echo " spinlock...........: ${efl_have_posix_threads_spinlock}"
875echo " debug usage........: ${efl_have_debug_threads}" 869echo " debug usage........: ${efl_have_debug_threads}"
876echo " on/off support.....: ${efl_have_on_off_threads}"
877fi 870fi
878echo 871echo
879echo "Compilation............: make (or gmake)" 872echo "Compilation............: make (or gmake)"
diff --git a/m4/efl_threads.m4 b/m4/efl_threads.m4
index e3dafa0a06..b789874c0a 100644
--- a/m4/efl_threads.m4
+++ b/m4/efl_threads.m4
@@ -117,21 +117,6 @@ if test "x${efl_have_posix_threads_spinlock}" = "xyes" ; then
117 AC_DEFINE([EFL_HAVE_POSIX_THREADS_SPINLOCK], [1], [Define to mention that POSIX threads spinlocks are supported]) 117 AC_DEFINE([EFL_HAVE_POSIX_THREADS_SPINLOCK], [1], [Define to mention that POSIX threads spinlocks are supported])
118fi 118fi
119 119
120dnl Check ON-OFF threads
121
122_efl_enable_on_off_threads="no"
123AC_ARG_ENABLE([on-off-threads],
124 [AC_HELP_STRING([--enable-on-off-threads], [only turn this on if you know what you are doing, and do not complain if the world freeze])],
125 [_efl_enable_on_off_threads="${enableval}"])
126
127efl_have_on_off_threads="no"
128if test "x${_efl_have_posix_threads}" = "xyes" && test "x${_efl_enable_on_off_threads}" = "xyes"; then
129 efl_have_on_off_threads="yes"
130 AC_DEFINE([EFL_ON_OFF_THREADS], [1], [make it possible to disable all locks])
131fi
132AC_MSG_CHECKING([whether to turn on/off threads lock on demand])
133AC_MSG_RESULT([${efl_have_on_off_threads}])
134
135dnl Check debug threads 120dnl Check debug threads
136 121
137_efl_enable_debug_threads="no" 122_efl_enable_debug_threads="no"
diff --git a/src/lib/eina/eina_config.h.in b/src/lib/eina/eina_config.h.in
index 937d208208..1f7bb31ac2 100644
--- a/src/lib/eina/eina_config.h.in
+++ b/src/lib/eina/eina_config.h.in
@@ -68,11 +68,6 @@
68#endif 68#endif
69#define EINA_SIZEOF_WCHAR_T @EINA_SIZEOF_WCHAR_T@ 69#define EINA_SIZEOF_WCHAR_T @EINA_SIZEOF_WCHAR_T@
70 70
71#ifdef EINA_HAVE_ON_OFF_THREADS
72# undef EINA_HAVE_ON_OFF_THREADS
73#endif
74@EINA_CONFIGURE_HAVE_ON_OFF_THREADS@
75
76#ifdef EINA_CONFIGURE_HAVE_DIRENT_H 71#ifdef EINA_CONFIGURE_HAVE_DIRENT_H
77# undef EINA_CONFIGURE_HAVE_DIRENT_H 72# undef EINA_CONFIGURE_HAVE_DIRENT_H
78#endif 73#endif