Re: Configure.in ang GTK 2



On Sun, 21 Jul 2002 11:43:36 +0200 "Arno" <dark-arno ifrance com> wrote:

AM_PATH_GTK(1.2.0, ,
            AC_MSG_ERROR(Cannot find GTK: Is gtk-config in path?))

But I don't know what I must write to test if gtk2 is install on the
computeur. And where I precise the use gtk2 and not gtk1.2 to compile
the project.

I'm using the following:

PKG_CHECK_MODULES(FOO, gtk+-2.0 >= 2.0.3, havegtk=yes, havegtk=no)

if test "$havegtk" = no; then
    AC_MSG_ERROR(Can only build with GTK2)
fi


HTH,
Tilman



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]