[ekiga/gnome-2-26] Made SHM support optional (fixing bug #575835)



commit 5f02f1ffb025593278355d84c16bf42b0a560274
Author: Julien Puydt <jpuydt src gnome org>
Date:   Thu Mar 19 19:41:45 2009 +0000

    Made SHM support optional (fixing bug #575835)
    
    svn path=/trunk/; revision=7796
---
 configure.ac |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index ca5dae6..9dceab8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -413,10 +413,16 @@ dnl ###############################
 SHM="disabled"
 
 if test "x${gm_platform}" = "xlinux" ; then
-  AC_CHECK_LIB(Xext, XShmAttach, with_shm="yes", with_shm="no")
-  if test "x${with_shm}" != "xno"; then
-  SHM="enabled"
-  AC_DEFINE(HAVE_SHM,1,[SHM Support])
+  AC_ARG_ENABLE(shm, AS_HELP_STRING([--enable-shm],[enable SHM support (default is enabled)]),
+[if test "x$enableval" = "xyes"; then
+  enable_shm=yes
+fi],enable_shm=yes)
+  if test "x$enable_shm" = "xyes"; then
+    AC_CHECK_LIB(Xext, XShmAttach, with_shm="yes", with_shm="no")
+    if test "x${with_shm}" != "xno"; then
+      SHM="enabled"
+      AC_DEFINE(HAVE_SHM,1,[SHM Support])
+    fi
   fi
 fi
 AM_CONDITIONAL(HAVE_SHM, test "x$SHM" = "xenabled")



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]