summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac9
1 files changed, 7 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index e7e257ec..90c2752a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -73,8 +73,13 @@ AC_SDL_MAIN_WORKAROUND([
])
# Check for libsamplerate.
-
- AC_CHECK_LIB(samplerate, src_new)
+ AC_ARG_WITH([libsamplerate],
+ AS_HELP_STRING([--without-libsamplerate],
+ [Build without libsamplerate @<:@default=check@:>@]),
+ [],
+ [
+ AC_CHECK_LIB(samplerate, src_new)
+ ])
AC_CHECK_LIB(m, log)
AC_CHECK_HEADERS([linux/kd.h dev/isa/spkrio.h dev/speaker/speaker.h])