summaryrefslogtreecommitdiffstats
path: root/scons
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2010-11-04 20:47:13 +0000
committerJakob Bornecrantz <[email protected]>2010-11-05 20:58:49 +0000
commit98d6ed87421cd8a8a43b061a6ba634b8cbbec086 (patch)
tree693ec7fa3306a786176e8abe0cd1da0de79fb556 /scons
parentb4ac0adb75bddc1c17c57eb19c7e6dde52e4b7e7 (diff)
scons: Check for pkg-config before trying to use it
Silences warning about missing packages
Diffstat (limited to 'scons')
-rw-r--r--scons/gallium.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index 7374cf58d3b..36f1831af89 100644
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -114,6 +114,9 @@ def pkg_config_modules(env, name, modules):
if not env.Detect('pkg-config'):
return
+ if subprocess.call(["pkg-config", "--exists", ' '.join(modules)]) != 0:
+ return
+
# Put -I and -L flags directly into the environment, as these don't affect
# the compilation of targets that do not use them
try: