[tracker] tracker-extract: Fix autofoo warnings about unused mockup_SOURCES



commit 04b8b751c564253679c825def5defae8b606ac36
Author: Martyn Russell <martyn lanedo com>
Date:   Mon Nov 23 07:15:24 2009 +0000

    tracker-extract: Fix autofoo warnings about unused mockup_SOURCES

 configure.ac                    |    8 ++++++++
 src/tracker-extract/Makefile.am |    6 +++++-
 2 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index e88e16a..176a54c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1306,6 +1306,14 @@ fi
 AM_CONDITIONAL(HAVE_TOTEM_PL_PARSER, test "x$have_playlist" = "xyes")
 
 ##################################################################
+# Enable mockup extractor module?
+##################################################################
+
+have_mockup="no  (disabled)"
+
+AM_CONDITIONAL(HAVE_MOCKUP, test "x$have_mockup" = "xyes")
+
+##################################################################
 # Enable Evolution plugin support?
 ##################################################################
 
diff --git a/src/tracker-extract/Makefile.am b/src/tracker-extract/Makefile.am
index a48c5b1..74f5920 100644
--- a/src/tracker-extract/Makefile.am
+++ b/src/tracker-extract/Makefile.am
@@ -94,7 +94,9 @@ modules_LTLIBRARIES += libextract-playlist.la
 endif
 
 # A mockup extractor for testing purposes
-#modules_LTLIBRARIES += libextract-mockup.la
+if HAVE_MOCKUP
+modules_LTLIBRARIES += libextract-mockup.la
+endif
 
 # Common XMP Sources
 xmp_sources = 								\
@@ -220,10 +222,12 @@ libextract_tiff_la_LIBADD = $(GLIB2_LIBS) $(LIBTIFF_LIBS) $(LIBIPTCDATA_LIBS) $(
 	$(top_builddir)/src/libtracker-common/libtracker-common.la
 
 # MOCKUP
+if HAVE_MOCKUP
 libextract_mockup_la_SOURCES = tracker-extract-mockup.c
 libextract_mockup_la_LDFLAGS = $(module_flags)
 libextract_mockup_la_LIBADD = $(GLIB2_LIBS) $(GCOV_LIBS) \
 	$(top_builddir)/src/libtracker-common/libtracker-common.la
+endif
 
 # Playlists using totem-pl-parser
 libextract_playlist_la_SOURCES = tracker-extract-playlist.c



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]