$OpenBSD: patch-configure,v 1.6 2007/07/05 16:01:28 steven Exp $
--- configure.orig	Tue Jun  5 00:05:31 2007
+++ configure	Tue Jun 26 08:30:40 2007
@@ -4326,6 +4326,11 @@ if test "x$apr_preload_done" != "xyes" ; then
         ;;
     *-openbsd*)
 
+  if test -z "$apr_lock_method"; then
+    test "x$silent" != "xyes" && echo "  setting apr_lock_method to \"USE_FLOCK_SERIALIZE\""
+    apr_lock_method="USE_FLOCK_SERIALIZE"
+  fi
+
   if test "x$CPPFLAGS" = "x"; then
     test "x$silent" != "xyes" && echo "  setting CPPFLAGS to \"-D_POSIX_THREADS\""
     CPPFLAGS="-D_POSIX_THREADS"
@@ -26156,7 +26161,7 @@ if test "${apr_cv_pthreads_lib+set}" = set; then
 else
 
   apr_ptc_libs=$LIBS
-  for lib in -lpthread -lpthreads -lc_r; do
+  for lib in -pthread -lpthread -lpthreads -lc_r; do
     LIBS="$apr_ptc_libs $lib"
 
 if test "$cross_compiling" = yes; then
@@ -26714,7 +26719,7 @@ if test "${apr_cv_pthreads_lib+set}" = set; then
 else
 
   apr_ptc_libs=$LIBS
-  for lib in -lpthread -lpthreads -lc_r; do
+  for lib in -pthread -lpthread -lpthreads -lc_r; do
     LIBS="$apr_ptc_libs $lib"
 
 if test "$cross_compiling" = yes; then
@@ -39542,7 +39547,7 @@ for ac_spec in func:semget func:semctl define:SEM_UNDO
 done
 if test ".$ac_rc" = .yes; then
     :
-    hassysvser="1"
+    hassysvser="0"
 else
     :
     hassysvser="0"
@@ -43577,7 +43582,7 @@ esac
 
 
 
-                                                            ac_config_files="$ac_config_files Makefile include/apr.h build/apr_rules.mk build/pkg/pkginfo apr-$APR_MAJOR_VERSION-config:apr-config.in apr.pc"
+                                                            ac_config_files="$ac_config_files Makefile include/apr.h build/apr_rules.mk build/pkg/pkginfo apr-$APR_MAJOR_VERSION-config:apr-config.in apr.pc apr-mt.pc"
 
 
 if test -d $srcdir/test; then
