Molecular thermodynamics of flexible-molecule fluids