]> git.sesse.net Git - vlc/commitdiff
Properly detect POSIX threads on OpenBSD.
authorBrad <brad@comstyle.com>
Thu, 11 Jun 2009 20:09:12 +0000 (16:09 -0400)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 11 Jun 2009 20:26:06 +0000 (23:26 +0300)
The following diff for VLC 1.0.0rc3 corrects the detection of POSIX threads
on OpenBSD.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
configure.ac

index 9e5e89d87d38efbe59f75b4a95f421c9f81afcaf..7ecf0bcf4eab5ae4dbdc9b2d37436eb7221c7ed7 100644 (file)
@@ -839,6 +839,9 @@ fi
 if test "${THREAD_LIB}" = "error"; then
   AC_CHECK_LIB(c_r,main,THREAD_LIB="-lc_r")
 fi
+if test "${THREAD_LIB}" = "error"; then
+  AC_CHECK_LIB(pthread,main,THREAD_LIB="-pthread")
+fi
 if test "${THREAD_LIB}" = "error"; then
   AC_CHECK_FUNCS(pthread_mutex_lock)
   THREAD_LIB=""