van der Waals bonds in density-functional theory