Lines Matching refs:PTHREAD
1506 dependent on PTHREAD [default=no]
15192 # We used to check for pthread.h first, but this fails if pthread.h
15259 # any flags at all, and "pthread-config" which is a program returning
15262 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15270 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15271 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
15280 # pthread: Linux, etcetera
15282 # pthread-config: use pthread-config program (for GNU Pth library)
15288 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15289 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15299 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
15337 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
15375 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
15377 # Note that for GCC and Clang -pthread generally implies -lpthread,
15379 # This is problematic using libtool to build C++ shared libraries with pthread:
15383 # To solve this, first try -pthread together with -lpthread for GCC
15387 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
15390 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
15394 ax_pthread_flags="-pthread,-lpthread -pthread"
15445 pthread-config)
15446 # Extract the first word of "pthread-config", so it can be a program name with args.
15447 set dummy pthread-config; ac_word=$2
15493 PTHREAD_CFLAGS="`pthread-config --cflags`"
15494 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15509 # Check for various functions. We must include pthread.h,
15515 # pthread_cleanup_push because it is one of the few pthread
15521 #include <pthread.h>
15569 # Clang needs special handling, because older versions handle the -pthread
15574 # Clang takes -pthread; it has never supported any other flag
15580 # (Note 2: On some systems, notably Darwin, -pthread is not needed
15583 # -pthread does define _REENTRANT, and while the Darwin headers
15588 # taking place, the -pthread option has no effect ("argument unused
15589 # during compilation"). They expect -pthread to be passed in only
15600 # Even though use of the -pthread flag in linking would only print
15605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
15606 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
15626 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
15679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15680 printf %s "checking for joinable pthread attribute... " >&6; }
15689 #include <pthread.h>
15751 #include <pthread.h>
15957 #include <pthread.h>
15991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with pthread" >&5
15992 printf "%s\n" "yes, with pthread" >&6; }
15996 as_fn_error $? "shared cache needs C11 threads or pthread support" "$LINENO" 5