]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
Add PKG_CONFIG_PATH to run.in script.
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 26 Jun 2014 10:53:20 +0000 (11:53 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 26 Jun 2014 13:32:35 +0000 (14:32 +0100)
Allow people to build external bindings using the 'run' script
by defining the PKG_CONFIG_PATH var in it. eg to build Python
you could do

   ../libvirt/run python setup.py build

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
run.in

diff --git a/run.in b/run.in
index 1a379ddf37b5534622472c8262bf5aa1d20cd44d..cbef61a674ef79d8c669ca151186c96569641fb4 100644 (file)
--- a/run.in
+++ b/run.in
@@ -53,6 +53,13 @@ else
 fi
 export LD_LIBRARY_PATH
 
+if [ -z "$PKG_CONFIG_PATH" ]; then
+    PKG_CONFIG_PATH="$b/src"
+else
+    PKG_CONFIG_PATH="$b/src:$PKG_CONFIG_PATH"
+fi
+export PKG_CONFIG_PATH
+
 export LIBVIRT_DRIVER_DIR="$b/src/.libs"
 export LIBVIRT_LOCK_MANAGER_PLUGIN_DIR="$b/src/.libs"
 export VIRTLOCKD_PATH="$b/src"