<font color="#888888"><br><br><br></font><br><div class="gmail_quote">On Thu, Feb 18, 2010 at 8:06 AM, Thomas Moulard <span dir="ltr"><<a href="mailto:thomas.moulard@gmail.com">thomas.moulard@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Thu, Feb 18, 2010 at 4:29 PM, Peter Johansson <<a href="mailto:trojkan@gmail.com">trojkan@gmail.com</a>> wrote:<br>
> Jeff Squyres wrote:<br>
>> Greetings. I'm creating .pc files for our project (<a href="http://www.open-mpi.org" target="_blank">www.open-mpi.org</a>).<br>
>><br>
>> Where does one typically install these files? I see that pkg-config(1) v0.23 says:<br>
>><br>
>> ...By default, pkg-config looks in the directory prefix/lib/pkgconfig for these files;...<br>
>><br>
>> Does that really mean $prefix/lib/pkgconfig? Or does it actually mean $libdir/pkgconfig?<br>
>><br>
>><br>
> I use the latter: $(libdir)/pkgconfig<br>
<br>
</div>Two usual cases which justify a custom libdir is:<br>
- release/debug libraries<br>
- different instruction sets (32/64 bits for instance)<br>
<br>
...and in both case you really want to maintain two different sets of .pc files.<br>
So yes, IMHO $(libdir)/pkgconfig is the good solution.<br>
--<br></blockquote><div><br>I've been following this discussion and I have some confusion in my head. The OP stated they wanted to put the .pc file in the 'usual' location. I am presuming usual means default pkg-config search path, which depends on where pkg-config itself is installed. <br>
<br>I wish I could participate more fully, but all my apps/libs are used internally, and we find it expeditious to avoid root installs, so I tend towards mucking with PKG_CONFIG_PATH and then I don't have to depend on my own installation of the pkg-config app. It's a good solution to our very particular problem. I can't use the default location. :(<br>
<br>I also wish there was an option for pkg-config to print out it's default search path. Then in <a href="http://configure.ac">configure.ac</a>, one could make some decisions. <br><br>strings `which pkg-config`|grep "/pkgconfig"<br>
<br>lacks a certain something...<br><br>-jim<br><br></div></div>