From: Wei Liu Subject: Re: [PATCH] tools: link executables with libtinfo explicitly Date: Mon, 1 Jun 2015 14:38:21 +0100 Message-ID: <20150601133821.GH19403@zion.uk.xensource.com> References: <1432937248-24644-1-git-send-email-daniel.kiper@oracle.com> <20150601130644.GE19403@zion.uk.xensource.com> <20150601132658.GR3787@olila.local.net-space.pl> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YzPv8-0003ys-Pt for xen-devel@lists.xenproject.org; Mon, 01 Jun 2015 13:38:26 +0000 Content-Disposition: inline In-Reply-To: <20150601132658.GR3787@olila.local.net-space.pl> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Daniel Kiper Cc: ian.jackson@eu.citrix.com, xen-devel@lists.xenproject.org, Wei Liu , ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On Mon, Jun 01, 2015 at 03:26:58PM +0200, Daniel Kiper wrote: [...] > > > tools/misc/Makefile | 2 +- > > > tools/xenstat/xentop/Makefile | 2 +- > > > 5 files changed, 53 insertions(+), 2 deletions(-) > > > > > > diff --git a/config/Tools.mk.in b/config/Tools.mk.in > > > index d67352e..aef9ed6 100644 > > > --- a/config/Tools.mk.in > > > +++ b/config/Tools.mk.in > > > @@ -77,5 +77,6 @@ CONFIG_LIBICONV := @libiconv@ > > > CONFIG_GCRYPT := @libgcrypt@ > > > EXTFS_LIBS := @EXTFS_LIBS@ > > > CURSES_LIBS := @CURSES_LIBS@ > > > +TINFO_LIBS := @TINFO_LIBS@ > > > > > > FILE_OFFSET_BITS := @FILE_OFFSET_BITS@ > > [...] > > > > > > > > > diff --git a/tools/configure.ac b/tools/configure.ac > > > index 9bf6450..1a06ddf 100644 > > > --- a/tools/configure.ac > > > +++ b/tools/configure.ac > > > @@ -318,6 +318,10 @@ i[[3456]]86|x86_64) > > > esac > > > AX_CHECK_UUID > > > AX_CHECK_CURSES > > > +AS_IF([test "$ncurses" = "y"], [ > > > +AC_CHECK_LIB([tinfo], [define_key], [TINFO_LIBS=-ltinfo]) > > > > "define_key"? > > Why not? It is used by gtraceview. If you wish we could test for > halfdelay() which is used by xentop. > Oh, I misread, sorry. Testing for define_key is fine. > > > +]) > > > +AC_SUBST(TINFO_LIBS) > > > > > > > This doesn't look right. Tinfo is needed by libxenstat. It should not > > depend on presence of curses library. > > libtinfo is a part of ncurses. > Well, not part of in the sense of packaging. Just that ncurses depends on it. But I get your idea. Wei. > Daniel