From 3dac4b760bc3642ad35c69c6cd5e99573489a8a3 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 7 Mar 2015 10:54:37 +0100 Subject: [PATCH] fix linux detection --- wscript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wscript b/wscript index c735a01e75..3de5481e98 100644 --- a/wscript +++ b/wscript @@ -973,11 +973,11 @@ def configure(conf): print("Coreaudio backend is only available for OSX") sys.exit(1) - if sys.platform == 'linux' and conf.env['BUILD_WAVESBACKEND']: + if re.search ("linux", sys.platform) != None and conf.env['BUILD_WAVESBACKEND']: print("Waves Backend is not for Linux") sys.exit(1) - if sys.platform != 'linux' and conf.env['BUILD_ALSABACKEND']: + if re.search ("linux", sys.platform) == None and conf.env['BUILD_ALSABACKEND']: print("ALSA Backend is only available on Linux") sys.exit(1)