Fix the extra "check" checking
Add --enable-check option