$OpenBSD: patch-configure,v 1.12 2001/08/14 22:42:03 pvalchev Exp $
--- configure.orig	Tue Aug 14 16:33:39 2001
+++ configure	Tue Aug 14 16:33:43 2001
@@ -7007,8 +7007,6 @@ __EOF__
   cat >>$new <$old
 
         fi
-        # OpenBSD does not define "unix"
-        CFLAGS="$CFLAGS -Dunix"
         ;;
     *-*-sysv5*)
         ARCH=sysv5
@@ -9015,7 +9013,11 @@ if test $ARCH = solaris; then
 fi
 
 if test $ARCH = openbsd; then
-  SDL_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib $SYSTEM_LIBS"
+	if test x$have_x = xyes; then
+	    SDL_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib -Wl,-rpath,${X11BASE}/lib $SYSTEM_LIBS"
+	else
+	    SDL_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib $SYSTEM_LIBS"
+	fi
 fi
 
 if test x$enable_video = xtrue; then
