also fix enabling id3 loader based on id3tag presence

This commit is contained in:
zmike 2014-05-07 15:41:46 -04:00
parent 8a7848cdd2
commit 86916af5de
1 changed files with 8 additions and 3 deletions

View File

@ -120,10 +120,15 @@ AC_ARG_ENABLE([module-id3-loader],
[want_id3_loader=$enableval], [])
if test "x$want_id3_loader" != "xno" ; then
PKG_CHECK_MODULES([ID3], [id3tag], [have_id3=yes], [have_id3=no])
if test "x$have_id3" != "xyes" && test "x$want_id3_loader" != "xmaybe" ; then
AC_MSG_ERROR([libid3tag not found])
if test "x$have_id3" != "xyes" ; then
if test "x$want_id3_loader" != "xmaybe" ; then
AC_MSG_ERROR([libid3tag not found])
else
want_id3_loader=no
fi
else
want_id3_loader=yes
fi
want_id3_loader=yes
fi
AM_CONDITIONAL([MOD_ID3_LOADER], [test "x$want_id3_loader" = "xyes"])