[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pkg-config wisdom
From: |
William Pursell |
Subject: |
Re: pkg-config wisdom |
Date: |
Fri, 23 Oct 2009 06:00:20 -1000 |
User-agent: |
Thunderbird 2.0.0.23 (Macintosh/20090812) |
Alfred M. Szmidt wrote:
>
> pkg-config tries to solve an important problem, but it does so in the
> wrong way. pkg-config checks for an exact library name,
PKG_CHECK_MODULES does not check for a library name at all,
but for the name of the .pc file. This gives the administrator
one extra level of indirection.
AC_CHECK_LIB checks for an exact library name.
and
> optionally exact version numbers. A similar library can exist with
> the same API, but with different name and version, in which case any
> checks done by PKG_CHECK_* during configure will fail.
Only if the author of configure.ac uses the option to check for
a version number. PKG_CHECK_MODULES can be used without
an explicit version number check, and many people do
explicit version number checks without pkg-config, so this
is not a compelling argument against pkg-config.
>
> Autoconf works by testing specific features, hence why it doesn't fit
> with the autoconf philosophy.
I think that's invalid. pkg-config does provide the option to
do an explicit version check, but it is the maintainer that
exercises that option that is departing from the autoconf
philosophy.
--
William Pursell
- pkg-config wisdom, Murray S. Kucherawy, 2009/10/22
- Re: pkg-config wisdom, Ben Pfaff, 2009/10/22
- RE: pkg-config wisdom, Murray S. Kucherawy, 2009/10/22
- Re: pkg-config wisdom, Adam Mercer, 2009/10/22
- Re: pkg-config wisdom, Alfred M. Szmidt, 2009/10/22
- Re: pkg-config wisdom,
William Pursell <=
- Re: pkg-config wisdom, Alfred M. Szmidt, 2009/10/24
- Re: pkg-config wisdom, Russell Shaw, 2009/10/24
- Re: pkg-config wisdom, William Pursell, 2009/10/25
- Re: pkg-config wisdom, Alfred M. Szmidt, 2009/10/25
- Re: pkg-config wisdom, William Pursell, 2009/10/25
- Re: pkg-config wisdom, Alfred M. Szmidt, 2009/10/25
- Re: pkg-config wisdom, William Pursell, 2009/10/25
- Re: pkg-config wisdom, Tim Post, 2009/10/26
- Re: pkg-config wisdom, Russell Shaw, 2009/10/25
- Re: pkg-config wisdom, Tim Post, 2009/10/26