$NetBSD: patch-aj,v 1.1 2007/08/16 20:10:16 joerg Exp $

--- configure.ac.orig	2007-08-16 17:12:23.000000000 +0200
+++ configure.ac
@@ -217,6 +217,7 @@ case $host_cpu in
 	case $host_os in
 		*linux*)	DEFAULT_INT10=vm86 ;;
 		*freebsd*)	AC_DEFINE(USE_DEV_IO) ;;
+		*dragonfly*)	AC_DEFINE(USE_DEV_IO) ;;
 		*netbsd*)	AC_DEFINE(USE_I386_IOPL)
 				SYS_LIBS=-li386
 				;;
@@ -275,6 +276,7 @@ case $host_os in
   *netbsd*)
 	AC_DEFINE(CSRG_BASED, 1, [System is BSD-like])
 	AC_DEFINE(PCCONS_SUPPORT, 1, [System has PC console])
+	AC_DEFINE(PCVT_SUPPORT, 1, [System has PC console])
 	AC_DEFINE(WSCONS_SUPPORT, 1, [System has wscons console])
 	DRI=yes
 	;;
@@ -1147,7 +1149,7 @@ int main () { 
 		AC_DEFINE_UNQUOTED(LNX_KBD_PERIOD_NAME, [$period_field],
 		                   [Name of the period field in struct kbd_repeat])
 		;;
-	  freebsd* | kfreebsd*-gnu)
+	  freebsd* | kfreebsd*-gnu | dragonfly)
 	  	XORG_OS="freebsd"
 		XORG_OS_SUBDIR="bsd"
 		XORG_OS_KBD="BSD"
@@ -1260,7 +1262,14 @@ int main () { 
 		;;
 	  sparc*)
 		xorg_bus_sparcpci="yes"
-		xorg_bus_sparc="yes"
+		case $host_os in
+		netbsd*)
+			xorg_bus_sparc="no"
+			;;
+		*)
+			xorg_bus_sparc="yes"
+			;;
+		esac
 		;;
 	  x86_64*|amd64*)
 		case $host_os in
