]>
Commit | Line | Data |
---|---|---|
b45f79ec VZ |
1 | /* |
2 | * Name: wx/chkconf.h | |
3 | * Purpose: check the config settings for consistency | |
4 | * Author: Vadim Zeitlin | |
5 | * Modified by: | |
6 | * Created: 09.08.00 | |
7 | * RCS-ID: $Id$ | |
8 | * Copyright: (c) 2000 Vadim Zeitlin <vadim@wxwidgets.org> | |
9 | * Licence: wxWindows licence | |
10 | */ | |
1e6feb95 VZ |
11 | |
12 | /* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */ | |
13 | ||
01ebf752 | 14 | /* |
b55c3716 | 15 | Platform-specific checking. |
01ebf752 JS |
16 | */ |
17 | ||
4055ed82 | 18 | #if defined(__WXPALMOS__) |
ffecfa5a | 19 | # include "wx/palmos/chkconf.h" |
69dada2e VZ |
20 | #elif defined(__WXWINCE__) |
21 | # include "wx/msw/wince/chkconf.h" | |
ffecfa5a | 22 | #elif defined(__WXMSW__) |
01ebf752 JS |
23 | # include "wx/msw/chkconf.h" |
24 | #elif defined(__WXMAC__) | |
25 | # include "wx/mac/chkconf.h" | |
cb7d7375 WS |
26 | #elif defined(__OS2__) |
27 | # include "wx/os2/chkconf.h" | |
b8af111f WS |
28 | #elif defined(__WXMGL__) |
29 | # include "wx/mgl/chkconf.h" | |
b3c86150 VS |
30 | #elif defined(__WXDFB__) |
31 | # include "wx/dfb/chkconf.h" | |
b45f79ec | 32 | #elif defined(__WXMOTIF__) |
5c7c67fd | 33 | # include "wx/motif/chkconf.h" |
05024233 VS |
34 | #elif defined(__WXX11__) |
35 | # include "wx/x11/chkconf.h" | |
01ebf752 JS |
36 | #endif |
37 | ||
4353a8df VZ |
38 | #ifdef __WXUNIVERSAL__ |
39 | # include "wx/univ/chkconf.h" | |
40 | #endif | |
41 | ||
1e6feb95 | 42 | /* |
730dfeb4 | 43 | this global setting determines what should we do if the setting FOO |
8a43eaec VZ |
44 | requires BAR and BAR is not set: we can either silently unset FOO as well |
45 | (do this if you're trying to build the smallest possible library) or give an | |
46 | error and abort (default as leads to least surprizing behaviour) | |
1e6feb95 VZ |
47 | */ |
48 | #define wxABORT_ON_CONFIG_ERROR | |
49 | ||
6962f34e VZ |
50 | /* |
51 | global features | |
52 | */ | |
53 | ||
54 | /* GUI build by default */ | |
55 | #if !defined(wxUSE_GUI) | |
56 | # define wxUSE_GUI 1 | |
57 | #endif /* !defined(wxUSE_GUI) */ | |
58 | ||
1bbcb0d5 VZ |
59 | /* |
60 | If we're compiling without support for threads/exceptions we have to | |
61 | disable the corresponding features. | |
62 | */ | |
63 | #ifdef wxNO_THREADS | |
64 | # undef wxUSE_THREADS | |
65 | # define wxUSE_THREADS 0 | |
66 | #endif /* wxNO_THREADS */ | |
67 | ||
68 | #ifdef wxNO_EXCEPTIONS | |
69 | # undef wxUSE_EXCEPTIONS | |
70 | # define wxUSE_EXCEPTIONS 0 | |
71 | #endif /* wxNO_EXCEPTIONS */ | |
72 | ||
4652511f VZ |
73 | /* we also must disable exceptions if compiler doesn't support them */ |
74 | #if defined(_MSC_VER) && !defined(_CPPUNWIND) | |
75 | # undef wxUSE_EXCEPTIONS | |
76 | # define wxUSE_EXCEPTIONS 0 | |
77 | #endif /* VC++ without exceptions support */ | |
78 | ||
1bbcb0d5 | 79 | |
1e6feb95 | 80 | /* |
03169422 | 81 | tests for non GUI features |
e16514bf VZ |
82 | |
83 | please keep the options in alphabetical order! | |
03169422 RL |
84 | */ |
85 | ||
0c46d866 | 86 | #ifndef wxUSE_CRASHREPORT |
7e0aee72 VZ |
87 | /* this one is special: as currently it is Windows-only, don't force it |
88 | to be defined on other platforms */ | |
89 | # if defined(wxABORT_ON_CONFIG_ERROR) && defined(__WXMSW__) | |
0c46d866 VZ |
90 | # error "wxUSE_CRASHREPORT must be defined." |
91 | # else | |
92 | # define wxUSE_CRASHREPORT 0 | |
93 | # endif | |
94 | #endif /* !defined(wxUSE_CRASHREPORT) */ | |
95 | ||
03169422 RL |
96 | #ifndef wxUSE_DYNLIB_CLASS |
97 | # ifdef wxABORT_ON_CONFIG_ERROR | |
98 | # error "wxUSE_DYNLIB_CLASS must be defined." | |
99 | # else | |
100 | # define wxUSE_DYNLIB_CLASS 0 | |
101 | # endif | |
102 | #endif /* !defined(wxUSE_DYNLIB_CLASS) */ | |
103 | ||
4199367e VZ |
104 | #ifndef wxUSE_EXCEPTIONS |
105 | # ifdef wxABORT_ON_CONFIG_ERROR | |
106 | # error "wxUSE_EXCEPTIONS must be defined." | |
107 | # else | |
108 | # define wxUSE_EXCEPTIONS 0 | |
109 | # endif | |
110 | #endif /* !defined(wxUSE_EXCEPTIONS) */ | |
111 | ||
c7f3eecc VZ |
112 | #ifndef wxUSE_FILESYSTEM |
113 | # ifdef wxABORT_ON_CONFIG_ERROR | |
114 | # error "wxUSE_FILESYSTEM must be defined." | |
115 | # else | |
116 | # define wxUSE_FILESYSTEM 0 | |
117 | # endif | |
118 | #endif /* !defined(wxUSE_FILESYSTEM) */ | |
119 | ||
6fb17fd5 | 120 | /* don't give an error about this one yet, it's not fully implemented */ |
05815ab3 | 121 | #ifndef wxUSE_FSVOLUME |
6fb17fd5 | 122 | # define wxUSE_FSVOLUME 0 |
05815ab3 VZ |
123 | #endif /* !defined(wxUSE_FSVOLUME) */ |
124 | ||
03169422 RL |
125 | #ifndef wxUSE_DYNAMIC_LOADER |
126 | # ifdef wxABORT_ON_CONFIG_ERROR | |
127 | # error "wxUSE_DYNAMIC_LOADER must be defined." | |
128 | # else | |
129 | # define wxUSE_DYNAMIC_LOADER 0 | |
130 | # endif | |
131 | #endif /* !defined(wxUSE_DYNAMIC_LOADER) */ | |
132 | ||
a5d46b73 VZ |
133 | #ifndef wxUSE_LOG |
134 | # ifdef wxABORT_ON_CONFIG_ERROR | |
135 | # error "wxUSE_LOG must be defined." | |
136 | # else | |
137 | # define wxUSE_LOG 0 | |
138 | # endif | |
139 | #endif /* !defined(wxUSE_LOG) */ | |
140 | ||
141 | #ifndef wxUSE_LONGLONG | |
142 | # ifdef wxABORT_ON_CONFIG_ERROR | |
143 | # error "wxUSE_LONGLONG must be defined." | |
144 | # else | |
145 | # define wxUSE_LONGLONG 0 | |
146 | # endif | |
147 | #endif /* !defined(wxUSE_LONGLONG) */ | |
148 | ||
149 | #ifndef wxUSE_MIMETYPE | |
150 | # ifdef wxABORT_ON_CONFIG_ERROR | |
151 | # error "wxUSE_MIMETYPE must be defined." | |
152 | # else | |
153 | # define wxUSE_MIMETYPE 0 | |
154 | # endif | |
155 | #endif /* !defined(wxUSE_MIMETYPE) */ | |
156 | ||
0c46d866 VZ |
157 | #ifndef wxUSE_ON_FATAL_EXCEPTION |
158 | # ifdef wxABORT_ON_CONFIG_ERROR | |
159 | # error "wxUSE_ON_FATAL_EXCEPTION must be defined." | |
160 | # else | |
161 | # define wxUSE_ON_FATAL_EXCEPTION 0 | |
162 | # endif | |
163 | #endif /* !defined(wxUSE_ON_FATAL_EXCEPTION) */ | |
164 | ||
7a828c7f VZ |
165 | #ifndef wxUSE_PRINTF_POS_PARAMS |
166 | # ifdef wxABORT_ON_CONFIG_ERROR | |
167 | # error "wxUSE_PRINTF_POS_PARAMS must be defined." | |
168 | # else | |
169 | # define wxUSE_PRINTF_POS_PARAMS 0 | |
170 | # endif | |
171 | #endif /* !defined(wxUSE_PRINTF_POS_PARAMS) */ | |
172 | ||
a5d46b73 VZ |
173 | #ifndef wxUSE_PROTOCOL |
174 | # ifdef wxABORT_ON_CONFIG_ERROR | |
175 | # error "wxUSE_PROTOCOL must be defined." | |
176 | # else | |
177 | # define wxUSE_PROTOCOL 0 | |
178 | # endif | |
179 | #endif /* !defined(wxUSE_PROTOCOL) */ | |
180 | ||
181 | /* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */ | |
182 | #if !wxUSE_PROTOCOL | |
183 | # undef wxUSE_PROTOCOL_HTTP | |
184 | # undef wxUSE_PROTOCOL_FTP | |
185 | # undef wxUSE_PROTOCOL_FILE | |
186 | # define wxUSE_PROTOCOL_HTTP 0 | |
187 | # define wxUSE_PROTOCOL_FTP 0 | |
188 | # define wxUSE_PROTOCOL_FILE 0 | |
189 | #endif /* wxUSE_PROTOCOL */ | |
190 | ||
191 | #ifndef wxUSE_PROTOCOL_HTTP | |
192 | # ifdef wxABORT_ON_CONFIG_ERROR | |
193 | # error "wxUSE_PROTOCOL_HTTP must be defined." | |
194 | # else | |
195 | # define wxUSE_PROTOCOL_HTTP 0 | |
196 | # endif | |
197 | #endif /* !defined(wxUSE_PROTOCOL_HTTP) */ | |
198 | ||
199 | #ifndef wxUSE_PROTOCOL_FTP | |
200 | # ifdef wxABORT_ON_CONFIG_ERROR | |
201 | # error "wxUSE_PROTOCOL_FTP must be defined." | |
202 | # else | |
203 | # define wxUSE_PROTOCOL_FTP 0 | |
204 | # endif | |
205 | #endif /* !defined(wxUSE_PROTOCOL_FTP) */ | |
206 | ||
207 | #ifndef wxUSE_PROTOCOL_FILE | |
208 | # ifdef wxABORT_ON_CONFIG_ERROR | |
209 | # error "wxUSE_PROTOCOL_FILE must be defined." | |
210 | # else | |
211 | # define wxUSE_PROTOCOL_FILE 0 | |
212 | # endif | |
213 | #endif /* !defined(wxUSE_PROTOCOL_FILE) */ | |
214 | ||
215 | #ifndef wxUSE_REGEX | |
216 | # ifdef wxABORT_ON_CONFIG_ERROR | |
217 | # error "wxUSE_REGEX must be defined." | |
218 | # else | |
219 | # define wxUSE_REGEX 0 | |
220 | # endif | |
221 | #endif /* !defined(wxUSE_REGEX) */ | |
222 | ||
07158944 VZ |
223 | #ifndef wxUSE_STDPATHS |
224 | # ifdef wxABORT_ON_CONFIG_ERROR | |
225 | # error "wxUSE_STDPATHS must be defined." | |
226 | # else | |
227 | # define wxUSE_STDPATHS 1 | |
228 | # endif | |
229 | #endif /* !defined(wxUSE_STDPATHS) */ | |
230 | ||
27b0c286 VS |
231 | #ifndef wxUSE_XML |
232 | # ifdef wxABORT_ON_CONFIG_ERROR | |
233 | # error "wxUSE_XML must be defined." | |
234 | # else | |
235 | # define wxUSE_XML 0 | |
236 | # endif | |
237 | #endif /* !defined(wxUSE_XML) */ | |
238 | ||
a5d46b73 VZ |
239 | #ifndef wxUSE_SOCKETS |
240 | # ifdef wxABORT_ON_CONFIG_ERROR | |
241 | # error "wxUSE_SOCKETS must be defined." | |
242 | # else | |
243 | # define wxUSE_SOCKETS 0 | |
244 | # endif | |
245 | #endif /* !defined(wxUSE_SOCKETS) */ | |
246 | ||
247 | #ifndef wxUSE_STREAMS | |
248 | # ifdef wxABORT_ON_CONFIG_ERROR | |
249 | # error "wxUSE_STREAMS must be defined." | |
250 | # else | |
251 | # define wxUSE_STREAMS 0 | |
252 | # endif | |
253 | #endif /* !defined(wxUSE_STREAMS) */ | |
254 | ||
255 | #ifndef wxUSE_STOPWATCH | |
256 | # ifdef wxABORT_ON_CONFIG_ERROR | |
257 | # error "wxUSE_STOPWATCH must be defined." | |
258 | # else | |
259 | # define wxUSE_STOPWATCH 0 | |
260 | # endif | |
261 | #endif /* !defined(wxUSE_STOPWATCH) */ | |
262 | ||
263 | #ifndef wxUSE_TEXTBUFFER | |
264 | # ifdef wxABORT_ON_CONFIG_ERROR | |
265 | # error "wxUSE_TEXTBUFFER must be defined." | |
266 | # else | |
267 | # define wxUSE_TEXTBUFFER 0 | |
268 | # endif | |
269 | #endif /* !defined(wxUSE_TEXTBUFFER) */ | |
270 | ||
271 | #ifndef wxUSE_TEXTFILE | |
272 | # ifdef wxABORT_ON_CONFIG_ERROR | |
273 | # error "wxUSE_TEXTFILE must be defined." | |
274 | # else | |
275 | # define wxUSE_TEXTFILE 0 | |
276 | # endif | |
277 | #endif /* !defined(wxUSE_TEXTFILE) */ | |
278 | ||
279 | #ifndef wxUSE_UNICODE | |
280 | # ifdef wxABORT_ON_CONFIG_ERROR | |
281 | # error "wxUSE_UNICODE must be defined." | |
282 | # else | |
283 | # define wxUSE_UNICODE 0 | |
284 | # endif | |
285 | #endif /* !defined(wxUSE_UNICODE) */ | |
286 | ||
287 | #ifndef wxUSE_URL | |
288 | # ifdef wxABORT_ON_CONFIG_ERROR | |
289 | # error "wxUSE_URL must be defined." | |
290 | # else | |
291 | # define wxUSE_URL 0 | |
292 | # endif | |
293 | #endif /* !defined(wxUSE_URL) */ | |
294 | ||
ca5c6ac3 VZ |
295 | #ifndef wxUSE_VARIANT |
296 | # ifdef wxABORT_ON_CONFIG_ERROR | |
297 | # error "wxUSE_VARIANT must be defined." | |
298 | # else | |
299 | # define wxUSE_VARIANT 0 | |
300 | # endif | |
301 | #endif /* wxUSE_VARIANT */ | |
302 | ||
03169422 RL |
303 | /* |
304 | all these tests are for GUI only | |
e16514bf VZ |
305 | |
306 | please keep the options in alphabetical order! | |
1e6feb95 VZ |
307 | */ |
308 | #if wxUSE_GUI | |
309 | ||
310 | /* | |
311 | all of the settings tested below must be defined or we'd get an error from | |
312 | preprocessor about invalid integer expression | |
313 | */ | |
314 | ||
315 | #ifndef wxUSE_ACCEL | |
316 | # ifdef wxABORT_ON_CONFIG_ERROR | |
317 | # error "wxUSE_ACCEL must be defined." | |
318 | # else | |
319 | # define wxUSE_ACCEL 0 | |
320 | # endif | |
321 | #endif /* !defined(wxUSE_ACCEL) */ | |
322 | ||
8d37334f VZ |
323 | #ifndef wxUSE_BITMAPCOMBOBOX |
324 | # ifdef wxABORT_ON_CONFIG_ERROR | |
325 | # error "wxUSE_BITMAPCOMBOBOX must be defined." | |
326 | # else | |
327 | # define wxUSE_BITMAPCOMBOBOX 0 | |
328 | # endif | |
329 | #endif /* !defined(wxUSE_BITMAPCOMBOBOX) */ | |
330 | ||
1e6feb95 VZ |
331 | #ifndef wxUSE_BMPBUTTON |
332 | # ifdef wxABORT_ON_CONFIG_ERROR | |
333 | # error "wxUSE_BMPBUTTON must be defined." | |
334 | # else | |
335 | # define wxUSE_BMPBUTTON 0 | |
336 | # endif | |
337 | #endif /* !defined(wxUSE_BMPBUTTON) */ | |
338 | ||
339 | #ifndef wxUSE_BUTTON | |
340 | # ifdef wxABORT_ON_CONFIG_ERROR | |
341 | # error "wxUSE_BUTTON must be defined." | |
342 | # else | |
343 | # define wxUSE_BUTTON 0 | |
344 | # endif | |
345 | #endif /* !defined(wxUSE_BUTTON) */ | |
346 | ||
347 | #ifndef wxUSE_CALENDARCTRL | |
348 | # ifdef wxABORT_ON_CONFIG_ERROR | |
349 | # error "wxUSE_CALENDARCTRL must be defined." | |
350 | # else | |
351 | # define wxUSE_CALENDARCTRL 0 | |
352 | # endif | |
353 | #endif /* !defined(wxUSE_CALENDARCTRL) */ | |
354 | ||
355 | #ifndef wxUSE_CARET | |
356 | # ifdef wxABORT_ON_CONFIG_ERROR | |
357 | # error "wxUSE_CARET must be defined." | |
358 | # else | |
359 | # define wxUSE_CARET 0 | |
360 | # endif | |
361 | #endif /* !defined(wxUSE_CARET) */ | |
362 | ||
363 | #ifndef wxUSE_CHECKBOX | |
364 | # ifdef wxABORT_ON_CONFIG_ERROR | |
365 | # error "wxUSE_CHECKBOX must be defined." | |
366 | # else | |
367 | # define wxUSE_CHECKBOX 0 | |
368 | # endif | |
369 | #endif /* !defined(wxUSE_CHECKBOX) */ | |
370 | ||
371 | #ifndef wxUSE_CHECKLISTBOX | |
372 | # ifdef wxABORT_ON_CONFIG_ERROR | |
373 | # error "wxUSE_CHECKLISTBOX must be defined." | |
374 | # else | |
375 | # define wxUSE_CHECKLISTBOX 0 | |
376 | # endif | |
377 | #endif /* !defined(wxUSE_CHECKLISTBOX) */ | |
378 | ||
379 | #ifndef wxUSE_CHOICE | |
380 | # ifdef wxABORT_ON_CONFIG_ERROR | |
381 | # error "wxUSE_CHOICE must be defined." | |
382 | # else | |
383 | # define wxUSE_CHOICE 0 | |
384 | # endif | |
385 | #endif /* !defined(wxUSE_CHOICE) */ | |
386 | ||
f5e0b4bc WS |
387 | #ifndef wxUSE_CHOICEBOOK |
388 | # ifdef wxABORT_ON_CONFIG_ERROR | |
389 | # error "wxUSE_CHOICEBOOK must be defined." | |
390 | # else | |
391 | # define wxUSE_CHOICEBOOK 0 | |
392 | # endif | |
393 | #endif /* !defined(wxUSE_CHOICEBOOK) */ | |
394 | ||
3379ed37 VZ |
395 | #ifndef wxUSE_CHOICEDLG |
396 | # ifdef wxABORT_ON_CONFIG_ERROR | |
397 | # error "wxUSE_CHOICEDLG must be defined." | |
398 | # else | |
399 | # define wxUSE_CHOICEDLG 0 | |
400 | # endif | |
401 | #endif /* !defined(wxUSE_CHOICEDLG) */ | |
402 | ||
1e6feb95 VZ |
403 | #ifndef wxUSE_CLIPBOARD |
404 | # ifdef wxABORT_ON_CONFIG_ERROR | |
405 | # error "wxUSE_CLIPBOARD must be defined." | |
406 | # else | |
407 | # define wxUSE_CLIPBOARD 0 | |
408 | # endif | |
409 | #endif /* !defined(wxUSE_CLIPBOARD) */ | |
410 | ||
a2c0a9c5 VZ |
411 | #ifndef wxUSE_COLOURDLG |
412 | # ifdef wxABORT_ON_CONFIG_ERROR | |
413 | # error "wxUSE_COLOURDLG must be defined." | |
414 | # else | |
415 | # define wxUSE_COLOURDLG 0 | |
416 | # endif | |
417 | #endif /* !defined(wxUSE_COLOURDLG) */ | |
418 | ||
ec376c8f VZ |
419 | #ifndef wxUSE_COLOURPICKERCTRL |
420 | # ifdef wxABORT_ON_CONFIG_ERROR | |
421 | # error "wxUSE_COLOURPICKERCTRL must be defined." | |
422 | # else | |
423 | # define wxUSE_COLOURPICKERCTRL 0 | |
424 | # endif | |
425 | #endif /* !defined(wxUSE_COLOURPICKERCTRL) */ | |
426 | ||
1e6feb95 VZ |
427 | #ifndef wxUSE_COMBOBOX |
428 | # ifdef wxABORT_ON_CONFIG_ERROR | |
429 | # error "wxUSE_COMBOBOX must be defined." | |
430 | # else | |
431 | # define wxUSE_COMBOBOX 0 | |
432 | # endif | |
433 | #endif /* !defined(wxUSE_COMBOBOX) */ | |
434 | ||
a57d600f | 435 | #ifndef wxUSE_COMBOCTRL |
481e2766 | 436 | # ifdef wxABORT_ON_CONFIG_ERROR |
a57d600f | 437 | # error "wxUSE_COMBOCTRL must be defined." |
481e2766 | 438 | # else |
a57d600f | 439 | # define wxUSE_COMBOCTRL 0 |
481e2766 | 440 | # endif |
a57d600f | 441 | #endif /* !defined(wxUSE_COMBOCTRL) */ |
481e2766 | 442 | |
1e6feb95 VZ |
443 | #ifndef wxUSE_DATAOBJ |
444 | # ifdef wxABORT_ON_CONFIG_ERROR | |
445 | # error "wxUSE_DATAOBJ must be defined." | |
446 | # else | |
447 | # define wxUSE_DATAOBJ 0 | |
448 | # endif | |
449 | #endif /* !defined(wxUSE_DATAOBJ) */ | |
450 | ||
e16514bf VZ |
451 | #ifndef wxUSE_DATAVIEWCTRL |
452 | # ifdef wxABORT_ON_CONFIG_ERROR | |
453 | # error "wxUSE_DATAVIEWCTRL must be defined." | |
454 | # else | |
455 | # define wxUSE_DATAVIEWCTRL 0 | |
456 | # endif | |
457 | #endif /* !defined(wxUSE_DATAVIEWCTRL) */ | |
458 | ||
337dc4c1 WS |
459 | #ifndef wxUSE_DATEPICKCTRL |
460 | # ifdef wxABORT_ON_CONFIG_ERROR | |
461 | # error "wxUSE_DATEPICKCTRL must be defined." | |
462 | # else | |
463 | # define wxUSE_DATEPICKCTRL 0 | |
464 | # endif | |
465 | #endif /* !defined(wxUSE_DATEPICKCTRL) */ | |
466 | ||
ec376c8f VZ |
467 | #ifndef wxUSE_DIRPICKERCTRL |
468 | # ifdef wxABORT_ON_CONFIG_ERROR | |
469 | # error "wxUSE_DIRPICKERCTRL must be defined." | |
470 | # else | |
471 | # define wxUSE_DIRPICKERCTRL 0 | |
472 | # endif | |
473 | #endif /* !defined(wxUSE_DIRPICKERCTRL) */ | |
474 | ||
f8ba082e VZ |
475 | #ifndef wxUSE_DISPLAY |
476 | # ifdef wxABORT_ON_CONFIG_ERROR | |
477 | # error "wxUSE_DISPLAY must be defined." | |
478 | # else | |
479 | # define wxUSE_DISPLAY 0 | |
480 | # endif | |
481 | #endif /* !defined(wxUSE_DISPLAY) */ | |
482 | ||
3379ed37 VZ |
483 | #ifndef wxUSE_DOC_VIEW_ARCHITECTURE |
484 | # ifdef wxABORT_ON_CONFIG_ERROR | |
485 | # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined." | |
486 | # else | |
487 | # define wxUSE_DOC_VIEW_ARCHITECTURE 0 | |
488 | # endif | |
489 | #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */ | |
490 | ||
1e6feb95 VZ |
491 | #ifndef wxUSE_FILEDLG |
492 | # ifdef wxABORT_ON_CONFIG_ERROR | |
493 | # error "wxUSE_FILEDLG must be defined." | |
494 | # else | |
495 | # define wxUSE_FILEDLG 0 | |
496 | # endif | |
497 | #endif /* !defined(wxUSE_FILEDLG) */ | |
498 | ||
ec376c8f VZ |
499 | #ifndef wxUSE_FILEPICKERCTRL |
500 | # ifdef wxABORT_ON_CONFIG_ERROR | |
501 | # error "wxUSE_FILEPICKERCTRL must be defined." | |
502 | # else | |
503 | # define wxUSE_FILEPICKERCTRL 0 | |
504 | # endif | |
505 | #endif /* !defined(wxUSE_FILEPICKERCTRL) */ | |
506 | ||
1e6feb95 VZ |
507 | #ifndef wxUSE_FONTDLG |
508 | # ifdef wxABORT_ON_CONFIG_ERROR | |
509 | # error "wxUSE_FONTDLG must be defined." | |
510 | # else | |
511 | # define wxUSE_FONTDLG 0 | |
512 | # endif | |
513 | #endif /* !defined(wxUSE_FONTDLG) */ | |
514 | ||
515 | #ifndef wxUSE_FONTMAP | |
516 | # ifdef wxABORT_ON_CONFIG_ERROR | |
517 | # error "wxUSE_FONTMAP must be defined." | |
518 | # else | |
519 | # define wxUSE_FONTMAP 0 | |
520 | # endif | |
521 | #endif /* !defined(wxUSE_FONTMAP) */ | |
522 | ||
ec376c8f VZ |
523 | #ifndef wxUSE_FONTPICKERCTRL |
524 | # ifdef wxABORT_ON_CONFIG_ERROR | |
525 | # error "wxUSE_FONTPICKERCTRL must be defined." | |
526 | # else | |
527 | # define wxUSE_FONTPICKERCTRL 0 | |
528 | # endif | |
529 | #endif /* !defined(wxUSE_FONTPICKERCTRL) */ | |
530 | ||
1e6feb95 VZ |
531 | #ifndef wxUSE_GAUGE |
532 | # ifdef wxABORT_ON_CONFIG_ERROR | |
533 | # error "wxUSE_GAUGE must be defined." | |
534 | # else | |
535 | # define wxUSE_GAUGE 0 | |
536 | # endif | |
537 | #endif /* !defined(wxUSE_GAUGE) */ | |
538 | ||
539 | #ifndef wxUSE_GRID | |
540 | # ifdef wxABORT_ON_CONFIG_ERROR | |
541 | # error "wxUSE_GRID must be defined." | |
542 | # else | |
543 | # define wxUSE_GRID 0 | |
544 | # endif | |
545 | #endif /* !defined(wxUSE_GRID) */ | |
546 | ||
3379ed37 VZ |
547 | #ifndef wxUSE_HELP |
548 | # ifdef wxABORT_ON_CONFIG_ERROR | |
549 | # error "wxUSE_HELP must be defined." | |
550 | # else | |
551 | # define wxUSE_HELP 0 | |
552 | # endif | |
553 | #endif /* !defined(wxUSE_HELP) */ | |
554 | ||
17e91437 VZ |
555 | #ifndef wxUSE_HYPERLINKCTRL |
556 | # ifdef wxABORT_ON_CONFIG_ERROR | |
557 | # error "wxUSE_HYPERLINKCTRL must be defined." | |
558 | # else | |
559 | # define wxUSE_HYPERLINKCTRL 0 | |
560 | # endif | |
561 | #endif /* !defined(wxUSE_HYPERLINKCTRL) */ | |
562 | ||
05dcbb8e VZ |
563 | #ifndef wxUSE_HTML |
564 | # ifdef wxABORT_ON_CONFIG_ERROR | |
565 | # error "wxUSE_HTML must be defined." | |
566 | # else | |
567 | # define wxUSE_HTML 0 | |
568 | # endif | |
569 | #endif /* !defined(wxUSE_HTML) */ | |
570 | ||
c839485c VS |
571 | #ifndef wxUSE_LIBMSPACK |
572 | # ifndef __UNIX__ | |
573 | /* set to 0 on platforms that don't have libmspack */ | |
574 | # define wxUSE_LIBMSPACK 0 | |
575 | # else | |
576 | # ifdef wxABORT_ON_CONFIG_ERROR | |
577 | # error "wxUSE_LIBMSPACK must be defined." | |
578 | # else | |
579 | # define wxUSE_LIBMSPACK 0 | |
580 | # endif | |
581 | # endif | |
582 | #endif /* !defined(wxUSE_LIBMSPACK) */ | |
583 | ||
658974ae VS |
584 | #ifndef wxUSE_ICO_CUR |
585 | # ifdef wxABORT_ON_CONFIG_ERROR | |
586 | # error "wxUSE_ICO_CUR must be defined." | |
587 | # else | |
588 | # define wxUSE_ICO_CUR 0 | |
589 | # endif | |
590 | #endif /* !defined(wxUSE_ICO_CUR) */ | |
591 | ||
1663afc0 VS |
592 | #ifndef wxUSE_IFF |
593 | # ifdef wxABORT_ON_CONFIG_ERROR | |
594 | # error "wxUSE_IFF must be defined." | |
595 | # else | |
596 | # define wxUSE_IFF 0 | |
597 | # endif | |
598 | #endif /* !defined(wxUSE_IFF) */ | |
599 | ||
1e6feb95 VZ |
600 | #ifndef wxUSE_IMAGLIST |
601 | # ifdef wxABORT_ON_CONFIG_ERROR | |
602 | # error "wxUSE_IMAGLIST must be defined." | |
603 | # else | |
604 | # define wxUSE_IMAGLIST 0 | |
605 | # endif | |
606 | #endif /* !defined(wxUSE_IMAGLIST) */ | |
607 | ||
2131b89d VZ |
608 | #ifndef wxUSE_JOYSTICK |
609 | # ifdef wxABORT_ON_CONFIG_ERROR | |
610 | # error "wxUSE_JOYSTICK must be defined." | |
611 | # else | |
612 | # define wxUSE_JOYSTICK 0 | |
613 | # endif | |
614 | #endif /* !defined(wxUSE_JOYSTICK) */ | |
615 | ||
5b5e4f32 VZ |
616 | #ifndef wxUSE_LISTBOOK |
617 | # ifdef wxABORT_ON_CONFIG_ERROR | |
618 | # error "wxUSE_LISTBOOK must be defined." | |
619 | # else | |
620 | # define wxUSE_LISTBOOK 0 | |
621 | # endif | |
622 | #endif /* !defined(wxUSE_LISTBOOK) */ | |
623 | ||
1e6feb95 VZ |
624 | #ifndef wxUSE_LISTBOX |
625 | # ifdef wxABORT_ON_CONFIG_ERROR | |
626 | # error "wxUSE_LISTBOX must be defined." | |
627 | # else | |
628 | # define wxUSE_LISTBOX 0 | |
629 | # endif | |
630 | #endif /* !defined(wxUSE_LISTBOX) */ | |
631 | ||
632 | #ifndef wxUSE_LISTCTRL | |
633 | # ifdef wxABORT_ON_CONFIG_ERROR | |
634 | # error "wxUSE_LISTCTRL must be defined." | |
635 | # else | |
636 | # define wxUSE_LISTCTRL 0 | |
637 | # endif | |
638 | #endif /* !defined(wxUSE_LISTCTRL) */ | |
639 | ||
3379ed37 VZ |
640 | #ifndef wxUSE_LOGGUI |
641 | # ifdef wxABORT_ON_CONFIG_ERROR | |
642 | # error "wxUSE_LOGGUI must be defined." | |
643 | # else | |
644 | # define wxUSE_LOGGUI 0 | |
645 | # endif | |
646 | #endif /* !defined(wxUSE_LOGGUI) */ | |
647 | ||
648 | #ifndef wxUSE_LOGWINDOW | |
649 | # ifdef wxABORT_ON_CONFIG_ERROR | |
650 | # error "wxUSE_LOGWINDOW must be defined." | |
651 | # else | |
652 | # define wxUSE_LOGWINDOW 0 | |
653 | # endif | |
654 | #endif /* !defined(wxUSE_LOGWINDOW) */ | |
e421922f | 655 | |
3e6e2754 JS |
656 | #ifndef wxUSE_LOG_DIALOG |
657 | # ifdef wxABORT_ON_CONFIG_ERROR | |
658 | # error "wxUSE_LOG_DIALOG must be defined." | |
659 | # else | |
660 | # define wxUSE_LOG_DIALOG 0 | |
661 | # endif | |
71908213 | 662 | #endif /* !defined(wxUSE_LOG_DIALOG) */ |
3e6e2754 | 663 | |
efd17a1d VZ |
664 | #ifndef wxUSE_MDI |
665 | # ifdef wxABORT_ON_CONFIG_ERROR | |
666 | # error "wxUSE_MDI must be defined." | |
667 | # else | |
668 | # define wxUSE_MDI 0 | |
669 | # endif | |
670 | #endif /* !defined(wxUSE_MDI) */ | |
671 | ||
1e6feb95 VZ |
672 | #ifndef wxUSE_MDI_ARCHITECTURE |
673 | # ifdef wxABORT_ON_CONFIG_ERROR | |
674 | # error "wxUSE_MDI_ARCHITECTURE must be defined." | |
675 | # else | |
676 | # define wxUSE_MDI_ARCHITECTURE 0 | |
677 | # endif | |
678 | #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */ | |
679 | ||
680 | #ifndef wxUSE_MENUS | |
681 | # ifdef wxABORT_ON_CONFIG_ERROR | |
682 | # error "wxUSE_MENUS must be defined." | |
683 | # else | |
684 | # define wxUSE_MENUS 0 | |
685 | # endif | |
686 | #endif /* !defined(wxUSE_MENUS) */ | |
687 | ||
3379ed37 VZ |
688 | #ifndef wxUSE_MSGDLG |
689 | # ifdef wxABORT_ON_CONFIG_ERROR | |
690 | # error "wxUSE_MSGDLG must be defined." | |
691 | # else | |
692 | # define wxUSE_MSGDLG 0 | |
693 | # endif | |
694 | #endif /* !defined(wxUSE_MSGDLG) */ | |
695 | ||
1e6feb95 VZ |
696 | #ifndef wxUSE_NOTEBOOK |
697 | # ifdef wxABORT_ON_CONFIG_ERROR | |
698 | # error "wxUSE_NOTEBOOK must be defined." | |
699 | # else | |
700 | # define wxUSE_NOTEBOOK 0 | |
701 | # endif | |
702 | #endif /* !defined(wxUSE_NOTEBOOK) */ | |
703 | ||
a57d600f | 704 | #ifndef wxUSE_ODCOMBOBOX |
481e2766 | 705 | # ifdef wxABORT_ON_CONFIG_ERROR |
a57d600f | 706 | # error "wxUSE_ODCOMBOBOX must be defined." |
481e2766 | 707 | # else |
a57d600f | 708 | # define wxUSE_ODCOMBOBOX 0 |
481e2766 | 709 | # endif |
a57d600f | 710 | #endif /* !defined(wxUSE_ODCOMBOBOX) */ |
481e2766 | 711 | |
d275c7eb VZ |
712 | #ifndef wxUSE_PALETTE |
713 | # ifdef wxABORT_ON_CONFIG_ERROR | |
714 | # error "wxUSE_PALETTE must be defined." | |
715 | # else | |
716 | # define wxUSE_PALETTE 0 | |
717 | # endif | |
718 | #endif /* !defined(wxUSE_PALETTE) */ | |
719 | ||
1e6feb95 VZ |
720 | #ifndef wxUSE_POPUPWIN |
721 | # ifdef wxABORT_ON_CONFIG_ERROR | |
722 | # error "wxUSE_POPUPWIN must be defined." | |
723 | # else | |
724 | # define wxUSE_POPUPWIN 0 | |
725 | # endif | |
726 | #endif /* !defined(wxUSE_POPUPWIN) */ | |
727 | ||
3379ed37 VZ |
728 | #ifndef wxUSE_PRINTING_ARCHITECTURE |
729 | # ifdef wxABORT_ON_CONFIG_ERROR | |
730 | # error "wxUSE_PRINTING_ARCHITECTURE must be defined." | |
731 | # else | |
732 | # define wxUSE_PRINTING_ARCHITECTURE 0 | |
733 | # endif | |
734 | #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */ | |
735 | ||
1e6feb95 VZ |
736 | #ifndef wxUSE_RADIOBOX |
737 | # ifdef wxABORT_ON_CONFIG_ERROR | |
738 | # error "wxUSE_RADIOBOX must be defined." | |
739 | # else | |
740 | # define wxUSE_RADIOBOX 0 | |
741 | # endif | |
742 | #endif /* !defined(wxUSE_RADIOBOX) */ | |
743 | ||
744 | #ifndef wxUSE_RADIOBTN | |
745 | # ifdef wxABORT_ON_CONFIG_ERROR | |
746 | # error "wxUSE_RADIOBTN must be defined." | |
747 | # else | |
748 | # define wxUSE_RADIOBTN 0 | |
749 | # endif | |
750 | #endif /* !defined(wxUSE_RADIOBTN) */ | |
751 | ||
752 | #ifndef wxUSE_SASH | |
753 | # ifdef wxABORT_ON_CONFIG_ERROR | |
754 | # error "wxUSE_SASH must be defined." | |
755 | # else | |
756 | # define wxUSE_SASH 0 | |
757 | # endif | |
758 | #endif /* !defined(wxUSE_SASH) */ | |
759 | ||
760 | #ifndef wxUSE_SCROLLBAR | |
761 | # ifdef wxABORT_ON_CONFIG_ERROR | |
762 | # error "wxUSE_SCROLLBAR must be defined." | |
763 | # else | |
764 | # define wxUSE_SCROLLBAR 0 | |
765 | # endif | |
766 | #endif /* !defined(wxUSE_SCROLLBAR) */ | |
767 | ||
768 | #ifndef wxUSE_SLIDER | |
769 | # ifdef wxABORT_ON_CONFIG_ERROR | |
770 | # error "wxUSE_SLIDER must be defined." | |
771 | # else | |
772 | # define wxUSE_SLIDER 0 | |
773 | # endif | |
774 | #endif /* !defined(wxUSE_SLIDER) */ | |
775 | ||
cad1a197 VS |
776 | #ifndef wxUSE_SOUND |
777 | # ifdef wxABORT_ON_CONFIG_ERROR | |
778 | # error "wxUSE_SOUND must be defined." | |
779 | # else | |
780 | # define wxUSE_SOUND 0 | |
781 | # endif | |
782 | #endif /* !defined(wxUSE_SOUND) */ | |
783 | ||
1e6feb95 VZ |
784 | #ifndef wxUSE_SPINBTN |
785 | # ifdef wxABORT_ON_CONFIG_ERROR | |
786 | # error "wxUSE_SPINBTN must be defined." | |
787 | # else | |
788 | # define wxUSE_SPINBTN 0 | |
789 | # endif | |
790 | #endif /* !defined(wxUSE_SPINBTN) */ | |
791 | ||
792 | #ifndef wxUSE_SPINCTRL | |
793 | # ifdef wxABORT_ON_CONFIG_ERROR | |
794 | # error "wxUSE_SPINCTRL must be defined." | |
795 | # else | |
796 | # define wxUSE_SPINCTRL 0 | |
797 | # endif | |
798 | #endif /* !defined(wxUSE_SPINCTRL) */ | |
799 | ||
2654a046 MB |
800 | #ifndef wxUSE_SPLASH |
801 | # ifdef wxABORT_ON_CONFIG_ERROR | |
802 | # error "wxUSE_SPLASH must be defined." | |
803 | # else | |
804 | # define wxUSE_SPLASH 0 | |
805 | # endif | |
806 | #endif /* !defined(wxUSE_SPLASH) */ | |
807 | ||
1e6feb95 VZ |
808 | #ifndef wxUSE_SPLITTER |
809 | # ifdef wxABORT_ON_CONFIG_ERROR | |
810 | # error "wxUSE_SPLITTER must be defined." | |
811 | # else | |
812 | # define wxUSE_SPLITTER 0 | |
813 | # endif | |
814 | #endif /* !defined(wxUSE_SPLITTER) */ | |
815 | ||
816 | #ifndef wxUSE_STATBMP | |
817 | # ifdef wxABORT_ON_CONFIG_ERROR | |
818 | # error "wxUSE_STATBMP must be defined." | |
819 | # else | |
820 | # define wxUSE_STATBMP 0 | |
821 | # endif | |
822 | #endif /* !defined(wxUSE_STATBMP) */ | |
823 | ||
824 | #ifndef wxUSE_STATBOX | |
825 | # ifdef wxABORT_ON_CONFIG_ERROR | |
826 | # error "wxUSE_STATBOX must be defined." | |
827 | # else | |
828 | # define wxUSE_STATBOX 0 | |
829 | # endif | |
830 | #endif /* !defined(wxUSE_STATBOX) */ | |
831 | ||
832 | #ifndef wxUSE_STATLINE | |
833 | # ifdef wxABORT_ON_CONFIG_ERROR | |
834 | # error "wxUSE_STATLINE must be defined." | |
835 | # else | |
836 | # define wxUSE_STATLINE 0 | |
837 | # endif | |
838 | #endif /* !defined(wxUSE_STATLINE) */ | |
839 | ||
3379ed37 VZ |
840 | #ifndef wxUSE_STATTEXT |
841 | # ifdef wxABORT_ON_CONFIG_ERROR | |
842 | # error "wxUSE_STATTEXT must be defined." | |
843 | # else | |
844 | # define wxUSE_STATTEXT 0 | |
845 | # endif | |
846 | #endif /* !defined(wxUSE_STATTEXT) */ | |
847 | ||
1e6feb95 VZ |
848 | #ifndef wxUSE_STATUSBAR |
849 | # ifdef wxABORT_ON_CONFIG_ERROR | |
850 | # error "wxUSE_STATUSBAR must be defined." | |
851 | # else | |
852 | # define wxUSE_STATUSBAR 0 | |
853 | # endif | |
854 | #endif /* !defined(wxUSE_STATUSBAR) */ | |
855 | ||
1e6feb95 VZ |
856 | #ifndef wxUSE_TAB_DIALOG |
857 | # ifdef wxABORT_ON_CONFIG_ERROR | |
858 | # error "wxUSE_TAB_DIALOG must be defined." | |
859 | # else | |
860 | # define wxUSE_TAB_DIALOG 0 | |
861 | # endif | |
862 | #endif /* !defined(wxUSE_TAB_DIALOG) */ | |
863 | ||
864 | #ifndef wxUSE_TEXTCTRL | |
865 | # ifdef wxABORT_ON_CONFIG_ERROR | |
866 | # error "wxUSE_TEXTCTRL must be defined." | |
867 | # else | |
868 | # define wxUSE_TEXTCTRL 0 | |
869 | # endif | |
870 | #endif /* !defined(wxUSE_TEXTCTRL) */ | |
871 | ||
f38bcae5 VZ |
872 | #ifndef wxUSE_TIPWINDOW |
873 | # ifdef wxABORT_ON_CONFIG_ERROR | |
874 | # error "wxUSE_TIPWINDOW must be defined." | |
875 | # else | |
876 | # define wxUSE_TIPWINDOW 0 | |
877 | # endif | |
878 | #endif /* !defined(wxUSE_TIPWINDOW) */ | |
879 | ||
1e6feb95 VZ |
880 | #ifndef wxUSE_TOOLBAR |
881 | # ifdef wxABORT_ON_CONFIG_ERROR | |
882 | # error "wxUSE_TOOLBAR must be defined." | |
883 | # else | |
884 | # define wxUSE_TOOLBAR 0 | |
885 | # endif | |
886 | #endif /* !defined(wxUSE_TOOLBAR) */ | |
887 | ||
888 | #ifndef wxUSE_TOOLTIPS | |
889 | # ifdef wxABORT_ON_CONFIG_ERROR | |
890 | # error "wxUSE_TOOLTIPS must be defined." | |
891 | # else | |
892 | # define wxUSE_TOOLTIPS 0 | |
893 | # endif | |
894 | #endif /* !defined(wxUSE_TOOLTIPS) */ | |
895 | ||
896 | #ifndef wxUSE_TREECTRL | |
897 | # ifdef wxABORT_ON_CONFIG_ERROR | |
898 | # error "wxUSE_TREECTRL must be defined." | |
899 | # else | |
900 | # define wxUSE_TREECTRL 0 | |
901 | # endif | |
902 | #endif /* !defined(wxUSE_TREECTRL) */ | |
903 | ||
f8ba082e | 904 | #ifndef wxUSE_VALIDATORS |
12491c1f | 905 | # ifdef wxABORT_ON_CONFIG_ERROR |
f8ba082e | 906 | # error "wxUSE_VALIDATORS must be defined." |
12491c1f | 907 | # else |
f8ba082e | 908 | # define wxUSE_VALIDATORS 0 |
12491c1f | 909 | # endif |
f8ba082e | 910 | #endif /* !defined(wxUSE_VALIDATORS) */ |
12491c1f | 911 | |
3379ed37 VZ |
912 | #ifndef wxUSE_WXHTML_HELP |
913 | # ifdef wxABORT_ON_CONFIG_ERROR | |
914 | # error "wxUSE_WXHTML_HELP must be defined." | |
915 | # else | |
916 | # define wxUSE_WXHTML_HELP 0 | |
917 | # endif | |
918 | #endif /* !defined(wxUSE_WXHTML_HELP) */ | |
919 | ||
e16514bf VZ |
920 | #ifndef wxUSE_XRC |
921 | # ifdef wxABORT_ON_CONFIG_ERROR | |
922 | # error "wxUSE_XRC must be defined." | |
923 | # else | |
924 | # define wxUSE_XRC 0 | |
925 | # endif | |
926 | #endif /* !defined(wxUSE_XRC) */ | |
927 | ||
a5d46b73 | 928 | #endif /* wxUSE_GUI */ |
c4d596ea | 929 | |
1e6feb95 VZ |
930 | /* |
931 | check consistency of the settings | |
932 | */ | |
a5d46b73 | 933 | |
f7c3b945 WS |
934 | #if WXWIN_COMPATIBILITY_2_4 |
935 | # if !WXWIN_COMPATIBILITY_2_6 | |
936 | # ifdef wxABORT_ON_CONFIG_ERROR | |
937 | # error "2.4.X compatibility requires 2.6.X compatibility" | |
938 | # else | |
939 | # undef WXWIN_COMPATIBILITY_2_6 | |
940 | # define WXWIN_COMPATIBILITY_2_6 1 | |
941 | # endif | |
942 | # endif | |
943 | #endif /* WXWIN_COMPATIBILITY_2_4 */ | |
944 | ||
5d36ad18 VZ |
945 | #if wxUSE_ARCHIVE_STREAMS |
946 | # if !wxUSE_DATETIME | |
947 | # ifdef wxABORT_ON_CONFIG_ERROR | |
948 | # error "wxArchive requires wxUSE_DATETIME" | |
949 | # else | |
950 | # undef wxUSE_ARCHIVE_STREAMS | |
951 | # define wxUSE_ARCHIVE_STREAMS 0 | |
952 | # endif | |
953 | # endif | |
954 | #endif /* wxUSE_ARCHIVE_STREAMS */ | |
955 | ||
0c46d866 VZ |
956 | #if wxUSE_CRASHREPORT && !wxUSE_ON_FATAL_EXCEPTION |
957 | # ifdef wxABORT_ON_CONFIG_ERROR | |
958 | # error "wxUSE_CRASHREPORT requires wxUSE_ON_FATAL_EXCEPTION" | |
959 | # else | |
960 | # undef wxUSE_CRASHREPORT | |
961 | # define wxUSE_CRASHREPORT 0 | |
962 | # endif | |
963 | #endif /* wxUSE_CRASHREPORT */ | |
964 | ||
a5d46b73 VZ |
965 | #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP |
966 | # if !wxUSE_PROTOCOL | |
967 | # ifdef wxABORT_ON_CONFIG_ERROR | |
968 | # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL" | |
969 | # else | |
970 | # undef wxUSE_PROTOCOL | |
971 | # define wxUSE_PROTOCOL 1 | |
972 | # endif | |
973 | # endif | |
974 | #endif /* wxUSE_PROTOCOL_XXX */ | |
975 | ||
976 | #if wxUSE_URL | |
977 | # if !wxUSE_PROTOCOL | |
978 | # ifdef wxABORT_ON_CONFIG_ERROR | |
979 | # error "wxUSE_URL requires wxUSE_PROTOCOL" | |
980 | # else | |
981 | # undef wxUSE_PROTOCOL | |
982 | # define wxUSE_PROTOCOL 1 | |
983 | # endif | |
984 | # endif | |
985 | #endif /* wxUSE_URL */ | |
986 | ||
987 | #if wxUSE_PROTOCOL | |
988 | # if !wxUSE_SOCKETS | |
989 | # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP | |
990 | # ifdef wxABORT_ON_CONFIG_ERROR | |
991 | # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS" | |
992 | # else | |
993 | # undef wxUSE_SOCKETS | |
994 | # define wxUSE_SOCKETS 1 | |
995 | # endif | |
996 | # endif | |
997 | # endif | |
998 | ||
999 | # if !wxUSE_STREAMS | |
1000 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1001 | # error "wxUSE_PROTOCOL requires wxUSE_STREAMS" | |
1002 | # else | |
1003 | # undef wxUSE_STREAMS | |
1004 | # define wxUSE_STREAMS 1 | |
1005 | # endif | |
1006 | # endif | |
1007 | #endif /* wxUSE_PROTOCOL */ | |
1008 | ||
c7f3eecc VZ |
1009 | /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */ |
1010 | #if wxUSE_HTML | |
1011 | # if !wxUSE_FILESYSTEM | |
1012 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1013 | # error "wxHTML requires wxFileSystem" | |
1014 | # else | |
1015 | # undef wxUSE_FILESYSTEM | |
1016 | # define wxUSE_FILESYSTEM 1 | |
1017 | # endif | |
1018 | # endif | |
1019 | #endif /* wxUSE_HTML */ | |
1020 | ||
1021 | #if wxUSE_FILESYSTEM | |
1022 | # if !wxUSE_STREAMS | |
1023 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1024 | # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS" | |
1025 | # else | |
1026 | # undef wxUSE_STREAMS | |
1027 | # define wxUSE_STREAMS 1 | |
1028 | # endif | |
1029 | # endif | |
d9b0ee1e VZ |
1030 | # if !wxUSE_FILE && !wxUSE_FFILE |
1031 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1032 | # error "wxUSE_FILESYSTEM requires either wxUSE_FILE or wxUSE_FFILE" | |
1033 | # else | |
1034 | # undef wxUSE_FILESYSTEM | |
1035 | # define wxUSE_FILESYSTEM 0 | |
1036 | # endif | |
1037 | # endif | |
c7f3eecc VZ |
1038 | #endif /* wxUSE_FILESYSTEM */ |
1039 | ||
ce73e654 VS |
1040 | #if wxUSE_FS_INET |
1041 | # if !wxUSE_PROTOCOL | |
1042 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1043 | # error "wxUSE_FS_INET requires wxUSE_PROTOCOL" | |
1044 | # else | |
1045 | # undef wxUSE_PROTOCOL | |
1046 | # define wxUSE_PROTOCOL 1 | |
1047 | # endif | |
1048 | # endif | |
1049 | #endif /* wxUSE_FS_INET */ | |
1050 | ||
c7f3eecc | 1051 | #if wxUSE_STOPWATCH || wxUSE_DATETIME |
a5d46b73 VZ |
1052 | # if !wxUSE_LONGLONG |
1053 | # ifdef wxABORT_ON_CONFIG_ERROR | |
c7f3eecc | 1054 | # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG" |
a5d46b73 VZ |
1055 | # else |
1056 | # undef wxUSE_LONGLONG | |
1057 | # define wxUSE_LONGLONG 1 | |
1058 | # endif | |
1059 | # endif | |
1060 | #endif /* wxUSE_STOPWATCH */ | |
1061 | ||
1062 | #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE | |
1063 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1064 | # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE" | |
1065 | # else | |
1066 | # undef wxUSE_TEXTFILE | |
1067 | # define wxUSE_TEXTFILE 1 | |
1068 | # endif | |
1069 | #endif /* wxUSE_MIMETYPE */ | |
1070 | ||
5ac31f6f VZ |
1071 | #if wxUSE_ODBC |
1072 | # if !wxUSE_DATETIME | |
1073 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1074 | # error "wxODBC requires wxUSE_DATETIME" | |
1075 | # else | |
1076 | # undef wxUSE_ODBC | |
1077 | # define wxUSE_ODBC 0 | |
1078 | # endif | |
1079 | # endif | |
1080 | #endif /* wxUSE_ODBC */ | |
1081 | ||
a5d46b73 VZ |
1082 | #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER |
1083 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1084 | # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER" | |
1085 | # else | |
1086 | # undef wxUSE_TEXTBUFFER | |
1087 | # define wxUSE_TEXTBUFFER 1 | |
1088 | # endif | |
1089 | #endif /* wxUSE_TEXTFILE */ | |
1090 | ||
1091 | #if wxUSE_TEXTFILE && !wxUSE_FILE | |
1092 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1093 | # error "wxUSE_TEXTFILE requires wxUSE_FILE" | |
1094 | # else | |
1095 | # undef wxUSE_FILE | |
1096 | # define wxUSE_FILE 1 | |
1097 | # endif | |
1098 | #endif /* wxUSE_TEXTFILE */ | |
1099 | ||
7f799744 VS |
1100 | #if wxUSE_XML && !wxUSE_WCHAR_T |
1101 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1102 | # error "wxUSE_XML requires wxUSE_WCHAR_T" | |
1103 | # else | |
1104 | # undef wxUSE_XML | |
1105 | # define wxUSE_XML 0 | |
1106 | # endif | |
36a22fa3 | 1107 | #endif /* wxUSE_XML */ |
7f799744 | 1108 | |
1948bb32 VS |
1109 | #if !wxUSE_DYNLIB_CLASS |
1110 | # if wxUSE_DYNAMIC_LOADER | |
1111 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1112 | # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS." | |
1113 | # else | |
1114 | # define wxUSE_DYNLIB_CLASS 1 | |
1115 | # endif | |
1116 | # endif | |
1117 | #endif /* wxUSE_DYNLIB_CLASS */ | |
1118 | ||
81f90336 MW |
1119 | #if wxUSE_ZIPSTREAM |
1120 | # if !wxUSE_ZLIB | |
1121 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1122 | # error "wxZip requires wxZlib" | |
1123 | # else | |
1124 | # undef wxUSE_ZLIB | |
1125 | # define wxUSE_ZLIB 1 | |
1126 | # endif | |
1127 | # endif | |
9e8e867f | 1128 | # if !wxUSE_ARCHIVE_STREAMS |
81f90336 MW |
1129 | # ifdef wxABORT_ON_CONFIG_ERROR |
1130 | # error "wxZip requires wxArchive" | |
1131 | # else | |
9e8e867f MW |
1132 | # undef wxUSE_ARCHIVE_STREAMS |
1133 | # define wxUSE_ARCHIVE_STREAMS 1 | |
81f90336 MW |
1134 | # endif |
1135 | # endif | |
1136 | #endif /* wxUSE_ZIPSTREAM */ | |
1137 | ||
a5d46b73 VZ |
1138 | /* the rest of the tests is for the GUI settings only */ |
1139 | #if wxUSE_GUI | |
1140 | ||
1e6feb95 VZ |
1141 | #if wxUSE_BUTTON || \ |
1142 | wxUSE_CALENDARCTRL || \ | |
1143 | wxUSE_CARET || \ | |
1144 | wxUSE_COMBOBOX || \ | |
1145 | wxUSE_BMPBUTTON || \ | |
1146 | wxUSE_CHECKBOX || \ | |
1147 | wxUSE_CHECKLISTBOX || \ | |
1148 | wxUSE_CHOICE || \ | |
1149 | wxUSE_GAUGE || \ | |
1150 | wxUSE_GRID || \ | |
1e6feb95 VZ |
1151 | wxUSE_LISTBOX || \ |
1152 | wxUSE_LISTCTRL || \ | |
1153 | wxUSE_NOTEBOOK || \ | |
1154 | wxUSE_RADIOBOX || \ | |
1155 | wxUSE_RADIOBTN || \ | |
1156 | wxUSE_SCROLLBAR || \ | |
1157 | wxUSE_SLIDER || \ | |
1158 | wxUSE_SPINBTN || \ | |
1159 | wxUSE_SPINCTRL || \ | |
1160 | wxUSE_STATBMP || \ | |
1161 | wxUSE_STATBOX || \ | |
1162 | wxUSE_STATLINE || \ | |
3379ed37 | 1163 | wxUSE_STATTEXT || \ |
1e6feb95 VZ |
1164 | wxUSE_STATUSBAR || \ |
1165 | wxUSE_TEXTCTRL || \ | |
1166 | wxUSE_TOOLBAR || \ | |
1167 | wxUSE_TREECTRL | |
1168 | # if !wxUSE_CONTROLS | |
1169 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1170 | # error "wxUSE_CONTROLS unset but some controls used" | |
1171 | # else | |
1172 | # undef wxUSE_CONTROLS | |
1173 | # define wxUSE_CONTROLS 1 | |
1174 | # endif | |
1175 | # endif | |
1176 | #endif /* controls */ | |
1177 | ||
0b4f47a3 DS |
1178 | #if wxUSE_BMPBUTTON |
1179 | # if !wxUSE_BUTTON | |
1180 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1181 | # error "wxUSE_BMPBUTTON requires wxUSE_BUTTON" | |
1182 | # else | |
1183 | # undef wxUSE_BUTTON | |
1184 | # define wxUSE_BUTTON 1 | |
1185 | # endif | |
1186 | # endif | |
1187 | #endif /* wxUSE_BMPBUTTON */ | |
1188 | ||
aa017eab VZ |
1189 | /* |
1190 | wxUSE_BOOKCTRL should be only used if any of the controls deriving from it | |
1191 | are used | |
1192 | */ | |
1193 | #ifdef wxUSE_BOOKCTRL | |
1194 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1195 | # error "wxUSE_BOOKCTRL is defined automatically, don't define it" | |
1196 | # else | |
1197 | # undef wxUSE_BOOKCTRL | |
15aad3b9 | 1198 | # endif |
aa017eab | 1199 | #endif |
15aad3b9 | 1200 | |
aa017eab VZ |
1201 | #define wxUSE_BOOKCTRL (wxUSE_NOTEBOOK || \ |
1202 | wxUSE_LISTBOOK || \ | |
1203 | wxUSE_CHOICEBOOK || \ | |
1204 | wxUSE_TREEBOOK) | |
15aad3b9 | 1205 | |
5b5e4f32 VZ |
1206 | #if wxUSE_LISTBOOK |
1207 | # if !wxUSE_LISTCTRL | |
1208 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1209 | # error "wxListbook requires wxListCtrl" | |
1210 | # else | |
1211 | # undef wxUSE_LISTCTRL | |
1212 | # define wxUSE_LISTCTRL 1 | |
1213 | # endif | |
1214 | # endif | |
1215 | #endif /* wxUSE_LISTBOOK */ | |
1216 | ||
f5e0b4bc WS |
1217 | #if wxUSE_CHOICEBOOK |
1218 | # if !wxUSE_CHOICE | |
1219 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1220 | # error "wxChoicebook requires wxChoice" | |
1221 | # else | |
1222 | # undef wxUSE_CHOICE | |
1223 | # define wxUSE_CHOICE 1 | |
1224 | # endif | |
1225 | # endif | |
1226 | #endif /* wxUSE_CHOICEBOOK */ | |
1227 | ||
8d37334f VZ |
1228 | #if !wxUSE_ODCOMBOBOX |
1229 | # if wxUSE_BITMAPCOMBOBOX | |
1230 | # error "wxBitmapComboBox requires wxOwnerDrawnComboBox" | |
1231 | # else | |
1232 | # undef wxUSE_BITMAPCOMBOBOX | |
1233 | # define wxUSE_BITMAPCOMBOBOX 0 | |
1234 | # endif | |
1235 | #endif /* !wxUSE_ODCOMBOBOX */ | |
1236 | ||
da4486fb VZ |
1237 | /* don't attempt to use native status bar on the platforms not having it */ |
1238 | #ifndef wxUSE_NATIVE_STATUSBAR | |
1239 | # define wxUSE_NATIVE_STATUSBAR 0 | |
1240 | #elif wxUSE_NATIVE_STATUSBAR | |
b08cd3bf WS |
1241 | # if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \ |
1242 | defined(__WXMAC__) || \ | |
1243 | defined(__WXPALMOS__) ) | |
da4486fb VZ |
1244 | # undef wxUSE_NATIVE_STATUSBAR |
1245 | # define wxUSE_NATIVE_STATUSBAR 0 | |
1246 | # endif | |
1247 | #endif | |
1248 | ||
3379ed37 | 1249 | /* wxGTK-specific dependencies */ |
2131b89d VZ |
1250 | #ifdef __WXGTK__ |
1251 | # ifndef __WXUNIVERSAL__ | |
1252 | # if wxUSE_MDI_ARCHITECTURE && !wxUSE_MENUS | |
1253 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1254 | # error "MDI requires wxUSE_MENUS in wxGTK" | |
1255 | # else | |
1256 | # undef wxUSE_MENUS | |
1257 | # define wxUSE_MENUS 1 | |
1258 | # endif | |
1259 | # endif | |
1260 | # endif /* !__WXUNIVERSAL__ */ | |
1261 | ||
1262 | # if wxUSE_JOYSTICK | |
1263 | # if !wxUSE_THREADS | |
1264 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1265 | # error "wxJoystick requires threads in wxGTK" | |
1266 | # else | |
1267 | # undef wxUSE_JOYSTICK | |
1268 | # define wxUSE_JOYSTICK 0 | |
1269 | # endif | |
3379ed37 VZ |
1270 | # endif |
1271 | # endif | |
1272 | #endif /* wxGTK && !wxUniv */ | |
1273 | ||
67e489c5 | 1274 | /* Hopefully we can emulate these dialogs in due course */ |
9b141468 | 1275 | #if defined(__SMARTPHONE__) && defined(__WXWINCE__) |
b92203a8 VZ |
1276 | # ifdef wxUSE_COLOURDLG |
1277 | # undef wxUSE_COLOURDLG | |
1278 | # define wxUSE_COLOURDLG 0 | |
1279 | # endif | |
9b141468 | 1280 | #endif /* __SMARTPHONE__ && __WXWINCE__ */ |
b92203a8 VZ |
1281 | |
1282 | ||
3379ed37 VZ |
1283 | /* generic controls dependencies */ |
1284 | #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__) | |
1285 | # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG | |
1286 | /* all common controls are needed by these dialogs */ | |
1287 | # if !defined(wxUSE_CHOICE) || \ | |
1288 | !defined(wxUSE_TEXTCTRL) || \ | |
1289 | !defined(wxUSE_BUTTON) || \ | |
1290 | !defined(wxUSE_CHECKBOX) || \ | |
1291 | !defined(wxUSE_STATTEXT) | |
1292 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1293 | # error "These common controls are needed by common dialogs" | |
1294 | # else | |
1295 | # undef wxUSE_CHOICE | |
1296 | # define wxUSE_CHOICE 1 | |
1297 | # undef wxUSE_TEXTCTRL | |
1298 | # define wxUSE_TEXTCTRL 1 | |
1299 | # undef wxUSE_BUTTON | |
1300 | # define wxUSE_BUTTON 1 | |
1301 | # undef wxUSE_CHECKBOX | |
1302 | # define wxUSE_CHECKBOX 1 | |
1303 | # undef wxUSE_STATTEXT | |
1304 | # define wxUSE_STATTEXT 1 | |
1305 | # endif | |
1306 | # endif | |
1307 | # endif | |
1308 | #endif /* !wxMSW || wxUniv */ | |
1309 | ||
1310 | /* common dependencies */ | |
1e6feb95 VZ |
1311 | #if wxUSE_CALENDARCTRL |
1312 | # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX) | |
1313 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1314 | # error "wxCalendarCtrl requires wxSpinButton and wxComboBox" | |
1315 | # else | |
1316 | # undef wxUSE_SPINBTN | |
1317 | # undef wxUSE_COMBOBOX | |
1318 | # define wxUSE_SPINBTN 1 | |
1319 | # define wxUSE_COMBOBOX 1 | |
1320 | # endif | |
1321 | # endif | |
e2b87f38 VZ |
1322 | |
1323 | # if !wxUSE_DATETIME | |
1324 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1325 | # error "wxCalendarCtrl requires wxUSE_DATETIME" | |
1326 | # else | |
1327 | # undef wxUSE_DATETIME | |
1328 | # define wxUSE_DATETIME 1 | |
1329 | # endif | |
1330 | # endif | |
1e6feb95 VZ |
1331 | #endif /* wxUSE_CALENDARCTRL */ |
1332 | ||
324eeecb WS |
1333 | #if wxUSE_DATEPICKCTRL |
1334 | # if !wxUSE_DATETIME | |
1335 | # ifdef wxABORT_ON_CONFIG_ERROR | |
60bea0cf | 1336 | # error "wxDatePickerCtrl requires wxUSE_DATETIME" |
324eeecb WS |
1337 | # else |
1338 | # undef wxUSE_DATETIME | |
1339 | # define wxUSE_DATETIME 1 | |
1340 | # endif | |
1341 | # endif | |
1342 | #endif /* wxUSE_DATEPICKCTRL */ | |
1343 | ||
1e6feb95 VZ |
1344 | #if wxUSE_CHECKLISTBOX |
1345 | # if !wxUSE_LISTBOX | |
1346 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1347 | # error "wxCheckListBox requires wxListBox" | |
1348 | # else | |
1349 | # undef wxUSE_LISTBOX | |
1350 | # define wxUSE_LISTBOX 1 | |
1351 | # endif | |
1352 | # endif | |
97e4cf6d WS |
1353 | #endif /* wxUSE_CHECKLISTBOX */ |
1354 | ||
1355 | #if wxUSE_CHOICEDLG | |
1356 | # if !wxUSE_LISTBOX | |
1357 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1358 | # error "Choice dialogs requires wxListBox" | |
1359 | # else | |
1360 | # undef wxUSE_LISTBOX | |
1361 | # define wxUSE_LISTBOX 1 | |
1362 | # endif | |
1363 | # endif | |
1364 | #endif /* wxUSE_CHOICEDLG */ | |
1e6feb95 | 1365 | |
0b4f47a3 DS |
1366 | #if wxUSE_HELP |
1367 | # if !wxUSE_BMPBUTTON | |
1368 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1369 | # error "wxUSE_HELP requires wxUSE_BMPBUTTON" | |
1370 | # else | |
1371 | # undef wxUSE_BMPBUTTON | |
1372 | # define wxUSE_BMPBUTTON 1 | |
1373 | # endif | |
1374 | # endif | |
adb799d6 DS |
1375 | |
1376 | # if !wxUSE_CHOICEDLG | |
1377 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1378 | # error "wxUSE_HELP requires wxUSE_CHOICEDLG" | |
1379 | # else | |
1380 | # undef wxUSE_CHOICEDLG | |
1381 | # define wxUSE_CHOICEDLG 1 | |
1382 | # endif | |
1383 | # endif | |
0b4f47a3 DS |
1384 | #endif /* wxUSE_HELP */ |
1385 | ||
3379ed37 | 1386 | #if wxUSE_WXHTML_HELP |
0e871ad0 | 1387 | # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL |
3379ed37 VZ |
1388 | # ifdef wxABORT_ON_CONFIG_ERROR |
1389 | # error "Built in help controller can't be compiled" | |
1390 | # else | |
1391 | # undef wxUSE_HELP | |
1392 | # define wxUSE_HELP 1 | |
1393 | # undef wxUSE_HTML | |
1394 | # define wxUSE_HTML 1 | |
1395 | # undef wxUSE_COMBOBOX | |
1396 | # define wxUSE_COMBOBOX 1 | |
730dfeb4 VS |
1397 | # undef wxUSE_NOTEBOOK |
1398 | # define wxUSE_NOTEBOOK 1 | |
0e871ad0 WS |
1399 | # undef wxUSE_SPINCTRL |
1400 | # define wxUSE_SPINCTRL 1 | |
3379ed37 VZ |
1401 | # endif |
1402 | # endif | |
1403 | #endif /* wxUSE_WXHTML_HELP */ | |
1404 | ||
05e4fd64 DS |
1405 | #if !wxUSE_IMAGE |
1406 | /* | |
1407 | The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the | |
1408 | user explicitly wants this and disable all other features that require | |
1409 | wxUSE_IMAGE. | |
1410 | */ | |
1411 | # if wxUSE_DRAGIMAGE | |
1412 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1413 | # error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE" | |
1414 | # else | |
1415 | # undef wxUSE_DRAGIMAGE | |
1416 | # define wxUSE_DRAGIMAGE 0 | |
1417 | # endif | |
1418 | # endif | |
1419 | ||
1420 | # if wxUSE_LIBPNG | |
1421 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1422 | # error "wxUSE_LIBPNG requires wxUSE_IMAGE" | |
1423 | # else | |
1424 | # undef wxUSE_LIBPNG | |
1425 | # define wxUSE_LIBPNG 0 | |
1426 | # endif | |
1427 | # endif | |
1428 | ||
1429 | # if wxUSE_LIBJPEG | |
1430 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1431 | # error "wxUSE_LIBJPEG requires wxUSE_IMAGE" | |
1432 | # else | |
1433 | # undef wxUSE_LIBJPEG | |
1434 | # define wxUSE_LIBJPEG 0 | |
1435 | # endif | |
1436 | # endif | |
1437 | ||
1438 | # if wxUSE_LIBTIFF | |
1439 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1440 | # error "wxUSE_LIBTIFF requires wxUSE_IMAGE" | |
1441 | # else | |
1442 | # undef wxUSE_LIBTIFF | |
1443 | # define wxUSE_LIBTIFF 0 | |
1444 | # endif | |
1445 | # endif | |
1446 | ||
1447 | # if wxUSE_GIF | |
1448 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1449 | # error "wxUSE_GIF requires wxUSE_IMAGE" | |
1450 | # else | |
1451 | # undef wxUSE_GIF | |
1452 | # define wxUSE_GIF 0 | |
1453 | # endif | |
1454 | # endif | |
1455 | ||
1456 | # if wxUSE_PNM | |
1457 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1458 | # error "wxUSE_PNM requires wxUSE_IMAGE" | |
1459 | # else | |
1460 | # undef wxUSE_PNM | |
1461 | # define wxUSE_PNM 0 | |
1462 | # endif | |
1463 | # endif | |
1464 | ||
1465 | # if wxUSE_PCX | |
1466 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1467 | # error "wxUSE_PCX requires wxUSE_IMAGE" | |
1468 | # else | |
1469 | # undef wxUSE_PCX | |
1470 | # define wxUSE_PCX 0 | |
1471 | # endif | |
1472 | # endif | |
1473 | ||
1474 | # if wxUSE_IFF | |
1475 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1476 | # error "wxUSE_IFF requires wxUSE_IMAGE" | |
1477 | # else | |
1478 | # undef wxUSE_IFF | |
1479 | # define wxUSE_IFF 0 | |
1480 | # endif | |
1481 | # endif | |
1482 | ||
1483 | # if wxUSE_TOOLBAR | |
1484 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1485 | # error "wxUSE_TOOLBAR requires wxUSE_IMAGE" | |
1486 | # else | |
1487 | # undef wxUSE_TOOLBAR | |
1488 | # define wxUSE_TOOLBAR 0 | |
1489 | # endif | |
1490 | # endif | |
1491 | ||
1492 | # if wxUSE_XPM | |
1493 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1494 | # error "wxUSE_XPM requires wxUSE_IMAGE" | |
1495 | # else | |
1496 | # undef wxUSE_XPM | |
1497 | # define wxUSE_XPM 0 | |
1498 | # endif | |
1499 | # endif | |
1500 | ||
1501 | #endif /* !wxUSE_IMAGE */ | |
1502 | ||
e30285ab VZ |
1503 | #if wxUSE_DOC_VIEW_ARCHITECTURE |
1504 | # if !wxUSE_MENUS | |
1505 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1506 | # error "DocView requires wxUSE_MENUS" | |
1507 | # else | |
1508 | # undef wxUSE_MENUS | |
1509 | # define wxUSE_MENUS 1 | |
1510 | # endif | |
1511 | # endif | |
1512 | ||
adb799d6 DS |
1513 | # if !wxUSE_CHOICEDLG |
1514 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1515 | # error "DocView requires wxUSE_CHOICEDLG" | |
1516 | # else | |
1517 | # undef wxUSE_CHOICEDLG | |
1518 | # define wxUSE_CHOICEDLG 1 | |
1519 | # endif | |
1520 | # endif | |
1521 | ||
e30285ab VZ |
1522 | # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM |
1523 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1524 | # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM" | |
1525 | # else | |
1526 | # undef wxUSE_STREAMS | |
1527 | # define wxUSE_STREAMS 1 | |
1528 | # endif | |
1529 | # endif | |
1530 | #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */ | |
1531 | ||
3379ed37 VZ |
1532 | #if wxUSE_PRINTING_ARCHITECTURE |
1533 | # if !wxUSE_COMBOBOX | |
1534 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1535 | # error "Print dialog requires wxUSE_COMBOBOX" | |
1536 | # else | |
1537 | # undef wxUSE_COMBOBOX | |
1538 | # define wxUSE_COMBOBOX 1 | |
1539 | # endif | |
1540 | # endif | |
1541 | #endif /* wxUSE_PRINTING_ARCHITECTURE */ | |
1542 | ||
e30285ab | 1543 | #if wxUSE_MDI_ARCHITECTURE |
efd17a1d VZ |
1544 | # if !wxUSE_MDI |
1545 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1546 | # error "MDI requires wxUSE_MDI" | |
1547 | # else | |
1548 | # undef wxUSE_MDI | |
1549 | # define wxUSE_MDI 1 | |
1550 | # endif | |
1551 | # endif | |
1552 | ||
e30285ab | 1553 | # if !wxUSE_DOC_VIEW_ARCHITECTURE |
1e6feb95 | 1554 | # ifdef wxABORT_ON_CONFIG_ERROR |
0872eaf9 | 1555 | # error "wxUSE_MDI_ARCHITECTURE requires wxUSE_DOC_VIEW_ARCHITECTURE" |
1e6feb95 | 1556 | # else |
e30285ab VZ |
1557 | # undef wxUSE_DOC_VIEW_ARCHITECTURE |
1558 | # define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
1e6feb95 VZ |
1559 | # endif |
1560 | # endif | |
e30285ab | 1561 | #endif /* wxUSE_MDI_ARCHITECTURE */ |
1e6feb95 VZ |
1562 | |
1563 | #if !wxUSE_FILEDLG | |
2119e280 | 1564 | # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP |
1e6feb95 | 1565 | # ifdef wxABORT_ON_CONFIG_ERROR |
0872eaf9 | 1566 | # error "wxUSE_FILEDLG is required by wxUSE_DOC_VIEW_ARCHITECTURE and wxUSE_WXHTML_HELP!" |
1e6feb95 VZ |
1567 | # else |
1568 | # undef wxUSE_FILEDLG | |
1569 | # define wxUSE_FILEDLG 1 | |
1570 | # endif | |
1571 | # endif | |
e421922f | 1572 | #endif /* wxUSE_FILEDLG */ |
1e6feb95 | 1573 | |
555f645a WS |
1574 | #if !wxUSE_GAUGE || !wxUSE_BUTTON |
1575 | # if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__) | |
063b752e | 1576 | # ifdef wxABORT_ON_CONFIG_ERROR |
555f645a | 1577 | # error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON" |
063b752e WS |
1578 | # else |
1579 | # undef wxUSE_GAUGE | |
555f645a | 1580 | # undef wxUSE_BUTTON |
063b752e | 1581 | # define wxUSE_GAUGE 1 |
555f645a | 1582 | # define wxUSE_BUTTON 1 |
063b752e WS |
1583 | # endif |
1584 | # endif | |
1585 | #endif /* !wxUSE_GAUGE */ | |
1586 | ||
0b4f47a3 | 1587 | #if !wxUSE_BUTTON |
555f645a | 1588 | # if wxUSE_FONTDLG || \ |
0b4f47a3 DS |
1589 | wxUSE_FILEDLG || \ |
1590 | wxUSE_CHOICEDLG || \ | |
1591 | wxUSE_NUMBERDLG || \ | |
1592 | wxUSE_TEXTDLG || \ | |
1593 | wxUSE_DIRDLG || \ | |
1594 | wxUSE_STARTUP_TIPS || \ | |
1595 | wxUSE_WIZARDDLG | |
1596 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1597 | # error "Common and generic dialogs require wxUSE_BUTTON" | |
1598 | # else | |
1599 | # undef wxUSE_BUTTON | |
1600 | # define wxUSE_BUTTON 1 | |
1601 | # endif | |
1602 | # endif | |
063b752e | 1603 | #endif /* !wxUSE_BUTTON */ |
0b4f47a3 | 1604 | |
12491c1f JS |
1605 | #if !wxUSE_TOOLBAR |
1606 | # if wxUSE_TOOLBAR_NATIVE | |
1607 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1608 | # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1" | |
1609 | # else | |
1610 | # undef wxUSE_TOOLBAR_NATIVE | |
1611 | # define wxUSE_TOOLBAR_NATIVE 0 | |
1612 | # endif | |
1613 | # endif | |
12491c1f JS |
1614 | #endif |
1615 | ||
1e6feb95 VZ |
1616 | #if !wxUSE_IMAGLIST |
1617 | # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL | |
1618 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1619 | # error "wxImageList must be compiled as well" | |
1620 | # else | |
1621 | # undef wxUSE_IMAGLIST | |
1622 | # define wxUSE_IMAGLIST 1 | |
1623 | # endif | |
1624 | # endif | |
1625 | #endif /* !wxUSE_IMAGLIST */ | |
1626 | ||
e421922f VZ |
1627 | #if !wxUSE_MSGDLG |
1628 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1629 | /* FIXME: should compile without it, of course, but doesn't */ | |
1630 | # error "wxMessageBox is always needed" | |
1631 | # else | |
1632 | # undef wxUSE_MSGDLG | |
1633 | # define wxUSE_MSGDLG 1 | |
1634 | # endif | |
1635 | #endif | |
1636 | ||
1e6feb95 | 1637 | #if wxUSE_RADIOBOX |
9a727a3b | 1638 | # if !wxUSE_RADIOBTN |
1e6feb95 | 1639 | # ifdef wxABORT_ON_CONFIG_ERROR |
9a727a3b | 1640 | # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN" |
1e6feb95 VZ |
1641 | # else |
1642 | # undef wxUSE_RADIOBTN | |
1e6feb95 | 1643 | # define wxUSE_RADIOBTN 1 |
9a727a3b WS |
1644 | # endif |
1645 | # endif | |
1646 | # if !wxUSE_STATBOX && !defined(__WXPALMOS__) | |
1647 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1648 | # error "wxUSE_RADIOBOX requires wxUSE_STATBOX" | |
1649 | # else | |
1650 | # undef wxUSE_STATBOX | |
1e6feb95 VZ |
1651 | # define wxUSE_STATBOX 1 |
1652 | # endif | |
1653 | # endif | |
1654 | #endif /* wxUSE_RADIOBOX */ | |
1655 | ||
3379ed37 VZ |
1656 | #if wxUSE_LOGWINDOW |
1657 | # if !wxUSE_TEXTCTRL | |
1658 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1659 | # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL" | |
1660 | # else | |
1661 | # undef wxUSE_TEXTCTRL | |
1662 | # define wxUSE_TEXTCTRL 1 | |
1663 | # endif | |
1664 | # endif | |
1665 | #endif /* wxUSE_LOGWINDOW */ | |
1e6feb95 | 1666 | |
3e6e2754 | 1667 | #if wxUSE_LOG_DIALOG |
0b4f47a3 | 1668 | # if !wxUSE_LISTCTRL || !wxUSE_BUTTON |
3e6e2754 | 1669 | # ifdef wxABORT_ON_CONFIG_ERROR |
0b4f47a3 | 1670 | # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON" |
3e6e2754 JS |
1671 | # else |
1672 | # undef wxUSE_LISTCTRL | |
1673 | # define wxUSE_LISTCTRL 1 | |
0b4f47a3 DS |
1674 | # undef wxUSE_BUTTON |
1675 | # define wxUSE_BUTTON 1 | |
3e6e2754 JS |
1676 | # endif |
1677 | # endif | |
1678 | #endif /* wxUSE_LOG_DIALOG */ | |
1679 | ||
1e6feb95 | 1680 | #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ |
3379ed37 | 1681 | # ifdef wxABORT_ON_CONFIG_ERROR |
1e6feb95 VZ |
1682 | # error "wxClipboard requires wxDataObject" |
1683 | # else | |
1684 | # undef wxUSE_DATAOBJ | |
1685 | # define wxUSE_DATAOBJ 1 | |
1686 | # endif | |
1687 | #endif /* wxUSE_CLIPBOARD */ | |
1688 | ||
2b5f62a0 VZ |
1689 | #if wxUSE_WX_RESOURCES && !wxUSE_PROLOGIO |
1690 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1691 | # error "wxr resources require PrologIO" | |
1692 | # else | |
1693 | # undef wxUSE_PROLOGIO | |
1694 | # define wxUSE_PROLOGIO 1 | |
1695 | # endif | |
1696 | #endif /* wxUSE_WX_RESOURCES */ | |
1697 | ||
d2ebf0b7 VS |
1698 | #if wxUSE_XRC && !wxUSE_XML |
1699 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1700 | # error "wxUSE_XRC requires wxUSE_XML" | |
1701 | # else | |
1702 | # undef wxUSE_XRC | |
1703 | # define wxUSE_XRC 0 | |
1704 | # endif | |
5a017695 | 1705 | #endif /* wxUSE_XRC */ |
d2ebf0b7 | 1706 | |
4669dcb2 RN |
1707 | #if wxUSE_SOCKETS && !wxUSE_STOPWATCH |
1708 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1709 | # error "wxUSE_SOCKETS requires wxUSE_STOPWATCH" | |
1710 | # else | |
1711 | # undef wxUSE_SOCKETS | |
1712 | # define wxUSE_SOCKETS 0 | |
1713 | # endif | |
1714 | #endif /* wxUSE_SOCKETS */ | |
1715 | ||
ca5c6ac3 VZ |
1716 | #if !wxUSE_VARIANT |
1717 | # if wxUSE_DATAVIEWCTRL | |
1718 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1719 | # error "wxDataViewCtrl requires wxVariant" | |
1720 | # else | |
1721 | # undef wxUSE_DATAVIEWCTRL | |
1722 | # define wxUSE_DATAVIEWCTRL 0 | |
1723 | # endif | |
1724 | # endif | |
1725 | ||
1726 | # if wxUSE_ODBC | |
1727 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1728 | # error "wxUSE_ODBC requires wxVariant" | |
1729 | # else | |
1730 | # undef wxUSE_ODBC | |
1731 | # define wxUSE_ODBC 0 | |
1732 | # endif | |
1733 | # endif | |
1734 | #endif /* wxUSE_VARIANT */ | |
1735 | ||
1e6feb95 | 1736 | #endif /* wxUSE_GUI */ |