summaryrefslogtreecommitdiff
path: root/m4/efl_threads.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/efl_threads.m4')
-rw-r--r--m4/efl_threads.m412
1 files changed, 12 insertions, 0 deletions
diff --git a/m4/efl_threads.m4 b/m4/efl_threads.m4
index 90a5f8a..bd3a818 100644
--- a/m4/efl_threads.m4
+++ b/m4/efl_threads.m4
@@ -64,6 +64,16 @@ id = pthread_self();
64 EFL_PTHREAD_LIBS=${_efl_threads_libs} 64 EFL_PTHREAD_LIBS=${_efl_threads_libs}
65 ], 65 ],
66 [_efl_have_posix_threads="no"]) 66 [_efl_have_posix_threads="no"])
67 AC_LINK_IFELSE(
68 [AC_LANG_PROGRAM([[
69#include <pthread.h>
70 ]],
71 [[
72pthread_barrier_t barrier;
73pthread_barrier_init(&barrier, NULL, 1);
74 ]])],
75 [efl_have_pthread_barrier="yes"],
76 [efl_have_pthread_barrier="no"])
67 CFLAGS=${SAVE_CFLAGS} 77 CFLAGS=${SAVE_CFLAGS}
68 LIBS=${SAVE_LIBS} 78 LIBS=${SAVE_LIBS}
69 79
@@ -75,8 +85,10 @@ if test "x${_efl_have_posix_threads}" = "xyes" ; then
75else 85else
76 if test "x${_efl_have_win32_threads}" = "xyes" ; then 86 if test "x${_efl_have_win32_threads}" = "xyes" ; then
77 efl_have_threads="Windows" 87 efl_have_threads="Windows"
88 efl_have_pthread_barrier="no"
78 else 89 else
79 efl_have_threads="no" 90 efl_have_threads="no"
91 efl_have_pthread_barrier="no"
80 fi 92 fi
81fi 93fi
82AC_MSG_RESULT([${efl_have_threads}]) 94AC_MSG_RESULT([${efl_have_threads}])