Commit f5013913 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'a5a3b398'

* commit 'a5a3b398':
  configure: Reorder pthreads checks

Conflicts:
	configure
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 7431923d a5a3b398
...@@ -4319,9 +4319,7 @@ fi ...@@ -4319,9 +4319,7 @@ fi
# do this before the optional library checks as some of them require pthreads # do this before the optional library checks as some of them require pthreads
if ! disabled pthreads && ! enabled w32threads && ! enabled os2threads; then if ! disabled pthreads && ! enabled w32threads && ! enabled os2threads; then
enable pthreads enable pthreads
if check_func pthread_join && check_func pthread_create; then if check_func pthread_join -pthread && check_func pthread_create -pthread; then
:
elif check_func pthread_join -pthread && check_func pthread_create -pthread; then
add_cflags -pthread add_cflags -pthread
add_extralibs -pthread add_extralibs -pthread
elif check_func pthread_join -pthreads && check_func pthread_create -pthreads; then elif check_func pthread_join -pthreads && check_func pthread_create -pthreads; then
...@@ -4329,7 +4327,9 @@ if ! disabled pthreads && ! enabled w32threads && ! enabled os2threads; then ...@@ -4329,7 +4327,9 @@ if ! disabled pthreads && ! enabled w32threads && ! enabled os2threads; then
add_extralibs -pthreads add_extralibs -pthreads
elif check_func pthread_join -lpthreadGC2 && check_func pthread_create -lpthreadGC2; then elif check_func pthread_join -lpthreadGC2 && check_func pthread_create -lpthreadGC2; then
add_extralibs -lpthreadGC2 add_extralibs -lpthreadGC2
elif ! check_lib pthread.h pthread_join -lpthread && ! check_lib pthread.h pthread_create -lpthread; then elif check_lib pthread.h pthread_join -lpthread && check_lib pthread.h pthread_create -lpthread; then
:
elif ! check_func pthread_join && ! check_func pthread_create; then
disable pthreads disable pthreads
fi fi
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