From 5a6e45f5b4d53c9214281fe6d3e18352d50204c3 Mon Sep 17 00:00:00 2001 From: Arnaud Rebillout Date: Fri, 19 Oct 2018 18:44:20 +0700 Subject: [PATCH] meson: Add a sanity check regarding echo cancellers Taken straight out of the configure.ac file. Signed-off-by: Arnaud Rebillout --- meson.build | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meson.build b/meson.build index 08dec64ee..3cc31d0dd 100644 --- a/meson.build +++ b/meson.build @@ -319,6 +319,12 @@ if webrtc_dep.found() cdata.set('HAVE_WEBRTC', 1) endif +# Some sanity checks + +if not speex_dep.found() and not webrtc_dep.found() and not get_option('adrian-aec') + error('At least one echo canceller implementation must be available!') +endif + # Now generate config.h from everything above configure_file(output : 'config.h', configuration : cdata)