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