daemon: fix pkg-config check for mingw

Test if empty first, so we don't override mingw pkg-config directory.

Refs #56437

Change-Id: Ifb3c918a434aa697f81c92965cdb614b50728dc4
This commit is contained in:
Philippe Groarke
2014-10-08 13:27:56 -04:00
committed by Tristan Matthews
parent 4ed5a895fa
commit d0932f4a14

View File

@ -6,11 +6,10 @@ if test -z $AUTORECONF; then
exit 1
fi
PKGCONFIG=`which pkg-config`
if test -z $PKGCONFIG; then
echo "*** No pkg-config found, please install it ***"
# warn without exiting, since pkg-config is only needed
# by configure, not autogen.sh
if !"${PKG_CONFIG:-pkg-config}" --version >/dev/null 2>&1; then
echo "*** No pkg-config found, please install it ***"
# warn without exiting, since pkg-config is only needed
# by configure, not autogen.sh
fi
LIBTOOLIZE=`which libtoolize || which glibtoolize`