determine plugin directory in configure.ac

Craig Harding craigwharding at gmail.com
Mon Oct 11 12:58:03 EDT 2010


A few searches on google and the pidgin website tell me that the dirs can
be:

$HOME/.purple/plugins
$(libdir)/pidgin if it's a gtk-type plugin
$(libdir)/purple-2 if it's a core-type non-gtk plugin

But using pkgconfig will tell you what the $(libdir) variable is from your
distro.

The 'variable' flag will only work if that variable is defined in the pidgin
or purple pc file.



2010/10/11 Chuck Norris <norris.chuck at mail.ru>

>  Yes. But how can I determine plugin directory?
>
> $(libdir)/pidgin?
>
> Is it distro independent?
>
>
> 10.10.2010 21:04, Craig Harding пишет:
>
> You need something like this in your Makefile:
>
>  PIDGIN_CFLAGS=`pkg-config --cflags pidgin purple`
> PIDGIN_LIBS=`pkg-config --libs pidgin purple`
> PIDGIN_PREFIX=`pkg-config --variable=prefix purple`
>
>
>
> On Sun, Oct 10, 2010 at 9:58 AM, Chuck Norris <norris.chuck at mail.ru>wrote:
>
>>  I've wrote plugin for pidgin. And now I want make tarball distribution
>> for it. I want know right way to determine plugins directory in
>> distributive indepentent way. I used
>> pkg-config pidgin --variable=plugindir
>> but it seems not working on ubuntu 10.4. They use pidgin-2.6.6 and .pc
>> file doesn't contain this variable.
>>
>> _______________________________________________
>> Support at pidgin.im mailing list
>> Want to unsubscribe?  Use this link:
>> http://pidgin.im/cgi-bin/mailman/listinfo/support
>>
>
>
>
> _______________________________________________
> Support at pidgin.im mailing list
> Want to unsubscribe?  Use this link:
> http://pidgin.im/cgi-bin/mailman/listinfo/support
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pidgin.im/pipermail/support/attachments/20101011/79aa895d/attachment.html>


More information about the Support mailing list