r12207: More improvements to the Debian package by Steinar Gunderson.
[ira/wip.git] / source / build / scons / pkgconfig.py
1 # Based on the examples from the scons wiki
2
3 def CheckPKGConfig(context, version):
4         context.Message('Checking for pkg-config... ')
5         ret = context.TryAction('pkg-config --atleast-pkgconfig-version=%s' % version)[0]
6         context.Result(ret)
7         return ret
8
9 def CheckPackage(context, name):
10         context.Message('Checking for %s... ' % name)
11         ret = context.TryAction('pkg-config --exists \'%s\'' % name)[0]
12         context.Result(ret)
13         return ret