config.h 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  1. /* config.h. Generated from configh.in by configure. */
  2. /*
  3. * "$Id: configh.in 12413 2017-09-03 13:14:25Z manolo $"
  4. *
  5. * Configuration file for the Fast Light Tool Kit (FLTK).
  6. *
  7. * Copyright 1998-2016 by Bill Spitzak and others.
  8. *
  9. * This library is free software. Distribution and use rights are outlined in
  10. * the file "COPYING" which should have been included with this file. If this
  11. * file is missing or damaged, see the license at:
  12. *
  13. * http://www.fltk.org/COPYING.php
  14. *
  15. * Please report all bugs and problems on the following page:
  16. *
  17. * http://www.fltk.org/str.php
  18. */
  19. /*
  20. * Where to find files...
  21. */
  22. #define FLTK_DATADIR "/usr/local/share/fltk"
  23. #define FLTK_DOCDIR "/usr/local/share/doc/fltk"
  24. /*
  25. * BORDER_WIDTH:
  26. *
  27. * Thickness of FL_UP_BOX and FL_DOWN_BOX. Current 1,2, and 3 are
  28. * supported.
  29. *
  30. * 3 is the historic FLTK look.
  31. * 2 is the default and looks like Microsoft Windows, KDE, and Qt.
  32. * 1 is a plausible future evolution...
  33. *
  34. * Note that this may be simulated at runtime by redefining the boxtypes
  35. * using Fl::set_boxtype().
  36. */
  37. #define BORDER_WIDTH 2
  38. /*
  39. * HAVE_GL:
  40. *
  41. * Do you have OpenGL? Set this to 0 if you don't have or plan to use
  42. * OpenGL, and FLTK will be smaller.
  43. */
  44. #define HAVE_GL 1
  45. /*
  46. * HAVE_GL_GLU_H:
  47. *
  48. * Do you have the OpenGL Utility Library header file?
  49. * (many broken Mesa RPMs do not...)
  50. */
  51. #define HAVE_GL_GLU_H 1
  52. /*
  53. * HAVE_GLXGETPROCADDRESSARB:
  54. *
  55. * Do you have the OpenGL glXGetProcAddressARB() function?
  56. */
  57. #define HAVE_GLXGETPROCADDRESSARB 1
  58. /*
  59. * USE_COLORMAP:
  60. *
  61. * Setting this to zero will save a good deal of code (especially for
  62. * fl_draw_image), but FLTK will only work on TrueColor visuals.
  63. */
  64. #define USE_COLORMAP 1
  65. /*
  66. * HAVE_XINERAMA
  67. *
  68. * Do we have the Xinerama library to support multi-head displays?
  69. */
  70. #define HAVE_XINERAMA 1
  71. /*
  72. * USE_XFT
  73. *
  74. * Use the Xft library to draw anti-aliased text.
  75. */
  76. #define USE_XFT 1
  77. /*
  78. * USE_PANGO
  79. *
  80. * Use the pango library to draw UTF-8 text.
  81. */
  82. #define USE_PANGO 0
  83. /*
  84. * HAVE_XDBE:
  85. *
  86. * Do we have the X double-buffer extension?
  87. */
  88. #define HAVE_XDBE 1
  89. /*
  90. * USE_XDBE:
  91. *
  92. * Actually try to use the double-buffer extension?
  93. */
  94. #define USE_XDBE HAVE_XDBE
  95. /*
  96. * HAVE_XFIXES:
  97. *
  98. * Do we have the X fixes extension?
  99. */
  100. #define HAVE_XFIXES 1
  101. /*
  102. * HAVE_XCURSOR:
  103. *
  104. * Do we have the X cursor library?
  105. */
  106. #define HAVE_XCURSOR 1
  107. /*
  108. * HAVE_XRENDER:
  109. *
  110. * Do we have the X render library?
  111. */
  112. #define HAVE_XRENDER 1
  113. /*
  114. * HAVE_X11_XREGION_H:
  115. *
  116. * Do we have the X11 Xregion.h header file ?
  117. */
  118. #define HAVE_X11_XREGION_H 1
  119. /*
  120. * __APPLE_QUARTZ__:
  121. *
  122. * All Apple implementations are now based on Quartz and Cocoa,
  123. * so this flag should always be on for Mac OS X. This flag has
  124. * no meaning on operating systems other than Mac OS X.
  125. */
  126. /* #undef __APPLE_QUARTZ__ */
  127. /*
  128. * USE_X11
  129. *
  130. * Should we use X11 for the current platform
  131. *
  132. */
  133. #define USE_X11 1
  134. /*
  135. * USE_SDL
  136. *
  137. * Should we use SDL for the current platform
  138. * *FIXME* Not yet implemented in configure !
  139. *
  140. */
  141. /* #undef USE_SDL */
  142. /*
  143. * FL_PORTING
  144. *
  145. * A little helper that points to locations in the core that still need
  146. * to be ported to the core driver setup.
  147. * *FIXME* Not yet implemented in configure !
  148. */
  149. /* #undef FL_PORTING */
  150. /*
  151. * HAVE_OVERLAY:
  152. *
  153. * Use the X overlay extension? FLTK will try to use an overlay
  154. * visual for Fl_Overlay_Window, the Gl_Window overlay, and for the
  155. * menus. Setting this to zero will remove a substantial amount of
  156. * code from FLTK. Overlays have only been tested on SGI servers!
  157. */
  158. #define HAVE_OVERLAY 0
  159. /*
  160. * HAVE_GL_OVERLAY:
  161. *
  162. * It is possible your GL has an overlay even if X does not. If so,
  163. * set this to 1.
  164. */
  165. #define HAVE_GL_OVERLAY HAVE_OVERLAY
  166. /*
  167. * WORDS_BIGENDIAN:
  168. *
  169. * Byte order of your machine: 1 = big-endian, 0 = little-endian.
  170. */
  171. #ifdef __APPLE__
  172. #include <mac_endianness.h>
  173. #else
  174. #define WORDS_BIGENDIAN 0
  175. #endif
  176. /*
  177. * U16, U32, U64:
  178. *
  179. * Types used by fl_draw_image. One of U32 or U64 must be defined.
  180. * U16 is optional but FLTK will work better with it!
  181. */
  182. #define U16 unsigned short
  183. #define U32 unsigned
  184. #define U64 unsigned long
  185. /*
  186. * HAVE_DIRENT_H, HAVE_SYS_NDIR_H, HAVE_SYS_DIR_H, HAVE_NDIR_H,
  187. * HAVE_SCANDIR, HAVE_SCANDIR_POSIX:
  188. *
  189. * Where is <dirent.h> (used only by fl_file_chooser and scandir).
  190. */
  191. #define HAVE_DIRENT_H 1
  192. /* #undef HAVE_SYS_NDIR_H */
  193. /* #undef HAVE_SYS_DIR_H */
  194. /* #undef HAVE_NDIR_H */
  195. #define HAVE_SCANDIR 1
  196. #define HAVE_SCANDIR_POSIX 1
  197. /*
  198. * Possibly missing sprintf-style functions:
  199. */
  200. #define HAVE_VSNPRINTF 1
  201. #define HAVE_SNPRINTF 1
  202. /*
  203. * String functions and headers...
  204. */
  205. #define HAVE_STRINGS_H 1
  206. #define HAVE_STRCASECMP 1
  207. /* #undef HAVE_STRLCAT */
  208. /* #undef HAVE_STRLCPY */
  209. /*
  210. * Do we have POSIX locale support?
  211. */
  212. #define HAVE_LOCALE_H 1
  213. #define HAVE_LOCALECONV 1
  214. /*
  215. * HAVE_SYS_SELECT_H:
  216. *
  217. * Whether or not select() call has its own header file.
  218. */
  219. #define HAVE_SYS_SELECT_H 1
  220. /*
  221. * HAVE_SYS_STDTYPES_H:
  222. *
  223. * Whether or not we have the <sys/stdtypes.h> header file.
  224. */
  225. /* #undef HAVE_SYS_STDTYPES_H */
  226. /*
  227. * USE_POLL:
  228. *
  229. * Use the poll() call provided on Linux and Irix instead of select()
  230. */
  231. #define USE_POLL 0
  232. /*
  233. * Do we have various image libraries?
  234. */
  235. #define HAVE_LIBPNG 1
  236. #define HAVE_LIBZ 1
  237. #define HAVE_LIBJPEG 1
  238. #define FLTK_USE_NANOSVG 1
  239. /*
  240. * FLTK_USE_CAIRO
  241. *
  242. * Do we have the cairo library available and want extended cairo use in FLTK ?
  243. * This implies to link cairo.lib in all FLTK based apps.
  244. */
  245. /* #undef FLTK_USE_CAIRO */
  246. /*
  247. * FLTK_HAVE_CAIRO
  248. *
  249. * Do we have the cairo library available?
  250. */
  251. /* #undef FLTK_HAVE_CAIRO */
  252. /*
  253. * Which header file do we include for libpng?
  254. */
  255. #define HAVE_PNG_H 1
  256. /* #undef HAVE_LIBPNG_PNG_H */
  257. /*
  258. * Do we have the png_xyz() functions?
  259. */
  260. #define HAVE_PNG_GET_VALID 1
  261. #define HAVE_PNG_SET_TRNS_TO_ALPHA 1
  262. /*
  263. * Do we have POSIX threading?
  264. */
  265. #define HAVE_PTHREAD 1
  266. #define HAVE_PTHREAD_H 1
  267. /*
  268. * Do we have the ALSA library?
  269. */
  270. #define HAVE_ALSA_ASOUNDLIB_H 1
  271. /*
  272. * Do we have the long long type?
  273. */
  274. #define HAVE_LONG_LONG 1
  275. #ifdef HAVE_LONG_LONG
  276. # define FLTK_LLFMT "%lld"
  277. # define FLTK_LLCAST (long long)
  278. #else
  279. # define FLTK_LLFMT "%ld"
  280. # define FLTK_LLCAST (long)
  281. #endif /* HAVE_LONG_LONG */
  282. /*
  283. * Do we have the dlsym() function and header?
  284. */
  285. #define HAVE_DLFCN_H 1
  286. #define HAVE_DLSYM 1
  287. /*
  288. * Do we want print support?
  289. */
  290. /* #undef FL_NO_PRINT_SUPPORT */
  291. /*
  292. * Do we want filename handling and a filechooser?
  293. * *FIXME* Not yet implemented in configure !
  294. */
  295. /* #undef FL_CFG_NO_FILESYSTEM_SUPPORT */
  296. /*
  297. * End of "$Id: configh.in 12413 2017-09-03 13:14:25Z manolo $".
  298. */