The use of AC_PATH_PROG to locate pkg-config and then invocation of pkg-config is broken in cross-compilation mode as it cannot find the .pc files. For details, please see https://bugs.debian.org/884798.