From: Jakob Bornecrantz Date: Thu, 4 Nov 2010 20:47:13 +0000 (+0000) Subject: scons: Check for pkg-config before trying to use it X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=98d6ed87421cd8a8a43b061a6ba634b8cbbec086;p=mesa.git scons: Check for pkg-config before trying to use it Silences warning about missing packages --- 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: