fix configure script for check