[vlc-commits] configure: fix SAPI detection when sphelper.h is missing

Steve Lhomme git at videolan.org
Tue Feb 2 18:24:41 CET 2016


vlc | branch: master | Steve Lhomme <robux4 at gmail.com> | Mon Feb  1 17:07:56 2016 +0100| [a41e0571a767910d576f6b3baea1bec385f2a3a8] | committer: Jean-Baptiste Kempf

configure: fix SAPI detection when sphelper.h is missing

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

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

 configure.ac |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index f783e90..7354a4a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3266,12 +3266,15 @@ AM_CONDITIONAL([HAVE_HARFBUZZ], [test "${have_harfbuzz}" = "yes"])
 dnl
 dnl SAPI (text to Speech renderer for Windows)
 dnl
+AC_LANG_PUSH([C++])
 AC_CHECK_TYPES([ISpObjectToken],[
               have_sapi="yes"
             ],[AC_MSG_WARN([sapi.h not found. Text to Speech renderer for Windows disabled])],
               [#include <windows.h>
-               #include <sapi.h>])
+               #include <sapi.h>
+               #include <sphelper.h>])
 AM_CONDITIONAL([HAVE_SAPI], [test "${have_sapi}" = "yes"])
+AC_LANG_POP([C++])
 
 dnl
 dnl  QuartzText vout module (iOS/Mac OS)



More information about the vlc-commits mailing list