[Gtk-sharp-list] problems to compile gtksourceview-sharp on OSX

Jonathan Gilbert 2a5gjx302@sneakemail.com
Wed, 06 Apr 2005 12:41:42 -0400

At 11:41 AM 06/04/2005 +0200, Daniel Schmidt wrote:
>I have a problem when I try to compile gtksourceview-sharp from svn. I 
>take some google searches, but the gtk-sharp wiki page for OSX is down 
>configure output (last lines):
>checking for pkg-config... /usr/bin/pkg-config
>./configure: line 18406: syntax error near unexpected token 
>./configure: line 18406: `PKG_CHECK_MODULES(MONO_DEPENDENCY, mono >= 
>1.0, has_mono=true, has_mono=false)'
>don't know really how i can fix this. Any suggestions ?

This means that the pkg.m4 file is either not properly installed, or is
installed into the wrong directory. This happens easily with OS X because
of the way _certain_ package tools use a different path prefix for no
apparent reason. I got past this problem with:

setenv ACLOCAL_FLAGS "-I /sw/share/aclocal -I /usr/share/aclocal -I

This worked for my OS X installation, on which I had installed pkgconfig
and autoconf using 'fink'. These exact lines might not work for you, but
they should at least point you in the right direction :-)

PKG_CONFIG_PATH should contain the directories where pkgconfig's *.pc files
can be found.
ACLOCAL_FLAGS should contain a -I for each directory where autoconf-related
*.m4 files can be found.

Jonathan Gilbert