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
--- 911 unchanged lines hidden (view full) ---
920
921# Check for librt.
922have_posix_clock = \
923 conf.CheckLibWithHeader(None, 'time.h', 'C',
924 'clock_nanosleep(0,0,NULL,NULL);') or \
925 conf.CheckLibWithHeader('rt', 'time.h', 'C',
926 'clock_nanosleep(0,0,NULL,NULL);')
927
928if conf.CheckLib('tcmalloc_minimal'):
929 main.Append(CCFLAGS=main['TCMALLOC_CCFLAGS'])
930else:
931 print termcap.Yellow + termcap.Bold + \
932 "You can get a 12% performance improvement by installing tcmalloc "\
933 "(libgoogle-perftools-dev package on Ubuntu or RedHat)." + \
934 termcap.Normal
935
936if not have_posix_clock:
937 print "Can't find library for POSIX clocks."
--- 298 unchanged lines hidden ---
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
--- 911 unchanged lines hidden (view full) ---
920
921# Check for librt.
922have_posix_clock = \
923 conf.CheckLibWithHeader(None, 'time.h', 'C',
924 'clock_nanosleep(0,0,NULL,NULL);') or \
925 conf.CheckLibWithHeader('rt', 'time.h', 'C',
926 'clock_nanosleep(0,0,NULL,NULL);')
927
928if conf.CheckLib('tcmalloc_minimal'):
929 main.Append(CCFLAGS=main['TCMALLOC_CCFLAGS'])
930else:
931 print termcap.Yellow + termcap.Bold + \
932 "You can get a 12% performance improvement by installing tcmalloc "\
933 "(libgoogle-perftools-dev package on Ubuntu or RedHat)." + \
934 termcap.Normal
935
936if not have_posix_clock:
937 print "Can't find library for POSIX clocks."
--- 298 unchanged lines hidden ---