ref: 9906b3f3f22649481dc60d3bcefedea5440225b3
parent: 447d6cd942936312198a9ecb6335fa23c8da3a52
author: Paul Brossier <piem@piem.org>
date: Fri Jan 6 13:50:38 EST 2012
configure.ac: add --enable-sndfile
--- a/configure.ac
+++ b/configure.ac
@@ -153,9 +153,15 @@
[Defined when c99 style varargs macros are supported])
fi
-PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.4, HAVE_SNDFILE=1)
-if test "${HAVE_SNDFILE}" = "1"; then
- AC_DEFINE(HAVE_SNDFILE,1,[Define to enable libsndfile support])
+AC_ARG_ENABLE(sndfile,
+ AC_HELP_STRING([--enable-sndfile],[compile with sndfile [[default=auto]]]),
+ [with_sndfile=$enableval],
+ with_sndfile="yes")
+if test "$with_sndfile" = "yes"; then
+ PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.4, HAVE_SNDFILE=1, HAVE_SNDFILE=0)
+ if test "${HAVE_SNDFILE}" = "1"; then
+ AC_DEFINE(HAVE_SNDFILE,1,[Define to enable libsndfile support])
+ fi
fi
dnl Enable samplerate support (auto)