build-sys: use $PKG_CONFIG

Reported-by: Helmut Grohne <helmut@subdivi.de>
References: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=811546
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2016-02-16 10:27:56 +01:00
parent c619d3d167
commit f776d76e49
1 changed files with 2 additions and 2 deletions

View File

@ -30,8 +30,8 @@ dnl
dnl Calls pkg-config --static
dnl
AC_DEFUN([UL_PKG_STATIC], [
if AC_RUN_LOG([pkg-config --exists --print-errors "$2"]); then
$1=`pkg-config --libs --static "$2"`
if AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$2"]); then
$1=`$PKG_CONFIG --libs --static "$2"`
else
AC_MSG_ERROR([pkg-config description of $2, needed for static build, is not available])
fi