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.

205 lines
4.4KB

  1. /*
  2. * "$Id: config.h 4454 2005-07-24 18:41:30Z matt $"
  3. *
  4. * Configuration file for the Fast Light Tool Kit (FLTK) for Visual C++.
  5. *
  6. * Copyright 1998-2010 by Bill Spitzak and others.
  7. *
  8. * This library is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU Library General Public
  10. * License as published by the Free Software Foundation; either
  11. * version 2 of the License, or (at your option) any later version.
  12. *
  13. * This library is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * Library General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Library General Public
  19. * License along with this library; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
  21. * USA.
  22. *
  23. * Please report all bugs and problems on the following page:
  24. *
  25. * http://www.fltk.org/str.php
  26. */
  27. /*
  28. * Where to find files...
  29. */
  30. #define FLTK_DATADIR "C:/FLTK"
  31. #define FLTK_DOCDIR "C:/FLTK/DOC"
  32. /*
  33. * BORDER_WIDTH:
  34. *
  35. * Thickness of FL_UP_BOX and FL_DOWN_BOX. Current 1,2, and 3 are
  36. * supported. 3 is the historic FLTK look. 2 looks more like Microsoft
  37. * Windows, KDE, and Qt, and is the default when building for Windows.
  38. * 1 is a plausible future evolution... Note that this may be simulated
  39. * at runtime by redefining the boxtypes using Fl::set_boxtype().
  40. */
  41. #define BORDER_WIDTH 2
  42. /*
  43. * HAVE_GL:
  44. *
  45. * Do you have OpenGL? Set this to 0 if you don't have or plan to use
  46. * OpenGL, and FLTK will be smaller.
  47. */
  48. #define HAVE_GL 1
  49. /*
  50. * HAVE_GL_GLU_H:
  51. *
  52. * Do you have the OpenGL Utility Library header file?
  53. * (many broken Mesa RPMs do not...)
  54. */
  55. #define HAVE_GL_GLU_H 1
  56. /*
  57. * USE_COLORMAP:
  58. *
  59. * Setting this to zero will save a good deal of code (especially for
  60. * fl_draw_image), but FLTK will only work on TrueColor visuals.
  61. */
  62. #define USE_COLORMAP 1
  63. /*
  64. * HAVE_XDBE:
  65. *
  66. * Do we have the X double-buffer extension?
  67. */
  68. #define HAVE_XDBE 0
  69. /*
  70. * USE_XDBE:
  71. *
  72. * Actually try to use the double-buffer extension? Set this to zero
  73. * disable use of XDBE without breaking the list_visuals program.
  74. */
  75. #define USE_XDBE HAVE_XDBE
  76. /*
  77. * HAVE_OVERLAY:
  78. *
  79. * Use the X overlay extension? FLTK will try to use an overlay
  80. * visual for Fl_Overlay_Window, the Gl_Window overlay, and for the
  81. * menus. Setting this to zero will remove a substantial amount of
  82. * code from FLTK. Overlays have only been tested on SGI servers!
  83. */
  84. #define HAVE_OVERLAY 0
  85. /*
  86. * HAVE_GL_OVERLAY:
  87. *
  88. * It is possible your GL has an overlay even if X does not. If so,
  89. * set this to 1.
  90. */
  91. #define HAVE_GL_OVERLAY 1
  92. /*
  93. * WORDS_BIGENDIAN:
  94. *
  95. * Byte order of your machine: 1 = big-endian, 0 = little-endian.
  96. */
  97. #define WORDS_BIGENDIAN 0
  98. /*
  99. * U16, U32, U64:
  100. *
  101. * Types used by fl_draw_image. One of U32 or U64 must be defined.
  102. * U16 is optional but FLTK will work better with it!
  103. */
  104. #define U16 unsigned short
  105. #define U32 unsigned
  106. #undef U64
  107. /*
  108. * HAVE_DIRENT_H, HAVE_SYS_NDIR_H, HAVE_SYS_DIR_H, HAVE_NDIR_H, HAVE_SCANDIR:
  109. *
  110. * Where is <dirent.h> (used only by fl_file_chooser and scandir).
  111. */
  112. /*#undef HAVE_DIRENT_H */
  113. /*#undef HAVE_SYS_NDIR_H */
  114. /*#undef HAVE_SYS_DIR_H */
  115. /*#undef HAVE_NDIR_H */
  116. /*#undef HAVE_SCANDIR */
  117. /*
  118. * Possibly missing sprintf-style functions:
  119. */
  120. #undef HAVE_VSNPRINTF
  121. #undef HAVE_SNPRINTF
  122. /*
  123. * String functions...
  124. */
  125. #define HAVE_STRCASECMP 1
  126. /*#undef HAVE_STRLCAT*/
  127. /*#undef HAVE_STRLCPY*/
  128. /*
  129. * Do we have POSIX locale support?
  130. */
  131. #define HAVE_LOCALE_H 1
  132. #define HAVE_LOCALECONV 1
  133. /*
  134. * HAVE_POLL:
  135. *
  136. * Use poll() if we don't have select().
  137. */
  138. #define HAVE_POLL 0
  139. /*
  140. * Do we have various image libraries?
  141. */
  142. #define HAVE_LIBPNG
  143. #define HAVE_LIBZ
  144. #define HAVE_LIBJPEG
  145. /*
  146. * Do we have Cairo ?
  147. */
  148. // uncomment the following for using cairo
  149. // #define FLTK_HAVE_CAIRO 1
  150. /*
  151. * Which header file do we include for libpng?
  152. */
  153. #define HAVE_PNG_H
  154. #undef HAVE_LIBPNG_PNG_H
  155. /*
  156. * Do we have the png_xyz() functions?
  157. */
  158. #define HAVE_PNG_GET_VALID
  159. #define HAVE_PNG_SET_TRNS_TO_ALPHA
  160. /*
  161. * End of "$Id: config.h 4454 2005-07-24 18:41:30Z matt $".
  162. */