Commit d43d627a authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'f058f384'

* commit 'f058f384':
  configure: Do not use pthread_create to check for pthread
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents a235af93 f058f384
......@@ -4254,17 +4254,17 @@ fi
# do this before the optional library checks as some of them require pthreads
if ! disabled pthreads && ! enabled w32threads && ! enabled os2threads; then
enable pthreads
if check_func pthread_create; then
if check_func pthread_join; then
:
elif check_func pthread_create -pthread; then
elif check_func pthread_join -pthread; then
add_cflags -pthread
add_extralibs -pthread
elif check_func pthread_create -pthreads; then
elif check_func pthread_join -pthreads; then
add_cflags -pthreads
add_extralibs -pthreads
elif check_func pthread_create -lpthreadGC2; then
elif check_func pthread_join -lpthreadGC2; then
add_extralibs -lpthreadGC2
elif ! check_lib pthread.h pthread_create -lpthread; then
elif ! check_lib pthread.h pthread_join -lpthread; then
disable pthreads
fi
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment