Commit d7c246f3 authored by Alan Coopersmith's avatar Alan Coopersmith

Only build ix86Pci.c on x86 & amd64 platforms Set DEFAULT_INT10 to x86emu

    on everything but Linux/x86 Fix Sbus.c inclusion on sparc platforms
parent 3d0d9500
......@@ -114,20 +114,30 @@ if test "$ac_cv_sysv_ipc" = yes; then
AC_DEFINE(HAVE_SYSV_IPC,1, [Define to 1 if SYSV IPC is available])
fi
### Choose bus options - replaces logic in hw/xfree86/os-support/bus/Imakefile
# Defaults:
DEFAULT_INT10="x86emu"
xorg_bus_sbus="no"
xorg_bus_ix86pci="no"
# Override defaults as needed for specific platforms:
case $host_cpu in
sparc*)
xorg_bus_sbus="yes"
DEFAULT_INT10=x86emu
;;
i*86)
xorg_bus_ix86pci="yes"
case $host_os in
solaris*) DEFAULT_INT10=x86emu ;;
*) DEFAULT_INT10=vm86 ;;
*linux*) DEFAULT_INT10=vm86 ;;
*bsd*) xorg_bus_ix86pci="no" ;;
esac
;;
*)
DEFAULT_INT10=x86emu
;;
amd64*)
xorg_bus_ix86pci="yes"
;;
esac
REQUIRED_MODULES="randrproto renderproto fixesproto damageproto xextproto xfont xproto xtrans xau xf86dgaproto xf86miscproto xf86rushproto xf86vidmodeproto xf86bigfontproto"
......@@ -694,6 +704,7 @@ AC_SUBST([XORG_OS])
AC_SUBST([XORG_OS_SUBDIR])
AC_SUBST([XORG_OS_KBD])
AC_SUBST([XORG_OS_PCI])
AM_CONDITIONAL([XORG_BUS_IX86PCI], [test "x$xorg_bus_ix86pci" = xyes])
AM_CONDITIONAL([XORG_BUS_SBUS], [test "x$xorg_bus_sbus" = xyes])
AM_CONDITIONAL([LINUX_IA64], [test "x$linux_ia64" = xyes])
......
noinst_LTLIBRARIES = libbus.la
sdk_HEADERS = xf86Pci.h
PCI_SOURCES = @XORG_OS_PCI@Pci.c ix86Pci.c
PCI_SOURCES = @XORG_OS_PCI@Pci.c
if XORG_BUS_IX86PCI
PCI_SOURCES += ix86Pci.c
endif
if LINUX_IA64
PLATFORM_PCI_SOURCES = 460gxPCI.c altixPCI.c e8870PCI.c zx1PCI.c
......@@ -10,7 +14,7 @@ endif
libbus_la_SOURCES = Pci.c $(PCI_SOURCES) $(PLATFORM_PCI_SOURCES)
if XORG_BUS_SBUS
libbus_la_SOURCES += Sbus.c
libbus_la_SOURCES += Sbus.c
endif
INCLUDES = $(XORG_INCS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment