The city shall require dedication of land for street or highway purposes to achieve conformance with the general plan of the city, prior to issuance of building permit, or the city may accept in lieu thereof an agreement to make such dedication in form and substance as approved by the City Attorney.
(`67 Code, § 5-6-4)