Philip, Is CMake supposed to replace the functionality of configure and make combined? If so, then there are other things that need to be done, like modifying zconf.h to not depend on HAVE_UNISTD_H when installed and used as a library header. That's why configure replaces #ifdef HAVE_UNISTD_H with #if 1. Mark