]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/chkconf.h
3 * Purpose: check the config settings for consistency
4 * Author: Vadim Zeitlin
8 * Copyright: (c) 2000 Vadim Zeitlin <vadim@wxwidgets.org>
9 * Licence: wxWindows licence
12 /* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
15 Compiler-specific checking.
18 #if defined(__WXMSW__)
19 # include "wx/msw/chkconf.h"
20 #elif defined(__WXMAC__)
21 # include "wx/mac/chkconf.h"
25 this global setting determines what should we do if the setting FOO
26 requires BAR and BAR is not set: we can either silently define BAR
27 (default, recommended) or give an error and abort (mainly useful for
30 #define wxABORT_ON_CONFIG_ERROR
36 /* GUI build by default */
37 #if !defined(wxUSE_GUI)
39 #endif /* !defined(wxUSE_GUI) */
42 tests for non GUI features
45 #ifndef wxUSE_DYNLIB_CLASS
46 # ifdef wxABORT_ON_CONFIG_ERROR
47 # error "wxUSE_DYNLIB_CLASS must be defined."
49 # define wxUSE_DYNLIB_CLASS 0
51 #endif /* !defined(wxUSE_DYNLIB_CLASS) */
53 #ifndef wxUSE_EXCEPTIONS
54 # ifdef wxABORT_ON_CONFIG_ERROR
55 # error "wxUSE_EXCEPTIONS must be defined."
57 # define wxUSE_EXCEPTIONS 0
59 #endif /* !defined(wxUSE_EXCEPTIONS) */
61 #ifndef wxUSE_FILESYSTEM
62 # ifdef wxABORT_ON_CONFIG_ERROR
63 # error "wxUSE_FILESYSTEM must be defined."
65 # define wxUSE_FILESYSTEM 0
67 #endif /* !defined(wxUSE_FILESYSTEM) */
69 /* don't give an error about this one yet, it's not fully implemented */
70 #ifndef wxUSE_FSVOLUME
71 # define wxUSE_FSVOLUME 0
72 #endif /* !defined(wxUSE_FSVOLUME) */
74 #ifndef wxUSE_DYNAMIC_LOADER
75 # ifdef wxABORT_ON_CONFIG_ERROR
76 # error "wxUSE_DYNAMIC_LOADER must be defined."
78 # define wxUSE_DYNAMIC_LOADER 0
80 #endif /* !defined(wxUSE_DYNAMIC_LOADER) */
83 # ifdef wxABORT_ON_CONFIG_ERROR
84 # error "wxUSE_LOG must be defined."
88 #endif /* !defined(wxUSE_LOG) */
90 #ifndef wxUSE_LONGLONG
91 # ifdef wxABORT_ON_CONFIG_ERROR
92 # error "wxUSE_LONGLONG must be defined."
94 # define wxUSE_LONGLONG 0
96 #endif /* !defined(wxUSE_LONGLONG) */
98 #ifndef wxUSE_MIMETYPE
99 # ifdef wxABORT_ON_CONFIG_ERROR
100 # error "wxUSE_MIMETYPE must be defined."
102 # define wxUSE_MIMETYPE 0
104 #endif /* !defined(wxUSE_MIMETYPE) */
106 #ifndef wxUSE_PROTOCOL
107 # ifdef wxABORT_ON_CONFIG_ERROR
108 # error "wxUSE_PROTOCOL must be defined."
110 # define wxUSE_PROTOCOL 0
112 #endif /* !defined(wxUSE_PROTOCOL) */
114 /* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */
116 # undef wxUSE_PROTOCOL_HTTP
117 # undef wxUSE_PROTOCOL_FTP
118 # undef wxUSE_PROTOCOL_FILE
119 # define wxUSE_PROTOCOL_HTTP 0
120 # define wxUSE_PROTOCOL_FTP 0
121 # define wxUSE_PROTOCOL_FILE 0
122 #endif /* wxUSE_PROTOCOL */
124 #ifndef wxUSE_PROTOCOL_HTTP
125 # ifdef wxABORT_ON_CONFIG_ERROR
126 # error "wxUSE_PROTOCOL_HTTP must be defined."
128 # define wxUSE_PROTOCOL_HTTP 0
130 #endif /* !defined(wxUSE_PROTOCOL_HTTP) */
132 #ifndef wxUSE_PROTOCOL_FTP
133 # ifdef wxABORT_ON_CONFIG_ERROR
134 # error "wxUSE_PROTOCOL_FTP must be defined."
136 # define wxUSE_PROTOCOL_FTP 0
138 #endif /* !defined(wxUSE_PROTOCOL_FTP) */
140 #ifndef wxUSE_PROTOCOL_FILE
141 # ifdef wxABORT_ON_CONFIG_ERROR
142 # error "wxUSE_PROTOCOL_FILE must be defined."
144 # define wxUSE_PROTOCOL_FILE 0
146 #endif /* !defined(wxUSE_PROTOCOL_FILE) */
149 # ifdef wxABORT_ON_CONFIG_ERROR
150 # error "wxUSE_REGEX must be defined."
152 # define wxUSE_REGEX 0
154 #endif /* !defined(wxUSE_REGEX) */
157 # ifdef wxABORT_ON_CONFIG_ERROR
158 # error "wxUSE_XML must be defined."
162 #endif /* !defined(wxUSE_XML) */
164 #ifndef wxUSE_SOCKETS
165 # ifdef wxABORT_ON_CONFIG_ERROR
166 # error "wxUSE_SOCKETS must be defined."
168 # define wxUSE_SOCKETS 0
170 #endif /* !defined(wxUSE_SOCKETS) */
172 #ifndef wxUSE_STREAMS
173 # ifdef wxABORT_ON_CONFIG_ERROR
174 # error "wxUSE_STREAMS must be defined."
176 # define wxUSE_STREAMS 0
178 #endif /* !defined(wxUSE_STREAMS) */
180 #ifndef wxUSE_STOPWATCH
181 # ifdef wxABORT_ON_CONFIG_ERROR
182 # error "wxUSE_STOPWATCH must be defined."
184 # define wxUSE_STOPWATCH 0
186 #endif /* !defined(wxUSE_STOPWATCH) */
188 #ifndef wxUSE_TEXTBUFFER
189 # ifdef wxABORT_ON_CONFIG_ERROR
190 # error "wxUSE_TEXTBUFFER must be defined."
192 # define wxUSE_TEXTBUFFER 0
194 #endif /* !defined(wxUSE_TEXTBUFFER) */
196 #ifndef wxUSE_TEXTFILE
197 # ifdef wxABORT_ON_CONFIG_ERROR
198 # error "wxUSE_TEXTFILE must be defined."
200 # define wxUSE_TEXTFILE 0
202 #endif /* !defined(wxUSE_TEXTFILE) */
204 #ifndef wxUSE_UNICODE
205 # ifdef wxABORT_ON_CONFIG_ERROR
206 # error "wxUSE_UNICODE must be defined."
208 # define wxUSE_UNICODE 0
210 #endif /* !defined(wxUSE_UNICODE) */
213 # ifdef wxABORT_ON_CONFIG_ERROR
214 # error "wxUSE_URL must be defined."
218 #endif /* !defined(wxUSE_URL) */
221 all these tests are for GUI only
226 all of the settings tested below must be defined or we'd get an error from
227 preprocessor about invalid integer expression
231 # ifdef wxABORT_ON_CONFIG_ERROR
232 # error "wxUSE_ACCEL must be defined."
234 # define wxUSE_ACCEL 0
236 #endif /* !defined(wxUSE_ACCEL) */
238 #ifndef wxUSE_BMPBUTTON
239 # ifdef wxABORT_ON_CONFIG_ERROR
240 # error "wxUSE_BMPBUTTON must be defined."
242 # define wxUSE_BMPBUTTON 0
244 #endif /* !defined(wxUSE_BMPBUTTON) */
247 # ifdef wxABORT_ON_CONFIG_ERROR
248 # error "wxUSE_BUTTON must be defined."
250 # define wxUSE_BUTTON 0
252 #endif /* !defined(wxUSE_BUTTON) */
254 #ifndef wxUSE_CALENDARCTRL
255 # ifdef wxABORT_ON_CONFIG_ERROR
256 # error "wxUSE_CALENDARCTRL must be defined."
258 # define wxUSE_CALENDARCTRL 0
260 #endif /* !defined(wxUSE_CALENDARCTRL) */
263 # ifdef wxABORT_ON_CONFIG_ERROR
264 # error "wxUSE_CARET must be defined."
266 # define wxUSE_CARET 0
268 #endif /* !defined(wxUSE_CARET) */
270 #ifndef wxUSE_CHECKBOX
271 # ifdef wxABORT_ON_CONFIG_ERROR
272 # error "wxUSE_CHECKBOX must be defined."
274 # define wxUSE_CHECKBOX 0
276 #endif /* !defined(wxUSE_CHECKBOX) */
278 #ifndef wxUSE_CHECKLISTBOX
279 # ifdef wxABORT_ON_CONFIG_ERROR
280 # error "wxUSE_CHECKLISTBOX must be defined."
282 # define wxUSE_CHECKLISTBOX 0
284 #endif /* !defined(wxUSE_CHECKLISTBOX) */
287 # ifdef wxABORT_ON_CONFIG_ERROR
288 # error "wxUSE_CHOICE must be defined."
290 # define wxUSE_CHOICE 0
292 #endif /* !defined(wxUSE_CHOICE) */
294 #ifndef wxUSE_CHOICEBOOK
295 # ifdef wxABORT_ON_CONFIG_ERROR
296 # error "wxUSE_CHOICEBOOK must be defined."
298 # define wxUSE_CHOICEBOOK 0
300 #endif /* !defined(wxUSE_CHOICEBOOK) */
302 #ifndef wxUSE_CHOICEDLG
303 # ifdef wxABORT_ON_CONFIG_ERROR
304 # error "wxUSE_CHOICEDLG must be defined."
306 # define wxUSE_CHOICEDLG 0
308 #endif /* !defined(wxUSE_CHOICEDLG) */
310 #ifndef wxUSE_CLIPBOARD
311 # ifdef wxABORT_ON_CONFIG_ERROR
312 # error "wxUSE_CLIPBOARD must be defined."
314 # define wxUSE_CLIPBOARD 0
316 #endif /* !defined(wxUSE_CLIPBOARD) */
318 #ifndef wxUSE_COLOURDLG
319 # ifdef wxABORT_ON_CONFIG_ERROR
320 # error "wxUSE_COLOURDLG must be defined."
322 # define wxUSE_COLOURDLG 0
324 #endif /* !defined(wxUSE_COLOURDLG) */
326 #ifndef wxUSE_COMBOBOX
327 # ifdef wxABORT_ON_CONFIG_ERROR
328 # error "wxUSE_COMBOBOX must be defined."
330 # define wxUSE_COMBOBOX 0
332 #endif /* !defined(wxUSE_COMBOBOX) */
334 #ifndef wxUSE_DATAOBJ
335 # ifdef wxABORT_ON_CONFIG_ERROR
336 # error "wxUSE_DATAOBJ must be defined."
338 # define wxUSE_DATAOBJ 0
340 #endif /* !defined(wxUSE_DATAOBJ) */
342 #ifndef wxUSE_DISPLAY
343 # ifdef wxABORT_ON_CONFIG_ERROR
344 # error "wxUSE_DISPLAY must be defined."
346 # define wxUSE_DISPLAY 0
348 #endif /* !defined(wxUSE_DISPLAY) */
350 #ifndef wxUSE_DOC_VIEW_ARCHITECTURE
351 # ifdef wxABORT_ON_CONFIG_ERROR
352 # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
354 # define wxUSE_DOC_VIEW_ARCHITECTURE 0
356 #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
358 #ifndef wxUSE_FILEDLG
359 # ifdef wxABORT_ON_CONFIG_ERROR
360 # error "wxUSE_FILEDLG must be defined."
362 # define wxUSE_FILEDLG 0
364 #endif /* !defined(wxUSE_FILEDLG) */
366 #ifndef wxUSE_FONTDLG
367 # ifdef wxABORT_ON_CONFIG_ERROR
368 # error "wxUSE_FONTDLG must be defined."
370 # define wxUSE_FONTDLG 0
372 #endif /* !defined(wxUSE_FONTDLG) */
374 #ifndef wxUSE_FONTMAP
375 # ifdef wxABORT_ON_CONFIG_ERROR
376 # error "wxUSE_FONTMAP must be defined."
378 # define wxUSE_FONTMAP 0
380 #endif /* !defined(wxUSE_FONTMAP) */
383 # ifdef wxABORT_ON_CONFIG_ERROR
384 # error "wxUSE_GAUGE must be defined."
386 # define wxUSE_GAUGE 0
388 #endif /* !defined(wxUSE_GAUGE) */
391 # ifdef wxABORT_ON_CONFIG_ERROR
392 # error "wxUSE_GRID must be defined."
394 # define wxUSE_GRID 0
396 #endif /* !defined(wxUSE_GRID) */
399 # ifdef wxABORT_ON_CONFIG_ERROR
400 # error "wxUSE_HELP must be defined."
402 # define wxUSE_HELP 0
404 #endif /* !defined(wxUSE_HELP) */
407 # ifdef wxABORT_ON_CONFIG_ERROR
408 # error "wxUSE_HTML must be defined."
410 # define wxUSE_HTML 0
412 #endif /* !defined(wxUSE_HTML) */
415 # ifdef wxABORT_ON_CONFIG_ERROR
416 # error "wxUSE_XRC must be defined."
420 #endif /* !defined(wxUSE_XRC) */
422 #ifndef wxUSE_LIBMSPACK
424 /* set to 0 on platforms that don't have libmspack */
425 # define wxUSE_LIBMSPACK 0
427 # ifdef wxABORT_ON_CONFIG_ERROR
428 # error "wxUSE_LIBMSPACK must be defined."
430 # define wxUSE_LIBMSPACK 0
433 #endif /* !defined(wxUSE_LIBMSPACK) */
435 #ifndef wxUSE_ICO_CUR
436 # ifdef wxABORT_ON_CONFIG_ERROR
437 # error "wxUSE_ICO_CUR must be defined."
439 # define wxUSE_ICO_CUR 0
441 #endif /* !defined(wxUSE_ICO_CUR) */
444 # ifdef wxABORT_ON_CONFIG_ERROR
445 # error "wxUSE_IFF must be defined."
449 #endif /* !defined(wxUSE_IFF) */
451 #ifndef wxUSE_IMAGLIST
452 # ifdef wxABORT_ON_CONFIG_ERROR
453 # error "wxUSE_IMAGLIST must be defined."
455 # define wxUSE_IMAGLIST 0
457 #endif /* !defined(wxUSE_IMAGLIST) */
459 #ifndef wxUSE_JOYSTICK
460 # ifdef wxABORT_ON_CONFIG_ERROR
461 # error "wxUSE_JOYSTICK must be defined."
463 # define wxUSE_JOYSTICK 0
465 #endif /* !defined(wxUSE_JOYSTICK) */
467 #ifndef wxUSE_LISTBOOK
468 # ifdef wxABORT_ON_CONFIG_ERROR
469 # error "wxUSE_LISTBOOK must be defined."
471 # define wxUSE_LISTBOOK 0
473 #endif /* !defined(wxUSE_LISTBOOK) */
475 #ifndef wxUSE_LISTBOX
476 # ifdef wxABORT_ON_CONFIG_ERROR
477 # error "wxUSE_LISTBOX must be defined."
479 # define wxUSE_LISTBOX 0
481 #endif /* !defined(wxUSE_LISTBOX) */
483 #ifndef wxUSE_LISTCTRL
484 # ifdef wxABORT_ON_CONFIG_ERROR
485 # error "wxUSE_LISTCTRL must be defined."
487 # define wxUSE_LISTCTRL 0
489 #endif /* !defined(wxUSE_LISTCTRL) */
492 # ifdef wxABORT_ON_CONFIG_ERROR
493 # error "wxUSE_LOGGUI must be defined."
495 # define wxUSE_LOGGUI 0
497 #endif /* !defined(wxUSE_LOGGUI) */
499 #ifndef wxUSE_LOGWINDOW
500 # ifdef wxABORT_ON_CONFIG_ERROR
501 # error "wxUSE_LOGWINDOW must be defined."
503 # define wxUSE_LOGWINDOW 0
505 #endif /* !defined(wxUSE_LOGWINDOW) */
507 #ifndef wxUSE_LOG_DIALOG
508 # ifdef wxABORT_ON_CONFIG_ERROR
509 # error "wxUSE_LOG_DIALOG must be defined."
511 # define wxUSE_LOG_DIALOG 0
513 #endif /* !defined(wxUSE_LOG_DIALOG) */
516 # ifdef wxABORT_ON_CONFIG_ERROR
517 # error "wxUSE_MDI must be defined."
521 #endif /* !defined(wxUSE_MDI) */
523 #ifndef wxUSE_MDI_ARCHITECTURE
524 # ifdef wxABORT_ON_CONFIG_ERROR
525 # error "wxUSE_MDI_ARCHITECTURE must be defined."
527 # define wxUSE_MDI_ARCHITECTURE 0
529 #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
532 # ifdef wxABORT_ON_CONFIG_ERROR
533 # error "wxUSE_MENUS must be defined."
535 # define wxUSE_MENUS 0
537 #endif /* !defined(wxUSE_MENUS) */
540 # ifdef wxABORT_ON_CONFIG_ERROR
541 # error "wxUSE_MSGDLG must be defined."
543 # define wxUSE_MSGDLG 0
545 #endif /* !defined(wxUSE_MSGDLG) */
547 #ifndef wxUSE_NOTEBOOK
548 # ifdef wxABORT_ON_CONFIG_ERROR
549 # error "wxUSE_NOTEBOOK must be defined."
551 # define wxUSE_NOTEBOOK 0
553 #endif /* !defined(wxUSE_NOTEBOOK) */
555 #ifndef wxUSE_PALETTE
556 # ifdef wxABORT_ON_CONFIG_ERROR
557 # error "wxUSE_PALETTE must be defined."
559 # define wxUSE_PALETTE 0
561 #endif /* !defined(wxUSE_PALETTE) */
563 #ifndef wxUSE_POPUPWIN
564 # ifdef wxABORT_ON_CONFIG_ERROR
565 # error "wxUSE_POPUPWIN must be defined."
567 # define wxUSE_POPUPWIN 0
569 #endif /* !defined(wxUSE_POPUPWIN) */
571 #ifndef wxUSE_PRINTING_ARCHITECTURE
572 # ifdef wxABORT_ON_CONFIG_ERROR
573 # error "wxUSE_PRINTING_ARCHITECTURE must be defined."
575 # define wxUSE_PRINTING_ARCHITECTURE 0
577 #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
579 #ifndef wxUSE_RADIOBOX
580 # ifdef wxABORT_ON_CONFIG_ERROR
581 # error "wxUSE_RADIOBOX must be defined."
583 # define wxUSE_RADIOBOX 0
585 #endif /* !defined(wxUSE_RADIOBOX) */
587 #ifndef wxUSE_RADIOBTN
588 # ifdef wxABORT_ON_CONFIG_ERROR
589 # error "wxUSE_RADIOBTN must be defined."
591 # define wxUSE_RADIOBTN 0
593 #endif /* !defined(wxUSE_RADIOBTN) */
596 # ifdef wxABORT_ON_CONFIG_ERROR
597 # error "wxUSE_SASH must be defined."
599 # define wxUSE_SASH 0
601 #endif /* !defined(wxUSE_SASH) */
603 #ifndef wxUSE_SCROLLBAR
604 # ifdef wxABORT_ON_CONFIG_ERROR
605 # error "wxUSE_SCROLLBAR must be defined."
607 # define wxUSE_SCROLLBAR 0
609 #endif /* !defined(wxUSE_SCROLLBAR) */
612 # ifdef wxABORT_ON_CONFIG_ERROR
613 # error "wxUSE_SLIDER must be defined."
615 # define wxUSE_SLIDER 0
617 #endif /* !defined(wxUSE_SLIDER) */
620 # ifdef wxABORT_ON_CONFIG_ERROR
621 # error "wxUSE_SOUND must be defined."
623 # define wxUSE_SOUND 0
625 #endif /* !defined(wxUSE_SOUND) */
627 #ifndef wxUSE_SPINBTN
628 # ifdef wxABORT_ON_CONFIG_ERROR
629 # error "wxUSE_SPINBTN must be defined."
631 # define wxUSE_SPINBTN 0
633 #endif /* !defined(wxUSE_SPINBTN) */
635 #ifndef wxUSE_SPINCTRL
636 # ifdef wxABORT_ON_CONFIG_ERROR
637 # error "wxUSE_SPINCTRL must be defined."
639 # define wxUSE_SPINCTRL 0
641 #endif /* !defined(wxUSE_SPINCTRL) */
644 # ifdef wxABORT_ON_CONFIG_ERROR
645 # error "wxUSE_SPLASH must be defined."
647 # define wxUSE_SPLASH 0
649 #endif /* !defined(wxUSE_SPLASH) */
651 #ifndef wxUSE_SPLITTER
652 # ifdef wxABORT_ON_CONFIG_ERROR
653 # error "wxUSE_SPLITTER must be defined."
655 # define wxUSE_SPLITTER 0
657 #endif /* !defined(wxUSE_SPLITTER) */
659 #ifndef wxUSE_STATBMP
660 # ifdef wxABORT_ON_CONFIG_ERROR
661 # error "wxUSE_STATBMP must be defined."
663 # define wxUSE_STATBMP 0
665 #endif /* !defined(wxUSE_STATBMP) */
667 #ifndef wxUSE_STATBOX
668 # ifdef wxABORT_ON_CONFIG_ERROR
669 # error "wxUSE_STATBOX must be defined."
671 # define wxUSE_STATBOX 0
673 #endif /* !defined(wxUSE_STATBOX) */
675 #ifndef wxUSE_STATLINE
676 # ifdef wxABORT_ON_CONFIG_ERROR
677 # error "wxUSE_STATLINE must be defined."
679 # define wxUSE_STATLINE 0
681 #endif /* !defined(wxUSE_STATLINE) */
683 #ifndef wxUSE_STATTEXT
684 # ifdef wxABORT_ON_CONFIG_ERROR
685 # error "wxUSE_STATTEXT must be defined."
687 # define wxUSE_STATTEXT 0
689 #endif /* !defined(wxUSE_STATTEXT) */
691 #ifndef wxUSE_STATUSBAR
692 # ifdef wxABORT_ON_CONFIG_ERROR
693 # error "wxUSE_STATUSBAR must be defined."
695 # define wxUSE_STATUSBAR 0
697 #endif /* !defined(wxUSE_STATUSBAR) */
699 #ifndef wxUSE_TAB_DIALOG
700 # ifdef wxABORT_ON_CONFIG_ERROR
701 # error "wxUSE_TAB_DIALOG must be defined."
703 # define wxUSE_TAB_DIALOG 0
705 #endif /* !defined(wxUSE_TAB_DIALOG) */
707 #ifndef wxUSE_TEXTCTRL
708 # ifdef wxABORT_ON_CONFIG_ERROR
709 # error "wxUSE_TEXTCTRL must be defined."
711 # define wxUSE_TEXTCTRL 0
713 #endif /* !defined(wxUSE_TEXTCTRL) */
715 #ifndef wxUSE_TIPWINDOW
716 # ifdef wxABORT_ON_CONFIG_ERROR
717 # error "wxUSE_TIPWINDOW must be defined."
719 # define wxUSE_TIPWINDOW 0
721 #endif /* !defined(wxUSE_TIPWINDOW) */
723 #ifndef wxUSE_TOOLBAR
724 # ifdef wxABORT_ON_CONFIG_ERROR
725 # error "wxUSE_TOOLBAR must be defined."
727 # define wxUSE_TOOLBAR 0
729 #endif /* !defined(wxUSE_TOOLBAR) */
731 #ifndef wxUSE_TOOLTIPS
732 # ifdef wxABORT_ON_CONFIG_ERROR
733 # error "wxUSE_TOOLTIPS must be defined."
735 # define wxUSE_TOOLTIPS 0
737 #endif /* !defined(wxUSE_TOOLTIPS) */
739 #ifndef wxUSE_TREECTRL
740 # ifdef wxABORT_ON_CONFIG_ERROR
741 # error "wxUSE_TREECTRL must be defined."
743 # define wxUSE_TREECTRL 0
745 #endif /* !defined(wxUSE_TREECTRL) */
747 #ifndef wxUSE_VALIDATORS
748 # ifdef wxABORT_ON_CONFIG_ERROR
749 # error "wxUSE_VALIDATORS must be defined."
751 # define wxUSE_VALIDATORS 0
753 #endif /* !defined(wxUSE_VALIDATORS) */
755 #ifndef wxUSE_WXHTML_HELP
756 # ifdef wxABORT_ON_CONFIG_ERROR
757 # error "wxUSE_WXHTML_HELP must be defined."
759 # define wxUSE_WXHTML_HELP 0
761 #endif /* !defined(wxUSE_WXHTML_HELP) */
763 #endif /* wxUSE_GUI */
766 check consistency of the settings
769 #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
771 # ifdef wxABORT_ON_CONFIG_ERROR
772 # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
774 # undef wxUSE_PROTOCOL
775 # define wxUSE_PROTOCOL 1
778 #endif /* wxUSE_PROTOCOL_XXX */
782 # ifdef wxABORT_ON_CONFIG_ERROR
783 # error "wxUSE_URL requires wxUSE_PROTOCOL"
785 # undef wxUSE_PROTOCOL
786 # define wxUSE_PROTOCOL 1
789 #endif /* wxUSE_URL */
793 # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
794 # ifdef wxABORT_ON_CONFIG_ERROR
795 # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
797 # undef wxUSE_SOCKETS
798 # define wxUSE_SOCKETS 1
804 # ifdef wxABORT_ON_CONFIG_ERROR
805 # error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
807 # undef wxUSE_STREAMS
808 # define wxUSE_STREAMS 1
811 #endif /* wxUSE_PROTOCOL */
813 /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
815 # if !wxUSE_FILESYSTEM
816 # ifdef wxABORT_ON_CONFIG_ERROR
817 # error "wxHTML requires wxFileSystem"
819 # undef wxUSE_FILESYSTEM
820 # define wxUSE_FILESYSTEM 1
823 #endif /* wxUSE_HTML */
827 # ifdef wxABORT_ON_CONFIG_ERROR
828 # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
830 # undef wxUSE_STREAMS
831 # define wxUSE_STREAMS 1
834 #endif /* wxUSE_FILESYSTEM */
838 # ifdef wxABORT_ON_CONFIG_ERROR
839 # error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
841 # undef wxUSE_PROTOCOL
842 # define wxUSE_PROTOCOL 1
845 #endif /* wxUSE_FS_INET */
847 #if wxUSE_STOPWATCH || wxUSE_DATETIME
849 # ifdef wxABORT_ON_CONFIG_ERROR
850 # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
852 # undef wxUSE_LONGLONG
853 # define wxUSE_LONGLONG 1
856 #endif /* wxUSE_STOPWATCH */
858 #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
859 # ifdef wxABORT_ON_CONFIG_ERROR
860 # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
862 # undef wxUSE_TEXTFILE
863 # define wxUSE_TEXTFILE 1
865 #endif /* wxUSE_MIMETYPE */
867 #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
868 # ifdef wxABORT_ON_CONFIG_ERROR
869 # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
871 # undef wxUSE_TEXTBUFFER
872 # define wxUSE_TEXTBUFFER 1
874 #endif /* wxUSE_TEXTFILE */
876 #if wxUSE_TEXTFILE && !wxUSE_FILE
877 # ifdef wxABORT_ON_CONFIG_ERROR
878 # error "wxUSE_TEXTFILE requires wxUSE_FILE"
881 # define wxUSE_FILE 1
883 #endif /* wxUSE_TEXTFILE */
885 #if wxUSE_UNICODE_MSLU && !wxUSE_UNICODE
886 # ifdef wxABORT_ON_CONFIG_ERROR
887 # error "wxUSE_UNICODE_MSLU requires wxUSE_UNICODE"
889 # undef wxUSE_UNICODE
890 # define wxUSE_UNICODE 1
892 #endif /* wxUSE_UNICODE_MSLU */
894 /* ODBC and Unicode are now compatible */
896 #if 0 /* wxUSE_ODBC && wxUSE_UNICODE */
897 # ifdef wxABORT_ON_CONFIG_ERROR
898 /* (ODBC classes aren't Unicode-compatible yet) */
899 # error "wxUSE_ODBC can't be used with wxUSE_UNICODE"
902 # define wxUSE_ODBC 0
904 #endif /* wxUSE_ODBC */
906 #if wxUSE_XML && !wxUSE_WCHAR_T
907 # ifdef wxABORT_ON_CONFIG_ERROR
908 # error "wxUSE_XML requires wxUSE_WCHAR_T"
913 #endif /* wxUSE_UNICODE_MSLU */
915 #if !wxUSE_DYNLIB_CLASS
916 # if wxUSE_DYNAMIC_LOADER
917 # ifdef wxABORT_ON_CONFIG_ERROR
918 # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
920 # define wxUSE_DYNLIB_CLASS 1
923 #endif /* wxUSE_DYNLIB_CLASS */
925 /* the rest of the tests is for the GUI settings only */
928 #if wxUSE_BUTTON || \
929 wxUSE_CALENDARCTRL || \
934 wxUSE_CHECKLISTBOX || \
956 # ifdef wxABORT_ON_CONFIG_ERROR
957 # error "wxUSE_CONTROLS unset but some controls used"
959 # undef wxUSE_CONTROLS
960 # define wxUSE_CONTROLS 1
963 #endif /* controls */
967 # ifdef wxABORT_ON_CONFIG_ERROR
968 # error "wxUSE_BMPBUTTON requires wxUSE_BUTTON"
971 # define wxUSE_BUTTON 1
974 #endif /* wxUSE_BMPBUTTON */
976 #if wxUSE_NOTEBOOK || wxUSE_LISTBOOK || wxUSE_CHOICEBOOK
977 # if defined(wxUSE_BOOKCTRL) && !wxUSE_BOOKCTRL
978 # ifdef wxABORT_ON_CONFIG_ERROR
979 # error "wxUSE_BOOKCTRL must be set."
981 # undef wxUSE_BOOKCTRL
985 # ifndef wxUSE_BOOKCTRL
986 # define wxUSE_BOOKCTRL 1
988 #endif /* wxUSE_NOTEBOOK */
992 # ifdef wxABORT_ON_CONFIG_ERROR
993 # error "wxListbook requires wxListCtrl"
995 # undef wxUSE_LISTCTRL
996 # define wxUSE_LISTCTRL 1
999 #endif /* wxUSE_LISTBOOK */
1001 #if wxUSE_CHOICEBOOK
1003 # ifdef wxABORT_ON_CONFIG_ERROR
1004 # error "wxChoicebook requires wxChoice"
1006 # undef wxUSE_CHOICE
1007 # define wxUSE_CHOICE 1
1010 #endif /* wxUSE_CHOICEBOOK */
1012 /* wxUniv-specific dependencies */
1013 #if defined(__WXUNIVERSAL__)
1014 # if (wxUSE_COMBOBOX || wxUSE_MENUS) && !wxUSE_POPUPWIN
1015 # ifdef wxABORT_ON_CONFIG_ERROR
1016 # error "wxUSE_POPUPWIN must be defined to use comboboxes/menus"
1018 # undef wxUSE_POPUPWIN
1019 # define wxUSE_POPUPWIN 1
1025 # ifdef wxABORT_ON_CONFIG_ERROR
1026 # error "wxComboBox requires wxListBox in wxUniversal"
1028 # undef wxUSE_LISTBOX
1029 # define wxUSE_LISTBOX 1
1032 # endif /* wxUSE_COMBOBOX */
1035 # if !wxUSE_CHECKBOX
1036 # ifdef wxABORT_ON_CONFIG_ERROR
1037 # error "wxUSE_RADIOBTN requires wxUSE_CHECKBOX in wxUniversal"
1039 # undef wxUSE_CHECKBOX
1040 # define wxUSE_CHECKBOX 1
1043 # endif /* wxUSE_RADIOBTN */
1047 # ifdef wxABORT_ON_CONFIG_ERROR
1048 # error "wxTextCtrl requires wxCaret in wxUniversal"
1051 # define wxUSE_CARET 1
1053 # endif /* wxUSE_CARET */
1055 # if !wxUSE_SCROLLBAR
1056 # ifdef wxABORT_ON_CONFIG_ERROR
1057 # error "wxTextCtrl requires wxScrollBar in wxUniversal"
1059 # undef wxUSE_SCROLLBAR
1060 # define wxUSE_SCROLLBAR 1
1062 # endif /* wxUSE_SCROLLBAR */
1063 # endif /* wxUSE_TEXTCTRL */
1064 #endif /* __WXUNIVERSAL__ */
1066 /* wxGTK-specific dependencies */
1068 # ifndef __WXUNIVERSAL__
1069 # if wxUSE_MDI_ARCHITECTURE && !wxUSE_MENUS
1070 # ifdef wxABORT_ON_CONFIG_ERROR
1071 # error "MDI requires wxUSE_MENUS in wxGTK"
1074 # define wxUSE_MENUS 1
1077 # endif /* !__WXUNIVERSAL__ */
1081 # ifdef wxABORT_ON_CONFIG_ERROR
1082 # error "wxJoystick requires threads in wxGTK"
1084 # undef wxUSE_JOYSTICK
1085 # define wxUSE_JOYSTICK 0
1089 #endif /* wxGTK && !wxUniv */
1091 /* wxMSW-specific dependencies */
1093 # ifndef wxUSE_UNICODE_MSLU
1094 # ifdef wxABORT_ON_CONFIG_ERROR
1095 # error "wxUSE_UNICODE_MSLU must be defined."
1097 # define wxUSE_UNICODE_MSLU 0
1099 # endif /* wxUSE_UNICODE_MSLU */
1100 # ifndef wxUSE_UXTHEME
1101 # ifdef wxABORT_ON_CONFIG_ERROR
1102 # error "wxUSE_UXTHEME must be defined."
1104 # define wxUSE_UXTHEME 0
1106 # endif /* wxUSE_UXTHEME */
1107 # ifndef wxUSE_UXTHEME_AUTO
1108 # ifdef wxABORT_ON_CONFIG_ERROR
1109 # error "wxUSE_UXTHEME_AUTO must be defined."
1111 # define wxUSE_UXTHEME_AUTO 0
1113 # endif /* wxUSE_UXTHEME_AUTO */
1114 # ifndef wxUSE_MS_HTML_HELP
1115 # ifdef wxABORT_ON_CONFIG_ERROR
1116 # error "wxUSE_MS_HTML_HELP must be defined."
1118 # define wxUSE_MS_HTML_HELP 0
1120 # endif /* !defined(wxUSE_MS_HTML_HELP) */
1121 # ifndef wxUSE_DIALUP_MANAGER
1122 # ifdef wxABORT_ON_CONFIG_ERROR
1123 # error "wxUSE_DIALUP_MANAGER must be defined."
1125 # define wxUSE_DIALUP_MANAGER 0
1127 # endif /* !defined(wxUSE_DIALUP_MANAGER) */
1129 # if !wxUSE_DYNAMIC_LOADER
1130 # if wxUSE_MS_HTML_HELP
1131 # ifdef wxABORT_ON_CONFIG_ERROR
1132 # error "wxUSE_MS_HTML_HELP requires wxUSE_DYNAMIC_LOADER."
1134 # define wxUSE_DYNAMIC_LOADER 1
1137 # if wxUSE_DIALUP_MANAGER
1138 # ifdef wxABORT_ON_CONFIG_ERROR
1139 # error "wxUSE_DIALUP_MANAGER requires wxUSE_DYNAMIC_LOADER."
1141 # define wxUSE_DYNAMIC_LOADER 1
1144 # endif /* wxUSE_DYNAMIC_LOADER */
1147 /* wxMAC-specific dependencies */
1151 # ifdef wxABORT_ON_CONFIG_ERROR
1152 # error "wxUSE_UNICODE is only supported for Carbon Targets."
1154 # define wxUSE_UNICODE 0
1159 /* wxMotif-specific dependencies */
1160 #if defined(__WXMOTIF__) && wxUSE_NOTEBOOK && !wxUSE_TAB_DIALOG
1161 # undef wxUSE_TAB_DIALOG
1162 # define wxUSE_TAB_DIALOG 1
1165 /* wxMGL-specific dependencies */
1168 # error "wxMGL requires wxUSE_PALETTE=1"
1172 /* Hopefully we can emulate these dialogs in due course */
1173 #ifdef __SMARTPHONE__
1174 # ifdef wxUSE_COLOURDLG
1175 # undef wxUSE_COLOURDLG
1176 # define wxUSE_COLOURDLG 0
1178 #endif /* __SMARTPHONE__ */
1181 /* generic controls dependencies */
1182 #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1183 # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1184 /* all common controls are needed by these dialogs */
1185 # if !defined(wxUSE_CHOICE) || \
1186 !defined(wxUSE_TEXTCTRL) || \
1187 !defined(wxUSE_BUTTON) || \
1188 !defined(wxUSE_CHECKBOX) || \
1189 !defined(wxUSE_STATTEXT)
1190 # ifdef wxABORT_ON_CONFIG_ERROR
1191 # error "These common controls are needed by common dialogs"
1193 # undef wxUSE_CHOICE
1194 # define wxUSE_CHOICE 1
1195 # undef wxUSE_TEXTCTRL
1196 # define wxUSE_TEXTCTRL 1
1197 # undef wxUSE_BUTTON
1198 # define wxUSE_BUTTON 1
1199 # undef wxUSE_CHECKBOX
1200 # define wxUSE_CHECKBOX 1
1201 # undef wxUSE_STATTEXT
1202 # define wxUSE_STATTEXT 1
1206 #endif /* !wxMSW || wxUniv */
1208 /* common dependencies */
1209 #if wxUSE_CALENDARCTRL
1210 # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1211 # ifdef wxABORT_ON_CONFIG_ERROR
1212 # error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1214 # undef wxUSE_SPINBTN
1215 # undef wxUSE_COMBOBOX
1216 # define wxUSE_SPINBTN 1
1217 # define wxUSE_COMBOBOX 1
1221 # if !wxUSE_DATETIME
1222 # ifdef wxABORT_ON_CONFIG_ERROR
1223 # error "wxCalendarCtrl requires wxUSE_DATETIME"
1225 # undef wxUSE_DATETIME
1226 # define wxUSE_DATETIME 1
1229 #endif /* wxUSE_CALENDARCTRL */
1231 #if wxUSE_CHECKLISTBOX
1233 # ifdef wxABORT_ON_CONFIG_ERROR
1234 # error "wxCheckListBox requires wxListBox"
1236 # undef wxUSE_LISTBOX
1237 # define wxUSE_LISTBOX 1
1240 #endif /* wxUSE_CHECKLISTBOX */
1244 # ifdef wxABORT_ON_CONFIG_ERROR
1245 # error "Choice dialogs requires wxListBox"
1247 # undef wxUSE_LISTBOX
1248 # define wxUSE_LISTBOX 1
1251 #endif /* wxUSE_CHOICEDLG */
1254 # if !wxUSE_BMPBUTTON
1255 # ifdef wxABORT_ON_CONFIG_ERROR
1256 # error "wxUSE_HELP requires wxUSE_BMPBUTTON"
1258 # undef wxUSE_BMPBUTTON
1259 # define wxUSE_BMPBUTTON 1
1263 # if !wxUSE_CHOICEDLG
1264 # ifdef wxABORT_ON_CONFIG_ERROR
1265 # error "wxUSE_HELP requires wxUSE_CHOICEDLG"
1267 # undef wxUSE_CHOICEDLG
1268 # define wxUSE_CHOICEDLG 1
1271 #endif /* wxUSE_HELP */
1273 #if wxUSE_WXHTML_HELP
1274 # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK
1275 # ifdef wxABORT_ON_CONFIG_ERROR
1276 # error "Built in help controller can't be compiled"
1279 # define wxUSE_HELP 1
1281 # define wxUSE_HTML 1
1282 # undef wxUSE_COMBOBOX
1283 # define wxUSE_COMBOBOX 1
1284 # undef wxUSE_NOTEBOOK
1285 # define wxUSE_NOTEBOOK 1
1288 #endif /* wxUSE_WXHTML_HELP */
1292 The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the
1293 user explicitly wants this and disable all other features that require
1296 # if wxUSE_DRAGIMAGE
1297 # ifdef wxABORT_ON_CONFIG_ERROR
1298 # error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE"
1300 # undef wxUSE_DRAGIMAGE
1301 # define wxUSE_DRAGIMAGE 0
1306 # ifdef wxABORT_ON_CONFIG_ERROR
1307 # error "wxUSE_LIBPNG requires wxUSE_IMAGE"
1309 # undef wxUSE_LIBPNG
1310 # define wxUSE_LIBPNG 0
1315 # ifdef wxABORT_ON_CONFIG_ERROR
1316 # error "wxUSE_LIBJPEG requires wxUSE_IMAGE"
1318 # undef wxUSE_LIBJPEG
1319 # define wxUSE_LIBJPEG 0
1324 # ifdef wxABORT_ON_CONFIG_ERROR
1325 # error "wxUSE_LIBTIFF requires wxUSE_IMAGE"
1327 # undef wxUSE_LIBTIFF
1328 # define wxUSE_LIBTIFF 0
1333 # ifdef wxABORT_ON_CONFIG_ERROR
1334 # error "wxUSE_GIF requires wxUSE_IMAGE"
1337 # define wxUSE_GIF 0
1342 # ifdef wxABORT_ON_CONFIG_ERROR
1343 # error "wxUSE_PNM requires wxUSE_IMAGE"
1346 # define wxUSE_PNM 0
1351 # ifdef wxABORT_ON_CONFIG_ERROR
1352 # error "wxUSE_PCX requires wxUSE_IMAGE"
1355 # define wxUSE_PCX 0
1360 # ifdef wxABORT_ON_CONFIG_ERROR
1361 # error "wxUSE_IFF requires wxUSE_IMAGE"
1364 # define wxUSE_IFF 0
1369 # ifdef wxABORT_ON_CONFIG_ERROR
1370 # error "wxUSE_TOOLBAR requires wxUSE_IMAGE"
1372 # undef wxUSE_TOOLBAR
1373 # define wxUSE_TOOLBAR 0
1378 # ifdef wxABORT_ON_CONFIG_ERROR
1379 # error "wxUSE_XPM requires wxUSE_IMAGE"
1382 # define wxUSE_XPM 0
1386 #endif /* !wxUSE_IMAGE */
1388 #if wxUSE_DOC_VIEW_ARCHITECTURE
1390 # ifdef wxABORT_ON_CONFIG_ERROR
1391 # error "DocView requires wxUSE_MENUS"
1394 # define wxUSE_MENUS 1
1398 # if !wxUSE_CHOICEDLG
1399 # ifdef wxABORT_ON_CONFIG_ERROR
1400 # error "DocView requires wxUSE_CHOICEDLG"
1402 # undef wxUSE_CHOICEDLG
1403 # define wxUSE_CHOICEDLG 1
1407 # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1408 # ifdef wxABORT_ON_CONFIG_ERROR
1409 # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1411 # undef wxUSE_STREAMS
1412 # define wxUSE_STREAMS 1
1415 #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1417 #if wxUSE_PRINTING_ARCHITECTURE
1418 # if !wxUSE_COMBOBOX
1419 # ifdef wxABORT_ON_CONFIG_ERROR
1420 # error "Print dialog requires wxUSE_COMBOBOX"
1422 # undef wxUSE_COMBOBOX
1423 # define wxUSE_COMBOBOX 1
1426 #endif /* wxUSE_PRINTING_ARCHITECTURE */
1428 #if wxUSE_MDI_ARCHITECTURE
1430 # ifdef wxABORT_ON_CONFIG_ERROR
1431 # error "MDI requires wxUSE_MDI"
1434 # define wxUSE_MDI 1
1438 # if !wxUSE_DOC_VIEW_ARCHITECTURE
1439 # ifdef wxABORT_ON_CONFIG_ERROR
1440 # error "MDI requires wxUSE_DOC_VIEW_ARCHITECTURE"
1442 # undef wxUSE_DOC_VIEW_ARCHITECTURE
1443 # define wxUSE_DOC_VIEW_ARCHITECTURE 1
1446 #endif /* wxUSE_MDI_ARCHITECTURE */
1449 # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1450 # ifdef wxABORT_ON_CONFIG_ERROR
1451 # error "wxFileDialog must be compiled as well"
1453 # undef wxUSE_FILEDLG
1454 # define wxUSE_FILEDLG 1
1457 #endif /* wxUSE_FILEDLG */
1460 # if wxUSE_PROGRESSDLG || \
1463 wxUSE_CHOICEDLG || \
1464 wxUSE_NUMBERDLG || \
1467 wxUSE_STARTUP_TIPS || \
1469 # ifdef wxABORT_ON_CONFIG_ERROR
1470 # error "Common and generic dialogs require wxUSE_BUTTON"
1472 # undef wxUSE_BUTTON
1473 # define wxUSE_BUTTON 1
1476 #endif /* wxUSE_PROGRESSDLG */
1479 # if wxUSE_TOOLBAR_NATIVE
1480 # ifdef wxABORT_ON_CONFIG_ERROR
1481 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
1483 # undef wxUSE_TOOLBAR_NATIVE
1484 # define wxUSE_TOOLBAR_NATIVE 0
1488 # if wxUSE_TOOLBAR_SIMPLE
1489 # ifdef wxABORT_ON_CONFIG_ERROR
1490 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_SIMPLE is set to 1"
1492 # undef wxUSE_TOOLBAR_SIMPLE
1493 # define wxUSE_TOOLBAR_SIMPLE 0
1499 # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL
1500 # ifdef wxABORT_ON_CONFIG_ERROR
1501 # error "wxImageList must be compiled as well"
1503 # undef wxUSE_IMAGLIST
1504 # define wxUSE_IMAGLIST 1
1507 #endif /* !wxUSE_IMAGLIST */
1510 # ifdef wxABORT_ON_CONFIG_ERROR
1511 /* FIXME: should compile without it, of course, but doesn't */
1512 # error "wxMessageBox is always needed"
1514 # undef wxUSE_MSGDLG
1515 # define wxUSE_MSGDLG 1
1520 # if !wxUSE_RADIOBTN || !wxUSE_STATBOX
1521 # ifdef wxABORT_ON_CONFIG_ERROR
1522 # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN and wxUSE_STATBOX"
1524 # undef wxUSE_RADIOBTN
1525 # undef wxUSE_STATBOX
1526 # define wxUSE_RADIOBTN 1
1527 # define wxUSE_STATBOX 1
1530 #endif /* wxUSE_RADIOBOX */
1533 # if !wxUSE_TEXTCTRL
1534 # ifdef wxABORT_ON_CONFIG_ERROR
1535 # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
1537 # undef wxUSE_TEXTCTRL
1538 # define wxUSE_TEXTCTRL 1
1541 #endif /* wxUSE_LOGWINDOW */
1543 #if wxUSE_LOG_DIALOG
1544 # if !wxUSE_LISTCTRL || !wxUSE_BUTTON
1545 # ifdef wxABORT_ON_CONFIG_ERROR
1546 # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON"
1548 # undef wxUSE_LISTCTRL
1549 # define wxUSE_LISTCTRL 1
1550 # undef wxUSE_BUTTON
1551 # define wxUSE_BUTTON 1
1554 #endif /* wxUSE_LOG_DIALOG */
1556 /* I wonder if we shouldn't just remove all occurrences of
1557 wxUSE_DYNAMIC_CLASSES from the sources? */
1558 #if !defined(wxUSE_DYNAMIC_CLASSES) || !wxUSE_DYNAMIC_CLASSES
1559 # ifdef wxABORT_ON_CONFIG_ERROR
1560 # error "wxUSE_DYNAMIC_CLASSES must be defined as 1"
1562 # undef wxUSE_DYNAMIC_CLASSES
1563 # define wxUSE_DYNAMIC_CLASSES 1
1565 #endif /* wxUSE_DYNAMIC_CLASSES */
1567 #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
1568 # ifdef wxABORT_ON_CONFIG_ERROR
1569 # error "wxClipboard requires wxDataObject"
1571 # undef wxUSE_DATAOBJ
1572 # define wxUSE_DATAOBJ 1
1574 #endif /* wxUSE_CLIPBOARD */
1576 #if wxUSE_WX_RESOURCES && !wxUSE_PROLOGIO
1577 # ifdef wxABORT_ON_CONFIG_ERROR
1578 # error "wxr resources require PrologIO"
1580 # undef wxUSE_PROLOGIO
1581 # define wxUSE_PROLOGIO 1
1583 #endif /* wxUSE_WX_RESOURCES */
1585 #if wxUSE_XRC && !wxUSE_XML
1586 # ifdef wxABORT_ON_CONFIG_ERROR
1587 # error "wxUSE_XRC requires wxUSE_XML"
1590 # define wxUSE_XRC 0
1592 #endif /* wxUSE_XRC */
1594 #endif /* wxUSE_GUI */