Lines Matching +full:multi +full:- +full:functional

2 #        http://www.gnu.org/software/autoconf-archive/ax_pthread.html
7 # AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
18 # multi-threaded programs (defaults to the value of CC otherwise). (This
32 # In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant
40 # ACTION-IF-FOUND is a list of shell commands to run if a threads library
41 # is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it
42 # is not found. If ACTION-IF-FOUND is not specified, the default action
118 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
119 # libraries is broken (non-POSIX).
121 # Create a list of thread flags to try. Items starting with a "-" are
123 # which indicates that we try without any flags at all, and "pthread-config"
126 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --th…
131 # pthreads: AIX (must check this before -lpthread)
132 # none: in case threads are in libc; should be tried before -Kthread and
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)
138 # -pthreads: Solaris/gcc
139 # -mthreads: Mingw32/gcc, Lynx/gcc
140 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
142 # also defines -D_REENTRANT)
143 # ... -mt is also the pthreads flag for HP/aCC
145 # --thread-safe: KAI C++
146 # pthread-config: use pthread-config program (for GNU Pth library)
152 # (non-functional) versions of the pthreads routines, so link-based
153 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
154 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
157 # we'll just look for -pthreads and -lpthread first:
159 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
163 ax_pthread_flags="-pthread $ax_pthread_flags"
173 # -Werror. We throw in some extra Clang-specific options to ensure that
174 # this doesn't happen for GCC, which also accepts -Werror.
176 AC_MSG_CHECKING([if compiler needs -Werror to reject unknown flags])
178 ax_pthread_extra_flags="-Werror"
179 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
194 -*)
199 pthread-config)
200 AC_CHECK_PROG([ax_pthread_config], [pthread-config], [yes], [no])
202 PTHREAD_CFLAGS="`pthread-config --cflags`"
203 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
207 AC_MSG_CHECKING([for the pthreads library -l$flag])
208 PTHREAD_LIBS="-l$flag"
219 # need a special flag -Kthread to make this header compile.)
220 # We check for pthread_join because it is in -lpthread on IRIX
222 # due to DEC craziness with -lpthreads. We check for
224 # functions on Solaris that doesn't have a non-functional libc stub.
271 uses a non-standard name on your system.])
277 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
278 osf* | hpux*) flag="-D_REENTRANT";;
281 flag="-D_REENTRANT"
284 flag="-mt -D_REENTRANT"
322 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
328 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: