SConstruct (7827:49b7d40ee88a) | SConstruct (7840:ed75cee5c793) |
---|---|
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 --- 689 unchanged lines hidden (view full) --- 698# Check for zlib. If the check passes, libz will be automatically 699# added to the LIBS environment variable. 700if not conf.CheckLibWithHeader('z', 'zlib.h', 'C++','zlibVersion();'): 701 print 'Error: did not find needed zlib compression library '\ 702 'and/or zlib.h header file.' 703 print ' Please install zlib and try again.' 704 Exit(1) 705 | 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 --- 689 unchanged lines hidden (view full) --- 698# Check for zlib. If the check passes, libz will be automatically 699# added to the LIBS environment variable. 700if not conf.CheckLibWithHeader('z', 'zlib.h', 'C++','zlibVersion();'): 701 print 'Error: did not find needed zlib compression library '\ 702 'and/or zlib.h header file.' 703 print ' Please install zlib and try again.' 704 Exit(1) 705 |
706# Check for librt. 707have_posix_clock = conf.CheckLib(None, 'clock_nanosleep', 'time.h') or \ 708 conf.CheckLib('rt', 'clock_nanosleep', 'time.h') 709 710if not have_posix_clock: 711 print "Can't find library for POSIX clocks." 712 |
|
706# Check for <fenv.h> (C99 FP environment control) 707have_fenv = conf.CheckHeader('fenv.h', '<>') 708if not have_fenv: 709 print "Warning: Header file <fenv.h> not found." 710 print " This host has no IEEE FP rounding mode control." 711 712###################################################################### 713# --- 100 unchanged lines hidden (view full) --- 814 False), 815 BoolVariable('SS_COMPATIBLE_FP', 816 'Make floating-point results compatible with SimpleScalar', 817 False), 818 BoolVariable('USE_SSE2', 819 'Compile for SSE2 (-msse2) to get IEEE FP on x86 hosts', 820 False), 821 BoolVariable('USE_MYSQL', 'Use MySQL for stats output', have_mysql), | 713# Check for <fenv.h> (C99 FP environment control) 714have_fenv = conf.CheckHeader('fenv.h', '<>') 715if not have_fenv: 716 print "Warning: Header file <fenv.h> not found." 717 print " This host has no IEEE FP rounding mode control." 718 719###################################################################### 720# --- 100 unchanged lines hidden (view full) --- 821 False), 822 BoolVariable('SS_COMPATIBLE_FP', 823 'Make floating-point results compatible with SimpleScalar', 824 False), 825 BoolVariable('USE_SSE2', 826 'Compile for SSE2 (-msse2) to get IEEE FP on x86 hosts', 827 False), 828 BoolVariable('USE_MYSQL', 'Use MySQL for stats output', have_mysql), |
829 BoolVariable('USE_POSIX_CLOCK', 'Use POSIX Clocks', have_posix_clock), |
|
822 BoolVariable('USE_FENV', 'Use <fenv.h> IEEE mode control', have_fenv), 823 BoolVariable('USE_CHECKER', 'Use checker for detailed CPU models', False), 824 BoolVariable('CP_ANNOTATE', 'Enable critical path annotation capability', False), 825 BoolVariable('RUBY', 'Build with Ruby', False), 826 ) 827 828# These variables get exported to #defines in config/*.hh (see src/SConscript). 829export_vars += ['FULL_SYSTEM', 'USE_FENV', 'USE_MYSQL', 830 'NO_FAST_ALLOC', 'FAST_ALLOC_DEBUG', 'FAST_ALLOC_STATS', | 830 BoolVariable('USE_FENV', 'Use <fenv.h> IEEE mode control', have_fenv), 831 BoolVariable('USE_CHECKER', 'Use checker for detailed CPU models', False), 832 BoolVariable('CP_ANNOTATE', 'Enable critical path annotation capability', False), 833 BoolVariable('RUBY', 'Build with Ruby', False), 834 ) 835 836# These variables get exported to #defines in config/*.hh (see src/SConscript). 837export_vars += ['FULL_SYSTEM', 'USE_FENV', 'USE_MYSQL', 838 'NO_FAST_ALLOC', 'FAST_ALLOC_DEBUG', 'FAST_ALLOC_STATS', |
831 'SS_COMPATIBLE_FP', 'USE_CHECKER', 'TARGET_ISA', 'CP_ANNOTATE'] | 839 'SS_COMPATIBLE_FP', 'USE_CHECKER', 'TARGET_ISA', 'CP_ANNOTATE', 840 'USE_POSIX_CLOCK' ] |
832 833################################################### 834# 835# Define a SCons builder for configuration flag headers. 836# 837################################################### 838 839# This function generates a config header file that #defines the --- 173 unchanged lines hidden --- | 841 842################################################### 843# 844# Define a SCons builder for configuration flag headers. 845# 846################################################### 847 848# This function generates a config header file that #defines the --- 173 unchanged lines hidden --- |