$OpenBSD: patch-configure,v 1.2 2009/04/14 18:43:39 jasper Exp $

Don't link with -lpthread, but with -pthread.

--- configure.orig	Tue Apr 14 19:51:35 2009
+++ configure	Tue Apr 14 19:51:51 2009
@@ -8574,13 +8574,13 @@ $as_echo "$as_me: error: Can't find libtheora" >&2;}
 fi
 
 
-{ $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
-$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
+{ $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -pthread" >&5
+$as_echo_n "checking for pthread_mutex_lock in -pthread... " >&6; }
 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpthread  $LIBS"
+LIBS="-pthread  $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -8644,7 +8644,7 @@ if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""
 #define HAVE_LIBPTHREAD 1
 _ACEOF
 
-  LIBS="-lpthread $LIBS"
+  LIBS="-pthread $LIBS"
 
 else
   { { $as_echo "$as_me:$LINENO: error: Can't find libpthread" >&5
