fix configure to detect kconf configure error