Lines Matching refs:pthread
87 # We used to check for pthread.h first, but this fails if pthread.h
117 # which indicates that we try without any flags at all, and "pthread-config"
120 …ags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -m…
128 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
129 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
130 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
131 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
138 # pthread: Linux, etcetera
140 # pthread-config: use pthread-config program (for GNU Pth library)
153 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
157 acx_pthread_flags="-pthread $acx_pthread_flags"
174 pthread-config)
175 AC_CHECK_PROG(ax_pthread_config, pthread-config, yes, no)
177 PTHREAD_CFLAGS="`pthread-config --cflags`"
178 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
192 # Check for various functions. We must include pthread.h,
198 # pthread_cleanup_push because it is one of the few pthread
201 AC_TRY_LINK([#include <pthread.h>
233 AC_MSG_CHECKING([for joinable pthread attribute])
236 AC_TRY_LINK([#include <pthread.h>], [int attr=$attr; return attr;],