diff options
author | Witold Pilat | 2014-01-19 07:23:33 +0000 |
---|---|---|
committer | Simon Howard | 2014-01-19 07:24:09 +0000 |
commit | e3047e45ebb57a407385c59d78029e98ffb4b2b8 (patch) | |
tree | 3222dd480610b31567e1b447ec1a5efd130b3e34 | |
parent | 3ad2868c5747b3f11c798f6ae6803ca05dff6aa8 (diff) | |
download | chocolate-doom-e3047e45ebb57a407385c59d78029e98ffb4b2b8.tar.gz chocolate-doom-e3047e45ebb57a407385c59d78029e98ffb4b2b8.tar.bz2 chocolate-doom-e3047e45ebb57a407385c59d78029e98ffb4b2b8.zip |
configure: Add option to disable libsamplerate.
Some distros don't like automagic dependencies. Fixes #315.
-rw-r--r-- | configure.ac | 9 |
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]) |