diff options
author | Thierry Crozat | 2019-09-02 22:24:42 +0100 |
---|---|---|
committer | Thierry Crozat | 2019-09-02 22:24:42 +0100 |
commit | acebff9884c8f525bdfe92af48b8ce833a7a1cac (patch) | |
tree | 91ddfa19128f8c9c7044731f6e14e069e5190578 | |
parent | 717d7adc6e135ce919a8987b5c5db710602acc88 (diff) | |
download | scummvm-rg350-acebff9884c8f525bdfe92af48b8ce833a7a1cac.tar.gz scummvm-rg350-acebff9884c8f525bdfe92af48b8ce833a7a1cac.tar.bz2 scummvm-rg350-acebff9884c8f525bdfe92af48b8ce833a7a1cac.zip |
CONFIGURE: Add check for NSSpeechSynthesizerDelegate protocole availability on macOS
-rwxr-xr-x | configure | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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 |