[vlc-devel] [PATCH] Add configure check for sapi.h
Petri Hintukainen
phintuka at gmail.com
Fri Oct 16 18:01:00 CEST 2015
---
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)
--
2.1.4
More information about the vlc-devel
mailing list