]> git.saurik.com Git - wxWidgets.git/blob - include/wx/chkconf.h
Use const
[wxWidgets.git] / include / wx / chkconf.h
1 /*
2 * Name: wx/chkconf.h
3 * Purpose: check the config settings for consistency
4 * Author: Vadim Zeitlin
5 * Modified by:
6 * Created: 09.08.00
7 * RCS-ID: $Id$
8 * Copyright: (c) 2000 Vadim Zeitlin <vadim@wxwidgets.org>
9 * Licence: wxWindows licence
10 */
11
12 /* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
13 #ifndef _WX_CHKCONF_H_
14 #define _WX_CHKCONF_H_
15
16 /*
17 This file has the following sections:
18 1. checks that all wxUSE_XXX symbols we use are defined
19 a) first the non-GUI ones
20 b) then the GUI-only ones
21 2. platform-specific checks done in the platform headers
22 3. generic consistency checks
23 a) first the non-GUI ones
24 b) then the GUI-only ones
25 */
26
27 /*
28 this global setting determines what should we do if the setting FOO
29 requires BAR and BAR is not set: we can either silently unset FOO as well
30 (do this if you're trying to build the smallest possible library) or give an
31 error and abort (default as leads to least surprizing behaviour)
32 */
33 #define wxABORT_ON_CONFIG_ERROR
34
35 /*
36 global features
37 */
38
39 /* GUI build by default */
40 #if !defined(wxUSE_GUI)
41 # define wxUSE_GUI 1
42 #endif /* !defined(wxUSE_GUI) */
43
44 /*
45 If we're compiling without support for threads/exceptions we have to
46 disable the corresponding features.
47 */
48 #ifdef wxNO_THREADS
49 # undef wxUSE_THREADS
50 # define wxUSE_THREADS 0
51 #endif /* wxNO_THREADS */
52
53 #ifdef wxNO_EXCEPTIONS
54 # undef wxUSE_EXCEPTIONS
55 # define wxUSE_EXCEPTIONS 0
56 #endif /* wxNO_EXCEPTIONS */
57
58 /* we also must disable exceptions if compiler doesn't support them */
59 #if defined(_MSC_VER) && !defined(_CPPUNWIND)
60 # undef wxUSE_EXCEPTIONS
61 # define wxUSE_EXCEPTIONS 0
62 #endif /* VC++ without exceptions support */
63
64
65 /*
66 Section 1a: tests for non GUI features.
67
68 please keep the options in alphabetical order!
69 */
70
71 #ifndef wxUSE_CONSOLE_EVENTLOOP
72 # ifdef wxABORT_ON_CONFIG_ERROR
73 # error "wxUSE_CONSOLE_EVENTLOOP must be defined."
74 # else
75 # define wxUSE_CONSOLE_EVENTLOOP 0
76 # endif
77 #endif /* !defined(wxUSE_CONSOLE_EVENTLOOP) */
78
79 #ifndef wxUSE_DYNLIB_CLASS
80 # ifdef wxABORT_ON_CONFIG_ERROR
81 # error "wxUSE_DYNLIB_CLASS must be defined."
82 # else
83 # define wxUSE_DYNLIB_CLASS 0
84 # endif
85 #endif /* !defined(wxUSE_DYNLIB_CLASS) */
86
87 #ifndef wxUSE_EXCEPTIONS
88 # ifdef wxABORT_ON_CONFIG_ERROR
89 # error "wxUSE_EXCEPTIONS must be defined."
90 # else
91 # define wxUSE_EXCEPTIONS 0
92 # endif
93 #endif /* !defined(wxUSE_EXCEPTIONS) */
94
95 #ifndef wxUSE_FILESYSTEM
96 # ifdef wxABORT_ON_CONFIG_ERROR
97 # error "wxUSE_FILESYSTEM must be defined."
98 # else
99 # define wxUSE_FILESYSTEM 0
100 # endif
101 #endif /* !defined(wxUSE_FILESYSTEM) */
102
103 #ifndef wxUSE_FS_ARCHIVE
104 # ifdef wxABORT_ON_CONFIG_ERROR
105 # error "wxUSE_FS_ARCHIVE must be defined."
106 # else
107 # define wxUSE_FS_ARCHIVE 0
108 # endif
109 #endif /* !defined(wxUSE_FS_ARCHIVE) */
110
111 /* don't give an error about this one yet, it's not fully implemented */
112 #ifndef wxUSE_FSVOLUME
113 # define wxUSE_FSVOLUME 0
114 #endif /* !defined(wxUSE_FSVOLUME) */
115
116 #ifndef wxUSE_DYNAMIC_LOADER
117 # ifdef wxABORT_ON_CONFIG_ERROR
118 # error "wxUSE_DYNAMIC_LOADER must be defined."
119 # else
120 # define wxUSE_DYNAMIC_LOADER 0
121 # endif
122 #endif /* !defined(wxUSE_DYNAMIC_LOADER) */
123
124 #ifndef wxUSE_LOG
125 # ifdef wxABORT_ON_CONFIG_ERROR
126 # error "wxUSE_LOG must be defined."
127 # else
128 # define wxUSE_LOG 0
129 # endif
130 #endif /* !defined(wxUSE_LOG) */
131
132 #ifndef wxUSE_LONGLONG
133 # ifdef wxABORT_ON_CONFIG_ERROR
134 # error "wxUSE_LONGLONG must be defined."
135 # else
136 # define wxUSE_LONGLONG 0
137 # endif
138 #endif /* !defined(wxUSE_LONGLONG) */
139
140 #ifndef wxUSE_MIMETYPE
141 # ifdef wxABORT_ON_CONFIG_ERROR
142 # error "wxUSE_MIMETYPE must be defined."
143 # else
144 # define wxUSE_MIMETYPE 0
145 # endif
146 #endif /* !defined(wxUSE_MIMETYPE) */
147
148 #ifndef wxUSE_ON_FATAL_EXCEPTION
149 # ifdef wxABORT_ON_CONFIG_ERROR
150 # error "wxUSE_ON_FATAL_EXCEPTION must be defined."
151 # else
152 # define wxUSE_ON_FATAL_EXCEPTION 0
153 # endif
154 #endif /* !defined(wxUSE_ON_FATAL_EXCEPTION) */
155
156 #ifndef wxUSE_PRINTF_POS_PARAMS
157 # ifdef wxABORT_ON_CONFIG_ERROR
158 # error "wxUSE_PRINTF_POS_PARAMS must be defined."
159 # else
160 # define wxUSE_PRINTF_POS_PARAMS 0
161 # endif
162 #endif /* !defined(wxUSE_PRINTF_POS_PARAMS) */
163
164 #ifndef wxUSE_PROTOCOL
165 # ifdef wxABORT_ON_CONFIG_ERROR
166 # error "wxUSE_PROTOCOL must be defined."
167 # else
168 # define wxUSE_PROTOCOL 0
169 # endif
170 #endif /* !defined(wxUSE_PROTOCOL) */
171
172 /* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */
173 #if !wxUSE_PROTOCOL
174 # undef wxUSE_PROTOCOL_HTTP
175 # undef wxUSE_PROTOCOL_FTP
176 # undef wxUSE_PROTOCOL_FILE
177 # define wxUSE_PROTOCOL_HTTP 0
178 # define wxUSE_PROTOCOL_FTP 0
179 # define wxUSE_PROTOCOL_FILE 0
180 #endif /* wxUSE_PROTOCOL */
181
182 #ifndef wxUSE_PROTOCOL_HTTP
183 # ifdef wxABORT_ON_CONFIG_ERROR
184 # error "wxUSE_PROTOCOL_HTTP must be defined."
185 # else
186 # define wxUSE_PROTOCOL_HTTP 0
187 # endif
188 #endif /* !defined(wxUSE_PROTOCOL_HTTP) */
189
190 #ifndef wxUSE_PROTOCOL_FTP
191 # ifdef wxABORT_ON_CONFIG_ERROR
192 # error "wxUSE_PROTOCOL_FTP must be defined."
193 # else
194 # define wxUSE_PROTOCOL_FTP 0
195 # endif
196 #endif /* !defined(wxUSE_PROTOCOL_FTP) */
197
198 #ifndef wxUSE_PROTOCOL_FILE
199 # ifdef wxABORT_ON_CONFIG_ERROR
200 # error "wxUSE_PROTOCOL_FILE must be defined."
201 # else
202 # define wxUSE_PROTOCOL_FILE 0
203 # endif
204 #endif /* !defined(wxUSE_PROTOCOL_FILE) */
205
206 #ifndef wxUSE_REGEX
207 # ifdef wxABORT_ON_CONFIG_ERROR
208 # error "wxUSE_REGEX must be defined."
209 # else
210 # define wxUSE_REGEX 0
211 # endif
212 #endif /* !defined(wxUSE_REGEX) */
213
214 #ifndef wxUSE_STDPATHS
215 # ifdef wxABORT_ON_CONFIG_ERROR
216 # error "wxUSE_STDPATHS must be defined."
217 # else
218 # define wxUSE_STDPATHS 1
219 # endif
220 #endif /* !defined(wxUSE_STDPATHS) */
221
222 #ifndef wxUSE_XML
223 # ifdef wxABORT_ON_CONFIG_ERROR
224 # error "wxUSE_XML must be defined."
225 # else
226 # define wxUSE_XML 0
227 # endif
228 #endif /* !defined(wxUSE_XML) */
229
230 #ifndef wxUSE_SOCKETS
231 # ifdef wxABORT_ON_CONFIG_ERROR
232 # error "wxUSE_SOCKETS must be defined."
233 # else
234 # define wxUSE_SOCKETS 0
235 # endif
236 #endif /* !defined(wxUSE_SOCKETS) */
237
238 #ifndef wxUSE_STREAMS
239 # ifdef wxABORT_ON_CONFIG_ERROR
240 # error "wxUSE_STREAMS must be defined."
241 # else
242 # define wxUSE_STREAMS 0
243 # endif
244 #endif /* !defined(wxUSE_STREAMS) */
245
246 #ifndef wxUSE_STOPWATCH
247 # ifdef wxABORT_ON_CONFIG_ERROR
248 # error "wxUSE_STOPWATCH must be defined."
249 # else
250 # define wxUSE_STOPWATCH 0
251 # endif
252 #endif /* !defined(wxUSE_STOPWATCH) */
253
254 #ifndef wxUSE_TEXTBUFFER
255 # ifdef wxABORT_ON_CONFIG_ERROR
256 # error "wxUSE_TEXTBUFFER must be defined."
257 # else
258 # define wxUSE_TEXTBUFFER 0
259 # endif
260 #endif /* !defined(wxUSE_TEXTBUFFER) */
261
262 #ifndef wxUSE_TEXTFILE
263 # ifdef wxABORT_ON_CONFIG_ERROR
264 # error "wxUSE_TEXTFILE must be defined."
265 # else
266 # define wxUSE_TEXTFILE 0
267 # endif
268 #endif /* !defined(wxUSE_TEXTFILE) */
269
270 #ifndef wxUSE_UNICODE
271 # ifdef wxABORT_ON_CONFIG_ERROR
272 # error "wxUSE_UNICODE must be defined."
273 # else
274 # define wxUSE_UNICODE 0
275 # endif
276 #endif /* !defined(wxUSE_UNICODE) */
277
278 #ifndef wxUSE_URL
279 # ifdef wxABORT_ON_CONFIG_ERROR
280 # error "wxUSE_URL must be defined."
281 # else
282 # define wxUSE_URL 0
283 # endif
284 #endif /* !defined(wxUSE_URL) */
285
286 #ifndef wxUSE_VARIANT
287 # ifdef wxABORT_ON_CONFIG_ERROR
288 # error "wxUSE_VARIANT must be defined."
289 # else
290 # define wxUSE_VARIANT 0
291 # endif
292 #endif /* wxUSE_VARIANT */
293
294 /*
295 Section 1b: all these tests are for GUI only.
296
297 please keep the options in alphabetical order!
298 */
299 #if wxUSE_GUI
300
301 /*
302 all of the settings tested below must be defined or we'd get an error from
303 preprocessor about invalid integer expression
304 */
305
306 #ifndef wxUSE_ABOUTDLG
307 # ifdef wxABORT_ON_CONFIG_ERROR
308 # error "wxUSE_ABOUTDLG must be defined."
309 # else
310 # define wxUSE_ABOUTDLG 0
311 # endif
312 #endif /* !defined(wxUSE_ABOUTDLG) */
313
314 #ifndef wxUSE_ACCEL
315 # ifdef wxABORT_ON_CONFIG_ERROR
316 # error "wxUSE_ACCEL must be defined."
317 # else
318 # define wxUSE_ACCEL 0
319 # endif
320 #endif /* !defined(wxUSE_ACCEL) */
321
322 #ifndef wxUSE_ACCESSIBILITY
323 # ifdef wxABORT_ON_CONFIG_ERROR
324 # error "wxUSE_ACCESSIBILITY must be defined."
325 # else
326 # define wxUSE_ACCESSIBILITY 0
327 # endif
328 #endif /* !defined(wxUSE_ACCESSIBILITY) */
329
330 #ifndef wxUSE_ANIMATIONCTRL
331 # ifdef wxABORT_ON_CONFIG_ERROR
332 # error "wxUSE_ANIMATIONCTRL must be defined."
333 # else
334 # define wxUSE_ANIMATIONCTRL 0
335 # endif
336 #endif /* !defined(wxUSE_ANIMATIONCTRL) */
337
338 #ifndef wxUSE_BITMAPCOMBOBOX
339 # ifdef wxABORT_ON_CONFIG_ERROR
340 # error "wxUSE_BITMAPCOMBOBOX must be defined."
341 # else
342 # define wxUSE_BITMAPCOMBOBOX 0
343 # endif
344 #endif /* !defined(wxUSE_BITMAPCOMBOBOX) */
345
346 #ifndef wxUSE_BMPBUTTON
347 # ifdef wxABORT_ON_CONFIG_ERROR
348 # error "wxUSE_BMPBUTTON must be defined."
349 # else
350 # define wxUSE_BMPBUTTON 0
351 # endif
352 #endif /* !defined(wxUSE_BMPBUTTON) */
353
354 #ifndef wxUSE_BUTTON
355 # ifdef wxABORT_ON_CONFIG_ERROR
356 # error "wxUSE_BUTTON must be defined."
357 # else
358 # define wxUSE_BUTTON 0
359 # endif
360 #endif /* !defined(wxUSE_BUTTON) */
361
362 #ifndef wxUSE_CALENDARCTRL
363 # ifdef wxABORT_ON_CONFIG_ERROR
364 # error "wxUSE_CALENDARCTRL must be defined."
365 # else
366 # define wxUSE_CALENDARCTRL 0
367 # endif
368 #endif /* !defined(wxUSE_CALENDARCTRL) */
369
370 #ifndef wxUSE_CARET
371 # ifdef wxABORT_ON_CONFIG_ERROR
372 # error "wxUSE_CARET must be defined."
373 # else
374 # define wxUSE_CARET 0
375 # endif
376 #endif /* !defined(wxUSE_CARET) */
377
378 #ifndef wxUSE_CHECKBOX
379 # ifdef wxABORT_ON_CONFIG_ERROR
380 # error "wxUSE_CHECKBOX must be defined."
381 # else
382 # define wxUSE_CHECKBOX 0
383 # endif
384 #endif /* !defined(wxUSE_CHECKBOX) */
385
386 #ifndef wxUSE_CHECKLISTBOX
387 # ifdef wxABORT_ON_CONFIG_ERROR
388 # error "wxUSE_CHECKLISTBOX must be defined."
389 # else
390 # define wxUSE_CHECKLISTBOX 0
391 # endif
392 #endif /* !defined(wxUSE_CHECKLISTBOX) */
393
394 #ifndef wxUSE_CHOICE
395 # ifdef wxABORT_ON_CONFIG_ERROR
396 # error "wxUSE_CHOICE must be defined."
397 # else
398 # define wxUSE_CHOICE 0
399 # endif
400 #endif /* !defined(wxUSE_CHOICE) */
401
402 #ifndef wxUSE_CHOICEBOOK
403 # ifdef wxABORT_ON_CONFIG_ERROR
404 # error "wxUSE_CHOICEBOOK must be defined."
405 # else
406 # define wxUSE_CHOICEBOOK 0
407 # endif
408 #endif /* !defined(wxUSE_CHOICEBOOK) */
409
410 #ifndef wxUSE_CHOICEDLG
411 # ifdef wxABORT_ON_CONFIG_ERROR
412 # error "wxUSE_CHOICEDLG must be defined."
413 # else
414 # define wxUSE_CHOICEDLG 0
415 # endif
416 #endif /* !defined(wxUSE_CHOICEDLG) */
417
418 #ifndef wxUSE_CLIPBOARD
419 # ifdef wxABORT_ON_CONFIG_ERROR
420 # error "wxUSE_CLIPBOARD must be defined."
421 # else
422 # define wxUSE_CLIPBOARD 0
423 # endif
424 #endif /* !defined(wxUSE_CLIPBOARD) */
425
426 #ifndef wxUSE_COLLPANE
427 # ifdef wxABORT_ON_CONFIG_ERROR
428 # error "wxUSE_COLLPANE must be defined."
429 # else
430 # define wxUSE_COLLPANE 0
431 # endif
432 #endif /* !defined(wxUSE_COLLPANE) */
433
434 #ifndef wxUSE_COLOURDLG
435 # ifdef wxABORT_ON_CONFIG_ERROR
436 # error "wxUSE_COLOURDLG must be defined."
437 # else
438 # define wxUSE_COLOURDLG 0
439 # endif
440 #endif /* !defined(wxUSE_COLOURDLG) */
441
442 #ifndef wxUSE_COLOURPICKERCTRL
443 # ifdef wxABORT_ON_CONFIG_ERROR
444 # error "wxUSE_COLOURPICKERCTRL must be defined."
445 # else
446 # define wxUSE_COLOURPICKERCTRL 0
447 # endif
448 #endif /* !defined(wxUSE_COLOURPICKERCTRL) */
449
450 #ifndef wxUSE_COMBOBOX
451 # ifdef wxABORT_ON_CONFIG_ERROR
452 # error "wxUSE_COMBOBOX must be defined."
453 # else
454 # define wxUSE_COMBOBOX 0
455 # endif
456 #endif /* !defined(wxUSE_COMBOBOX) */
457
458 #ifndef wxUSE_COMBOCTRL
459 # ifdef wxABORT_ON_CONFIG_ERROR
460 # error "wxUSE_COMBOCTRL must be defined."
461 # else
462 # define wxUSE_COMBOCTRL 0
463 # endif
464 #endif /* !defined(wxUSE_COMBOCTRL) */
465
466 #ifndef wxUSE_DATAOBJ
467 # ifdef wxABORT_ON_CONFIG_ERROR
468 # error "wxUSE_DATAOBJ must be defined."
469 # else
470 # define wxUSE_DATAOBJ 0
471 # endif
472 #endif /* !defined(wxUSE_DATAOBJ) */
473
474 #ifndef wxUSE_DATAVIEWCTRL
475 # ifdef wxABORT_ON_CONFIG_ERROR
476 # error "wxUSE_DATAVIEWCTRL must be defined."
477 # else
478 # define wxUSE_DATAVIEWCTRL 0
479 # endif
480 #endif /* !defined(wxUSE_DATAVIEWCTRL) */
481
482 #ifndef wxUSE_DATEPICKCTRL
483 # ifdef wxABORT_ON_CONFIG_ERROR
484 # error "wxUSE_DATEPICKCTRL must be defined."
485 # else
486 # define wxUSE_DATEPICKCTRL 0
487 # endif
488 #endif /* !defined(wxUSE_DATEPICKCTRL) */
489
490 #ifndef wxUSE_DIRPICKERCTRL
491 # ifdef wxABORT_ON_CONFIG_ERROR
492 # error "wxUSE_DIRPICKERCTRL must be defined."
493 # else
494 # define wxUSE_DIRPICKERCTRL 0
495 # endif
496 #endif /* !defined(wxUSE_DIRPICKERCTRL) */
497
498 #ifndef wxUSE_DISPLAY
499 # ifdef wxABORT_ON_CONFIG_ERROR
500 # error "wxUSE_DISPLAY must be defined."
501 # else
502 # define wxUSE_DISPLAY 0
503 # endif
504 #endif /* !defined(wxUSE_DISPLAY) */
505
506 #ifndef wxUSE_DOC_VIEW_ARCHITECTURE
507 # ifdef wxABORT_ON_CONFIG_ERROR
508 # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
509 # else
510 # define wxUSE_DOC_VIEW_ARCHITECTURE 0
511 # endif
512 #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
513
514 #ifndef wxUSE_FILEDLG
515 # ifdef wxABORT_ON_CONFIG_ERROR
516 # error "wxUSE_FILEDLG must be defined."
517 # else
518 # define wxUSE_FILEDLG 0
519 # endif
520 #endif /* !defined(wxUSE_FILEDLG) */
521
522 #ifndef wxUSE_FILEPICKERCTRL
523 # ifdef wxABORT_ON_CONFIG_ERROR
524 # error "wxUSE_FILEPICKERCTRL must be defined."
525 # else
526 # define wxUSE_FILEPICKERCTRL 0
527 # endif
528 #endif /* !defined(wxUSE_FILEPICKERCTRL) */
529
530 #ifndef wxUSE_FONTDLG
531 # ifdef wxABORT_ON_CONFIG_ERROR
532 # error "wxUSE_FONTDLG must be defined."
533 # else
534 # define wxUSE_FONTDLG 0
535 # endif
536 #endif /* !defined(wxUSE_FONTDLG) */
537
538 #ifndef wxUSE_FONTMAP
539 # ifdef wxABORT_ON_CONFIG_ERROR
540 # error "wxUSE_FONTMAP must be defined."
541 # else
542 # define wxUSE_FONTMAP 0
543 # endif
544 #endif /* !defined(wxUSE_FONTMAP) */
545
546 #ifndef wxUSE_FONTPICKERCTRL
547 # ifdef wxABORT_ON_CONFIG_ERROR
548 # error "wxUSE_FONTPICKERCTRL must be defined."
549 # else
550 # define wxUSE_FONTPICKERCTRL 0
551 # endif
552 #endif /* !defined(wxUSE_FONTPICKERCTRL) */
553
554 #ifndef wxUSE_GAUGE
555 # ifdef wxABORT_ON_CONFIG_ERROR
556 # error "wxUSE_GAUGE must be defined."
557 # else
558 # define wxUSE_GAUGE 0
559 # endif
560 #endif /* !defined(wxUSE_GAUGE) */
561
562 #ifndef wxUSE_GRAPHICS_CONTEXT
563 # ifdef wxABORT_ON_CONFIG_ERROR
564 # error "wxUSE_GRAPHICS_CONTEXT must be defined."
565 # else
566 # define wxUSE_GRAPHICS_CONTEXT 0
567 # endif
568 #endif /* !defined(wxUSE_GRAPHICS_CONTEXT) */
569
570
571 #ifndef wxUSE_GRID
572 # ifdef wxABORT_ON_CONFIG_ERROR
573 # error "wxUSE_GRID must be defined."
574 # else
575 # define wxUSE_GRID 0
576 # endif
577 #endif /* !defined(wxUSE_GRID) */
578
579 #ifndef wxUSE_HELP
580 # ifdef wxABORT_ON_CONFIG_ERROR
581 # error "wxUSE_HELP must be defined."
582 # else
583 # define wxUSE_HELP 0
584 # endif
585 #endif /* !defined(wxUSE_HELP) */
586
587 #ifndef wxUSE_HYPERLINKCTRL
588 # ifdef wxABORT_ON_CONFIG_ERROR
589 # error "wxUSE_HYPERLINKCTRL must be defined."
590 # else
591 # define wxUSE_HYPERLINKCTRL 0
592 # endif
593 #endif /* !defined(wxUSE_HYPERLINKCTRL) */
594
595 #ifndef wxUSE_HTML
596 # ifdef wxABORT_ON_CONFIG_ERROR
597 # error "wxUSE_HTML must be defined."
598 # else
599 # define wxUSE_HTML 0
600 # endif
601 #endif /* !defined(wxUSE_HTML) */
602
603 #ifndef wxUSE_LIBMSPACK
604 # ifndef __UNIX__
605 /* set to 0 on platforms that don't have libmspack */
606 # define wxUSE_LIBMSPACK 0
607 # else
608 # ifdef wxABORT_ON_CONFIG_ERROR
609 # error "wxUSE_LIBMSPACK must be defined."
610 # else
611 # define wxUSE_LIBMSPACK 0
612 # endif
613 # endif
614 #endif /* !defined(wxUSE_LIBMSPACK) */
615
616 #ifndef wxUSE_ICO_CUR
617 # ifdef wxABORT_ON_CONFIG_ERROR
618 # error "wxUSE_ICO_CUR must be defined."
619 # else
620 # define wxUSE_ICO_CUR 0
621 # endif
622 #endif /* !defined(wxUSE_ICO_CUR) */
623
624 #ifndef wxUSE_IFF
625 # ifdef wxABORT_ON_CONFIG_ERROR
626 # error "wxUSE_IFF must be defined."
627 # else
628 # define wxUSE_IFF 0
629 # endif
630 #endif /* !defined(wxUSE_IFF) */
631
632 #ifndef wxUSE_IMAGLIST
633 # ifdef wxABORT_ON_CONFIG_ERROR
634 # error "wxUSE_IMAGLIST must be defined."
635 # else
636 # define wxUSE_IMAGLIST 0
637 # endif
638 #endif /* !defined(wxUSE_IMAGLIST) */
639
640 #ifndef wxUSE_JOYSTICK
641 # ifdef wxABORT_ON_CONFIG_ERROR
642 # error "wxUSE_JOYSTICK must be defined."
643 # else
644 # define wxUSE_JOYSTICK 0
645 # endif
646 #endif /* !defined(wxUSE_JOYSTICK) */
647
648 #ifndef wxUSE_LISTBOOK
649 # ifdef wxABORT_ON_CONFIG_ERROR
650 # error "wxUSE_LISTBOOK must be defined."
651 # else
652 # define wxUSE_LISTBOOK 0
653 # endif
654 #endif /* !defined(wxUSE_LISTBOOK) */
655
656 #ifndef wxUSE_LISTBOX
657 # ifdef wxABORT_ON_CONFIG_ERROR
658 # error "wxUSE_LISTBOX must be defined."
659 # else
660 # define wxUSE_LISTBOX 0
661 # endif
662 #endif /* !defined(wxUSE_LISTBOX) */
663
664 #ifndef wxUSE_LISTCTRL
665 # ifdef wxABORT_ON_CONFIG_ERROR
666 # error "wxUSE_LISTCTRL must be defined."
667 # else
668 # define wxUSE_LISTCTRL 0
669 # endif
670 #endif /* !defined(wxUSE_LISTCTRL) */
671
672 #ifndef wxUSE_LOGGUI
673 # ifdef wxABORT_ON_CONFIG_ERROR
674 # error "wxUSE_LOGGUI must be defined."
675 # else
676 # define wxUSE_LOGGUI 0
677 # endif
678 #endif /* !defined(wxUSE_LOGGUI) */
679
680 #ifndef wxUSE_LOGWINDOW
681 # ifdef wxABORT_ON_CONFIG_ERROR
682 # error "wxUSE_LOGWINDOW must be defined."
683 # else
684 # define wxUSE_LOGWINDOW 0
685 # endif
686 #endif /* !defined(wxUSE_LOGWINDOW) */
687
688 #ifndef wxUSE_LOG_DIALOG
689 # ifdef wxABORT_ON_CONFIG_ERROR
690 # error "wxUSE_LOG_DIALOG must be defined."
691 # else
692 # define wxUSE_LOG_DIALOG 0
693 # endif
694 #endif /* !defined(wxUSE_LOG_DIALOG) */
695
696 #ifndef wxUSE_MDI
697 # ifdef wxABORT_ON_CONFIG_ERROR
698 # error "wxUSE_MDI must be defined."
699 # else
700 # define wxUSE_MDI 0
701 # endif
702 #endif /* !defined(wxUSE_MDI) */
703
704 #ifndef wxUSE_MDI_ARCHITECTURE
705 # ifdef wxABORT_ON_CONFIG_ERROR
706 # error "wxUSE_MDI_ARCHITECTURE must be defined."
707 # else
708 # define wxUSE_MDI_ARCHITECTURE 0
709 # endif
710 #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
711
712 #ifndef wxUSE_MENUS
713 # ifdef wxABORT_ON_CONFIG_ERROR
714 # error "wxUSE_MENUS must be defined."
715 # else
716 # define wxUSE_MENUS 0
717 # endif
718 #endif /* !defined(wxUSE_MENUS) */
719
720 #ifndef wxUSE_MSGDLG
721 # ifdef wxABORT_ON_CONFIG_ERROR
722 # error "wxUSE_MSGDLG must be defined."
723 # else
724 # define wxUSE_MSGDLG 0
725 # endif
726 #endif /* !defined(wxUSE_MSGDLG) */
727
728 #ifndef wxUSE_NOTEBOOK
729 # ifdef wxABORT_ON_CONFIG_ERROR
730 # error "wxUSE_NOTEBOOK must be defined."
731 # else
732 # define wxUSE_NOTEBOOK 0
733 # endif
734 #endif /* !defined(wxUSE_NOTEBOOK) */
735
736 #ifndef wxUSE_ODCOMBOBOX
737 # ifdef wxABORT_ON_CONFIG_ERROR
738 # error "wxUSE_ODCOMBOBOX must be defined."
739 # else
740 # define wxUSE_ODCOMBOBOX 0
741 # endif
742 #endif /* !defined(wxUSE_ODCOMBOBOX) */
743
744 #ifndef wxUSE_PALETTE
745 # ifdef wxABORT_ON_CONFIG_ERROR
746 # error "wxUSE_PALETTE must be defined."
747 # else
748 # define wxUSE_PALETTE 0
749 # endif
750 #endif /* !defined(wxUSE_PALETTE) */
751
752 #ifndef wxUSE_POPUPWIN
753 # ifdef wxABORT_ON_CONFIG_ERROR
754 # error "wxUSE_POPUPWIN must be defined."
755 # else
756 # define wxUSE_POPUPWIN 0
757 # endif
758 #endif /* !defined(wxUSE_POPUPWIN) */
759
760 #ifndef wxUSE_PRINTING_ARCHITECTURE
761 # ifdef wxABORT_ON_CONFIG_ERROR
762 # error "wxUSE_PRINTING_ARCHITECTURE must be defined."
763 # else
764 # define wxUSE_PRINTING_ARCHITECTURE 0
765 # endif
766 #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
767
768 #ifndef wxUSE_RADIOBOX
769 # ifdef wxABORT_ON_CONFIG_ERROR
770 # error "wxUSE_RADIOBOX must be defined."
771 # else
772 # define wxUSE_RADIOBOX 0
773 # endif
774 #endif /* !defined(wxUSE_RADIOBOX) */
775
776 #ifndef wxUSE_RADIOBTN
777 # ifdef wxABORT_ON_CONFIG_ERROR
778 # error "wxUSE_RADIOBTN must be defined."
779 # else
780 # define wxUSE_RADIOBTN 0
781 # endif
782 #endif /* !defined(wxUSE_RADIOBTN) */
783
784 #ifndef wxUSE_SASH
785 # ifdef wxABORT_ON_CONFIG_ERROR
786 # error "wxUSE_SASH must be defined."
787 # else
788 # define wxUSE_SASH 0
789 # endif
790 #endif /* !defined(wxUSE_SASH) */
791
792 #ifndef wxUSE_SCROLLBAR
793 # ifdef wxABORT_ON_CONFIG_ERROR
794 # error "wxUSE_SCROLLBAR must be defined."
795 # else
796 # define wxUSE_SCROLLBAR 0
797 # endif
798 #endif /* !defined(wxUSE_SCROLLBAR) */
799
800 #ifndef wxUSE_SLIDER
801 # ifdef wxABORT_ON_CONFIG_ERROR
802 # error "wxUSE_SLIDER must be defined."
803 # else
804 # define wxUSE_SLIDER 0
805 # endif
806 #endif /* !defined(wxUSE_SLIDER) */
807
808 #ifndef wxUSE_SOUND
809 # ifdef wxABORT_ON_CONFIG_ERROR
810 # error "wxUSE_SOUND must be defined."
811 # else
812 # define wxUSE_SOUND 0
813 # endif
814 #endif /* !defined(wxUSE_SOUND) */
815
816 #ifndef wxUSE_SPINBTN
817 # ifdef wxABORT_ON_CONFIG_ERROR
818 # error "wxUSE_SPINBTN must be defined."
819 # else
820 # define wxUSE_SPINBTN 0
821 # endif
822 #endif /* !defined(wxUSE_SPINBTN) */
823
824 #ifndef wxUSE_SPINCTRL
825 # ifdef wxABORT_ON_CONFIG_ERROR
826 # error "wxUSE_SPINCTRL must be defined."
827 # else
828 # define wxUSE_SPINCTRL 0
829 # endif
830 #endif /* !defined(wxUSE_SPINCTRL) */
831
832 #ifndef wxUSE_SPLASH
833 # ifdef wxABORT_ON_CONFIG_ERROR
834 # error "wxUSE_SPLASH must be defined."
835 # else
836 # define wxUSE_SPLASH 0
837 # endif
838 #endif /* !defined(wxUSE_SPLASH) */
839
840 #ifndef wxUSE_SPLITTER
841 # ifdef wxABORT_ON_CONFIG_ERROR
842 # error "wxUSE_SPLITTER must be defined."
843 # else
844 # define wxUSE_SPLITTER 0
845 # endif
846 #endif /* !defined(wxUSE_SPLITTER) */
847
848 #ifndef wxUSE_STATBMP
849 # ifdef wxABORT_ON_CONFIG_ERROR
850 # error "wxUSE_STATBMP must be defined."
851 # else
852 # define wxUSE_STATBMP 0
853 # endif
854 #endif /* !defined(wxUSE_STATBMP) */
855
856 #ifndef wxUSE_STATBOX
857 # ifdef wxABORT_ON_CONFIG_ERROR
858 # error "wxUSE_STATBOX must be defined."
859 # else
860 # define wxUSE_STATBOX 0
861 # endif
862 #endif /* !defined(wxUSE_STATBOX) */
863
864 #ifndef wxUSE_STATLINE
865 # ifdef wxABORT_ON_CONFIG_ERROR
866 # error "wxUSE_STATLINE must be defined."
867 # else
868 # define wxUSE_STATLINE 0
869 # endif
870 #endif /* !defined(wxUSE_STATLINE) */
871
872 #ifndef wxUSE_STATTEXT
873 # ifdef wxABORT_ON_CONFIG_ERROR
874 # error "wxUSE_STATTEXT must be defined."
875 # else
876 # define wxUSE_STATTEXT 0
877 # endif
878 #endif /* !defined(wxUSE_STATTEXT) */
879
880 #ifndef wxUSE_STATUSBAR
881 # ifdef wxABORT_ON_CONFIG_ERROR
882 # error "wxUSE_STATUSBAR must be defined."
883 # else
884 # define wxUSE_STATUSBAR 0
885 # endif
886 #endif /* !defined(wxUSE_STATUSBAR) */
887
888 #ifndef wxUSE_TAB_DIALOG
889 # ifdef wxABORT_ON_CONFIG_ERROR
890 # error "wxUSE_TAB_DIALOG must be defined."
891 # else
892 # define wxUSE_TAB_DIALOG 0
893 # endif
894 #endif /* !defined(wxUSE_TAB_DIALOG) */
895
896 #ifndef wxUSE_TASKBARICON
897 # ifdef wxABORT_ON_CONFIG_ERROR
898 # error "wxUSE_TASKBARICON must be defined."
899 # else
900 # define wxUSE_TASKBARICON 0
901 # endif
902 #endif /* !defined(wxUSE_TASKBARICON) */
903
904 #ifndef wxUSE_TEXTCTRL
905 # ifdef wxABORT_ON_CONFIG_ERROR
906 # error "wxUSE_TEXTCTRL must be defined."
907 # else
908 # define wxUSE_TEXTCTRL 0
909 # endif
910 #endif /* !defined(wxUSE_TEXTCTRL) */
911
912 #ifndef wxUSE_TIPWINDOW
913 # ifdef wxABORT_ON_CONFIG_ERROR
914 # error "wxUSE_TIPWINDOW must be defined."
915 # else
916 # define wxUSE_TIPWINDOW 0
917 # endif
918 #endif /* !defined(wxUSE_TIPWINDOW) */
919
920 #ifndef wxUSE_TOOLBAR
921 # ifdef wxABORT_ON_CONFIG_ERROR
922 # error "wxUSE_TOOLBAR must be defined."
923 # else
924 # define wxUSE_TOOLBAR 0
925 # endif
926 #endif /* !defined(wxUSE_TOOLBAR) */
927
928 #ifndef wxUSE_TOOLTIPS
929 # ifdef wxABORT_ON_CONFIG_ERROR
930 # error "wxUSE_TOOLTIPS must be defined."
931 # else
932 # define wxUSE_TOOLTIPS 0
933 # endif
934 #endif /* !defined(wxUSE_TOOLTIPS) */
935
936 #ifndef wxUSE_TREECTRL
937 # ifdef wxABORT_ON_CONFIG_ERROR
938 # error "wxUSE_TREECTRL must be defined."
939 # else
940 # define wxUSE_TREECTRL 0
941 # endif
942 #endif /* !defined(wxUSE_TREECTRL) */
943
944 #ifndef wxUSE_VALIDATORS
945 # ifdef wxABORT_ON_CONFIG_ERROR
946 # error "wxUSE_VALIDATORS must be defined."
947 # else
948 # define wxUSE_VALIDATORS 0
949 # endif
950 #endif /* !defined(wxUSE_VALIDATORS) */
951
952 #ifndef wxUSE_WXHTML_HELP
953 # ifdef wxABORT_ON_CONFIG_ERROR
954 # error "wxUSE_WXHTML_HELP must be defined."
955 # else
956 # define wxUSE_WXHTML_HELP 0
957 # endif
958 #endif /* !defined(wxUSE_WXHTML_HELP) */
959
960 #ifndef wxUSE_XRC
961 # ifdef wxABORT_ON_CONFIG_ERROR
962 # error "wxUSE_XRC must be defined."
963 # else
964 # define wxUSE_XRC 0
965 # endif
966 #endif /* !defined(wxUSE_XRC) */
967
968 #endif /* wxUSE_GUI */
969
970 /*
971 Section 2: platform-specific checks.
972
973 This must be done after checking that everything is defined as the platform
974 checks use wxUSE_XXX symbols in #if tests.
975 */
976
977 #if defined(__WXPALMOS__)
978 # include "wx/palmos/chkconf.h"
979 #elif defined(__WXWINCE__)
980 # include "wx/msw/wince/chkconf.h"
981 #elif defined(__WXMSW__)
982 # include "wx/msw/chkconf.h"
983 #elif defined(__WXGTK__)
984 # include "wx/gtk/chkconf.h"
985 #elif defined(__WXMAC__)
986 # include "wx/mac/chkconf.h"
987 #elif defined(__OS2__)
988 # include "wx/os2/chkconf.h"
989 #elif defined(__WXMGL__)
990 # include "wx/mgl/chkconf.h"
991 #elif defined(__WXDFB__)
992 # include "wx/dfb/chkconf.h"
993 #elif defined(__WXMOTIF__)
994 # include "wx/motif/chkconf.h"
995 #elif defined(__WXX11__)
996 # include "wx/x11/chkconf.h"
997 #endif
998
999 #ifdef __UNIX__
1000 # include "wx/unix/chkconf.h"
1001 #endif
1002
1003 #ifdef __WXUNIVERSAL__
1004 # include "wx/univ/chkconf.h"
1005 #endif
1006
1007 /*
1008 Section 3a: check consistency of the non-GUI settings.
1009 */
1010
1011 #if WXWIN_COMPATIBILITY_2_6
1012 # if !WXWIN_COMPATIBILITY_2_8
1013 # ifdef wxABORT_ON_CONFIG_ERROR
1014 # error "2.6.X compatibility requires 2.8.X compatibility"
1015 # else
1016 # undef WXWIN_COMPATIBILITY_2_8
1017 # define WXWIN_COMPATIBILITY_2_8 1
1018 # endif
1019 # endif
1020 #endif /* WXWIN_COMPATIBILITY_2_6 */
1021
1022 #if wxUSE_ARCHIVE_STREAMS
1023 # if !wxUSE_DATETIME
1024 # ifdef wxABORT_ON_CONFIG_ERROR
1025 # error "wxArchive requires wxUSE_DATETIME"
1026 # else
1027 # undef wxUSE_ARCHIVE_STREAMS
1028 # define wxUSE_ARCHIVE_STREAMS 0
1029 # endif
1030 # endif
1031 #endif /* wxUSE_ARCHIVE_STREAMS */
1032
1033 #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
1034 # if !wxUSE_PROTOCOL
1035 # ifdef wxABORT_ON_CONFIG_ERROR
1036 # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
1037 # else
1038 # undef wxUSE_PROTOCOL
1039 # define wxUSE_PROTOCOL 1
1040 # endif
1041 # endif
1042 #endif /* wxUSE_PROTOCOL_XXX */
1043
1044 #if wxUSE_URL
1045 # if !wxUSE_PROTOCOL
1046 # ifdef wxABORT_ON_CONFIG_ERROR
1047 # error "wxUSE_URL requires wxUSE_PROTOCOL"
1048 # else
1049 # undef wxUSE_PROTOCOL
1050 # define wxUSE_PROTOCOL 1
1051 # endif
1052 # endif
1053 #endif /* wxUSE_URL */
1054
1055 #if wxUSE_PROTOCOL
1056 # if !wxUSE_SOCKETS
1057 # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
1058 # ifdef wxABORT_ON_CONFIG_ERROR
1059 # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
1060 # else
1061 # undef wxUSE_SOCKETS
1062 # define wxUSE_SOCKETS 1
1063 # endif
1064 # endif
1065 # endif
1066
1067 # if !wxUSE_STREAMS
1068 # ifdef wxABORT_ON_CONFIG_ERROR
1069 # error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
1070 # else
1071 # undef wxUSE_STREAMS
1072 # define wxUSE_STREAMS 1
1073 # endif
1074 # endif
1075 #endif /* wxUSE_PROTOCOL */
1076
1077 /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
1078 #if wxUSE_HTML
1079 # if !wxUSE_FILESYSTEM
1080 # ifdef wxABORT_ON_CONFIG_ERROR
1081 # error "wxHTML requires wxFileSystem"
1082 # else
1083 # undef wxUSE_FILESYSTEM
1084 # define wxUSE_FILESYSTEM 1
1085 # endif
1086 # endif
1087 #endif /* wxUSE_HTML */
1088
1089 #if wxUSE_FS_ARCHIVE
1090 # if !wxUSE_FILESYSTEM
1091 # ifdef wxABORT_ON_CONFIG_ERROR
1092 # error "wxArchiveFSHandler requires wxFileSystem"
1093 # else
1094 # undef wxUSE_FILESYSTEM
1095 # define wxUSE_FILESYSTEM 1
1096 # endif
1097 # endif
1098 # if !wxUSE_ARCHIVE_STREAMS
1099 # ifdef wxABORT_ON_CONFIG_ERROR
1100 # error "wxArchiveFSHandler requires wxArchive"
1101 # else
1102 # undef wxUSE_ARCHIVE_STREAMS
1103 # define wxUSE_ARCHIVE_STREAMS 1
1104 # endif
1105 # endif
1106 #endif /* wxUSE_FS_ARCHIVE */
1107
1108 #if wxUSE_FILESYSTEM
1109 # if !wxUSE_STREAMS
1110 # ifdef wxABORT_ON_CONFIG_ERROR
1111 # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
1112 # else
1113 # undef wxUSE_STREAMS
1114 # define wxUSE_STREAMS 1
1115 # endif
1116 # endif
1117 # if !wxUSE_FILE && !wxUSE_FFILE
1118 # ifdef wxABORT_ON_CONFIG_ERROR
1119 # error "wxUSE_FILESYSTEM requires either wxUSE_FILE or wxUSE_FFILE"
1120 # else
1121 # undef wxUSE_FILE
1122 # define wxUSE_FILE 1
1123 # undef wxUSE_FFILE
1124 # define wxUSE_FFILE 1
1125 # endif
1126 # endif
1127 #endif /* wxUSE_FILESYSTEM */
1128
1129 #if wxUSE_FS_INET
1130 # if !wxUSE_PROTOCOL
1131 # ifdef wxABORT_ON_CONFIG_ERROR
1132 # error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
1133 # else
1134 # undef wxUSE_PROTOCOL
1135 # define wxUSE_PROTOCOL 1
1136 # endif
1137 # endif
1138 #endif /* wxUSE_FS_INET */
1139
1140 #if wxUSE_STOPWATCH || wxUSE_DATETIME
1141 # if !wxUSE_LONGLONG
1142 # ifdef wxABORT_ON_CONFIG_ERROR
1143 # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
1144 # else
1145 # undef wxUSE_LONGLONG
1146 # define wxUSE_LONGLONG 1
1147 # endif
1148 # endif
1149 #endif /* wxUSE_STOPWATCH */
1150
1151 #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
1152 # ifdef wxABORT_ON_CONFIG_ERROR
1153 # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
1154 # else
1155 # undef wxUSE_TEXTFILE
1156 # define wxUSE_TEXTFILE 1
1157 # endif
1158 #endif /* wxUSE_MIMETYPE */
1159
1160 #if wxUSE_ODBC
1161 # if !wxUSE_DATETIME
1162 # ifdef wxABORT_ON_CONFIG_ERROR
1163 # error "wxODBC requires wxUSE_DATETIME"
1164 # else
1165 # undef wxUSE_ODBC
1166 # define wxUSE_ODBC 0
1167 # endif
1168 # endif
1169 #endif /* wxUSE_ODBC */
1170
1171 #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
1172 # ifdef wxABORT_ON_CONFIG_ERROR
1173 # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
1174 # else
1175 # undef wxUSE_TEXTBUFFER
1176 # define wxUSE_TEXTBUFFER 1
1177 # endif
1178 #endif /* wxUSE_TEXTFILE */
1179
1180 #if wxUSE_TEXTFILE && !wxUSE_FILE
1181 # ifdef wxABORT_ON_CONFIG_ERROR
1182 # error "wxUSE_TEXTFILE requires wxUSE_FILE"
1183 # else
1184 # undef wxUSE_FILE
1185 # define wxUSE_FILE 1
1186 # endif
1187 #endif /* wxUSE_TEXTFILE */
1188
1189 #if wxUSE_XML && !wxUSE_WCHAR_T
1190 # ifdef wxABORT_ON_CONFIG_ERROR
1191 # error "wxUSE_XML requires wxUSE_WCHAR_T"
1192 # else
1193 # undef wxUSE_XML
1194 # define wxUSE_XML 0
1195 # endif
1196 #endif /* wxUSE_XML */
1197
1198 #if !wxUSE_DYNLIB_CLASS
1199 # if wxUSE_DYNAMIC_LOADER
1200 # ifdef wxABORT_ON_CONFIG_ERROR
1201 # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
1202 # else
1203 # define wxUSE_DYNLIB_CLASS 1
1204 # endif
1205 # endif
1206 #endif /* wxUSE_DYNLIB_CLASS */
1207
1208 #if wxUSE_ZIPSTREAM
1209 # if !wxUSE_ZLIB
1210 # ifdef wxABORT_ON_CONFIG_ERROR
1211 # error "wxZip requires wxZlib"
1212 # else
1213 # undef wxUSE_ZLIB
1214 # define wxUSE_ZLIB 1
1215 # endif
1216 # endif
1217 # if !wxUSE_ARCHIVE_STREAMS
1218 # ifdef wxABORT_ON_CONFIG_ERROR
1219 # error "wxZip requires wxArchive"
1220 # else
1221 # undef wxUSE_ARCHIVE_STREAMS
1222 # define wxUSE_ARCHIVE_STREAMS 1
1223 # endif
1224 # endif
1225 #endif /* wxUSE_ZIPSTREAM */
1226
1227 #if wxUSE_TARSTREAM
1228 # if !wxUSE_ARCHIVE_STREAMS
1229 # ifdef wxABORT_ON_CONFIG_ERROR
1230 # error "wxTar requires wxArchive"
1231 # else
1232 # undef wxUSE_ARCHIVE_STREAMS
1233 # define wxUSE_ARCHIVE_STREAMS 1
1234 # endif
1235 # endif
1236 #endif /* wxUSE_TARSTREAM */
1237
1238 /*
1239 Section 3b: the tests for the GUI settings only.
1240 */
1241 #if wxUSE_GUI
1242
1243 #if wxUSE_ACCESSIBILITY && !defined(__WXMSW__)
1244 # ifdef wxABORT_ON_CONFIG_ERROR
1245 # error "wxUSE_ACCESSIBILITY is currently only supported under wxMSW"
1246 # else
1247 # undef wxUSE_ACCESSIBILITY
1248 # define wxUSE_ACCESSIBILITY 0
1249 # endif
1250 #endif /* wxUSE_ACCESSIBILITY */
1251
1252 #if wxUSE_BUTTON || \
1253 wxUSE_CALENDARCTRL || \
1254 wxUSE_CARET || \
1255 wxUSE_COMBOBOX || \
1256 wxUSE_BMPBUTTON || \
1257 wxUSE_CHECKBOX || \
1258 wxUSE_CHECKLISTBOX || \
1259 wxUSE_CHOICE || \
1260 wxUSE_GAUGE || \
1261 wxUSE_GRID || \
1262 wxUSE_LISTBOX || \
1263 wxUSE_LISTCTRL || \
1264 wxUSE_NOTEBOOK || \
1265 wxUSE_RADIOBOX || \
1266 wxUSE_RADIOBTN || \
1267 wxUSE_SCROLLBAR || \
1268 wxUSE_SLIDER || \
1269 wxUSE_SPINBTN || \
1270 wxUSE_SPINCTRL || \
1271 wxUSE_STATBMP || \
1272 wxUSE_STATBOX || \
1273 wxUSE_STATLINE || \
1274 wxUSE_STATTEXT || \
1275 wxUSE_STATUSBAR || \
1276 wxUSE_TEXTCTRL || \
1277 wxUSE_TOOLBAR || \
1278 wxUSE_TREECTRL
1279 # if !wxUSE_CONTROLS
1280 # ifdef wxABORT_ON_CONFIG_ERROR
1281 # error "wxUSE_CONTROLS unset but some controls used"
1282 # else
1283 # undef wxUSE_CONTROLS
1284 # define wxUSE_CONTROLS 1
1285 # endif
1286 # endif
1287 #endif /* controls */
1288
1289 #if wxUSE_BMPBUTTON
1290 # if !wxUSE_BUTTON
1291 # ifdef wxABORT_ON_CONFIG_ERROR
1292 # error "wxUSE_BMPBUTTON requires wxUSE_BUTTON"
1293 # else
1294 # undef wxUSE_BUTTON
1295 # define wxUSE_BUTTON 1
1296 # endif
1297 # endif
1298 #endif /* wxUSE_BMPBUTTON */
1299
1300 /*
1301 wxUSE_BOOKCTRL should be only used if any of the controls deriving from it
1302 are used
1303 */
1304 #ifdef wxUSE_BOOKCTRL
1305 # ifdef wxABORT_ON_CONFIG_ERROR
1306 # error "wxUSE_BOOKCTRL is defined automatically, don't define it"
1307 # else
1308 # undef wxUSE_BOOKCTRL
1309 # endif
1310 #endif
1311
1312 #define wxUSE_BOOKCTRL (wxUSE_NOTEBOOK || \
1313 wxUSE_LISTBOOK || \
1314 wxUSE_CHOICEBOOK || \
1315 wxUSE_TOOLBOOK || \
1316 wxUSE_TREEBOOK)
1317
1318 #if wxUSE_COLLPANE
1319 # if !wxUSE_BUTTON || !wxUSE_STATLINE
1320 # ifdef wxABORT_ON_CONFIG_ERROR
1321 # error "wxUSE_COLLPANE requires wxUSE_BUTTON and wxUSE_STATLINE"
1322 # else
1323 # undef wxUSE_COLLPANE
1324 # define wxUSE_COLLPANE 0
1325 # endif
1326 # endif
1327 #endif /* wxUSE_COLLPANE */
1328
1329 #if wxUSE_LISTBOOK
1330 # if !wxUSE_LISTCTRL
1331 # ifdef wxABORT_ON_CONFIG_ERROR
1332 # error "wxListbook requires wxListCtrl"
1333 # else
1334 # undef wxUSE_LISTCTRL
1335 # define wxUSE_LISTCTRL 1
1336 # endif
1337 # endif
1338 #endif /* wxUSE_LISTBOOK */
1339
1340 #if wxUSE_CHOICEBOOK
1341 # if !wxUSE_CHOICE
1342 # ifdef wxABORT_ON_CONFIG_ERROR
1343 # error "wxChoicebook requires wxChoice"
1344 # else
1345 # undef wxUSE_CHOICE
1346 # define wxUSE_CHOICE 1
1347 # endif
1348 # endif
1349 #endif /* wxUSE_CHOICEBOOK */
1350
1351 #if wxUSE_TOOLBOOK
1352 # if !wxUSE_TOOLBAR
1353 # ifdef wxABORT_ON_CONFIG_ERROR
1354 # error "wxToolbook requires wxToolBar"
1355 # else
1356 # undef wxUSE_TOOLBAR
1357 # define wxUSE_TOOLBAR 1
1358 # endif
1359 # endif
1360 #endif /* wxUSE_TOOLBOOK */
1361
1362 #if !wxUSE_ODCOMBOBOX
1363 # if wxUSE_BITMAPCOMBOBOX
1364 # error "wxBitmapComboBox requires wxOwnerDrawnComboBox"
1365 # else
1366 # undef wxUSE_BITMAPCOMBOBOX
1367 # define wxUSE_BITMAPCOMBOBOX 0
1368 # endif
1369 #endif /* !wxUSE_ODCOMBOBOX */
1370
1371 /* don't attempt to use native status bar on the platforms not having it */
1372 #ifndef wxUSE_NATIVE_STATUSBAR
1373 # define wxUSE_NATIVE_STATUSBAR 0
1374 #elif wxUSE_NATIVE_STATUSBAR
1375 # if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \
1376 defined(__WXMAC__) || \
1377 defined(__WXPALMOS__) )
1378 # undef wxUSE_NATIVE_STATUSBAR
1379 # define wxUSE_NATIVE_STATUSBAR 0
1380 # endif
1381 #endif
1382
1383 #if wxUSE_GRAPHICS_CONTEXT && !wxUSE_GEOMETRY
1384 # ifdef wxABORT_ON_CONFIG_ERROR
1385 # error "wxUSE_GRAPHICS_CONTEXT requires wxUSE_GEOMETRY"
1386 # else
1387 # undef wxUSE_GRAPHICS_CONTEXT
1388 # define wxUSE_GRAPHICS_CONTEXT 0
1389 # endif
1390 #endif /* wxUSE_GRAPHICS_CONTEXT */
1391
1392
1393 /* generic controls dependencies */
1394 #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1395 # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1396 /* all common controls are needed by these dialogs */
1397 # if !defined(wxUSE_CHOICE) || \
1398 !defined(wxUSE_TEXTCTRL) || \
1399 !defined(wxUSE_BUTTON) || \
1400 !defined(wxUSE_CHECKBOX) || \
1401 !defined(wxUSE_STATTEXT)
1402 # ifdef wxABORT_ON_CONFIG_ERROR
1403 # error "These common controls are needed by common dialogs"
1404 # else
1405 # undef wxUSE_CHOICE
1406 # define wxUSE_CHOICE 1
1407 # undef wxUSE_TEXTCTRL
1408 # define wxUSE_TEXTCTRL 1
1409 # undef wxUSE_BUTTON
1410 # define wxUSE_BUTTON 1
1411 # undef wxUSE_CHECKBOX
1412 # define wxUSE_CHECKBOX 1
1413 # undef wxUSE_STATTEXT
1414 # define wxUSE_STATTEXT 1
1415 # endif
1416 # endif
1417 # endif
1418 #endif /* !wxMSW || wxUniv */
1419
1420 /* common dependencies */
1421 #if wxUSE_CALENDARCTRL
1422 # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1423 # ifdef wxABORT_ON_CONFIG_ERROR
1424 # error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1425 # else
1426 # undef wxUSE_SPINBTN
1427 # undef wxUSE_COMBOBOX
1428 # define wxUSE_SPINBTN 1
1429 # define wxUSE_COMBOBOX 1
1430 # endif
1431 # endif
1432
1433 # if !wxUSE_DATETIME
1434 # ifdef wxABORT_ON_CONFIG_ERROR
1435 # error "wxCalendarCtrl requires wxUSE_DATETIME"
1436 # else
1437 # undef wxUSE_DATETIME
1438 # define wxUSE_DATETIME 1
1439 # endif
1440 # endif
1441 #endif /* wxUSE_CALENDARCTRL */
1442
1443 #if wxUSE_DATEPICKCTRL
1444 # if !wxUSE_DATETIME
1445 # ifdef wxABORT_ON_CONFIG_ERROR
1446 # error "wxDatePickerCtrl requires wxUSE_DATETIME"
1447 # else
1448 # undef wxUSE_DATETIME
1449 # define wxUSE_DATETIME 1
1450 # endif
1451 # endif
1452 #endif /* wxUSE_DATEPICKCTRL */
1453
1454 #if wxUSE_CHECKLISTBOX
1455 # if !wxUSE_LISTBOX
1456 # ifdef wxABORT_ON_CONFIG_ERROR
1457 # error "wxCheckListBox requires wxListBox"
1458 # else
1459 # undef wxUSE_LISTBOX
1460 # define wxUSE_LISTBOX 1
1461 # endif
1462 # endif
1463 #endif /* wxUSE_CHECKLISTBOX */
1464
1465 #if wxUSE_CHOICEDLG
1466 # if !wxUSE_LISTBOX
1467 # ifdef wxABORT_ON_CONFIG_ERROR
1468 # error "Choice dialogs requires wxListBox"
1469 # else
1470 # undef wxUSE_LISTBOX
1471 # define wxUSE_LISTBOX 1
1472 # endif
1473 # endif
1474 #endif /* wxUSE_CHOICEDLG */
1475
1476 #if wxUSE_HELP
1477 # if !wxUSE_BMPBUTTON
1478 # ifdef wxABORT_ON_CONFIG_ERROR
1479 # error "wxUSE_HELP requires wxUSE_BMPBUTTON"
1480 # else
1481 # undef wxUSE_BMPBUTTON
1482 # define wxUSE_BMPBUTTON 1
1483 # endif
1484 # endif
1485
1486 # if !wxUSE_CHOICEDLG
1487 # ifdef wxABORT_ON_CONFIG_ERROR
1488 # error "wxUSE_HELP requires wxUSE_CHOICEDLG"
1489 # else
1490 # undef wxUSE_CHOICEDLG
1491 # define wxUSE_CHOICEDLG 1
1492 # endif
1493 # endif
1494 #endif /* wxUSE_HELP */
1495
1496 #if wxUSE_MS_HTML_HELP
1497 /*
1498 this doesn't make sense for platforms other than MSW but we still
1499 define it in wx/setup_inc.h so don't complain if it happens to be
1500 defined under another platform but just silently fix it.
1501 */
1502 # ifndef __WXMSW__
1503 # undef wxUSE_MS_HTML_HELP
1504 # define wxUSE_MS_HTML_HELP 0
1505 # endif
1506 #endif /* wxUSE_MS_HTML_HELP */
1507
1508 #if wxUSE_WXHTML_HELP
1509 # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL
1510 # ifdef wxABORT_ON_CONFIG_ERROR
1511 # error "Built in help controller can't be compiled"
1512 # else
1513 # undef wxUSE_HELP
1514 # define wxUSE_HELP 1
1515 # undef wxUSE_HTML
1516 # define wxUSE_HTML 1
1517 # undef wxUSE_COMBOBOX
1518 # define wxUSE_COMBOBOX 1
1519 # undef wxUSE_NOTEBOOK
1520 # define wxUSE_NOTEBOOK 1
1521 # undef wxUSE_SPINCTRL
1522 # define wxUSE_SPINCTRL 1
1523 # endif
1524 # endif
1525 #endif /* wxUSE_WXHTML_HELP */
1526
1527 #if !wxUSE_IMAGE
1528 /*
1529 The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the
1530 user explicitly wants this and disable all other features that require
1531 wxUSE_IMAGE.
1532 */
1533 # if wxUSE_DRAGIMAGE
1534 # ifdef wxABORT_ON_CONFIG_ERROR
1535 # error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE"
1536 # else
1537 # undef wxUSE_DRAGIMAGE
1538 # define wxUSE_DRAGIMAGE 0
1539 # endif
1540 # endif
1541
1542 # if wxUSE_LIBPNG
1543 # ifdef wxABORT_ON_CONFIG_ERROR
1544 # error "wxUSE_LIBPNG requires wxUSE_IMAGE"
1545 # else
1546 # undef wxUSE_LIBPNG
1547 # define wxUSE_LIBPNG 0
1548 # endif
1549 # endif
1550
1551 # if wxUSE_LIBJPEG
1552 # ifdef wxABORT_ON_CONFIG_ERROR
1553 # error "wxUSE_LIBJPEG requires wxUSE_IMAGE"
1554 # else
1555 # undef wxUSE_LIBJPEG
1556 # define wxUSE_LIBJPEG 0
1557 # endif
1558 # endif
1559
1560 # if wxUSE_LIBTIFF
1561 # ifdef wxABORT_ON_CONFIG_ERROR
1562 # error "wxUSE_LIBTIFF requires wxUSE_IMAGE"
1563 # else
1564 # undef wxUSE_LIBTIFF
1565 # define wxUSE_LIBTIFF 0
1566 # endif
1567 # endif
1568
1569 # if wxUSE_GIF
1570 # ifdef wxABORT_ON_CONFIG_ERROR
1571 # error "wxUSE_GIF requires wxUSE_IMAGE"
1572 # else
1573 # undef wxUSE_GIF
1574 # define wxUSE_GIF 0
1575 # endif
1576 # endif
1577
1578 # if wxUSE_PNM
1579 # ifdef wxABORT_ON_CONFIG_ERROR
1580 # error "wxUSE_PNM requires wxUSE_IMAGE"
1581 # else
1582 # undef wxUSE_PNM
1583 # define wxUSE_PNM 0
1584 # endif
1585 # endif
1586
1587 # if wxUSE_PCX
1588 # ifdef wxABORT_ON_CONFIG_ERROR
1589 # error "wxUSE_PCX requires wxUSE_IMAGE"
1590 # else
1591 # undef wxUSE_PCX
1592 # define wxUSE_PCX 0
1593 # endif
1594 # endif
1595
1596 # if wxUSE_IFF
1597 # ifdef wxABORT_ON_CONFIG_ERROR
1598 # error "wxUSE_IFF requires wxUSE_IMAGE"
1599 # else
1600 # undef wxUSE_IFF
1601 # define wxUSE_IFF 0
1602 # endif
1603 # endif
1604
1605 # if wxUSE_TOOLBAR
1606 # ifdef wxABORT_ON_CONFIG_ERROR
1607 # error "wxUSE_TOOLBAR requires wxUSE_IMAGE"
1608 # else
1609 # undef wxUSE_TOOLBAR
1610 # define wxUSE_TOOLBAR 0
1611 # endif
1612 # endif
1613
1614 # if wxUSE_XPM
1615 # ifdef wxABORT_ON_CONFIG_ERROR
1616 # error "wxUSE_XPM requires wxUSE_IMAGE"
1617 # else
1618 # undef wxUSE_XPM
1619 # define wxUSE_XPM 0
1620 # endif
1621 # endif
1622
1623 #endif /* !wxUSE_IMAGE */
1624
1625 #if wxUSE_DOC_VIEW_ARCHITECTURE
1626 # if !wxUSE_MENUS
1627 # ifdef wxABORT_ON_CONFIG_ERROR
1628 # error "DocView requires wxUSE_MENUS"
1629 # else
1630 # undef wxUSE_MENUS
1631 # define wxUSE_MENUS 1
1632 # endif
1633 # endif
1634
1635 # if !wxUSE_CHOICEDLG
1636 # ifdef wxABORT_ON_CONFIG_ERROR
1637 # error "DocView requires wxUSE_CHOICEDLG"
1638 # else
1639 # undef wxUSE_CHOICEDLG
1640 # define wxUSE_CHOICEDLG 1
1641 # endif
1642 # endif
1643
1644 # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1645 # ifdef wxABORT_ON_CONFIG_ERROR
1646 # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1647 # else
1648 # undef wxUSE_STREAMS
1649 # define wxUSE_STREAMS 1
1650 # endif
1651 # endif
1652 #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1653
1654 #if wxUSE_PRINTING_ARCHITECTURE
1655 # if !wxUSE_COMBOBOX
1656 # ifdef wxABORT_ON_CONFIG_ERROR
1657 # error "Print dialog requires wxUSE_COMBOBOX"
1658 # else
1659 # undef wxUSE_COMBOBOX
1660 # define wxUSE_COMBOBOX 1
1661 # endif
1662 # endif
1663 #endif /* wxUSE_PRINTING_ARCHITECTURE */
1664
1665 #if wxUSE_MDI_ARCHITECTURE
1666 # if !wxUSE_MDI
1667 # ifdef wxABORT_ON_CONFIG_ERROR
1668 # error "MDI requires wxUSE_MDI"
1669 # else
1670 # undef wxUSE_MDI
1671 # define wxUSE_MDI 1
1672 # endif
1673 # endif
1674
1675 # if !wxUSE_DOC_VIEW_ARCHITECTURE
1676 # ifdef wxABORT_ON_CONFIG_ERROR
1677 # error "wxUSE_MDI_ARCHITECTURE requires wxUSE_DOC_VIEW_ARCHITECTURE"
1678 # else
1679 # undef wxUSE_DOC_VIEW_ARCHITECTURE
1680 # define wxUSE_DOC_VIEW_ARCHITECTURE 1
1681 # endif
1682 # endif
1683 #endif /* wxUSE_MDI_ARCHITECTURE */
1684
1685 #if !wxUSE_FILEDLG
1686 # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1687 # ifdef wxABORT_ON_CONFIG_ERROR
1688 # error "wxUSE_FILEDLG is required by wxUSE_DOC_VIEW_ARCHITECTURE and wxUSE_WXHTML_HELP!"
1689 # else
1690 # undef wxUSE_FILEDLG
1691 # define wxUSE_FILEDLG 1
1692 # endif
1693 # endif
1694 #endif /* wxUSE_FILEDLG */
1695
1696 #if !wxUSE_GAUGE || !wxUSE_BUTTON
1697 # if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__)
1698 # ifdef wxABORT_ON_CONFIG_ERROR
1699 # error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON"
1700 # else
1701 # undef wxUSE_GAUGE
1702 # undef wxUSE_BUTTON
1703 # define wxUSE_GAUGE 1
1704 # define wxUSE_BUTTON 1
1705 # endif
1706 # endif
1707 #endif /* !wxUSE_GAUGE */
1708
1709 #if !wxUSE_BUTTON
1710 # if wxUSE_FONTDLG || \
1711 wxUSE_FILEDLG || \
1712 wxUSE_CHOICEDLG || \
1713 wxUSE_NUMBERDLG || \
1714 wxUSE_TEXTDLG || \
1715 wxUSE_DIRDLG || \
1716 wxUSE_STARTUP_TIPS || \
1717 wxUSE_WIZARDDLG
1718 # ifdef wxABORT_ON_CONFIG_ERROR
1719 # error "Common and generic dialogs require wxUSE_BUTTON"
1720 # else
1721 # undef wxUSE_BUTTON
1722 # define wxUSE_BUTTON 1
1723 # endif
1724 # endif
1725 #endif /* !wxUSE_BUTTON */
1726
1727 #if !wxUSE_TOOLBAR
1728 # if wxUSE_TOOLBAR_NATIVE
1729 # ifdef wxABORT_ON_CONFIG_ERROR
1730 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
1731 # else
1732 # undef wxUSE_TOOLBAR_NATIVE
1733 # define wxUSE_TOOLBAR_NATIVE 0
1734 # endif
1735 # endif
1736 #endif
1737
1738 #if !wxUSE_IMAGLIST
1739 # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL
1740 # ifdef wxABORT_ON_CONFIG_ERROR
1741 # error "wxImageList must be compiled as well"
1742 # else
1743 # undef wxUSE_IMAGLIST
1744 # define wxUSE_IMAGLIST 1
1745 # endif
1746 # endif
1747 #endif /* !wxUSE_IMAGLIST */
1748
1749 #if wxUSE_RADIOBOX
1750 # if !wxUSE_RADIOBTN
1751 # ifdef wxABORT_ON_CONFIG_ERROR
1752 # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN"
1753 # else
1754 # undef wxUSE_RADIOBTN
1755 # define wxUSE_RADIOBTN 1
1756 # endif
1757 # endif
1758 # if !wxUSE_STATBOX && !defined(__WXPALMOS__)
1759 # ifdef wxABORT_ON_CONFIG_ERROR
1760 # error "wxUSE_RADIOBOX requires wxUSE_STATBOX"
1761 # else
1762 # undef wxUSE_STATBOX
1763 # define wxUSE_STATBOX 1
1764 # endif
1765 # endif
1766 #endif /* wxUSE_RADIOBOX */
1767
1768 #if wxUSE_LOGWINDOW
1769 # if !wxUSE_TEXTCTRL
1770 # ifdef wxABORT_ON_CONFIG_ERROR
1771 # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
1772 # else
1773 # undef wxUSE_TEXTCTRL
1774 # define wxUSE_TEXTCTRL 1
1775 # endif
1776 # endif
1777 #endif /* wxUSE_LOGWINDOW */
1778
1779 #if wxUSE_LOG_DIALOG
1780 # if !wxUSE_LISTCTRL || !wxUSE_BUTTON
1781 # ifdef wxABORT_ON_CONFIG_ERROR
1782 # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON"
1783 # else
1784 # undef wxUSE_LISTCTRL
1785 # define wxUSE_LISTCTRL 1
1786 # undef wxUSE_BUTTON
1787 # define wxUSE_BUTTON 1
1788 # endif
1789 # endif
1790 #endif /* wxUSE_LOG_DIALOG */
1791
1792 #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
1793 # ifdef wxABORT_ON_CONFIG_ERROR
1794 # error "wxClipboard requires wxDataObject"
1795 # else
1796 # undef wxUSE_DATAOBJ
1797 # define wxUSE_DATAOBJ 1
1798 # endif
1799 #endif /* wxUSE_CLIPBOARD */
1800
1801 #if wxUSE_XRC && !wxUSE_XML
1802 # ifdef wxABORT_ON_CONFIG_ERROR
1803 # error "wxUSE_XRC requires wxUSE_XML"
1804 # else
1805 # undef wxUSE_XRC
1806 # define wxUSE_XRC 0
1807 # endif
1808 #endif /* wxUSE_XRC */
1809
1810 #if wxUSE_SOCKETS && !wxUSE_STOPWATCH
1811 # ifdef wxABORT_ON_CONFIG_ERROR
1812 # error "wxUSE_SOCKETS requires wxUSE_STOPWATCH"
1813 # else
1814 # undef wxUSE_SOCKETS
1815 # define wxUSE_SOCKETS 0
1816 # endif
1817 #endif /* wxUSE_SOCKETS */
1818
1819 #if wxUSE_SVG && !wxUSE_STREAMS
1820 # ifdef wxABORT_ON_CONFIG_ERROR
1821 # error "wxUSE_SVG requires wxUSE_STREAMS"
1822 # else
1823 # undef wxUSE_SVG
1824 # define wxUSE_SVG 0
1825 # endif
1826 #endif /* wxUSE_SVG */
1827
1828 #if !wxUSE_VARIANT
1829 # if wxUSE_DATAVIEWCTRL
1830 # ifdef wxABORT_ON_CONFIG_ERROR
1831 # error "wxDataViewCtrl requires wxVariant"
1832 # else
1833 # undef wxUSE_DATAVIEWCTRL
1834 # define wxUSE_DATAVIEWCTRL 0
1835 # endif
1836 # endif
1837
1838 # if wxUSE_ODBC
1839 # ifdef wxABORT_ON_CONFIG_ERROR
1840 # error "wxUSE_ODBC requires wxVariant"
1841 # else
1842 # undef wxUSE_ODBC
1843 # define wxUSE_ODBC 0
1844 # endif
1845 # endif
1846 #endif /* wxUSE_VARIANT */
1847
1848 #endif /* wxUSE_GUI */
1849
1850 #endif /* _WX_CHKCONF_H_ */