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