$OpenBSD: patch-configure,v 1.6 2012/07/10 09:19:32 sebastia Exp $

use -pthread instead of -lpthread

--- configure.orig	Sun Jul  8 18:51:13 2012
+++ configure	Sun Jul  8 18:51:35 2012
@@ -12441,13 +12441,13 @@ else
 $as_echo "$as_me: error: Unable to find pthread.h (needed for thread support)." >&2;}
    { (exit 1); exit 1; }; }
 fi
-{ $as_echo "$as_me:$LINENO: checking for pthread_join in -lpthread" >&5
-$as_echo_n "checking for pthread_join in -lpthread... " >&6; }
+{ $as_echo "$as_me:$LINENO: checking for pthread_join in -pthread" >&5
+$as_echo_n "checking for pthread_join in -pthread... " >&6; }
 if test "${ac_cv_lib_pthread_pthread_join+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
@@ -12517,7 +12517,7 @@ case "$target_os" in
   mingw*)	ismingw=yes;;
 esac
 if test $pthread_ok = yes ; then
-  LIBS="$LIBS -lpthread"
+  LIBS="$LIBS -pthread"
 else
   if test $ismingw = yes ; then
     { $as_echo "$as_me:$LINENO: checking for pthread_join in -lpthreadGC2" >&5
