On Debian 7 at least you can get the system name thusly:
pacific% dpkg-architecture -qDEB_HOST_MULTIARCH
x86_64-linux-gnu
When pkg-config is built as a .deb file for Debian it seems to hardcode the appropriate path, there doesn't seem to be a config file that can be consulted, which would be ideal.
how or if this be integrated into PkgConfig I am not sure. I would rather not have to execute a program to determine the system name.
RPM based systems would be different again.
On Sun Mar 11 16:53:46 2012, rsimoes wrote:
Show quoted text> .pc files for some libraries--especially those installed by package
> managers--end up in "/usr/lib/[CANONICAL SYSTEM NAME]/pkgconfig".
>
> There is, for example, "/usr/lib/x86_64-linux-gnu/pkgconfig" on my home
> machine, which happens to contain libidn.pc. pkg-config is naturally
> able to find it, while PkgConfig.pm requires that directory to be added
> via the "search_path" option.