Check for PKG_CONFIG_LIBDIR when cross compiling.
authorGirish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
Fri, 9 Mar 2012 22:39:14 +0000 (14:39 -0800)
committerQt by Nokia <qt-info@nokia.com>
Mon, 12 Mar 2012 20:38:51 +0000 (21:38 +0100)
commit01e8e9136dfa5d3260de0d318da6aece7214f85a
treeb9f97b70fbab17cff1d9de6916bc9d0f9ae0a29d
parentdf19bffbd9a3a8bd69acf1ff6f3ba9c4649d13be
Check for PKG_CONFIG_LIBDIR when cross compiling.

When cross-compiling, check for PKG_CONFIG_LIBDIR instead of
PKG_CONFIG_PATH. pkg-config searches for pc files in PKG_CONFIG_PATH
*and* the compiled in defaults (/usr/lib/pkgconfig). This means that
pc files from the host get found when cross-compiling.

Setting PKG_CONFIG_LIBDIR makes pkg-config search only in the path
set in PKG_CONFIG_LIBDIR.

Documented in the url below:
http://www.freedesktop.org/wiki/Software/pkg-config/CrossCompileProposal

Change-Id: I22dbf29c5691572b7cb8a5fce712ae7ba811670e
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
configure