Respect PKG_CONFIG variable if set in the environment.

This is required for the new cross-compilation support using pkg-config
wrappers instead of changing the pkg-config files themselves.

BUG=none
TEST=emerge-arm-generic with and without pkg-config wrappers

Change-Id: I46d17ccea3d367796ada548822eec9dd8dc104fe
Reviewed-on: http://gerrit.chromium.org/gerrit/1438
Reviewed-by: Daniel Erat <derat@chromium.org>
Tested-by: Diego Elio Pettenò <flameeyes@chromium.org>
diff --git a/SConstruct b/SConstruct
index 1f5fbe7..bba9619 100644
--- a/SConstruct
+++ b/SConstruct
@@ -22,6 +22,8 @@
   if os.environ.has_key(key):
     env['ENV'][key] = os.environ[key]
 
-env.ParseConfig('pkg-config --cflags --libs gtk+-2.0 glib-2.0')
+pkgconfig = os.environ.get('PKG_CONFIG', 'pkg-config')
+
+env.ParseConfig(pkgconfig + ' --cflags --libs gtk+-2.0 glib-2.0')
 
 env.SharedLibrary('theme', SOURCES)