]>
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 Platform-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(__OS2__)
27 # include "wx/os2/chkconf.h"
28 #elif defined(__WXMGL__)
29 # include "wx/mgl/chkconf.h"
30 #elif defined(__WXMOTIF__)
31 # include "wx/motif/chkconf.h"
35 this global setting determines what should we do if the setting FOO
36 requires BAR and BAR is not set: we can either silently unset FOO as well
37 (do this if you're trying to build the smallest possible library) or give an
38 error and abort (default as leads to least surprizing behaviour)
40 #define wxABORT_ON_CONFIG_ERROR
46 /* GUI build by default */
47 #if !defined(wxUSE_GUI)
49 #endif /* !defined(wxUSE_GUI) */
52 If we're compiling without support for threads/exceptions we have to
53 disable the corresponding features.
57 # define wxUSE_THREADS 0
58 #endif /* wxNO_THREADS */
60 #ifdef wxNO_EXCEPTIONS
61 # undef wxUSE_EXCEPTIONS
62 # define wxUSE_EXCEPTIONS 0
63 #endif /* wxNO_EXCEPTIONS */
65 /* we also must disable exceptions if compiler doesn't support them */
66 #if defined(_MSC_VER) && !defined(_CPPUNWIND)
67 # undef wxUSE_EXCEPTIONS
68 # define wxUSE_EXCEPTIONS 0
69 #endif /* VC++ without exceptions support */
73 tests for non GUI features
75 please keep the options in alphabetical order!
78 #ifndef wxUSE_CRASHREPORT
79 /* this one is special: as currently it is Windows-only, don't force it
80 to be defined on other platforms */
81 # if defined(wxABORT_ON_CONFIG_ERROR) && defined(__WXMSW__)
82 # error "wxUSE_CRASHREPORT must be defined."
84 # define wxUSE_CRASHREPORT 0
86 #endif /* !defined(wxUSE_CRASHREPORT) */
88 #ifndef wxUSE_DYNLIB_CLASS
89 # ifdef wxABORT_ON_CONFIG_ERROR
90 # error "wxUSE_DYNLIB_CLASS must be defined."
92 # define wxUSE_DYNLIB_CLASS 0
94 #endif /* !defined(wxUSE_DYNLIB_CLASS) */
96 #ifndef wxUSE_EXCEPTIONS
97 # ifdef wxABORT_ON_CONFIG_ERROR
98 # error "wxUSE_EXCEPTIONS must be defined."
100 # define wxUSE_EXCEPTIONS 0
102 #endif /* !defined(wxUSE_EXCEPTIONS) */
104 #ifndef wxUSE_FILESYSTEM
105 # ifdef wxABORT_ON_CONFIG_ERROR
106 # error "wxUSE_FILESYSTEM must be defined."
108 # define wxUSE_FILESYSTEM 0
110 #endif /* !defined(wxUSE_FILESYSTEM) */
112 /* don't give an error about this one yet, it's not fully implemented */
113 #ifndef wxUSE_FSVOLUME
114 # define wxUSE_FSVOLUME 0
115 #endif /* !defined(wxUSE_FSVOLUME) */
117 #ifndef wxUSE_DYNAMIC_LOADER
118 # ifdef wxABORT_ON_CONFIG_ERROR
119 # error "wxUSE_DYNAMIC_LOADER must be defined."
121 # define wxUSE_DYNAMIC_LOADER 0
123 #endif /* !defined(wxUSE_DYNAMIC_LOADER) */
126 # ifdef wxABORT_ON_CONFIG_ERROR
127 # error "wxUSE_LOG must be defined."
131 #endif /* !defined(wxUSE_LOG) */
133 #ifndef wxUSE_LONGLONG
134 # ifdef wxABORT_ON_CONFIG_ERROR
135 # error "wxUSE_LONGLONG must be defined."
137 # define wxUSE_LONGLONG 0
139 #endif /* !defined(wxUSE_LONGLONG) */
141 #ifndef wxUSE_MIMETYPE
142 # ifdef wxABORT_ON_CONFIG_ERROR
143 # error "wxUSE_MIMETYPE must be defined."
145 # define wxUSE_MIMETYPE 0
147 #endif /* !defined(wxUSE_MIMETYPE) */
149 #ifndef wxUSE_ON_FATAL_EXCEPTION
150 # ifdef wxABORT_ON_CONFIG_ERROR
151 # error "wxUSE_ON_FATAL_EXCEPTION must be defined."
153 # define wxUSE_ON_FATAL_EXCEPTION 0
155 #endif /* !defined(wxUSE_ON_FATAL_EXCEPTION) */
157 #ifndef wxUSE_PROTOCOL
158 # ifdef wxABORT_ON_CONFIG_ERROR
159 # error "wxUSE_PROTOCOL must be defined."
161 # define wxUSE_PROTOCOL 0
163 #endif /* !defined(wxUSE_PROTOCOL) */
165 /* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */
167 # undef wxUSE_PROTOCOL_HTTP
168 # undef wxUSE_PROTOCOL_FTP
169 # undef wxUSE_PROTOCOL_FILE
170 # define wxUSE_PROTOCOL_HTTP 0
171 # define wxUSE_PROTOCOL_FTP 0
172 # define wxUSE_PROTOCOL_FILE 0
173 #endif /* wxUSE_PROTOCOL */
175 #ifndef wxUSE_PROTOCOL_HTTP
176 # ifdef wxABORT_ON_CONFIG_ERROR
177 # error "wxUSE_PROTOCOL_HTTP must be defined."
179 # define wxUSE_PROTOCOL_HTTP 0
181 #endif /* !defined(wxUSE_PROTOCOL_HTTP) */
183 #ifndef wxUSE_PROTOCOL_FTP
184 # ifdef wxABORT_ON_CONFIG_ERROR
185 # error "wxUSE_PROTOCOL_FTP must be defined."
187 # define wxUSE_PROTOCOL_FTP 0
189 #endif /* !defined(wxUSE_PROTOCOL_FTP) */
191 #ifndef wxUSE_PROTOCOL_FILE
192 # ifdef wxABORT_ON_CONFIG_ERROR
193 # error "wxUSE_PROTOCOL_FILE must be defined."
195 # define wxUSE_PROTOCOL_FILE 0
197 #endif /* !defined(wxUSE_PROTOCOL_FILE) */
200 # ifdef wxABORT_ON_CONFIG_ERROR
201 # error "wxUSE_REGEX must be defined."
203 # define wxUSE_REGEX 0
205 #endif /* !defined(wxUSE_REGEX) */
207 #ifndef wxUSE_STDPATHS
208 # ifdef wxABORT_ON_CONFIG_ERROR
209 # error "wxUSE_STDPATHS must be defined."
211 # define wxUSE_STDPATHS 1
213 #endif /* !defined(wxUSE_STDPATHS) */
216 # ifdef wxABORT_ON_CONFIG_ERROR
217 # error "wxUSE_XML must be defined."
221 #endif /* !defined(wxUSE_XML) */
223 #ifndef wxUSE_SOCKETS
224 # ifdef wxABORT_ON_CONFIG_ERROR
225 # error "wxUSE_SOCKETS must be defined."
227 # define wxUSE_SOCKETS 0
229 #endif /* !defined(wxUSE_SOCKETS) */
231 #ifndef wxUSE_STREAMS
232 # ifdef wxABORT_ON_CONFIG_ERROR
233 # error "wxUSE_STREAMS must be defined."
235 # define wxUSE_STREAMS 0
237 #endif /* !defined(wxUSE_STREAMS) */
239 #ifndef wxUSE_STOPWATCH
240 # ifdef wxABORT_ON_CONFIG_ERROR
241 # error "wxUSE_STOPWATCH must be defined."
243 # define wxUSE_STOPWATCH 0
245 #endif /* !defined(wxUSE_STOPWATCH) */
247 #ifndef wxUSE_TEXTBUFFER
248 # ifdef wxABORT_ON_CONFIG_ERROR
249 # error "wxUSE_TEXTBUFFER must be defined."
251 # define wxUSE_TEXTBUFFER 0
253 #endif /* !defined(wxUSE_TEXTBUFFER) */
255 #ifndef wxUSE_TEXTFILE
256 # ifdef wxABORT_ON_CONFIG_ERROR
257 # error "wxUSE_TEXTFILE must be defined."
259 # define wxUSE_TEXTFILE 0
261 #endif /* !defined(wxUSE_TEXTFILE) */
263 #ifndef wxUSE_UNICODE
264 # ifdef wxABORT_ON_CONFIG_ERROR
265 # error "wxUSE_UNICODE must be defined."
267 # define wxUSE_UNICODE 0
269 #endif /* !defined(wxUSE_UNICODE) */
272 # ifdef wxABORT_ON_CONFIG_ERROR
273 # error "wxUSE_URL must be defined."
277 #endif /* !defined(wxUSE_URL) */
280 all these tests are for GUI only
282 please keep the options in alphabetical order!
287 all of the settings tested below must be defined or we'd get an error from
288 preprocessor about invalid integer expression
292 # ifdef wxABORT_ON_CONFIG_ERROR
293 # error "wxUSE_ACCEL must be defined."
295 # define wxUSE_ACCEL 0
297 #endif /* !defined(wxUSE_ACCEL) */
299 #ifndef wxUSE_BMPBUTTON
300 # ifdef wxABORT_ON_CONFIG_ERROR
301 # error "wxUSE_BMPBUTTON must be defined."
303 # define wxUSE_BMPBUTTON 0
305 #endif /* !defined(wxUSE_BMPBUTTON) */
308 # ifdef wxABORT_ON_CONFIG_ERROR
309 # error "wxUSE_BUTTON must be defined."
311 # define wxUSE_BUTTON 0
313 #endif /* !defined(wxUSE_BUTTON) */
315 #ifndef wxUSE_CALENDARCTRL
316 # ifdef wxABORT_ON_CONFIG_ERROR
317 # error "wxUSE_CALENDARCTRL must be defined."
319 # define wxUSE_CALENDARCTRL 0
321 #endif /* !defined(wxUSE_CALENDARCTRL) */
324 # ifdef wxABORT_ON_CONFIG_ERROR
325 # error "wxUSE_CARET must be defined."
327 # define wxUSE_CARET 0
329 #endif /* !defined(wxUSE_CARET) */
331 #ifndef wxUSE_CHECKBOX
332 # ifdef wxABORT_ON_CONFIG_ERROR
333 # error "wxUSE_CHECKBOX must be defined."
335 # define wxUSE_CHECKBOX 0
337 #endif /* !defined(wxUSE_CHECKBOX) */
339 #ifndef wxUSE_CHECKLISTBOX
340 # ifdef wxABORT_ON_CONFIG_ERROR
341 # error "wxUSE_CHECKLISTBOX must be defined."
343 # define wxUSE_CHECKLISTBOX 0
345 #endif /* !defined(wxUSE_CHECKLISTBOX) */
348 # ifdef wxABORT_ON_CONFIG_ERROR
349 # error "wxUSE_CHOICE must be defined."
351 # define wxUSE_CHOICE 0
353 #endif /* !defined(wxUSE_CHOICE) */
355 #ifndef wxUSE_CHOICEBOOK
356 # ifdef wxABORT_ON_CONFIG_ERROR
357 # error "wxUSE_CHOICEBOOK must be defined."
359 # define wxUSE_CHOICEBOOK 0
361 #endif /* !defined(wxUSE_CHOICEBOOK) */
363 #ifndef wxUSE_CHOICEDLG
364 # ifdef wxABORT_ON_CONFIG_ERROR
365 # error "wxUSE_CHOICEDLG must be defined."
367 # define wxUSE_CHOICEDLG 0
369 #endif /* !defined(wxUSE_CHOICEDLG) */
371 #ifndef wxUSE_CLIPBOARD
372 # ifdef wxABORT_ON_CONFIG_ERROR
373 # error "wxUSE_CLIPBOARD must be defined."
375 # define wxUSE_CLIPBOARD 0
377 #endif /* !defined(wxUSE_CLIPBOARD) */
379 #ifndef wxUSE_COLOURDLG
380 # ifdef wxABORT_ON_CONFIG_ERROR
381 # error "wxUSE_COLOURDLG must be defined."
383 # define wxUSE_COLOURDLG 0
385 #endif /* !defined(wxUSE_COLOURDLG) */
387 #ifndef wxUSE_COMBOBOX
388 # ifdef wxABORT_ON_CONFIG_ERROR
389 # error "wxUSE_COMBOBOX must be defined."
391 # define wxUSE_COMBOBOX 0
393 #endif /* !defined(wxUSE_COMBOBOX) */
395 #ifndef wxUSE_COMBOCTRL
396 # ifdef wxABORT_ON_CONFIG_ERROR
397 # error "wxUSE_COMBOCTRL must be defined."
399 # define wxUSE_COMBOCTRL 0
401 #endif /* !defined(wxUSE_COMBOCTRL) */
403 #ifndef wxUSE_DATAOBJ
404 # ifdef wxABORT_ON_CONFIG_ERROR
405 # error "wxUSE_DATAOBJ must be defined."
407 # define wxUSE_DATAOBJ 0
409 #endif /* !defined(wxUSE_DATAOBJ) */
411 #ifndef wxUSE_DATAVIEWCTRL
412 # ifdef wxABORT_ON_CONFIG_ERROR
413 # error "wxUSE_DATAVIEWCTRL must be defined."
415 # define wxUSE_DATAVIEWCTRL 0
417 #endif /* !defined(wxUSE_DATAVIEWCTRL) */
419 #ifndef wxUSE_DATEPICKCTRL
420 # ifdef wxABORT_ON_CONFIG_ERROR
421 # error "wxUSE_DATEPICKCTRL must be defined."
423 # define wxUSE_DATEPICKCTRL 0
425 #endif /* !defined(wxUSE_DATEPICKCTRL) */
427 #ifndef wxUSE_DISPLAY
428 # ifdef wxABORT_ON_CONFIG_ERROR
429 # error "wxUSE_DISPLAY must be defined."
431 # define wxUSE_DISPLAY 0
433 #endif /* !defined(wxUSE_DISPLAY) */
435 #ifndef wxUSE_DOC_VIEW_ARCHITECTURE
436 # ifdef wxABORT_ON_CONFIG_ERROR
437 # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
439 # define wxUSE_DOC_VIEW_ARCHITECTURE 0
441 #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
443 #ifndef wxUSE_FILEDLG
444 # ifdef wxABORT_ON_CONFIG_ERROR
445 # error "wxUSE_FILEDLG must be defined."
447 # define wxUSE_FILEDLG 0
449 #endif /* !defined(wxUSE_FILEDLG) */
451 #ifndef wxUSE_FONTDLG
452 # ifdef wxABORT_ON_CONFIG_ERROR
453 # error "wxUSE_FONTDLG must be defined."
455 # define wxUSE_FONTDLG 0
457 #endif /* !defined(wxUSE_FONTDLG) */
459 #ifndef wxUSE_FONTMAP
460 # ifdef wxABORT_ON_CONFIG_ERROR
461 # error "wxUSE_FONTMAP must be defined."
463 # define wxUSE_FONTMAP 0
465 #endif /* !defined(wxUSE_FONTMAP) */
468 # ifdef wxABORT_ON_CONFIG_ERROR
469 # error "wxUSE_GAUGE must be defined."
471 # define wxUSE_GAUGE 0
473 #endif /* !defined(wxUSE_GAUGE) */
476 # ifdef wxABORT_ON_CONFIG_ERROR
477 # error "wxUSE_GRID must be defined."
479 # define wxUSE_GRID 0
481 #endif /* !defined(wxUSE_GRID) */
484 # ifdef wxABORT_ON_CONFIG_ERROR
485 # error "wxUSE_HELP must be defined."
487 # define wxUSE_HELP 0
489 #endif /* !defined(wxUSE_HELP) */
492 # ifdef wxABORT_ON_CONFIG_ERROR
493 # error "wxUSE_HTML must be defined."
495 # define wxUSE_HTML 0
497 #endif /* !defined(wxUSE_HTML) */
499 #ifndef wxUSE_LIBMSPACK
501 /* set to 0 on platforms that don't have libmspack */
502 # define wxUSE_LIBMSPACK 0
504 # ifdef wxABORT_ON_CONFIG_ERROR
505 # error "wxUSE_LIBMSPACK must be defined."
507 # define wxUSE_LIBMSPACK 0
510 #endif /* !defined(wxUSE_LIBMSPACK) */
512 #ifndef wxUSE_ICO_CUR
513 # ifdef wxABORT_ON_CONFIG_ERROR
514 # error "wxUSE_ICO_CUR must be defined."
516 # define wxUSE_ICO_CUR 0
518 #endif /* !defined(wxUSE_ICO_CUR) */
521 # ifdef wxABORT_ON_CONFIG_ERROR
522 # error "wxUSE_IFF must be defined."
526 #endif /* !defined(wxUSE_IFF) */
528 #ifndef wxUSE_IMAGLIST
529 # ifdef wxABORT_ON_CONFIG_ERROR
530 # error "wxUSE_IMAGLIST must be defined."
532 # define wxUSE_IMAGLIST 0
534 #endif /* !defined(wxUSE_IMAGLIST) */
536 #ifndef wxUSE_JOYSTICK
537 # ifdef wxABORT_ON_CONFIG_ERROR
538 # error "wxUSE_JOYSTICK must be defined."
540 # define wxUSE_JOYSTICK 0
542 #endif /* !defined(wxUSE_JOYSTICK) */
544 #ifndef wxUSE_LISTBOOK
545 # ifdef wxABORT_ON_CONFIG_ERROR
546 # error "wxUSE_LISTBOOK must be defined."
548 # define wxUSE_LISTBOOK 0
550 #endif /* !defined(wxUSE_LISTBOOK) */
552 #ifndef wxUSE_LISTBOX
553 # ifdef wxABORT_ON_CONFIG_ERROR
554 # error "wxUSE_LISTBOX must be defined."
556 # define wxUSE_LISTBOX 0
558 #endif /* !defined(wxUSE_LISTBOX) */
560 #ifndef wxUSE_LISTCTRL
561 # ifdef wxABORT_ON_CONFIG_ERROR
562 # error "wxUSE_LISTCTRL must be defined."
564 # define wxUSE_LISTCTRL 0
566 #endif /* !defined(wxUSE_LISTCTRL) */
569 # ifdef wxABORT_ON_CONFIG_ERROR
570 # error "wxUSE_LOGGUI must be defined."
572 # define wxUSE_LOGGUI 0
574 #endif /* !defined(wxUSE_LOGGUI) */
576 #ifndef wxUSE_LOGWINDOW
577 # ifdef wxABORT_ON_CONFIG_ERROR
578 # error "wxUSE_LOGWINDOW must be defined."
580 # define wxUSE_LOGWINDOW 0
582 #endif /* !defined(wxUSE_LOGWINDOW) */
584 #ifndef wxUSE_LOG_DIALOG
585 # ifdef wxABORT_ON_CONFIG_ERROR
586 # error "wxUSE_LOG_DIALOG must be defined."
588 # define wxUSE_LOG_DIALOG 0
590 #endif /* !defined(wxUSE_LOG_DIALOG) */
593 # ifdef wxABORT_ON_CONFIG_ERROR
594 # error "wxUSE_MDI must be defined."
598 #endif /* !defined(wxUSE_MDI) */
600 #ifndef wxUSE_MDI_ARCHITECTURE
601 # ifdef wxABORT_ON_CONFIG_ERROR
602 # error "wxUSE_MDI_ARCHITECTURE must be defined."
604 # define wxUSE_MDI_ARCHITECTURE 0
606 #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
609 # ifdef wxABORT_ON_CONFIG_ERROR
610 # error "wxUSE_MENUS must be defined."
612 # define wxUSE_MENUS 0
614 #endif /* !defined(wxUSE_MENUS) */
617 # ifdef wxABORT_ON_CONFIG_ERROR
618 # error "wxUSE_MSGDLG must be defined."
620 # define wxUSE_MSGDLG 0
622 #endif /* !defined(wxUSE_MSGDLG) */
624 #ifndef wxUSE_NOTEBOOK
625 # ifdef wxABORT_ON_CONFIG_ERROR
626 # error "wxUSE_NOTEBOOK must be defined."
628 # define wxUSE_NOTEBOOK 0
630 #endif /* !defined(wxUSE_NOTEBOOK) */
632 #ifndef wxUSE_ODCOMBOBOX
633 # ifdef wxABORT_ON_CONFIG_ERROR
634 # error "wxUSE_ODCOMBOBOX must be defined."
636 # define wxUSE_ODCOMBOBOX 0
638 #endif /* !defined(wxUSE_ODCOMBOBOX) */
640 #ifndef wxUSE_PALETTE
641 # ifdef wxABORT_ON_CONFIG_ERROR
642 # error "wxUSE_PALETTE must be defined."
644 # define wxUSE_PALETTE 0
646 #endif /* !defined(wxUSE_PALETTE) */
648 #ifndef wxUSE_POPUPWIN
649 # ifdef wxABORT_ON_CONFIG_ERROR
650 # error "wxUSE_POPUPWIN must be defined."
652 # define wxUSE_POPUPWIN 0
654 #endif /* !defined(wxUSE_POPUPWIN) */
656 #ifndef wxUSE_PRINTING_ARCHITECTURE
657 # ifdef wxABORT_ON_CONFIG_ERROR
658 # error "wxUSE_PRINTING_ARCHITECTURE must be defined."
660 # define wxUSE_PRINTING_ARCHITECTURE 0
662 #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
664 #ifndef wxUSE_RADIOBOX
665 # ifdef wxABORT_ON_CONFIG_ERROR
666 # error "wxUSE_RADIOBOX must be defined."
668 # define wxUSE_RADIOBOX 0
670 #endif /* !defined(wxUSE_RADIOBOX) */
672 #ifndef wxUSE_RADIOBTN
673 # ifdef wxABORT_ON_CONFIG_ERROR
674 # error "wxUSE_RADIOBTN must be defined."
676 # define wxUSE_RADIOBTN 0
678 #endif /* !defined(wxUSE_RADIOBTN) */
681 # ifdef wxABORT_ON_CONFIG_ERROR
682 # error "wxUSE_SASH must be defined."
684 # define wxUSE_SASH 0
686 #endif /* !defined(wxUSE_SASH) */
688 #ifndef wxUSE_SCROLLBAR
689 # ifdef wxABORT_ON_CONFIG_ERROR
690 # error "wxUSE_SCROLLBAR must be defined."
692 # define wxUSE_SCROLLBAR 0
694 #endif /* !defined(wxUSE_SCROLLBAR) */
697 # ifdef wxABORT_ON_CONFIG_ERROR
698 # error "wxUSE_SLIDER must be defined."
700 # define wxUSE_SLIDER 0
702 #endif /* !defined(wxUSE_SLIDER) */
705 # ifdef wxABORT_ON_CONFIG_ERROR
706 # error "wxUSE_SOUND must be defined."
708 # define wxUSE_SOUND 0
710 #endif /* !defined(wxUSE_SOUND) */
712 #ifndef wxUSE_SPINBTN
713 # ifdef wxABORT_ON_CONFIG_ERROR
714 # error "wxUSE_SPINBTN must be defined."
716 # define wxUSE_SPINBTN 0
718 #endif /* !defined(wxUSE_SPINBTN) */
720 #ifndef wxUSE_SPINCTRL
721 # ifdef wxABORT_ON_CONFIG_ERROR
722 # error "wxUSE_SPINCTRL must be defined."
724 # define wxUSE_SPINCTRL 0
726 #endif /* !defined(wxUSE_SPINCTRL) */
729 # ifdef wxABORT_ON_CONFIG_ERROR
730 # error "wxUSE_SPLASH must be defined."
732 # define wxUSE_SPLASH 0
734 #endif /* !defined(wxUSE_SPLASH) */
736 #ifndef wxUSE_SPLITTER
737 # ifdef wxABORT_ON_CONFIG_ERROR
738 # error "wxUSE_SPLITTER must be defined."
740 # define wxUSE_SPLITTER 0
742 #endif /* !defined(wxUSE_SPLITTER) */
744 #ifndef wxUSE_STATBMP
745 # ifdef wxABORT_ON_CONFIG_ERROR
746 # error "wxUSE_STATBMP must be defined."
748 # define wxUSE_STATBMP 0
750 #endif /* !defined(wxUSE_STATBMP) */
752 #ifndef wxUSE_STATBOX
753 # ifdef wxABORT_ON_CONFIG_ERROR
754 # error "wxUSE_STATBOX must be defined."
756 # define wxUSE_STATBOX 0
758 #endif /* !defined(wxUSE_STATBOX) */
760 #ifndef wxUSE_STATLINE
761 # ifdef wxABORT_ON_CONFIG_ERROR
762 # error "wxUSE_STATLINE must be defined."
764 # define wxUSE_STATLINE 0
766 #endif /* !defined(wxUSE_STATLINE) */
768 #ifndef wxUSE_STATTEXT
769 # ifdef wxABORT_ON_CONFIG_ERROR
770 # error "wxUSE_STATTEXT must be defined."
772 # define wxUSE_STATTEXT 0
774 #endif /* !defined(wxUSE_STATTEXT) */
776 #ifndef wxUSE_STATUSBAR
777 # ifdef wxABORT_ON_CONFIG_ERROR
778 # error "wxUSE_STATUSBAR must be defined."
780 # define wxUSE_STATUSBAR 0
782 #endif /* !defined(wxUSE_STATUSBAR) */
784 #ifndef wxUSE_TAB_DIALOG
785 # ifdef wxABORT_ON_CONFIG_ERROR
786 # error "wxUSE_TAB_DIALOG must be defined."
788 # define wxUSE_TAB_DIALOG 0
790 #endif /* !defined(wxUSE_TAB_DIALOG) */
792 #ifndef wxUSE_TEXTCTRL
793 # ifdef wxABORT_ON_CONFIG_ERROR
794 # error "wxUSE_TEXTCTRL must be defined."
796 # define wxUSE_TEXTCTRL 0
798 #endif /* !defined(wxUSE_TEXTCTRL) */
800 #ifndef wxUSE_TIPWINDOW
801 # ifdef wxABORT_ON_CONFIG_ERROR
802 # error "wxUSE_TIPWINDOW must be defined."
804 # define wxUSE_TIPWINDOW 0
806 #endif /* !defined(wxUSE_TIPWINDOW) */
808 #ifndef wxUSE_TOOLBAR
809 # ifdef wxABORT_ON_CONFIG_ERROR
810 # error "wxUSE_TOOLBAR must be defined."
812 # define wxUSE_TOOLBAR 0
814 #endif /* !defined(wxUSE_TOOLBAR) */
816 #ifndef wxUSE_TOOLTIPS
817 # ifdef wxABORT_ON_CONFIG_ERROR
818 # error "wxUSE_TOOLTIPS must be defined."
820 # define wxUSE_TOOLTIPS 0
822 #endif /* !defined(wxUSE_TOOLTIPS) */
824 #ifndef wxUSE_TREECTRL
825 # ifdef wxABORT_ON_CONFIG_ERROR
826 # error "wxUSE_TREECTRL must be defined."
828 # define wxUSE_TREECTRL 0
830 #endif /* !defined(wxUSE_TREECTRL) */
832 #ifndef wxUSE_VALIDATORS
833 # ifdef wxABORT_ON_CONFIG_ERROR
834 # error "wxUSE_VALIDATORS must be defined."
836 # define wxUSE_VALIDATORS 0
838 #endif /* !defined(wxUSE_VALIDATORS) */
840 #ifndef wxUSE_WXHTML_HELP
841 # ifdef wxABORT_ON_CONFIG_ERROR
842 # error "wxUSE_WXHTML_HELP must be defined."
844 # define wxUSE_WXHTML_HELP 0
846 #endif /* !defined(wxUSE_WXHTML_HELP) */
849 # ifdef wxABORT_ON_CONFIG_ERROR
850 # error "wxUSE_XRC must be defined."
854 #endif /* !defined(wxUSE_XRC) */
856 #endif /* wxUSE_GUI */
859 check consistency of the settings
862 #if WXWIN_COMPATIBILITY_2_4
863 # if !WXWIN_COMPATIBILITY_2_6
864 # ifdef wxABORT_ON_CONFIG_ERROR
865 # error "2.4.X compatibility requires 2.6.X compatibility"
867 # undef WXWIN_COMPATIBILITY_2_6
868 # define WXWIN_COMPATIBILITY_2_6 1
871 #endif /* WXWIN_COMPATIBILITY_2_4 */
873 #if wxUSE_ARCHIVE_STREAMS
875 # ifdef wxABORT_ON_CONFIG_ERROR
876 # error "wxArchive requires wxUSE_DATETIME"
878 # undef wxUSE_ARCHIVE_STREAMS
879 # define wxUSE_ARCHIVE_STREAMS 0
882 #endif /* wxUSE_ARCHIVE_STREAMS */
884 #if wxUSE_CRASHREPORT && !wxUSE_ON_FATAL_EXCEPTION
885 # ifdef wxABORT_ON_CONFIG_ERROR
886 # error "wxUSE_CRASHREPORT requires wxUSE_ON_FATAL_EXCEPTION"
888 # undef wxUSE_CRASHREPORT
889 # define wxUSE_CRASHREPORT 0
891 #endif /* wxUSE_CRASHREPORT */
893 #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
895 # ifdef wxABORT_ON_CONFIG_ERROR
896 # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
898 # undef wxUSE_PROTOCOL
899 # define wxUSE_PROTOCOL 1
902 #endif /* wxUSE_PROTOCOL_XXX */
906 # ifdef wxABORT_ON_CONFIG_ERROR
907 # error "wxUSE_URL requires wxUSE_PROTOCOL"
909 # undef wxUSE_PROTOCOL
910 # define wxUSE_PROTOCOL 1
913 #endif /* wxUSE_URL */
917 # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
918 # ifdef wxABORT_ON_CONFIG_ERROR
919 # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
921 # undef wxUSE_SOCKETS
922 # define wxUSE_SOCKETS 1
928 # ifdef wxABORT_ON_CONFIG_ERROR
929 # error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
931 # undef wxUSE_STREAMS
932 # define wxUSE_STREAMS 1
935 #endif /* wxUSE_PROTOCOL */
937 /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
939 # if !wxUSE_FILESYSTEM
940 # ifdef wxABORT_ON_CONFIG_ERROR
941 # error "wxHTML requires wxFileSystem"
943 # undef wxUSE_FILESYSTEM
944 # define wxUSE_FILESYSTEM 1
947 #endif /* wxUSE_HTML */
951 # ifdef wxABORT_ON_CONFIG_ERROR
952 # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
954 # undef wxUSE_STREAMS
955 # define wxUSE_STREAMS 1
958 #endif /* wxUSE_FILESYSTEM */
962 # ifdef wxABORT_ON_CONFIG_ERROR
963 # error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
965 # undef wxUSE_PROTOCOL
966 # define wxUSE_PROTOCOL 1
969 #endif /* wxUSE_FS_INET */
971 #if wxUSE_STOPWATCH || wxUSE_DATETIME
973 # ifdef wxABORT_ON_CONFIG_ERROR
974 # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
976 # undef wxUSE_LONGLONG
977 # define wxUSE_LONGLONG 1
980 #endif /* wxUSE_STOPWATCH */
982 #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
983 # ifdef wxABORT_ON_CONFIG_ERROR
984 # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
986 # undef wxUSE_TEXTFILE
987 # define wxUSE_TEXTFILE 1
989 #endif /* wxUSE_MIMETYPE */
993 # ifdef wxABORT_ON_CONFIG_ERROR
994 # error "wxODBC requires wxUSE_DATETIME"
997 # define wxUSE_ODBC 0
1000 #endif /* wxUSE_ODBC */
1002 #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
1003 # ifdef wxABORT_ON_CONFIG_ERROR
1004 # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
1006 # undef wxUSE_TEXTBUFFER
1007 # define wxUSE_TEXTBUFFER 1
1009 #endif /* wxUSE_TEXTFILE */
1011 #if wxUSE_TEXTFILE && !wxUSE_FILE
1012 # ifdef wxABORT_ON_CONFIG_ERROR
1013 # error "wxUSE_TEXTFILE requires wxUSE_FILE"
1016 # define wxUSE_FILE 1
1018 #endif /* wxUSE_TEXTFILE */
1020 #if wxUSE_XML && !wxUSE_WCHAR_T
1021 # ifdef wxABORT_ON_CONFIG_ERROR
1022 # error "wxUSE_XML requires wxUSE_WCHAR_T"
1025 # define wxUSE_XML 0
1027 #endif /* wxUSE_XML */
1029 #if !wxUSE_DYNLIB_CLASS
1030 # if wxUSE_DYNAMIC_LOADER
1031 # ifdef wxABORT_ON_CONFIG_ERROR
1032 # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
1034 # define wxUSE_DYNLIB_CLASS 1
1037 #endif /* wxUSE_DYNLIB_CLASS */
1041 # ifdef wxABORT_ON_CONFIG_ERROR
1042 # error "wxZip requires wxZlib"
1045 # define wxUSE_ZLIB 1
1048 # if !wxUSE_ARCHIVE_STREAMS
1049 # ifdef wxABORT_ON_CONFIG_ERROR
1050 # error "wxZip requires wxArchive"
1052 # undef wxUSE_ARCHIVE_STREAMS
1053 # define wxUSE_ARCHIVE_STREAMS 1
1056 #endif /* wxUSE_ZIPSTREAM */
1058 /* the rest of the tests is for the GUI settings only */
1061 #if wxUSE_BUTTON || \
1062 wxUSE_CALENDARCTRL || \
1065 wxUSE_BMPBUTTON || \
1067 wxUSE_CHECKLISTBOX || \
1076 wxUSE_SCROLLBAR || \
1084 wxUSE_STATUSBAR || \
1088 # if !wxUSE_CONTROLS
1089 # ifdef wxABORT_ON_CONFIG_ERROR
1090 # error "wxUSE_CONTROLS unset but some controls used"
1092 # undef wxUSE_CONTROLS
1093 # define wxUSE_CONTROLS 1
1096 #endif /* controls */
1100 # ifdef wxABORT_ON_CONFIG_ERROR
1101 # error "wxUSE_BMPBUTTON requires wxUSE_BUTTON"
1103 # undef wxUSE_BUTTON
1104 # define wxUSE_BUTTON 1
1107 #endif /* wxUSE_BMPBUTTON */
1109 #if wxUSE_NOTEBOOK || wxUSE_LISTBOOK || wxUSE_CHOICEBOOK
1110 # if defined(wxUSE_BOOKCTRL) && !wxUSE_BOOKCTRL
1111 # ifdef wxABORT_ON_CONFIG_ERROR
1112 # error "wxUSE_BOOKCTRL must be set."
1114 # undef wxUSE_BOOKCTRL
1118 # ifndef wxUSE_BOOKCTRL
1119 # define wxUSE_BOOKCTRL 1
1121 #endif /* wxUSE_NOTEBOOK */
1124 # if !wxUSE_LISTCTRL
1125 # ifdef wxABORT_ON_CONFIG_ERROR
1126 # error "wxListbook requires wxListCtrl"
1128 # undef wxUSE_LISTCTRL
1129 # define wxUSE_LISTCTRL 1
1132 #endif /* wxUSE_LISTBOOK */
1134 #if wxUSE_CHOICEBOOK
1136 # ifdef wxABORT_ON_CONFIG_ERROR
1137 # error "wxChoicebook requires wxChoice"
1139 # undef wxUSE_CHOICE
1140 # define wxUSE_CHOICE 1
1143 #endif /* wxUSE_CHOICEBOOK */
1145 /* don't attempt to use native status bar on the platforms not having it */
1146 #ifndef wxUSE_NATIVE_STATUSBAR
1147 # define wxUSE_NATIVE_STATUSBAR 0
1148 #elif wxUSE_NATIVE_STATUSBAR
1149 # if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \
1150 defined(__WXMAC__) || \
1151 defined(__WXPALMOS__) )
1152 # undef wxUSE_NATIVE_STATUSBAR
1153 # define wxUSE_NATIVE_STATUSBAR 0
1157 /* wxUniv-specific dependencies */
1158 #if defined(__WXUNIVERSAL__)
1159 # if (wxUSE_COMBOBOX || wxUSE_MENUS) && !wxUSE_POPUPWIN
1160 # ifdef wxABORT_ON_CONFIG_ERROR
1161 # error "wxUSE_POPUPWIN must be defined to use comboboxes/menus"
1163 # undef wxUSE_POPUPWIN
1164 # define wxUSE_POPUPWIN 1
1170 # ifdef wxABORT_ON_CONFIG_ERROR
1171 # error "wxComboBox requires wxListBox in wxUniversal"
1173 # undef wxUSE_LISTBOX
1174 # define wxUSE_LISTBOX 1
1177 # endif /* wxUSE_COMBOBOX */
1180 # if !wxUSE_CHECKBOX
1181 # ifdef wxABORT_ON_CONFIG_ERROR
1182 # error "wxUSE_RADIOBTN requires wxUSE_CHECKBOX in wxUniversal"
1184 # undef wxUSE_CHECKBOX
1185 # define wxUSE_CHECKBOX 1
1188 # endif /* wxUSE_RADIOBTN */
1192 # ifdef wxABORT_ON_CONFIG_ERROR
1193 # error "wxTextCtrl requires wxCaret in wxUniversal"
1196 # define wxUSE_CARET 1
1198 # endif /* wxUSE_CARET */
1200 # if !wxUSE_SCROLLBAR
1201 # ifdef wxABORT_ON_CONFIG_ERROR
1202 # error "wxTextCtrl requires wxScrollBar in wxUniversal"
1204 # undef wxUSE_SCROLLBAR
1205 # define wxUSE_SCROLLBAR 1
1207 # endif /* wxUSE_SCROLLBAR */
1208 # endif /* wxUSE_TEXTCTRL */
1209 #endif /* __WXUNIVERSAL__ */
1211 /* wxGTK-specific dependencies */
1213 # ifndef __WXUNIVERSAL__
1214 # if wxUSE_MDI_ARCHITECTURE && !wxUSE_MENUS
1215 # ifdef wxABORT_ON_CONFIG_ERROR
1216 # error "MDI requires wxUSE_MENUS in wxGTK"
1219 # define wxUSE_MENUS 1
1222 # endif /* !__WXUNIVERSAL__ */
1226 # ifdef wxABORT_ON_CONFIG_ERROR
1227 # error "wxJoystick requires threads in wxGTK"
1229 # undef wxUSE_JOYSTICK
1230 # define wxUSE_JOYSTICK 0
1234 #endif /* wxGTK && !wxUniv */
1236 /* wxMGL-specific dependencies */
1239 # error "wxMGL requires wxUSE_PALETTE=1"
1243 /* Hopefully we can emulate these dialogs in due course */
1244 #if defined(__SMARTPHONE__) && defined(__WXWINCE__)
1245 # ifdef wxUSE_COLOURDLG
1246 # undef wxUSE_COLOURDLG
1247 # define wxUSE_COLOURDLG 0
1249 #endif /* __SMARTPHONE__ && __WXWINCE__ */
1252 /* generic controls dependencies */
1253 #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1254 # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1255 /* all common controls are needed by these dialogs */
1256 # if !defined(wxUSE_CHOICE) || \
1257 !defined(wxUSE_TEXTCTRL) || \
1258 !defined(wxUSE_BUTTON) || \
1259 !defined(wxUSE_CHECKBOX) || \
1260 !defined(wxUSE_STATTEXT)
1261 # ifdef wxABORT_ON_CONFIG_ERROR
1262 # error "These common controls are needed by common dialogs"
1264 # undef wxUSE_CHOICE
1265 # define wxUSE_CHOICE 1
1266 # undef wxUSE_TEXTCTRL
1267 # define wxUSE_TEXTCTRL 1
1268 # undef wxUSE_BUTTON
1269 # define wxUSE_BUTTON 1
1270 # undef wxUSE_CHECKBOX
1271 # define wxUSE_CHECKBOX 1
1272 # undef wxUSE_STATTEXT
1273 # define wxUSE_STATTEXT 1
1277 #endif /* !wxMSW || wxUniv */
1279 /* common dependencies */
1280 #if wxUSE_CALENDARCTRL
1281 # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1282 # ifdef wxABORT_ON_CONFIG_ERROR
1283 # error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1285 # undef wxUSE_SPINBTN
1286 # undef wxUSE_COMBOBOX
1287 # define wxUSE_SPINBTN 1
1288 # define wxUSE_COMBOBOX 1
1292 # if !wxUSE_DATETIME
1293 # ifdef wxABORT_ON_CONFIG_ERROR
1294 # error "wxCalendarCtrl requires wxUSE_DATETIME"
1296 # undef wxUSE_DATETIME
1297 # define wxUSE_DATETIME 1
1300 #endif /* wxUSE_CALENDARCTRL */
1302 #if wxUSE_DATEPICKCTRL
1303 # if !wxUSE_DATETIME
1304 # ifdef wxABORT_ON_CONFIG_ERROR
1305 # error "wxDatePickerCtrl requires wxUSE_DATETIME"
1307 # undef wxUSE_DATETIME
1308 # define wxUSE_DATETIME 1
1311 #endif /* wxUSE_DATEPICKCTRL */
1313 #if wxUSE_CHECKLISTBOX
1315 # ifdef wxABORT_ON_CONFIG_ERROR
1316 # error "wxCheckListBox requires wxListBox"
1318 # undef wxUSE_LISTBOX
1319 # define wxUSE_LISTBOX 1
1322 #endif /* wxUSE_CHECKLISTBOX */
1326 # ifdef wxABORT_ON_CONFIG_ERROR
1327 # error "Choice dialogs requires wxListBox"
1329 # undef wxUSE_LISTBOX
1330 # define wxUSE_LISTBOX 1
1333 #endif /* wxUSE_CHOICEDLG */
1336 # if !wxUSE_BMPBUTTON
1337 # ifdef wxABORT_ON_CONFIG_ERROR
1338 # error "wxUSE_HELP requires wxUSE_BMPBUTTON"
1340 # undef wxUSE_BMPBUTTON
1341 # define wxUSE_BMPBUTTON 1
1345 # if !wxUSE_CHOICEDLG
1346 # ifdef wxABORT_ON_CONFIG_ERROR
1347 # error "wxUSE_HELP requires wxUSE_CHOICEDLG"
1349 # undef wxUSE_CHOICEDLG
1350 # define wxUSE_CHOICEDLG 1
1353 #endif /* wxUSE_HELP */
1355 #if wxUSE_WXHTML_HELP
1356 # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL
1357 # ifdef wxABORT_ON_CONFIG_ERROR
1358 # error "Built in help controller can't be compiled"
1361 # define wxUSE_HELP 1
1363 # define wxUSE_HTML 1
1364 # undef wxUSE_COMBOBOX
1365 # define wxUSE_COMBOBOX 1
1366 # undef wxUSE_NOTEBOOK
1367 # define wxUSE_NOTEBOOK 1
1368 # undef wxUSE_SPINCTRL
1369 # define wxUSE_SPINCTRL 1
1372 #endif /* wxUSE_WXHTML_HELP */
1376 The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the
1377 user explicitly wants this and disable all other features that require
1380 # if wxUSE_DRAGIMAGE
1381 # ifdef wxABORT_ON_CONFIG_ERROR
1382 # error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE"
1384 # undef wxUSE_DRAGIMAGE
1385 # define wxUSE_DRAGIMAGE 0
1390 # ifdef wxABORT_ON_CONFIG_ERROR
1391 # error "wxUSE_LIBPNG requires wxUSE_IMAGE"
1393 # undef wxUSE_LIBPNG
1394 # define wxUSE_LIBPNG 0
1399 # ifdef wxABORT_ON_CONFIG_ERROR
1400 # error "wxUSE_LIBJPEG requires wxUSE_IMAGE"
1402 # undef wxUSE_LIBJPEG
1403 # define wxUSE_LIBJPEG 0
1408 # ifdef wxABORT_ON_CONFIG_ERROR
1409 # error "wxUSE_LIBTIFF requires wxUSE_IMAGE"
1411 # undef wxUSE_LIBTIFF
1412 # define wxUSE_LIBTIFF 0
1417 # ifdef wxABORT_ON_CONFIG_ERROR
1418 # error "wxUSE_GIF requires wxUSE_IMAGE"
1421 # define wxUSE_GIF 0
1426 # ifdef wxABORT_ON_CONFIG_ERROR
1427 # error "wxUSE_PNM requires wxUSE_IMAGE"
1430 # define wxUSE_PNM 0
1435 # ifdef wxABORT_ON_CONFIG_ERROR
1436 # error "wxUSE_PCX requires wxUSE_IMAGE"
1439 # define wxUSE_PCX 0
1444 # ifdef wxABORT_ON_CONFIG_ERROR
1445 # error "wxUSE_IFF requires wxUSE_IMAGE"
1448 # define wxUSE_IFF 0
1453 # ifdef wxABORT_ON_CONFIG_ERROR
1454 # error "wxUSE_TOOLBAR requires wxUSE_IMAGE"
1456 # undef wxUSE_TOOLBAR
1457 # define wxUSE_TOOLBAR 0
1462 # ifdef wxABORT_ON_CONFIG_ERROR
1463 # error "wxUSE_XPM requires wxUSE_IMAGE"
1466 # define wxUSE_XPM 0
1470 #endif /* !wxUSE_IMAGE */
1472 #if wxUSE_DOC_VIEW_ARCHITECTURE
1474 # ifdef wxABORT_ON_CONFIG_ERROR
1475 # error "DocView requires wxUSE_MENUS"
1478 # define wxUSE_MENUS 1
1482 # if !wxUSE_CHOICEDLG
1483 # ifdef wxABORT_ON_CONFIG_ERROR
1484 # error "DocView requires wxUSE_CHOICEDLG"
1486 # undef wxUSE_CHOICEDLG
1487 # define wxUSE_CHOICEDLG 1
1491 # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1492 # ifdef wxABORT_ON_CONFIG_ERROR
1493 # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1495 # undef wxUSE_STREAMS
1496 # define wxUSE_STREAMS 1
1499 #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1501 #if wxUSE_PRINTING_ARCHITECTURE
1502 # if !wxUSE_COMBOBOX
1503 # ifdef wxABORT_ON_CONFIG_ERROR
1504 # error "Print dialog requires wxUSE_COMBOBOX"
1506 # undef wxUSE_COMBOBOX
1507 # define wxUSE_COMBOBOX 1
1510 #endif /* wxUSE_PRINTING_ARCHITECTURE */
1512 #if wxUSE_MDI_ARCHITECTURE
1514 # ifdef wxABORT_ON_CONFIG_ERROR
1515 # error "MDI requires wxUSE_MDI"
1518 # define wxUSE_MDI 1
1522 # if !wxUSE_DOC_VIEW_ARCHITECTURE
1523 # ifdef wxABORT_ON_CONFIG_ERROR
1524 # error "wxUSE_MDI_ARCHITECTURE requires wxUSE_DOC_VIEW_ARCHITECTURE"
1526 # undef wxUSE_DOC_VIEW_ARCHITECTURE
1527 # define wxUSE_DOC_VIEW_ARCHITECTURE 1
1530 #endif /* wxUSE_MDI_ARCHITECTURE */
1533 # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1534 # ifdef wxABORT_ON_CONFIG_ERROR
1535 # error "wxUSE_FILEDLG is required by wxUSE_DOC_VIEW_ARCHITECTURE and wxUSE_WXHTML_HELP!"
1537 # undef wxUSE_FILEDLG
1538 # define wxUSE_FILEDLG 1
1541 #endif /* wxUSE_FILEDLG */
1543 #if !wxUSE_GAUGE || !wxUSE_BUTTON
1544 # if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__)
1545 # ifdef wxABORT_ON_CONFIG_ERROR
1546 # error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON"
1549 # undef wxUSE_BUTTON
1550 # define wxUSE_GAUGE 1
1551 # define wxUSE_BUTTON 1
1554 #endif /* !wxUSE_GAUGE */
1557 # if wxUSE_FONTDLG || \
1559 wxUSE_CHOICEDLG || \
1560 wxUSE_NUMBERDLG || \
1563 wxUSE_STARTUP_TIPS || \
1565 # ifdef wxABORT_ON_CONFIG_ERROR
1566 # error "Common and generic dialogs require wxUSE_BUTTON"
1568 # undef wxUSE_BUTTON
1569 # define wxUSE_BUTTON 1
1572 #endif /* !wxUSE_BUTTON */
1575 # if wxUSE_TOOLBAR_NATIVE
1576 # ifdef wxABORT_ON_CONFIG_ERROR
1577 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
1579 # undef wxUSE_TOOLBAR_NATIVE
1580 # define wxUSE_TOOLBAR_NATIVE 0
1584 # if wxUSE_TOOLBAR_SIMPLE
1585 # ifdef wxABORT_ON_CONFIG_ERROR
1586 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_SIMPLE is set to 1"
1588 # undef wxUSE_TOOLBAR_SIMPLE
1589 # define wxUSE_TOOLBAR_SIMPLE 0
1595 # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL
1596 # ifdef wxABORT_ON_CONFIG_ERROR
1597 # error "wxImageList must be compiled as well"
1599 # undef wxUSE_IMAGLIST
1600 # define wxUSE_IMAGLIST 1
1603 #endif /* !wxUSE_IMAGLIST */
1606 # ifdef wxABORT_ON_CONFIG_ERROR
1607 /* FIXME: should compile without it, of course, but doesn't */
1608 # error "wxMessageBox is always needed"
1610 # undef wxUSE_MSGDLG
1611 # define wxUSE_MSGDLG 1
1616 # if !wxUSE_RADIOBTN
1617 # ifdef wxABORT_ON_CONFIG_ERROR
1618 # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN"
1620 # undef wxUSE_RADIOBTN
1621 # define wxUSE_RADIOBTN 1
1624 # if !wxUSE_STATBOX && !defined(__WXPALMOS__)
1625 # ifdef wxABORT_ON_CONFIG_ERROR
1626 # error "wxUSE_RADIOBOX requires wxUSE_STATBOX"
1628 # undef wxUSE_STATBOX
1629 # define wxUSE_STATBOX 1
1632 #endif /* wxUSE_RADIOBOX */
1635 # if !wxUSE_TEXTCTRL
1636 # ifdef wxABORT_ON_CONFIG_ERROR
1637 # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
1639 # undef wxUSE_TEXTCTRL
1640 # define wxUSE_TEXTCTRL 1
1643 #endif /* wxUSE_LOGWINDOW */
1645 #if wxUSE_LOG_DIALOG
1646 # if !wxUSE_LISTCTRL || !wxUSE_BUTTON
1647 # ifdef wxABORT_ON_CONFIG_ERROR
1648 # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON"
1650 # undef wxUSE_LISTCTRL
1651 # define wxUSE_LISTCTRL 1
1652 # undef wxUSE_BUTTON
1653 # define wxUSE_BUTTON 1
1656 #endif /* wxUSE_LOG_DIALOG */
1658 #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
1659 # ifdef wxABORT_ON_CONFIG_ERROR
1660 # error "wxClipboard requires wxDataObject"
1662 # undef wxUSE_DATAOBJ
1663 # define wxUSE_DATAOBJ 1
1665 #endif /* wxUSE_CLIPBOARD */
1667 #if wxUSE_WX_RESOURCES && !wxUSE_PROLOGIO
1668 # ifdef wxABORT_ON_CONFIG_ERROR
1669 # error "wxr resources require PrologIO"
1671 # undef wxUSE_PROLOGIO
1672 # define wxUSE_PROLOGIO 1
1674 #endif /* wxUSE_WX_RESOURCES */
1676 #if wxUSE_XRC && !wxUSE_XML
1677 # ifdef wxABORT_ON_CONFIG_ERROR
1678 # error "wxUSE_XRC requires wxUSE_XML"
1681 # define wxUSE_XRC 0
1683 #endif /* wxUSE_XRC */
1685 #if wxUSE_SOCKETS && !wxUSE_STOPWATCH
1686 # ifdef wxABORT_ON_CONFIG_ERROR
1687 # error "wxUSE_SOCKETS requires wxUSE_STOPWATCH"
1689 # undef wxUSE_SOCKETS
1690 # define wxUSE_SOCKETS 0
1692 #endif /* wxUSE_SOCKETS */
1694 #endif /* wxUSE_GUI */