From 7f84400ea798d603613a893f957c0dafc5af909c Mon Sep 17 00:00:00 2001 From: Kovensky Date: Sun, 24 Jan 2010 11:22:49 -0300 Subject: [PATCH] Use $_target-pkg-config if available Simplifies cross-compiling. --- configure | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/configure b/configure index c301e7068f..9128260f91 100755 --- a/configure +++ b/configure @@ -3897,16 +3897,27 @@ fi echores "$_apple_ir" fi #if linux -echocheck "pkg-config" -_pkg_config=pkg-config +echocheck "$_target-pkg-config" +_pkg_config=$_target-pkg-config if $($_pkg_config --version > /dev/null 2>&1); then if test "$_ld_static"; then _pkg_config="$_pkg_config --static" fi echores "yes" else - _pkg_config=false + _pkg_config=pkg-config echores "no" + + echocheck "pkg-config" + if $($_pkg_config --version > /dev/null 2>&1); then + if test "$_ld_static"; then + _pkg_config="$_pkg_config --static" + fi + echores "yes" + else + _pkg_config=false + echores "no" + fi fi -- 2.11.4.GIT