check: fix configure to support autoconf 1.12