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