]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/chkconf.h
3 * Purpose: check the config settings for consistency
4 * Author: Vadim Zeitlin
7 * Copyright: (c) 2000 Vadim Zeitlin <vadim@wxwidgets.org>
8 * Licence: wxWindows licence
11 /* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
12 #ifndef _WX_CHKCONF_H_
13 #define _WX_CHKCONF_H_
16 **************************************************
17 PLEASE READ THIS IF YOU GET AN ERROR IN THIS FILE!
18 **************************************************
20 If you get an error saying "wxUSE_FOO must be defined", it means that you
21 are not using the correct up-to-date version of setup.h. This happens most
22 often when using svn or daily snapshots and a new symbol was added to
23 setup0.h and you haven't updated your local setup.h to reflect it. If
24 this is the case, you need to propagate the changes from setup0.h to your
25 setup.h and, if using makefiles under MSW, also remove setup.h under the
26 build directory (lib/$(COMPILER)_{lib,dll}/msw[u][d][dll]/wx) so that
27 the new setup.h is copied there.
29 If you get an error of the form "wxFoo requires wxBar", then the settings
30 in your setup.h are inconsistent. You have the choice between correcting
31 them manually or commenting out #define wxABORT_ON_CONFIG_ERROR below to
32 try to correct the problems automatically (not really recommended but
37 This file has the following sections:
38 1. checks that all wxUSE_XXX symbols we use are defined
39 a) first the non-GUI ones
40 b) then the GUI-only ones
41 2. platform-specific checks done in the platform headers
42 3. generic consistency checks
43 a) first the non-GUI ones
44 b) then the GUI-only ones
48 this global setting determines what should we do if the setting FOO
49 requires BAR and BAR is not set: we can either silently unset FOO as well
50 (do this if you're trying to build the smallest possible library) or give an
51 error and abort (default as leads to least surprising behaviour)
53 #define wxABORT_ON_CONFIG_ERROR
60 If we're compiling without support for threads/exceptions we have to
61 disable the corresponding features.
65 # define wxUSE_THREADS 0
66 #endif /* wxNO_THREADS */
68 #ifdef wxNO_EXCEPTIONS
69 # undef wxUSE_EXCEPTIONS
70 # define wxUSE_EXCEPTIONS 0
71 #endif /* wxNO_EXCEPTIONS */
73 /* we also must disable exceptions if compiler doesn't support them */
74 #if defined(_MSC_VER) && !defined(_CPPUNWIND)
75 # undef wxUSE_EXCEPTIONS
76 # define wxUSE_EXCEPTIONS 0
77 #endif /* VC++ without exceptions support */
81 Section 1a: tests for non GUI features.
83 please keep the options in alphabetical order!
87 # ifdef wxABORT_ON_CONFIG_ERROR
88 # error "wxUSE_ANY must be defined, please read comment near the top of this file."
92 #endif /* wxUSE_ANY */
94 #ifndef wxUSE_COMPILER_TLS
95 # ifdef wxABORT_ON_CONFIG_ERROR
96 # error "wxUSE_COMPILER_TLS must be defined, please read comment near the top of this file."
98 # define wxUSE_COMPILER_TLS 0
100 #endif /* !defined(wxUSE_COMPILER_TLS) */
102 #ifndef wxUSE_CONSOLE_EVENTLOOP
103 # ifdef wxABORT_ON_CONFIG_ERROR
104 # error "wxUSE_CONSOLE_EVENTLOOP must be defined, please read comment near the top of this file."
106 # define wxUSE_CONSOLE_EVENTLOOP 0
108 #endif /* !defined(wxUSE_CONSOLE_EVENTLOOP) */
110 #ifndef wxUSE_DYNLIB_CLASS
111 # ifdef wxABORT_ON_CONFIG_ERROR
112 # error "wxUSE_DYNLIB_CLASS must be defined, please read comment near the top of this file."
114 # define wxUSE_DYNLIB_CLASS 0
116 #endif /* !defined(wxUSE_DYNLIB_CLASS) */
118 #ifndef wxUSE_EXCEPTIONS
119 # ifdef wxABORT_ON_CONFIG_ERROR
120 # error "wxUSE_EXCEPTIONS must be defined, please read comment near the top of this file."
122 # define wxUSE_EXCEPTIONS 0
124 #endif /* !defined(wxUSE_EXCEPTIONS) */
126 #ifndef wxUSE_FILE_HISTORY
127 # ifdef wxABORT_ON_CONFIG_ERROR
128 # error "wxUSE_FILE_HISTORY must be defined, please read comment near the top of this file."
130 # define wxUSE_FILE_HISTORY 0
132 #endif /* !defined(wxUSE_FILE_HISTORY) */
134 #ifndef wxUSE_FILESYSTEM
135 # ifdef wxABORT_ON_CONFIG_ERROR
136 # error "wxUSE_FILESYSTEM must be defined, please read comment near the top of this file."
138 # define wxUSE_FILESYSTEM 0
140 #endif /* !defined(wxUSE_FILESYSTEM) */
142 #ifndef wxUSE_FS_ARCHIVE
143 # ifdef wxABORT_ON_CONFIG_ERROR
144 # error "wxUSE_FS_ARCHIVE must be defined, please read comment near the top of this file."
146 # define wxUSE_FS_ARCHIVE 0
148 #endif /* !defined(wxUSE_FS_ARCHIVE) */
150 #ifndef wxUSE_FSVOLUME
151 # ifdef wxABORT_ON_CONFIG_ERROR
152 # error "wxUSE_FSVOLUME must be defined, please read comment near the top of this file."
154 # define wxUSE_FSVOLUME 0
156 #endif /* !defined(wxUSE_FSVOLUME) */
158 #ifndef wxUSE_FSWATCHER
159 # ifdef wxABORT_ON_CONFIG_ERROR
160 # error "wxUSE_FSWATCHER must be defined, please read comment near the top of this file."
162 # define wxUSE_FSWATCHER 0
164 #endif /* !defined(wxUSE_FSWATCHER) */
166 #ifndef wxUSE_DYNAMIC_LOADER
167 # ifdef wxABORT_ON_CONFIG_ERROR
168 # error "wxUSE_DYNAMIC_LOADER must be defined, please read comment near the top of this file."
170 # define wxUSE_DYNAMIC_LOADER 0
172 #endif /* !defined(wxUSE_DYNAMIC_LOADER) */
175 # ifdef wxABORT_ON_CONFIG_ERROR
176 # error "wxUSE_INTL must be defined, please read comment near the top of this file."
178 # define wxUSE_INTL 0
180 #endif /* !defined(wxUSE_INTL) */
183 # ifdef wxABORT_ON_CONFIG_ERROR
184 # error "wxUSE_IPV6 must be defined, please read comment near the top of this file."
186 # define wxUSE_IPV6 0
188 #endif /* !defined(wxUSE_IPV6) */
191 # ifdef wxABORT_ON_CONFIG_ERROR
192 # error "wxUSE_LOG must be defined, please read comment near the top of this file."
196 #endif /* !defined(wxUSE_LOG) */
198 #ifndef wxUSE_LONGLONG
199 # ifdef wxABORT_ON_CONFIG_ERROR
200 # error "wxUSE_LONGLONG must be defined, please read comment near the top of this file."
202 # define wxUSE_LONGLONG 0
204 #endif /* !defined(wxUSE_LONGLONG) */
206 #ifndef wxUSE_MIMETYPE
207 # ifdef wxABORT_ON_CONFIG_ERROR
208 # error "wxUSE_MIMETYPE must be defined, please read comment near the top of this file."
210 # define wxUSE_MIMETYPE 0
212 #endif /* !defined(wxUSE_MIMETYPE) */
214 #ifndef wxUSE_ON_FATAL_EXCEPTION
215 # ifdef wxABORT_ON_CONFIG_ERROR
216 # error "wxUSE_ON_FATAL_EXCEPTION must be defined, please read comment near the top of this file."
218 # define wxUSE_ON_FATAL_EXCEPTION 0
220 #endif /* !defined(wxUSE_ON_FATAL_EXCEPTION) */
222 #ifndef wxUSE_PRINTF_POS_PARAMS
223 # ifdef wxABORT_ON_CONFIG_ERROR
224 # error "wxUSE_PRINTF_POS_PARAMS must be defined, please read comment near the top of this file."
226 # define wxUSE_PRINTF_POS_PARAMS 0
228 #endif /* !defined(wxUSE_PRINTF_POS_PARAMS) */
230 #ifndef wxUSE_PROTOCOL
231 # ifdef wxABORT_ON_CONFIG_ERROR
232 # error "wxUSE_PROTOCOL must be defined, please read comment near the top of this file."
234 # define wxUSE_PROTOCOL 0
236 #endif /* !defined(wxUSE_PROTOCOL) */
238 /* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */
240 # undef wxUSE_PROTOCOL_HTTP
241 # undef wxUSE_PROTOCOL_FTP
242 # undef wxUSE_PROTOCOL_FILE
243 # define wxUSE_PROTOCOL_HTTP 0
244 # define wxUSE_PROTOCOL_FTP 0
245 # define wxUSE_PROTOCOL_FILE 0
246 #endif /* wxUSE_PROTOCOL */
248 #ifndef wxUSE_PROTOCOL_HTTP
249 # ifdef wxABORT_ON_CONFIG_ERROR
250 # error "wxUSE_PROTOCOL_HTTP must be defined, please read comment near the top of this file."
252 # define wxUSE_PROTOCOL_HTTP 0
254 #endif /* !defined(wxUSE_PROTOCOL_HTTP) */
256 #ifndef wxUSE_PROTOCOL_FTP
257 # ifdef wxABORT_ON_CONFIG_ERROR
258 # error "wxUSE_PROTOCOL_FTP must be defined, please read comment near the top of this file."
260 # define wxUSE_PROTOCOL_FTP 0
262 #endif /* !defined(wxUSE_PROTOCOL_FTP) */
264 #ifndef wxUSE_PROTOCOL_FILE
265 # ifdef wxABORT_ON_CONFIG_ERROR
266 # error "wxUSE_PROTOCOL_FILE must be defined, please read comment near the top of this file."
268 # define wxUSE_PROTOCOL_FILE 0
270 #endif /* !defined(wxUSE_PROTOCOL_FILE) */
273 # ifdef wxABORT_ON_CONFIG_ERROR
274 # error "wxUSE_REGEX must be defined, please read comment near the top of this file."
276 # define wxUSE_REGEX 0
278 #endif /* !defined(wxUSE_REGEX) */
280 #ifndef wxUSE_STDPATHS
281 # ifdef wxABORT_ON_CONFIG_ERROR
282 # error "wxUSE_STDPATHS must be defined, please read comment near the top of this file."
284 # define wxUSE_STDPATHS 1
286 #endif /* !defined(wxUSE_STDPATHS) */
289 # ifdef wxABORT_ON_CONFIG_ERROR
290 # error "wxUSE_XML must be defined, please read comment near the top of this file."
294 #endif /* !defined(wxUSE_XML) */
296 #ifndef wxUSE_SOCKETS
297 # ifdef wxABORT_ON_CONFIG_ERROR
298 # error "wxUSE_SOCKETS must be defined, please read comment near the top of this file."
300 # define wxUSE_SOCKETS 0
302 #endif /* !defined(wxUSE_SOCKETS) */
304 #ifndef wxUSE_STD_CONTAINERS
305 # ifdef wxABORT_ON_CONFIG_ERROR
306 # error "wxUSE_STD_CONTAINERS must be defined, please read comment near the top of this file."
308 # define wxUSE_STD_CONTAINERS 0
310 #endif /* !defined(wxUSE_STD_CONTAINERS) */
312 #ifndef wxUSE_STD_STRING_CONV_IN_WXSTRING
313 # ifdef wxABORT_ON_CONFIG_ERROR
314 # error "wxUSE_STD_STRING_CONV_IN_WXSTRING must be defined, please read comment near the top of this file."
316 # define wxUSE_STD_STRING_CONV_IN_WXSTRING 0
318 #endif /* !defined(wxUSE_STD_STRING_CONV_IN_WXSTRING) */
320 #ifndef wxUSE_STREAMS
321 # ifdef wxABORT_ON_CONFIG_ERROR
322 # error "wxUSE_STREAMS must be defined, please read comment near the top of this file."
324 # define wxUSE_STREAMS 0
326 #endif /* !defined(wxUSE_STREAMS) */
328 #ifndef wxUSE_STOPWATCH
329 # ifdef wxABORT_ON_CONFIG_ERROR
330 # error "wxUSE_STOPWATCH must be defined, please read comment near the top of this file."
332 # define wxUSE_STOPWATCH 0
334 #endif /* !defined(wxUSE_STOPWATCH) */
336 #ifndef wxUSE_TEXTBUFFER
337 # ifdef wxABORT_ON_CONFIG_ERROR
338 # error "wxUSE_TEXTBUFFER must be defined, please read comment near the top of this file."
340 # define wxUSE_TEXTBUFFER 0
342 #endif /* !defined(wxUSE_TEXTBUFFER) */
344 #ifndef wxUSE_TEXTFILE
345 # ifdef wxABORT_ON_CONFIG_ERROR
346 # error "wxUSE_TEXTFILE must be defined, please read comment near the top of this file."
348 # define wxUSE_TEXTFILE 0
350 #endif /* !defined(wxUSE_TEXTFILE) */
352 #ifndef wxUSE_UNICODE
353 # ifdef wxABORT_ON_CONFIG_ERROR
354 # error "wxUSE_UNICODE must be defined, please read comment near the top of this file."
356 # define wxUSE_UNICODE 0
358 #endif /* !defined(wxUSE_UNICODE) */
361 # ifdef wxABORT_ON_CONFIG_ERROR
362 # error "wxUSE_URL must be defined, please read comment near the top of this file."
366 #endif /* !defined(wxUSE_URL) */
368 #ifndef wxUSE_VARIANT
369 # ifdef wxABORT_ON_CONFIG_ERROR
370 # error "wxUSE_VARIANT must be defined, please read comment near the top of this file."
372 # define wxUSE_VARIANT 0
374 #endif /* wxUSE_VARIANT */
376 #ifndef wxUSE_XLOCALE
377 # ifdef wxABORT_ON_CONFIG_ERROR
378 # error "wxUSE_XLOCALE must be defined, please read comment near the top of this file."
380 # define wxUSE_XLOCALE 0
382 #endif /* !defined(wxUSE_XLOCALE) */
385 Section 1b: all these tests are for GUI only.
387 please keep the options in alphabetical order!
392 all of the settings tested below must be defined or we'd get an error from
393 preprocessor about invalid integer expression
396 #ifndef wxUSE_ABOUTDLG
397 # ifdef wxABORT_ON_CONFIG_ERROR
398 # error "wxUSE_ABOUTDLG must be defined, please read comment near the top of this file."
400 # define wxUSE_ABOUTDLG 0
402 #endif /* !defined(wxUSE_ABOUTDLG) */
405 # ifdef wxABORT_ON_CONFIG_ERROR
406 # error "wxUSE_ACCEL must be defined, please read comment near the top of this file."
408 # define wxUSE_ACCEL 0
410 #endif /* !defined(wxUSE_ACCEL) */
412 #ifndef wxUSE_ACCESSIBILITY
413 # ifdef wxABORT_ON_CONFIG_ERROR
414 # error "wxUSE_ACCESSIBILITY must be defined, please read comment near the top of this file."
416 # define wxUSE_ACCESSIBILITY 0
418 #endif /* !defined(wxUSE_ACCESSIBILITY) */
420 #ifndef wxUSE_ANIMATIONCTRL
421 # ifdef wxABORT_ON_CONFIG_ERROR
422 # error "wxUSE_ANIMATIONCTRL must be defined, please read comment near the top of this file."
424 # define wxUSE_ANIMATIONCTRL 0
426 #endif /* !defined(wxUSE_ANIMATIONCTRL) */
428 #ifndef wxUSE_ARTPROVIDER_STD
429 # ifdef wxABORT_ON_CONFIG_ERROR
430 # error "wxUSE_ARTPROVIDER_STD must be defined, please read comment near the top of this file."
432 # define wxUSE_ARTPROVIDER_STD 0
434 #endif /* !defined(wxUSE_ARTPROVIDER_STD) */
436 #ifndef wxUSE_ARTPROVIDER_TANGO
437 # ifdef wxABORT_ON_CONFIG_ERROR
438 # error "wxUSE_ARTPROVIDER_TANGO must be defined, please read comment near the top of this file."
440 # define wxUSE_ARTPROVIDER_TANGO 0
442 #endif /* !defined(wxUSE_ARTPROVIDER_TANGO) */
444 #ifndef wxUSE_AUTOID_MANAGEMENT
445 # ifdef wxABORT_ON_CONFIG_ERROR
446 # error "wxUSE_AUTOID_MANAGEMENT must be defined, please read comment near the top of this file."
448 # define wxUSE_AUTOID_MANAGEMENT 0
450 #endif /* !defined(wxUSE_AUTOID_MANAGEMENT) */
452 #ifndef wxUSE_BITMAPCOMBOBOX
453 # ifdef wxABORT_ON_CONFIG_ERROR
454 # error "wxUSE_BITMAPCOMBOBOX must be defined, please read comment near the top of this file."
456 # define wxUSE_BITMAPCOMBOBOX 0
458 #endif /* !defined(wxUSE_BITMAPCOMBOBOX) */
460 #ifndef wxUSE_BMPBUTTON
461 # ifdef wxABORT_ON_CONFIG_ERROR
462 # error "wxUSE_BMPBUTTON must be defined, please read comment near the top of this file."
464 # define wxUSE_BMPBUTTON 0
466 #endif /* !defined(wxUSE_BMPBUTTON) */
469 # ifdef wxABORT_ON_CONFIG_ERROR
470 # error "wxUSE_BUTTON must be defined, please read comment near the top of this file."
472 # define wxUSE_BUTTON 0
474 #endif /* !defined(wxUSE_BUTTON) */
477 # ifdef wxABORT_ON_CONFIG_ERROR
478 # error "wxUSE_CAIRO must be defined, please read comment near the top of this file."
480 # define wxUSE_CAIRO 0
482 #endif /* !defined(wxUSE_CAIRO) */
484 #ifndef wxUSE_CALENDARCTRL
485 # ifdef wxABORT_ON_CONFIG_ERROR
486 # error "wxUSE_CALENDARCTRL must be defined, please read comment near the top of this file."
488 # define wxUSE_CALENDARCTRL 0
490 #endif /* !defined(wxUSE_CALENDARCTRL) */
493 # ifdef wxABORT_ON_CONFIG_ERROR
494 # error "wxUSE_CARET must be defined, please read comment near the top of this file."
496 # define wxUSE_CARET 0
498 #endif /* !defined(wxUSE_CARET) */
500 #ifndef wxUSE_CHECKBOX
501 # ifdef wxABORT_ON_CONFIG_ERROR
502 # error "wxUSE_CHECKBOX must be defined, please read comment near the top of this file."
504 # define wxUSE_CHECKBOX 0
506 #endif /* !defined(wxUSE_CHECKBOX) */
508 #ifndef wxUSE_CHECKLISTBOX
509 # ifdef wxABORT_ON_CONFIG_ERROR
510 # error "wxUSE_CHECKLISTBOX must be defined, please read comment near the top of this file."
512 # define wxUSE_CHECKLISTBOX 0
514 #endif /* !defined(wxUSE_CHECKLISTBOX) */
517 # ifdef wxABORT_ON_CONFIG_ERROR
518 # error "wxUSE_CHOICE must be defined, please read comment near the top of this file."
520 # define wxUSE_CHOICE 0
522 #endif /* !defined(wxUSE_CHOICE) */
524 #ifndef wxUSE_CHOICEBOOK
525 # ifdef wxABORT_ON_CONFIG_ERROR
526 # error "wxUSE_CHOICEBOOK must be defined, please read comment near the top of this file."
528 # define wxUSE_CHOICEBOOK 0
530 #endif /* !defined(wxUSE_CHOICEBOOK) */
532 #ifndef wxUSE_CHOICEDLG
533 # ifdef wxABORT_ON_CONFIG_ERROR
534 # error "wxUSE_CHOICEDLG must be defined, please read comment near the top of this file."
536 # define wxUSE_CHOICEDLG 0
538 #endif /* !defined(wxUSE_CHOICEDLG) */
540 #ifndef wxUSE_CLIPBOARD
541 # ifdef wxABORT_ON_CONFIG_ERROR
542 # error "wxUSE_CLIPBOARD must be defined, please read comment near the top of this file."
544 # define wxUSE_CLIPBOARD 0
546 #endif /* !defined(wxUSE_CLIPBOARD) */
548 #ifndef wxUSE_COLLPANE
549 # ifdef wxABORT_ON_CONFIG_ERROR
550 # error "wxUSE_COLLPANE must be defined, please read comment near the top of this file."
552 # define wxUSE_COLLPANE 0
554 #endif /* !defined(wxUSE_COLLPANE) */
556 #ifndef wxUSE_COLOURDLG
557 # ifdef wxABORT_ON_CONFIG_ERROR
558 # error "wxUSE_COLOURDLG must be defined, please read comment near the top of this file."
560 # define wxUSE_COLOURDLG 0
562 #endif /* !defined(wxUSE_COLOURDLG) */
564 #ifndef wxUSE_COLOURPICKERCTRL
565 # ifdef wxABORT_ON_CONFIG_ERROR
566 # error "wxUSE_COLOURPICKERCTRL must be defined, please read comment near the top of this file."
568 # define wxUSE_COLOURPICKERCTRL 0
570 #endif /* !defined(wxUSE_COLOURPICKERCTRL) */
572 #ifndef wxUSE_COMBOBOX
573 # ifdef wxABORT_ON_CONFIG_ERROR
574 # error "wxUSE_COMBOBOX must be defined, please read comment near the top of this file."
576 # define wxUSE_COMBOBOX 0
578 #endif /* !defined(wxUSE_COMBOBOX) */
580 #ifndef wxUSE_COMMANDLINKBUTTON
581 # ifdef wxABORT_ON_CONFIG_ERROR
582 # error "wxUSE_COMMANDLINKBUTTON must be defined, please read comment near the top of this file."
584 # define wxUSE_COMMANDLINKBUTTON 0
586 #endif /* !defined(wxUSE_COMMANDLINKBUTTON) */
588 #ifndef wxUSE_COMBOCTRL
589 # ifdef wxABORT_ON_CONFIG_ERROR
590 # error "wxUSE_COMBOCTRL must be defined, please read comment near the top of this file."
592 # define wxUSE_COMBOCTRL 0
594 #endif /* !defined(wxUSE_COMBOCTRL) */
596 #ifndef wxUSE_DATAOBJ
597 # ifdef wxABORT_ON_CONFIG_ERROR
598 # error "wxUSE_DATAOBJ must be defined, please read comment near the top of this file."
600 # define wxUSE_DATAOBJ 0
602 #endif /* !defined(wxUSE_DATAOBJ) */
604 #ifndef wxUSE_DATAVIEWCTRL
605 # ifdef wxABORT_ON_CONFIG_ERROR
606 # error "wxUSE_DATAVIEWCTRL must be defined, please read comment near the top of this file."
608 # define wxUSE_DATAVIEWCTRL 0
610 #endif /* !defined(wxUSE_DATAVIEWCTRL) */
612 #ifndef wxUSE_DATEPICKCTRL
613 # ifdef wxABORT_ON_CONFIG_ERROR
614 # error "wxUSE_DATEPICKCTRL must be defined, please read comment near the top of this file."
616 # define wxUSE_DATEPICKCTRL 0
618 #endif /* !defined(wxUSE_DATEPICKCTRL) */
620 #ifndef wxUSE_DC_TRANSFORM_MATRIX
621 # ifdef wxABORT_ON_CONFIG_ERROR
622 # error "wxUSE_DC_TRANSFORM_MATRIX must be defined, please read comment near the top of this file."
624 # define wxUSE_DC_TRANSFORM_MATRIX 1
626 #endif /* wxUSE_DC_TRANSFORM_MATRIX */
628 #ifndef wxUSE_DIRPICKERCTRL
629 # ifdef wxABORT_ON_CONFIG_ERROR
630 # error "wxUSE_DIRPICKERCTRL must be defined, please read comment near the top of this file."
632 # define wxUSE_DIRPICKERCTRL 0
634 #endif /* !defined(wxUSE_DIRPICKERCTRL) */
636 #ifndef wxUSE_DISPLAY
637 # ifdef wxABORT_ON_CONFIG_ERROR
638 # error "wxUSE_DISPLAY must be defined, please read comment near the top of this file."
640 # define wxUSE_DISPLAY 0
642 #endif /* !defined(wxUSE_DISPLAY) */
644 #ifndef wxUSE_DOC_VIEW_ARCHITECTURE
645 # ifdef wxABORT_ON_CONFIG_ERROR
646 # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined, please read comment near the top of this file."
648 # define wxUSE_DOC_VIEW_ARCHITECTURE 0
650 #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
652 #ifndef wxUSE_FILECTRL
653 # ifdef wxABORT_ON_CONFIG_ERROR
654 # error "wxUSE_FILECTRL must be defined, please read comment near the top of this file."
656 # define wxUSE_FILECTRL 0
658 #endif /* !defined(wxUSE_FILECTRL) */
660 #ifndef wxUSE_FILEDLG
661 # ifdef wxABORT_ON_CONFIG_ERROR
662 # error "wxUSE_FILEDLG must be defined, please read comment near the top of this file."
664 # define wxUSE_FILEDLG 0
666 #endif /* !defined(wxUSE_FILEDLG) */
668 #ifndef wxUSE_FILEPICKERCTRL
669 # ifdef wxABORT_ON_CONFIG_ERROR
670 # error "wxUSE_FILEPICKERCTRL must be defined, please read comment near the top of this file."
672 # define wxUSE_FILEPICKERCTRL 0
674 #endif /* !defined(wxUSE_FILEPICKERCTRL) */
676 #ifndef wxUSE_FONTDLG
677 # ifdef wxABORT_ON_CONFIG_ERROR
678 # error "wxUSE_FONTDLG must be defined, please read comment near the top of this file."
680 # define wxUSE_FONTDLG 0
682 #endif /* !defined(wxUSE_FONTDLG) */
684 #ifndef wxUSE_FONTMAP
685 # ifdef wxABORT_ON_CONFIG_ERROR
686 # error "wxUSE_FONTMAP must be defined, please read comment near the top of this file."
688 # define wxUSE_FONTMAP 0
690 #endif /* !defined(wxUSE_FONTMAP) */
692 #ifndef wxUSE_FONTPICKERCTRL
693 # ifdef wxABORT_ON_CONFIG_ERROR
694 # error "wxUSE_FONTPICKERCTRL must be defined, please read comment near the top of this file."
696 # define wxUSE_FONTPICKERCTRL 0
698 #endif /* !defined(wxUSE_FONTPICKERCTRL) */
701 # ifdef wxABORT_ON_CONFIG_ERROR
702 # error "wxUSE_GAUGE must be defined, please read comment near the top of this file."
704 # define wxUSE_GAUGE 0
706 #endif /* !defined(wxUSE_GAUGE) */
708 #ifndef wxUSE_GRAPHICS_CONTEXT
709 # ifdef wxABORT_ON_CONFIG_ERROR
710 # error "wxUSE_GRAPHICS_CONTEXT must be defined, please read comment near the top of this file."
712 # define wxUSE_GRAPHICS_CONTEXT 0
714 #endif /* !defined(wxUSE_GRAPHICS_CONTEXT) */
718 # ifdef wxABORT_ON_CONFIG_ERROR
719 # error "wxUSE_GRID must be defined, please read comment near the top of this file."
721 # define wxUSE_GRID 0
723 #endif /* !defined(wxUSE_GRID) */
725 #ifndef wxUSE_HEADERCTRL
726 # ifdef wxABORT_ON_CONFIG_ERROR
727 # error "wxUSE_HEADERCTRL must be defined, please read comment near the top of this file."
729 # define wxUSE_HEADERCTRL 0
731 #endif /* !defined(wxUSE_HEADERCTRL) */
734 # ifdef wxABORT_ON_CONFIG_ERROR
735 # error "wxUSE_HELP must be defined, please read comment near the top of this file."
737 # define wxUSE_HELP 0
739 #endif /* !defined(wxUSE_HELP) */
741 #ifndef wxUSE_HYPERLINKCTRL
742 # ifdef wxABORT_ON_CONFIG_ERROR
743 # error "wxUSE_HYPERLINKCTRL must be defined, please read comment near the top of this file."
745 # define wxUSE_HYPERLINKCTRL 0
747 #endif /* !defined(wxUSE_HYPERLINKCTRL) */
750 # ifdef wxABORT_ON_CONFIG_ERROR
751 # error "wxUSE_HTML must be defined, please read comment near the top of this file."
753 # define wxUSE_HTML 0
755 #endif /* !defined(wxUSE_HTML) */
757 #ifndef wxUSE_LIBMSPACK
758 # if !defined(__UNIX__)
759 /* set to 0 on platforms that don't have libmspack */
760 # define wxUSE_LIBMSPACK 0
762 # ifdef wxABORT_ON_CONFIG_ERROR
763 # error "wxUSE_LIBMSPACK must be defined, please read comment near the top of this file."
765 # define wxUSE_LIBMSPACK 0
768 #endif /* !defined(wxUSE_LIBMSPACK) */
770 #ifndef wxUSE_ICO_CUR
771 # ifdef wxABORT_ON_CONFIG_ERROR
772 # error "wxUSE_ICO_CUR must be defined, please read comment near the top of this file."
774 # define wxUSE_ICO_CUR 0
776 #endif /* !defined(wxUSE_ICO_CUR) */
779 # ifdef wxABORT_ON_CONFIG_ERROR
780 # error "wxUSE_IFF must be defined, please read comment near the top of this file."
784 #endif /* !defined(wxUSE_IFF) */
786 #ifndef wxUSE_IMAGLIST
787 # ifdef wxABORT_ON_CONFIG_ERROR
788 # error "wxUSE_IMAGLIST must be defined, please read comment near the top of this file."
790 # define wxUSE_IMAGLIST 0
792 #endif /* !defined(wxUSE_IMAGLIST) */
794 #ifndef wxUSE_INFOBAR
795 # ifdef wxABORT_ON_CONFIG_ERROR
796 # error "wxUSE_INFOBAR must be defined, please read comment near the top of this file."
798 # define wxUSE_INFOBAR 0
800 #endif /* !defined(wxUSE_INFOBAR) */
802 #ifndef wxUSE_JOYSTICK
803 # ifdef wxABORT_ON_CONFIG_ERROR
804 # error "wxUSE_JOYSTICK must be defined, please read comment near the top of this file."
806 # define wxUSE_JOYSTICK 0
808 #endif /* !defined(wxUSE_JOYSTICK) */
810 #ifndef wxUSE_LISTBOOK
811 # ifdef wxABORT_ON_CONFIG_ERROR
812 # error "wxUSE_LISTBOOK must be defined, please read comment near the top of this file."
814 # define wxUSE_LISTBOOK 0
816 #endif /* !defined(wxUSE_LISTBOOK) */
818 #ifndef wxUSE_LISTBOX
819 # ifdef wxABORT_ON_CONFIG_ERROR
820 # error "wxUSE_LISTBOX must be defined, please read comment near the top of this file."
822 # define wxUSE_LISTBOX 0
824 #endif /* !defined(wxUSE_LISTBOX) */
826 #ifndef wxUSE_LISTCTRL
827 # ifdef wxABORT_ON_CONFIG_ERROR
828 # error "wxUSE_LISTCTRL must be defined, please read comment near the top of this file."
830 # define wxUSE_LISTCTRL 0
832 #endif /* !defined(wxUSE_LISTCTRL) */
835 # ifdef wxABORT_ON_CONFIG_ERROR
836 # error "wxUSE_LOGGUI must be defined, please read comment near the top of this file."
838 # define wxUSE_LOGGUI 0
840 #endif /* !defined(wxUSE_LOGGUI) */
842 #ifndef wxUSE_LOGWINDOW
843 # ifdef wxABORT_ON_CONFIG_ERROR
844 # error "wxUSE_LOGWINDOW must be defined, please read comment near the top of this file."
846 # define wxUSE_LOGWINDOW 0
848 #endif /* !defined(wxUSE_LOGWINDOW) */
850 #ifndef wxUSE_LOG_DIALOG
851 # ifdef wxABORT_ON_CONFIG_ERROR
852 # error "wxUSE_LOG_DIALOG must be defined, please read comment near the top of this file."
854 # define wxUSE_LOG_DIALOG 0
856 #endif /* !defined(wxUSE_LOG_DIALOG) */
859 # ifdef wxABORT_ON_CONFIG_ERROR
860 # error "wxUSE_MARKUP must be defined, please read comment near the top of this file."
862 # define wxUSE_MARKUP 0
864 #endif /* !defined(wxUSE_MARKUP) */
867 # ifdef wxABORT_ON_CONFIG_ERROR
868 # error "wxUSE_MDI must be defined, please read comment near the top of this file."
872 #endif /* !defined(wxUSE_MDI) */
874 #ifndef wxUSE_MDI_ARCHITECTURE
875 # ifdef wxABORT_ON_CONFIG_ERROR
876 # error "wxUSE_MDI_ARCHITECTURE must be defined, please read comment near the top of this file."
878 # define wxUSE_MDI_ARCHITECTURE 0
880 #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
883 # ifdef wxABORT_ON_CONFIG_ERROR
884 # error "wxUSE_MENUS must be defined, please read comment near the top of this file."
886 # define wxUSE_MENUS 0
888 #endif /* !defined(wxUSE_MENUS) */
891 # ifdef wxABORT_ON_CONFIG_ERROR
892 # error "wxUSE_MSGDLG must be defined, please read comment near the top of this file."
894 # define wxUSE_MSGDLG 0
896 #endif /* !defined(wxUSE_MSGDLG) */
898 #ifndef wxUSE_NOTEBOOK
899 # ifdef wxABORT_ON_CONFIG_ERROR
900 # error "wxUSE_NOTEBOOK must be defined, please read comment near the top of this file."
902 # define wxUSE_NOTEBOOK 0
904 #endif /* !defined(wxUSE_NOTEBOOK) */
906 #ifndef wxUSE_NOTIFICATION_MESSAGE
907 # ifdef wxABORT_ON_CONFIG_ERROR
908 # error "wxUSE_NOTIFICATION_MESSAGE must be defined, please read comment near the top of this file."
910 # define wxUSE_NOTIFICATION_MESSAGE 0
912 #endif /* !defined(wxUSE_NOTIFICATION_MESSAGE) */
914 #ifndef wxUSE_ODCOMBOBOX
915 # ifdef wxABORT_ON_CONFIG_ERROR
916 # error "wxUSE_ODCOMBOBOX must be defined, please read comment near the top of this file."
918 # define wxUSE_ODCOMBOBOX 0
920 #endif /* !defined(wxUSE_ODCOMBOBOX) */
922 #ifndef wxUSE_PALETTE
923 # ifdef wxABORT_ON_CONFIG_ERROR
924 # error "wxUSE_PALETTE must be defined, please read comment near the top of this file."
926 # define wxUSE_PALETTE 0
928 #endif /* !defined(wxUSE_PALETTE) */
930 #ifndef wxUSE_POPUPWIN
931 # ifdef wxABORT_ON_CONFIG_ERROR
932 # error "wxUSE_POPUPWIN must be defined, please read comment near the top of this file."
934 # define wxUSE_POPUPWIN 0
936 #endif /* !defined(wxUSE_POPUPWIN) */
938 #ifndef wxUSE_PREFERENCES_EDITOR
939 # ifdef wxABORT_ON_CONFIG_ERROR
940 # error "wxUSE_PREFERENCES_EDITOR must be defined, please read comment near the top of this file."
942 # define wxUSE_PREFERENCES_EDITOR 0
944 #endif /* !defined(wxUSE_PREFERENCES_EDITOR) */
946 #ifndef wxUSE_PRINTING_ARCHITECTURE
947 # ifdef wxABORT_ON_CONFIG_ERROR
948 # error "wxUSE_PRINTING_ARCHITECTURE must be defined, please read comment near the top of this file."
950 # define wxUSE_PRINTING_ARCHITECTURE 0
952 #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
954 #ifndef wxUSE_RADIOBOX
955 # ifdef wxABORT_ON_CONFIG_ERROR
956 # error "wxUSE_RADIOBOX must be defined, please read comment near the top of this file."
958 # define wxUSE_RADIOBOX 0
960 #endif /* !defined(wxUSE_RADIOBOX) */
962 #ifndef wxUSE_RADIOBTN
963 # ifdef wxABORT_ON_CONFIG_ERROR
964 # error "wxUSE_RADIOBTN must be defined, please read comment near the top of this file."
966 # define wxUSE_RADIOBTN 0
968 #endif /* !defined(wxUSE_RADIOBTN) */
970 #ifndef wxUSE_REARRANGECTRL
971 # ifdef wxABORT_ON_CONFIG_ERROR
972 # error "wxUSE_REARRANGECTRL must be defined, please read comment near the top of this file."
974 # define wxUSE_REARRANGECTRL 0
976 #endif /* !defined(wxUSE_REARRANGECTRL) */
979 # ifdef wxABORT_ON_CONFIG_ERROR
980 # error "wxUSE_RIBBON must be defined, please read comment near the top of this file."
982 # define wxUSE_RIBBON 0
984 #endif /* !defined(wxUSE_RIBBON) */
986 #ifndef wxUSE_RICHMSGDLG
987 # ifdef wxABORT_ON_CONFIG_ERROR
988 # error "wxUSE_RICHMSGDLG must be defined, please read comment near the top of this file."
990 # define wxUSE_RICHMSGDLG 0
992 #endif /* !defined(wxUSE_RICHMSGDLG) */
994 #ifndef wxUSE_RICHTOOLTIP
995 # ifdef wxABORT_ON_CONFIG_ERROR
996 # error "wxUSE_RICHTOOLTIP must be defined, please read comment near the top of this file."
998 # define wxUSE_RICHTOOLTIP 0
1000 #endif /* !defined(wxUSE_RICHTOOLTIP) */
1003 # ifdef wxABORT_ON_CONFIG_ERROR
1004 # error "wxUSE_SASH must be defined, please read comment near the top of this file."
1006 # define wxUSE_SASH 0
1008 #endif /* !defined(wxUSE_SASH) */
1010 #ifndef wxUSE_SCROLLBAR
1011 # ifdef wxABORT_ON_CONFIG_ERROR
1012 # error "wxUSE_SCROLLBAR must be defined, please read comment near the top of this file."
1014 # define wxUSE_SCROLLBAR 0
1016 #endif /* !defined(wxUSE_SCROLLBAR) */
1018 #ifndef wxUSE_SLIDER
1019 # ifdef wxABORT_ON_CONFIG_ERROR
1020 # error "wxUSE_SLIDER must be defined, please read comment near the top of this file."
1022 # define wxUSE_SLIDER 0
1024 #endif /* !defined(wxUSE_SLIDER) */
1027 # ifdef wxABORT_ON_CONFIG_ERROR
1028 # error "wxUSE_SOUND must be defined, please read comment near the top of this file."
1030 # define wxUSE_SOUND 0
1032 #endif /* !defined(wxUSE_SOUND) */
1034 #ifndef wxUSE_SPINBTN
1035 # ifdef wxABORT_ON_CONFIG_ERROR
1036 # error "wxUSE_SPINBTN must be defined, please read comment near the top of this file."
1038 # define wxUSE_SPINBTN 0
1040 #endif /* !defined(wxUSE_SPINBTN) */
1042 #ifndef wxUSE_SPINCTRL
1043 # ifdef wxABORT_ON_CONFIG_ERROR
1044 # error "wxUSE_SPINCTRL must be defined, please read comment near the top of this file."
1046 # define wxUSE_SPINCTRL 0
1048 #endif /* !defined(wxUSE_SPINCTRL) */
1050 #ifndef wxUSE_SPLASH
1051 # ifdef wxABORT_ON_CONFIG_ERROR
1052 # error "wxUSE_SPLASH must be defined, please read comment near the top of this file."
1054 # define wxUSE_SPLASH 0
1056 #endif /* !defined(wxUSE_SPLASH) */
1058 #ifndef wxUSE_SPLITTER
1059 # ifdef wxABORT_ON_CONFIG_ERROR
1060 # error "wxUSE_SPLITTER must be defined, please read comment near the top of this file."
1062 # define wxUSE_SPLITTER 0
1064 #endif /* !defined(wxUSE_SPLITTER) */
1066 #ifndef wxUSE_STATBMP
1067 # ifdef wxABORT_ON_CONFIG_ERROR
1068 # error "wxUSE_STATBMP must be defined, please read comment near the top of this file."
1070 # define wxUSE_STATBMP 0
1072 #endif /* !defined(wxUSE_STATBMP) */
1074 #ifndef wxUSE_STATBOX
1075 # ifdef wxABORT_ON_CONFIG_ERROR
1076 # error "wxUSE_STATBOX must be defined, please read comment near the top of this file."
1078 # define wxUSE_STATBOX 0
1080 #endif /* !defined(wxUSE_STATBOX) */
1082 #ifndef wxUSE_STATLINE
1083 # ifdef wxABORT_ON_CONFIG_ERROR
1084 # error "wxUSE_STATLINE must be defined, please read comment near the top of this file."
1086 # define wxUSE_STATLINE 0
1088 #endif /* !defined(wxUSE_STATLINE) */
1090 #ifndef wxUSE_STATTEXT
1091 # ifdef wxABORT_ON_CONFIG_ERROR
1092 # error "wxUSE_STATTEXT must be defined, please read comment near the top of this file."
1094 # define wxUSE_STATTEXT 0
1096 #endif /* !defined(wxUSE_STATTEXT) */
1098 #ifndef wxUSE_STATUSBAR
1099 # ifdef wxABORT_ON_CONFIG_ERROR
1100 # error "wxUSE_STATUSBAR must be defined, please read comment near the top of this file."
1102 # define wxUSE_STATUSBAR 0
1104 #endif /* !defined(wxUSE_STATUSBAR) */
1106 #ifndef wxUSE_TASKBARICON
1107 # ifdef wxABORT_ON_CONFIG_ERROR
1108 # error "wxUSE_TASKBARICON must be defined, please read comment near the top of this file."
1110 # define wxUSE_TASKBARICON 0
1112 #endif /* !defined(wxUSE_TASKBARICON) */
1114 #ifndef wxUSE_TEXTCTRL
1115 # ifdef wxABORT_ON_CONFIG_ERROR
1116 # error "wxUSE_TEXTCTRL must be defined, please read comment near the top of this file."
1118 # define wxUSE_TEXTCTRL 0
1120 #endif /* !defined(wxUSE_TEXTCTRL) */
1122 #ifndef wxUSE_TIMEPICKCTRL
1123 # ifdef wxABORT_ON_CONFIG_ERROR
1124 # error "wxUSE_TIMEPICKCTRL must be defined, please read comment near the top of this file."
1126 # define wxUSE_TIMEPICKCTRL 0
1128 #endif /* !defined(wxUSE_TIMEPICKCTRL) */
1130 #ifndef wxUSE_TIPWINDOW
1131 # ifdef wxABORT_ON_CONFIG_ERROR
1132 # error "wxUSE_TIPWINDOW must be defined, please read comment near the top of this file."
1134 # define wxUSE_TIPWINDOW 0
1136 #endif /* !defined(wxUSE_TIPWINDOW) */
1138 #ifndef wxUSE_TOOLBAR
1139 # ifdef wxABORT_ON_CONFIG_ERROR
1140 # error "wxUSE_TOOLBAR must be defined, please read comment near the top of this file."
1142 # define wxUSE_TOOLBAR 0
1144 #endif /* !defined(wxUSE_TOOLBAR) */
1146 #ifndef wxUSE_TOOLTIPS
1147 # ifdef wxABORT_ON_CONFIG_ERROR
1148 # error "wxUSE_TOOLTIPS must be defined, please read comment near the top of this file."
1150 # define wxUSE_TOOLTIPS 0
1152 #endif /* !defined(wxUSE_TOOLTIPS) */
1154 #ifndef wxUSE_TREECTRL
1155 # ifdef wxABORT_ON_CONFIG_ERROR
1156 # error "wxUSE_TREECTRL must be defined, please read comment near the top of this file."
1158 # define wxUSE_TREECTRL 0
1160 #endif /* !defined(wxUSE_TREECTRL) */
1162 #ifndef wxUSE_TREELISTCTRL
1163 # ifdef wxABORT_ON_CONFIG_ERROR
1164 # error "wxUSE_TREELISTCTRL must be defined, please read comment near the top of this file."
1166 # define wxUSE_TREELISTCTRL 0
1168 #endif /* !defined(wxUSE_TREELISTCTRL) */
1170 #ifndef wxUSE_UIACTIONSIMULATOR
1171 # ifdef wxABORT_ON_CONFIG_ERROR
1172 # error "wxUSE_UIACTIONSIMULATOR must be defined, please read comment near the top of this file."
1174 # define wxUSE_UIACTIONSIMULATOR 0
1176 #endif /* !defined(wxUSE_UIACTIONSIMULATOR) */
1178 #ifndef wxUSE_VALIDATORS
1179 # ifdef wxABORT_ON_CONFIG_ERROR
1180 # error "wxUSE_VALIDATORS must be defined, please read comment near the top of this file."
1182 # define wxUSE_VALIDATORS 0
1184 #endif /* !defined(wxUSE_VALIDATORS) */
1186 #ifndef wxUSE_WEBVIEW
1187 # ifdef wxABORT_ON_CONFIG_ERROR
1188 # error "wxUSE_WEBVIEW must be defined, please read comment near the top of this file."
1190 # define wxUSE_WEBVIEW 0
1192 #endif /* !defined(wxUSE_WEBVIEW) */
1194 #ifndef wxUSE_WXHTML_HELP
1195 # ifdef wxABORT_ON_CONFIG_ERROR
1196 # error "wxUSE_WXHTML_HELP must be defined, please read comment near the top of this file."
1198 # define wxUSE_WXHTML_HELP 0
1200 #endif /* !defined(wxUSE_WXHTML_HELP) */
1203 # ifdef wxABORT_ON_CONFIG_ERROR
1204 # error "wxUSE_XRC must be defined, please read comment near the top of this file."
1206 # define wxUSE_XRC 0
1208 #endif /* !defined(wxUSE_XRC) */
1210 #endif /* wxUSE_GUI */
1213 Section 2: platform-specific checks.
1215 This must be done after checking that everything is defined as the platform
1216 checks use wxUSE_XXX symbols in #if tests.
1219 #if defined(__WXWINCE__)
1220 # include "wx/msw/wince/chkconf.h"
1221 #elif defined(__WINDOWS__)
1222 # include "wx/msw/chkconf.h"
1223 # if defined(__WXGTK__)
1224 # include "wx/gtk/chkconf.h"
1226 #elif defined(__WXGTK__)
1227 # include "wx/gtk/chkconf.h"
1228 #elif defined(__WXCOCOA__)
1229 # include "wx/cocoa/chkconf.h"
1230 #elif defined(__WXMAC__)
1231 # include "wx/osx/chkconf.h"
1232 #elif defined(__OS2__)
1233 # include "wx/os2/chkconf.h"
1234 #elif defined(__WXDFB__)
1235 # include "wx/dfb/chkconf.h"
1236 #elif defined(__WXMOTIF__)
1237 # include "wx/motif/chkconf.h"
1238 #elif defined(__WXX11__)
1239 # include "wx/x11/chkconf.h"
1240 #elif defined(__WXANDROID__)
1241 # include "wx/android/chkconf.h"
1245 __UNIX__ is also defined under Cygwin but we shouldn't perform these checks
1246 there if we're building Windows ports.
1248 #if defined(__UNIX__) && !defined(__WINDOWS__)
1249 # include "wx/unix/chkconf.h"
1252 #ifdef __WXUNIVERSAL__
1253 # include "wx/univ/chkconf.h"
1257 Section 3a: check consistency of the non-GUI settings.
1260 #if WXWIN_COMPATIBILITY_2_6
1261 # if !WXWIN_COMPATIBILITY_2_8
1262 # ifdef wxABORT_ON_CONFIG_ERROR
1263 # error "2.6.X compatibility requires 2.8.X compatibility"
1265 # undef WXWIN_COMPATIBILITY_2_8
1266 # define WXWIN_COMPATIBILITY_2_8 1
1269 #endif /* WXWIN_COMPATIBILITY_2_6 */
1271 #if wxUSE_ARCHIVE_STREAMS
1272 # if !wxUSE_DATETIME
1273 # ifdef wxABORT_ON_CONFIG_ERROR
1274 # error "wxArchive requires wxUSE_DATETIME"
1276 # undef wxUSE_ARCHIVE_STREAMS
1277 # define wxUSE_ARCHIVE_STREAMS 0
1280 #endif /* wxUSE_ARCHIVE_STREAMS */
1282 #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
1283 # if !wxUSE_PROTOCOL
1284 # ifdef wxABORT_ON_CONFIG_ERROR
1285 # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
1287 # undef wxUSE_PROTOCOL
1288 # define wxUSE_PROTOCOL 1
1291 #endif /* wxUSE_PROTOCOL_XXX */
1294 # if !wxUSE_PROTOCOL
1295 # ifdef wxABORT_ON_CONFIG_ERROR
1296 # error "wxUSE_URL requires wxUSE_PROTOCOL"
1298 # undef wxUSE_PROTOCOL
1299 # define wxUSE_PROTOCOL 1
1302 #endif /* wxUSE_URL */
1306 # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
1307 # ifdef wxABORT_ON_CONFIG_ERROR
1308 # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
1310 # undef wxUSE_SOCKETS
1311 # define wxUSE_SOCKETS 1
1317 # ifdef wxABORT_ON_CONFIG_ERROR
1318 # error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
1320 # undef wxUSE_STREAMS
1321 # define wxUSE_STREAMS 1
1324 #endif /* wxUSE_PROTOCOL */
1326 /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
1328 # if !wxUSE_FILESYSTEM
1329 # ifdef wxABORT_ON_CONFIG_ERROR
1330 # error "wxHTML requires wxFileSystem"
1332 # undef wxUSE_FILESYSTEM
1333 # define wxUSE_FILESYSTEM 1
1336 #endif /* wxUSE_HTML */
1338 #if wxUSE_FS_ARCHIVE
1339 # if !wxUSE_FILESYSTEM
1340 # ifdef wxABORT_ON_CONFIG_ERROR
1341 # error "wxArchiveFSHandler requires wxFileSystem"
1343 # undef wxUSE_FILESYSTEM
1344 # define wxUSE_FILESYSTEM 1
1347 # if !wxUSE_ARCHIVE_STREAMS
1348 # ifdef wxABORT_ON_CONFIG_ERROR
1349 # error "wxArchiveFSHandler requires wxArchive"
1351 # undef wxUSE_ARCHIVE_STREAMS
1352 # define wxUSE_ARCHIVE_STREAMS 1
1355 #endif /* wxUSE_FS_ARCHIVE */
1357 #if wxUSE_FILESYSTEM
1359 # ifdef wxABORT_ON_CONFIG_ERROR
1360 # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
1362 # undef wxUSE_STREAMS
1363 # define wxUSE_STREAMS 1
1366 # if !wxUSE_FILE && !wxUSE_FFILE
1367 # ifdef wxABORT_ON_CONFIG_ERROR
1368 # error "wxUSE_FILESYSTEM requires either wxUSE_FILE or wxUSE_FFILE"
1371 # define wxUSE_FILE 1
1373 # define wxUSE_FFILE 1
1376 #endif /* wxUSE_FILESYSTEM */
1379 # if !wxUSE_PROTOCOL
1380 # ifdef wxABORT_ON_CONFIG_ERROR
1381 # error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
1383 # undef wxUSE_PROTOCOL
1384 # define wxUSE_PROTOCOL 1
1387 #endif /* wxUSE_FS_INET */
1389 #if wxUSE_STOPWATCH || wxUSE_DATETIME
1390 # if !wxUSE_LONGLONG
1391 # ifdef wxABORT_ON_CONFIG_ERROR
1392 # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
1394 # undef wxUSE_LONGLONG
1395 # define wxUSE_LONGLONG 1
1398 #endif /* wxUSE_STOPWATCH */
1400 #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
1401 # ifdef wxABORT_ON_CONFIG_ERROR
1402 # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
1404 # undef wxUSE_TEXTFILE
1405 # define wxUSE_TEXTFILE 1
1407 #endif /* wxUSE_MIMETYPE */
1409 #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
1410 # ifdef wxABORT_ON_CONFIG_ERROR
1411 # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
1413 # undef wxUSE_TEXTBUFFER
1414 # define wxUSE_TEXTBUFFER 1
1416 #endif /* wxUSE_TEXTFILE */
1418 #if wxUSE_TEXTFILE && !wxUSE_FILE
1419 # ifdef wxABORT_ON_CONFIG_ERROR
1420 # error "wxUSE_TEXTFILE requires wxUSE_FILE"
1423 # define wxUSE_FILE 1
1425 #endif /* wxUSE_TEXTFILE */
1427 #if !wxUSE_DYNLIB_CLASS
1428 # if wxUSE_DYNAMIC_LOADER
1429 # ifdef wxABORT_ON_CONFIG_ERROR
1430 # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
1432 # define wxUSE_DYNLIB_CLASS 1
1435 #endif /* wxUSE_DYNLIB_CLASS */
1439 # ifdef wxABORT_ON_CONFIG_ERROR
1440 # error "wxZip requires wxZlib"
1443 # define wxUSE_ZLIB 1
1446 # if !wxUSE_ARCHIVE_STREAMS
1447 # ifdef wxABORT_ON_CONFIG_ERROR
1448 # error "wxZip requires wxArchive"
1450 # undef wxUSE_ARCHIVE_STREAMS
1451 # define wxUSE_ARCHIVE_STREAMS 1
1454 #endif /* wxUSE_ZIPSTREAM */
1457 # if !wxUSE_ARCHIVE_STREAMS
1458 # ifdef wxABORT_ON_CONFIG_ERROR
1459 # error "wxTar requires wxArchive"
1461 # undef wxUSE_ARCHIVE_STREAMS
1462 # define wxUSE_ARCHIVE_STREAMS 1
1465 #endif /* wxUSE_TARSTREAM */
1468 Section 3b: the tests for the GUI settings only.
1472 #if wxUSE_ACCESSIBILITY && !defined(__WXMSW__)
1473 # ifdef wxABORT_ON_CONFIG_ERROR
1474 # error "wxUSE_ACCESSIBILITY is currently only supported under wxMSW"
1476 # undef wxUSE_ACCESSIBILITY
1477 # define wxUSE_ACCESSIBILITY 0
1479 #endif /* wxUSE_ACCESSIBILITY */
1481 #if wxUSE_BUTTON || \
1482 wxUSE_CALENDARCTRL || \
1485 wxUSE_BMPBUTTON || \
1487 wxUSE_CHECKLISTBOX || \
1491 wxUSE_HEADERCTRL || \
1497 wxUSE_REARRANGECTRL || \
1498 wxUSE_SCROLLBAR || \
1506 wxUSE_STATUSBAR || \
1511 # if !wxUSE_CONTROLS
1512 # ifdef wxABORT_ON_CONFIG_ERROR
1513 # error "wxUSE_CONTROLS unset but some controls used"
1515 # undef wxUSE_CONTROLS
1516 # define wxUSE_CONTROLS 1
1519 #endif /* controls */
1523 # ifdef wxABORT_ON_CONFIG_ERROR
1524 # error "wxUSE_BMPBUTTON requires wxUSE_BUTTON"
1526 # undef wxUSE_BUTTON
1527 # define wxUSE_BUTTON 1
1530 #endif /* wxUSE_BMPBUTTON */
1532 #if wxUSE_COMMANDLINKBUTTON
1534 # ifdef wxABORT_ON_CONFIG_ERROR
1535 # error "wxUSE_COMMANDLINKBUTTON requires wxUSE_BUTTON"
1537 # undef wxUSE_BUTTON
1538 # define wxUSE_BUTTON 1
1541 #endif /* wxUSE_COMMANDLINKBUTTON */
1544 wxUSE_BOOKCTRL should be only used if any of the controls deriving from it
1547 #ifdef wxUSE_BOOKCTRL
1548 # ifdef wxABORT_ON_CONFIG_ERROR
1549 # error "wxUSE_BOOKCTRL is defined automatically, don't define it"
1551 # undef wxUSE_BOOKCTRL
1555 #define wxUSE_BOOKCTRL (wxUSE_NOTEBOOK || \
1557 wxUSE_CHOICEBOOK || \
1562 # if !wxUSE_BUTTON || !wxUSE_STATLINE
1563 # ifdef wxABORT_ON_CONFIG_ERROR
1564 # error "wxUSE_COLLPANE requires wxUSE_BUTTON and wxUSE_STATLINE"
1566 # undef wxUSE_COLLPANE
1567 # define wxUSE_COLLPANE 0
1570 #endif /* wxUSE_COLLPANE */
1573 # if !wxUSE_LISTCTRL
1574 # ifdef wxABORT_ON_CONFIG_ERROR
1575 # error "wxListbook requires wxListCtrl"
1577 # undef wxUSE_LISTCTRL
1578 # define wxUSE_LISTCTRL 1
1581 #endif /* wxUSE_LISTBOOK */
1583 #if wxUSE_CHOICEBOOK
1585 # ifdef wxABORT_ON_CONFIG_ERROR
1586 # error "wxChoicebook requires wxChoice"
1588 # undef wxUSE_CHOICE
1589 # define wxUSE_CHOICE 1
1592 #endif /* wxUSE_CHOICEBOOK */
1596 # ifdef wxABORT_ON_CONFIG_ERROR
1597 # error "wxToolbook requires wxToolBar"
1599 # undef wxUSE_TOOLBAR
1600 # define wxUSE_TOOLBAR 1
1603 #endif /* wxUSE_TOOLBOOK */
1605 #if !wxUSE_ODCOMBOBOX
1606 # if wxUSE_BITMAPCOMBOBOX
1607 # ifdef wxABORT_ON_CONFIG_ERROR
1608 # error "wxBitmapComboBox requires wxOwnerDrawnComboBox"
1610 # undef wxUSE_BITMAPCOMBOBOX
1611 # define wxUSE_BITMAPCOMBOBOX 0
1614 #endif /* !wxUSE_ODCOMBOBOX */
1616 #if !wxUSE_HEADERCTRL
1617 # if wxUSE_DATAVIEWCTRL || wxUSE_GRID
1618 # ifdef wxABORT_ON_CONFIG_ERROR
1619 # error "wxDataViewCtrl and wxGrid require wxHeaderCtrl"
1621 # undef wxUSE_HEADERCTRL
1622 # define wxUSE_HEADERCTRL 1
1625 #endif /* !wxUSE_HEADERCTRL */
1627 #if wxUSE_REARRANGECTRL
1628 # if !wxUSE_CHECKLISTBOX
1629 # ifdef wxABORT_ON_CONFIG_ERROR
1630 # error "wxRearrangeCtrl requires wxCheckListBox"
1632 # undef wxUSE_REARRANGECTRL
1633 # define wxUSE_REARRANGECTRL 0
1636 #endif /* wxUSE_REARRANGECTRL */
1638 #if wxUSE_RICHMSGDLG
1640 # ifdef wxABORT_ON_CONFIG_ERROR
1641 # error "wxUSE_RICHMSGDLG requires wxUSE_MSGDLG"
1643 # undef wxUSE_MSGDLG
1644 # define wxUSE_MSGDLG 1
1647 #endif /* wxUSE_RICHMSGDLG */
1649 /* don't attempt to use native status bar on the platforms not having it */
1650 #ifndef wxUSE_NATIVE_STATUSBAR
1651 # define wxUSE_NATIVE_STATUSBAR 0
1652 #elif wxUSE_NATIVE_STATUSBAR
1653 # if defined(__WXUNIVERSAL__) || !(defined(__WXMSW__) || defined(__WXMAC__))
1654 # undef wxUSE_NATIVE_STATUSBAR
1655 # define wxUSE_NATIVE_STATUSBAR 0
1659 #if wxUSE_GRAPHICS_CONTEXT && !wxUSE_GEOMETRY
1660 # ifdef wxABORT_ON_CONFIG_ERROR
1661 # error "wxUSE_GRAPHICS_CONTEXT requires wxUSE_GEOMETRY"
1663 # undef wxUSE_GRAPHICS_CONTEXT
1664 # define wxUSE_GRAPHICS_CONTEXT 0
1666 #endif /* wxUSE_GRAPHICS_CONTEXT */
1669 /* generic controls dependencies */
1670 #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1671 # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1672 /* all common controls are needed by these dialogs */
1673 # if !defined(wxUSE_CHOICE) || \
1674 !defined(wxUSE_TEXTCTRL) || \
1675 !defined(wxUSE_BUTTON) || \
1676 !defined(wxUSE_CHECKBOX) || \
1677 !defined(wxUSE_STATTEXT)
1678 # ifdef wxABORT_ON_CONFIG_ERROR
1679 # error "These common controls are needed by common dialogs"
1681 # undef wxUSE_CHOICE
1682 # define wxUSE_CHOICE 1
1683 # undef wxUSE_TEXTCTRL
1684 # define wxUSE_TEXTCTRL 1
1685 # undef wxUSE_BUTTON
1686 # define wxUSE_BUTTON 1
1687 # undef wxUSE_CHECKBOX
1688 # define wxUSE_CHECKBOX 1
1689 # undef wxUSE_STATTEXT
1690 # define wxUSE_STATTEXT 1
1694 #endif /* !wxMSW || wxUniv */
1696 /* generic file dialog depends on (generic) file control */
1697 #if wxUSE_FILEDLG && !wxUSE_FILECTRL && \
1698 (defined(__WXUNIVERSAL__) || defined(__WXGTK__))
1699 # ifdef wxABORT_ON_CONFIG_ERROR
1700 # error "Generic wxFileDialog requires wxFileCtrl"
1702 # undef wxUSE_FILECTRL
1703 # define wxUSE_FILECTRL 1
1705 #endif /* wxUSE_FILEDLG */
1707 /* common dependencies */
1708 #if wxUSE_ARTPROVIDER_TANGO
1709 # if !(wxUSE_STREAMS && wxUSE_IMAGE && wxUSE_LIBPNG)
1710 # ifdef wxABORT_ON_CONFIG_ERROR
1711 # error "Tango art provider requires wxImage with streams and PNG support"
1713 # undef wxUSE_ARTPROVIDER_TANGO
1714 # define wxUSE_ARTPROVIDER_TANGO 0
1717 #endif /* wxUSE_ARTPROVIDER_TANGO */
1719 #if wxUSE_CALENDARCTRL
1720 # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1721 # ifdef wxABORT_ON_CONFIG_ERROR
1722 # error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1724 # undef wxUSE_SPINBTN
1725 # undef wxUSE_COMBOBOX
1726 # define wxUSE_SPINBTN 1
1727 # define wxUSE_COMBOBOX 1
1731 # if !wxUSE_DATETIME
1732 # ifdef wxABORT_ON_CONFIG_ERROR
1733 # error "wxCalendarCtrl requires wxUSE_DATETIME"
1735 # undef wxUSE_DATETIME
1736 # define wxUSE_DATETIME 1
1739 #endif /* wxUSE_CALENDARCTRL */
1741 #if wxUSE_DATEPICKCTRL || wxUSE_TIMEPICKCTRL
1742 # if !wxUSE_DATETIME
1743 # ifdef wxABORT_ON_CONFIG_ERROR
1744 # error "wxDatePickerCtrl and wxTimePickerCtrl requires wxUSE_DATETIME"
1746 # undef wxUSE_DATETIME
1747 # define wxUSE_DATETIME 1
1750 #endif /* wxUSE_DATEPICKCTRL || wxUSE_TIMEPICKCTRL */
1752 #if wxUSE_CHECKLISTBOX
1754 # ifdef wxABORT_ON_CONFIG_ERROR
1755 # error "wxCheckListBox requires wxListBox"
1757 # undef wxUSE_LISTBOX
1758 # define wxUSE_LISTBOX 1
1761 #endif /* wxUSE_CHECKLISTBOX */
1765 # ifdef wxABORT_ON_CONFIG_ERROR
1766 # error "Choice dialogs requires wxListBox"
1768 # undef wxUSE_LISTBOX
1769 # define wxUSE_LISTBOX 1
1772 #endif /* wxUSE_CHOICEDLG */
1775 # if !wxUSE_DATETIME
1776 # ifdef wxABORT_ON_CONFIG_ERROR
1777 # error "wxFileCtrl requires wxDateTime"
1779 # undef wxUSE_DATETIME
1780 # define wxUSE_DATETIME 1
1783 #endif /* wxUSE_FILECTRL */
1786 # if !wxUSE_BMPBUTTON
1787 # ifdef wxABORT_ON_CONFIG_ERROR
1788 # error "wxUSE_HELP requires wxUSE_BMPBUTTON"
1790 # undef wxUSE_BMPBUTTON
1791 # define wxUSE_BMPBUTTON 1
1795 # if !wxUSE_CHOICEDLG
1796 # ifdef wxABORT_ON_CONFIG_ERROR
1797 # error "wxUSE_HELP requires wxUSE_CHOICEDLG"
1799 # undef wxUSE_CHOICEDLG
1800 # define wxUSE_CHOICEDLG 1
1803 #endif /* wxUSE_HELP */
1805 #if wxUSE_MS_HTML_HELP
1807 this doesn't make sense for platforms other than MSW but we still
1808 define it in wx/setup_inc.h so don't complain if it happens to be
1809 defined under another platform but just silently fix it.
1812 # undef wxUSE_MS_HTML_HELP
1813 # define wxUSE_MS_HTML_HELP 0
1815 #endif /* wxUSE_MS_HTML_HELP */
1817 #if wxUSE_WXHTML_HELP
1818 # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL
1819 # ifdef wxABORT_ON_CONFIG_ERROR
1820 # error "Built in help controller can't be compiled"
1823 # define wxUSE_HELP 1
1825 # define wxUSE_HTML 1
1826 # undef wxUSE_COMBOBOX
1827 # define wxUSE_COMBOBOX 1
1828 # undef wxUSE_NOTEBOOK
1829 # define wxUSE_NOTEBOOK 1
1830 # undef wxUSE_SPINCTRL
1831 # define wxUSE_SPINCTRL 1
1834 #endif /* wxUSE_WXHTML_HELP */
1838 The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the
1839 user explicitly wants this and disable all other features that require
1842 # if wxUSE_DRAGIMAGE
1843 # ifdef wxABORT_ON_CONFIG_ERROR
1844 # error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE"
1846 # undef wxUSE_DRAGIMAGE
1847 # define wxUSE_DRAGIMAGE 0
1852 # ifdef wxABORT_ON_CONFIG_ERROR
1853 # error "wxUSE_LIBPNG requires wxUSE_IMAGE"
1855 # undef wxUSE_LIBPNG
1856 # define wxUSE_LIBPNG 0
1861 # ifdef wxABORT_ON_CONFIG_ERROR
1862 # error "wxUSE_LIBJPEG requires wxUSE_IMAGE"
1864 # undef wxUSE_LIBJPEG
1865 # define wxUSE_LIBJPEG 0
1870 # ifdef wxABORT_ON_CONFIG_ERROR
1871 # error "wxUSE_LIBTIFF requires wxUSE_IMAGE"
1873 # undef wxUSE_LIBTIFF
1874 # define wxUSE_LIBTIFF 0
1879 # ifdef wxABORT_ON_CONFIG_ERROR
1880 # error "wxUSE_GIF requires wxUSE_IMAGE"
1883 # define wxUSE_GIF 0
1888 # ifdef wxABORT_ON_CONFIG_ERROR
1889 # error "wxUSE_PNM requires wxUSE_IMAGE"
1892 # define wxUSE_PNM 0
1897 # ifdef wxABORT_ON_CONFIG_ERROR
1898 # error "wxUSE_PCX requires wxUSE_IMAGE"
1901 # define wxUSE_PCX 0
1906 # ifdef wxABORT_ON_CONFIG_ERROR
1907 # error "wxUSE_IFF requires wxUSE_IMAGE"
1910 # define wxUSE_IFF 0
1915 # ifdef wxABORT_ON_CONFIG_ERROR
1916 # error "wxUSE_TOOLBAR requires wxUSE_IMAGE"
1918 # undef wxUSE_TOOLBAR
1919 # define wxUSE_TOOLBAR 0
1924 # ifdef wxABORT_ON_CONFIG_ERROR
1925 # error "wxUSE_XPM requires wxUSE_IMAGE"
1928 # define wxUSE_XPM 0
1932 #endif /* !wxUSE_IMAGE */
1934 #if wxUSE_DOC_VIEW_ARCHITECTURE
1936 # ifdef wxABORT_ON_CONFIG_ERROR
1937 # error "DocView requires wxUSE_MENUS"
1940 # define wxUSE_MENUS 1
1944 # if !wxUSE_CHOICEDLG
1945 # ifdef wxABORT_ON_CONFIG_ERROR
1946 # error "DocView requires wxUSE_CHOICEDLG"
1948 # undef wxUSE_CHOICEDLG
1949 # define wxUSE_CHOICEDLG 1
1953 # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1954 # ifdef wxABORT_ON_CONFIG_ERROR
1955 # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1957 # undef wxUSE_STREAMS
1958 # define wxUSE_STREAMS 1
1962 # if !wxUSE_FILE_HISTORY
1963 # ifdef wxABORT_ON_CONFIG_ERROR
1964 # error "DocView requires wxUSE_FILE_HISTORY"
1966 # undef wxUSE_FILE_HISTORY
1967 # define wxUSE_FILE_HISTORY 1
1970 #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1972 #if wxUSE_PRINTING_ARCHITECTURE
1973 # if !wxUSE_COMBOBOX
1974 # ifdef wxABORT_ON_CONFIG_ERROR
1975 # error "Print dialog requires wxUSE_COMBOBOX"
1977 # undef wxUSE_COMBOBOX
1978 # define wxUSE_COMBOBOX 1
1981 #endif /* wxUSE_PRINTING_ARCHITECTURE */
1983 #if wxUSE_MDI_ARCHITECTURE
1985 # ifdef wxABORT_ON_CONFIG_ERROR
1986 # error "MDI requires wxUSE_MDI"
1989 # define wxUSE_MDI 1
1993 # if !wxUSE_DOC_VIEW_ARCHITECTURE
1994 # ifdef wxABORT_ON_CONFIG_ERROR
1995 # error "wxUSE_MDI_ARCHITECTURE requires wxUSE_DOC_VIEW_ARCHITECTURE"
1997 # undef wxUSE_DOC_VIEW_ARCHITECTURE
1998 # define wxUSE_DOC_VIEW_ARCHITECTURE 1
2001 #endif /* wxUSE_MDI_ARCHITECTURE */
2004 # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
2005 # ifdef wxABORT_ON_CONFIG_ERROR
2006 # error "wxUSE_FILEDLG is required by wxUSE_DOC_VIEW_ARCHITECTURE and wxUSE_WXHTML_HELP!"
2008 # undef wxUSE_FILEDLG
2009 # define wxUSE_FILEDLG 1
2012 #endif /* wxUSE_FILEDLG */
2014 #if !wxUSE_GAUGE || !wxUSE_BUTTON
2015 # if wxUSE_PROGRESSDLG
2016 # ifdef wxABORT_ON_CONFIG_ERROR
2017 # error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON"
2020 # undef wxUSE_BUTTON
2021 # define wxUSE_GAUGE 1
2022 # define wxUSE_BUTTON 1
2025 #endif /* !wxUSE_GAUGE */
2028 # if wxUSE_FONTDLG || \
2030 wxUSE_CHOICEDLG || \
2031 wxUSE_NUMBERDLG || \
2034 wxUSE_STARTUP_TIPS || \
2036 # ifdef wxABORT_ON_CONFIG_ERROR
2037 # error "Common and generic dialogs require wxUSE_BUTTON"
2039 # undef wxUSE_BUTTON
2040 # define wxUSE_BUTTON 1
2043 #endif /* !wxUSE_BUTTON */
2046 # if wxUSE_TOOLBAR_NATIVE
2047 # ifdef wxABORT_ON_CONFIG_ERROR
2048 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
2050 # undef wxUSE_TOOLBAR_NATIVE
2051 # define wxUSE_TOOLBAR_NATIVE 0
2057 # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL || wxUSE_TREELISTCTRL
2058 # ifdef wxABORT_ON_CONFIG_ERROR
2059 # error "wxImageList must be compiled as well"
2061 # undef wxUSE_IMAGLIST
2062 # define wxUSE_IMAGLIST 1
2065 #endif /* !wxUSE_IMAGLIST */
2068 # if !wxUSE_RADIOBTN
2069 # ifdef wxABORT_ON_CONFIG_ERROR
2070 # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN"
2072 # undef wxUSE_RADIOBTN
2073 # define wxUSE_RADIOBTN 1
2077 # ifdef wxABORT_ON_CONFIG_ERROR
2078 # error "wxUSE_RADIOBOX requires wxUSE_STATBOX"
2080 # undef wxUSE_STATBOX
2081 # define wxUSE_STATBOX 1
2084 #endif /* wxUSE_RADIOBOX */
2087 # if !wxUSE_TEXTCTRL
2088 # ifdef wxABORT_ON_CONFIG_ERROR
2089 # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
2091 # undef wxUSE_TEXTCTRL
2092 # define wxUSE_TEXTCTRL 1
2095 #endif /* wxUSE_LOGWINDOW */
2097 #if wxUSE_LOG_DIALOG
2098 # if !wxUSE_LISTCTRL || !wxUSE_BUTTON
2099 # ifdef wxABORT_ON_CONFIG_ERROR
2100 # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON"
2102 # undef wxUSE_LISTCTRL
2103 # define wxUSE_LISTCTRL 1
2104 # undef wxUSE_BUTTON
2105 # define wxUSE_BUTTON 1
2108 #endif /* wxUSE_LOG_DIALOG */
2110 #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
2111 # ifdef wxABORT_ON_CONFIG_ERROR
2112 # error "wxClipboard requires wxDataObject"
2114 # undef wxUSE_DATAOBJ
2115 # define wxUSE_DATAOBJ 1
2117 #endif /* wxUSE_CLIPBOARD */
2119 #if wxUSE_XRC && !wxUSE_XML
2120 # ifdef wxABORT_ON_CONFIG_ERROR
2121 # error "wxUSE_XRC requires wxUSE_XML"
2124 # define wxUSE_XRC 0
2126 #endif /* wxUSE_XRC */
2128 #if wxUSE_SOCKETS && !wxUSE_STOPWATCH
2129 # ifdef wxABORT_ON_CONFIG_ERROR
2130 # error "wxUSE_SOCKETS requires wxUSE_STOPWATCH"
2132 # undef wxUSE_SOCKETS
2133 # define wxUSE_SOCKETS 0
2135 #endif /* wxUSE_SOCKETS */
2137 #if wxUSE_SVG && !wxUSE_STREAMS
2138 # ifdef wxABORT_ON_CONFIG_ERROR
2139 # error "wxUSE_SVG requires wxUSE_STREAMS"
2142 # define wxUSE_SVG 0
2144 #endif /* wxUSE_SVG */
2146 #if wxUSE_SVG && !wxUSE_IMAGE
2147 # ifdef wxABORT_ON_CONFIG_ERROR
2148 # error "wxUSE_SVG requires wxUSE_IMAGE"
2151 # define wxUSE_SVG 0
2153 #endif /* wxUSE_SVG */
2155 #if wxUSE_SVG && !wxUSE_LIBPNG
2156 # ifdef wxABORT_ON_CONFIG_ERROR
2157 # error "wxUSE_SVG requires wxUSE_LIBPNG"
2160 # define wxUSE_SVG 0
2162 #endif /* wxUSE_SVG */
2164 #if wxUSE_TASKBARICON && !wxUSE_MENUS
2165 # ifdef wxABORT_ON_CONFIG_ERROR
2166 # error "wxUSE_TASKBARICON requires wxUSE_MENUS"
2168 # undef wxUSE_TASKBARICON
2169 # define wxUSE_TASKBARICON 0
2171 #endif /* wxUSE_TASKBARICON */
2174 # if wxUSE_DATAVIEWCTRL
2175 # ifdef wxABORT_ON_CONFIG_ERROR
2176 # error "wxDataViewCtrl requires wxVariant"
2178 # undef wxUSE_DATAVIEWCTRL
2179 # define wxUSE_DATAVIEWCTRL 0
2182 #endif /* wxUSE_VARIANT */
2184 #if wxUSE_TREELISTCTRL && !wxUSE_DATAVIEWCTRL
2185 # ifdef wxABORT_ON_CONFIG_ERROR
2186 # error "wxUSE_TREELISTCTRL requires wxDataViewCtrl"
2188 # undef wxUSE_TREELISTCTRL
2189 # define wxUSE_TREELISTCTRL 0
2191 #endif /* wxUSE_TREELISTCTRL */
2193 #if wxUSE_WEBVIEW && !(wxUSE_WEBVIEW_WEBKIT || wxUSE_WEBVIEW_IE)
2194 # ifdef wxABORT_ON_CONFIG_ERROR
2195 # error "wxUSE_WEBVIEW requires at least one backend"
2197 # undef wxUSE_WEBVIEW
2198 # define wxUSE_WEBVIEW 0
2200 #endif /* wxUSE_WEBVIEW && !any web view backend */
2202 #if wxUSE_PREFERENCES_EDITOR
2204 We can use either a generic implementation, using wxNotebook, or a
2205 native one under wxOSX/Cocoa but then we must be using the native
2208 # if !wxUSE_NOTEBOOK
2209 # ifdef __WXOSX_COCOA__
2210 # if !wxUSE_TOOLBAR || !wxOSX_USE_NATIVE_TOOLBAR
2211 # ifdef wxABORT_ON_CONFIG_ERROR
2212 # error "wxUSE_PREFERENCES_EDITOR requires native toolbar in wxOSX"
2214 # undef wxUSE_PREFERENCES_EDITOR
2215 # define wxUSE_PREFERENCES_EDITOR 0
2219 # ifdef wxABORT_ON_CONFIG_ERROR
2220 # error "wxUSE_PREFERENCES_EDITOR requires wxNotebook"
2222 # undef wxUSE_PREFERENCES_EDITOR
2223 # define wxUSE_PREFERENCES_EDITOR 0
2227 #endif /* wxUSE_PREFERENCES_EDITOR */
2229 #endif /* wxUSE_GUI */
2231 #endif /* _WX_CHKCONF_H_ */