]> git.saurik.com Git - wxWidgets.git/blame - include/wx/chkconf.h
replace wxGetMultipleChoices() with wxGetSelectedChoices() which allows to distinguis...
[wxWidgets.git] / include / wx / chkconf.h
CommitLineData
b45f79ec
VZ
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 */
1e6feb95
VZ
11
12/* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
8ba16443
VZ
13#ifndef _WX_CHKCONF_H_
14#define _WX_CHKCONF_H_
1e6feb95 15
01ebf752 16/*
6619edf0
VZ
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
01ebf752
JS
25 */
26
1e6feb95 27/*
730dfeb4 28 this global setting determines what should we do if the setting FOO
8a43eaec
VZ
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)
1e6feb95
VZ
32 */
33#define wxABORT_ON_CONFIG_ERROR
34
6962f34e
VZ
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
1bbcb0d5
VZ
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
4652511f
VZ
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
1bbcb0d5 64
1e6feb95 65/*
6619edf0 66 Section 1a: tests for non GUI features.
e16514bf
VZ
67
68 please keep the options in alphabetical order!
03169422
RL
69 */
70
a1873279
VZ
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
03169422
RL
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
4199367e
VZ
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
c7f3eecc
VZ
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
26e422a9
MW
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
05815ab3 111#ifndef wxUSE_FSVOLUME
83d56dd1
FM
112# ifdef wxABORT_ON_CONFIG_ERROR
113# error "wxUSE_FSVOLUME must be defined."
114# else
115# define wxUSE_FSVOLUME 0
116# endif
05815ab3
VZ
117#endif /* !defined(wxUSE_FSVOLUME) */
118
03169422
RL
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
149e70e1
VZ
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
8ac36abb
VZ
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
a5d46b73
VZ
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
0c46d866
VZ
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
7a828c7f
VZ
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
a5d46b73
VZ
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
07158944
VZ
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
27b0c286
VS
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
a5d46b73
VZ
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
ca5c6ac3
VZ
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
149e70e1
VZ
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
03169422 321/*
6619edf0 322 Section 1b: all these tests are for GUI only.
e16514bf
VZ
323
324 please keep the options in alphabetical order!
1e6feb95
VZ
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
9211cf3c
VZ
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
1e6feb95
VZ
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
a9c64a1b
VZ
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
72045d57
VZ
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
8084f8b7
VZ
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
8d37334f
VZ
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
1e6feb95
VZ
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
f5e0b4bc
WS
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
3379ed37
VZ
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
1e6feb95
VZ
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
912c3932
VZ
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
a2c0a9c5
VZ
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
ec376c8f
VZ
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
1e6feb95
VZ
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
a57d600f 493#ifndef wxUSE_COMBOCTRL
481e2766 494# ifdef wxABORT_ON_CONFIG_ERROR
a57d600f 495# error "wxUSE_COMBOCTRL must be defined."
481e2766 496# else
a57d600f 497# define wxUSE_COMBOCTRL 0
481e2766 498# endif
a57d600f 499#endif /* !defined(wxUSE_COMBOCTRL) */
481e2766 500
1e6feb95
VZ
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
e16514bf
VZ
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
337dc4c1
WS
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
ec376c8f
VZ
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
f8ba082e
VZ
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
3379ed37
VZ
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
0cf3e587
VZ
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
1e6feb95
VZ
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
ec376c8f
VZ
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
1e6feb95
VZ
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
ec376c8f
VZ
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
1e6feb95
VZ
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
f43426c1
RD
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
1e6feb95
VZ
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
e721a2a2
VZ
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
3379ed37
VZ
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
17e91437
VZ
638#ifndef wxUSE_HYPERLINKCTRL
639# ifdef wxABORT_ON_CONFIG_ERROR
640# error "wxUSE_HYPERLINKCTRL must be defined."
641# else
642# define wxUSE_HYPERLINKCTRL 0
643# endif
644#endif /* !defined(wxUSE_HYPERLINKCTRL) */
645
05dcbb8e
VZ
646#ifndef wxUSE_HTML
647# ifdef wxABORT_ON_CONFIG_ERROR
648# error "wxUSE_HTML must be defined."
649# else
650# define wxUSE_HTML 0
651# endif
652#endif /* !defined(wxUSE_HTML) */
653
c839485c 654#ifndef wxUSE_LIBMSPACK
abd0503c 655# if !defined(__UNIX__) || defined(__WXPALMOS__)
c839485c
VS
656 /* set to 0 on platforms that don't have libmspack */
657# define wxUSE_LIBMSPACK 0
658# else
659# ifdef wxABORT_ON_CONFIG_ERROR
660# error "wxUSE_LIBMSPACK must be defined."
661# else
662# define wxUSE_LIBMSPACK 0
663# endif
664# endif
665#endif /* !defined(wxUSE_LIBMSPACK) */
666
658974ae
VS
667#ifndef wxUSE_ICO_CUR
668# ifdef wxABORT_ON_CONFIG_ERROR
669# error "wxUSE_ICO_CUR must be defined."
670# else
671# define wxUSE_ICO_CUR 0
672# endif
673#endif /* !defined(wxUSE_ICO_CUR) */
674
1663afc0
VS
675#ifndef wxUSE_IFF
676# ifdef wxABORT_ON_CONFIG_ERROR
677# error "wxUSE_IFF must be defined."
678# else
679# define wxUSE_IFF 0
680# endif
681#endif /* !defined(wxUSE_IFF) */
682
1e6feb95
VZ
683#ifndef wxUSE_IMAGLIST
684# ifdef wxABORT_ON_CONFIG_ERROR
685# error "wxUSE_IMAGLIST must be defined."
686# else
687# define wxUSE_IMAGLIST 0
688# endif
689#endif /* !defined(wxUSE_IMAGLIST) */
690
2131b89d
VZ
691#ifndef wxUSE_JOYSTICK
692# ifdef wxABORT_ON_CONFIG_ERROR
693# error "wxUSE_JOYSTICK must be defined."
694# else
695# define wxUSE_JOYSTICK 0
696# endif
697#endif /* !defined(wxUSE_JOYSTICK) */
698
5b5e4f32
VZ
699#ifndef wxUSE_LISTBOOK
700# ifdef wxABORT_ON_CONFIG_ERROR
701# error "wxUSE_LISTBOOK must be defined."
702# else
703# define wxUSE_LISTBOOK 0
704# endif
705#endif /* !defined(wxUSE_LISTBOOK) */
706
1e6feb95
VZ
707#ifndef wxUSE_LISTBOX
708# ifdef wxABORT_ON_CONFIG_ERROR
709# error "wxUSE_LISTBOX must be defined."
710# else
711# define wxUSE_LISTBOX 0
712# endif
713#endif /* !defined(wxUSE_LISTBOX) */
714
715#ifndef wxUSE_LISTCTRL
716# ifdef wxABORT_ON_CONFIG_ERROR
717# error "wxUSE_LISTCTRL must be defined."
718# else
719# define wxUSE_LISTCTRL 0
720# endif
721#endif /* !defined(wxUSE_LISTCTRL) */
722
3379ed37
VZ
723#ifndef wxUSE_LOGGUI
724# ifdef wxABORT_ON_CONFIG_ERROR
725# error "wxUSE_LOGGUI must be defined."
726# else
727# define wxUSE_LOGGUI 0
728# endif
729#endif /* !defined(wxUSE_LOGGUI) */
730
731#ifndef wxUSE_LOGWINDOW
732# ifdef wxABORT_ON_CONFIG_ERROR
733# error "wxUSE_LOGWINDOW must be defined."
734# else
735# define wxUSE_LOGWINDOW 0
736# endif
737#endif /* !defined(wxUSE_LOGWINDOW) */
e421922f 738
3e6e2754
JS
739#ifndef wxUSE_LOG_DIALOG
740# ifdef wxABORT_ON_CONFIG_ERROR
741# error "wxUSE_LOG_DIALOG must be defined."
742# else
743# define wxUSE_LOG_DIALOG 0
744# endif
71908213 745#endif /* !defined(wxUSE_LOG_DIALOG) */
3e6e2754 746
efd17a1d
VZ
747#ifndef wxUSE_MDI
748# ifdef wxABORT_ON_CONFIG_ERROR
749# error "wxUSE_MDI must be defined."
750# else
751# define wxUSE_MDI 0
752# endif
753#endif /* !defined(wxUSE_MDI) */
754
1e6feb95
VZ
755#ifndef wxUSE_MDI_ARCHITECTURE
756# ifdef wxABORT_ON_CONFIG_ERROR
757# error "wxUSE_MDI_ARCHITECTURE must be defined."
758# else
759# define wxUSE_MDI_ARCHITECTURE 0
760# endif
761#endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
762
763#ifndef wxUSE_MENUS
764# ifdef wxABORT_ON_CONFIG_ERROR
765# error "wxUSE_MENUS must be defined."
766# else
767# define wxUSE_MENUS 0
768# endif
769#endif /* !defined(wxUSE_MENUS) */
770
3379ed37
VZ
771#ifndef wxUSE_MSGDLG
772# ifdef wxABORT_ON_CONFIG_ERROR
773# error "wxUSE_MSGDLG must be defined."
774# else
775# define wxUSE_MSGDLG 0
776# endif
777#endif /* !defined(wxUSE_MSGDLG) */
778
1e6feb95
VZ
779#ifndef wxUSE_NOTEBOOK
780# ifdef wxABORT_ON_CONFIG_ERROR
781# error "wxUSE_NOTEBOOK must be defined."
782# else
783# define wxUSE_NOTEBOOK 0
784# endif
785#endif /* !defined(wxUSE_NOTEBOOK) */
786
e36a1739
VZ
787#ifndef wxUSE_NOTIFICATION_MESSAGE
788# ifdef wxABORT_ON_CONFIG_ERROR
789# error "wxUSE_NOTIFICATION_MESSAGE must be defined."
790# else
791# define wxUSE_NOTIFICATION_MESSAGE 0
792# endif
793#endif /* !defined(wxUSE_NOTIFICATION_MESSAGE) */
794
a57d600f 795#ifndef wxUSE_ODCOMBOBOX
481e2766 796# ifdef wxABORT_ON_CONFIG_ERROR
a57d600f 797# error "wxUSE_ODCOMBOBOX must be defined."
481e2766 798# else
a57d600f 799# define wxUSE_ODCOMBOBOX 0
481e2766 800# endif
a57d600f 801#endif /* !defined(wxUSE_ODCOMBOBOX) */
481e2766 802
d275c7eb
VZ
803#ifndef wxUSE_PALETTE
804# ifdef wxABORT_ON_CONFIG_ERROR
805# error "wxUSE_PALETTE must be defined."
806# else
807# define wxUSE_PALETTE 0
808# endif
809#endif /* !defined(wxUSE_PALETTE) */
810
1e6feb95
VZ
811#ifndef wxUSE_POPUPWIN
812# ifdef wxABORT_ON_CONFIG_ERROR
813# error "wxUSE_POPUPWIN must be defined."
814# else
815# define wxUSE_POPUPWIN 0
816# endif
817#endif /* !defined(wxUSE_POPUPWIN) */
818
3379ed37
VZ
819#ifndef wxUSE_PRINTING_ARCHITECTURE
820# ifdef wxABORT_ON_CONFIG_ERROR
821# error "wxUSE_PRINTING_ARCHITECTURE must be defined."
822# else
823# define wxUSE_PRINTING_ARCHITECTURE 0
824# endif
825#endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
826
1e6feb95
VZ
827#ifndef wxUSE_RADIOBOX
828# ifdef wxABORT_ON_CONFIG_ERROR
829# error "wxUSE_RADIOBOX must be defined."
830# else
831# define wxUSE_RADIOBOX 0
832# endif
833#endif /* !defined(wxUSE_RADIOBOX) */
834
835#ifndef wxUSE_RADIOBTN
836# ifdef wxABORT_ON_CONFIG_ERROR
837# error "wxUSE_RADIOBTN must be defined."
838# else
839# define wxUSE_RADIOBTN 0
840# endif
841#endif /* !defined(wxUSE_RADIOBTN) */
842
65ead230
VZ
843#ifndef wxUSE_REARRANGECTRL
844# ifdef wxABORT_ON_CONFIG_ERROR
845# error "wxUSE_REARRANGECTRL must be defined."
846# else
847# define wxUSE_REARRANGECTRL 0
848# endif
849#endif /* !defined(wxUSE_REARRANGECTRL) */
850
1e6feb95
VZ
851#ifndef wxUSE_SASH
852# ifdef wxABORT_ON_CONFIG_ERROR
853# error "wxUSE_SASH must be defined."
854# else
855# define wxUSE_SASH 0
856# endif
857#endif /* !defined(wxUSE_SASH) */
858
859#ifndef wxUSE_SCROLLBAR
860# ifdef wxABORT_ON_CONFIG_ERROR
861# error "wxUSE_SCROLLBAR must be defined."
862# else
863# define wxUSE_SCROLLBAR 0
864# endif
865#endif /* !defined(wxUSE_SCROLLBAR) */
866
867#ifndef wxUSE_SLIDER
868# ifdef wxABORT_ON_CONFIG_ERROR
869# error "wxUSE_SLIDER must be defined."
870# else
871# define wxUSE_SLIDER 0
872# endif
873#endif /* !defined(wxUSE_SLIDER) */
874
cad1a197
VS
875#ifndef wxUSE_SOUND
876# ifdef wxABORT_ON_CONFIG_ERROR
877# error "wxUSE_SOUND must be defined."
878# else
879# define wxUSE_SOUND 0
880# endif
881#endif /* !defined(wxUSE_SOUND) */
882
1e6feb95
VZ
883#ifndef wxUSE_SPINBTN
884# ifdef wxABORT_ON_CONFIG_ERROR
885# error "wxUSE_SPINBTN must be defined."
886# else
887# define wxUSE_SPINBTN 0
888# endif
889#endif /* !defined(wxUSE_SPINBTN) */
890
891#ifndef wxUSE_SPINCTRL
892# ifdef wxABORT_ON_CONFIG_ERROR
893# error "wxUSE_SPINCTRL must be defined."
894# else
895# define wxUSE_SPINCTRL 0
896# endif
897#endif /* !defined(wxUSE_SPINCTRL) */
898
2654a046
MB
899#ifndef wxUSE_SPLASH
900# ifdef wxABORT_ON_CONFIG_ERROR
901# error "wxUSE_SPLASH must be defined."
902# else
903# define wxUSE_SPLASH 0
904# endif
905#endif /* !defined(wxUSE_SPLASH) */
906
1e6feb95
VZ
907#ifndef wxUSE_SPLITTER
908# ifdef wxABORT_ON_CONFIG_ERROR
909# error "wxUSE_SPLITTER must be defined."
910# else
911# define wxUSE_SPLITTER 0
912# endif
913#endif /* !defined(wxUSE_SPLITTER) */
914
915#ifndef wxUSE_STATBMP
916# ifdef wxABORT_ON_CONFIG_ERROR
917# error "wxUSE_STATBMP must be defined."
918# else
919# define wxUSE_STATBMP 0
920# endif
921#endif /* !defined(wxUSE_STATBMP) */
922
923#ifndef wxUSE_STATBOX
924# ifdef wxABORT_ON_CONFIG_ERROR
925# error "wxUSE_STATBOX must be defined."
926# else
927# define wxUSE_STATBOX 0
928# endif
929#endif /* !defined(wxUSE_STATBOX) */
930
931#ifndef wxUSE_STATLINE
932# ifdef wxABORT_ON_CONFIG_ERROR
933# error "wxUSE_STATLINE must be defined."
934# else
935# define wxUSE_STATLINE 0
936# endif
937#endif /* !defined(wxUSE_STATLINE) */
938
3379ed37
VZ
939#ifndef wxUSE_STATTEXT
940# ifdef wxABORT_ON_CONFIG_ERROR
941# error "wxUSE_STATTEXT must be defined."
942# else
943# define wxUSE_STATTEXT 0
944# endif
945#endif /* !defined(wxUSE_STATTEXT) */
946
1e6feb95
VZ
947#ifndef wxUSE_STATUSBAR
948# ifdef wxABORT_ON_CONFIG_ERROR
949# error "wxUSE_STATUSBAR must be defined."
950# else
951# define wxUSE_STATUSBAR 0
952# endif
953#endif /* !defined(wxUSE_STATUSBAR) */
954
4f167b46
VZ
955#ifndef wxUSE_TASKBARICON
956# ifdef wxABORT_ON_CONFIG_ERROR
957# error "wxUSE_TASKBARICON must be defined."
958# else
959# define wxUSE_TASKBARICON 0
960# endif
961#endif /* !defined(wxUSE_TASKBARICON) */
962
1e6feb95
VZ
963#ifndef wxUSE_TEXTCTRL
964# ifdef wxABORT_ON_CONFIG_ERROR
965# error "wxUSE_TEXTCTRL must be defined."
966# else
967# define wxUSE_TEXTCTRL 0
968# endif
969#endif /* !defined(wxUSE_TEXTCTRL) */
970
f38bcae5
VZ
971#ifndef wxUSE_TIPWINDOW
972# ifdef wxABORT_ON_CONFIG_ERROR
973# error "wxUSE_TIPWINDOW must be defined."
974# else
975# define wxUSE_TIPWINDOW 0
976# endif
977#endif /* !defined(wxUSE_TIPWINDOW) */
978
1e6feb95
VZ
979#ifndef wxUSE_TOOLBAR
980# ifdef wxABORT_ON_CONFIG_ERROR
981# error "wxUSE_TOOLBAR must be defined."
982# else
983# define wxUSE_TOOLBAR 0
984# endif
985#endif /* !defined(wxUSE_TOOLBAR) */
986
987#ifndef wxUSE_TOOLTIPS
988# ifdef wxABORT_ON_CONFIG_ERROR
989# error "wxUSE_TOOLTIPS must be defined."
990# else
991# define wxUSE_TOOLTIPS 0
992# endif
993#endif /* !defined(wxUSE_TOOLTIPS) */
994
995#ifndef wxUSE_TREECTRL
996# ifdef wxABORT_ON_CONFIG_ERROR
997# error "wxUSE_TREECTRL must be defined."
998# else
999# define wxUSE_TREECTRL 0
1000# endif
1001#endif /* !defined(wxUSE_TREECTRL) */
1002
f8ba082e 1003#ifndef wxUSE_VALIDATORS
12491c1f 1004# ifdef wxABORT_ON_CONFIG_ERROR
f8ba082e 1005# error "wxUSE_VALIDATORS must be defined."
12491c1f 1006# else
f8ba082e 1007# define wxUSE_VALIDATORS 0
12491c1f 1008# endif
f8ba082e 1009#endif /* !defined(wxUSE_VALIDATORS) */
12491c1f 1010
3379ed37
VZ
1011#ifndef wxUSE_WXHTML_HELP
1012# ifdef wxABORT_ON_CONFIG_ERROR
1013# error "wxUSE_WXHTML_HELP must be defined."
1014# else
1015# define wxUSE_WXHTML_HELP 0
1016# endif
1017#endif /* !defined(wxUSE_WXHTML_HELP) */
1018
e16514bf
VZ
1019#ifndef wxUSE_XRC
1020# ifdef wxABORT_ON_CONFIG_ERROR
1021# error "wxUSE_XRC must be defined."
1022# else
1023# define wxUSE_XRC 0
1024# endif
1025#endif /* !defined(wxUSE_XRC) */
1026
a5d46b73 1027#endif /* wxUSE_GUI */
c4d596ea 1028
1e6feb95 1029/*
6619edf0
VZ
1030 Section 2: platform-specific checks.
1031
1032 This must be done after checking that everything is defined as the platform
1033 checks use wxUSE_XXX symbols in #if tests.
1034 */
1035
1036#if defined(__WXPALMOS__)
1037# include "wx/palmos/chkconf.h"
1038#elif defined(__WXWINCE__)
1039# include "wx/msw/wince/chkconf.h"
1040#elif defined(__WXMSW__)
1041# include "wx/msw/chkconf.h"
1042#elif defined(__WXGTK__)
1043# include "wx/gtk/chkconf.h"
d30ef769
VZ
1044#elif defined(__WXCOCOA__)
1045# include "wx/cocoa/chkconf.h"
6619edf0 1046#elif defined(__WXMAC__)
ef0e9220 1047# include "wx/osx/chkconf.h"
6619edf0
VZ
1048#elif defined(__OS2__)
1049# include "wx/os2/chkconf.h"
1050#elif defined(__WXMGL__)
1051# include "wx/mgl/chkconf.h"
1052#elif defined(__WXDFB__)
1053# include "wx/dfb/chkconf.h"
1054#elif defined(__WXMOTIF__)
1055# include "wx/motif/chkconf.h"
1056#elif defined(__WXX11__)
1057# include "wx/x11/chkconf.h"
1058#endif
1059
149e70e1
VZ
1060/*
1061 __UNIX__ is also defined under Cygwin but we shouldn't perform these checks
1062 there if we're building wxMSW.
1063 */
1064#if defined(__UNIX__) && !defined(__WXMSW__)
6619edf0
VZ
1065# include "wx/unix/chkconf.h"
1066#endif
1067
1068#ifdef __WXUNIVERSAL__
1069# include "wx/univ/chkconf.h"
1070#endif
1071
1072/*
1073 Section 3a: check consistency of the non-GUI settings.
1e6feb95 1074 */
a5d46b73 1075
c1dc9f83
VZ
1076#if WXWIN_COMPATIBILITY_2_6
1077# if !WXWIN_COMPATIBILITY_2_8
f7c3b945 1078# ifdef wxABORT_ON_CONFIG_ERROR
c1dc9f83 1079# error "2.6.X compatibility requires 2.8.X compatibility"
f7c3b945 1080# else
c1dc9f83
VZ
1081# undef WXWIN_COMPATIBILITY_2_8
1082# define WXWIN_COMPATIBILITY_2_8 1
f7c3b945
WS
1083# endif
1084# endif
c1dc9f83 1085#endif /* WXWIN_COMPATIBILITY_2_6 */
f7c3b945 1086
5d36ad18
VZ
1087#if wxUSE_ARCHIVE_STREAMS
1088# if !wxUSE_DATETIME
1089# ifdef wxABORT_ON_CONFIG_ERROR
1090# error "wxArchive requires wxUSE_DATETIME"
1091# else
1092# undef wxUSE_ARCHIVE_STREAMS
1093# define wxUSE_ARCHIVE_STREAMS 0
1094# endif
1095# endif
1096#endif /* wxUSE_ARCHIVE_STREAMS */
1097
a5d46b73
VZ
1098#if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
1099# if !wxUSE_PROTOCOL
1100# ifdef wxABORT_ON_CONFIG_ERROR
1101# error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
1102# else
1103# undef wxUSE_PROTOCOL
1104# define wxUSE_PROTOCOL 1
1105# endif
1106# endif
1107#endif /* wxUSE_PROTOCOL_XXX */
1108
1109#if wxUSE_URL
1110# if !wxUSE_PROTOCOL
1111# ifdef wxABORT_ON_CONFIG_ERROR
1112# error "wxUSE_URL requires wxUSE_PROTOCOL"
1113# else
1114# undef wxUSE_PROTOCOL
1115# define wxUSE_PROTOCOL 1
1116# endif
1117# endif
1118#endif /* wxUSE_URL */
1119
1120#if wxUSE_PROTOCOL
1121# if !wxUSE_SOCKETS
1122# if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
1123# ifdef wxABORT_ON_CONFIG_ERROR
1124# error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
1125# else
1126# undef wxUSE_SOCKETS
1127# define wxUSE_SOCKETS 1
1128# endif
1129# endif
1130# endif
1131
1132# if !wxUSE_STREAMS
1133# ifdef wxABORT_ON_CONFIG_ERROR
1134# error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
1135# else
1136# undef wxUSE_STREAMS
1137# define wxUSE_STREAMS 1
1138# endif
1139# endif
1140#endif /* wxUSE_PROTOCOL */
1141
c7f3eecc
VZ
1142/* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
1143#if wxUSE_HTML
1144# if !wxUSE_FILESYSTEM
1145# ifdef wxABORT_ON_CONFIG_ERROR
1146# error "wxHTML requires wxFileSystem"
1147# else
1148# undef wxUSE_FILESYSTEM
1149# define wxUSE_FILESYSTEM 1
1150# endif
1151# endif
1152#endif /* wxUSE_HTML */
1153
916af76f
MW
1154#if wxUSE_FS_ARCHIVE
1155# if !wxUSE_FILESYSTEM
1156# ifdef wxABORT_ON_CONFIG_ERROR
1157# error "wxArchiveFSHandler requires wxFileSystem"
1158# else
1159# undef wxUSE_FILESYSTEM
1160# define wxUSE_FILESYSTEM 1
1161# endif
1162# endif
1163# if !wxUSE_ARCHIVE_STREAMS
1164# ifdef wxABORT_ON_CONFIG_ERROR
1165# error "wxArchiveFSHandler requires wxArchive"
1166# else
1167# undef wxUSE_ARCHIVE_STREAMS
1168# define wxUSE_ARCHIVE_STREAMS 1
1169# endif
1170# endif
1171#endif /* wxUSE_FS_ARCHIVE */
1172
c7f3eecc
VZ
1173#if wxUSE_FILESYSTEM
1174# if !wxUSE_STREAMS
1175# ifdef wxABORT_ON_CONFIG_ERROR
1176# error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
1177# else
1178# undef wxUSE_STREAMS
1179# define wxUSE_STREAMS 1
1180# endif
1181# endif
d9b0ee1e
VZ
1182# if !wxUSE_FILE && !wxUSE_FFILE
1183# ifdef wxABORT_ON_CONFIG_ERROR
1184# error "wxUSE_FILESYSTEM requires either wxUSE_FILE or wxUSE_FFILE"
1185# else
916af76f
MW
1186# undef wxUSE_FILE
1187# define wxUSE_FILE 1
1188# undef wxUSE_FFILE
1189# define wxUSE_FFILE 1
d9b0ee1e
VZ
1190# endif
1191# endif
c7f3eecc
VZ
1192#endif /* wxUSE_FILESYSTEM */
1193
ce73e654
VS
1194#if wxUSE_FS_INET
1195# if !wxUSE_PROTOCOL
1196# ifdef wxABORT_ON_CONFIG_ERROR
1197# error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
1198# else
1199# undef wxUSE_PROTOCOL
1200# define wxUSE_PROTOCOL 1
1201# endif
1202# endif
1203#endif /* wxUSE_FS_INET */
1204
c7f3eecc 1205#if wxUSE_STOPWATCH || wxUSE_DATETIME
a5d46b73
VZ
1206# if !wxUSE_LONGLONG
1207# ifdef wxABORT_ON_CONFIG_ERROR
c7f3eecc 1208# error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
a5d46b73
VZ
1209# else
1210# undef wxUSE_LONGLONG
1211# define wxUSE_LONGLONG 1
1212# endif
1213# endif
1214#endif /* wxUSE_STOPWATCH */
1215
1216#if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
1217# ifdef wxABORT_ON_CONFIG_ERROR
1218# error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
1219# else
1220# undef wxUSE_TEXTFILE
1221# define wxUSE_TEXTFILE 1
1222# endif
1223#endif /* wxUSE_MIMETYPE */
1224
1225#if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
1226# ifdef wxABORT_ON_CONFIG_ERROR
1227# error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
1228# else
1229# undef wxUSE_TEXTBUFFER
1230# define wxUSE_TEXTBUFFER 1
1231# endif
1232#endif /* wxUSE_TEXTFILE */
1233
1234#if wxUSE_TEXTFILE && !wxUSE_FILE
1235# ifdef wxABORT_ON_CONFIG_ERROR
1236# error "wxUSE_TEXTFILE requires wxUSE_FILE"
1237# else
1238# undef wxUSE_FILE
1239# define wxUSE_FILE 1
1240# endif
1241#endif /* wxUSE_TEXTFILE */
1242
7f799744
VS
1243#if wxUSE_XML && !wxUSE_WCHAR_T
1244# ifdef wxABORT_ON_CONFIG_ERROR
1245# error "wxUSE_XML requires wxUSE_WCHAR_T"
1246# else
1247# undef wxUSE_XML
1248# define wxUSE_XML 0
1249# endif
36a22fa3 1250#endif /* wxUSE_XML */
7f799744 1251
1948bb32
VS
1252#if !wxUSE_DYNLIB_CLASS
1253# if wxUSE_DYNAMIC_LOADER
1254# ifdef wxABORT_ON_CONFIG_ERROR
1255# error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
1256# else
1257# define wxUSE_DYNLIB_CLASS 1
1258# endif
1259# endif
1260#endif /* wxUSE_DYNLIB_CLASS */
1261
81f90336
MW
1262#if wxUSE_ZIPSTREAM
1263# if !wxUSE_ZLIB
1264# ifdef wxABORT_ON_CONFIG_ERROR
1265# error "wxZip requires wxZlib"
1266# else
1267# undef wxUSE_ZLIB
1268# define wxUSE_ZLIB 1
1269# endif
1270# endif
9e8e867f 1271# if !wxUSE_ARCHIVE_STREAMS
81f90336
MW
1272# ifdef wxABORT_ON_CONFIG_ERROR
1273# error "wxZip requires wxArchive"
1274# else
9e8e867f
MW
1275# undef wxUSE_ARCHIVE_STREAMS
1276# define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
1277# endif
1278# endif
1279#endif /* wxUSE_ZIPSTREAM */
1280
26e422a9
MW
1281#if wxUSE_TARSTREAM
1282# if !wxUSE_ARCHIVE_STREAMS
1283# ifdef wxABORT_ON_CONFIG_ERROR
1284# error "wxTar requires wxArchive"
1285# else
1286# undef wxUSE_ARCHIVE_STREAMS
1287# define wxUSE_ARCHIVE_STREAMS 1
1288# endif
1289# endif
1290#endif /* wxUSE_TARSTREAM */
1291
6619edf0
VZ
1292/*
1293 Section 3b: the tests for the GUI settings only.
1294 */
a5d46b73
VZ
1295#if wxUSE_GUI
1296
93629862 1297#if wxUSE_ACCESSIBILITY && !defined(__WXMSW__) && !defined(__GCCXML__)
a9c64a1b
VZ
1298# ifdef wxABORT_ON_CONFIG_ERROR
1299# error "wxUSE_ACCESSIBILITY is currently only supported under wxMSW"
1300# else
1301# undef wxUSE_ACCESSIBILITY
1302# define wxUSE_ACCESSIBILITY 0
1303# endif
1304#endif /* wxUSE_ACCESSIBILITY */
1305
1e6feb95
VZ
1306#if wxUSE_BUTTON || \
1307 wxUSE_CALENDARCTRL || \
1308 wxUSE_CARET || \
1309 wxUSE_COMBOBOX || \
1310 wxUSE_BMPBUTTON || \
1311 wxUSE_CHECKBOX || \
1312 wxUSE_CHECKLISTBOX || \
1313 wxUSE_CHOICE || \
1314 wxUSE_GAUGE || \
1315 wxUSE_GRID || \
e721a2a2 1316 wxUSE_HEADERCTRL || \
1e6feb95
VZ
1317 wxUSE_LISTBOX || \
1318 wxUSE_LISTCTRL || \
1319 wxUSE_NOTEBOOK || \
1320 wxUSE_RADIOBOX || \
1321 wxUSE_RADIOBTN || \
e721a2a2 1322 wxUSE_REARRANGECTRL || \
1e6feb95
VZ
1323 wxUSE_SCROLLBAR || \
1324 wxUSE_SLIDER || \
1325 wxUSE_SPINBTN || \
1326 wxUSE_SPINCTRL || \
1327 wxUSE_STATBMP || \
1328 wxUSE_STATBOX || \
1329 wxUSE_STATLINE || \
3379ed37 1330 wxUSE_STATTEXT || \
1e6feb95
VZ
1331 wxUSE_STATUSBAR || \
1332 wxUSE_TEXTCTRL || \
1333 wxUSE_TOOLBAR || \
1334 wxUSE_TREECTRL
1335# if !wxUSE_CONTROLS
1336# ifdef wxABORT_ON_CONFIG_ERROR
1337# error "wxUSE_CONTROLS unset but some controls used"
1338# else
1339# undef wxUSE_CONTROLS
1340# define wxUSE_CONTROLS 1
1341# endif
1342# endif
1343#endif /* controls */
1344
0b4f47a3
DS
1345#if wxUSE_BMPBUTTON
1346# if !wxUSE_BUTTON
1347# ifdef wxABORT_ON_CONFIG_ERROR
1348# error "wxUSE_BMPBUTTON requires wxUSE_BUTTON"
1349# else
1350# undef wxUSE_BUTTON
1351# define wxUSE_BUTTON 1
1352# endif
1353# endif
1354#endif /* wxUSE_BMPBUTTON */
1355
aa017eab
VZ
1356/*
1357 wxUSE_BOOKCTRL should be only used if any of the controls deriving from it
1358 are used
1359 */
1360#ifdef wxUSE_BOOKCTRL
1361# ifdef wxABORT_ON_CONFIG_ERROR
1362# error "wxUSE_BOOKCTRL is defined automatically, don't define it"
1363# else
1364# undef wxUSE_BOOKCTRL
15aad3b9 1365# endif
aa017eab 1366#endif
15aad3b9 1367
aa017eab
VZ
1368#define wxUSE_BOOKCTRL (wxUSE_NOTEBOOK || \
1369 wxUSE_LISTBOOK || \
1370 wxUSE_CHOICEBOOK || \
8d206c07 1371 wxUSE_TOOLBOOK || \
aa017eab 1372 wxUSE_TREEBOOK)
15aad3b9 1373
0917b10c
VZ
1374#if wxUSE_COLLPANE
1375# if !wxUSE_BUTTON || !wxUSE_STATLINE
1376# ifdef wxABORT_ON_CONFIG_ERROR
1377# error "wxUSE_COLLPANE requires wxUSE_BUTTON and wxUSE_STATLINE"
1378# else
1379# undef wxUSE_COLLPANE
1380# define wxUSE_COLLPANE 0
1381# endif
1382# endif
1383#endif /* wxUSE_COLLPANE */
1384
5b5e4f32
VZ
1385#if wxUSE_LISTBOOK
1386# if !wxUSE_LISTCTRL
1387# ifdef wxABORT_ON_CONFIG_ERROR
1388# error "wxListbook requires wxListCtrl"
1389# else
1390# undef wxUSE_LISTCTRL
1391# define wxUSE_LISTCTRL 1
1392# endif
1393# endif
1394#endif /* wxUSE_LISTBOOK */
1395
f5e0b4bc
WS
1396#if wxUSE_CHOICEBOOK
1397# if !wxUSE_CHOICE
1398# ifdef wxABORT_ON_CONFIG_ERROR
1399# error "wxChoicebook requires wxChoice"
1400# else
1401# undef wxUSE_CHOICE
1402# define wxUSE_CHOICE 1
1403# endif
1404# endif
1405#endif /* wxUSE_CHOICEBOOK */
1406
8d206c07
PC
1407#if wxUSE_TOOLBOOK
1408# if !wxUSE_TOOLBAR
1409# ifdef wxABORT_ON_CONFIG_ERROR
1410# error "wxToolbook requires wxToolBar"
1411# else
1412# undef wxUSE_TOOLBAR
1413# define wxUSE_TOOLBAR 1
1414# endif
1415# endif
1416#endif /* wxUSE_TOOLBOOK */
1417
8d37334f
VZ
1418#if !wxUSE_ODCOMBOBOX
1419# if wxUSE_BITMAPCOMBOBOX
e721a2a2
VZ
1420# ifdef wxABORT_ON_CONFIG_ERROR
1421# error "wxBitmapComboBox requires wxOwnerDrawnComboBox"
1422# else
1423# undef wxUSE_BITMAPCOMBOBOX
1424# define wxUSE_BITMAPCOMBOBOX 0
1425# endif
8d37334f
VZ
1426# endif
1427#endif /* !wxUSE_ODCOMBOBOX */
1428
e721a2a2
VZ
1429#if !wxUSE_HEADERCTRL
1430# if wxUSE_DATAVIEWCTRL || wxUSE_GRID
1431# ifdef wxABORT_ON_CONFIG_ERROR
1432# error "wxDataViewCtrl and wxGrid require wxHeaderCtrl"
1433# else
1434# undef wxUSE_HEADERCTRL
1435# define wxUSE_HEADERCTRL 1
1436# endif
1437# endif
1438#endif /* !wxUSE_HEADERCTRL */
1439
75545930
VZ
1440#if wxUSE_REARRANGECTRL
1441# if !wxUSE_CHECKLISTBOX
1442# ifdef wxABORT_ON_CONFIG_ERROR
1443# error "wxRearrangeCtrl requires wxCheckListBox"
1444# else
1445# undef wxUSE_REARRANGECTRL
1446# define wxUSE_REARRANGECTRL 0
1447# endif
1448# endif
1449#endif /* wxUSE_REARRANGECTRL */
1450
da4486fb
VZ
1451/* don't attempt to use native status bar on the platforms not having it */
1452#ifndef wxUSE_NATIVE_STATUSBAR
1453# define wxUSE_NATIVE_STATUSBAR 0
1454#elif wxUSE_NATIVE_STATUSBAR
b08cd3bf
WS
1455# if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \
1456 defined(__WXMAC__) || \
1457 defined(__WXPALMOS__) )
da4486fb
VZ
1458# undef wxUSE_NATIVE_STATUSBAR
1459# define wxUSE_NATIVE_STATUSBAR 0
1460# endif
1461#endif
1462
f43426c1
RD
1463#if wxUSE_GRAPHICS_CONTEXT && !wxUSE_GEOMETRY
1464# ifdef wxABORT_ON_CONFIG_ERROR
1465# error "wxUSE_GRAPHICS_CONTEXT requires wxUSE_GEOMETRY"
1466# else
1467# undef wxUSE_GRAPHICS_CONTEXT
1468# define wxUSE_GRAPHICS_CONTEXT 0
1469# endif
1470#endif /* wxUSE_GRAPHICS_CONTEXT */
1471
1472
3379ed37
VZ
1473/* generic controls dependencies */
1474#if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1475# if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1476 /* all common controls are needed by these dialogs */
1477# if !defined(wxUSE_CHOICE) || \
1478 !defined(wxUSE_TEXTCTRL) || \
1479 !defined(wxUSE_BUTTON) || \
1480 !defined(wxUSE_CHECKBOX) || \
1481 !defined(wxUSE_STATTEXT)
1482# ifdef wxABORT_ON_CONFIG_ERROR
1483# error "These common controls are needed by common dialogs"
1484# else
1485# undef wxUSE_CHOICE
1486# define wxUSE_CHOICE 1
1487# undef wxUSE_TEXTCTRL
1488# define wxUSE_TEXTCTRL 1
1489# undef wxUSE_BUTTON
1490# define wxUSE_BUTTON 1
1491# undef wxUSE_CHECKBOX
1492# define wxUSE_CHECKBOX 1
1493# undef wxUSE_STATTEXT
1494# define wxUSE_STATTEXT 1
1495# endif
1496# endif
1497# endif
1498#endif /* !wxMSW || wxUniv */
1499
0cf3e587
VZ
1500/* generic file dialog depends on (generic) file control */
1501#if wxUSE_FILEDLG && !wxUSE_FILECTRL && \
1502 (defined(__WXUNIVERSAL__) || defined(__WXGTK__))
1503# ifdef wxABORT_ON_CONFIG_ERROR
1504# error "Generic wxFileDialog requires wxFileCtrl"
1505# else
1506# undef wxUSE_FILECTRL
1507# define wxUSE_FILECTRL 1
1508# endif
1509#endif /* wxUSE_FILEDLG */
1510
3379ed37 1511/* common dependencies */
1e6feb95
VZ
1512#if wxUSE_CALENDARCTRL
1513# if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1514# ifdef wxABORT_ON_CONFIG_ERROR
1515# error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1516# else
1517# undef wxUSE_SPINBTN
1518# undef wxUSE_COMBOBOX
1519# define wxUSE_SPINBTN 1
1520# define wxUSE_COMBOBOX 1
1521# endif
1522# endif
e2b87f38
VZ
1523
1524# if !wxUSE_DATETIME
1525# ifdef wxABORT_ON_CONFIG_ERROR
1526# error "wxCalendarCtrl requires wxUSE_DATETIME"
1527# else
1528# undef wxUSE_DATETIME
1529# define wxUSE_DATETIME 1
1530# endif
1531# endif
1e6feb95
VZ
1532#endif /* wxUSE_CALENDARCTRL */
1533
324eeecb
WS
1534#if wxUSE_DATEPICKCTRL
1535# if !wxUSE_DATETIME
1536# ifdef wxABORT_ON_CONFIG_ERROR
60bea0cf 1537# error "wxDatePickerCtrl requires wxUSE_DATETIME"
324eeecb
WS
1538# else
1539# undef wxUSE_DATETIME
1540# define wxUSE_DATETIME 1
1541# endif
1542# endif
1543#endif /* wxUSE_DATEPICKCTRL */
1544
1e6feb95
VZ
1545#if wxUSE_CHECKLISTBOX
1546# if !wxUSE_LISTBOX
1547# ifdef wxABORT_ON_CONFIG_ERROR
1548# error "wxCheckListBox requires wxListBox"
1549# else
1550# undef wxUSE_LISTBOX
1551# define wxUSE_LISTBOX 1
1552# endif
1553# endif
97e4cf6d
WS
1554#endif /* wxUSE_CHECKLISTBOX */
1555
1556#if wxUSE_CHOICEDLG
1557# if !wxUSE_LISTBOX
1558# ifdef wxABORT_ON_CONFIG_ERROR
1559# error "Choice dialogs requires wxListBox"
1560# else
1561# undef wxUSE_LISTBOX
1562# define wxUSE_LISTBOX 1
1563# endif
1564# endif
1565#endif /* wxUSE_CHOICEDLG */
1e6feb95 1566
0b4f47a3
DS
1567#if wxUSE_HELP
1568# if !wxUSE_BMPBUTTON
1569# ifdef wxABORT_ON_CONFIG_ERROR
1570# error "wxUSE_HELP requires wxUSE_BMPBUTTON"
1571# else
1572# undef wxUSE_BMPBUTTON
1573# define wxUSE_BMPBUTTON 1
1574# endif
1575# endif
adb799d6
DS
1576
1577# if !wxUSE_CHOICEDLG
1578# ifdef wxABORT_ON_CONFIG_ERROR
1579# error "wxUSE_HELP requires wxUSE_CHOICEDLG"
1580# else
1581# undef wxUSE_CHOICEDLG
1582# define wxUSE_CHOICEDLG 1
1583# endif
1584# endif
0b4f47a3
DS
1585#endif /* wxUSE_HELP */
1586
09f43fd3
VZ
1587#if wxUSE_MS_HTML_HELP
1588 /*
1589 this doesn't make sense for platforms other than MSW but we still
1590 define it in wx/setup_inc.h so don't complain if it happens to be
1591 defined under another platform but just silently fix it.
1592 */
1593# ifndef __WXMSW__
1594# undef wxUSE_MS_HTML_HELP
1595# define wxUSE_MS_HTML_HELP 0
1596# endif
1597#endif /* wxUSE_MS_HTML_HELP */
1598
3379ed37 1599#if wxUSE_WXHTML_HELP
0e871ad0 1600# if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL
3379ed37
VZ
1601# ifdef wxABORT_ON_CONFIG_ERROR
1602# error "Built in help controller can't be compiled"
1603# else
1604# undef wxUSE_HELP
1605# define wxUSE_HELP 1
1606# undef wxUSE_HTML
1607# define wxUSE_HTML 1
1608# undef wxUSE_COMBOBOX
1609# define wxUSE_COMBOBOX 1
730dfeb4
VS
1610# undef wxUSE_NOTEBOOK
1611# define wxUSE_NOTEBOOK 1
0e871ad0
WS
1612# undef wxUSE_SPINCTRL
1613# define wxUSE_SPINCTRL 1
3379ed37
VZ
1614# endif
1615# endif
1616#endif /* wxUSE_WXHTML_HELP */
1617
05e4fd64
DS
1618#if !wxUSE_IMAGE
1619/*
1620 The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the
1621 user explicitly wants this and disable all other features that require
1622 wxUSE_IMAGE.
1623 */
1624# if wxUSE_DRAGIMAGE
1625# ifdef wxABORT_ON_CONFIG_ERROR
1626# error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE"
1627# else
1628# undef wxUSE_DRAGIMAGE
1629# define wxUSE_DRAGIMAGE 0
1630# endif
1631# endif
1632
1633# if wxUSE_LIBPNG
1634# ifdef wxABORT_ON_CONFIG_ERROR
1635# error "wxUSE_LIBPNG requires wxUSE_IMAGE"
1636# else
1637# undef wxUSE_LIBPNG
1638# define wxUSE_LIBPNG 0
1639# endif
1640# endif
1641
1642# if wxUSE_LIBJPEG
1643# ifdef wxABORT_ON_CONFIG_ERROR
1644# error "wxUSE_LIBJPEG requires wxUSE_IMAGE"
1645# else
1646# undef wxUSE_LIBJPEG
1647# define wxUSE_LIBJPEG 0
1648# endif
1649# endif
1650
1651# if wxUSE_LIBTIFF
1652# ifdef wxABORT_ON_CONFIG_ERROR
1653# error "wxUSE_LIBTIFF requires wxUSE_IMAGE"
1654# else
1655# undef wxUSE_LIBTIFF
1656# define wxUSE_LIBTIFF 0
1657# endif
1658# endif
1659
1660# if wxUSE_GIF
1661# ifdef wxABORT_ON_CONFIG_ERROR
1662# error "wxUSE_GIF requires wxUSE_IMAGE"
1663# else
1664# undef wxUSE_GIF
1665# define wxUSE_GIF 0
1666# endif
1667# endif
1668
1669# if wxUSE_PNM
1670# ifdef wxABORT_ON_CONFIG_ERROR
1671# error "wxUSE_PNM requires wxUSE_IMAGE"
1672# else
1673# undef wxUSE_PNM
1674# define wxUSE_PNM 0
1675# endif
1676# endif
1677
1678# if wxUSE_PCX
1679# ifdef wxABORT_ON_CONFIG_ERROR
1680# error "wxUSE_PCX requires wxUSE_IMAGE"
1681# else
1682# undef wxUSE_PCX
1683# define wxUSE_PCX 0
1684# endif
1685# endif
1686
1687# if wxUSE_IFF
1688# ifdef wxABORT_ON_CONFIG_ERROR
1689# error "wxUSE_IFF requires wxUSE_IMAGE"
1690# else
1691# undef wxUSE_IFF
1692# define wxUSE_IFF 0
1693# endif
1694# endif
1695
1696# if wxUSE_TOOLBAR
1697# ifdef wxABORT_ON_CONFIG_ERROR
1698# error "wxUSE_TOOLBAR requires wxUSE_IMAGE"
1699# else
1700# undef wxUSE_TOOLBAR
1701# define wxUSE_TOOLBAR 0
1702# endif
1703# endif
1704
1705# if wxUSE_XPM
1706# ifdef wxABORT_ON_CONFIG_ERROR
1707# error "wxUSE_XPM requires wxUSE_IMAGE"
1708# else
1709# undef wxUSE_XPM
1710# define wxUSE_XPM 0
1711# endif
1712# endif
1713
1714#endif /* !wxUSE_IMAGE */
1715
e30285ab
VZ
1716#if wxUSE_DOC_VIEW_ARCHITECTURE
1717# if !wxUSE_MENUS
1718# ifdef wxABORT_ON_CONFIG_ERROR
1719# error "DocView requires wxUSE_MENUS"
1720# else
1721# undef wxUSE_MENUS
1722# define wxUSE_MENUS 1
1723# endif
1724# endif
1725
adb799d6
DS
1726# if !wxUSE_CHOICEDLG
1727# ifdef wxABORT_ON_CONFIG_ERROR
1728# error "DocView requires wxUSE_CHOICEDLG"
1729# else
1730# undef wxUSE_CHOICEDLG
1731# define wxUSE_CHOICEDLG 1
1732# endif
1733# endif
1734
e30285ab
VZ
1735# if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1736# ifdef wxABORT_ON_CONFIG_ERROR
1737# error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1738# else
1739# undef wxUSE_STREAMS
1740# define wxUSE_STREAMS 1
1741# endif
1742# endif
1743#endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1744
3379ed37
VZ
1745#if wxUSE_PRINTING_ARCHITECTURE
1746# if !wxUSE_COMBOBOX
1747# ifdef wxABORT_ON_CONFIG_ERROR
1748# error "Print dialog requires wxUSE_COMBOBOX"
1749# else
1750# undef wxUSE_COMBOBOX
1751# define wxUSE_COMBOBOX 1
1752# endif
1753# endif
1754#endif /* wxUSE_PRINTING_ARCHITECTURE */
1755
e30285ab 1756#if wxUSE_MDI_ARCHITECTURE
efd17a1d
VZ
1757# if !wxUSE_MDI
1758# ifdef wxABORT_ON_CONFIG_ERROR
1759# error "MDI requires wxUSE_MDI"
1760# else
1761# undef wxUSE_MDI
1762# define wxUSE_MDI 1
1763# endif
1764# endif
1765
e30285ab 1766# if !wxUSE_DOC_VIEW_ARCHITECTURE
1e6feb95 1767# ifdef wxABORT_ON_CONFIG_ERROR
0872eaf9 1768# error "wxUSE_MDI_ARCHITECTURE requires wxUSE_DOC_VIEW_ARCHITECTURE"
1e6feb95 1769# else
e30285ab
VZ
1770# undef wxUSE_DOC_VIEW_ARCHITECTURE
1771# define wxUSE_DOC_VIEW_ARCHITECTURE 1
1e6feb95
VZ
1772# endif
1773# endif
e30285ab 1774#endif /* wxUSE_MDI_ARCHITECTURE */
1e6feb95
VZ
1775
1776#if !wxUSE_FILEDLG
2119e280 1777# if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1e6feb95 1778# ifdef wxABORT_ON_CONFIG_ERROR
0872eaf9 1779# error "wxUSE_FILEDLG is required by wxUSE_DOC_VIEW_ARCHITECTURE and wxUSE_WXHTML_HELP!"
1e6feb95
VZ
1780# else
1781# undef wxUSE_FILEDLG
1782# define wxUSE_FILEDLG 1
1783# endif
1784# endif
e421922f 1785#endif /* wxUSE_FILEDLG */
1e6feb95 1786
555f645a
WS
1787#if !wxUSE_GAUGE || !wxUSE_BUTTON
1788# if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__)
063b752e 1789# ifdef wxABORT_ON_CONFIG_ERROR
555f645a 1790# error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON"
063b752e
WS
1791# else
1792# undef wxUSE_GAUGE
555f645a 1793# undef wxUSE_BUTTON
063b752e 1794# define wxUSE_GAUGE 1
555f645a 1795# define wxUSE_BUTTON 1
063b752e
WS
1796# endif
1797# endif
1798#endif /* !wxUSE_GAUGE */
1799
0b4f47a3 1800#if !wxUSE_BUTTON
555f645a 1801# if wxUSE_FONTDLG || \
0b4f47a3
DS
1802 wxUSE_FILEDLG || \
1803 wxUSE_CHOICEDLG || \
1804 wxUSE_NUMBERDLG || \
1805 wxUSE_TEXTDLG || \
1806 wxUSE_DIRDLG || \
1807 wxUSE_STARTUP_TIPS || \
1808 wxUSE_WIZARDDLG
1809# ifdef wxABORT_ON_CONFIG_ERROR
1810# error "Common and generic dialogs require wxUSE_BUTTON"
1811# else
1812# undef wxUSE_BUTTON
1813# define wxUSE_BUTTON 1
1814# endif
1815# endif
063b752e 1816#endif /* !wxUSE_BUTTON */
0b4f47a3 1817
12491c1f
JS
1818#if !wxUSE_TOOLBAR
1819# if wxUSE_TOOLBAR_NATIVE
1820# ifdef wxABORT_ON_CONFIG_ERROR
1821# error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
1822# else
1823# undef wxUSE_TOOLBAR_NATIVE
1824# define wxUSE_TOOLBAR_NATIVE 0
1825# endif
1826# endif
12491c1f
JS
1827#endif
1828
1e6feb95
VZ
1829#if !wxUSE_IMAGLIST
1830# if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL
1831# ifdef wxABORT_ON_CONFIG_ERROR
1832# error "wxImageList must be compiled as well"
1833# else
1834# undef wxUSE_IMAGLIST
1835# define wxUSE_IMAGLIST 1
1836# endif
1837# endif
1838#endif /* !wxUSE_IMAGLIST */
1839
1e6feb95 1840#if wxUSE_RADIOBOX
9a727a3b 1841# if !wxUSE_RADIOBTN
1e6feb95 1842# ifdef wxABORT_ON_CONFIG_ERROR
9a727a3b 1843# error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN"
1e6feb95
VZ
1844# else
1845# undef wxUSE_RADIOBTN
1e6feb95 1846# define wxUSE_RADIOBTN 1
9a727a3b
WS
1847# endif
1848# endif
1849# if !wxUSE_STATBOX && !defined(__WXPALMOS__)
1850# ifdef wxABORT_ON_CONFIG_ERROR
1851# error "wxUSE_RADIOBOX requires wxUSE_STATBOX"
1852# else
1853# undef wxUSE_STATBOX
1e6feb95
VZ
1854# define wxUSE_STATBOX 1
1855# endif
1856# endif
1857#endif /* wxUSE_RADIOBOX */
1858
3379ed37
VZ
1859#if wxUSE_LOGWINDOW
1860# if !wxUSE_TEXTCTRL
1861# ifdef wxABORT_ON_CONFIG_ERROR
1862# error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
1863# else
1864# undef wxUSE_TEXTCTRL
1865# define wxUSE_TEXTCTRL 1
1866# endif
1867# endif
1868#endif /* wxUSE_LOGWINDOW */
1e6feb95 1869
3e6e2754 1870#if wxUSE_LOG_DIALOG
0b4f47a3 1871# if !wxUSE_LISTCTRL || !wxUSE_BUTTON
3e6e2754 1872# ifdef wxABORT_ON_CONFIG_ERROR
0b4f47a3 1873# error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON"
3e6e2754
JS
1874# else
1875# undef wxUSE_LISTCTRL
1876# define wxUSE_LISTCTRL 1
0b4f47a3
DS
1877# undef wxUSE_BUTTON
1878# define wxUSE_BUTTON 1
3e6e2754
JS
1879# endif
1880# endif
1881#endif /* wxUSE_LOG_DIALOG */
1882
1e6feb95 1883#if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
3379ed37 1884# ifdef wxABORT_ON_CONFIG_ERROR
1e6feb95
VZ
1885# error "wxClipboard requires wxDataObject"
1886# else
1887# undef wxUSE_DATAOBJ
1888# define wxUSE_DATAOBJ 1
1889# endif
1890#endif /* wxUSE_CLIPBOARD */
1891
d2ebf0b7
VS
1892#if wxUSE_XRC && !wxUSE_XML
1893# ifdef wxABORT_ON_CONFIG_ERROR
1894# error "wxUSE_XRC requires wxUSE_XML"
1895# else
1896# undef wxUSE_XRC
1897# define wxUSE_XRC 0
1898# endif
5a017695 1899#endif /* wxUSE_XRC */
d2ebf0b7 1900
4669dcb2
RN
1901#if wxUSE_SOCKETS && !wxUSE_STOPWATCH
1902# ifdef wxABORT_ON_CONFIG_ERROR
1903# error "wxUSE_SOCKETS requires wxUSE_STOPWATCH"
1904# else
1905# undef wxUSE_SOCKETS
1906# define wxUSE_SOCKETS 0
1907# endif
1908#endif /* wxUSE_SOCKETS */
1909
b0fc907f
VZ
1910#if wxUSE_SVG && !wxUSE_STREAMS
1911# ifdef wxABORT_ON_CONFIG_ERROR
1912# error "wxUSE_SVG requires wxUSE_STREAMS"
1913# else
1914# undef wxUSE_SVG
1915# define wxUSE_SVG 0
1916# endif
1917#endif /* wxUSE_SVG */
1918
d5cbee17
VS
1919#if wxUSE_SVG && !wxUSE_IMAGE
1920# ifdef wxABORT_ON_CONFIG_ERROR
1921# error "wxUSE_SVG requires wxUSE_IMAGE"
1922# else
1923# undef wxUSE_SVG
1924# define wxUSE_SVG 0
1925# endif
1926#endif /* wxUSE_SVG */
1927
1928#if wxUSE_SVG && !wxUSE_LIBPNG
1929# ifdef wxABORT_ON_CONFIG_ERROR
1930# error "wxUSE_SVG requires wxUSE_LIBPNG"
1931# else
1932# undef wxUSE_SVG
1933# define wxUSE_SVG 0
1934# endif
1935#endif /* wxUSE_SVG */
1936
ca5c6ac3
VZ
1937#if !wxUSE_VARIANT
1938# if wxUSE_DATAVIEWCTRL
1939# ifdef wxABORT_ON_CONFIG_ERROR
1940# error "wxDataViewCtrl requires wxVariant"
1941# else
1942# undef wxUSE_DATAVIEWCTRL
1943# define wxUSE_DATAVIEWCTRL 0
1944# endif
1945# endif
ca5c6ac3
VZ
1946#endif /* wxUSE_VARIANT */
1947
1e6feb95 1948#endif /* wxUSE_GUI */
8ba16443
VZ
1949
1950#endif /* _WX_CHKCONF_H_ */