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