Make kdrive (i.e. Xephyr only) buildable on FreeBSD and probably other OSes

without linux VT switching, fbdev, and vm86 support.
This commit is contained in:
Eric Anholt 2006-02-10 07:52:05 +00:00
parent fa3a65e33d
commit efc3fab7f4
5 changed files with 28 additions and 5 deletions

View File

@ -1,3 +1,12 @@
2006-02-09 Eric Anholt <anholt@FreeBSD.org>
* configure.ac:
* hw/kdrive/linux/Makefile.am:
* hw/kdrive/linux/agp.c:
* hw/kdrive/src/Makefile.am:
Make kdrive (i.e. Xephyr only) buildable on FreeBSD and probably other
OSes without linux VT switching, fbdev, and vm86 support.
2006-02-09 Eric Anholt <anholt@FreeBSD.org>
* GL/glx/indirect_reqsize.c:

View File

@ -221,6 +221,7 @@ AM_CONDITIONAL(PPC_VIDEO, [test "x$PPC_VIDEO" = xyes])
AM_CONDITIONAL(SPARC64_VIDEO, [test "x$SPARC64_VIDEO" = xyes])
DRI=no
KDRIVE_HW=no
dnl it would be nice to autodetect these *CONS_SUPPORTs
case $host_os in
*freebsd*)
@ -243,8 +244,10 @@ case $host_os in
;;
*linux*)
DRI=yes
KDRIVE_HW=yes
;;
esac
AM_CONDITIONAL(KDRIVE_HW, test "x$KDRIVE_HW" = xyes)
AC_MSG_CHECKING(for MMX capable platform)
if test "x$use_x86_asm" = xyes && test "x$GCC" = xyes ; then

View File

@ -13,17 +13,22 @@ if H3600_TS
TS_C = ts.c
endif
if KDRIVE_HW
KDRIVE_HW_SOURCES = \
evdev.c \
keyboard.c \
linux.c
endif
liblinux_a_SOURCES = \
agp.c \
agp.h \
bus.c \
keyboard.c \
klinux.h \
linux.c \
mouse.c \
evdev.c \
ms.c \
ps2.c \
$(KDRIVE_HW_SOURCES) \
$(TSLIB_C) \
$(TS_C)

View File

@ -45,6 +45,7 @@ of the copyright holder.
#include <kdrive-config.h>
#endif
#include <X11/X.h>
#include "misc.h"
#include <unistd.h>
#include <sys/types.h>

View File

@ -4,6 +4,12 @@ INCLUDES = \
noinst_LIBRARIES = libkdrive.a libkdrivestubs.a
if KDRIVE_HW
KDRIVE_HW_SOURCES = \
vga.c \
vga.h
endif
libkdrive_a_SOURCES = \
fourcc.h \
kaa.c \
@ -25,8 +31,7 @@ libkdrive_a_SOURCES = \
ktest.c \
kxv.c \
kxv.h \
vga.c \
vga.h \
$(KDRIVE_HW_SOURCES) \
$(top_srcdir)/mi/miinitext.c
libkdrivestubs_a_SOURCES = \