Don't try using PKG_CHECK_MODULES if it's undefined. Print an error

instead in the case when that macro would actually be invoked.