configure.ac: Don't use PKG_CHECK_VAR from recent pkg.m4

Older versions of pkg-config on some of our target platforms don't
have this macro.