Commit 081a00a5 authored by Edward Hervey's avatar Edward Hervey 🤘

m4/pkg.m4: Allow override of pkg-config results, as proposed by configure --help.

Original commit message from CVS:
* m4/pkg.m4:
Allow override of pkg-config results, as proposed by configure --help.
This is in fact just a backport from upstream pkg.m4.
Fixes #518892
parent 668c3f0b
2008-03-03 Edward Hervey <edward.hervey@collabora.co.uk>
* m4/pkg.m4:
Allow override of pkg-config results, as proposed by configure --help.
This is in fact just a backport from upstream pkg.m4.
Fixes #518892
2008-03-03 Peter Kjellerstedt <pkj@axis.com>
* ChangeLog:
......
......@@ -67,9 +67,13 @@ fi])
# ---------------------------------------------
m4_define([_PKG_CONFIG],
[if test -n "$PKG_CONFIG"; then
if test -n "$$1"; then
pkg_cv_[]$1="$$1"
else
PKG_CHECK_EXISTS([$3],
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
[pkg_failed=yes])
fi
else
pkg_failed=untried
fi[]dnl
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment