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