Browse Source

wscript: Fix FTBFS on kFreeBSD and Hurd

Tested by Debian on hurd-i386, kfreebsd-amd64 and kfreebsd-i386.
tags/1.9.9.5
Adrian Knoth 13 years ago
parent
commit
05271a763e
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      wscript

+ 5
- 0
wscript View File

@@ -79,10 +79,15 @@ def options(opt):
opt.sub_options('dbus')

def configure(conf):
conf.load('compiler_cxx')
conf.load('compiler_cc')
platform = sys.platform
conf.env['IS_MACOSX'] = platform == 'darwin'
conf.env['IS_LINUX'] = platform == 'linux' or platform == 'linux2' or platform == 'posix'
conf.env['IS_SUN'] = platform == 'sunos'
# GNU/kFreeBSD and GNU/Hurd are treated as Linux
if platform.startswith('gnu0') or platform.startswith('gnukfreebsd'):
conf.env['IS_LINUX'] = True

if conf.env['IS_LINUX']:
Logs.pprint('CYAN', "Linux detected")


Loading…
Cancel
Save