]> git.saurik.com Git - wxWidgets.git/blame - include/wx/chkconf.h
compilation fixes
[wxWidgets.git] / include / wx / chkconf.h
CommitLineData
1e6feb95
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@wxwindows.org>
371a5b4e 9 * Licence: wxWindows licence
1e6feb95
VZ
10 */
11
12/* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
13
01ebf752
JS
14/*
15 Compiler-specific checking.
16 */
17
18#if defined(__WXMSW__)
19# include "wx/msw/chkconf.h"
20#elif defined(__WXMAC__)
21# include "wx/mac/chkconf.h"
22#endif
23
1e6feb95 24/*
730dfeb4 25 this global setting determines what should we do if the setting FOO
1e6feb95
VZ
26 requires BAR and BAR is not set: we can either silently define BAR
27 (default, recommended) or give an error and abort (mainly useful for
730dfeb4 28 developers only)
1e6feb95
VZ
29 */
30#define wxABORT_ON_CONFIG_ERROR
31
6962f34e
VZ
32/*
33 global features
34 */
35
36/* GUI build by default */
37#if !defined(wxUSE_GUI)
38# define wxUSE_GUI 1
39#endif /* !defined(wxUSE_GUI) */
40
1e6feb95 41/*
03169422
RL
42 tests for non GUI features
43 */
44
45#ifndef wxUSE_DYNLIB_CLASS
46# ifdef wxABORT_ON_CONFIG_ERROR
47# error "wxUSE_DYNLIB_CLASS must be defined."
48# else
49# define wxUSE_DYNLIB_CLASS 0
50# endif
51#endif /* !defined(wxUSE_DYNLIB_CLASS) */
52
c7f3eecc
VZ
53#ifndef wxUSE_FILESYSTEM
54# ifdef wxABORT_ON_CONFIG_ERROR
55# error "wxUSE_FILESYSTEM must be defined."
56# else
57# define wxUSE_FILESYSTEM 0
58# endif
59#endif /* !defined(wxUSE_FILESYSTEM) */
60
6fb17fd5 61/* don't give an error about this one yet, it's not fully implemented */
05815ab3 62#ifndef wxUSE_FSVOLUME
6fb17fd5 63# define wxUSE_FSVOLUME 0
05815ab3
VZ
64#endif /* !defined(wxUSE_FSVOLUME) */
65
03169422
RL
66#ifndef wxUSE_DYNAMIC_LOADER
67# ifdef wxABORT_ON_CONFIG_ERROR
68# error "wxUSE_DYNAMIC_LOADER must be defined."
69# else
70# define wxUSE_DYNAMIC_LOADER 0
71# endif
72#endif /* !defined(wxUSE_DYNAMIC_LOADER) */
73
a5d46b73
VZ
74#ifndef wxUSE_LOG
75# ifdef wxABORT_ON_CONFIG_ERROR
76# error "wxUSE_LOG must be defined."
77# else
78# define wxUSE_LOG 0
79# endif
80#endif /* !defined(wxUSE_LOG) */
81
82#ifndef wxUSE_LONGLONG
83# ifdef wxABORT_ON_CONFIG_ERROR
84# error "wxUSE_LONGLONG must be defined."
85# else
86# define wxUSE_LONGLONG 0
87# endif
88#endif /* !defined(wxUSE_LONGLONG) */
89
90#ifndef wxUSE_MIMETYPE
91# ifdef wxABORT_ON_CONFIG_ERROR
92# error "wxUSE_MIMETYPE must be defined."
93# else
94# define wxUSE_MIMETYPE 0
95# endif
96#endif /* !defined(wxUSE_MIMETYPE) */
97
98#ifndef wxUSE_PROTOCOL
99# ifdef wxABORT_ON_CONFIG_ERROR
100# error "wxUSE_PROTOCOL must be defined."
101# else
102# define wxUSE_PROTOCOL 0
103# endif
104#endif /* !defined(wxUSE_PROTOCOL) */
105
106/* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */
107#if !wxUSE_PROTOCOL
108# undef wxUSE_PROTOCOL_HTTP
109# undef wxUSE_PROTOCOL_FTP
110# undef wxUSE_PROTOCOL_FILE
111# define wxUSE_PROTOCOL_HTTP 0
112# define wxUSE_PROTOCOL_FTP 0
113# define wxUSE_PROTOCOL_FILE 0
114#endif /* wxUSE_PROTOCOL */
115
116#ifndef wxUSE_PROTOCOL_HTTP
117# ifdef wxABORT_ON_CONFIG_ERROR
118# error "wxUSE_PROTOCOL_HTTP must be defined."
119# else
120# define wxUSE_PROTOCOL_HTTP 0
121# endif
122#endif /* !defined(wxUSE_PROTOCOL_HTTP) */
123
124#ifndef wxUSE_PROTOCOL_FTP
125# ifdef wxABORT_ON_CONFIG_ERROR
126# error "wxUSE_PROTOCOL_FTP must be defined."
127# else
128# define wxUSE_PROTOCOL_FTP 0
129# endif
130#endif /* !defined(wxUSE_PROTOCOL_FTP) */
131
132#ifndef wxUSE_PROTOCOL_FILE
133# ifdef wxABORT_ON_CONFIG_ERROR
134# error "wxUSE_PROTOCOL_FILE must be defined."
135# else
136# define wxUSE_PROTOCOL_FILE 0
137# endif
138#endif /* !defined(wxUSE_PROTOCOL_FILE) */
139
140#ifndef wxUSE_REGEX
141# ifdef wxABORT_ON_CONFIG_ERROR
142# error "wxUSE_REGEX must be defined."
143# else
144# define wxUSE_REGEX 0
145# endif
146#endif /* !defined(wxUSE_REGEX) */
147
27b0c286
VS
148#ifndef wxUSE_XML
149# ifdef wxABORT_ON_CONFIG_ERROR
150# error "wxUSE_XML must be defined."
151# else
152# define wxUSE_XML 0
153# endif
154#endif /* !defined(wxUSE_XML) */
155
a5d46b73
VZ
156#ifndef wxUSE_SOCKETS
157# ifdef wxABORT_ON_CONFIG_ERROR
158# error "wxUSE_SOCKETS must be defined."
159# else
160# define wxUSE_SOCKETS 0
161# endif
162#endif /* !defined(wxUSE_SOCKETS) */
163
164#ifndef wxUSE_STREAMS
165# ifdef wxABORT_ON_CONFIG_ERROR
166# error "wxUSE_STREAMS must be defined."
167# else
168# define wxUSE_STREAMS 0
169# endif
170#endif /* !defined(wxUSE_STREAMS) */
171
172#ifndef wxUSE_STOPWATCH
173# ifdef wxABORT_ON_CONFIG_ERROR
174# error "wxUSE_STOPWATCH must be defined."
175# else
176# define wxUSE_STOPWATCH 0
177# endif
178#endif /* !defined(wxUSE_STOPWATCH) */
179
180#ifndef wxUSE_TEXTBUFFER
181# ifdef wxABORT_ON_CONFIG_ERROR
182# error "wxUSE_TEXTBUFFER must be defined."
183# else
184# define wxUSE_TEXTBUFFER 0
185# endif
186#endif /* !defined(wxUSE_TEXTBUFFER) */
187
188#ifndef wxUSE_TEXTFILE
189# ifdef wxABORT_ON_CONFIG_ERROR
190# error "wxUSE_TEXTFILE must be defined."
191# else
192# define wxUSE_TEXTFILE 0
193# endif
194#endif /* !defined(wxUSE_TEXTFILE) */
195
196#ifndef wxUSE_UNICODE
197# ifdef wxABORT_ON_CONFIG_ERROR
198# error "wxUSE_UNICODE must be defined."
199# else
200# define wxUSE_UNICODE 0
201# endif
202#endif /* !defined(wxUSE_UNICODE) */
203
204#ifndef wxUSE_URL
205# ifdef wxABORT_ON_CONFIG_ERROR
206# error "wxUSE_URL must be defined."
207# else
208# define wxUSE_URL 0
209# endif
210#endif /* !defined(wxUSE_URL) */
211
03169422
RL
212/*
213 all these tests are for GUI only
1e6feb95
VZ
214 */
215#if wxUSE_GUI
216
217/*
218 all of the settings tested below must be defined or we'd get an error from
219 preprocessor about invalid integer expression
220 */
221
222#ifndef wxUSE_ACCEL
223# ifdef wxABORT_ON_CONFIG_ERROR
224# error "wxUSE_ACCEL must be defined."
225# else
226# define wxUSE_ACCEL 0
227# endif
228#endif /* !defined(wxUSE_ACCEL) */
229
230#ifndef wxUSE_BMPBUTTON
231# ifdef wxABORT_ON_CONFIG_ERROR
232# error "wxUSE_BMPBUTTON must be defined."
233# else
234# define wxUSE_BMPBUTTON 0
235# endif
236#endif /* !defined(wxUSE_BMPBUTTON) */
237
238#ifndef wxUSE_BUTTON
239# ifdef wxABORT_ON_CONFIG_ERROR
240# error "wxUSE_BUTTON must be defined."
241# else
242# define wxUSE_BUTTON 0
243# endif
244#endif /* !defined(wxUSE_BUTTON) */
245
246#ifndef wxUSE_CALENDARCTRL
247# ifdef wxABORT_ON_CONFIG_ERROR
248# error "wxUSE_CALENDARCTRL must be defined."
249# else
250# define wxUSE_CALENDARCTRL 0
251# endif
252#endif /* !defined(wxUSE_CALENDARCTRL) */
253
254#ifndef wxUSE_CARET
255# ifdef wxABORT_ON_CONFIG_ERROR
256# error "wxUSE_CARET must be defined."
257# else
258# define wxUSE_CARET 0
259# endif
260#endif /* !defined(wxUSE_CARET) */
261
262#ifndef wxUSE_CHECKBOX
263# ifdef wxABORT_ON_CONFIG_ERROR
264# error "wxUSE_CHECKBOX must be defined."
265# else
266# define wxUSE_CHECKBOX 0
267# endif
268#endif /* !defined(wxUSE_CHECKBOX) */
269
270#ifndef wxUSE_CHECKLISTBOX
271# ifdef wxABORT_ON_CONFIG_ERROR
272# error "wxUSE_CHECKLISTBOX must be defined."
273# else
274# define wxUSE_CHECKLISTBOX 0
275# endif
276#endif /* !defined(wxUSE_CHECKLISTBOX) */
277
278#ifndef wxUSE_CHOICE
279# ifdef wxABORT_ON_CONFIG_ERROR
280# error "wxUSE_CHOICE must be defined."
281# else
282# define wxUSE_CHOICE 0
283# endif
284#endif /* !defined(wxUSE_CHOICE) */
285
3379ed37
VZ
286#ifndef wxUSE_CHOICEDLG
287# ifdef wxABORT_ON_CONFIG_ERROR
288# error "wxUSE_CHOICEDLG must be defined."
289# else
290# define wxUSE_CHOICEDLG 0
291# endif
292#endif /* !defined(wxUSE_CHOICEDLG) */
293
1e6feb95
VZ
294#ifndef wxUSE_CLIPBOARD
295# ifdef wxABORT_ON_CONFIG_ERROR
296# error "wxUSE_CLIPBOARD must be defined."
297# else
298# define wxUSE_CLIPBOARD 0
299# endif
300#endif /* !defined(wxUSE_CLIPBOARD) */
301
a2c0a9c5
VZ
302#ifndef wxUSE_COLOURDLG
303# ifdef wxABORT_ON_CONFIG_ERROR
304# error "wxUSE_COLOURDLG must be defined."
305# else
306# define wxUSE_COLOURDLG 0
307# endif
308#endif /* !defined(wxUSE_COLOURDLG) */
309
1e6feb95
VZ
310#ifndef wxUSE_COMBOBOX
311# ifdef wxABORT_ON_CONFIG_ERROR
312# error "wxUSE_COMBOBOX must be defined."
313# else
314# define wxUSE_COMBOBOX 0
315# endif
316#endif /* !defined(wxUSE_COMBOBOX) */
317
318#ifndef wxUSE_DATAOBJ
319# ifdef wxABORT_ON_CONFIG_ERROR
320# error "wxUSE_DATAOBJ must be defined."
321# else
322# define wxUSE_DATAOBJ 0
323# endif
324#endif /* !defined(wxUSE_DATAOBJ) */
325
3379ed37
VZ
326#ifndef wxUSE_DOC_VIEW_ARCHITECTURE
327# ifdef wxABORT_ON_CONFIG_ERROR
328# error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
329# else
330# define wxUSE_DOC_VIEW_ARCHITECTURE 0
331# endif
332#endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
333
1e6feb95
VZ
334#ifndef wxUSE_FILEDLG
335# ifdef wxABORT_ON_CONFIG_ERROR
336# error "wxUSE_FILEDLG must be defined."
337# else
338# define wxUSE_FILEDLG 0
339# endif
340#endif /* !defined(wxUSE_FILEDLG) */
341
342#ifndef wxUSE_FONTDLG
343# ifdef wxABORT_ON_CONFIG_ERROR
344# error "wxUSE_FONTDLG must be defined."
345# else
346# define wxUSE_FONTDLG 0
347# endif
348#endif /* !defined(wxUSE_FONTDLG) */
349
350#ifndef wxUSE_FONTMAP
351# ifdef wxABORT_ON_CONFIG_ERROR
352# error "wxUSE_FONTMAP must be defined."
353# else
354# define wxUSE_FONTMAP 0
355# endif
356#endif /* !defined(wxUSE_FONTMAP) */
357
358#ifndef wxUSE_GAUGE
359# ifdef wxABORT_ON_CONFIG_ERROR
360# error "wxUSE_GAUGE must be defined."
361# else
362# define wxUSE_GAUGE 0
363# endif
364#endif /* !defined(wxUSE_GAUGE) */
365
366#ifndef wxUSE_GRID
367# ifdef wxABORT_ON_CONFIG_ERROR
368# error "wxUSE_GRID must be defined."
369# else
370# define wxUSE_GRID 0
371# endif
372#endif /* !defined(wxUSE_GRID) */
373
3379ed37
VZ
374#ifndef wxUSE_HELP
375# ifdef wxABORT_ON_CONFIG_ERROR
376# error "wxUSE_HELP must be defined."
377# else
378# define wxUSE_HELP 0
379# endif
380#endif /* !defined(wxUSE_HELP) */
381
05dcbb8e
VZ
382#ifndef wxUSE_HTML
383# ifdef wxABORT_ON_CONFIG_ERROR
384# error "wxUSE_HTML must be defined."
385# else
386# define wxUSE_HTML 0
387# endif
388#endif /* !defined(wxUSE_HTML) */
389
658974ae
VS
390#ifndef wxUSE_ICO_CUR
391# ifdef wxABORT_ON_CONFIG_ERROR
392# error "wxUSE_ICO_CUR must be defined."
393# else
394# define wxUSE_ICO_CUR 0
395# endif
396#endif /* !defined(wxUSE_ICO_CUR) */
397
1663afc0
VS
398#ifndef wxUSE_IFF
399# ifdef wxABORT_ON_CONFIG_ERROR
400# error "wxUSE_IFF must be defined."
401# else
402# define wxUSE_IFF 0
403# endif
404#endif /* !defined(wxUSE_IFF) */
405
1e6feb95
VZ
406#ifndef wxUSE_IMAGLIST
407# ifdef wxABORT_ON_CONFIG_ERROR
408# error "wxUSE_IMAGLIST must be defined."
409# else
410# define wxUSE_IMAGLIST 0
411# endif
412#endif /* !defined(wxUSE_IMAGLIST) */
413
2131b89d
VZ
414#ifndef wxUSE_JOYSTICK
415# ifdef wxABORT_ON_CONFIG_ERROR
416# error "wxUSE_JOYSTICK must be defined."
417# else
418# define wxUSE_JOYSTICK 0
419# endif
420#endif /* !defined(wxUSE_JOYSTICK) */
421
1e6feb95
VZ
422#ifndef wxUSE_LISTBOX
423# ifdef wxABORT_ON_CONFIG_ERROR
424# error "wxUSE_LISTBOX must be defined."
425# else
426# define wxUSE_LISTBOX 0
427# endif
428#endif /* !defined(wxUSE_LISTBOX) */
429
430#ifndef wxUSE_LISTCTRL
431# ifdef wxABORT_ON_CONFIG_ERROR
432# error "wxUSE_LISTCTRL must be defined."
433# else
434# define wxUSE_LISTCTRL 0
435# endif
436#endif /* !defined(wxUSE_LISTCTRL) */
437
3379ed37
VZ
438#ifndef wxUSE_LOGGUI
439# ifdef wxABORT_ON_CONFIG_ERROR
440# error "wxUSE_LOGGUI must be defined."
441# else
442# define wxUSE_LOGGUI 0
443# endif
444#endif /* !defined(wxUSE_LOGGUI) */
445
446#ifndef wxUSE_LOGWINDOW
447# ifdef wxABORT_ON_CONFIG_ERROR
448# error "wxUSE_LOGWINDOW must be defined."
449# else
450# define wxUSE_LOGWINDOW 0
451# endif
452#endif /* !defined(wxUSE_LOGWINDOW) */
e421922f 453
3e6e2754
JS
454#ifndef wxUSE_LOG_DIALOG
455# ifdef wxABORT_ON_CONFIG_ERROR
456# error "wxUSE_LOG_DIALOG must be defined."
457# else
458# define wxUSE_LOG_DIALOG 0
459# endif
71908213 460#endif /* !defined(wxUSE_LOG_DIALOG) */
3e6e2754 461
1e6feb95
VZ
462#ifndef wxUSE_MDI_ARCHITECTURE
463# ifdef wxABORT_ON_CONFIG_ERROR
464# error "wxUSE_MDI_ARCHITECTURE must be defined."
465# else
466# define wxUSE_MDI_ARCHITECTURE 0
467# endif
468#endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
469
470#ifndef wxUSE_MENUS
471# ifdef wxABORT_ON_CONFIG_ERROR
472# error "wxUSE_MENUS must be defined."
473# else
474# define wxUSE_MENUS 0
475# endif
476#endif /* !defined(wxUSE_MENUS) */
477
3379ed37
VZ
478#ifndef wxUSE_MSGDLG
479# ifdef wxABORT_ON_CONFIG_ERROR
480# error "wxUSE_MSGDLG must be defined."
481# else
482# define wxUSE_MSGDLG 0
483# endif
484#endif /* !defined(wxUSE_MSGDLG) */
485
1e6feb95
VZ
486#ifndef wxUSE_NOTEBOOK
487# ifdef wxABORT_ON_CONFIG_ERROR
488# error "wxUSE_NOTEBOOK must be defined."
489# else
490# define wxUSE_NOTEBOOK 0
491# endif
492#endif /* !defined(wxUSE_NOTEBOOK) */
493
d275c7eb
VZ
494#ifndef wxUSE_PALETTE
495# ifdef wxABORT_ON_CONFIG_ERROR
496# error "wxUSE_PALETTE must be defined."
497# else
498# define wxUSE_PALETTE 0
499# endif
500#endif /* !defined(wxUSE_PALETTE) */
501
1e6feb95
VZ
502#ifndef wxUSE_POPUPWIN
503# ifdef wxABORT_ON_CONFIG_ERROR
504# error "wxUSE_POPUPWIN must be defined."
505# else
506# define wxUSE_POPUPWIN 0
507# endif
508#endif /* !defined(wxUSE_POPUPWIN) */
509
3379ed37
VZ
510#ifndef wxUSE_PRINTING_ARCHITECTURE
511# ifdef wxABORT_ON_CONFIG_ERROR
512# error "wxUSE_PRINTING_ARCHITECTURE must be defined."
513# else
514# define wxUSE_PRINTING_ARCHITECTURE 0
515# endif
516#endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
517
1e6feb95
VZ
518#ifndef wxUSE_RADIOBOX
519# ifdef wxABORT_ON_CONFIG_ERROR
520# error "wxUSE_RADIOBOX must be defined."
521# else
522# define wxUSE_RADIOBOX 0
523# endif
524#endif /* !defined(wxUSE_RADIOBOX) */
525
526#ifndef wxUSE_RADIOBTN
527# ifdef wxABORT_ON_CONFIG_ERROR
528# error "wxUSE_RADIOBTN must be defined."
529# else
530# define wxUSE_RADIOBTN 0
531# endif
532#endif /* !defined(wxUSE_RADIOBTN) */
533
534#ifndef wxUSE_SASH
535# ifdef wxABORT_ON_CONFIG_ERROR
536# error "wxUSE_SASH must be defined."
537# else
538# define wxUSE_SASH 0
539# endif
540#endif /* !defined(wxUSE_SASH) */
541
542#ifndef wxUSE_SCROLLBAR
543# ifdef wxABORT_ON_CONFIG_ERROR
544# error "wxUSE_SCROLLBAR must be defined."
545# else
546# define wxUSE_SCROLLBAR 0
547# endif
548#endif /* !defined(wxUSE_SCROLLBAR) */
549
550#ifndef wxUSE_SLIDER
551# ifdef wxABORT_ON_CONFIG_ERROR
552# error "wxUSE_SLIDER must be defined."
553# else
554# define wxUSE_SLIDER 0
555# endif
556#endif /* !defined(wxUSE_SLIDER) */
557
558#ifndef wxUSE_SPINBTN
559# ifdef wxABORT_ON_CONFIG_ERROR
560# error "wxUSE_SPINBTN must be defined."
561# else
562# define wxUSE_SPINBTN 0
563# endif
564#endif /* !defined(wxUSE_SPINBTN) */
565
566#ifndef wxUSE_SPINCTRL
567# ifdef wxABORT_ON_CONFIG_ERROR
568# error "wxUSE_SPINCTRL must be defined."
569# else
570# define wxUSE_SPINCTRL 0
571# endif
572#endif /* !defined(wxUSE_SPINCTRL) */
573
2654a046
MB
574#ifndef wxUSE_SPLASH
575# ifdef wxABORT_ON_CONFIG_ERROR
576# error "wxUSE_SPLASH must be defined."
577# else
578# define wxUSE_SPLASH 0
579# endif
580#endif /* !defined(wxUSE_SPLASH) */
581
1e6feb95
VZ
582#ifndef wxUSE_SPLITTER
583# ifdef wxABORT_ON_CONFIG_ERROR
584# error "wxUSE_SPLITTER must be defined."
585# else
586# define wxUSE_SPLITTER 0
587# endif
588#endif /* !defined(wxUSE_SPLITTER) */
589
590#ifndef wxUSE_STATBMP
591# ifdef wxABORT_ON_CONFIG_ERROR
592# error "wxUSE_STATBMP must be defined."
593# else
594# define wxUSE_STATBMP 0
595# endif
596#endif /* !defined(wxUSE_STATBMP) */
597
598#ifndef wxUSE_STATBOX
599# ifdef wxABORT_ON_CONFIG_ERROR
600# error "wxUSE_STATBOX must be defined."
601# else
602# define wxUSE_STATBOX 0
603# endif
604#endif /* !defined(wxUSE_STATBOX) */
605
606#ifndef wxUSE_STATLINE
607# ifdef wxABORT_ON_CONFIG_ERROR
608# error "wxUSE_STATLINE must be defined."
609# else
610# define wxUSE_STATLINE 0
611# endif
612#endif /* !defined(wxUSE_STATLINE) */
613
3379ed37
VZ
614#ifndef wxUSE_STATTEXT
615# ifdef wxABORT_ON_CONFIG_ERROR
616# error "wxUSE_STATTEXT must be defined."
617# else
618# define wxUSE_STATTEXT 0
619# endif
620#endif /* !defined(wxUSE_STATTEXT) */
621
1e6feb95
VZ
622#ifndef wxUSE_STATUSBAR
623# ifdef wxABORT_ON_CONFIG_ERROR
624# error "wxUSE_STATUSBAR must be defined."
625# else
626# define wxUSE_STATUSBAR 0
627# endif
628#endif /* !defined(wxUSE_STATUSBAR) */
629
1e6feb95
VZ
630#ifndef wxUSE_TAB_DIALOG
631# ifdef wxABORT_ON_CONFIG_ERROR
632# error "wxUSE_TAB_DIALOG must be defined."
633# else
634# define wxUSE_TAB_DIALOG 0
635# endif
636#endif /* !defined(wxUSE_TAB_DIALOG) */
637
638#ifndef wxUSE_TEXTCTRL
639# ifdef wxABORT_ON_CONFIG_ERROR
640# error "wxUSE_TEXTCTRL must be defined."
641# else
642# define wxUSE_TEXTCTRL 0
643# endif
644#endif /* !defined(wxUSE_TEXTCTRL) */
645
f38bcae5
VZ
646#ifndef wxUSE_TIPWINDOW
647# ifdef wxABORT_ON_CONFIG_ERROR
648# error "wxUSE_TIPWINDOW must be defined."
649# else
650# define wxUSE_TIPWINDOW 0
651# endif
652#endif /* !defined(wxUSE_TIPWINDOW) */
653
1e6feb95
VZ
654#ifndef wxUSE_TOOLBAR
655# ifdef wxABORT_ON_CONFIG_ERROR
656# error "wxUSE_TOOLBAR must be defined."
657# else
658# define wxUSE_TOOLBAR 0
659# endif
660#endif /* !defined(wxUSE_TOOLBAR) */
661
662#ifndef wxUSE_TOOLTIPS
663# ifdef wxABORT_ON_CONFIG_ERROR
664# error "wxUSE_TOOLTIPS must be defined."
665# else
666# define wxUSE_TOOLTIPS 0
667# endif
668#endif /* !defined(wxUSE_TOOLTIPS) */
669
670#ifndef wxUSE_TREECTRL
671# ifdef wxABORT_ON_CONFIG_ERROR
672# error "wxUSE_TREECTRL must be defined."
673# else
674# define wxUSE_TREECTRL 0
675# endif
676#endif /* !defined(wxUSE_TREECTRL) */
677
12491c1f
JS
678#ifndef wxUSE_DISPLAY
679# ifdef wxABORT_ON_CONFIG_ERROR
680# error "wxUSE_DISPLAY must be defined."
681# else
682# define wxUSE_DISPLAY 0
683# endif
684#endif /* !defined(wxUSE_TREECTRL) */
685
3379ed37
VZ
686#ifndef wxUSE_WXHTML_HELP
687# ifdef wxABORT_ON_CONFIG_ERROR
688# error "wxUSE_WXHTML_HELP must be defined."
689# else
690# define wxUSE_WXHTML_HELP 0
691# endif
692#endif /* !defined(wxUSE_WXHTML_HELP) */
693
a5d46b73 694#endif /* wxUSE_GUI */
c4d596ea 695
1e6feb95
VZ
696/*
697 check consistency of the settings
698 */
a5d46b73
VZ
699
700#if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
701# if !wxUSE_PROTOCOL
702# ifdef wxABORT_ON_CONFIG_ERROR
703# error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
704# else
705# undef wxUSE_PROTOCOL
706# define wxUSE_PROTOCOL 1
707# endif
708# endif
709#endif /* wxUSE_PROTOCOL_XXX */
710
711#if wxUSE_URL
712# if !wxUSE_PROTOCOL
713# ifdef wxABORT_ON_CONFIG_ERROR
714# error "wxUSE_URL requires wxUSE_PROTOCOL"
715# else
716# undef wxUSE_PROTOCOL
717# define wxUSE_PROTOCOL 1
718# endif
719# endif
720#endif /* wxUSE_URL */
721
722#if wxUSE_PROTOCOL
723# if !wxUSE_SOCKETS
724# if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
725# ifdef wxABORT_ON_CONFIG_ERROR
726# error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
727# else
728# undef wxUSE_SOCKETS
729# define wxUSE_SOCKETS 1
730# endif
731# endif
732# endif
733
734# if !wxUSE_STREAMS
735# ifdef wxABORT_ON_CONFIG_ERROR
736# error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
737# else
738# undef wxUSE_STREAMS
739# define wxUSE_STREAMS 1
740# endif
741# endif
742#endif /* wxUSE_PROTOCOL */
743
c7f3eecc
VZ
744/* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
745#if wxUSE_HTML
746# if !wxUSE_FILESYSTEM
747# ifdef wxABORT_ON_CONFIG_ERROR
748# error "wxHTML requires wxFileSystem"
749# else
750# undef wxUSE_FILESYSTEM
751# define wxUSE_FILESYSTEM 1
752# endif
753# endif
754#endif /* wxUSE_HTML */
755
756#if wxUSE_FILESYSTEM
757# if !wxUSE_STREAMS
758# ifdef wxABORT_ON_CONFIG_ERROR
759# error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
760# else
761# undef wxUSE_STREAMS
762# define wxUSE_STREAMS 1
763# endif
764# endif
765#endif /* wxUSE_FILESYSTEM */
766
ce73e654
VS
767#if wxUSE_FS_INET
768# if !wxUSE_PROTOCOL
769# ifdef wxABORT_ON_CONFIG_ERROR
770# error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
771# else
772# undef wxUSE_PROTOCOL
773# define wxUSE_PROTOCOL 1
774# endif
775# endif
776#endif /* wxUSE_FS_INET */
777
c7f3eecc 778#if wxUSE_STOPWATCH || wxUSE_DATETIME
a5d46b73
VZ
779# if !wxUSE_LONGLONG
780# ifdef wxABORT_ON_CONFIG_ERROR
c7f3eecc 781# error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
a5d46b73
VZ
782# else
783# undef wxUSE_LONGLONG
784# define wxUSE_LONGLONG 1
785# endif
786# endif
787#endif /* wxUSE_STOPWATCH */
788
789#if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
790# ifdef wxABORT_ON_CONFIG_ERROR
791# error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
792# else
793# undef wxUSE_TEXTFILE
794# define wxUSE_TEXTFILE 1
795# endif
796#endif /* wxUSE_MIMETYPE */
797
798#if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
799# ifdef wxABORT_ON_CONFIG_ERROR
800# error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
801# else
802# undef wxUSE_TEXTBUFFER
803# define wxUSE_TEXTBUFFER 1
804# endif
805#endif /* wxUSE_TEXTFILE */
806
807#if wxUSE_TEXTFILE && !wxUSE_FILE
808# ifdef wxABORT_ON_CONFIG_ERROR
809# error "wxUSE_TEXTFILE requires wxUSE_FILE"
810# else
811# undef wxUSE_FILE
812# define wxUSE_FILE 1
813# endif
814#endif /* wxUSE_TEXTFILE */
815
816#if wxUSE_UNICODE_MSLU && !wxUSE_UNICODE
817# ifdef wxABORT_ON_CONFIG_ERROR
818# error "wxUSE_UNICODE_MSLU requires wxUSE_UNICODE"
819# else
820# undef wxUSE_UNICODE
821# define wxUSE_UNICODE 1
822# endif
823#endif /* wxUSE_UNICODE_MSLU */
824
4ccf704a
VZ
825#if wxUSE_ODBC && wxUSE_UNICODE
826# ifdef wxABORT_ON_CONFIG_ERROR
827 /* (ODBC classes aren't Unicode-compatible yet) */
828# error "wxUSE_ODBC can't be used with wxUSE_UNICODE"
829# else
830# undef wxUSE_ODBC
831# define wxUSE_ODBC 0
832# endif
833#endif /* wxUSE_ODBC */
834
7f799744
VS
835#if wxUSE_XML && !wxUSE_WCHAR_T
836# ifdef wxABORT_ON_CONFIG_ERROR
837# error "wxUSE_XML requires wxUSE_WCHAR_T"
838# else
839# undef wxUSE_XML
840# define wxUSE_XML 0
841# endif
842#endif /* wxUSE_UNICODE_MSLU */
843
1948bb32
VS
844#if !wxUSE_DYNLIB_CLASS
845# if wxUSE_DYNAMIC_LOADER
846# ifdef wxABORT_ON_CONFIG_ERROR
847# error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
848# else
849# define wxUSE_DYNLIB_CLASS 1
850# endif
851# endif
852#endif /* wxUSE_DYNLIB_CLASS */
853
a5d46b73
VZ
854/* the rest of the tests is for the GUI settings only */
855#if wxUSE_GUI
856
1e6feb95
VZ
857#if wxUSE_BUTTON || \
858 wxUSE_CALENDARCTRL || \
859 wxUSE_CARET || \
860 wxUSE_COMBOBOX || \
861 wxUSE_BMPBUTTON || \
862 wxUSE_CHECKBOX || \
863 wxUSE_CHECKLISTBOX || \
864 wxUSE_CHOICE || \
865 wxUSE_GAUGE || \
866 wxUSE_GRID || \
1e6feb95
VZ
867 wxUSE_LISTBOX || \
868 wxUSE_LISTCTRL || \
869 wxUSE_NOTEBOOK || \
870 wxUSE_RADIOBOX || \
871 wxUSE_RADIOBTN || \
872 wxUSE_SCROLLBAR || \
873 wxUSE_SLIDER || \
874 wxUSE_SPINBTN || \
875 wxUSE_SPINCTRL || \
876 wxUSE_STATBMP || \
877 wxUSE_STATBOX || \
878 wxUSE_STATLINE || \
3379ed37 879 wxUSE_STATTEXT || \
1e6feb95
VZ
880 wxUSE_STATUSBAR || \
881 wxUSE_TEXTCTRL || \
882 wxUSE_TOOLBAR || \
883 wxUSE_TREECTRL
884# if !wxUSE_CONTROLS
885# ifdef wxABORT_ON_CONFIG_ERROR
886# error "wxUSE_CONTROLS unset but some controls used"
887# else
888# undef wxUSE_CONTROLS
889# define wxUSE_CONTROLS 1
890# endif
891# endif
892#endif /* controls */
893
3379ed37
VZ
894/* wxUniv-specific dependencies */
895#if defined(__WXUNIVERSAL__)
896# if (wxUSE_COMBOBOX || wxUSE_MENUS) && !wxUSE_POPUPWIN
897# ifdef wxABORT_ON_CONFIG_ERROR
898# error "wxUSE_POPUPWIN must be defined to use comboboxes/menus"
899# else
900# undef wxUSE_POPUPWIN
901# define wxUSE_POPUPWIN 1
902# endif
903# endif
904
905# if wxUSE_COMBOBOX
906# if !wxUSE_LISTBOX
907# ifdef wxABORT_ON_CONFIG_ERROR
908# error "wxComboBox requires wxListBox in wxUniversal"
909# else
910# undef wxUSE_LISTBOX
911# define wxUSE_LISTBOX 1
912# endif
913# endif
914# endif /* wxUSE_COMBOBOX */
915
916# if wxUSE_RADIOBTN
917# if !wxUSE_CHECKBOX
918# ifdef wxABORT_ON_CONFIG_ERROR
919# error "wxUSE_RADIOBTN requires wxUSE_CHECKBOX in wxUniversal"
920# else
921# undef wxUSE_CHECKBOX
922# define wxUSE_CHECKBOX 1
923# endif
924# endif
925# endif /* wxUSE_RADIOBTN */
926
927# if wxUSE_TEXTCTRL
928# if !wxUSE_CARET
929# ifdef wxABORT_ON_CONFIG_ERROR
930# error "wxTextCtrl requires wxCaret in wxUniversal"
931# else
932# undef wxUSE_CARET
933# define wxUSE_CARET 1
934# endif
935# endif /* wxUSE_CARET */
936
937# if !wxUSE_SCROLLBAR
938# ifdef wxABORT_ON_CONFIG_ERROR
939# error "wxTextCtrl requires wxScrollBar in wxUniversal"
940# else
941# undef wxUSE_SCROLLBAR
942# define wxUSE_SCROLLBAR 1
943# endif
944# endif /* wxUSE_SCROLLBAR */
945# endif /* wxUSE_TEXTCTRL */
946#endif /* __WXUNIVERSAL__ */
947
948/* wxGTK-specific dependencies */
2131b89d
VZ
949#ifdef __WXGTK__
950# ifndef __WXUNIVERSAL__
951# if wxUSE_MDI_ARCHITECTURE && !wxUSE_MENUS
952# ifdef wxABORT_ON_CONFIG_ERROR
953# error "MDI requires wxUSE_MENUS in wxGTK"
954# else
955# undef wxUSE_MENUS
956# define wxUSE_MENUS 1
957# endif
958# endif
959# endif /* !__WXUNIVERSAL__ */
960
961# if wxUSE_JOYSTICK
962# if !wxUSE_THREADS
963# ifdef wxABORT_ON_CONFIG_ERROR
964# error "wxJoystick requires threads in wxGTK"
965# else
966# undef wxUSE_JOYSTICK
967# define wxUSE_JOYSTICK 0
968# endif
3379ed37
VZ
969# endif
970# endif
971#endif /* wxGTK && !wxUniv */
972
03169422
RL
973/* wxMSW-specific dependencies */
974#ifdef __WXMSW__
975# ifndef wxUSE_UNICODE_MSLU
976# ifdef wxABORT_ON_CONFIG_ERROR
977# error "wxUSE_UNICODE_MSLU must be defined."
978# else
979# define wxUSE_UNICODE_MSLU 0
980# endif
981# endif /* wxUSE_UNICODE_MSLU */
9c7f7573
VS
982# ifndef wxUSE_UXTHEME
983# ifdef wxABORT_ON_CONFIG_ERROR
984# error "wxUSE_UXTHEME must be defined."
985# else
986# define wxUSE_UXTHEME 0
987# endif
988# endif /* wxUSE_UXTHEME */
989# ifndef wxUSE_UXTHEME_AUTO
990# ifdef wxABORT_ON_CONFIG_ERROR
991# error "wxUSE_UXTHEME_AUTO must be defined."
992# else
993# define wxUSE_UXTHEME_AUTO 0
994# endif
995# endif /* wxUSE_UXTHEME_AUTO */
03169422
RL
996# ifndef wxUSE_MS_HTML_HELP
997# ifdef wxABORT_ON_CONFIG_ERROR
998# error "wxUSE_MS_HTML_HELP must be defined."
999# else
1000# define wxUSE_MS_HTML_HELP 0
1001# endif
1002# endif /* !defined(wxUSE_MS_HTML_HELP) */
1003# ifndef wxUSE_DIALUP_MANAGER
1004# ifdef wxABORT_ON_CONFIG_ERROR
1005# error "wxUSE_DIALUP_MANAGER must be defined."
1006# else
1007# define wxUSE_DIALUP_MANAGER 0
1008# endif
1009# endif /* !defined(wxUSE_DIALUP_MANAGER) */
1010
19f478fd 1011# if !wxUSE_DYNAMIC_LOADER
03169422
RL
1012# if wxUSE_MS_HTML_HELP
1013# ifdef wxABORT_ON_CONFIG_ERROR
1014# error "wxUSE_MS_HTML_HELP requires wxUSE_DYNAMIC_LOADER."
1015# else
1016# define wxUSE_DYNAMIC_LOADER 1
1017# endif
1018# endif
1019# if wxUSE_DIALUP_MANAGER
1020# ifdef wxABORT_ON_CONFIG_ERROR
1021# error "wxUSE_DIALUP_MANAGER requires wxUSE_DYNAMIC_LOADER."
1022# else
1023# define wxUSE_DYNAMIC_LOADER 1
1024# endif
1025# endif
1026# endif /* wxUSE_DYNAMIC_LOADER */
1027#endif /* wxMSW */
1028
c4e41ce3
SC
1029/* wxMAC-specific dependencies */
1030#ifdef __WXMAC__
1031# if wxUSE_UNICODE
1032# if !TARGET_CARBON
1033# ifdef wxABORT_ON_CONFIG_ERROR
1034# error "wxUSE_UNICODE is only supported for Carbon Targets."
1035# else
1036# define wxUSE_UNICODE 0
1037# endif
1038# endif
1039# endif
1040#endif /* wxMAC */
9806a47c
JS
1041/* wxMotif-specific dependencies */
1042#if defined(__WXMOTIF__) && wxUSE_NOTEBOOK && !wxUSE_TAB_DIALOG
1043# undef wxUSE_TAB_DIALOG
1044# define wxUSE_TAB_DIALOG 1
1045#endif
9806a47c 1046
bfc4a1c1
VS
1047/* wxMGL-specific dependencies */
1048#ifdef __WXMGL__
1049# if !wxUSE_PALETTE
1050# error "wxMGL requires wxUSE_PALETTE=1"
1051# endif
1052#endif /* wxMGL */
1053
b92203a8
VZ
1054// Hopefully we can emulate these dialogs in due course
1055#if wxUSE_SMARTPHONE
1056# ifdef wxUSE_COLOURDLG
1057# undef wxUSE_COLOURDLG
1058# define wxUSE_COLOURDLG 0
1059# endif
1060#endif /* wxUSE_SMARTPHONE */
1061
1062
3379ed37
VZ
1063/* generic controls dependencies */
1064#if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1065# if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1066 /* all common controls are needed by these dialogs */
1067# if !defined(wxUSE_CHOICE) || \
1068 !defined(wxUSE_TEXTCTRL) || \
1069 !defined(wxUSE_BUTTON) || \
1070 !defined(wxUSE_CHECKBOX) || \
1071 !defined(wxUSE_STATTEXT)
1072# ifdef wxABORT_ON_CONFIG_ERROR
1073# error "These common controls are needed by common dialogs"
1074# else
1075# undef wxUSE_CHOICE
1076# define wxUSE_CHOICE 1
1077# undef wxUSE_TEXTCTRL
1078# define wxUSE_TEXTCTRL 1
1079# undef wxUSE_BUTTON
1080# define wxUSE_BUTTON 1
1081# undef wxUSE_CHECKBOX
1082# define wxUSE_CHECKBOX 1
1083# undef wxUSE_STATTEXT
1084# define wxUSE_STATTEXT 1
1085# endif
1086# endif
1087# endif
1088#endif /* !wxMSW || wxUniv */
1089
1090/* common dependencies */
1e6feb95
VZ
1091#if wxUSE_CALENDARCTRL
1092# if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1093# ifdef wxABORT_ON_CONFIG_ERROR
1094# error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1095# else
1096# undef wxUSE_SPINBTN
1097# undef wxUSE_COMBOBOX
1098# define wxUSE_SPINBTN 1
1099# define wxUSE_COMBOBOX 1
1100# endif
1101# endif
e2b87f38
VZ
1102
1103# if !wxUSE_DATETIME
1104# ifdef wxABORT_ON_CONFIG_ERROR
1105# error "wxCalendarCtrl requires wxUSE_DATETIME"
1106# else
1107# undef wxUSE_DATETIME
1108# define wxUSE_DATETIME 1
1109# endif
1110# endif
1e6feb95
VZ
1111#endif /* wxUSE_CALENDARCTRL */
1112
1113#if wxUSE_CHECKLISTBOX
1114# if !wxUSE_LISTBOX
1115# ifdef wxABORT_ON_CONFIG_ERROR
1116# error "wxCheckListBox requires wxListBox"
1117# else
1118# undef wxUSE_LISTBOX
1119# define wxUSE_LISTBOX 1
1120# endif
1121# endif
1122#endif /* wxUSE_RADIOBTN */
1123
3379ed37 1124#if wxUSE_WXHTML_HELP
730dfeb4 1125# if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK
3379ed37
VZ
1126# ifdef wxABORT_ON_CONFIG_ERROR
1127# error "Built in help controller can't be compiled"
1128# else
1129# undef wxUSE_HELP
1130# define wxUSE_HELP 1
1131# undef wxUSE_HTML
1132# define wxUSE_HTML 1
1133# undef wxUSE_COMBOBOX
1134# define wxUSE_COMBOBOX 1
730dfeb4
VS
1135# undef wxUSE_NOTEBOOK
1136# define wxUSE_NOTEBOOK 1
3379ed37
VZ
1137# endif
1138# endif
1139#endif /* wxUSE_WXHTML_HELP */
1140
e30285ab
VZ
1141#if wxUSE_DOC_VIEW_ARCHITECTURE
1142# if !wxUSE_MENUS
1143# ifdef wxABORT_ON_CONFIG_ERROR
1144# error "DocView requires wxUSE_MENUS"
1145# else
1146# undef wxUSE_MENUS
1147# define wxUSE_MENUS 1
1148# endif
1149# endif
1150
1151# if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1152# ifdef wxABORT_ON_CONFIG_ERROR
1153# error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1154# else
1155# undef wxUSE_STREAMS
1156# define wxUSE_STREAMS 1
1157# endif
1158# endif
1159#endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1160
3379ed37
VZ
1161#if wxUSE_PRINTING_ARCHITECTURE
1162# if !wxUSE_COMBOBOX
1163# ifdef wxABORT_ON_CONFIG_ERROR
1164# error "Print dialog requires wxUSE_COMBOBOX"
1165# else
1166# undef wxUSE_COMBOBOX
1167# define wxUSE_COMBOBOX 1
1168# endif
1169# endif
1170#endif /* wxUSE_PRINTING_ARCHITECTURE */
1171
e30285ab
VZ
1172#if wxUSE_MDI_ARCHITECTURE
1173# if !wxUSE_DOC_VIEW_ARCHITECTURE
1e6feb95 1174# ifdef wxABORT_ON_CONFIG_ERROR
e30285ab 1175# error "MDI requires wxUSE_DOC_VIEW_ARCHITECTURE"
1e6feb95 1176# else
e30285ab
VZ
1177# undef wxUSE_DOC_VIEW_ARCHITECTURE
1178# define wxUSE_DOC_VIEW_ARCHITECTURE 1
1e6feb95
VZ
1179# endif
1180# endif
e30285ab 1181#endif /* wxUSE_MDI_ARCHITECTURE */
1e6feb95
VZ
1182
1183#if !wxUSE_FILEDLG
2119e280 1184# if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1e6feb95
VZ
1185# ifdef wxABORT_ON_CONFIG_ERROR
1186# error "wxFileDialog must be compiled as well"
1187# else
1188# undef wxUSE_FILEDLG
1189# define wxUSE_FILEDLG 1
1190# endif
1191# endif
e421922f 1192#endif /* wxUSE_FILEDLG */
1e6feb95 1193
12491c1f
JS
1194#if !wxUSE_TOOLBAR
1195# if wxUSE_TOOLBAR_NATIVE
1196# ifdef wxABORT_ON_CONFIG_ERROR
1197# error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
1198# else
1199# undef wxUSE_TOOLBAR_NATIVE
1200# define wxUSE_TOOLBAR_NATIVE 0
1201# endif
1202# endif
1203
1204# if wxUSE_TOOLBAR_SIMPLE
1205# ifdef wxABORT_ON_CONFIG_ERROR
1206# error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_SIMPLE is set to 1"
1207# else
1208# undef wxUSE_TOOLBAR_SIMPLE
1209# define wxUSE_TOOLBAR_SIMPLE 0
1210# endif
1211# endif
1212#endif
1213
1e6feb95
VZ
1214#if !wxUSE_IMAGLIST
1215# if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL
1216# ifdef wxABORT_ON_CONFIG_ERROR
1217# error "wxImageList must be compiled as well"
1218# else
1219# undef wxUSE_IMAGLIST
1220# define wxUSE_IMAGLIST 1
1221# endif
1222# endif
1223#endif /* !wxUSE_IMAGLIST */
1224
e421922f
VZ
1225#if !wxUSE_MSGDLG
1226# ifdef wxABORT_ON_CONFIG_ERROR
1227 /* FIXME: should compile without it, of course, but doesn't */
1228# error "wxMessageBox is always needed"
1229# else
1230# undef wxUSE_MSGDLG
1231# define wxUSE_MSGDLG 1
1232# endif
1233#endif
1234
1e6feb95
VZ
1235#if wxUSE_RADIOBOX
1236# if !wxUSE_RADIOBTN || !wxUSE_STATBOX
1237# ifdef wxABORT_ON_CONFIG_ERROR
1238# error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN and wxUSE_STATBOX"
1239# else
1240# undef wxUSE_RADIOBTN
1241# undef wxUSE_STATBOX
1242# define wxUSE_RADIOBTN 1
1243# define wxUSE_STATBOX 1
1244# endif
1245# endif
1246#endif /* wxUSE_RADIOBOX */
1247
3379ed37
VZ
1248#if wxUSE_LOGWINDOW
1249# if !wxUSE_TEXTCTRL
1250# ifdef wxABORT_ON_CONFIG_ERROR
1251# error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
1252# else
1253# undef wxUSE_TEXTCTRL
1254# define wxUSE_TEXTCTRL 1
1255# endif
1256# endif
1257#endif /* wxUSE_LOGWINDOW */
1e6feb95 1258
3e6e2754
JS
1259#if wxUSE_LOG_DIALOG
1260# if !wxUSE_LISTCTRL
1261# ifdef wxABORT_ON_CONFIG_ERROR
1262# error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL"
1263# else
1264# undef wxUSE_LISTCTRL
1265# define wxUSE_LISTCTRL 1
1266# endif
1267# endif
1268#endif /* wxUSE_LOG_DIALOG */
1269
1e6feb95
VZ
1270/* I wonder if we shouldn't just remove all occurrences of
1271 wxUSE_DYNAMIC_CLASSES from the sources? */
1272#if !defined(wxUSE_DYNAMIC_CLASSES) || !wxUSE_DYNAMIC_CLASSES
3379ed37 1273# ifdef wxABORT_ON_CONFIG_ERROR
1e6feb95
VZ
1274# error "wxUSE_DYNAMIC_CLASSES must be defined as 1"
1275# else
1276# undef wxUSE_DYNAMIC_CLASSES
03169422 1277# define wxUSE_DYNAMIC_CLASSES 1
1e6feb95
VZ
1278# endif
1279#endif /* wxUSE_DYNAMIC_CLASSES */
1280
1e6feb95 1281#if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
3379ed37 1282# ifdef wxABORT_ON_CONFIG_ERROR
1e6feb95
VZ
1283# error "wxClipboard requires wxDataObject"
1284# else
1285# undef wxUSE_DATAOBJ
1286# define wxUSE_DATAOBJ 1
1287# endif
1288#endif /* wxUSE_CLIPBOARD */
1289
2b5f62a0
VZ
1290#if wxUSE_WX_RESOURCES && !wxUSE_PROLOGIO
1291# ifdef wxABORT_ON_CONFIG_ERROR
1292# error "wxr resources require PrologIO"
1293# else
1294# undef wxUSE_PROLOGIO
1295# define wxUSE_PROLOGIO 1
1296# endif
1297#endif /* wxUSE_WX_RESOURCES */
1298
1e6feb95
VZ
1299#endif /* wxUSE_GUI */
1300