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 --- 690 unchanged lines hidden (view full) --- 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 = \ 708 conf.CheckLibWithHeader(None, 'time.h', 'C', 709 'clock_nanosleep(0,0,NULL,NULL);') or \ 710 conf.CheckLibWithHeader('rt', 'time.h', 'C', 711 'clock_nanosleep(0,0,NULL,NULL);') |
712 713if not have_posix_clock: 714 print "Can't find library for POSIX clocks." 715 716# Check for <fenv.h> (C99 FP environment control) 717have_fenv = conf.CheckHeader('fenv.h', '<>') 718if not have_fenv: 719 print "Warning: Header file <fenv.h> not found." --- 305 unchanged lines hidden --- |