include(CheckLibraryExists)
include(CheckTypeSize)
include(CheckCXXSourceCompiles)
+include(MacroBoolTo01)
check_include_file_cxx(aspell.h HAVE_ASPELL_H)
check_symbol_exists(LC_MESSAGES "locale.h" HAVE_LC_MESSAGES)
check_type_size(intmax_t HAVE_INTMAX_T)
+macro_bool_to_01(HAVE_UINTMAX_T HAVE_STDINT_H_WITH_UINTMAX)
+
check_type_size("long double" HAVE_LONG_DOUBLE)
check_type_size("long long" HAVE_LONG_LONG)
check_type_size(wchar_t HAVE_WCHAR_T)
--- /dev/null
+# MACRO_BOOL_TO_01( VAR RESULT0 ... RESULTN )\r
+# This macro evaluates its first argument\r
+# and sets all the given vaiables either to 0 or 1\r
+# depending on the value of the first one\r
+\r
+# Copyright (c) 2006, Alexander Neundorf, <neundorf@kde.org>\r
+#\r
+# Redistribution and use is allowed according to the terms of the BSD license.\r
+# For details see the accompanying COPYING-CMAKE-SCRIPTS file.\r
+\r
+\r
+MACRO(MACRO_BOOL_TO_01 FOUND_VAR )\r
+ FOREACH (_current_VAR ${ARGN})\r
+ IF(${FOUND_VAR})\r
+ SET(${_current_VAR} 1)\r
+ ELSE(${FOUND_VAR})\r
+ SET(${_current_VAR} 0)\r
+ ENDIF(${FOUND_VAR})\r
+ ENDFOREACH(_current_VAR)\r
+ENDMACRO(MACRO_BOOL_TO_01)\r