pkg.m4's PKG_CHECK_MODULES creates invalid variable names for modules with dashes. $ autoconf configure.ac:227: error: AC_SUBST: `bdw-gc_CFLAGS' is not a valid shell variable name
user error, you need to explicitly pass the prefix for the variables.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.