m4/mpd_with_flags: add macro MPD_WITH_FLAGS
This commit is contained in:
12
configure.ac
12
configure.ac
@@ -1019,14 +1019,10 @@ if test x$enable_tremor = xyes; then
|
||||
elif test "x$tremor_prefix" != "x" ; then
|
||||
TREMOR_CFLAGS="-I$tremor_prefix/include"
|
||||
fi
|
||||
ac_save_CFLAGS="$CFLAGS"
|
||||
ac_save_LIBS="$LIBS"
|
||||
CFLAGS="$CFLAGS $TREMOR_CFLAGS"
|
||||
LIBS="$LIBS $TREMOR_LIBS"
|
||||
AC_CHECK_LIB(vorbisidec,ov_read,,enable_tremor=no;
|
||||
AC_MSG_WARN([vorbisidec lib needed for ogg support with tremor -- disabling ogg support]))
|
||||
CFLAGS="$ac_save_CFLAGS"
|
||||
LIBS="$ac_save_LIBS"
|
||||
|
||||
MPD_WITH_LIBRARY([TREMOR],
|
||||
[AC_CHECK_LIB(vorbisidec,ov_read,,enable_tremor=no;
|
||||
AC_MSG_WARN([vorbisidec lib needed for ogg support with tremor -- disabling ogg support]))])
|
||||
fi
|
||||
|
||||
if test x$enable_tremor = xyes; then
|
||||
|
Reference in New Issue
Block a user