]>
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(__WXPALMOS__)
19 # include "wx/palmos/chkconf.h"
20 #elif defined(__WXWINCE__)
21 # include "wx/msw/wince/chkconf.h"
22 #elif defined(__WXMSW__)
23 # include "wx/msw/chkconf.h"
24 #elif defined(__WXMAC__)
25 # include "wx/mac/chkconf.h"
26 #elif defined(__WXMOTIF__)
27 # include "wx/motif/chkconf.h"
31 this global setting determines what should we do if the setting FOO
32 requires BAR and BAR is not set: we can either silently define BAR
33 (default, recommended) or give an error and abort (mainly useful for
36 #define wxABORT_ON_CONFIG_ERROR
42 /* GUI build by default */
43 #if !defined(wxUSE_GUI)
45 #endif /* !defined(wxUSE_GUI) */
48 If we're compiling without support for threads/exceptions we have to
49 disable the corresponding features.
53 # define wxUSE_THREADS 0
54 #endif /* wxNO_THREADS */
56 #ifdef wxNO_EXCEPTIONS
57 # undef wxUSE_EXCEPTIONS
58 # define wxUSE_EXCEPTIONS 0
59 #endif /* wxNO_EXCEPTIONS */
61 /* we also must disable exceptions if compiler doesn't support them */
62 #if defined(_MSC_VER) && !defined(_CPPUNWIND)
63 # undef wxUSE_EXCEPTIONS
64 # define wxUSE_EXCEPTIONS 0
65 #endif /* VC++ without exceptions support */
69 tests for non GUI features
72 #ifndef wxUSE_DYNLIB_CLASS
73 # ifdef wxABORT_ON_CONFIG_ERROR
74 # error "wxUSE_DYNLIB_CLASS must be defined."
76 # define wxUSE_DYNLIB_CLASS 0
78 #endif /* !defined(wxUSE_DYNLIB_CLASS) */
80 #ifndef wxUSE_EXCEPTIONS
81 # ifdef wxABORT_ON_CONFIG_ERROR
82 # error "wxUSE_EXCEPTIONS must be defined."
84 # define wxUSE_EXCEPTIONS 0
86 #endif /* !defined(wxUSE_EXCEPTIONS) */
88 #ifndef wxUSE_FILESYSTEM
89 # ifdef wxABORT_ON_CONFIG_ERROR
90 # error "wxUSE_FILESYSTEM must be defined."
92 # define wxUSE_FILESYSTEM 0
94 #endif /* !defined(wxUSE_FILESYSTEM) */
96 /* don't give an error about this one yet, it's not fully implemented */
97 #ifndef wxUSE_FSVOLUME
98 # define wxUSE_FSVOLUME 0
99 #endif /* !defined(wxUSE_FSVOLUME) */
101 #ifndef wxUSE_DYNAMIC_LOADER
102 # ifdef wxABORT_ON_CONFIG_ERROR
103 # error "wxUSE_DYNAMIC_LOADER must be defined."
105 # define wxUSE_DYNAMIC_LOADER 0
107 #endif /* !defined(wxUSE_DYNAMIC_LOADER) */
110 # ifdef wxABORT_ON_CONFIG_ERROR
111 # error "wxUSE_LOG must be defined."
115 #endif /* !defined(wxUSE_LOG) */
117 #ifndef wxUSE_LONGLONG
118 # ifdef wxABORT_ON_CONFIG_ERROR
119 # error "wxUSE_LONGLONG must be defined."
121 # define wxUSE_LONGLONG 0
123 #endif /* !defined(wxUSE_LONGLONG) */
125 #ifndef wxUSE_MIMETYPE
126 # ifdef wxABORT_ON_CONFIG_ERROR
127 # error "wxUSE_MIMETYPE must be defined."
129 # define wxUSE_MIMETYPE 0
131 #endif /* !defined(wxUSE_MIMETYPE) */
133 #ifndef wxUSE_PROTOCOL
134 # ifdef wxABORT_ON_CONFIG_ERROR
135 # error "wxUSE_PROTOCOL must be defined."
137 # define wxUSE_PROTOCOL 0
139 #endif /* !defined(wxUSE_PROTOCOL) */
141 /* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */
143 # undef wxUSE_PROTOCOL_HTTP
144 # undef wxUSE_PROTOCOL_FTP
145 # undef wxUSE_PROTOCOL_FILE
146 # define wxUSE_PROTOCOL_HTTP 0
147 # define wxUSE_PROTOCOL_FTP 0
148 # define wxUSE_PROTOCOL_FILE 0
149 #endif /* wxUSE_PROTOCOL */
151 #ifndef wxUSE_PROTOCOL_HTTP
152 # ifdef wxABORT_ON_CONFIG_ERROR
153 # error "wxUSE_PROTOCOL_HTTP must be defined."
155 # define wxUSE_PROTOCOL_HTTP 0
157 #endif /* !defined(wxUSE_PROTOCOL_HTTP) */
159 #ifndef wxUSE_PROTOCOL_FTP
160 # ifdef wxABORT_ON_CONFIG_ERROR
161 # error "wxUSE_PROTOCOL_FTP must be defined."
163 # define wxUSE_PROTOCOL_FTP 0
165 #endif /* !defined(wxUSE_PROTOCOL_FTP) */
167 #ifndef wxUSE_PROTOCOL_FILE
168 # ifdef wxABORT_ON_CONFIG_ERROR
169 # error "wxUSE_PROTOCOL_FILE must be defined."
171 # define wxUSE_PROTOCOL_FILE 0
173 #endif /* !defined(wxUSE_PROTOCOL_FILE) */
176 # ifdef wxABORT_ON_CONFIG_ERROR
177 # error "wxUSE_REGEX must be defined."
179 # define wxUSE_REGEX 0
181 #endif /* !defined(wxUSE_REGEX) */
183 #ifndef wxUSE_STDPATHS
184 # ifdef wxABORT_ON_CONFIG_ERROR
185 # error "wxUSE_STDPATHS must be defined."
187 # define wxUSE_STDPATHS 1
189 #endif /* !defined(wxUSE_STDPATHS) */
192 # ifdef wxABORT_ON_CONFIG_ERROR
193 # error "wxUSE_XML must be defined."
197 #endif /* !defined(wxUSE_XML) */
199 #ifndef wxUSE_SOCKETS
200 # ifdef wxABORT_ON_CONFIG_ERROR
201 # error "wxUSE_SOCKETS must be defined."
203 # define wxUSE_SOCKETS 0
205 #endif /* !defined(wxUSE_SOCKETS) */
207 #ifndef wxUSE_STREAMS
208 # ifdef wxABORT_ON_CONFIG_ERROR
209 # error "wxUSE_STREAMS must be defined."
211 # define wxUSE_STREAMS 0
213 #endif /* !defined(wxUSE_STREAMS) */
215 #ifndef wxUSE_STOPWATCH
216 # ifdef wxABORT_ON_CONFIG_ERROR
217 # error "wxUSE_STOPWATCH must be defined."
219 # define wxUSE_STOPWATCH 0
221 #endif /* !defined(wxUSE_STOPWATCH) */
223 #ifndef wxUSE_TEXTBUFFER
224 # ifdef wxABORT_ON_CONFIG_ERROR
225 # error "wxUSE_TEXTBUFFER must be defined."
227 # define wxUSE_TEXTBUFFER 0
229 #endif /* !defined(wxUSE_TEXTBUFFER) */
231 #ifndef wxUSE_TEXTFILE
232 # ifdef wxABORT_ON_CONFIG_ERROR
233 # error "wxUSE_TEXTFILE must be defined."
235 # define wxUSE_TEXTFILE 0
237 #endif /* !defined(wxUSE_TEXTFILE) */
239 #ifndef wxUSE_UNICODE
240 # ifdef wxABORT_ON_CONFIG_ERROR
241 # error "wxUSE_UNICODE must be defined."
243 # define wxUSE_UNICODE 0
245 #endif /* !defined(wxUSE_UNICODE) */
248 # ifdef wxABORT_ON_CONFIG_ERROR
249 # error "wxUSE_URL must be defined."
253 #endif /* !defined(wxUSE_URL) */
256 all these tests are for GUI only
261 all of the settings tested below must be defined or we'd get an error from
262 preprocessor about invalid integer expression
266 # ifdef wxABORT_ON_CONFIG_ERROR
267 # error "wxUSE_ACCEL must be defined."
269 # define wxUSE_ACCEL 0
271 #endif /* !defined(wxUSE_ACCEL) */
273 #ifndef wxUSE_BMPBUTTON
274 # ifdef wxABORT_ON_CONFIG_ERROR
275 # error "wxUSE_BMPBUTTON must be defined."
277 # define wxUSE_BMPBUTTON 0
279 #endif /* !defined(wxUSE_BMPBUTTON) */
282 # ifdef wxABORT_ON_CONFIG_ERROR
283 # error "wxUSE_BUTTON must be defined."
285 # define wxUSE_BUTTON 0
287 #endif /* !defined(wxUSE_BUTTON) */
289 #ifndef wxUSE_CALENDARCTRL
290 # ifdef wxABORT_ON_CONFIG_ERROR
291 # error "wxUSE_CALENDARCTRL must be defined."
293 # define wxUSE_CALENDARCTRL 0
295 #endif /* !defined(wxUSE_CALENDARCTRL) */
298 # ifdef wxABORT_ON_CONFIG_ERROR
299 # error "wxUSE_CARET must be defined."
301 # define wxUSE_CARET 0
303 #endif /* !defined(wxUSE_CARET) */
305 #ifndef wxUSE_CHECKBOX
306 # ifdef wxABORT_ON_CONFIG_ERROR
307 # error "wxUSE_CHECKBOX must be defined."
309 # define wxUSE_CHECKBOX 0
311 #endif /* !defined(wxUSE_CHECKBOX) */
313 #ifndef wxUSE_CHECKLISTBOX
314 # ifdef wxABORT_ON_CONFIG_ERROR
315 # error "wxUSE_CHECKLISTBOX must be defined."
317 # define wxUSE_CHECKLISTBOX 0
319 #endif /* !defined(wxUSE_CHECKLISTBOX) */
322 # ifdef wxABORT_ON_CONFIG_ERROR
323 # error "wxUSE_CHOICE must be defined."
325 # define wxUSE_CHOICE 0
327 #endif /* !defined(wxUSE_CHOICE) */
329 #ifndef wxUSE_CHOICEBOOK
330 # ifdef wxABORT_ON_CONFIG_ERROR
331 # error "wxUSE_CHOICEBOOK must be defined."
333 # define wxUSE_CHOICEBOOK 0
335 #endif /* !defined(wxUSE_CHOICEBOOK) */
337 #ifndef wxUSE_CHOICEDLG
338 # ifdef wxABORT_ON_CONFIG_ERROR
339 # error "wxUSE_CHOICEDLG must be defined."
341 # define wxUSE_CHOICEDLG 0
343 #endif /* !defined(wxUSE_CHOICEDLG) */
345 #ifndef wxUSE_CLIPBOARD
346 # ifdef wxABORT_ON_CONFIG_ERROR
347 # error "wxUSE_CLIPBOARD must be defined."
349 # define wxUSE_CLIPBOARD 0
351 #endif /* !defined(wxUSE_CLIPBOARD) */
353 #ifndef wxUSE_COLOURDLG
354 # ifdef wxABORT_ON_CONFIG_ERROR
355 # error "wxUSE_COLOURDLG must be defined."
357 # define wxUSE_COLOURDLG 0
359 #endif /* !defined(wxUSE_COLOURDLG) */
361 #ifndef wxUSE_COMBOBOX
362 # ifdef wxABORT_ON_CONFIG_ERROR
363 # error "wxUSE_COMBOBOX must be defined."
365 # define wxUSE_COMBOBOX 0
367 #endif /* !defined(wxUSE_COMBOBOX) */
369 #ifndef wxUSE_DATAOBJ
370 # ifdef wxABORT_ON_CONFIG_ERROR
371 # error "wxUSE_DATAOBJ must be defined."
373 # define wxUSE_DATAOBJ 0
375 #endif /* !defined(wxUSE_DATAOBJ) */
377 #ifndef wxUSE_DATEPICKCTRL
378 # ifdef wxABORT_ON_CONFIG_ERROR
379 # error "wxUSE_DATEPICKCTRL must be defined."
381 # define wxUSE_DATEPICKCTRL 0
383 #endif /* !defined(wxUSE_DATEPICKCTRL) */
385 #ifndef wxUSE_DISPLAY
386 # ifdef wxABORT_ON_CONFIG_ERROR
387 # error "wxUSE_DISPLAY must be defined."
389 # define wxUSE_DISPLAY 0
391 #endif /* !defined(wxUSE_DISPLAY) */
393 #ifndef wxUSE_DOC_VIEW_ARCHITECTURE
394 # ifdef wxABORT_ON_CONFIG_ERROR
395 # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
397 # define wxUSE_DOC_VIEW_ARCHITECTURE 0
399 #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
401 #ifndef wxUSE_FILEDLG
402 # ifdef wxABORT_ON_CONFIG_ERROR
403 # error "wxUSE_FILEDLG must be defined."
405 # define wxUSE_FILEDLG 0
407 #endif /* !defined(wxUSE_FILEDLG) */
409 #ifndef wxUSE_FONTDLG
410 # ifdef wxABORT_ON_CONFIG_ERROR
411 # error "wxUSE_FONTDLG must be defined."
413 # define wxUSE_FONTDLG 0
415 #endif /* !defined(wxUSE_FONTDLG) */
417 #ifndef wxUSE_FONTMAP
418 # ifdef wxABORT_ON_CONFIG_ERROR
419 # error "wxUSE_FONTMAP must be defined."
421 # define wxUSE_FONTMAP 0
423 #endif /* !defined(wxUSE_FONTMAP) */
426 # ifdef wxABORT_ON_CONFIG_ERROR
427 # error "wxUSE_GAUGE must be defined."
429 # define wxUSE_GAUGE 0
431 #endif /* !defined(wxUSE_GAUGE) */
434 # ifdef wxABORT_ON_CONFIG_ERROR
435 # error "wxUSE_GRID must be defined."
437 # define wxUSE_GRID 0
439 #endif /* !defined(wxUSE_GRID) */
442 # ifdef wxABORT_ON_CONFIG_ERROR
443 # error "wxUSE_HELP must be defined."
445 # define wxUSE_HELP 0
447 #endif /* !defined(wxUSE_HELP) */
450 # ifdef wxABORT_ON_CONFIG_ERROR
451 # error "wxUSE_HTML must be defined."
453 # define wxUSE_HTML 0
455 #endif /* !defined(wxUSE_HTML) */
458 # ifdef wxABORT_ON_CONFIG_ERROR
459 # error "wxUSE_XRC must be defined."
463 #endif /* !defined(wxUSE_XRC) */
465 #ifndef wxUSE_LIBMSPACK
467 /* set to 0 on platforms that don't have libmspack */
468 # define wxUSE_LIBMSPACK 0
470 # ifdef wxABORT_ON_CONFIG_ERROR
471 # error "wxUSE_LIBMSPACK must be defined."
473 # define wxUSE_LIBMSPACK 0
476 #endif /* !defined(wxUSE_LIBMSPACK) */
478 #ifndef wxUSE_ICO_CUR
479 # ifdef wxABORT_ON_CONFIG_ERROR
480 # error "wxUSE_ICO_CUR must be defined."
482 # define wxUSE_ICO_CUR 0
484 #endif /* !defined(wxUSE_ICO_CUR) */
487 # ifdef wxABORT_ON_CONFIG_ERROR
488 # error "wxUSE_IFF must be defined."
492 #endif /* !defined(wxUSE_IFF) */
494 #ifndef wxUSE_IMAGLIST
495 # ifdef wxABORT_ON_CONFIG_ERROR
496 # error "wxUSE_IMAGLIST must be defined."
498 # define wxUSE_IMAGLIST 0
500 #endif /* !defined(wxUSE_IMAGLIST) */
502 #ifndef wxUSE_JOYSTICK
503 # ifdef wxABORT_ON_CONFIG_ERROR
504 # error "wxUSE_JOYSTICK must be defined."
506 # define wxUSE_JOYSTICK 0
508 #endif /* !defined(wxUSE_JOYSTICK) */
510 #ifndef wxUSE_LISTBOOK
511 # ifdef wxABORT_ON_CONFIG_ERROR
512 # error "wxUSE_LISTBOOK must be defined."
514 # define wxUSE_LISTBOOK 0
516 #endif /* !defined(wxUSE_LISTBOOK) */
518 #ifndef wxUSE_LISTBOX
519 # ifdef wxABORT_ON_CONFIG_ERROR
520 # error "wxUSE_LISTBOX must be defined."
522 # define wxUSE_LISTBOX 0
524 #endif /* !defined(wxUSE_LISTBOX) */
526 #ifndef wxUSE_LISTCTRL
527 # ifdef wxABORT_ON_CONFIG_ERROR
528 # error "wxUSE_LISTCTRL must be defined."
530 # define wxUSE_LISTCTRL 0
532 #endif /* !defined(wxUSE_LISTCTRL) */
535 # ifdef wxABORT_ON_CONFIG_ERROR
536 # error "wxUSE_LOGGUI must be defined."
538 # define wxUSE_LOGGUI 0
540 #endif /* !defined(wxUSE_LOGGUI) */
542 #ifndef wxUSE_LOGWINDOW
543 # ifdef wxABORT_ON_CONFIG_ERROR
544 # error "wxUSE_LOGWINDOW must be defined."
546 # define wxUSE_LOGWINDOW 0
548 #endif /* !defined(wxUSE_LOGWINDOW) */
550 #ifndef wxUSE_LOG_DIALOG
551 # ifdef wxABORT_ON_CONFIG_ERROR
552 # error "wxUSE_LOG_DIALOG must be defined."
554 # define wxUSE_LOG_DIALOG 0
556 #endif /* !defined(wxUSE_LOG_DIALOG) */
559 # ifdef wxABORT_ON_CONFIG_ERROR
560 # error "wxUSE_MDI must be defined."
564 #endif /* !defined(wxUSE_MDI) */
566 #ifndef wxUSE_MDI_ARCHITECTURE
567 # ifdef wxABORT_ON_CONFIG_ERROR
568 # error "wxUSE_MDI_ARCHITECTURE must be defined."
570 # define wxUSE_MDI_ARCHITECTURE 0
572 #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
575 # ifdef wxABORT_ON_CONFIG_ERROR
576 # error "wxUSE_MENUS must be defined."
578 # define wxUSE_MENUS 0
580 #endif /* !defined(wxUSE_MENUS) */
583 # ifdef wxABORT_ON_CONFIG_ERROR
584 # error "wxUSE_MSGDLG must be defined."
586 # define wxUSE_MSGDLG 0
588 #endif /* !defined(wxUSE_MSGDLG) */
590 #ifndef wxUSE_NOTEBOOK
591 # ifdef wxABORT_ON_CONFIG_ERROR
592 # error "wxUSE_NOTEBOOK must be defined."
594 # define wxUSE_NOTEBOOK 0
596 #endif /* !defined(wxUSE_NOTEBOOK) */
598 #ifndef wxUSE_PALETTE
599 # ifdef wxABORT_ON_CONFIG_ERROR
600 # error "wxUSE_PALETTE must be defined."
602 # define wxUSE_PALETTE 0
604 #endif /* !defined(wxUSE_PALETTE) */
606 #ifndef wxUSE_POPUPWIN
607 # ifdef wxABORT_ON_CONFIG_ERROR
608 # error "wxUSE_POPUPWIN must be defined."
610 # define wxUSE_POPUPWIN 0
612 #endif /* !defined(wxUSE_POPUPWIN) */
614 #ifndef wxUSE_PRINTING_ARCHITECTURE
615 # ifdef wxABORT_ON_CONFIG_ERROR
616 # error "wxUSE_PRINTING_ARCHITECTURE must be defined."
618 # define wxUSE_PRINTING_ARCHITECTURE 0
620 #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
622 #ifndef wxUSE_RADIOBOX
623 # ifdef wxABORT_ON_CONFIG_ERROR
624 # error "wxUSE_RADIOBOX must be defined."
626 # define wxUSE_RADIOBOX 0
628 #endif /* !defined(wxUSE_RADIOBOX) */
630 #ifndef wxUSE_RADIOBTN
631 # ifdef wxABORT_ON_CONFIG_ERROR
632 # error "wxUSE_RADIOBTN must be defined."
634 # define wxUSE_RADIOBTN 0
636 #endif /* !defined(wxUSE_RADIOBTN) */
639 # ifdef wxABORT_ON_CONFIG_ERROR
640 # error "wxUSE_SASH must be defined."
642 # define wxUSE_SASH 0
644 #endif /* !defined(wxUSE_SASH) */
646 #ifndef wxUSE_SCROLLBAR
647 # ifdef wxABORT_ON_CONFIG_ERROR
648 # error "wxUSE_SCROLLBAR must be defined."
650 # define wxUSE_SCROLLBAR 0
652 #endif /* !defined(wxUSE_SCROLLBAR) */
655 # ifdef wxABORT_ON_CONFIG_ERROR
656 # error "wxUSE_SLIDER must be defined."
658 # define wxUSE_SLIDER 0
660 #endif /* !defined(wxUSE_SLIDER) */
663 # ifdef wxABORT_ON_CONFIG_ERROR
664 # error "wxUSE_SOUND must be defined."
666 # define wxUSE_SOUND 0
668 #endif /* !defined(wxUSE_SOUND) */
670 #ifndef wxUSE_SPINBTN
671 # ifdef wxABORT_ON_CONFIG_ERROR
672 # error "wxUSE_SPINBTN must be defined."
674 # define wxUSE_SPINBTN 0
676 #endif /* !defined(wxUSE_SPINBTN) */
678 #ifndef wxUSE_SPINCTRL
679 # ifdef wxABORT_ON_CONFIG_ERROR
680 # error "wxUSE_SPINCTRL must be defined."
682 # define wxUSE_SPINCTRL 0
684 #endif /* !defined(wxUSE_SPINCTRL) */
687 # ifdef wxABORT_ON_CONFIG_ERROR
688 # error "wxUSE_SPLASH must be defined."
690 # define wxUSE_SPLASH 0
692 #endif /* !defined(wxUSE_SPLASH) */
694 #ifndef wxUSE_SPLITTER
695 # ifdef wxABORT_ON_CONFIG_ERROR
696 # error "wxUSE_SPLITTER must be defined."
698 # define wxUSE_SPLITTER 0
700 #endif /* !defined(wxUSE_SPLITTER) */
702 #ifndef wxUSE_STATBMP
703 # ifdef wxABORT_ON_CONFIG_ERROR
704 # error "wxUSE_STATBMP must be defined."
706 # define wxUSE_STATBMP 0
708 #endif /* !defined(wxUSE_STATBMP) */
710 #ifndef wxUSE_STATBOX
711 # ifdef wxABORT_ON_CONFIG_ERROR
712 # error "wxUSE_STATBOX must be defined."
714 # define wxUSE_STATBOX 0
716 #endif /* !defined(wxUSE_STATBOX) */
718 #ifndef wxUSE_STATLINE
719 # ifdef wxABORT_ON_CONFIG_ERROR
720 # error "wxUSE_STATLINE must be defined."
722 # define wxUSE_STATLINE 0
724 #endif /* !defined(wxUSE_STATLINE) */
726 #ifndef wxUSE_STATTEXT
727 # ifdef wxABORT_ON_CONFIG_ERROR
728 # error "wxUSE_STATTEXT must be defined."
730 # define wxUSE_STATTEXT 0
732 #endif /* !defined(wxUSE_STATTEXT) */
734 #ifndef wxUSE_STATUSBAR
735 # ifdef wxABORT_ON_CONFIG_ERROR
736 # error "wxUSE_STATUSBAR must be defined."
738 # define wxUSE_STATUSBAR 0
740 #endif /* !defined(wxUSE_STATUSBAR) */
742 #ifndef wxUSE_TAB_DIALOG
743 # ifdef wxABORT_ON_CONFIG_ERROR
744 # error "wxUSE_TAB_DIALOG must be defined."
746 # define wxUSE_TAB_DIALOG 0
748 #endif /* !defined(wxUSE_TAB_DIALOG) */
750 #ifndef wxUSE_TEXTCTRL
751 # ifdef wxABORT_ON_CONFIG_ERROR
752 # error "wxUSE_TEXTCTRL must be defined."
754 # define wxUSE_TEXTCTRL 0
756 #endif /* !defined(wxUSE_TEXTCTRL) */
758 #ifndef wxUSE_TIPWINDOW
759 # ifdef wxABORT_ON_CONFIG_ERROR
760 # error "wxUSE_TIPWINDOW must be defined."
762 # define wxUSE_TIPWINDOW 0
764 #endif /* !defined(wxUSE_TIPWINDOW) */
766 #ifndef wxUSE_TOOLBAR
767 # ifdef wxABORT_ON_CONFIG_ERROR
768 # error "wxUSE_TOOLBAR must be defined."
770 # define wxUSE_TOOLBAR 0
772 #endif /* !defined(wxUSE_TOOLBAR) */
774 #ifndef wxUSE_TOOLTIPS
775 # ifdef wxABORT_ON_CONFIG_ERROR
776 # error "wxUSE_TOOLTIPS must be defined."
778 # define wxUSE_TOOLTIPS 0
780 #endif /* !defined(wxUSE_TOOLTIPS) */
782 #ifndef wxUSE_TREECTRL
783 # ifdef wxABORT_ON_CONFIG_ERROR
784 # error "wxUSE_TREECTRL must be defined."
786 # define wxUSE_TREECTRL 0
788 #endif /* !defined(wxUSE_TREECTRL) */
790 #ifndef wxUSE_VALIDATORS
791 # ifdef wxABORT_ON_CONFIG_ERROR
792 # error "wxUSE_VALIDATORS must be defined."
794 # define wxUSE_VALIDATORS 0
796 #endif /* !defined(wxUSE_VALIDATORS) */
798 #ifndef wxUSE_WXHTML_HELP
799 # ifdef wxABORT_ON_CONFIG_ERROR
800 # error "wxUSE_WXHTML_HELP must be defined."
802 # define wxUSE_WXHTML_HELP 0
804 #endif /* !defined(wxUSE_WXHTML_HELP) */
806 #endif /* wxUSE_GUI */
809 check consistency of the settings
812 #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
814 # ifdef wxABORT_ON_CONFIG_ERROR
815 # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
817 # undef wxUSE_PROTOCOL
818 # define wxUSE_PROTOCOL 1
821 #endif /* wxUSE_PROTOCOL_XXX */
825 # ifdef wxABORT_ON_CONFIG_ERROR
826 # error "wxUSE_URL requires wxUSE_PROTOCOL"
828 # undef wxUSE_PROTOCOL
829 # define wxUSE_PROTOCOL 1
832 #endif /* wxUSE_URL */
836 # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
837 # ifdef wxABORT_ON_CONFIG_ERROR
838 # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
840 # undef wxUSE_SOCKETS
841 # define wxUSE_SOCKETS 1
847 # ifdef wxABORT_ON_CONFIG_ERROR
848 # error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
850 # undef wxUSE_STREAMS
851 # define wxUSE_STREAMS 1
854 #endif /* wxUSE_PROTOCOL */
856 /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
858 # if !wxUSE_FILESYSTEM
859 # ifdef wxABORT_ON_CONFIG_ERROR
860 # error "wxHTML requires wxFileSystem"
862 # undef wxUSE_FILESYSTEM
863 # define wxUSE_FILESYSTEM 1
866 #endif /* wxUSE_HTML */
870 # ifdef wxABORT_ON_CONFIG_ERROR
871 # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
873 # undef wxUSE_STREAMS
874 # define wxUSE_STREAMS 1
877 #endif /* wxUSE_FILESYSTEM */
881 # ifdef wxABORT_ON_CONFIG_ERROR
882 # error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
884 # undef wxUSE_PROTOCOL
885 # define wxUSE_PROTOCOL 1
888 #endif /* wxUSE_FS_INET */
890 #if wxUSE_STOPWATCH || wxUSE_DATETIME
892 # ifdef wxABORT_ON_CONFIG_ERROR
893 # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
895 # undef wxUSE_LONGLONG
896 # define wxUSE_LONGLONG 1
899 #endif /* wxUSE_STOPWATCH */
901 #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
902 # ifdef wxABORT_ON_CONFIG_ERROR
903 # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
905 # undef wxUSE_TEXTFILE
906 # define wxUSE_TEXTFILE 1
908 #endif /* wxUSE_MIMETYPE */
910 #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
911 # ifdef wxABORT_ON_CONFIG_ERROR
912 # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
914 # undef wxUSE_TEXTBUFFER
915 # define wxUSE_TEXTBUFFER 1
917 #endif /* wxUSE_TEXTFILE */
919 #if wxUSE_TEXTFILE && !wxUSE_FILE
920 # ifdef wxABORT_ON_CONFIG_ERROR
921 # error "wxUSE_TEXTFILE requires wxUSE_FILE"
924 # define wxUSE_FILE 1
926 #endif /* wxUSE_TEXTFILE */
928 #if wxUSE_UNICODE_MSLU && !wxUSE_UNICODE
929 # ifdef wxABORT_ON_CONFIG_ERROR
930 # error "wxUSE_UNICODE_MSLU requires wxUSE_UNICODE"
932 # undef wxUSE_UNICODE
933 # define wxUSE_UNICODE 1
935 #endif /* wxUSE_UNICODE_MSLU */
937 /* ODBC and Unicode are now compatible */
939 #if 0 /* wxUSE_ODBC && wxUSE_UNICODE */
940 # ifdef wxABORT_ON_CONFIG_ERROR
941 /* (ODBC classes aren't Unicode-compatible yet) */
942 # error "wxUSE_ODBC can't be used with wxUSE_UNICODE"
945 # define wxUSE_ODBC 0
947 #endif /* wxUSE_ODBC */
949 #if wxUSE_XML && !wxUSE_WCHAR_T
950 # ifdef wxABORT_ON_CONFIG_ERROR
951 # error "wxUSE_XML requires wxUSE_WCHAR_T"
956 #endif /* wxUSE_UNICODE_MSLU */
958 #if !wxUSE_DYNLIB_CLASS
959 # if wxUSE_DYNAMIC_LOADER
960 # ifdef wxABORT_ON_CONFIG_ERROR
961 # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
963 # define wxUSE_DYNLIB_CLASS 1
966 #endif /* wxUSE_DYNLIB_CLASS */
970 # ifdef wxABORT_ON_CONFIG_ERROR
971 # error "wxZip requires wxZlib"
974 # define wxUSE_ZLIB 1
977 # if !wxUSE_ARCHIVE_STREAMS
978 # ifdef wxABORT_ON_CONFIG_ERROR
979 # error "wxZip requires wxArchive"
981 # undef wxUSE_ARCHIVE_STREAMS
982 # define wxUSE_ARCHIVE_STREAMS 1
985 #endif /* wxUSE_ZIPSTREAM */
987 /* the rest of the tests is for the GUI settings only */
990 #if wxUSE_BUTTON || \
991 wxUSE_CALENDARCTRL || \
996 wxUSE_CHECKLISTBOX || \
1005 wxUSE_SCROLLBAR || \
1013 wxUSE_STATUSBAR || \
1017 # if !wxUSE_CONTROLS
1018 # ifdef wxABORT_ON_CONFIG_ERROR
1019 # error "wxUSE_CONTROLS unset but some controls used"
1021 # undef wxUSE_CONTROLS
1022 # define wxUSE_CONTROLS 1
1025 #endif /* controls */
1029 # ifdef wxABORT_ON_CONFIG_ERROR
1030 # error "wxUSE_BMPBUTTON requires wxUSE_BUTTON"
1032 # undef wxUSE_BUTTON
1033 # define wxUSE_BUTTON 1
1036 #endif /* wxUSE_BMPBUTTON */
1038 #if wxUSE_NOTEBOOK || wxUSE_LISTBOOK || wxUSE_CHOICEBOOK
1039 # if defined(wxUSE_BOOKCTRL) && !wxUSE_BOOKCTRL
1040 # ifdef wxABORT_ON_CONFIG_ERROR
1041 # error "wxUSE_BOOKCTRL must be set."
1043 # undef wxUSE_BOOKCTRL
1047 # ifndef wxUSE_BOOKCTRL
1048 # define wxUSE_BOOKCTRL 1
1050 #endif /* wxUSE_NOTEBOOK */
1053 # if !wxUSE_LISTCTRL
1054 # ifdef wxABORT_ON_CONFIG_ERROR
1055 # error "wxListbook requires wxListCtrl"
1057 # undef wxUSE_LISTCTRL
1058 # define wxUSE_LISTCTRL 1
1061 #endif /* wxUSE_LISTBOOK */
1063 #if wxUSE_CHOICEBOOK
1065 # ifdef wxABORT_ON_CONFIG_ERROR
1066 # error "wxChoicebook requires wxChoice"
1068 # undef wxUSE_CHOICE
1069 # define wxUSE_CHOICE 1
1072 #endif /* wxUSE_CHOICEBOOK */
1074 /* don't attempt to use native status bar on the platforms not having it */
1075 #ifndef wxUSE_NATIVE_STATUSBAR
1076 # define wxUSE_NATIVE_STATUSBAR 0
1077 #elif wxUSE_NATIVE_STATUSBAR
1078 # if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \
1079 defined(__WXMAC__) || \
1080 defined(__WXPALMOS__) )
1081 # undef wxUSE_NATIVE_STATUSBAR
1082 # define wxUSE_NATIVE_STATUSBAR 0
1086 /* wxUniv-specific dependencies */
1087 #if defined(__WXUNIVERSAL__)
1088 # if (wxUSE_COMBOBOX || wxUSE_MENUS) && !wxUSE_POPUPWIN
1089 # ifdef wxABORT_ON_CONFIG_ERROR
1090 # error "wxUSE_POPUPWIN must be defined to use comboboxes/menus"
1092 # undef wxUSE_POPUPWIN
1093 # define wxUSE_POPUPWIN 1
1099 # ifdef wxABORT_ON_CONFIG_ERROR
1100 # error "wxComboBox requires wxListBox in wxUniversal"
1102 # undef wxUSE_LISTBOX
1103 # define wxUSE_LISTBOX 1
1106 # endif /* wxUSE_COMBOBOX */
1109 # if !wxUSE_CHECKBOX
1110 # ifdef wxABORT_ON_CONFIG_ERROR
1111 # error "wxUSE_RADIOBTN requires wxUSE_CHECKBOX in wxUniversal"
1113 # undef wxUSE_CHECKBOX
1114 # define wxUSE_CHECKBOX 1
1117 # endif /* wxUSE_RADIOBTN */
1121 # ifdef wxABORT_ON_CONFIG_ERROR
1122 # error "wxTextCtrl requires wxCaret in wxUniversal"
1125 # define wxUSE_CARET 1
1127 # endif /* wxUSE_CARET */
1129 # if !wxUSE_SCROLLBAR
1130 # ifdef wxABORT_ON_CONFIG_ERROR
1131 # error "wxTextCtrl requires wxScrollBar in wxUniversal"
1133 # undef wxUSE_SCROLLBAR
1134 # define wxUSE_SCROLLBAR 1
1136 # endif /* wxUSE_SCROLLBAR */
1137 # endif /* wxUSE_TEXTCTRL */
1138 #endif /* __WXUNIVERSAL__ */
1140 /* wxGTK-specific dependencies */
1142 # ifndef __WXUNIVERSAL__
1143 # if wxUSE_MDI_ARCHITECTURE && !wxUSE_MENUS
1144 # ifdef wxABORT_ON_CONFIG_ERROR
1145 # error "MDI requires wxUSE_MENUS in wxGTK"
1148 # define wxUSE_MENUS 1
1151 # endif /* !__WXUNIVERSAL__ */
1155 # ifdef wxABORT_ON_CONFIG_ERROR
1156 # error "wxJoystick requires threads in wxGTK"
1158 # undef wxUSE_JOYSTICK
1159 # define wxUSE_JOYSTICK 0
1163 #endif /* wxGTK && !wxUniv */
1165 /* wxMSW-specific dependencies */
1167 # ifndef wxUSE_UNICODE_MSLU
1168 # ifdef wxABORT_ON_CONFIG_ERROR
1169 # error "wxUSE_UNICODE_MSLU must be defined."
1171 # define wxUSE_UNICODE_MSLU 0
1173 # endif /* wxUSE_UNICODE_MSLU */
1174 # ifndef wxUSE_UXTHEME
1175 # ifdef wxABORT_ON_CONFIG_ERROR
1176 # error "wxUSE_UXTHEME must be defined."
1178 # define wxUSE_UXTHEME 0
1180 # endif /* wxUSE_UXTHEME */
1181 # ifndef wxUSE_UXTHEME_AUTO
1182 # ifdef wxABORT_ON_CONFIG_ERROR
1183 # error "wxUSE_UXTHEME_AUTO must be defined."
1185 # define wxUSE_UXTHEME_AUTO 0
1187 # endif /* wxUSE_UXTHEME_AUTO */
1188 # ifndef wxUSE_MS_HTML_HELP
1189 # ifdef wxABORT_ON_CONFIG_ERROR
1190 # error "wxUSE_MS_HTML_HELP must be defined."
1192 # define wxUSE_MS_HTML_HELP 0
1194 # endif /* !defined(wxUSE_MS_HTML_HELP) */
1195 # ifndef wxUSE_DIALUP_MANAGER
1196 # ifdef wxABORT_ON_CONFIG_ERROR
1197 # error "wxUSE_DIALUP_MANAGER must be defined."
1199 # define wxUSE_DIALUP_MANAGER 0
1201 # endif /* !defined(wxUSE_DIALUP_MANAGER) */
1203 # if !wxUSE_DYNAMIC_LOADER
1204 # if wxUSE_MS_HTML_HELP
1205 # ifdef wxABORT_ON_CONFIG_ERROR
1206 # error "wxUSE_MS_HTML_HELP requires wxUSE_DYNAMIC_LOADER."
1208 # define wxUSE_DYNAMIC_LOADER 1
1211 # if wxUSE_DIALUP_MANAGER
1212 # ifdef wxABORT_ON_CONFIG_ERROR
1213 # error "wxUSE_DIALUP_MANAGER requires wxUSE_DYNAMIC_LOADER."
1215 # define wxUSE_DYNAMIC_LOADER 1
1218 # endif /* wxUSE_DYNAMIC_LOADER */
1222 /* wxMGL-specific dependencies */
1225 # error "wxMGL requires wxUSE_PALETTE=1"
1229 /* Hopefully we can emulate these dialogs in due course */
1230 #if defined(__SMARTPHONE__) && defined(__WXWINCE__)
1231 # ifdef wxUSE_COLOURDLG
1232 # undef wxUSE_COLOURDLG
1233 # define wxUSE_COLOURDLG 0
1235 #endif /* __SMARTPHONE__ && __WXWINCE__ */
1238 /* generic controls dependencies */
1239 #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1240 # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1241 /* all common controls are needed by these dialogs */
1242 # if !defined(wxUSE_CHOICE) || \
1243 !defined(wxUSE_TEXTCTRL) || \
1244 !defined(wxUSE_BUTTON) || \
1245 !defined(wxUSE_CHECKBOX) || \
1246 !defined(wxUSE_STATTEXT)
1247 # ifdef wxABORT_ON_CONFIG_ERROR
1248 # error "These common controls are needed by common dialogs"
1250 # undef wxUSE_CHOICE
1251 # define wxUSE_CHOICE 1
1252 # undef wxUSE_TEXTCTRL
1253 # define wxUSE_TEXTCTRL 1
1254 # undef wxUSE_BUTTON
1255 # define wxUSE_BUTTON 1
1256 # undef wxUSE_CHECKBOX
1257 # define wxUSE_CHECKBOX 1
1258 # undef wxUSE_STATTEXT
1259 # define wxUSE_STATTEXT 1
1263 #endif /* !wxMSW || wxUniv */
1265 /* common dependencies */
1266 #if wxUSE_CALENDARCTRL
1267 # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1268 # ifdef wxABORT_ON_CONFIG_ERROR
1269 # error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1271 # undef wxUSE_SPINBTN
1272 # undef wxUSE_COMBOBOX
1273 # define wxUSE_SPINBTN 1
1274 # define wxUSE_COMBOBOX 1
1278 # if !wxUSE_DATETIME
1279 # ifdef wxABORT_ON_CONFIG_ERROR
1280 # error "wxCalendarCtrl requires wxUSE_DATETIME"
1282 # undef wxUSE_DATETIME
1283 # define wxUSE_DATETIME 1
1286 #endif /* wxUSE_CALENDARCTRL */
1288 #if wxUSE_DATEPICKCTRL
1289 # if !wxUSE_DATETIME
1290 # ifdef wxABORT_ON_CONFIG_ERROR
1291 # error "wxDatePickerCtrl requires wxUSE_DATETIME"
1293 # undef wxUSE_DATETIME
1294 # define wxUSE_DATETIME 1
1297 #endif /* wxUSE_DATEPICKCTRL */
1299 #if wxUSE_CHECKLISTBOX
1301 # ifdef wxABORT_ON_CONFIG_ERROR
1302 # error "wxCheckListBox requires wxListBox"
1304 # undef wxUSE_LISTBOX
1305 # define wxUSE_LISTBOX 1
1308 #endif /* wxUSE_CHECKLISTBOX */
1312 # ifdef wxABORT_ON_CONFIG_ERROR
1313 # error "Choice dialogs requires wxListBox"
1315 # undef wxUSE_LISTBOX
1316 # define wxUSE_LISTBOX 1
1319 #endif /* wxUSE_CHOICEDLG */
1322 # if !wxUSE_BMPBUTTON
1323 # ifdef wxABORT_ON_CONFIG_ERROR
1324 # error "wxUSE_HELP requires wxUSE_BMPBUTTON"
1326 # undef wxUSE_BMPBUTTON
1327 # define wxUSE_BMPBUTTON 1
1331 # if !wxUSE_CHOICEDLG
1332 # ifdef wxABORT_ON_CONFIG_ERROR
1333 # error "wxUSE_HELP requires wxUSE_CHOICEDLG"
1335 # undef wxUSE_CHOICEDLG
1336 # define wxUSE_CHOICEDLG 1
1339 #endif /* wxUSE_HELP */
1341 #if wxUSE_WXHTML_HELP
1342 # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL
1343 # ifdef wxABORT_ON_CONFIG_ERROR
1344 # error "Built in help controller can't be compiled"
1347 # define wxUSE_HELP 1
1349 # define wxUSE_HTML 1
1350 # undef wxUSE_COMBOBOX
1351 # define wxUSE_COMBOBOX 1
1352 # undef wxUSE_NOTEBOOK
1353 # define wxUSE_NOTEBOOK 1
1354 # undef wxUSE_SPINCTRL
1355 # define wxUSE_SPINCTRL 1
1358 #endif /* wxUSE_WXHTML_HELP */
1362 The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the
1363 user explicitly wants this and disable all other features that require
1366 # if wxUSE_DRAGIMAGE
1367 # ifdef wxABORT_ON_CONFIG_ERROR
1368 # error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE"
1370 # undef wxUSE_DRAGIMAGE
1371 # define wxUSE_DRAGIMAGE 0
1376 # ifdef wxABORT_ON_CONFIG_ERROR
1377 # error "wxUSE_LIBPNG requires wxUSE_IMAGE"
1379 # undef wxUSE_LIBPNG
1380 # define wxUSE_LIBPNG 0
1385 # ifdef wxABORT_ON_CONFIG_ERROR
1386 # error "wxUSE_LIBJPEG requires wxUSE_IMAGE"
1388 # undef wxUSE_LIBJPEG
1389 # define wxUSE_LIBJPEG 0
1394 # ifdef wxABORT_ON_CONFIG_ERROR
1395 # error "wxUSE_LIBTIFF requires wxUSE_IMAGE"
1397 # undef wxUSE_LIBTIFF
1398 # define wxUSE_LIBTIFF 0
1403 # ifdef wxABORT_ON_CONFIG_ERROR
1404 # error "wxUSE_GIF requires wxUSE_IMAGE"
1407 # define wxUSE_GIF 0
1412 # ifdef wxABORT_ON_CONFIG_ERROR
1413 # error "wxUSE_PNM requires wxUSE_IMAGE"
1416 # define wxUSE_PNM 0
1421 # ifdef wxABORT_ON_CONFIG_ERROR
1422 # error "wxUSE_PCX requires wxUSE_IMAGE"
1425 # define wxUSE_PCX 0
1430 # ifdef wxABORT_ON_CONFIG_ERROR
1431 # error "wxUSE_IFF requires wxUSE_IMAGE"
1434 # define wxUSE_IFF 0
1439 # ifdef wxABORT_ON_CONFIG_ERROR
1440 # error "wxUSE_TOOLBAR requires wxUSE_IMAGE"
1442 # undef wxUSE_TOOLBAR
1443 # define wxUSE_TOOLBAR 0
1448 # ifdef wxABORT_ON_CONFIG_ERROR
1449 # error "wxUSE_XPM requires wxUSE_IMAGE"
1452 # define wxUSE_XPM 0
1456 #endif /* !wxUSE_IMAGE */
1458 #if wxUSE_DOC_VIEW_ARCHITECTURE
1460 # ifdef wxABORT_ON_CONFIG_ERROR
1461 # error "DocView requires wxUSE_MENUS"
1464 # define wxUSE_MENUS 1
1468 # if !wxUSE_CHOICEDLG
1469 # ifdef wxABORT_ON_CONFIG_ERROR
1470 # error "DocView requires wxUSE_CHOICEDLG"
1472 # undef wxUSE_CHOICEDLG
1473 # define wxUSE_CHOICEDLG 1
1477 # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1478 # ifdef wxABORT_ON_CONFIG_ERROR
1479 # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1481 # undef wxUSE_STREAMS
1482 # define wxUSE_STREAMS 1
1485 #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1487 #if wxUSE_PRINTING_ARCHITECTURE
1488 # if !wxUSE_COMBOBOX
1489 # ifdef wxABORT_ON_CONFIG_ERROR
1490 # error "Print dialog requires wxUSE_COMBOBOX"
1492 # undef wxUSE_COMBOBOX
1493 # define wxUSE_COMBOBOX 1
1496 #endif /* wxUSE_PRINTING_ARCHITECTURE */
1498 #if wxUSE_MDI_ARCHITECTURE
1500 # ifdef wxABORT_ON_CONFIG_ERROR
1501 # error "MDI requires wxUSE_MDI"
1504 # define wxUSE_MDI 1
1508 # if !wxUSE_DOC_VIEW_ARCHITECTURE
1509 # ifdef wxABORT_ON_CONFIG_ERROR
1510 # error "MDI requires wxUSE_DOC_VIEW_ARCHITECTURE"
1512 # undef wxUSE_DOC_VIEW_ARCHITECTURE
1513 # define wxUSE_DOC_VIEW_ARCHITECTURE 1
1516 #endif /* wxUSE_MDI_ARCHITECTURE */
1519 # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1520 # ifdef wxABORT_ON_CONFIG_ERROR
1521 # error "wxFileDialog must be compiled as well"
1523 # undef wxUSE_FILEDLG
1524 # define wxUSE_FILEDLG 1
1527 #endif /* wxUSE_FILEDLG */
1529 #if !wxUSE_GAUGE || !wxUSE_BUTTON
1530 # if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__)
1531 # ifdef wxABORT_ON_CONFIG_ERROR
1532 # error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON"
1535 # undef wxUSE_BUTTON
1536 # define wxUSE_GAUGE 1
1537 # define wxUSE_BUTTON 1
1540 #endif /* !wxUSE_GAUGE */
1543 # if wxUSE_FONTDLG || \
1545 wxUSE_CHOICEDLG || \
1546 wxUSE_NUMBERDLG || \
1549 wxUSE_STARTUP_TIPS || \
1551 # ifdef wxABORT_ON_CONFIG_ERROR
1552 # error "Common and generic dialogs require wxUSE_BUTTON"
1554 # undef wxUSE_BUTTON
1555 # define wxUSE_BUTTON 1
1558 #endif /* !wxUSE_BUTTON */
1561 # if wxUSE_TOOLBAR_NATIVE
1562 # ifdef wxABORT_ON_CONFIG_ERROR
1563 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
1565 # undef wxUSE_TOOLBAR_NATIVE
1566 # define wxUSE_TOOLBAR_NATIVE 0
1570 # if wxUSE_TOOLBAR_SIMPLE
1571 # ifdef wxABORT_ON_CONFIG_ERROR
1572 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_SIMPLE is set to 1"
1574 # undef wxUSE_TOOLBAR_SIMPLE
1575 # define wxUSE_TOOLBAR_SIMPLE 0
1581 # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL
1582 # ifdef wxABORT_ON_CONFIG_ERROR
1583 # error "wxImageList must be compiled as well"
1585 # undef wxUSE_IMAGLIST
1586 # define wxUSE_IMAGLIST 1
1589 #endif /* !wxUSE_IMAGLIST */
1592 # ifdef wxABORT_ON_CONFIG_ERROR
1593 /* FIXME: should compile without it, of course, but doesn't */
1594 # error "wxMessageBox is always needed"
1596 # undef wxUSE_MSGDLG
1597 # define wxUSE_MSGDLG 1
1602 # if !wxUSE_RADIOBTN
1603 # ifdef wxABORT_ON_CONFIG_ERROR
1604 # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN"
1606 # undef wxUSE_RADIOBTN
1607 # define wxUSE_RADIOBTN 1
1610 # if !wxUSE_STATBOX && !defined(__WXPALMOS__)
1611 # ifdef wxABORT_ON_CONFIG_ERROR
1612 # error "wxUSE_RADIOBOX requires wxUSE_STATBOX"
1614 # undef wxUSE_STATBOX
1615 # define wxUSE_STATBOX 1
1618 #endif /* wxUSE_RADIOBOX */
1621 # if !wxUSE_TEXTCTRL
1622 # ifdef wxABORT_ON_CONFIG_ERROR
1623 # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
1625 # undef wxUSE_TEXTCTRL
1626 # define wxUSE_TEXTCTRL 1
1629 #endif /* wxUSE_LOGWINDOW */
1631 #if wxUSE_LOG_DIALOG
1632 # if !wxUSE_LISTCTRL || !wxUSE_BUTTON
1633 # ifdef wxABORT_ON_CONFIG_ERROR
1634 # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON"
1636 # undef wxUSE_LISTCTRL
1637 # define wxUSE_LISTCTRL 1
1638 # undef wxUSE_BUTTON
1639 # define wxUSE_BUTTON 1
1642 #endif /* wxUSE_LOG_DIALOG */
1644 #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
1645 # ifdef wxABORT_ON_CONFIG_ERROR
1646 # error "wxClipboard requires wxDataObject"
1648 # undef wxUSE_DATAOBJ
1649 # define wxUSE_DATAOBJ 1
1651 #endif /* wxUSE_CLIPBOARD */
1653 #if wxUSE_WX_RESOURCES && !wxUSE_PROLOGIO
1654 # ifdef wxABORT_ON_CONFIG_ERROR
1655 # error "wxr resources require PrologIO"
1657 # undef wxUSE_PROLOGIO
1658 # define wxUSE_PROLOGIO 1
1660 #endif /* wxUSE_WX_RESOURCES */
1662 #if wxUSE_XRC && !wxUSE_XML
1663 # ifdef wxABORT_ON_CONFIG_ERROR
1664 # error "wxUSE_XRC requires wxUSE_XML"
1667 # define wxUSE_XRC 0
1669 #endif /* wxUSE_XRC */
1671 #if wxUSE_SOCKETS && !wxUSE_STOPWATCH
1672 # ifdef wxABORT_ON_CONFIG_ERROR
1673 # error "wxUSE_SOCKETS requires wxUSE_STOPWATCH"
1675 # undef wxUSE_SOCKETS
1676 # define wxUSE_SOCKETS 0
1678 #endif /* wxUSE_SOCKETS */
1680 #endif /* wxUSE_GUI */