[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: have headers & libs, but cannot configure/make
From: |
Mike Miller |
Subject: |
Re: have headers & libs, but cannot configure/make |
Date: |
Fri, 6 Jan 2017 07:45:03 -0800 |
User-agent: |
NeoMutt/20161126 (1.7.1) |
On Fri, Jan 06, 2017 at 10:41:06 -0500, John W. Eaton wrote:
> On 01/06/2017 10:18 AM, Mike Miller wrote:
> > On Fri, Jan 06, 2017 at 09:55:44 -0500, John W. Eaton wrote:
> > > On 01/05/2017 02:37 PM, Mike Miller wrote:
>
> > > Does it work now for linking your pcre library?
> >
> > I don't think it will, because it doesn't take PCRE_CPPFLAGS into
> > account when testing for the presence of pcre.h.
>
> Oh. Oops.
>
> > Why not use OCTAVE_CHECK_LIB for consistency?
>
> We could do that, but I thought we were aiming to use pkg-config.
>
> There are a few other cases where we use PKG_CHECK_MODULE to get FOO_CFLAGS
> and FOO_LIBS, then we set FOO_CPPFLAGS=$FOO_CFLAGS. Ugh.
>
> I would prefer setting -I options (only) in CPPFLAGS, -L options (only) in
> LDFLAGS, and the -llibfoo in FOO_LIBS. So yeah, maybe we should be using
> OCTAVE_CHECK_LIB, possibly modified to use pkg-config if pkg-config has info
> for the library we are looking for?
OCTAVE_CHECK_LIB already uses pkg-config (since July 2016) and already
takes care of all of what you mention. I even added an argument to allow
the name of the library (what Octave calls the library) to differ from
the name of the .pc file (see e.g. portaudio).
--
mike
- Re: have headers & libs, but cannot configure/make, Chris Roat, 2017/01/03
- Re: have headers & libs, but cannot configure/make, Mike Miller, 2017/01/05
- Re: Re: have headers & libs, but cannot configure/make, John W. Eaton, 2017/01/06
- Re: Re: have headers & libs, but cannot configure/make, Mike Miller, 2017/01/06
- Re: have headers & libs, but cannot configure/make, John W. Eaton, 2017/01/06
- Re: have headers & libs, but cannot configure/make,
Mike Miller <=
- Re: have headers & libs, but cannot configure/make, John W. Eaton, 2017/01/06
- Re: have headers & libs, but cannot configure/make, John W. Eaton, 2017/01/06
- Re: have headers & libs, but cannot configure/make, Mike Miller, 2017/01/06
- Re: have headers & libs, but cannot configure/make, John W. Eaton, 2017/01/06
- Re: have headers & libs, but cannot configure/make, Mike Miller, 2017/01/06
Re: Re: have headers & libs, but cannot configure/make, John W. Eaton, 2017/01/06