Skip to content
Snippets Groups Projects
Commit b8a33cd3 authored by Simon McVittie's avatar Simon McVittie Committed by Vivek Das Mohapatra
Browse files

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: default avatarSimon McVittie <smcv@collabora.com>
parent d47446be
No related branches found
No related tags found
1 merge request!311Build capsule-capture-libs from a bundled copy of libcapsule
......@@ -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])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment