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

configure: fix SAPI detection when sphelper.h is missing

Modified-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent e6ea1bfb
...@@ -3266,12 +3266,15 @@ AM_CONDITIONAL([HAVE_HARFBUZZ], [test "${have_harfbuzz}" = "yes"]) ...@@ -3266,12 +3266,15 @@ 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_LANG_PUSH([C++])
AC_CHECK_TYPES([ISpObjectToken],[ 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 <windows.h>
#include <sapi.h>]) #include <sapi.h>
#include <sphelper.h>])
AM_CONDITIONAL([HAVE_SAPI], [test "${have_sapi}" = "yes"]) AM_CONDITIONAL([HAVE_SAPI], [test "${have_sapi}" = "yes"])
AC_LANG_POP([C++])
dnl dnl
dnl QuartzText vout module (iOS/Mac OS) dnl QuartzText vout module (iOS/Mac OS)
......
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