Gtk3 build needlessly required gtk2 libraries
Hi
ON Debian, pan is built with the following options: --with-gnutls --with-gmime30 --with-gmime-crypto --enable-gkr --with-gtk3 --disable-silent-rules --enable-libnotify --with-dbus
With Pan 0.146, build fails unless libgtk2.0-dev is installed.
Thanks to Simon McVittie, the solution turns out to be quite simple:
you could replace [in configure.ac]
AM_PATH_GTK_2_0($GTK_REQUIRED,,exit 1,gthread)
with
PKG_CHECK_MODULES([GTK], [gtk+-2.0 >= $GTK_REQUIRED, gthread-2.0])
which is basically equivalent
I've tested this on a Gtk3 build and the result is fine. Note that I've not tested with Gtk2.
All the best
Dod (for Debian)
Edited by Dominique Dumont