Index: configure.in =================================================================== RCS file: /cvs/gnome/tracker/configure.in,v retrieving revision 1.39 diff -n -u -r1.39 configure.in --- configure.in 10 Nov 2006 18:08:50 -0000 1.39 +++ configure.in 18 Nov 2006 21:58:43 -0000 @@ -113,6 +113,21 @@ # end of AM_GLIB_DEFINE_LOCALEDIR(TRACKER_LOCALEDIR) replacement #################################################################### +# check for newer glib (>= 2.12.0) for g_option_context_set_summary () +# availability +#################################################################### +PKG_CHECK_MODULES(glib2, [ + glib-2.0 >= 2.12.0], + [have_recent_glib=yes] , [have_recent_glib=no]) + + if test "$have_recent_glib" = "yes"; + then + AM_CONDITIONAL(HAVE_RECENT_GLIB, true) + AC_DEFINE(HAVE_RECENT_GLIB, [], [Define if we have newer glib]) + fi + + +#################################################################### # check for GStreamer or Xine. Otherwise, call an external video # player (Totem or MPlayer). #################################################################### Index: src/libtracker/tracker-tag.c =================================================================== RCS file: /cvs/gnome/tracker/src/libtracker/tracker-tag.c,v retrieving revision 1.11 diff -n -u -r1.11 tracker-tag.c --- src/libtracker/tracker-tag.c 16 Nov 2006 14:41:42 -0000 1.11 +++ src/libtracker/tracker-tag.c 18 Nov 2006 21:58:44 -0000 @@ -88,6 +88,8 @@ example = g_strconcat ("-a ", _("TAG"), " -a ", _("TAG"), " -a ", _("TAG"), NULL); + +#ifdef HAVE_RECENT_GLIB /* Translators: this message will appear after the usage string */ /* and before the list of options, showing an usage example. */ g_option_context_set_summary (context, @@ -95,6 +97,8 @@ "at the same time, join multiple options like:"), "\n\n\t", example, NULL)); + +#endif g_option_context_add_main_entries (context, entries, NULL); g_option_context_parse (context, &argc, &argv, &error);