On Sat, 2003-06-21 at 20:22, Ken Foskey wrote: > OpenOffice.org has a new requirement for gtk for their crash reporter > and I am trying to implement a warning for the absence of gtk-2.0. I > had a hunt on google and came up with: > > if test "$test_gtk" = "yes"; then > pkg_modules="gtk+-2.0 >= 1.3.13" > PKG_CHECK_MODULES( GTK, [$pkg_modules] ) > fi > > (I have no idea about versions yet BTW) > > Problem is that the PKG_CHECK_MODULES does not resolve in autoconf, it > passes through to configure untouched.
Autoconf is extended through M4 macros. On my system they're located in /usr/local/aclocal, do a locate for *.m4. The GTK macro is called by AM_PATH_GTK(MINUMUM_VERSION, ACTION_IF_FOUND, ACTION_IF_NOT_FOUND) and defines the variable GTK_CFLAGS and GTK_LIBS. -- Nick Wilcox. -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
