vlc | branch: master | Steve Lhomme <[email protected]> | Tue Jan 26 
16:21:11 2016 +0100| [159a7078fe5a6b18a8ff3476312fb82a2ea259ba] | committer: 
Jean-Baptiste Kempf

configure: disable SAPI if sapi.h cannot be used

for Winstore apps the code is hidden

Signed-off-by: Jean-Baptiste Kempf <[email protected]>

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

 configure.ac |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index 1e56be5..29c9ba1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3266,10 +3266,11 @@ AM_CONDITIONAL([HAVE_HARFBUZZ], [test 
"${have_harfbuzz}" = "yes"])
 dnl
 dnl SAPI (text to Speech renderer for Windows)
 dnl
-AC_CHECK_HEADERS(sapi.h, [
+AC_CHECK_TYPES([ISpObjectToken],[
               have_sapi="yes"
-            ],[AC_MSG_WARN([sapi.h not found. Text to Speech renderer for 
Windows disabled])])
-
+            ],[AC_MSG_WARN([sapi.h not found. Text to Speech renderer for 
Windows disabled])],
+              [#include <windows.h>
+               #include <sapi.h>])
 AM_CONDITIONAL([HAVE_SAPI], [test "${have_sapi}" = "yes"])
 
 dnl

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to