$OpenBSD: patch-configure,v 1.1.1.1 2008/09/05 11:19:48 ajacoutot Exp $
--- configure.orig	Sat Aug 30 12:22:52 2008
+++ configure	Sat Aug 30 12:23:02 2008
@@ -32557,13 +32557,13 @@ echo "${ECHO_T}no" >&6; }
      esac
 
 	if test "$have_pthread" != "yes"; then
-        { echo "$as_me:$LINENO: checking for main in -lpthread" >&5
-echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6; }
+        { echo "$as_me:$LINENO: checking for main in -pthread" >&5
+echo $ECHO_N "checking for main in -pthread... $ECHO_C" >&6; }
 if test "${ac_cv_lib_pthread_main+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpthread  $LIBS"
+LIBS="-pthread  $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -32619,7 +32619,7 @@ else
 fi
 
 	   if test "$have_pthread" = "yes"; then
-	   	 PTHREAD_LIBS="-lpthread"
+	   	 PTHREAD_LIBS="-pthread"
 	   fi
      fi
 
