Commit 159a7078 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

configure: disable SAPI if sapi.h cannot be used

for Winstore apps the code is hidden
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 1bac4a2d
...@@ -3266,10 +3266,11 @@ AM_CONDITIONAL([HAVE_HARFBUZZ], [test "${have_harfbuzz}" = "yes"]) ...@@ -3266,10 +3266,11 @@ AM_CONDITIONAL([HAVE_HARFBUZZ], [test "${have_harfbuzz}" = "yes"])
dnl dnl
dnl SAPI (text to Speech renderer for Windows) dnl SAPI (text to Speech renderer for Windows)
dnl dnl
AC_CHECK_HEADERS(sapi.h, [ AC_CHECK_TYPES([ISpObjectToken],[
have_sapi="yes" 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"]) AM_CONDITIONAL([HAVE_SAPI], [test "${have_sapi}" = "yes"])
dnl dnl
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment