diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2013-12-30 03:47:12 +0400 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2013-12-30 15:38:04 +0400 |
commit | 311f61e1b4d508eb31c4c82c3dcd8137da4111d4 (patch) | |
tree | 47239c2d098d4a4a8a2546c1e3866b83024d8620 /configure | |
parent | b74eead27b4729881e02bf4c1ab6750173dde0ae (diff) |
configure: check that pthreads is compatible with compiler.
In particular the mutex initialization for example won't actually
compile with e.g. gcc 2.95.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -4359,6 +4359,7 @@ if ! disabled pthreads && ! enabled w32threads && ! enabled os2threads; then elif ! check_func pthread_join && ! check_func pthread_create; then disable pthreads fi + check_code cc "pthread.h" "static pthread_mutex_t atomic_lock = PTHREAD_MUTEX_INITIALIZER" || disable pthreads fi for thread in $THREADS_LIST; do |