Added stxxlroot option for default target

This commit is contained in:
Sven Anders 2012-03-18 15:31:08 +01:00
parent e43019a1df
commit 4d0c02de2d

View File

@ -100,6 +100,10 @@ elif sys.platform == 'win32':
Exit(-1)
else:
print "Default platform"
if GetOption('stxxlroot') is not None:
env.Append(CPPPATH = GetOption('stxxlroot')+'/include')
env.Append(LIBPATH = GetOption('stxxlroot')+'/lib')
print 'STXXLROOT = ', GetOption('stxxlroot')
env.Append(CPPPATH = ['/usr/include', '/usr/include/include', '/usr/include/libxml2/'])
if not conf.CheckLibWithHeader('pthread', 'pthread.h', 'CXX'):
print "pthread not found. Exiting"