Re: [gtk-list] Re: Using autoconf with GTK



Erik Mouw wrote:

> It *is* in the updated GTK FAQ, question 4.5.

Yes, at http://www.gtk.org/faq/gtkfaq-4.html#ss4.5 .

> Except for GTK, which can be detected with the following macro:
> 
>   AM_PATH_GTK(1.2.0,,AC_MSG_ERROR(foobar needs GTK 1.2.x, sorry))

You have to have the macro first though.  I doubt it comes with m4, and
the FAQ doesn't mention where to find it, but the GIMP has it in its
aclocal.m4.  I snarfed the stuff from the GIMP for my much smaller
project:  http://jpj.net/~trevor/aumix/alpha/aumix-9907240048.tar.gz . 
The configure script and makefiles are working with Linux but not with
FreeBSD because gtk-config is called gtk10-config, gtk11-config or
gtk12-config instead (under FreeBSD).  A look at
http://www.math.utah.edu/docs/info/autoconf_4.html suggests that the
AC_CHECK_PROGS macro could find which door it's behind. :) 
__
Trevor Johnson



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