From 3a5db6a93221b15b23ae593d55f3cdc7e4f2804a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 26 Jan 2008 12:11:47 +0000 Subject: configure.ac: Check for libglade-2.0, for the metadata-editor example. Original commit message from CVS: * configure.ac: Check for libglade-2.0, for the metadata-editor example. * tests/icles/Makefile.am: Only try to build the metadata-editor example if we have gtk and glade (otherwise the build would just fail ...); fix build in uninstalled setup. * tests/icles/metadata_editor.c: (on_cell_edited), (ui_add_columns): Fix compiler warnings (use GLib macros to cast pointer <-> int). --- configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 58c2c379..66992b06 100644 --- a/configure.ac +++ b/configure.ac @@ -245,6 +245,14 @@ AC_SUBST(GTK_CFLAGS) AC_SUBST(HAVE_GTK) AM_CONDITIONAL(HAVE_GTK, test "x$HAVE_GTK" = "xyes") +dnl libglade is optional and only used in examples +HAVE_GLADE=NO +PKG_CHECK_MODULES(GLADE, libglade-2.0 >= 2.6.0, HAVE_GLADE=yes, HAVE_GLADE=no) +AC_SUBST(GLADE_LIBS) +AC_SUBST(GLADE_CFLAGS) +AC_SUBST(HAVE_GLADE) +AM_CONDITIONAL(HAVE_GLADE, test "x$HAVE_GLADE" = "xyes") + dnl set license and copyright notice GST_LICENSE="LGPL" AC_DEFINE_UNQUOTED(GST_LICENSE, "$GST_LICENSE", [GStreamer license]) -- cgit v1.2.1