Cleanup configure.ac
Make check optional