--- configure.orig	Wed May 30 20:31:31 2001
+++ configure	Wed Mar 27 14:11:51 2002
@@ -2865,16 +2865,16 @@ case $system in
         DL_LIBS="-ldl"
         SHLD_FLAGS="-Wl,-Bexport"
         ;;
-    NetBSD-*|FreeBSD-*)
+    NetBSD-*|FreeBSD-*|OpenBSD-*)
         # Not available on all versions:  check for include file.
         if test -e /usr/include/dlfcn.h; then
             SHLIB_CFLAGS="-fpic"
-            SHLIB_LD="ld -Bshareable"
-            SHLIB_SUFFIX=".so"
+            SHLIB_LD="cc -shared"
+            SHLIB_SUFFIX=".so.1.0"
             DL_LIBS=""
             SHLD_FLAGS=""
         else
-            echo "NetBSD/FreeBSD with no support for dynamic loading"
+            echo "NetBSD/FreeBSD/OpenBSD with no support for dynamic loading"
             echo " or shared libraries on this system."
             SHLIB_CFLAGS=""
             SHLIB_LD=":  Skipping shared libaries"
