bug-gtypist
[Top][All Lists]
Advanced

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

Re: [bug-gtypist] gtypist fails to build with ncurses[tinfo]


From: Tim Marston
Subject: Re: [bug-gtypist] gtypist fails to build with ncurses[tinfo]
Date: Sun, 5 Jan 2014 14:36:03 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

Hi,

On Wed, Oct 30, 2013 at 09:55:17PM +0100, Felix Natter wrote:
> I coded a very simple solution (PKG_CHECK_MODULES, if that fails use
> AC_CHECK_HEADER/LIB), which works both with "ncursesw.pc" and without:

But does it work without pkg-config?  I suspect that it will throw an
error message complaining that pkg-config is not available.

There is another problem as well... If I install my own, local copy of
libncursesw in to, say, ~/mylibs/myncursesw and then try to go like
this:

  $ ./configure "LDFLAGS=-l$HOME/mylibs/myncursesw"

it will not work.  pkg-config will use the library that the system
knows about instead.  There is an interesting post about it here[1].
The same post also suggests a way to use PKG_CHECK_MODULES, which we
discussed before, that is "correct":

  1. invoke AC_CHECK_LIBS *first*, so that the "usual" mechanisms are
  given a chance to work.

  2. if that fails, invoke PKG_CHECK_MODULES

  3. if that succeeds, invoke AC_CHECK_LIBS again, in case pkg-config
  returned something invalid.

I agree with you, though -- step 3 probably isn't too important.  But
would you mind changing your fix to run AC_CHECK_LIBS first, and then
PKG_CHECK_MODULES on failure?  I think that would be a better solution.

[1] http://stackoverflow.com/a/10229811/424221

Kind regards,

-- 
Tim Marston
ed.am



reply via email to

[Prev in Thread] Current Thread [Next in Thread]