check: fix configure to support autoconf 1.12

Was not building with autotools, this patch rectifies that.