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