Fix autoconf checking