Makefile.am: don't compile disabled sources

If a feature is disabled, don't compile the source file at all,
disable it completely in Makefile.am instead.
This commit is contained in:
Max Kellermann
2008-10-17 21:13:23 +02:00
parent 4984639b72
commit 25b5d90e44
5 changed files with 25 additions and 28 deletions

View File

@@ -412,6 +412,8 @@ if test x$enable_id3 = xyes; then
enable_id3=no)
fi
AM_CONDITIONAL(HAVE_ID3TAG, test x$enable_id3 = xyes)
if test x$enable_mp3 = xyes; then
PKG_CHECK_MODULES([MAD], [mad],
AC_DEFINE(HAVE_MAD, 1, [Define to use libmad]),
@@ -694,6 +696,8 @@ if test x$with_zeroconf != xno; then
fi
fi
AM_CONDITIONAL(HAVE_ZEROCONF, test x$with_zeroconf = xyes)
dnl
dnl build options