-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigh.in
234 lines (193 loc) · 6.94 KB
/
configh.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
/* -*- mode: C++ -*-
* "$Id$"
*
* This file is used to compile EFltk. It should not be necessary for
* programs that use EFltk to refer to this file, and this file is not
* included by any of the EFltk header files.
*
* If this file is "configh.in" it is the input to ./configure.
*/
#ifndef EFLTK_CONFIG_FILE_INCLUDED
#define EFLTK_CONFIG_FILE_INCLUDED
/* The fltk libraries are compiled as shared libraries ("dlls"). Due
to stupid Windoze stuff, this is passed as a compile-time option,
to avoid having *every* file depend on config.h, and because the
programs linked with fltk *also* need to know this.
*/
/* #define FL_SHARED 0 */
/* Set this to 0 if your system does not have OpenGL. This will
disable all the code in libfltk_gl and disable the demo programs
that use OpenGL.
*/
#define HAVE_GL 0
/* Setting this to zero will delete code to handle X and win32
colormaps, this will save a good deal of code (especially for
fl_draw_image), but fltk will only work on TrueColor visuals.
*/
#define USE_COLORMAP 0
/* Use the new Xft library to draw fonts. If you have a new XServer
with the XRender extension and you have FreeType and some Type1
or TrueType fonts, you will get anti-aliased text. However,
contrary to popular belief, Xft is useful without these. It
replaces a huge amount of cruft used to figure out fonts with
a standardized system. I see no reason Xft cannot be improved
to work at least as well as fltk does at selecting fonts, at
that point there is no reason not to use it.
*/
#define USE_XFT 0
/* Do we have the X double-buffer extension? Turning this on will
make the list_visuals program produce more information.
*/
#define HAVE_XDBE 0
/* Actually try to use the double-buffer extension? Fl_Double_Window
and Fl_Overlay_Window will use this. The new version limits itself
to doing swap without clipping turned on and should work on more
X servers than the fltk1 version.
*/
#ifdef HAVE_XDBE
#define USE_XDBE 0
#endif
/* Did we detect the X overlay extension? This enables code to locate
the overlay visual for use by Fl_Overlay_Window and Fl_Gl_Window.
*/
#define HAVE_OVERLAY 0
/* Use the X overlay extension? FLTK will try to use an overlay
visual for Fl_Overlay_Window and for Fl_Menu_Window (ie the menus
and tooltips). This also adds a substantial amount of code to FLTK
so that it can manage an extra visual. Tested on IRIX and
XFree86. Does not work with current versions of Xft because Xft
cannot handle the colormapped visuals that overlays normally use.
*/
#if USE_XFT
# define USE_OVERLAY 0
#else
# define USE_OVERLAY HAVE_OVERLAY
#endif
/* Does OpenGL have the ability to draw into the overlay? Currently
this uses the same code as X for finding the overlay visual,
however it is possible that future versions of GLX will use
other methods.
*/
#define HAVE_GL_OVERLAY HAVE_OVERLAY
/* Use the OpenGL overlay for Gl_Window::draw_overlay(). There is
probably no reason to turn this off if overlays are possible.
Fonts work even if Xft is used because OpenGL bypasses the Xft
font mechanism.
*/
#if HAVE_GL
# define USE_GL_OVERLAY HAVE_GL_OVERLAY
#else
# define USE_GL_OVERLAY 0
#endif
/* Byte order of your machine: 1 = big-endian, 0 = little-endian.
*/
#define WORDS_BIGENDIAN 0
/* Types used by fl_draw_image. One of U32 or U64 must be defined.
U16 is optional but FLTK will work better with it!
*/
#undef U16
#undef U32
#undef U64
#undef UINT32
#undef UINT16
/* Unix header files that differ on some older systems:
*/
#define HAVE_DIRENT_H 1
#define HAVE_SYS_NDIR_H 0
#define HAVE_SYS_DIR_H 0
#define HAVE_NDIR_H 0
#define HAVE_SCANDIR 0
#define HAVE_SYS_SELECT_H 0
/* Does the system have the really useful snprintf() and vsnprintf()
functions? If not, fltk includes emulation functions. Also see the
fltk/vsnprintf.h header which allows user programs to access these
emulations.
*/
#define HAVE_SNPRINTF 0
#define HAVE_VSNPRINTF 0
/* Possibly missing function and inline replacement: */
#define HAVE_STRCASECMP 0
#if ! HAVE_STRCASECMP
# define strcasecmp(a,b) stricmp(a,b)
# define strncasecmp(a,b,c) strnicmp(a,b,c)
#endif
/* Possibly missing function and inline replacement: */
#define HAVE_STRTOK_R 0
#if ! HAVE_STRTOK_R
# define strtok_r(a,b,c) strtok(a,b)
#endif
/* Use the Posix poll() call instead of select() ? */
#define USE_POLL 0
/* Do we have libpng ? (for reading .png images) */
#define HAVE_PNG 0
/* Do we have libjpeg ? (for reading .jpg images) */
#define HAVE_JPEG 0
/* Enables Fl::lock() and Fl::unlock() on Unix */
#define HAVE_PTHREAD 0
/* Enables fl_load_plugin() on Unix */
#define HAVE_DLOPEN 0
/* Prefix */
#define PREFIX "/usr/local"
/* Where, after ~/.ede, to look for configuration files */
#define CONFIGDIR "/usr/local/share/ede"
/* The BoXX machines (and possibly other Linux machines) have bugs in
the X/OpenGL driver for FireGL for handling hardware overlays. Turn
this on to work around these, but it will cause the overlay to
blink unnecessarily.
*/
#define BOXX_OVERLAY_BUGS 0
/* The SGI 320 NT machines have a bug where the cursor interferes with
the hardware overlay. Turn this on to work around this. I have been
told this slows down display quite a bit on some NT machines.
*/
#define SGI320_BUG 0
/* Enables Windows GUI emulation: clicking on most widgets (such as
buttons) moves the focus to them. This makes some useful GUI designs
impossible.
*/
#define CLICK_MOVES_FOCUS 1
/* Enables Windows GUI emulation: hitting the Alt key navigates the
focus to the menubar. This makes using Alt as a modifier very
difficult because the user can't press it and then change their
mind and release it.
*/
#define ALT_GOES_TO_MENUBAR 1
/* Enables loop unrolling using Duffs looping, this generally
very good way to speed up all image operations, but it make
binary ~80Kb bigger.
*/
#define USE_DUFFS_LOOP 0
/* Disables all assembly code inside Efltk library. */
#define DISABLE_ASM 0
/* Enables NLS localization support */
#define ENABLE_NLS 0
/* Enables UTF8 */
#define HAVE_XUTF8 0
/* Do we have iconv installed */
#define HAVE_ICONV 0
#define ICONV_CONST const
/* Do we have Xutf functions in XLib */
#define HAVE_X11_UTF_TEXT_PROP 0
/* Defined if, math.h float function emulation NOT needed */
#define HAVE_FLOAT_FUNCTIONS 0
#if !HAVE_FLOAT_FUNCTIONS
# define floorf(a) float(floor(float(a)))
# define ceilf(a) float(ceil(float(a)))
# define fmodf(a,b) float(fmod(float(a),float(b)))
# define fabsf(a) float(fabs(float(a)))
# define sinf(a) float(sin(float(a)))
# define cosf(a) float(cos(float(a)))
# define tanf(a) float(tan(float(a)))
# define asinf(a) float(asin(float(a)))
# define acosf(a) float(acos(float(a)))
# define atanf(a) float(atan(float(a)))
# define atan2f(a,b) float(atan2(float(a),float(b)))
# define expf(a) float(exp(float(a)))
# define logf(a) float(log(float(a)))
# define log10f(a) float(log10(float(a)))
# define sqrtf(a) float(sqrt(float(a)))
#endif
#endif /*EFLTK_CONFIG_FILE_INCLUDED*/
/*
* End of "$Id$".
*/