summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgregory guy <g-gregory@gmx.fr>2019-07-09 14:41:14 +0200
committerSlávek Banko <slavek.banko@axis.cz>2019-07-09 19:17:30 +0200
commit6c44ae51f928e4d74d166a41255109fb300a6e09 (patch)
tree9a9a6731884a0d8c67f7fbc32a64f10ec9b41dfa
parent1a708a1c5d09b2f1b4d0a63014167a25648e8371 (diff)
downloadtdeedu-6c44ae51f928e4d74d166a41255109fb300a6e09.tar.gz
tdeedu-6c44ae51f928e4d74d166a41255109fb300a6e09.zip
add missing definition:
- HAVE_STDINT_H (needed for kiten) - TIMEZONE_IS_INT (needed for kstars) Signed-off-by: gregory guy <g-gregory@gmx.fr> (cherry picked from commit 644ddeda0885e965a829267f29e6138afed3e1fd)
-rw-r--r--ConfigureChecks.cmake19
-rw-r--r--config.h.cmake6
2 files changed, 25 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 62b6a5ee..6cbee868 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -81,3 +81,22 @@ if( BUILD_KIG OR BUILD_KBRUCH )
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)
+
diff --git a/config.h.cmake b/config.h.cmake
index 8fd3dc61..5c4e807e 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