When pkg-config is being used in a cross-compiling environment, it's useful to be able to have it automatically prepend the path to the cross tree (usually something like "/usr/arm-linux") onto the filenames it generates. This patch adds a new environment variable which can be used for that.
Created attachment 79 [details] [review]
If you build current pkg-config with --prefix=/usr/arm-linux, it will look in
/usr/arm-linux/lib/pkgconfig and /usr/arm-linux/share/pkgconfig for the .pc
files. (If you want another path, you can use --with-pc-path=$foo:$bar:$baz
I am going to provide more cross-compilation support, but this should satisfy
you for now.