Build Gimp from custom-path libraries

view story

http://unix.stackexchange.com – I'm installing Gimp (2.6.10) on Debian. The system has all the required libraries (dependencies) installed in the default directories, so giving to Gimp ./configure && make && make install completes fine, and installs Gimp. But I compiled some of the dependencies manually, for needed performance. These are GEGL, Glib, and BABL. All them are correctly installed in --prefix /usr/handsoftware I configure Gimp with these essential flags: (there are more flags to strip down unused features from the binary) ./configure --prefix=/usr/handsoftware/ PKG_CONFIG_PATH="../gegl/:. (HowTos)