[vlc-commits] Add configure check for sapi.h

Petri Hintukainen git at videolan.org
Fri Oct 16 19:40:01 CEST 2015


vlc | branch: master | Petri Hintukainen <phintuka at gmail.com> | Fri Oct 16 19:01:00 2015 +0300| [d48032f7bc11d4e2f52fab45e3365a88eb919d8c] | committer: Jean-Baptiste Kempf

Add configure check for sapi.h

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d48032f7bc11d4e2f52fab45e3365a88eb919d8c
---

 configure.ac                      |    8 ++++++++
 modules/text_renderer/Makefile.am |    2 ++
 2 files changed, 10 insertions(+)

diff --git a/configure.ac b/configure.ac
index b9bd76a..aaaae68 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3250,6 +3250,14 @@ AM_CONDITIONAL([HAVE_FONTCONFIG], [test "${have_fontconfig}" = "yes"])
 AM_CONDITIONAL([HAVE_FRIBIDI], [test "${have_fribidi}" = "yes"])
 AM_CONDITIONAL([HAVE_HARFBUZZ], [test "${have_harfbuzz}" = "yes"])
 
+dnl
+dnl SAPI (text to Speech renderer for Windows)
+dnl
+AC_CHECK_HEADERS(sapi.h, [
+              have_sapi="yes"
+            ],[AC_MSG_WARN([sapi.h not found. Text to Speech renderer for Windows disabled])])
+
+AM_CONDITIONAL([HAVE_SAPI], [test "${have_sapi}" = "yes"])
 
 dnl
 dnl  QuartzText vout module (iOS/Mac OS)
diff --git a/modules/text_renderer/Makefile.am b/modules/text_renderer/Makefile.am
index 7634a4f..889ccd8 100644
--- a/modules/text_renderer/Makefile.am
+++ b/modules/text_renderer/Makefile.am
@@ -42,11 +42,13 @@ libnsspeechsynthesizer_plugin_la_LDFLAGS = -Wl,-framework,Cocoa
 text_LTLIBRARIES += libnsspeechsynthesizer_plugin.la
 endif
 
+if HAVE_SAPI
 libsapi_plugin_la_SOURCES = text_renderer/sapi.cpp
 libsapi_plugin_la_LIBADD = -lole32
 if HAVE_WIN32
 text_LTLIBRARIES += libsapi_plugin.la
 endif
+endif
 
 libsvg_plugin_la_SOURCES = text_renderer/svg.c
 libsvg_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(SVG_CFLAGS)



More information about the vlc-commits mailing list