meson: Add a sanity check regarding echo cancellers
authorArnaud Rebillout <arnaud.rebillout@collabora.com>
Fri, 19 Oct 2018 11:44:20 +0000 (18:44 +0700)
committerArun Raghavan <arun@arunraghavan.net>
Thu, 27 Dec 2018 11:55:56 +0000 (17:25 +0530)
Taken straight out of the configure.ac file.

Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
meson.build

index 08dec64..3cc31d0 100644 (file)
@@ -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)