Add include guard for configure file.
Added check for cmake.