I changed the lines for opencv to cv in configure.in