bug-ncurses
[Top][All Lists]
Advanced

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

Re: --enable-pc-files and nonexistent $PKG_CONFIG_LIBDIR


From: Sven Joachim
Subject: Re: --enable-pc-files and nonexistent $PKG_CONFIG_LIBDIR
Date: Sun, 05 Aug 2012 07:37:59 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)

On 2012-08-05 02:31 +0200, Bernd Jendrissek wrote:

> I just had a look what a random other library or three and they all
> just do this:
>
> pkgconfigdir = $(libdir)/pkgconfig
> PKGCONFIG_DATA = libfoo.pc
>
> No fancy tricks for checking if $(libdir)/pkgconfig exists or not.

This seems to be a reasonable default.

>> The followup comment about $DESTDIR is moot, because it is not part
>> of the configure-script's check.
>
> I disagree about it being moot: it is indeed not part of a
> configure-time check, and that's why the configure-time check for the
> pkg-config libdir should not prevent installing the .pc files. How
> would you get .pc files installed if you were cross-compiling and
> specifying, say,
> --with-pkg-config-libdir=/usr/local/lib/pkgconfig/pdp11-minix? That
> directory won't exist on your --build machine, but it will exist on
> the --host machine, and you do want .pc files installed there.

That actually works in yesterday's patchlevel, thanks Thomas.  However,
when installing into a non-standard location with --prefix, you actually
_have_ to specify --with-pkg-config-libdir.  Otherwise, "make install"
will either overwrite system files in /usr/lib/pkgconfig or fail,
depending on your rights.

Cheers,
       Sven



reply via email to

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