Xephyr: don't use Xv or GL when those are disabled.
This commit is contained in:
parent
950f9995d1
commit
26e1fc7b42
|
@ -1855,10 +1855,13 @@ if test "$KDRIVE" = yes; then
|
||||||
XEPHYR_DRI=no
|
XEPHYR_DRI=no
|
||||||
if test x$XEPHYR = xyes -a x$DRI = xyes; then
|
if test x$XEPHYR = xyes -a x$DRI = xyes; then
|
||||||
XEPHYR_DRI=yes
|
XEPHYR_DRI=yes
|
||||||
|
XEPHYR_DRI_LIBS=-lGL
|
||||||
|
AC_SUBST(XEPHYR_DRI_LIBS)
|
||||||
fi
|
fi
|
||||||
if test x$XEPHYR_DRI = xyes ; then
|
if test x$XEPHYR_DRI = xyes ; then
|
||||||
AC_DEFINE(XEPHYR_DRI,1,[enable DRI extension in xephyr])
|
AC_DEFINE(XEPHYR_DRI,1,[enable DRI extension in xephyr])
|
||||||
fi
|
fi
|
||||||
|
AM_CONDITIONAL(XEPHYR_HAS_DRI, [test x$XEPHYR_DRI = xyes])
|
||||||
|
|
||||||
# Xephyr needs nanosleep() which is in librt on Solaris
|
# Xephyr needs nanosleep() which is in librt on Solaris
|
||||||
AC_CHECK_FUNC([nanosleep], [],
|
AC_CHECK_FUNC([nanosleep], [],
|
||||||
|
|
|
@ -3,47 +3,65 @@ INCLUDES = \
|
||||||
@KDRIVE_CFLAGS@ \
|
@KDRIVE_CFLAGS@ \
|
||||||
-I$(srcdir)/../../../exa
|
-I$(srcdir)/../../../exa
|
||||||
|
|
||||||
noinst_LIBRARIES = libxephyr-hostx.a libxephyr-hostxv.a libxephyr.a
|
if XV
|
||||||
|
LIBXEPHYR_HOSTXV=libxephyr-hostxv.a
|
||||||
|
else
|
||||||
|
LIBXEPHYR_HOSTXV=
|
||||||
|
endif
|
||||||
|
|
||||||
|
if XEPHYR_HAS_DRI
|
||||||
|
LIBXEPHYR_HOSTDRI=libxephyr-hostdri.a
|
||||||
|
else
|
||||||
|
LIBXEPHYR_HOSTDRI=
|
||||||
|
endif
|
||||||
|
|
||||||
|
noinst_LIBRARIES = libxephyr-hostx.a $(LIBXEPHYR_HOSTXV) $(LIBXEPHYR_HOSTDRI) libxephyr.a
|
||||||
|
|
||||||
bin_PROGRAMS = Xephyr
|
bin_PROGRAMS = Xephyr
|
||||||
|
|
||||||
|
|
||||||
libxephyr_hostx_a_SOURCES = \
|
libxephyr_hostx_a_SOURCES = \
|
||||||
hostx.c \
|
hostx.c \
|
||||||
hostx.h
|
hostx.h
|
||||||
|
|
||||||
libxephyr_hostx_a_INCLUDES = @XEPHYR_INCS@
|
libxephyr_hostxv_a_INCLUDES = @XEPHYR_INCS@
|
||||||
|
|
||||||
|
if XV
|
||||||
libxephyr_hostxv_a_SOURCES= \
|
libxephyr_hostxv_a_SOURCES= \
|
||||||
ephyrhostvideo.c \
|
ephyrhostvideo.c \
|
||||||
ephyrhostvideo.h
|
ephyrhostvideo.h
|
||||||
|
endif
|
||||||
|
|
||||||
|
if XEPHYR_HAS_DRI
|
||||||
|
|
||||||
|
libxephyr_hostdri_a_SOURCES= \
|
||||||
|
ephyrdriext.c \
|
||||||
|
ephyrdri.c \
|
||||||
|
ephyrdri.h \
|
||||||
|
XF86dri.c \
|
||||||
|
ephyrglxext.c \
|
||||||
|
ephyrglxext.h \
|
||||||
|
ephyrhostglx.c \
|
||||||
|
ephyrhostglx.h
|
||||||
|
|
||||||
|
libxephyr_hostdri_a_CFLAGS= \
|
||||||
|
-I$(top_srcdir) \
|
||||||
|
@LIBDRM_CFLAGS@ \
|
||||||
|
@DRIPROTO_CFLAGS@
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
libxephyr_a_SOURCES = \
|
libxephyr_a_SOURCES = \
|
||||||
ephyr.c \
|
ephyr.c \
|
||||||
ephyr_draw.c \
|
ephyr_draw.c \
|
||||||
ephyrvideo.c \
|
ephyrvideo.c \
|
||||||
XF86dri.c \
|
|
||||||
ephyrdriext.c \
|
|
||||||
ephyrdri.c \
|
|
||||||
ephyrdri.h \
|
|
||||||
ephyrglxext.c \
|
|
||||||
ephyrglxext.h \
|
|
||||||
ephyrhostglx.c \
|
|
||||||
ephyrhostglx.h \
|
|
||||||
ephyrhostproxy.c \
|
|
||||||
ephyrhostproxy.h \
|
|
||||||
ephyrhostproxy.c \
|
|
||||||
ephyrproxyext.c \
|
|
||||||
ephyrproxyext.h \
|
|
||||||
os.c \
|
os.c \
|
||||||
hostx.h \
|
hostx.h \
|
||||||
ephyr.h \
|
ephyr.h \
|
||||||
ephyrlog.h
|
ephyrlog.h
|
||||||
|
|
||||||
libxephyr_a_CFLAGS = \
|
libxephyr_a_CFLAGS = \
|
||||||
@LIBDRM_CFLAGS@ \
|
|
||||||
-I$(top_srcdir) \
|
-I$(top_srcdir) \
|
||||||
@DRIPROTO_CFLAGS@
|
@LIBDRM_CFLAGS@
|
||||||
|
|
||||||
Xephyr_SOURCES = \
|
Xephyr_SOURCES = \
|
||||||
ephyrinit.c
|
ephyrinit.c
|
||||||
|
@ -51,17 +69,19 @@ Xephyr_SOURCES = \
|
||||||
Xephyr_LDADD = \
|
Xephyr_LDADD = \
|
||||||
libxephyr.a \
|
libxephyr.a \
|
||||||
libxephyr-hostx.a \
|
libxephyr-hostx.a \
|
||||||
libxephyr-hostxv.a \
|
$(LIBXEPHYR_HOSTXV) \
|
||||||
|
$(LIBXEPHYR_HOSTDRI) \
|
||||||
../../../exa/libexa.la \
|
../../../exa/libexa.la \
|
||||||
@KDRIVE_LIBS@ \
|
@KDRIVE_LIBS@ \
|
||||||
@XEPHYR_LIBS@ \
|
@XEPHYR_LIBS@ \
|
||||||
@LIBDRM_LIBS@ \
|
@LIBDRM_LIBS@ \
|
||||||
-lGL
|
@XEPHYR_DRI_LIBS@
|
||||||
|
|
||||||
Xephyr_DEPENDENCIES = \
|
Xephyr_DEPENDENCIES = \
|
||||||
libxephyr.a \
|
libxephyr.a \
|
||||||
libxephyr-hostx.a \
|
libxephyr-hostx.a \
|
||||||
libxephyr-hostxv.a \
|
$(LIBXEPHYR_HOSTXV) \
|
||||||
|
$(LIBXEPHYR_HOSTDRI) \
|
||||||
@KDRIVE_LOCAL_LIBS@
|
@KDRIVE_LOCAL_LIBS@
|
||||||
|
|
||||||
relink:
|
relink:
|
||||||
|
|
|
@ -36,7 +36,6 @@
|
||||||
#include "ephyrdri.h"
|
#include "ephyrdri.h"
|
||||||
#include "ephyrdriext.h"
|
#include "ephyrdriext.h"
|
||||||
#include "ephyrglxext.h"
|
#include "ephyrglxext.h"
|
||||||
#include "ephyrproxyext.h"
|
|
||||||
#endif /*XEPHYR_DRI*/
|
#endif /*XEPHYR_DRI*/
|
||||||
|
|
||||||
extern int KdTsPhyScreen;
|
extern int KdTsPhyScreen;
|
||||||
|
@ -640,7 +639,6 @@ ephyrInitScreen (ScreenPtr pScreen)
|
||||||
if (!ephyrNoDRI) {
|
if (!ephyrNoDRI) {
|
||||||
ephyrDRIExtensionInit (pScreen) ;
|
ephyrDRIExtensionInit (pScreen) ;
|
||||||
ephyrHijackGLXExtension () ;
|
ephyrHijackGLXExtension () ;
|
||||||
ephyrProxyExtensionInit ("ATIFGLRXDRI") ;
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user