Makefile.am: use LAME_CFLAGS and LAME_LIBS
Don't append LAME_CFLAGS/LAME_LIBS to MPD_CFLAGS/MPD_LIBS in configure.ac. Export them via AC_SUBST() instead.
This commit is contained in:
parent
0a62bdaded
commit
b9a5e78780
|
@ -390,9 +390,11 @@ endif
|
||||||
# encoder plugins
|
# encoder plugins
|
||||||
|
|
||||||
ENCODER_CFLAGS = \
|
ENCODER_CFLAGS = \
|
||||||
|
$(LAME_CFLAGS) \
|
||||||
$(VORBISENC_CFLAGS)
|
$(VORBISENC_CFLAGS)
|
||||||
|
|
||||||
ENCODER_LIBS = \
|
ENCODER_LIBS = \
|
||||||
|
$(LAME_LIBS) \
|
||||||
$(VORBISENC_LIBS)
|
$(VORBISENC_LIBS)
|
||||||
|
|
||||||
ENCODER_SRC =
|
ENCODER_SRC =
|
||||||
|
|
|
@ -957,12 +957,14 @@ MPD_AUTO_PKG(oggvorbis_encoder, VORBISENC, [vorbisenc],
|
||||||
[Ogg Vorbis encoder], [libvorbisenc not found])
|
[Ogg Vorbis encoder], [libvorbisenc not found])
|
||||||
|
|
||||||
if test x$enable_lame = xyes; then
|
if test x$enable_lame = xyes; then
|
||||||
AM_PATH_LAME([MPD_LIBS="$MPD_LIBS $LAME_LIBS"
|
AM_PATH_LAME(,
|
||||||
MPD_CFLAGS="$MPD_CFLAGS $LAME_CFLAGS"],
|
|
||||||
[enable_lame=no;
|
[enable_lame=no;
|
||||||
AC_MSG_WARN(You need lame -- disabling lame support)])
|
AC_MSG_WARN(You need lame -- disabling lame support)])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AC_SUBST(LAME_CFLAGS)
|
||||||
|
AC_SUBST(LAME_LIBS)
|
||||||
|
|
||||||
if test x$enable_oggvorbis_encoder != xno || test x$enable_lame != xno; then
|
if test x$enable_oggvorbis_encoder != xno || test x$enable_lame != xno; then
|
||||||
# at least one encoder plugin is enabled
|
# at least one encoder plugin is enabled
|
||||||
enable_encoder=yes
|
enable_encoder=yes
|
||||||
|
|
Loading…
Reference in New Issue