SConstruct (3356:39c17056dd41) SConstruct (3483:edede8473667)
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

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

265 py_lib_path = '/bin'
266if py_lib_path:
267 env.Append(LIBPATH = py_lib_path)
268 print 'Adding', py_lib_path, 'to LIBPATH for', py_version_name
269if not conf.CheckLib(py_version_name):
270 print "Error: can't find Python library", py_version_name
271 Exit(1)
272
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

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

265 py_lib_path = '/bin'
266if py_lib_path:
267 env.Append(LIBPATH = py_lib_path)
268 print 'Adding', py_lib_path, 'to LIBPATH for', py_version_name
269if not conf.CheckLib(py_version_name):
270 print "Error: can't find Python library", py_version_name
271 Exit(1)
272
273# On Solaris you need to use libsocket for socket ops
274if not conf.CheckLibWithHeader(None, 'sys/socket.h', 'C', 'accept(0,NULL,NULL);'):
275 if not conf.CheckLibWithHeader('socket', 'sys/socket.h', 'C', 'accept(0,NULL,NULL);'):
276 print "Can't find library with socket calls (e.g. accept())"
277 Exit(1)
278
273# Check for zlib. If the check passes, libz will be automatically
274# added to the LIBS environment variable.
275if not conf.CheckLibWithHeader('z', 'zlib.h', 'C++'):
276 print 'Error: did not find needed zlib compression library '\
277 'and/or zlib.h header file.'
278 print ' Please install zlib and try again.'
279 Exit(1)
280

--- 289 unchanged lines hidden ---
279# Check for zlib. If the check passes, libz will be automatically
280# added to the LIBS environment variable.
281if not conf.CheckLibWithHeader('z', 'zlib.h', 'C++'):
282 print 'Error: did not find needed zlib compression library '\
283 'and/or zlib.h header file.'
284 print ' Please install zlib and try again.'
285 Exit(1)
286

--- 289 unchanged lines hidden ---