summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
-rw-r--r--plugins/mpgmad/Makefile.am2
2 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 5db0f91d..71e76020 100644
--- a/configure.ac
+++ b/configure.ac
@@ -305,7 +305,9 @@ dnl mpgmad plugin
AS_IF([test "${enable_mpgmad}" != "no"], [
AS_IF([test "${enable_staticlink}" != "no"], [
HAVE_MPGMAD=yes
+ MAD_CFLAGS="-I../../$LIB/include"
MAD_LIBS="../../$LIB/lib/libmad.a"
+ AC_SUBST(MAD_CFLAGS)
AC_SUBST(MAD_LIBS)
], [
AC_CHECK_LIB([mad], [main], [HAVE_LIBMAD=yes])
diff --git a/plugins/mpgmad/Makefile.am b/plugins/mpgmad/Makefile.am
index 814b81e4..a4ae3aca 100644
--- a/plugins/mpgmad/Makefile.am
+++ b/plugins/mpgmad/Makefile.am
@@ -5,5 +5,5 @@ mpgmad_la_SOURCES = mpgmad.c
mpgmad_la_LDFLAGS = -module -avoid-version
mpgmad_la_LIBADD = $(LDADD) $(MAD_LIBS)
-AM_CFLAGS = $(CFLAGS) -std=c99 -fPIC
+AM_CFLAGS = $(CFLAGS) $(MAD_CFLAGS) -std=c99 -fPIC
endif