SConstruct (9227:c208c904ab13) SConstruct (9239:c9f8a432e5ea)
1# -*- mode:python -*-
2
3# Copyright (c) 2011 Advanced Micro Devices, Inc.
4# Copyright (c) 2009 The Hewlett-Packard Development Company
5# Copyright (c) 2004-2005 The Regents of The University of Michigan
6# All rights reserved.
7#
8# Redistribution and use in source and binary forms, with or without

--- 178 unchanged lines hidden (view full) ---

187 if key in use_vars or key.startswith("M5"):
188 use_env[key] = val
189
190main = Environment(ENV=use_env)
191main.Decider('MD5-timestamp')
192main.root = Dir(".") # The current directory (where this file lives).
193main.srcdir = Dir("src") # The source directory
194
1# -*- mode:python -*-
2
3# Copyright (c) 2011 Advanced Micro Devices, Inc.
4# Copyright (c) 2009 The Hewlett-Packard Development Company
5# Copyright (c) 2004-2005 The Regents of The University of Michigan
6# All rights reserved.
7#
8# Redistribution and use in source and binary forms, with or without

--- 178 unchanged lines hidden (view full) ---

187 if key in use_vars or key.startswith("M5"):
188 use_env[key] = val
189
190main = Environment(ENV=use_env)
191main.Decider('MD5-timestamp')
192main.root = Dir(".") # The current directory (where this file lives).
193main.srcdir = Dir("src") # The source directory
194
195main_dict_keys = main.Dictionary().keys()
196
197# Check that we have a C/C++ compiler
198if not ('CC' in main_dict_keys and 'CXX' in main_dict_keys):
199 print "No C++ compiler installed (package g++ on Ubuntu and RedHat)"
200 Exit(1)
201
202# Check that swig is present
203if not 'SWIG' in main_dict_keys:
204 print "swig is not installed (package swig on Ubuntu and RedHat)"
205 Exit(1)
206
195# add useful python code PYTHONPATH so it can be used by subprocesses
196# as well
197main.AppendENVPath('PYTHONPATH', extra_python_paths)
198
199########################################################################
200#
201# Mercurial Stuff.
202#

--- 555 unchanged lines hidden (view full) ---

758if main['M5_BUILD_CACHE']:
759 print 'Using build cache located at', main['M5_BUILD_CACHE']
760 CacheDir(main['M5_BUILD_CACHE'])
761
762
763# verify that this stuff works
764if not conf.CheckHeader('Python.h', '<>'):
765 print "Error: can't find Python.h header in", py_includes
207# add useful python code PYTHONPATH so it can be used by subprocesses
208# as well
209main.AppendENVPath('PYTHONPATH', extra_python_paths)
210
211########################################################################
212#
213# Mercurial Stuff.
214#

--- 555 unchanged lines hidden (view full) ---

770if main['M5_BUILD_CACHE']:
771 print 'Using build cache located at', main['M5_BUILD_CACHE']
772 CacheDir(main['M5_BUILD_CACHE'])
773
774
775# verify that this stuff works
776if not conf.CheckHeader('Python.h', '<>'):
777 print "Error: can't find Python.h header in", py_includes
778 print "Install Python headers (package python-dev on Ubuntu and RedHat)"
766 Exit(1)
767
768for lib in py_libs:
769 if not conf.CheckLib(lib):
770 print "Error: can't find library %s required by python" % lib
771 Exit(1)
772
773# On Solaris you need to use libsocket for socket ops

--- 329 unchanged lines hidden ---
779 Exit(1)
780
781for lib in py_libs:
782 if not conf.CheckLib(lib):
783 print "Error: can't find library %s required by python" % lib
784 Exit(1)
785
786# On Solaris you need to use libsocket for socket ops

--- 329 unchanged lines hidden ---