From 01bcb096c75d8f4264390b8afb6f307ca97e23f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 24 Apr 2008 22:19:48 +0000 Subject: Add support for the new libmpcdec API which magically gets us support for SV8 files. Also do some random cleanup. Fix... Original commit message from CVS: * configure.ac: * ext/musepack/gstmusepackdec.c: (gst_musepackdec_base_init), (gst_musepackdec_init), (gst_musepackdec_dispose), (gst_musepackdec_handle_seek_event), (gst_musepack_stream_init), (gst_musepackdec_loop), (plugin_init): * ext/musepack/gstmusepackdec.h: * ext/musepack/gstmusepackreader.c: * ext/musepack/gstmusepackreader.h: Add support for the new libmpcdec API which magically gets us support for SV8 files. Also do some random cleanup. Fixes bug #526905. --- configure.ac | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index da0dbc36..d3335844 100644 --- a/configure.ac +++ b/configure.ac @@ -795,13 +795,16 @@ main (int argc, dnl *** musepack *** translit(dnm, m, l) AM_CONDITIONAL(USE_MUSEPACK, true) AG_GST_CHECK_FEATURE(MUSEPACK, [musepackdec], musepack, [ - AC_LANG_CPLUSPLUS - AC_CHECK_HEADER([mpcdec/mpcdec.h], [ + AC_CHECK_HEADER([mpc/mpcdec.h], [ HAVE_MUSEPACK="yes" MUSEPACK_LIBS="-lmpcdec" AC_SUBST(MUSEPACK_LIBS) - ], [HAVE_MUSEPACK="no"]) - AC_LANG_C + ], [AC_CHECK_HEADER([mpcdec/mpcdec.h], [ + HAVE_MUSEPACK="yes" + MUSEPACK_LIBS="-lmpcdec" + AC_DEFINE(MPC_IS_OLD_API, 1, [Define if the old MusePack API is used]) + AC_SUBST(MUSEPACK_LIBS) + ], [HAVE_MUSEPACK="no"])]) ]) dnl *** musicbrainz *** -- cgit v1.2.1