From 1795206289c0d3c3dd7ad24c8f19ee3700b2ac83 Mon Sep 17 00:00:00 2001 From: Jaromir Wysoglad Date: Tue, 23 Jul 2019 19:36:26 -0700 Subject: TTS: Add checks to configure. Check for presence of required libraries Disable automatic build of TTS on MinGW32 --- configure | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'configure') diff --git a/configure b/configure index 0a13ee0684..f1907427a8 100755 --- a/configure +++ b/configure @@ -4198,6 +4198,35 @@ EOF fi define_in_config_if_yes "$_ogg" 'USE_OGG' echo "$_ogg" +# +# Check for TTS +# +echocheck "TTS libraries" +if test "$_tts" = auto ; then + _tts=no + case $_host_os in + mingw*) + cat > $TMPC << EOF +#include +#include +#include +int main(void) { return 0; } +EOF + cc_check -lsapi -lole32 && _tts=yes + if test "$_host_os" = "mingw32" ; then + _tts=no + fi + ;; + linux*) + cat > $TMPC << EOF +#include +int main(void) { return 0; } +EOF + cc_check -lspeechd && _tts=yes + ;; + esac +fi +echo "$_tts" # # Check for Vorbis -- cgit v1.2.3