Yesterday late in the evening I stumbled upon the fact that not setting $PKG_CONFIG_PATH can stop you from compiling some sources. I wanted to find out, if the situation could potentially be improved. Let's face it, not everybody "remembers" to define this variable, even though it is mentioned in the wiki and (several times) in this forum.
First I had a quick look what search path might have been compiled into 'pkg-config': tc@box:~$ strings /usr/local/bin/pkg-config | grep -E '\/pkgconfig(:|$)'
/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig
Please note that this is merely a "rough guess" and not the proper way to "proof" a fact, but at least it got me interested to download the source and have a look into the configure options. There I found the --with-pc-path option. The default value for this is '${libdir}/pkgconfig:${datadir}/pkgconfig' which equates in our case to '/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig'.
So I simply did
./configure --with-pc-path='${libdir}/pkgconfig:${datadir}/pkgconfig:/usr/lib/pkgconfig' ; make
The "crude check" of the result indicates to me that this might have done the trick:tc@box:~/pkg-config-0.23$ strings ./pkg-config | grep -E '\/pkgconfig(:|$)'
/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/pkgconfig
So maybe a little rebuild of the extension could help those users that (like me) are having difficulties to remember things, or are not reading all the stuff they should read. And if things work out as I hope, the hint may just become redundant information (and could be therefore removed).