From 1a857fc4e64e4ad9d7ceae0797e8d9f260ad7398 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Thu, 5 Jun 2014 11:00:43 +0200 Subject: flac: disable oggedit if libogg is not available --- plugins/flac/Makefile.am | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'plugins/flac') diff --git a/plugins/flac/Makefile.am b/plugins/flac/Makefile.am index 02e594d3..cc5ecf28 100644 --- a/plugins/flac/Makefile.am +++ b/plugins/flac/Makefile.am @@ -4,6 +4,11 @@ pkglib_LTLIBRARIES = flac.la flac_la_SOURCES = flac.c flac_la_LDFLAGS = -module -avoid-version -flac_la_LIBADD = $(LDADD) $(FLAC_LIBS) ../liboggedit/liboggedit.a -AM_CFLAGS = $(CFLAGS) $(FLAC_CFLAGS) -std=c99 +if HAVE_OGG +oggedit_def = -DUSE_OGGEDIT=1 +oggedit_lib = ../liboggedit/liboggedit.a +endif + +flac_la_LIBADD = $(LDADD) $(FLAC_LIBS) $(oggedit_lib) +AM_CFLAGS = $(CFLAGS) $(FLAC_CFLAGS) $(oggedit_def) -std=c99 endif -- cgit v1.2.3