[Rpm-maint] nss/nspr location for configure

Panu Matilainen pmatilai at laiskiainen.org
Sat Nov 29 21:51:56 UTC 2008

On Sat, 29 Nov 2008, Jan Engelhardt wrote:
> On Saturday 2008-11-29 08:27, Ralf Corsepius wrote:
>> On Thu, 2008-11-27 at 00:20 +0200, Ville Skyttä wrote:
>>> On Wednesday 26 November 2008, Jan Engelhardt wrote:
>>> > rpm's configure script cannot find nss/nspr even though these are
>>> > installed. As it turns out, configure.ac does not use nss/nspr's
>>> > pkg-config files
>>> Unless I'm mistaken, upstream nss and nspr do not ship pkgconfig files, 
>>> they're distro additions and thus depending on them could be fragile.  (I 
>>> wonder if distro packagers haven't bothered to submit the *.pc they add 
>>> upstream or if upstream has rejected them.)
>> This patch is pointless.
> Of course Ville is right that, as long as the .pc files (or
> nspr-config) is not upstream, inclusion does not make sense, but the
> patch clearly has a point, namely to have me NOT having to manually
> find nspr in the depths of my distribution myself, but let it do that
> automatically.

For distros that add pkg-config support to NSS/NSPR, you can use something 
like this:

./configure <options> CPPFLAGS="`pkg-config --cflags nss`"

 	- Panu -

More information about the Rpm-maint mailing list