ref: 9cff19e00e55a4998f960deeca36271fc0e0b2e2
parent: bfaa12082c6a39490ca90053075b0499497d802f
author: cbagwell <cbagwell>
date: Thu Jan 4 07:34:24 EST 2007
Don't error out when no libsamplerate. Add back HAVE_SAMPLERATE define.
--- a/configure.ac
+++ b/configure.ac
@@ -134,7 +134,10 @@
AC_HELP_STRING([--with-samplerate],
[Use libsamplerate (aka Rabbit Code) if present (default is YES)]))
if test "$with_samplerate" = yes; then
- SOX_PATH_SAMPLERATE(, [AC_MSG_ERROR([Could not find a usable libsamplerate])])
+ SOX_PATH_SAMPLERATE([AC_DEFINE(HAVE_SAMPLERATE, 1,
+ [Set to 1 if you have libsamplerate.])],
+ [with_samplerate=no
+ AC_MSG_NOTICE([Could not find a usable libsamplerate])])
fi
AC_SUBST(SAMPLERATE_CFLAGS)
AC_SUBST(SAMPLERATE_LIBS)