You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

324 lines
6.7KB

  1. /*
  2. * "$Id: configh.cmake.in 8198 2011-01-06 10:24:58Z manolo $"
  3. *
  4. * Configuration file for the Fast Light Tool Kit (FLTK).
  5. * @configure_input@
  6. *
  7. * Copyright 1998-2010 by Bill Spitzak and others.
  8. *
  9. * This library is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU Library General Public
  11. * License as published by the Free Software Foundation; either
  12. * version 2 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. * Library General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Library General Public
  20. * License along with this library; if not, write to the Free Software
  21. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
  22. * USA.
  23. *
  24. * Please report all bugs and problems on the following page:
  25. *
  26. * http://www.fltk.org/str.php
  27. */
  28. /*
  29. * Where to find files...
  30. */
  31. #define FLTK_DATADIR "@PREFIX_DATA@"
  32. #define FLTK_DOCDIR "@PREFIX_DOC@"
  33. /*
  34. * BORDER_WIDTH:
  35. *
  36. * Thickness of FL_UP_BOX and FL_DOWN_BOX. Current 1,2, and 3 are
  37. * supported.
  38. *
  39. * 3 is the historic FLTK look.
  40. * 2 is the default and looks like Microsoft Windows, KDE, and Qt.
  41. * 1 is a plausible future evolution...
  42. *
  43. * Note that this may be simulated at runtime by redefining the boxtypes
  44. * using Fl::set_boxtype().
  45. */
  46. #define BORDER_WIDTH 2
  47. /*
  48. * HAVE_GL:
  49. *
  50. * Do you have OpenGL? Set this to 0 if you don't have or plan to use
  51. * OpenGL, and FLTK will be smaller.
  52. */
  53. #cmakedefine01 HAVE_GL
  54. /*
  55. * HAVE_GL_GLU_H:
  56. *
  57. * Do you have the OpenGL Utility Library header file?
  58. * (many broken Mesa RPMs do not...)
  59. */
  60. #cmakedefine01 HAVE_GL_GLU_H
  61. /*
  62. * HAVE_GLXGETPROCADDRESSARB:
  63. *
  64. * Do you have the OpenGL glXGetProcAddressARB() function?
  65. */
  66. #cmakedefine HAVE_GLXGETPROCADDRESSARB %HAVE_GLXGETPROCADDRESSARB%
  67. /*
  68. * USE_COLORMAP:
  69. *
  70. * Setting this to zero will save a good deal of code (especially for
  71. * fl_draw_image), but FLTK will only work on TrueColor visuals.
  72. */
  73. #define USE_COLORMAP 1
  74. /*
  75. * HAVE_XINERAMA
  76. *
  77. * Do we have the Xinerama library to support multi-head displays?
  78. */
  79. #cmakedefine01 HAVE_XINERAMA
  80. /*
  81. * USE_XFT
  82. *
  83. * Use the new Xft library to draw anti-aliased text.
  84. */
  85. #cmakedefine01 USE_XFT
  86. /*
  87. * HAVE_XDBE:
  88. *
  89. * Do we have the X double-buffer extension?
  90. */
  91. #cmakedefine01 HAVE_XDBE
  92. /*
  93. * USE_XDBE:
  94. *
  95. * Actually try to use the double-buffer extension?
  96. */
  97. #define USE_XDBE HAVE_XDBE
  98. /*
  99. * __APPLE_QUARTZ__:
  100. *
  101. * If __APPLE_QUARTZ__ is defined, FLTK will be
  102. * compiled using Quartz. This flag has no meaning on
  103. * other operating systems than Mac OS X.
  104. */
  105. #cmakedefine __APPLE_QUARTZ__ @__APPLE_QUARTZ__@
  106. /*
  107. * USE_X11
  108. *
  109. * Should we use X11 for the current platform
  110. *
  111. */
  112. #cmakedefine USE_X11 @USE_X11@
  113. /*
  114. * HAVE_OVERLAY:
  115. *
  116. * Use the X overlay extension? FLTK will try to use an overlay
  117. * visual for Fl_Overlay_Window, the Gl_Window overlay, and for the
  118. * menus. Setting this to zero will remove a substantial amount of
  119. * code from FLTK. Overlays have only been tested on SGI servers!
  120. */
  121. #define HAVE_OVERLAY 0
  122. /*
  123. * HAVE_GL_OVERLAY:
  124. *
  125. * It is possible your GL has an overlay even if X does not. If so,
  126. * set this to 1.
  127. */
  128. #define HAVE_GL_OVERLAY HAVE_OVERLAY
  129. /*
  130. * WORDS_BIGENDIAN:
  131. *
  132. * Byte order of your machine: 1 = big-endian, 0 = little-endian.
  133. */
  134. #define WORDS_BIGENDIAN @WORDS_BIGENDIAN@
  135. /*
  136. * U16, U32, U64:
  137. *
  138. * Types used by fl_draw_image. One of U32 or U64 must be defined.
  139. * U16 is optional but FLTK will work better with it!
  140. */
  141. #cmakedefine U16 @U16@
  142. #cmakedefine U32 @U32@
  143. #cmakedefine U64 @U64@
  144. /*
  145. * HAVE_DIRENT_H, HAVE_SYS_NDIR_H, HAVE_SYS_DIR_H, HAVE_NDIR_H,
  146. * HAVE_SCANDIR, HAVE_SCANDIR_POSIX:
  147. *
  148. * Where is <dirent.h> (used only by fl_file_chooser and scandir).
  149. */
  150. #cmakedefine HAVE_DIRENT_H @HAVE_DIRENT_H@
  151. #cmakedefine HAVE_SYS_NDIR_H @HAVE_SYS_NDIR_H@
  152. #cmakedefine HAVE_SYS_DIR_H @HAVE_SYS_DIR_H@
  153. #cmakedefine HAVE_NDIR_H @HAVE_NDIR_H@
  154. #cmakedefine HAVE_SCANDIR @HAVE_SCANDIR@
  155. #cmakedefine HAVE_SCANDIR_POSIX @HAVE_SCANDIR_POSIX@
  156. /*
  157. * Possibly missing sprintf-style functions:
  158. */
  159. #cmakedefine HAVE_VSNPRINTF @HAVE_VSNPRINTF@
  160. #cmakedefine HAVE_SNPRINTF @HAVE_SNPRINTF@
  161. /*
  162. * String functions and headers...
  163. */
  164. #cmakedefine HAVE_STRINGS_H @HAVE_STRINGS_H@
  165. #cmakedefine HAVE_STRCASECMP @HAVE_STRCASECMP@
  166. #cmakedefine HAVE_STRLCAT @HAVE_STRLCAT@
  167. #cmakedefine HAVE_STRLCPY @HAVE_STRLCPY@
  168. /*
  169. * Do we have POSIX locale support?
  170. */
  171. #cmakedefine HAVE_LOCALE_H @HAVE_LOCALE_H@
  172. #cmakedefine HAVE_LOCALECONV @HAVE_LOCALECONV@
  173. /*
  174. * HAVE_SYS_SELECT_H:
  175. *
  176. * Whether or not select() call has its own header file.
  177. */
  178. #cmakedefine01 HAVE_SYS_SELECT_H
  179. /*
  180. * HAVE_SYS_STDTYPES_H:
  181. *
  182. * Whether or not we have the <sys/stdtypes.h> header file.
  183. */
  184. #cmakedefine HAVE_SYS_STDTYPES_H @HAVE_SYS_STDTYPES_H@
  185. /*
  186. * USE_POLL:
  187. *
  188. * Use the poll() call provided on Linux and Irix instead of select()
  189. */
  190. #cmakedefine01 USE_POLL
  191. /*
  192. * Do we have various image libraries?
  193. */
  194. #cmakedefine HAVE_LIBPNG @HAVE_LIBPNG@
  195. #cmakedefine HAVE_LIBZ @HAVE_LIBZ@
  196. #cmakedefine HAVE_LIBJPEG @HAVE_LIBJPEG@
  197. /*
  198. * FLTK_USE_CAIRO
  199. *
  200. * Do we have the cairo library available and want extended cairo use in fltk ?
  201. * will implies to link cairo.lib in all fltk based apps.
  202. */
  203. #cmakedefine FLTK_USE_CAIRO @FLTK_USE_CAIRO@
  204. /*
  205. * FLTK_HAVE_CAIRO
  206. *
  207. * Do we have the cairo library available?
  208. */
  209. #cmakedefine FLTK_HAVE_CAIRO @FLTK_HAVE_CAIRO@
  210. /*
  211. * Which header file do we include for libpng?
  212. */
  213. #cmakedefine HAVE_PNG_H @HAVE_PNG_H@
  214. #cmakedefine HAVE_LIBPNG_PNG_H @HAVE_LIBPNG_PNG_H@
  215. /*
  216. * Do we have the png_xyz() functions?
  217. */
  218. #cmakedefine HAVE_PNG_GET_VALID @HAVE_PNG_GET_VALID@
  219. #cmakedefine HAVE_PNG_SET_TRNS_TO_ALPHA @HAVE_PNG_SET_TRNS_TO_ALPHA@
  220. /*
  221. * Do we have POSIX threading?
  222. */
  223. #cmakedefine HAVE_PTHREAD @HAVE_PTHREAD@
  224. #cmakedefine01 HAVE_PTHREAD_H
  225. /*
  226. * Do we have the ALSA library?
  227. */
  228. #cmakedefine HAVE_ALSA_ASOUNDLIB_H @HAVE_ALSA_ASOUNDLIB_H@
  229. /*
  230. * Do we have the long long type?
  231. */
  232. #cmakedefine HAVE_LONG_LONG @HAVE_LONG_LONG@
  233. #ifdef HAVE_LONG_LONG
  234. # define FLTK_LLFMT "%lld"
  235. # define FLTK_LLCAST (long long)
  236. #else
  237. # define FLTK_LLFMT "%ld"
  238. # define FLTK_LLCAST (long)
  239. #endif /* HAVE_LONG_LONG */
  240. /*
  241. * Do we have the strtoll() function?
  242. */
  243. #cmakedefine HAVE_STRTOLL @HAVE_STRTOLL@
  244. #ifndef HAVE_STRTOLL
  245. # define strtoll(nptr,endptr,base) strtol((nptr), (endptr), (base))
  246. #endif /* !HAVE_STRTOLL */
  247. /*
  248. * Do we have the dlsym() function and header?
  249. */
  250. #cmakedefine HAVE_DLFCN_H @HAVE_DLFCN_H@
  251. #cmakedefine HAVE_DLSYM @HAVE_DLSYM@
  252. /*
  253. * End of "$Id: configh.cmake.in 8198 2011-01-06 10:24:58Z manolo $".
  254. */