scons: Check for pkg-config before trying to use it
Silences warning about missing packages
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user