aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Crozat2019-09-02 22:24:42 +0100
committerThierry Crozat2019-09-02 22:24:42 +0100
commitacebff9884c8f525bdfe92af48b8ce833a7a1cac (patch)
tree91ddfa19128f8c9c7044731f6e14e069e5190578
parent717d7adc6e135ce919a8987b5c5db710602acc88 (diff)
downloadscummvm-rg350-acebff9884c8f525bdfe92af48b8ce833a7a1cac.tar.gz
scummvm-rg350-acebff9884c8f525bdfe92af48b8ce833a7a1cac.tar.bz2
scummvm-rg350-acebff9884c8f525bdfe92af48b8ce833a7a1cac.zip
CONFIGURE: Add check for NSSpeechSynthesizerDelegate protocole availability on macOS
-rwxr-xr-xconfigure10
1 files changed, 9 insertions, 1 deletions
diff --git a/configure b/configure
index fe56b92fb6..935f53f986 100755
--- a/configure
+++ b/configure
@@ -4223,7 +4223,15 @@ EOF
cc_check -lspeechd && _tts=yes
;;
darwin*)
- _tts=yes
+ # Check the API is available. The most recent API we need is for the NSSpeechSynthesizerDelegate protocole
+ cat > $TMPC << EOF
+#include <AppKit/NSSpeechSynthesizer.h>
+@interface SpeechDelegate : NSObject<NSSpeechSynthesizerDelegate> {
+}
+@end
+int main(void) { return 0; }
+EOF
+ cc_check -ObjC++ -lobjc && _tts=yes
;;
esac
fi