commit 2445d05d2d4e13818928b2c02cfca4d5535cff66
parent 056ff82e1b305bdca002cb4a4f64b7a861b6ca89
Author: Nils Durner <durner@gnunet.org>
Date: Fri, 26 May 2006 20:20:40 +0000
make mpeg2 optional
Diffstat:
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
@@ -154,7 +154,7 @@ AC_CHECK_LIB(bz2, BZ2_decompress,
AC_CHECK_LIB(mpeg2, mpeg2_init,
[AM_CONDITIONAL(HAVE_MPEG2, true)
- AC_DEFINE(HAVE_LIBMPEG2,1,[Have libmpeg2])],
+ AC_DEFINE(HAVE_MPEG2,1,[Have libmpeg2])],
[AM_CONDITIONAL(HAVE_MPEG2, false)])
# restore LIBS
@@ -375,5 +375,5 @@ fi
if test "x$HAVE_MPEG2_TRUE" = "x#"
then
- AC_MSG_ERROR([FATAL: libmpeg2 not found])
+ AC_MSG_NOTICE([NOTICE: libmpeg2 not found])
fi
diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am
@@ -24,6 +24,10 @@ else
pdfplugin=libextractor_pdf.la
endif
+if HAVE_MPEG2
+ extrampeg = libextractor_mpeg.la
+endif
+
# toggle for development
# SUBDIRS = .
SUBDIRS = . $(oodir) $(printdir) hash $(oledir) rpm $(xpdfdir) $(thumbdir) $(exiv2dir)
@@ -58,7 +62,7 @@ plugin_LTLIBRARIES = $(pdfplugin) \
libextractor_man.la \
libextractor_mime.la \
libextractor_mp3.la \
- libextractor_mpeg.la \
+ $(extrampeg) \
$(extraogg) \
libextractor_png.la \
libextractor_ps.la \
@@ -224,6 +228,7 @@ libextractor_mime_la_LDFLAGS = \
$(top_builddir)/src/main/libextractor.la \
$(PLUGINFLAGS) $(retaincommand)
+if HAVE_MPEG2
libextractor_mpeg_la_SOURCES = \
mpegextractor.c
libextractor_mpeg_la_LDFLAGS = \
@@ -231,6 +236,7 @@ libextractor_mpeg_la_LDFLAGS = \
$(PLUGINFLAGS) $(retaincommand)
libextractor_mpeg_la_LIBADD = \
-lmpeg2
+endif
libextractor_man_la_SOURCES = \
manextractor.c