$OpenBSD: patch-configure,v 1.2 2001/04/21 15:37:57 brad Exp $
--- configure.orig	Mon Mar 26 22:39:34 2001
+++ configure	Fri Apr 20 21:16:59 2001
@@ -3303,6 +3303,9 @@ echo "configure:3292: checking for OSS a
           #ifdef __bsdi__
           #include <sys/soundcard.h>
           #endif
+          #ifdef __OpenBSD__
+          #include <soundcard.h>
+          #endif
           #ifdef __USLC__
           #include <sys/soundcard.h>
           #endif
@@ -8633,6 +8636,10 @@ fi
 
 if test $ARCH = solaris; then
   SDL_RLD_FLAGS="-R\${exec_prefix}/lib"
+fi
+
+if test $ARCH = openbsd; then
+  SDL_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib -Wl,-rpath,\${X11BASE}/lib"
 fi
 
 if test x$enable_video = xtrue; then
