$OpenBSD: patch-configure,v 1.4 2004/12/18 16:31:53 naddy Exp $
--- configure.orig	Tue Dec 14 21:15:04 2004
+++ configure	Tue Dec 14 21:15:44 2004
@@ -3230,13 +3230,13 @@ fi
 
 # FIXME: Replace `main' with a function in `-lpthread':
 
-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
@@ -3293,7 +3293,7 @@ if test $ac_cv_lib_pthread_main = yes; t
 #define HAVE_LIBPTHREAD 1
 _ACEOF
 
-  LIBS="-lpthread $LIBS"
+  LIBS="-pthread $LIBS"
 
 fi
 
