summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2013-12-30 00:47:12 +0100
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2013-12-30 12:38:04 +0100
commit311f61e1b4d508eb31c4c82c3dcd8137da4111d4 (patch)
tree47239c2d098d4a4a8a2546c1e3866b83024d8620 /configure
parentb74eead27b4729881e02bf4c1ab6750173dde0ae (diff)
downloadffmpeg-streaming-311f61e1b4d508eb31c4c82c3dcd8137da4111d4.zip
ffmpeg-streaming-311f61e1b4d508eb31c4c82c3dcd8137da4111d4.tar.gz
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-xconfigure1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure b/configure
index 2604ae7..de2d87a 100755
--- a/configure
+++ b/configure
@@ -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
OpenPOWER on IntegriCloud