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