build: Prefer AC_CHECK_TYPE() over AC_LINK_IFELSE().