1# backwards compat with older pkg-config 2# source: https://github.com/varnish/libvmod-example/pull/18 3# - pull in AC_DEFUN from pkg.m4 4# 5# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, 6# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 7# ------------------------------------------- 8# Retrieves the value of the pkg-config variable for the given module. 9# 10m4_ifndef([PKG_CHECK_VAR], [ 11AC_DEFUN([PKG_CHECK_VAR], 12[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 13AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl 14 15_PKG_CONFIG([$1], [variable="][$3]["], [$2]) 16AS_VAR_COPY([$1], [pkg_cv_][$1]) 17 18AS_VAR_IF([$1], [""], [$5], [$4])dnl 19]) 20]) 21