autoconf: Use PKG_CHECK_MODULES() instead of AM_PATH_CHECK()

Signed-off-by: Thomas Graf <tgraf@suug.ch>