Real analytic varieties with the finiteness property and complex abelian integrals