Make configure portable between automake 1.11 and later versions