From: Sergey Senozhatsky <sergey.senozhatsky at gmail.com>
To: powertop@lists.01.org
Subject: Re: [Powertop] [PATCH] Optionally check for ncurses pkgconfig file.
Date: Fri, 09 May 2014 10:30:27 +0300 [thread overview]
Message-ID: <20140509073027.GB937@swordfish> (raw)
In-Reply-To: 20140508170619.GA17120@jbkonno-beef.jf.intel.com
[-- Attachment #1: Type: text/plain, Size: 1746 bytes --]
On (05/08/14 10:06), Joe Konno wrote:
> On Tue, May 06, 2014 at 05:38:24PM -0700, Kok, Auke-jan H wrote:
> > On Tue, May 6, 2014 at 12:53 AM, Sergey Senozhatsky
> > <sergey.senozhatsky(a)gmail.com> wrote:
> > > On (05/05/14 23:42), Auke Kok wrote:
> > >> ---
> > >> configure.ac | 3 ++-
> > >> 1 file changed, 2 insertions(+), 1 deletion(-)
> > >>
> > >> diff --git a/configure.ac b/configure.ac
> > >> index baa5faa..5a90fe3 100644
> > >> --- a/configure.ac
> > >> +++ b/configure.ac
> > >> @@ -46,7 +46,8 @@ AC_FUNC_REALLOC
> > >> AC_FUNC_STRTOD
> > >> AC_CHECK_FUNCS([fdatasync getpagesize gettimeofday memmove memset mkdir munmap pow realpath regcomp select setlocale socket sqrt strcasecmp strchr strdup strerror strncasecmp strstr strtoul strtoull])
> > >>
> > >> -AC_SEARCH_LIBS([delwin], [ncursesw ncurses], [], AC_MSG_ERROR([ncurses is required but was not found]), [])
> > >> +PKG_CHECK_MODULES([NCURSES], [ncurses], [LIBS="$LIBS $ncurses_LIBS"],
> > > ^^^^^^^^^
> > > [ncursesw ncurses]?
>
> On my gentoo system (x86_64) with ncurses 5.9, after applying this patch,
> -lncurses is linked, but not -lncursesw.
>
> >
> > Good question, I actually do not know, and I don't have an ncurses
> > pkgconfig around to see if that works.
> >
> > Alexandra, can you see if this works with:
> >
> > +PKG_CHECK_MODULES([NCURSES], [ncursesw ncurses], [LIBS="$LIBS $ncurses_LIBS"],
>
> After hacking in this change, both -lncursesw and -lncurses are linked.
>
> If I checkout the v2.5 tag, only -lncursesw is linked.
>
> So, three different linking scenarios. Which one is "correct" for powertop?
>
ncursesw is preferred.
-ss
next reply other threads:[~2014-05-09 7:30 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-09 7:30 Sergey Senozhatsky [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-05-09 22:28 [Powertop] [PATCH] Optionally check for ncurses pkgconfig file Joe Konno
2014-05-09 22:01 Auke Kok
2014-05-09 22:00 Kok, Auke-jan H
2014-05-09 21:59 Kok, Auke-jan H
2014-05-09 21:59 Auke Kok
2014-05-08 17:06 Joe Konno
2014-05-08 16:14 Alexandra Yates
2014-05-07 19:17 Alexandra Yates
2014-05-07 0:38 Kok, Auke-jan H
2014-05-06 7:53 Sergey Senozhatsky
2014-05-06 6:42 Auke Kok
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140509073027.GB937@swordfish \
--to=powertop@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.