aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-09-01 09:22:18 +0200
committerMax Kellermann <max@duempel.org>2011-09-01 11:06:08 +0200
commit13cdc9a9f8944d124da3f6a25dfc93cd9f11997b (patch)
tree325c2814d3c44542982619ed76c2db489a3968fa /configure.ac
parenta1b880642244b9f732d327e1d93162652838bb06 (diff)
downloadmpd-13cdc9a9f8944d124da3f6a25dfc93cd9f11997b.tar.gz
mpd-13cdc9a9f8944d124da3f6a25dfc93cd9f11997b.tar.xz
mpd-13cdc9a9f8944d124da3f6a25dfc93cd9f11997b.zip
configure.ac: auto-detect libmad without pkg-config
The pkg-config file was added by the Debian package maintainers, and unfortunately, the rest of the world doesn't have it.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 74aef61de..4d855a70b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -799,7 +799,8 @@ if test x$enable_gme = xyes; then
fi
dnl ---------------------------------- libmad ---------------------------------
-MPD_AUTO_PKG(mad, MAD, [mad],
+MPD_AUTO_PKG_LIB(mad, MAD, [mad],
+ mad, mad_stream_init, [-lmad], [],
[libmad MP3 decoder plugin], [libmad not found])
if test x$enable_mad = xyes; then
AC_DEFINE(HAVE_MAD, 1, [Define to use libmad])