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