[Nautilus-list] Re: Best pkg-config magic for finding medusa
- From: Havoc Pennington <hp redhat com>
- To: Darin Adler <darin bentspoon com>
- Cc: Nautilus <nautilus-list lists eazel com>
- Subject: [Nautilus-list] Re: Best pkg-config magic for finding medusa
- Date: 12 Dec 2001 13:07:15 -0500
Darin Adler <darin bentspoon com> writes:
> The Nautilus configure.in has some old-fashioned call to medusa-config to
> detect the presence of medusa (HAVE_MEDUSA) and set up MEDUSA_CFLAGS and
> MEDUSA_LIBS. I'd like to replace this with the cleanest newfangled
> pkg-config idiom. Is there a good example somewhere of a configure.in that
> correctly uses pkg-config for a conditional dependency?
>
> I really want to fix this so that finding medusa-config doesn't make it
> think it has a suitable Gnome 2 medusa.
>
> I don't have the heart to simply remove the medusa support, because I have
> seen action on the medusa component and I think someone might port to Gnome
> 2 at some point.
>
PKG_CHECK_MODULES works like most check macros in that it lets you
replace the failure action. So something like:
PKG_CHECK_MODULES(MEDUSA, medusa-2.0, have_medusa=yes, have_medusa=no)
AM_CONDITIONAL (HAVE_MEDUSA, test x$have_medusa = xyes)
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]