You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

xserver120.patch 2.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. Index: xserver/configure.ac
  2. ===================================================================
  3. --- xserver.orig/configure.ac
  4. +++ xserver/configure.ac
  5. @@ -74,6 +74,7 @@ dnl forcing an entire recompile.x
  6. AC_CONFIG_HEADERS(include/version-config.h)
  7. AM_PROG_AS
  8. +AC_PROG_CXX
  9. AC_PROG_LN_S
  10. LT_PREREQ([2.2])
  11. LT_INIT([disable-static win32-dll])
  12. @@ -1777,6 +1778,10 @@ if test "x$XVFB" = xyes; then
  13. AC_SUBST([XVFB_SYS_LIBS])
  14. fi
  15. +dnl Xvnc DDX
  16. +AC_SUBST([XVNC_CPPFLAGS], ["-DHAVE_DIX_CONFIG_H $XSERVER_CFLAGS"])
  17. +AC_SUBST([XVNC_LIBS], ["$FB_LIB $FIXES_LIB $XEXT_LIB $CONFIG_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $DRI3_LIB $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $MAIN_LIB"])
  18. +AC_SUBST([XVNC_SYS_LIBS], ["$GLX_SYS_LIBS"])
  19. dnl Xnest DDX
  20. @@ -1812,6 +1817,8 @@ if test "x$XORG" = xauto; then
  21. fi
  22. AC_MSG_RESULT([$XORG])
  23. +AC_DEFINE_UNQUOTED(XORG_VERSION_CURRENT, [$VENDOR_RELEASE], [Current Xorg version])
  24. +
  25. if test "x$XORG" = xyes; then
  26. XORG_DDXINCS='-I$(top_srcdir)/hw/xfree86 -I$(top_srcdir)/hw/xfree86/include -I$(top_srcdir)/hw/xfree86/common'
  27. XORG_OSINCS='-I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/os-support/bus -I$(top_srcdir)/os'
  28. @@ -2029,7 +2036,6 @@ if test "x$XORG" = xyes; then
  29. AC_DEFINE(XORG_SERVER, 1, [Building Xorg server])
  30. AC_DEFINE(XORGSERVER, 1, [Building Xorg server])
  31. AC_DEFINE(XFree86Server, 1, [Building XFree86 server])
  32. - AC_DEFINE_UNQUOTED(XORG_VERSION_CURRENT, [$VENDOR_RELEASE], [Current Xorg version])
  33. AC_DEFINE(NEED_XF86_TYPES, 1, [Need XFree86 typedefs])
  34. AC_DEFINE(NEED_XF86_PROTOTYPES, 1, [Need XFree86 helper functions])
  35. AC_DEFINE(__XSERVERNAME__, "Xorg", [Name of X server])
  36. @@ -2565,6 +2571,7 @@ hw/dmx/Makefile
  37. hw/dmx/man/Makefile
  38. hw/vfb/Makefile
  39. hw/vfb/man/Makefile
  40. +hw/vnc/Makefile
  41. hw/xnest/Makefile
  42. hw/xnest/man/Makefile
  43. hw/xwin/Makefile
  44. Index: xserver/hw/Makefile.am
  45. ===================================================================
  46. --- xserver.orig/hw/Makefile.am
  47. +++ xserver/hw/Makefile.am
  48. @@ -38,7 +38,8 @@ SUBDIRS = \
  49. $(DMX_SUBDIRS) \
  50. $(KDRIVE_SUBDIRS) \
  51. $(XQUARTZ_SUBDIRS) \
  52. - $(XWAYLAND_SUBDIRS)
  53. + $(XWAYLAND_SUBDIRS) \
  54. + vnc
  55. DIST_SUBDIRS = dmx xfree86 vfb xnest xwin xquartz kdrive xwayland
  56. Index: xserver/mi/miinitext.c
  57. ===================================================================
  58. --- xserver.orig/mi/miinitext.c
  59. +++ xserver/mi/miinitext.c
  60. @@ -107,8 +107,15 @@ SOFTWARE.
  61. #include "os.h"
  62. #include "globals.h"
  63. +#ifdef TIGERVNC
  64. +extern void vncExtensionInit(void);
  65. +#endif
  66. +
  67. /* List of built-in (statically linked) extensions */
  68. static const ExtensionModule staticExtensions[] = {
  69. +#ifdef TIGERVNC
  70. + {vncExtensionInit, "VNC-EXTENSION", NULL},
  71. +#endif
  72. {GEExtensionInit, "Generic Event Extension", &noGEExtension},
  73. {ShapeExtensionInit, "SHAPE", NULL},
  74. #ifdef MITSHM