Commit b8a33cd3 authored by Simon McVittie's avatar Simon McVittie Committed by Vivek Das Mohapatra

shim: Add a minimal fallback version of PKG_CHECK_VAR

We can't just drop in an updated version of pkg.m4, because older
versions of pkg.m4 didn't have a serial number, so an older system copy
would overwrite our local copy.
Signed-off-by: Simon McVittie's avatarSimon McVittie <smcv@collabora.com>
parent d47446be
......@@ -18,6 +18,10 @@ AC_SYS_LARGEFILE
LT_INIT([disable-static])
PKG_CHECK_MODULES([CAPSULE], [libcapsule])
m4_ifndef([PKG_CHECK_VAR],
[AC_DEFUN([PKG_CHECK_VAR],
[AC_ARG_VAR([$1])
: ${$1:=$PKG_CONFIG --variable="$3" "$2"}])])
PKG_CHECK_VAR([CAPSULE_MKINC], [libcapsule-tools], [makeinc])
PKG_CHECK_VAR([CAPSULE_MKSTUBLIB_TOOL], [libcapsule-tools], [CAPSULE_MKSTUBLIB_TOOL])
PKG_CHECK_VAR([CAPSULE_SYMBOLS_TOOL], [libcapsule-tools], [CAPSULE_SYMBOLS_TOOL])
......
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