Make the lack of libsamplerate a non-fatal error.

Requiring libsamplerate when not building clients is rather silly. When
building clients, disable sound if libsamplerate can't be found.
This commit is contained in:
Bill Currie 2011-07-29 16:32:35 +09:00
parent 77dcd07b37
commit a5272fac17

View file

@ -113,7 +113,9 @@ fi
AC_SUBST(SAMPLERATE_LIBS)
dnl AM_CONDITIONAL(HAVE_SAMPLERATE, test "$HAVE_SAMPLERATE" = "yes")
if test "x$HAVE_SAMPLERATE" = "xno"; then
AC_MSG_ERROR(libsamplerate is required but was not found)
AC_MSG_WARN([libsamplerate is required but was not found.]
[Sound will be disabled.])
enable_sound=no
fi
SOUND_TYPES="$SOUND_TYPES DISK"