[gtk+/rendering-cleanup: 86/142] x11: Remove last traces of XShm
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup: 86/142] x11: Remove last traces of XShm
- Date: Thu, 9 Sep 2010 16:11:31 +0000 (UTC)
commit b515c3e6d5c3b966f73edfdd72386da0298effe1
Author: Benjamin Otte <otte redhat com>
Date: Fri Aug 27 14:51:55 2010 +0200
x11: Remove last traces of XShm
Since deletion of GdkImage, shm is no longer in use.
configure.ac | 52 ---------------------------------------------
gdk/x11/gdkdrawable-x11.c | 8 -------
2 files changed, 0 insertions(+), 60 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index d67c1b9..58820fc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -227,10 +227,6 @@ AC_ARG_ENABLE(debug,
AC_HELP_STRING([--enable-debug=@<:@no/minimum/yes@:>@],
[turn on debugging @<:@default=debug_default@:>@]),,
enable_debug=debug_default)
-AC_ARG_ENABLE(shm,
- [AC_HELP_STRING([--enable-shm],
- [support shared memory if available [default=yes]])],,
- [enable_shm="yes"])
AC_ARG_ENABLE(xkb,
[AC_HELP_STRING([--enable-xkb],
[support XKB [default=maybe]])],,
@@ -1041,54 +1037,6 @@ if test "x$gdktarget" = "xx11"; then
CFLAGS="$gtk_save_CFLAGS"
- # Xshm checks
-
- if test "x$enable_shm" = "xyes"; then
- # Check for the XShm extension, normally in Xext
- AC_CHECK_FUNC(XShmAttach,
- :,
- # On AIX, it is in XextSam instead
- [AC_CHECK_LIB(XextSam, XShmAttach,
- [GTK_ADD_LIB(x_extra_libs,XextSam)])])
- fi
-
- if test "x$enable_shm" = "xyes"; then
- # Check for shared memory
- AC_CHECK_HEADER(sys/ipc.h,
- AC_DEFINE(HAVE_IPC_H, 1,
- [Define to 1 if ipc.h is available]),
- no_sys_ipc=yes)
- AC_CHECK_HEADER(sys/shm.h,
- AC_DEFINE(HAVE_SHM_H, 1,
- [Define to 1 if shm.h is available]),
- no_sys_shm=yes)
-
- # Check for the X shared memory extension header file
- have_xshm=no
- AC_MSG_CHECKING(X11/extensions/XShm.h)
- if test "x$no_xext_lib" = "xyes"; then
- :
- else
- gtk_save_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS $x_cflags"
- AC_TRY_COMPILE([
-#include <stdlib.h>
-#include <sys/types.h>
-#include <sys/ipc.h>
-#include <sys/shm.h>
-#include <X11/Xlib.h>
-#include <X11/Xutil.h>
-#include <X11/extensions/XShm.h>
-], [XShmSegmentInfo *x_shm_info;], have_xshm=yes)
- CFLAGS="$gtk_save_CFLAGS"
- fi
- AC_MSG_RESULT($have_xshm)
- if test $have_xshm = yes ; then
- AC_DEFINE(HAVE_XSHM_H, 1,
- [Define to 1 if xshm.h is available])
- fi
- fi
-
if test "x$enable_xinerama" = "xyes"; then
# Check for Xinerama extension (Solaris impl or Xfree impl)
gtk_save_cppflags="$CPPFLAGS"
diff --git a/gdk/x11/gdkdrawable-x11.c b/gdk/x11/gdkdrawable-x11.c
index 4a01e91..2fff65e 100644
--- a/gdk/x11/gdkdrawable-x11.c
+++ b/gdk/x11/gdkdrawable-x11.c
@@ -33,14 +33,6 @@
#include <stdlib.h>
#include <string.h> /* for memcpy() */
-#if defined (HAVE_IPC_H) && defined (HAVE_SHM_H) && defined (HAVE_XSHM_H)
-#define USE_SHM
-#endif
-
-#ifdef USE_SHM
-#include <X11/extensions/XShm.h>
-#endif /* USE_SHM */
-
#include "gdkprivate-x11.h"
#include "gdkdrawable-x11.h"
#include "gdkpixmap-x11.h"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]