chkconf.h 64 KB

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