replace AC_MSG_ERROR/AC_MSG_WARN if freetype,jpeg,resample*,yuv not found