From 0c04b17a4cf2f189d3dae44667b42ba78435a06e Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 14 May 2012 22:08:07 +0200 Subject: install widget catalogs into Glade-3 catalog directory if possible * eases installation on Linux * on MinGW where Glade-3 is in its own hierarchy, this will probably not work, but there's a fallback to install the catalogs into PREFIX/share directories --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index c99ffcb..4034faa 100644 --- a/configure.ac +++ b/configure.ac @@ -62,6 +62,13 @@ PKG_CHECK_MODULES(LIBGLIB, [gobject-2.0 glib-2.0]) PKG_CHECK_MODULES(LIBGTK, [gtk+-2.0]) +PKG_CHECK_EXISTS([gladeui-1.0], + [glade3_catalogsdir=`$PKG_CONFIG --variable=catalogdir gladeui-1.0`]) +if [[ x$glade3_catalogsdir = x ]]; then + AC_MSG_WARN([Glade-3 catalog directory not found, installing Gtk+ widget catalogs into custom directories!]) +fi +AC_SUBST(glade3_catalogsdir) + # FIXME: further restrict libvlc version PKG_CHECK_MODULES(LIBVLC, [libvlc >= 1.1.13 vlc-plugin]) -- cgit v1.2.3