|
|
|
@ -78,6 +78,10 @@ macro(perform_feature_checks) |
|
|
|
# HAVE_GETTIMEOFDAY is already in use within 2.9 wxWidgets, so use HAVE_GETTIMEOFDAY_FUNC |
|
|
|
check_symbol_exists(gettimeofday "sys/time.h" HAVE_GETTIMEOFDAY_FUNC) |
|
|
|
|
|
|
|
# Check for Posix getc_unlocked() for improved performance over getc(). Fall back to |
|
|
|
# getc() on platforms where getc_unlocked() doesn't exist. |
|
|
|
check_symbol_exists(getc_unlocked "stdio.h" HAVE_GETC_UNLOCKED) |
|
|
|
|
|
|
|
# Generate config.h. |
|
|
|
configure_file(${PROJECT_SOURCE_DIR}/CMakeModules/config.h.cmake |
|
|
|
${CMAKE_BINARY_DIR}/config.h) |
|
|
|
|