In my ChromiumOS build calling pkg-config without an appropriate cross-compilation prefix is considered an error. The current method of detecting PKG_CONFIG in efivar always calls pkg-config, even if PKG_CONFIG has already been set in the environment.
Allow overriding PKG_CONFIG, rather than always checking for the cross-compiled version. This is more in-line with how the other tools are chosen.
In my ChromiumOS build calling pkg-config without an appropriate cross-compilation prefix is considered an error. The current method of detecting PKG_CONFIG in efivar always calls pkg-config, even if PKG_CONFIG has already been set in the environment.
Allow overriding PKG_CONFIG, rather than always checking for the cross-compiled version. This is more in-line with how the other tools are chosen.
Signed-off-by: Ted Brandston tbrandston@google.com