1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s3/wscript: fix flex detection

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Ralph Boehme 2018-09-05 13:47:17 +02:00 committed by Andrew Bartlett
parent e7612710d1
commit 193fdbf181

View File

@ -1623,7 +1623,7 @@ main() {
conf.fatal("Spotlight support requested but bison missing") conf.fatal("Spotlight support requested but bison missing")
conf.CHECK_COMMAND('%s --version | head -n1' % conf.env['BISON'], msg='Using bison version', define=None, on_target=False) conf.CHECK_COMMAND('%s --version | head -n1' % conf.env['BISON'], msg='Using bison version', define=None, on_target=False)
Logs.info("Requested Spotlight support, checking for flex") Logs.info("Requested Spotlight support, checking for flex")
flex.detect(conf) flex.configure(conf)
if not conf.env['FLEX']: if not conf.env['FLEX']:
conf.fatal("Spotlight support requested but flex missing") conf.fatal("Spotlight support requested but flex missing")
conf.CHECK_COMMAND('%s --version' % conf.env['FLEX'], msg='Using flex version', define=None, on_target=False) conf.CHECK_COMMAND('%s --version' % conf.env['FLEX'], msg='Using flex version', define=None, on_target=False)