]>
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
76 #ifndef wxUSE_CRASHREPORT
77 /* this one is special: as currently it is Windows-only, don't force it
78 to be defined on other platforms */
79 # if defined(wxABORT_ON_CONFIG_ERROR) && defined(__WXMSW__)
80 # error "wxUSE_CRASHREPORT must be defined."
82 # define wxUSE_CRASHREPORT 0
84 #endif /* !defined(wxUSE_CRASHREPORT) */
86 #ifndef wxUSE_DYNLIB_CLASS
87 # ifdef wxABORT_ON_CONFIG_ERROR
88 # error "wxUSE_DYNLIB_CLASS must be defined."
90 # define wxUSE_DYNLIB_CLASS 0
92 #endif /* !defined(wxUSE_DYNLIB_CLASS) */
94 #ifndef wxUSE_EXCEPTIONS
95 # ifdef wxABORT_ON_CONFIG_ERROR
96 # error "wxUSE_EXCEPTIONS must be defined."
98 # define wxUSE_EXCEPTIONS 0
100 #endif /* !defined(wxUSE_EXCEPTIONS) */
102 #ifndef wxUSE_FILESYSTEM
103 # ifdef wxABORT_ON_CONFIG_ERROR
104 # error "wxUSE_FILESYSTEM must be defined."
106 # define wxUSE_FILESYSTEM 0
108 #endif /* !defined(wxUSE_FILESYSTEM) */
110 /* don't give an error about this one yet, it's not fully implemented */
111 #ifndef wxUSE_FSVOLUME
112 # define wxUSE_FSVOLUME 0
113 #endif /* !defined(wxUSE_FSVOLUME) */
115 #ifndef wxUSE_DYNAMIC_LOADER
116 # ifdef wxABORT_ON_CONFIG_ERROR
117 # error "wxUSE_DYNAMIC_LOADER must be defined."
119 # define wxUSE_DYNAMIC_LOADER 0
121 #endif /* !defined(wxUSE_DYNAMIC_LOADER) */
124 # ifdef wxABORT_ON_CONFIG_ERROR
125 # error "wxUSE_LOG must be defined."
129 #endif /* !defined(wxUSE_LOG) */
131 #ifndef wxUSE_LONGLONG
132 # ifdef wxABORT_ON_CONFIG_ERROR
133 # error "wxUSE_LONGLONG must be defined."
135 # define wxUSE_LONGLONG 0
137 #endif /* !defined(wxUSE_LONGLONG) */
139 #ifndef wxUSE_MIMETYPE
140 # ifdef wxABORT_ON_CONFIG_ERROR
141 # error "wxUSE_MIMETYPE must be defined."
143 # define wxUSE_MIMETYPE 0
145 #endif /* !defined(wxUSE_MIMETYPE) */
147 #ifndef wxUSE_ON_FATAL_EXCEPTION
148 # ifdef wxABORT_ON_CONFIG_ERROR
149 # error "wxUSE_ON_FATAL_EXCEPTION must be defined."
151 # define wxUSE_ON_FATAL_EXCEPTION 0
153 #endif /* !defined(wxUSE_ON_FATAL_EXCEPTION) */
155 #ifndef wxUSE_PROTOCOL
156 # ifdef wxABORT_ON_CONFIG_ERROR
157 # error "wxUSE_PROTOCOL must be defined."
159 # define wxUSE_PROTOCOL 0
161 #endif /* !defined(wxUSE_PROTOCOL) */
163 /* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */
165 # undef wxUSE_PROTOCOL_HTTP
166 # undef wxUSE_PROTOCOL_FTP
167 # undef wxUSE_PROTOCOL_FILE
168 # define wxUSE_PROTOCOL_HTTP 0
169 # define wxUSE_PROTOCOL_FTP 0
170 # define wxUSE_PROTOCOL_FILE 0
171 #endif /* wxUSE_PROTOCOL */
173 #ifndef wxUSE_PROTOCOL_HTTP
174 # ifdef wxABORT_ON_CONFIG_ERROR
175 # error "wxUSE_PROTOCOL_HTTP must be defined."
177 # define wxUSE_PROTOCOL_HTTP 0
179 #endif /* !defined(wxUSE_PROTOCOL_HTTP) */
181 #ifndef wxUSE_PROTOCOL_FTP
182 # ifdef wxABORT_ON_CONFIG_ERROR
183 # error "wxUSE_PROTOCOL_FTP must be defined."
185 # define wxUSE_PROTOCOL_FTP 0
187 #endif /* !defined(wxUSE_PROTOCOL_FTP) */
189 #ifndef wxUSE_PROTOCOL_FILE
190 # ifdef wxABORT_ON_CONFIG_ERROR
191 # error "wxUSE_PROTOCOL_FILE must be defined."
193 # define wxUSE_PROTOCOL_FILE 0
195 #endif /* !defined(wxUSE_PROTOCOL_FILE) */
198 # ifdef wxABORT_ON_CONFIG_ERROR
199 # error "wxUSE_REGEX must be defined."
201 # define wxUSE_REGEX 0
203 #endif /* !defined(wxUSE_REGEX) */
205 #ifndef wxUSE_STDPATHS
206 # ifdef wxABORT_ON_CONFIG_ERROR
207 # error "wxUSE_STDPATHS must be defined."
209 # define wxUSE_STDPATHS 1
211 #endif /* !defined(wxUSE_STDPATHS) */
214 # ifdef wxABORT_ON_CONFIG_ERROR
215 # error "wxUSE_XML must be defined."
219 #endif /* !defined(wxUSE_XML) */
221 #ifndef wxUSE_SOCKETS
222 # ifdef wxABORT_ON_CONFIG_ERROR
223 # error "wxUSE_SOCKETS must be defined."
225 # define wxUSE_SOCKETS 0
227 #endif /* !defined(wxUSE_SOCKETS) */
229 #ifndef wxUSE_STREAMS
230 # ifdef wxABORT_ON_CONFIG_ERROR
231 # error "wxUSE_STREAMS must be defined."
233 # define wxUSE_STREAMS 0
235 #endif /* !defined(wxUSE_STREAMS) */
237 #ifndef wxUSE_STOPWATCH
238 # ifdef wxABORT_ON_CONFIG_ERROR
239 # error "wxUSE_STOPWATCH must be defined."
241 # define wxUSE_STOPWATCH 0
243 #endif /* !defined(wxUSE_STOPWATCH) */
245 #ifndef wxUSE_TEXTBUFFER
246 # ifdef wxABORT_ON_CONFIG_ERROR
247 # error "wxUSE_TEXTBUFFER must be defined."
249 # define wxUSE_TEXTBUFFER 0
251 #endif /* !defined(wxUSE_TEXTBUFFER) */
253 #ifndef wxUSE_TEXTFILE
254 # ifdef wxABORT_ON_CONFIG_ERROR
255 # error "wxUSE_TEXTFILE must be defined."
257 # define wxUSE_TEXTFILE 0
259 #endif /* !defined(wxUSE_TEXTFILE) */
261 #ifndef wxUSE_UNICODE
262 # ifdef wxABORT_ON_CONFIG_ERROR
263 # error "wxUSE_UNICODE must be defined."
265 # define wxUSE_UNICODE 0
267 #endif /* !defined(wxUSE_UNICODE) */
270 # ifdef wxABORT_ON_CONFIG_ERROR
271 # error "wxUSE_URL must be defined."
275 #endif /* !defined(wxUSE_URL) */
278 all these tests are for GUI only
283 all of the settings tested below must be defined or we'd get an error from
284 preprocessor about invalid integer expression
288 # ifdef wxABORT_ON_CONFIG_ERROR
289 # error "wxUSE_ACCEL must be defined."
291 # define wxUSE_ACCEL 0
293 #endif /* !defined(wxUSE_ACCEL) */
295 #ifndef wxUSE_BMPBUTTON
296 # ifdef wxABORT_ON_CONFIG_ERROR
297 # error "wxUSE_BMPBUTTON must be defined."
299 # define wxUSE_BMPBUTTON 0
301 #endif /* !defined(wxUSE_BMPBUTTON) */
304 # ifdef wxABORT_ON_CONFIG_ERROR
305 # error "wxUSE_BUTTON must be defined."
307 # define wxUSE_BUTTON 0
309 #endif /* !defined(wxUSE_BUTTON) */
311 #ifndef wxUSE_CALENDARCTRL
312 # ifdef wxABORT_ON_CONFIG_ERROR
313 # error "wxUSE_CALENDARCTRL must be defined."
315 # define wxUSE_CALENDARCTRL 0
317 #endif /* !defined(wxUSE_CALENDARCTRL) */
320 # ifdef wxABORT_ON_CONFIG_ERROR
321 # error "wxUSE_CARET must be defined."
323 # define wxUSE_CARET 0
325 #endif /* !defined(wxUSE_CARET) */
327 #ifndef wxUSE_CHECKBOX
328 # ifdef wxABORT_ON_CONFIG_ERROR
329 # error "wxUSE_CHECKBOX must be defined."
331 # define wxUSE_CHECKBOX 0
333 #endif /* !defined(wxUSE_CHECKBOX) */
335 #ifndef wxUSE_CHECKLISTBOX
336 # ifdef wxABORT_ON_CONFIG_ERROR
337 # error "wxUSE_CHECKLISTBOX must be defined."
339 # define wxUSE_CHECKLISTBOX 0
341 #endif /* !defined(wxUSE_CHECKLISTBOX) */
344 # ifdef wxABORT_ON_CONFIG_ERROR
345 # error "wxUSE_CHOICE must be defined."
347 # define wxUSE_CHOICE 0
349 #endif /* !defined(wxUSE_CHOICE) */
351 #ifndef wxUSE_CHOICEBOOK
352 # ifdef wxABORT_ON_CONFIG_ERROR
353 # error "wxUSE_CHOICEBOOK must be defined."
355 # define wxUSE_CHOICEBOOK 0
357 #endif /* !defined(wxUSE_CHOICEBOOK) */
359 #ifndef wxUSE_CHOICEDLG
360 # ifdef wxABORT_ON_CONFIG_ERROR
361 # error "wxUSE_CHOICEDLG must be defined."
363 # define wxUSE_CHOICEDLG 0
365 #endif /* !defined(wxUSE_CHOICEDLG) */
367 #ifndef wxUSE_CLIPBOARD
368 # ifdef wxABORT_ON_CONFIG_ERROR
369 # error "wxUSE_CLIPBOARD must be defined."
371 # define wxUSE_CLIPBOARD 0
373 #endif /* !defined(wxUSE_CLIPBOARD) */
375 #ifndef wxUSE_COLOURDLG
376 # ifdef wxABORT_ON_CONFIG_ERROR
377 # error "wxUSE_COLOURDLG must be defined."
379 # define wxUSE_COLOURDLG 0
381 #endif /* !defined(wxUSE_COLOURDLG) */
383 #ifndef wxUSE_COMBOBOX
384 # ifdef wxABORT_ON_CONFIG_ERROR
385 # error "wxUSE_COMBOBOX must be defined."
387 # define wxUSE_COMBOBOX 0
389 #endif /* !defined(wxUSE_COMBOBOX) */
391 #ifndef wxUSE_DATAOBJ
392 # ifdef wxABORT_ON_CONFIG_ERROR
393 # error "wxUSE_DATAOBJ must be defined."
395 # define wxUSE_DATAOBJ 0
397 #endif /* !defined(wxUSE_DATAOBJ) */
399 #ifndef wxUSE_DATEPICKCTRL
400 # ifdef wxABORT_ON_CONFIG_ERROR
401 # error "wxUSE_DATEPICKCTRL must be defined."
403 # define wxUSE_DATEPICKCTRL 0
405 #endif /* !defined(wxUSE_DATEPICKCTRL) */
407 #ifndef wxUSE_DISPLAY
408 # ifdef wxABORT_ON_CONFIG_ERROR
409 # error "wxUSE_DISPLAY must be defined."
411 # define wxUSE_DISPLAY 0
413 #endif /* !defined(wxUSE_DISPLAY) */
415 #ifndef wxUSE_DOC_VIEW_ARCHITECTURE
416 # ifdef wxABORT_ON_CONFIG_ERROR
417 # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
419 # define wxUSE_DOC_VIEW_ARCHITECTURE 0
421 #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
423 #ifndef wxUSE_FILEDLG
424 # ifdef wxABORT_ON_CONFIG_ERROR
425 # error "wxUSE_FILEDLG must be defined."
427 # define wxUSE_FILEDLG 0
429 #endif /* !defined(wxUSE_FILEDLG) */
431 #ifndef wxUSE_FONTDLG
432 # ifdef wxABORT_ON_CONFIG_ERROR
433 # error "wxUSE_FONTDLG must be defined."
435 # define wxUSE_FONTDLG 0
437 #endif /* !defined(wxUSE_FONTDLG) */
439 #ifndef wxUSE_FONTMAP
440 # ifdef wxABORT_ON_CONFIG_ERROR
441 # error "wxUSE_FONTMAP must be defined."
443 # define wxUSE_FONTMAP 0
445 #endif /* !defined(wxUSE_FONTMAP) */
448 # ifdef wxABORT_ON_CONFIG_ERROR
449 # error "wxUSE_GAUGE must be defined."
451 # define wxUSE_GAUGE 0
453 #endif /* !defined(wxUSE_GAUGE) */
456 # ifdef wxABORT_ON_CONFIG_ERROR
457 # error "wxUSE_GRID must be defined."
459 # define wxUSE_GRID 0
461 #endif /* !defined(wxUSE_GRID) */
464 # ifdef wxABORT_ON_CONFIG_ERROR
465 # error "wxUSE_HELP must be defined."
467 # define wxUSE_HELP 0
469 #endif /* !defined(wxUSE_HELP) */
472 # ifdef wxABORT_ON_CONFIG_ERROR
473 # error "wxUSE_HTML must be defined."
475 # define wxUSE_HTML 0
477 #endif /* !defined(wxUSE_HTML) */
480 # ifdef wxABORT_ON_CONFIG_ERROR
481 # error "wxUSE_XRC must be defined."
485 #endif /* !defined(wxUSE_XRC) */
487 #ifndef wxUSE_LIBMSPACK
489 /* set to 0 on platforms that don't have libmspack */
490 # define wxUSE_LIBMSPACK 0
492 # ifdef wxABORT_ON_CONFIG_ERROR
493 # error "wxUSE_LIBMSPACK must be defined."
495 # define wxUSE_LIBMSPACK 0
498 #endif /* !defined(wxUSE_LIBMSPACK) */
500 #ifndef wxUSE_ICO_CUR
501 # ifdef wxABORT_ON_CONFIG_ERROR
502 # error "wxUSE_ICO_CUR must be defined."
504 # define wxUSE_ICO_CUR 0
506 #endif /* !defined(wxUSE_ICO_CUR) */
509 # ifdef wxABORT_ON_CONFIG_ERROR
510 # error "wxUSE_IFF must be defined."
514 #endif /* !defined(wxUSE_IFF) */
516 #ifndef wxUSE_IMAGLIST
517 # ifdef wxABORT_ON_CONFIG_ERROR
518 # error "wxUSE_IMAGLIST must be defined."
520 # define wxUSE_IMAGLIST 0
522 #endif /* !defined(wxUSE_IMAGLIST) */
524 #ifndef wxUSE_JOYSTICK
525 # ifdef wxABORT_ON_CONFIG_ERROR
526 # error "wxUSE_JOYSTICK must be defined."
528 # define wxUSE_JOYSTICK 0
530 #endif /* !defined(wxUSE_JOYSTICK) */
532 #ifndef wxUSE_LISTBOOK
533 # ifdef wxABORT_ON_CONFIG_ERROR
534 # error "wxUSE_LISTBOOK must be defined."
536 # define wxUSE_LISTBOOK 0
538 #endif /* !defined(wxUSE_LISTBOOK) */
540 #ifndef wxUSE_LISTBOX
541 # ifdef wxABORT_ON_CONFIG_ERROR
542 # error "wxUSE_LISTBOX must be defined."
544 # define wxUSE_LISTBOX 0
546 #endif /* !defined(wxUSE_LISTBOX) */
548 #ifndef wxUSE_LISTCTRL
549 # ifdef wxABORT_ON_CONFIG_ERROR
550 # error "wxUSE_LISTCTRL must be defined."
552 # define wxUSE_LISTCTRL 0
554 #endif /* !defined(wxUSE_LISTCTRL) */
557 # ifdef wxABORT_ON_CONFIG_ERROR
558 # error "wxUSE_LOGGUI must be defined."
560 # define wxUSE_LOGGUI 0
562 #endif /* !defined(wxUSE_LOGGUI) */
564 #ifndef wxUSE_LOGWINDOW
565 # ifdef wxABORT_ON_CONFIG_ERROR
566 # error "wxUSE_LOGWINDOW must be defined."
568 # define wxUSE_LOGWINDOW 0
570 #endif /* !defined(wxUSE_LOGWINDOW) */
572 #ifndef wxUSE_LOG_DIALOG
573 # ifdef wxABORT_ON_CONFIG_ERROR
574 # error "wxUSE_LOG_DIALOG must be defined."
576 # define wxUSE_LOG_DIALOG 0
578 #endif /* !defined(wxUSE_LOG_DIALOG) */
581 # ifdef wxABORT_ON_CONFIG_ERROR
582 # error "wxUSE_MDI must be defined."
586 #endif /* !defined(wxUSE_MDI) */
588 #ifndef wxUSE_MDI_ARCHITECTURE
589 # ifdef wxABORT_ON_CONFIG_ERROR
590 # error "wxUSE_MDI_ARCHITECTURE must be defined."
592 # define wxUSE_MDI_ARCHITECTURE 0
594 #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
597 # ifdef wxABORT_ON_CONFIG_ERROR
598 # error "wxUSE_MENUS must be defined."
600 # define wxUSE_MENUS 0
602 #endif /* !defined(wxUSE_MENUS) */
605 # ifdef wxABORT_ON_CONFIG_ERROR
606 # error "wxUSE_MSGDLG must be defined."
608 # define wxUSE_MSGDLG 0
610 #endif /* !defined(wxUSE_MSGDLG) */
612 #ifndef wxUSE_NOTEBOOK
613 # ifdef wxABORT_ON_CONFIG_ERROR
614 # error "wxUSE_NOTEBOOK must be defined."
616 # define wxUSE_NOTEBOOK 0
618 #endif /* !defined(wxUSE_NOTEBOOK) */
620 #ifndef wxUSE_PALETTE
621 # ifdef wxABORT_ON_CONFIG_ERROR
622 # error "wxUSE_PALETTE must be defined."
624 # define wxUSE_PALETTE 0
626 #endif /* !defined(wxUSE_PALETTE) */
628 #ifndef wxUSE_POPUPWIN
629 # ifdef wxABORT_ON_CONFIG_ERROR
630 # error "wxUSE_POPUPWIN must be defined."
632 # define wxUSE_POPUPWIN 0
634 #endif /* !defined(wxUSE_POPUPWIN) */
636 #ifndef wxUSE_PRINTING_ARCHITECTURE
637 # ifdef wxABORT_ON_CONFIG_ERROR
638 # error "wxUSE_PRINTING_ARCHITECTURE must be defined."
640 # define wxUSE_PRINTING_ARCHITECTURE 0
642 #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
644 #ifndef wxUSE_RADIOBOX
645 # ifdef wxABORT_ON_CONFIG_ERROR
646 # error "wxUSE_RADIOBOX must be defined."
648 # define wxUSE_RADIOBOX 0
650 #endif /* !defined(wxUSE_RADIOBOX) */
652 #ifndef wxUSE_RADIOBTN
653 # ifdef wxABORT_ON_CONFIG_ERROR
654 # error "wxUSE_RADIOBTN must be defined."
656 # define wxUSE_RADIOBTN 0
658 #endif /* !defined(wxUSE_RADIOBTN) */
661 # ifdef wxABORT_ON_CONFIG_ERROR
662 # error "wxUSE_SASH must be defined."
664 # define wxUSE_SASH 0
666 #endif /* !defined(wxUSE_SASH) */
668 #ifndef wxUSE_SCROLLBAR
669 # ifdef wxABORT_ON_CONFIG_ERROR
670 # error "wxUSE_SCROLLBAR must be defined."
672 # define wxUSE_SCROLLBAR 0
674 #endif /* !defined(wxUSE_SCROLLBAR) */
677 # ifdef wxABORT_ON_CONFIG_ERROR
678 # error "wxUSE_SLIDER must be defined."
680 # define wxUSE_SLIDER 0
682 #endif /* !defined(wxUSE_SLIDER) */
685 # ifdef wxABORT_ON_CONFIG_ERROR
686 # error "wxUSE_SOUND must be defined."
688 # define wxUSE_SOUND 0
690 #endif /* !defined(wxUSE_SOUND) */
692 #ifndef wxUSE_SPINBTN
693 # ifdef wxABORT_ON_CONFIG_ERROR
694 # error "wxUSE_SPINBTN must be defined."
696 # define wxUSE_SPINBTN 0
698 #endif /* !defined(wxUSE_SPINBTN) */
700 #ifndef wxUSE_SPINCTRL
701 # ifdef wxABORT_ON_CONFIG_ERROR
702 # error "wxUSE_SPINCTRL must be defined."
704 # define wxUSE_SPINCTRL 0
706 #endif /* !defined(wxUSE_SPINCTRL) */
709 # ifdef wxABORT_ON_CONFIG_ERROR
710 # error "wxUSE_SPLASH must be defined."
712 # define wxUSE_SPLASH 0
714 #endif /* !defined(wxUSE_SPLASH) */
716 #ifndef wxUSE_SPLITTER
717 # ifdef wxABORT_ON_CONFIG_ERROR
718 # error "wxUSE_SPLITTER must be defined."
720 # define wxUSE_SPLITTER 0
722 #endif /* !defined(wxUSE_SPLITTER) */
724 #ifndef wxUSE_STATBMP
725 # ifdef wxABORT_ON_CONFIG_ERROR
726 # error "wxUSE_STATBMP must be defined."
728 # define wxUSE_STATBMP 0
730 #endif /* !defined(wxUSE_STATBMP) */
732 #ifndef wxUSE_STATBOX
733 # ifdef wxABORT_ON_CONFIG_ERROR
734 # error "wxUSE_STATBOX must be defined."
736 # define wxUSE_STATBOX 0
738 #endif /* !defined(wxUSE_STATBOX) */
740 #ifndef wxUSE_STATLINE
741 # ifdef wxABORT_ON_CONFIG_ERROR
742 # error "wxUSE_STATLINE must be defined."
744 # define wxUSE_STATLINE 0
746 #endif /* !defined(wxUSE_STATLINE) */
748 #ifndef wxUSE_STATTEXT
749 # ifdef wxABORT_ON_CONFIG_ERROR
750 # error "wxUSE_STATTEXT must be defined."
752 # define wxUSE_STATTEXT 0
754 #endif /* !defined(wxUSE_STATTEXT) */
756 #ifndef wxUSE_STATUSBAR
757 # ifdef wxABORT_ON_CONFIG_ERROR
758 # error "wxUSE_STATUSBAR must be defined."
760 # define wxUSE_STATUSBAR 0
762 #endif /* !defined(wxUSE_STATUSBAR) */
764 #ifndef wxUSE_TAB_DIALOG
765 # ifdef wxABORT_ON_CONFIG_ERROR
766 # error "wxUSE_TAB_DIALOG must be defined."
768 # define wxUSE_TAB_DIALOG 0
770 #endif /* !defined(wxUSE_TAB_DIALOG) */
772 #ifndef wxUSE_TEXTCTRL
773 # ifdef wxABORT_ON_CONFIG_ERROR
774 # error "wxUSE_TEXTCTRL must be defined."
776 # define wxUSE_TEXTCTRL 0
778 #endif /* !defined(wxUSE_TEXTCTRL) */
780 #ifndef wxUSE_TIPWINDOW
781 # ifdef wxABORT_ON_CONFIG_ERROR
782 # error "wxUSE_TIPWINDOW must be defined."
784 # define wxUSE_TIPWINDOW 0
786 #endif /* !defined(wxUSE_TIPWINDOW) */
788 #ifndef wxUSE_TOOLBAR
789 # ifdef wxABORT_ON_CONFIG_ERROR
790 # error "wxUSE_TOOLBAR must be defined."
792 # define wxUSE_TOOLBAR 0
794 #endif /* !defined(wxUSE_TOOLBAR) */
796 #ifndef wxUSE_TOOLTIPS
797 # ifdef wxABORT_ON_CONFIG_ERROR
798 # error "wxUSE_TOOLTIPS must be defined."
800 # define wxUSE_TOOLTIPS 0
802 #endif /* !defined(wxUSE_TOOLTIPS) */
804 #ifndef wxUSE_TREECTRL
805 # ifdef wxABORT_ON_CONFIG_ERROR
806 # error "wxUSE_TREECTRL must be defined."
808 # define wxUSE_TREECTRL 0
810 #endif /* !defined(wxUSE_TREECTRL) */
812 #ifndef wxUSE_VALIDATORS
813 # ifdef wxABORT_ON_CONFIG_ERROR
814 # error "wxUSE_VALIDATORS must be defined."
816 # define wxUSE_VALIDATORS 0
818 #endif /* !defined(wxUSE_VALIDATORS) */
820 #ifndef wxUSE_WXHTML_HELP
821 # ifdef wxABORT_ON_CONFIG_ERROR
822 # error "wxUSE_WXHTML_HELP must be defined."
824 # define wxUSE_WXHTML_HELP 0
826 #endif /* !defined(wxUSE_WXHTML_HELP) */
828 #endif /* wxUSE_GUI */
831 check consistency of the settings
834 #if wxUSE_ARCHIVE_STREAMS
836 # ifdef wxABORT_ON_CONFIG_ERROR
837 # error "wxArchive requires wxUSE_DATETIME"
839 # undef wxUSE_ARCHIVE_STREAMS
840 # define wxUSE_ARCHIVE_STREAMS 0
843 #endif /* wxUSE_ARCHIVE_STREAMS */
845 #if wxUSE_CRASHREPORT && !wxUSE_ON_FATAL_EXCEPTION
846 # ifdef wxABORT_ON_CONFIG_ERROR
847 # error "wxUSE_CRASHREPORT requires wxUSE_ON_FATAL_EXCEPTION"
849 # undef wxUSE_CRASHREPORT
850 # define wxUSE_CRASHREPORT 0
852 #endif /* wxUSE_CRASHREPORT */
854 #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
856 # ifdef wxABORT_ON_CONFIG_ERROR
857 # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
859 # undef wxUSE_PROTOCOL
860 # define wxUSE_PROTOCOL 1
863 #endif /* wxUSE_PROTOCOL_XXX */
867 # ifdef wxABORT_ON_CONFIG_ERROR
868 # error "wxUSE_URL requires wxUSE_PROTOCOL"
870 # undef wxUSE_PROTOCOL
871 # define wxUSE_PROTOCOL 1
874 #endif /* wxUSE_URL */
878 # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
879 # ifdef wxABORT_ON_CONFIG_ERROR
880 # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
882 # undef wxUSE_SOCKETS
883 # define wxUSE_SOCKETS 1
889 # ifdef wxABORT_ON_CONFIG_ERROR
890 # error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
892 # undef wxUSE_STREAMS
893 # define wxUSE_STREAMS 1
896 #endif /* wxUSE_PROTOCOL */
898 /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
900 # if !wxUSE_FILESYSTEM
901 # ifdef wxABORT_ON_CONFIG_ERROR
902 # error "wxHTML requires wxFileSystem"
904 # undef wxUSE_FILESYSTEM
905 # define wxUSE_FILESYSTEM 1
908 #endif /* wxUSE_HTML */
912 # ifdef wxABORT_ON_CONFIG_ERROR
913 # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
915 # undef wxUSE_STREAMS
916 # define wxUSE_STREAMS 1
919 #endif /* wxUSE_FILESYSTEM */
923 # ifdef wxABORT_ON_CONFIG_ERROR
924 # error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
926 # undef wxUSE_PROTOCOL
927 # define wxUSE_PROTOCOL 1
930 #endif /* wxUSE_FS_INET */
932 #if wxUSE_STOPWATCH || wxUSE_DATETIME
934 # ifdef wxABORT_ON_CONFIG_ERROR
935 # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
937 # undef wxUSE_LONGLONG
938 # define wxUSE_LONGLONG 1
941 #endif /* wxUSE_STOPWATCH */
943 #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
944 # ifdef wxABORT_ON_CONFIG_ERROR
945 # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
947 # undef wxUSE_TEXTFILE
948 # define wxUSE_TEXTFILE 1
950 #endif /* wxUSE_MIMETYPE */
954 # ifdef wxABORT_ON_CONFIG_ERROR
955 # error "wxODBC requires wxUSE_DATETIME"
958 # define wxUSE_ODBC 0
961 #endif /* wxUSE_ODBC */
963 #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
964 # ifdef wxABORT_ON_CONFIG_ERROR
965 # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
967 # undef wxUSE_TEXTBUFFER
968 # define wxUSE_TEXTBUFFER 1
970 #endif /* wxUSE_TEXTFILE */
972 #if wxUSE_TEXTFILE && !wxUSE_FILE
973 # ifdef wxABORT_ON_CONFIG_ERROR
974 # error "wxUSE_TEXTFILE requires wxUSE_FILE"
977 # define wxUSE_FILE 1
979 #endif /* wxUSE_TEXTFILE */
981 #if wxUSE_XML && !wxUSE_WCHAR_T
982 # ifdef wxABORT_ON_CONFIG_ERROR
983 # error "wxUSE_XML requires wxUSE_WCHAR_T"
988 #endif /* wxUSE_XML */
990 #if !wxUSE_DYNLIB_CLASS
991 # if wxUSE_DYNAMIC_LOADER
992 # ifdef wxABORT_ON_CONFIG_ERROR
993 # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
995 # define wxUSE_DYNLIB_CLASS 1
998 #endif /* wxUSE_DYNLIB_CLASS */
1002 # ifdef wxABORT_ON_CONFIG_ERROR
1003 # error "wxZip requires wxZlib"
1006 # define wxUSE_ZLIB 1
1009 # if !wxUSE_ARCHIVE_STREAMS
1010 # ifdef wxABORT_ON_CONFIG_ERROR
1011 # error "wxZip requires wxArchive"
1013 # undef wxUSE_ARCHIVE_STREAMS
1014 # define wxUSE_ARCHIVE_STREAMS 1
1017 #endif /* wxUSE_ZIPSTREAM */
1019 /* the rest of the tests is for the GUI settings only */
1022 #if wxUSE_BUTTON || \
1023 wxUSE_CALENDARCTRL || \
1026 wxUSE_BMPBUTTON || \
1028 wxUSE_CHECKLISTBOX || \
1037 wxUSE_SCROLLBAR || \
1045 wxUSE_STATUSBAR || \
1049 # if !wxUSE_CONTROLS
1050 # ifdef wxABORT_ON_CONFIG_ERROR
1051 # error "wxUSE_CONTROLS unset but some controls used"
1053 # undef wxUSE_CONTROLS
1054 # define wxUSE_CONTROLS 1
1057 #endif /* controls */
1061 # ifdef wxABORT_ON_CONFIG_ERROR
1062 # error "wxUSE_BMPBUTTON requires wxUSE_BUTTON"
1064 # undef wxUSE_BUTTON
1065 # define wxUSE_BUTTON 1
1068 #endif /* wxUSE_BMPBUTTON */
1070 #if wxUSE_NOTEBOOK || wxUSE_LISTBOOK || wxUSE_CHOICEBOOK
1071 # if defined(wxUSE_BOOKCTRL) && !wxUSE_BOOKCTRL
1072 # ifdef wxABORT_ON_CONFIG_ERROR
1073 # error "wxUSE_BOOKCTRL must be set."
1075 # undef wxUSE_BOOKCTRL
1079 # ifndef wxUSE_BOOKCTRL
1080 # define wxUSE_BOOKCTRL 1
1082 #endif /* wxUSE_NOTEBOOK */
1085 # if !wxUSE_LISTCTRL
1086 # ifdef wxABORT_ON_CONFIG_ERROR
1087 # error "wxListbook requires wxListCtrl"
1089 # undef wxUSE_LISTCTRL
1090 # define wxUSE_LISTCTRL 1
1093 #endif /* wxUSE_LISTBOOK */
1095 #if wxUSE_CHOICEBOOK
1097 # ifdef wxABORT_ON_CONFIG_ERROR
1098 # error "wxChoicebook requires wxChoice"
1100 # undef wxUSE_CHOICE
1101 # define wxUSE_CHOICE 1
1104 #endif /* wxUSE_CHOICEBOOK */
1106 /* don't attempt to use native status bar on the platforms not having it */
1107 #ifndef wxUSE_NATIVE_STATUSBAR
1108 # define wxUSE_NATIVE_STATUSBAR 0
1109 #elif wxUSE_NATIVE_STATUSBAR
1110 # if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \
1111 defined(__WXMAC__) || \
1112 defined(__WXPALMOS__) )
1113 # undef wxUSE_NATIVE_STATUSBAR
1114 # define wxUSE_NATIVE_STATUSBAR 0
1118 /* wxUniv-specific dependencies */
1119 #if defined(__WXUNIVERSAL__)
1120 # if (wxUSE_COMBOBOX || wxUSE_MENUS) && !wxUSE_POPUPWIN
1121 # ifdef wxABORT_ON_CONFIG_ERROR
1122 # error "wxUSE_POPUPWIN must be defined to use comboboxes/menus"
1124 # undef wxUSE_POPUPWIN
1125 # define wxUSE_POPUPWIN 1
1131 # ifdef wxABORT_ON_CONFIG_ERROR
1132 # error "wxComboBox requires wxListBox in wxUniversal"
1134 # undef wxUSE_LISTBOX
1135 # define wxUSE_LISTBOX 1
1138 # endif /* wxUSE_COMBOBOX */
1141 # if !wxUSE_CHECKBOX
1142 # ifdef wxABORT_ON_CONFIG_ERROR
1143 # error "wxUSE_RADIOBTN requires wxUSE_CHECKBOX in wxUniversal"
1145 # undef wxUSE_CHECKBOX
1146 # define wxUSE_CHECKBOX 1
1149 # endif /* wxUSE_RADIOBTN */
1153 # ifdef wxABORT_ON_CONFIG_ERROR
1154 # error "wxTextCtrl requires wxCaret in wxUniversal"
1157 # define wxUSE_CARET 1
1159 # endif /* wxUSE_CARET */
1161 # if !wxUSE_SCROLLBAR
1162 # ifdef wxABORT_ON_CONFIG_ERROR
1163 # error "wxTextCtrl requires wxScrollBar in wxUniversal"
1165 # undef wxUSE_SCROLLBAR
1166 # define wxUSE_SCROLLBAR 1
1168 # endif /* wxUSE_SCROLLBAR */
1169 # endif /* wxUSE_TEXTCTRL */
1170 #endif /* __WXUNIVERSAL__ */
1172 /* wxGTK-specific dependencies */
1174 # ifndef __WXUNIVERSAL__
1175 # if wxUSE_MDI_ARCHITECTURE && !wxUSE_MENUS
1176 # ifdef wxABORT_ON_CONFIG_ERROR
1177 # error "MDI requires wxUSE_MENUS in wxGTK"
1180 # define wxUSE_MENUS 1
1183 # endif /* !__WXUNIVERSAL__ */
1187 # ifdef wxABORT_ON_CONFIG_ERROR
1188 # error "wxJoystick requires threads in wxGTK"
1190 # undef wxUSE_JOYSTICK
1191 # define wxUSE_JOYSTICK 0
1195 #endif /* wxGTK && !wxUniv */
1197 /* wxMGL-specific dependencies */
1200 # error "wxMGL requires wxUSE_PALETTE=1"
1204 /* Hopefully we can emulate these dialogs in due course */
1205 #if defined(__SMARTPHONE__) && defined(__WXWINCE__)
1206 # ifdef wxUSE_COLOURDLG
1207 # undef wxUSE_COLOURDLG
1208 # define wxUSE_COLOURDLG 0
1210 #endif /* __SMARTPHONE__ && __WXWINCE__ */
1213 /* generic controls dependencies */
1214 #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1215 # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1216 /* all common controls are needed by these dialogs */
1217 # if !defined(wxUSE_CHOICE) || \
1218 !defined(wxUSE_TEXTCTRL) || \
1219 !defined(wxUSE_BUTTON) || \
1220 !defined(wxUSE_CHECKBOX) || \
1221 !defined(wxUSE_STATTEXT)
1222 # ifdef wxABORT_ON_CONFIG_ERROR
1223 # error "These common controls are needed by common dialogs"
1225 # undef wxUSE_CHOICE
1226 # define wxUSE_CHOICE 1
1227 # undef wxUSE_TEXTCTRL
1228 # define wxUSE_TEXTCTRL 1
1229 # undef wxUSE_BUTTON
1230 # define wxUSE_BUTTON 1
1231 # undef wxUSE_CHECKBOX
1232 # define wxUSE_CHECKBOX 1
1233 # undef wxUSE_STATTEXT
1234 # define wxUSE_STATTEXT 1
1238 #endif /* !wxMSW || wxUniv */
1240 /* common dependencies */
1241 #if wxUSE_CALENDARCTRL
1242 # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1243 # ifdef wxABORT_ON_CONFIG_ERROR
1244 # error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1246 # undef wxUSE_SPINBTN
1247 # undef wxUSE_COMBOBOX
1248 # define wxUSE_SPINBTN 1
1249 # define wxUSE_COMBOBOX 1
1253 # if !wxUSE_DATETIME
1254 # ifdef wxABORT_ON_CONFIG_ERROR
1255 # error "wxCalendarCtrl requires wxUSE_DATETIME"
1257 # undef wxUSE_DATETIME
1258 # define wxUSE_DATETIME 1
1261 #endif /* wxUSE_CALENDARCTRL */
1263 #if wxUSE_DATEPICKCTRL
1264 # if !wxUSE_DATETIME
1265 # ifdef wxABORT_ON_CONFIG_ERROR
1266 # error "wxDatePickerCtrl requires wxUSE_DATETIME"
1268 # undef wxUSE_DATETIME
1269 # define wxUSE_DATETIME 1
1272 #endif /* wxUSE_DATEPICKCTRL */
1274 #if wxUSE_CHECKLISTBOX
1276 # ifdef wxABORT_ON_CONFIG_ERROR
1277 # error "wxCheckListBox requires wxListBox"
1279 # undef wxUSE_LISTBOX
1280 # define wxUSE_LISTBOX 1
1283 #endif /* wxUSE_CHECKLISTBOX */
1287 # ifdef wxABORT_ON_CONFIG_ERROR
1288 # error "Choice dialogs requires wxListBox"
1290 # undef wxUSE_LISTBOX
1291 # define wxUSE_LISTBOX 1
1294 #endif /* wxUSE_CHOICEDLG */
1297 # if !wxUSE_BMPBUTTON
1298 # ifdef wxABORT_ON_CONFIG_ERROR
1299 # error "wxUSE_HELP requires wxUSE_BMPBUTTON"
1301 # undef wxUSE_BMPBUTTON
1302 # define wxUSE_BMPBUTTON 1
1306 # if !wxUSE_CHOICEDLG
1307 # ifdef wxABORT_ON_CONFIG_ERROR
1308 # error "wxUSE_HELP requires wxUSE_CHOICEDLG"
1310 # undef wxUSE_CHOICEDLG
1311 # define wxUSE_CHOICEDLG 1
1314 #endif /* wxUSE_HELP */
1316 #if wxUSE_WXHTML_HELP
1317 # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL
1318 # ifdef wxABORT_ON_CONFIG_ERROR
1319 # error "Built in help controller can't be compiled"
1322 # define wxUSE_HELP 1
1324 # define wxUSE_HTML 1
1325 # undef wxUSE_COMBOBOX
1326 # define wxUSE_COMBOBOX 1
1327 # undef wxUSE_NOTEBOOK
1328 # define wxUSE_NOTEBOOK 1
1329 # undef wxUSE_SPINCTRL
1330 # define wxUSE_SPINCTRL 1
1333 #endif /* wxUSE_WXHTML_HELP */
1337 The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the
1338 user explicitly wants this and disable all other features that require
1341 # if wxUSE_DRAGIMAGE
1342 # ifdef wxABORT_ON_CONFIG_ERROR
1343 # error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE"
1345 # undef wxUSE_DRAGIMAGE
1346 # define wxUSE_DRAGIMAGE 0
1351 # ifdef wxABORT_ON_CONFIG_ERROR
1352 # error "wxUSE_LIBPNG requires wxUSE_IMAGE"
1354 # undef wxUSE_LIBPNG
1355 # define wxUSE_LIBPNG 0
1360 # ifdef wxABORT_ON_CONFIG_ERROR
1361 # error "wxUSE_LIBJPEG requires wxUSE_IMAGE"
1363 # undef wxUSE_LIBJPEG
1364 # define wxUSE_LIBJPEG 0
1369 # ifdef wxABORT_ON_CONFIG_ERROR
1370 # error "wxUSE_LIBTIFF requires wxUSE_IMAGE"
1372 # undef wxUSE_LIBTIFF
1373 # define wxUSE_LIBTIFF 0
1378 # ifdef wxABORT_ON_CONFIG_ERROR
1379 # error "wxUSE_GIF requires wxUSE_IMAGE"
1382 # define wxUSE_GIF 0
1387 # ifdef wxABORT_ON_CONFIG_ERROR
1388 # error "wxUSE_PNM requires wxUSE_IMAGE"
1391 # define wxUSE_PNM 0
1396 # ifdef wxABORT_ON_CONFIG_ERROR
1397 # error "wxUSE_PCX requires wxUSE_IMAGE"
1400 # define wxUSE_PCX 0
1405 # ifdef wxABORT_ON_CONFIG_ERROR
1406 # error "wxUSE_IFF requires wxUSE_IMAGE"
1409 # define wxUSE_IFF 0
1414 # ifdef wxABORT_ON_CONFIG_ERROR
1415 # error "wxUSE_TOOLBAR requires wxUSE_IMAGE"
1417 # undef wxUSE_TOOLBAR
1418 # define wxUSE_TOOLBAR 0
1423 # ifdef wxABORT_ON_CONFIG_ERROR
1424 # error "wxUSE_XPM requires wxUSE_IMAGE"
1427 # define wxUSE_XPM 0
1431 #endif /* !wxUSE_IMAGE */
1433 #if wxUSE_DOC_VIEW_ARCHITECTURE
1435 # ifdef wxABORT_ON_CONFIG_ERROR
1436 # error "DocView requires wxUSE_MENUS"
1439 # define wxUSE_MENUS 1
1443 # if !wxUSE_CHOICEDLG
1444 # ifdef wxABORT_ON_CONFIG_ERROR
1445 # error "DocView requires wxUSE_CHOICEDLG"
1447 # undef wxUSE_CHOICEDLG
1448 # define wxUSE_CHOICEDLG 1
1452 # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1453 # ifdef wxABORT_ON_CONFIG_ERROR
1454 # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1456 # undef wxUSE_STREAMS
1457 # define wxUSE_STREAMS 1
1460 #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1462 #if wxUSE_PRINTING_ARCHITECTURE
1463 # if !wxUSE_COMBOBOX
1464 # ifdef wxABORT_ON_CONFIG_ERROR
1465 # error "Print dialog requires wxUSE_COMBOBOX"
1467 # undef wxUSE_COMBOBOX
1468 # define wxUSE_COMBOBOX 1
1471 #endif /* wxUSE_PRINTING_ARCHITECTURE */
1473 #if wxUSE_MDI_ARCHITECTURE
1475 # ifdef wxABORT_ON_CONFIG_ERROR
1476 # error "MDI requires wxUSE_MDI"
1479 # define wxUSE_MDI 1
1483 # if !wxUSE_DOC_VIEW_ARCHITECTURE
1484 # ifdef wxABORT_ON_CONFIG_ERROR
1485 # error "wxUSE_MDI_ARCHITECTURE requires wxUSE_DOC_VIEW_ARCHITECTURE"
1487 # undef wxUSE_DOC_VIEW_ARCHITECTURE
1488 # define wxUSE_DOC_VIEW_ARCHITECTURE 1
1491 #endif /* wxUSE_MDI_ARCHITECTURE */
1494 # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1495 # ifdef wxABORT_ON_CONFIG_ERROR
1496 # error "wxUSE_FILEDLG is required by wxUSE_DOC_VIEW_ARCHITECTURE and wxUSE_WXHTML_HELP!"
1498 # undef wxUSE_FILEDLG
1499 # define wxUSE_FILEDLG 1
1502 #endif /* wxUSE_FILEDLG */
1504 #if !wxUSE_GAUGE || !wxUSE_BUTTON
1505 # if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__)
1506 # ifdef wxABORT_ON_CONFIG_ERROR
1507 # error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON"
1510 # undef wxUSE_BUTTON
1511 # define wxUSE_GAUGE 1
1512 # define wxUSE_BUTTON 1
1515 #endif /* !wxUSE_GAUGE */
1518 # if wxUSE_FONTDLG || \
1520 wxUSE_CHOICEDLG || \
1521 wxUSE_NUMBERDLG || \
1524 wxUSE_STARTUP_TIPS || \
1526 # ifdef wxABORT_ON_CONFIG_ERROR
1527 # error "Common and generic dialogs require wxUSE_BUTTON"
1529 # undef wxUSE_BUTTON
1530 # define wxUSE_BUTTON 1
1533 #endif /* !wxUSE_BUTTON */
1536 # if wxUSE_TOOLBAR_NATIVE
1537 # ifdef wxABORT_ON_CONFIG_ERROR
1538 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
1540 # undef wxUSE_TOOLBAR_NATIVE
1541 # define wxUSE_TOOLBAR_NATIVE 0
1545 # if wxUSE_TOOLBAR_SIMPLE
1546 # ifdef wxABORT_ON_CONFIG_ERROR
1547 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_SIMPLE is set to 1"
1549 # undef wxUSE_TOOLBAR_SIMPLE
1550 # define wxUSE_TOOLBAR_SIMPLE 0
1556 # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL
1557 # ifdef wxABORT_ON_CONFIG_ERROR
1558 # error "wxImageList must be compiled as well"
1560 # undef wxUSE_IMAGLIST
1561 # define wxUSE_IMAGLIST 1
1564 #endif /* !wxUSE_IMAGLIST */
1567 # ifdef wxABORT_ON_CONFIG_ERROR
1568 /* FIXME: should compile without it, of course, but doesn't */
1569 # error "wxMessageBox is always needed"
1571 # undef wxUSE_MSGDLG
1572 # define wxUSE_MSGDLG 1
1577 # if !wxUSE_RADIOBTN
1578 # ifdef wxABORT_ON_CONFIG_ERROR
1579 # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN"
1581 # undef wxUSE_RADIOBTN
1582 # define wxUSE_RADIOBTN 1
1585 # if !wxUSE_STATBOX && !defined(__WXPALMOS__)
1586 # ifdef wxABORT_ON_CONFIG_ERROR
1587 # error "wxUSE_RADIOBOX requires wxUSE_STATBOX"
1589 # undef wxUSE_STATBOX
1590 # define wxUSE_STATBOX 1
1593 #endif /* wxUSE_RADIOBOX */
1596 # if !wxUSE_TEXTCTRL
1597 # ifdef wxABORT_ON_CONFIG_ERROR
1598 # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
1600 # undef wxUSE_TEXTCTRL
1601 # define wxUSE_TEXTCTRL 1
1604 #endif /* wxUSE_LOGWINDOW */
1606 #if wxUSE_LOG_DIALOG
1607 # if !wxUSE_LISTCTRL || !wxUSE_BUTTON
1608 # ifdef wxABORT_ON_CONFIG_ERROR
1609 # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON"
1611 # undef wxUSE_LISTCTRL
1612 # define wxUSE_LISTCTRL 1
1613 # undef wxUSE_BUTTON
1614 # define wxUSE_BUTTON 1
1617 #endif /* wxUSE_LOG_DIALOG */
1619 #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
1620 # ifdef wxABORT_ON_CONFIG_ERROR
1621 # error "wxClipboard requires wxDataObject"
1623 # undef wxUSE_DATAOBJ
1624 # define wxUSE_DATAOBJ 1
1626 #endif /* wxUSE_CLIPBOARD */
1628 #if wxUSE_WX_RESOURCES && !wxUSE_PROLOGIO
1629 # ifdef wxABORT_ON_CONFIG_ERROR
1630 # error "wxr resources require PrologIO"
1632 # undef wxUSE_PROLOGIO
1633 # define wxUSE_PROLOGIO 1
1635 #endif /* wxUSE_WX_RESOURCES */
1637 #if wxUSE_XRC && !wxUSE_XML
1638 # ifdef wxABORT_ON_CONFIG_ERROR
1639 # error "wxUSE_XRC requires wxUSE_XML"
1642 # define wxUSE_XRC 0
1644 #endif /* wxUSE_XRC */
1646 #if wxUSE_SOCKETS && !wxUSE_STOPWATCH
1647 # ifdef wxABORT_ON_CONFIG_ERROR
1648 # error "wxUSE_SOCKETS requires wxUSE_STOPWATCH"
1650 # undef wxUSE_SOCKETS
1651 # define wxUSE_SOCKETS 0
1653 #endif /* wxUSE_SOCKETS */
1655 #endif /* wxUSE_GUI */