6c44ae51 | 2019-07-09 17:17:30 | gregory guy |
add missing definition: - HAVE_STDINT_H (needed for kiten) - TIMEZONE_IS_INT (needed for kstars) Signed-off-by: gregory guy <g-gregory@...> (cherry picked from commit 644ddeda0885e965a829267f29e6138afed3e1fd) |
||
M ConfigureChecks.cmake M config.h.cmake |
||
ConfigureChecks.cmakediff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 62b6a5e..6cbee86 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -81,3 +81,22 @@ endif( NOT Boost_FOUND ) endif( BUILD_KIG OR BUILD_KBRUCH ) + + +##### check for headers + +check_include_file( stdint.h HAVE_STDINT_H ) + + +##### check for TIMEZONE_IS_INT + +check_cxx_source_compiles(" +#include <time.h> +int main() +{ + daylight = 0; + timezone = 0; + return 0; +}" +TIMEZONE_IS_INT) + config.h.cmakediff --git a/config.h.cmake b/config.h.cmake index 8fd3dc6..5c4e807 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -21,3 +21,9 @@ // Defined to 1 if you have <linux/videodev2.h> header file. #cmakedefine HAVE_LINUX_VIDEODEV2_H 1 + +// Defined to 1 if you have <stdint.h> header file +#cmakedefine HAVE_STDINT_H 1 + +// Defined to 1 if timezone is available as a variable +#cmakedefine TIMEZONE_IS_INT 1 |