[vlc-devel] commit: Properly detect POSIX threads on OpenBSD. (Brad )

git version control git at videolan.org
Thu Jun 11 22:26:41 CEST 2009


vlc | branch: 1.0-bugfix | Brad <brad at comstyle.com> | Thu Jun 11 16:09:12 2009 -0400| [31cef7fc3ad57947bdda5a884e008f59d9497b49] | committer: Rémi Denis-Courmont 

Properly detect POSIX threads on OpenBSD.

The following diff for VLC 1.0.0rc3 corrects the detection of POSIX threads
on OpenBSD.

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
(cherry picked from commit bb1d1eb5e7ac1e923ec5654c8b44a372b64b9964)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=31cef7fc3ad57947bdda5a884e008f59d9497b49
---

 configure.ac |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index c02573a..657bdb9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -838,6 +838,9 @@ 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=""
 fi




More information about the vlc-devel mailing list