summaryrefslogtreecommitdiffstats
path: root/plugins/decoder/musepack/configure.in.in
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/decoder/musepack/configure.in.in')
-rw-r--r--plugins/decoder/musepack/configure.in.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/decoder/musepack/configure.in.in b/plugins/decoder/musepack/configure.in.in
index 42d24c0..ca42976 100644
--- a/plugins/decoder/musepack/configure.in.in
+++ b/plugins/decoder/musepack/configure.in.in
@@ -25,6 +25,20 @@ if test "$ac_cv_use_mpc" = "yes"; then
],
[], [], [])
])
+
+ if test "$have_mpc" = "no"; then
+ KDE_CHECK_HEADERS(mpc/mpcdec.h, [
+ AC_CHECK_LIB(mpcdec, mpc_decoder_setup, [
+ have_mpc=yes
+ MPC_LIBS="-lmpcdec"
+ AC_DEFINE(
+ MPC_HEADER_FILE,
+ <mpc/mpcdec.h>,
+ [The header to include for MPC decoding.])
+ ],
+ [], [], [])
+ ])
+ fi
if test "$have_mpc" = "no"; then
KDE_CHECK_HEADERS(musepack/musepack.h, [