]> git.saurik.com Git - wxWidgets.git/blame - include/wx/chkconf.h
Add forward declarations to fix wx/propgrid/editors.h compilation.
[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
aa62256a
VZ
16/*
17 **************************************************
18 PLEASE READ THIS IF YOU GET AN ERROR IN THIS FILE!
19 **************************************************
20
21 If you get an error saying "wxUSE_FOO must be defined", it means that you
22 are not using the correct up-to-date version of setup.h. This happens most
23 often when using svn or daily snapshots and a new symbol was added to
4c51a665 24 setup0.h and you haven't updated your local setup.h to reflect it. If
aa62256a
VZ
25 this is the case, you need to propagate the changes from setup0.h to your
26 setup.h and, if using makefiles under MSW, also remove setup.h under the
4c51a665 27 build directory (lib/$(COMPILER)_{lib,dll}/msw[u][d][dll]/wx) so that
aa62256a
VZ
28 the new setup.h is copied there.
29
30 If you get an error of the form "wxFoo requires wxBar", then the settings
31 in your setup.h are inconsistent. You have the choice between correcting
32 them manually or commenting out #define wxABORT_ON_CONFIG_ERROR below to
33 try to correct the problems automatically (not really recommended but
34 might work).
35 */
36
01ebf752 37/*
6619edf0
VZ
38 This file has the following sections:
39 1. checks that all wxUSE_XXX symbols we use are defined
40 a) first the non-GUI ones
41 b) then the GUI-only ones
42 2. platform-specific checks done in the platform headers
43 3. generic consistency checks
44 a) first the non-GUI ones
45 b) then the GUI-only ones
01ebf752
JS
46 */
47
1e6feb95 48/*
730dfeb4 49 this global setting determines what should we do if the setting FOO
8a43eaec
VZ
50 requires BAR and BAR is not set: we can either silently unset FOO as well
51 (do this if you're trying to build the smallest possible library) or give an
cbab1556 52 error and abort (default as leads to least surprising behaviour)
1e6feb95
VZ
53 */
54#define wxABORT_ON_CONFIG_ERROR
55
6962f34e
VZ
56/*
57 global features
58 */
59
1bbcb0d5
VZ
60/*
61 If we're compiling without support for threads/exceptions we have to
62 disable the corresponding features.
63 */
64#ifdef wxNO_THREADS
65# undef wxUSE_THREADS
66# define wxUSE_THREADS 0
67#endif /* wxNO_THREADS */
68
69#ifdef wxNO_EXCEPTIONS
70# undef wxUSE_EXCEPTIONS
71# define wxUSE_EXCEPTIONS 0
72#endif /* wxNO_EXCEPTIONS */
73
4652511f
VZ
74/* we also must disable exceptions if compiler doesn't support them */
75#if defined(_MSC_VER) && !defined(_CPPUNWIND)
76# undef wxUSE_EXCEPTIONS
77# define wxUSE_EXCEPTIONS 0
78#endif /* VC++ without exceptions support */
79
1bbcb0d5 80
1e6feb95 81/*
6619edf0 82 Section 1a: tests for non GUI features.
e16514bf
VZ
83
84 please keep the options in alphabetical order!
03169422
RL
85 */
86
178c7760
JS
87#ifndef wxUSE_ANY
88# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 89# error "wxUSE_ANY must be defined, please read comment near the top of this file."
178c7760
JS
90# else
91# define wxUSE_ANY 0
92# endif
93#endif /* wxUSE_ANY */
94
a1873279
VZ
95#ifndef wxUSE_CONSOLE_EVENTLOOP
96# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 97# error "wxUSE_CONSOLE_EVENTLOOP must be defined, please read comment near the top of this file."
a1873279
VZ
98# else
99# define wxUSE_CONSOLE_EVENTLOOP 0
100# endif
101#endif /* !defined(wxUSE_CONSOLE_EVENTLOOP) */
102
03169422
RL
103#ifndef wxUSE_DYNLIB_CLASS
104# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 105# error "wxUSE_DYNLIB_CLASS must be defined, please read comment near the top of this file."
03169422
RL
106# else
107# define wxUSE_DYNLIB_CLASS 0
108# endif
109#endif /* !defined(wxUSE_DYNLIB_CLASS) */
110
4199367e
VZ
111#ifndef wxUSE_EXCEPTIONS
112# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 113# error "wxUSE_EXCEPTIONS must be defined, please read comment near the top of this file."
4199367e
VZ
114# else
115# define wxUSE_EXCEPTIONS 0
116# endif
117#endif /* !defined(wxUSE_EXCEPTIONS) */
118
f19f8180
VS
119#ifndef wxUSE_FILE_HISTORY
120# ifdef wxABORT_ON_CONFIG_ERROR
121# error "wxUSE_FILE_HISTORY must be defined, please read comment near the top of this file."
122# else
123# define wxUSE_FILE_HISTORY 0
124# endif
125#endif /* !defined(wxUSE_FILE_HISTORY) */
126
c7f3eecc
VZ
127#ifndef wxUSE_FILESYSTEM
128# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 129# error "wxUSE_FILESYSTEM must be defined, please read comment near the top of this file."
c7f3eecc
VZ
130# else
131# define wxUSE_FILESYSTEM 0
132# endif
133#endif /* !defined(wxUSE_FILESYSTEM) */
134
26e422a9
MW
135#ifndef wxUSE_FS_ARCHIVE
136# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 137# error "wxUSE_FS_ARCHIVE must be defined, please read comment near the top of this file."
26e422a9
MW
138# else
139# define wxUSE_FS_ARCHIVE 0
140# endif
141#endif /* !defined(wxUSE_FS_ARCHIVE) */
142
05815ab3 143#ifndef wxUSE_FSVOLUME
83d56dd1 144# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 145# error "wxUSE_FSVOLUME must be defined, please read comment near the top of this file."
83d56dd1
FM
146# else
147# define wxUSE_FSVOLUME 0
148# endif
05815ab3
VZ
149#endif /* !defined(wxUSE_FSVOLUME) */
150
6b8ef0b3
VZ
151#ifndef wxUSE_FSWATCHER
152# ifdef wxABORT_ON_CONFIG_ERROR
153# error "wxUSE_FSWATCHER must be defined, please read comment near the top of this file."
154# else
155# define wxUSE_FSWATCHER 0
156# endif
157#endif /* !defined(wxUSE_FSWATCHER) */
158
03169422
RL
159#ifndef wxUSE_DYNAMIC_LOADER
160# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 161# error "wxUSE_DYNAMIC_LOADER must be defined, please read comment near the top of this file."
03169422
RL
162# else
163# define wxUSE_DYNAMIC_LOADER 0
164# endif
165#endif /* !defined(wxUSE_DYNAMIC_LOADER) */
166
149e70e1
VZ
167#ifndef wxUSE_INTL
168# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 169# error "wxUSE_INTL must be defined, please read comment near the top of this file."
149e70e1
VZ
170# else
171# define wxUSE_INTL 0
172# endif
173#endif /* !defined(wxUSE_INTL) */
174
8ac36abb
VZ
175#ifndef wxUSE_IPV6
176# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 177# error "wxUSE_IPV6 must be defined, please read comment near the top of this file."
8ac36abb
VZ
178# else
179# define wxUSE_IPV6 0
180# endif
181#endif /* !defined(wxUSE_IPV6) */
182
a5d46b73
VZ
183#ifndef wxUSE_LOG
184# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 185# error "wxUSE_LOG must be defined, please read comment near the top of this file."
a5d46b73
VZ
186# else
187# define wxUSE_LOG 0
188# endif
189#endif /* !defined(wxUSE_LOG) */
190
191#ifndef wxUSE_LONGLONG
192# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 193# error "wxUSE_LONGLONG must be defined, please read comment near the top of this file."
a5d46b73
VZ
194# else
195# define wxUSE_LONGLONG 0
196# endif
197#endif /* !defined(wxUSE_LONGLONG) */
198
199#ifndef wxUSE_MIMETYPE
200# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 201# error "wxUSE_MIMETYPE must be defined, please read comment near the top of this file."
a5d46b73
VZ
202# else
203# define wxUSE_MIMETYPE 0
204# endif
205#endif /* !defined(wxUSE_MIMETYPE) */
206
0c46d866
VZ
207#ifndef wxUSE_ON_FATAL_EXCEPTION
208# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 209# error "wxUSE_ON_FATAL_EXCEPTION must be defined, please read comment near the top of this file."
0c46d866
VZ
210# else
211# define wxUSE_ON_FATAL_EXCEPTION 0
212# endif
213#endif /* !defined(wxUSE_ON_FATAL_EXCEPTION) */
214
7a828c7f
VZ
215#ifndef wxUSE_PRINTF_POS_PARAMS
216# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 217# error "wxUSE_PRINTF_POS_PARAMS must be defined, please read comment near the top of this file."
7a828c7f
VZ
218# else
219# define wxUSE_PRINTF_POS_PARAMS 0
220# endif
221#endif /* !defined(wxUSE_PRINTF_POS_PARAMS) */
222
a5d46b73
VZ
223#ifndef wxUSE_PROTOCOL
224# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 225# error "wxUSE_PROTOCOL must be defined, please read comment near the top of this file."
a5d46b73
VZ
226# else
227# define wxUSE_PROTOCOL 0
228# endif
229#endif /* !defined(wxUSE_PROTOCOL) */
230
231/* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */
232#if !wxUSE_PROTOCOL
233# undef wxUSE_PROTOCOL_HTTP
234# undef wxUSE_PROTOCOL_FTP
235# undef wxUSE_PROTOCOL_FILE
236# define wxUSE_PROTOCOL_HTTP 0
237# define wxUSE_PROTOCOL_FTP 0
238# define wxUSE_PROTOCOL_FILE 0
239#endif /* wxUSE_PROTOCOL */
240
241#ifndef wxUSE_PROTOCOL_HTTP
242# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 243# error "wxUSE_PROTOCOL_HTTP must be defined, please read comment near the top of this file."
a5d46b73
VZ
244# else
245# define wxUSE_PROTOCOL_HTTP 0
246# endif
247#endif /* !defined(wxUSE_PROTOCOL_HTTP) */
248
249#ifndef wxUSE_PROTOCOL_FTP
250# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 251# error "wxUSE_PROTOCOL_FTP must be defined, please read comment near the top of this file."
a5d46b73
VZ
252# else
253# define wxUSE_PROTOCOL_FTP 0
254# endif
255#endif /* !defined(wxUSE_PROTOCOL_FTP) */
256
257#ifndef wxUSE_PROTOCOL_FILE
258# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 259# error "wxUSE_PROTOCOL_FILE must be defined, please read comment near the top of this file."
a5d46b73
VZ
260# else
261# define wxUSE_PROTOCOL_FILE 0
262# endif
263#endif /* !defined(wxUSE_PROTOCOL_FILE) */
264
265#ifndef wxUSE_REGEX
266# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 267# error "wxUSE_REGEX must be defined, please read comment near the top of this file."
a5d46b73
VZ
268# else
269# define wxUSE_REGEX 0
270# endif
271#endif /* !defined(wxUSE_REGEX) */
272
07158944
VZ
273#ifndef wxUSE_STDPATHS
274# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 275# error "wxUSE_STDPATHS must be defined, please read comment near the top of this file."
07158944
VZ
276# else
277# define wxUSE_STDPATHS 1
278# endif
279#endif /* !defined(wxUSE_STDPATHS) */
280
27b0c286
VS
281#ifndef wxUSE_XML
282# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 283# error "wxUSE_XML must be defined, please read comment near the top of this file."
27b0c286
VS
284# else
285# define wxUSE_XML 0
286# endif
287#endif /* !defined(wxUSE_XML) */
288
a5d46b73
VZ
289#ifndef wxUSE_SOCKETS
290# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 291# error "wxUSE_SOCKETS must be defined, please read comment near the top of this file."
a5d46b73
VZ
292# else
293# define wxUSE_SOCKETS 0
294# endif
295#endif /* !defined(wxUSE_SOCKETS) */
296
01871bf6
VZ
297#ifndef wxUSE_STD_CONTAINERS
298# ifdef wxABORT_ON_CONFIG_ERROR
299# error "wxUSE_STD_CONTAINERS must be defined, please read comment near the top of this file."
300# else
301# define wxUSE_STD_CONTAINERS 0
302# endif
303#endif /* !defined(wxUSE_STD_CONTAINERS) */
304
305#ifndef wxUSE_STD_STRING_CONV_IN_WXSTRING
306# ifdef wxABORT_ON_CONFIG_ERROR
307# error "wxUSE_STD_STRING_CONV_IN_WXSTRING must be defined, please read comment near the top of this file."
308# else
309# define wxUSE_STD_STRING_CONV_IN_WXSTRING 0
310# endif
311#endif /* !defined(wxUSE_STD_STRING_CONV_IN_WXSTRING) */
312
a5d46b73
VZ
313#ifndef wxUSE_STREAMS
314# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 315# error "wxUSE_STREAMS must be defined, please read comment near the top of this file."
a5d46b73
VZ
316# else
317# define wxUSE_STREAMS 0
318# endif
319#endif /* !defined(wxUSE_STREAMS) */
320
321#ifndef wxUSE_STOPWATCH
322# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 323# error "wxUSE_STOPWATCH must be defined, please read comment near the top of this file."
a5d46b73
VZ
324# else
325# define wxUSE_STOPWATCH 0
326# endif
327#endif /* !defined(wxUSE_STOPWATCH) */
328
329#ifndef wxUSE_TEXTBUFFER
330# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 331# error "wxUSE_TEXTBUFFER must be defined, please read comment near the top of this file."
a5d46b73
VZ
332# else
333# define wxUSE_TEXTBUFFER 0
334# endif
335#endif /* !defined(wxUSE_TEXTBUFFER) */
336
337#ifndef wxUSE_TEXTFILE
338# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 339# error "wxUSE_TEXTFILE must be defined, please read comment near the top of this file."
a5d46b73
VZ
340# else
341# define wxUSE_TEXTFILE 0
342# endif
343#endif /* !defined(wxUSE_TEXTFILE) */
344
345#ifndef wxUSE_UNICODE
346# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 347# error "wxUSE_UNICODE must be defined, please read comment near the top of this file."
a5d46b73
VZ
348# else
349# define wxUSE_UNICODE 0
350# endif
351#endif /* !defined(wxUSE_UNICODE) */
352
353#ifndef wxUSE_URL
354# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 355# error "wxUSE_URL must be defined, please read comment near the top of this file."
a5d46b73
VZ
356# else
357# define wxUSE_URL 0
358# endif
359#endif /* !defined(wxUSE_URL) */
360
ca5c6ac3
VZ
361#ifndef wxUSE_VARIANT
362# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 363# error "wxUSE_VARIANT must be defined, please read comment near the top of this file."
ca5c6ac3
VZ
364# else
365# define wxUSE_VARIANT 0
366# endif
367#endif /* wxUSE_VARIANT */
368
149e70e1
VZ
369#ifndef wxUSE_XLOCALE
370# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 371# error "wxUSE_XLOCALE must be defined, please read comment near the top of this file."
149e70e1
VZ
372# else
373# define wxUSE_XLOCALE 0
374# endif
375#endif /* !defined(wxUSE_XLOCALE) */
376
03169422 377/*
6619edf0 378 Section 1b: all these tests are for GUI only.
e16514bf
VZ
379
380 please keep the options in alphabetical order!
1e6feb95
VZ
381 */
382#if wxUSE_GUI
383
384/*
385 all of the settings tested below must be defined or we'd get an error from
386 preprocessor about invalid integer expression
387 */
388
9211cf3c
VZ
389#ifndef wxUSE_ABOUTDLG
390# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 391# error "wxUSE_ABOUTDLG must be defined, please read comment near the top of this file."
9211cf3c
VZ
392# else
393# define wxUSE_ABOUTDLG 0
394# endif
395#endif /* !defined(wxUSE_ABOUTDLG) */
396
1e6feb95
VZ
397#ifndef wxUSE_ACCEL
398# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 399# error "wxUSE_ACCEL must be defined, please read comment near the top of this file."
1e6feb95
VZ
400# else
401# define wxUSE_ACCEL 0
402# endif
403#endif /* !defined(wxUSE_ACCEL) */
404
a9c64a1b
VZ
405#ifndef wxUSE_ACCESSIBILITY
406# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 407# error "wxUSE_ACCESSIBILITY must be defined, please read comment near the top of this file."
a9c64a1b
VZ
408# else
409# define wxUSE_ACCESSIBILITY 0
410# endif
411#endif /* !defined(wxUSE_ACCESSIBILITY) */
412
72045d57
VZ
413#ifndef wxUSE_ANIMATIONCTRL
414# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 415# error "wxUSE_ANIMATIONCTRL must be defined, please read comment near the top of this file."
72045d57
VZ
416# else
417# define wxUSE_ANIMATIONCTRL 0
418# endif
419#endif /* !defined(wxUSE_ANIMATIONCTRL) */
420
2e9b5717
VZ
421#ifndef wxUSE_ARTPROVIDER_STD
422# ifdef wxABORT_ON_CONFIG_ERROR
423# error "wxUSE_ARTPROVIDER_STD must be defined, please read comment near the top of this file."
424# else
425# define wxUSE_ARTPROVIDER_STD 0
426# endif
427#endif /* !defined(wxUSE_ARTPROVIDER_STD) */
428
c1d2466a
VZ
429#ifndef wxUSE_ARTPROVIDER_TANGO
430# ifdef wxABORT_ON_CONFIG_ERROR
431# error "wxUSE_ARTPROVIDER_TANGO must be defined, please read comment near the top of this file."
432# else
433# define wxUSE_ARTPROVIDER_TANGO 0
434# endif
435#endif /* !defined(wxUSE_ARTPROVIDER_TANGO) */
436
8084f8b7
VZ
437#ifndef wxUSE_AUTOID_MANAGEMENT
438# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 439# error "wxUSE_AUTOID_MANAGEMENT must be defined, please read comment near the top of this file."
8084f8b7
VZ
440# else
441# define wxUSE_AUTOID_MANAGEMENT 0
442# endif
443#endif /* !defined(wxUSE_AUTOID_MANAGEMENT) */
444
8d37334f
VZ
445#ifndef wxUSE_BITMAPCOMBOBOX
446# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 447# error "wxUSE_BITMAPCOMBOBOX must be defined, please read comment near the top of this file."
8d37334f
VZ
448# else
449# define wxUSE_BITMAPCOMBOBOX 0
450# endif
451#endif /* !defined(wxUSE_BITMAPCOMBOBOX) */
452
1e6feb95
VZ
453#ifndef wxUSE_BMPBUTTON
454# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 455# error "wxUSE_BMPBUTTON must be defined, please read comment near the top of this file."
1e6feb95
VZ
456# else
457# define wxUSE_BMPBUTTON 0
458# endif
459#endif /* !defined(wxUSE_BMPBUTTON) */
460
461#ifndef wxUSE_BUTTON
462# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 463# error "wxUSE_BUTTON must be defined, please read comment near the top of this file."
1e6feb95
VZ
464# else
465# define wxUSE_BUTTON 0
466# endif
467#endif /* !defined(wxUSE_BUTTON) */
468
6c99dbd5 469#ifndef wxUSE_CAIRO
711a4812 470# ifdef wxABORT_ON_CONFIG_ERROR
93fdbfb7 471# error "wxUSE_CAIRO must be defined, please read comment near the top of this file."
711a4812
VZ
472# else
473# define wxUSE_CAIRO 0
474# endif
475#endif /* !defined(wxUSE_CAIRO) */
6c99dbd5 476
1e6feb95
VZ
477#ifndef wxUSE_CALENDARCTRL
478# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 479# error "wxUSE_CALENDARCTRL must be defined, please read comment near the top of this file."
1e6feb95
VZ
480# else
481# define wxUSE_CALENDARCTRL 0
482# endif
483#endif /* !defined(wxUSE_CALENDARCTRL) */
484
485#ifndef wxUSE_CARET
486# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 487# error "wxUSE_CARET must be defined, please read comment near the top of this file."
1e6feb95
VZ
488# else
489# define wxUSE_CARET 0
490# endif
491#endif /* !defined(wxUSE_CARET) */
492
493#ifndef wxUSE_CHECKBOX
494# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 495# error "wxUSE_CHECKBOX must be defined, please read comment near the top of this file."
1e6feb95
VZ
496# else
497# define wxUSE_CHECKBOX 0
498# endif
499#endif /* !defined(wxUSE_CHECKBOX) */
500
501#ifndef wxUSE_CHECKLISTBOX
502# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 503# error "wxUSE_CHECKLISTBOX must be defined, please read comment near the top of this file."
1e6feb95
VZ
504# else
505# define wxUSE_CHECKLISTBOX 0
506# endif
507#endif /* !defined(wxUSE_CHECKLISTBOX) */
508
509#ifndef wxUSE_CHOICE
510# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 511# error "wxUSE_CHOICE must be defined, please read comment near the top of this file."
1e6feb95
VZ
512# else
513# define wxUSE_CHOICE 0
514# endif
515#endif /* !defined(wxUSE_CHOICE) */
516
f5e0b4bc
WS
517#ifndef wxUSE_CHOICEBOOK
518# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 519# error "wxUSE_CHOICEBOOK must be defined, please read comment near the top of this file."
f5e0b4bc
WS
520# else
521# define wxUSE_CHOICEBOOK 0
522# endif
523#endif /* !defined(wxUSE_CHOICEBOOK) */
524
3379ed37
VZ
525#ifndef wxUSE_CHOICEDLG
526# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 527# error "wxUSE_CHOICEDLG must be defined, please read comment near the top of this file."
3379ed37
VZ
528# else
529# define wxUSE_CHOICEDLG 0
530# endif
531#endif /* !defined(wxUSE_CHOICEDLG) */
532
1e6feb95
VZ
533#ifndef wxUSE_CLIPBOARD
534# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 535# error "wxUSE_CLIPBOARD must be defined, please read comment near the top of this file."
1e6feb95
VZ
536# else
537# define wxUSE_CLIPBOARD 0
538# endif
539#endif /* !defined(wxUSE_CLIPBOARD) */
540
912c3932
VZ
541#ifndef wxUSE_COLLPANE
542# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 543# error "wxUSE_COLLPANE must be defined, please read comment near the top of this file."
912c3932
VZ
544# else
545# define wxUSE_COLLPANE 0
546# endif
547#endif /* !defined(wxUSE_COLLPANE) */
548
a2c0a9c5
VZ
549#ifndef wxUSE_COLOURDLG
550# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 551# error "wxUSE_COLOURDLG must be defined, please read comment near the top of this file."
a2c0a9c5
VZ
552# else
553# define wxUSE_COLOURDLG 0
554# endif
555#endif /* !defined(wxUSE_COLOURDLG) */
556
ec376c8f
VZ
557#ifndef wxUSE_COLOURPICKERCTRL
558# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 559# error "wxUSE_COLOURPICKERCTRL must be defined, please read comment near the top of this file."
ec376c8f
VZ
560# else
561# define wxUSE_COLOURPICKERCTRL 0
562# endif
563#endif /* !defined(wxUSE_COLOURPICKERCTRL) */
564
1e6feb95
VZ
565#ifndef wxUSE_COMBOBOX
566# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 567# error "wxUSE_COMBOBOX must be defined, please read comment near the top of this file."
1e6feb95
VZ
568# else
569# define wxUSE_COMBOBOX 0
570# endif
571#endif /* !defined(wxUSE_COMBOBOX) */
572
3571e1ad
VZ
573#ifndef wxUSE_COMMANDLINKBUTTON
574# ifdef wxABORT_ON_CONFIG_ERROR
575# error "wxUSE_COMMANDLINKBUTTON must be defined, please read comment near the top of this file."
576# else
577# define wxUSE_COMMANDLINKBUTTON 0
578# endif
579#endif /* !defined(wxUSE_COMMANDLINKBUTTON) */
580
a57d600f 581#ifndef wxUSE_COMBOCTRL
481e2766 582# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 583# error "wxUSE_COMBOCTRL must be defined, please read comment near the top of this file."
481e2766 584# else
a57d600f 585# define wxUSE_COMBOCTRL 0
481e2766 586# endif
a57d600f 587#endif /* !defined(wxUSE_COMBOCTRL) */
481e2766 588
1e6feb95
VZ
589#ifndef wxUSE_DATAOBJ
590# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 591# error "wxUSE_DATAOBJ must be defined, please read comment near the top of this file."
1e6feb95
VZ
592# else
593# define wxUSE_DATAOBJ 0
594# endif
595#endif /* !defined(wxUSE_DATAOBJ) */
596
e16514bf
VZ
597#ifndef wxUSE_DATAVIEWCTRL
598# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 599# error "wxUSE_DATAVIEWCTRL must be defined, please read comment near the top of this file."
e16514bf
VZ
600# else
601# define wxUSE_DATAVIEWCTRL 0
602# endif
603#endif /* !defined(wxUSE_DATAVIEWCTRL) */
604
337dc4c1
WS
605#ifndef wxUSE_DATEPICKCTRL
606# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 607# error "wxUSE_DATEPICKCTRL must be defined, please read comment near the top of this file."
337dc4c1
WS
608# else
609# define wxUSE_DATEPICKCTRL 0
610# endif
611#endif /* !defined(wxUSE_DATEPICKCTRL) */
612
e71508e1
VZ
613#ifndef wxUSE_DC_TRANSFORM_MATRIX
614# ifdef wxABORT_ON_CONFIG_ERROR
615# error "wxUSE_DC_TRANSFORM_MATRIX must be defined, please read comment near the top of this file."
616# else
617# define wxUSE_DC_TRANSFORM_MATRIX 1
618# endif
619#endif /* wxUSE_DC_TRANSFORM_MATRIX */
620
ec376c8f
VZ
621#ifndef wxUSE_DIRPICKERCTRL
622# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 623# error "wxUSE_DIRPICKERCTRL must be defined, please read comment near the top of this file."
ec376c8f
VZ
624# else
625# define wxUSE_DIRPICKERCTRL 0
626# endif
627#endif /* !defined(wxUSE_DIRPICKERCTRL) */
628
f8ba082e
VZ
629#ifndef wxUSE_DISPLAY
630# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 631# error "wxUSE_DISPLAY must be defined, please read comment near the top of this file."
f8ba082e
VZ
632# else
633# define wxUSE_DISPLAY 0
634# endif
635#endif /* !defined(wxUSE_DISPLAY) */
636
3379ed37
VZ
637#ifndef wxUSE_DOC_VIEW_ARCHITECTURE
638# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 639# error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined, please read comment near the top of this file."
3379ed37
VZ
640# else
641# define wxUSE_DOC_VIEW_ARCHITECTURE 0
642# endif
643#endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
644
0cf3e587
VZ
645#ifndef wxUSE_FILECTRL
646# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 647# error "wxUSE_FILECTRL must be defined, please read comment near the top of this file."
0cf3e587
VZ
648# else
649# define wxUSE_FILECTRL 0
650# endif
651#endif /* !defined(wxUSE_FILECTRL) */
652
1e6feb95
VZ
653#ifndef wxUSE_FILEDLG
654# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 655# error "wxUSE_FILEDLG must be defined, please read comment near the top of this file."
1e6feb95
VZ
656# else
657# define wxUSE_FILEDLG 0
658# endif
659#endif /* !defined(wxUSE_FILEDLG) */
660
ec376c8f
VZ
661#ifndef wxUSE_FILEPICKERCTRL
662# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 663# error "wxUSE_FILEPICKERCTRL must be defined, please read comment near the top of this file."
ec376c8f
VZ
664# else
665# define wxUSE_FILEPICKERCTRL 0
666# endif
667#endif /* !defined(wxUSE_FILEPICKERCTRL) */
668
1e6feb95
VZ
669#ifndef wxUSE_FONTDLG
670# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 671# error "wxUSE_FONTDLG must be defined, please read comment near the top of this file."
1e6feb95
VZ
672# else
673# define wxUSE_FONTDLG 0
674# endif
675#endif /* !defined(wxUSE_FONTDLG) */
676
677#ifndef wxUSE_FONTMAP
678# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 679# error "wxUSE_FONTMAP must be defined, please read comment near the top of this file."
1e6feb95
VZ
680# else
681# define wxUSE_FONTMAP 0
682# endif
683#endif /* !defined(wxUSE_FONTMAP) */
684
ec376c8f
VZ
685#ifndef wxUSE_FONTPICKERCTRL
686# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 687# error "wxUSE_FONTPICKERCTRL must be defined, please read comment near the top of this file."
ec376c8f
VZ
688# else
689# define wxUSE_FONTPICKERCTRL 0
690# endif
691#endif /* !defined(wxUSE_FONTPICKERCTRL) */
692
1e6feb95
VZ
693#ifndef wxUSE_GAUGE
694# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 695# error "wxUSE_GAUGE must be defined, please read comment near the top of this file."
1e6feb95
VZ
696# else
697# define wxUSE_GAUGE 0
698# endif
699#endif /* !defined(wxUSE_GAUGE) */
700
f43426c1
RD
701#ifndef wxUSE_GRAPHICS_CONTEXT
702# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 703# error "wxUSE_GRAPHICS_CONTEXT must be defined, please read comment near the top of this file."
f43426c1
RD
704# else
705# define wxUSE_GRAPHICS_CONTEXT 0
706# endif
707#endif /* !defined(wxUSE_GRAPHICS_CONTEXT) */
708
709
1e6feb95
VZ
710#ifndef wxUSE_GRID
711# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 712# error "wxUSE_GRID must be defined, please read comment near the top of this file."
1e6feb95
VZ
713# else
714# define wxUSE_GRID 0
715# endif
716#endif /* !defined(wxUSE_GRID) */
717
e721a2a2
VZ
718#ifndef wxUSE_HEADERCTRL
719# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 720# error "wxUSE_HEADERCTRL must be defined, please read comment near the top of this file."
e721a2a2
VZ
721# else
722# define wxUSE_HEADERCTRL 0
723# endif
724#endif /* !defined(wxUSE_HEADERCTRL) */
725
3379ed37
VZ
726#ifndef wxUSE_HELP
727# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 728# error "wxUSE_HELP must be defined, please read comment near the top of this file."
3379ed37
VZ
729# else
730# define wxUSE_HELP 0
731# endif
732#endif /* !defined(wxUSE_HELP) */
733
17e91437
VZ
734#ifndef wxUSE_HYPERLINKCTRL
735# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 736# error "wxUSE_HYPERLINKCTRL must be defined, please read comment near the top of this file."
17e91437
VZ
737# else
738# define wxUSE_HYPERLINKCTRL 0
739# endif
740#endif /* !defined(wxUSE_HYPERLINKCTRL) */
741
05dcbb8e
VZ
742#ifndef wxUSE_HTML
743# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 744# error "wxUSE_HTML must be defined, please read comment near the top of this file."
05dcbb8e
VZ
745# else
746# define wxUSE_HTML 0
747# endif
748#endif /* !defined(wxUSE_HTML) */
749
c839485c 750#ifndef wxUSE_LIBMSPACK
bd362275 751# if !defined(__UNIX__)
c839485c
VS
752 /* set to 0 on platforms that don't have libmspack */
753# define wxUSE_LIBMSPACK 0
754# else
755# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 756# error "wxUSE_LIBMSPACK must be defined, please read comment near the top of this file."
c839485c
VS
757# else
758# define wxUSE_LIBMSPACK 0
759# endif
760# endif
761#endif /* !defined(wxUSE_LIBMSPACK) */
762
658974ae
VS
763#ifndef wxUSE_ICO_CUR
764# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 765# error "wxUSE_ICO_CUR must be defined, please read comment near the top of this file."
658974ae
VS
766# else
767# define wxUSE_ICO_CUR 0
768# endif
769#endif /* !defined(wxUSE_ICO_CUR) */
770
1663afc0
VS
771#ifndef wxUSE_IFF
772# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 773# error "wxUSE_IFF must be defined, please read comment near the top of this file."
1663afc0
VS
774# else
775# define wxUSE_IFF 0
776# endif
777#endif /* !defined(wxUSE_IFF) */
778
1e6feb95
VZ
779#ifndef wxUSE_IMAGLIST
780# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 781# error "wxUSE_IMAGLIST must be defined, please read comment near the top of this file."
1e6feb95
VZ
782# else
783# define wxUSE_IMAGLIST 0
784# endif
785#endif /* !defined(wxUSE_IMAGLIST) */
786
a92b5dfe
VZ
787#ifndef wxUSE_INFOBAR
788# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 789# error "wxUSE_INFOBAR must be defined, please read comment near the top of this file."
a92b5dfe
VZ
790# else
791# define wxUSE_INFOBAR 0
792# endif
793#endif /* !defined(wxUSE_INFOBAR) */
794
2131b89d
VZ
795#ifndef wxUSE_JOYSTICK
796# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 797# error "wxUSE_JOYSTICK must be defined, please read comment near the top of this file."
2131b89d
VZ
798# else
799# define wxUSE_JOYSTICK 0
800# endif
801#endif /* !defined(wxUSE_JOYSTICK) */
802
5b5e4f32
VZ
803#ifndef wxUSE_LISTBOOK
804# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 805# error "wxUSE_LISTBOOK must be defined, please read comment near the top of this file."
5b5e4f32
VZ
806# else
807# define wxUSE_LISTBOOK 0
808# endif
809#endif /* !defined(wxUSE_LISTBOOK) */
810
1e6feb95
VZ
811#ifndef wxUSE_LISTBOX
812# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 813# error "wxUSE_LISTBOX must be defined, please read comment near the top of this file."
1e6feb95
VZ
814# else
815# define wxUSE_LISTBOX 0
816# endif
817#endif /* !defined(wxUSE_LISTBOX) */
818
819#ifndef wxUSE_LISTCTRL
820# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 821# error "wxUSE_LISTCTRL must be defined, please read comment near the top of this file."
1e6feb95
VZ
822# else
823# define wxUSE_LISTCTRL 0
824# endif
825#endif /* !defined(wxUSE_LISTCTRL) */
826
3379ed37
VZ
827#ifndef wxUSE_LOGGUI
828# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 829# error "wxUSE_LOGGUI must be defined, please read comment near the top of this file."
3379ed37
VZ
830# else
831# define wxUSE_LOGGUI 0
832# endif
833#endif /* !defined(wxUSE_LOGGUI) */
834
835#ifndef wxUSE_LOGWINDOW
836# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 837# error "wxUSE_LOGWINDOW must be defined, please read comment near the top of this file."
3379ed37
VZ
838# else
839# define wxUSE_LOGWINDOW 0
840# endif
841#endif /* !defined(wxUSE_LOGWINDOW) */
e421922f 842
3e6e2754
JS
843#ifndef wxUSE_LOG_DIALOG
844# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 845# error "wxUSE_LOG_DIALOG must be defined, please read comment near the top of this file."
3e6e2754
JS
846# else
847# define wxUSE_LOG_DIALOG 0
848# endif
71908213 849#endif /* !defined(wxUSE_LOG_DIALOG) */
3e6e2754 850
f5bdfc69
VZ
851#ifndef wxUSE_MARKUP
852# ifdef wxABORT_ON_CONFIG_ERROR
853# error "wxUSE_MARKUP must be defined, please read comment near the top of this file."
854# else
855# define wxUSE_MARKUP 0
856# endif
857#endif /* !defined(wxUSE_MARKUP) */
858
efd17a1d
VZ
859#ifndef wxUSE_MDI
860# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 861# error "wxUSE_MDI must be defined, please read comment near the top of this file."
efd17a1d
VZ
862# else
863# define wxUSE_MDI 0
864# endif
865#endif /* !defined(wxUSE_MDI) */
866
1e6feb95
VZ
867#ifndef wxUSE_MDI_ARCHITECTURE
868# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 869# error "wxUSE_MDI_ARCHITECTURE must be defined, please read comment near the top of this file."
1e6feb95
VZ
870# else
871# define wxUSE_MDI_ARCHITECTURE 0
872# endif
873#endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
874
875#ifndef wxUSE_MENUS
876# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 877# error "wxUSE_MENUS must be defined, please read comment near the top of this file."
1e6feb95
VZ
878# else
879# define wxUSE_MENUS 0
880# endif
881#endif /* !defined(wxUSE_MENUS) */
882
3379ed37
VZ
883#ifndef wxUSE_MSGDLG
884# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 885# error "wxUSE_MSGDLG must be defined, please read comment near the top of this file."
3379ed37
VZ
886# else
887# define wxUSE_MSGDLG 0
888# endif
889#endif /* !defined(wxUSE_MSGDLG) */
890
1e6feb95
VZ
891#ifndef wxUSE_NOTEBOOK
892# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 893# error "wxUSE_NOTEBOOK must be defined, please read comment near the top of this file."
1e6feb95
VZ
894# else
895# define wxUSE_NOTEBOOK 0
896# endif
897#endif /* !defined(wxUSE_NOTEBOOK) */
898
e36a1739
VZ
899#ifndef wxUSE_NOTIFICATION_MESSAGE
900# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 901# error "wxUSE_NOTIFICATION_MESSAGE must be defined, please read comment near the top of this file."
e36a1739
VZ
902# else
903# define wxUSE_NOTIFICATION_MESSAGE 0
904# endif
905#endif /* !defined(wxUSE_NOTIFICATION_MESSAGE) */
906
a57d600f 907#ifndef wxUSE_ODCOMBOBOX
481e2766 908# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 909# error "wxUSE_ODCOMBOBOX must be defined, please read comment near the top of this file."
481e2766 910# else
a57d600f 911# define wxUSE_ODCOMBOBOX 0
481e2766 912# endif
a57d600f 913#endif /* !defined(wxUSE_ODCOMBOBOX) */
481e2766 914
d275c7eb
VZ
915#ifndef wxUSE_PALETTE
916# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 917# error "wxUSE_PALETTE must be defined, please read comment near the top of this file."
d275c7eb
VZ
918# else
919# define wxUSE_PALETTE 0
920# endif
921#endif /* !defined(wxUSE_PALETTE) */
922
1e6feb95
VZ
923#ifndef wxUSE_POPUPWIN
924# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 925# error "wxUSE_POPUPWIN must be defined, please read comment near the top of this file."
1e6feb95
VZ
926# else
927# define wxUSE_POPUPWIN 0
928# endif
929#endif /* !defined(wxUSE_POPUPWIN) */
930
3379ed37
VZ
931#ifndef wxUSE_PRINTING_ARCHITECTURE
932# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 933# error "wxUSE_PRINTING_ARCHITECTURE must be defined, please read comment near the top of this file."
3379ed37
VZ
934# else
935# define wxUSE_PRINTING_ARCHITECTURE 0
936# endif
937#endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
938
1e6feb95
VZ
939#ifndef wxUSE_RADIOBOX
940# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 941# error "wxUSE_RADIOBOX must be defined, please read comment near the top of this file."
1e6feb95
VZ
942# else
943# define wxUSE_RADIOBOX 0
944# endif
945#endif /* !defined(wxUSE_RADIOBOX) */
946
947#ifndef wxUSE_RADIOBTN
948# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 949# error "wxUSE_RADIOBTN must be defined, please read comment near the top of this file."
1e6feb95
VZ
950# else
951# define wxUSE_RADIOBTN 0
952# endif
953#endif /* !defined(wxUSE_RADIOBTN) */
954
65ead230
VZ
955#ifndef wxUSE_REARRANGECTRL
956# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 957# error "wxUSE_REARRANGECTRL must be defined, please read comment near the top of this file."
65ead230
VZ
958# else
959# define wxUSE_REARRANGECTRL 0
960# endif
961#endif /* !defined(wxUSE_REARRANGECTRL) */
962
11c2b041
VZ
963#ifndef wxUSE_RIBBON
964# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 965# error "wxUSE_RIBBON must be defined, please read comment near the top of this file."
11c2b041
VZ
966# else
967# define wxUSE_RIBBON 0
968# endif
969#endif /* !defined(wxUSE_RIBBON) */
970
a1bdd4ab
VZ
971#ifndef wxUSE_RICHMSGDLG
972# ifdef wxABORT_ON_CONFIG_ERROR
973# error "wxUSE_RICHMSGDLG must be defined, please read comment near the top of this file."
974# else
975# define wxUSE_RICHMSGDLG 0
976# endif
b9ca72aa 977#endif /* !defined(wxUSE_RICHMSGDLG) */
a1bdd4ab 978
e520c3f7
VZ
979#ifndef wxUSE_RICHTOOLTIP
980# ifdef wxABORT_ON_CONFIG_ERROR
981# error "wxUSE_RICHTOOLTIP must be defined, please read comment near the top of this file."
982# else
983# define wxUSE_RICHTOOLTIP 0
984# endif
985#endif /* !defined(wxUSE_RICHTOOLTIP) */
986
1e6feb95
VZ
987#ifndef wxUSE_SASH
988# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 989# error "wxUSE_SASH must be defined, please read comment near the top of this file."
1e6feb95
VZ
990# else
991# define wxUSE_SASH 0
992# endif
993#endif /* !defined(wxUSE_SASH) */
994
995#ifndef wxUSE_SCROLLBAR
996# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 997# error "wxUSE_SCROLLBAR must be defined, please read comment near the top of this file."
1e6feb95
VZ
998# else
999# define wxUSE_SCROLLBAR 0
1000# endif
1001#endif /* !defined(wxUSE_SCROLLBAR) */
1002
1003#ifndef wxUSE_SLIDER
1004# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1005# error "wxUSE_SLIDER must be defined, please read comment near the top of this file."
1e6feb95
VZ
1006# else
1007# define wxUSE_SLIDER 0
1008# endif
1009#endif /* !defined(wxUSE_SLIDER) */
1010
cad1a197
VS
1011#ifndef wxUSE_SOUND
1012# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1013# error "wxUSE_SOUND must be defined, please read comment near the top of this file."
cad1a197
VS
1014# else
1015# define wxUSE_SOUND 0
1016# endif
1017#endif /* !defined(wxUSE_SOUND) */
1018
1e6feb95
VZ
1019#ifndef wxUSE_SPINBTN
1020# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1021# error "wxUSE_SPINBTN must be defined, please read comment near the top of this file."
1e6feb95
VZ
1022# else
1023# define wxUSE_SPINBTN 0
1024# endif
1025#endif /* !defined(wxUSE_SPINBTN) */
1026
1027#ifndef wxUSE_SPINCTRL
1028# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1029# error "wxUSE_SPINCTRL must be defined, please read comment near the top of this file."
1e6feb95
VZ
1030# else
1031# define wxUSE_SPINCTRL 0
1032# endif
1033#endif /* !defined(wxUSE_SPINCTRL) */
1034
2654a046
MB
1035#ifndef wxUSE_SPLASH
1036# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1037# error "wxUSE_SPLASH must be defined, please read comment near the top of this file."
2654a046
MB
1038# else
1039# define wxUSE_SPLASH 0
1040# endif
1041#endif /* !defined(wxUSE_SPLASH) */
1042
1e6feb95
VZ
1043#ifndef wxUSE_SPLITTER
1044# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1045# error "wxUSE_SPLITTER must be defined, please read comment near the top of this file."
1e6feb95
VZ
1046# else
1047# define wxUSE_SPLITTER 0
1048# endif
1049#endif /* !defined(wxUSE_SPLITTER) */
1050
1051#ifndef wxUSE_STATBMP
1052# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1053# error "wxUSE_STATBMP must be defined, please read comment near the top of this file."
1e6feb95
VZ
1054# else
1055# define wxUSE_STATBMP 0
1056# endif
1057#endif /* !defined(wxUSE_STATBMP) */
1058
1059#ifndef wxUSE_STATBOX
1060# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1061# error "wxUSE_STATBOX must be defined, please read comment near the top of this file."
1e6feb95
VZ
1062# else
1063# define wxUSE_STATBOX 0
1064# endif
1065#endif /* !defined(wxUSE_STATBOX) */
1066
1067#ifndef wxUSE_STATLINE
1068# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1069# error "wxUSE_STATLINE must be defined, please read comment near the top of this file."
1e6feb95
VZ
1070# else
1071# define wxUSE_STATLINE 0
1072# endif
1073#endif /* !defined(wxUSE_STATLINE) */
1074
3379ed37
VZ
1075#ifndef wxUSE_STATTEXT
1076# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1077# error "wxUSE_STATTEXT must be defined, please read comment near the top of this file."
3379ed37
VZ
1078# else
1079# define wxUSE_STATTEXT 0
1080# endif
1081#endif /* !defined(wxUSE_STATTEXT) */
1082
1e6feb95
VZ
1083#ifndef wxUSE_STATUSBAR
1084# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1085# error "wxUSE_STATUSBAR must be defined, please read comment near the top of this file."
1e6feb95
VZ
1086# else
1087# define wxUSE_STATUSBAR 0
1088# endif
1089#endif /* !defined(wxUSE_STATUSBAR) */
1090
4f167b46
VZ
1091#ifndef wxUSE_TASKBARICON
1092# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1093# error "wxUSE_TASKBARICON must be defined, please read comment near the top of this file."
4f167b46
VZ
1094# else
1095# define wxUSE_TASKBARICON 0
1096# endif
1097#endif /* !defined(wxUSE_TASKBARICON) */
1098
1e6feb95
VZ
1099#ifndef wxUSE_TEXTCTRL
1100# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1101# error "wxUSE_TEXTCTRL must be defined, please read comment near the top of this file."
1e6feb95
VZ
1102# else
1103# define wxUSE_TEXTCTRL 0
1104# endif
1105#endif /* !defined(wxUSE_TEXTCTRL) */
1106
569c7d8c
VZ
1107#ifndef wxUSE_TIMEPICKCTRL
1108# ifdef wxABORT_ON_CONFIG_ERROR
1109# error "wxUSE_TIMEPICKCTRL must be defined, please read comment near the top of this file."
1110# else
1111# define wxUSE_TIMEPICKCTRL 0
1112# endif
1113#endif /* !defined(wxUSE_TIMEPICKCTRL) */
1114
f38bcae5
VZ
1115#ifndef wxUSE_TIPWINDOW
1116# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1117# error "wxUSE_TIPWINDOW must be defined, please read comment near the top of this file."
f38bcae5
VZ
1118# else
1119# define wxUSE_TIPWINDOW 0
1120# endif
1121#endif /* !defined(wxUSE_TIPWINDOW) */
1122
1e6feb95
VZ
1123#ifndef wxUSE_TOOLBAR
1124# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1125# error "wxUSE_TOOLBAR must be defined, please read comment near the top of this file."
1e6feb95
VZ
1126# else
1127# define wxUSE_TOOLBAR 0
1128# endif
1129#endif /* !defined(wxUSE_TOOLBAR) */
1130
1131#ifndef wxUSE_TOOLTIPS
1132# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1133# error "wxUSE_TOOLTIPS must be defined, please read comment near the top of this file."
1e6feb95
VZ
1134# else
1135# define wxUSE_TOOLTIPS 0
1136# endif
1137#endif /* !defined(wxUSE_TOOLTIPS) */
1138
1139#ifndef wxUSE_TREECTRL
1140# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1141# error "wxUSE_TREECTRL must be defined, please read comment near the top of this file."
1e6feb95
VZ
1142# else
1143# define wxUSE_TREECTRL 0
1144# endif
1145#endif /* !defined(wxUSE_TREECTRL) */
1146
524cb040
VZ
1147#ifndef wxUSE_TREELISTCTRL
1148# ifdef wxABORT_ON_CONFIG_ERROR
1149# error "wxUSE_TREELISTCTRL must be defined, please read comment near the top of this file."
1150# else
1151# define wxUSE_TREELISTCTRL 0
1152# endif
1153#endif /* !defined(wxUSE_TREELISTCTRL) */
1154
9b7e0226
VZ
1155#ifndef wxUSE_UIACTIONSIMULATOR
1156# ifdef wxABORT_ON_CONFIG_ERROR
1157# error "wxUSE_UIACTIONSIMULATOR must be defined, please read comment near the top of this file."
1158# else
1159# define wxUSE_UIACTIONSIMULATOR 0
1160# endif
1161#endif /* !defined(wxUSE_UIACTIONSIMULATOR) */
1162
f8ba082e 1163#ifndef wxUSE_VALIDATORS
12491c1f 1164# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1165# error "wxUSE_VALIDATORS must be defined, please read comment near the top of this file."
12491c1f 1166# else
f8ba082e 1167# define wxUSE_VALIDATORS 0
12491c1f 1168# endif
f8ba082e 1169#endif /* !defined(wxUSE_VALIDATORS) */
12491c1f 1170
32cc8d13
VZ
1171#ifndef wxUSE_WEBVIEW
1172# ifdef wxABORT_ON_CONFIG_ERROR
1173# error "wxUSE_WEBVIEW must be defined, please read comment near the top of this file."
1174# else
1175# define wxUSE_WEBVIEW 0
1176# endif
1177#endif /* !defined(wxUSE_WEBVIEW) */
1178
3379ed37
VZ
1179#ifndef wxUSE_WXHTML_HELP
1180# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1181# error "wxUSE_WXHTML_HELP must be defined, please read comment near the top of this file."
3379ed37
VZ
1182# else
1183# define wxUSE_WXHTML_HELP 0
1184# endif
1185#endif /* !defined(wxUSE_WXHTML_HELP) */
1186
e16514bf
VZ
1187#ifndef wxUSE_XRC
1188# ifdef wxABORT_ON_CONFIG_ERROR
aa62256a 1189# error "wxUSE_XRC must be defined, please read comment near the top of this file."
e16514bf
VZ
1190# else
1191# define wxUSE_XRC 0
1192# endif
1193#endif /* !defined(wxUSE_XRC) */
1194
a5d46b73 1195#endif /* wxUSE_GUI */
c4d596ea 1196
1e6feb95 1197/*
6619edf0
VZ
1198 Section 2: platform-specific checks.
1199
1200 This must be done after checking that everything is defined as the platform
1201 checks use wxUSE_XXX symbols in #if tests.
1202 */
1203
bd362275 1204#if defined(__WXWINCE__)
6619edf0
VZ
1205# include "wx/msw/wince/chkconf.h"
1206#elif defined(__WXMSW__)
1207# include "wx/msw/chkconf.h"
1208#elif defined(__WXGTK__)
1209# include "wx/gtk/chkconf.h"
d30ef769
VZ
1210#elif defined(__WXCOCOA__)
1211# include "wx/cocoa/chkconf.h"
6619edf0 1212#elif defined(__WXMAC__)
ef0e9220 1213# include "wx/osx/chkconf.h"
6619edf0
VZ
1214#elif defined(__OS2__)
1215# include "wx/os2/chkconf.h"
6619edf0
VZ
1216#elif defined(__WXDFB__)
1217# include "wx/dfb/chkconf.h"
1218#elif defined(__WXMOTIF__)
1219# include "wx/motif/chkconf.h"
1220#elif defined(__WXX11__)
1221# include "wx/x11/chkconf.h"
1222#endif
1223
149e70e1
VZ
1224/*
1225 __UNIX__ is also defined under Cygwin but we shouldn't perform these checks
1226 there if we're building wxMSW.
1227 */
1228#if defined(__UNIX__) && !defined(__WXMSW__)
6619edf0
VZ
1229# include "wx/unix/chkconf.h"
1230#endif
1231
1232#ifdef __WXUNIVERSAL__
1233# include "wx/univ/chkconf.h"
1234#endif
1235
1236/*
1237 Section 3a: check consistency of the non-GUI settings.
1e6feb95 1238 */
a5d46b73 1239
c1dc9f83
VZ
1240#if WXWIN_COMPATIBILITY_2_6
1241# if !WXWIN_COMPATIBILITY_2_8
f7c3b945 1242# ifdef wxABORT_ON_CONFIG_ERROR
c1dc9f83 1243# error "2.6.X compatibility requires 2.8.X compatibility"
f7c3b945 1244# else
c1dc9f83
VZ
1245# undef WXWIN_COMPATIBILITY_2_8
1246# define WXWIN_COMPATIBILITY_2_8 1
f7c3b945
WS
1247# endif
1248# endif
c1dc9f83 1249#endif /* WXWIN_COMPATIBILITY_2_6 */
f7c3b945 1250
5d36ad18
VZ
1251#if wxUSE_ARCHIVE_STREAMS
1252# if !wxUSE_DATETIME
1253# ifdef wxABORT_ON_CONFIG_ERROR
1254# error "wxArchive requires wxUSE_DATETIME"
1255# else
1256# undef wxUSE_ARCHIVE_STREAMS
1257# define wxUSE_ARCHIVE_STREAMS 0
1258# endif
1259# endif
1260#endif /* wxUSE_ARCHIVE_STREAMS */
1261
a5d46b73
VZ
1262#if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
1263# if !wxUSE_PROTOCOL
1264# ifdef wxABORT_ON_CONFIG_ERROR
1265# error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
1266# else
1267# undef wxUSE_PROTOCOL
1268# define wxUSE_PROTOCOL 1
1269# endif
1270# endif
1271#endif /* wxUSE_PROTOCOL_XXX */
1272
1273#if wxUSE_URL
1274# if !wxUSE_PROTOCOL
1275# ifdef wxABORT_ON_CONFIG_ERROR
1276# error "wxUSE_URL requires wxUSE_PROTOCOL"
1277# else
1278# undef wxUSE_PROTOCOL
1279# define wxUSE_PROTOCOL 1
1280# endif
1281# endif
1282#endif /* wxUSE_URL */
1283
1284#if wxUSE_PROTOCOL
1285# if !wxUSE_SOCKETS
1286# if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
1287# ifdef wxABORT_ON_CONFIG_ERROR
1288# error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
1289# else
1290# undef wxUSE_SOCKETS
1291# define wxUSE_SOCKETS 1
1292# endif
1293# endif
1294# endif
1295
1296# if !wxUSE_STREAMS
1297# ifdef wxABORT_ON_CONFIG_ERROR
1298# error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
1299# else
1300# undef wxUSE_STREAMS
1301# define wxUSE_STREAMS 1
1302# endif
1303# endif
1304#endif /* wxUSE_PROTOCOL */
1305
c7f3eecc
VZ
1306/* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
1307#if wxUSE_HTML
1308# if !wxUSE_FILESYSTEM
1309# ifdef wxABORT_ON_CONFIG_ERROR
1310# error "wxHTML requires wxFileSystem"
1311# else
1312# undef wxUSE_FILESYSTEM
1313# define wxUSE_FILESYSTEM 1
1314# endif
1315# endif
1316#endif /* wxUSE_HTML */
1317
916af76f
MW
1318#if wxUSE_FS_ARCHIVE
1319# if !wxUSE_FILESYSTEM
1320# ifdef wxABORT_ON_CONFIG_ERROR
1321# error "wxArchiveFSHandler requires wxFileSystem"
1322# else
1323# undef wxUSE_FILESYSTEM
1324# define wxUSE_FILESYSTEM 1
1325# endif
1326# endif
1327# if !wxUSE_ARCHIVE_STREAMS
1328# ifdef wxABORT_ON_CONFIG_ERROR
1329# error "wxArchiveFSHandler requires wxArchive"
1330# else
1331# undef wxUSE_ARCHIVE_STREAMS
1332# define wxUSE_ARCHIVE_STREAMS 1
1333# endif
1334# endif
1335#endif /* wxUSE_FS_ARCHIVE */
1336
c7f3eecc
VZ
1337#if wxUSE_FILESYSTEM
1338# if !wxUSE_STREAMS
1339# ifdef wxABORT_ON_CONFIG_ERROR
1340# error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
1341# else
1342# undef wxUSE_STREAMS
1343# define wxUSE_STREAMS 1
1344# endif
1345# endif
d9b0ee1e
VZ
1346# if !wxUSE_FILE && !wxUSE_FFILE
1347# ifdef wxABORT_ON_CONFIG_ERROR
1348# error "wxUSE_FILESYSTEM requires either wxUSE_FILE or wxUSE_FFILE"
1349# else
916af76f
MW
1350# undef wxUSE_FILE
1351# define wxUSE_FILE 1
1352# undef wxUSE_FFILE
1353# define wxUSE_FFILE 1
d9b0ee1e
VZ
1354# endif
1355# endif
c7f3eecc
VZ
1356#endif /* wxUSE_FILESYSTEM */
1357
ce73e654
VS
1358#if wxUSE_FS_INET
1359# if !wxUSE_PROTOCOL
1360# ifdef wxABORT_ON_CONFIG_ERROR
1361# error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
1362# else
1363# undef wxUSE_PROTOCOL
1364# define wxUSE_PROTOCOL 1
1365# endif
1366# endif
1367#endif /* wxUSE_FS_INET */
1368
c7f3eecc 1369#if wxUSE_STOPWATCH || wxUSE_DATETIME
a5d46b73
VZ
1370# if !wxUSE_LONGLONG
1371# ifdef wxABORT_ON_CONFIG_ERROR
c7f3eecc 1372# error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
a5d46b73
VZ
1373# else
1374# undef wxUSE_LONGLONG
1375# define wxUSE_LONGLONG 1
1376# endif
1377# endif
1378#endif /* wxUSE_STOPWATCH */
1379
1380#if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
1381# ifdef wxABORT_ON_CONFIG_ERROR
1382# error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
1383# else
1384# undef wxUSE_TEXTFILE
1385# define wxUSE_TEXTFILE 1
1386# endif
1387#endif /* wxUSE_MIMETYPE */
1388
1389#if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
1390# ifdef wxABORT_ON_CONFIG_ERROR
1391# error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
1392# else
1393# undef wxUSE_TEXTBUFFER
1394# define wxUSE_TEXTBUFFER 1
1395# endif
1396#endif /* wxUSE_TEXTFILE */
1397
1398#if wxUSE_TEXTFILE && !wxUSE_FILE
1399# ifdef wxABORT_ON_CONFIG_ERROR
1400# error "wxUSE_TEXTFILE requires wxUSE_FILE"
1401# else
1402# undef wxUSE_FILE
1403# define wxUSE_FILE 1
1404# endif
1405#endif /* wxUSE_TEXTFILE */
1406
1948bb32
VS
1407#if !wxUSE_DYNLIB_CLASS
1408# if wxUSE_DYNAMIC_LOADER
1409# ifdef wxABORT_ON_CONFIG_ERROR
1410# error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
1411# else
1412# define wxUSE_DYNLIB_CLASS 1
1413# endif
1414# endif
1415#endif /* wxUSE_DYNLIB_CLASS */
1416
81f90336
MW
1417#if wxUSE_ZIPSTREAM
1418# if !wxUSE_ZLIB
1419# ifdef wxABORT_ON_CONFIG_ERROR
1420# error "wxZip requires wxZlib"
1421# else
1422# undef wxUSE_ZLIB
1423# define wxUSE_ZLIB 1
1424# endif
1425# endif
9e8e867f 1426# if !wxUSE_ARCHIVE_STREAMS
81f90336
MW
1427# ifdef wxABORT_ON_CONFIG_ERROR
1428# error "wxZip requires wxArchive"
1429# else
9e8e867f
MW
1430# undef wxUSE_ARCHIVE_STREAMS
1431# define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
1432# endif
1433# endif
1434#endif /* wxUSE_ZIPSTREAM */
1435
26e422a9
MW
1436#if wxUSE_TARSTREAM
1437# if !wxUSE_ARCHIVE_STREAMS
1438# ifdef wxABORT_ON_CONFIG_ERROR
1439# error "wxTar requires wxArchive"
1440# else
1441# undef wxUSE_ARCHIVE_STREAMS
1442# define wxUSE_ARCHIVE_STREAMS 1
1443# endif
1444# endif
1445#endif /* wxUSE_TARSTREAM */
1446
6619edf0
VZ
1447/*
1448 Section 3b: the tests for the GUI settings only.
1449 */
a5d46b73
VZ
1450#if wxUSE_GUI
1451
93629862 1452#if wxUSE_ACCESSIBILITY && !defined(__WXMSW__) && !defined(__GCCXML__)
a9c64a1b
VZ
1453# ifdef wxABORT_ON_CONFIG_ERROR
1454# error "wxUSE_ACCESSIBILITY is currently only supported under wxMSW"
1455# else
1456# undef wxUSE_ACCESSIBILITY
1457# define wxUSE_ACCESSIBILITY 0
1458# endif
1459#endif /* wxUSE_ACCESSIBILITY */
1460
1e6feb95
VZ
1461#if wxUSE_BUTTON || \
1462 wxUSE_CALENDARCTRL || \
1463 wxUSE_CARET || \
1464 wxUSE_COMBOBOX || \
1465 wxUSE_BMPBUTTON || \
1466 wxUSE_CHECKBOX || \
1467 wxUSE_CHECKLISTBOX || \
1468 wxUSE_CHOICE || \
1469 wxUSE_GAUGE || \
1470 wxUSE_GRID || \
e721a2a2 1471 wxUSE_HEADERCTRL || \
1e6feb95
VZ
1472 wxUSE_LISTBOX || \
1473 wxUSE_LISTCTRL || \
1474 wxUSE_NOTEBOOK || \
1475 wxUSE_RADIOBOX || \
1476 wxUSE_RADIOBTN || \
e721a2a2 1477 wxUSE_REARRANGECTRL || \
1e6feb95
VZ
1478 wxUSE_SCROLLBAR || \
1479 wxUSE_SLIDER || \
1480 wxUSE_SPINBTN || \
1481 wxUSE_SPINCTRL || \
1482 wxUSE_STATBMP || \
1483 wxUSE_STATBOX || \
1484 wxUSE_STATLINE || \
3379ed37 1485 wxUSE_STATTEXT || \
1e6feb95
VZ
1486 wxUSE_STATUSBAR || \
1487 wxUSE_TEXTCTRL || \
1488 wxUSE_TOOLBAR || \
524cb040
VZ
1489 wxUSE_TREECTRL || \
1490 wxUSE_TREELISTCTRL
1e6feb95
VZ
1491# if !wxUSE_CONTROLS
1492# ifdef wxABORT_ON_CONFIG_ERROR
1493# error "wxUSE_CONTROLS unset but some controls used"
1494# else
1495# undef wxUSE_CONTROLS
1496# define wxUSE_CONTROLS 1
1497# endif
1498# endif
1499#endif /* controls */
1500
0b4f47a3
DS
1501#if wxUSE_BMPBUTTON
1502# if !wxUSE_BUTTON
1503# ifdef wxABORT_ON_CONFIG_ERROR
1504# error "wxUSE_BMPBUTTON requires wxUSE_BUTTON"
1505# else
1506# undef wxUSE_BUTTON
1507# define wxUSE_BUTTON 1
1508# endif
1509# endif
1510#endif /* wxUSE_BMPBUTTON */
1511
3571e1ad
VZ
1512#if wxUSE_COMMANDLINKBUTTON
1513# if !wxUSE_BUTTON
1514# ifdef wxABORT_ON_CONFIG_ERROR
1515# error "wxUSE_COMMANDLINKBUTTON requires wxUSE_BUTTON"
1516# else
1517# undef wxUSE_BUTTON
1518# define wxUSE_BUTTON 1
1519# endif
1520# endif
1521#endif /* wxUSE_COMMANDLINKBUTTON */
1522
aa017eab
VZ
1523/*
1524 wxUSE_BOOKCTRL should be only used if any of the controls deriving from it
1525 are used
1526 */
1527#ifdef wxUSE_BOOKCTRL
1528# ifdef wxABORT_ON_CONFIG_ERROR
1529# error "wxUSE_BOOKCTRL is defined automatically, don't define it"
1530# else
1531# undef wxUSE_BOOKCTRL
15aad3b9 1532# endif
aa017eab 1533#endif
15aad3b9 1534
aa017eab
VZ
1535#define wxUSE_BOOKCTRL (wxUSE_NOTEBOOK || \
1536 wxUSE_LISTBOOK || \
1537 wxUSE_CHOICEBOOK || \
8d206c07 1538 wxUSE_TOOLBOOK || \
aa017eab 1539 wxUSE_TREEBOOK)
15aad3b9 1540
0917b10c
VZ
1541#if wxUSE_COLLPANE
1542# if !wxUSE_BUTTON || !wxUSE_STATLINE
1543# ifdef wxABORT_ON_CONFIG_ERROR
1544# error "wxUSE_COLLPANE requires wxUSE_BUTTON and wxUSE_STATLINE"
1545# else
1546# undef wxUSE_COLLPANE
1547# define wxUSE_COLLPANE 0
1548# endif
1549# endif
1550#endif /* wxUSE_COLLPANE */
1551
5b5e4f32
VZ
1552#if wxUSE_LISTBOOK
1553# if !wxUSE_LISTCTRL
1554# ifdef wxABORT_ON_CONFIG_ERROR
1555# error "wxListbook requires wxListCtrl"
1556# else
1557# undef wxUSE_LISTCTRL
1558# define wxUSE_LISTCTRL 1
1559# endif
1560# endif
1561#endif /* wxUSE_LISTBOOK */
1562
f5e0b4bc
WS
1563#if wxUSE_CHOICEBOOK
1564# if !wxUSE_CHOICE
1565# ifdef wxABORT_ON_CONFIG_ERROR
1566# error "wxChoicebook requires wxChoice"
1567# else
1568# undef wxUSE_CHOICE
1569# define wxUSE_CHOICE 1
1570# endif
1571# endif
1572#endif /* wxUSE_CHOICEBOOK */
1573
8d206c07
PC
1574#if wxUSE_TOOLBOOK
1575# if !wxUSE_TOOLBAR
1576# ifdef wxABORT_ON_CONFIG_ERROR
1577# error "wxToolbook requires wxToolBar"
1578# else
1579# undef wxUSE_TOOLBAR
1580# define wxUSE_TOOLBAR 1
1581# endif
1582# endif
1583#endif /* wxUSE_TOOLBOOK */
1584
8d37334f
VZ
1585#if !wxUSE_ODCOMBOBOX
1586# if wxUSE_BITMAPCOMBOBOX
e721a2a2
VZ
1587# ifdef wxABORT_ON_CONFIG_ERROR
1588# error "wxBitmapComboBox requires wxOwnerDrawnComboBox"
1589# else
1590# undef wxUSE_BITMAPCOMBOBOX
1591# define wxUSE_BITMAPCOMBOBOX 0
1592# endif
8d37334f
VZ
1593# endif
1594#endif /* !wxUSE_ODCOMBOBOX */
1595
e721a2a2
VZ
1596#if !wxUSE_HEADERCTRL
1597# if wxUSE_DATAVIEWCTRL || wxUSE_GRID
1598# ifdef wxABORT_ON_CONFIG_ERROR
1599# error "wxDataViewCtrl and wxGrid require wxHeaderCtrl"
1600# else
1601# undef wxUSE_HEADERCTRL
1602# define wxUSE_HEADERCTRL 1
1603# endif
1604# endif
1605#endif /* !wxUSE_HEADERCTRL */
1606
75545930
VZ
1607#if wxUSE_REARRANGECTRL
1608# if !wxUSE_CHECKLISTBOX
1609# ifdef wxABORT_ON_CONFIG_ERROR
1610# error "wxRearrangeCtrl requires wxCheckListBox"
1611# else
1612# undef wxUSE_REARRANGECTRL
1613# define wxUSE_REARRANGECTRL 0
1614# endif
1615# endif
1616#endif /* wxUSE_REARRANGECTRL */
1617
a1bdd4ab
VZ
1618#if wxUSE_RICHMSGDLG
1619# if !wxUSE_MSGDLG
1620# ifdef wxABORT_ON_CONFIG_ERROR
1621# error "wxUSE_RICHMSGDLG requires wxUSE_MSGDLG"
1622# else
1623# undef wxUSE_MSGDLG
1624# define wxUSE_MSGDLG 1
1625# endif
1626# endif
1627#endif /* wxUSE_RICHMSGDLG */
1628
da4486fb
VZ
1629/* don't attempt to use native status bar on the platforms not having it */
1630#ifndef wxUSE_NATIVE_STATUSBAR
1631# define wxUSE_NATIVE_STATUSBAR 0
1632#elif wxUSE_NATIVE_STATUSBAR
bd362275 1633# if defined(__WXUNIVERSAL__) || !(defined(__WXMSW__) || defined(__WXMAC__))
da4486fb
VZ
1634# undef wxUSE_NATIVE_STATUSBAR
1635# define wxUSE_NATIVE_STATUSBAR 0
1636# endif
1637#endif
1638
f43426c1
RD
1639#if wxUSE_GRAPHICS_CONTEXT && !wxUSE_GEOMETRY
1640# ifdef wxABORT_ON_CONFIG_ERROR
1641# error "wxUSE_GRAPHICS_CONTEXT requires wxUSE_GEOMETRY"
1642# else
1643# undef wxUSE_GRAPHICS_CONTEXT
1644# define wxUSE_GRAPHICS_CONTEXT 0
1645# endif
1646#endif /* wxUSE_GRAPHICS_CONTEXT */
1647
1648
3379ed37
VZ
1649/* generic controls dependencies */
1650#if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1651# if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1652 /* all common controls are needed by these dialogs */
1653# if !defined(wxUSE_CHOICE) || \
1654 !defined(wxUSE_TEXTCTRL) || \
1655 !defined(wxUSE_BUTTON) || \
1656 !defined(wxUSE_CHECKBOX) || \
1657 !defined(wxUSE_STATTEXT)
1658# ifdef wxABORT_ON_CONFIG_ERROR
1659# error "These common controls are needed by common dialogs"
1660# else
1661# undef wxUSE_CHOICE
1662# define wxUSE_CHOICE 1
1663# undef wxUSE_TEXTCTRL
1664# define wxUSE_TEXTCTRL 1
1665# undef wxUSE_BUTTON
1666# define wxUSE_BUTTON 1
1667# undef wxUSE_CHECKBOX
1668# define wxUSE_CHECKBOX 1
1669# undef wxUSE_STATTEXT
1670# define wxUSE_STATTEXT 1
1671# endif
1672# endif
1673# endif
1674#endif /* !wxMSW || wxUniv */
1675
0cf3e587
VZ
1676/* generic file dialog depends on (generic) file control */
1677#if wxUSE_FILEDLG && !wxUSE_FILECTRL && \
1678 (defined(__WXUNIVERSAL__) || defined(__WXGTK__))
1679# ifdef wxABORT_ON_CONFIG_ERROR
1680# error "Generic wxFileDialog requires wxFileCtrl"
1681# else
1682# undef wxUSE_FILECTRL
1683# define wxUSE_FILECTRL 1
1684# endif
1685#endif /* wxUSE_FILEDLG */
1686
3379ed37 1687/* common dependencies */
c1d2466a
VZ
1688#if wxUSE_ARTPROVIDER_TANGO
1689# if !(wxUSE_STREAMS && wxUSE_IMAGE && wxUSE_LIBPNG)
1690# ifdef wxABORT_ON_CONFIG_ERROR
1691# error "Tango art provider requires wxImage with streams and PNG support"
1692# else
1693# undef wxUSE_ARTPROVIDER_TANGO
1694# define wxUSE_ARTPROVIDER_TANGO 0
1695# endif
1696# endif
1697#endif /* wxUSE_ARTPROVIDER_TANGO */
1698
1e6feb95
VZ
1699#if wxUSE_CALENDARCTRL
1700# if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1701# ifdef wxABORT_ON_CONFIG_ERROR
1702# error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1703# else
1704# undef wxUSE_SPINBTN
1705# undef wxUSE_COMBOBOX
1706# define wxUSE_SPINBTN 1
1707# define wxUSE_COMBOBOX 1
1708# endif
1709# endif
e2b87f38
VZ
1710
1711# if !wxUSE_DATETIME
1712# ifdef wxABORT_ON_CONFIG_ERROR
1713# error "wxCalendarCtrl requires wxUSE_DATETIME"
1714# else
1715# undef wxUSE_DATETIME
1716# define wxUSE_DATETIME 1
1717# endif
1718# endif
1e6feb95
VZ
1719#endif /* wxUSE_CALENDARCTRL */
1720
569c7d8c 1721#if wxUSE_DATEPICKCTRL || wxUSE_TIMEPICKCTRL
324eeecb
WS
1722# if !wxUSE_DATETIME
1723# ifdef wxABORT_ON_CONFIG_ERROR
569c7d8c 1724# error "wxDatePickerCtrl and wxTimePickerCtrl requires wxUSE_DATETIME"
324eeecb
WS
1725# else
1726# undef wxUSE_DATETIME
1727# define wxUSE_DATETIME 1
1728# endif
1729# endif
569c7d8c 1730#endif /* wxUSE_DATEPICKCTRL || wxUSE_TIMEPICKCTRL */
324eeecb 1731
1e6feb95
VZ
1732#if wxUSE_CHECKLISTBOX
1733# if !wxUSE_LISTBOX
1734# ifdef wxABORT_ON_CONFIG_ERROR
1735# error "wxCheckListBox requires wxListBox"
1736# else
1737# undef wxUSE_LISTBOX
1738# define wxUSE_LISTBOX 1
1739# endif
1740# endif
97e4cf6d
WS
1741#endif /* wxUSE_CHECKLISTBOX */
1742
1743#if wxUSE_CHOICEDLG
1744# if !wxUSE_LISTBOX
1745# ifdef wxABORT_ON_CONFIG_ERROR
1746# error "Choice dialogs requires wxListBox"
1747# else
1748# undef wxUSE_LISTBOX
1749# define wxUSE_LISTBOX 1
1750# endif
1751# endif
1752#endif /* wxUSE_CHOICEDLG */
1e6feb95 1753
8ca4b822
VZ
1754#if wxUSE_FILECTRL
1755# if !wxUSE_DATETIME
1756# ifdef wxABORT_ON_CONFIG_ERROR
1757# error "wxFileCtrl requires wxDateTime"
1758# else
1759# undef wxUSE_DATETIME
1760# define wxUSE_DATETIME 1
1761# endif
1762# endif
1763#endif /* wxUSE_FILECTRL */
1764
0b4f47a3
DS
1765#if wxUSE_HELP
1766# if !wxUSE_BMPBUTTON
1767# ifdef wxABORT_ON_CONFIG_ERROR
1768# error "wxUSE_HELP requires wxUSE_BMPBUTTON"
1769# else
1770# undef wxUSE_BMPBUTTON
1771# define wxUSE_BMPBUTTON 1
1772# endif
1773# endif
adb799d6
DS
1774
1775# if !wxUSE_CHOICEDLG
1776# ifdef wxABORT_ON_CONFIG_ERROR
1777# error "wxUSE_HELP requires wxUSE_CHOICEDLG"
1778# else
1779# undef wxUSE_CHOICEDLG
1780# define wxUSE_CHOICEDLG 1
1781# endif
1782# endif
0b4f47a3
DS
1783#endif /* wxUSE_HELP */
1784
09f43fd3
VZ
1785#if wxUSE_MS_HTML_HELP
1786 /*
1787 this doesn't make sense for platforms other than MSW but we still
1788 define it in wx/setup_inc.h so don't complain if it happens to be
1789 defined under another platform but just silently fix it.
1790 */
1791# ifndef __WXMSW__
1792# undef wxUSE_MS_HTML_HELP
1793# define wxUSE_MS_HTML_HELP 0
1794# endif
1795#endif /* wxUSE_MS_HTML_HELP */
1796
3379ed37 1797#if wxUSE_WXHTML_HELP
0e871ad0 1798# if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL
3379ed37
VZ
1799# ifdef wxABORT_ON_CONFIG_ERROR
1800# error "Built in help controller can't be compiled"
1801# else
1802# undef wxUSE_HELP
1803# define wxUSE_HELP 1
1804# undef wxUSE_HTML
1805# define wxUSE_HTML 1
1806# undef wxUSE_COMBOBOX
1807# define wxUSE_COMBOBOX 1
730dfeb4
VS
1808# undef wxUSE_NOTEBOOK
1809# define wxUSE_NOTEBOOK 1
0e871ad0
WS
1810# undef wxUSE_SPINCTRL
1811# define wxUSE_SPINCTRL 1
3379ed37
VZ
1812# endif
1813# endif
1814#endif /* wxUSE_WXHTML_HELP */
1815
05e4fd64
DS
1816#if !wxUSE_IMAGE
1817/*
1818 The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the
1819 user explicitly wants this and disable all other features that require
1820 wxUSE_IMAGE.
1821 */
1822# if wxUSE_DRAGIMAGE
1823# ifdef wxABORT_ON_CONFIG_ERROR
1824# error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE"
1825# else
1826# undef wxUSE_DRAGIMAGE
1827# define wxUSE_DRAGIMAGE 0
1828# endif
1829# endif
1830
1831# if wxUSE_LIBPNG
1832# ifdef wxABORT_ON_CONFIG_ERROR
1833# error "wxUSE_LIBPNG requires wxUSE_IMAGE"
1834# else
1835# undef wxUSE_LIBPNG
1836# define wxUSE_LIBPNG 0
1837# endif
1838# endif
1839
1840# if wxUSE_LIBJPEG
1841# ifdef wxABORT_ON_CONFIG_ERROR
1842# error "wxUSE_LIBJPEG requires wxUSE_IMAGE"
1843# else
1844# undef wxUSE_LIBJPEG
1845# define wxUSE_LIBJPEG 0
1846# endif
1847# endif
1848
1849# if wxUSE_LIBTIFF
1850# ifdef wxABORT_ON_CONFIG_ERROR
1851# error "wxUSE_LIBTIFF requires wxUSE_IMAGE"
1852# else
1853# undef wxUSE_LIBTIFF
1854# define wxUSE_LIBTIFF 0
1855# endif
1856# endif
1857
1858# if wxUSE_GIF
1859# ifdef wxABORT_ON_CONFIG_ERROR
1860# error "wxUSE_GIF requires wxUSE_IMAGE"
1861# else
1862# undef wxUSE_GIF
1863# define wxUSE_GIF 0
1864# endif
1865# endif
1866
1867# if wxUSE_PNM
1868# ifdef wxABORT_ON_CONFIG_ERROR
1869# error "wxUSE_PNM requires wxUSE_IMAGE"
1870# else
1871# undef wxUSE_PNM
1872# define wxUSE_PNM 0
1873# endif
1874# endif
1875
1876# if wxUSE_PCX
1877# ifdef wxABORT_ON_CONFIG_ERROR
1878# error "wxUSE_PCX requires wxUSE_IMAGE"
1879# else
1880# undef wxUSE_PCX
1881# define wxUSE_PCX 0
1882# endif
1883# endif
1884
1885# if wxUSE_IFF
1886# ifdef wxABORT_ON_CONFIG_ERROR
1887# error "wxUSE_IFF requires wxUSE_IMAGE"
1888# else
1889# undef wxUSE_IFF
1890# define wxUSE_IFF 0
1891# endif
1892# endif
1893
1894# if wxUSE_TOOLBAR
1895# ifdef wxABORT_ON_CONFIG_ERROR
1896# error "wxUSE_TOOLBAR requires wxUSE_IMAGE"
1897# else
1898# undef wxUSE_TOOLBAR
1899# define wxUSE_TOOLBAR 0
1900# endif
1901# endif
1902
1903# if wxUSE_XPM
1904# ifdef wxABORT_ON_CONFIG_ERROR
1905# error "wxUSE_XPM requires wxUSE_IMAGE"
1906# else
1907# undef wxUSE_XPM
1908# define wxUSE_XPM 0
1909# endif
1910# endif
1911
1912#endif /* !wxUSE_IMAGE */
1913
e30285ab
VZ
1914#if wxUSE_DOC_VIEW_ARCHITECTURE
1915# if !wxUSE_MENUS
1916# ifdef wxABORT_ON_CONFIG_ERROR
1917# error "DocView requires wxUSE_MENUS"
1918# else
1919# undef wxUSE_MENUS
1920# define wxUSE_MENUS 1
1921# endif
1922# endif
1923
adb799d6
DS
1924# if !wxUSE_CHOICEDLG
1925# ifdef wxABORT_ON_CONFIG_ERROR
1926# error "DocView requires wxUSE_CHOICEDLG"
1927# else
1928# undef wxUSE_CHOICEDLG
1929# define wxUSE_CHOICEDLG 1
1930# endif
1931# endif
1932
e30285ab
VZ
1933# if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1934# ifdef wxABORT_ON_CONFIG_ERROR
1935# error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1936# else
1937# undef wxUSE_STREAMS
1938# define wxUSE_STREAMS 1
1939# endif
1940# endif
a0219e45
VS
1941
1942# if !wxUSE_FILE_HISTORY
1943# ifdef wxABORT_ON_CONFIG_ERROR
1944# error "DocView requires wxUSE_FILE_HISTORY"
1945# else
1946# undef wxUSE_FILE_HISTORY
1947# define wxUSE_FILE_HISTORY 1
1948# endif
1949# endif
e30285ab
VZ
1950#endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1951
3379ed37
VZ
1952#if wxUSE_PRINTING_ARCHITECTURE
1953# if !wxUSE_COMBOBOX
1954# ifdef wxABORT_ON_CONFIG_ERROR
1955# error "Print dialog requires wxUSE_COMBOBOX"
1956# else
1957# undef wxUSE_COMBOBOX
1958# define wxUSE_COMBOBOX 1
1959# endif
1960# endif
1961#endif /* wxUSE_PRINTING_ARCHITECTURE */
1962
e30285ab 1963#if wxUSE_MDI_ARCHITECTURE
efd17a1d
VZ
1964# if !wxUSE_MDI
1965# ifdef wxABORT_ON_CONFIG_ERROR
1966# error "MDI requires wxUSE_MDI"
1967# else
1968# undef wxUSE_MDI
1969# define wxUSE_MDI 1
1970# endif
1971# endif
1972
e30285ab 1973# if !wxUSE_DOC_VIEW_ARCHITECTURE
1e6feb95 1974# ifdef wxABORT_ON_CONFIG_ERROR
0872eaf9 1975# error "wxUSE_MDI_ARCHITECTURE requires wxUSE_DOC_VIEW_ARCHITECTURE"
1e6feb95 1976# else
e30285ab
VZ
1977# undef wxUSE_DOC_VIEW_ARCHITECTURE
1978# define wxUSE_DOC_VIEW_ARCHITECTURE 1
1e6feb95
VZ
1979# endif
1980# endif
e30285ab 1981#endif /* wxUSE_MDI_ARCHITECTURE */
1e6feb95
VZ
1982
1983#if !wxUSE_FILEDLG
2119e280 1984# if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1e6feb95 1985# ifdef wxABORT_ON_CONFIG_ERROR
0872eaf9 1986# error "wxUSE_FILEDLG is required by wxUSE_DOC_VIEW_ARCHITECTURE and wxUSE_WXHTML_HELP!"
1e6feb95
VZ
1987# else
1988# undef wxUSE_FILEDLG
1989# define wxUSE_FILEDLG 1
1990# endif
1991# endif
e421922f 1992#endif /* wxUSE_FILEDLG */
1e6feb95 1993
555f645a 1994#if !wxUSE_GAUGE || !wxUSE_BUTTON
bd362275 1995# if wxUSE_PROGRESSDLG
063b752e 1996# ifdef wxABORT_ON_CONFIG_ERROR
555f645a 1997# error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON"
063b752e
WS
1998# else
1999# undef wxUSE_GAUGE
555f645a 2000# undef wxUSE_BUTTON
063b752e 2001# define wxUSE_GAUGE 1
555f645a 2002# define wxUSE_BUTTON 1
063b752e
WS
2003# endif
2004# endif
2005#endif /* !wxUSE_GAUGE */
2006
0b4f47a3 2007#if !wxUSE_BUTTON
555f645a 2008# if wxUSE_FONTDLG || \
0b4f47a3
DS
2009 wxUSE_FILEDLG || \
2010 wxUSE_CHOICEDLG || \
2011 wxUSE_NUMBERDLG || \
2012 wxUSE_TEXTDLG || \
2013 wxUSE_DIRDLG || \
2014 wxUSE_STARTUP_TIPS || \
2015 wxUSE_WIZARDDLG
2016# ifdef wxABORT_ON_CONFIG_ERROR
2017# error "Common and generic dialogs require wxUSE_BUTTON"
2018# else
2019# undef wxUSE_BUTTON
2020# define wxUSE_BUTTON 1
2021# endif
2022# endif
063b752e 2023#endif /* !wxUSE_BUTTON */
0b4f47a3 2024
12491c1f
JS
2025#if !wxUSE_TOOLBAR
2026# if wxUSE_TOOLBAR_NATIVE
2027# ifdef wxABORT_ON_CONFIG_ERROR
2028# error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
2029# else
2030# undef wxUSE_TOOLBAR_NATIVE
2031# define wxUSE_TOOLBAR_NATIVE 0
2032# endif
2033# endif
12491c1f
JS
2034#endif
2035
1e6feb95 2036#if !wxUSE_IMAGLIST
524cb040 2037# if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL || wxUSE_TREELISTCTRL
1e6feb95
VZ
2038# ifdef wxABORT_ON_CONFIG_ERROR
2039# error "wxImageList must be compiled as well"
2040# else
2041# undef wxUSE_IMAGLIST
2042# define wxUSE_IMAGLIST 1
2043# endif
2044# endif
2045#endif /* !wxUSE_IMAGLIST */
2046
1e6feb95 2047#if wxUSE_RADIOBOX
9a727a3b 2048# if !wxUSE_RADIOBTN
1e6feb95 2049# ifdef wxABORT_ON_CONFIG_ERROR
9a727a3b 2050# error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN"
1e6feb95
VZ
2051# else
2052# undef wxUSE_RADIOBTN
1e6feb95 2053# define wxUSE_RADIOBTN 1
9a727a3b
WS
2054# endif
2055# endif
bd362275 2056# if !wxUSE_STATBOX
9a727a3b
WS
2057# ifdef wxABORT_ON_CONFIG_ERROR
2058# error "wxUSE_RADIOBOX requires wxUSE_STATBOX"
2059# else
2060# undef wxUSE_STATBOX
1e6feb95
VZ
2061# define wxUSE_STATBOX 1
2062# endif
2063# endif
2064#endif /* wxUSE_RADIOBOX */
2065
3379ed37
VZ
2066#if wxUSE_LOGWINDOW
2067# if !wxUSE_TEXTCTRL
2068# ifdef wxABORT_ON_CONFIG_ERROR
2069# error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
2070# else
2071# undef wxUSE_TEXTCTRL
2072# define wxUSE_TEXTCTRL 1
2073# endif
2074# endif
2075#endif /* wxUSE_LOGWINDOW */
1e6feb95 2076
3e6e2754 2077#if wxUSE_LOG_DIALOG
0b4f47a3 2078# if !wxUSE_LISTCTRL || !wxUSE_BUTTON
3e6e2754 2079# ifdef wxABORT_ON_CONFIG_ERROR
0b4f47a3 2080# error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON"
3e6e2754
JS
2081# else
2082# undef wxUSE_LISTCTRL
2083# define wxUSE_LISTCTRL 1
0b4f47a3
DS
2084# undef wxUSE_BUTTON
2085# define wxUSE_BUTTON 1
3e6e2754
JS
2086# endif
2087# endif
2088#endif /* wxUSE_LOG_DIALOG */
2089
1e6feb95 2090#if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
3379ed37 2091# ifdef wxABORT_ON_CONFIG_ERROR
1e6feb95
VZ
2092# error "wxClipboard requires wxDataObject"
2093# else
2094# undef wxUSE_DATAOBJ
2095# define wxUSE_DATAOBJ 1
2096# endif
2097#endif /* wxUSE_CLIPBOARD */
2098
d2ebf0b7
VS
2099#if wxUSE_XRC && !wxUSE_XML
2100# ifdef wxABORT_ON_CONFIG_ERROR
2101# error "wxUSE_XRC requires wxUSE_XML"
2102# else
2103# undef wxUSE_XRC
2104# define wxUSE_XRC 0
2105# endif
5a017695 2106#endif /* wxUSE_XRC */
d2ebf0b7 2107
4669dcb2
RN
2108#if wxUSE_SOCKETS && !wxUSE_STOPWATCH
2109# ifdef wxABORT_ON_CONFIG_ERROR
2110# error "wxUSE_SOCKETS requires wxUSE_STOPWATCH"
2111# else
2112# undef wxUSE_SOCKETS
2113# define wxUSE_SOCKETS 0
2114# endif
2115#endif /* wxUSE_SOCKETS */
2116
b0fc907f
VZ
2117#if wxUSE_SVG && !wxUSE_STREAMS
2118# ifdef wxABORT_ON_CONFIG_ERROR
2119# error "wxUSE_SVG requires wxUSE_STREAMS"
2120# else
2121# undef wxUSE_SVG
2122# define wxUSE_SVG 0
2123# endif
2124#endif /* wxUSE_SVG */
2125
d5cbee17
VS
2126#if wxUSE_SVG && !wxUSE_IMAGE
2127# ifdef wxABORT_ON_CONFIG_ERROR
2128# error "wxUSE_SVG requires wxUSE_IMAGE"
2129# else
2130# undef wxUSE_SVG
2131# define wxUSE_SVG 0
2132# endif
2133#endif /* wxUSE_SVG */
2134
2135#if wxUSE_SVG && !wxUSE_LIBPNG
2136# ifdef wxABORT_ON_CONFIG_ERROR
2137# error "wxUSE_SVG requires wxUSE_LIBPNG"
2138# else
2139# undef wxUSE_SVG
2140# define wxUSE_SVG 0
2141# endif
2142#endif /* wxUSE_SVG */
2143
dc90b8d4
VZ
2144#if wxUSE_TASKBARICON && !wxUSE_MENUS
2145# ifdef wxABORT_ON_CONFIG_ERROR
2146# error "wxUSE_TASKBARICON requires wxUSE_MENUS"
2147# else
2148# undef wxUSE_TASKBARICON
2149# define wxUSE_TASKBARICON 0
2150# endif
2151#endif /* wxUSE_TASKBARICON */
2152
ca5c6ac3
VZ
2153#if !wxUSE_VARIANT
2154# if wxUSE_DATAVIEWCTRL
2155# ifdef wxABORT_ON_CONFIG_ERROR
2156# error "wxDataViewCtrl requires wxVariant"
2157# else
2158# undef wxUSE_DATAVIEWCTRL
2159# define wxUSE_DATAVIEWCTRL 0
2160# endif
2161# endif
ca5c6ac3
VZ
2162#endif /* wxUSE_VARIANT */
2163
524cb040
VZ
2164#if wxUSE_TREELISTCTRL && !wxUSE_DATAVIEWCTRL
2165# ifdef wxABORT_ON_CONFIG_ERROR
2166# error "wxUSE_TREELISTCTRL requires wxDataViewCtrl"
2167# else
2168# undef wxUSE_TREELISTCTRL
2169# define wxUSE_TREELISTCTRL 0
2170# endif
2171#endif /* wxUSE_TREELISTCTRL */
2172
88cc66f7
VZ
2173#if wxUSE_WEBVIEW && !(wxUSE_WEBVIEW_WEBKIT || wxUSE_WEBVIEW_IE)
2174# ifdef wxABORT_ON_CONFIG_ERROR
2175# error "wxUSE_WEBVIEW requires at least one backend"
2176# else
2177# undef wxUSE_WEBVIEW
2178# define wxUSE_WEBVIEW 0
2179# endif
2180#endif /* wxUSE_WEBVIEW && !any web view backend */
2181
1e6feb95 2182#endif /* wxUSE_GUI */
8ba16443
VZ
2183
2184#endif /* _WX_CHKCONF_H_ */