config.h.in 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  1. /*-*- mode:C; -*- */
  2. /* config.h. Generated from build/cmake/config.h.in by cmake configure */
  3. /*
  4. * Check: a unit test framework for C
  5. *
  6. * Copyright (C) 2011 Mateusz Loskot
  7. * Copyright (C) 2001, 2002 Arien Malec
  8. *
  9. * This library is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU Lesser General Public
  11. * License as published by the Free Software Foundation; either
  12. * version 2.1 of the License, or (at your option) any later version.
  13. *
  14. * This library is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. * Lesser General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Lesser General Public
  20. * License along with this library; if not, write to the
  21. * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  22. * Boston, MA 02111-1307, USA.
  23. */
  24. #if defined(__osf__)
  25. # define _OSF_SOURCE
  26. #endif
  27. /*
  28. * Ensure we have C99-style int64_t, etc, all defined.
  29. */
  30. /* First, we need to know if the system has already defined them. */
  31. #cmakedefine HAVE_INT16_T
  32. #cmakedefine HAVE_INT32_T
  33. #cmakedefine HAVE_INT64_T
  34. #cmakedefine HAVE_INTMAX_T
  35. #cmakedefine HAVE_UINT8_T
  36. #cmakedefine HAVE_UINT16_T
  37. #cmakedefine HAVE_UINT32_T
  38. #cmakedefine HAVE_UINT64_T
  39. #cmakedefine HAVE_UINTMAX_T
  40. /* We might have the types we want under other spellings. */
  41. #cmakedefine HAVE___INT64
  42. #cmakedefine HAVE_U_INT64_T
  43. #cmakedefine HAVE_UNSIGNED___INT64
  44. /* The sizes of various standard integer types. */
  45. @SIZE_OF_SHORT_CODE@
  46. @SIZE_OF_INT_CODE@
  47. @SIZE_OF_LONG_CODE@
  48. @SIZE_OF_LONG_LONG_CODE@
  49. @SIZE_OF_UNSIGNED_SHORT_CODE@
  50. @SIZE_OF_UNSIGNED_CODE@
  51. @SIZE_OF_UNSIGNED_LONG_CODE@
  52. @SIZE_OF_UNSIGNED_LONG_LONG_CODE@
  53. /*
  54. * If we lack int64_t, define it to the first of __int64, int, long, and long long
  55. * that exists and is the right size.
  56. */
  57. #if !defined(HAVE_INT64_T) && defined(HAVE___INT64)
  58. typedef __int64 int64_t;
  59. #define HAVE_INT64_T
  60. #endif
  61. #if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8
  62. typedef int int64_t;
  63. #define HAVE_INT64_T
  64. #endif
  65. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8
  66. typedef long int64_t;
  67. #define HAVE_INT64_T
  68. #endif
  69. #if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8
  70. typedef long long int64_t;
  71. #define HAVE_INT64_T
  72. #endif
  73. #if !defined(HAVE_INT64_T)
  74. #error No 64-bit integer type was found.
  75. #endif
  76. /*
  77. * Similarly for int32_t
  78. */
  79. #if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4
  80. typedef long int32_t;
  81. #define HAVE_INT32_T
  82. #endif
  83. #if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4
  84. typedef long int32_t;
  85. #define HAVE_INT32_T
  86. #endif
  87. #if !defined(HAVE_INT32_T)
  88. #error No 32-bit integer type was found.
  89. #endif
  90. /*
  91. * Similarly for int16_t
  92. */
  93. #if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2
  94. typedef int int16_t;
  95. #define HAVE_INT16_T
  96. #endif
  97. #if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2
  98. typedef short int16_t;
  99. #define HAVE_INT16_T
  100. #endif
  101. #if !defined(HAVE_INT16_T)
  102. #error No 16-bit integer type was found.
  103. #endif
  104. /*
  105. * Similarly for uint64_t
  106. */
  107. #if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64)
  108. typedef unsigned __int64 uint64_t;
  109. #define HAVE_UINT64_T
  110. #endif
  111. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8
  112. typedef unsigned uint64_t;
  113. #define HAVE_UINT64_T
  114. #endif
  115. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8
  116. typedef unsigned long uint64_t;
  117. #define HAVE_UINT64_T
  118. #endif
  119. #if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8
  120. typedef unsigned long long uint64_t;
  121. #define HAVE_UINT64_T
  122. #endif
  123. #if !defined(HAVE_UINT64_T)
  124. #error No 64-bit unsigned integer type was found.
  125. #endif
  126. /*
  127. * Similarly for uint32_t
  128. */
  129. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4
  130. typedef unsigned uint32_t;
  131. #define HAVE_UINT32_T
  132. #endif
  133. #if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4
  134. typedef unsigned long uint32_t;
  135. #define HAVE_UINT32_T
  136. #endif
  137. #if !defined(HAVE_UINT32_T)
  138. #error No 32-bit unsigned integer type was found.
  139. #endif
  140. /*
  141. * Similarly for uint16_t
  142. */
  143. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2
  144. typedef unsigned uint16_t;
  145. #define HAVE_UINT16_T
  146. #endif
  147. #if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2
  148. typedef unsigned short uint16_t;
  149. #define HAVE_UINT16_T
  150. #endif
  151. #if !defined(HAVE_UINT16_T)
  152. #error No 16-bit unsigned integer type was found.
  153. #endif
  154. /*
  155. * Similarly for uint8_t
  156. */
  157. #if !defined(HAVE_UINT8_T)
  158. typedef unsigned char uint8_t;
  159. #define HAVE_UINT8_T
  160. #endif
  161. #if !defined(HAVE_UINT16_T)
  162. #error No 8-bit unsigned integer type was found.
  163. #endif
  164. /* Define intmax_t and uintmax_t if they are not already defined. */
  165. #if !defined(HAVE_INTMAX_T)
  166. typedef int64_t intmax_t;
  167. #define INTMAX_MIN INT64_MIN
  168. #define INTMAX_MAX INT64_MAX
  169. #endif
  170. #if !defined(HAVE_UINTMAX_T)
  171. typedef uint64_t uintmax_t;
  172. #endif
  173. /* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you
  174. don't. */
  175. #cmakedefine HAVE_DECL_INT64_MAX 1
  176. /* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you
  177. don't. */
  178. #cmakedefine HAVE_DECL_INT64_MIN 1
  179. /* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you
  180. don't. */
  181. #cmakedefine HAVE_DECL_SIZE_MAX 1
  182. /* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you
  183. don't. */
  184. #cmakedefine HAVE_DECL_SSIZE_MAX 1
  185. /* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you
  186. don't. */
  187. #cmakedefine HAVE_DECL_UINT32_MAX 1
  188. /* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you
  189. don't. */
  190. #cmakedefine HAVE_DECL_UINT64_MAX 1
  191. /* Define to 1 if you have the <errno.h> header file. */
  192. #cmakedefine HAVE_ERRNO_H 1
  193. /* Define to 1 if you have the `fork' function. */
  194. #cmakedefine HAVE_FORK 1
  195. /* Define to 1 if you have the `getpid' function. */
  196. #cmakedefine HAVE_GETPID 1
  197. /* Define to 1 if you have the `gettimeofday' function. */
  198. #cmakedefine HAVE_GETTIMEOFDAY 1
  199. /* Define to 1 if you have the <inttypes.h> header file. */
  200. #cmakedefine HAVE_INTTYPES_H 1
  201. /* Define to 1 if you have the <limits.h> header file. */
  202. #cmakedefine HAVE_LIMITS_H 1
  203. /* Define to 1 if you have the `localtime_r' function. */
  204. #cmakedefine HAVE_DECL_LOCALTIME_R 1
  205. /* Define to 1 if you have the `localtime_s' function. */
  206. #cmakedefine HAVE_LOCALTIME_S 1
  207. /* Define to 1 if the system has the type `long long int'. */
  208. #cmakedefine HAVE_LONG_LONG_INT 1
  209. /* Define to 1 if you have the `malloc' function. */
  210. #cmakedefine HAVE_MALLOC 1
  211. /* Define to 1 if you have the `realloc' function. */
  212. #cmakedefine HAVE_REALLOC 1
  213. /* Define to 1 if you have the `setenv' function. */
  214. #cmakedefine HAVE_DECL_SETENV 1
  215. /* Define to 1 if you have the <signal.h> header file. */
  216. #cmakedefine HAVE_SIGNAL_H 1
  217. /* Define to 1 if you have the 'sigaction' function. */
  218. #cmakedefine HAVE_SIGACTION 1
  219. /* Define to 1 if you have the <stdarg.h> header file. */
  220. #cmakedefine HAVE_STDARG_H 1
  221. /* Define to 1 if you have the <stdint.h> header file. */
  222. #cmakedefine HAVE_STDINT_H 1
  223. /* Define to 1 if you have the <stdlib.h> header file. */
  224. #cmakedefine HAVE_STDLIB_H 1
  225. /* Define to 1 if you have the `strdup' function. */
  226. #cmakedefine HAVE_DECL_STRDUP 1
  227. /* Define to 1 if you have the <strings.h> header file. */
  228. #cmakedefine HAVE_STRINGS_H 1
  229. /* Define to 1 if you have the <string.h> header file. */
  230. #cmakedefine HAVE_STRING_H 1
  231. /* Define to 1 if you have the `strsignal' function. */
  232. #cmakedefine HAVE_DECL_STRSIGNAL 1
  233. /* Define to 1 if you have the <sys/time.h> header file. */
  234. #cmakedefine HAVE_SYS_TIME_H 1
  235. /* Define to 1 if you have the <sys/types.h> header file. */
  236. #cmakedefine HAVE_SYS_TYPES_H 1
  237. /* Define to 1 if you have the <time.h> header file. */
  238. #cmakedefine HAVE_TIME_H 1
  239. /* Define to 1 if you have the <unistd.h> header file. */
  240. #cmakedefine HAVE_UNISTD_H 1
  241. /* Define to 1 if you have <windows.h> header file. */
  242. #cmakedefine HAVE_WINDOWS_H 1
  243. /* Define to 1 if you have <synchapi.h> header file. */
  244. #cmakedefine HAVE_SYNCHAPI_H 1
  245. /* Define to 1 if you have the 'InitOnceBeginInitialize' function. */
  246. #cmakedefine HAVE_INIT_ONCE_BEGIN_INITIALIZE 1
  247. /* Define to 1 if you have the 'InitOnceComplete' function. */
  248. #cmakedefine HAVE_INIT_ONCE_COMPLETE 1
  249. /* Define to 1 if the system has the type `unsigned long long'. */
  250. #cmakedefine HAVE_UNSIGNED_LONG_LONG 1
  251. /* Define to 1 if the system has the type `unsigned long long int'. */
  252. #cmakedefine HAVE_UNSIGNED_LONG_LONG_INT 1
  253. /* Define to 1 if the system has the type `wchar_t'. */
  254. #cmakedefine HAVE_WCHAR_T 1
  255. /* Define to 1 if you have the `_getpid' function. */
  256. #cmakedefine HAVE__GETPID 1
  257. /* Define to 1 if you have the `_localtime64_s' function. */
  258. #cmakedefine HAVE__LOCALTIME64_S 1
  259. /* Define to 1 if you have the `_strdup' function. */
  260. #cmakedefine HAVE__STRDUP 1
  261. /* Define 1 if you have pthread support. */
  262. #cmakedefine HAVE_PTHREAD 1
  263. /* Version number of Check */
  264. #cmakedefine CHECK_VERSION "${CHECK_MAJOR_VERSION}.${CHECK_MINOR_VERSION}.${CHECK_MICRO_VERSION}"
  265. /* The size of `wchar_t', as computed by sizeof. */
  266. #cmakedefine SIZEOF_WCHAR_T ${SIZEOF_WCHAR_T}
  267. /* Define to 1 if strerror_r returns char *. */
  268. #cmakedefine STRERROR_R_CHAR_P 1
  269. /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  270. #cmakedefine TIME_WITH_SYS_TIME 1
  271. /*
  272. * Some platform requires a macro to use extension functions.
  273. */
  274. #cmakedefine SAFE_TO_DEFINE_EXTENSIONS 1
  275. #ifdef SAFE_TO_DEFINE_EXTENSIONS
  276. /* Enable extensions on AIX 3, Interix. */
  277. #ifndef _ALL_SOURCE
  278. # define _ALL_SOURCE 1
  279. #endif
  280. /* Enable GNU extensions on systems that have them. */
  281. #ifndef _GNU_SOURCE
  282. # define _GNU_SOURCE 1
  283. #endif
  284. /* Enable threading extensions on Solaris. */
  285. #ifndef _POSIX_PTHREAD_SEMANTICS
  286. # define _POSIX_PTHREAD_SEMANTICS 1
  287. #endif
  288. /* Enable extensions on HP NonStop. */
  289. #ifndef _TANDEM_SOURCE
  290. # define _TANDEM_SOURCE 1
  291. #endif
  292. /* Enable general extensions on Solaris. */
  293. #ifndef __EXTENSIONS__
  294. # define __EXTENSIONS__ 1
  295. #endif
  296. #endif /* SAFE_TO_DEFINE_EXTENSIONS */
  297. /* Number of bits in a file offset, on hosts where this is settable. */
  298. #cmakedefine _FILE_OFFSET_BITS ${_FILE_OFFSET_BITS}
  299. /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
  300. #cmakedefine _LARGEFILE_SOURCE 1
  301. /* Define for large files, on AIX-style hosts. */
  302. #cmakedefine _LARGE_FILES ${_LARGE_FILES}
  303. /* Define for Windows to use Windows 2000+ APIs. */
  304. #cmakedefine _WIN32_WINNT ${_WIN32_WINNT}
  305. #cmakedefine WINVER ${WINVER}
  306. /* Define to empty if `const' does not conform to ANSI C. */
  307. #cmakedefine const ${const}
  308. /* Define to `int' if <sys/types.h> doesn't define. */
  309. #cmakedefine clockid_t ${clockid_t}
  310. /* Define to `int' if <sys/types.h> doesn't define. */
  311. #cmakedefine gid_t ${gid_t}
  312. /* Define to `unsigned long' if <sys/types.h> does not define. */
  313. #cmakedefine id_t ${id_t}
  314. /* Define to `int' if <sys/types.h> does not define. */
  315. #cmakedefine mode_t ${mode_t}
  316. /* Define to `long long' if <sys/types.h> does not define. */
  317. #cmakedefine off_t ${off_t}
  318. /* Define to `int' if <sys/types.h> doesn't define. */
  319. #cmakedefine pid_t ${pid_t}
  320. /* Define to `unsigned int' if <sys/types.h> does not define. */
  321. #cmakedefine size_t ${size_t}
  322. /* Define to `int' if <sys/types.h> does not define. */
  323. #cmakedefine ssize_t ${ssize_t}
  324. /* Define to `int' if <sys/types.h> does not define. */
  325. #cmakedefine timer_t ${timer_t}
  326. /* Define to `int' if <sys/types.h> doesn't define. */
  327. #cmakedefine uid_t ${uid_t}
  328. /* Define to `int' if <sys/types.h> does not define. */
  329. #cmakedefine intptr_t ${intptr_t}
  330. /* Define to `unsigned int' if <sys/types.h> does not define. */
  331. #cmakedefine uintptr_t ${uintptr_t}