summaryrefslogtreecommitdiff
path: root/source4/build/scons/pkgconfig.py
blob: 6a0c82fd354870f9f299e9280fa1d8223a8554d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Based on the examples from the scons wiki

def CheckPKGConfig(context, version):
	context.Message('Checking for pkg-config... ')
	ret = context.TryAction('pkg-config --atleast-pkgconfig-version=%s' % version)[0]
	context.Result(ret)
	return ret

def CheckPackage(context, name):
	context.Message('Checking for %s... ' % name)
	ret = context.TryAction('pkg-config --exists \'%s\'' % name)[0]
	context.Result(ret)
	return ret