|
From: | John W. Eaton |
Subject: | Re: have headers & libs, but cannot configure/make |
Date: | Fri, 6 Jan 2017 10:41:06 -0500 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0 |
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?
jwe
[Prev in Thread] | Current Thread | [Next in Thread] |