]>
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(__WXDFB__)
31 # include "wx/dfb/chkconf.h"
32 #elif defined(__WXMOTIF__)
33 # include "wx/motif/chkconf.h"
34 #elif defined(__WXX11__)
35 # include "wx/x11/chkconf.h"
39 this global setting determines what should we do if the setting FOO
40 requires BAR and BAR is not set: we can either silently unset FOO as well
41 (do this if you're trying to build the smallest possible library) or give an
42 error and abort (default as leads to least surprizing behaviour)
44 #define wxABORT_ON_CONFIG_ERROR
50 /* GUI build by default */
51 #if !defined(wxUSE_GUI)
53 #endif /* !defined(wxUSE_GUI) */
56 If we're compiling without support for threads/exceptions we have to
57 disable the corresponding features.
61 # define wxUSE_THREADS 0
62 #endif /* wxNO_THREADS */
64 #ifdef wxNO_EXCEPTIONS
65 # undef wxUSE_EXCEPTIONS
66 # define wxUSE_EXCEPTIONS 0
67 #endif /* wxNO_EXCEPTIONS */
69 /* we also must disable exceptions if compiler doesn't support them */
70 #if defined(_MSC_VER) && !defined(_CPPUNWIND)
71 # undef wxUSE_EXCEPTIONS
72 # define wxUSE_EXCEPTIONS 0
73 #endif /* VC++ without exceptions support */
77 tests for non GUI features
79 please keep the options in alphabetical order!
82 #ifndef wxUSE_CRASHREPORT
83 /* this one is special: as currently it is Windows-only, don't force it
84 to be defined on other platforms */
85 # if defined(wxABORT_ON_CONFIG_ERROR) && defined(__WXMSW__)
86 # error "wxUSE_CRASHREPORT must be defined."
88 # define wxUSE_CRASHREPORT 0
90 #endif /* !defined(wxUSE_CRASHREPORT) */
92 #ifndef wxUSE_DYNLIB_CLASS
93 # ifdef wxABORT_ON_CONFIG_ERROR
94 # error "wxUSE_DYNLIB_CLASS must be defined."
96 # define wxUSE_DYNLIB_CLASS 0
98 #endif /* !defined(wxUSE_DYNLIB_CLASS) */
100 #ifndef wxUSE_EXCEPTIONS
101 # ifdef wxABORT_ON_CONFIG_ERROR
102 # error "wxUSE_EXCEPTIONS must be defined."
104 # define wxUSE_EXCEPTIONS 0
106 #endif /* !defined(wxUSE_EXCEPTIONS) */
108 #ifndef wxUSE_FILESYSTEM
109 # ifdef wxABORT_ON_CONFIG_ERROR
110 # error "wxUSE_FILESYSTEM must be defined."
112 # define wxUSE_FILESYSTEM 0
114 #endif /* !defined(wxUSE_FILESYSTEM) */
116 /* don't give an error about this one yet, it's not fully implemented */
117 #ifndef wxUSE_FSVOLUME
118 # define wxUSE_FSVOLUME 0
119 #endif /* !defined(wxUSE_FSVOLUME) */
121 #ifndef wxUSE_DYNAMIC_LOADER
122 # ifdef wxABORT_ON_CONFIG_ERROR
123 # error "wxUSE_DYNAMIC_LOADER must be defined."
125 # define wxUSE_DYNAMIC_LOADER 0
127 #endif /* !defined(wxUSE_DYNAMIC_LOADER) */
130 # ifdef wxABORT_ON_CONFIG_ERROR
131 # error "wxUSE_LOG must be defined."
135 #endif /* !defined(wxUSE_LOG) */
137 #ifndef wxUSE_LONGLONG
138 # ifdef wxABORT_ON_CONFIG_ERROR
139 # error "wxUSE_LONGLONG must be defined."
141 # define wxUSE_LONGLONG 0
143 #endif /* !defined(wxUSE_LONGLONG) */
145 #ifndef wxUSE_MIMETYPE
146 # ifdef wxABORT_ON_CONFIG_ERROR
147 # error "wxUSE_MIMETYPE must be defined."
149 # define wxUSE_MIMETYPE 0
151 #endif /* !defined(wxUSE_MIMETYPE) */
153 #ifndef wxUSE_ON_FATAL_EXCEPTION
154 # ifdef wxABORT_ON_CONFIG_ERROR
155 # error "wxUSE_ON_FATAL_EXCEPTION must be defined."
157 # define wxUSE_ON_FATAL_EXCEPTION 0
159 #endif /* !defined(wxUSE_ON_FATAL_EXCEPTION) */
161 #ifndef wxUSE_PRINTF_POS_PARAMS
162 # ifdef wxABORT_ON_CONFIG_ERROR
163 # error "wxUSE_PRINTF_POS_PARAMS must be defined."
165 # define wxUSE_PRINTF_POS_PARAMS 0
167 #endif /* !defined(wxUSE_PRINTF_POS_PARAMS) */
169 #ifndef wxUSE_PROTOCOL
170 # ifdef wxABORT_ON_CONFIG_ERROR
171 # error "wxUSE_PROTOCOL must be defined."
173 # define wxUSE_PROTOCOL 0
175 #endif /* !defined(wxUSE_PROTOCOL) */
177 /* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */
179 # undef wxUSE_PROTOCOL_HTTP
180 # undef wxUSE_PROTOCOL_FTP
181 # undef wxUSE_PROTOCOL_FILE
182 # define wxUSE_PROTOCOL_HTTP 0
183 # define wxUSE_PROTOCOL_FTP 0
184 # define wxUSE_PROTOCOL_FILE 0
185 #endif /* wxUSE_PROTOCOL */
187 #ifndef wxUSE_PROTOCOL_HTTP
188 # ifdef wxABORT_ON_CONFIG_ERROR
189 # error "wxUSE_PROTOCOL_HTTP must be defined."
191 # define wxUSE_PROTOCOL_HTTP 0
193 #endif /* !defined(wxUSE_PROTOCOL_HTTP) */
195 #ifndef wxUSE_PROTOCOL_FTP
196 # ifdef wxABORT_ON_CONFIG_ERROR
197 # error "wxUSE_PROTOCOL_FTP must be defined."
199 # define wxUSE_PROTOCOL_FTP 0
201 #endif /* !defined(wxUSE_PROTOCOL_FTP) */
203 #ifndef wxUSE_PROTOCOL_FILE
204 # ifdef wxABORT_ON_CONFIG_ERROR
205 # error "wxUSE_PROTOCOL_FILE must be defined."
207 # define wxUSE_PROTOCOL_FILE 0
209 #endif /* !defined(wxUSE_PROTOCOL_FILE) */
212 # ifdef wxABORT_ON_CONFIG_ERROR
213 # error "wxUSE_REGEX must be defined."
215 # define wxUSE_REGEX 0
217 #endif /* !defined(wxUSE_REGEX) */
219 #ifndef wxUSE_STDPATHS
220 # ifdef wxABORT_ON_CONFIG_ERROR
221 # error "wxUSE_STDPATHS must be defined."
223 # define wxUSE_STDPATHS 1
225 #endif /* !defined(wxUSE_STDPATHS) */
228 # ifdef wxABORT_ON_CONFIG_ERROR
229 # error "wxUSE_XML must be defined."
233 #endif /* !defined(wxUSE_XML) */
235 #ifndef wxUSE_SOCKETS
236 # ifdef wxABORT_ON_CONFIG_ERROR
237 # error "wxUSE_SOCKETS must be defined."
239 # define wxUSE_SOCKETS 0
241 #endif /* !defined(wxUSE_SOCKETS) */
243 #ifndef wxUSE_STREAMS
244 # ifdef wxABORT_ON_CONFIG_ERROR
245 # error "wxUSE_STREAMS must be defined."
247 # define wxUSE_STREAMS 0
249 #endif /* !defined(wxUSE_STREAMS) */
251 #ifndef wxUSE_STOPWATCH
252 # ifdef wxABORT_ON_CONFIG_ERROR
253 # error "wxUSE_STOPWATCH must be defined."
255 # define wxUSE_STOPWATCH 0
257 #endif /* !defined(wxUSE_STOPWATCH) */
259 #ifndef wxUSE_TEXTBUFFER
260 # ifdef wxABORT_ON_CONFIG_ERROR
261 # error "wxUSE_TEXTBUFFER must be defined."
263 # define wxUSE_TEXTBUFFER 0
265 #endif /* !defined(wxUSE_TEXTBUFFER) */
267 #ifndef wxUSE_TEXTFILE
268 # ifdef wxABORT_ON_CONFIG_ERROR
269 # error "wxUSE_TEXTFILE must be defined."
271 # define wxUSE_TEXTFILE 0
273 #endif /* !defined(wxUSE_TEXTFILE) */
275 #ifndef wxUSE_UNICODE
276 # ifdef wxABORT_ON_CONFIG_ERROR
277 # error "wxUSE_UNICODE must be defined."
279 # define wxUSE_UNICODE 0
281 #endif /* !defined(wxUSE_UNICODE) */
284 # ifdef wxABORT_ON_CONFIG_ERROR
285 # error "wxUSE_URL must be defined."
289 #endif /* !defined(wxUSE_URL) */
292 all these tests are for GUI only
294 please keep the options in alphabetical order!
299 all of the settings tested below must be defined or we'd get an error from
300 preprocessor about invalid integer expression
304 # ifdef wxABORT_ON_CONFIG_ERROR
305 # error "wxUSE_ACCEL must be defined."
307 # define wxUSE_ACCEL 0
309 #endif /* !defined(wxUSE_ACCEL) */
311 #ifndef wxUSE_BMPBUTTON
312 # ifdef wxABORT_ON_CONFIG_ERROR
313 # error "wxUSE_BMPBUTTON must be defined."
315 # define wxUSE_BMPBUTTON 0
317 #endif /* !defined(wxUSE_BMPBUTTON) */
320 # ifdef wxABORT_ON_CONFIG_ERROR
321 # error "wxUSE_BUTTON must be defined."
323 # define wxUSE_BUTTON 0
325 #endif /* !defined(wxUSE_BUTTON) */
327 #ifndef wxUSE_CALENDARCTRL
328 # ifdef wxABORT_ON_CONFIG_ERROR
329 # error "wxUSE_CALENDARCTRL must be defined."
331 # define wxUSE_CALENDARCTRL 0
333 #endif /* !defined(wxUSE_CALENDARCTRL) */
336 # ifdef wxABORT_ON_CONFIG_ERROR
337 # error "wxUSE_CARET must be defined."
339 # define wxUSE_CARET 0
341 #endif /* !defined(wxUSE_CARET) */
343 #ifndef wxUSE_CHECKBOX
344 # ifdef wxABORT_ON_CONFIG_ERROR
345 # error "wxUSE_CHECKBOX must be defined."
347 # define wxUSE_CHECKBOX 0
349 #endif /* !defined(wxUSE_CHECKBOX) */
351 #ifndef wxUSE_CHECKLISTBOX
352 # ifdef wxABORT_ON_CONFIG_ERROR
353 # error "wxUSE_CHECKLISTBOX must be defined."
355 # define wxUSE_CHECKLISTBOX 0
357 #endif /* !defined(wxUSE_CHECKLISTBOX) */
360 # ifdef wxABORT_ON_CONFIG_ERROR
361 # error "wxUSE_CHOICE must be defined."
363 # define wxUSE_CHOICE 0
365 #endif /* !defined(wxUSE_CHOICE) */
367 #ifndef wxUSE_CHOICEBOOK
368 # ifdef wxABORT_ON_CONFIG_ERROR
369 # error "wxUSE_CHOICEBOOK must be defined."
371 # define wxUSE_CHOICEBOOK 0
373 #endif /* !defined(wxUSE_CHOICEBOOK) */
375 #ifndef wxUSE_CHOICEDLG
376 # ifdef wxABORT_ON_CONFIG_ERROR
377 # error "wxUSE_CHOICEDLG must be defined."
379 # define wxUSE_CHOICEDLG 0
381 #endif /* !defined(wxUSE_CHOICEDLG) */
383 #ifndef wxUSE_CLIPBOARD
384 # ifdef wxABORT_ON_CONFIG_ERROR
385 # error "wxUSE_CLIPBOARD must be defined."
387 # define wxUSE_CLIPBOARD 0
389 #endif /* !defined(wxUSE_CLIPBOARD) */
391 #ifndef wxUSE_COLOURDLG
392 # ifdef wxABORT_ON_CONFIG_ERROR
393 # error "wxUSE_COLOURDLG must be defined."
395 # define wxUSE_COLOURDLG 0
397 #endif /* !defined(wxUSE_COLOURDLG) */
399 #ifndef wxUSE_COLOURPICKERCTRL
400 # ifdef wxABORT_ON_CONFIG_ERROR
401 # error "wxUSE_COLOURPICKERCTRL must be defined."
403 # define wxUSE_COLOURPICKERCTRL 0
405 #endif /* !defined(wxUSE_COLOURPICKERCTRL) */
407 #ifndef wxUSE_COMBOBOX
408 # ifdef wxABORT_ON_CONFIG_ERROR
409 # error "wxUSE_COMBOBOX must be defined."
411 # define wxUSE_COMBOBOX 0
413 #endif /* !defined(wxUSE_COMBOBOX) */
415 #ifndef wxUSE_COMBOCTRL
416 # ifdef wxABORT_ON_CONFIG_ERROR
417 # error "wxUSE_COMBOCTRL must be defined."
419 # define wxUSE_COMBOCTRL 0
421 #endif /* !defined(wxUSE_COMBOCTRL) */
423 #ifndef wxUSE_DATAOBJ
424 # ifdef wxABORT_ON_CONFIG_ERROR
425 # error "wxUSE_DATAOBJ must be defined."
427 # define wxUSE_DATAOBJ 0
429 #endif /* !defined(wxUSE_DATAOBJ) */
431 #ifndef wxUSE_DATAVIEWCTRL
432 # ifdef wxABORT_ON_CONFIG_ERROR
433 # error "wxUSE_DATAVIEWCTRL must be defined."
435 # define wxUSE_DATAVIEWCTRL 0
437 #endif /* !defined(wxUSE_DATAVIEWCTRL) */
439 #ifndef wxUSE_DATEPICKCTRL
440 # ifdef wxABORT_ON_CONFIG_ERROR
441 # error "wxUSE_DATEPICKCTRL must be defined."
443 # define wxUSE_DATEPICKCTRL 0
445 #endif /* !defined(wxUSE_DATEPICKCTRL) */
447 #ifndef wxUSE_DIRPICKERCTRL
448 # ifdef wxABORT_ON_CONFIG_ERROR
449 # error "wxUSE_DIRPICKERCTRL must be defined."
451 # define wxUSE_DIRPICKERCTRL 0
453 #endif /* !defined(wxUSE_DIRPICKERCTRL) */
455 #ifndef wxUSE_DISPLAY
456 # ifdef wxABORT_ON_CONFIG_ERROR
457 # error "wxUSE_DISPLAY must be defined."
459 # define wxUSE_DISPLAY 0
461 #endif /* !defined(wxUSE_DISPLAY) */
463 #ifndef wxUSE_DOC_VIEW_ARCHITECTURE
464 # ifdef wxABORT_ON_CONFIG_ERROR
465 # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
467 # define wxUSE_DOC_VIEW_ARCHITECTURE 0
469 #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
471 #ifndef wxUSE_FILEDLG
472 # ifdef wxABORT_ON_CONFIG_ERROR
473 # error "wxUSE_FILEDLG must be defined."
475 # define wxUSE_FILEDLG 0
477 #endif /* !defined(wxUSE_FILEDLG) */
479 #ifndef wxUSE_FILEPICKERCTRL
480 # ifdef wxABORT_ON_CONFIG_ERROR
481 # error "wxUSE_FILEPICKERCTRL must be defined."
483 # define wxUSE_FILEPICKERCTRL 0
485 #endif /* !defined(wxUSE_FILEPICKERCTRL) */
487 #ifndef wxUSE_FONTDLG
488 # ifdef wxABORT_ON_CONFIG_ERROR
489 # error "wxUSE_FONTDLG must be defined."
491 # define wxUSE_FONTDLG 0
493 #endif /* !defined(wxUSE_FONTDLG) */
495 #ifndef wxUSE_FONTMAP
496 # ifdef wxABORT_ON_CONFIG_ERROR
497 # error "wxUSE_FONTMAP must be defined."
499 # define wxUSE_FONTMAP 0
501 #endif /* !defined(wxUSE_FONTMAP) */
503 #ifndef wxUSE_FONTPICKERCTRL
504 # ifdef wxABORT_ON_CONFIG_ERROR
505 # error "wxUSE_FONTPICKERCTRL must be defined."
507 # define wxUSE_FONTPICKERCTRL 0
509 #endif /* !defined(wxUSE_FONTPICKERCTRL) */
512 # ifdef wxABORT_ON_CONFIG_ERROR
513 # error "wxUSE_GAUGE must be defined."
515 # define wxUSE_GAUGE 0
517 #endif /* !defined(wxUSE_GAUGE) */
520 # ifdef wxABORT_ON_CONFIG_ERROR
521 # error "wxUSE_GRID must be defined."
523 # define wxUSE_GRID 0
525 #endif /* !defined(wxUSE_GRID) */
528 # ifdef wxABORT_ON_CONFIG_ERROR
529 # error "wxUSE_HELP must be defined."
531 # define wxUSE_HELP 0
533 #endif /* !defined(wxUSE_HELP) */
535 #ifndef wxUSE_HYPERLINKCTRL
536 # ifdef wxABORT_ON_CONFIG_ERROR
537 # error "wxUSE_HYPERLINKCTRL must be defined."
539 # define wxUSE_HYPERLINKCTRL 0
541 #endif /* !defined(wxUSE_HYPERLINKCTRL) */
544 # ifdef wxABORT_ON_CONFIG_ERROR
545 # error "wxUSE_HTML must be defined."
547 # define wxUSE_HTML 0
549 #endif /* !defined(wxUSE_HTML) */
551 #ifndef wxUSE_LIBMSPACK
553 /* set to 0 on platforms that don't have libmspack */
554 # define wxUSE_LIBMSPACK 0
556 # ifdef wxABORT_ON_CONFIG_ERROR
557 # error "wxUSE_LIBMSPACK must be defined."
559 # define wxUSE_LIBMSPACK 0
562 #endif /* !defined(wxUSE_LIBMSPACK) */
564 #ifndef wxUSE_ICO_CUR
565 # ifdef wxABORT_ON_CONFIG_ERROR
566 # error "wxUSE_ICO_CUR must be defined."
568 # define wxUSE_ICO_CUR 0
570 #endif /* !defined(wxUSE_ICO_CUR) */
573 # ifdef wxABORT_ON_CONFIG_ERROR
574 # error "wxUSE_IFF must be defined."
578 #endif /* !defined(wxUSE_IFF) */
580 #ifndef wxUSE_IMAGLIST
581 # ifdef wxABORT_ON_CONFIG_ERROR
582 # error "wxUSE_IMAGLIST must be defined."
584 # define wxUSE_IMAGLIST 0
586 #endif /* !defined(wxUSE_IMAGLIST) */
588 #ifndef wxUSE_JOYSTICK
589 # ifdef wxABORT_ON_CONFIG_ERROR
590 # error "wxUSE_JOYSTICK must be defined."
592 # define wxUSE_JOYSTICK 0
594 #endif /* !defined(wxUSE_JOYSTICK) */
596 #ifndef wxUSE_LISTBOOK
597 # ifdef wxABORT_ON_CONFIG_ERROR
598 # error "wxUSE_LISTBOOK must be defined."
600 # define wxUSE_LISTBOOK 0
602 #endif /* !defined(wxUSE_LISTBOOK) */
604 #ifndef wxUSE_LISTBOX
605 # ifdef wxABORT_ON_CONFIG_ERROR
606 # error "wxUSE_LISTBOX must be defined."
608 # define wxUSE_LISTBOX 0
610 #endif /* !defined(wxUSE_LISTBOX) */
612 #ifndef wxUSE_LISTCTRL
613 # ifdef wxABORT_ON_CONFIG_ERROR
614 # error "wxUSE_LISTCTRL must be defined."
616 # define wxUSE_LISTCTRL 0
618 #endif /* !defined(wxUSE_LISTCTRL) */
621 # ifdef wxABORT_ON_CONFIG_ERROR
622 # error "wxUSE_LOGGUI must be defined."
624 # define wxUSE_LOGGUI 0
626 #endif /* !defined(wxUSE_LOGGUI) */
628 #ifndef wxUSE_LOGWINDOW
629 # ifdef wxABORT_ON_CONFIG_ERROR
630 # error "wxUSE_LOGWINDOW must be defined."
632 # define wxUSE_LOGWINDOW 0
634 #endif /* !defined(wxUSE_LOGWINDOW) */
636 #ifndef wxUSE_LOG_DIALOG
637 # ifdef wxABORT_ON_CONFIG_ERROR
638 # error "wxUSE_LOG_DIALOG must be defined."
640 # define wxUSE_LOG_DIALOG 0
642 #endif /* !defined(wxUSE_LOG_DIALOG) */
645 # ifdef wxABORT_ON_CONFIG_ERROR
646 # error "wxUSE_MDI must be defined."
650 #endif /* !defined(wxUSE_MDI) */
652 #ifndef wxUSE_MDI_ARCHITECTURE
653 # ifdef wxABORT_ON_CONFIG_ERROR
654 # error "wxUSE_MDI_ARCHITECTURE must be defined."
656 # define wxUSE_MDI_ARCHITECTURE 0
658 #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
661 # ifdef wxABORT_ON_CONFIG_ERROR
662 # error "wxUSE_MENUS must be defined."
664 # define wxUSE_MENUS 0
666 #endif /* !defined(wxUSE_MENUS) */
669 # ifdef wxABORT_ON_CONFIG_ERROR
670 # error "wxUSE_MSGDLG must be defined."
672 # define wxUSE_MSGDLG 0
674 #endif /* !defined(wxUSE_MSGDLG) */
676 #ifndef wxUSE_NOTEBOOK
677 # ifdef wxABORT_ON_CONFIG_ERROR
678 # error "wxUSE_NOTEBOOK must be defined."
680 # define wxUSE_NOTEBOOK 0
682 #endif /* !defined(wxUSE_NOTEBOOK) */
684 #ifndef wxUSE_ODCOMBOBOX
685 # ifdef wxABORT_ON_CONFIG_ERROR
686 # error "wxUSE_ODCOMBOBOX must be defined."
688 # define wxUSE_ODCOMBOBOX 0
690 #endif /* !defined(wxUSE_ODCOMBOBOX) */
692 #ifndef wxUSE_PALETTE
693 # ifdef wxABORT_ON_CONFIG_ERROR
694 # error "wxUSE_PALETTE must be defined."
696 # define wxUSE_PALETTE 0
698 #endif /* !defined(wxUSE_PALETTE) */
700 #ifndef wxUSE_POPUPWIN
701 # ifdef wxABORT_ON_CONFIG_ERROR
702 # error "wxUSE_POPUPWIN must be defined."
704 # define wxUSE_POPUPWIN 0
706 #endif /* !defined(wxUSE_POPUPWIN) */
708 #ifndef wxUSE_PRINTING_ARCHITECTURE
709 # ifdef wxABORT_ON_CONFIG_ERROR
710 # error "wxUSE_PRINTING_ARCHITECTURE must be defined."
712 # define wxUSE_PRINTING_ARCHITECTURE 0
714 #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
716 #ifndef wxUSE_RADIOBOX
717 # ifdef wxABORT_ON_CONFIG_ERROR
718 # error "wxUSE_RADIOBOX must be defined."
720 # define wxUSE_RADIOBOX 0
722 #endif /* !defined(wxUSE_RADIOBOX) */
724 #ifndef wxUSE_RADIOBTN
725 # ifdef wxABORT_ON_CONFIG_ERROR
726 # error "wxUSE_RADIOBTN must be defined."
728 # define wxUSE_RADIOBTN 0
730 #endif /* !defined(wxUSE_RADIOBTN) */
733 # ifdef wxABORT_ON_CONFIG_ERROR
734 # error "wxUSE_SASH must be defined."
736 # define wxUSE_SASH 0
738 #endif /* !defined(wxUSE_SASH) */
740 #ifndef wxUSE_SCROLLBAR
741 # ifdef wxABORT_ON_CONFIG_ERROR
742 # error "wxUSE_SCROLLBAR must be defined."
744 # define wxUSE_SCROLLBAR 0
746 #endif /* !defined(wxUSE_SCROLLBAR) */
749 # ifdef wxABORT_ON_CONFIG_ERROR
750 # error "wxUSE_SLIDER must be defined."
752 # define wxUSE_SLIDER 0
754 #endif /* !defined(wxUSE_SLIDER) */
757 # ifdef wxABORT_ON_CONFIG_ERROR
758 # error "wxUSE_SOUND must be defined."
760 # define wxUSE_SOUND 0
762 #endif /* !defined(wxUSE_SOUND) */
764 #ifndef wxUSE_SPINBTN
765 # ifdef wxABORT_ON_CONFIG_ERROR
766 # error "wxUSE_SPINBTN must be defined."
768 # define wxUSE_SPINBTN 0
770 #endif /* !defined(wxUSE_SPINBTN) */
772 #ifndef wxUSE_SPINCTRL
773 # ifdef wxABORT_ON_CONFIG_ERROR
774 # error "wxUSE_SPINCTRL must be defined."
776 # define wxUSE_SPINCTRL 0
778 #endif /* !defined(wxUSE_SPINCTRL) */
781 # ifdef wxABORT_ON_CONFIG_ERROR
782 # error "wxUSE_SPLASH must be defined."
784 # define wxUSE_SPLASH 0
786 #endif /* !defined(wxUSE_SPLASH) */
788 #ifndef wxUSE_SPLITTER
789 # ifdef wxABORT_ON_CONFIG_ERROR
790 # error "wxUSE_SPLITTER must be defined."
792 # define wxUSE_SPLITTER 0
794 #endif /* !defined(wxUSE_SPLITTER) */
796 #ifndef wxUSE_STATBMP
797 # ifdef wxABORT_ON_CONFIG_ERROR
798 # error "wxUSE_STATBMP must be defined."
800 # define wxUSE_STATBMP 0
802 #endif /* !defined(wxUSE_STATBMP) */
804 #ifndef wxUSE_STATBOX
805 # ifdef wxABORT_ON_CONFIG_ERROR
806 # error "wxUSE_STATBOX must be defined."
808 # define wxUSE_STATBOX 0
810 #endif /* !defined(wxUSE_STATBOX) */
812 #ifndef wxUSE_STATLINE
813 # ifdef wxABORT_ON_CONFIG_ERROR
814 # error "wxUSE_STATLINE must be defined."
816 # define wxUSE_STATLINE 0
818 #endif /* !defined(wxUSE_STATLINE) */
820 #ifndef wxUSE_STATTEXT
821 # ifdef wxABORT_ON_CONFIG_ERROR
822 # error "wxUSE_STATTEXT must be defined."
824 # define wxUSE_STATTEXT 0
826 #endif /* !defined(wxUSE_STATTEXT) */
828 #ifndef wxUSE_STATUSBAR
829 # ifdef wxABORT_ON_CONFIG_ERROR
830 # error "wxUSE_STATUSBAR must be defined."
832 # define wxUSE_STATUSBAR 0
834 #endif /* !defined(wxUSE_STATUSBAR) */
836 #ifndef wxUSE_TAB_DIALOG
837 # ifdef wxABORT_ON_CONFIG_ERROR
838 # error "wxUSE_TAB_DIALOG must be defined."
840 # define wxUSE_TAB_DIALOG 0
842 #endif /* !defined(wxUSE_TAB_DIALOG) */
844 #ifndef wxUSE_TEXTCTRL
845 # ifdef wxABORT_ON_CONFIG_ERROR
846 # error "wxUSE_TEXTCTRL must be defined."
848 # define wxUSE_TEXTCTRL 0
850 #endif /* !defined(wxUSE_TEXTCTRL) */
852 #ifndef wxUSE_TIPWINDOW
853 # ifdef wxABORT_ON_CONFIG_ERROR
854 # error "wxUSE_TIPWINDOW must be defined."
856 # define wxUSE_TIPWINDOW 0
858 #endif /* !defined(wxUSE_TIPWINDOW) */
860 #ifndef wxUSE_TOOLBAR
861 # ifdef wxABORT_ON_CONFIG_ERROR
862 # error "wxUSE_TOOLBAR must be defined."
864 # define wxUSE_TOOLBAR 0
866 #endif /* !defined(wxUSE_TOOLBAR) */
868 #ifndef wxUSE_TOOLTIPS
869 # ifdef wxABORT_ON_CONFIG_ERROR
870 # error "wxUSE_TOOLTIPS must be defined."
872 # define wxUSE_TOOLTIPS 0
874 #endif /* !defined(wxUSE_TOOLTIPS) */
876 #ifndef wxUSE_TREECTRL
877 # ifdef wxABORT_ON_CONFIG_ERROR
878 # error "wxUSE_TREECTRL must be defined."
880 # define wxUSE_TREECTRL 0
882 #endif /* !defined(wxUSE_TREECTRL) */
884 #ifndef wxUSE_VALIDATORS
885 # ifdef wxABORT_ON_CONFIG_ERROR
886 # error "wxUSE_VALIDATORS must be defined."
888 # define wxUSE_VALIDATORS 0
890 #endif /* !defined(wxUSE_VALIDATORS) */
892 #ifndef wxUSE_WXHTML_HELP
893 # ifdef wxABORT_ON_CONFIG_ERROR
894 # error "wxUSE_WXHTML_HELP must be defined."
896 # define wxUSE_WXHTML_HELP 0
898 #endif /* !defined(wxUSE_WXHTML_HELP) */
901 # ifdef wxABORT_ON_CONFIG_ERROR
902 # error "wxUSE_XRC must be defined."
906 #endif /* !defined(wxUSE_XRC) */
908 #endif /* wxUSE_GUI */
911 check consistency of the settings
914 #if WXWIN_COMPATIBILITY_2_4
915 # if !WXWIN_COMPATIBILITY_2_6
916 # ifdef wxABORT_ON_CONFIG_ERROR
917 # error "2.4.X compatibility requires 2.6.X compatibility"
919 # undef WXWIN_COMPATIBILITY_2_6
920 # define WXWIN_COMPATIBILITY_2_6 1
923 #endif /* WXWIN_COMPATIBILITY_2_4 */
925 #if wxUSE_ARCHIVE_STREAMS
927 # ifdef wxABORT_ON_CONFIG_ERROR
928 # error "wxArchive requires wxUSE_DATETIME"
930 # undef wxUSE_ARCHIVE_STREAMS
931 # define wxUSE_ARCHIVE_STREAMS 0
934 #endif /* wxUSE_ARCHIVE_STREAMS */
936 #if wxUSE_CRASHREPORT && !wxUSE_ON_FATAL_EXCEPTION
937 # ifdef wxABORT_ON_CONFIG_ERROR
938 # error "wxUSE_CRASHREPORT requires wxUSE_ON_FATAL_EXCEPTION"
940 # undef wxUSE_CRASHREPORT
941 # define wxUSE_CRASHREPORT 0
943 #endif /* wxUSE_CRASHREPORT */
945 #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
947 # ifdef wxABORT_ON_CONFIG_ERROR
948 # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
950 # undef wxUSE_PROTOCOL
951 # define wxUSE_PROTOCOL 1
954 #endif /* wxUSE_PROTOCOL_XXX */
958 # ifdef wxABORT_ON_CONFIG_ERROR
959 # error "wxUSE_URL requires wxUSE_PROTOCOL"
961 # undef wxUSE_PROTOCOL
962 # define wxUSE_PROTOCOL 1
965 #endif /* wxUSE_URL */
969 # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
970 # ifdef wxABORT_ON_CONFIG_ERROR
971 # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
973 # undef wxUSE_SOCKETS
974 # define wxUSE_SOCKETS 1
980 # ifdef wxABORT_ON_CONFIG_ERROR
981 # error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
983 # undef wxUSE_STREAMS
984 # define wxUSE_STREAMS 1
987 #endif /* wxUSE_PROTOCOL */
989 /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
991 # if !wxUSE_FILESYSTEM
992 # ifdef wxABORT_ON_CONFIG_ERROR
993 # error "wxHTML requires wxFileSystem"
995 # undef wxUSE_FILESYSTEM
996 # define wxUSE_FILESYSTEM 1
999 #endif /* wxUSE_HTML */
1001 #if wxUSE_FILESYSTEM
1003 # ifdef wxABORT_ON_CONFIG_ERROR
1004 # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
1006 # undef wxUSE_STREAMS
1007 # define wxUSE_STREAMS 1
1010 #endif /* wxUSE_FILESYSTEM */
1013 # if !wxUSE_PROTOCOL
1014 # ifdef wxABORT_ON_CONFIG_ERROR
1015 # error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
1017 # undef wxUSE_PROTOCOL
1018 # define wxUSE_PROTOCOL 1
1021 #endif /* wxUSE_FS_INET */
1023 #if wxUSE_STOPWATCH || wxUSE_DATETIME
1024 # if !wxUSE_LONGLONG
1025 # ifdef wxABORT_ON_CONFIG_ERROR
1026 # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
1028 # undef wxUSE_LONGLONG
1029 # define wxUSE_LONGLONG 1
1032 #endif /* wxUSE_STOPWATCH */
1034 #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
1035 # ifdef wxABORT_ON_CONFIG_ERROR
1036 # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
1038 # undef wxUSE_TEXTFILE
1039 # define wxUSE_TEXTFILE 1
1041 #endif /* wxUSE_MIMETYPE */
1044 # if !wxUSE_DATETIME
1045 # ifdef wxABORT_ON_CONFIG_ERROR
1046 # error "wxODBC requires wxUSE_DATETIME"
1049 # define wxUSE_ODBC 0
1052 #endif /* wxUSE_ODBC */
1054 #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
1055 # ifdef wxABORT_ON_CONFIG_ERROR
1056 # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
1058 # undef wxUSE_TEXTBUFFER
1059 # define wxUSE_TEXTBUFFER 1
1061 #endif /* wxUSE_TEXTFILE */
1063 #if wxUSE_TEXTFILE && !wxUSE_FILE
1064 # ifdef wxABORT_ON_CONFIG_ERROR
1065 # error "wxUSE_TEXTFILE requires wxUSE_FILE"
1068 # define wxUSE_FILE 1
1070 #endif /* wxUSE_TEXTFILE */
1072 #if wxUSE_XML && !wxUSE_WCHAR_T
1073 # ifdef wxABORT_ON_CONFIG_ERROR
1074 # error "wxUSE_XML requires wxUSE_WCHAR_T"
1077 # define wxUSE_XML 0
1079 #endif /* wxUSE_XML */
1081 #if !wxUSE_DYNLIB_CLASS
1082 # if wxUSE_DYNAMIC_LOADER
1083 # ifdef wxABORT_ON_CONFIG_ERROR
1084 # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
1086 # define wxUSE_DYNLIB_CLASS 1
1089 #endif /* wxUSE_DYNLIB_CLASS */
1093 # ifdef wxABORT_ON_CONFIG_ERROR
1094 # error "wxZip requires wxZlib"
1097 # define wxUSE_ZLIB 1
1100 # if !wxUSE_ARCHIVE_STREAMS
1101 # ifdef wxABORT_ON_CONFIG_ERROR
1102 # error "wxZip requires wxArchive"
1104 # undef wxUSE_ARCHIVE_STREAMS
1105 # define wxUSE_ARCHIVE_STREAMS 1
1108 #endif /* wxUSE_ZIPSTREAM */
1110 /* the rest of the tests is for the GUI settings only */
1113 #if wxUSE_BUTTON || \
1114 wxUSE_CALENDARCTRL || \
1117 wxUSE_BMPBUTTON || \
1119 wxUSE_CHECKLISTBOX || \
1128 wxUSE_SCROLLBAR || \
1136 wxUSE_STATUSBAR || \
1140 # if !wxUSE_CONTROLS
1141 # ifdef wxABORT_ON_CONFIG_ERROR
1142 # error "wxUSE_CONTROLS unset but some controls used"
1144 # undef wxUSE_CONTROLS
1145 # define wxUSE_CONTROLS 1
1148 #endif /* controls */
1152 # ifdef wxABORT_ON_CONFIG_ERROR
1153 # error "wxUSE_BMPBUTTON requires wxUSE_BUTTON"
1155 # undef wxUSE_BUTTON
1156 # define wxUSE_BUTTON 1
1159 #endif /* wxUSE_BMPBUTTON */
1161 #if wxUSE_NOTEBOOK || wxUSE_LISTBOOK || wxUSE_CHOICEBOOK
1162 # if defined(wxUSE_BOOKCTRL) && !wxUSE_BOOKCTRL
1163 # ifdef wxABORT_ON_CONFIG_ERROR
1164 # error "wxUSE_BOOKCTRL must be set."
1166 # undef wxUSE_BOOKCTRL
1170 # ifndef wxUSE_BOOKCTRL
1171 # define wxUSE_BOOKCTRL 1
1173 #endif /* wxUSE_NOTEBOOK */
1176 # if !wxUSE_LISTCTRL
1177 # ifdef wxABORT_ON_CONFIG_ERROR
1178 # error "wxListbook requires wxListCtrl"
1180 # undef wxUSE_LISTCTRL
1181 # define wxUSE_LISTCTRL 1
1184 #endif /* wxUSE_LISTBOOK */
1186 #if wxUSE_CHOICEBOOK
1188 # ifdef wxABORT_ON_CONFIG_ERROR
1189 # error "wxChoicebook requires wxChoice"
1191 # undef wxUSE_CHOICE
1192 # define wxUSE_CHOICE 1
1195 #endif /* wxUSE_CHOICEBOOK */
1197 /* don't attempt to use native status bar on the platforms not having it */
1198 #ifndef wxUSE_NATIVE_STATUSBAR
1199 # define wxUSE_NATIVE_STATUSBAR 0
1200 #elif wxUSE_NATIVE_STATUSBAR
1201 # if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \
1202 defined(__WXMAC__) || \
1203 defined(__WXPALMOS__) )
1204 # undef wxUSE_NATIVE_STATUSBAR
1205 # define wxUSE_NATIVE_STATUSBAR 0
1209 /* wxUniv-specific dependencies */
1210 #if defined(__WXUNIVERSAL__)
1211 # if (wxUSE_COMBOBOX || wxUSE_MENUS) && !wxUSE_POPUPWIN
1212 # ifdef wxABORT_ON_CONFIG_ERROR
1213 # error "wxUSE_POPUPWIN must be defined to use comboboxes/menus"
1215 # undef wxUSE_POPUPWIN
1216 # define wxUSE_POPUPWIN 1
1222 # ifdef wxABORT_ON_CONFIG_ERROR
1223 # error "wxComboBox requires wxListBox in wxUniversal"
1225 # undef wxUSE_LISTBOX
1226 # define wxUSE_LISTBOX 1
1229 # endif /* wxUSE_COMBOBOX */
1232 # if !wxUSE_CHECKBOX
1233 # ifdef wxABORT_ON_CONFIG_ERROR
1234 # error "wxUSE_RADIOBTN requires wxUSE_CHECKBOX in wxUniversal"
1236 # undef wxUSE_CHECKBOX
1237 # define wxUSE_CHECKBOX 1
1240 # endif /* wxUSE_RADIOBTN */
1244 # ifdef wxABORT_ON_CONFIG_ERROR
1245 # error "wxTextCtrl requires wxCaret in wxUniversal"
1248 # define wxUSE_CARET 1
1250 # endif /* wxUSE_CARET */
1252 # if !wxUSE_SCROLLBAR
1253 # ifdef wxABORT_ON_CONFIG_ERROR
1254 # error "wxTextCtrl requires wxScrollBar in wxUniversal"
1256 # undef wxUSE_SCROLLBAR
1257 # define wxUSE_SCROLLBAR 1
1259 # endif /* wxUSE_SCROLLBAR */
1260 # endif /* wxUSE_TEXTCTRL */
1261 #endif /* __WXUNIVERSAL__ */
1263 /* wxGTK-specific dependencies */
1265 # ifndef __WXUNIVERSAL__
1266 # if wxUSE_MDI_ARCHITECTURE && !wxUSE_MENUS
1267 # ifdef wxABORT_ON_CONFIG_ERROR
1268 # error "MDI requires wxUSE_MENUS in wxGTK"
1271 # define wxUSE_MENUS 1
1274 # endif /* !__WXUNIVERSAL__ */
1278 # ifdef wxABORT_ON_CONFIG_ERROR
1279 # error "wxJoystick requires threads in wxGTK"
1281 # undef wxUSE_JOYSTICK
1282 # define wxUSE_JOYSTICK 0
1286 #endif /* wxGTK && !wxUniv */
1288 /* Hopefully we can emulate these dialogs in due course */
1289 #if defined(__SMARTPHONE__) && defined(__WXWINCE__)
1290 # ifdef wxUSE_COLOURDLG
1291 # undef wxUSE_COLOURDLG
1292 # define wxUSE_COLOURDLG 0
1294 #endif /* __SMARTPHONE__ && __WXWINCE__ */
1297 /* generic controls dependencies */
1298 #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1299 # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1300 /* all common controls are needed by these dialogs */
1301 # if !defined(wxUSE_CHOICE) || \
1302 !defined(wxUSE_TEXTCTRL) || \
1303 !defined(wxUSE_BUTTON) || \
1304 !defined(wxUSE_CHECKBOX) || \
1305 !defined(wxUSE_STATTEXT)
1306 # ifdef wxABORT_ON_CONFIG_ERROR
1307 # error "These common controls are needed by common dialogs"
1309 # undef wxUSE_CHOICE
1310 # define wxUSE_CHOICE 1
1311 # undef wxUSE_TEXTCTRL
1312 # define wxUSE_TEXTCTRL 1
1313 # undef wxUSE_BUTTON
1314 # define wxUSE_BUTTON 1
1315 # undef wxUSE_CHECKBOX
1316 # define wxUSE_CHECKBOX 1
1317 # undef wxUSE_STATTEXT
1318 # define wxUSE_STATTEXT 1
1322 #endif /* !wxMSW || wxUniv */
1324 /* common dependencies */
1325 #if wxUSE_CALENDARCTRL
1326 # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1327 # ifdef wxABORT_ON_CONFIG_ERROR
1328 # error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1330 # undef wxUSE_SPINBTN
1331 # undef wxUSE_COMBOBOX
1332 # define wxUSE_SPINBTN 1
1333 # define wxUSE_COMBOBOX 1
1337 # if !wxUSE_DATETIME
1338 # ifdef wxABORT_ON_CONFIG_ERROR
1339 # error "wxCalendarCtrl requires wxUSE_DATETIME"
1341 # undef wxUSE_DATETIME
1342 # define wxUSE_DATETIME 1
1345 #endif /* wxUSE_CALENDARCTRL */
1347 #if wxUSE_DATEPICKCTRL
1348 # if !wxUSE_DATETIME
1349 # ifdef wxABORT_ON_CONFIG_ERROR
1350 # error "wxDatePickerCtrl requires wxUSE_DATETIME"
1352 # undef wxUSE_DATETIME
1353 # define wxUSE_DATETIME 1
1356 #endif /* wxUSE_DATEPICKCTRL */
1358 #if wxUSE_CHECKLISTBOX
1360 # ifdef wxABORT_ON_CONFIG_ERROR
1361 # error "wxCheckListBox requires wxListBox"
1363 # undef wxUSE_LISTBOX
1364 # define wxUSE_LISTBOX 1
1367 #endif /* wxUSE_CHECKLISTBOX */
1371 # ifdef wxABORT_ON_CONFIG_ERROR
1372 # error "Choice dialogs requires wxListBox"
1374 # undef wxUSE_LISTBOX
1375 # define wxUSE_LISTBOX 1
1378 #endif /* wxUSE_CHOICEDLG */
1381 # if !wxUSE_BMPBUTTON
1382 # ifdef wxABORT_ON_CONFIG_ERROR
1383 # error "wxUSE_HELP requires wxUSE_BMPBUTTON"
1385 # undef wxUSE_BMPBUTTON
1386 # define wxUSE_BMPBUTTON 1
1390 # if !wxUSE_CHOICEDLG
1391 # ifdef wxABORT_ON_CONFIG_ERROR
1392 # error "wxUSE_HELP requires wxUSE_CHOICEDLG"
1394 # undef wxUSE_CHOICEDLG
1395 # define wxUSE_CHOICEDLG 1
1398 #endif /* wxUSE_HELP */
1400 #if wxUSE_WXHTML_HELP
1401 # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL
1402 # ifdef wxABORT_ON_CONFIG_ERROR
1403 # error "Built in help controller can't be compiled"
1406 # define wxUSE_HELP 1
1408 # define wxUSE_HTML 1
1409 # undef wxUSE_COMBOBOX
1410 # define wxUSE_COMBOBOX 1
1411 # undef wxUSE_NOTEBOOK
1412 # define wxUSE_NOTEBOOK 1
1413 # undef wxUSE_SPINCTRL
1414 # define wxUSE_SPINCTRL 1
1417 #endif /* wxUSE_WXHTML_HELP */
1421 The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the
1422 user explicitly wants this and disable all other features that require
1425 # if wxUSE_DRAGIMAGE
1426 # ifdef wxABORT_ON_CONFIG_ERROR
1427 # error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE"
1429 # undef wxUSE_DRAGIMAGE
1430 # define wxUSE_DRAGIMAGE 0
1435 # ifdef wxABORT_ON_CONFIG_ERROR
1436 # error "wxUSE_LIBPNG requires wxUSE_IMAGE"
1438 # undef wxUSE_LIBPNG
1439 # define wxUSE_LIBPNG 0
1444 # ifdef wxABORT_ON_CONFIG_ERROR
1445 # error "wxUSE_LIBJPEG requires wxUSE_IMAGE"
1447 # undef wxUSE_LIBJPEG
1448 # define wxUSE_LIBJPEG 0
1453 # ifdef wxABORT_ON_CONFIG_ERROR
1454 # error "wxUSE_LIBTIFF requires wxUSE_IMAGE"
1456 # undef wxUSE_LIBTIFF
1457 # define wxUSE_LIBTIFF 0
1462 # ifdef wxABORT_ON_CONFIG_ERROR
1463 # error "wxUSE_GIF requires wxUSE_IMAGE"
1466 # define wxUSE_GIF 0
1471 # ifdef wxABORT_ON_CONFIG_ERROR
1472 # error "wxUSE_PNM requires wxUSE_IMAGE"
1475 # define wxUSE_PNM 0
1480 # ifdef wxABORT_ON_CONFIG_ERROR
1481 # error "wxUSE_PCX requires wxUSE_IMAGE"
1484 # define wxUSE_PCX 0
1489 # ifdef wxABORT_ON_CONFIG_ERROR
1490 # error "wxUSE_IFF requires wxUSE_IMAGE"
1493 # define wxUSE_IFF 0
1498 # ifdef wxABORT_ON_CONFIG_ERROR
1499 # error "wxUSE_TOOLBAR requires wxUSE_IMAGE"
1501 # undef wxUSE_TOOLBAR
1502 # define wxUSE_TOOLBAR 0
1507 # ifdef wxABORT_ON_CONFIG_ERROR
1508 # error "wxUSE_XPM requires wxUSE_IMAGE"
1511 # define wxUSE_XPM 0
1515 #endif /* !wxUSE_IMAGE */
1517 #if wxUSE_DOC_VIEW_ARCHITECTURE
1519 # ifdef wxABORT_ON_CONFIG_ERROR
1520 # error "DocView requires wxUSE_MENUS"
1523 # define wxUSE_MENUS 1
1527 # if !wxUSE_CHOICEDLG
1528 # ifdef wxABORT_ON_CONFIG_ERROR
1529 # error "DocView requires wxUSE_CHOICEDLG"
1531 # undef wxUSE_CHOICEDLG
1532 # define wxUSE_CHOICEDLG 1
1536 # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1537 # ifdef wxABORT_ON_CONFIG_ERROR
1538 # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1540 # undef wxUSE_STREAMS
1541 # define wxUSE_STREAMS 1
1544 #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1546 #if wxUSE_PRINTING_ARCHITECTURE
1547 # if !wxUSE_COMBOBOX
1548 # ifdef wxABORT_ON_CONFIG_ERROR
1549 # error "Print dialog requires wxUSE_COMBOBOX"
1551 # undef wxUSE_COMBOBOX
1552 # define wxUSE_COMBOBOX 1
1555 #endif /* wxUSE_PRINTING_ARCHITECTURE */
1557 #if wxUSE_MDI_ARCHITECTURE
1559 # ifdef wxABORT_ON_CONFIG_ERROR
1560 # error "MDI requires wxUSE_MDI"
1563 # define wxUSE_MDI 1
1567 # if !wxUSE_DOC_VIEW_ARCHITECTURE
1568 # ifdef wxABORT_ON_CONFIG_ERROR
1569 # error "wxUSE_MDI_ARCHITECTURE requires wxUSE_DOC_VIEW_ARCHITECTURE"
1571 # undef wxUSE_DOC_VIEW_ARCHITECTURE
1572 # define wxUSE_DOC_VIEW_ARCHITECTURE 1
1575 #endif /* wxUSE_MDI_ARCHITECTURE */
1578 # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1579 # ifdef wxABORT_ON_CONFIG_ERROR
1580 # error "wxUSE_FILEDLG is required by wxUSE_DOC_VIEW_ARCHITECTURE and wxUSE_WXHTML_HELP!"
1582 # undef wxUSE_FILEDLG
1583 # define wxUSE_FILEDLG 1
1586 #endif /* wxUSE_FILEDLG */
1588 #if !wxUSE_GAUGE || !wxUSE_BUTTON
1589 # if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__)
1590 # ifdef wxABORT_ON_CONFIG_ERROR
1591 # error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON"
1594 # undef wxUSE_BUTTON
1595 # define wxUSE_GAUGE 1
1596 # define wxUSE_BUTTON 1
1599 #endif /* !wxUSE_GAUGE */
1602 # if wxUSE_FONTDLG || \
1604 wxUSE_CHOICEDLG || \
1605 wxUSE_NUMBERDLG || \
1608 wxUSE_STARTUP_TIPS || \
1610 # ifdef wxABORT_ON_CONFIG_ERROR
1611 # error "Common and generic dialogs require wxUSE_BUTTON"
1613 # undef wxUSE_BUTTON
1614 # define wxUSE_BUTTON 1
1617 #endif /* !wxUSE_BUTTON */
1620 # if wxUSE_TOOLBAR_NATIVE
1621 # ifdef wxABORT_ON_CONFIG_ERROR
1622 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
1624 # undef wxUSE_TOOLBAR_NATIVE
1625 # define wxUSE_TOOLBAR_NATIVE 0
1631 # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL
1632 # ifdef wxABORT_ON_CONFIG_ERROR
1633 # error "wxImageList must be compiled as well"
1635 # undef wxUSE_IMAGLIST
1636 # define wxUSE_IMAGLIST 1
1639 #endif /* !wxUSE_IMAGLIST */
1642 # ifdef wxABORT_ON_CONFIG_ERROR
1643 /* FIXME: should compile without it, of course, but doesn't */
1644 # error "wxMessageBox is always needed"
1646 # undef wxUSE_MSGDLG
1647 # define wxUSE_MSGDLG 1
1652 # if !wxUSE_RADIOBTN
1653 # ifdef wxABORT_ON_CONFIG_ERROR
1654 # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN"
1656 # undef wxUSE_RADIOBTN
1657 # define wxUSE_RADIOBTN 1
1660 # if !wxUSE_STATBOX && !defined(__WXPALMOS__)
1661 # ifdef wxABORT_ON_CONFIG_ERROR
1662 # error "wxUSE_RADIOBOX requires wxUSE_STATBOX"
1664 # undef wxUSE_STATBOX
1665 # define wxUSE_STATBOX 1
1668 #endif /* wxUSE_RADIOBOX */
1671 # if !wxUSE_TEXTCTRL
1672 # ifdef wxABORT_ON_CONFIG_ERROR
1673 # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
1675 # undef wxUSE_TEXTCTRL
1676 # define wxUSE_TEXTCTRL 1
1679 #endif /* wxUSE_LOGWINDOW */
1681 #if wxUSE_LOG_DIALOG
1682 # if !wxUSE_LISTCTRL || !wxUSE_BUTTON
1683 # ifdef wxABORT_ON_CONFIG_ERROR
1684 # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON"
1686 # undef wxUSE_LISTCTRL
1687 # define wxUSE_LISTCTRL 1
1688 # undef wxUSE_BUTTON
1689 # define wxUSE_BUTTON 1
1692 #endif /* wxUSE_LOG_DIALOG */
1694 #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
1695 # ifdef wxABORT_ON_CONFIG_ERROR
1696 # error "wxClipboard requires wxDataObject"
1698 # undef wxUSE_DATAOBJ
1699 # define wxUSE_DATAOBJ 1
1701 #endif /* wxUSE_CLIPBOARD */
1703 #if wxUSE_WX_RESOURCES && !wxUSE_PROLOGIO
1704 # ifdef wxABORT_ON_CONFIG_ERROR
1705 # error "wxr resources require PrologIO"
1707 # undef wxUSE_PROLOGIO
1708 # define wxUSE_PROLOGIO 1
1710 #endif /* wxUSE_WX_RESOURCES */
1712 #if wxUSE_XRC && !wxUSE_XML
1713 # ifdef wxABORT_ON_CONFIG_ERROR
1714 # error "wxUSE_XRC requires wxUSE_XML"
1717 # define wxUSE_XRC 0
1719 #endif /* wxUSE_XRC */
1721 #if wxUSE_SOCKETS && !wxUSE_STOPWATCH
1722 # ifdef wxABORT_ON_CONFIG_ERROR
1723 # error "wxUSE_SOCKETS requires wxUSE_STOPWATCH"
1725 # undef wxUSE_SOCKETS
1726 # define wxUSE_SOCKETS 0
1728 #endif /* wxUSE_SOCKETS */
1730 #endif /* wxUSE_GUI */