[FFmpeg-devel] [PATCH] libcelt: configure: distinguish not found and too old.

Nicolas George nicolas.george at normalesup.org
Tue Jan 24 13:24:49 CET 2012


Fixes ticket #940.

Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---


I was not sure it was really worth it, but since someone actually raised the
problem on trac, here it is.

Regards,

-- 
  Nicolas George


 configure |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/configure b/configure
index a06e63c..2a3975e 100755
--- a/configure
+++ b/configure
@@ -3110,7 +3110,9 @@ enabled frei0r     && { check_header frei0r.h || die "ERROR: frei0r.h header not
 enabled gnutls     && require_pkg_config gnutls gnutls/gnutls.h gnutls_global_init
 enabled libaacplus && require  "libaacplus >= 2.0.0" aacplus.h aacplusEncOpen -laacplus
 enabled libass     && require_pkg_config libass ass/ass.h ass_library_init
-enabled libcelt    && require libcelt celt/celt.h celt_decoder_create_custom -lcelt0
+enabled libcelt    && require libcelt celt/celt.h celt_decode -lcelt0 &&
+                      { check_lib celt/celt.h celt_decoder_create_custom -lcelt0 ||
+                        die "ERROR: libcelt version must be >= 0.11.0."; }
 enabled libdc1394  && require_pkg_config libdc1394-2 dc1394/dc1394.h dc1394_new
 enabled libdirac   && require_pkg_config dirac                          \
     "libdirac_decoder/dirac_parser.h libdirac_encoder/dirac_encoder.h"  \
-- 
1.7.8.3



More information about the ffmpeg-devel mailing list