From f5548a86543fa0cc0c0cc114240c5aef30950706 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 27 Mar 2009 19:51:59 +0100 Subject: mpcdec: support the new libmpcdec SV8 API --- configure.ac | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 94e01bc0d..886ee9431 100644 --- a/configure.ac +++ b/configure.ac @@ -752,7 +752,11 @@ if test x$enable_mpc = xyes; then CFLAGS="$CFLAGS $MPD_CFLAGS $MPCDEC_CFLAGS -I." LIBS="$LIBS $MPD_LIBS $MPCDEC_LIBS" CPPFLAGS=$CFLAGS - AC_CHECK_HEADER(mpcdec/mpcdec.h,,enable_mpc=no) + AC_CHECK_HEADER(mpc/mpcdec.h, + old_mpcdec=no, + [AC_CHECK_HEADER(mpcdec/mpcdec.h, + old_mpcdec=yes, + enable_mpc=no)]) if test x$enable_mpc = xyes; then AC_CHECK_LIB(mpcdec,main, [MPD_LIBS="$MPD_LIBS $MPCDEC_LIBS"; @@ -762,6 +766,10 @@ if test x$enable_mpc = xyes; then if test x$enable_mpc = xyes; then AC_DEFINE(HAVE_MPCDEC,1, [Define to use libmpcdec for MPC decoding]) + if test x$old_mpcdec = xyes; then + AC_DEFINE(MPC_IS_OLD_API, 1, + [Define if an old pre-SV8 libmpcdec is used]) + fi else AC_MSG_WARN([mpcdec lib needed for MPC support -- disabling MPC support]) fi -- cgit v1.2.3