[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: autotools and glib-2.0
- To: developer at arabeyes dot org
- Subject: Re: autotools and glib-2.0
- From: Mohammed Elzubeir <elzubeir at fakkir dot net>
- Date: Wed, 18 Dec 2002 22:47:39 -0600
- User-agent: Mutt/1.2.5.1i
On Thu, Dec 19, 2002 at 05:57:01AM +0200, Mohammed Sameer wrote:
> >
> > Okay, replying to myself, but here it is anyway. Found the macro!
> >
> > AM_PATH_GLIB_2_0()
> >
> > Just in case someone runs into this again.
>
> I think the right way (?) 'd be:
>
> PKG_CHECK_MODULES(FOO, glib-2.0 >= 2.0.0)
>
> then you'll have
> FOO_CFLAGS -> compile flags
> FOO_LIBS -> link flags
>
Well, it's a 'way', but the AM_PATH_GLIB_2_0 macro does all this checking for
you.
--------------------->exerpt from glib-2.0.m4 <-------------------------------
dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if gmodule, gobject
dnl gthread is specified in MODULES, pass to pkg-config
--------------------->exerpt from glib-2.0.m4 <-------------------------------
later
--
-------------------------------------------------------
| Mohammed Elzubeir | Visit us at: |
| | http://www.arabeyes.org/ |
| Arabeyes Project | Homepage: |
| Unix the 'right' way | http://fakkir.net/~elzubeir/|
-------------------------------------------------------
---
Was I helpful? Let others know:
http://svcs.affero.net/rm.php?r=elzubeir