Lines Matching refs:pthread
36 # Also HAVE_PTHREAD_PRIO_INHERIT is defined if pthread is found and the
93 # We used to check for pthread.h first, but this fails if pthread.h
123 # which indicates that we try without any flags at all, and "pthread-config"
126 …ags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -m…
134 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
135 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
136 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
137 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
144 # pthread: Linux, etcetera
146 # pthread-config: use pthread-config program (for GNU Pth library)
159 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
163 ax_pthread_flags="-pthread $ax_pthread_flags"
180 pthread-config)
181 AC_CHECK_PROG(ax_pthread_config, pthread-config, yes, no)
183 PTHREAD_CFLAGS="`pthread-config --cflags`"
184 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
198 # Check for various functions. We must include pthread.h,
204 # pthread_cleanup_push because it is one of the few pthread
207 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>
240 AC_MSG_CHECKING([for joinable pthread attribute])
243 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>],
276 AC_LANG_PROGRAM([[#include <pthread.h>]], [[int i = PTHREAD_PRIO_INHERIT;]])],