Re: where should make install install .oaf files to?



Hi Rob,

On Fri, 2002-03-08 at 11:51, rob wrote:
> I've sucsesfly added bonobo support to my app
> http://gnome-chord.sourceforge.net, but I have a few things I can't
> figure out.

	Looks like an interesting, and useful app :-) especially if you play
the guitar as badly as me.

> where should make install install .oaf files to?

	$(datadir)/oaf

eg.

oafdir = $(datadir)/oaf
oaf_DATA = $(OAF_FILES:.oaf.in=.oaf) Bonobo_Moniker_std.oaf

> And I saw that alot of controlls use the GNOME_ namespace can I use it
> to? Or do I have to be using gnome CVS or something?

	Yes, you can register it with me ( or George Lebl ) you want to have
GNOME/Chord ? do use that.

> and how do I get the check for bonobo to quit configure?
> The m4 file describes AM_PATH_BONOBO as 
> dnl AM_PATH_BONOBO ([MINIMUM-VERSION, [ACTION-IF-FOUND [,
> ACTION-IF-NOT-FOUND]]])
> So I'd imageine that i need to stick something in ACTION-IF_NOT-FOUND
> but I haven't been able to figure out what.

	I would use gnome-config to check for bonobo - but _really_ I would
recommend that you target the Gnome 2.0 platform instead, since it's far
more exciting and fast moving than Gnome 1.4, and many of the issues
you're about to come up against are fixed there ;-)

	eg.

EXTRA_GNOME_LIBS=`gnome-config --libs bonobox`
EXTRA_GNOME_CFLAGS=`gnome-config --cflags bonobox`
AC_SUBST(EXTRA_GNOME_LIBS)
AC_SUBST(EXTRA_GNOME_CFLAGS)

	And for a check some mess like:

	AC_MSG_CHECKING(for Bonobo >= 0.32)

	if gnome-config --libs bonobox > /dev/null 2>&1; then
		vers=`gnome-config --modversion bonobo | sed -e "s/bonobo-//" | \
			awk 'BEGIN { FS = "."; } { printf "%d", $1 * 1000 + $2;}'`
		if test "$vers" -ge 32; then
			bonobo_ok=true
		else
			bonobo_ok=false
		fi
	else
		bonobo_ok=false
	fi
	

	You really want to use PKG_CONFIG in Gnome 2.0 though, it's massively
superior.

	HTH,

		Michael.

-- 
 mmeeks gnu org  <><, Pseudo Engineer, itinerant idiot




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