Re: gthread & autoconf

Havoc Pennington <> writes:

> writes:
> > 
> > I can\'t work out what I need to put in to inform autoconf/automake that I want to link to the gthread library. Can anyone help me out?
> > 
> If you read glib.m4 (in share/aclocal) it has some docs - basically
> you want:
>  AM_PATH_GLIB(1.2, , AC_MSG_ERROR("can't find glib"), gthread)

If you are writing a GTK+ program, you can, instead, combine this with
checking for GTK+

  AM_PATH_GTK(1.2, , AC_MSG_ERROR("can't find gtk"), gthread)

This will add the GLib flags and libraries to GTK_CFLAGS and GTK_LIBS.


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