Panu Matilainen dd1fdd
diff --git a/scripts/pkgconfigdeps.sh b/scripts/pkgconfigdeps.sh
Panu Matilainen dd1fdd
index 882d195..6baa0f1 100755
Panu Matilainen dd1fdd
--- a/scripts/pkgconfigdeps.sh
Panu Matilainen dd1fdd
+++ b/scripts/pkgconfigdeps.sh
Panu Matilainen dd1fdd
@@ -17,6 +17,8 @@ case $1 in
Panu Matilainen dd1fdd
     case "${filename}" in
Panu Matilainen dd1fdd
     *.pc)
Panu Matilainen dd1fdd
 	# Query the dependencies of the package.
Panu Matilainen dd1fdd
+	DIR="`dirname ${filename}`"
Panu Matilainen dd1fdd
+	export PKG_CONFIG_PATH="$DIR:$DIR/../../share/pkgconfig"
Panu Matilainen dd1fdd
 	$pkgconfig --print-provides "$filename" 2> /dev/null | while read n r v ; do
Panu Matilainen dd1fdd
 	    # We have a dependency.  Make a note that we need the pkgconfig
Panu Matilainen dd1fdd
 	    # tool for this package.