cmake: add more checks for folly-config.h generation
authorAdam Simpkins <simpkins@fb.com>
Fri, 19 Jan 2018 04:43:15 +0000 (20:43 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 19 Jan 2018 05:04:33 +0000 (21:04 -0800)
commit3e00e4620a8b42641147336cbffdb098850e0cf4
tree11f45e23e7fefbf5f443184427328131c2fbc5fd
parentb0ab09d8df51de1c7040b78742617ef6466b002a
cmake: add more checks for folly-config.h generation

Summary:
Update the CMake build files to perform additional checks to set configuration
macros in folly-config.h

I believe this should largely bring the CMake build on-par with (or even better
than) the autoconf build scripts.  I believe that the CMake build scripts now
perform all of the checks necessary to set macros in folly-config.h correctly.

The autoconf-based configure script also appears to have a number of bugs:
in several places it accidentally uses different macro names than the ones
checked in the source code.  Some of it's checks are also broken, and fail to
detect features correctly due to compilation errors in the check.

Reviewed By: yfeldblum

Differential Revision: D6735699

fbshipit-source-id: 5ce48f1deddd63c9d52fcccd5d5ccf6ca35e9a0d
CMake/FollyConfigChecks.cmake
CMake/folly-config.h.cmake
CMake/folly-deps.cmake
CMakeLists.txt