Damn this looks good!
I think I'm going to switch...never really liked all those annoying auto tools :-\
[EDIT]
WOW! Now I see why KDE is switching to SCons
You just need to make a single small text file for checking libs, settings directory etc. Here is a small example:
Code:
Library('libtest', ['libtest.cpp'])
env = Environment(LIBPATH='.', CPPPATH = '.')
conf = Configure(env)
if not conf.CheckLibWithHeader('test', 'main.h', 'C++', 'test();', 1):
print 'Did not find libtest.a or test.lib, exiting!'
Exit(1)
env = conf.Finish()
env.Program('test2', 'test2.cpp')
This will:
- build static lib 'libtest.a',
- check if libtest.a and main.h exist,
- the function 'test()' can be called,
- append lib libtest to the lib list if all gone well
- Build test2 and link it with libtest
With autotools this would give me about 10 scripts and 5 config files