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

Bug#556696: Trying to fix this bug :-)



tags 556696 patch
thanks
Description: Link to X11 and Xext. Closes #556696.
Author: Mònica Ramírez Arceda <monica@probeta.net>
Last-Update: 2011-06-11

Index: xenwatch-0.5.4/GNUmakefile
===================================================================
--- xenwatch-0.5.4.orig/GNUmakefile	2011-06-11 06:13:09.779995395 +0200
+++ xenwatch-0.5.4/GNUmakefile	2011-06-11 06:15:04.907994972 +0200
@@ -20,6 +20,8 @@
 NEEDS_GTK	:= xenwatch xenstore-gtk mdns-browser vnc-client
 NEEDS_AVAHI	:= mdns-browser mdns-publish-xendom mdns-publish-vnc
 NEEDS_GTK_VNC	:= xenwatch mdns-browser vnc-client
+NEEDS_X11       := xenwatch mdns-browser vnc-client
+NEEDS_XEXT      := xenwatch mdns-browser vnc-client
 
 # default target
 all: build
@@ -37,6 +39,8 @@
 HAVE_LIBVIRT	:= $(call ac_pkg_config,libvirt)
 HAVE_GTK_VNC	:= $(call ac_pkg_config,gtk-vnc-1.0)
 HAVE_XENSTORE	:= $(call ac_lib,xs_daemon_open,xenstore)
+HAVE_X11        := $(call ac_pkg_config,x11)
+HAVE_XEXT       := $(call ac_pkg_config,xext)
 endef
 
 # gtk
@@ -73,6 +77,16 @@
   $(NEEDS_LIBVIRT) : pkglst += libvirt libxml-2.0
 endif
 
+# X11
+ifeq ($(HAVE_X11),yes)
+  $(NEEDS_X11) : LDLIBS += -lX11
+endif
+
+# Xext
+ifeq ($(HAVE_XEXT),yes)
+  $(NEEDS_XEXT) : LDLIBS += -lXext
+endif
+
 # compile flags
 CFLAGS += $(call ac_inc_cflags,XENSTORE LIBVIRT AVAHI GTK_VNC)
 CFLAGS += $(shell test "$(pkglst)" != "" && pkg-config --cflags $(pkglst))

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: