]>
Commit | Line | Data |
---|---|---|
10f2d63a VZ |
1 | #! /bin/sh |
2 | ||
698dcdb6 | 3 | # From configure.in Id: configure.in |
703e0a69 VZ |
4 | |
5 | ||
6 | ||
7 | ||
8 | ||
703e0a69 VZ |
9 | |
10 | ||
1e487827 | 11 | |
1e487827 | 12 | |
698dcdb6 VZ |
13 | |
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | ||
21 | ||
22 | ||
23 | ||
24 | ||
25 | ||
26 | ||
27 | ||
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
36 | ||
37 | ||
38 | ||
39 | ||
40 | ||
b040e242 VS |
41 | |
42 | ||
43 | ||
b040e242 VS |
44 | |
45 | ||
46 | ||
47 | ||
48 | ||
49 | ||
50 | ||
51 | ||
52 | # Configure paths for GTK+ | |
53 | # Owen Taylor 97-11-3 | |
698dcdb6 | 54 | |
698dcdb6 VZ |
55 | |
56 | ||
57 | # Guess values for system-dependent variables and create Makefiles. | |
58 | # Generated automatically using autoconf version 2.13 | |
59 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
60 | # | |
61 | # This configure script is free software; the Free Software Foundation | |
62 | # gives unlimited permission to copy, distribute and modify it. | |
63 | ||
64 | # Defaults: | |
65 | ac_help= | |
66 | ac_default_prefix=/usr/local | |
67 | # Any additions from configure.in: | |
68 | ac_help="$ac_help | |
8168de4c | 69 | --enable-gui use GUI classes" |
1e6feb95 | 70 | ac_help="$ac_help |
8168de4c | 71 | --enable-universal use wxWindows GUI controls instead of native ones" |
698dcdb6 VZ |
72 | ac_help="$ac_help |
73 | --with-gtk use GTK+" | |
74 | ac_help="$ac_help | |
75 | --with-motif use Motif/Lesstif" | |
76 | ac_help="$ac_help | |
77 | --with-mac use Mac OS X" | |
78 | ac_help="$ac_help | |
79 | --with-wine use WINE" | |
80 | ac_help="$ac_help | |
77e13408 | 81 | --with-msw use MS-Windows" |
698dcdb6 VZ |
82 | ac_help="$ac_help |
83 | --with-pm use OS/2 Presentation Manager" | |
1e6feb95 | 84 | ac_help="$ac_help |
b3e8d00a | 85 | --with-mgl use SciTech MGL" |
1725144d RR |
86 | ac_help="$ac_help |
87 | --with-microwin use MicroWindows" | |
698dcdb6 | 88 | ac_help="$ac_help |
8168de4c | 89 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" |
698dcdb6 | 90 | ac_help="$ac_help |
8168de4c | 91 | --with-libpng use libpng (PNG image format)" |
698dcdb6 | 92 | ac_help="$ac_help |
8168de4c | 93 | --with-libjpeg use libjpeg (JPEG file format)" |
698dcdb6 | 94 | ac_help="$ac_help |
8168de4c | 95 | --with-libtiff use libtiff (TIFF file format)" |
698dcdb6 | 96 | ac_help="$ac_help |
8168de4c | 97 | --with-freetype use freetype (font rasterizer)" |
698dcdb6 | 98 | ac_help="$ac_help |
8168de4c | 99 | --with-opengl use OpenGL (or Mesa)" |
698dcdb6 | 100 | ac_help="$ac_help |
d0e9b150 | 101 | --with-dmalloc use dmalloc library (http://dmalloc.com/)" |
3e44f09d VZ |
102 | ac_help="$ac_help |
103 | --with-regex enable support for wxRegEx class" | |
698dcdb6 | 104 | ac_help="$ac_help |
8168de4c | 105 | --with-zlib use zlib for LZW compression" |
698dcdb6 | 106 | ac_help="$ac_help |
8168de4c | 107 | --with-odbc use the IODBC and wxODBC classes" |
698dcdb6 | 108 | ac_help="$ac_help |
8168de4c | 109 | --enable-shared create shared library code" |
698dcdb6 | 110 | ac_help="$ac_help |
3a922bb4 | 111 | --enable-soname set the DT_SONAME field in ELF shared libraries" |
698dcdb6 | 112 | ac_help="$ac_help |
8168de4c | 113 | --enable-optimise create optimised code" |
698dcdb6 | 114 | ac_help="$ac_help |
8168de4c | 115 | --enable-debug same as debug_flag and debug_info" |
683dccda GD |
116 | ac_help="$ac_help |
117 | --enable-precomp enable use of precompiled headers (Mac OS X)" | |
698dcdb6 | 118 | ac_help="$ac_help |
8168de4c | 119 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" |
698dcdb6 | 120 | ac_help="$ac_help |
8168de4c | 121 | --enable-debug_info create code with debugging information" |
698dcdb6 | 122 | ac_help="$ac_help |
8168de4c | 123 | --enable-debug_gdb create code with extra GDB debugging information" |
698dcdb6 | 124 | ac_help="$ac_help |
8168de4c | 125 | --enable-debug_cntxt use wxDebugContext" |
698dcdb6 | 126 | ac_help="$ac_help |
8168de4c | 127 | --enable-mem_tracing create code with memory tracing" |
698dcdb6 | 128 | ac_help="$ac_help |
8168de4c | 129 | --enable-profile create code with profiling information" |
698dcdb6 | 130 | ac_help="$ac_help |
8168de4c | 131 | --enable-no_rtti create code without RTTI information" |
698dcdb6 | 132 | ac_help="$ac_help |
b3e8d00a | 133 | --enable-no_exceptions create code without C++ exceptions handling" |
698dcdb6 | 134 | ac_help="$ac_help |
8168de4c | 135 | --enable-permissive compile code disregarding strict ANSI" |
698dcdb6 | 136 | ac_help="$ac_help |
8168de4c | 137 | --enable-no_deps create code without dependency information" |
54276ccf | 138 | ac_help="$ac_help |
b3e8d00a | 139 | --enable-compat20 enable wxWindows 2.0 compatibility" |
54276ccf | 140 | ac_help="$ac_help |
b3e8d00a | 141 | --enable-compat22 enable wxWindows 2.2 compatibility" |
698dcdb6 | 142 | ac_help="$ac_help |
8168de4c | 143 | --enable-intl use internationalization system" |
698dcdb6 | 144 | ac_help="$ac_help |
8168de4c | 145 | --enable-config use wxConfig (and derived) classes" |
a1622950 VZ |
146 | ac_help="$ac_help |
147 | --enable-protocols use wxProtocol and derived classes" | |
148 | ac_help="$ac_help | |
149 | --enable-ftp use wxFTP (requires wxProtocol" | |
150 | ac_help="$ac_help | |
151 | --enable-http use wxHTTP (requires wxProtocol" | |
152 | ac_help="$ac_help | |
153 | --enable-fileproto use wxFileProto class (requires wxProtocol" | |
698dcdb6 | 154 | ac_help="$ac_help |
8168de4c | 155 | --enable-sockets use socket/network classes" |
698dcdb6 | 156 | ac_help="$ac_help |
8168de4c | 157 | --enable-ipc use interprocess communication (wxSocket etc.)" |
698dcdb6 | 158 | ac_help="$ac_help |
8168de4c | 159 | --enable-cmdline use wxCmdLineParser class" |
1e6feb95 | 160 | ac_help="$ac_help |
8168de4c | 161 | --enable-datetime use wxDateTime class" |
1e6feb95 | 162 | ac_help="$ac_help |
8168de4c | 163 | --enable-timedate use obsolete wxDate/wxTime classes" |
1e6feb95 | 164 | ac_help="$ac_help |
8168de4c | 165 | --enable-stopwatch use wxStopWatch class" |
1e6feb95 | 166 | ac_help="$ac_help |
8168de4c | 167 | --enable-dialupman use dialup network classes" |
698dcdb6 | 168 | ac_help="$ac_help |
8168de4c | 169 | --enable-apple_ieee use the Apple IEEE codec" |
698dcdb6 | 170 | ac_help="$ac_help |
8168de4c | 171 | --enable-timer use wxTimer class" |
698dcdb6 | 172 | ac_help="$ac_help |
8168de4c | 173 | --enable-wave use wxWave class" |
698dcdb6 | 174 | ac_help="$ac_help |
8168de4c | 175 | --enable-fraction use wxFraction class" |
698dcdb6 | 176 | ac_help="$ac_help |
8168de4c | 177 | --enable-dynlib use wxLibrary class for DLL loading" |
0b9ab0bd RL |
178 | ac_help="$ac_help |
179 | --enable-dynamicloader use (new) wxDynamicLibrary class" | |
698dcdb6 | 180 | ac_help="$ac_help |
8168de4c | 181 | --enable-longlong use wxLongLong class" |
698dcdb6 | 182 | ac_help="$ac_help |
8168de4c | 183 | --enable-geometry use geometry class" |
698dcdb6 | 184 | ac_help="$ac_help |
8168de4c | 185 | --enable-log use logging system" |
698dcdb6 | 186 | ac_help="$ac_help |
8168de4c | 187 | --enable-streams use wxStream etc classes" |
698dcdb6 | 188 | ac_help="$ac_help |
8168de4c | 189 | --enable-file use wxFile classes" |
698dcdb6 | 190 | ac_help="$ac_help |
8168de4c | 191 | --enable-ffile use wxFFile classes" |
1e6feb95 | 192 | ac_help="$ac_help |
a3a584a7 VZ |
193 | --enable-textbuf use wxTextBuffer class" |
194 | ac_help="$ac_help | |
195 | --enable-textfile use wxTextFile class" | |
698dcdb6 | 196 | ac_help="$ac_help |
8168de4c | 197 | --enable-fontmap use font encodings conversion classes" |
1e6feb95 | 198 | ac_help="$ac_help |
8168de4c | 199 | --enable-unicode compile wxString with Unicode support" |
a72a4bfa VS |
200 | ac_help="$ac_help |
201 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)" | |
698dcdb6 | 202 | ac_help="$ac_help |
8168de4c | 203 | --enable-wxprintfv use wxWindows implementation of vprintf()" |
698dcdb6 | 204 | ac_help="$ac_help |
8168de4c | 205 | --enable-std_iostreams use standard C++ stream classes" |
698dcdb6 | 206 | ac_help="$ac_help |
8168de4c | 207 | --enable-filesystem use virtual file systems classes" |
698dcdb6 | 208 | ac_help="$ac_help |
8168de4c | 209 | --enable-fs_inet use virtual HTTP/FTP filesystems" |
698dcdb6 | 210 | ac_help="$ac_help |
8168de4c | 211 | --enable-fs_zip use virtual ZIP filesystems" |
698dcdb6 | 212 | ac_help="$ac_help |
8168de4c | 213 | --enable-zipstream use wxZipInputStream" |
698dcdb6 | 214 | ac_help="$ac_help |
8168de4c | 215 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" |
698dcdb6 | 216 | ac_help="$ac_help |
8168de4c | 217 | --enable-snglinst use wxSingleInstanceChecker class" |
698dcdb6 | 218 | ac_help="$ac_help |
69d27ff7 | 219 | --enable-mimetype use wxMimeTypesManager" |
3e44f09d | 220 | ac_help="$ac_help |
b3e8d00a | 221 | --enable-sysoptions use wxSystemOptions" |
4cdb0ab0 VS |
222 | ac_help="$ac_help |
223 | --enable-url use wxURL class" | |
224 | ac_help="$ac_help | |
225 | --enable-protocol use wxProtocol class" | |
226 | ac_help="$ac_help | |
227 | --enable-protocol-http HTTP support in wxProtocol" | |
228 | ac_help="$ac_help | |
229 | --enable-protocol-ftp FTP support in wxProtocol" | |
230 | ac_help="$ac_help | |
231 | --enable-protocol-file FILE support in wxProtocol" | |
1e6feb95 | 232 | ac_help="$ac_help |
8168de4c | 233 | --enable-threads use threads" |
698dcdb6 | 234 | ac_help="$ac_help |
8168de4c | 235 | --enable-docview use document view architecture" |
698dcdb6 | 236 | ac_help="$ac_help |
3379ed37 | 237 | --enable-help use help subsystem" |
29fd3c0c VS |
238 | ac_help="$ac_help |
239 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
3379ed37 VZ |
240 | ac_help="$ac_help |
241 | --enable-html use wxHTML sub-library" | |
242 | ac_help="$ac_help | |
243 | --enable-htmlhelp use wxHTML-based help" | |
698dcdb6 | 244 | ac_help="$ac_help |
8168de4c | 245 | --enable-constraints use layout-constraints system" |
698dcdb6 | 246 | ac_help="$ac_help |
8168de4c | 247 | --enable-printarch use printing architecture" |
698dcdb6 | 248 | ac_help="$ac_help |
8168de4c | 249 | --enable-mdi use multiple document interface architecture" |
698dcdb6 | 250 | ac_help="$ac_help |
8168de4c | 251 | --enable-loggui use standard GUI logger" |
1e6feb95 | 252 | ac_help="$ac_help |
8168de4c | 253 | --enable-logwin use wxLogWindow" |
69d27ff7 MB |
254 | ac_help="$ac_help |
255 | --enable-logdialog use wxLogDialog" | |
1e6feb95 | 256 | ac_help="$ac_help |
8168de4c | 257 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" |
698dcdb6 | 258 | ac_help="$ac_help |
8168de4c | 259 | --enable-prologio use Prolog IO library" |
698dcdb6 | 260 | ac_help="$ac_help |
8168de4c | 261 | --enable-resources use wxWindows resources" |
698dcdb6 | 262 | ac_help="$ac_help |
8168de4c | 263 | --enable-xresources use X resources for save (default for gtk+)" |
698dcdb6 | 264 | ac_help="$ac_help |
8168de4c | 265 | --enable-clipboard use wxClipboard classes" |
698dcdb6 | 266 | ac_help="$ac_help |
8168de4c | 267 | --enable-dnd use Drag'n'Drop classes" |
698dcdb6 | 268 | ac_help="$ac_help |
8168de4c | 269 | --enable-metafile use win32 metafiles" |
698dcdb6 | 270 | ac_help="$ac_help |
24176f2c | 271 | --enable-treelayout use wxTreeLayout classes" |
698dcdb6 | 272 | ac_help="$ac_help |
8168de4c | 273 | --enable-controls use all usual controls" |
698dcdb6 | 274 | ac_help="$ac_help |
8168de4c | 275 | --enable-accel use accelerators" |
698dcdb6 | 276 | ac_help="$ac_help |
8168de4c | 277 | --enable-button use wxButton class" |
698dcdb6 | 278 | ac_help="$ac_help |
8168de4c | 279 | --enable-bmpbutton use wxBitmapButton class" |
698dcdb6 | 280 | ac_help="$ac_help |
8168de4c | 281 | --enable-calendar use wxCalendarCtrl class" |
1e6feb95 | 282 | ac_help="$ac_help |
8168de4c | 283 | --enable-caret use wxCaret class" |
1e6feb95 | 284 | ac_help="$ac_help |
8168de4c | 285 | --enable-checkbox use wxCheckBox class" |
698dcdb6 | 286 | ac_help="$ac_help |
8168de4c | 287 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" |
698dcdb6 | 288 | ac_help="$ac_help |
8168de4c | 289 | --enable-choice use wxChoice class" |
698dcdb6 | 290 | ac_help="$ac_help |
8168de4c | 291 | --enable-combobox use wxComboBox classes" |
698dcdb6 | 292 | ac_help="$ac_help |
8168de4c | 293 | --enable-gauge use wxGauge class" |
698dcdb6 | 294 | ac_help="$ac_help |
8168de4c | 295 | --enable-grid use wxGrid class" |
698dcdb6 | 296 | ac_help="$ac_help |
8168de4c | 297 | --enable-newgrid use new wxGrid class" |
698dcdb6 | 298 | ac_help="$ac_help |
8168de4c | 299 | --enable-imaglist use wxImageList class" |
698dcdb6 | 300 | ac_help="$ac_help |
8168de4c | 301 | --enable-listbox use wxListBox class" |
698dcdb6 | 302 | ac_help="$ac_help |
8168de4c | 303 | --enable-listctrl use wxListCtrl class" |
698dcdb6 | 304 | ac_help="$ac_help |
8168de4c | 305 | --enable-notebook use wxNotebook class" |
24176f2c GD |
306 | ac_help="$ac_help |
307 | --enable-propsheet use wxPropertySheet class" | |
698dcdb6 | 308 | ac_help="$ac_help |
8168de4c | 309 | --enable-radiobox use wxRadioBox class" |
698dcdb6 | 310 | ac_help="$ac_help |
8168de4c | 311 | --enable-radiobtn use wxRadioButton class" |
698dcdb6 | 312 | ac_help="$ac_help |
8168de4c | 313 | --enable-sash use wxSashWindow class" |
698dcdb6 | 314 | ac_help="$ac_help |
8168de4c | 315 | --enable-scrollbar use wxScrollBar class and scrollable windows" |
698dcdb6 | 316 | ac_help="$ac_help |
8168de4c | 317 | --enable-slider use wxSlider class" |
698dcdb6 | 318 | ac_help="$ac_help |
8168de4c | 319 | --enable-spinbtn use wxSpinButton class" |
698dcdb6 | 320 | ac_help="$ac_help |
8168de4c | 321 | --enable-spinctrl use wxSpinCtrl class" |
698dcdb6 | 322 | ac_help="$ac_help |
8168de4c | 323 | --enable-splitter use wxSplitterWindow class" |
698dcdb6 | 324 | ac_help="$ac_help |
8168de4c | 325 | --enable-statbmp use wxStaticBitmap class" |
698dcdb6 | 326 | ac_help="$ac_help |
8168de4c | 327 | --enable-statbox use wxStaticBox class" |
698dcdb6 | 328 | ac_help="$ac_help |
8168de4c | 329 | --enable-statline use wxStaticLine class" |
698dcdb6 | 330 | ac_help="$ac_help |
8168de4c | 331 | --enable-stattext use wxStaticText class" |
1e6feb95 | 332 | ac_help="$ac_help |
8168de4c | 333 | --enable-statusbar use wxStatusBar class" |
698dcdb6 | 334 | ac_help="$ac_help |
8168de4c | 335 | --enable-tabdialog use wxTabControl class" |
698dcdb6 | 336 | ac_help="$ac_help |
8168de4c | 337 | --enable-textctrl use wxTextCtrl class" |
1e6feb95 | 338 | ac_help="$ac_help |
8168de4c | 339 | --enable-togglebtn use wxToggleButton class" |
698dcdb6 | 340 | ac_help="$ac_help |
8168de4c | 341 | --enable-toolbar use wxToolBar class" |
698dcdb6 | 342 | ac_help="$ac_help |
8168de4c | 343 | --enable-tbarnative use native wxToolBar class" |
698dcdb6 | 344 | ac_help="$ac_help |
8168de4c | 345 | --enable-tbarsmpl use wxToolBarSimple class" |
698dcdb6 | 346 | ac_help="$ac_help |
8168de4c | 347 | --enable-treectrl use wxTreeCtrl class" |
9926e4a4 VZ |
348 | ac_help="$ac_help |
349 | --enable-tipwindow use wxTipWindow class" | |
9f41d601 RR |
350 | ac_help="$ac_help |
351 | --enable-popupwin use wxPopUpWindow class" | |
698dcdb6 | 352 | ac_help="$ac_help |
b3e8d00a | 353 | --enable-commondlg use all common dialogs" |
698dcdb6 | 354 | ac_help="$ac_help |
8168de4c | 355 | --enable-choicedlg use wxChoiceDialog" |
1e6feb95 | 356 | ac_help="$ac_help |
8168de4c | 357 | --enable-coldlg use wxColourDialog" |
1e6feb95 | 358 | ac_help="$ac_help |
8168de4c | 359 | --enable-filedlg use wxFileDialog" |
8db37e06 VZ |
360 | ac_help="$ac_help |
361 | --enable-finddlg use wxFindReplaceDialog" | |
1e6feb95 | 362 | ac_help="$ac_help |
8168de4c | 363 | --enable-fontdlg use wxFontDialog" |
1e6feb95 | 364 | ac_help="$ac_help |
8168de4c | 365 | --enable-dirdlg use wxDirDialog" |
698dcdb6 | 366 | ac_help="$ac_help |
8168de4c | 367 | --enable-msgdlg use wxMessageDialog" |
1e6feb95 | 368 | ac_help="$ac_help |
8168de4c | 369 | --enable-numberdlg use wxNumberEntryDialog" |
cbca9943 VZ |
370 | ac_help="$ac_help |
371 | --enable-splash use wxSplashScreen" | |
1e6feb95 | 372 | ac_help="$ac_help |
8168de4c | 373 | --enable-textdlg use wxTextDialog" |
698dcdb6 | 374 | ac_help="$ac_help |
8168de4c | 375 | --enable-tipdlg use startup tips" |
698dcdb6 | 376 | ac_help="$ac_help |
8168de4c | 377 | --enable-progressdlg use wxProgressDialog" |
b1f5d087 VZ |
378 | ac_help="$ac_help |
379 | --enable-wizarddlg use wxWizard" | |
698dcdb6 | 380 | ac_help="$ac_help |
8168de4c | 381 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" |
1e6feb95 | 382 | ac_help="$ac_help |
8168de4c | 383 | --enable-miniframe use wxMiniFrame class" |
698dcdb6 | 384 | ac_help="$ac_help |
8168de4c | 385 | --enable-tooltips use wxToolTip class" |
698dcdb6 | 386 | ac_help="$ac_help |
8168de4c | 387 | --enable-splines use spline drawing code" |
698dcdb6 | 388 | ac_help="$ac_help |
8168de4c | 389 | --enable-validators use wxValidator and derived classes" |
698dcdb6 | 390 | ac_help="$ac_help |
8168de4c | 391 | --enable-busyinfo use wxBusyInfo" |
698dcdb6 | 392 | ac_help="$ac_help |
b3e8d00a | 393 | --enable-joystick use wxJoystick (Linux only)" |
698dcdb6 | 394 | ac_help="$ac_help |
8168de4c | 395 | --enable-metafiles use wxMetaFile (Windows only)" |
24fd6d87 VZ |
396 | ac_help="$ac_help |
397 | --enable-dragimage use wxDragImage" | |
edae8572 VZ |
398 | ac_help="$ac_help |
399 | --enable-palette use wxPalette class" | |
1e6feb95 | 400 | ac_help="$ac_help |
8168de4c | 401 | --enable-image use wxImage class" |
698dcdb6 | 402 | ac_help="$ac_help |
8168de4c | 403 | --enable-gif use gif images (GIF file format)" |
698dcdb6 | 404 | ac_help="$ac_help |
8168de4c | 405 | --enable-pcx use pcx images (PCX file format)" |
4b6b4dfc RR |
406 | ac_help="$ac_help |
407 | --enable-iff use iff images (IFF file format)" | |
698dcdb6 | 408 | ac_help="$ac_help |
8168de4c | 409 | --enable-pnm use pnm images (PNM file format)" |
698dcdb6 | 410 | ac_help="$ac_help |
8168de4c | 411 | --enable-xpm use xpm images (XPM file format)" |
658974ae VS |
412 | ac_help="$ac_help |
413 | --enable-icocur use Windows ICO and CUR formats" | |
698dcdb6 VZ |
414 | ac_help="$ac_help |
415 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
416 | ac_help="$ac_help | |
417 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
418 | ac_help="$ac_help | |
419 | --disable-gtktest Do not try to compile and run a test GTK program" | |
3f345b47 VZ |
420 | ac_help="$ac_help |
421 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
422 | ac_help="$ac_help | |
423 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
424 | ac_help="$ac_help | |
425 | --disable-gtktest Do not try to compile and run a test GTK program" | |
426 | ac_help="$ac_help | |
427 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
428 | ac_help="$ac_help | |
429 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
430 | ac_help="$ac_help | |
431 | --disable-gtktest Do not try to compile and run a test GTK program" | |
698dcdb6 VZ |
432 | ac_help="$ac_help |
433 | --with-x use the X Window System" | |
b040e242 VS |
434 | ac_help="$ac_help |
435 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib" | |
10f2d63a VZ |
436 | |
437 | # Initialize some variables set by options. | |
438 | # The variables have the same names as the options, with | |
439 | # dashes changed to underlines. | |
698dcdb6 VZ |
440 | build=NONE |
441 | cache_file=./config.cache | |
10f2d63a | 442 | exec_prefix=NONE |
698dcdb6 | 443 | host=NONE |
10f2d63a | 444 | no_create= |
698dcdb6 | 445 | nonopt=NONE |
10f2d63a VZ |
446 | no_recursion= |
447 | prefix=NONE | |
448 | program_prefix=NONE | |
449 | program_suffix=NONE | |
450 | program_transform_name=s,x,x, | |
451 | silent= | |
452 | site= | |
453 | srcdir= | |
698dcdb6 | 454 | target=NONE |
10f2d63a VZ |
455 | verbose= |
456 | x_includes=NONE | |
457 | x_libraries=NONE | |
458 | bindir='${exec_prefix}/bin' | |
459 | sbindir='${exec_prefix}/sbin' | |
460 | libexecdir='${exec_prefix}/libexec' | |
461 | datadir='${prefix}/share' | |
462 | sysconfdir='${prefix}/etc' | |
463 | sharedstatedir='${prefix}/com' | |
464 | localstatedir='${prefix}/var' | |
465 | libdir='${exec_prefix}/lib' | |
466 | includedir='${prefix}/include' | |
467 | oldincludedir='/usr/include' | |
468 | infodir='${prefix}/info' | |
469 | mandir='${prefix}/man' | |
470 | ||
698dcdb6 VZ |
471 | # Initialize some other variables. |
472 | subdirs= | |
473 | MFLAGS= MAKEFLAGS= | |
474 | SHELL=${CONFIG_SHELL-/bin/sh} | |
475 | # Maximum number of lines to put in a shell here document. | |
476 | ac_max_here_lines=12 | |
10f2d63a VZ |
477 | |
478 | ac_prev= | |
479 | for ac_option | |
480 | do | |
698dcdb6 | 481 | |
10f2d63a VZ |
482 | # If the previous option needs an argument, assign it. |
483 | if test -n "$ac_prev"; then | |
484 | eval "$ac_prev=\$ac_option" | |
485 | ac_prev= | |
486 | continue | |
487 | fi | |
488 | ||
698dcdb6 VZ |
489 | case "$ac_option" in |
490 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
491 | *) ac_optarg= ;; | |
492 | esac | |
10f2d63a VZ |
493 | |
494 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
495 | ||
698dcdb6 | 496 | case "$ac_option" in |
10f2d63a VZ |
497 | |
498 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
499 | ac_prev=bindir ;; | |
500 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
698dcdb6 | 501 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
502 | |
503 | -build | --build | --buil | --bui | --bu) | |
698dcdb6 | 504 | ac_prev=build ;; |
10f2d63a | 505 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
698dcdb6 | 506 | build="$ac_optarg" ;; |
10f2d63a VZ |
507 | |
508 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
509 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
510 | ac_prev=cache_file ;; | |
511 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
512 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
698dcdb6 | 513 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
514 | |
515 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
516 | ac_prev=datadir ;; | |
517 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
518 | | --da=*) | |
698dcdb6 | 519 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
520 | |
521 | -disable-* | --disable-*) | |
698dcdb6 | 522 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 523 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
524 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
525 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
526 | fi | |
527 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
528 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
529 | |
530 | -enable-* | --enable-*) | |
698dcdb6 | 531 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 532 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
533 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
534 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
535 | fi | |
536 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
537 | case "$ac_option" in | |
538 | *=*) ;; | |
10f2d63a VZ |
539 | *) ac_optarg=yes ;; |
540 | esac | |
698dcdb6 | 541 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
542 | |
543 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
544 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
545 | | --exec | --exe | --ex) | |
546 | ac_prev=exec_prefix ;; | |
547 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
548 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
549 | | --exec=* | --exe=* | --ex=*) | |
698dcdb6 | 550 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
551 | |
552 | -gas | --gas | --ga | --g) | |
553 | # Obsolete; use --with-gas. | |
554 | with_gas=yes ;; | |
555 | ||
698dcdb6 VZ |
556 | -help | --help | --hel | --he) |
557 | # Omit some internal or obsolete options to make the list less imposing. | |
558 | # This message is too long to be a string in the A/UX 3.1 sh. | |
559 | cat << EOF | |
560 | Usage: configure [options] [host] | |
561 | Options: [defaults in brackets after descriptions] | |
562 | Configuration: | |
563 | --cache-file=FILE cache test results in FILE | |
564 | --help print this message | |
565 | --no-create do not create output files | |
566 | --quiet, --silent do not print \`checking...' messages | |
567 | --version print the version of autoconf that created configure | |
568 | Directory and file names: | |
569 | --prefix=PREFIX install architecture-independent files in PREFIX | |
570 | [$ac_default_prefix] | |
571 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
572 | [same as prefix] | |
573 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
574 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
575 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
576 | --datadir=DIR read-only architecture-independent data in DIR | |
577 | [PREFIX/share] | |
578 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
579 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
580 | [PREFIX/com] | |
581 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
582 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
583 | --includedir=DIR C header files in DIR [PREFIX/include] | |
584 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
585 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
586 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
587 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
588 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
589 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
590 | --program-transform-name=PROGRAM | |
591 | run sed PROGRAM on installed program names | |
592 | EOF | |
593 | cat << EOF | |
594 | Host type: | |
595 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
596 | --host=HOST configure for HOST [guessed] | |
597 | --target=TARGET configure for TARGET [TARGET=HOST] | |
598 | Features and packages: | |
599 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
600 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
601 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
602 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
603 | --x-includes=DIR X include files are in DIR | |
604 | --x-libraries=DIR X library files are in DIR | |
605 | EOF | |
606 | if test -n "$ac_help"; then | |
607 | echo "--enable and --with options recognized:$ac_help" | |
608 | fi | |
609 | exit 0 ;; | |
10f2d63a VZ |
610 | |
611 | -host | --host | --hos | --ho) | |
698dcdb6 | 612 | ac_prev=host ;; |
10f2d63a | 613 | -host=* | --host=* | --hos=* | --ho=*) |
698dcdb6 | 614 | host="$ac_optarg" ;; |
10f2d63a VZ |
615 | |
616 | -includedir | --includedir | --includedi | --included | --include \ | |
617 | | --includ | --inclu | --incl | --inc) | |
618 | ac_prev=includedir ;; | |
619 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
620 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
698dcdb6 | 621 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
622 | |
623 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
624 | ac_prev=infodir ;; | |
625 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
698dcdb6 | 626 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
627 | |
628 | -libdir | --libdir | --libdi | --libd) | |
629 | ac_prev=libdir ;; | |
630 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
698dcdb6 | 631 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
632 | |
633 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
634 | | --libexe | --libex | --libe) | |
635 | ac_prev=libexecdir ;; | |
636 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
637 | | --libexe=* | --libex=* | --libe=*) | |
698dcdb6 | 638 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
639 | |
640 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
641 | | --localstate | --localstat | --localsta | --localst \ | |
642 | | --locals | --local | --loca | --loc | --lo) | |
643 | ac_prev=localstatedir ;; | |
644 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
645 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
646 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
698dcdb6 | 647 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
648 | |
649 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
650 | ac_prev=mandir ;; | |
651 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
698dcdb6 | 652 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
653 | |
654 | -nfp | --nfp | --nf) | |
655 | # Obsolete; use --without-fp. | |
656 | with_fp=no ;; | |
657 | ||
658 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
659 | | --no-cr | --no-c) | |
660 | no_create=yes ;; | |
661 | ||
662 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
663 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
664 | no_recursion=yes ;; | |
665 | ||
666 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
667 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
668 | | --oldin | --oldi | --old | --ol | --o) | |
669 | ac_prev=oldincludedir ;; | |
670 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
671 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
672 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
698dcdb6 | 673 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
674 | |
675 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
676 | ac_prev=prefix ;; | |
677 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
698dcdb6 | 678 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
679 | |
680 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
681 | | --program-pre | --program-pr | --program-p) | |
682 | ac_prev=program_prefix ;; | |
683 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
684 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
698dcdb6 | 685 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
686 | |
687 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
688 | | --program-suf | --program-su | --program-s) | |
689 | ac_prev=program_suffix ;; | |
690 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
691 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
698dcdb6 | 692 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
693 | |
694 | -program-transform-name | --program-transform-name \ | |
695 | | --program-transform-nam | --program-transform-na \ | |
696 | | --program-transform-n | --program-transform- \ | |
697 | | --program-transform | --program-transfor \ | |
698 | | --program-transfo | --program-transf \ | |
699 | | --program-trans | --program-tran \ | |
700 | | --progr-tra | --program-tr | --program-t) | |
701 | ac_prev=program_transform_name ;; | |
702 | -program-transform-name=* | --program-transform-name=* \ | |
703 | | --program-transform-nam=* | --program-transform-na=* \ | |
704 | | --program-transform-n=* | --program-transform-=* \ | |
705 | | --program-transform=* | --program-transfor=* \ | |
706 | | --program-transfo=* | --program-transf=* \ | |
707 | | --program-trans=* | --program-tran=* \ | |
708 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
698dcdb6 | 709 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
710 | |
711 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
712 | | -silent | --silent | --silen | --sile | --sil) | |
713 | silent=yes ;; | |
714 | ||
715 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
716 | ac_prev=sbindir ;; | |
717 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
718 | | --sbi=* | --sb=*) | |
698dcdb6 | 719 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
720 | |
721 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
722 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
723 | | --sharedst | --shareds | --shared | --share | --shar \ | |
724 | | --sha | --sh) | |
725 | ac_prev=sharedstatedir ;; | |
726 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
727 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
728 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
729 | | --sha=* | --sh=*) | |
698dcdb6 | 730 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
731 | |
732 | -site | --site | --sit) | |
733 | ac_prev=site ;; | |
734 | -site=* | --site=* | --sit=*) | |
698dcdb6 | 735 | site="$ac_optarg" ;; |
10f2d63a VZ |
736 | |
737 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
738 | ac_prev=srcdir ;; | |
739 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
698dcdb6 | 740 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
741 | |
742 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
743 | | --syscon | --sysco | --sysc | --sys | --sy) | |
744 | ac_prev=sysconfdir ;; | |
745 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
746 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
698dcdb6 | 747 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
748 | |
749 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
698dcdb6 | 750 | ac_prev=target ;; |
10f2d63a | 751 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
698dcdb6 | 752 | target="$ac_optarg" ;; |
10f2d63a VZ |
753 | |
754 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
755 | verbose=yes ;; | |
756 | ||
698dcdb6 VZ |
757 | -version | --version | --versio | --versi | --vers) |
758 | echo "configure generated by autoconf version 2.13" | |
759 | exit 0 ;; | |
10f2d63a VZ |
760 | |
761 | -with-* | --with-*) | |
698dcdb6 | 762 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 763 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
764 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
765 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
766 | fi | |
10f2d63a | 767 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
698dcdb6 VZ |
768 | case "$ac_option" in |
769 | *=*) ;; | |
10f2d63a VZ |
770 | *) ac_optarg=yes ;; |
771 | esac | |
698dcdb6 | 772 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
773 | |
774 | -without-* | --without-*) | |
698dcdb6 | 775 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 776 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
777 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
778 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
779 | fi | |
780 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
781 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
782 | |
783 | --x) | |
784 | # Obsolete; use --with-x. | |
785 | with_x=yes ;; | |
786 | ||
787 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
788 | | --x-incl | --x-inc | --x-in | --x-i) | |
789 | ac_prev=x_includes ;; | |
790 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
791 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
698dcdb6 | 792 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
793 | |
794 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
795 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
796 | ac_prev=x_libraries ;; | |
797 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
798 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
698dcdb6 | 799 | x_libraries="$ac_optarg" ;; |
10f2d63a | 800 | |
698dcdb6 | 801 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
802 | ;; |
803 | ||
804 | *) | |
698dcdb6 VZ |
805 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
806 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
807 | fi | |
808 | if test "x$nonopt" != xNONE; then | |
809 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
810 | fi | |
811 | nonopt="$ac_option" | |
10f2d63a VZ |
812 | ;; |
813 | ||
814 | esac | |
815 | done | |
816 | ||
817 | if test -n "$ac_prev"; then | |
698dcdb6 VZ |
818 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
819 | fi | |
820 | ||
821 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
822 | ||
823 | # File descriptor usage: | |
824 | # 0 standard input | |
825 | # 1 file creation | |
826 | # 2 errors and warnings | |
827 | # 3 some systems may open it to /dev/tty | |
828 | # 4 used on the Kubota Titan | |
829 | # 6 checking for... messages and results | |
830 | # 5 compiler messages saved in config.log | |
831 | if test "$silent" = yes; then | |
832 | exec 6>/dev/null | |
833 | else | |
834 | exec 6>&1 | |
10f2d63a | 835 | fi |
698dcdb6 VZ |
836 | exec 5>./config.log |
837 | ||
838 | echo "\ | |
839 | This file contains any messages produced by compilers while | |
840 | running configure, to aid debugging if configure makes a mistake. | |
841 | " 1>&5 | |
10f2d63a | 842 | |
698dcdb6 VZ |
843 | # Strip out --no-create and --no-recursion so they do not pile up. |
844 | # Also quote any args containing shell metacharacters. | |
845 | ac_configure_args= | |
846 | for ac_arg | |
10f2d63a | 847 | do |
698dcdb6 VZ |
848 | case "$ac_arg" in |
849 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
850 | | --no-cr | --no-c) ;; | |
851 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
852 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
853 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
854 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
855 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
856 | esac |
857 | done | |
858 | ||
698dcdb6 VZ |
859 | # NLS nuisances. |
860 | # Only set these to C if already set. These must not be set unconditionally | |
861 | # because not all systems understand e.g. LANG=C (notably SCO). | |
862 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
863 | # Non-C LC_CTYPE values break the ctype check. | |
864 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
865 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
866 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
867 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 868 | |
698dcdb6 VZ |
869 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
870 | rm -rf conftest* confdefs.h | |
871 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
872 | echo > confdefs.h | |
10f2d63a | 873 | |
698dcdb6 VZ |
874 | # A filename unique to this package, relative to the directory that |
875 | # configure is in, which we can look for to find out if srcdir is correct. | |
876 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
877 | |
878 | # Find the source files, if location was not specified. | |
879 | if test -z "$srcdir"; then | |
880 | ac_srcdir_defaulted=yes | |
881 | # Try the directory containing this script, then its parent. | |
882 | ac_prog=$0 | |
698dcdb6 | 883 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
884 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
885 | srcdir=$ac_confdir | |
886 | if test ! -r $srcdir/$ac_unique_file; then | |
887 | srcdir=.. | |
888 | fi | |
889 | else | |
890 | ac_srcdir_defaulted=no | |
891 | fi | |
892 | if test ! -r $srcdir/$ac_unique_file; then | |
893 | if test "$ac_srcdir_defaulted" = yes; then | |
698dcdb6 | 894 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 895 | else |
698dcdb6 | 896 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
897 | fi |
898 | fi | |
698dcdb6 | 899 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
10f2d63a VZ |
900 | |
901 | # Prefer explicitly selected file to automatically selected ones. | |
902 | if test -z "$CONFIG_SITE"; then | |
903 | if test "x$prefix" != xNONE; then | |
904 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
905 | else | |
906 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
907 | fi | |
908 | fi | |
909 | for ac_site_file in $CONFIG_SITE; do | |
910 | if test -r "$ac_site_file"; then | |
698dcdb6 | 911 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
912 | . "$ac_site_file" |
913 | fi | |
914 | done | |
915 | ||
916 | if test -r "$cache_file"; then | |
698dcdb6 VZ |
917 | echo "loading cache $cache_file" |
918 | . $cache_file | |
10f2d63a | 919 | else |
698dcdb6 VZ |
920 | echo "creating cache $cache_file" |
921 | > $cache_file | |
10f2d63a VZ |
922 | fi |
923 | ||
924 | ac_ext=c | |
698dcdb6 | 925 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 926 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
927 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
928 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
929 | cross_compiling=$ac_cv_prog_cc_cross | |
930 | ||
931 | ac_exeext= | |
932 | ac_objext=o | |
933 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
934 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
935 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
936 | ac_n= ac_c=' | |
937 | ' ac_t=' ' | |
938 | else | |
939 | ac_n=-n ac_c= ac_t= | |
940 | fi | |
10f2d63a | 941 | else |
698dcdb6 | 942 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 943 | fi |
698dcdb6 VZ |
944 | |
945 | ||
10f2d63a | 946 | |
7c66a493 VZ |
947 | ac_aux_dir= |
948 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
949 | if test -f $ac_dir/install-sh; then | |
950 | ac_aux_dir=$ac_dir | |
951 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
952 | break | |
953 | elif test -f $ac_dir/install.sh; then | |
954 | ac_aux_dir=$ac_dir | |
955 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
956 | break | |
957 | fi | |
958 | done | |
959 | if test -z "$ac_aux_dir"; then | |
698dcdb6 | 960 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 961 | fi |
698dcdb6 VZ |
962 | ac_config_guess=$ac_aux_dir/config.guess |
963 | ac_config_sub=$ac_aux_dir/config.sub | |
964 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
703e0a69 | 965 | |
698dcdb6 VZ |
966 | |
967 | # Do some error checking and defaulting for the host and target type. | |
968 | # The inputs are: | |
969 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
970 | # | |
971 | # The rules are: | |
972 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
973 | # same time. | |
974 | # 2. Host defaults to nonopt. | |
975 | # 3. If nonopt is not specified, then host defaults to the current host, | |
976 | # as determined by config.guess. | |
977 | # 4. Target and build default to nonopt. | |
978 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
979 | |
980 | # The aliases save the names the user supplied, while $host etc. | |
981 | # will get canonicalized. | |
698dcdb6 VZ |
982 | case $host---$target---$nonopt in |
983 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
984 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
985 | esac | |
986 | ||
987 | ||
988 | # Make sure we can run config.sub. | |
989 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
990 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
991 | fi | |
992 | ||
993 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
b7043674 | 994 | echo "configure:995: checking host system type" >&5 |
698dcdb6 VZ |
995 | |
996 | host_alias=$host | |
997 | case "$host_alias" in | |
998 | NONE) | |
999 | case $nonopt in | |
1000 | NONE) | |
1001 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
1002 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
1003 | fi ;; | |
1004 | *) host_alias=$nonopt ;; | |
1005 | esac ;; | |
1006 | esac | |
1007 | ||
1008 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
1009 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1010 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1011 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1012 | echo "$ac_t""$host" 1>&6 | |
1013 | ||
1014 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
b7043674 | 1015 | echo "configure:1016: checking target system type" >&5 |
698dcdb6 VZ |
1016 | |
1017 | target_alias=$target | |
1018 | case "$target_alias" in | |
1019 | NONE) | |
1020 | case $nonopt in | |
1021 | NONE) target_alias=$host_alias ;; | |
1022 | *) target_alias=$nonopt ;; | |
1023 | esac ;; | |
1024 | esac | |
1025 | ||
1026 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
1027 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1028 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1029 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1030 | echo "$ac_t""$target" 1>&6 | |
1031 | ||
1032 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
b7043674 | 1033 | echo "configure:1034: checking build system type" >&5 |
698dcdb6 VZ |
1034 | |
1035 | build_alias=$build | |
1036 | case "$build_alias" in | |
1037 | NONE) | |
1038 | case $nonopt in | |
1039 | NONE) build_alias=$host_alias ;; | |
1040 | *) build_alias=$nonopt ;; | |
1041 | esac ;; | |
1042 | esac | |
1043 | ||
1044 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1045 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1046 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1047 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1048 | echo "$ac_t""$build" 1>&6 | |
1049 | ||
1050 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
1051 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1052 | NONENONEs,x,x, && | |
1053 | program_prefix=${target_alias}- | |
1054 | ||
698dcdb6 VZ |
1055 | |
1056 | ||
10f2d63a | 1057 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 1058 | WX_MINOR_VERSION_NUMBER=3 |
a0d927d1 | 1059 | WX_RELEASE_NUMBER=3 |
10f2d63a | 1060 | |
10f2d63a | 1061 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1062 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1063 | |
978f1259 RL |
1064 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1065 | ||
a0d927d1 | 1066 | WX_CURRENT=2 |
6426998c RL |
1067 | WX_REVISION=0 |
1068 | WX_AGE=0 | |
1069 | ||
698dcdb6 VZ |
1070 | |
1071 | ||
10f2d63a VZ |
1072 | USE_UNIX=1 |
1073 | USE_WIN32=0 | |
f9bc1684 | 1074 | USE_DOS=0 |
b12915c1 | 1075 | USE_BEOS=0 |
1216f52d | 1076 | USE_MAC=0 |
b12915c1 | 1077 | |
10f2d63a VZ |
1078 | USE_LINUX= |
1079 | USE_SGI= | |
1080 | USE_HPUX= | |
1081 | USE_SYSV= | |
1082 | USE_SVR4= | |
1083 | USE_AIX= | |
1084 | USE_SUN= | |
1085 | USE_SOLARIS= | |
1086 | USE_SUNOS= | |
1087 | USE_ALPHA= | |
1088 | USE_OSF= | |
1089 | USE_BSD= | |
f11bdd03 | 1090 | USE_DARWIN= |
10f2d63a | 1091 | USE_FREEBSD= |
95c8801c | 1092 | USE_OPENBSD= |
f6bcfd97 | 1093 | USE_NETBSD= |
10f2d63a VZ |
1094 | USE_VMS= |
1095 | USE_ULTRIX= | |
10f2d63a VZ |
1096 | USE_DATA_GENERAL= |
1097 | ||
ab9b9eab VZ |
1098 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1099 | ||
3f345b47 VZ |
1100 | CPP_MT_FLAG=-D_REENTRANT |
1101 | ||
1725144d | 1102 | ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE" |
10f2d63a VZ |
1103 | |
1104 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1105 | DEFAULT_wxUSE_MAC=0 |
1106 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1107 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1108 | DEFAULT_wxUSE_MOTIF=0 |
1109 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1110 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1111 | DEFAULT_wxUSE_WINE=0 |
10f2d63a VZ |
1112 | |
1113 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1114 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1115 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1116 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1117 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1118 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1119 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1120 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
10f2d63a | 1121 | |
d6a55c4b | 1122 | PROGRAM_EXT= |
3a922bb4 | 1123 | SO_SUFFIX=so |
d6a55c4b | 1124 | |
10f2d63a VZ |
1125 | case "${host}" in |
1126 | *-hp-hpux* ) | |
1127 | USE_HPUX=1 | |
1128 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1129 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1130 | SO_SUFFIX=sl |
698dcdb6 | 1131 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1132 | #define __HPUX__ 1 |
1133 | EOF | |
1134 | ||
1135 | ;; | |
1136 | *-*-linux* ) | |
1137 | USE_LINUX=1 | |
698dcdb6 | 1138 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1139 | #define __LINUX__ 1 |
1140 | EOF | |
1141 | ||
1142 | TMP=`uname -m` | |
1143 | if test "x$TMP" = "xalpha"; then | |
1144 | USE_ALPHA=1 | |
698dcdb6 | 1145 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1146 | #define __ALPHA__ 1 |
1147 | EOF | |
1148 | ||
1149 | fi | |
1150 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1151 | ;; | |
1152 | *-*-irix5* | *-*-irix6* ) | |
1153 | USE_SGI=1 | |
1154 | USE_SVR4=1 | |
698dcdb6 | 1155 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1156 | #define __SGI__ 1 |
1157 | EOF | |
1158 | ||
698dcdb6 | 1159 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1160 | #define __SVR4__ 1 |
1161 | EOF | |
1162 | ||
1163 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1164 | ;; | |
1165 | *-*-solaris2* ) | |
1166 | USE_SUN=1 | |
1167 | USE_SOLARIS=1 | |
1168 | USE_SVR4=1 | |
698dcdb6 | 1169 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1170 | #define __SUN__ 1 |
1171 | EOF | |
1172 | ||
698dcdb6 | 1173 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1174 | #define __SOLARIS__ 1 |
1175 | EOF | |
1176 | ||
698dcdb6 | 1177 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1178 | #define __SVR4__ 1 |
1179 | EOF | |
1180 | ||
1181 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1182 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1183 | ;; |
1184 | *-*-sunos4* ) | |
1185 | USE_SUN=1 | |
1186 | USE_SUNOS=1 | |
1187 | USE_BSD=1 | |
698dcdb6 | 1188 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1189 | #define __SUN__ 1 |
1190 | EOF | |
1191 | ||
698dcdb6 | 1192 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1193 | #define __SUNOS__ 1 |
1194 | EOF | |
1195 | ||
698dcdb6 | 1196 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1197 | #define __BSD__ 1 |
1198 | EOF | |
1199 | ||
1200 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1201 | ;; | |
f6bcfd97 | 1202 | *-*-freebsd*) |
10f2d63a VZ |
1203 | USE_BSD=1 |
1204 | USE_FREEBSD=1 | |
3f345b47 | 1205 | CPP_MT_FLAG=-D_THREAD_SAFE |
698dcdb6 | 1206 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1207 | #define __FREEBSD__ 1 |
1208 | EOF | |
1209 | ||
698dcdb6 | 1210 | cat >> confdefs.h <<\EOF |
10f2d63a | 1211 | #define __BSD__ 1 |
95c8801c VS |
1212 | EOF |
1213 | ||
1214 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1215 | ;; | |
1216 | *-*-openbsd*) | |
1217 | USE_BSD=1 | |
1218 | USE_OPENBSD=1 | |
698dcdb6 | 1219 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1220 | #define __FREEBSD__ 1 |
1221 | EOF | |
1222 | ||
698dcdb6 | 1223 | cat >> confdefs.h <<\EOF |
95c8801c | 1224 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1225 | EOF |
1226 | ||
1227 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1228 | ;; | |
1229 | *-*-netbsd*) | |
1230 | USE_BSD=1 | |
1231 | USE_NETBSD=1 | |
698dcdb6 | 1232 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1233 | #define __FREEBSD__ 1 |
1234 | EOF | |
1235 | ||
698dcdb6 | 1236 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1237 | #define __NETBSD__ 1 |
10f2d63a VZ |
1238 | EOF |
1239 | ||
1240 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1241 | ;; | |
1242 | *-*-osf* ) | |
1243 | USE_ALPHA=1 | |
1244 | USE_OSF=1 | |
698dcdb6 | 1245 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1246 | #define __ALPHA__ 1 |
1247 | EOF | |
1248 | ||
698dcdb6 | 1249 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1250 | #define __OSF__ 1 |
1251 | EOF | |
1252 | ||
1253 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1254 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1255 | ;; |
1256 | *-*-dgux5* ) | |
1257 | USE_ALPHA=1 | |
1258 | USE_SVR4=1 | |
698dcdb6 | 1259 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1260 | #define __ALPHA__ 1 |
1261 | EOF | |
1262 | ||
698dcdb6 | 1263 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1264 | #define __SVR4__ 1 |
1265 | EOF | |
1266 | ||
1267 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1268 | ;; | |
1269 | *-*-sysv5* ) | |
1270 | USE_SYSV=1 | |
1271 | USE_SVR4=1 | |
698dcdb6 | 1272 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1273 | #define __SYSV__ 1 |
1274 | EOF | |
1275 | ||
698dcdb6 | 1276 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1277 | #define __SVR4__ 1 |
1278 | EOF | |
1279 | ||
1280 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1281 | ;; | |
1282 | *-*-aix* ) | |
1283 | USE_AIX=1 | |
1284 | USE_SYSV=1 | |
1285 | USE_SVR4=1 | |
698dcdb6 | 1286 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1287 | #define __AIX__ 1 |
1288 | EOF | |
1289 | ||
698dcdb6 | 1290 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1291 | #define __SYSV__ 1 |
1292 | EOF | |
1293 | ||
698dcdb6 | 1294 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1295 | #define __SVR4__ 1 |
1296 | EOF | |
1297 | ||
1298 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1299 | ;; | |
1300 | ||
1c8183e2 | 1301 | *-*-cygwin* | *-*-mingw32* ) |
10f2d63a VZ |
1302 | USE_UNIX=0 |
1303 | USE_WIN32=1 | |
3a922bb4 | 1304 | SO_SUFFIX=dll |
698dcdb6 | 1305 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1306 | #define __WIN32__ 1 |
1307 | EOF | |
1308 | ||
698dcdb6 | 1309 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1310 | #define __WIN95__ 1 |
1311 | EOF | |
1312 | ||
698dcdb6 | 1313 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1314 | #define __WINDOWS__ 1 |
1315 | EOF | |
1316 | ||
698dcdb6 | 1317 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1318 | #define __GNUWIN32__ 1 |
1319 | EOF | |
1320 | ||
698dcdb6 | 1321 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1322 | #define STRICT 1 |
1323 | EOF | |
1324 | ||
698dcdb6 | 1325 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1326 | #define WINVER 0x0400 |
1327 | EOF | |
1328 | ||
cf27ef00 | 1329 | PROGRAM_EXT=".exe" |
7b7a7637 | 1330 | RESCOMP=windres |
10f2d63a VZ |
1331 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1332 | ;; | |
1333 | ||
f9bc1684 VS |
1334 | *-pc-msdosdjgpp ) |
1335 | USE_UNIX=0 | |
1336 | USE_DOS=1 | |
1337 | cat >> confdefs.h <<\EOF | |
1338 | #define __DOS__ 1 | |
1339 | EOF | |
1340 | ||
1341 | PROGRAM_EXT=".exe" | |
1342 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
1343 | DEFAULT_DEFAULT_wxUSE_SHARED=0 | |
1344 | ;; | |
1345 | ||
6fa882bd | 1346 | *-pc-os2_emx | *-pc-os2-emx ) |
698dcdb6 | 1347 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1348 | #define __EMX__ 1 |
1349 | EOF | |
1350 | ||
cf27ef00 | 1351 | PROGRAM_EXT=".exe" |
e07802fc | 1352 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1353 | ;; |
1354 | ||
d08b457b GD |
1355 | powerpc-*-darwin* ) |
1356 | USE_BSD=1 | |
f11bdd03 | 1357 | USE_DARWIN=1 |
3f345b47 | 1358 | CPP_MT_FLAG= |
3a922bb4 | 1359 | SO_SUFFIX=dylib |
698dcdb6 | 1360 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1361 | #define __BSD__ 1 |
b4085ce6 GD |
1362 | EOF |
1363 | ||
698dcdb6 | 1364 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1365 | #define __DARWIN__ 1 |
d08b457b GD |
1366 | EOF |
1367 | ||
1368 | cat >> confdefs.h <<\EOF | |
1369 | #define __POWERPC__ 1 | |
b4085ce6 GD |
1370 | EOF |
1371 | ||
1372 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1373 | ;; | |
1374 | ||
b12915c1 VZ |
1375 | *-*-beos* ) |
1376 | USE_BEOS=1 | |
698dcdb6 | 1377 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1378 | #define __BEOS__ 1 |
1379 | EOF | |
1380 | ||
1381 | ;; | |
1382 | ||
10f2d63a | 1383 | *) |
698dcdb6 | 1384 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1385 | esac |
1386 | ||
1387 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 | 1388 | wxUSE_UNIX=yes |
698dcdb6 | 1389 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1390 | #define __UNIX__ 1 |
1391 | EOF | |
1392 | ||
10f2d63a VZ |
1393 | fi |
1394 | ||
2389f33b VZ |
1395 | if test "$USE_LINUX" = 1; then |
1396 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
b7043674 | 1397 | echo "configure:1398: checking for glibc 2.1 or later" >&5 |
2389f33b VZ |
1398 | if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then |
1399 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1400 | else | |
a72a4bfa VS |
1401 | |
1402 | cat > conftest.$ac_ext <<EOF | |
b7043674 | 1403 | #line 1404 "configure" |
2389f33b VZ |
1404 | #include "confdefs.h" |
1405 | #include <features.h> | |
1406 | int main() { | |
1407 | ||
1408 | #if !__GLIBC_PREREQ(2, 1) | |
1409 | #error not glibc2.1 | |
1410 | #endif | |
1411 | ||
1412 | ; return 0; } | |
1413 | EOF | |
b7043674 | 1414 | if { (eval echo configure:1415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2389f33b VZ |
1415 | rm -rf conftest* |
1416 | ||
1417 | wx_lib_glibc21=yes | |
1418 | ||
1419 | else | |
1420 | echo "configure: failed program was:" >&5 | |
1421 | cat conftest.$ac_ext >&5 | |
1422 | rm -rf conftest* | |
1423 | ||
1424 | wx_lib_glibc21=no | |
1425 | ||
1426 | ||
1427 | fi | |
1428 | rm -f conftest* | |
1429 | ||
1430 | fi | |
1431 | ||
1432 | echo "$ac_t""$wx_lib_glibc21" 1>&6 | |
2389f33b VZ |
1433 | if test "$wx_lib_glibc21" = "yes"; then |
1434 | cat >> confdefs.h <<\EOF | |
1435 | #define wxHAVE_GLIBC2 1 | |
1436 | EOF | |
1437 | ||
1438 | fi | |
1439 | fi | |
10f2d63a | 1440 | |
1e487827 | 1441 | |
1e487827 | 1442 | |
6232543b | 1443 | |
10f2d63a VZ |
1444 | wx_arg_cache_file="configarg.cache" |
1445 | echo "loading argument cache $wx_arg_cache_file" | |
1446 | rm -f ${wx_arg_cache_file}.tmp | |
1447 | touch ${wx_arg_cache_file}.tmp | |
1448 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1449 | |
10f2d63a VZ |
1450 | |
1451 | DEBUG_CONFIGURE=0 | |
1452 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1453 | DEFAULT_wxUSE_UNIVERSAL=no |
1454 | ||
10f2d63a VZ |
1455 | DEFAULT_wxUSE_THREADS=yes |
1456 | ||
1457 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1458 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1459 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1460 | DEFAULT_wxUSE_PROFILE=no |
1461 | DEFAULT_wxUSE_NO_DEPS=no | |
f676c7ff MB |
1462 | DEFAULT_wxUSE_NO_RTTI=yes |
1463 | DEFAULT_wxUSE_NO_EXCEPTIONS=yes | |
10f2d63a VZ |
1464 | DEFAULT_wxUSE_PERMISSIVE=no |
1465 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1466 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1467 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1468 | DEFAULT_wxUSE_MEM_TRACING=no | |
1469 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1470 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1471 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1472 | DEFAULT_wxUSE_APPLE_IEEE=no |
1473 | ||
1474 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1475 | DEFAULT_wxUSE_LOGWINDOW=no |
1476 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1477 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1478 | |
1479 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1480 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1481 | |
3e44f09d | 1482 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1483 | DEFAULT_wxUSE_ZLIB=no |
1484 | DEFAULT_wxUSE_LIBPNG=no | |
1485 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1486 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1487 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1488 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1489 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1490 | |
eb4efbdc | 1491 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1492 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1493 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1494 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1495 | DEFAULT_wxUSE_DATETIME=no | |
1496 | DEFAULT_wxUSE_TIMEDATE=no | |
1497 | DEFAULT_wxUSE_TIMER=no | |
1498 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1499 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1500 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1501 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1502 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1503 | DEFAULT_wxUSE_WAVE=no |
1504 | DEFAULT_wxUSE_INTL=no | |
1505 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1506 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1507 | DEFAULT_wxUSE_STREAMS=no |
1508 | DEFAULT_wxUSE_SOCKETS=no | |
1509 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
10f2d63a | 1510 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1511 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1512 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 1513 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 1514 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1515 | |
1516 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1517 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1518 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1519 | ||
1520 | DEFAULT_wxUSE_X_RESOURCES=no | |
1521 | DEFAULT_wxUSE_CLIPBOARD=no | |
1522 | DEFAULT_wxUSE_TOOLTIPS=no | |
1523 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1524 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1525 | DEFAULT_wxUSE_SPLINES=no |
1526 | ||
1527 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1528 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1529 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1530 | ||
1531 | DEFAULT_wxUSE_PROLOGIO=no | |
1532 | DEFAULT_wxUSE_RESOURCES=no | |
1533 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1534 | DEFAULT_wxUSE_IPC=no | |
1535 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1536 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1537 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1538 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1539 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1540 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
1541 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
1542 | DEFAULT_wxUSE_PROTOCOL=no | |
1543 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
1544 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
1545 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
1546 | DEFAULT_wxUSE_URL=no | |
1547 | ||
10f2d63a | 1548 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
1549 | DEFAULT_wxUSE_CHOICEDLG=no |
1550 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1551 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1552 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1553 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1554 | DEFAULT_wxUSE_FONTDLG=no |
1555 | DEFAULT_wxUSE_MSGDLG=no | |
1556 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1557 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1558 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1559 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1560 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1561 | DEFAULT_wxUSE_WIZARDDLG=no |
1562 | ||
1e6feb95 | 1563 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1564 | DEFAULT_wxUSE_MINIFRAME=no |
1565 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1566 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1567 | DEFAULT_wxUSE_FS_INET=no |
1568 | DEFAULT_wxUSE_FS_ZIP=no | |
1569 | DEFAULT_wxUSE_BUSYINFO=no | |
1570 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1571 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1572 | |
1573 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1574 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1575 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1576 | DEFAULT_wxUSE_CALCTRL=no |
1577 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1578 | DEFAULT_wxUSE_CHECKBOX=no |
1579 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1580 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1581 | DEFAULT_wxUSE_COMBOBOX=no |
1582 | DEFAULT_wxUSE_GAUGE=no | |
1583 | DEFAULT_wxUSE_GRID=no | |
1584 | DEFAULT_wxUSE_NEW_GRID=no | |
1585 | DEFAULT_wxUSE_IMAGLIST=no | |
1586 | DEFAULT_wxUSE_LISTBOX=no | |
1587 | DEFAULT_wxUSE_LISTCTRL=no | |
1588 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1589 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1590 | DEFAULT_wxUSE_RADIOBOX=no |
1591 | DEFAULT_wxUSE_RADIOBTN=no | |
1592 | DEFAULT_wxUSE_SASH=no | |
1593 | DEFAULT_wxUSE_SCROLLBAR=no | |
1594 | DEFAULT_wxUSE_SLIDER=no | |
1595 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1596 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1597 | DEFAULT_wxUSE_SPLITTER=no |
1598 | DEFAULT_wxUSE_STATBMP=no | |
1599 | DEFAULT_wxUSE_STATBOX=no | |
1600 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1601 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1602 | DEFAULT_wxUSE_STATUSBAR=yes |
1603 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1604 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1605 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1606 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1607 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1608 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1609 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1610 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1611 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1612 | |
1613 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1614 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
1615 | DEFAULT_wxUSE_WCSRTOMBS=no |
1616 | ||
edae8572 | 1617 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1618 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1619 | DEFAULT_wxUSE_GIF=no |
1620 | DEFAULT_wxUSE_PCX=no | |
1621 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 1622 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 1623 | DEFAULT_wxUSE_XPM=no |
658974ae | 1624 | DEFAULT_wxUSE_ICO_CUR=no |
10f2d63a | 1625 | else |
1e6feb95 VZ |
1626 | DEFAULT_wxUSE_UNIVERSAL=no |
1627 | ||
10f2d63a VZ |
1628 | DEFAULT_wxUSE_THREADS=yes |
1629 | ||
1630 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1631 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1632 | DEFAULT_wxUSE_OPTIMISE=yes |
1633 | DEFAULT_wxUSE_PROFILE=no | |
1634 | DEFAULT_wxUSE_NO_DEPS=no | |
f676c7ff MB |
1635 | DEFAULT_wxUSE_NO_RTTI=yes |
1636 | DEFAULT_wxUSE_NO_EXCEPTIONS=yes | |
10f2d63a VZ |
1637 | DEFAULT_wxUSE_PERMISSIVE=no |
1638 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1639 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1640 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1641 | DEFAULT_wxUSE_MEM_TRACING=no | |
1642 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1643 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1644 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1645 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1646 | ||
1647 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1648 | DEFAULT_wxUSE_LOGWINDOW=yes |
1649 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 1650 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
1651 | |
1652 | DEFAULT_wxUSE_GUI=yes | |
1653 | ||
831b3152 | 1654 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1655 | DEFAULT_wxUSE_ZLIB=yes |
1656 | DEFAULT_wxUSE_LIBPNG=yes | |
1657 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1658 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1659 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1660 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1661 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1662 | |
eb4efbdc | 1663 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1664 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1665 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1666 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1667 | DEFAULT_wxUSE_DATETIME=yes | |
1668 | DEFAULT_wxUSE_TIMEDATE=no | |
1669 | DEFAULT_wxUSE_TIMER=yes | |
1670 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1671 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1672 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1673 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1674 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1675 | DEFAULT_wxUSE_WAVE=no |
1676 | DEFAULT_wxUSE_INTL=yes | |
1677 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1678 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1679 | DEFAULT_wxUSE_STREAMS=yes |
1680 | DEFAULT_wxUSE_SOCKETS=yes | |
1681 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
10f2d63a | 1682 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 1683 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
466367be | 1684 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
b685cd9b | 1685 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1686 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1687 | |
1688 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1689 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1690 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1691 | ||
1692 | DEFAULT_wxUSE_X_RESOURCES=no | |
1693 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1694 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1695 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1696 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1697 | DEFAULT_wxUSE_SPLINES=yes |
1698 | ||
1699 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1700 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1701 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1702 | ||
1703 | DEFAULT_wxUSE_PROLOGIO=yes | |
1704 | DEFAULT_wxUSE_RESOURCES=yes | |
1705 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1706 | DEFAULT_wxUSE_IPC=yes | |
1707 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1708 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1709 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1710 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1711 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1712 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1713 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
1714 | DEFAULT_wxUSE_PROTOCOL=yes |
1715 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
1716 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
1717 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
1718 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
1719 | |
1720 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1721 | DEFAULT_wxUSE_CHOICEDLG=yes |
1722 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1723 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1724 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1725 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1726 | DEFAULT_wxUSE_FONTDLG=yes |
1727 | DEFAULT_wxUSE_MSGDLG=yes | |
1728 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1729 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1730 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1731 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1732 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1733 | DEFAULT_wxUSE_WIZARDDLG=yes |
1734 | ||
1e6feb95 | 1735 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1736 | DEFAULT_wxUSE_MINIFRAME=yes |
1737 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1738 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1739 | DEFAULT_wxUSE_FS_INET=yes |
1740 | DEFAULT_wxUSE_FS_ZIP=yes | |
1741 | DEFAULT_wxUSE_BUSYINFO=yes | |
1742 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1743 | DEFAULT_wxUSE_VALIDATORS=yes | |
1744 | ||
1745 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1746 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1747 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1748 | DEFAULT_wxUSE_CALCTRL=yes |
1749 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1750 | DEFAULT_wxUSE_CHECKBOX=yes |
1751 | DEFAULT_wxUSE_CHECKLST=yes | |
1752 | DEFAULT_wxUSE_CHOICE=yes | |
1753 | DEFAULT_wxUSE_COMBOBOX=yes | |
1754 | DEFAULT_wxUSE_GAUGE=yes | |
1755 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1756 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1757 | DEFAULT_wxUSE_IMAGLIST=yes |
1758 | DEFAULT_wxUSE_LISTBOX=yes | |
1759 | DEFAULT_wxUSE_LISTCTRL=yes | |
1760 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1761 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1762 | DEFAULT_wxUSE_RADIOBOX=yes |
1763 | DEFAULT_wxUSE_RADIOBTN=yes | |
1764 | DEFAULT_wxUSE_SASH=yes | |
1765 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1766 | DEFAULT_wxUSE_SLIDER=yes | |
1767 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1768 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1769 | DEFAULT_wxUSE_SPLITTER=yes |
1770 | DEFAULT_wxUSE_STATBMP=yes | |
1771 | DEFAULT_wxUSE_STATBOX=yes | |
1772 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1773 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1774 | DEFAULT_wxUSE_STATUSBAR=yes |
1775 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1776 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1777 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1778 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1779 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1780 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1781 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1782 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 1783 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
1784 | |
1785 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1786 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
1787 | DEFAULT_wxUSE_WCSRTOMBS=no |
1788 | ||
edae8572 | 1789 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1790 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1791 | DEFAULT_wxUSE_GIF=yes |
1792 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 1793 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 1794 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 1795 | DEFAULT_wxUSE_XPM=yes |
658974ae | 1796 | DEFAULT_wxUSE_ICO_CUR=yes |
10f2d63a VZ |
1797 | fi |
1798 | ||
698dcdb6 VZ |
1799 | |
1800 | ||
10f2d63a VZ |
1801 | for toolkit in `echo $ALL_TOOLKITS`; do |
1802 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1803 | if test "x$LINE" != x ; then | |
1804 | has_toolkit_in_cache=1 | |
1805 | eval "DEFAULT_$LINE" | |
1806 | eval "CACHE_$toolkit=1" | |
1807 | fi | |
1808 | done | |
1809 | ||
698dcdb6 VZ |
1810 | |
1811 | ||
1812 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
b7043674 | 1813 | echo "configure:1814: checking for --enable-gui" >&5 |
10f2d63a VZ |
1814 | no_cache=0 |
1815 | # Check whether --enable-gui or --disable-gui was given. | |
1816 | if test "${enable_gui+set}" = set; then | |
1817 | enableval="$enable_gui" | |
698dcdb6 | 1818 | |
10f2d63a VZ |
1819 | if test "$enableval" = yes; then |
1820 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1821 | else | |
1822 | ac_cv_use_gui='wxUSE_GUI=no' | |
1823 | fi | |
698dcdb6 | 1824 | |
10f2d63a | 1825 | else |
698dcdb6 | 1826 | |
10f2d63a VZ |
1827 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1828 | if test "x$LINE" != x ; then | |
1829 | eval "DEFAULT_$LINE" | |
1830 | else | |
1831 | no_cache=1 | |
1832 | fi | |
1833 | ||
1834 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1835 | |
1836 | fi | |
10f2d63a VZ |
1837 | |
1838 | ||
1839 | eval "$ac_cv_use_gui" | |
1840 | if test "$no_cache" != 1; then | |
1841 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1842 | fi | |
1843 | ||
1844 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1845 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1846 | else |
698dcdb6 | 1847 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1848 | fi |
698dcdb6 | 1849 | |
10f2d63a | 1850 | |
b12915c1 | 1851 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1852 | |
1e6feb95 VZ |
1853 | |
1854 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
b7043674 | 1855 | echo "configure:1856: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1856 | no_cache=0 |
1857 | # Check whether --enable-universal or --disable-universal was given. | |
1858 | if test "${enable_universal+set}" = set; then | |
1859 | enableval="$enable_universal" | |
1860 | ||
1861 | if test "$enableval" = yes; then | |
1862 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1863 | else | |
1864 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1865 | fi | |
1866 | ||
1867 | else | |
1868 | ||
1869 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1870 | if test "x$LINE" != x ; then | |
1871 | eval "DEFAULT_$LINE" | |
1872 | else | |
1873 | no_cache=1 | |
1874 | fi | |
1875 | ||
1876 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1877 | ||
1878 | fi | |
1879 | ||
1880 | ||
1881 | eval "$ac_cv_use_universal" | |
1882 | if test "$no_cache" != 1; then | |
1883 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1884 | fi | |
1885 | ||
1886 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1887 | echo "$ac_t""yes" 1>&6 | |
1888 | else | |
1889 | echo "$ac_t""no" 1>&6 | |
1890 | fi | |
1891 | ||
10f2d63a VZ |
1892 | # Check whether --with-gtk or --without-gtk was given. |
1893 | if test "${with_gtk+set}" = set; then | |
1894 | withval="$with_gtk" | |
1895 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1896 | fi |
10f2d63a VZ |
1897 | |
1898 | # Check whether --with-motif or --without-motif was given. | |
1899 | if test "${with_motif+set}" = set; then | |
1900 | withval="$with_motif" | |
1901 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1902 | fi |
10f2d63a | 1903 | |
b4085ce6 GD |
1904 | # Check whether --with-mac or --without-mac was given. |
1905 | if test "${with_mac+set}" = set; then | |
1906 | withval="$with_mac" | |
1907 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1908 | fi |
b4085ce6 | 1909 | |
10f2d63a VZ |
1910 | # Check whether --with-wine or --without-wine was given. |
1911 | if test "${with_wine+set}" = set; then | |
1912 | withval="$with_wine" | |
1913 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1914 | fi |
10f2d63a | 1915 | |
77e13408 RL |
1916 | # Check whether --with-msw or --without-msw was given. |
1917 | if test "${with_msw+set}" = set; then | |
1918 | withval="$with_msw" | |
1919 | wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1 | |
698dcdb6 | 1920 | fi |
10f2d63a | 1921 | |
e07802fc VZ |
1922 | # Check whether --with-pm or --without-pm was given. |
1923 | if test "${with_pm+set}" = set; then | |
1924 | withval="$with_pm" | |
1925 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1926 | fi |
1927 | ||
1e6feb95 VZ |
1928 | # Check whether --with-mgl or --without-mgl was given. |
1929 | if test "${with_mgl+set}" = set; then | |
1930 | withval="$with_mgl" | |
1931 | wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1932 | fi | |
1933 | ||
1725144d RR |
1934 | # Check whether --with-microwin or --without-microwin was given. |
1935 | if test "${with_microwin+set}" = set; then | |
1936 | withval="$with_microwin" | |
1937 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
1938 | fi | |
1939 | ||
10f2d63a | 1940 | |
8168de4c VZ |
1941 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1942 | if test "${enable_gtk2+set}" = set; then | |
1943 | enableval="$enable_gtk2" | |
1944 | wxUSE_GTK2=1 | |
10f2d63a | 1945 | else |
8168de4c | 1946 | wxUSE_GTK2=0 |
698dcdb6 VZ |
1947 | fi |
1948 | ||
703e0a69 | 1949 | |
1e487827 | 1950 | |
698dcdb6 | 1951 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
b7043674 | 1952 | echo "configure:1953: checking for --with-libpng" >&5 |
698dcdb6 VZ |
1953 | no_cache=0 |
1954 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1955 | if test "${with_libpng+set}" = set; then |
1956 | withval="$with_libpng" | |
698dcdb6 | 1957 | |
10f2d63a | 1958 | if test "$withval" = yes; then |
b12915c1 | 1959 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1960 | elif test "$withval" = no; then |
b12915c1 | 1961 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1962 | elif test "$withval" = sys; then |
1963 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
1964 | elif test "$withval" = builtin; then |
1965 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 1966 | else |
4f14bcd8 | 1967 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1968 | fi |
698dcdb6 | 1969 | |
10f2d63a | 1970 | else |
698dcdb6 | 1971 | |
b12915c1 | 1972 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1973 | if test "x$LINE" != x ; then |
1974 | eval "DEFAULT_$LINE" | |
1975 | else | |
1976 | no_cache=1 | |
1977 | fi | |
1978 | ||
b12915c1 | 1979 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
1980 | |
1981 | fi | |
10f2d63a VZ |
1982 | |
1983 | ||
b12915c1 | 1984 | eval "$ac_cv_use_libpng" |
10f2d63a | 1985 | if test "$no_cache" != 1; then |
b12915c1 | 1986 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1987 | fi |
1988 | ||
b12915c1 | 1989 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 1990 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1991 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 1992 | echo "$ac_t""no" 1>&6 |
422107f9 | 1993 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 1994 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
1995 | elif test "$wxUSE_LIBPNG" = builtin; then |
1996 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 1997 | else |
4f14bcd8 | 1998 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1999 | fi |
698dcdb6 | 2000 | |
10f2d63a | 2001 | |
698dcdb6 | 2002 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
b7043674 | 2003 | echo "configure:2004: checking for --with-libjpeg" >&5 |
10f2d63a | 2004 | no_cache=0 |
698dcdb6 | 2005 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
2006 | if test "${with_libjpeg+set}" = set; then |
2007 | withval="$with_libjpeg" | |
698dcdb6 | 2008 | |
10f2d63a | 2009 | if test "$withval" = yes; then |
b12915c1 | 2010 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2011 | elif test "$withval" = no; then |
b12915c1 | 2012 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2013 | elif test "$withval" = sys; then |
2014 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2015 | elif test "$withval" = builtin; then |
2016 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2017 | else |
4f14bcd8 | 2018 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2019 | fi |
698dcdb6 | 2020 | |
10f2d63a | 2021 | else |
698dcdb6 | 2022 | |
b12915c1 | 2023 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2024 | if test "x$LINE" != x ; then |
2025 | eval "DEFAULT_$LINE" | |
2026 | else | |
2027 | no_cache=1 | |
2028 | fi | |
2029 | ||
b12915c1 | 2030 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
2031 | |
2032 | fi | |
10f2d63a VZ |
2033 | |
2034 | ||
b12915c1 | 2035 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2036 | if test "$no_cache" != 1; then |
b12915c1 | 2037 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2038 | fi |
2039 | ||
b12915c1 | 2040 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 2041 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2042 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 2043 | echo "$ac_t""no" 1>&6 |
422107f9 | 2044 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 2045 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2046 | elif test "$wxUSE_LIBJPEG" = builtin; then |
2047 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2048 | else |
4f14bcd8 | 2049 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2050 | fi |
698dcdb6 | 2051 | |
10f2d63a | 2052 | |
698dcdb6 | 2053 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
b7043674 | 2054 | echo "configure:2055: checking for --with-libtiff" >&5 |
10f2d63a | 2055 | no_cache=0 |
698dcdb6 | 2056 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
2057 | if test "${with_libtiff+set}" = set; then |
2058 | withval="$with_libtiff" | |
698dcdb6 | 2059 | |
10f2d63a | 2060 | if test "$withval" = yes; then |
b12915c1 | 2061 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2062 | elif test "$withval" = no; then |
b12915c1 | 2063 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2064 | elif test "$withval" = sys; then |
2065 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2066 | elif test "$withval" = builtin; then |
2067 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2068 | else |
4f14bcd8 | 2069 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2070 | fi |
698dcdb6 | 2071 | |
10f2d63a | 2072 | else |
698dcdb6 | 2073 | |
b12915c1 | 2074 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2075 | if test "x$LINE" != x ; then |
2076 | eval "DEFAULT_$LINE" | |
2077 | else | |
2078 | no_cache=1 | |
2079 | fi | |
2080 | ||
b12915c1 | 2081 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
2082 | |
2083 | fi | |
10f2d63a VZ |
2084 | |
2085 | ||
b12915c1 | 2086 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2087 | if test "$no_cache" != 1; then |
b12915c1 | 2088 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2089 | fi |
2090 | ||
b12915c1 | 2091 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 2092 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2093 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 2094 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2095 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 2096 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2097 | elif test "$wxUSE_LIBTIFF" = builtin; then |
2098 | echo "$ac_t""builtin version" 1>&6 | |
0dcf9893 | 2099 | else |
4f14bcd8 | 2100 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2101 | fi |
698dcdb6 | 2102 | |
10f2d63a | 2103 | |
698dcdb6 | 2104 | echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6 |
b7043674 | 2105 | echo "configure:2106: checking for --with-freetype" >&5 |
3fed1840 | 2106 | no_cache=0 |
698dcdb6 | 2107 | # Check whether --with-freetype or --without-freetype was given. |
3fed1840 RR |
2108 | if test "${with_freetype+set}" = set; then |
2109 | withval="$with_freetype" | |
698dcdb6 | 2110 | |
3fed1840 RR |
2111 | if test "$withval" = yes; then |
2112 | ac_cv_use_freetype='wxUSE_FREETYPE=yes' | |
2113 | elif test "$withval" = no; then | |
2114 | ac_cv_use_freetype='wxUSE_FREETYPE=no' | |
2115 | elif test "$withval" = sys; then | |
2116 | ac_cv_use_freetype='wxUSE_FREETYPE=sys' | |
4f14bcd8 GD |
2117 | elif test "$withval" = builtin; then |
2118 | ac_cv_use_freetype='wxUSE_FREETYPE=builtin' | |
3fed1840 | 2119 | else |
4f14bcd8 | 2120 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3fed1840 | 2121 | fi |
698dcdb6 | 2122 | |
3fed1840 | 2123 | else |
698dcdb6 | 2124 | |
3fed1840 RR |
2125 | LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}` |
2126 | if test "x$LINE" != x ; then | |
2127 | eval "DEFAULT_$LINE" | |
2128 | else | |
2129 | no_cache=1 | |
2130 | fi | |
2131 | ||
2132 | ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE | |
698dcdb6 VZ |
2133 | |
2134 | fi | |
3fed1840 RR |
2135 | |
2136 | ||
2137 | eval "$ac_cv_use_freetype" | |
2138 | if test "$no_cache" != 1; then | |
2139 | echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp | |
2140 | fi | |
2141 | ||
2142 | if test "$wxUSE_FREETYPE" = yes; then | |
698dcdb6 | 2143 | echo "$ac_t""yes" 1>&6 |
3fed1840 | 2144 | elif test "$wxUSE_FREETYPE" = no; then |
698dcdb6 | 2145 | echo "$ac_t""no" 1>&6 |
3fed1840 | 2146 | elif test "$wxUSE_FREETYPE" = sys; then |
698dcdb6 | 2147 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2148 | elif test "$wxUSE_FREETYPE" = builtin; then |
2149 | echo "$ac_t""builtin version" 1>&6 | |
3fed1840 | 2150 | else |
4f14bcd8 | 2151 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3fed1840 | 2152 | fi |
698dcdb6 | 2153 | |
3fed1840 | 2154 | |
698dcdb6 | 2155 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
b7043674 | 2156 | echo "configure:2157: checking for --with-opengl" >&5 |
10f2d63a | 2157 | no_cache=0 |
698dcdb6 | 2158 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2159 | if test "${with_opengl+set}" = set; then |
2160 | withval="$with_opengl" | |
698dcdb6 | 2161 | |
10f2d63a | 2162 | if test "$withval" = yes; then |
b12915c1 | 2163 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2164 | else |
b12915c1 | 2165 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2166 | fi |
698dcdb6 | 2167 | |
10f2d63a | 2168 | else |
698dcdb6 | 2169 | |
b12915c1 | 2170 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2171 | if test "x$LINE" != x ; then |
2172 | eval "DEFAULT_$LINE" | |
2173 | else | |
2174 | no_cache=1 | |
2175 | fi | |
2176 | ||
b12915c1 | 2177 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2178 | |
2179 | fi | |
10f2d63a VZ |
2180 | |
2181 | ||
b12915c1 | 2182 | eval "$ac_cv_use_opengl" |
10f2d63a | 2183 | if test "$no_cache" != 1; then |
b12915c1 | 2184 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2185 | fi |
2186 | ||
b12915c1 | 2187 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 2188 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2189 | else |
698dcdb6 | 2190 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2191 | fi |
698dcdb6 | 2192 | |
10f2d63a | 2193 | |
b12915c1 VZ |
2194 | fi |
2195 | ||
1e487827 | 2196 | |
698dcdb6 | 2197 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
b7043674 | 2198 | echo "configure:2199: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2199 | no_cache=0 |
2200 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2201 | if test "${with_dmalloc+set}" = set; then |
2202 | withval="$with_dmalloc" | |
698dcdb6 | 2203 | |
c7a2bf27 | 2204 | if test "$withval" = yes; then |
b12915c1 | 2205 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2206 | else |
b12915c1 | 2207 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2208 | fi |
698dcdb6 | 2209 | |
c7a2bf27 | 2210 | else |
698dcdb6 | 2211 | |
b12915c1 | 2212 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2213 | if test "x$LINE" != x ; then |
2214 | eval "DEFAULT_$LINE" | |
2215 | else | |
2216 | no_cache=1 | |
2217 | fi | |
2218 | ||
b12915c1 | 2219 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2220 | |
2221 | fi | |
c7a2bf27 RR |
2222 | |
2223 | ||
b12915c1 | 2224 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2225 | if test "$no_cache" != 1; then |
b12915c1 | 2226 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2227 | fi |
2228 | ||
b12915c1 | 2229 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2230 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2231 | else |
698dcdb6 | 2232 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2233 | fi |
698dcdb6 | 2234 | |
c7a2bf27 | 2235 | |
3e44f09d | 2236 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
b7043674 | 2237 | echo "configure:2238: checking for --with-regex" >&5 |
3e44f09d VZ |
2238 | no_cache=0 |
2239 | # Check whether --with-regex or --without-regex was given. | |
2240 | if test "${with_regex+set}" = set; then | |
2241 | withval="$with_regex" | |
2242 | ||
2243 | if test "$withval" = yes; then | |
2244 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2245 | elif test "$withval" = no; then | |
2246 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2247 | elif test "$withval" = sys; then | |
2248 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2249 | elif test "$withval" = builtin; then |
2250 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2251 | else |
4f14bcd8 | 2252 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2253 | fi |
2254 | ||
2255 | else | |
2256 | ||
2257 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
2258 | if test "x$LINE" != x ; then | |
2259 | eval "DEFAULT_$LINE" | |
2260 | else | |
2261 | no_cache=1 | |
2262 | fi | |
2263 | ||
2264 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
2265 | ||
2266 | fi | |
2267 | ||
2268 | ||
2269 | eval "$ac_cv_use_regex" | |
2270 | if test "$no_cache" != 1; then | |
2271 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2272 | fi | |
2273 | ||
2274 | if test "$wxUSE_REGEX" = yes; then | |
2275 | echo "$ac_t""yes" 1>&6 | |
2276 | elif test "$wxUSE_REGEX" = no; then | |
2277 | echo "$ac_t""no" 1>&6 | |
2278 | elif test "$wxUSE_REGEX" = sys; then | |
2279 | echo "$ac_t""system version" 1>&6 | |
4f14bcd8 GD |
2280 | elif test "$wxUSE_REGEX" = builtin; then |
2281 | echo "$ac_t""builtin version" 1>&6 | |
3e44f09d | 2282 | else |
4f14bcd8 | 2283 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d VZ |
2284 | fi |
2285 | ||
2286 | ||
698dcdb6 | 2287 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
b7043674 | 2288 | echo "configure:2289: checking for --with-zlib" >&5 |
10f2d63a | 2289 | no_cache=0 |
698dcdb6 | 2290 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2291 | if test "${with_zlib+set}" = set; then |
2292 | withval="$with_zlib" | |
698dcdb6 | 2293 | |
10f2d63a | 2294 | if test "$withval" = yes; then |
b12915c1 | 2295 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2296 | elif test "$withval" = no; then |
b12915c1 | 2297 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2298 | elif test "$withval" = sys; then |
2299 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2300 | elif test "$withval" = builtin; then |
2301 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2302 | else |
4f14bcd8 | 2303 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2304 | fi |
698dcdb6 | 2305 | |
10f2d63a | 2306 | else |
698dcdb6 | 2307 | |
b12915c1 | 2308 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2309 | if test "x$LINE" != x ; then |
2310 | eval "DEFAULT_$LINE" | |
2311 | else | |
2312 | no_cache=1 | |
2313 | fi | |
2314 | ||
b12915c1 | 2315 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2316 | |
2317 | fi | |
10f2d63a VZ |
2318 | |
2319 | ||
b12915c1 | 2320 | eval "$ac_cv_use_zlib" |
10f2d63a | 2321 | if test "$no_cache" != 1; then |
b12915c1 | 2322 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2323 | fi |
2324 | ||
b12915c1 | 2325 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2326 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2327 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2328 | echo "$ac_t""no" 1>&6 |
422107f9 | 2329 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2330 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 GD |
2331 | elif test "$wxUSE_ZLIB" = builtin; then |
2332 | echo "$ac_t""builtin version" 1>&6 | |
422107f9 | 2333 | else |
4f14bcd8 | 2334 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2335 | fi |
698dcdb6 | 2336 | |
10f2d63a | 2337 | |
698dcdb6 | 2338 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
b7043674 | 2339 | echo "configure:2340: checking for --with-odbc" >&5 |
10f2d63a | 2340 | no_cache=0 |
698dcdb6 | 2341 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2342 | if test "${with_odbc+set}" = set; then |
2343 | withval="$with_odbc" | |
698dcdb6 | 2344 | |
10f2d63a VZ |
2345 | if test "$withval" = yes; then |
2346 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2347 | else | |
2348 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2349 | fi | |
698dcdb6 | 2350 | |
10f2d63a | 2351 | else |
698dcdb6 | 2352 | |
10f2d63a VZ |
2353 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2354 | if test "x$LINE" != x ; then | |
2355 | eval "DEFAULT_$LINE" | |
2356 | else | |
2357 | no_cache=1 | |
2358 | fi | |
2359 | ||
2360 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2361 | |
2362 | fi | |
10f2d63a VZ |
2363 | |
2364 | ||
2365 | eval "$ac_cv_use_odbc" | |
2366 | if test "$no_cache" != 1; then | |
2367 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2368 | fi | |
2369 | ||
2370 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2371 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2372 | else |
698dcdb6 | 2373 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2374 | fi |
698dcdb6 VZ |
2375 | |
2376 | ||
10f2d63a | 2377 | |
698dcdb6 | 2378 | |
698dcdb6 | 2379 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 |
b7043674 | 2380 | echo "configure:2381: checking for --enable-shared" >&5 |
10f2d63a VZ |
2381 | no_cache=0 |
2382 | # Check whether --enable-shared or --disable-shared was given. | |
2383 | if test "${enable_shared+set}" = set; then | |
2384 | enableval="$enable_shared" | |
698dcdb6 | 2385 | |
10f2d63a VZ |
2386 | if test "$enableval" = yes; then |
2387 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2388 | else | |
2389 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2390 | fi | |
698dcdb6 | 2391 | |
10f2d63a | 2392 | else |
698dcdb6 | 2393 | |
10f2d63a VZ |
2394 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2395 | if test "x$LINE" != x ; then | |
2396 | eval "DEFAULT_$LINE" | |
2397 | else | |
2398 | no_cache=1 | |
2399 | fi | |
2400 | ||
2401 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2402 | |
2403 | fi | |
10f2d63a VZ |
2404 | |
2405 | ||
2406 | eval "$ac_cv_use_shared" | |
2407 | if test "$no_cache" != 1; then | |
2408 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2409 | fi | |
2410 | ||
2411 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2412 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2413 | else |
698dcdb6 | 2414 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2415 | fi |
698dcdb6 | 2416 | |
10f2d63a | 2417 | |
3a922bb4 | 2418 | echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6 |
b7043674 | 2419 | echo "configure:2420: checking for --enable-soname" >&5 |
00cf1208 | 2420 | no_cache=0 |
3a922bb4 RL |
2421 | # Check whether --enable-soname or --disable-soname was given. |
2422 | if test "${enable_soname+set}" = set; then | |
2423 | enableval="$enable_soname" | |
698dcdb6 | 2424 | |
00cf1208 | 2425 | if test "$enableval" = yes; then |
3a922bb4 | 2426 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2427 | else |
3a922bb4 | 2428 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2429 | fi |
698dcdb6 | 2430 | |
00cf1208 | 2431 | else |
698dcdb6 | 2432 | |
3a922bb4 | 2433 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2434 | if test "x$LINE" != x ; then |
2435 | eval "DEFAULT_$LINE" | |
2436 | else | |
2437 | no_cache=1 | |
2438 | fi | |
2439 | ||
3a922bb4 | 2440 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
698dcdb6 VZ |
2441 | |
2442 | fi | |
00cf1208 RR |
2443 | |
2444 | ||
3a922bb4 | 2445 | eval "$ac_cv_use_soname" |
00cf1208 | 2446 | if test "$no_cache" != 1; then |
3a922bb4 | 2447 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2448 | fi |
2449 | ||
3a922bb4 | 2450 | if test "$wxUSE_SONAME" = yes; then |
698dcdb6 | 2451 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2452 | else |
698dcdb6 | 2453 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2454 | fi |
698dcdb6 | 2455 | |
00cf1208 | 2456 | |
698dcdb6 | 2457 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
b7043674 | 2458 | echo "configure:2459: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2459 | no_cache=0 |
2460 | # Check whether --enable-optimise or --disable-optimise was given. | |
2461 | if test "${enable_optimise+set}" = set; then | |
2462 | enableval="$enable_optimise" | |
698dcdb6 | 2463 | |
10f2d63a VZ |
2464 | if test "$enableval" = yes; then |
2465 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2466 | else | |
2467 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2468 | fi | |
698dcdb6 | 2469 | |
10f2d63a | 2470 | else |
698dcdb6 | 2471 | |
10f2d63a VZ |
2472 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2473 | if test "x$LINE" != x ; then | |
2474 | eval "DEFAULT_$LINE" | |
2475 | else | |
2476 | no_cache=1 | |
2477 | fi | |
2478 | ||
2479 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2480 | |
2481 | fi | |
10f2d63a VZ |
2482 | |
2483 | ||
2484 | eval "$ac_cv_use_optimise" | |
2485 | if test "$no_cache" != 1; then | |
2486 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2487 | fi | |
2488 | ||
2489 | if test "$wxUSE_OPTIMISE" = yes; then | |
698dcdb6 | 2490 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2491 | else |
698dcdb6 | 2492 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2493 | fi |
698dcdb6 | 2494 | |
10f2d63a | 2495 | |
698dcdb6 | 2496 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
b7043674 | 2497 | echo "configure:2498: checking for --enable-debug" >&5 |
10f2d63a VZ |
2498 | no_cache=0 |
2499 | # Check whether --enable-debug or --disable-debug was given. | |
2500 | if test "${enable_debug+set}" = set; then | |
2501 | enableval="$enable_debug" | |
698dcdb6 | 2502 | |
10f2d63a VZ |
2503 | if test "$enableval" = yes; then |
2504 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2505 | else | |
2506 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2507 | fi | |
698dcdb6 | 2508 | |
10f2d63a | 2509 | else |
698dcdb6 | 2510 | |
10f2d63a VZ |
2511 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2512 | if test "x$LINE" != x ; then | |
2513 | eval "DEFAULT_$LINE" | |
2514 | else | |
2515 | no_cache=1 | |
2516 | fi | |
2517 | ||
2518 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2519 | |
2520 | fi | |
10f2d63a VZ |
2521 | |
2522 | ||
2523 | eval "$ac_cv_use_debug" | |
2524 | if test "$no_cache" != 1; then | |
2525 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2526 | fi | |
2527 | ||
2528 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2529 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2530 | else |
698dcdb6 | 2531 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2532 | fi |
698dcdb6 | 2533 | |
10f2d63a | 2534 | |
683dccda GD |
2535 | |
2536 | echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6 | |
b7043674 | 2537 | echo "configure:2538: checking for --enable-precomp" >&5 |
683dccda GD |
2538 | no_cache=0 |
2539 | # Check whether --enable-precomp or --disable-precomp was given. | |
2540 | if test "${enable_precomp+set}" = set; then | |
2541 | enableval="$enable_precomp" | |
2542 | ||
2543 | if test "$enableval" = yes; then | |
2544 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2545 | else | |
2546 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2547 | fi | |
2548 | ||
2549 | else | |
2550 | ||
2551 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` | |
2552 | if test "x$LINE" != x ; then | |
2553 | eval "DEFAULT_$LINE" | |
2554 | else | |
2555 | no_cache=1 | |
2556 | fi | |
2557 | ||
2558 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
2559 | ||
2560 | fi | |
2561 | ||
2562 | ||
2563 | eval "$ac_cv_use_precomp" | |
2564 | if test "$no_cache" != 1; then | |
2565 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2566 | fi | |
2567 | ||
2568 | if test "$wxUSE_PRECOMP" = yes; then | |
2569 | echo "$ac_t""yes" 1>&6 | |
2570 | else | |
2571 | echo "$ac_t""no" 1>&6 | |
2572 | fi | |
2573 | ||
2574 | ||
10f2d63a VZ |
2575 | if test "$wxUSE_DEBUG" = "yes"; then |
2576 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2577 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2578 | elif test "$wxUSE_DEBUG" = "no"; then | |
2579 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2580 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2581 | fi | |
2582 | ||
698dcdb6 VZ |
2583 | |
2584 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
b7043674 | 2585 | echo "configure:2586: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2586 | no_cache=0 |
2587 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2588 | if test "${enable_debug_flag+set}" = set; then | |
2589 | enableval="$enable_debug_flag" | |
698dcdb6 | 2590 | |
10f2d63a VZ |
2591 | if test "$enableval" = yes; then |
2592 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2593 | else | |
2594 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2595 | fi | |
698dcdb6 | 2596 | |
10f2d63a | 2597 | else |
698dcdb6 | 2598 | |
10f2d63a VZ |
2599 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2600 | if test "x$LINE" != x ; then | |
2601 | eval "DEFAULT_$LINE" | |
2602 | else | |
2603 | no_cache=1 | |
2604 | fi | |
2605 | ||
2606 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2607 | |
2608 | fi | |
10f2d63a VZ |
2609 | |
2610 | ||
2611 | eval "$ac_cv_use_debug_flag" | |
2612 | if test "$no_cache" != 1; then | |
2613 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2614 | fi | |
2615 | ||
2616 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2617 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2618 | else |
698dcdb6 | 2619 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2620 | fi |
698dcdb6 | 2621 | |
10f2d63a | 2622 | |
698dcdb6 | 2623 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
b7043674 | 2624 | echo "configure:2625: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2625 | no_cache=0 |
2626 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2627 | if test "${enable_debug_info+set}" = set; then | |
2628 | enableval="$enable_debug_info" | |
698dcdb6 | 2629 | |
10f2d63a VZ |
2630 | if test "$enableval" = yes; then |
2631 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2632 | else | |
2633 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2634 | fi | |
698dcdb6 | 2635 | |
10f2d63a | 2636 | else |
698dcdb6 | 2637 | |
10f2d63a VZ |
2638 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2639 | if test "x$LINE" != x ; then | |
2640 | eval "DEFAULT_$LINE" | |
2641 | else | |
2642 | no_cache=1 | |
2643 | fi | |
2644 | ||
2645 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2646 | |
2647 | fi | |
10f2d63a VZ |
2648 | |
2649 | ||
2650 | eval "$ac_cv_use_debug_info" | |
2651 | if test "$no_cache" != 1; then | |
2652 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2653 | fi | |
2654 | ||
2655 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2656 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2657 | else |
698dcdb6 | 2658 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2659 | fi |
698dcdb6 | 2660 | |
10f2d63a | 2661 | |
698dcdb6 | 2662 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
b7043674 | 2663 | echo "configure:2664: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2664 | no_cache=0 |
2665 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2666 | if test "${enable_debug_gdb+set}" = set; then | |
2667 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2668 | |
10f2d63a VZ |
2669 | if test "$enableval" = yes; then |
2670 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2671 | else | |
2672 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2673 | fi | |
698dcdb6 | 2674 | |
10f2d63a | 2675 | else |
698dcdb6 | 2676 | |
10f2d63a VZ |
2677 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2678 | if test "x$LINE" != x ; then | |
2679 | eval "DEFAULT_$LINE" | |
2680 | else | |
2681 | no_cache=1 | |
2682 | fi | |
2683 | ||
2684 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2685 | |
2686 | fi | |
10f2d63a VZ |
2687 | |
2688 | ||
2689 | eval "$ac_cv_use_debug_gdb" | |
2690 | if test "$no_cache" != 1; then | |
2691 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2692 | fi | |
2693 | ||
2694 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
698dcdb6 | 2695 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2696 | else |
698dcdb6 | 2697 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2698 | fi |
698dcdb6 | 2699 | |
10f2d63a | 2700 | |
698dcdb6 | 2701 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
b7043674 | 2702 | echo "configure:2703: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2703 | no_cache=0 |
2704 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2705 | if test "${enable_debug_cntxt+set}" = set; then | |
2706 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2707 | |
10f2d63a VZ |
2708 | if test "$enableval" = yes; then |
2709 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2710 | else | |
2711 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2712 | fi | |
698dcdb6 | 2713 | |
10f2d63a | 2714 | else |
698dcdb6 | 2715 | |
10f2d63a VZ |
2716 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2717 | if test "x$LINE" != x ; then | |
2718 | eval "DEFAULT_$LINE" | |
2719 | else | |
2720 | no_cache=1 | |
2721 | fi | |
2722 | ||
2723 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2724 | |
2725 | fi | |
10f2d63a VZ |
2726 | |
2727 | ||
2728 | eval "$ac_cv_use_debug_cntxt" | |
2729 | if test "$no_cache" != 1; then | |
2730 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2731 | fi | |
2732 | ||
2733 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
698dcdb6 | 2734 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2735 | else |
698dcdb6 | 2736 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2737 | fi |
698dcdb6 | 2738 | |
10f2d63a | 2739 | |
698dcdb6 | 2740 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
b7043674 | 2741 | echo "configure:2742: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2742 | no_cache=0 |
2743 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2744 | if test "${enable_mem_tracing+set}" = set; then | |
2745 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2746 | |
10f2d63a VZ |
2747 | if test "$enableval" = yes; then |
2748 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2749 | else | |
2750 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2751 | fi | |
698dcdb6 | 2752 | |
10f2d63a | 2753 | else |
698dcdb6 | 2754 | |
10f2d63a VZ |
2755 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2756 | if test "x$LINE" != x ; then | |
2757 | eval "DEFAULT_$LINE" | |
2758 | else | |
2759 | no_cache=1 | |
2760 | fi | |
2761 | ||
2762 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2763 | |
2764 | fi | |
10f2d63a VZ |
2765 | |
2766 | ||
2767 | eval "$ac_cv_use_mem_tracing" | |
2768 | if test "$no_cache" != 1; then | |
2769 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2770 | fi | |
2771 | ||
2772 | if test "$wxUSE_MEM_TRACING" = yes; then | |
698dcdb6 | 2773 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2774 | else |
698dcdb6 | 2775 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2776 | fi |
698dcdb6 | 2777 | |
10f2d63a | 2778 | |
698dcdb6 | 2779 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
b7043674 | 2780 | echo "configure:2781: checking for --enable-profile" >&5 |
10f2d63a VZ |
2781 | no_cache=0 |
2782 | # Check whether --enable-profile or --disable-profile was given. | |
2783 | if test "${enable_profile+set}" = set; then | |
2784 | enableval="$enable_profile" | |
698dcdb6 | 2785 | |
10f2d63a VZ |
2786 | if test "$enableval" = yes; then |
2787 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2788 | else | |
2789 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2790 | fi | |
698dcdb6 | 2791 | |
10f2d63a | 2792 | else |
698dcdb6 | 2793 | |
10f2d63a VZ |
2794 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2795 | if test "x$LINE" != x ; then | |
2796 | eval "DEFAULT_$LINE" | |
2797 | else | |
2798 | no_cache=1 | |
2799 | fi | |
2800 | ||
2801 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2802 | |
2803 | fi | |
10f2d63a VZ |
2804 | |
2805 | ||
2806 | eval "$ac_cv_use_profile" | |
2807 | if test "$no_cache" != 1; then | |
2808 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2809 | fi | |
2810 | ||
2811 | if test "$wxUSE_PROFILE" = yes; then | |
698dcdb6 | 2812 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2813 | else |
698dcdb6 | 2814 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2815 | fi |
698dcdb6 | 2816 | |
10f2d63a | 2817 | |
698dcdb6 | 2818 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
b7043674 | 2819 | echo "configure:2820: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2820 | no_cache=0 |
2821 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2822 | if test "${enable_no_rtti+set}" = set; then | |
2823 | enableval="$enable_no_rtti" | |
698dcdb6 | 2824 | |
10f2d63a VZ |
2825 | if test "$enableval" = yes; then |
2826 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2827 | else | |
2828 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2829 | fi | |
698dcdb6 | 2830 | |
10f2d63a | 2831 | else |
698dcdb6 | 2832 | |
10f2d63a VZ |
2833 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2834 | if test "x$LINE" != x ; then | |
2835 | eval "DEFAULT_$LINE" | |
2836 | else | |
2837 | no_cache=1 | |
2838 | fi | |
2839 | ||
2840 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2841 | |
2842 | fi | |
10f2d63a VZ |
2843 | |
2844 | ||
2845 | eval "$ac_cv_use_no_rtti" | |
2846 | if test "$no_cache" != 1; then | |
2847 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2848 | fi | |
2849 | ||
2850 | if test "$wxUSE_NO_RTTI" = yes; then | |
698dcdb6 | 2851 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2852 | else |
698dcdb6 | 2853 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2854 | fi |
698dcdb6 | 2855 | |
10f2d63a | 2856 | |
698dcdb6 | 2857 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
b7043674 | 2858 | echo "configure:2859: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2859 | no_cache=0 |
2860 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2861 | if test "${enable_no_exceptions+set}" = set; then | |
2862 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2863 | |
10f2d63a VZ |
2864 | if test "$enableval" = yes; then |
2865 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2866 | else | |
2867 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2868 | fi | |
698dcdb6 | 2869 | |
10f2d63a | 2870 | else |
698dcdb6 | 2871 | |
10f2d63a VZ |
2872 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2873 | if test "x$LINE" != x ; then | |
2874 | eval "DEFAULT_$LINE" | |
2875 | else | |
2876 | no_cache=1 | |
2877 | fi | |
2878 | ||
2879 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2880 | |
2881 | fi | |
10f2d63a VZ |
2882 | |
2883 | ||
2884 | eval "$ac_cv_use_no_exceptions" | |
2885 | if test "$no_cache" != 1; then | |
2886 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2887 | fi | |
2888 | ||
2889 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
698dcdb6 | 2890 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2891 | else |
698dcdb6 | 2892 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2893 | fi |
698dcdb6 | 2894 | |
10f2d63a | 2895 | |
698dcdb6 | 2896 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
b7043674 | 2897 | echo "configure:2898: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2898 | no_cache=0 |
2899 | # Check whether --enable-permissive or --disable-permissive was given. | |
2900 | if test "${enable_permissive+set}" = set; then | |
2901 | enableval="$enable_permissive" | |
698dcdb6 | 2902 | |
10f2d63a VZ |
2903 | if test "$enableval" = yes; then |
2904 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2905 | else | |
2906 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2907 | fi | |
698dcdb6 | 2908 | |
10f2d63a | 2909 | else |
698dcdb6 | 2910 | |
10f2d63a VZ |
2911 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2912 | if test "x$LINE" != x ; then | |
2913 | eval "DEFAULT_$LINE" | |
2914 | else | |
2915 | no_cache=1 | |
2916 | fi | |
2917 | ||
2918 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2919 | |
2920 | fi | |
10f2d63a VZ |
2921 | |
2922 | ||
2923 | eval "$ac_cv_use_permissive" | |
2924 | if test "$no_cache" != 1; then | |
2925 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2926 | fi | |
2927 | ||
2928 | if test "$wxUSE_PERMISSIVE" = yes; then | |
698dcdb6 | 2929 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2930 | else |
698dcdb6 | 2931 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2932 | fi |
698dcdb6 | 2933 | |
10f2d63a | 2934 | |
698dcdb6 | 2935 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
b7043674 | 2936 | echo "configure:2937: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2937 | no_cache=0 |
2938 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2939 | if test "${enable_no_deps+set}" = set; then | |
2940 | enableval="$enable_no_deps" | |
698dcdb6 | 2941 | |
10f2d63a VZ |
2942 | if test "$enableval" = yes; then |
2943 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2944 | else | |
2945 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2946 | fi | |
698dcdb6 | 2947 | |
10f2d63a | 2948 | else |
698dcdb6 | 2949 | |
10f2d63a VZ |
2950 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2951 | if test "x$LINE" != x ; then | |
2952 | eval "DEFAULT_$LINE" | |
2953 | else | |
2954 | no_cache=1 | |
2955 | fi | |
2956 | ||
2957 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2958 | |
2959 | fi | |
10f2d63a VZ |
2960 | |
2961 | ||
2962 | eval "$ac_cv_use_no_deps" | |
2963 | if test "$no_cache" != 1; then | |
2964 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2965 | fi | |
2966 | ||
2967 | if test "$wxUSE_NO_DEPS" = yes; then | |
698dcdb6 | 2968 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2969 | else |
698dcdb6 | 2970 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2971 | fi |
698dcdb6 VZ |
2972 | |
2973 | ||
10f2d63a | 2974 | |
54276ccf | 2975 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
b7043674 | 2976 | echo "configure:2977: checking for --enable-compat20" >&5 |
54276ccf VZ |
2977 | no_cache=0 |
2978 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2979 | if test "${enable_compat20+set}" = set; then | |
2980 | enableval="$enable_compat20" | |
2981 | ||
2982 | if test "$enableval" = yes; then | |
2983 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2984 | else | |
2985 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2986 | fi | |
2987 | ||
2988 | else | |
2989 | ||
2990 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2991 | if test "x$LINE" != x ; then | |
2992 | eval "DEFAULT_$LINE" | |
2993 | else | |
2994 | no_cache=1 | |
2995 | fi | |
2996 | ||
2997 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2998 | ||
2999 | fi | |
3000 | ||
3001 | ||
3002 | eval "$ac_cv_use_compat20" | |
3003 | if test "$no_cache" != 1; then | |
3004 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
3005 | fi | |
3006 | ||
3007 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
3008 | echo "$ac_t""yes" 1>&6 | |
3009 | else | |
3010 | echo "$ac_t""no" 1>&6 | |
3011 | fi | |
3012 | ||
3013 | ||
3014 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
b7043674 | 3015 | echo "configure:3016: checking for --enable-compat22" >&5 |
54276ccf VZ |
3016 | no_cache=0 |
3017 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3018 | if test "${enable_compat22+set}" = set; then | |
3019 | enableval="$enable_compat22" | |
3020 | ||
3021 | if test "$enableval" = yes; then | |
3022 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3023 | else | |
3024 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3025 | fi | |
3026 | ||
3027 | else | |
3028 | ||
3029 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
3030 | if test "x$LINE" != x ; then | |
3031 | eval "DEFAULT_$LINE" | |
3032 | else | |
3033 | no_cache=1 | |
3034 | fi | |
3035 | ||
3036 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
3037 | ||
3038 | fi | |
3039 | ||
3040 | ||
3041 | eval "$ac_cv_use_compat22" | |
3042 | if test "$no_cache" != 1; then | |
3043 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3044 | fi | |
3045 | ||
3046 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
3047 | echo "$ac_t""yes" 1>&6 | |
3048 | else | |
3049 | echo "$ac_t""no" 1>&6 | |
3050 | fi | |
3051 | ||
3052 | ||
3053 | ||
698dcdb6 VZ |
3054 | |
3055 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
b7043674 | 3056 | echo "configure:3057: checking for --enable-intl" >&5 |
10f2d63a VZ |
3057 | no_cache=0 |
3058 | # Check whether --enable-intl or --disable-intl was given. | |
3059 | if test "${enable_intl+set}" = set; then | |
3060 | enableval="$enable_intl" | |
698dcdb6 | 3061 | |
10f2d63a VZ |
3062 | if test "$enableval" = yes; then |
3063 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3064 | else | |
3065 | ac_cv_use_intl='wxUSE_INTL=no' | |
3066 | fi | |
698dcdb6 | 3067 | |
10f2d63a | 3068 | else |
698dcdb6 | 3069 | |
10f2d63a VZ |
3070 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3071 | if test "x$LINE" != x ; then | |
3072 | eval "DEFAULT_$LINE" | |
3073 | else | |
3074 | no_cache=1 | |
3075 | fi | |
3076 | ||
3077 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
3078 | |
3079 | fi | |
10f2d63a VZ |
3080 | |
3081 | ||
3082 | eval "$ac_cv_use_intl" | |
3083 | if test "$no_cache" != 1; then | |
3084 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3085 | fi | |
3086 | ||
3087 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 3088 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3089 | else |
698dcdb6 | 3090 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3091 | fi |
698dcdb6 | 3092 | |
10f2d63a | 3093 | |
698dcdb6 | 3094 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
b7043674 | 3095 | echo "configure:3096: checking for --enable-config" >&5 |
10f2d63a VZ |
3096 | no_cache=0 |
3097 | # Check whether --enable-config or --disable-config was given. | |
3098 | if test "${enable_config+set}" = set; then | |
3099 | enableval="$enable_config" | |
698dcdb6 | 3100 | |
10f2d63a VZ |
3101 | if test "$enableval" = yes; then |
3102 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3103 | else | |
3104 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3105 | fi | |
698dcdb6 | 3106 | |
10f2d63a | 3107 | else |
698dcdb6 | 3108 | |
10f2d63a VZ |
3109 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3110 | if test "x$LINE" != x ; then | |
3111 | eval "DEFAULT_$LINE" | |
3112 | else | |
3113 | no_cache=1 | |
3114 | fi | |
3115 | ||
3116 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
3117 | |
3118 | fi | |
10f2d63a VZ |
3119 | |
3120 | ||
3121 | eval "$ac_cv_use_config" | |
3122 | if test "$no_cache" != 1; then | |
3123 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3124 | fi | |
3125 | ||
3126 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 3127 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3128 | else |
698dcdb6 | 3129 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3130 | fi |
698dcdb6 VZ |
3131 | |
3132 | ||
b12915c1 | 3133 | |
a1622950 | 3134 | echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6 |
b7043674 | 3135 | echo "configure:3136: checking for --enable-protocols" >&5 |
a1622950 VZ |
3136 | no_cache=0 |
3137 | # Check whether --enable-protocols or --disable-protocols was given. | |
3138 | if test "${enable_protocols+set}" = set; then | |
3139 | enableval="$enable_protocols" | |
3140 | ||
3141 | if test "$enableval" = yes; then | |
3142 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3143 | else | |
3144 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3145 | fi | |
3146 | ||
3147 | else | |
3148 | ||
3149 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
3150 | if test "x$LINE" != x ; then | |
3151 | eval "DEFAULT_$LINE" | |
3152 | else | |
3153 | no_cache=1 | |
3154 | fi | |
3155 | ||
3156 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
3157 | ||
3158 | fi | |
3159 | ||
3160 | ||
3161 | eval "$ac_cv_use_protocols" | |
3162 | if test "$no_cache" != 1; then | |
3163 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3164 | fi | |
3165 | ||
3166 | if test "$wxUSE_PROTOCOL" = yes; then | |
3167 | echo "$ac_t""yes" 1>&6 | |
3168 | else | |
3169 | echo "$ac_t""no" 1>&6 | |
3170 | fi | |
3171 | ||
3172 | ||
3173 | echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6 | |
b7043674 | 3174 | echo "configure:3175: checking for --enable-ftp" >&5 |
a1622950 VZ |
3175 | no_cache=0 |
3176 | # Check whether --enable-ftp or --disable-ftp was given. | |
3177 | if test "${enable_ftp+set}" = set; then | |
3178 | enableval="$enable_ftp" | |
3179 | ||
3180 | if test "$enableval" = yes; then | |
3181 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3182 | else | |
3183 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3184 | fi | |
3185 | ||
3186 | else | |
3187 | ||
3188 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
3189 | if test "x$LINE" != x ; then | |
3190 | eval "DEFAULT_$LINE" | |
3191 | else | |
3192 | no_cache=1 | |
3193 | fi | |
3194 | ||
3195 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
3196 | ||
3197 | fi | |
3198 | ||
3199 | ||
3200 | eval "$ac_cv_use_ftp" | |
3201 | if test "$no_cache" != 1; then | |
3202 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3203 | fi | |
3204 | ||
3205 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
3206 | echo "$ac_t""yes" 1>&6 | |
3207 | else | |
3208 | echo "$ac_t""no" 1>&6 | |
3209 | fi | |
3210 | ||
3211 | ||
3212 | echo $ac_n "checking for --enable-http""... $ac_c" 1>&6 | |
b7043674 | 3213 | echo "configure:3214: checking for --enable-http" >&5 |
a1622950 VZ |
3214 | no_cache=0 |
3215 | # Check whether --enable-http or --disable-http was given. | |
3216 | if test "${enable_http+set}" = set; then | |
3217 | enableval="$enable_http" | |
3218 | ||
3219 | if test "$enableval" = yes; then | |
3220 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3221 | else | |
3222 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3223 | fi | |
3224 | ||
3225 | else | |
3226 | ||
3227 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
3228 | if test "x$LINE" != x ; then | |
3229 | eval "DEFAULT_$LINE" | |
3230 | else | |
3231 | no_cache=1 | |
3232 | fi | |
3233 | ||
3234 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
3235 | ||
3236 | fi | |
3237 | ||
3238 | ||
3239 | eval "$ac_cv_use_http" | |
3240 | if test "$no_cache" != 1; then | |
3241 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3242 | fi | |
3243 | ||
3244 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
3245 | echo "$ac_t""yes" 1>&6 | |
3246 | else | |
3247 | echo "$ac_t""no" 1>&6 | |
3248 | fi | |
3249 | ||
3250 | ||
3251 | echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6 | |
b7043674 | 3252 | echo "configure:3253: checking for --enable-fileproto" >&5 |
a1622950 VZ |
3253 | no_cache=0 |
3254 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3255 | if test "${enable_fileproto+set}" = set; then | |
3256 | enableval="$enable_fileproto" | |
3257 | ||
3258 | if test "$enableval" = yes; then | |
3259 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3260 | else | |
3261 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3262 | fi | |
3263 | ||
3264 | else | |
3265 | ||
3266 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
3267 | if test "x$LINE" != x ; then | |
3268 | eval "DEFAULT_$LINE" | |
3269 | else | |
3270 | no_cache=1 | |
3271 | fi | |
3272 | ||
3273 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
3274 | ||
3275 | fi | |
3276 | ||
3277 | ||
3278 | eval "$ac_cv_use_fileproto" | |
3279 | if test "$no_cache" != 1; then | |
3280 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3281 | fi | |
3282 | ||
3283 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
3284 | echo "$ac_t""yes" 1>&6 | |
3285 | else | |
3286 | echo "$ac_t""no" 1>&6 | |
3287 | fi | |
3288 | ||
3289 | ||
698dcdb6 | 3290 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
b7043674 | 3291 | echo "configure:3292: checking for --enable-sockets" >&5 |
10f2d63a VZ |
3292 | no_cache=0 |
3293 | # Check whether --enable-sockets or --disable-sockets was given. | |
3294 | if test "${enable_sockets+set}" = set; then | |
3295 | enableval="$enable_sockets" | |
698dcdb6 | 3296 | |
10f2d63a VZ |
3297 | if test "$enableval" = yes; then |
3298 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3299 | else | |
3300 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3301 | fi | |
698dcdb6 | 3302 | |
10f2d63a | 3303 | else |
698dcdb6 | 3304 | |
10f2d63a VZ |
3305 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3306 | if test "x$LINE" != x ; then | |
3307 | eval "DEFAULT_$LINE" | |
3308 | else | |
3309 | no_cache=1 | |
3310 | fi | |
3311 | ||
3312 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
3313 | |
3314 | fi | |
10f2d63a VZ |
3315 | |
3316 | ||
3317 | eval "$ac_cv_use_sockets" | |
3318 | if test "$no_cache" != 1; then | |
3319 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3320 | fi | |
3321 | ||
3322 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 3323 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3324 | else |
698dcdb6 | 3325 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3326 | fi |
698dcdb6 | 3327 | |
b12915c1 | 3328 | |
698dcdb6 VZ |
3329 | |
3330 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
b7043674 | 3331 | echo "configure:3332: checking for --enable-ipc" >&5 |
10f2d63a | 3332 | no_cache=0 |
eb4efbdc VZ |
3333 | # Check whether --enable-ipc or --disable-ipc was given. |
3334 | if test "${enable_ipc+set}" = set; then | |
3335 | enableval="$enable_ipc" | |
698dcdb6 | 3336 | |
10f2d63a | 3337 | if test "$enableval" = yes; then |
eb4efbdc | 3338 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3339 | else |
eb4efbdc | 3340 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3341 | fi |
698dcdb6 | 3342 | |
10f2d63a | 3343 | else |
698dcdb6 | 3344 | |
eb4efbdc | 3345 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3346 | if test "x$LINE" != x ; then |
3347 | eval "DEFAULT_$LINE" | |
3348 | else | |
3349 | no_cache=1 | |
3350 | fi | |
3351 | ||
eb4efbdc | 3352 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
3353 | |
3354 | fi | |
10f2d63a VZ |
3355 | |
3356 | ||
eb4efbdc | 3357 | eval "$ac_cv_use_ipc" |
10f2d63a | 3358 | if test "$no_cache" != 1; then |
eb4efbdc | 3359 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3360 | fi |
3361 | ||
eb4efbdc | 3362 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 3363 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3364 | else |
698dcdb6 | 3365 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3366 | fi |
698dcdb6 VZ |
3367 | |
3368 | ||
eb4efbdc | 3369 | |
1e6feb95 | 3370 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
b7043674 | 3371 | echo "configure:3372: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
3372 | no_cache=0 |
3373 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3374 | if test "${enable_cmdline+set}" = set; then | |
3375 | enableval="$enable_cmdline" | |
3376 | ||
3377 | if test "$enableval" = yes; then | |
3378 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3379 | else | |
3380 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3381 | fi | |
3382 | ||
3383 | else | |
3384 | ||
3385 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
3386 | if test "x$LINE" != x ; then | |
3387 | eval "DEFAULT_$LINE" | |
3388 | else | |
3389 | no_cache=1 | |
3390 | fi | |
3391 | ||
3392 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
3393 | ||
3394 | fi | |
3395 | ||
3396 | ||
3397 | eval "$ac_cv_use_cmdline" | |
3398 | if test "$no_cache" != 1; then | |
3399 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3400 | fi | |
3401 | ||
3402 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3403 | echo "$ac_t""yes" 1>&6 | |
3404 | else | |
3405 | echo "$ac_t""no" 1>&6 | |
3406 | fi | |
3407 | ||
3408 | ||
3409 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
b7043674 | 3410 | echo "configure:3411: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3411 | no_cache=0 |
3412 | # Check whether --enable-datetime or --disable-datetime was given. | |
3413 | if test "${enable_datetime+set}" = set; then | |
3414 | enableval="$enable_datetime" | |
3415 | ||
3416 | if test "$enableval" = yes; then | |
3417 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3418 | else | |
3419 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3420 | fi | |
3421 | ||
3422 | else | |
3423 | ||
3424 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3425 | if test "x$LINE" != x ; then | |
3426 | eval "DEFAULT_$LINE" | |
3427 | else | |
3428 | no_cache=1 | |
3429 | fi | |
3430 | ||
3431 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3432 | ||
3433 | fi | |
3434 | ||
3435 | ||
3436 | eval "$ac_cv_use_datetime" | |
3437 | if test "$no_cache" != 1; then | |
3438 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3439 | fi | |
3440 | ||
3441 | if test "$wxUSE_DATETIME" = yes; then | |
3442 | echo "$ac_t""yes" 1>&6 | |
3443 | else | |
3444 | echo "$ac_t""no" 1>&6 | |
3445 | fi | |
3446 | ||
3447 | ||
3448 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
b7043674 | 3449 | echo "configure:3450: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3450 | no_cache=0 |
3451 | # Check whether --enable-timedate or --disable-timedate was given. | |
3452 | if test "${enable_timedate+set}" = set; then | |
3453 | enableval="$enable_timedate" | |
3454 | ||
3455 | if test "$enableval" = yes; then | |
3456 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3457 | else | |
3458 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3459 | fi | |
3460 | ||
3461 | else | |
3462 | ||
3463 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3464 | if test "x$LINE" != x ; then | |
3465 | eval "DEFAULT_$LINE" | |
3466 | else | |
3467 | no_cache=1 | |
3468 | fi | |
3469 | ||
3470 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3471 | ||
3472 | fi | |
3473 | ||
3474 | ||
3475 | eval "$ac_cv_use_timedate" | |
3476 | if test "$no_cache" != 1; then | |
3477 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3478 | fi | |
3479 | ||
3480 | if test "$wxUSE_TIMEDATE" = yes; then | |
3481 | echo "$ac_t""yes" 1>&6 | |
3482 | else | |
3483 | echo "$ac_t""no" 1>&6 | |
3484 | fi | |
3485 | ||
3486 | ||
3487 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
b7043674 | 3488 | echo "configure:3489: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3489 | no_cache=0 |
3490 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3491 | if test "${enable_stopwatch+set}" = set; then | |
3492 | enableval="$enable_stopwatch" | |
3493 | ||
3494 | if test "$enableval" = yes; then | |
3495 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3496 | else | |
3497 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3498 | fi | |
3499 | ||
3500 | else | |
3501 | ||
3502 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3503 | if test "x$LINE" != x ; then | |
3504 | eval "DEFAULT_$LINE" | |
3505 | else | |
3506 | no_cache=1 | |
3507 | fi | |
3508 | ||
3509 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3510 | ||
3511 | fi | |
3512 | ||
3513 | ||
3514 | eval "$ac_cv_use_stopwatch" | |
3515 | if test "$no_cache" != 1; then | |
3516 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3517 | fi | |
3518 | ||
3519 | if test "$wxUSE_STOPWATCH" = yes; then | |
3520 | echo "$ac_t""yes" 1>&6 | |
3521 | else | |
3522 | echo "$ac_t""no" 1>&6 | |
3523 | fi | |
3524 | ||
3525 | ||
698dcdb6 | 3526 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
b7043674 | 3527 | echo "configure:3528: checking for --enable-dialupman" >&5 |
10f2d63a | 3528 | no_cache=0 |
eb4efbdc VZ |
3529 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3530 | if test "${enable_dialupman+set}" = set; then | |
3531 | enableval="$enable_dialupman" | |
698dcdb6 | 3532 | |
10f2d63a | 3533 | if test "$enableval" = yes; then |
eb4efbdc | 3534 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3535 | else |
eb4efbdc | 3536 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3537 | fi |
698dcdb6 | 3538 | |
10f2d63a | 3539 | else |
698dcdb6 | 3540 | |
eb4efbdc | 3541 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3542 | if test "x$LINE" != x ; then |
3543 | eval "DEFAULT_$LINE" | |
3544 | else | |
3545 | no_cache=1 | |
3546 | fi | |
3547 | ||
eb4efbdc | 3548 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3549 | |
3550 | fi | |
10f2d63a VZ |
3551 | |
3552 | ||
eb4efbdc | 3553 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3554 | if test "$no_cache" != 1; then |
eb4efbdc | 3555 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3556 | fi |
3557 | ||
eb4efbdc | 3558 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3559 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3560 | else |
698dcdb6 | 3561 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3562 | fi |
698dcdb6 | 3563 | |
10f2d63a | 3564 | |
698dcdb6 | 3565 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
b7043674 | 3566 | echo "configure:3567: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3567 | no_cache=0 |
3568 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3569 | if test "${enable_apple_ieee+set}" = set; then | |
3570 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3571 | |
10f2d63a VZ |
3572 | if test "$enableval" = yes; then |
3573 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3574 | else | |
3575 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3576 | fi | |
698dcdb6 | 3577 | |
10f2d63a | 3578 | else |
698dcdb6 | 3579 | |
10f2d63a VZ |
3580 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3581 | if test "x$LINE" != x ; then | |
3582 | eval "DEFAULT_$LINE" | |
3583 | else | |
3584 | no_cache=1 | |
3585 | fi | |
3586 | ||
3587 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3588 | |
3589 | fi | |
10f2d63a VZ |
3590 | |
3591 | ||
3592 | eval "$ac_cv_use_apple_ieee" | |
3593 | if test "$no_cache" != 1; then | |
3594 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3595 | fi | |
3596 | ||
3597 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 3598 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3599 | else |
698dcdb6 | 3600 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3601 | fi |
698dcdb6 | 3602 | |
10f2d63a | 3603 | |
1e6feb95 | 3604 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
b7043674 | 3605 | echo "configure:3606: checking for --enable-timer" >&5 |
10f2d63a | 3606 | no_cache=0 |
1e6feb95 VZ |
3607 | # Check whether --enable-timer or --disable-timer was given. |
3608 | if test "${enable_timer+set}" = set; then | |
3609 | enableval="$enable_timer" | |
698dcdb6 | 3610 | |
10f2d63a | 3611 | if test "$enableval" = yes; then |
1e6feb95 | 3612 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3613 | else |
1e6feb95 | 3614 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3615 | fi |
698dcdb6 | 3616 | |
10f2d63a | 3617 | else |
698dcdb6 | 3618 | |
1e6feb95 | 3619 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3620 | if test "x$LINE" != x ; then |
3621 | eval "DEFAULT_$LINE" | |
3622 | else | |
3623 | no_cache=1 | |
3624 | fi | |
3625 | ||
1e6feb95 | 3626 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3627 | |
3628 | fi | |
10f2d63a VZ |
3629 | |
3630 | ||
1e6feb95 | 3631 | eval "$ac_cv_use_timer" |
10f2d63a | 3632 | if test "$no_cache" != 1; then |
1e6feb95 | 3633 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3634 | fi |
3635 | ||
1e6feb95 | 3636 | if test "$wxUSE_TIMER" = yes; then |
698dcdb6 | 3637 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3638 | else |
698dcdb6 | 3639 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3640 | fi |
698dcdb6 | 3641 | |
10f2d63a | 3642 | |
698dcdb6 | 3643 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
b7043674 | 3644 | echo "configure:3645: checking for --enable-wave" >&5 |
10f2d63a VZ |
3645 | no_cache=0 |
3646 | # Check whether --enable-wave or --disable-wave was given. | |
3647 | if test "${enable_wave+set}" = set; then | |
3648 | enableval="$enable_wave" | |
698dcdb6 | 3649 | |
10f2d63a VZ |
3650 | if test "$enableval" = yes; then |
3651 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3652 | else | |
3653 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3654 | fi | |
698dcdb6 | 3655 | |
10f2d63a | 3656 | else |
698dcdb6 | 3657 | |
10f2d63a VZ |
3658 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3659 | if test "x$LINE" != x ; then | |
3660 | eval "DEFAULT_$LINE" | |
3661 | else | |
3662 | no_cache=1 | |
3663 | fi | |
3664 | ||
3665 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3666 | |
3667 | fi | |
10f2d63a VZ |
3668 | |
3669 | ||
3670 | eval "$ac_cv_use_wave" | |
3671 | if test "$no_cache" != 1; then | |
3672 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3673 | fi | |
3674 | ||
3675 | if test "$wxUSE_WAVE" = yes; then | |
698dcdb6 | 3676 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3677 | else |
698dcdb6 | 3678 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3679 | fi |
698dcdb6 | 3680 | |
10f2d63a | 3681 | |
698dcdb6 | 3682 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
b7043674 | 3683 | echo "configure:3684: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3684 | no_cache=0 |
3685 | # Check whether --enable-fraction or --disable-fraction was given. | |
3686 | if test "${enable_fraction+set}" = set; then | |
3687 | enableval="$enable_fraction" | |
698dcdb6 | 3688 | |
10f2d63a VZ |
3689 | if test "$enableval" = yes; then |
3690 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3691 | else | |
3692 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3693 | fi | |
698dcdb6 | 3694 | |
10f2d63a | 3695 | else |
698dcdb6 | 3696 | |
10f2d63a VZ |
3697 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3698 | if test "x$LINE" != x ; then | |
3699 | eval "DEFAULT_$LINE" | |
3700 | else | |
3701 | no_cache=1 | |
3702 | fi | |
3703 | ||
3704 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3705 | |
3706 | fi | |
10f2d63a VZ |
3707 | |
3708 | ||
3709 | eval "$ac_cv_use_fraction" | |
3710 | if test "$no_cache" != 1; then | |
3711 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3712 | fi | |
3713 | ||
3714 | if test "$wxUSE_FRACTION" = yes; then | |
698dcdb6 | 3715 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3716 | else |
698dcdb6 | 3717 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3718 | fi |
698dcdb6 | 3719 | |
10f2d63a | 3720 | |
698dcdb6 | 3721 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
b7043674 | 3722 | echo "configure:3723: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3723 | no_cache=0 |
3724 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3725 | if test "${enable_dynlib+set}" = set; then | |
3726 | enableval="$enable_dynlib" | |
698dcdb6 | 3727 | |
10f2d63a VZ |
3728 | if test "$enableval" = yes; then |
3729 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3730 | else | |
3731 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3732 | fi | |
698dcdb6 | 3733 | |
10f2d63a | 3734 | else |
698dcdb6 | 3735 | |
10f2d63a VZ |
3736 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3737 | if test "x$LINE" != x ; then | |
3738 | eval "DEFAULT_$LINE" | |
3739 | else | |
3740 | no_cache=1 | |
3741 | fi | |
3742 | ||
3743 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3744 | |
3745 | fi | |
10f2d63a VZ |
3746 | |
3747 | ||
3748 | eval "$ac_cv_use_dynlib" | |
3749 | if test "$no_cache" != 1; then | |
3750 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3751 | fi | |
3752 | ||
3753 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
698dcdb6 | 3754 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3755 | else |
698dcdb6 | 3756 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3757 | fi |
698dcdb6 | 3758 | |
10f2d63a | 3759 | |
0b9ab0bd | 3760 | echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6 |
b7043674 | 3761 | echo "configure:3762: checking for --enable-dynamicloader" >&5 |
0b9ab0bd RL |
3762 | no_cache=0 |
3763 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3764 | if test "${enable_dynamicloader+set}" = set; then | |
3765 | enableval="$enable_dynamicloader" | |
3766 | ||
3767 | if test "$enableval" = yes; then | |
3768 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3769 | else | |
3770 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3771 | fi | |
3772 | ||
3773 | else | |
3774 | ||
3775 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
3776 | if test "x$LINE" != x ; then | |
3777 | eval "DEFAULT_$LINE" | |
3778 | else | |
3779 | no_cache=1 | |
3780 | fi | |
3781 | ||
3782 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
3783 | ||
3784 | fi | |
3785 | ||
3786 | ||
3787 | eval "$ac_cv_use_dynamicloader" | |
3788 | if test "$no_cache" != 1; then | |
3789 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3790 | fi | |
3791 | ||
3792 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
3793 | echo "$ac_t""yes" 1>&6 | |
3794 | else | |
3795 | echo "$ac_t""no" 1>&6 | |
3796 | fi | |
3797 | ||
3798 | ||
698dcdb6 | 3799 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
b7043674 | 3800 | echo "configure:3801: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3801 | no_cache=0 |
3802 | # Check whether --enable-longlong or --disable-longlong was given. | |
3803 | if test "${enable_longlong+set}" = set; then | |
3804 | enableval="$enable_longlong" | |
698dcdb6 | 3805 | |
10f2d63a VZ |
3806 | if test "$enableval" = yes; then |
3807 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3808 | else | |
3809 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3810 | fi | |
698dcdb6 | 3811 | |
10f2d63a | 3812 | else |
698dcdb6 | 3813 | |
10f2d63a VZ |
3814 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3815 | if test "x$LINE" != x ; then | |
3816 | eval "DEFAULT_$LINE" | |
3817 | else | |
3818 | no_cache=1 | |
3819 | fi | |
3820 | ||
3821 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3822 | |
3823 | fi | |
10f2d63a VZ |
3824 | |
3825 | ||
3826 | eval "$ac_cv_use_longlong" | |
3827 | if test "$no_cache" != 1; then | |
3828 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3829 | fi | |
3830 | ||
3831 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3832 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3833 | else |
698dcdb6 | 3834 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3835 | fi |
698dcdb6 | 3836 | |
10f2d63a | 3837 | |
698dcdb6 | 3838 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
b7043674 | 3839 | echo "configure:3840: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3840 | no_cache=0 |
3841 | # Check whether --enable-geometry or --disable-geometry was given. | |
3842 | if test "${enable_geometry+set}" = set; then | |
3843 | enableval="$enable_geometry" | |
698dcdb6 | 3844 | |
e8f65ba6 RR |
3845 | if test "$enableval" = yes; then |
3846 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3847 | else | |
3848 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3849 | fi | |
698dcdb6 | 3850 | |
e8f65ba6 | 3851 | else |
698dcdb6 | 3852 | |
e8f65ba6 RR |
3853 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3854 | if test "x$LINE" != x ; then | |
3855 | eval "DEFAULT_$LINE" | |
3856 | else | |
3857 | no_cache=1 | |
3858 | fi | |
3859 | ||
3860 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3861 | |
3862 | fi | |
e8f65ba6 RR |
3863 | |
3864 | ||
3865 | eval "$ac_cv_use_geometry" | |
3866 | if test "$no_cache" != 1; then | |
3867 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3868 | fi | |
3869 | ||
3870 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3871 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3872 | else |
698dcdb6 | 3873 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3874 | fi |
698dcdb6 | 3875 | |
e8f65ba6 | 3876 | |
698dcdb6 | 3877 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
b7043674 | 3878 | echo "configure:3879: checking for --enable-log" >&5 |
10f2d63a VZ |
3879 | no_cache=0 |
3880 | # Check whether --enable-log or --disable-log was given. | |
3881 | if test "${enable_log+set}" = set; then | |
3882 | enableval="$enable_log" | |
698dcdb6 | 3883 | |
10f2d63a VZ |
3884 | if test "$enableval" = yes; then |
3885 | ac_cv_use_log='wxUSE_LOG=yes' | |
3886 | else | |
3887 | ac_cv_use_log='wxUSE_LOG=no' | |
3888 | fi | |
698dcdb6 | 3889 | |
10f2d63a | 3890 | else |
698dcdb6 | 3891 | |
10f2d63a VZ |
3892 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3893 | if test "x$LINE" != x ; then | |
3894 | eval "DEFAULT_$LINE" | |
3895 | else | |
3896 | no_cache=1 | |
3897 | fi | |
3898 | ||
3899 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3900 | |
3901 | fi | |
10f2d63a VZ |
3902 | |
3903 | ||
3904 | eval "$ac_cv_use_log" | |
3905 | if test "$no_cache" != 1; then | |
3906 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3907 | fi | |
3908 | ||
3909 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3910 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3911 | else |
698dcdb6 | 3912 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3913 | fi |
698dcdb6 | 3914 | |
10f2d63a | 3915 | |
698dcdb6 | 3916 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
b7043674 | 3917 | echo "configure:3918: checking for --enable-streams" >&5 |
10f2d63a VZ |
3918 | no_cache=0 |
3919 | # Check whether --enable-streams or --disable-streams was given. | |
3920 | if test "${enable_streams+set}" = set; then | |
3921 | enableval="$enable_streams" | |
698dcdb6 | 3922 | |
10f2d63a VZ |
3923 | if test "$enableval" = yes; then |
3924 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3925 | else | |
3926 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3927 | fi | |
698dcdb6 | 3928 | |
10f2d63a | 3929 | else |
698dcdb6 | 3930 | |
10f2d63a VZ |
3931 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3932 | if test "x$LINE" != x ; then | |
3933 | eval "DEFAULT_$LINE" | |
3934 | else | |
3935 | no_cache=1 | |
3936 | fi | |
3937 | ||
3938 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3939 | |
3940 | fi | |
10f2d63a VZ |
3941 | |
3942 | ||
3943 | eval "$ac_cv_use_streams" | |
3944 | if test "$no_cache" != 1; then | |
3945 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3946 | fi | |
3947 | ||
3948 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3949 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3950 | else |
698dcdb6 | 3951 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3952 | fi |
698dcdb6 | 3953 | |
10f2d63a | 3954 | |
698dcdb6 | 3955 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
b7043674 | 3956 | echo "configure:3957: checking for --enable-file" >&5 |
10f2d63a VZ |
3957 | no_cache=0 |
3958 | # Check whether --enable-file or --disable-file was given. | |
3959 | if test "${enable_file+set}" = set; then | |
3960 | enableval="$enable_file" | |
698dcdb6 | 3961 | |
10f2d63a VZ |
3962 | if test "$enableval" = yes; then |
3963 | ac_cv_use_file='wxUSE_FILE=yes' | |
3964 | else | |
3965 | ac_cv_use_file='wxUSE_FILE=no' | |
3966 | fi | |
698dcdb6 | 3967 | |
10f2d63a | 3968 | else |
698dcdb6 | 3969 | |
10f2d63a VZ |
3970 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3971 | if test "x$LINE" != x ; then | |
3972 | eval "DEFAULT_$LINE" | |
3973 | else | |
3974 | no_cache=1 | |
3975 | fi | |
3976 | ||
3977 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3978 | |
3979 | fi | |
10f2d63a VZ |
3980 | |
3981 | ||
3982 | eval "$ac_cv_use_file" | |
3983 | if test "$no_cache" != 1; then | |
3984 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3985 | fi | |
3986 | ||
3987 | if test "$wxUSE_FILE" = yes; then | |
698dcdb6 | 3988 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3989 | else |
698dcdb6 | 3990 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3991 | fi |
698dcdb6 | 3992 | |
10f2d63a | 3993 | |
1e6feb95 | 3994 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
b7043674 | 3995 | echo "configure:3996: checking for --enable-ffile" >&5 |
10f2d63a | 3996 | no_cache=0 |
1e6feb95 VZ |
3997 | # Check whether --enable-ffile or --disable-ffile was given. |
3998 | if test "${enable_ffile+set}" = set; then | |
3999 | enableval="$enable_ffile" | |
698dcdb6 | 4000 | |
10f2d63a | 4001 | if test "$enableval" = yes; then |
1e6feb95 | 4002 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 4003 | else |
1e6feb95 | 4004 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 4005 | fi |
698dcdb6 | 4006 | |
10f2d63a | 4007 | else |
698dcdb6 | 4008 | |
1e6feb95 | 4009 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4010 | if test "x$LINE" != x ; then |
4011 | eval "DEFAULT_$LINE" | |
4012 | else | |
4013 | no_cache=1 | |
4014 | fi | |
4015 | ||
1e6feb95 | 4016 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
4017 | |
4018 | fi | |
10f2d63a VZ |
4019 | |
4020 | ||
1e6feb95 | 4021 | eval "$ac_cv_use_ffile" |
10f2d63a | 4022 | if test "$no_cache" != 1; then |
1e6feb95 | 4023 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4024 | fi |
4025 | ||
1e6feb95 | 4026 | if test "$wxUSE_FFILE" = yes; then |
698dcdb6 | 4027 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4028 | else |
698dcdb6 | 4029 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4030 | fi |
698dcdb6 | 4031 | |
10f2d63a | 4032 | |
a3a584a7 | 4033 | echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6 |
b7043674 | 4034 | echo "configure:4035: checking for --enable-textbuf" >&5 |
a3a584a7 VZ |
4035 | no_cache=0 |
4036 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
4037 | if test "${enable_textbuf+set}" = set; then | |
4038 | enableval="$enable_textbuf" | |
4039 | ||
4040 | if test "$enableval" = yes; then | |
4041 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4042 | else | |
4043 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4044 | fi | |
4045 | ||
4046 | else | |
4047 | ||
4048 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
4049 | if test "x$LINE" != x ; then | |
4050 | eval "DEFAULT_$LINE" | |
4051 | else | |
4052 | no_cache=1 | |
4053 | fi | |
4054 | ||
4055 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
4056 | ||
4057 | fi | |
4058 | ||
4059 | ||
4060 | eval "$ac_cv_use_textbuf" | |
4061 | if test "$no_cache" != 1; then | |
4062 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4063 | fi | |
4064 | ||
4065 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
4066 | echo "$ac_t""yes" 1>&6 | |
4067 | else | |
4068 | echo "$ac_t""no" 1>&6 | |
4069 | fi | |
4070 | ||
4071 | ||
1e6feb95 | 4072 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
b7043674 | 4073 | echo "configure:4074: checking for --enable-textfile" >&5 |
10f2d63a | 4074 | no_cache=0 |
1e6feb95 VZ |
4075 | # Check whether --enable-textfile or --disable-textfile was given. |
4076 | if test "${enable_textfile+set}" = set; then | |
4077 | enableval="$enable_textfile" | |
698dcdb6 | 4078 | |
10f2d63a | 4079 | if test "$enableval" = yes; then |
1e6feb95 | 4080 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4081 | else |
1e6feb95 | 4082 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4083 | fi |
698dcdb6 | 4084 | |
10f2d63a | 4085 | else |
698dcdb6 | 4086 | |
1e6feb95 | 4087 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4088 | if test "x$LINE" != x ; then |
4089 | eval "DEFAULT_$LINE" | |
4090 | else | |
4091 | no_cache=1 | |
4092 | fi | |
4093 | ||
1e6feb95 | 4094 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
4095 | |
4096 | fi | |
10f2d63a VZ |
4097 | |
4098 | ||
1e6feb95 | 4099 | eval "$ac_cv_use_textfile" |
10f2d63a | 4100 | if test "$no_cache" != 1; then |
1e6feb95 | 4101 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4102 | fi |
4103 | ||
1e6feb95 | 4104 | if test "$wxUSE_TEXTFILE" = yes; then |
698dcdb6 | 4105 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4106 | else |
698dcdb6 | 4107 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4108 | fi |
698dcdb6 | 4109 | |
10f2d63a | 4110 | |
1e6feb95 | 4111 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
b7043674 | 4112 | echo "configure:4113: checking for --enable-fontmap" >&5 |
10f2d63a | 4113 | no_cache=0 |
1e6feb95 VZ |
4114 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4115 | if test "${enable_fontmap+set}" = set; then | |
4116 | enableval="$enable_fontmap" | |
698dcdb6 | 4117 | |
10f2d63a | 4118 | if test "$enableval" = yes; then |
1e6feb95 | 4119 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4120 | else |
1e6feb95 | 4121 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4122 | fi |
698dcdb6 | 4123 | |
10f2d63a | 4124 | else |
698dcdb6 | 4125 | |
1e6feb95 | 4126 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4127 | if test "x$LINE" != x ; then |
4128 | eval "DEFAULT_$LINE" | |
4129 | else | |
4130 | no_cache=1 | |
4131 | fi | |
4132 | ||
1e6feb95 | 4133 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
4134 | |
4135 | fi | |
10f2d63a VZ |
4136 | |
4137 | ||
1e6feb95 | 4138 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4139 | if test "$no_cache" != 1; then |
1e6feb95 | 4140 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4141 | fi |
4142 | ||
1e6feb95 | 4143 | if test "$wxUSE_FONTMAP" = yes; then |
698dcdb6 | 4144 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4145 | else |
698dcdb6 | 4146 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4147 | fi |
698dcdb6 | 4148 | |
10f2d63a | 4149 | |
1e6feb95 | 4150 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
b7043674 | 4151 | echo "configure:4152: checking for --enable-unicode" >&5 |
10f2d63a | 4152 | no_cache=0 |
1e6feb95 VZ |
4153 | # Check whether --enable-unicode or --disable-unicode was given. |
4154 | if test "${enable_unicode+set}" = set; then | |
4155 | enableval="$enable_unicode" | |
4156 | ||
4157 | if test "$enableval" = yes; then | |
4158 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4159 | else | |
4160 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4161 | fi | |
4162 | ||
4163 | else | |
4164 | ||
4165 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
4166 | if test "x$LINE" != x ; then | |
4167 | eval "DEFAULT_$LINE" | |
4168 | else | |
4169 | no_cache=1 | |
4170 | fi | |
4171 | ||
4172 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
4173 | ||
4174 | fi | |
4175 | ||
4176 | ||
4177 | eval "$ac_cv_use_unicode" | |
4178 | if test "$no_cache" != 1; then | |
4179 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4180 | fi | |
4181 | ||
4182 | if test "$wxUSE_UNICODE" = yes; then | |
4183 | echo "$ac_t""yes" 1>&6 | |
4184 | else | |
4185 | echo "$ac_t""no" 1>&6 | |
4186 | fi | |
4187 | ||
4188 | ||
a72a4bfa | 4189 | echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6 |
b7043674 | 4190 | echo "configure:4191: checking for --enable-mslu" >&5 |
a72a4bfa VS |
4191 | no_cache=0 |
4192 | # Check whether --enable-mslu or --disable-mslu was given. | |
4193 | if test "${enable_mslu+set}" = set; then | |
4194 | enableval="$enable_mslu" | |
4195 | ||
4196 | if test "$enableval" = yes; then | |
4197 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4198 | else | |
4199 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4200 | fi | |
4201 | ||
4202 | else | |
4203 | ||
4204 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
4205 | if test "x$LINE" != x ; then | |
4206 | eval "DEFAULT_$LINE" | |
4207 | else | |
4208 | no_cache=1 | |
4209 | fi | |
4210 | ||
4211 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
4212 | ||
4213 | fi | |
4214 | ||
4215 | ||
4216 | eval "$ac_cv_use_mslu" | |
4217 | if test "$no_cache" != 1; then | |
4218 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4219 | fi | |
4220 | ||
4221 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
4222 | echo "$ac_t""yes" 1>&6 | |
4223 | else | |
4224 | echo "$ac_t""no" 1>&6 | |
4225 | fi | |
4226 | ||
4227 | ||
1e6feb95 | 4228 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 |
b7043674 | 4229 | echo "configure:4230: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
4230 | no_cache=0 |
4231 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4232 | if test "${enable_wxprintfv+set}" = set; then | |
4233 | enableval="$enable_wxprintfv" | |
4234 | ||
4235 | if test "$enableval" = yes; then | |
10f2d63a VZ |
4236 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
4237 | else | |
4238 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4239 | fi | |
698dcdb6 | 4240 | |
10f2d63a | 4241 | else |
698dcdb6 | 4242 | |
10f2d63a VZ |
4243 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
4244 | if test "x$LINE" != x ; then | |
4245 | eval "DEFAULT_$LINE" | |
4246 | else | |
4247 | no_cache=1 | |
4248 | fi | |
4249 | ||
4250 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
4251 | |
4252 | fi | |
10f2d63a VZ |
4253 | |
4254 | ||
4255 | eval "$ac_cv_use_wxprintfv" | |
4256 | if test "$no_cache" != 1; then | |
4257 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4258 | fi | |
4259 | ||
4260 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 4261 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4262 | else |
698dcdb6 | 4263 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4264 | fi |
698dcdb6 | 4265 | |
10f2d63a | 4266 | |
698dcdb6 | 4267 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
b7043674 | 4268 | echo "configure:4269: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
4269 | no_cache=0 |
4270 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4271 | if test "${enable_std_iostreams+set}" = set; then | |
4272 | enableval="$enable_std_iostreams" | |
698dcdb6 | 4273 | |
10f2d63a VZ |
4274 | if test "$enableval" = yes; then |
4275 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4276 | else | |
4277 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4278 | fi | |
698dcdb6 | 4279 | |
10f2d63a | 4280 | else |
698dcdb6 | 4281 | |
10f2d63a VZ |
4282 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
4283 | if test "x$LINE" != x ; then | |
4284 | eval "DEFAULT_$LINE" | |
4285 | else | |
4286 | no_cache=1 | |
4287 | fi | |
4288 | ||
4289 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
4290 | |
4291 | fi | |
10f2d63a VZ |
4292 | |
4293 | ||
4294 | eval "$ac_cv_use_std_iostreams" | |
4295 | if test "$no_cache" != 1; then | |
4296 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4297 | fi | |
4298 | ||
4299 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 4300 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4301 | else |
698dcdb6 | 4302 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4303 | fi |
698dcdb6 | 4304 | |
10f2d63a | 4305 | |
698dcdb6 | 4306 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
b7043674 | 4307 | echo "configure:4308: checking for --enable-filesystem" >&5 |
24528b0c VS |
4308 | no_cache=0 |
4309 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4310 | if test "${enable_filesystem+set}" = set; then | |
4311 | enableval="$enable_filesystem" | |
698dcdb6 | 4312 | |
24528b0c VS |
4313 | if test "$enableval" = yes; then |
4314 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4315 | else | |
4316 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4317 | fi | |
698dcdb6 | 4318 | |
24528b0c | 4319 | else |
698dcdb6 | 4320 | |
24528b0c VS |
4321 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
4322 | if test "x$LINE" != x ; then | |
4323 | eval "DEFAULT_$LINE" | |
4324 | else | |
4325 | no_cache=1 | |
4326 | fi | |
4327 | ||
4328 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
4329 | |
4330 | fi | |
24528b0c VS |
4331 | |
4332 | ||
4333 | eval "$ac_cv_use_filesystem" | |
4334 | if test "$no_cache" != 1; then | |
4335 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4336 | fi | |
4337 | ||
4338 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 4339 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4340 | else |
698dcdb6 | 4341 | echo "$ac_t""no" 1>&6 |
24528b0c | 4342 | fi |
698dcdb6 | 4343 | |
24528b0c | 4344 | |
698dcdb6 | 4345 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
b7043674 | 4346 | echo "configure:4347: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
4347 | no_cache=0 |
4348 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4349 | if test "${enable_fs_inet+set}" = set; then | |
4350 | enableval="$enable_fs_inet" | |
698dcdb6 | 4351 | |
10f2d63a VZ |
4352 | if test "$enableval" = yes; then |
4353 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4354 | else | |
4355 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4356 | fi | |
698dcdb6 | 4357 | |
10f2d63a | 4358 | else |
698dcdb6 | 4359 | |
10f2d63a VZ |
4360 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4361 | if test "x$LINE" != x ; then | |
4362 | eval "DEFAULT_$LINE" | |
4363 | else | |
4364 | no_cache=1 | |
4365 | fi | |
4366 | ||
4367 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
4368 | |
4369 | fi | |
10f2d63a VZ |
4370 | |
4371 | ||
4372 | eval "$ac_cv_use_fs_inet" | |
4373 | if test "$no_cache" != 1; then | |
4374 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4375 | fi | |
4376 | ||
4377 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 4378 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4379 | else |
698dcdb6 | 4380 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4381 | fi |
698dcdb6 | 4382 | |
10f2d63a | 4383 | |
698dcdb6 | 4384 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
b7043674 | 4385 | echo "configure:4386: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
4386 | no_cache=0 |
4387 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4388 | if test "${enable_fs_zip+set}" = set; then | |
4389 | enableval="$enable_fs_zip" | |
698dcdb6 | 4390 | |
10f2d63a VZ |
4391 | if test "$enableval" = yes; then |
4392 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4393 | else | |
4394 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4395 | fi | |
698dcdb6 | 4396 | |
10f2d63a | 4397 | else |
698dcdb6 | 4398 | |
10f2d63a VZ |
4399 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4400 | if test "x$LINE" != x ; then | |
4401 | eval "DEFAULT_$LINE" | |
4402 | else | |
4403 | no_cache=1 | |
4404 | fi | |
4405 | ||
4406 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
4407 | |
4408 | fi | |
10f2d63a VZ |
4409 | |
4410 | ||
4411 | eval "$ac_cv_use_fs_zip" | |
4412 | if test "$no_cache" != 1; then | |
4413 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4414 | fi | |
4415 | ||
4416 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 4417 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4418 | else |
698dcdb6 | 4419 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4420 | fi |
698dcdb6 | 4421 | |
10f2d63a | 4422 | |
698dcdb6 | 4423 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
b7043674 | 4424 | echo "configure:4425: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
4425 | no_cache=0 |
4426 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4427 | if test "${enable_zipstream+set}" = set; then | |
4428 | enableval="$enable_zipstream" | |
698dcdb6 | 4429 | |
10f2d63a VZ |
4430 | if test "$enableval" = yes; then |
4431 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4432 | else | |
4433 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4434 | fi | |
698dcdb6 | 4435 | |
10f2d63a | 4436 | else |
698dcdb6 | 4437 | |
10f2d63a VZ |
4438 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4439 | if test "x$LINE" != x ; then | |
4440 | eval "DEFAULT_$LINE" | |
4441 | else | |
4442 | no_cache=1 | |
4443 | fi | |
4444 | ||
4445 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
4446 | |
4447 | fi | |
10f2d63a VZ |
4448 | |
4449 | ||
4450 | eval "$ac_cv_use_zipstream" | |
4451 | if test "$no_cache" != 1; then | |
4452 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4453 | fi | |
4454 | ||
4455 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
698dcdb6 | 4456 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4457 | else |
698dcdb6 | 4458 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4459 | fi |
698dcdb6 | 4460 | |
10f2d63a | 4461 | |
698dcdb6 VZ |
4462 | |
4463 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
b7043674 | 4464 | echo "configure:4465: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
4465 | no_cache=0 |
4466 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4467 | if test "${enable_catch_segvs+set}" = set; then | |
4468 | enableval="$enable_catch_segvs" | |
698dcdb6 | 4469 | |
eb4efbdc VZ |
4470 | if test "$enableval" = yes; then |
4471 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4472 | else | |
4473 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4474 | fi | |
698dcdb6 | 4475 | |
eb4efbdc | 4476 | else |
698dcdb6 | 4477 | |
eb4efbdc VZ |
4478 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4479 | if test "x$LINE" != x ; then | |
4480 | eval "DEFAULT_$LINE" | |
4481 | else | |
4482 | no_cache=1 | |
4483 | fi | |
4484 | ||
4485 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
4486 | |
4487 | fi | |
eb4efbdc VZ |
4488 | |
4489 | ||
4490 | eval "$ac_cv_use_catch_segvs" | |
4491 | if test "$no_cache" != 1; then | |
4492 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4493 | fi | |
4494 | ||
4495 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4496 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4497 | else |
698dcdb6 | 4498 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4499 | fi |
698dcdb6 | 4500 | |
eb4efbdc | 4501 | |
698dcdb6 | 4502 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
b7043674 | 4503 | echo "configure:4504: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4504 | no_cache=0 |
4505 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4506 | if test "${enable_snglinst+set}" = set; then | |
4507 | enableval="$enable_snglinst" | |
698dcdb6 | 4508 | |
4f3c5f06 VZ |
4509 | if test "$enableval" = yes; then |
4510 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4511 | else | |
4512 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4513 | fi | |
698dcdb6 | 4514 | |
4f3c5f06 | 4515 | else |
698dcdb6 | 4516 | |
4f3c5f06 VZ |
4517 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4518 | if test "x$LINE" != x ; then | |
4519 | eval "DEFAULT_$LINE" | |
4520 | else | |
4521 | no_cache=1 | |
4522 | fi | |
4523 | ||
4524 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4525 | |
4526 | fi | |
4f3c5f06 VZ |
4527 | |
4528 | ||
4529 | eval "$ac_cv_use_snglinst" | |
4530 | if test "$no_cache" != 1; then | |
4531 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4532 | fi | |
4533 | ||
4534 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4535 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4536 | else |
698dcdb6 | 4537 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4538 | fi |
698dcdb6 VZ |
4539 | |
4540 | ||
eb4efbdc | 4541 | |
1e6feb95 | 4542 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
b7043674 | 4543 | echo "configure:4544: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4544 | no_cache=0 |
4545 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4546 | if test "${enable_mimetype+set}" = set; then | |
4547 | enableval="$enable_mimetype" | |
4548 | ||
4549 | if test "$enableval" = yes; then | |
4550 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4551 | else | |
4552 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4553 | fi | |
4554 | ||
4555 | else | |
4556 | ||
4557 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4558 | if test "x$LINE" != x ; then | |
4559 | eval "DEFAULT_$LINE" | |
4560 | else | |
4561 | no_cache=1 | |
4562 | fi | |
4563 | ||
4564 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4565 | ||
4566 | fi | |
4567 | ||
4568 | ||
4569 | eval "$ac_cv_use_mimetype" | |
4570 | if test "$no_cache" != 1; then | |
4571 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4572 | fi | |
4573 | ||
4574 | if test "$wxUSE_MIMETYPE" = yes; then | |
4575 | echo "$ac_t""yes" 1>&6 | |
4576 | else | |
4577 | echo "$ac_t""no" 1>&6 | |
4578 | fi | |
4579 | ||
4580 | ||
3e44f09d | 4581 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 |
b7043674 | 4582 | echo "configure:4583: checking for --enable-system_options" >&5 |
3e44f09d VZ |
4583 | no_cache=0 |
4584 | # Check whether --enable-system_options or --disable-system_options was given. | |
4585 | if test "${enable_system_options+set}" = set; then | |
4586 | enableval="$enable_system_options" | |
4587 | ||
4588 | if test "$enableval" = yes; then | |
4589 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4590 | else | |
4591 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4592 | fi | |
4593 | ||
4594 | else | |
4595 | ||
4596 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
4597 | if test "x$LINE" != x ; then | |
4598 | eval "DEFAULT_$LINE" | |
4599 | else | |
4600 | no_cache=1 | |
4601 | fi | |
4602 | ||
4603 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
4604 | ||
4605 | fi | |
4606 | ||
4607 | ||
4608 | eval "$ac_cv_use_system_options" | |
4609 | if test "$no_cache" != 1; then | |
4610 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4611 | fi | |
4612 | ||
4613 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
4614 | echo "$ac_t""yes" 1>&6 | |
4615 | else | |
4616 | echo "$ac_t""no" 1>&6 | |
4617 | fi | |
4618 | ||
4619 | ||
1e6feb95 | 4620 | |
4cdb0ab0 | 4621 | echo $ac_n "checking for --enable-url""... $ac_c" 1>&6 |
b7043674 | 4622 | echo "configure:4623: checking for --enable-url" >&5 |
4cdb0ab0 VS |
4623 | no_cache=0 |
4624 | # Check whether --enable-url or --disable-url was given. | |
4625 | if test "${enable_url+set}" = set; then | |
4626 | enableval="$enable_url" | |
4627 | ||
4628 | if test "$enableval" = yes; then | |
4629 | ac_cv_use_url='wxUSE_URL=yes' | |
4630 | else | |
4631 | ac_cv_use_url='wxUSE_URL=no' | |
4632 | fi | |
4633 | ||
4634 | else | |
4635 | ||
4636 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
4637 | if test "x$LINE" != x ; then | |
4638 | eval "DEFAULT_$LINE" | |
4639 | else | |
4640 | no_cache=1 | |
4641 | fi | |
4642 | ||
4643 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
4644 | ||
4645 | fi | |
4646 | ||
4647 | ||
4648 | eval "$ac_cv_use_url" | |
4649 | if test "$no_cache" != 1; then | |
4650 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
4651 | fi | |
4652 | ||
4653 | if test "$wxUSE_URL" = yes; then | |
4654 | echo "$ac_t""yes" 1>&6 | |
4655 | else | |
4656 | echo "$ac_t""no" 1>&6 | |
4657 | fi | |
4658 | ||
4659 | ||
4660 | echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6 | |
b7043674 | 4661 | echo "configure:4662: checking for --enable-protocol" >&5 |
4cdb0ab0 VS |
4662 | no_cache=0 |
4663 | # Check whether --enable-protocol or --disable-protocol was given. | |
4664 | if test "${enable_protocol+set}" = set; then | |
4665 | enableval="$enable_protocol" | |
4666 | ||
4667 | if test "$enableval" = yes; then | |
4668 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
4669 | else | |
4670 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
4671 | fi | |
4672 | ||
4673 | else | |
4674 | ||
4675 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4676 | if test "x$LINE" != x ; then | |
4677 | eval "DEFAULT_$LINE" | |
4678 | else | |
4679 | no_cache=1 | |
4680 | fi | |
4681 | ||
4682 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4683 | ||
4684 | fi | |
4685 | ||
4686 | ||
4687 | eval "$ac_cv_use_protocol" | |
4688 | if test "$no_cache" != 1; then | |
4689 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
4690 | fi | |
4691 | ||
4692 | if test "$wxUSE_PROTOCOL" = yes; then | |
4693 | echo "$ac_t""yes" 1>&6 | |
4694 | else | |
4695 | echo "$ac_t""no" 1>&6 | |
4696 | fi | |
4697 | ||
4698 | ||
4699 | echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6 | |
b7043674 | 4700 | echo "configure:4701: checking for --enable-protocol_http" >&5 |
4cdb0ab0 VS |
4701 | no_cache=0 |
4702 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
4703 | if test "${enable_protocol_http+set}" = set; then | |
4704 | enableval="$enable_protocol_http" | |
4705 | ||
4706 | if test "$enableval" = yes; then | |
4707 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
4708 | else | |
4709 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
4710 | fi | |
4711 | ||
4712 | else | |
4713 | ||
4714 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4715 | if test "x$LINE" != x ; then | |
4716 | eval "DEFAULT_$LINE" | |
4717 | else | |
4718 | no_cache=1 | |
4719 | fi | |
4720 | ||
4721 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4722 | ||
4723 | fi | |
4724 | ||
4725 | ||
4726 | eval "$ac_cv_use_protocol_http" | |
4727 | if test "$no_cache" != 1; then | |
4728 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
4729 | fi | |
4730 | ||
4731 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4732 | echo "$ac_t""yes" 1>&6 | |
4733 | else | |
4734 | echo "$ac_t""no" 1>&6 | |
4735 | fi | |
4736 | ||
4737 | ||
4738 | echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6 | |
b7043674 | 4739 | echo "configure:4740: checking for --enable-protocol_ftp" >&5 |
4cdb0ab0 VS |
4740 | no_cache=0 |
4741 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
4742 | if test "${enable_protocol_ftp+set}" = set; then | |
4743 | enableval="$enable_protocol_ftp" | |
4744 | ||
4745 | if test "$enableval" = yes; then | |
4746 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4747 | else | |
4748 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
4749 | fi | |
4750 | ||
4751 | else | |
4752 | ||
4753 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4754 | if test "x$LINE" != x ; then | |
4755 | eval "DEFAULT_$LINE" | |
4756 | else | |
4757 | no_cache=1 | |
4758 | fi | |
4759 | ||
4760 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4761 | ||
4762 | fi | |
4763 | ||
4764 | ||
4765 | eval "$ac_cv_use_protocol_ftp" | |
4766 | if test "$no_cache" != 1; then | |
4767 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
4768 | fi | |
4769 | ||
4770 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4771 | echo "$ac_t""yes" 1>&6 | |
4772 | else | |
4773 | echo "$ac_t""no" 1>&6 | |
4774 | fi | |
4775 | ||
4776 | ||
4777 | echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6 | |
b7043674 | 4778 | echo "configure:4779: checking for --enable-protocol_file" >&5 |
4cdb0ab0 VS |
4779 | no_cache=0 |
4780 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
4781 | if test "${enable_protocol_file+set}" = set; then | |
4782 | enableval="$enable_protocol_file" | |
4783 | ||
4784 | if test "$enableval" = yes; then | |
4785 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
4786 | else | |
4787 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
4788 | fi | |
4789 | ||
4790 | else | |
4791 | ||
4792 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4793 | if test "x$LINE" != x ; then | |
4794 | eval "DEFAULT_$LINE" | |
4795 | else | |
4796 | no_cache=1 | |
4797 | fi | |
4798 | ||
4799 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4800 | ||
4801 | fi | |
4802 | ||
4803 | ||
4804 | eval "$ac_cv_use_protocol_file" | |
4805 | if test "$no_cache" != 1; then | |
4806 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
4807 | fi | |
4808 | ||
4809 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4810 | echo "$ac_t""yes" 1>&6 | |
4811 | else | |
4812 | echo "$ac_t""no" 1>&6 | |
4813 | fi | |
4814 | ||
4815 | ||
4816 | ||
4817 | ||
698dcdb6 VZ |
4818 | |
4819 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
b7043674 | 4820 | echo "configure:4821: checking for --enable-threads" >&5 |
10f2d63a VZ |
4821 | no_cache=0 |
4822 | # Check whether --enable-threads or --disable-threads was given. | |
4823 | if test "${enable_threads+set}" = set; then | |
4824 | enableval="$enable_threads" | |
698dcdb6 | 4825 | |
10f2d63a VZ |
4826 | if test "$enableval" = yes; then |
4827 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4828 | else | |
4829 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4830 | fi | |
698dcdb6 | 4831 | |
10f2d63a | 4832 | else |
698dcdb6 | 4833 | |
10f2d63a VZ |
4834 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4835 | if test "x$LINE" != x ; then | |
4836 | eval "DEFAULT_$LINE" | |
4837 | else | |
4838 | no_cache=1 | |
4839 | fi | |
4840 | ||
4841 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4842 | |
4843 | fi | |
10f2d63a VZ |
4844 | |
4845 | ||
4846 | eval "$ac_cv_use_threads" | |
4847 | if test "$no_cache" != 1; then | |
4848 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4849 | fi | |
4850 | ||
4851 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4852 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4853 | else |
698dcdb6 | 4854 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4855 | fi |
698dcdb6 | 4856 | |
10f2d63a | 4857 | |
b12915c1 VZ |
4858 | if test "$wxUSE_GUI" = "yes"; then |
4859 | ||
698dcdb6 VZ |
4860 | |
4861 | ||
4862 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
b7043674 | 4863 | echo "configure:4864: checking for --enable-docview" >&5 |
10f2d63a VZ |
4864 | no_cache=0 |
4865 | # Check whether --enable-docview or --disable-docview was given. | |
4866 | if test "${enable_docview+set}" = set; then | |
4867 | enableval="$enable_docview" | |
698dcdb6 | 4868 | |
10f2d63a VZ |
4869 | if test "$enableval" = yes; then |
4870 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4871 | else | |
4872 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4873 | fi | |
698dcdb6 | 4874 | |
10f2d63a | 4875 | else |
698dcdb6 | 4876 | |
10f2d63a VZ |
4877 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4878 | if test "x$LINE" != x ; then | |
4879 | eval "DEFAULT_$LINE" | |
4880 | else | |
4881 | no_cache=1 | |
4882 | fi | |
4883 | ||
4884 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4885 | |
4886 | fi | |
10f2d63a VZ |
4887 | |
4888 | ||
4889 | eval "$ac_cv_use_docview" | |
4890 | if test "$no_cache" != 1; then | |
4891 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4892 | fi | |
4893 | ||
4894 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4895 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4896 | else |
698dcdb6 | 4897 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4898 | fi |
698dcdb6 | 4899 | |
10f2d63a | 4900 | |
698dcdb6 | 4901 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
b7043674 | 4902 | echo "configure:4903: checking for --enable-help" >&5 |
10f2d63a VZ |
4903 | no_cache=0 |
4904 | # Check whether --enable-help or --disable-help was given. | |
4905 | if test "${enable_help+set}" = set; then | |
4906 | enableval="$enable_help" | |
698dcdb6 | 4907 | |
10f2d63a VZ |
4908 | if test "$enableval" = yes; then |
4909 | ac_cv_use_help='wxUSE_HELP=yes' | |
4910 | else | |
4911 | ac_cv_use_help='wxUSE_HELP=no' | |
4912 | fi | |
698dcdb6 | 4913 | |
10f2d63a | 4914 | else |
698dcdb6 | 4915 | |
10f2d63a VZ |
4916 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4917 | if test "x$LINE" != x ; then | |
4918 | eval "DEFAULT_$LINE" | |
4919 | else | |
4920 | no_cache=1 | |
4921 | fi | |
4922 | ||
4923 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4924 | |
4925 | fi | |
10f2d63a VZ |
4926 | |
4927 | ||
4928 | eval "$ac_cv_use_help" | |
4929 | if test "$no_cache" != 1; then | |
4930 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4931 | fi | |
4932 | ||
4933 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 4934 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4935 | else |
698dcdb6 | 4936 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4937 | fi |
698dcdb6 | 4938 | |
10f2d63a | 4939 | |
29fd3c0c | 4940 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 |
b7043674 | 4941 | echo "configure:4942: checking for --enable-mshtmlhelp" >&5 |
29fd3c0c VS |
4942 | no_cache=0 |
4943 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4944 | if test "${enable_mshtmlhelp+set}" = set; then | |
4945 | enableval="$enable_mshtmlhelp" | |
4946 | ||
4947 | if test "$enableval" = yes; then | |
4948 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4949 | else | |
4950 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4951 | fi | |
4952 | ||
4953 | else | |
4954 | ||
4955 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
4956 | if test "x$LINE" != x ; then | |
4957 | eval "DEFAULT_$LINE" | |
4958 | else | |
4959 | no_cache=1 | |
4960 | fi | |
4961 | ||
4962 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
4963 | ||
4964 | fi | |
4965 | ||
4966 | ||
4967 | eval "$ac_cv_use_mshtmlhelp" | |
4968 | if test "$no_cache" != 1; then | |
4969 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4970 | fi | |
4971 | ||
4972 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
4973 | echo "$ac_t""yes" 1>&6 | |
4974 | else | |
4975 | echo "$ac_t""no" 1>&6 | |
4976 | fi | |
4977 | ||
4978 | ||
3379ed37 | 4979 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
b7043674 | 4980 | echo "configure:4981: checking for --enable-html" >&5 |
3379ed37 VZ |
4981 | no_cache=0 |
4982 | # Check whether --enable-html or --disable-html was given. | |
4983 | if test "${enable_html+set}" = set; then | |
4984 | enableval="$enable_html" | |
4985 | ||
4986 | if test "$enableval" = yes; then | |
4987 | ac_cv_use_html='wxUSE_HTML=yes' | |
4988 | else | |
4989 | ac_cv_use_html='wxUSE_HTML=no' | |
4990 | fi | |
4991 | ||
4992 | else | |
4993 | ||
4994 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
4995 | if test "x$LINE" != x ; then | |
4996 | eval "DEFAULT_$LINE" | |
4997 | else | |
4998 | no_cache=1 | |
4999 | fi | |
5000 | ||
5001 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
5002 | ||
5003 | fi | |
5004 | ||
5005 | ||
5006 | eval "$ac_cv_use_html" | |
5007 | if test "$no_cache" != 1; then | |
5008 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5009 | fi | |
5010 | ||
5011 | if test "$wxUSE_HTML" = yes; then | |
5012 | echo "$ac_t""yes" 1>&6 | |
5013 | else | |
5014 | echo "$ac_t""no" 1>&6 | |
5015 | fi | |
5016 | ||
5017 | ||
5018 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 | |
b7043674 | 5019 | echo "configure:5020: checking for --enable-htmlhelp" >&5 |
3379ed37 VZ |
5020 | no_cache=0 |
5021 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
5022 | if test "${enable_htmlhelp+set}" = set; then | |
5023 | enableval="$enable_htmlhelp" | |
5024 | ||
5025 | if test "$enableval" = yes; then | |
5026 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
5027 | else | |
5028 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
5029 | fi | |
5030 | ||
5031 | else | |
5032 | ||
5033 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
5034 | if test "x$LINE" != x ; then | |
5035 | eval "DEFAULT_$LINE" | |
5036 | else | |
5037 | no_cache=1 | |
5038 | fi | |
5039 | ||
5040 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
5041 | ||
5042 | fi | |
5043 | ||
5044 | ||
5045 | eval "$ac_cv_use_htmlhelp" | |
5046 | if test "$no_cache" != 1; then | |
5047 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5048 | fi | |
5049 | ||
5050 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
5051 | echo "$ac_t""yes" 1>&6 | |
5052 | else | |
5053 | echo "$ac_t""no" 1>&6 | |
5054 | fi | |
5055 | ||
5056 | ||
698dcdb6 | 5057 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
b7043674 | 5058 | echo "configure:5059: checking for --enable-constraints" >&5 |
10f2d63a VZ |
5059 | no_cache=0 |
5060 | # Check whether --enable-constraints or --disable-constraints was given. | |
5061 | if test "${enable_constraints+set}" = set; then | |
5062 | enableval="$enable_constraints" | |
698dcdb6 | 5063 | |
10f2d63a VZ |
5064 | if test "$enableval" = yes; then |
5065 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5066 | else | |
5067 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5068 | fi | |
698dcdb6 | 5069 | |
10f2d63a | 5070 | else |
698dcdb6 | 5071 | |
10f2d63a VZ |
5072 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5073 | if test "x$LINE" != x ; then | |
5074 | eval "DEFAULT_$LINE" | |
5075 | else | |
5076 | no_cache=1 | |
5077 | fi | |
5078 | ||
5079 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
5080 | |
5081 | fi | |
10f2d63a VZ |
5082 | |
5083 | ||
5084 | eval "$ac_cv_use_constraints" | |
5085 | if test "$no_cache" != 1; then | |
5086 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5087 | fi | |
5088 | ||
5089 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 5090 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5091 | else |
698dcdb6 | 5092 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5093 | fi |
698dcdb6 | 5094 | |
10f2d63a | 5095 | |
698dcdb6 | 5096 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
b7043674 | 5097 | echo "configure:5098: checking for --enable-printarch" >&5 |
10f2d63a VZ |
5098 | no_cache=0 |
5099 | # Check whether --enable-printarch or --disable-printarch was given. | |
5100 | if test "${enable_printarch+set}" = set; then | |
5101 | enableval="$enable_printarch" | |
698dcdb6 | 5102 | |
10f2d63a VZ |
5103 | if test "$enableval" = yes; then |
5104 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5105 | else | |
5106 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5107 | fi | |
698dcdb6 | 5108 | |
10f2d63a | 5109 | else |
698dcdb6 | 5110 | |
10f2d63a VZ |
5111 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5112 | if test "x$LINE" != x ; then | |
5113 | eval "DEFAULT_$LINE" | |
5114 | else | |
5115 | no_cache=1 | |
5116 | fi | |
5117 | ||
5118 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
5119 | |
5120 | fi | |
10f2d63a VZ |
5121 | |
5122 | ||
5123 | eval "$ac_cv_use_printarch" | |
5124 | if test "$no_cache" != 1; then | |
5125 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5126 | fi | |
5127 | ||
5128 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
698dcdb6 | 5129 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5130 | else |
698dcdb6 | 5131 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5132 | fi |
698dcdb6 | 5133 | |
10f2d63a | 5134 | |
698dcdb6 | 5135 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
b7043674 | 5136 | echo "configure:5137: checking for --enable-mdi" >&5 |
10f2d63a VZ |
5137 | no_cache=0 |
5138 | # Check whether --enable-mdi or --disable-mdi was given. | |
5139 | if test "${enable_mdi+set}" = set; then | |
5140 | enableval="$enable_mdi" | |
698dcdb6 | 5141 | |
10f2d63a VZ |
5142 | if test "$enableval" = yes; then |
5143 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5144 | else | |
5145 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5146 | fi | |
698dcdb6 | 5147 | |
10f2d63a | 5148 | else |
698dcdb6 | 5149 | |
10f2d63a VZ |
5150 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
5151 | if test "x$LINE" != x ; then | |
5152 | eval "DEFAULT_$LINE" | |
5153 | else | |
5154 | no_cache=1 | |
5155 | fi | |
5156 | ||
5157 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
5158 | |
5159 | fi | |
10f2d63a VZ |
5160 | |
5161 | ||
5162 | eval "$ac_cv_use_mdi" | |
5163 | if test "$no_cache" != 1; then | |
5164 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5165 | fi | |
5166 | ||
5167 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
698dcdb6 | 5168 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5169 | else |
698dcdb6 | 5170 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5171 | fi |
698dcdb6 VZ |
5172 | |
5173 | ||
1e6feb95 | 5174 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
b7043674 | 5175 | echo "configure:5176: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
5176 | no_cache=0 |
5177 | # Check whether --enable-loggui or --disable-loggui was given. | |
5178 | if test "${enable_loggui+set}" = set; then | |
5179 | enableval="$enable_loggui" | |
5180 | ||
5181 | if test "$enableval" = yes; then | |
5182 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5183 | else | |
5184 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5185 | fi | |
5186 | ||
5187 | else | |
5188 | ||
5189 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
5190 | if test "x$LINE" != x ; then | |
5191 | eval "DEFAULT_$LINE" | |
5192 | else | |
5193 | no_cache=1 | |
5194 | fi | |
5195 | ||
5196 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
5197 | ||
5198 | fi | |
5199 | ||
5200 | ||
5201 | eval "$ac_cv_use_loggui" | |
5202 | if test "$no_cache" != 1; then | |
5203 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5204 | fi | |
5205 | ||
5206 | if test "$wxUSE_LOGGUI" = yes; then | |
5207 | echo "$ac_t""yes" 1>&6 | |
5208 | else | |
5209 | echo "$ac_t""no" 1>&6 | |
5210 | fi | |
5211 | ||
5212 | ||
5213 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
b7043674 | 5214 | echo "configure:5215: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
5215 | no_cache=0 |
5216 | # Check whether --enable-logwin or --disable-logwin was given. | |
5217 | if test "${enable_logwin+set}" = set; then | |
5218 | enableval="$enable_logwin" | |
5219 | ||
5220 | if test "$enableval" = yes; then | |
5221 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5222 | else | |
5223 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5224 | fi | |
5225 | ||
5226 | else | |
5227 | ||
5228 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
5229 | if test "x$LINE" != x ; then | |
5230 | eval "DEFAULT_$LINE" | |
5231 | else | |
5232 | no_cache=1 | |
5233 | fi | |
5234 | ||
5235 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
5236 | ||
5237 | fi | |
5238 | ||
5239 | ||
5240 | eval "$ac_cv_use_logwin" | |
5241 | if test "$no_cache" != 1; then | |
5242 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5243 | fi | |
5244 | ||
5245 | if test "$wxUSE_LOGWINDOW" = yes; then | |
5246 | echo "$ac_t""yes" 1>&6 | |
5247 | else | |
5248 | echo "$ac_t""no" 1>&6 | |
5249 | fi | |
5250 | ||
5251 | ||
69d27ff7 | 5252 | echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6 |
b7043674 | 5253 | echo "configure:5254: checking for --enable-logdialog" >&5 |
69d27ff7 MB |
5254 | no_cache=0 |
5255 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5256 | if test "${enable_logdialog+set}" = set; then | |
5257 | enableval="$enable_logdialog" | |
5258 | ||
5259 | if test "$enableval" = yes; then | |
5260 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5261 | else | |
5262 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5263 | fi | |
5264 | ||
5265 | else | |
5266 | ||
5267 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
5268 | if test "x$LINE" != x ; then | |
5269 | eval "DEFAULT_$LINE" | |
5270 | else | |
5271 | no_cache=1 | |
5272 | fi | |
5273 | ||
5274 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
5275 | ||
5276 | fi | |
5277 | ||
5278 | ||
5279 | eval "$ac_cv_use_logdialog" | |
5280 | if test "$no_cache" != 1; then | |
5281 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5282 | fi | |
5283 | ||
5284 | if test "$wxUSE_LOGDIALOG" = yes; then | |
5285 | echo "$ac_t""yes" 1>&6 | |
5286 | else | |
5287 | echo "$ac_t""no" 1>&6 | |
5288 | fi | |
5289 | ||
5290 | ||
10f2d63a | 5291 | |
698dcdb6 | 5292 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
b7043674 | 5293 | echo "configure:5294: checking for --enable-postscript" >&5 |
10f2d63a VZ |
5294 | no_cache=0 |
5295 | # Check whether --enable-postscript or --disable-postscript was given. | |
5296 | if test "${enable_postscript+set}" = set; then | |
5297 | enableval="$enable_postscript" | |
698dcdb6 | 5298 | |
10f2d63a VZ |
5299 | if test "$enableval" = yes; then |
5300 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5301 | else | |
5302 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5303 | fi | |
698dcdb6 | 5304 | |
10f2d63a | 5305 | else |
698dcdb6 | 5306 | |
10f2d63a VZ |
5307 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
5308 | if test "x$LINE" != x ; then | |
5309 | eval "DEFAULT_$LINE" | |
5310 | else | |
5311 | no_cache=1 | |
5312 | fi | |
5313 | ||
5314 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
5315 | |
5316 | fi | |
10f2d63a VZ |
5317 | |
5318 | ||
5319 | eval "$ac_cv_use_postscript" | |
5320 | if test "$no_cache" != 1; then | |
5321 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5322 | fi | |
5323 | ||
5324 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 5325 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5326 | else |
698dcdb6 | 5327 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5328 | fi |
698dcdb6 VZ |
5329 | |
5330 | ||
5331 | ||
10f2d63a | 5332 | |
1e6feb95 | 5333 | |
698dcdb6 | 5334 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
b7043674 | 5335 | echo "configure:5336: checking for --enable-prologio" >&5 |
10f2d63a VZ |
5336 | no_cache=0 |
5337 | # Check whether --enable-prologio or --disable-prologio was given. | |
5338 | if test "${enable_prologio+set}" = set; then | |
5339 | enableval="$enable_prologio" | |
698dcdb6 | 5340 | |
10f2d63a VZ |
5341 | if test "$enableval" = yes; then |
5342 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
5343 | else | |
5344 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
5345 | fi | |
698dcdb6 | 5346 | |
10f2d63a | 5347 | else |
698dcdb6 | 5348 | |
10f2d63a VZ |
5349 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
5350 | if test "x$LINE" != x ; then | |
5351 | eval "DEFAULT_$LINE" | |
5352 | else | |
5353 | no_cache=1 | |
5354 | fi | |
5355 | ||
5356 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
5357 | |
5358 | fi | |
10f2d63a VZ |
5359 | |
5360 | ||
5361 | eval "$ac_cv_use_prologio" | |
5362 | if test "$no_cache" != 1; then | |
5363 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
5364 | fi | |
5365 | ||
5366 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 5367 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5368 | else |
698dcdb6 | 5369 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5370 | fi |
698dcdb6 | 5371 | |
10f2d63a | 5372 | |
698dcdb6 | 5373 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
b7043674 | 5374 | echo "configure:5375: checking for --enable-resources" >&5 |
10f2d63a VZ |
5375 | no_cache=0 |
5376 | # Check whether --enable-resources or --disable-resources was given. | |
5377 | if test "${enable_resources+set}" = set; then | |
5378 | enableval="$enable_resources" | |
698dcdb6 | 5379 | |
10f2d63a VZ |
5380 | if test "$enableval" = yes; then |
5381 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
5382 | else | |
5383 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
5384 | fi | |
698dcdb6 | 5385 | |
10f2d63a | 5386 | else |
698dcdb6 | 5387 | |
10f2d63a VZ |
5388 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
5389 | if test "x$LINE" != x ; then | |
5390 | eval "DEFAULT_$LINE" | |
5391 | else | |
5392 | no_cache=1 | |
5393 | fi | |
5394 | ||
5395 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
5396 | |
5397 | fi | |
10f2d63a VZ |
5398 | |
5399 | ||
5400 | eval "$ac_cv_use_resources" | |
5401 | if test "$no_cache" != 1; then | |
5402 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
5403 | fi | |
5404 | ||
5405 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 5406 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5407 | else |
698dcdb6 | 5408 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5409 | fi |
698dcdb6 | 5410 | |
10f2d63a | 5411 | |
698dcdb6 VZ |
5412 | |
5413 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
b7043674 | 5414 | echo "configure:5415: checking for --enable-xresources" >&5 |
10f2d63a VZ |
5415 | no_cache=0 |
5416 | # Check whether --enable-xresources or --disable-xresources was given. | |
5417 | if test "${enable_xresources+set}" = set; then | |
5418 | enableval="$enable_xresources" | |
698dcdb6 | 5419 | |
10f2d63a VZ |
5420 | if test "$enableval" = yes; then |
5421 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5422 | else | |
5423 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5424 | fi | |
698dcdb6 | 5425 | |
10f2d63a | 5426 | else |
698dcdb6 | 5427 | |
10f2d63a VZ |
5428 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
5429 | if test "x$LINE" != x ; then | |
5430 | eval "DEFAULT_$LINE" | |
5431 | else | |
5432 | no_cache=1 | |
5433 | fi | |
5434 | ||
5435 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
5436 | |
5437 | fi | |
10f2d63a VZ |
5438 | |
5439 | ||
5440 | eval "$ac_cv_use_xresources" | |
5441 | if test "$no_cache" != 1; then | |
5442 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5443 | fi | |
5444 | ||
5445 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 5446 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5447 | else |
698dcdb6 | 5448 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5449 | fi |
698dcdb6 VZ |
5450 | |
5451 | ||
10f2d63a | 5452 | |
698dcdb6 VZ |
5453 | |
5454 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
b7043674 | 5455 | echo "configure:5456: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
5456 | no_cache=0 |
5457 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5458 | if test "${enable_clipboard+set}" = set; then | |
5459 | enableval="$enable_clipboard" | |
698dcdb6 | 5460 | |
10f2d63a VZ |
5461 | if test "$enableval" = yes; then |
5462 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5463 | else | |
5464 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5465 | fi | |
698dcdb6 | 5466 | |
10f2d63a | 5467 | else |
698dcdb6 | 5468 | |
10f2d63a VZ |
5469 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
5470 | if test "x$LINE" != x ; then | |
5471 | eval "DEFAULT_$LINE" | |
5472 | else | |
5473 | no_cache=1 | |
5474 | fi | |
5475 | ||
5476 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
5477 | |
5478 | fi | |
10f2d63a VZ |
5479 | |
5480 | ||
5481 | eval "$ac_cv_use_clipboard" | |
5482 | if test "$no_cache" != 1; then | |
5483 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5484 | fi | |
5485 | ||
5486 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 5487 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5488 | else |
698dcdb6 | 5489 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5490 | fi |
698dcdb6 | 5491 | |
10f2d63a | 5492 | |
698dcdb6 | 5493 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
b7043674 | 5494 | echo "configure:5495: checking for --enable-dnd" >&5 |
10f2d63a VZ |
5495 | no_cache=0 |
5496 | # Check whether --enable-dnd or --disable-dnd was given. | |
5497 | if test "${enable_dnd+set}" = set; then | |
5498 | enableval="$enable_dnd" | |
698dcdb6 | 5499 | |
10f2d63a VZ |
5500 | if test "$enableval" = yes; then |
5501 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5502 | else | |
5503 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5504 | fi | |
698dcdb6 | 5505 | |
10f2d63a | 5506 | else |
698dcdb6 | 5507 | |
10f2d63a VZ |
5508 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
5509 | if test "x$LINE" != x ; then | |
5510 | eval "DEFAULT_$LINE" | |
5511 | else | |
5512 | no_cache=1 | |
5513 | fi | |
5514 | ||
5515 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
5516 | |
5517 | fi | |
10f2d63a VZ |
5518 | |
5519 | ||
5520 | eval "$ac_cv_use_dnd" | |
5521 | if test "$no_cache" != 1; then | |
5522 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5523 | fi | |
5524 | ||
5525 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 5526 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5527 | else |
698dcdb6 | 5528 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5529 | fi |
698dcdb6 | 5530 | |
10f2d63a | 5531 | |
698dcdb6 | 5532 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
b7043674 | 5533 | echo "configure:5534: checking for --enable-metafile" >&5 |
b64f0a5f RL |
5534 | no_cache=0 |
5535 | # Check whether --enable-metafile or --disable-metafile was given. | |
5536 | if test "${enable_metafile+set}" = set; then | |
5537 | enableval="$enable_metafile" | |
698dcdb6 | 5538 | |
b64f0a5f RL |
5539 | if test "$enableval" = yes; then |
5540 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5541 | else | |
5542 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5543 | fi | |
698dcdb6 | 5544 | |
b64f0a5f | 5545 | else |
698dcdb6 | 5546 | |
b64f0a5f RL |
5547 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
5548 | if test "x$LINE" != x ; then | |
5549 | eval "DEFAULT_$LINE" | |
5550 | else | |
5551 | no_cache=1 | |
5552 | fi | |
5553 | ||
5554 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
5555 | |
5556 | fi | |
b64f0a5f RL |
5557 | |
5558 | ||
5559 | eval "$ac_cv_use_metafile" | |
5560 | if test "$no_cache" != 1; then | |
5561 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5562 | fi | |
5563 | ||
5564 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 5565 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5566 | else |
698dcdb6 | 5567 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5568 | fi |
698dcdb6 VZ |
5569 | |
5570 | ||
10f2d63a | 5571 | |
24176f2c | 5572 | echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6 |
b7043674 | 5573 | echo "configure:5574: checking for --enable-treelayout" >&5 |
10f2d63a | 5574 | no_cache=0 |
24176f2c GD |
5575 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5576 | if test "${enable_treelayout+set}" = set; then | |
5577 | enableval="$enable_treelayout" | |
698dcdb6 | 5578 | |
10f2d63a | 5579 | if test "$enableval" = yes; then |
24176f2c | 5580 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5581 | else |
24176f2c | 5582 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5583 | fi |
698dcdb6 | 5584 | |
10f2d63a | 5585 | else |
698dcdb6 | 5586 | |
24176f2c | 5587 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5588 | if test "x$LINE" != x ; then |
5589 | eval "DEFAULT_$LINE" | |
5590 | else | |
5591 | no_cache=1 | |
5592 | fi | |
5593 | ||
24176f2c | 5594 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
698dcdb6 VZ |
5595 | |
5596 | fi | |
10f2d63a VZ |
5597 | |
5598 | ||
24176f2c | 5599 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5600 | if test "$no_cache" != 1; then |
24176f2c | 5601 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5602 | fi |
5603 | ||
24176f2c | 5604 | if test "$wxUSE_TREELAYOUT" = yes; then |
698dcdb6 | 5605 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5606 | else |
698dcdb6 | 5607 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5608 | fi |
698dcdb6 | 5609 | |
10f2d63a | 5610 | |
698dcdb6 VZ |
5611 | |
5612 | ||
5613 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
b7043674 | 5614 | echo "configure:5615: checking for --enable-controls" >&5 |
10f2d63a VZ |
5615 | no_cache=0 |
5616 | # Check whether --enable-controls or --disable-controls was given. | |
5617 | if test "${enable_controls+set}" = set; then | |
5618 | enableval="$enable_controls" | |
698dcdb6 | 5619 | |
10f2d63a VZ |
5620 | if test "$enableval" = yes; then |
5621 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5622 | else | |
5623 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5624 | fi | |
698dcdb6 | 5625 | |
10f2d63a | 5626 | else |
698dcdb6 | 5627 | |
10f2d63a VZ |
5628 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5629 | if test "x$LINE" != x ; then | |
5630 | eval "DEFAULT_$LINE" | |
5631 | else | |
5632 | no_cache=1 | |
5633 | fi | |
5634 | ||
5635 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
5636 | |
5637 | fi | |
10f2d63a VZ |
5638 | |
5639 | ||
5640 | eval "$ac_cv_use_controls" | |
5641 | if test "$no_cache" != 1; then | |
5642 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5643 | fi | |
5644 | ||
5645 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 5646 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5647 | else |
698dcdb6 | 5648 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5649 | fi |
698dcdb6 | 5650 | |
10f2d63a VZ |
5651 | |
5652 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5653 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5654 | DEFAULT_wxUSE_BMPBUTTON=yes |
5655 | DEFAULT_wxUSE_BUTTON=yes | |
5656 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5657 | DEFAULT_wxUSE_CARET=yes |
5658 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5659 | DEFAULT_wxUSE_CHECKBOX=yes |
5660 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5661 | DEFAULT_wxUSE_CHOICE=yes | |
5662 | DEFAULT_wxUSE_GAUGE=yes | |
5663 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5664 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5665 | DEFAULT_wxUSE_IMAGLIST=yes |
5666 | DEFAULT_wxUSE_LISTBOX=yes | |
5667 | DEFAULT_wxUSE_LISTCTRL=yes | |
5668 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5669 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5670 | DEFAULT_wxUSE_RADIOBOX=yes |
5671 | DEFAULT_wxUSE_RADIOBTN=yes | |
5672 | DEFAULT_wxUSE_SASH=yes | |
5673 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5674 | DEFAULT_wxUSE_SLIDER=yes | |
5675 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5676 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5677 | DEFAULT_wxUSE_SPLITTER=yes |
5678 | DEFAULT_wxUSE_STATBMP=yes | |
5679 | DEFAULT_wxUSE_STATBOX=yes | |
5680 | DEFAULT_wxUSE_STATLINE=yes | |
5681 | DEFAULT_wxUSE_STATUSBAR=yes | |
5682 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5683 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5684 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5685 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5686 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5687 | DEFAULT_wxUSE_TOOLTIPS=yes |
5688 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5689 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 5690 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
5691 | elif test "$wxUSE_CONTROLS" = "no"; then |
5692 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5693 | DEFAULT_wxUSE_BMPBUTTON=no |
5694 | DEFAULT_wxUSE_BUTTON=no | |
5695 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5696 | DEFAULT_wxUSE_CARET=no |
5697 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5698 | DEFAULT_wxUSE_CHECKBOX=no |
5699 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5700 | DEFAULT_wxUSE_CHOICE=no | |
5701 | DEFAULT_wxUSE_GAUGE=no | |
5702 | DEFAULT_wxUSE_GRID=no | |
5703 | DEFAULT_wxUSE_NEW_GRID=no | |
5704 | DEFAULT_wxUSE_IMAGLIST=no | |
5705 | DEFAULT_wxUSE_LISTBOX=no | |
5706 | DEFAULT_wxUSE_LISTCTRL=no | |
5707 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5708 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5709 | DEFAULT_wxUSE_RADIOBOX=no |
5710 | DEFAULT_wxUSE_RADIOBTN=no | |
5711 | DEFAULT_wxUSE_SASH=no | |
5712 | DEFAULT_wxUSE_SCROLLBAR=no | |
5713 | DEFAULT_wxUSE_SLIDER=no | |
5714 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5715 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5716 | DEFAULT_wxUSE_SPLITTER=no |
5717 | DEFAULT_wxUSE_STATBMP=no | |
5718 | DEFAULT_wxUSE_STATBOX=no | |
5719 | DEFAULT_wxUSE_STATLINE=no | |
5720 | DEFAULT_wxUSE_STATUSBAR=no | |
5721 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5722 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5723 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5724 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5725 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5726 | DEFAULT_wxUSE_TOOLTIPS=no |
5727 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5728 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 5729 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
5730 | fi |
5731 | ||
698dcdb6 VZ |
5732 | |
5733 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
b7043674 | 5734 | echo "configure:5735: checking for --enable-accel" >&5 |
10f2d63a VZ |
5735 | no_cache=0 |
5736 | # Check whether --enable-accel or --disable-accel was given. | |
5737 | if test "${enable_accel+set}" = set; then | |
5738 | enableval="$enable_accel" | |
698dcdb6 | 5739 | |
10f2d63a VZ |
5740 | if test "$enableval" = yes; then |
5741 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5742 | else | |
5743 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5744 | fi | |
698dcdb6 | 5745 | |
10f2d63a | 5746 | else |
698dcdb6 | 5747 | |
10f2d63a VZ |
5748 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5749 | if test "x$LINE" != x ; then | |
5750 | eval "DEFAULT_$LINE" | |
5751 | else | |
5752 | no_cache=1 | |
5753 | fi | |
5754 | ||
5755 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
5756 | |
5757 | fi | |
10f2d63a VZ |
5758 | |
5759 | ||
5760 | eval "$ac_cv_use_accel" | |
5761 | if test "$no_cache" != 1; then | |
5762 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5763 | fi | |
5764 | ||
5765 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 5766 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5767 | else |
698dcdb6 | 5768 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5769 | fi |
698dcdb6 | 5770 | |
10f2d63a | 5771 | |
1e6feb95 | 5772 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
b7043674 | 5773 | echo "configure:5774: checking for --enable-button" >&5 |
10f2d63a | 5774 | no_cache=0 |
1e6feb95 VZ |
5775 | # Check whether --enable-button or --disable-button was given. |
5776 | if test "${enable_button+set}" = set; then | |
5777 | enableval="$enable_button" | |
698dcdb6 | 5778 | |
10f2d63a | 5779 | if test "$enableval" = yes; then |
1e6feb95 | 5780 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5781 | else |
1e6feb95 | 5782 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5783 | fi |
698dcdb6 | 5784 | |
10f2d63a | 5785 | else |
698dcdb6 | 5786 | |
1e6feb95 | 5787 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5788 | if test "x$LINE" != x ; then |
5789 | eval "DEFAULT_$LINE" | |
5790 | else | |
5791 | no_cache=1 | |
5792 | fi | |
5793 | ||
1e6feb95 | 5794 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
5795 | |
5796 | fi | |
10f2d63a VZ |
5797 | |
5798 | ||
1e6feb95 | 5799 | eval "$ac_cv_use_button" |
10f2d63a | 5800 | if test "$no_cache" != 1; then |
1e6feb95 | 5801 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5802 | fi |
5803 | ||
1e6feb95 | 5804 | if test "$wxUSE_BUTTON" = yes; then |
698dcdb6 | 5805 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5806 | else |
698dcdb6 | 5807 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5808 | fi |
698dcdb6 | 5809 | |
10f2d63a | 5810 | |
698dcdb6 | 5811 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
b7043674 | 5812 | echo "configure:5813: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
5813 | no_cache=0 |
5814 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5815 | if test "${enable_bmpbutton+set}" = set; then | |
5816 | enableval="$enable_bmpbutton" | |
698dcdb6 | 5817 | |
10f2d63a VZ |
5818 | if test "$enableval" = yes; then |
5819 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5820 | else | |
5821 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5822 | fi | |
698dcdb6 | 5823 | |
10f2d63a | 5824 | else |
698dcdb6 | 5825 | |
10f2d63a VZ |
5826 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5827 | if test "x$LINE" != x ; then | |
5828 | eval "DEFAULT_$LINE" | |
5829 | else | |
5830 | no_cache=1 | |
5831 | fi | |
5832 | ||
5833 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
5834 | |
5835 | fi | |
10f2d63a VZ |
5836 | |
5837 | ||
5838 | eval "$ac_cv_use_bmpbutton" | |
5839 | if test "$no_cache" != 1; then | |
5840 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5841 | fi | |
5842 | ||
5843 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 5844 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5845 | else |
698dcdb6 | 5846 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5847 | fi |
698dcdb6 | 5848 | |
10f2d63a | 5849 | |
1e6feb95 | 5850 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
b7043674 | 5851 | echo "configure:5852: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5852 | no_cache=0 |
5853 | # Check whether --enable-calendar or --disable-calendar was given. | |
5854 | if test "${enable_calendar+set}" = set; then | |
5855 | enableval="$enable_calendar" | |
5856 | ||
5857 | if test "$enableval" = yes; then | |
5858 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5859 | else | |
5860 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5861 | fi | |
5862 | ||
5863 | else | |
5864 | ||
5865 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5866 | if test "x$LINE" != x ; then | |
5867 | eval "DEFAULT_$LINE" | |
5868 | else | |
5869 | no_cache=1 | |
5870 | fi | |
5871 | ||
5872 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5873 | ||
5874 | fi | |
5875 | ||
5876 | ||
5877 | eval "$ac_cv_use_calendar" | |
5878 | if test "$no_cache" != 1; then | |
5879 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5880 | fi | |
5881 | ||
5882 | if test "$wxUSE_CALCTRL" = yes; then | |
5883 | echo "$ac_t""yes" 1>&6 | |
5884 | else | |
5885 | echo "$ac_t""no" 1>&6 | |
5886 | fi | |
5887 | ||
5888 | ||
5889 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
b7043674 | 5890 | echo "configure:5891: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5891 | no_cache=0 |
5892 | # Check whether --enable-caret or --disable-caret was given. | |
5893 | if test "${enable_caret+set}" = set; then | |
5894 | enableval="$enable_caret" | |
5895 | ||
5896 | if test "$enableval" = yes; then | |
5897 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5898 | else | |
5899 | ac_cv_use_caret='wxUSE_CARET=no' | |
5900 | fi | |
5901 | ||
5902 | else | |
5903 | ||
5904 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5905 | if test "x$LINE" != x ; then | |
5906 | eval "DEFAULT_$LINE" | |
5907 | else | |
5908 | no_cache=1 | |
5909 | fi | |
5910 | ||
5911 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5912 | ||
5913 | fi | |
5914 | ||
5915 | ||
5916 | eval "$ac_cv_use_caret" | |
5917 | if test "$no_cache" != 1; then | |
5918 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5919 | fi | |
5920 | ||
5921 | if test "$wxUSE_CARET" = yes; then | |
5922 | echo "$ac_t""yes" 1>&6 | |
5923 | else | |
5924 | echo "$ac_t""no" 1>&6 | |
5925 | fi | |
5926 | ||
5927 | ||
698dcdb6 | 5928 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
b7043674 | 5929 | echo "configure:5930: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5930 | no_cache=0 |
5931 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5932 | if test "${enable_checkbox+set}" = set; then | |
5933 | enableval="$enable_checkbox" | |
698dcdb6 | 5934 | |
10f2d63a VZ |
5935 | if test "$enableval" = yes; then |
5936 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5937 | else | |
5938 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5939 | fi | |
698dcdb6 | 5940 | |
10f2d63a | 5941 | else |
698dcdb6 | 5942 | |
10f2d63a VZ |
5943 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5944 | if test "x$LINE" != x ; then | |
5945 | eval "DEFAULT_$LINE" | |
5946 | else | |
5947 | no_cache=1 | |
5948 | fi | |
5949 | ||
5950 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5951 | |
5952 | fi | |
10f2d63a VZ |
5953 | |
5954 | ||
5955 | eval "$ac_cv_use_checkbox" | |
5956 | if test "$no_cache" != 1; then | |
5957 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5958 | fi | |
5959 | ||
5960 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5961 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5962 | else |
698dcdb6 | 5963 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5964 | fi |
698dcdb6 | 5965 | |
10f2d63a | 5966 | |
698dcdb6 | 5967 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
b7043674 | 5968 | echo "configure:5969: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5969 | no_cache=0 |
5970 | # Check whether --enable-checklst or --disable-checklst was given. | |
5971 | if test "${enable_checklst+set}" = set; then | |
5972 | enableval="$enable_checklst" | |
698dcdb6 | 5973 | |
10f2d63a VZ |
5974 | if test "$enableval" = yes; then |
5975 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5976 | else | |
5977 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5978 | fi | |
698dcdb6 | 5979 | |
10f2d63a | 5980 | else |
698dcdb6 | 5981 | |
10f2d63a VZ |
5982 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5983 | if test "x$LINE" != x ; then | |
5984 | eval "DEFAULT_$LINE" | |
5985 | else | |
5986 | no_cache=1 | |
5987 | fi | |
5988 | ||
5989 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5990 | |
5991 | fi | |
10f2d63a VZ |
5992 | |
5993 | ||
5994 | eval "$ac_cv_use_checklst" | |
5995 | if test "$no_cache" != 1; then | |
5996 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5997 | fi | |
5998 | ||
5999 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 6000 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6001 | else |
698dcdb6 | 6002 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6003 | fi |
698dcdb6 | 6004 | |
10f2d63a | 6005 | |
698dcdb6 | 6006 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
b7043674 | 6007 | echo "configure:6008: checking for --enable-choice" >&5 |
10f2d63a VZ |
6008 | no_cache=0 |
6009 | # Check whether --enable-choice or --disable-choice was given. | |
6010 | if test "${enable_choice+set}" = set; then | |
6011 | enableval="$enable_choice" | |
698dcdb6 | 6012 | |
10f2d63a VZ |
6013 | if test "$enableval" = yes; then |
6014 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
6015 | else | |
6016 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
6017 | fi | |
698dcdb6 | 6018 | |
10f2d63a | 6019 | else |
698dcdb6 | 6020 | |
10f2d63a VZ |
6021 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
6022 | if test "x$LINE" != x ; then | |
6023 | eval "DEFAULT_$LINE" | |
6024 | else | |
6025 | no_cache=1 | |
6026 | fi | |
6027 | ||
6028 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
6029 | |
6030 | fi | |
10f2d63a VZ |
6031 | |
6032 | ||
6033 | eval "$ac_cv_use_choice" | |
6034 | if test "$no_cache" != 1; then | |
6035 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
6036 | fi | |
6037 | ||
6038 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 6039 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6040 | else |
698dcdb6 | 6041 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6042 | fi |
698dcdb6 | 6043 | |
10f2d63a | 6044 | |
698dcdb6 | 6045 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
b7043674 | 6046 | echo "configure:6047: checking for --enable-combobox" >&5 |
10f2d63a VZ |
6047 | no_cache=0 |
6048 | # Check whether --enable-combobox or --disable-combobox was given. | |
6049 | if test "${enable_combobox+set}" = set; then | |
6050 | enableval="$enable_combobox" | |
698dcdb6 | 6051 | |
10f2d63a VZ |
6052 | if test "$enableval" = yes; then |
6053 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6054 | else | |
6055 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6056 | fi | |
698dcdb6 | 6057 | |
10f2d63a | 6058 | else |
698dcdb6 | 6059 | |
10f2d63a VZ |
6060 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6061 | if test "x$LINE" != x ; then | |
6062 | eval "DEFAULT_$LINE" | |
6063 | else | |
6064 | no_cache=1 | |
6065 | fi | |
6066 | ||
6067 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
6068 | |
6069 | fi | |
10f2d63a VZ |
6070 | |
6071 | ||
6072 | eval "$ac_cv_use_combobox" | |
6073 | if test "$no_cache" != 1; then | |
6074 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6075 | fi | |
6076 | ||
6077 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 6078 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6079 | else |
698dcdb6 | 6080 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6081 | fi |
698dcdb6 | 6082 | |
10f2d63a | 6083 | |
698dcdb6 | 6084 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
b7043674 | 6085 | echo "configure:6086: checking for --enable-gauge" >&5 |
10f2d63a VZ |
6086 | no_cache=0 |
6087 | # Check whether --enable-gauge or --disable-gauge was given. | |
6088 | if test "${enable_gauge+set}" = set; then | |
6089 | enableval="$enable_gauge" | |
698dcdb6 | 6090 | |
10f2d63a VZ |
6091 | if test "$enableval" = yes; then |
6092 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6093 | else | |
6094 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6095 | fi | |
698dcdb6 | 6096 | |
10f2d63a | 6097 | else |
698dcdb6 | 6098 | |
10f2d63a VZ |
6099 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6100 | if test "x$LINE" != x ; then | |
6101 | eval "DEFAULT_$LINE" | |
6102 | else | |
6103 | no_cache=1 | |
6104 | fi | |
6105 | ||
6106 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
6107 | |
6108 | fi | |
10f2d63a VZ |
6109 | |
6110 | ||
6111 | eval "$ac_cv_use_gauge" | |
6112 | if test "$no_cache" != 1; then | |
6113 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6114 | fi | |
6115 | ||
6116 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 6117 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6118 | else |
698dcdb6 | 6119 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6120 | fi |
698dcdb6 | 6121 | |
10f2d63a | 6122 | |
698dcdb6 | 6123 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
b7043674 | 6124 | echo "configure:6125: checking for --enable-grid" >&5 |
10f2d63a VZ |
6125 | no_cache=0 |
6126 | # Check whether --enable-grid or --disable-grid was given. | |
6127 | if test "${enable_grid+set}" = set; then | |
6128 | enableval="$enable_grid" | |
698dcdb6 | 6129 | |
10f2d63a VZ |
6130 | if test "$enableval" = yes; then |
6131 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6132 | else | |
6133 | ac_cv_use_grid='wxUSE_GRID=no' | |
6134 | fi | |
698dcdb6 | 6135 | |
10f2d63a | 6136 | else |
698dcdb6 | 6137 | |
10f2d63a VZ |
6138 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
6139 | if test "x$LINE" != x ; then | |
6140 | eval "DEFAULT_$LINE" | |
6141 | else | |
6142 | no_cache=1 | |
6143 | fi | |
6144 | ||
6145 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
6146 | |
6147 | fi | |
10f2d63a VZ |
6148 | |
6149 | ||
6150 | eval "$ac_cv_use_grid" | |
6151 | if test "$no_cache" != 1; then | |
6152 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6153 | fi | |
6154 | ||
6155 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 6156 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6157 | else |
698dcdb6 | 6158 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6159 | fi |
698dcdb6 | 6160 | |
10f2d63a | 6161 | |
698dcdb6 | 6162 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
b7043674 | 6163 | echo "configure:6164: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
6164 | no_cache=0 |
6165 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
6166 | if test "${enable_newgrid+set}" = set; then | |
6167 | enableval="$enable_newgrid" | |
698dcdb6 | 6168 | |
10f2d63a VZ |
6169 | if test "$enableval" = yes; then |
6170 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
6171 | else | |
6172 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
6173 | fi | |
698dcdb6 | 6174 | |
10f2d63a | 6175 | else |
698dcdb6 | 6176 | |
10f2d63a VZ |
6177 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
6178 | if test "x$LINE" != x ; then | |
6179 | eval "DEFAULT_$LINE" | |
6180 | else | |
6181 | no_cache=1 | |
6182 | fi | |
6183 | ||
6184 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
6185 | |
6186 | fi | |
10f2d63a VZ |
6187 | |
6188 | ||
6189 | eval "$ac_cv_use_newgrid" | |
6190 | if test "$no_cache" != 1; then | |
6191 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
6192 | fi | |
6193 | ||
6194 | if test "$wxUSE_NEW_GRID" = yes; then | |
698dcdb6 | 6195 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6196 | else |
698dcdb6 | 6197 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6198 | fi |
698dcdb6 | 6199 | |
10f2d63a | 6200 | |
698dcdb6 | 6201 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
b7043674 | 6202 | echo "configure:6203: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
6203 | no_cache=0 |
6204 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6205 | if test "${enable_imaglist+set}" = set; then | |
6206 | enableval="$enable_imaglist" | |
698dcdb6 | 6207 | |
10f2d63a VZ |
6208 | if test "$enableval" = yes; then |
6209 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6210 | else | |
6211 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6212 | fi | |
698dcdb6 | 6213 | |
10f2d63a | 6214 | else |
698dcdb6 | 6215 | |
10f2d63a VZ |
6216 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
6217 | if test "x$LINE" != x ; then | |
6218 | eval "DEFAULT_$LINE" | |
6219 | else | |
6220 | no_cache=1 | |
6221 | fi | |
6222 | ||
6223 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
6224 | |
6225 | fi | |
10f2d63a VZ |
6226 | |
6227 | ||
6228 | eval "$ac_cv_use_imaglist" | |
6229 | if test "$no_cache" != 1; then | |
6230 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6231 | fi | |
6232 | ||
6233 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 6234 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6235 | else |
698dcdb6 | 6236 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6237 | fi |
698dcdb6 | 6238 | |
10f2d63a | 6239 | |
698dcdb6 | 6240 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
b7043674 | 6241 | echo "configure:6242: checking for --enable-listbox" >&5 |
10f2d63a VZ |
6242 | no_cache=0 |
6243 | # Check whether --enable-listbox or --disable-listbox was given. | |
6244 | if test "${enable_listbox+set}" = set; then | |
6245 | enableval="$enable_listbox" | |
698dcdb6 | 6246 | |
10f2d63a VZ |
6247 | if test "$enableval" = yes; then |
6248 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6249 | else | |
6250 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6251 | fi | |
698dcdb6 | 6252 | |
10f2d63a | 6253 | else |
698dcdb6 | 6254 | |
10f2d63a VZ |
6255 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
6256 | if test "x$LINE" != x ; then | |
6257 | eval "DEFAULT_$LINE" | |
6258 | else | |
6259 | no_cache=1 | |
6260 | fi | |
6261 | ||
6262 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
6263 | |
6264 | fi | |
10f2d63a VZ |
6265 | |
6266 | ||
6267 | eval "$ac_cv_use_listbox" | |
6268 | if test "$no_cache" != 1; then | |
6269 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6270 | fi | |
6271 | ||
6272 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 6273 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6274 | else |
698dcdb6 | 6275 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6276 | fi |
698dcdb6 | 6277 | |
10f2d63a | 6278 | |
698dcdb6 | 6279 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
b7043674 | 6280 | echo "configure:6281: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
6281 | no_cache=0 |
6282 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6283 | if test "${enable_listctrl+set}" = set; then | |
6284 | enableval="$enable_listctrl" | |
698dcdb6 | 6285 | |
10f2d63a VZ |
6286 | if test "$enableval" = yes; then |
6287 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6288 | else | |
6289 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6290 | fi | |
698dcdb6 | 6291 | |
10f2d63a | 6292 | else |
698dcdb6 | 6293 | |
10f2d63a VZ |
6294 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
6295 | if test "x$LINE" != x ; then | |
6296 | eval "DEFAULT_$LINE" | |
6297 | else | |
6298 | no_cache=1 | |
6299 | fi | |
6300 | ||
6301 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
6302 | |
6303 | fi | |
10f2d63a VZ |
6304 | |
6305 | ||
6306 | eval "$ac_cv_use_listctrl" | |
6307 | if test "$no_cache" != 1; then | |
6308 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6309 | fi | |
6310 | ||
6311 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 6312 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6313 | else |
698dcdb6 | 6314 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6315 | fi |
698dcdb6 | 6316 | |
10f2d63a | 6317 | |
698dcdb6 | 6318 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
b7043674 | 6319 | echo "configure:6320: checking for --enable-notebook" >&5 |
10f2d63a VZ |
6320 | no_cache=0 |
6321 | # Check whether --enable-notebook or --disable-notebook was given. | |
6322 | if test "${enable_notebook+set}" = set; then | |
6323 | enableval="$enable_notebook" | |
698dcdb6 | 6324 | |
10f2d63a VZ |
6325 | if test "$enableval" = yes; then |
6326 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6327 | else | |
6328 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6329 | fi | |
698dcdb6 | 6330 | |
10f2d63a | 6331 | else |
698dcdb6 | 6332 | |
10f2d63a VZ |
6333 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
6334 | if test "x$LINE" != x ; then | |
6335 | eval "DEFAULT_$LINE" | |
6336 | else | |
6337 | no_cache=1 | |
6338 | fi | |
6339 | ||
6340 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
6341 | |
6342 | fi | |
10f2d63a VZ |
6343 | |
6344 | ||
6345 | eval "$ac_cv_use_notebook" | |
6346 | if test "$no_cache" != 1; then | |
6347 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6348 | fi | |
6349 | ||
6350 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 6351 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6352 | else |
698dcdb6 | 6353 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6354 | fi |
698dcdb6 | 6355 | |
10f2d63a | 6356 | |
24176f2c | 6357 | echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6 |
b7043674 | 6358 | echo "configure:6359: checking for --enable-propsheet" >&5 |
24176f2c GD |
6359 | no_cache=0 |
6360 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
6361 | if test "${enable_propsheet+set}" = set; then | |
6362 | enableval="$enable_propsheet" | |
6363 | ||
6364 | if test "$enableval" = yes; then | |
6365 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
6366 | else | |
6367 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
6368 | fi | |
6369 | ||
6370 | else | |
6371 | ||
6372 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` | |
6373 | if test "x$LINE" != x ; then | |
6374 | eval "DEFAULT_$LINE" | |
6375 | else | |
6376 | no_cache=1 | |
6377 | fi | |
6378 | ||
6379 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
6380 | ||
6381 | fi | |
6382 | ||
6383 | ||
6384 | eval "$ac_cv_use_propsheet" | |
6385 | if test "$no_cache" != 1; then | |
6386 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
6387 | fi | |
6388 | ||
6389 | if test "$wxUSE_PROPSHEET" = yes; then | |
6390 | echo "$ac_t""yes" 1>&6 | |
6391 | else | |
6392 | echo "$ac_t""no" 1>&6 | |
6393 | fi | |
6394 | ||
6395 | ||
698dcdb6 | 6396 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
b7043674 | 6397 | echo "configure:6398: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
6398 | no_cache=0 |
6399 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6400 | if test "${enable_radiobox+set}" = set; then | |
6401 | enableval="$enable_radiobox" | |
698dcdb6 | 6402 | |
10f2d63a VZ |
6403 | if test "$enableval" = yes; then |
6404 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6405 | else | |
6406 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6407 | fi | |
698dcdb6 | 6408 | |
10f2d63a | 6409 | else |
698dcdb6 | 6410 | |
10f2d63a VZ |
6411 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
6412 | if test "x$LINE" != x ; then | |
6413 | eval "DEFAULT_$LINE" | |
6414 | else | |
6415 | no_cache=1 | |
6416 | fi | |
6417 | ||
6418 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
6419 | |
6420 | fi | |
10f2d63a VZ |
6421 | |
6422 | ||
6423 | eval "$ac_cv_use_radiobox" | |
6424 | if test "$no_cache" != 1; then | |
6425 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6426 | fi | |
6427 | ||
6428 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 6429 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6430 | else |
698dcdb6 | 6431 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6432 | fi |
698dcdb6 | 6433 | |
10f2d63a | 6434 | |
698dcdb6 | 6435 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
b7043674 | 6436 | echo "configure:6437: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
6437 | no_cache=0 |
6438 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6439 | if test "${enable_radiobtn+set}" = set; then | |
6440 | enableval="$enable_radiobtn" | |
698dcdb6 | 6441 | |
10f2d63a VZ |
6442 | if test "$enableval" = yes; then |
6443 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6444 | else | |
6445 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6446 | fi | |
698dcdb6 | 6447 | |
10f2d63a | 6448 | else |
698dcdb6 | 6449 | |
10f2d63a VZ |
6450 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
6451 | if test "x$LINE" != x ; then | |
6452 | eval "DEFAULT_$LINE" | |
6453 | else | |
6454 | no_cache=1 | |
6455 | fi | |
6456 | ||
6457 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
6458 | |
6459 | fi | |
10f2d63a VZ |
6460 | |
6461 | ||
6462 | eval "$ac_cv_use_radiobtn" | |
6463 | if test "$no_cache" != 1; then | |
6464 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6465 | fi | |
6466 | ||
6467 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 6468 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6469 | else |
698dcdb6 | 6470 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6471 | fi |
698dcdb6 | 6472 | |
10f2d63a | 6473 | |
698dcdb6 | 6474 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
b7043674 | 6475 | echo "configure:6476: checking for --enable-sash" >&5 |
10f2d63a VZ |
6476 | no_cache=0 |
6477 | # Check whether --enable-sash or --disable-sash was given. | |
6478 | if test "${enable_sash+set}" = set; then | |
6479 | enableval="$enable_sash" | |
698dcdb6 | 6480 | |
10f2d63a VZ |
6481 | if test "$enableval" = yes; then |
6482 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6483 | else | |
6484 | ac_cv_use_sash='wxUSE_SASH=no' | |
6485 | fi | |
698dcdb6 | 6486 | |
10f2d63a | 6487 | else |
698dcdb6 | 6488 | |
10f2d63a VZ |
6489 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
6490 | if test "x$LINE" != x ; then | |
6491 | eval "DEFAULT_$LINE" | |
6492 | else | |
6493 | no_cache=1 | |
6494 | fi | |
6495 | ||
6496 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
6497 | |
6498 | fi | |
10f2d63a VZ |
6499 | |
6500 | ||
6501 | eval "$ac_cv_use_sash" | |
6502 | if test "$no_cache" != 1; then | |
6503 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6504 | fi | |
6505 | ||
6506 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 6507 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6508 | else |
698dcdb6 | 6509 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6510 | fi |
698dcdb6 | 6511 | |
10f2d63a | 6512 | |
698dcdb6 | 6513 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
b7043674 | 6514 | echo "configure:6515: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
6515 | no_cache=0 |
6516 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6517 | if test "${enable_scrollbar+set}" = set; then | |
6518 | enableval="$enable_scrollbar" | |
698dcdb6 | 6519 | |
10f2d63a VZ |
6520 | if test "$enableval" = yes; then |
6521 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6522 | else | |
6523 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6524 | fi | |
698dcdb6 | 6525 | |
10f2d63a | 6526 | else |
698dcdb6 | 6527 | |
10f2d63a VZ |
6528 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
6529 | if test "x$LINE" != x ; then | |
6530 | eval "DEFAULT_$LINE" | |
6531 | else | |
6532 | no_cache=1 | |
6533 | fi | |
6534 | ||
6535 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
6536 | |
6537 | fi | |
10f2d63a VZ |
6538 | |
6539 | ||
6540 | eval "$ac_cv_use_scrollbar" | |
6541 | if test "$no_cache" != 1; then | |
6542 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6543 | fi | |
6544 | ||
6545 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 6546 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6547 | else |
698dcdb6 | 6548 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6549 | fi |
698dcdb6 | 6550 | |
10f2d63a | 6551 | |
698dcdb6 | 6552 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
b7043674 | 6553 | echo "configure:6554: checking for --enable-slider" >&5 |
10f2d63a VZ |
6554 | no_cache=0 |
6555 | # Check whether --enable-slider or --disable-slider was given. | |
6556 | if test "${enable_slider+set}" = set; then | |
6557 | enableval="$enable_slider" | |
698dcdb6 | 6558 | |
10f2d63a VZ |
6559 | if test "$enableval" = yes; then |
6560 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6561 | else | |
6562 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6563 | fi | |
698dcdb6 | 6564 | |
10f2d63a | 6565 | else |
698dcdb6 | 6566 | |
10f2d63a VZ |
6567 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6568 | if test "x$LINE" != x ; then | |
6569 | eval "DEFAULT_$LINE" | |
6570 | else | |
6571 | no_cache=1 | |
6572 | fi | |
6573 | ||
6574 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
6575 | |
6576 | fi | |
10f2d63a VZ |
6577 | |
6578 | ||
6579 | eval "$ac_cv_use_slider" | |
6580 | if test "$no_cache" != 1; then | |
6581 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6582 | fi | |
6583 | ||
6584 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 6585 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6586 | else |
698dcdb6 | 6587 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6588 | fi |
698dcdb6 | 6589 | |
10f2d63a | 6590 | |
698dcdb6 | 6591 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
b7043674 | 6592 | echo "configure:6593: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
6593 | no_cache=0 |
6594 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6595 | if test "${enable_spinbtn+set}" = set; then | |
6596 | enableval="$enable_spinbtn" | |
698dcdb6 | 6597 | |
10f2d63a VZ |
6598 | if test "$enableval" = yes; then |
6599 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6600 | else | |
6601 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6602 | fi | |
698dcdb6 | 6603 | |
10f2d63a | 6604 | else |
698dcdb6 | 6605 | |
10f2d63a VZ |
6606 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6607 | if test "x$LINE" != x ; then | |
6608 | eval "DEFAULT_$LINE" | |
6609 | else | |
6610 | no_cache=1 | |
6611 | fi | |
6612 | ||
6613 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
6614 | |
6615 | fi | |
10f2d63a VZ |
6616 | |
6617 | ||
6618 | eval "$ac_cv_use_spinbtn" | |
6619 | if test "$no_cache" != 1; then | |
6620 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6621 | fi | |
6622 | ||
6623 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 6624 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6625 | else |
698dcdb6 | 6626 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6627 | fi |
698dcdb6 | 6628 | |
10f2d63a | 6629 | |
698dcdb6 | 6630 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
b7043674 | 6631 | echo "configure:6632: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
6632 | no_cache=0 |
6633 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6634 | if test "${enable_spinctrl+set}" = set; then | |
6635 | enableval="$enable_spinctrl" | |
698dcdb6 | 6636 | |
56cfaa52 RR |
6637 | if test "$enableval" = yes; then |
6638 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6639 | else | |
6640 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6641 | fi | |
698dcdb6 | 6642 | |
56cfaa52 | 6643 | else |
698dcdb6 | 6644 | |
56cfaa52 RR |
6645 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6646 | if test "x$LINE" != x ; then | |
6647 | eval "DEFAULT_$LINE" | |
6648 | else | |
6649 | no_cache=1 | |
6650 | fi | |
6651 | ||
6652 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
6653 | |
6654 | fi | |
56cfaa52 RR |
6655 | |
6656 | ||
6657 | eval "$ac_cv_use_spinctrl" | |
6658 | if test "$no_cache" != 1; then | |
6659 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6660 | fi | |
6661 | ||
6662 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 6663 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6664 | else |
698dcdb6 | 6665 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6666 | fi |
698dcdb6 | 6667 | |
56cfaa52 | 6668 | |
698dcdb6 | 6669 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
b7043674 | 6670 | echo "configure:6671: checking for --enable-splitter" >&5 |
10f2d63a VZ |
6671 | no_cache=0 |
6672 | # Check whether --enable-splitter or --disable-splitter was given. | |
6673 | if test "${enable_splitter+set}" = set; then | |
6674 | enableval="$enable_splitter" | |
698dcdb6 | 6675 | |
10f2d63a VZ |
6676 | if test "$enableval" = yes; then |
6677 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6678 | else | |
6679 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6680 | fi | |
698dcdb6 | 6681 | |
10f2d63a | 6682 | else |
698dcdb6 | 6683 | |
10f2d63a VZ |
6684 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6685 | if test "x$LINE" != x ; then | |
6686 | eval "DEFAULT_$LINE" | |
6687 | else | |
6688 | no_cache=1 | |
6689 | fi | |
6690 | ||
6691 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
6692 | |
6693 | fi | |
10f2d63a VZ |
6694 | |
6695 | ||
6696 | eval "$ac_cv_use_splitter" | |
6697 | if test "$no_cache" != 1; then | |
6698 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6699 | fi | |
6700 | ||
6701 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 6702 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6703 | else |
698dcdb6 | 6704 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6705 | fi |
698dcdb6 | 6706 | |
10f2d63a | 6707 | |
698dcdb6 | 6708 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
b7043674 | 6709 | echo "configure:6710: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
6710 | no_cache=0 |
6711 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6712 | if test "${enable_statbmp+set}" = set; then | |
6713 | enableval="$enable_statbmp" | |
698dcdb6 | 6714 | |
10f2d63a VZ |
6715 | if test "$enableval" = yes; then |
6716 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6717 | else | |
6718 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6719 | fi | |
698dcdb6 | 6720 | |
10f2d63a | 6721 | else |
698dcdb6 | 6722 | |
10f2d63a VZ |
6723 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6724 | if test "x$LINE" != x ; then | |
6725 | eval "DEFAULT_$LINE" | |
6726 | else | |
6727 | no_cache=1 | |
6728 | fi | |
6729 | ||
6730 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
6731 | |
6732 | fi | |
10f2d63a VZ |
6733 | |
6734 | ||
6735 | eval "$ac_cv_use_statbmp" | |
6736 | if test "$no_cache" != 1; then | |
6737 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6738 | fi | |
6739 | ||
6740 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 6741 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6742 | else |
698dcdb6 | 6743 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6744 | fi |
698dcdb6 | 6745 | |
10f2d63a | 6746 | |
698dcdb6 | 6747 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
b7043674 | 6748 | echo "configure:6749: checking for --enable-statbox" >&5 |
10f2d63a VZ |
6749 | no_cache=0 |
6750 | # Check whether --enable-statbox or --disable-statbox was given. | |
6751 | if test "${enable_statbox+set}" = set; then | |
6752 | enableval="$enable_statbox" | |
698dcdb6 | 6753 | |
10f2d63a VZ |
6754 | if test "$enableval" = yes; then |
6755 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6756 | else | |
6757 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6758 | fi | |
698dcdb6 | 6759 | |
10f2d63a | 6760 | else |
698dcdb6 | 6761 | |
10f2d63a VZ |
6762 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6763 | if test "x$LINE" != x ; then | |
6764 | eval "DEFAULT_$LINE" | |
6765 | else | |
6766 | no_cache=1 | |
6767 | fi | |
6768 | ||
6769 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
6770 | |
6771 | fi | |
10f2d63a VZ |
6772 | |
6773 | ||
6774 | eval "$ac_cv_use_statbox" | |
6775 | if test "$no_cache" != 1; then | |
6776 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6777 | fi | |
6778 | ||
6779 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 6780 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6781 | else |
698dcdb6 | 6782 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6783 | fi |
698dcdb6 | 6784 | |
10f2d63a | 6785 | |
698dcdb6 | 6786 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
b7043674 | 6787 | echo "configure:6788: checking for --enable-statline" >&5 |
10f2d63a VZ |
6788 | no_cache=0 |
6789 | # Check whether --enable-statline or --disable-statline was given. | |
6790 | if test "${enable_statline+set}" = set; then | |
6791 | enableval="$enable_statline" | |
698dcdb6 | 6792 | |
10f2d63a VZ |
6793 | if test "$enableval" = yes; then |
6794 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6795 | else | |
6796 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6797 | fi | |
698dcdb6 | 6798 | |
10f2d63a | 6799 | else |
698dcdb6 | 6800 | |
10f2d63a VZ |
6801 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6802 | if test "x$LINE" != x ; then | |
6803 | eval "DEFAULT_$LINE" | |
6804 | else | |
6805 | no_cache=1 | |
6806 | fi | |
6807 | ||
6808 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
6809 | |
6810 | fi | |
10f2d63a VZ |
6811 | |
6812 | ||
6813 | eval "$ac_cv_use_statline" | |
6814 | if test "$no_cache" != 1; then | |
6815 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6816 | fi | |
6817 | ||
6818 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 6819 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6820 | else |
698dcdb6 | 6821 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6822 | fi |
698dcdb6 | 6823 | |
10f2d63a | 6824 | |
1e6feb95 | 6825 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
b7043674 | 6826 | echo "configure:6827: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
6827 | no_cache=0 |
6828 | # Check whether --enable-stattext or --disable-stattext was given. | |
6829 | if test "${enable_stattext+set}" = set; then | |
6830 | enableval="$enable_stattext" | |
6831 | ||
6832 | if test "$enableval" = yes; then | |
6833 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6834 | else | |
6835 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6836 | fi | |
6837 | ||
6838 | else | |
6839 | ||
6840 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
6841 | if test "x$LINE" != x ; then | |
6842 | eval "DEFAULT_$LINE" | |
6843 | else | |
6844 | no_cache=1 | |
6845 | fi | |
6846 | ||
6847 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
6848 | ||
6849 | fi | |
6850 | ||
6851 | ||
6852 | eval "$ac_cv_use_stattext" | |
6853 | if test "$no_cache" != 1; then | |
6854 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6855 | fi | |
6856 | ||
6857 | if test "$wxUSE_STATTEXT" = yes; then | |
6858 | echo "$ac_t""yes" 1>&6 | |
6859 | else | |
6860 | echo "$ac_t""no" 1>&6 | |
6861 | fi | |
6862 | ||
6863 | ||
698dcdb6 | 6864 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
b7043674 | 6865 | echo "configure:6866: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
6866 | no_cache=0 |
6867 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6868 | if test "${enable_statusbar+set}" = set; then | |
6869 | enableval="$enable_statusbar" | |
698dcdb6 | 6870 | |
10f2d63a VZ |
6871 | if test "$enableval" = yes; then |
6872 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6873 | else | |
6874 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6875 | fi | |
698dcdb6 | 6876 | |
10f2d63a | 6877 | else |
698dcdb6 | 6878 | |
10f2d63a VZ |
6879 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6880 | if test "x$LINE" != x ; then | |
6881 | eval "DEFAULT_$LINE" | |
6882 | else | |
6883 | no_cache=1 | |
6884 | fi | |
6885 | ||
6886 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6887 | |
6888 | fi | |
10f2d63a VZ |
6889 | |
6890 | ||
6891 | eval "$ac_cv_use_statusbar" | |
6892 | if test "$no_cache" != 1; then | |
6893 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6894 | fi | |
6895 | ||
6896 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6897 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6898 | else |
698dcdb6 | 6899 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6900 | fi |
698dcdb6 | 6901 | |
10f2d63a | 6902 | |
698dcdb6 | 6903 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
b7043674 | 6904 | echo "configure:6905: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6905 | no_cache=0 |
6906 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6907 | if test "${enable_tabdialog+set}" = set; then | |
6908 | enableval="$enable_tabdialog" | |
698dcdb6 | 6909 | |
10f2d63a VZ |
6910 | if test "$enableval" = yes; then |
6911 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6912 | else | |
6913 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6914 | fi | |
698dcdb6 | 6915 | |
10f2d63a | 6916 | else |
698dcdb6 | 6917 | |
10f2d63a VZ |
6918 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6919 | if test "x$LINE" != x ; then | |
6920 | eval "DEFAULT_$LINE" | |
6921 | else | |
6922 | no_cache=1 | |
6923 | fi | |
6924 | ||
6925 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6926 | |
6927 | fi | |
10f2d63a VZ |
6928 | |
6929 | ||
6930 | eval "$ac_cv_use_tabdialog" | |
6931 | if test "$no_cache" != 1; then | |
6932 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6933 | fi | |
6934 | ||
6935 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 6936 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6937 | else |
698dcdb6 | 6938 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6939 | fi |
698dcdb6 | 6940 | |
10f2d63a | 6941 | |
1e6feb95 | 6942 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
b7043674 | 6943 | echo "configure:6944: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6944 | no_cache=0 |
6945 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6946 | if test "${enable_textctrl+set}" = set; then | |
6947 | enableval="$enable_textctrl" | |
6948 | ||
6949 | if test "$enableval" = yes; then | |
6950 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6951 | else | |
6952 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6953 | fi | |
6954 | ||
6955 | else | |
6956 | ||
6957 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6958 | if test "x$LINE" != x ; then | |
6959 | eval "DEFAULT_$LINE" | |
6960 | else | |
6961 | no_cache=1 | |
6962 | fi | |
6963 | ||
6964 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6965 | ||
6966 | fi | |
6967 | ||
6968 | ||
6969 | eval "$ac_cv_use_textctrl" | |
6970 | if test "$no_cache" != 1; then | |
6971 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6972 | fi | |
6973 | ||
6974 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6975 | echo "$ac_t""yes" 1>&6 | |
6976 | else | |
6977 | echo "$ac_t""no" 1>&6 | |
6978 | fi | |
6979 | ||
6980 | ||
698dcdb6 | 6981 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
b7043674 | 6982 | echo "configure:6983: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6983 | no_cache=0 |
6984 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6985 | if test "${enable_togglebtn+set}" = set; then | |
6986 | enableval="$enable_togglebtn" | |
698dcdb6 | 6987 | |
1db8dc4a VZ |
6988 | if test "$enableval" = yes; then |
6989 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6990 | else | |
6991 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6992 | fi | |
698dcdb6 | 6993 | |
1db8dc4a | 6994 | else |
698dcdb6 | 6995 | |
1db8dc4a VZ |
6996 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6997 | if test "x$LINE" != x ; then | |
6998 | eval "DEFAULT_$LINE" | |
6999 | else | |
7000 | no_cache=1 | |
7001 | fi | |
7002 | ||
7003 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
7004 | |
7005 | fi | |
1db8dc4a VZ |
7006 | |
7007 | ||
7008 | eval "$ac_cv_use_togglebtn" | |
7009 | if test "$no_cache" != 1; then | |
7010 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
7011 | fi | |
7012 | ||
7013 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 7014 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 7015 | else |
698dcdb6 | 7016 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 7017 | fi |
698dcdb6 | 7018 | |
1db8dc4a | 7019 | |
698dcdb6 | 7020 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
b7043674 | 7021 | echo "configure:7022: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
7022 | no_cache=0 |
7023 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
7024 | if test "${enable_toolbar+set}" = set; then | |
7025 | enableval="$enable_toolbar" | |
698dcdb6 | 7026 | |
10f2d63a VZ |
7027 | if test "$enableval" = yes; then |
7028 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
7029 | else | |
7030 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
7031 | fi | |
698dcdb6 | 7032 | |
10f2d63a | 7033 | else |
698dcdb6 | 7034 | |
10f2d63a VZ |
7035 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
7036 | if test "x$LINE" != x ; then | |
7037 | eval "DEFAULT_$LINE" | |
7038 | else | |
7039 | no_cache=1 | |
7040 | fi | |
7041 | ||
7042 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
7043 | |
7044 | fi | |
10f2d63a VZ |
7045 | |
7046 | ||
7047 | eval "$ac_cv_use_toolbar" | |
7048 | if test "$no_cache" != 1; then | |
7049 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7050 | fi | |
7051 | ||
7052 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 7053 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7054 | else |
698dcdb6 | 7055 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7056 | fi |
698dcdb6 | 7057 | |
10f2d63a | 7058 | |
698dcdb6 | 7059 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
b7043674 | 7060 | echo "configure:7061: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
7061 | no_cache=0 |
7062 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7063 | if test "${enable_tbarnative+set}" = set; then | |
7064 | enableval="$enable_tbarnative" | |
698dcdb6 | 7065 | |
360d6699 VZ |
7066 | if test "$enableval" = yes; then |
7067 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7068 | else | |
7069 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7070 | fi | |
698dcdb6 | 7071 | |
360d6699 | 7072 | else |
698dcdb6 | 7073 | |
360d6699 VZ |
7074 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7075 | if test "x$LINE" != x ; then | |
7076 | eval "DEFAULT_$LINE" | |
7077 | else | |
7078 | no_cache=1 | |
7079 | fi | |
7080 | ||
7081 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
7082 | |
7083 | fi | |
360d6699 VZ |
7084 | |
7085 | ||
7086 | eval "$ac_cv_use_tbarnative" | |
7087 | if test "$no_cache" != 1; then | |
7088 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7089 | fi | |
7090 | ||
7091 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 7092 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7093 | else |
698dcdb6 | 7094 | echo "$ac_t""no" 1>&6 |
360d6699 | 7095 | fi |
698dcdb6 | 7096 | |
360d6699 | 7097 | |
698dcdb6 | 7098 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
b7043674 | 7099 | echo "configure:7100: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
7100 | no_cache=0 |
7101 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7102 | if test "${enable_tbarsmpl+set}" = set; then | |
7103 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 7104 | |
360d6699 VZ |
7105 | if test "$enableval" = yes; then |
7106 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7107 | else | |
7108 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7109 | fi | |
698dcdb6 | 7110 | |
360d6699 | 7111 | else |
698dcdb6 | 7112 | |
360d6699 VZ |
7113 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7114 | if test "x$LINE" != x ; then | |
7115 | eval "DEFAULT_$LINE" | |
7116 | else | |
7117 | no_cache=1 | |
7118 | fi | |
7119 | ||
7120 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
7121 | |
7122 | fi | |
360d6699 VZ |
7123 | |
7124 | ||
7125 | eval "$ac_cv_use_tbarsmpl" | |
7126 | if test "$no_cache" != 1; then | |
7127 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7128 | fi | |
7129 | ||
7130 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 7131 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7132 | else |
698dcdb6 | 7133 | echo "$ac_t""no" 1>&6 |
360d6699 | 7134 | fi |
698dcdb6 | 7135 | |
360d6699 | 7136 | |
698dcdb6 | 7137 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
b7043674 | 7138 | echo "configure:7139: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
7139 | no_cache=0 |
7140 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7141 | if test "${enable_treectrl+set}" = set; then | |
7142 | enableval="$enable_treectrl" | |
698dcdb6 | 7143 | |
10f2d63a VZ |
7144 | if test "$enableval" = yes; then |
7145 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7146 | else | |
7147 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7148 | fi | |
698dcdb6 | 7149 | |
10f2d63a | 7150 | else |
698dcdb6 | 7151 | |
10f2d63a VZ |
7152 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
7153 | if test "x$LINE" != x ; then | |
7154 | eval "DEFAULT_$LINE" | |
7155 | else | |
7156 | no_cache=1 | |
7157 | fi | |
7158 | ||
7159 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
7160 | |
7161 | fi | |
10f2d63a VZ |
7162 | |
7163 | ||
1e6feb95 VZ |
7164 | eval "$ac_cv_use_treectrl" |
7165 | if test "$no_cache" != 1; then | |
7166 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7167 | fi | |
7168 | ||
7169 | if test "$wxUSE_TREECTRL" = yes; then | |
7170 | echo "$ac_t""yes" 1>&6 | |
7171 | else | |
7172 | echo "$ac_t""no" 1>&6 | |
7173 | fi | |
7174 | ||
7175 | ||
9926e4a4 | 7176 | echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6 |
b7043674 | 7177 | echo "configure:7178: checking for --enable-tipwindow" >&5 |
9926e4a4 VZ |
7178 | no_cache=0 |
7179 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7180 | if test "${enable_tipwindow+set}" = set; then | |
7181 | enableval="$enable_tipwindow" | |
7182 | ||
7183 | if test "$enableval" = yes; then | |
7184 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7185 | else | |
7186 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7187 | fi | |
7188 | ||
7189 | else | |
7190 | ||
7191 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
7192 | if test "x$LINE" != x ; then | |
7193 | eval "DEFAULT_$LINE" | |
7194 | else | |
7195 | no_cache=1 | |
7196 | fi | |
7197 | ||
7198 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
7199 | ||
7200 | fi | |
7201 | ||
7202 | ||
7203 | eval "$ac_cv_use_tipwindow" | |
7204 | if test "$no_cache" != 1; then | |
7205 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7206 | fi | |
7207 | ||
7208 | if test "$wxUSE_TIPWINDOW" = yes; then | |
7209 | echo "$ac_t""yes" 1>&6 | |
7210 | else | |
7211 | echo "$ac_t""no" 1>&6 | |
7212 | fi | |
7213 | ||
7214 | ||
9f41d601 | 7215 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 |
b7043674 | 7216 | echo "configure:7217: checking for --enable-popupwin" >&5 |
9f41d601 RR |
7217 | no_cache=0 |
7218 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7219 | if test "${enable_popupwin+set}" = set; then | |
7220 | enableval="$enable_popupwin" | |
7221 | ||
7222 | if test "$enableval" = yes; then | |
7223 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7224 | else | |
7225 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7226 | fi | |
7227 | ||
7228 | else | |
7229 | ||
7230 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
7231 | if test "x$LINE" != x ; then | |
7232 | eval "DEFAULT_$LINE" | |
7233 | else | |
7234 | no_cache=1 | |
7235 | fi | |
7236 | ||
7237 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
7238 | ||
7239 | fi | |
7240 | ||
7241 | ||
7242 | eval "$ac_cv_use_popupwin" | |
7243 | if test "$no_cache" != 1; then | |
7244 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7245 | fi | |
7246 | ||
7247 | if test "$wxUSE_POPUPWIN" = yes; then | |
7248 | echo "$ac_t""yes" 1>&6 | |
7249 | else | |
7250 | echo "$ac_t""no" 1>&6 | |
7251 | fi | |
7252 | ||
7253 | ||
1e6feb95 VZ |
7254 | |
7255 | ||
7256 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
b7043674 | 7257 | echo "configure:7258: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
7258 | no_cache=0 |
7259 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7260 | if test "${enable_commondlg+set}" = set; then | |
7261 | enableval="$enable_commondlg" | |
7262 | ||
7263 | if test "$enableval" = yes; then | |
7264 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7265 | else | |
7266 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7267 | fi | |
7268 | ||
7269 | else | |
7270 | ||
7271 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
7272 | if test "x$LINE" != x ; then | |
7273 | eval "DEFAULT_$LINE" | |
7274 | else | |
7275 | no_cache=1 | |
7276 | fi | |
7277 | ||
7278 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
7279 | ||
7280 | fi | |
7281 | ||
7282 | ||
7283 | eval "$ac_cv_use_commondlg" | |
7284 | if test "$no_cache" != 1; then | |
7285 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7286 | fi | |
7287 | ||
7288 | if test "$wxUSE_COMMONDLGS" = yes; then | |
7289 | echo "$ac_t""yes" 1>&6 | |
7290 | else | |
7291 | echo "$ac_t""no" 1>&6 | |
7292 | fi | |
7293 | ||
7294 | ||
7295 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
b7043674 | 7296 | echo "configure:7297: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
7297 | no_cache=0 |
7298 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7299 | if test "${enable_choicedlg+set}" = set; then | |
7300 | enableval="$enable_choicedlg" | |
7301 | ||
7302 | if test "$enableval" = yes; then | |
7303 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7304 | else | |
7305 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7306 | fi | |
7307 | ||
7308 | else | |
7309 | ||
7310 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
7311 | if test "x$LINE" != x ; then | |
7312 | eval "DEFAULT_$LINE" | |
7313 | else | |
7314 | no_cache=1 | |
7315 | fi | |
7316 | ||
7317 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
7318 | ||
7319 | fi | |
7320 | ||
7321 | ||
7322 | eval "$ac_cv_use_choicedlg" | |
7323 | if test "$no_cache" != 1; then | |
7324 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7325 | fi | |
7326 | ||
7327 | if test "$wxUSE_CHOICEDLG" = yes; then | |
7328 | echo "$ac_t""yes" 1>&6 | |
7329 | else | |
7330 | echo "$ac_t""no" 1>&6 | |
7331 | fi | |
7332 | ||
7333 | ||
7334 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
b7043674 | 7335 | echo "configure:7336: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
7336 | no_cache=0 |
7337 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7338 | if test "${enable_coldlg+set}" = set; then | |
7339 | enableval="$enable_coldlg" | |
7340 | ||
7341 | if test "$enableval" = yes; then | |
7342 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7343 | else | |
7344 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7345 | fi | |
7346 | ||
7347 | else | |
7348 | ||
7349 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
7350 | if test "x$LINE" != x ; then | |
7351 | eval "DEFAULT_$LINE" | |
7352 | else | |
7353 | no_cache=1 | |
7354 | fi | |
7355 | ||
7356 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
7357 | ||
7358 | fi | |
7359 | ||
7360 | ||
7361 | eval "$ac_cv_use_coldlg" | |
7362 | if test "$no_cache" != 1; then | |
7363 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7364 | fi | |
7365 | ||
7366 | if test "$wxUSE_COLOURDLG" = yes; then | |
7367 | echo "$ac_t""yes" 1>&6 | |
7368 | else | |
7369 | echo "$ac_t""no" 1>&6 | |
7370 | fi | |
7371 | ||
7372 | ||
7373 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
b7043674 | 7374 | echo "configure:7375: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
7375 | no_cache=0 |
7376 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7377 | if test "${enable_filedlg+set}" = set; then | |
7378 | enableval="$enable_filedlg" | |
7379 | ||
7380 | if test "$enableval" = yes; then | |
7381 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7382 | else | |
7383 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7384 | fi | |
7385 | ||
7386 | else | |
7387 | ||
7388 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
7389 | if test "x$LINE" != x ; then | |
7390 | eval "DEFAULT_$LINE" | |
7391 | else | |
7392 | no_cache=1 | |
7393 | fi | |
7394 | ||
7395 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
7396 | ||
7397 | fi | |
7398 | ||
7399 | ||
7400 | eval "$ac_cv_use_filedlg" | |
7401 | if test "$no_cache" != 1; then | |
7402 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7403 | fi | |
7404 | ||
7405 | if test "$wxUSE_FILEDLG" = yes; then | |
7406 | echo "$ac_t""yes" 1>&6 | |
7407 | else | |
7408 | echo "$ac_t""no" 1>&6 | |
7409 | fi | |
7410 | ||
7411 | ||
69d27ff7 | 7412 | echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6 |
b7043674 | 7413 | echo "configure:7414: checking for --enable-finddlg" >&5 |
8db37e06 | 7414 | no_cache=0 |
69d27ff7 MB |
7415 | # Check whether --enable-finddlg or --disable-finddlg was given. |
7416 | if test "${enable_finddlg+set}" = set; then | |
7417 | enableval="$enable_finddlg" | |
8db37e06 VZ |
7418 | |
7419 | if test "$enableval" = yes; then | |
69d27ff7 | 7420 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 7421 | else |
69d27ff7 | 7422 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 VZ |
7423 | fi |
7424 | ||
7425 | else | |
7426 | ||
7427 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
7428 | if test "x$LINE" != x ; then | |
7429 | eval "DEFAULT_$LINE" | |
7430 | else | |
7431 | no_cache=1 | |
7432 | fi | |
7433 | ||
69d27ff7 | 7434 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
8db37e06 VZ |
7435 | |
7436 | fi | |
7437 | ||
7438 | ||
69d27ff7 | 7439 | eval "$ac_cv_use_finddlg" |
8db37e06 | 7440 | if test "$no_cache" != 1; then |
69d27ff7 | 7441 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
7442 | fi |
7443 | ||
7444 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
7445 | echo "$ac_t""yes" 1>&6 | |
7446 | else | |
7447 | echo "$ac_t""no" 1>&6 | |
7448 | fi | |
7449 | ||
7450 | ||
1e6feb95 | 7451 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 |
b7043674 | 7452 | echo "configure:7453: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
7453 | no_cache=0 |
7454 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7455 | if test "${enable_fontdlg+set}" = set; then | |
7456 | enableval="$enable_fontdlg" | |
7457 | ||
7458 | if test "$enableval" = yes; then | |
7459 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7460 | else | |
7461 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7462 | fi | |
7463 | ||
7464 | else | |
7465 | ||
7466 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
7467 | if test "x$LINE" != x ; then | |
7468 | eval "DEFAULT_$LINE" | |
7469 | else | |
7470 | no_cache=1 | |
7471 | fi | |
7472 | ||
7473 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
7474 | ||
7475 | fi | |
7476 | ||
7477 | ||
7478 | eval "$ac_cv_use_fontdlg" | |
7479 | if test "$no_cache" != 1; then | |
7480 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7481 | fi | |
7482 | ||
7483 | if test "$wxUSE_FONTDLG" = yes; then | |
7484 | echo "$ac_t""yes" 1>&6 | |
7485 | else | |
7486 | echo "$ac_t""no" 1>&6 | |
7487 | fi | |
7488 | ||
7489 | ||
7490 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
b7043674 | 7491 | echo "configure:7492: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
7492 | no_cache=0 |
7493 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7494 | if test "${enable_dirdlg+set}" = set; then | |
7495 | enableval="$enable_dirdlg" | |
7496 | ||
7497 | if test "$enableval" = yes; then | |
7498 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7499 | else | |
7500 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7501 | fi | |
7502 | ||
7503 | else | |
7504 | ||
7505 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
7506 | if test "x$LINE" != x ; then | |
7507 | eval "DEFAULT_$LINE" | |
7508 | else | |
7509 | no_cache=1 | |
7510 | fi | |
7511 | ||
7512 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
7513 | ||
7514 | fi | |
7515 | ||
7516 | ||
7517 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 7518 | if test "$no_cache" != 1; then |
1e6feb95 | 7519 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7520 | fi |
7521 | ||
1e6feb95 | 7522 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 7523 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7524 | else |
698dcdb6 | 7525 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7526 | fi |
698dcdb6 VZ |
7527 | |
7528 | ||
1e6feb95 | 7529 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
b7043674 | 7530 | echo "configure:7531: checking for --enable-msgdlg" >&5 |
10f2d63a | 7531 | no_cache=0 |
1e6feb95 VZ |
7532 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
7533 | if test "${enable_msgdlg+set}" = set; then | |
7534 | enableval="$enable_msgdlg" | |
698dcdb6 | 7535 | |
10f2d63a | 7536 | if test "$enableval" = yes; then |
1e6feb95 | 7537 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 7538 | else |
1e6feb95 | 7539 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 7540 | fi |
698dcdb6 | 7541 | |
10f2d63a | 7542 | else |
698dcdb6 | 7543 | |
1e6feb95 | 7544 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7545 | if test "x$LINE" != x ; then |
7546 | eval "DEFAULT_$LINE" | |
7547 | else | |
7548 | no_cache=1 | |
7549 | fi | |
7550 | ||
1e6feb95 | 7551 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
7552 | |
7553 | fi | |
10f2d63a VZ |
7554 | |
7555 | ||
1e6feb95 | 7556 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 7557 | if test "$no_cache" != 1; then |
1e6feb95 | 7558 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7559 | fi |
7560 | ||
1e6feb95 | 7561 | if test "$wxUSE_MSGDLG" = yes; then |
698dcdb6 | 7562 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7563 | else |
698dcdb6 | 7564 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7565 | fi |
698dcdb6 | 7566 | |
10f2d63a | 7567 | |
1e6feb95 | 7568 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
b7043674 | 7569 | echo "configure:7570: checking for --enable-numberdlg" >&5 |
10f2d63a | 7570 | no_cache=0 |
1e6feb95 VZ |
7571 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7572 | if test "${enable_numberdlg+set}" = set; then | |
7573 | enableval="$enable_numberdlg" | |
698dcdb6 | 7574 | |
10f2d63a | 7575 | if test "$enableval" = yes; then |
1e6feb95 | 7576 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7577 | else |
1e6feb95 | 7578 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7579 | fi |
698dcdb6 | 7580 | |
10f2d63a | 7581 | else |
698dcdb6 | 7582 | |
1e6feb95 | 7583 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7584 | if test "x$LINE" != x ; then |
7585 | eval "DEFAULT_$LINE" | |
7586 | else | |
7587 | no_cache=1 | |
7588 | fi | |
7589 | ||
1e6feb95 | 7590 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
7591 | |
7592 | fi | |
10f2d63a VZ |
7593 | |
7594 | ||
1e6feb95 | 7595 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7596 | if test "$no_cache" != 1; then |
1e6feb95 | 7597 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7598 | fi |
7599 | ||
1e6feb95 | 7600 | if test "$wxUSE_NUMBERDLG" = yes; then |
698dcdb6 | 7601 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7602 | else |
698dcdb6 | 7603 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7604 | fi |
698dcdb6 | 7605 | |
10f2d63a | 7606 | |
cbca9943 | 7607 | echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6 |
b7043674 | 7608 | echo "configure:7609: checking for --enable-splash" >&5 |
cbca9943 VZ |
7609 | no_cache=0 |
7610 | # Check whether --enable-splash or --disable-splash was given. | |
7611 | if test "${enable_splash+set}" = set; then | |
7612 | enableval="$enable_splash" | |
7613 | ||
7614 | if test "$enableval" = yes; then | |
7615 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7616 | else | |
7617 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7618 | fi | |
7619 | ||
7620 | else | |
7621 | ||
7622 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
7623 | if test "x$LINE" != x ; then | |
7624 | eval "DEFAULT_$LINE" | |
7625 | else | |
7626 | no_cache=1 | |
7627 | fi | |
7628 | ||
7629 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
7630 | ||
7631 | fi | |
7632 | ||
7633 | ||
7634 | eval "$ac_cv_use_splash" | |
7635 | if test "$no_cache" != 1; then | |
7636 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7637 | fi | |
7638 | ||
7639 | if test "$wxUSE_SPLASH" = yes; then | |
7640 | echo "$ac_t""yes" 1>&6 | |
7641 | else | |
7642 | echo "$ac_t""no" 1>&6 | |
7643 | fi | |
7644 | ||
7645 | ||
698dcdb6 | 7646 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
b7043674 | 7647 | echo "configure:7648: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
7648 | no_cache=0 |
7649 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7650 | if test "${enable_textdlg+set}" = set; then | |
7651 | enableval="$enable_textdlg" | |
698dcdb6 | 7652 | |
10f2d63a VZ |
7653 | if test "$enableval" = yes; then |
7654 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7655 | else | |
7656 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7657 | fi | |
698dcdb6 | 7658 | |
10f2d63a | 7659 | else |
698dcdb6 | 7660 | |
10f2d63a VZ |
7661 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7662 | if test "x$LINE" != x ; then | |
7663 | eval "DEFAULT_$LINE" | |
7664 | else | |
7665 | no_cache=1 | |
7666 | fi | |
7667 | ||
7668 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
7669 | |
7670 | fi | |
10f2d63a VZ |
7671 | |
7672 | ||
7673 | eval "$ac_cv_use_textdlg" | |
7674 | if test "$no_cache" != 1; then | |
7675 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7676 | fi | |
7677 | ||
7678 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 7679 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7680 | else |
698dcdb6 | 7681 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7682 | fi |
698dcdb6 | 7683 | |
10f2d63a | 7684 | |
698dcdb6 | 7685 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
b7043674 | 7686 | echo "configure:7687: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
7687 | no_cache=0 |
7688 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7689 | if test "${enable_tipdlg+set}" = set; then | |
7690 | enableval="$enable_tipdlg" | |
698dcdb6 | 7691 | |
10f2d63a VZ |
7692 | if test "$enableval" = yes; then |
7693 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7694 | else | |
7695 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7696 | fi | |
698dcdb6 | 7697 | |
10f2d63a | 7698 | else |
698dcdb6 | 7699 | |
10f2d63a VZ |
7700 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7701 | if test "x$LINE" != x ; then | |
7702 | eval "DEFAULT_$LINE" | |
7703 | else | |
7704 | no_cache=1 | |
7705 | fi | |
7706 | ||
7707 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
7708 | |
7709 | fi | |
10f2d63a VZ |
7710 | |
7711 | ||
7712 | eval "$ac_cv_use_tipdlg" | |
7713 | if test "$no_cache" != 1; then | |
7714 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7715 | fi | |
7716 | ||
7717 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 7718 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7719 | else |
698dcdb6 | 7720 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7721 | fi |
698dcdb6 | 7722 | |
10f2d63a | 7723 | |
698dcdb6 | 7724 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
b7043674 | 7725 | echo "configure:7726: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
7726 | no_cache=0 |
7727 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7728 | if test "${enable_progressdlg+set}" = set; then | |
7729 | enableval="$enable_progressdlg" | |
698dcdb6 | 7730 | |
10f2d63a VZ |
7731 | if test "$enableval" = yes; then |
7732 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7733 | else | |
7734 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7735 | fi | |
698dcdb6 | 7736 | |
10f2d63a | 7737 | else |
698dcdb6 | 7738 | |
10f2d63a VZ |
7739 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7740 | if test "x$LINE" != x ; then | |
7741 | eval "DEFAULT_$LINE" | |
7742 | else | |
7743 | no_cache=1 | |
7744 | fi | |
7745 | ||
7746 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
7747 | |
7748 | fi | |
10f2d63a VZ |
7749 | |
7750 | ||
7751 | eval "$ac_cv_use_progressdlg" | |
7752 | if test "$no_cache" != 1; then | |
7753 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7754 | fi | |
7755 | ||
7756 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 7757 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7758 | else |
698dcdb6 | 7759 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7760 | fi |
698dcdb6 | 7761 | |
10f2d63a | 7762 | |
b1f5d087 | 7763 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
b7043674 | 7764 | echo "configure:7765: checking for --enable-wizarddlg" >&5 |
b1f5d087 VZ |
7765 | no_cache=0 |
7766 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7767 | if test "${enable_wizarddlg+set}" = set; then | |
7768 | enableval="$enable_wizarddlg" | |
7769 | ||
7770 | if test "$enableval" = yes; then | |
7771 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7772 | else | |
7773 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7774 | fi | |
7775 | ||
7776 | else | |
7777 | ||
7778 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
7779 | if test "x$LINE" != x ; then | |
7780 | eval "DEFAULT_$LINE" | |
7781 | else | |
7782 | no_cache=1 | |
7783 | fi | |
7784 | ||
7785 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
7786 | ||
7787 | fi | |
7788 | ||
7789 | ||
7790 | eval "$ac_cv_use_wizarddlg" | |
7791 | if test "$no_cache" != 1; then | |
7792 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7793 | fi | |
7794 | ||
7795 | if test "$wxUSE_WIZARDDLG" = yes; then | |
7796 | echo "$ac_t""yes" 1>&6 | |
7797 | else | |
7798 | echo "$ac_t""no" 1>&6 | |
7799 | fi | |
7800 | ||
7801 | ||
7802 | ||
7803 | ||
1e6feb95 | 7804 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
b7043674 | 7805 | echo "configure:7806: checking for --enable-menus" >&5 |
1e6feb95 VZ |
7806 | no_cache=0 |
7807 | # Check whether --enable-menus or --disable-menus was given. | |
7808 | if test "${enable_menus+set}" = set; then | |
7809 | enableval="$enable_menus" | |
7810 | ||
7811 | if test "$enableval" = yes; then | |
7812 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7813 | else | |
7814 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7815 | fi | |
7816 | ||
7817 | else | |
7818 | ||
7819 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
7820 | if test "x$LINE" != x ; then | |
7821 | eval "DEFAULT_$LINE" | |
7822 | else | |
7823 | no_cache=1 | |
7824 | fi | |
7825 | ||
7826 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
7827 | ||
7828 | fi | |
7829 | ||
7830 | ||
7831 | eval "$ac_cv_use_menus" | |
7832 | if test "$no_cache" != 1; then | |
7833 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7834 | fi | |
7835 | ||
7836 | if test "$wxUSE_MENUS" = yes; then | |
7837 | echo "$ac_t""yes" 1>&6 | |
7838 | else | |
7839 | echo "$ac_t""no" 1>&6 | |
7840 | fi | |
7841 | ||
7842 | ||
698dcdb6 | 7843 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
b7043674 | 7844 | echo "configure:7845: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
7845 | no_cache=0 |
7846 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7847 | if test "${enable_miniframe+set}" = set; then | |
7848 | enableval="$enable_miniframe" | |
698dcdb6 | 7849 | |
10f2d63a VZ |
7850 | if test "$enableval" = yes; then |
7851 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7852 | else | |
7853 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7854 | fi | |
698dcdb6 | 7855 | |
10f2d63a | 7856 | else |
698dcdb6 | 7857 | |
10f2d63a VZ |
7858 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
7859 | if test "x$LINE" != x ; then | |
7860 | eval "DEFAULT_$LINE" | |
7861 | else | |
7862 | no_cache=1 | |
7863 | fi | |
7864 | ||
7865 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
7866 | |
7867 | fi | |
10f2d63a VZ |
7868 | |
7869 | ||
7870 | eval "$ac_cv_use_miniframe" | |
7871 | if test "$no_cache" != 1; then | |
7872 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7873 | fi | |
7874 | ||
7875 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 7876 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7877 | else |
698dcdb6 | 7878 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7879 | fi |
698dcdb6 | 7880 | |
10f2d63a | 7881 | |
698dcdb6 | 7882 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
b7043674 | 7883 | echo "configure:7884: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
7884 | no_cache=0 |
7885 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7886 | if test "${enable_tooltips+set}" = set; then | |
7887 | enableval="$enable_tooltips" | |
698dcdb6 | 7888 | |
10f2d63a VZ |
7889 | if test "$enableval" = yes; then |
7890 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7891 | else | |
7892 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7893 | fi | |
698dcdb6 | 7894 | |
10f2d63a | 7895 | else |
698dcdb6 | 7896 | |
10f2d63a VZ |
7897 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
7898 | if test "x$LINE" != x ; then | |
7899 | eval "DEFAULT_$LINE" | |
7900 | else | |
7901 | no_cache=1 | |
7902 | fi | |
7903 | ||
7904 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
7905 | |
7906 | fi | |
10f2d63a VZ |
7907 | |
7908 | ||
7909 | eval "$ac_cv_use_tooltips" | |
7910 | if test "$no_cache" != 1; then | |
7911 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7912 | fi | |
7913 | ||
7914 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 7915 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7916 | else |
698dcdb6 | 7917 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7918 | fi |
698dcdb6 | 7919 | |
10f2d63a | 7920 | |
698dcdb6 | 7921 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
b7043674 | 7922 | echo "configure:7923: checking for --enable-splines" >&5 |
10f2d63a VZ |
7923 | no_cache=0 |
7924 | # Check whether --enable-splines or --disable-splines was given. | |
7925 | if test "${enable_splines+set}" = set; then | |
7926 | enableval="$enable_splines" | |
698dcdb6 | 7927 | |
10f2d63a VZ |
7928 | if test "$enableval" = yes; then |
7929 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7930 | else | |
7931 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7932 | fi | |
698dcdb6 | 7933 | |
10f2d63a | 7934 | else |
698dcdb6 | 7935 | |
10f2d63a VZ |
7936 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
7937 | if test "x$LINE" != x ; then | |
7938 | eval "DEFAULT_$LINE" | |
7939 | else | |
7940 | no_cache=1 | |
7941 | fi | |
7942 | ||
7943 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
7944 | |
7945 | fi | |
10f2d63a VZ |
7946 | |
7947 | ||
7948 | eval "$ac_cv_use_splines" | |
7949 | if test "$no_cache" != 1; then | |
7950 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7951 | fi | |
7952 | ||
7953 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 7954 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7955 | else |
698dcdb6 | 7956 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7957 | fi |
698dcdb6 | 7958 | |
10f2d63a | 7959 | |
698dcdb6 | 7960 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
b7043674 | 7961 | echo "configure:7962: checking for --enable-validators" >&5 |
10f2d63a VZ |
7962 | no_cache=0 |
7963 | # Check whether --enable-validators or --disable-validators was given. | |
7964 | if test "${enable_validators+set}" = set; then | |
7965 | enableval="$enable_validators" | |
698dcdb6 | 7966 | |
10f2d63a VZ |
7967 | if test "$enableval" = yes; then |
7968 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7969 | else | |
7970 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7971 | fi | |
698dcdb6 | 7972 | |
10f2d63a | 7973 | else |
698dcdb6 | 7974 | |
10f2d63a VZ |
7975 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
7976 | if test "x$LINE" != x ; then | |
7977 | eval "DEFAULT_$LINE" | |
7978 | else | |
7979 | no_cache=1 | |
7980 | fi | |
7981 | ||
7982 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
7983 | |
7984 | fi | |
10f2d63a VZ |
7985 | |
7986 | ||
7987 | eval "$ac_cv_use_validators" | |
7988 | if test "$no_cache" != 1; then | |
7989 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7990 | fi | |
7991 | ||
7992 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 7993 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7994 | else |
698dcdb6 | 7995 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7996 | fi |
698dcdb6 | 7997 | |
10f2d63a | 7998 | |
698dcdb6 | 7999 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
b7043674 | 8000 | echo "configure:8001: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
8001 | no_cache=0 |
8002 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
8003 | if test "${enable_busyinfo+set}" = set; then | |
8004 | enableval="$enable_busyinfo" | |
698dcdb6 | 8005 | |
10f2d63a VZ |
8006 | if test "$enableval" = yes; then |
8007 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
8008 | else | |
8009 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
8010 | fi | |
698dcdb6 | 8011 | |
10f2d63a | 8012 | else |
698dcdb6 | 8013 | |
10f2d63a VZ |
8014 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
8015 | if test "x$LINE" != x ; then | |
8016 | eval "DEFAULT_$LINE" | |
8017 | else | |
8018 | no_cache=1 | |
8019 | fi | |
8020 | ||
8021 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
8022 | |
8023 | fi | |
10f2d63a VZ |
8024 | |
8025 | ||
8026 | eval "$ac_cv_use_busyinfo" | |
8027 | if test "$no_cache" != 1; then | |
8028 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
8029 | fi | |
8030 | ||
8031 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 8032 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8033 | else |
698dcdb6 | 8034 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8035 | fi |
698dcdb6 | 8036 | |
10f2d63a | 8037 | |
698dcdb6 | 8038 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
b7043674 | 8039 | echo "configure:8040: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
8040 | no_cache=0 |
8041 | # Check whether --enable-joystick or --disable-joystick was given. | |
8042 | if test "${enable_joystick+set}" = set; then | |
8043 | enableval="$enable_joystick" | |
698dcdb6 | 8044 | |
f6bcfd97 BP |
8045 | if test "$enableval" = yes; then |
8046 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8047 | else | |
8048 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8049 | fi | |
698dcdb6 | 8050 | |
f6bcfd97 | 8051 | else |
698dcdb6 | 8052 | |
f6bcfd97 BP |
8053 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
8054 | if test "x$LINE" != x ; then | |
8055 | eval "DEFAULT_$LINE" | |
8056 | else | |
8057 | no_cache=1 | |
8058 | fi | |
8059 | ||
8060 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
8061 | |
8062 | fi | |
f6bcfd97 BP |
8063 | |
8064 | ||
8065 | eval "$ac_cv_use_joystick" | |
8066 | if test "$no_cache" != 1; then | |
8067 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8068 | fi | |
8069 | ||
8070 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 8071 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 8072 | else |
698dcdb6 | 8073 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 8074 | fi |
698dcdb6 VZ |
8075 | |
8076 | ||
1e6feb95 | 8077 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
b7043674 | 8078 | echo "configure:8079: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
8079 | no_cache=0 |
8080 | # Check whether --enable-metafile or --disable-metafile was given. | |
8081 | if test "${enable_metafile+set}" = set; then | |
8082 | enableval="$enable_metafile" | |
8083 | ||
8084 | if test "$enableval" = yes; then | |
8085 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8086 | else | |
8087 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8088 | fi | |
8089 | ||
8090 | else | |
8091 | ||
8092 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
8093 | if test "x$LINE" != x ; then | |
8094 | eval "DEFAULT_$LINE" | |
8095 | else | |
8096 | no_cache=1 | |
8097 | fi | |
8098 | ||
8099 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
8100 | ||
8101 | fi | |
8102 | ||
8103 | ||
8104 | eval "$ac_cv_use_metafile" | |
8105 | if test "$no_cache" != 1; then | |
8106 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8107 | fi | |
8108 | ||
8109 | if test "$wxUSE_METAFILE" = yes; then | |
8110 | echo "$ac_t""yes" 1>&6 | |
8111 | else | |
8112 | echo "$ac_t""no" 1>&6 | |
8113 | fi | |
8114 | ||
8115 | ||
24fd6d87 | 8116 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
b7043674 | 8117 | echo "configure:8118: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
8118 | no_cache=0 |
8119 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8120 | if test "${enable_dragimage+set}" = set; then | |
8121 | enableval="$enable_dragimage" | |
8122 | ||
8123 | if test "$enableval" = yes; then | |
8124 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8125 | else | |
8126 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8127 | fi | |
8128 | ||
8129 | else | |
8130 | ||
8131 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
8132 | if test "x$LINE" != x ; then | |
8133 | eval "DEFAULT_$LINE" | |
8134 | else | |
8135 | no_cache=1 | |
8136 | fi | |
8137 | ||
8138 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
8139 | ||
8140 | fi | |
8141 | ||
8142 | ||
8143 | eval "$ac_cv_use_dragimage" | |
8144 | if test "$no_cache" != 1; then | |
8145 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8146 | fi | |
8147 | ||
8148 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
8149 | echo "$ac_t""yes" 1>&6 | |
8150 | else | |
8151 | echo "$ac_t""no" 1>&6 | |
8152 | fi | |
8153 | ||
8154 | ||
10f2d63a | 8155 | |
698dcdb6 | 8156 | |
edae8572 | 8157 | echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6 |
b7043674 | 8158 | echo "configure:8159: checking for --enable-palette" >&5 |
edae8572 VZ |
8159 | no_cache=0 |
8160 | # Check whether --enable-palette or --disable-palette was given. | |
8161 | if test "${enable_palette+set}" = set; then | |
8162 | enableval="$enable_palette" | |
8163 | ||
8164 | if test "$enableval" = yes; then | |
8165 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8166 | else | |
8167 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8168 | fi | |
8169 | ||
8170 | else | |
8171 | ||
8172 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
8173 | if test "x$LINE" != x ; then | |
8174 | eval "DEFAULT_$LINE" | |
8175 | else | |
8176 | no_cache=1 | |
8177 | fi | |
8178 | ||
8179 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
8180 | ||
8181 | fi | |
8182 | ||
8183 | ||
8184 | eval "$ac_cv_use_palette" | |
8185 | if test "$no_cache" != 1; then | |
8186 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8187 | fi | |
8188 | ||
8189 | if test "$wxUSE_PALETTE" = yes; then | |
8190 | echo "$ac_t""yes" 1>&6 | |
8191 | else | |
8192 | echo "$ac_t""no" 1>&6 | |
8193 | fi | |
8194 | ||
8195 | ||
698dcdb6 | 8196 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 |
b7043674 | 8197 | echo "configure:8198: checking for --enable-image" >&5 |
0046ff7c VS |
8198 | no_cache=0 |
8199 | # Check whether --enable-image or --disable-image was given. | |
8200 | if test "${enable_image+set}" = set; then | |
8201 | enableval="$enable_image" | |
698dcdb6 | 8202 | |
0046ff7c VS |
8203 | if test "$enableval" = yes; then |
8204 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8205 | else | |
8206 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8207 | fi | |
698dcdb6 | 8208 | |
0046ff7c | 8209 | else |
698dcdb6 | 8210 | |
0046ff7c VS |
8211 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
8212 | if test "x$LINE" != x ; then | |
8213 | eval "DEFAULT_$LINE" | |
8214 | else | |
8215 | no_cache=1 | |
8216 | fi | |
8217 | ||
8218 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
8219 | |
8220 | fi | |
0046ff7c VS |
8221 | |
8222 | ||
8223 | eval "$ac_cv_use_image" | |
8224 | if test "$no_cache" != 1; then | |
8225 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8226 | fi | |
8227 | ||
8228 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 8229 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8230 | else |
698dcdb6 | 8231 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8232 | fi |
698dcdb6 | 8233 | |
0046ff7c | 8234 | |
698dcdb6 | 8235 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
b7043674 | 8236 | echo "configure:8237: checking for --enable-gif" >&5 |
10f2d63a VZ |
8237 | no_cache=0 |
8238 | # Check whether --enable-gif or --disable-gif was given. | |
8239 | if test "${enable_gif+set}" = set; then | |
8240 | enableval="$enable_gif" | |
698dcdb6 | 8241 | |
10f2d63a VZ |
8242 | if test "$enableval" = yes; then |
8243 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8244 | else | |
8245 | ac_cv_use_gif='wxUSE_GIF=no' | |
8246 | fi | |
698dcdb6 | 8247 | |
10f2d63a | 8248 | else |
698dcdb6 | 8249 | |
10f2d63a VZ |
8250 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
8251 | if test "x$LINE" != x ; then | |
8252 | eval "DEFAULT_$LINE" | |
8253 | else | |
8254 | no_cache=1 | |
8255 | fi | |
8256 | ||
8257 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
8258 | |
8259 | fi | |
10f2d63a VZ |
8260 | |
8261 | ||
8262 | eval "$ac_cv_use_gif" | |
8263 | if test "$no_cache" != 1; then | |
8264 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8265 | fi | |
8266 | ||
8267 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 8268 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8269 | else |
698dcdb6 | 8270 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8271 | fi |
698dcdb6 | 8272 | |
10f2d63a | 8273 | |
698dcdb6 | 8274 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
b7043674 | 8275 | echo "configure:8276: checking for --enable-pcx" >&5 |
10f2d63a VZ |
8276 | no_cache=0 |
8277 | # Check whether --enable-pcx or --disable-pcx was given. | |
8278 | if test "${enable_pcx+set}" = set; then | |
8279 | enableval="$enable_pcx" | |
698dcdb6 | 8280 | |
10f2d63a VZ |
8281 | if test "$enableval" = yes; then |
8282 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8283 | else | |
8284 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8285 | fi | |
698dcdb6 | 8286 | |
10f2d63a | 8287 | else |
698dcdb6 | 8288 | |
10f2d63a VZ |
8289 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
8290 | if test "x$LINE" != x ; then | |
8291 | eval "DEFAULT_$LINE" | |
8292 | else | |
8293 | no_cache=1 | |
8294 | fi | |
8295 | ||
8296 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
8297 | |
8298 | fi | |
10f2d63a VZ |
8299 | |
8300 | ||
8301 | eval "$ac_cv_use_pcx" | |
8302 | if test "$no_cache" != 1; then | |
8303 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8304 | fi | |
8305 | ||
8306 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 8307 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8308 | else |
698dcdb6 | 8309 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8310 | fi |
698dcdb6 | 8311 | |
10f2d63a | 8312 | |
4b6b4dfc | 8313 | echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6 |
b7043674 | 8314 | echo "configure:8315: checking for --enable-iff" >&5 |
4b6b4dfc RR |
8315 | no_cache=0 |
8316 | # Check whether --enable-iff or --disable-iff was given. | |
8317 | if test "${enable_iff+set}" = set; then | |
8318 | enableval="$enable_iff" | |
8319 | ||
8320 | if test "$enableval" = yes; then | |
8321 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8322 | else | |
8323 | ac_cv_use_iff='wxUSE_IFF=no' | |
8324 | fi | |
8325 | ||
8326 | else | |
8327 | ||
8328 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
8329 | if test "x$LINE" != x ; then | |
8330 | eval "DEFAULT_$LINE" | |
8331 | else | |
8332 | no_cache=1 | |
8333 | fi | |
8334 | ||
8335 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
8336 | ||
8337 | fi | |
8338 | ||
8339 | ||
8340 | eval "$ac_cv_use_iff" | |
8341 | if test "$no_cache" != 1; then | |
8342 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8343 | fi | |
8344 | ||
8345 | if test "$wxUSE_IFF" = yes; then | |
8346 | echo "$ac_t""yes" 1>&6 | |
8347 | else | |
8348 | echo "$ac_t""no" 1>&6 | |
8349 | fi | |
8350 | ||
8351 | ||
698dcdb6 | 8352 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
b7043674 | 8353 | echo "configure:8354: checking for --enable-pnm" >&5 |
10f2d63a VZ |
8354 | no_cache=0 |
8355 | # Check whether --enable-pnm or --disable-pnm was given. | |
8356 | if test "${enable_pnm+set}" = set; then | |
8357 | enableval="$enable_pnm" | |
698dcdb6 | 8358 | |
10f2d63a VZ |
8359 | if test "$enableval" = yes; then |
8360 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8361 | else | |
8362 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8363 | fi | |
698dcdb6 | 8364 | |
10f2d63a | 8365 | else |
698dcdb6 | 8366 | |
10f2d63a VZ |
8367 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
8368 | if test "x$LINE" != x ; then | |
8369 | eval "DEFAULT_$LINE" | |
8370 | else | |
8371 | no_cache=1 | |
8372 | fi | |
8373 | ||
8374 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
8375 | |
8376 | fi | |
10f2d63a VZ |
8377 | |
8378 | ||
8379 | eval "$ac_cv_use_pnm" | |
8380 | if test "$no_cache" != 1; then | |
8381 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8382 | fi | |
8383 | ||
8384 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 8385 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8386 | else |
698dcdb6 | 8387 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8388 | fi |
698dcdb6 | 8389 | |
10f2d63a | 8390 | |
69d27ff7 | 8391 | echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6 |
b7043674 | 8392 | echo "configure:8393: checking for --enable-xpm" >&5 |
0046ff7c | 8393 | no_cache=0 |
69d27ff7 MB |
8394 | # Check whether --enable-xpm or --disable-xpm was given. |
8395 | if test "${enable_xpm+set}" = set; then | |
8396 | enableval="$enable_xpm" | |
698dcdb6 | 8397 | |
0046ff7c | 8398 | if test "$enableval" = yes; then |
69d27ff7 | 8399 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 8400 | else |
69d27ff7 | 8401 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 8402 | fi |
698dcdb6 | 8403 | |
0046ff7c | 8404 | else |
698dcdb6 | 8405 | |
0046ff7c VS |
8406 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
8407 | if test "x$LINE" != x ; then | |
8408 | eval "DEFAULT_$LINE" | |
8409 | else | |
8410 | no_cache=1 | |
8411 | fi | |
8412 | ||
69d27ff7 | 8413 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
698dcdb6 VZ |
8414 | |
8415 | fi | |
0046ff7c VS |
8416 | |
8417 | ||
69d27ff7 | 8418 | eval "$ac_cv_use_xpm" |
0046ff7c | 8419 | if test "$no_cache" != 1; then |
69d27ff7 | 8420 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
8421 | fi |
8422 | ||
8423 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 8424 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8425 | else |
698dcdb6 | 8426 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8427 | fi |
698dcdb6 | 8428 | |
0046ff7c | 8429 | |
c7206e64 | 8430 | echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6 |
b7043674 | 8431 | echo "configure:8432: checking for --enable-ico_cur" >&5 |
658974ae | 8432 | no_cache=0 |
c7206e64 VS |
8433 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
8434 | if test "${enable_ico_cur+set}" = set; then | |
8435 | enableval="$enable_ico_cur" | |
658974ae VS |
8436 | |
8437 | if test "$enableval" = yes; then | |
c7206e64 | 8438 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 8439 | else |
c7206e64 | 8440 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae VS |
8441 | fi |
8442 | ||
8443 | else | |
8444 | ||
8445 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
8446 | if test "x$LINE" != x ; then | |
8447 | eval "DEFAULT_$LINE" | |
8448 | else | |
8449 | no_cache=1 | |
8450 | fi | |
8451 | ||
c7206e64 | 8452 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
658974ae VS |
8453 | |
8454 | fi | |
8455 | ||
8456 | ||
c7206e64 | 8457 | eval "$ac_cv_use_ico_cur" |
658974ae | 8458 | if test "$no_cache" != 1; then |
c7206e64 | 8459 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
8460 | fi |
8461 | ||
8462 | if test "$wxUSE_ICO_CUR" = yes; then | |
8463 | echo "$ac_t""yes" 1>&6 | |
8464 | else | |
8465 | echo "$ac_t""no" 1>&6 | |
8466 | fi | |
8467 | ||
8468 | ||
b12915c1 VZ |
8469 | fi |
8470 | ||
698dcdb6 | 8471 | |
10f2d63a VZ |
8472 | echo "saving argument cache $wx_arg_cache_file" |
8473 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 8474 | |
10f2d63a | 8475 | |
698dcdb6 VZ |
8476 | |
8477 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
b7043674 | 8478 | echo "configure:8479: checking for toolkit" >&5 |
10f2d63a VZ |
8479 | |
8480 | if test "$wxUSE_GUI" = "yes"; then | |
8481 | ||
3a922bb4 RL |
8482 | if test "$USE_BEOS" = 1; then |
8483 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
8484 | fi | |
b12915c1 | 8485 | |
3a922bb4 RL |
8486 | if test "$TOOLKIT_GIVEN" = 1; then |
8487 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8488 | var=wxUSE_$toolkit | |
8489 | eval "value=\$${var}" | |
8490 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8491 | done | |
10f2d63a | 8492 | else |
3a922bb4 RL |
8493 | for toolkit in `echo $ALL_TOOLKITS`; do |
8494 | if test "$has_toolkit_in_cache" != 1; then | |
8495 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8496 | else | |
8497 | var=DEFAULT_wxUSE_$toolkit | |
8498 | fi | |
8499 | eval "wxUSE_$toolkit=\$${var}" | |
8500 | done | |
10f2d63a | 8501 | fi |
10f2d63a | 8502 | |
3a922bb4 | 8503 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
1725144d | 8504 | + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0}` |
10f2d63a | 8505 | |
3a922bb4 | 8506 | case "${host}" in |
6fa882bd | 8507 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 RL |
8508 | # PATH_IFS is autodetected by OS/2's configure (usually ';') |
8509 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
8510 | LEX_STEM="lexyy" | |
8511 | ;; | |
8512 | *) | |
8513 | PATH_IFS=':' | |
8514 | LEX_STEM="lex.yy" | |
8515 | ;; | |
8516 | esac | |
10f2d63a | 8517 | |
3a922bb4 RL |
8518 | case "$NUM_TOOLKITS" in |
8519 | 1) | |
8520 | ;; | |
8521 | 0) | |
8522 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
8523 | ;; | |
8524 | *) | |
8525 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
8526 | esac | |
10f2d63a | 8527 | |
3a922bb4 RL |
8528 | for toolkit in `echo $ALL_TOOLKITS`; do |
8529 | var=wxUSE_$toolkit | |
8530 | eval "value=\$${var}" | |
8531 | if test "x$value" != x; then | |
8532 | cache_var=CACHE_$toolkit | |
8533 | eval "cache=\$${cache_var}" | |
8534 | if test "$cache" = 1; then | |
8535 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8536 | fi | |
8537 | if test "$value" = 1; then | |
8538 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
8539 | echo "$ac_t""$toolkit_echo" 1>&6 | |
8540 | fi | |
8541 | fi | |
8542 | done | |
10f2d63a | 8543 | else |
cf27ef00 | 8544 | PATH_IFS=':' |
3a922bb4 | 8545 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
8546 | fi |
8547 | ||
698dcdb6 VZ |
8548 | |
8549 | cat > confcache <<\EOF | |
10f2d63a VZ |
8550 | # This file is a shell script that caches the results of configure |
8551 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8552 | # scripts and configure runs. It is not useful on other systems. |
8553 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8554 | # |
698dcdb6 VZ |
8555 | # By default, configure uses ./config.cache as the cache file, |
8556 | # creating it if it does not exist already. You can give configure | |
8557 | # the --cache-file=FILE option to use a different cache file; that is | |
8558 | # what configure does when it calls configure scripts in | |
8559 | # subdirectories, so they share the cache. | |
8560 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8561 | # config.status only pays attention to the cache file if you give it the | |
8562 | # --recheck option to rerun configure. | |
10f2d63a | 8563 | # |
698dcdb6 | 8564 | EOF |
10f2d63a VZ |
8565 | # The following way of writing the cache mishandles newlines in values, |
8566 | # but we know of no workaround that is simple, portable, and efficient. | |
8567 | # So, don't put newlines in cache variables' values. | |
8568 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8569 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8570 | (set) 2>&1 | |
8571 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8572 | *ac_space=\ *) | |
8573 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8574 | # turns \\\\ into \\, and sed turns \\ into \). | |
8575 | sed -n \ | |
8576 | -e "s/'/'\\\\''/g" \ | |
8577 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8578 | ;; | |
8579 | *) | |
8580 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8581 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8582 | ;; | |
8583 | esac >> confcache | |
8584 | if cmp -s $cache_file confcache; then | |
8585 | : | |
8586 | else | |
10f2d63a | 8587 | if test -w $cache_file; then |
698dcdb6 VZ |
8588 | echo "updating cache $cache_file" |
8589 | cat confcache > $cache_file | |
10f2d63a VZ |
8590 | else |
8591 | echo "not updating unwritable cache $cache_file" | |
8592 | fi | |
8593 | fi | |
8594 | rm -f confcache | |
8595 | ||
698dcdb6 | 8596 | |
e59890c3 | 8597 | if test "$build" != "$host" ; then |
f9bc1684 | 8598 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 ; then |
3a922bb4 RL |
8599 | CC=$host_alias-gcc |
8600 | CXX=$host_alias-c++ | |
8601 | AR=$host_alias-ar | |
8602 | RANLIB=$host_alias-ranlib | |
8603 | DLLTOOL=$host_alias-dlltool | |
8604 | RESCOMP=$host_alias-windres | |
8605 | LD=$host_alias-ld | |
8606 | NM=$host_alias-nm | |
8607 | STRIP=$host_alias-strip | |
8608 | else | |
8609 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } | |
8610 | fi | |
10f2d63a VZ |
8611 | fi |
8612 | ||
698dcdb6 | 8613 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 8614 | set dummy gcc; ac_word=$2 |
698dcdb6 | 8615 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
b7043674 | 8616 | echo "configure:8617: checking for $ac_word" >&5 |
698dcdb6 VZ |
8617 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8618 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
8619 | else |
8620 | if test -n "$CC"; then | |
8621 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 8622 | else |
698dcdb6 VZ |
8623 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8624 | ac_dummy="$PATH" | |
8625 | for ac_dir in $ac_dummy; do | |
8626 | test -z "$ac_dir" && ac_dir=. | |
8627 | if test -f $ac_dir/$ac_word; then | |
8628 | ac_cv_prog_CC="gcc" | |
8629 | break | |
8630 | fi | |
8631 | done | |
8632 | IFS="$ac_save_ifs" | |
10f2d63a | 8633 | fi |
6232543b | 8634 | fi |
698dcdb6 | 8635 | CC="$ac_cv_prog_CC" |
6232543b | 8636 | if test -n "$CC"; then |
698dcdb6 | 8637 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8638 | else |
698dcdb6 | 8639 | echo "$ac_t""no" 1>&6 |
1e487827 | 8640 | fi |
6232543b | 8641 | |
1e487827 VS |
8642 | if test -z "$CC"; then |
8643 | # Extract the first word of "cc", so it can be a program name with args. | |
8644 | set dummy cc; ac_word=$2 | |
698dcdb6 | 8645 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
b7043674 | 8646 | echo "configure:8647: checking for $ac_word" >&5 |
698dcdb6 VZ |
8647 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8648 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8649 | else |
8650 | if test -n "$CC"; then | |
8651 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8652 | else | |
698dcdb6 | 8653 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 8654 | ac_prog_rejected=no |
698dcdb6 VZ |
8655 | ac_dummy="$PATH" |
8656 | for ac_dir in $ac_dummy; do | |
8657 | test -z "$ac_dir" && ac_dir=. | |
8658 | if test -f $ac_dir/$ac_word; then | |
8659 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
8660 | ac_prog_rejected=yes | |
8661 | continue | |
8662 | fi | |
8663 | ac_cv_prog_CC="cc" | |
8664 | break | |
8665 | fi | |
8666 | done | |
8667 | IFS="$ac_save_ifs" | |
1e487827 VS |
8668 | if test $ac_prog_rejected = yes; then |
8669 | # We found a bogon in the path, so make sure we never use it. | |
8670 | set dummy $ac_cv_prog_CC | |
8671 | shift | |
698dcdb6 | 8672 | if test $# -gt 0; then |
1e487827 VS |
8673 | # We chose a different compiler from the bogus one. |
8674 | # However, it has the same basename, so the bogon will be chosen | |
8675 | # first if we set CC to just the basename; use the full file name. | |
8676 | shift | |
698dcdb6 | 8677 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
8678 | shift |
8679 | ac_cv_prog_CC="$@" | |
703e0a69 | 8680 | fi |
1e487827 VS |
8681 | fi |
8682 | fi | |
8683 | fi | |
698dcdb6 | 8684 | CC="$ac_cv_prog_CC" |
1e487827 | 8685 | if test -n "$CC"; then |
698dcdb6 | 8686 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 8687 | else |
698dcdb6 | 8688 | echo "$ac_t""no" 1>&6 |
703e0a69 | 8689 | fi |
1e487827 | 8690 | |
698dcdb6 VZ |
8691 | if test -z "$CC"; then |
8692 | case "`uname -s`" in | |
8693 | *win32* | *WIN32*) | |
8694 | # Extract the first word of "cl", so it can be a program name with args. | |
8695 | set dummy cl; ac_word=$2 | |
8696 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b7043674 | 8697 | echo "configure:8698: checking for $ac_word" >&5 |
698dcdb6 VZ |
8698 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8699 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
8700 | else |
8701 | if test -n "$CC"; then | |
8702 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 8703 | else |
698dcdb6 VZ |
8704 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8705 | ac_dummy="$PATH" | |
8706 | for ac_dir in $ac_dummy; do | |
8707 | test -z "$ac_dir" && ac_dir=. | |
8708 | if test -f $ac_dir/$ac_word; then | |
8709 | ac_cv_prog_CC="cl" | |
8710 | break | |
8711 | fi | |
8712 | done | |
8713 | IFS="$ac_save_ifs" | |
703e0a69 | 8714 | fi |
1e487827 | 8715 | fi |
698dcdb6 | 8716 | CC="$ac_cv_prog_CC" |
1e487827 | 8717 | if test -n "$CC"; then |
698dcdb6 | 8718 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8719 | else |
698dcdb6 | 8720 | echo "$ac_t""no" 1>&6 |
1e487827 | 8721 | fi |
698dcdb6 VZ |
8722 | ;; |
8723 | esac | |
8724 | fi | |
8725 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
8726 | fi |
8727 | ||
698dcdb6 | 8728 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
b7043674 | 8729 | echo "configure:8730: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 8730 | |
698dcdb6 VZ |
8731 | ac_ext=c |
8732 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8733 | ac_cpp='$CPP $CPPFLAGS' | |
8734 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8735 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8736 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 8737 | |
698dcdb6 | 8738 | cat > conftest.$ac_ext << EOF |
1e487827 | 8739 | |
b7043674 | 8740 | #line 8741 "configure" |
1e487827 VS |
8741 | #include "confdefs.h" |
8742 | ||
698dcdb6 VZ |
8743 | main(){return(0);} |
8744 | EOF | |
b7043674 | 8745 | if { (eval echo configure:8746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8746 | ac_cv_prog_cc_works=yes |
8747 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8748 | if (./conftest; exit) 2>/dev/null; then | |
8749 | ac_cv_prog_cc_cross=no | |
8750 | else | |
8751 | ac_cv_prog_cc_cross=yes | |
8752 | fi | |
8753 | else | |
8754 | echo "configure: failed program was:" >&5 | |
8755 | cat conftest.$ac_ext >&5 | |
8756 | ac_cv_prog_cc_works=no | |
8757 | fi | |
8758 | rm -fr conftest* | |
8759 | ac_ext=c | |
8760 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8761 | ac_cpp='$CPP $CPPFLAGS' | |
8762 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8763 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8764 | cross_compiling=$ac_cv_prog_cc_cross | |
8765 | ||
8766 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
8767 | if test $ac_cv_prog_cc_works = no; then | |
8768 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
8769 | fi | |
8770 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
b7043674 | 8771 | echo "configure:8772: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8772 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
8773 | cross_compiling=$ac_cv_prog_cc_cross | |
8774 | ||
8775 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
b7043674 | 8776 | echo "configure:8777: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
8777 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
8778 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8779 | else | |
8780 | cat > conftest.c <<EOF | |
8781 | #ifdef __GNUC__ | |
8782 | yes; | |
1e487827 | 8783 | #endif |
698dcdb6 | 8784 | EOF |
b7043674 | 8785 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8786 | ac_cv_prog_gcc=yes |
8787 | else | |
8788 | ac_cv_prog_gcc=no | |
8789 | fi | |
8790 | fi | |
1e487827 | 8791 | |
698dcdb6 | 8792 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 8793 | |
698dcdb6 VZ |
8794 | if test $ac_cv_prog_gcc = yes; then |
8795 | GCC=yes | |
8796 | else | |
8797 | GCC= | |
8798 | fi | |
1e487827 | 8799 | |
698dcdb6 VZ |
8800 | ac_test_CFLAGS="${CFLAGS+set}" |
8801 | ac_save_CFLAGS="$CFLAGS" | |
8802 | CFLAGS= | |
8803 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
b7043674 | 8804 | echo "configure:8805: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
8805 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
8806 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8807 | else | |
8808 | echo 'void f(){}' > conftest.c | |
8809 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
8810 | ac_cv_prog_cc_g=yes |
8811 | else | |
698dcdb6 | 8812 | ac_cv_prog_cc_g=no |
10f2d63a | 8813 | fi |
698dcdb6 VZ |
8814 | rm -f conftest* |
8815 | ||
10f2d63a | 8816 | fi |
698dcdb6 VZ |
8817 | |
8818 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 8819 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 8820 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
8821 | elif test $ac_cv_prog_cc_g = yes; then |
8822 | if test "$GCC" = yes; then | |
8823 | CFLAGS="-g -O2" | |
8824 | else | |
8825 | CFLAGS="-g" | |
8826 | fi | |
8827 | else | |
8828 | if test "$GCC" = yes; then | |
8829 | CFLAGS="-O2" | |
8830 | else | |
8831 | CFLAGS= | |
8832 | fi | |
8833 | fi | |
8834 | ||
8835 | ||
8836 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
8837 | ||
698dcdb6 | 8838 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
b7043674 | 8839 | echo "configure:8840: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
8840 | # On Suns, sometimes $CPP names a directory. |
8841 | if test -n "$CPP" && test -d "$CPP"; then | |
8842 | CPP= | |
8843 | fi | |
8844 | if test -z "$CPP"; then | |
698dcdb6 VZ |
8845 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
8846 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8847 | else | |
8848 | # This must be in double quotes, not single quotes, because CPP may get | |
8849 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
8850 | CPP="${CC-cc} -E" | |
10f2d63a | 8851 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
8852 | # not just through cpp. |
8853 | cat > conftest.$ac_ext <<EOF | |
b7043674 | 8854 | #line 8855 "configure" |
10f2d63a VZ |
8855 | #include "confdefs.h" |
8856 | #include <assert.h> | |
698dcdb6 VZ |
8857 | Syntax Error |
8858 | EOF | |
8859 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b7043674 | 8860 | { (eval echo configure:8861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8861 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8862 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8863 | : |
8864 | else | |
698dcdb6 VZ |
8865 | echo "$ac_err" >&5 |
8866 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8867 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8868 | rm -rf conftest* |
8869 | CPP="${CC-cc} -E -traditional-cpp" | |
8870 | cat > conftest.$ac_ext <<EOF | |
b7043674 | 8871 | #line 8872 "configure" |
10f2d63a | 8872 | #include "confdefs.h" |
698dcdb6 VZ |
8873 | #include <assert.h> |
8874 | Syntax Error | |
8875 | EOF | |
8876 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b7043674 | 8877 | { (eval echo configure:8878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8878 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8879 | if test -z "$ac_err"; then | |
8880 | : | |
10f2d63a | 8881 | else |
698dcdb6 VZ |
8882 | echo "$ac_err" >&5 |
8883 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8884 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8885 | rm -rf conftest* |
8886 | CPP="${CC-cc} -nologo -E" | |
8887 | cat > conftest.$ac_ext <<EOF | |
b7043674 | 8888 | #line 8889 "configure" |
10f2d63a VZ |
8889 | #include "confdefs.h" |
8890 | #include <assert.h> | |
698dcdb6 VZ |
8891 | Syntax Error |
8892 | EOF | |
8893 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b7043674 | 8894 | { (eval echo configure:8895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8895 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8896 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8897 | : |
8898 | else | |
698dcdb6 VZ |
8899 | echo "$ac_err" >&5 |
8900 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8901 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8902 | rm -rf conftest* |
8903 | CPP=/lib/cpp | |
10f2d63a | 8904 | fi |
698dcdb6 | 8905 | rm -f conftest* |
10f2d63a | 8906 | fi |
698dcdb6 | 8907 | rm -f conftest* |
703e0a69 | 8908 | fi |
698dcdb6 VZ |
8909 | rm -f conftest* |
8910 | ac_cv_prog_CPP="$CPP" | |
8911 | fi | |
8912 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 8913 | else |
698dcdb6 | 8914 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 8915 | fi |
698dcdb6 | 8916 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 8917 | |
698dcdb6 VZ |
8918 | if test $ac_cv_prog_gcc = yes; then |
8919 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
b7043674 | 8920 | echo "configure:8921: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
8921 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
8922 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8923 | else |
8924 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 8925 | cat > conftest.$ac_ext <<EOF |
b7043674 | 8926 | #line 8927 "configure" |
10f2d63a VZ |
8927 | #include "confdefs.h" |
8928 | #include <sgtty.h> | |
8929 | Autoconf TIOCGETP | |
698dcdb6 | 8930 | EOF |
10f2d63a VZ |
8931 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8932 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8933 | rm -rf conftest* |
10f2d63a VZ |
8934 | ac_cv_prog_gcc_traditional=yes |
8935 | else | |
698dcdb6 | 8936 | rm -rf conftest* |
10f2d63a VZ |
8937 | ac_cv_prog_gcc_traditional=no |
8938 | fi | |
8939 | rm -f conftest* | |
8940 | ||
698dcdb6 | 8941 | |
10f2d63a | 8942 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 8943 | cat > conftest.$ac_ext <<EOF |
b7043674 | 8944 | #line 8945 "configure" |
10f2d63a VZ |
8945 | #include "confdefs.h" |
8946 | #include <termio.h> | |
8947 | Autoconf TCGETA | |
698dcdb6 | 8948 | EOF |
10f2d63a VZ |
8949 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8950 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8951 | rm -rf conftest* |
10f2d63a VZ |
8952 | ac_cv_prog_gcc_traditional=yes |
8953 | fi | |
8954 | rm -f conftest* | |
8955 | ||
8956 | fi | |
8957 | fi | |
698dcdb6 VZ |
8958 | |
8959 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
8960 | if test $ac_cv_prog_gcc_traditional = yes; then |
8961 | CC="$CC -traditional" | |
8962 | fi | |
8963 | fi | |
8964 | ||
703e0a69 | 8965 | |
698dcdb6 VZ |
8966 | |
8967 | ac_ext=C | |
8968 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 8969 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
8970 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8971 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8972 | cross_compiling=$ac_cv_prog_cxx_cross | |
8973 | ||
8974 | ||
8975 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
8976 | do | |
8977 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8978 | set dummy $ac_prog; ac_word=$2 | |
8979 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b7043674 | 8980 | echo "configure:8981: checking for $ac_word" >&5 |
698dcdb6 VZ |
8981 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
8982 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8983 | else |
8984 | if test -n "$CXX"; then | |
8985 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8986 | else | |
698dcdb6 VZ |
8987 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8988 | ac_dummy="$PATH" | |
8989 | for ac_dir in $ac_dummy; do | |
8990 | test -z "$ac_dir" && ac_dir=. | |
8991 | if test -f $ac_dir/$ac_word; then | |
8992 | ac_cv_prog_CXX="$ac_prog" | |
8993 | break | |
8994 | fi | |
8995 | done | |
8996 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8997 | fi |
8998 | fi | |
698dcdb6 | 8999 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 9000 | if test -n "$CXX"; then |
698dcdb6 | 9001 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 9002 | else |
698dcdb6 | 9003 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9004 | fi |
9005 | ||
698dcdb6 | 9006 | test -n "$CXX" && break |
10f2d63a | 9007 | done |
698dcdb6 | 9008 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
9009 | |
9010 | ||
698dcdb6 | 9011 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
b7043674 | 9012 | echo "configure:9013: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 9013 | |
698dcdb6 VZ |
9014 | ac_ext=C |
9015 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9016 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9017 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9018 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9019 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 9020 | |
698dcdb6 VZ |
9021 | cat > conftest.$ac_ext << EOF |
9022 | ||
b7043674 | 9023 | #line 9024 "configure" |
10f2d63a VZ |
9024 | #include "confdefs.h" |
9025 | ||
698dcdb6 VZ |
9026 | int main(){return(0);} |
9027 | EOF | |
b7043674 | 9028 | if { (eval echo configure:9029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9029 | ac_cv_prog_cxx_works=yes |
9030 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9031 | if (./conftest; exit) 2>/dev/null; then | |
9032 | ac_cv_prog_cxx_cross=no | |
9033 | else | |
9034 | ac_cv_prog_cxx_cross=yes | |
9035 | fi | |
9036 | else | |
9037 | echo "configure: failed program was:" >&5 | |
9038 | cat conftest.$ac_ext >&5 | |
9039 | ac_cv_prog_cxx_works=no | |
9040 | fi | |
9041 | rm -fr conftest* | |
9042 | ac_ext=C | |
9043 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9044 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9045 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9046 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9047 | cross_compiling=$ac_cv_prog_cxx_cross | |
9048 | ||
9049 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
9050 | if test $ac_cv_prog_cxx_works = no; then | |
9051 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
9052 | fi | |
9053 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
b7043674 | 9054 | echo "configure:9055: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
9055 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
9056 | cross_compiling=$ac_cv_prog_cxx_cross | |
9057 | ||
9058 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
b7043674 | 9059 | echo "configure:9060: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
9060 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
9061 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9062 | else | |
9063 | cat > conftest.C <<EOF | |
9064 | #ifdef __GNUC__ | |
9065 | yes; | |
10f2d63a | 9066 | #endif |
698dcdb6 | 9067 | EOF |
b7043674 | 9068 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
9069 | ac_cv_prog_gxx=yes |
9070 | else | |
9071 | ac_cv_prog_gxx=no | |
9072 | fi | |
9073 | fi | |
10f2d63a | 9074 | |
698dcdb6 | 9075 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 9076 | |
698dcdb6 VZ |
9077 | if test $ac_cv_prog_gxx = yes; then |
9078 | GXX=yes | |
9079 | else | |
9080 | GXX= | |
9081 | fi | |
10f2d63a | 9082 | |
698dcdb6 VZ |
9083 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
9084 | ac_save_CXXFLAGS="$CXXFLAGS" | |
9085 | CXXFLAGS= | |
9086 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
b7043674 | 9087 | echo "configure:9088: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
9088 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
9089 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9090 | else | |
9091 | echo 'void f(){}' > conftest.cc | |
9092 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
9093 | ac_cv_prog_cxx_g=yes |
9094 | else | |
698dcdb6 | 9095 | ac_cv_prog_cxx_g=no |
10f2d63a | 9096 | fi |
698dcdb6 VZ |
9097 | rm -f conftest* |
9098 | ||
10f2d63a | 9099 | fi |
698dcdb6 VZ |
9100 | |
9101 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 9102 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 9103 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
9104 | elif test $ac_cv_prog_cxx_g = yes; then |
9105 | if test "$GXX" = yes; then | |
9106 | CXXFLAGS="-g -O2" | |
9107 | else | |
9108 | CXXFLAGS="-g" | |
9109 | fi | |
9110 | else | |
9111 | if test "$GXX" = yes; then | |
9112 | CXXFLAGS="-O2" | |
9113 | else | |
9114 | CXXFLAGS= | |
9115 | fi | |
9116 | fi | |
9117 | ||
9118 | ||
10f2d63a VZ |
9119 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` |
9120 | ||
9121 | ac_ext=c | |
698dcdb6 | 9122 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 9123 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
9124 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9125 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9126 | cross_compiling=$ac_cv_prog_cc_cross | |
9127 | ||
9128 | ||
9129 | # Extract the first word of "ranlib", so it can be a program name with args. | |
9130 | set dummy ranlib; ac_word=$2 | |
9131 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b7043674 | 9132 | echo "configure:9133: checking for $ac_word" >&5 |
698dcdb6 VZ |
9133 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
9134 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9135 | else |
9136 | if test -n "$RANLIB"; then | |
9137 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9138 | else | |
698dcdb6 VZ |
9139 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9140 | ac_dummy="$PATH" | |
9141 | for ac_dir in $ac_dummy; do | |
9142 | test -z "$ac_dir" && ac_dir=. | |
9143 | if test -f $ac_dir/$ac_word; then | |
9144 | ac_cv_prog_RANLIB="ranlib" | |
9145 | break | |
9146 | fi | |
9147 | done | |
9148 | IFS="$ac_save_ifs" | |
9149 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
9150 | fi |
9151 | fi | |
698dcdb6 | 9152 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 9153 | if test -n "$RANLIB"; then |
698dcdb6 | 9154 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 9155 | else |
698dcdb6 | 9156 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9157 | fi |
9158 | ||
9159 | ||
9160 | # Extract the first word of "ar", so it can be a program name with args. | |
9161 | set dummy ar; ac_word=$2 | |
698dcdb6 | 9162 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
b7043674 | 9163 | echo "configure:9164: checking for $ac_word" >&5 |
698dcdb6 VZ |
9164 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
9165 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9166 | else |
9167 | if test -n "$AR"; then | |
9168 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9169 | else | |
698dcdb6 VZ |
9170 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9171 | ac_dummy="$PATH" | |
9172 | for ac_dir in $ac_dummy; do | |
9173 | test -z "$ac_dir" && ac_dir=. | |
9174 | if test -f $ac_dir/$ac_word; then | |
9175 | ac_cv_prog_AR="ar" | |
9176 | break | |
9177 | fi | |
9178 | done | |
9179 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9180 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
9181 | fi | |
9182 | fi | |
698dcdb6 | 9183 | AR="$ac_cv_prog_AR" |
10f2d63a | 9184 | if test -n "$AR"; then |
698dcdb6 | 9185 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 9186 | else |
698dcdb6 | 9187 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9188 | fi |
9189 | ||
698dcdb6 | 9190 | |
6054113a | 9191 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
9192 | # so one script is as good as another. But avoid the broken or |
9193 | # incompatible versions: | |
9194 | # SysV /etc/install, /usr/sbin/install | |
9195 | # SunOS /usr/etc/install | |
9196 | # IRIX /sbin/install | |
9197 | # AIX /bin/install | |
9198 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
9199 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
9200 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
9201 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 | 9202 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
b7043674 | 9203 | echo "configure:9204: checking for a BSD compatible install" >&5 |
10f2d63a | 9204 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
9205 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
9206 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9207 | else |
698dcdb6 | 9208 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
9209 | for ac_dir in $PATH; do |
9210 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
9211 | case "$ac_dir/" in |
9212 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
9213 | *) |
9214 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
9215 | # Don't use installbsd from OSF since it installs stuff as root | |
9216 | # by default. | |
9217 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 9218 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 9219 | if test $ac_prog = install && |
698dcdb6 | 9220 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
9221 | # AIX install. It has an incompatible calling convention. |
9222 | : | |
9223 | else | |
9224 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
9225 | break 2 | |
9226 | fi | |
9227 | fi | |
9228 | done | |
9229 | ;; | |
9230 | esac | |
9231 | done | |
698dcdb6 | 9232 | IFS="$ac_save_IFS" |
10f2d63a VZ |
9233 | |
9234 | fi | |
9235 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 9236 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
9237 | else |
9238 | # As a last resort, use the slow shell script. We don't cache a | |
9239 | # path for INSTALL within a source directory, because that will | |
9240 | # break other packages using the cache if that directory is | |
9241 | # removed, or if the path is relative. | |
698dcdb6 | 9242 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
9243 | fi |
9244 | fi | |
698dcdb6 | 9245 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
9246 | |
9247 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
9248 | # It thinks the first close brace ends the variable substitution. | |
9249 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9250 | ||
698dcdb6 | 9251 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
9252 | |
9253 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
9254 | ||
6054113a GD |
9255 | case "${host}" in |
9256 | ||
b5853384 | 9257 | powerpc-*-darwin* ) |
eb99ae0b GD |
9258 | INSTALL_PROGRAM="cp -fp" |
9259 | INSTALL_DATA="cp -fp" | |
6054113a GD |
9260 | ;; |
9261 | *) | |
9262 | ;; | |
d6853540 | 9263 | esac |
698dcdb6 | 9264 | |
10f2d63a VZ |
9265 | # Extract the first word of "strip", so it can be a program name with args. |
9266 | set dummy strip; ac_word=$2 | |
698dcdb6 | 9267 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
b7043674 | 9268 | echo "configure:9269: checking for $ac_word" >&5 |
698dcdb6 VZ |
9269 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
9270 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9271 | else |
9272 | if test -n "$STRIP"; then | |
9273 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9274 | else | |
698dcdb6 VZ |
9275 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9276 | ac_dummy="$PATH" | |
9277 | for ac_dir in $ac_dummy; do | |
9278 | test -z "$ac_dir" && ac_dir=. | |
9279 | if test -f $ac_dir/$ac_word; then | |
9280 | ac_cv_prog_STRIP="strip" | |
9281 | break | |
9282 | fi | |
9283 | done | |
9284 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9285 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
9286 | fi | |
9287 | fi | |
698dcdb6 | 9288 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 9289 | if test -n "$STRIP"; then |
698dcdb6 | 9290 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 9291 | else |
698dcdb6 | 9292 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9293 | fi |
9294 | ||
698dcdb6 | 9295 | |
414eab6d | 9296 | echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6 |
b7043674 | 9297 | echo "configure:9298: checking if make is GNU make" >&5 |
414eab6d VZ |
9298 | if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then |
9299 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9300 | else | |
9301 | ||
9302 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
9303 | egrep -s GNU); then | |
9304 | wx_cv_prog_makeisgnu="yes" | |
9305 | else | |
9306 | wx_cv_prog_makeisgnu="no" | |
9307 | fi | |
9308 | ||
9309 | fi | |
9310 | ||
9311 | echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6 | |
9312 | ||
9313 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
9314 | IF_GNU_MAKE="" | |
9315 | else | |
9316 | IF_GNU_MAKE="#" | |
9317 | fi | |
9318 | ||
9319 | ||
9320 | ||
9321 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
04e7a216 | 9322 | echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6 |
b7043674 | 9323 | echo "configure:9324: checking if make supports VPATH" >&5 |
04e7a216 VZ |
9324 | if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then |
9325 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9326 | else | |
9327 | ||
10f2d63a VZ |
9328 | cat - << EOF > confMake |
9329 | check : file | |
9330 | cp \$? \$@ | |
9331 | cp \$? final_file | |
9332 | EOF | |
9333 | ||
9334 | if test ! -d sub ; then | |
9335 | mkdir sub | |
9336 | fi | |
9337 | echo dummy > sub/file | |
f6bcfd97 | 9338 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
9339 | RESULT=$? |
9340 | rm -f sub/file check final_file confMake | |
9341 | rmdir sub | |
9342 | if test "$RESULT" = 0; then | |
04e7a216 | 9343 | wx_cv_prog_makevpath="yes" |
10f2d63a | 9344 | else |
04e7a216 VZ |
9345 | wx_cv_prog_makevpath="no" |
9346 | fi | |
9347 | ||
9348 | fi | |
9349 | ||
9350 | echo "$ac_t""$wx_cv_prog_makevpath" 1>&6 | |
9351 | ||
9352 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
9353 | { echo "configure: error: | |
1e487827 VS |
9354 | You need a make-utility that is able to use the variable |
9355 | VPATH correctly. | |
9356 | If your version of make does not support VPATH correctly, | |
9357 | please install GNU-make (possibly as gmake), and start | |
9358 | configure with the following command: | |
9359 | export MAKE=gmake; ./configure for sh-type shells | |
9360 | setenv MAKE gmake; ./configure for csh-type shells | |
9361 | Also please do remember to use gmake in this case every time | |
9362 | you are trying to compile. | |
698dcdb6 | 9363 | " 1>&2; exit 1; } |
414eab6d | 9364 | fi fi |
10f2d63a VZ |
9365 | for ac_prog in 'bison -y' byacc |
9366 | do | |
698dcdb6 | 9367 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 9368 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 9369 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
b7043674 | 9370 | echo "configure:9371: checking for $ac_word" >&5 |
698dcdb6 VZ |
9371 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
9372 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9373 | else |
9374 | if test -n "$YACC"; then | |
9375 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9376 | else | |
698dcdb6 VZ |
9377 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9378 | ac_dummy="$PATH" | |
9379 | for ac_dir in $ac_dummy; do | |
9380 | test -z "$ac_dir" && ac_dir=. | |
9381 | if test -f $ac_dir/$ac_word; then | |
9382 | ac_cv_prog_YACC="$ac_prog" | |
9383 | break | |
9384 | fi | |
9385 | done | |
9386 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9387 | fi |
9388 | fi | |
698dcdb6 | 9389 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 9390 | if test -n "$YACC"; then |
698dcdb6 | 9391 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 9392 | else |
698dcdb6 | 9393 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9394 | fi |
9395 | ||
698dcdb6 | 9396 | test -n "$YACC" && break |
10f2d63a VZ |
9397 | done |
9398 | test -n "$YACC" || YACC="yacc" | |
9399 | ||
698dcdb6 VZ |
9400 | |
9401 | # Extract the first word of "flex", so it can be a program name with args. | |
9402 | set dummy flex; ac_word=$2 | |
9403 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b7043674 | 9404 | echo "configure:9405: checking for $ac_word" >&5 |
698dcdb6 VZ |
9405 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
9406 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9407 | else |
9408 | if test -n "$LEX"; then | |
9409 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9410 | else | |
698dcdb6 VZ |
9411 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9412 | ac_dummy="$PATH" | |
9413 | for ac_dir in $ac_dummy; do | |
9414 | test -z "$ac_dir" && ac_dir=. | |
9415 | if test -f $ac_dir/$ac_word; then | |
9416 | ac_cv_prog_LEX="flex" | |
9417 | break | |
9418 | fi | |
9419 | done | |
9420 | IFS="$ac_save_ifs" | |
9421 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
9422 | fi |
9423 | fi | |
698dcdb6 | 9424 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 9425 | if test -n "$LEX"; then |
698dcdb6 | 9426 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 9427 | else |
698dcdb6 | 9428 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9429 | fi |
9430 | ||
9431 | if test -z "$LEXLIB" | |
9432 | then | |
698dcdb6 VZ |
9433 | case "$LEX" in |
9434 | flex*) ac_lib=fl ;; | |
9435 | *) ac_lib=l ;; | |
9436 | esac | |
9437 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
b7043674 | 9438 | echo "configure:9439: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
9439 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
9440 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9441 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9442 | else | |
9443 | ac_save_LIBS="$LIBS" | |
9444 | LIBS="-l$ac_lib $LIBS" | |
9445 | cat > conftest.$ac_ext <<EOF | |
b7043674 | 9446 | #line 9447 "configure" |
10f2d63a VZ |
9447 | #include "confdefs.h" |
9448 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9449 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9450 | builtin and then its argument prototype would still apply. */ |
9451 | char yywrap(); | |
10f2d63a | 9452 | |
698dcdb6 VZ |
9453 | int main() { |
9454 | yywrap() | |
9455 | ; return 0; } | |
9456 | EOF | |
b7043674 | 9457 | if { (eval echo configure:9458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9458 | rm -rf conftest* |
9459 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 9460 | else |
698dcdb6 VZ |
9461 | echo "configure: failed program was:" >&5 |
9462 | cat conftest.$ac_ext >&5 | |
9463 | rm -rf conftest* | |
9464 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 9465 | fi |
698dcdb6 VZ |
9466 | rm -f conftest* |
9467 | LIBS="$ac_save_LIBS" | |
9468 | ||
10f2d63a | 9469 | fi |
698dcdb6 VZ |
9470 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
9471 | echo "$ac_t""yes" 1>&6 | |
9472 | LEXLIB="-l$ac_lib" | |
9473 | else | |
9474 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
9475 | fi |
9476 | ||
9477 | fi | |
9478 | ||
9479 | ||
698dcdb6 | 9480 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
b7043674 | 9481 | echo "configure:9482: checking whether ln -s works" >&5 |
698dcdb6 VZ |
9482 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
9483 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9484 | else |
698dcdb6 VZ |
9485 | rm -f conftestdata |
9486 | if ln -s X conftestdata 2>/dev/null | |
9487 | then | |
9488 | rm -f conftestdata | |
9489 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 9490 | else |
698dcdb6 | 9491 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
9492 | fi |
9493 | fi | |
698dcdb6 VZ |
9494 | LN_S="$ac_cv_prog_LN_S" |
9495 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9496 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 9497 | else |
698dcdb6 | 9498 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9499 | fi |
9500 | ||
9501 | ||
9502 | ||
9503 | SEARCH_INCLUDE="\ | |
9504 | /usr/local/include \ | |
9505 | \ | |
9506 | /usr/Motif-1.2/include \ | |
9507 | /usr/Motif-2.1/include \ | |
9508 | \ | |
9509 | /usr/include/Motif1.2 \ | |
9510 | /opt/xpm/include/X11 \ | |
9511 | /opt/GBxpm/include/ \ | |
9512 | /opt/GBxpm/X11/include/ \ | |
9513 | \ | |
9514 | /usr/Motif1.2/include \ | |
9515 | /usr/dt/include \ | |
afc31813 VZ |
9516 | /usr/openwin/include \ |
9517 | \ | |
10f2d63a VZ |
9518 | /usr/include/Xm \ |
9519 | \ | |
9520 | /usr/X11R6/include \ | |
afc31813 | 9521 | /usr/X11R6.4/include \ |
10f2d63a VZ |
9522 | /usr/X11R5/include \ |
9523 | /usr/X11R4/include \ | |
9524 | \ | |
10f2d63a VZ |
9525 | /usr/include/X11R6 \ |
9526 | /usr/include/X11R5 \ | |
9527 | /usr/include/X11R4 \ | |
9528 | \ | |
9529 | /usr/local/X11R6/include \ | |
9530 | /usr/local/X11R5/include \ | |
9531 | /usr/local/X11R4/include \ | |
9532 | \ | |
9533 | /usr/local/include/X11R6 \ | |
9534 | /usr/local/include/X11R5 \ | |
9535 | /usr/local/include/X11R4 \ | |
9536 | \ | |
9537 | /usr/X11/include \ | |
9538 | /usr/include/X11 \ | |
9539 | /usr/local/X11/include \ | |
9540 | /usr/local/include/X11 \ | |
9541 | \ | |
9542 | /usr/X386/include \ | |
9543 | /usr/x386/include \ | |
9544 | /usr/XFree86/include/X11 \ | |
9545 | \ | |
cf27ef00 | 9546 | X:/XFree86/include \ |
ec14dd32 VZ |
9547 | X:/XFree86/include/X11 \ |
9548 | \ | |
10f2d63a VZ |
9549 | /usr/include/gtk \ |
9550 | /usr/local/include/gtk \ | |
9551 | /usr/include/glib \ | |
9552 | /usr/local/include/glib \ | |
9553 | \ | |
9554 | /usr/include/qt \ | |
9555 | /usr/local/include/qt \ | |
9556 | \ | |
9557 | /usr/include/windows \ | |
9558 | /usr/include/wine \ | |
9559 | /usr/local/include/wine \ | |
9560 | \ | |
9561 | /usr/unsupported/include \ | |
9562 | /usr/athena/include \ | |
9563 | /usr/local/x11r5/include \ | |
9564 | /usr/lpp/Xamples/include \ | |
9565 | \ | |
10f2d63a | 9566 | /usr/openwin/share/include \ |
928b5c08 VZ |
9567 | \ |
9568 | /usr/include" | |
10f2d63a VZ |
9569 | |
9570 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
9571 | ||
698dcdb6 VZ |
9572 | |
9573 | cat > confcache <<\EOF | |
10f2d63a VZ |
9574 | # This file is a shell script that caches the results of configure |
9575 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
9576 | # scripts and configure runs. It is not useful on other systems. |
9577 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 9578 | # |
698dcdb6 VZ |
9579 | # By default, configure uses ./config.cache as the cache file, |
9580 | # creating it if it does not exist already. You can give configure | |
9581 | # the --cache-file=FILE option to use a different cache file; that is | |
9582 | # what configure does when it calls configure scripts in | |
9583 | # subdirectories, so they share the cache. | |
9584 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
9585 | # config.status only pays attention to the cache file if you give it the | |
9586 | # --recheck option to rerun configure. | |
10f2d63a | 9587 | # |
698dcdb6 | 9588 | EOF |
10f2d63a VZ |
9589 | # The following way of writing the cache mishandles newlines in values, |
9590 | # but we know of no workaround that is simple, portable, and efficient. | |
9591 | # So, don't put newlines in cache variables' values. | |
9592 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9593 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
9594 | (set) 2>&1 | |
9595 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
9596 | *ac_space=\ *) | |
9597 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
9598 | # turns \\\\ into \\, and sed turns \\ into \). | |
9599 | sed -n \ | |
9600 | -e "s/'/'\\\\''/g" \ | |
9601 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
9602 | ;; | |
9603 | *) | |
9604 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9605 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
9606 | ;; | |
9607 | esac >> confcache | |
9608 | if cmp -s $cache_file confcache; then | |
9609 | : | |
9610 | else | |
10f2d63a | 9611 | if test -w $cache_file; then |
698dcdb6 VZ |
9612 | echo "updating cache $cache_file" |
9613 | cat confcache > $cache_file | |
10f2d63a VZ |
9614 | else |
9615 | echo "not updating unwritable cache $cache_file" | |
9616 | fi | |
9617 | fi | |
9618 | rm -f confcache | |
9619 | ||
698dcdb6 VZ |
9620 | |
9621 | ||
4f14bcd8 | 9622 | |
18dbb1f6 VZ |
9623 | REGEX_INCLUDE= |
9624 | if test "$wxUSE_REGEX" != "no"; then | |
4f14bcd8 GD |
9625 | cat >> confdefs.h <<\EOF |
9626 | #define wxUSE_REGEX 1 | |
9627 | EOF | |
9628 | ||
9629 | ||
9630 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
9631 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` | |
18dbb1f6 | 9632 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 |
b7043674 | 9633 | echo "configure:9634: checking for regex.h" >&5 |
18dbb1f6 VZ |
9634 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9635 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9636 | else | |
9637 | cat > conftest.$ac_ext <<EOF | |
b7043674 | 9638 | #line 9639 "configure" |
18dbb1f6 VZ |
9639 | #include "confdefs.h" |
9640 | #include <regex.h> | |
9641 | EOF | |
9642 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b7043674 | 9643 | { (eval echo configure:9644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18dbb1f6 VZ |
9644 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9645 | if test -z "$ac_err"; then | |
9646 | rm -rf conftest* | |
9647 | eval "ac_cv_header_$ac_safe=yes" | |
9648 | else | |
9649 | echo "$ac_err" >&5 | |
9650 | echo "configure: failed program was:" >&5 | |
9651 | cat conftest.$ac_ext >&5 | |
9652 | rm -rf conftest* | |
9653 | eval "ac_cv_header_$ac_safe=no" | |
9654 | fi | |
9655 | rm -f conftest* | |
9656 | fi | |
9657 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9658 | echo "$ac_t""yes" 1>&6 | |
9659 | for ac_func in regcomp | |
9660 | do | |
9661 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b7043674 | 9662 | echo "configure:9663: checking for $ac_func" >&5 |
18dbb1f6 VZ |
9663 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9664 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9665 | else | |
9666 | cat > conftest.$ac_ext <<EOF | |
b7043674 | 9667 | #line 9668 "configure" |
18dbb1f6 VZ |
9668 | #include "confdefs.h" |
9669 | /* System header to define __stub macros and hopefully few prototypes, | |
9670 | which can conflict with char $ac_func(); below. */ | |
9671 | #include <assert.h> | |
9672 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9673 | /* We use char because int might match the return type of a gcc2 | |
9674 | builtin and then its argument prototype would still apply. */ | |
9675 | char $ac_func(); | |
9676 | ||
9677 | int main() { | |
9678 | ||
9679 | /* The GNU C library defines this for functions which it implements | |
9680 | to always fail with ENOSYS. Some functions are actually named | |
9681 | something starting with __ and the normal name is an alias. */ | |
9682 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9683 | choke me | |
9684 | #else | |
9685 | $ac_func(); | |
9686 | #endif | |
9687 | ||
9688 | ; return 0; } | |
9689 | EOF | |
b7043674 | 9690 | if { (eval echo configure:9691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
18dbb1f6 VZ |
9691 | rm -rf conftest* |
9692 | eval "ac_cv_func_$ac_func=yes" | |
9693 | else | |
9694 | echo "configure: failed program was:" >&5 | |
9695 | cat conftest.$ac_ext >&5 | |
9696 | rm -rf conftest* | |
9697 | eval "ac_cv_func_$ac_func=no" | |
9698 | fi | |
9699 | rm -f conftest* | |
9700 | fi | |
9701 | ||
9702 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9703 | echo "$ac_t""yes" 1>&6 | |
9704 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9705 | cat >> confdefs.h <<EOF | |
9706 | #define $ac_tr_func 1 | |
9707 | EOF | |
9708 | ||
9709 | else | |
9710 | echo "$ac_t""no" 1>&6 | |
9711 | fi | |
9712 | done | |
9713 | ||
9714 | else | |
9715 | echo "$ac_t""no" 1>&6 | |
9716 | fi | |
9717 | ||
9718 | ||
4f14bcd8 GD |
9719 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
9720 | if test "$wxUSE_REGEX" = "sys" ; then | |
9721 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } | |
9722 | else | |
a3df447d | 9723 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9724 | wxUSE_REGEX=builtin |
9725 | fi | |
9726 | else | |
9727 | wxUSE_REGEX=sys | |
18dbb1f6 | 9728 | fi |
18dbb1f6 VZ |
9729 | fi |
9730 | ||
4f14bcd8 GD |
9731 | if test "$wxUSE_REGEX" = "builtin" ; then |
9732 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
9733 | fi | |
18dbb1f6 VZ |
9734 | fi |
9735 | ||
9736 | ||
4f14bcd8 GD |
9737 | ZLIB_INCLUDE= |
9738 | ZLIB_LINK= | |
9739 | if test "$wxUSE_ZLIB" != "no" ; then | |
9740 | cat >> confdefs.h <<\EOF | |
9741 | #define wxUSE_ZLIB 1 | |
9742 | EOF | |
dad6c0ea | 9743 | |
10f2d63a | 9744 | |
4f14bcd8 GD |
9745 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
9746 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | |
9747 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
b7043674 | 9748 | echo "configure:9749: checking for zlib.h" >&5 |
3a922bb4 RL |
9749 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9750 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9751 | else | |
9752 | cat > conftest.$ac_ext <<EOF | |
b7043674 | 9753 | #line 9754 "configure" |
3a922bb4 | 9754 | #include "confdefs.h" |
4f14bcd8 | 9755 | #include <zlib.h> |
3a922bb4 RL |
9756 | EOF |
9757 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b7043674 | 9758 | { (eval echo configure:9759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
9759 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9760 | if test -z "$ac_err"; then | |
9761 | rm -rf conftest* | |
9762 | eval "ac_cv_header_$ac_safe=yes" | |
9763 | else | |
9764 | echo "$ac_err" >&5 | |
9765 | echo "configure: failed program was:" >&5 | |
9766 | cat conftest.$ac_ext >&5 | |
9767 | rm -rf conftest* | |
9768 | eval "ac_cv_header_$ac_safe=no" | |
9769 | fi | |
9770 | rm -f conftest* | |
9771 | fi | |
9772 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9773 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 9774 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 |
b7043674 | 9775 | echo "configure:9776: checking for deflate in -lz" >&5 |
4f14bcd8 GD |
9776 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
9777 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9778 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9779 | else | |
9780 | ac_save_LIBS="$LIBS" | |
9781 | LIBS="-lz $LIBS" | |
9782 | cat > conftest.$ac_ext <<EOF | |
b7043674 | 9783 | #line 9784 "configure" |
4f14bcd8 GD |
9784 | #include "confdefs.h" |
9785 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9786 | /* We use char because int might match the return type of a gcc2 | |
9787 | builtin and then its argument prototype would still apply. */ | |
9788 | char deflate(); | |
9789 | ||
9790 | int main() { | |
9791 | deflate() | |
9792 | ; return 0; } | |
3a922bb4 | 9793 | EOF |
b7043674 | 9794 | if { (eval echo configure:9795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
9795 | rm -rf conftest* |
9796 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9797 | else | |
9798 | echo "configure: failed program was:" >&5 | |
9799 | cat conftest.$ac_ext >&5 | |
9800 | rm -rf conftest* | |
9801 | eval "ac_cv_lib_$ac_lib_var=no" | |
9802 | fi | |
9803 | rm -f conftest* | |
9804 | LIBS="$ac_save_LIBS" | |
9805 | ||
9806 | fi | |
9807 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9808 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9809 | ZLIB_LINK=" -lz" |
3a922bb4 RL |
9810 | else |
9811 | echo "$ac_t""no" 1>&6 | |
9812 | fi | |
10f2d63a | 9813 | |
4f14bcd8 GD |
9814 | else |
9815 | echo "$ac_t""no" 1>&6 | |
9816 | fi | |
9817 | ||
9818 | ||
9819 | if test "x$ZLIB_LINK" = "x" ; then | |
9820 | if test "$wxUSE_ZLIB" = "sys" ; then | |
9821 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } | |
9822 | else | |
a3df447d | 9823 | echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9824 | wxUSE_ZLIB=builtin |
9825 | fi | |
9826 | else | |
9827 | wxUSE_ZLIB=sys | |
9828 | fi | |
9829 | fi | |
9830 | ||
9831 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
9832 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
9833 | fi | |
9834 | fi | |
9835 | ||
9836 | ||
9837 | PNG_INCLUDE= | |
9838 | PNG_LINK= | |
9839 | if test "$wxUSE_LIBPNG" != "no" ; then | |
9840 | cat >> confdefs.h <<\EOF | |
9841 | #define wxUSE_LIBPNG 1 | |
9842 | EOF | |
9843 | ||
81809c07 VS |
9844 | |
9845 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
9846 | echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2 | |
9847 | wxUSE_LIBPNG=sys | |
9848 | fi | |
4f14bcd8 | 9849 | |
81809c07 | 9850 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
a3df447d | 9851 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 |
4f14bcd8 GD |
9852 | wxUSE_LIBPNG=builtin |
9853 | fi | |
9854 | ||
81809c07 VS |
9855 | if test "$wxUSE_MGL" != 1 ; then |
9856 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
9857 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
4f14bcd8 | 9858 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 |
81809c07 | 9859 | echo "configure:9860: checking for png.h" >&5 |
d4158b5d VS |
9860 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9861 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9862 | else | |
9863 | cat > conftest.$ac_ext <<EOF | |
81809c07 | 9864 | #line 9865 "configure" |
d4158b5d | 9865 | #include "confdefs.h" |
4f14bcd8 | 9866 | #include <png.h> |
d4158b5d VS |
9867 | EOF |
9868 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
81809c07 | 9869 | { (eval echo configure:9870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d4158b5d VS |
9870 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9871 | if test -z "$ac_err"; then | |
9872 | rm -rf conftest* | |
9873 | eval "ac_cv_header_$ac_safe=yes" | |
9874 | else | |
9875 | echo "$ac_err" >&5 | |
9876 | echo "configure: failed program was:" >&5 | |
9877 | cat conftest.$ac_ext >&5 | |
9878 | rm -rf conftest* | |
9879 | eval "ac_cv_header_$ac_safe=no" | |
9880 | fi | |
9881 | rm -f conftest* | |
9882 | fi | |
9883 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9884 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 9885 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 |
81809c07 | 9886 | echo "configure:9887: checking for png_check_sig in -lpng" >&5 |
4f14bcd8 GD |
9887 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
9888 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3a922bb4 RL |
9889 | echo $ac_n "(cached) $ac_c" 1>&6 |
9890 | else | |
4f14bcd8 GD |
9891 | ac_save_LIBS="$LIBS" |
9892 | LIBS="-lpng -lz -lm $LIBS" | |
9893 | cat > conftest.$ac_ext <<EOF | |
81809c07 | 9894 | #line 9895 "configure" |
3a922bb4 | 9895 | #include "confdefs.h" |
4f14bcd8 GD |
9896 | /* Override any gcc2 internal prototype to avoid an error. */ |
9897 | /* We use char because int might match the return type of a gcc2 | |
9898 | builtin and then its argument prototype would still apply. */ | |
9899 | char png_check_sig(); | |
f6bcfd97 | 9900 | |
4f14bcd8 GD |
9901 | int main() { |
9902 | png_check_sig() | |
3a922bb4 RL |
9903 | ; return 0; } |
9904 | EOF | |
81809c07 | 9905 | if { (eval echo configure:9906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3a922bb4 | 9906 | rm -rf conftest* |
4f14bcd8 | 9907 | eval "ac_cv_lib_$ac_lib_var=yes" |
3a922bb4 RL |
9908 | else |
9909 | echo "configure: failed program was:" >&5 | |
9910 | cat conftest.$ac_ext >&5 | |
9911 | rm -rf conftest* | |
4f14bcd8 | 9912 | eval "ac_cv_lib_$ac_lib_var=no" |
3a922bb4 RL |
9913 | fi |
9914 | rm -f conftest* | |
4f14bcd8 | 9915 | LIBS="$ac_save_LIBS" |
10f2d63a | 9916 | |
4f14bcd8 GD |
9917 | fi |
9918 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9919 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 9920 | PNG_LINK=" -lpng" |
4f14bcd8 GD |
9921 | else |
9922 | echo "$ac_t""no" 1>&6 | |
9923 | fi | |
32832908 | 9924 | |
81809c07 | 9925 | |
4f14bcd8 GD |
9926 | else |
9927 | echo "$ac_t""no" 1>&6 | |
9928 | fi | |
3a922bb4 | 9929 | |
7b7a7637 | 9930 | |
81809c07 VS |
9931 | if test "x$PNG_LINK" = "x" ; then |
9932 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
9933 | { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } | |
9934 | else | |
9935 | echo "configure: warning: system png library not found, will use built-in instead" 1>&2 | |
9936 | wxUSE_LIBPNG=builtin | |
9937 | fi | |
4f14bcd8 | 9938 | else |
81809c07 | 9939 | wxUSE_LIBPNG=yes |
4f14bcd8 | 9940 | fi |
4f14bcd8 | 9941 | fi |
3a922bb4 RL |
9942 | fi |
9943 | ||
4f14bcd8 GD |
9944 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
9945 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
3a922bb4 RL |
9946 | fi |
9947 | ||
4f14bcd8 | 9948 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
3a922bb4 RL |
9949 | fi |
9950 | ||
32832908 | 9951 | |
4f14bcd8 GD |
9952 | JPEG_INCLUDE= |
9953 | JPEG_LINK= | |
9954 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
9955 | cat >> confdefs.h <<\EOF | |
9956 | #define wxUSE_LIBJPEG 1 | |
9957 | EOF | |
10f2d63a | 9958 | |
8168de4c | 9959 | |
81809c07 VS |
9960 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
9961 | echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2 | |
9962 | wxUSE_LIBJPEG=sys | |
9963 | fi | |
9964 | ||
9965 | if test "$wxUSE_MGL" != 1 ; then | |
9966 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
9967 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | |
9968 | echo "configure:9969: checking for jpeglib.h" >&5 | |
9969 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then | |
8168de4c VZ |
9970 | echo $ac_n "(cached) $ac_c" 1>&6 |
9971 | else | |
4f14bcd8 | 9972 | cat > conftest.$ac_ext <<EOF |
81809c07 | 9973 | #line 9974 "configure" |
4f14bcd8 | 9974 | #include "confdefs.h" |
8168de4c | 9975 | |
81809c07 VS |
9976 | #undef HAVE_STDLIB_H |
9977 | #include <stdio.h> | |
9978 | #include <jpeglib.h> | |
9979 | ||
4f14bcd8 GD |
9980 | int main() { |
9981 | ||
81809c07 | 9982 | |
4f14bcd8 GD |
9983 | ; return 0; } |
9984 | EOF | |
81809c07 | 9985 | if { (eval echo configure:9986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
9986 | rm -rf conftest* |
9987 | ac_cv_header_jpeglib_h=yes | |
6f72b082 | 9988 | else |
4f14bcd8 GD |
9989 | echo "configure: failed program was:" >&5 |
9990 | cat conftest.$ac_ext >&5 | |
9991 | rm -rf conftest* | |
9992 | ac_cv_header_jpeglib_h=no | |
81809c07 | 9993 | |
4f14bcd8 GD |
9994 | fi |
9995 | rm -f conftest* | |
81809c07 | 9996 | |
698dcdb6 | 9997 | fi |
6f72b082 | 9998 | |
81809c07 | 9999 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
4f14bcd8 | 10000 | |
81809c07 VS |
10001 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
10002 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
10003 | echo "configure:10004: checking for jpeg_read_header in -ljpeg" >&5 | |
4f14bcd8 GD |
10004 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
10005 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10006 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 10007 | else |
4f14bcd8 GD |
10008 | ac_save_LIBS="$LIBS" |
10009 | LIBS="-ljpeg $LIBS" | |
10010 | cat > conftest.$ac_ext <<EOF | |
81809c07 | 10011 | #line 10012 "configure" |
4f14bcd8 GD |
10012 | #include "confdefs.h" |
10013 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10014 | /* We use char because int might match the return type of a gcc2 | |
10015 | builtin and then its argument prototype would still apply. */ | |
10016 | char jpeg_read_header(); | |
698dcdb6 | 10017 | |
4f14bcd8 GD |
10018 | int main() { |
10019 | jpeg_read_header() | |
10020 | ; return 0; } | |
10021 | EOF | |
81809c07 | 10022 | if { (eval echo configure:10023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
10023 | rm -rf conftest* |
10024 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6f72b082 | 10025 | else |
4f14bcd8 GD |
10026 | echo "configure: failed program was:" >&5 |
10027 | cat conftest.$ac_ext >&5 | |
10028 | rm -rf conftest* | |
10029 | eval "ac_cv_lib_$ac_lib_var=no" | |
698dcdb6 | 10030 | fi |
4f14bcd8 GD |
10031 | rm -f conftest* |
10032 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 10033 | |
4f14bcd8 GD |
10034 | fi |
10035 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10036 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 10037 | JPEG_LINK=" -ljpeg" |
4f14bcd8 GD |
10038 | else |
10039 | echo "$ac_t""no" 1>&6 | |
10040 | fi | |
10041 | ||
81809c07 | 10042 | fi |
4f14bcd8 | 10043 | |
81809c07 VS |
10044 | if test "x$JPEG_LINK" = "x" ; then |
10045 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
10046 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } | |
10047 | else | |
10048 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 | |
10049 | wxUSE_LIBJPEG=builtin | |
10050 | fi | |
4f14bcd8 | 10051 | else |
81809c07 | 10052 | wxUSE_LIBJPEG=sys |
4f14bcd8 | 10053 | fi |
4f14bcd8 GD |
10054 | fi |
10055 | fi | |
10056 | ||
10057 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
10058 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
10059 | fi | |
10060 | fi | |
10061 | ||
10062 | ||
10063 | TIFF_INCLUDE= | |
10064 | TIFF_LINK= | |
10065 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
10066 | cat >> confdefs.h <<\EOF | |
10067 | #define wxUSE_LIBTIFF 1 | |
10068 | EOF | |
10069 | ||
10070 | ||
10071 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
10072 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
10073 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
81809c07 | 10074 | echo "configure:10075: checking for tiffio.h" >&5 |
4f14bcd8 GD |
10075 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10076 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10077 | else | |
10078 | cat > conftest.$ac_ext <<EOF | |
81809c07 | 10079 | #line 10080 "configure" |
4f14bcd8 GD |
10080 | #include "confdefs.h" |
10081 | #include <tiffio.h> | |
10082 | EOF | |
10083 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
81809c07 | 10084 | { (eval echo configure:10085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
10085 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10086 | if test -z "$ac_err"; then | |
10087 | rm -rf conftest* | |
10088 | eval "ac_cv_header_$ac_safe=yes" | |
10089 | else | |
10090 | echo "$ac_err" >&5 | |
10091 | echo "configure: failed program was:" >&5 | |
10092 | cat conftest.$ac_ext >&5 | |
10093 | rm -rf conftest* | |
10094 | eval "ac_cv_header_$ac_safe=no" | |
10095 | fi | |
10096 | rm -f conftest* | |
10097 | fi | |
10098 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10099 | echo "$ac_t""yes" 1>&6 | |
10100 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
81809c07 | 10101 | echo "configure:10102: checking for TIFFError in -ltiff" >&5 |
4f14bcd8 GD |
10102 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
10103 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10104 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10105 | else | |
10106 | ac_save_LIBS="$LIBS" | |
10107 | LIBS="-ltiff -lm $LIBS" | |
10108 | cat > conftest.$ac_ext <<EOF | |
81809c07 | 10109 | #line 10110 "configure" |
4f14bcd8 GD |
10110 | #include "confdefs.h" |
10111 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10112 | /* We use char because int might match the return type of a gcc2 | |
10113 | builtin and then its argument prototype would still apply. */ | |
10114 | char TIFFError(); | |
10115 | ||
10116 | int main() { | |
10117 | TIFFError() | |
10118 | ; return 0; } | |
10119 | EOF | |
81809c07 | 10120 | if { (eval echo configure:10121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
10121 | rm -rf conftest* |
10122 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10123 | else | |
10124 | echo "configure: failed program was:" >&5 | |
10125 | cat conftest.$ac_ext >&5 | |
10126 | rm -rf conftest* | |
10127 | eval "ac_cv_lib_$ac_lib_var=no" | |
10128 | fi | |
10129 | rm -f conftest* | |
10130 | LIBS="$ac_save_LIBS" | |
10131 | ||
10132 | fi | |
10133 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10134 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 10135 | TIFF_LINK=" -ltiff" |
4f14bcd8 GD |
10136 | else |
10137 | echo "$ac_t""no" 1>&6 | |
10138 | fi | |
10139 | ||
10140 | ||
10141 | else | |
10142 | echo "$ac_t""no" 1>&6 | |
10143 | fi | |
10144 | ||
10145 | ||
10146 | if test "x$TIFF_LINK" = "x" ; then | |
10147 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
10148 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } | |
10149 | else | |
a3df447d | 10150 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
10151 | wxUSE_LIBTIFF=builtin |
10152 | fi | |
10153 | else | |
10154 | wxUSE_LIBTIFF=sys | |
10155 | fi | |
10156 | fi | |
10157 | ||
10158 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
10159 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
10160 | fi | |
10161 | fi | |
10162 | ||
10163 | ||
10164 | FREETYPE_INCLUDE= | |
10165 | FREETYPE_LINK= | |
10166 | if test "$wxUSE_FREETYPE" != "no" ; then | |
10167 | cat >> confdefs.h <<\EOF | |
10168 | #define wxUSE_FREETYPE 1 | |
10169 | EOF | |
10170 | ||
10171 | ||
10172 | if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then | |
10173 | ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'` | |
10174 | echo $ac_n "checking for freetype.h""... $ac_c" 1>&6 | |
81809c07 | 10175 | echo "configure:10176: checking for freetype.h" >&5 |
4f14bcd8 GD |
10176 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10177 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10178 | else | |
10179 | cat > conftest.$ac_ext <<EOF | |
81809c07 | 10180 | #line 10181 "configure" |
4f14bcd8 GD |
10181 | #include "confdefs.h" |
10182 | #include <freetype.h> | |
10183 | EOF | |
10184 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
81809c07 | 10185 | { (eval echo configure:10186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
10186 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10187 | if test -z "$ac_err"; then | |
10188 | rm -rf conftest* | |
10189 | eval "ac_cv_header_$ac_safe=yes" | |
10190 | else | |
10191 | echo "$ac_err" >&5 | |
10192 | echo "configure: failed program was:" >&5 | |
10193 | cat conftest.$ac_ext >&5 | |
10194 | rm -rf conftest* | |
10195 | eval "ac_cv_header_$ac_safe=no" | |
10196 | fi | |
10197 | rm -f conftest* | |
10198 | fi | |
10199 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10200 | echo "$ac_t""yes" 1>&6 | |
10201 | echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6 | |
81809c07 | 10202 | echo "configure:10203: checking for FT_Render_Glyph in -lfreetype" >&5 |
4f14bcd8 GD |
10203 | ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'` |
10204 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10205 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10206 | else | |
10207 | ac_save_LIBS="$LIBS" | |
10208 | LIBS="-lfreetype -lm $LIBS" | |
10209 | cat > conftest.$ac_ext <<EOF | |
81809c07 | 10210 | #line 10211 "configure" |
4f14bcd8 GD |
10211 | #include "confdefs.h" |
10212 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10213 | /* We use char because int might match the return type of a gcc2 | |
10214 | builtin and then its argument prototype would still apply. */ | |
10215 | char FT_Render_Glyph(); | |
10216 | ||
10217 | int main() { | |
10218 | FT_Render_Glyph() | |
10219 | ; return 0; } | |
10220 | EOF | |
81809c07 | 10221 | if { (eval echo configure:10222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
10222 | rm -rf conftest* |
10223 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10224 | else | |
10225 | echo "configure: failed program was:" >&5 | |
10226 | cat conftest.$ac_ext >&5 | |
10227 | rm -rf conftest* | |
10228 | eval "ac_cv_lib_$ac_lib_var=no" | |
10229 | fi | |
10230 | rm -f conftest* | |
10231 | LIBS="$ac_save_LIBS" | |
10232 | ||
10233 | fi | |
10234 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10235 | echo "$ac_t""yes" 1>&6 | |
3d63bc3a | 10236 | FREETYPE_LINK=" -lfreetype" |
4f14bcd8 GD |
10237 | else |
10238 | echo "$ac_t""no" 1>&6 | |
10239 | fi | |
10240 | ||
10241 | ||
10242 | else | |
10243 | echo "$ac_t""no" 1>&6 | |
10244 | fi | |
10245 | ||
10246 | ||
10247 | if test "x$FREETYPE_LINK" = "x" ; then | |
10248 | if test "$wxUSE_FREETYPE" = "sys" ; then | |
10249 | { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; } | |
10250 | else | |
a3df447d | 10251 | echo "configure: warning: system freetype library not found, will use built-in instead" 1>&2 |
4f14bcd8 GD |
10252 | wxUSE_FREETYPE=builtin |
10253 | fi | |
10254 | else | |
10255 | wxUSE_FREETYPE=sys | |
10256 | fi | |
10257 | fi | |
10258 | ||
10259 | if test "$wxUSE_FREETYPE" = "builtin" ; then | |
10260 | FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype" | |
10261 | fi | |
10262 | fi | |
10263 | ||
10264 | ||
10265 | AFMINSTALL= | |
10266 | ||
10267 | TOOLKIT= | |
10268 | TOOLKIT_INCLUDE= | |
10269 | WIDGET_SET= | |
10270 | ||
10271 | if test "$USE_WIN32" = 1 ; then | |
10272 | for ac_hdr in w32api.h | |
10273 | do | |
10274 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10275 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
81809c07 | 10276 | echo "configure:10277: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
10277 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10278 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10279 | else | |
10280 | cat > conftest.$ac_ext <<EOF | |
81809c07 | 10281 | #line 10282 "configure" |
4f14bcd8 GD |
10282 | #include "confdefs.h" |
10283 | #include <$ac_hdr> | |
10284 | EOF | |
10285 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
81809c07 | 10286 | { (eval echo configure:10287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
10287 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10288 | if test -z "$ac_err"; then | |
10289 | rm -rf conftest* | |
10290 | eval "ac_cv_header_$ac_safe=yes" | |
10291 | else | |
10292 | echo "$ac_err" >&5 | |
10293 | echo "configure: failed program was:" >&5 | |
10294 | cat conftest.$ac_ext >&5 | |
10295 | rm -rf conftest* | |
10296 | eval "ac_cv_header_$ac_safe=no" | |
10297 | fi | |
10298 | rm -f conftest* | |
10299 | fi | |
10300 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10301 | echo "$ac_t""yes" 1>&6 | |
10302 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10303 | cat >> confdefs.h <<EOF | |
10304 | #define $ac_tr_hdr 1 | |
10305 | EOF | |
10306 | ||
10307 | else | |
10308 | echo "$ac_t""no" 1>&6 | |
10309 | fi | |
10310 | done | |
10311 | ||
10312 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
10313 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
81809c07 | 10314 | echo "configure:10315: checking for windows.h" >&5 |
4f14bcd8 GD |
10315 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10316 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10317 | else | |
10318 | cat > conftest.$ac_ext <<EOF | |
81809c07 | 10319 | #line 10320 "configure" |
4f14bcd8 GD |
10320 | #include "confdefs.h" |
10321 | #include <windows.h> | |
10322 | EOF | |
10323 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
81809c07 | 10324 | { (eval echo configure:10325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
10325 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10326 | if test -z "$ac_err"; then | |
10327 | rm -rf conftest* | |
10328 | eval "ac_cv_header_$ac_safe=yes" | |
10329 | else | |
10330 | echo "$ac_err" >&5 | |
10331 | echo "configure: failed program was:" >&5 | |
10332 | cat conftest.$ac_ext >&5 | |
10333 | rm -rf conftest* | |
10334 | eval "ac_cv_header_$ac_safe=no" | |
10335 | fi | |
10336 | rm -f conftest* | |
10337 | fi | |
10338 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10339 | echo "$ac_t""yes" 1>&6 | |
10340 | : | |
10341 | else | |
10342 | echo "$ac_t""no" 1>&6 | |
10343 | ||
10344 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
10345 | ||
10346 | fi | |
10347 | ||
10348 | ||
10349 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 | |
81809c07 | 10350 | echo "configure:10351: checking if w32api has good enough MSIE support" >&5 |
ea7682f0 | 10351 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then |
4f14bcd8 GD |
10352 | echo $ac_n "(cached) $ac_c" 1>&6 |
10353 | else | |
10354 | ||
10355 | cat > conftest.$ac_ext <<EOF | |
81809c07 | 10356 | #line 10357 "configure" |
4f14bcd8 GD |
10357 | #include "confdefs.h" |
10358 | #include <w32api.h> | |
10359 | int main() { | |
10360 | ||
10361 | #define wxCHECK_W32API_VERSION( major, minor ) \ | |
10362 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
10363 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
10364 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
10365 | ||
10366 | #if !wxCHECK_W32API_VERSION(1,1) | |
10367 | #error You need w32api 1.1 or newer | |
10368 | #endif | |
10369 | ||
10370 | ; return 0; } | |
10371 | EOF | |
81809c07 | 10372 | if { (eval echo configure:10373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
10373 | rm -rf conftest* |
10374 | ||
ea7682f0 | 10375 | wx_cv_w32api_win32_ie=yes |
4f14bcd8 GD |
10376 | |
10377 | else | |
10378 | echo "configure: failed program was:" >&5 | |
10379 | cat conftest.$ac_ext >&5 | |
10380 | rm -rf conftest* | |
10381 | ||
ea7682f0 | 10382 | wx_cv_w32api_win32_ie=no |
4f14bcd8 GD |
10383 | |
10384 | fi | |
10385 | rm -f conftest* | |
10386 | ||
10387 | fi | |
10388 | ||
ea7682f0 VS |
10389 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 |
10390 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then | |
10391 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
10392 | fi | |
4f14bcd8 GD |
10393 | |
10394 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" | |
10395 | ||
77e13408 RL |
10396 | case "${host}" in |
10397 | *-*-cygwin* ) | |
10398 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
10399 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
10400 | esac | |
4f14bcd8 GD |
10401 | |
10402 | if test "$wxUSE_ODBC" = "yes" ; then | |
a72a4bfa | 10403 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" |
4f14bcd8 GD |
10404 | fi |
10405 | ||
4f14bcd8 GD |
10406 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
10407 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
10408 | fi | |
10409 | ||
10410 | if test "$wxUSE_GUI" = "yes"; then | |
10411 | USE_GUI=1 | |
10412 | ||
10413 | GUI_TK_LIBRARY= | |
10414 | ||
10415 | WXGTK12= | |
10416 | WXGTK127= | |
10417 | WXGTK20= | |
10418 | ||
77e13408 | 10419 | if test "$wxUSE_MSW" = 1 ; then |
4f14bcd8 GD |
10420 | TOOLKIT=MSW |
10421 | GUIDIST=MSW_DIST | |
77e13408 RL |
10422 | |
10423 | case "${host}" in | |
10424 | *-*-mingw32* ) | |
3d63bc3a | 10425 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" |
77e13408 | 10426 | esac |
4f14bcd8 GD |
10427 | fi |
10428 | ||
10429 | if test "$wxUSE_GTK" = 1; then | |
10430 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 | |
81809c07 | 10431 | echo "configure:10432: checking for GTK+ version" >&5 |
4f14bcd8 GD |
10432 | |
10433 | gtk_version_cached=1 | |
10434 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
10435 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10436 | else | |
10437 | ||
10438 | gtk_version_cached=0 | |
d48ad9bd | 10439 | echo "$ac_t""" 1>&6 |
4f14bcd8 | 10440 | |
3f345b47 VZ |
10441 | GTK_MODULES= |
10442 | if test "$wxUSE_THREADS" = "yes"; then | |
10443 | GTK_MODULES=gthread | |
10444 | fi | |
10445 | ||
4f14bcd8 GD |
10446 | wx_cv_lib_gtk= |
10447 | if test "x$wxUSE_GTK2" = "xyes"; then | |
10448 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
10449 | if test "${with_gtk_prefix+set}" = set; then | |
10450 | withval="$with_gtk_prefix" | |
10451 | gtk_config_prefix="$withval" | |
10452 | else | |
10453 | gtk_config_prefix="" | |
10454 | fi | |
10455 | ||
10456 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
10457 | if test "${with_gtk_exec_prefix+set}" = set; then | |
10458 | withval="$with_gtk_exec_prefix" | |
10459 | gtk_config_exec_prefix="$withval" | |
10460 | else | |
10461 | gtk_config_exec_prefix="" | |
10462 | fi | |
10463 | ||
10464 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
10465 | if test "${enable_gtktest+set}" = set; then | |
10466 | enableval="$enable_gtktest" | |
10467 | : | |
10468 | else | |
10469 | enable_gtktest=yes | |
10470 | fi | |
10471 | ||
10472 | ||
3f345b47 | 10473 | for module in . $GTK_MODULES |
4f14bcd8 | 10474 | do |
6f72b082 | 10475 | case "$module" in |
8168de4c | 10476 | gthread) |
6f72b082 OK |
10477 | gtk_config_args="$gtk_config_args gthread" |
10478 | ;; | |
10479 | esac | |
10480 | done | |
10481 | ||
10482 | if test x$gtk_config_exec_prefix != x ; then | |
10483 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10484 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
10485 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
10486 | fi | |
10487 | fi | |
10488 | if test x$gtk_config_prefix != x ; then | |
10489 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10490 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
10491 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
10492 | fi | |
10493 | fi | |
10494 | ||
10495 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
10496 | set dummy gtk-config-2.0; ac_word=$2 | |
698dcdb6 | 10497 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
81809c07 | 10498 | echo "configure:10499: checking for $ac_word" >&5 |
698dcdb6 VZ |
10499 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then |
10500 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 10501 | else |
698dcdb6 VZ |
10502 | case "$GTK_CONFIG_2_0" in |
10503 | /*) | |
6f72b082 OK |
10504 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. |
10505 | ;; | |
698dcdb6 VZ |
10506 | ?:/*) |
10507 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path. | |
10508 | ;; | |
6f72b082 | 10509 | *) |
698dcdb6 VZ |
10510 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10511 | ac_dummy="$PATH" | |
10512 | for ac_dir in $ac_dummy; do | |
10513 | test -z "$ac_dir" && ac_dir=. | |
10514 | if test -f $ac_dir/$ac_word; then | |
10515 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
10516 | break | |
10517 | fi | |
10518 | done | |
10519 | IFS="$ac_save_ifs" | |
6f72b082 OK |
10520 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" |
10521 | ;; | |
10522 | esac | |
10523 | fi | |
698dcdb6 | 10524 | GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0" |
6f72b082 | 10525 | if test -n "$GTK_CONFIG_2_0"; then |
698dcdb6 | 10526 | echo "$ac_t""$GTK_CONFIG_2_0" 1>&6 |
6f72b082 | 10527 | else |
698dcdb6 | 10528 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
10529 | fi |
10530 | ||
10531 | min_gtk_version=1.3.1 | |
698dcdb6 | 10532 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
81809c07 | 10533 | echo "configure:10534: checking for GTK - version >= $min_gtk_version" >&5 |
6f72b082 OK |
10534 | no_gtk="" |
10535 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
10536 | no_gtk=yes | |
10537 | else | |
10538 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
10539 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
10540 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
10541 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
10542 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
10543 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
10544 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
10545 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
10546 | if test "x$enable_gtktest" = "xyes" ; then | |
10547 | ac_save_CFLAGS="$CFLAGS" | |
10548 | ac_save_LIBS="$LIBS" | |
10549 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10550 | LIBS="$GTK_LIBS $LIBS" | |
10551 | rm -f conf.gtktest | |
10552 | if test "$cross_compiling" = yes; then | |
10553 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
10554 | else | |
698dcdb6 | 10555 | cat > conftest.$ac_ext <<EOF |
81809c07 | 10556 | #line 10557 "configure" |
6f72b082 OK |
10557 | #include "confdefs.h" |
10558 | ||
10559 | #include <gtk/gtk.h> | |
10560 | #include <stdio.h> | |
10561 | #include <stdlib.h> | |
10562 | ||
8168de4c | 10563 | int |
6f72b082 OK |
10564 | main () |
10565 | { | |
10566 | int major, minor, micro; | |
10567 | char *tmp_version; | |
10568 | ||
10569 | system ("touch conf.gtktest"); | |
10570 | ||
10571 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
10572 | tmp_version = g_strdup("$min_gtk_version"); | |
10573 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
10574 | printf("%s, bad version string\n", "$min_gtk_version"); | |
10575 | exit(1); | |
10576 | } | |
10577 | ||
10578 | if ((gtk_major_version != $gtk_config_major_version) || | |
10579 | (gtk_minor_version != $gtk_config_minor_version) || | |
10580 | (gtk_micro_version != $gtk_config_micro_version)) | |
10581 | { | |
8168de4c | 10582 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
6f72b082 OK |
10583 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
10584 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10585 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
10586 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
10587 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
10588 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
10589 | printf("*** required on your system.\n"); | |
10590 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
10591 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
10592 | printf("*** before re-running configure\n"); | |
8168de4c | 10593 | } |
6f72b082 OK |
10594 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
10595 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
8168de4c | 10596 | (gtk_minor_version != GTK_MINOR_VERSION) || |
6f72b082 OK |
10597 | (gtk_micro_version != GTK_MICRO_VERSION)) |
10598 | { | |
10599 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
8168de4c | 10600 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
6f72b082 | 10601 | printf("*** library (version %d.%d.%d)\n", |
8168de4c | 10602 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
6f72b082 OK |
10603 | } |
10604 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
10605 | else | |
10606 | { | |
10607 | if ((gtk_major_version > major) || | |
10608 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10609 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
10610 | { | |
10611 | return 0; | |
10612 | } | |
10613 | else | |
10614 | { | |
10615 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
10616 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10617 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
8168de4c | 10618 | major, minor, micro); |
6f72b082 OK |
10619 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
10620 | printf("***\n"); | |
10621 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
10622 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
10623 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
10624 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
10625 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
10626 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
10627 | printf("*** so that the correct libraries are found at run-time))\n"); | |
10628 | } | |
10629 | } | |
10630 | return 1; | |
10631 | } | |
10632 | ||
698dcdb6 | 10633 | EOF |
81809c07 | 10634 | if { (eval echo configure:10635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10635 | then |
6f72b082 OK |
10636 | : |
10637 | else | |
698dcdb6 VZ |
10638 | echo "configure: failed program was:" >&5 |
10639 | cat conftest.$ac_ext >&5 | |
10640 | rm -fr conftest* | |
10641 | no_gtk=yes | |
6f72b082 | 10642 | fi |
698dcdb6 | 10643 | rm -fr conftest* |
6f72b082 | 10644 | fi |
698dcdb6 | 10645 | |
6f72b082 OK |
10646 | CFLAGS="$ac_save_CFLAGS" |
10647 | LIBS="$ac_save_LIBS" | |
10648 | fi | |
10649 | fi | |
10650 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 10651 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
8168de4c | 10652 | wx_cv_lib_gtk=2.0 |
6f72b082 | 10653 | else |
698dcdb6 | 10654 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
10655 | if test "$GTK_CONFIG_2_0" = "no" ; then |
10656 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
10657 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
10658 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
10659 | echo "*** full path to gtk-config-2.0." | |
10660 | else | |
10661 | if test -f conf.gtktest ; then | |
10662 | : | |
10663 | else | |
10664 | echo "*** Could not run GTK test program, checking why..." | |
10665 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10666 | LIBS="$LIBS $GTK_LIBS" | |
698dcdb6 | 10667 | cat > conftest.$ac_ext <<EOF |
81809c07 | 10668 | #line 10669 "configure" |
6f72b082 OK |
10669 | #include "confdefs.h" |
10670 | ||
10671 | #include <gtk/gtk.h> | |
10672 | #include <stdio.h> | |
10673 | ||
698dcdb6 VZ |
10674 | int main() { |
10675 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
10676 | ; return 0; } | |
10677 | EOF | |
81809c07 | 10678 | if { (eval echo configure:10679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 10679 | rm -rf conftest* |
6f72b082 OK |
10680 | echo "*** The test program compiled, but did not run. This usually means" |
10681 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
10682 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
10683 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
10684 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
10685 | echo "*** is required on your system" | |
8168de4c | 10686 | echo "***" |
6f72b082 OK |
10687 | echo "*** If you have an old version installed, it is best to remove it, although" |
10688 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
10689 | echo "***" | |
10690 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
10691 | echo "*** came with the system with the command" | |
10692 | echo "***" | |
698dcdb6 | 10693 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
6f72b082 | 10694 | else |
698dcdb6 VZ |
10695 | echo "configure: failed program was:" >&5 |
10696 | cat conftest.$ac_ext >&5 | |
10697 | rm -rf conftest* | |
10698 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
6f72b082 OK |
10699 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
10700 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
698dcdb6 | 10701 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" |
6f72b082 | 10702 | fi |
698dcdb6 | 10703 | rm -f conftest* |
6f72b082 OK |
10704 | CFLAGS="$ac_save_CFLAGS" |
10705 | LIBS="$ac_save_LIBS" | |
10706 | fi | |
10707 | fi | |
10708 | GTK_CFLAGS="" | |
10709 | GTK_LIBS="" | |
3f345b47 | 10710 | : |
8168de4c VZ |
10711 | fi |
10712 | ||
10713 | ||
10714 | rm -f conf.gtktest | |
10715 | ||
10716 | fi | |
10717 | ||
10718 | if test -z "$wx_cv_lib_gtk"; then | |
3f345b47 VZ |
10719 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
10720 | if test "${with_gtk_prefix+set}" = set; then | |
10721 | withval="$with_gtk_prefix" | |
10722 | gtk_config_prefix="$withval" | |
10723 | else | |
10724 | gtk_config_prefix="" | |
10725 | fi | |
10726 | ||
10727 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
10728 | if test "${with_gtk_exec_prefix+set}" = set; then | |
10729 | withval="$with_gtk_exec_prefix" | |
10730 | gtk_config_exec_prefix="$withval" | |
10731 | else | |
10732 | gtk_config_exec_prefix="" | |
10733 | fi | |
10734 | ||
10735 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
10736 | if test "${enable_gtktest+set}" = set; then | |
10737 | enableval="$enable_gtktest" | |
10738 | : | |
10739 | else | |
10740 | enable_gtktest=yes | |
10741 | fi | |
10742 | ||
10743 | ||
10744 | for module in . $GTK_MODULES | |
10745 | do | |
10746 | case "$module" in | |
10747 | gthread) | |
10748 | gtk_config_args="$gtk_config_args gthread" | |
10749 | ;; | |
10750 | esac | |
10751 | done | |
10752 | ||
10f2d63a VZ |
10753 | if test x$gtk_config_exec_prefix != x ; then |
10754 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10755 | if test x${GTK_CONFIG+set} != xset ; then | |
10756 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
10757 | fi | |
10758 | fi | |
10759 | if test x$gtk_config_prefix != x ; then | |
10760 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10761 | if test x${GTK_CONFIG+set} != xset ; then | |
10762 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
10763 | fi | |
10764 | fi | |
10765 | ||
10766 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
10767 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 10768 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
81809c07 | 10769 | echo "configure:10770: checking for $ac_word" >&5 |
698dcdb6 VZ |
10770 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
10771 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 10772 | else |
698dcdb6 VZ |
10773 | case "$GTK_CONFIG" in |
10774 | /*) | |
f6bcfd97 BP |
10775 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
10776 | ;; | |
698dcdb6 VZ |
10777 | ?:/*) |
10778 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
10779 | ;; | |
f6bcfd97 | 10780 | *) |
698dcdb6 VZ |
10781 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
10782 | ac_dummy="$PATH" | |
10783 | for ac_dir in $ac_dummy; do | |
10784 | test -z "$ac_dir" && ac_dir=. | |
10785 | if test -f $ac_dir/$ac_word; then | |
10786 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
10787 | break | |
10788 | fi | |
10789 | done | |
10790 | IFS="$ac_save_ifs" | |
f6bcfd97 BP |
10791 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
10792 | ;; | |
10793 | esac | |
10794 | fi | |
698dcdb6 | 10795 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
f6bcfd97 | 10796 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 10797 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
f6bcfd97 | 10798 | else |
698dcdb6 | 10799 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
10800 | fi |
10801 | ||
10802 | min_gtk_version=1.2.7 | |
698dcdb6 | 10803 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
81809c07 | 10804 | echo "configure:10805: checking for GTK - version >= $min_gtk_version" >&5 |
f6bcfd97 | 10805 | no_gtk="" |
3f345b47 VZ |
10806 | if test "$GTK_CONFIG" = "no" ; then |
10807 | no_gtk=yes | |
10808 | else | |
10809 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
10810 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
10811 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10812 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
10813 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10814 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
10815 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
10816 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
10817 | if test "x$enable_gtktest" = "xyes" ; then | |
10818 | ac_save_CFLAGS="$CFLAGS" | |
10819 | ac_save_LIBS="$LIBS" | |
10820 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10821 | LIBS="$GTK_LIBS $LIBS" | |
10822 | rm -f conf.gtktest | |
10823 | if test "$cross_compiling" = yes; then | |
f6bcfd97 BP |
10824 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
10825 | else | |
698dcdb6 | 10826 | cat > conftest.$ac_ext <<EOF |
81809c07 | 10827 | #line 10828 "configure" |
f6bcfd97 BP |
10828 | #include "confdefs.h" |
10829 | ||
10830 | #include <gtk/gtk.h> | |
f6bcfd97 BP |
10831 | #include <stdio.h> |
10832 | #include <stdlib.h> | |
10833 | ||
3f345b47 | 10834 | int |
f6bcfd97 BP |
10835 | main () |
10836 | { | |
10837 | int major, minor, micro; | |
3f345b47 | 10838 | char *tmp_version; |
f6bcfd97 | 10839 | |
3f345b47 | 10840 | system ("touch conf.gtktest"); |
f6bcfd97 | 10841 | |
3f345b47 VZ |
10842 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
10843 | tmp_version = g_strdup("$min_gtk_version"); | |
10844 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
10845 | printf("%s, bad version string\n", "$min_gtk_version"); | |
f6bcfd97 BP |
10846 | exit(1); |
10847 | } | |
10848 | ||
3f345b47 VZ |
10849 | if ((gtk_major_version != $gtk_config_major_version) || |
10850 | (gtk_minor_version != $gtk_config_minor_version) || | |
10851 | (gtk_micro_version != $gtk_config_micro_version)) | |
10852 | { | |
10853 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
10854 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
10855 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10856 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
10857 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
10858 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
10859 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
10860 | printf("*** required on your system.\n"); | |
10861 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
10862 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
10863 | printf("*** before re-running configure\n"); | |
10864 | } | |
10865 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
10866 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
10867 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
10868 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
10869 | { | |
10870 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
10871 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
10872 | printf("*** library (version %d.%d.%d)\n", | |
10873 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10874 | } | |
10875 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
10876 | else | |
10877 | { | |
10878 | if ((gtk_major_version > major) || | |
10879 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10880 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
10881 | { | |
10882 | return 0; | |
10883 | } | |
10884 | else | |
10885 | { | |
10886 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
10887 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
10888 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
10889 | major, minor, micro); | |
10890 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
10891 | printf("***\n"); | |
10892 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
10893 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
10894 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
10895 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
10896 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
10897 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
10898 | printf("*** so that the correct libraries are found at run-time))\n"); | |
10899 | } | |
10900 | } | |
10901 | return 1; | |
f6bcfd97 BP |
10902 | } |
10903 | ||
698dcdb6 | 10904 | EOF |
81809c07 | 10905 | if { (eval echo configure:10906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10906 | then |
f6bcfd97 BP |
10907 | : |
10908 | else | |
698dcdb6 VZ |
10909 | echo "configure: failed program was:" >&5 |
10910 | cat conftest.$ac_ext >&5 | |
10911 | rm -fr conftest* | |
10912 | no_gtk=yes | |
f6bcfd97 | 10913 | fi |
698dcdb6 | 10914 | rm -fr conftest* |
f6bcfd97 | 10915 | fi |
698dcdb6 | 10916 | |
3f345b47 VZ |
10917 | CFLAGS="$ac_save_CFLAGS" |
10918 | LIBS="$ac_save_LIBS" | |
10919 | fi | |
f6bcfd97 BP |
10920 | fi |
10921 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 10922 | echo "$ac_t""yes" 1>&6 |
3f345b47 | 10923 | wx_cv_lib_gtk=1.2.7 |
f6bcfd97 | 10924 | else |
698dcdb6 | 10925 | echo "$ac_t""no" 1>&6 |
3f345b47 VZ |
10926 | if test "$GTK_CONFIG" = "no" ; then |
10927 | echo "*** The gtk-config script installed by GTK could not be found" | |
10928 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
10929 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
10930 | echo "*** full path to gtk-config." | |
10931 | else | |
10932 | if test -f conf.gtktest ; then | |
10933 | : | |
10934 | else | |
10935 | echo "*** Could not run GTK test program, checking why..." | |
10936 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10937 | LIBS="$LIBS $GTK_LIBS" | |
10938 | cat > conftest.$ac_ext <<EOF | |
81809c07 | 10939 | #line 10940 "configure" |
3f345b47 VZ |
10940 | #include "confdefs.h" |
10941 | ||
10942 | #include <gtk/gtk.h> | |
10943 | #include <stdio.h> | |
10944 | ||
10945 | int main() { | |
10946 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
10947 | ; return 0; } | |
10948 | EOF | |
81809c07 | 10949 | if { (eval echo configure:10950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3f345b47 VZ |
10950 | rm -rf conftest* |
10951 | echo "*** The test program compiled, but did not run. This usually means" | |
10952 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
10953 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
10954 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
10955 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
10956 | echo "*** is required on your system" | |
10957 | echo "***" | |
10958 | echo "*** If you have an old version installed, it is best to remove it, although" | |
10959 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
10960 | echo "***" | |
10961 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
10962 | echo "*** came with the system with the command" | |
10963 | echo "***" | |
10964 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
10965 | else | |
10966 | echo "configure: failed program was:" >&5 | |
10967 | cat conftest.$ac_ext >&5 | |
10968 | rm -rf conftest* | |
10969 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
10970 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
10971 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
10972 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
10973 | fi | |
10974 | rm -f conftest* | |
10975 | CFLAGS="$ac_save_CFLAGS" | |
10976 | LIBS="$ac_save_LIBS" | |
10977 | fi | |
10978 | fi | |
f6bcfd97 BP |
10979 | GTK_CFLAGS="" |
10980 | GTK_LIBS="" | |
10981 | : | |
10982 | fi | |
698dcdb6 VZ |
10983 | |
10984 | ||
3f345b47 | 10985 | rm -f conf.gtktest |
f6bcfd97 | 10986 | |
8168de4c VZ |
10987 | fi |
10988 | ||
10989 | if test -z "$wx_cv_lib_gtk"; then | |
3f345b47 VZ |
10990 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
10991 | if test "${with_gtk_prefix+set}" = set; then | |
10992 | withval="$with_gtk_prefix" | |
10993 | gtk_config_prefix="$withval" | |
10994 | else | |
10995 | gtk_config_prefix="" | |
10996 | fi | |
10997 | ||
10998 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
10999 | if test "${with_gtk_exec_prefix+set}" = set; then | |
11000 | withval="$with_gtk_exec_prefix" | |
11001 | gtk_config_exec_prefix="$withval" | |
11002 | else | |
11003 | gtk_config_exec_prefix="" | |
11004 | fi | |
11005 | ||
11006 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
11007 | if test "${enable_gtktest+set}" = set; then | |
11008 | enableval="$enable_gtktest" | |
11009 | : | |
11010 | else | |
11011 | enable_gtktest=yes | |
11012 | fi | |
11013 | ||
11014 | ||
11015 | for module in . $GTK_MODULES | |
11016 | do | |
11017 | case "$module" in | |
11018 | gthread) | |
11019 | gtk_config_args="$gtk_config_args gthread" | |
11020 | ;; | |
11021 | esac | |
11022 | done | |
11023 | ||
f6bcfd97 BP |
11024 | if test x$gtk_config_exec_prefix != x ; then |
11025 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
11026 | if test x${GTK_CONFIG+set} != xset ; then | |
11027 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
11028 | fi | |
11029 | fi | |
11030 | if test x$gtk_config_prefix != x ; then | |
11031 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
11032 | if test x${GTK_CONFIG+set} != xset ; then | |
11033 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
11034 | fi | |
11035 | fi | |
11036 | ||
11037 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
11038 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 11039 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
81809c07 | 11040 | echo "configure:11041: checking for $ac_word" >&5 |
698dcdb6 VZ |
11041 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
11042 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11043 | else |
698dcdb6 VZ |
11044 | case "$GTK_CONFIG" in |
11045 | /*) | |
10f2d63a VZ |
11046 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
11047 | ;; | |
698dcdb6 VZ |
11048 | ?:/*) |
11049 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
11050 | ;; | |
10f2d63a | 11051 | *) |
698dcdb6 VZ |
11052 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
11053 | ac_dummy="$PATH" | |
11054 | for ac_dir in $ac_dummy; do | |
11055 | test -z "$ac_dir" && ac_dir=. | |
11056 | if test -f $ac_dir/$ac_word; then | |
11057 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
11058 | break | |
11059 | fi | |
11060 | done | |
11061 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
11062 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
11063 | ;; | |
11064 | esac | |
11065 | fi | |
698dcdb6 | 11066 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
10f2d63a | 11067 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 11068 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
10f2d63a | 11069 | else |
698dcdb6 | 11070 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
11071 | fi |
11072 | ||
04165bec | 11073 | min_gtk_version=1.2.3 |
698dcdb6 | 11074 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
81809c07 | 11075 | echo "configure:11076: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a | 11076 | no_gtk="" |
3f345b47 VZ |
11077 | if test "$GTK_CONFIG" = "no" ; then |
11078 | no_gtk=yes | |
11079 | else | |
11080 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
11081 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
11082 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
11083 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
11084 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
11085 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
11086 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
11087 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
11088 | if test "x$enable_gtktest" = "xyes" ; then | |
11089 | ac_save_CFLAGS="$CFLAGS" | |
11090 | ac_save_LIBS="$LIBS" | |
11091 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11092 | LIBS="$GTK_LIBS $LIBS" | |
11093 | rm -f conf.gtktest | |
11094 | if test "$cross_compiling" = yes; then | |
10f2d63a VZ |
11095 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
11096 | else | |
698dcdb6 | 11097 | cat > conftest.$ac_ext <<EOF |
81809c07 | 11098 | #line 11099 "configure" |
10f2d63a VZ |
11099 | #include "confdefs.h" |
11100 | ||
11101 | #include <gtk/gtk.h> | |
11102 | #include <stdio.h> | |
32832908 | 11103 | #include <stdlib.h> |
10f2d63a | 11104 | |
3f345b47 | 11105 | int |
10f2d63a VZ |
11106 | main () |
11107 | { | |
11108 | int major, minor, micro; | |
3f345b47 | 11109 | char *tmp_version; |
10f2d63a | 11110 | |
3f345b47 | 11111 | system ("touch conf.gtktest"); |
10f2d63a | 11112 | |
3f345b47 VZ |
11113 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
11114 | tmp_version = g_strdup("$min_gtk_version"); | |
11115 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
11116 | printf("%s, bad version string\n", "$min_gtk_version"); | |
f49f2b0c RR |
11117 | exit(1); |
11118 | } | |
11119 | ||
3f345b47 VZ |
11120 | if ((gtk_major_version != $gtk_config_major_version) || |
11121 | (gtk_minor_version != $gtk_config_minor_version) || | |
11122 | (gtk_micro_version != $gtk_config_micro_version)) | |
11123 | { | |
11124 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
11125 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
11126 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11127 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
11128 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
11129 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
11130 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
11131 | printf("*** required on your system.\n"); | |
11132 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
11133 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
11134 | printf("*** before re-running configure\n"); | |
11135 | } | |
11136 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
11137 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
11138 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
11139 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
11140 | { | |
11141 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
11142 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
11143 | printf("*** library (version %d.%d.%d)\n", | |
11144 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11145 | } | |
11146 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
11147 | else | |
11148 | { | |
11149 | if ((gtk_major_version > major) || | |
11150 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
11151 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
11152 | { | |
11153 | return 0; | |
11154 | } | |
11155 | else | |
11156 | { | |
11157 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
11158 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11159 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
11160 | major, minor, micro); | |
11161 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
11162 | printf("***\n"); | |
11163 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
11164 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
11165 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
11166 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
11167 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
11168 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
11169 | printf("*** so that the correct libraries are found at run-time))\n"); | |
11170 | } | |
11171 | } | |
11172 | return 1; | |
10f2d63a VZ |
11173 | } |
11174 | ||
698dcdb6 | 11175 | EOF |
81809c07 | 11176 | if { (eval echo configure:11177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 11177 | then |
10f2d63a VZ |
11178 | : |
11179 | else | |
698dcdb6 VZ |
11180 | echo "configure: failed program was:" >&5 |
11181 | cat conftest.$ac_ext >&5 | |
11182 | rm -fr conftest* | |
11183 | no_gtk=yes | |
10f2d63a | 11184 | fi |
698dcdb6 | 11185 | rm -fr conftest* |
10f2d63a | 11186 | fi |
698dcdb6 | 11187 | |
3f345b47 VZ |
11188 | CFLAGS="$ac_save_CFLAGS" |
11189 | LIBS="$ac_save_LIBS" | |
11190 | fi | |
10f2d63a VZ |
11191 | fi |
11192 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 11193 | echo "$ac_t""yes" 1>&6 |
3f345b47 | 11194 | wx_cv_lib_gtk=1.2.3 |
10f2d63a | 11195 | else |
698dcdb6 | 11196 | echo "$ac_t""no" 1>&6 |
3f345b47 VZ |
11197 | if test "$GTK_CONFIG" = "no" ; then |
11198 | echo "*** The gtk-config script installed by GTK could not be found" | |
11199 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
11200 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
11201 | echo "*** full path to gtk-config." | |
11202 | else | |
11203 | if test -f conf.gtktest ; then | |
11204 | : | |
11205 | else | |
11206 | echo "*** Could not run GTK test program, checking why..." | |
11207 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11208 | LIBS="$LIBS $GTK_LIBS" | |
11209 | cat > conftest.$ac_ext <<EOF | |
81809c07 | 11210 | #line 11211 "configure" |
3f345b47 VZ |
11211 | #include "confdefs.h" |
11212 | ||
11213 | #include <gtk/gtk.h> | |
11214 | #include <stdio.h> | |
11215 | ||
11216 | int main() { | |
11217 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
11218 | ; return 0; } | |
11219 | EOF | |
81809c07 | 11220 | if { (eval echo configure:11221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3f345b47 VZ |
11221 | rm -rf conftest* |
11222 | echo "*** The test program compiled, but did not run. This usually means" | |
11223 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
11224 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
11225 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
11226 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
11227 | echo "*** is required on your system" | |
11228 | echo "***" | |
11229 | echo "*** If you have an old version installed, it is best to remove it, although" | |
11230 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
11231 | echo "***" | |
11232 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
11233 | echo "*** came with the system with the command" | |
11234 | echo "***" | |
11235 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
11236 | else | |
11237 | echo "configure: failed program was:" >&5 | |
11238 | cat conftest.$ac_ext >&5 | |
11239 | rm -rf conftest* | |
11240 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
11241 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
11242 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
11243 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
11244 | fi | |
11245 | rm -f conftest* | |
11246 | CFLAGS="$ac_save_CFLAGS" | |
11247 | LIBS="$ac_save_LIBS" | |
11248 | fi | |
11249 | fi | |
10f2d63a VZ |
11250 | GTK_CFLAGS="" |
11251 | GTK_LIBS="" | |
7e99ad86 | 11252 | : |
10f2d63a | 11253 | fi |
698dcdb6 VZ |
11254 | |
11255 | ||
3f345b47 | 11256 | rm -f conf.gtktest |
10f2d63a | 11257 | |
8168de4c VZ |
11258 | fi |
11259 | ||
11260 | if test -z "$wx_cv_lib_gtk"; then | |
11261 | wx_cv_lib_gtk=none | |
138be253 VZ |
11262 | else |
11263 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
11264 | wx_cv_libs_gtk=$GTK_LIBS | |
8168de4c VZ |
11265 | fi |
11266 | ||
1e6feb95 | 11267 | |
8168de4c | 11268 | fi |
703e0a69 | 11269 | |
698dcdb6 | 11270 | |
8168de4c VZ |
11271 | if test "$gtk_version_cached" = 1; then |
11272 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
1e6feb95 | 11273 | fi |
698dcdb6 | 11274 | |
8168de4c VZ |
11275 | case "$wx_cv_lib_gtk" in |
11276 | 2.0) WXGTK20=1 | |
11277 | ;; | |
11278 | 1.2.7) WXGTK127=1 | |
d1a8d972 | 11279 | WXGTK12=1 |
8168de4c VZ |
11280 | ;; |
11281 | 1.2.3) WXGTK12=1 | |
11282 | ;; | |
11283 | *) { echo "configure: error: | |
11284 | Please check that gtk-config is in path, the directory | |
11285 | where GTK+ libraries are installed (returned by | |
11286 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
11287 | equivalent variable and GTK+ is version 1.2.3 or above. | |
11288 | " 1>&2; exit 1; } | |
11289 | ;; | |
11290 | esac | |
2224580a | 11291 | |
138be253 | 11292 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
11dfaa5f | 11293 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" |
698dcdb6 | 11294 | |
1e6feb95 VZ |
11295 | AFMINSTALL=afminstall |
11296 | TOOLKIT=GTK | |
11297 | GUIDIST=GTK_DIST | |
7ec2881a | 11298 | |
1e6feb95 | 11299 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
81809c07 | 11300 | echo "configure:11301: checking for gdk_im_open in -lgdk" >&5 |
698dcdb6 VZ |
11301 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
11302 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11303 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ec2881a | 11304 | else |
698dcdb6 | 11305 | ac_save_LIBS="$LIBS" |
7ec2881a | 11306 | LIBS="-lgdk $LIBS" |
698dcdb6 | 11307 | cat > conftest.$ac_ext <<EOF |
81809c07 | 11308 | #line 11309 "configure" |
7ec2881a RR |
11309 | #include "confdefs.h" |
11310 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11311 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11312 | builtin and then its argument prototype would still apply. */ |
11313 | char gdk_im_open(); | |
11314 | ||
11315 | int main() { | |
11316 | gdk_im_open() | |
11317 | ; return 0; } | |
11318 | EOF | |
81809c07 | 11319 | if { (eval echo configure:11320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11320 | rm -rf conftest* |
11321 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11322 | else | |
11323 | echo "configure: failed program was:" >&5 | |
11324 | cat conftest.$ac_ext >&5 | |
11325 | rm -rf conftest* | |
11326 | eval "ac_cv_lib_$ac_lib_var=no" | |
11327 | fi | |
11328 | rm -f conftest* | |
11329 | LIBS="$ac_save_LIBS" | |
11330 | ||
11331 | fi | |
11332 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11333 | echo "$ac_t""yes" 1>&6 | |
11334 | cat >> confdefs.h <<\EOF | |
7ec2881a RR |
11335 | #define HAVE_XIM 1 |
11336 | EOF | |
11337 | ||
698dcdb6 VZ |
11338 | else |
11339 | echo "$ac_t""no" 1>&6 | |
7ec2881a RR |
11340 | fi |
11341 | ||
1e6feb95 | 11342 | fi |
10f2d63a | 11343 | |
1e6feb95 | 11344 | if test "$wxUSE_MGL" = 1; then |
1e6feb95 | 11345 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 |
81809c07 | 11346 | echo "configure:11347: checking for SciTech MGL library" >&5 |
1e6feb95 VZ |
11347 | if test "x$MGL_ROOT" = x ; then |
11348 | echo "$ac_t""not found" 1>&6 | |
11349 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
11350 | else | |
11351 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
11352 | fi | |
11353 | ||
f9bc1684 VS |
11354 | case "${host}" in |
11355 | *-*-linux* ) | |
11356 | mgl_os=linux/gcc/glibc | |
11357 | ;; | |
11358 | *-pc-msdosdjgpp ) | |
11359 | mgl_os=dos32/dj2 | |
11360 | ;; | |
11361 | *) | |
11362 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } | |
11363 | esac | |
11364 | ||
3a922bb4 | 11365 | mgl_lib_type="" |
1e6feb95 VZ |
11366 | |
11367 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
223e7fbf VS |
11368 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \ |
11369 | -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then | |
3a922bb4 | 11370 | mgl_lib_type=debug |
1e6feb95 VZ |
11371 | fi |
11372 | fi | |
3a922bb4 | 11373 | if test "x$mgl_lib_type" = x ; then |
223e7fbf VS |
11374 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \ |
11375 | -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then | |
3a922bb4 | 11376 | mgl_lib_type=release |
1e6feb95 VZ |
11377 | else |
11378 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
11379 | fi | |
11380 | fi | |
11381 | ||
11382 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
3a922bb4 | 11383 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" |
1e6feb95 VZ |
11384 | |
11385 | AFMINSTALL=afminstall | |
11386 | TOOLKIT=MGL | |
11387 | GUIDIST=MGL_DIST | |
11388 | fi | |
11389 | ||
1725144d RR |
11390 | if test "$wxUSE_MICROWIN" = 1; then |
11391 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 | |
81809c07 | 11392 | echo "configure:11393: checking for MicroWindows" >&5 |
1725144d RR |
11393 | if test "x$MICROWINDOWS" = x ; then |
11394 | echo "$ac_t""not found" 1>&6 | |
11395 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
11396 | else | |
11397 | echo "$ac_t""$MICROWINDOWS" 1>&6 | |
11398 | fi | |
11399 | ||
11400 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
11401 | echo "$ac_t""MicroWindows' libraries found." 1>&6 | |
11402 | else | |
11403 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } | |
11404 | fi | |
11405 | ||
11406 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
11407 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
11408 | ||
11409 | AFMINSTALL=afminstall | |
11410 | TOOLKIT=MICROWIN | |
11411 | GUIDIST=MICROWIN_DIST | |
11412 | ||
11413 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
11414 | fi | |
11415 | ||
1e6feb95 | 11416 | if test "$wxUSE_WINE" = 1; then |
3a922bb4 RL |
11417 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
11418 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
81809c07 | 11419 | echo "configure:11420: checking for windows.h" >&5 |
3a922bb4 RL |
11420 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11421 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11422 | else | |
11423 | cat > conftest.$ac_ext <<EOF | |
81809c07 | 11424 | #line 11425 "configure" |
3a922bb4 RL |
11425 | #include "confdefs.h" |
11426 | #include <windows.h> | |
11427 | EOF | |
11428 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
81809c07 | 11429 | { (eval echo configure:11430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
11430 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11431 | if test -z "$ac_err"; then | |
11432 | rm -rf conftest* | |
11433 | eval "ac_cv_header_$ac_safe=yes" | |
11434 | else | |
11435 | echo "$ac_err" >&5 | |
11436 | echo "configure: failed program was:" >&5 | |
11437 | cat conftest.$ac_ext >&5 | |
11438 | rm -rf conftest* | |
11439 | eval "ac_cv_header_$ac_safe=no" | |
11440 | fi | |
11441 | rm -f conftest* | |
11442 | fi | |
11443 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11444 | echo "$ac_t""yes" 1>&6 | |
11445 | : | |
11446 | else | |
11447 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 11448 | |
1e6feb95 | 11449 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
3a922bb4 RL |
11450 | |
11451 | fi | |
11452 | ||
10f2d63a | 11453 | |
3d63bc3a | 11454 | xpm_link= |
1e6feb95 | 11455 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
81809c07 | 11456 | echo "configure:11457: checking for Xpm library" >&5 |
1e6feb95 | 11457 | |
10f2d63a VZ |
11458 | ac_find_libraries= |
11459 | for ac_dir in $SEARCH_LIB; | |
11460 | do | |
f11bdd03 | 11461 | for ac_extension in a so sl dylib; do |
10f2d63a VZ |
11462 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
11463 | ac_find_libraries=$ac_dir | |
11464 | break 2 | |
11465 | fi | |
11466 | done | |
11467 | done | |
11468 | ||
1e6feb95 VZ |
11469 | if test "$ac_find_libraries" != "" ; then |
11470 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
3d63bc3a | 11471 | xpm_link=" -lXpm" |
1e6feb95 | 11472 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
11473 | #define wxHAVE_LIB_XPM 1 |
11474 | EOF | |
11475 | ||
1e6feb95 VZ |
11476 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
11477 | else | |
11478 | echo "$ac_t""no" 1>&6 | |
11479 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
11480 | fi | |
10f2d63a | 11481 | |
3d63bc3a | 11482 | mesa_link= |
1e6feb95 | 11483 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 |
81809c07 | 11484 | echo "configure:11485: checking for Mesa library" >&5 |
1e6feb95 | 11485 | |
10f2d63a VZ |
11486 | ac_find_libraries= |
11487 | for ac_dir in $SEARCH_LIB; | |
11488 | do | |
f11bdd03 | 11489 | for ac_extension in a so sl dylib; do |
10f2d63a VZ |
11490 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
11491 | ac_find_libraries=$ac_dir | |
11492 | break 2 | |
11493 | fi | |
11494 | done | |
11495 | done | |
11496 | ||
1e6feb95 VZ |
11497 | if test "$ac_find_libraries" != "" ; then |
11498 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
3d63bc3a | 11499 | mesa_link=" -lMesaGL" |
1e6feb95 VZ |
11500 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
11501 | else | |
11502 | { echo "configure: error: no" 1>&2; exit 1; } | |
11503 | fi | |
10f2d63a | 11504 | |
3d63bc3a | 11505 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" |
1e6feb95 VZ |
11506 | TOOLKIT=MSW |
11507 | GUIDIST=MSW_DIST | |
3a922bb4 | 11508 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" |
1e6feb95 | 11509 | fi |
698dcdb6 | 11510 | |
d714471b VZ |
11511 | if test "$wxUSE_MOTIF" = 1; then |
11512 | # If we find X, set shell vars x_includes and x_libraries to the | |
698dcdb6 VZ |
11513 | # paths, otherwise set no_x=yes. |
11514 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
11515 | # --without-x overrides everything else, but does not touch the cache. | |
11516 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
81809c07 | 11517 | echo "configure:11518: checking for X" >&5 |
ab9b9eab VZ |
11518 | |
11519 | # Check whether --with-x or --without-x was given. | |
11520 | if test "${with_x+set}" = set; then | |
11521 | withval="$with_x" | |
698dcdb6 VZ |
11522 | : |
11523 | fi | |
ba337fe7 | 11524 | |
ab9b9eab VZ |
11525 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
11526 | if test "x$with_x" = xno; then | |
11527 | # The user explicitly disabled X. | |
11528 | have_x=disabled | |
11529 | else | |
11530 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
11531 | # Both variables are already set. | |
11532 | have_x=yes | |
11533 | else | |
698dcdb6 VZ |
11534 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
11535 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab VZ |
11536 | else |
11537 | # One or both of the vars are not set, and there is no cached value. | |
698dcdb6 VZ |
11538 | ac_x_includes=NO ac_x_libraries=NO |
11539 | rm -fr conftestdir | |
11540 | if mkdir conftestdir; then | |
11541 | cd conftestdir | |
ab9b9eab | 11542 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
698dcdb6 | 11543 | cat > Imakefile <<'EOF' |
ab9b9eab VZ |
11544 | acfindx: |
11545 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
11546 | EOF | |
11547 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
11548 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
11549 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
11550 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 11551 | for ac_extension in a so sl; do |
ab9b9eab | 11552 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
698dcdb6 | 11553 | test -f $ac_im_libdir/libX11.$ac_extension; then |
ab9b9eab | 11554 | ac_im_usrlibdir=$ac_im_libdir; break |
10f2d63a VZ |
11555 | fi |
11556 | done | |
ab9b9eab VZ |
11557 | # Screen out bogus values from the imake configuration. They are |
11558 | # bogus both because they are the default anyway, and because | |
11559 | # using them would break gcc on systems where it needs fixed includes. | |
698dcdb6 | 11560 | case "$ac_im_incroot" in |
ab9b9eab | 11561 | /usr/include) ;; |
698dcdb6 | 11562 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
ab9b9eab | 11563 | esac |
698dcdb6 | 11564 | case "$ac_im_usrlibdir" in |
ab9b9eab | 11565 | /usr/lib | /lib) ;; |
698dcdb6 | 11566 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
ab9b9eab | 11567 | esac |
ba337fe7 | 11568 | fi |
ab9b9eab | 11569 | cd .. |
698dcdb6 | 11570 | rm -fr conftestdir |
ab9b9eab | 11571 | fi |
10f2d63a | 11572 | |
698dcdb6 VZ |
11573 | if test "$ac_x_includes" = NO; then |
11574 | # Guess where to find include files, by looking for this one X11 .h file. | |
11575 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
11576 | ||
ab9b9eab | 11577 | # First, try using that file with no special directory specified. |
698dcdb6 | 11578 | cat > conftest.$ac_ext <<EOF |
81809c07 | 11579 | #line 11580 "configure" |
ab9b9eab | 11580 | #include "confdefs.h" |
698dcdb6 VZ |
11581 | #include <$x_direct_test_include> |
11582 | EOF | |
11583 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
81809c07 | 11584 | { (eval echo configure:11585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11585 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11586 | if test -z "$ac_err"; then | |
11587 | rm -rf conftest* | |
ab9b9eab VZ |
11588 | # We can compile using X headers with no special include directory. |
11589 | ac_x_includes= | |
11590 | else | |
698dcdb6 VZ |
11591 | echo "$ac_err" >&5 |
11592 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 11593 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11594 | rm -rf conftest* |
11595 | # Look for the header file in a standard set of common directories. | |
11596 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
11597 | for ac_dir in \ | |
11598 | /usr/X11/include \ | |
11599 | /usr/X11R6/include \ | |
11600 | /usr/X11R5/include \ | |
11601 | /usr/X11R4/include \ | |
11602 | \ | |
11603 | /usr/include/X11 \ | |
11604 | /usr/include/X11R6 \ | |
11605 | /usr/include/X11R5 \ | |
11606 | /usr/include/X11R4 \ | |
11607 | \ | |
11608 | /usr/local/X11/include \ | |
11609 | /usr/local/X11R6/include \ | |
11610 | /usr/local/X11R5/include \ | |
11611 | /usr/local/X11R4/include \ | |
11612 | \ | |
11613 | /usr/local/include/X11 \ | |
11614 | /usr/local/include/X11R6 \ | |
11615 | /usr/local/include/X11R5 \ | |
11616 | /usr/local/include/X11R4 \ | |
11617 | \ | |
11618 | /usr/X386/include \ | |
11619 | /usr/x386/include \ | |
11620 | /usr/XFree86/include/X11 \ | |
11621 | \ | |
11622 | /usr/include \ | |
11623 | /usr/local/include \ | |
11624 | /usr/unsupported/include \ | |
11625 | /usr/athena/include \ | |
11626 | /usr/local/x11r5/include \ | |
11627 | /usr/lpp/Xamples/include \ | |
11628 | \ | |
11629 | /usr/openwin/include \ | |
11630 | /usr/openwin/share/include \ | |
11631 | ; \ | |
11632 | do | |
11633 | if test -r "$ac_dir/$x_direct_test_include"; then | |
11634 | ac_x_includes=$ac_dir | |
11635 | break | |
11636 | fi | |
11637 | done | |
ab9b9eab | 11638 | fi |
698dcdb6 VZ |
11639 | rm -f conftest* |
11640 | fi # $ac_x_includes = NO | |
10f2d63a | 11641 | |
698dcdb6 | 11642 | if test "$ac_x_libraries" = NO; then |
ab9b9eab | 11643 | # Check for the libraries. |
698dcdb6 VZ |
11644 | |
11645 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
11646 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
11647 | ||
ab9b9eab VZ |
11648 | # See if we find them without any special options. |
11649 | # Don't add to $LIBS permanently. | |
698dcdb6 VZ |
11650 | ac_save_LIBS="$LIBS" |
11651 | LIBS="-l$x_direct_test_library $LIBS" | |
11652 | cat > conftest.$ac_ext <<EOF | |
81809c07 | 11653 | #line 11654 "configure" |
ab9b9eab | 11654 | #include "confdefs.h" |
698dcdb6 VZ |
11655 | |
11656 | int main() { | |
11657 | ${x_direct_test_function}() | |
11658 | ; return 0; } | |
11659 | EOF | |
81809c07 | 11660 | if { (eval echo configure:11661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11661 | rm -rf conftest* |
11662 | LIBS="$ac_save_LIBS" | |
ab9b9eab VZ |
11663 | # We can link X programs with no special library path. |
11664 | ac_x_libraries= | |
11665 | else | |
698dcdb6 VZ |
11666 | echo "configure: failed program was:" >&5 |
11667 | cat conftest.$ac_ext >&5 | |
11668 | rm -rf conftest* | |
11669 | LIBS="$ac_save_LIBS" | |
11670 | # First see if replacing the include by lib works. | |
11671 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
11672 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
11673 | /usr/X11/lib \ | |
11674 | /usr/X11R6/lib \ | |
11675 | /usr/X11R5/lib \ | |
11676 | /usr/X11R4/lib \ | |
11677 | \ | |
11678 | /usr/lib/X11 \ | |
11679 | /usr/lib/X11R6 \ | |
11680 | /usr/lib/X11R5 \ | |
11681 | /usr/lib/X11R4 \ | |
11682 | \ | |
11683 | /usr/local/X11/lib \ | |
11684 | /usr/local/X11R6/lib \ | |
11685 | /usr/local/X11R5/lib \ | |
11686 | /usr/local/X11R4/lib \ | |
11687 | \ | |
11688 | /usr/local/lib/X11 \ | |
11689 | /usr/local/lib/X11R6 \ | |
11690 | /usr/local/lib/X11R5 \ | |
11691 | /usr/local/lib/X11R4 \ | |
11692 | \ | |
11693 | /usr/X386/lib \ | |
11694 | /usr/x386/lib \ | |
11695 | /usr/XFree86/lib/X11 \ | |
11696 | \ | |
11697 | /usr/lib \ | |
11698 | /usr/local/lib \ | |
11699 | /usr/unsupported/lib \ | |
11700 | /usr/athena/lib \ | |
11701 | /usr/local/x11r5/lib \ | |
11702 | /usr/lpp/Xamples/lib \ | |
11703 | /lib/usr/lib/X11 \ | |
11704 | \ | |
11705 | /usr/openwin/lib \ | |
11706 | /usr/openwin/share/lib \ | |
11707 | ; \ | |
ab9b9eab VZ |
11708 | do |
11709 | for ac_extension in a so sl; do | |
698dcdb6 | 11710 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
ab9b9eab VZ |
11711 | ac_x_libraries=$ac_dir |
11712 | break 2 | |
10f2d63a | 11713 | fi |
10f2d63a | 11714 | done |
ab9b9eab VZ |
11715 | done |
11716 | fi | |
698dcdb6 VZ |
11717 | rm -f conftest* |
11718 | fi # $ac_x_libraries = NO | |
10f2d63a | 11719 | |
698dcdb6 | 11720 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
ab9b9eab VZ |
11721 | # Didn't find X anywhere. Cache the known absence of X. |
11722 | ac_cv_have_x="have_x=no" | |
11723 | else | |
11724 | # Record where we found X for the cache. | |
11725 | ac_cv_have_x="have_x=yes \ | |
11726 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
11727 | fi | |
11728 | fi | |
10f2d63a | 11729 | fi |
ab9b9eab VZ |
11730 | eval "$ac_cv_have_x" |
11731 | fi # $with_x != no | |
10f2d63a | 11732 | |
ab9b9eab | 11733 | if test "$have_x" != yes; then |
698dcdb6 | 11734 | echo "$ac_t""$have_x" 1>&6 |
ab9b9eab VZ |
11735 | no_x=yes |
11736 | else | |
11737 | # If each of the values was on the command line, it overrides each guess. | |
11738 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
11739 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
11740 | # Update the cache value to reflect the command line values. | |
11741 | ac_cv_have_x="have_x=yes \ | |
11742 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
698dcdb6 | 11743 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
ab9b9eab | 11744 | fi |
10f2d63a | 11745 | |
ab9b9eab VZ |
11746 | if test "$no_x" = yes; then |
11747 | # Not all programs may use this symbol, but it does not hurt to define it. | |
698dcdb6 | 11748 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
11749 | #define X_DISPLAY_MISSING 1 |
11750 | EOF | |
10f2d63a | 11751 | |
ab9b9eab VZ |
11752 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
11753 | else | |
11754 | if test -n "$x_includes"; then | |
11755 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
11756 | fi |
11757 | ||
ab9b9eab VZ |
11758 | # It would also be nice to do this for all -L options, not just this one. |
11759 | if test -n "$x_libraries"; then | |
11760 | X_LIBS="$X_LIBS -L$x_libraries" | |
11761 | # For Solaris; some versions of Sun CC require a space after -R and | |
11762 | # others require no space. Words are not sufficient . . . . | |
698dcdb6 | 11763 | case "`(uname -sr) 2>/dev/null`" in |
ab9b9eab | 11764 | "SunOS 5"*) |
698dcdb6 | 11765 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
81809c07 | 11766 | echo "configure:11767: checking whether -R must be followed by a space" >&5 |
698dcdb6 VZ |
11767 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
11768 | cat > conftest.$ac_ext <<EOF | |
81809c07 | 11769 | #line 11770 "configure" |
ab9b9eab | 11770 | #include "confdefs.h" |
10f2d63a | 11771 | |
698dcdb6 | 11772 | int main() { |
788deba1 | 11773 | |
698dcdb6 VZ |
11774 | ; return 0; } |
11775 | EOF | |
81809c07 | 11776 | if { (eval echo configure:11777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 11777 | rm -rf conftest* |
ab9b9eab VZ |
11778 | ac_R_nospace=yes |
11779 | else | |
698dcdb6 VZ |
11780 | echo "configure: failed program was:" >&5 |
11781 | cat conftest.$ac_ext >&5 | |
11782 | rm -rf conftest* | |
11783 | ac_R_nospace=no | |
ab9b9eab | 11784 | fi |
698dcdb6 | 11785 | rm -f conftest* |
ab9b9eab | 11786 | if test $ac_R_nospace = yes; then |
698dcdb6 | 11787 | echo "$ac_t""no" 1>&6 |
ab9b9eab VZ |
11788 | X_LIBS="$X_LIBS -R$x_libraries" |
11789 | else | |
11790 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
698dcdb6 | 11791 | cat > conftest.$ac_ext <<EOF |
81809c07 | 11792 | #line 11793 "configure" |
ab9b9eab | 11793 | #include "confdefs.h" |
788deba1 | 11794 | |
698dcdb6 | 11795 | int main() { |
ab9b9eab | 11796 | |
698dcdb6 VZ |
11797 | ; return 0; } |
11798 | EOF | |
81809c07 | 11799 | if { (eval echo configure:11800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 11800 | rm -rf conftest* |
ab9b9eab VZ |
11801 | ac_R_space=yes |
11802 | else | |
698dcdb6 VZ |
11803 | echo "configure: failed program was:" >&5 |
11804 | cat conftest.$ac_ext >&5 | |
11805 | rm -rf conftest* | |
11806 | ac_R_space=no | |
ab9b9eab | 11807 | fi |
698dcdb6 | 11808 | rm -f conftest* |
ab9b9eab | 11809 | if test $ac_R_space = yes; then |
698dcdb6 | 11810 | echo "$ac_t""yes" 1>&6 |
ab9b9eab VZ |
11811 | X_LIBS="$X_LIBS -R $x_libraries" |
11812 | else | |
698dcdb6 | 11813 | echo "$ac_t""neither works" 1>&6 |
ab9b9eab VZ |
11814 | fi |
11815 | fi | |
698dcdb6 | 11816 | LIBS="$ac_xsave_LIBS" |
ab9b9eab VZ |
11817 | esac |
11818 | fi | |
11819 | ||
11820 | # Check for system-dependent libraries X programs must link with. | |
11821 | # Do this before checking for the system-independent R6 libraries | |
11822 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
11823 | ||
11824 | if test "$ISC" = yes; then | |
11825 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
11826 | else | |
698dcdb6 VZ |
11827 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
11828 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
ab9b9eab | 11829 | # the Alpha needs dnet_stub (dnet does not exist). |
698dcdb6 | 11830 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
81809c07 | 11831 | echo "configure:11832: checking for dnet_ntoa in -ldnet" >&5 |
698dcdb6 VZ |
11832 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
11833 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11834 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11835 | else |
698dcdb6 | 11836 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11837 | LIBS="-ldnet $LIBS" |
698dcdb6 | 11838 | cat > conftest.$ac_ext <<EOF |
81809c07 | 11839 | #line 11840 "configure" |
ab9b9eab VZ |
11840 | #include "confdefs.h" |
11841 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11842 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11843 | builtin and then its argument prototype would still apply. */ |
11844 | char dnet_ntoa(); | |
11845 | ||
11846 | int main() { | |
11847 | dnet_ntoa() | |
11848 | ; return 0; } | |
11849 | EOF | |
81809c07 | 11850 | if { (eval echo configure:11851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11851 | rm -rf conftest* |
11852 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11853 | else | |
11854 | echo "configure: failed program was:" >&5 | |
11855 | cat conftest.$ac_ext >&5 | |
11856 | rm -rf conftest* | |
11857 | eval "ac_cv_lib_$ac_lib_var=no" | |
11858 | fi | |
11859 | rm -f conftest* | |
11860 | LIBS="$ac_save_LIBS" | |
11861 | ||
11862 | fi | |
11863 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11864 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11865 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
698dcdb6 VZ |
11866 | else |
11867 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11868 | fi |
11869 | ||
11870 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
698dcdb6 | 11871 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
81809c07 | 11872 | echo "configure:11873: checking for dnet_ntoa in -ldnet_stub" >&5 |
698dcdb6 VZ |
11873 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
11874 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11875 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11876 | else |
698dcdb6 | 11877 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11878 | LIBS="-ldnet_stub $LIBS" |
698dcdb6 | 11879 | cat > conftest.$ac_ext <<EOF |
81809c07 | 11880 | #line 11881 "configure" |
ab9b9eab VZ |
11881 | #include "confdefs.h" |
11882 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11883 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11884 | builtin and then its argument prototype would still apply. */ |
11885 | char dnet_ntoa(); | |
11886 | ||
11887 | int main() { | |
11888 | dnet_ntoa() | |
11889 | ; return 0; } | |
11890 | EOF | |
81809c07 | 11891 | if { (eval echo configure:11892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11892 | rm -rf conftest* |
11893 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11894 | else | |
11895 | echo "configure: failed program was:" >&5 | |
11896 | cat conftest.$ac_ext >&5 | |
11897 | rm -rf conftest* | |
11898 | eval "ac_cv_lib_$ac_lib_var=no" | |
11899 | fi | |
11900 | rm -f conftest* | |
11901 | LIBS="$ac_save_LIBS" | |
11902 | ||
11903 | fi | |
11904 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11905 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 11906 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
698dcdb6 VZ |
11907 | else |
11908 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11909 | fi |
11910 | ||
11911 | fi | |
11912 | ||
11913 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
11914 | # to get the SysV transport functions. | |
698dcdb6 | 11915 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
ab9b9eab VZ |
11916 | # needs -lnsl. |
11917 | # The nsl library prevents programs from opening the X display | |
698dcdb6 VZ |
11918 | # on Irix 5.2, according to dickey@clark.net. |
11919 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
81809c07 | 11920 | echo "configure:11921: checking for gethostbyname" >&5 |
698dcdb6 VZ |
11921 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
11922 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11923 | else | |
11924 | cat > conftest.$ac_ext <<EOF | |
81809c07 | 11925 | #line 11926 "configure" |
ab9b9eab VZ |
11926 | #include "confdefs.h" |
11927 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11928 | which can conflict with char gethostbyname(); below. */ |
ab9b9eab VZ |
11929 | #include <assert.h> |
11930 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11931 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11932 | builtin and then its argument prototype would still apply. */ |
11933 | char gethostbyname(); | |
11934 | ||
11935 | int main() { | |
ab9b9eab VZ |
11936 | |
11937 | /* The GNU C library defines this for functions which it implements | |
11938 | to always fail with ENOSYS. Some functions are actually named | |
11939 | something starting with __ and the normal name is an alias. */ | |
11940 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
11941 | choke me | |
11942 | #else | |
698dcdb6 | 11943 | gethostbyname(); |
ab9b9eab VZ |
11944 | #endif |
11945 | ||
698dcdb6 VZ |
11946 | ; return 0; } |
11947 | EOF | |
81809c07 | 11948 | if { (eval echo configure:11949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11949 | rm -rf conftest* |
11950 | eval "ac_cv_func_gethostbyname=yes" | |
11951 | else | |
11952 | echo "configure: failed program was:" >&5 | |
11953 | cat conftest.$ac_ext >&5 | |
11954 | rm -rf conftest* | |
11955 | eval "ac_cv_func_gethostbyname=no" | |
11956 | fi | |
11957 | rm -f conftest* | |
11958 | fi | |
11959 | ||
11960 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
11961 | echo "$ac_t""yes" 1>&6 | |
11962 | : | |
11963 | else | |
11964 | echo "$ac_t""no" 1>&6 | |
11965 | fi | |
ab9b9eab VZ |
11966 | |
11967 | if test $ac_cv_func_gethostbyname = no; then | |
698dcdb6 | 11968 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
81809c07 | 11969 | echo "configure:11970: checking for gethostbyname in -lnsl" >&5 |
698dcdb6 VZ |
11970 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
11971 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11972 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 11973 | else |
698dcdb6 | 11974 | ac_save_LIBS="$LIBS" |
ab9b9eab | 11975 | LIBS="-lnsl $LIBS" |
698dcdb6 | 11976 | cat > conftest.$ac_ext <<EOF |
81809c07 | 11977 | #line 11978 "configure" |
ab9b9eab VZ |
11978 | #include "confdefs.h" |
11979 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11980 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11981 | builtin and then its argument prototype would still apply. */ |
11982 | char gethostbyname(); | |
6232543b | 11983 | |
698dcdb6 VZ |
11984 | int main() { |
11985 | gethostbyname() | |
11986 | ; return 0; } | |
11987 | EOF | |
81809c07 | 11988 | if { (eval echo configure:11989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11989 | rm -rf conftest* |
11990 | eval "ac_cv_lib_$ac_lib_var=yes" | |
703e0a69 | 11991 | else |
698dcdb6 VZ |
11992 | echo "configure: failed program was:" >&5 |
11993 | cat conftest.$ac_ext >&5 | |
11994 | rm -rf conftest* | |
11995 | eval "ac_cv_lib_$ac_lib_var=no" | |
11996 | fi | |
11997 | rm -f conftest* | |
11998 | LIBS="$ac_save_LIBS" | |
1e487827 | 11999 | |
698dcdb6 VZ |
12000 | fi |
12001 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12002 | echo "$ac_t""yes" 1>&6 | |
12003 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
12004 | else | |
12005 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
12006 | fi |
12007 | ||
12008 | fi | |
12009 | ||
12010 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
12011 | # socket/setsockopt and other routines are undefined under SCO ODT | |
12012 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
698dcdb6 VZ |
12013 | # on later versions), says simon@lia.di.epfl.ch: it contains |
12014 | # gethostby* variants that don't use the nameserver (or something). | |
12015 | # -lsocket must be given before -lnsl if both are needed. | |
12016 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
12017 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
81809c07 | 12018 | echo "configure:12019: checking for connect" >&5 |
698dcdb6 VZ |
12019 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
12020 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12021 | else | |
12022 | cat > conftest.$ac_ext <<EOF | |
81809c07 | 12023 | #line 12024 "configure" |
ab9b9eab VZ |
12024 | #include "confdefs.h" |
12025 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12026 | which can conflict with char connect(); below. */ |
ab9b9eab VZ |
12027 | #include <assert.h> |
12028 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12029 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12030 | builtin and then its argument prototype would still apply. */ |
12031 | char connect(); | |
12032 | ||
12033 | int main() { | |
ab9b9eab VZ |
12034 | |
12035 | /* The GNU C library defines this for functions which it implements | |
12036 | to always fail with ENOSYS. Some functions are actually named | |
12037 | something starting with __ and the normal name is an alias. */ | |
12038 | #if defined (__stub_connect) || defined (__stub___connect) | |
12039 | choke me | |
12040 | #else | |
698dcdb6 | 12041 | connect(); |
ab9b9eab VZ |
12042 | #endif |
12043 | ||
698dcdb6 VZ |
12044 | ; return 0; } |
12045 | EOF | |
81809c07 | 12046 | if { (eval echo configure:12047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12047 | rm -rf conftest* |
12048 | eval "ac_cv_func_connect=yes" | |
12049 | else | |
12050 | echo "configure: failed program was:" >&5 | |
12051 | cat conftest.$ac_ext >&5 | |
12052 | rm -rf conftest* | |
12053 | eval "ac_cv_func_connect=no" | |
12054 | fi | |
12055 | rm -f conftest* | |
12056 | fi | |
12057 | ||
12058 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
12059 | echo "$ac_t""yes" 1>&6 | |
12060 | : | |
12061 | else | |
12062 | echo "$ac_t""no" 1>&6 | |
12063 | fi | |
ab9b9eab VZ |
12064 | |
12065 | if test $ac_cv_func_connect = no; then | |
698dcdb6 | 12066 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
81809c07 | 12067 | echo "configure:12068: checking for connect in -lsocket" >&5 |
698dcdb6 VZ |
12068 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
12069 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12070 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 12071 | else |
698dcdb6 | 12072 | ac_save_LIBS="$LIBS" |
ab9b9eab | 12073 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 12074 | cat > conftest.$ac_ext <<EOF |
81809c07 | 12075 | #line 12076 "configure" |
ab9b9eab VZ |
12076 | #include "confdefs.h" |
12077 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12078 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12079 | builtin and then its argument prototype would still apply. */ |
12080 | char connect(); | |
12081 | ||
12082 | int main() { | |
12083 | connect() | |
12084 | ; return 0; } | |
12085 | EOF | |
81809c07 | 12086 | if { (eval echo configure:12087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12087 | rm -rf conftest* |
12088 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12089 | else | |
12090 | echo "configure: failed program was:" >&5 | |
12091 | cat conftest.$ac_ext >&5 | |
12092 | rm -rf conftest* | |
12093 | eval "ac_cv_lib_$ac_lib_var=no" | |
12094 | fi | |
12095 | rm -f conftest* | |
12096 | LIBS="$ac_save_LIBS" | |
12097 | ||
12098 | fi | |
12099 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12100 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 12101 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
698dcdb6 VZ |
12102 | else |
12103 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
12104 | fi |
12105 | ||
12106 | fi | |
12107 | ||
698dcdb6 VZ |
12108 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
12109 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
81809c07 | 12110 | echo "configure:12111: checking for remove" >&5 |
698dcdb6 VZ |
12111 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
12112 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 12113 | else |
698dcdb6 | 12114 | cat > conftest.$ac_ext <<EOF |
81809c07 | 12115 | #line 12116 "configure" |
ab9b9eab VZ |
12116 | #include "confdefs.h" |
12117 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12118 | which can conflict with char remove(); below. */ |
ab9b9eab VZ |
12119 | #include <assert.h> |
12120 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12121 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12122 | builtin and then its argument prototype would still apply. */ |
12123 | char remove(); | |
12124 | ||
12125 | int main() { | |
ab9b9eab VZ |
12126 | |
12127 | /* The GNU C library defines this for functions which it implements | |
12128 | to always fail with ENOSYS. Some functions are actually named | |
12129 | something starting with __ and the normal name is an alias. */ | |
12130 | #if defined (__stub_remove) || defined (__stub___remove) | |
12131 | choke me | |
12132 | #else | |
698dcdb6 | 12133 | remove(); |
ab9b9eab VZ |
12134 | #endif |
12135 | ||
698dcdb6 VZ |
12136 | ; return 0; } |
12137 | EOF | |
81809c07 | 12138 | if { (eval echo configure:12139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12139 | rm -rf conftest* |
12140 | eval "ac_cv_func_remove=yes" | |
12141 | else | |
12142 | echo "configure: failed program was:" >&5 | |
12143 | cat conftest.$ac_ext >&5 | |
12144 | rm -rf conftest* | |
12145 | eval "ac_cv_func_remove=no" | |
12146 | fi | |
12147 | rm -f conftest* | |
12148 | fi | |
12149 | ||
12150 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
12151 | echo "$ac_t""yes" 1>&6 | |
12152 | : | |
12153 | else | |
12154 | echo "$ac_t""no" 1>&6 | |
12155 | fi | |
ab9b9eab VZ |
12156 | |
12157 | if test $ac_cv_func_remove = no; then | |
698dcdb6 | 12158 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
81809c07 | 12159 | echo "configure:12160: checking for remove in -lposix" >&5 |
698dcdb6 VZ |
12160 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
12161 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12162 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 12163 | else |
698dcdb6 | 12164 | ac_save_LIBS="$LIBS" |
ab9b9eab | 12165 | LIBS="-lposix $LIBS" |
698dcdb6 | 12166 | cat > conftest.$ac_ext <<EOF |
81809c07 | 12167 | #line 12168 "configure" |
ab9b9eab VZ |
12168 | #include "confdefs.h" |
12169 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12170 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12171 | builtin and then its argument prototype would still apply. */ |
12172 | char remove(); | |
12173 | ||
12174 | int main() { | |
12175 | remove() | |
12176 | ; return 0; } | |
12177 | EOF | |
81809c07 | 12178 | if { (eval echo configure:12179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12179 | rm -rf conftest* |
12180 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12181 | else | |
12182 | echo "configure: failed program was:" >&5 | |
12183 | cat conftest.$ac_ext >&5 | |
12184 | rm -rf conftest* | |
12185 | eval "ac_cv_lib_$ac_lib_var=no" | |
12186 | fi | |
12187 | rm -f conftest* | |
12188 | LIBS="$ac_save_LIBS" | |
12189 | ||
12190 | fi | |
12191 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12192 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 12193 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
698dcdb6 VZ |
12194 | else |
12195 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
12196 | fi |
12197 | ||
12198 | fi | |
12199 | ||
12200 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
698dcdb6 | 12201 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
81809c07 | 12202 | echo "configure:12203: checking for shmat" >&5 |
698dcdb6 VZ |
12203 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
12204 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 12205 | else |
698dcdb6 | 12206 | cat > conftest.$ac_ext <<EOF |
81809c07 | 12207 | #line 12208 "configure" |
ab9b9eab VZ |
12208 | #include "confdefs.h" |
12209 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12210 | which can conflict with char shmat(); below. */ |
ab9b9eab VZ |
12211 | #include <assert.h> |
12212 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12213 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12214 | builtin and then its argument prototype would still apply. */ |
12215 | char shmat(); | |
12216 | ||
12217 | int main() { | |
ab9b9eab VZ |
12218 | |
12219 | /* The GNU C library defines this for functions which it implements | |
12220 | to always fail with ENOSYS. Some functions are actually named | |
12221 | something starting with __ and the normal name is an alias. */ | |
12222 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
12223 | choke me | |
12224 | #else | |
698dcdb6 | 12225 | shmat(); |
ab9b9eab VZ |
12226 | #endif |
12227 | ||
698dcdb6 VZ |
12228 | ; return 0; } |
12229 | EOF | |
81809c07 | 12230 | if { (eval echo configure:12231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12231 | rm -rf conftest* |
12232 | eval "ac_cv_func_shmat=yes" | |
12233 | else | |
12234 | echo "configure: failed program was:" >&5 | |
12235 | cat conftest.$ac_ext >&5 | |
12236 | rm -rf conftest* | |
12237 | eval "ac_cv_func_shmat=no" | |
12238 | fi | |
12239 | rm -f conftest* | |
12240 | fi | |
12241 | ||
12242 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
12243 | echo "$ac_t""yes" 1>&6 | |
12244 | : | |
12245 | else | |
12246 | echo "$ac_t""no" 1>&6 | |
12247 | fi | |
ab9b9eab VZ |
12248 | |
12249 | if test $ac_cv_func_shmat = no; then | |
698dcdb6 | 12250 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
81809c07 | 12251 | echo "configure:12252: checking for shmat in -lipc" >&5 |
698dcdb6 VZ |
12252 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
12253 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12254 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 12255 | else |
698dcdb6 | 12256 | ac_save_LIBS="$LIBS" |
ab9b9eab | 12257 | LIBS="-lipc $LIBS" |
698dcdb6 | 12258 | cat > conftest.$ac_ext <<EOF |
81809c07 | 12259 | #line 12260 "configure" |
ab9b9eab VZ |
12260 | #include "confdefs.h" |
12261 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12262 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12263 | builtin and then its argument prototype would still apply. */ |
12264 | char shmat(); | |
12265 | ||
12266 | int main() { | |
12267 | shmat() | |
12268 | ; return 0; } | |
12269 | EOF | |
81809c07 | 12270 | if { (eval echo configure:12271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12271 | rm -rf conftest* |
12272 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12273 | else | |
12274 | echo "configure: failed program was:" >&5 | |
12275 | cat conftest.$ac_ext >&5 | |
12276 | rm -rf conftest* | |
12277 | eval "ac_cv_lib_$ac_lib_var=no" | |
12278 | fi | |
12279 | rm -f conftest* | |
12280 | LIBS="$ac_save_LIBS" | |
12281 | ||
12282 | fi | |
12283 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12284 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 12285 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
698dcdb6 VZ |
12286 | else |
12287 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
12288 | fi |
12289 | ||
12290 | fi | |
12291 | fi | |
12292 | ||
12293 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
698dcdb6 | 12294 | ac_save_LDFLAGS="$LDFLAGS" |
ab9b9eab VZ |
12295 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
12296 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
12297 | # check for ICE first), but we must link in the order -lSM -lICE or | |
12298 | # we get undefined symbols. So assume we have SM if we have ICE. | |
12299 | # These have to be linked with before -lX11, unlike the other | |
12300 | # libraries we check for below, so use a different variable. | |
698dcdb6 VZ |
12301 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
12302 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
81809c07 | 12303 | echo "configure:12304: checking for IceConnectionNumber in -lICE" >&5 |
698dcdb6 VZ |
12304 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
12305 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12306 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12307 | else | |
12308 | ac_save_LIBS="$LIBS" | |
ab9b9eab | 12309 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 12310 | cat > conftest.$ac_ext <<EOF |
81809c07 | 12311 | #line 12312 "configure" |
ab9b9eab VZ |
12312 | #include "confdefs.h" |
12313 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12314 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12315 | builtin and then its argument prototype would still apply. */ |
12316 | char IceConnectionNumber(); | |
12317 | ||
12318 | int main() { | |
12319 | IceConnectionNumber() | |
12320 | ; return 0; } | |
12321 | EOF | |
81809c07 | 12322 | if { (eval echo configure:12323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12323 | rm -rf conftest* |
12324 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12325 | else | |
12326 | echo "configure: failed program was:" >&5 | |
12327 | cat conftest.$ac_ext >&5 | |
12328 | rm -rf conftest* | |
12329 | eval "ac_cv_lib_$ac_lib_var=no" | |
12330 | fi | |
12331 | rm -f conftest* | |
12332 | LIBS="$ac_save_LIBS" | |
12333 | ||
12334 | fi | |
12335 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12336 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 12337 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
12338 | else |
12339 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
12340 | fi |
12341 | ||
698dcdb6 | 12342 | LDFLAGS="$ac_save_LDFLAGS" |
ab9b9eab VZ |
12343 | |
12344 | fi | |
12345 | ||
12346 | ||
1e6feb95 VZ |
12347 | if test "$no_x" = "yes"; then |
12348 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
12349 | fi | |
ab9b9eab | 12350 | |
1e6feb95 VZ |
12351 | GUI_TK_LIBRARY="$X_LIBS" |
12352 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
1e6feb95 | 12353 | AFMINSTALL=afminstall |
1e6feb95 | 12354 | COMPILED_X_PROGRAM=0 |
cd6d6d5b | 12355 | |
1e6feb95 | 12356 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
81809c07 | 12357 | echo "configure:12358: checking for Motif/Lesstif headers" >&5 |
1e6feb95 | 12358 | |
ab9b9eab VZ |
12359 | ac_find_includes= |
12360 | for ac_dir in $SEARCH_INCLUDE; | |
12361 | do | |
12362 | if test -f "$ac_dir/Xm/Xm.h"; then | |
12363 | ac_find_includes=$ac_dir | |
12364 | break | |
12365 | fi | |
12366 | done | |
12367 | ||
1e6feb95 VZ |
12368 | if test "$ac_find_includes" != "" ; then |
12369 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
12370 | else | |
12371 | cat > conftest.$ac_ext <<EOF | |
81809c07 | 12372 | #line 12373 "configure" |
cd6d6d5b VZ |
12373 | #include "confdefs.h" |
12374 | ||
1e6feb95 VZ |
12375 | #include <Xm/Xm.h> |
12376 | ||
698dcdb6 | 12377 | int main() { |
cd6d6d5b | 12378 | |
1e6feb95 | 12379 | int version; |
1e6feb95 VZ |
12380 | version = xmUseVersion; |
12381 | ||
698dcdb6 VZ |
12382 | ; return 0; } |
12383 | EOF | |
81809c07 | 12384 | if { (eval echo configure:12385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12385 | rm -rf conftest* |
12386 | ||
1e6feb95 VZ |
12387 | echo "$ac_t""found in default search path" 1>&6 |
12388 | COMPILED_X_PROGRAM=1 | |
12389 | ||
cd6d6d5b | 12390 | else |
698dcdb6 VZ |
12391 | echo "configure: failed program was:" >&5 |
12392 | cat conftest.$ac_ext >&5 | |
12393 | rm -rf conftest* | |
12394 | ||
1e6feb95 VZ |
12395 | echo "$ac_t""no" 1>&6 |
12396 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
12397 | ||
698dcdb6 | 12398 | |
cd6d6d5b | 12399 | fi |
698dcdb6 | 12400 | rm -f conftest* |
1e6feb95 | 12401 | fi |
ab9b9eab | 12402 | |
1e6feb95 VZ |
12403 | if test "$COMPILED_X_PROGRAM" = 0; then |
12404 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
81809c07 | 12405 | echo "configure:12406: checking for Motif/Lesstif library" >&5 |
1e6feb95 | 12406 | |
ab9b9eab VZ |
12407 | ac_find_libraries= |
12408 | for ac_dir in $SEARCH_LIB; | |
12409 | do | |
f11bdd03 | 12410 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
12411 | if test -f "$ac_dir/libXm.$ac_extension"; then |
12412 | ac_find_libraries=$ac_dir | |
12413 | break 2 | |
12414 | fi | |
12415 | done | |
12416 | done | |
12417 | ||
1e6feb95 VZ |
12418 | if test "$ac_find_libraries" != "" ; then |
12419 | ||
ab9b9eab VZ |
12420 | ac_path_to_include=$ac_find_includes |
12421 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
12422 | result=$? | |
12423 | if test $result = 0; then | |
12424 | ac_path_to_include="" | |
12425 | else | |
62d0491b | 12426 | ac_path_to_include=" -I$ac_find_includes" |
ab9b9eab VZ |
12427 | fi |
12428 | ||
1e6feb95 | 12429 | |
ab9b9eab VZ |
12430 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
12431 | result=$? | |
12432 | if test $result = 0; then | |
12433 | ac_path_to_link="" | |
12434 | else | |
62d0491b | 12435 | ac_path_to_link=" -L$ac_find_libraries" |
ab9b9eab VZ |
12436 | fi |
12437 | ||
698dcdb6 | 12438 | |
62d0491b RL |
12439 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
12440 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
1e6feb95 VZ |
12441 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
12442 | else | |
12443 | cat > conftest.$ac_ext <<EOF | |
81809c07 | 12444 | #line 12445 "configure" |
cd6d6d5b | 12445 | #include "confdefs.h" |
ab9b9eab | 12446 | |
1e6feb95 VZ |
12447 | #include <Xm/Xm.h> |
12448 | ||
698dcdb6 | 12449 | int main() { |
ab9b9eab | 12450 | |
1e6feb95 | 12451 | int version; |
1e6feb95 VZ |
12452 | version = xmUseVersion; |
12453 | ||
698dcdb6 VZ |
12454 | ; return 0; } |
12455 | EOF | |
81809c07 | 12456 | if { (eval echo configure:12457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12457 | rm -rf conftest* |
12458 | ||
1e6feb95 VZ |
12459 | echo "$ac_t""found in default search path" 1>&6 |
12460 | COMPILED_X_PROGRAM=1 | |
12461 | ||
cd6d6d5b | 12462 | else |
698dcdb6 VZ |
12463 | echo "configure: failed program was:" >&5 |
12464 | cat conftest.$ac_ext >&5 | |
12465 | rm -rf conftest* | |
12466 | ||
1e6feb95 VZ |
12467 | echo "$ac_t""no" 1>&6 |
12468 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
12469 | ||
698dcdb6 | 12470 | |
cd6d6d5b | 12471 | fi |
698dcdb6 | 12472 | rm -f conftest* |
1e6feb95 | 12473 | fi |
cd6d6d5b | 12474 | fi |
ab9b9eab | 12475 | |
3d63bc3a | 12476 | xpm_link= |
1e6feb95 | 12477 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
81809c07 | 12478 | echo "configure:12479: checking for Xpm library" >&5 |
1e6feb95 | 12479 | |
ab9b9eab VZ |
12480 | ac_find_libraries= |
12481 | for ac_dir in $SEARCH_LIB; | |
12482 | do | |
f11bdd03 | 12483 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
12484 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
12485 | ac_find_libraries=$ac_dir | |
12486 | break 2 | |
12487 | fi | |
12488 | done | |
12489 | done | |
12490 | ||
1e6feb95 VZ |
12491 | if test "$ac_find_libraries" != "" ; then |
12492 | ||
ab9b9eab VZ |
12493 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
12494 | result=$? | |
12495 | if test $result = 0; then | |
12496 | ac_path_to_link="" | |
12497 | else | |
62d0491b | 12498 | ac_path_to_link=" -L$ac_find_libraries" |
ab9b9eab VZ |
12499 | fi |
12500 | ||
62d0491b | 12501 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
3d63bc3a | 12502 | xpm_link=" -lXpm" |
1e6feb95 | 12503 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
12504 | #define wxHAVE_LIB_XPM 1 |
12505 | EOF | |
12506 | ||
1e6feb95 VZ |
12507 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
12508 | else | |
12509 | cat > conftest.$ac_ext <<EOF | |
81809c07 | 12510 | #line 12511 "configure" |
cd6d6d5b VZ |
12511 | #include "confdefs.h" |
12512 | ||
1e6feb95 VZ |
12513 | #include <X11/xpm.h> |
12514 | ||
698dcdb6 | 12515 | int main() { |
cd6d6d5b | 12516 | |
1e6feb95 | 12517 | int version; |
1e6feb95 VZ |
12518 | version = XpmLibraryVersion(); |
12519 | ||
698dcdb6 VZ |
12520 | ; return 0; } |
12521 | EOF | |
81809c07 | 12522 | if { (eval echo configure:12523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12523 | rm -rf conftest* |
12524 | ||
3d63bc3a | 12525 | xpm_link=" -lXpm" |
3a922bb4 | 12526 | cat >> confdefs.h <<\EOF |
3ace2e6d SN |
12527 | #define wxHAVE_LIB_XPM 1 |
12528 | EOF | |
12529 | ||
1e6feb95 VZ |
12530 | echo "$ac_t""found in default search path" 1>&6 |
12531 | COMPILED_X_PROGRAM=0 | |
12532 | ||
cd6d6d5b | 12533 | else |
698dcdb6 VZ |
12534 | echo "configure: failed program was:" >&5 |
12535 | cat conftest.$ac_ext >&5 | |
12536 | rm -rf conftest* | |
12537 | ||
1e6feb95 VZ |
12538 | echo "$ac_t""no" 1>&6 |
12539 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
12540 | ||
698dcdb6 | 12541 | |
cd6d6d5b | 12542 | fi |
698dcdb6 | 12543 | rm -f conftest* |
1e6feb95 VZ |
12544 | fi |
12545 | ||
3d63bc3a | 12546 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11" |
334f0d2c | 12547 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" |
1e6feb95 VZ |
12548 | TOOLKIT=MOTIF |
12549 | GUIDIST=MOTIF_DIST | |
ab9b9eab VZ |
12550 | fi |
12551 | ||
683dccda GD |
12552 | if test "$wxUSE_MAC" = 1; then |
12553 | if test "$wxUSE_PRECOMP" = "yes"; then | |
3d63bc3a | 12554 | CPPFLAGS="$CPPFLAGS -cpp-precomp" |
683dccda | 12555 | fi |
3d63bc3a RL |
12556 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile" |
12557 | CFLAGS="$CFLAGS -fpascal-strings" | |
12558 | CXXFLAGS="$CXXFLAGS -fpascal-strings" | |
d08b457b | 12559 | |
13c0541d | 12560 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile" |
1e6feb95 | 12561 | TOOLKIT=MAC |
683dccda | 12562 | GUIDIST=MACX_DIST |
1e6feb95 | 12563 | fi |
10f2d63a | 12564 | |
1e6feb95 VZ |
12565 | if test "$wxUSE_PM" = 1; then |
12566 | TOOLKIT=PM | |
12567 | GUIDIST=GTK_DIST | |
12568 | fi | |
b4085ce6 | 12569 | |
3a922bb4 | 12570 | if test "$TOOLKIT" = "PM" ; then |
1e6feb95 | 12571 | TOOLKIT_DIR="os2" |
3a922bb4 RL |
12572 | else |
12573 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
1e6feb95 | 12574 | fi |
e07802fc | 12575 | |
3a922bb4 | 12576 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" |
1e6feb95 | 12577 | |
3a922bb4 RL |
12578 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
12579 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
9b695262 VZ |
12580 | |
12581 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
12582 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
12583 | ||
3a922bb4 RL |
12584 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" |
12585 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
12586 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
12587 | WIDGET_SET=univ | |
f6bcfd97 | 12588 | else |
3a922bb4 | 12589 | ALL_OBJECTS="\$(GUIOBJS)" |
9b695262 VZ |
12590 | ALL_SOURCES="\$(ALL_SOURCES)" |
12591 | ALL_HEADERS="\$(ALL_HEADERS)" | |
1e6feb95 VZ |
12592 | fi |
12593 | ||
ba0e650c | 12594 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" |
1e6feb95 | 12595 | |
f9bc1684 | 12596 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then |
1e6feb95 VZ |
12597 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" |
12598 | fi | |
12599 | ||
12600 | if test "$wxUSE_HTML" = "yes"; then | |
12601 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
12602 | fi | |
3fcdd07b | 12603 | |
4f14bcd8 | 12604 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
2224580a | 12605 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d | 12606 | fi |
4f14bcd8 | 12607 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
d9d8273d RR |
12608 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" |
12609 | fi | |
4f14bcd8 | 12610 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
d9d8273d RR |
12611 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" |
12612 | fi | |
4f14bcd8 | 12613 | if test "$wxUSE_FREETYPE" = "builtin" ; then |
3fed1840 RR |
12614 | ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)" |
12615 | fi | |
2224580a | 12616 | |
2224580a VZ |
12617 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" |
12618 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 12619 | else |
dad6c0ea VZ |
12620 | USE_GUI=0 |
12621 | ||
3a922bb4 | 12622 | TOOLKIT_DIR="base" |
f6bcfd97 | 12623 | |
3a922bb4 RL |
12624 | if test "$USE_WIN32" = 1 ; then |
12625 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
12626 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
0b2effe9 | 12627 | |
3a922bb4 | 12628 | TOOLKIT="MSW" |
f6bcfd97 | 12629 | else |
3a922bb4 RL |
12630 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" |
12631 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
f6bcfd97 BP |
12632 | fi |
12633 | ||
831b3152 | 12634 | PORT_FILES="\${top_srcdir}/src/files.lst" |
2224580a VZ |
12635 | |
12636 | GUIDIST="BASE_DIST" | |
12637 | DISTDIR="wxBase" | |
10f2d63a VZ |
12638 | fi |
12639 | ||
e45387bf VZ |
12640 | |
12641 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then | |
12642 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
12643 | fi | |
12644 | ||
4f14bcd8 | 12645 | if test "$wxUSE_REGEX" = "builtin" ; then |
3a922bb4 RL |
12646 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" |
12647 | fi | |
4f14bcd8 | 12648 | if test "$wxUSE_ZLIB" = "builtin" ; then |
3a922bb4 RL |
12649 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" |
12650 | fi | |
10f2d63a | 12651 | |
3a922bb4 | 12652 | if test "$wxUSE_OPENGL" = "yes"; then |
62d0491b RL |
12653 | if test "$wxUSE_MAC" = 1; then |
12654 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
12655 | else | |
570cb8cb | 12656 | |
62d0491b | 12657 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
3a922bb4 | 12658 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 |
e45387bf | 12659 | echo "configure:12660: checking for GL/gl.h" >&5 |
3a922bb4 RL |
12660 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12661 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12662 | else | |
12663 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 12664 | #line 12665 "configure" |
3a922bb4 RL |
12665 | #include "confdefs.h" |
12666 | #include <GL/gl.h> | |
12667 | EOF | |
12668 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
e45387bf | 12669 | { (eval echo configure:12670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3a922bb4 RL |
12670 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12671 | if test -z "$ac_err"; then | |
12672 | rm -rf conftest* | |
12673 | eval "ac_cv_header_$ac_safe=yes" | |
12674 | else | |
12675 | echo "$ac_err" >&5 | |
12676 | echo "configure: failed program was:" >&5 | |
12677 | cat conftest.$ac_ext >&5 | |
12678 | rm -rf conftest* | |
12679 | eval "ac_cv_header_$ac_safe=no" | |
12680 | fi | |
12681 | rm -f conftest* | |
12682 | fi | |
12683 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12684 | echo "$ac_t""yes" 1>&6 | |
12685 | ||
1352efdf | 12686 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 |
e45387bf | 12687 | echo "configure:12688: checking for -lGL" >&5 |
57964555 | 12688 | |
62d0491b RL |
12689 | ac_find_libraries= |
12690 | for ac_dir in $SEARCH_LIB; | |
12691 | do | |
12692 | for ac_extension in a so sl dylib; do | |
12693 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
12694 | ac_find_libraries=$ac_dir | |
12695 | break 2 | |
12696 | fi | |
12697 | done | |
12698 | done | |
3a922bb4 | 12699 | |
62d0491b RL |
12700 | if test "$ac_find_libraries" != "" ; then |
12701 | ||
12702 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
12703 | result=$? | |
12704 | if test $result = 0; then | |
12705 | ac_path_to_link="" | |
12706 | else | |
12707 | ac_path_to_link=" -L$ac_find_libraries" | |
12708 | fi | |
3a922bb4 | 12709 | |
4b6b4dfc RR |
12710 | if test "$ac_path_to_link" = " -L/usr/lib" ; then |
12711 | LDFLAGS_GL="$LDFLAGS" | |
12712 | else | |
12713 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
12714 | fi | |
62d0491b | 12715 | OPENGL_LIBS="-lGL -lGLU" |
1352efdf | 12716 | echo "$ac_t""yes" 1>&6 |
62d0491b | 12717 | else |
1352efdf RL |
12718 | echo "$ac_t""no" 1>&6 |
12719 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
e45387bf | 12720 | echo "configure:12721: checking for -lMesaGL" >&5 |
62d0491b RL |
12721 | |
12722 | ac_find_libraries= | |
12723 | for ac_dir in $SEARCH_LIB; | |
12724 | do | |
12725 | for ac_extension in a so sl dylib; do | |
12726 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
12727 | ac_find_libraries=$ac_dir | |
12728 | break 2 | |
12729 | fi | |
12730 | done | |
12731 | done | |
3a922bb4 | 12732 | |
62d0491b | 12733 | if test "$ac_find_libraries" != "" ; then |
57964555 | 12734 | |
62d0491b RL |
12735 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
12736 | result=$? | |
12737 | if test $result = 0; then | |
12738 | ac_path_to_link="" | |
12739 | else | |
12740 | ac_path_to_link=" -L$ac_find_libraries" | |
12741 | fi | |
3a922bb4 | 12742 | |
62d0491b RL |
12743 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" |
12744 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
1352efdf RL |
12745 | echo "$ac_t""yes" 1>&6 |
12746 | else | |
12747 | echo "$ac_t""no" 1>&6 | |
62d0491b RL |
12748 | fi |
12749 | fi | |
12750 | ||
3a922bb4 RL |
12751 | else |
12752 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
12753 | fi |
12754 | ||
6f754473 | 12755 | |
62d0491b RL |
12756 | |
12757 | # AC_CHECK_HEADER(GL/gl.h, | |
12758 | # [ | |
12759 | # AC_CHECK_LIB(GL, glFlush, | |
12760 | # [ | |
12761 | # OPENGL_LIBS="-lGL -lGLU" | |
12762 | # ], | |
12763 | # [ | |
12764 | # AC_CHECK_LIB(MesaGL, glFlush, | |
12765 | # [ | |
12766 | # OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
12767 | # ], | |
12768 | # [], | |
12769 | # [-lm]) | |
12770 | # ], | |
12771 | # [-lm]) | |
12772 | # ]) | |
12773 | ||
12774 | if test "x$OPENGL_LIBS" = "x"; then | |
12775 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } | |
12776 | fi | |
6f754473 | 12777 | fi |
6f754473 | 12778 | |
62d0491b RL |
12779 | if test "$wxUSE_OPENGL" = "yes"; then |
12780 | cat >> confdefs.h <<\EOF | |
6f754473 VZ |
12781 | #define wxUSE_OPENGL 1 |
12782 | EOF | |
12783 | ||
62d0491b | 12784 | cat >> confdefs.h <<\EOF |
6f754473 VZ |
12785 | #define wxUSE_GLCANVAS 1 |
12786 | EOF | |
12787 | ||
62d0491b RL |
12788 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" |
12789 | fi | |
3a922bb4 RL |
12790 | fi |
12791 | ||
12792 | if test -z "$TOOLKIT_VPATH" ; then | |
12793 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
12794 | fi | |
12795 | ||
12796 | if test -n "$TOOLKIT" ; then | |
12797 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
12798 | fi | |
12799 | ||
f676c7ff MB |
12800 | lib_unicode_suffix= |
12801 | if test "$wxUSE_UNICODE" = "yes"; then | |
12802 | lib_unicode_suffix=u | |
12803 | fi | |
12804 | ||
3a922bb4 RL |
12805 | lib_debug_suffix= |
12806 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
12807 | lib_debug_suffix=d | |
3a922bb4 RL |
12808 | fi |
12809 | ||
f676c7ff MB |
12810 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" |
12811 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
3a922bb4 RL |
12812 | |
12813 | if test "$cross_compiling" = "yes"; then | |
12814 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
12815 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
12816 | fi | |
12817 | ||
12818 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
12819 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
12820 | ||
3a922bb4 RL |
12821 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
12822 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
12823 | ||
12824 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
12825 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
12826 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
12827 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
12828 | ||
d08b457b | 12829 | WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc" |
e23081de | 12830 | WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r" |
3a922bb4 | 12831 | |
978f1259 RL |
12832 | case "${host}" in |
12833 | *-*-cygwin* | *-*-mingw32* ) | |
12834 | ||
2da4f892 | 12835 | |
978f1259 RL |
12836 | |
12837 | if test "$cross_compiling" != "yes"; then | |
12838 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
12839 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
12840 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
12841 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
2da4f892 RL |
12842 | else |
12843 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
12844 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
978f1259 RL |
12845 | fi |
12846 | ||
12847 | esac | |
12848 | ||
12849 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
12850 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
12851 | ||
12852 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
885d4bf5 | 12853 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" |
978f1259 RL |
12854 | |
12855 | if test "$wxUSE_OPENGL" = "yes"; then | |
885d4bf5 VS |
12856 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" |
12857 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
978f1259 RL |
12858 | fi |
12859 | ||
12860 | ||
3a922bb4 RL |
12861 | |
12862 | if test "$wxUSE_SHARED" = "yes"; then | |
55e80573 VZ |
12863 | |
12864 | if test "$wxUSE_OPENGL" = "yes"; then | |
12865 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
3a922bb4 | 12866 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" |
55e80573 VZ |
12867 | else |
12868 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
3a922bb4 | 12869 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" |
55e80573 VZ |
12870 | fi |
12871 | ||
dd4f7467 | 12872 | if test "$GCC" = "yes"; then |
55e80573 | 12873 | PIC_FLAG="-fPIC" |
dd4f7467 | 12874 | fi |
55e80573 VZ |
12875 | |
12876 | SHARED_LD="${CXX} -shared -o" | |
698dcdb6 | 12877 | |
10f2d63a VZ |
12878 | case "${host}" in |
12879 | *-hp-hpux* ) | |
d569ea8d GD |
12880 | if test "$GCC" == "yes"; then |
12881 | SHARED_LD="${SHARED_LD} ${PIC_FLAG}" | |
12882 | else | |
3d63bc3a | 12883 | LDFLAGS="$LDFLAGS -L/usr/lib" |
f6bcfd97 | 12884 | |
10f2d63a VZ |
12885 | SHARED_LD="${CXX} -b -o" |
12886 | PIC_FLAG="+Z" | |
12887 | fi | |
55e80573 | 12888 | |
7b7a7637 RL |
12889 | if test "$wxUSE_OPENGL" = "yes"; then |
12890 | WX_ALL_INSTALLED="preinstall_gl" | |
12891 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
12892 | else | |
12893 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
12894 | fi | |
10f2d63a | 12895 | ;; |
b12915c1 | 12896 | |
55e80573 VZ |
12897 | *-*-linux* ) |
12898 | if test "$GCC" != "yes"; then | |
12899 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 | |
e45387bf | 12900 | echo "configure:12901: checking for Intel compiler" >&5 |
55e80573 VZ |
12901 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
12902 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12903 | else | |
12904 | ||
12905 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 12906 | #line 12907 "configure" |
55e80573 VZ |
12907 | #include "confdefs.h" |
12908 | ||
12909 | int main() { | |
12910 | ||
12911 | #ifndef __INTEL_COMPILER | |
dd4f7467 | 12912 | #error Not icc |
55e80573 VZ |
12913 | #endif |
12914 | ||
12915 | ; return 0; } | |
12916 | EOF | |
e45387bf | 12917 | if { (eval echo configure:12918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
55e80573 VZ |
12918 | rm -rf conftest* |
12919 | wx_cv_prog_icc=yes | |
12920 | else | |
12921 | echo "configure: failed program was:" >&5 | |
12922 | cat conftest.$ac_ext >&5 | |
12923 | rm -rf conftest* | |
12924 | wx_cv_prog_icc=no | |
12925 | ||
12926 | fi | |
12927 | rm -f conftest* | |
12928 | ||
12929 | fi | |
12930 | ||
12931 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
55e80573 VZ |
12932 | if test "$wx_cv_prog_icc" = "yes"; then |
12933 | PIC_FLAG="-KPIC" | |
12934 | fi | |
12935 | fi | |
12936 | ||
3a922bb4 RL |
12937 | if test "$wxUSE_SONAME" = "yes" ; then |
12938 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
12939 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
f6bcfd97 | 12940 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 12941 | fi |
10f2d63a | 12942 | ;; |
55e80573 | 12943 | |
10f2d63a VZ |
12944 | *-*-solaris2* ) |
12945 | if test "$GCC" = yes ; then | |
f6bcfd97 | 12946 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" |
10f2d63a VZ |
12947 | else |
12948 | SHARED_LD="${CXX} -G -o" | |
12949 | PIC_FLAG="-KPIC" | |
7b7a7637 | 12950 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" |
471944dc | 12951 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 12952 | fi |
10f2d63a | 12953 | ;; |
55e80573 | 12954 | |
b4085ce6 | 12955 | *-*-darwin* ) |
156b2523 GD |
12956 | CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT" |
12957 | CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT" | |
12958 | SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o" | |
ea5999b9 | 12959 | PIC_FLAG="-dynamic -fPIC" |
10f2d63a | 12960 | ;; |
55e80573 | 12961 | |
10f2d63a VZ |
12962 | *-*-aix* ) |
12963 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
10f2d63a | 12964 | ;; |
55e80573 | 12965 | |
7b7a7637 | 12966 | *-*-cygwin* | *-*-mingw32* ) |
77e13408 | 12967 | |
2da4f892 | 12968 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" |
77e13408 | 12969 | |
77e13408 | 12970 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" |
00c81359 | 12971 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" |
25d0687a RL |
12972 | |
12973 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
7b7a7637 RL |
12974 | |
12975 | if test "$wxUSE_OPENGL" = "yes"; then | |
f6bcfd97 | 12976 | WX_ALL_INSTALLED="preinstall_gl" |
978f1259 | 12977 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" |
f6bcfd97 | 12978 | else |
978f1259 | 12979 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" |
f6bcfd97 | 12980 | fi |
10f2d63a | 12981 | ;; |
55e80573 | 12982 | |
6fa882bd | 12983 | *-pc-os2_emx | *-pc-os2-emx ) |
7b7a7637 | 12984 | wxUSE_SHARED=no |
10f2d63a | 12985 | ;; |
55e80573 | 12986 | |
b12915c1 | 12987 | *-*-beos* ) |
e2b8b066 | 12988 | SHARED_LD="${LD} -shared -o" |
b12915c1 | 12989 | ;; |
55e80573 VZ |
12990 | |
12991 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
12992 | *-*-sunos4* | \ | |
12993 | *-*-irix5* | *-*-irix6* | \ | |
12994 | *-*-osf* | \ | |
12995 | *-*-dgux5* | \ | |
12996 | *-*-sysv5* ) | |
12997 | ;; | |
12998 | ||
10f2d63a | 12999 | *) |
7b7a7637 | 13000 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } |
10f2d63a VZ |
13001 | esac |
13002 | ||
13003 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
13004 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 13005 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 13006 | fi |
55e80573 | 13007 | |
3711412e | 13008 | WX_TARGET_LIBRARY_TYPE="so" |
885d4bf5 | 13009 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' |
3a922bb4 | 13010 | fi |
f6bcfd97 | 13011 | |
3a922bb4 | 13012 | if test "$wxUSE_SHARED" = "no"; then |
f6bcfd97 | 13013 | |
3a922bb4 | 13014 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then |
f6bcfd97 BP |
13015 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
13016 | fi | |
13017 | ||
6fa882bd RR |
13018 | if test "$wxUSE_MAC" = 1; then |
13019 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
13020 | fi | |
13021 | ||
3a922bb4 RL |
13022 | if test "$wxUSE_OPENGL" = "yes"; then |
13023 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
13024 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
13025 | else | |
13026 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
13027 | fi | |
698dcdb6 | 13028 | |
3a922bb4 RL |
13029 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
13030 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
13031 | ||
13032 | WX_TARGET_LIBRARY_TYPE="a" | |
885d4bf5 | 13033 | INSTALL_LIBRARY='$(INSTALL_DATA)' |
10f2d63a | 13034 | fi |
10f2d63a | 13035 | |
d08b457b GD |
13036 | if test "$wxUSE_MAC" = 1; then |
13037 | WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r" | |
e23081de | 13038 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" |
d08b457b GD |
13039 | # Extract the first word of "Rez", so it can be a program name with args. |
13040 | set dummy Rez; ac_word=$2 | |
13041 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
e45387bf | 13042 | echo "configure:13043: checking for $ac_word" >&5 |
d08b457b GD |
13043 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
13044 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13045 | else | |
13046 | if test -n "$RESCOMP"; then | |
13047 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
13048 | else | |
13049 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
13050 | ac_dummy="$PATH" | |
13051 | for ac_dir in $ac_dummy; do | |
13052 | test -z "$ac_dir" && ac_dir=. | |
13053 | if test -f $ac_dir/$ac_word; then | |
13054 | ac_cv_prog_RESCOMP="Rez" | |
13055 | break | |
13056 | fi | |
13057 | done | |
13058 | IFS="$ac_save_ifs" | |
13059 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
13060 | fi | |
13061 | fi | |
13062 | RESCOMP="$ac_cv_prog_RESCOMP" | |
13063 | if test -n "$RESCOMP"; then | |
13064 | echo "$ac_t""$RESCOMP" 1>&6 | |
13065 | else | |
13066 | echo "$ac_t""no" 1>&6 | |
13067 | fi | |
13068 | ||
9f8148b1 GD |
13069 | # Extract the first word of "DeRez", so it can be a program name with args. |
13070 | set dummy DeRez; ac_word=$2 | |
d08b457b | 13071 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
e45387bf | 13072 | echo "configure:13073: checking for $ac_word" >&5 |
d08b457b GD |
13073 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
13074 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13075 | else | |
13076 | if test -n "$DEREZ"; then | |
13077 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
13078 | else | |
13079 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
13080 | ac_dummy="$PATH" | |
13081 | for ac_dir in $ac_dummy; do | |
13082 | test -z "$ac_dir" && ac_dir=. | |
13083 | if test -f $ac_dir/$ac_word; then | |
9f8148b1 | 13084 | ac_cv_prog_DEREZ="DeRez" |
d08b457b GD |
13085 | break |
13086 | fi | |
13087 | done | |
13088 | IFS="$ac_save_ifs" | |
9f8148b1 | 13089 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
d08b457b GD |
13090 | fi |
13091 | fi | |
13092 | DEREZ="$ac_cv_prog_DEREZ" | |
13093 | if test -n "$DEREZ"; then | |
13094 | echo "$ac_t""$DEREZ" 1>&6 | |
13095 | else | |
13096 | echo "$ac_t""no" 1>&6 | |
13097 | fi | |
13098 | ||
13099 | LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r" | |
13100 | LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)" | |
e23081de | 13101 | LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o" |
d08b457b GD |
13102 | fi |
13103 | ||
3a922bb4 | 13104 | |
13c0541d GD |
13105 | if test "$wxUSE_MAC" != 1; then |
13106 | for ac_hdr in strings.h | |
9cfadba2 | 13107 | do |
698dcdb6 VZ |
13108 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13109 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
e45387bf | 13110 | echo "configure:13111: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13111 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13112 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13113 | else | |
13114 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 13115 | #line 13116 "configure" |
9cfadba2 | 13116 | #include "confdefs.h" |
698dcdb6 VZ |
13117 | #include <$ac_hdr> |
13118 | EOF | |
13119 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
e45387bf | 13120 | { (eval echo configure:13121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13121 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13122 | if test -z "$ac_err"; then | |
13123 | rm -rf conftest* | |
13124 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 13125 | else |
698dcdb6 VZ |
13126 | echo "$ac_err" >&5 |
13127 | echo "configure: failed program was:" >&5 | |
9cfadba2 | 13128 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13129 | rm -rf conftest* |
13130 | eval "ac_cv_header_$ac_safe=no" | |
9cfadba2 | 13131 | fi |
698dcdb6 | 13132 | rm -f conftest* |
9cfadba2 | 13133 | fi |
698dcdb6 VZ |
13134 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13135 | echo "$ac_t""yes" 1>&6 | |
13136 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13137 | cat >> confdefs.h <<EOF | |
13138 | #define $ac_tr_hdr 1 | |
9cfadba2 | 13139 | EOF |
698dcdb6 VZ |
13140 | |
13141 | else | |
13142 | echo "$ac_t""no" 1>&6 | |
9cfadba2 VZ |
13143 | fi |
13144 | done | |
10f2d63a | 13145 | |
13c0541d GD |
13146 | fi |
13147 | ||
3a922bb4 | 13148 | for ac_hdr in stdlib.h |
10f2d63a | 13149 | do |
698dcdb6 VZ |
13150 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13151 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
e45387bf | 13152 | echo "configure:13153: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13153 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13154 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13155 | else | |
13156 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 13157 | #line 13158 "configure" |
10f2d63a | 13158 | #include "confdefs.h" |
698dcdb6 VZ |
13159 | #include <$ac_hdr> |
13160 | EOF | |
13161 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
e45387bf | 13162 | { (eval echo configure:13163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13163 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13164 | if test -z "$ac_err"; then | |
13165 | rm -rf conftest* | |
13166 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 13167 | else |
698dcdb6 VZ |
13168 | echo "$ac_err" >&5 |
13169 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13170 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13171 | rm -rf conftest* |
13172 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13173 | fi |
698dcdb6 | 13174 | rm -f conftest* |
10f2d63a | 13175 | fi |
698dcdb6 VZ |
13176 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13177 | echo "$ac_t""yes" 1>&6 | |
13178 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13179 | cat >> confdefs.h <<EOF | |
13180 | #define $ac_tr_hdr 1 | |
10f2d63a | 13181 | EOF |
698dcdb6 VZ |
13182 | |
13183 | else | |
13184 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13185 | fi |
13186 | done | |
13187 | ||
9f8148b1 | 13188 | for ac_hdr in malloc.h |
10f2d63a | 13189 | do |
698dcdb6 VZ |
13190 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13191 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
e45387bf | 13192 | echo "configure:13193: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13193 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13194 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13195 | else | |
13196 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 13197 | #line 13198 "configure" |
10f2d63a | 13198 | #include "confdefs.h" |
698dcdb6 VZ |
13199 | #include <$ac_hdr> |
13200 | EOF | |
13201 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
e45387bf | 13202 | { (eval echo configure:13203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13203 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13204 | if test -z "$ac_err"; then | |
13205 | rm -rf conftest* | |
13206 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 13207 | else |
698dcdb6 VZ |
13208 | echo "$ac_err" >&5 |
13209 | echo "configure: failed program was:" >&5 | |
6f72b082 | 13210 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13211 | rm -rf conftest* |
13212 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 13213 | fi |
698dcdb6 | 13214 | rm -f conftest* |
6f72b082 | 13215 | fi |
698dcdb6 VZ |
13216 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13217 | echo "$ac_t""yes" 1>&6 | |
13218 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13219 | cat >> confdefs.h <<EOF | |
13220 | #define $ac_tr_hdr 1 | |
6f72b082 | 13221 | EOF |
698dcdb6 VZ |
13222 | |
13223 | else | |
13224 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
13225 | fi |
13226 | done | |
13227 | ||
9f8148b1 | 13228 | for ac_hdr in unistd.h |
6f72b082 | 13229 | do |
698dcdb6 VZ |
13230 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13231 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
e45387bf | 13232 | echo "configure:13233: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13233 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13234 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13235 | else | |
13236 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 13237 | #line 13238 "configure" |
6f72b082 | 13238 | #include "confdefs.h" |
698dcdb6 VZ |
13239 | #include <$ac_hdr> |
13240 | EOF | |
13241 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
e45387bf | 13242 | { (eval echo configure:13243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13243 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13244 | if test -z "$ac_err"; then | |
13245 | rm -rf conftest* | |
13246 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 13247 | else |
698dcdb6 VZ |
13248 | echo "$ac_err" >&5 |
13249 | echo "configure: failed program was:" >&5 | |
6f72b082 | 13250 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13251 | rm -rf conftest* |
13252 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 13253 | fi |
698dcdb6 | 13254 | rm -f conftest* |
6f72b082 | 13255 | fi |
698dcdb6 VZ |
13256 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13257 | echo "$ac_t""yes" 1>&6 | |
13258 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13259 | cat >> confdefs.h <<EOF | |
13260 | #define $ac_tr_hdr 1 | |
6f72b082 | 13261 | EOF |
698dcdb6 VZ |
13262 | |
13263 | else | |
13264 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
13265 | fi |
13266 | done | |
13267 | ||
9f8148b1 | 13268 | for ac_hdr in wchar.h |
6f72b082 | 13269 | do |
698dcdb6 VZ |
13270 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13271 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
e45387bf | 13272 | echo "configure:13273: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13273 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13274 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13275 | else | |
13276 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 13277 | #line 13278 "configure" |
6f72b082 | 13278 | #include "confdefs.h" |
698dcdb6 VZ |
13279 | #include <$ac_hdr> |
13280 | EOF | |
13281 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
e45387bf | 13282 | { (eval echo configure:13283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13283 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13284 | if test -z "$ac_err"; then | |
13285 | rm -rf conftest* | |
13286 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 13287 | else |
698dcdb6 VZ |
13288 | echo "$ac_err" >&5 |
13289 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13290 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13291 | rm -rf conftest* |
13292 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13293 | fi |
698dcdb6 | 13294 | rm -f conftest* |
10f2d63a | 13295 | fi |
698dcdb6 VZ |
13296 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13297 | echo "$ac_t""yes" 1>&6 | |
13298 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13299 | cat >> confdefs.h <<EOF | |
13300 | #define $ac_tr_hdr 1 | |
10f2d63a | 13301 | EOF |
698dcdb6 VZ |
13302 | |
13303 | else | |
13304 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13305 | fi |
13306 | done | |
13307 | ||
9f8148b1 | 13308 | for ac_hdr in wcstr.h |
0fb0dd83 | 13309 | do |
698dcdb6 VZ |
13310 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13311 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
e45387bf | 13312 | echo "configure:13313: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13313 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13314 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13315 | else | |
13316 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 13317 | #line 13318 "configure" |
0fb0dd83 | 13318 | #include "confdefs.h" |
698dcdb6 VZ |
13319 | #include <$ac_hdr> |
13320 | EOF | |
13321 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
e45387bf | 13322 | { (eval echo configure:13323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13323 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13324 | if test -z "$ac_err"; then | |
13325 | rm -rf conftest* | |
13326 | eval "ac_cv_header_$ac_safe=yes" | |
0fb0dd83 | 13327 | else |
698dcdb6 VZ |
13328 | echo "$ac_err" >&5 |
13329 | echo "configure: failed program was:" >&5 | |
0fb0dd83 | 13330 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13331 | rm -rf conftest* |
13332 | eval "ac_cv_header_$ac_safe=no" | |
0fb0dd83 | 13333 | fi |
698dcdb6 | 13334 | rm -f conftest* |
0fb0dd83 | 13335 | fi |
698dcdb6 VZ |
13336 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13337 | echo "$ac_t""yes" 1>&6 | |
13338 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13339 | cat >> confdefs.h <<EOF | |
13340 | #define $ac_tr_hdr 1 | |
0fb0dd83 | 13341 | EOF |
698dcdb6 VZ |
13342 | |
13343 | else | |
13344 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 RR |
13345 | fi |
13346 | done | |
13347 | ||
9f8148b1 | 13348 | for ac_hdr in wctype.h |
1f8ae82f | 13349 | do |
698dcdb6 VZ |
13350 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13351 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
e45387bf | 13352 | echo "configure:13353: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13353 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13354 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13355 | else | |
13356 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 13357 | #line 13358 "configure" |
1f8ae82f | 13358 | #include "confdefs.h" |
698dcdb6 VZ |
13359 | #include <$ac_hdr> |
13360 | EOF | |
13361 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
e45387bf | 13362 | { (eval echo configure:13363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13363 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13364 | if test -z "$ac_err"; then | |
13365 | rm -rf conftest* | |
13366 | eval "ac_cv_header_$ac_safe=yes" | |
1f8ae82f | 13367 | else |
698dcdb6 VZ |
13368 | echo "$ac_err" >&5 |
13369 | echo "configure: failed program was:" >&5 | |
1f8ae82f | 13370 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13371 | rm -rf conftest* |
13372 | eval "ac_cv_header_$ac_safe=no" | |
1f8ae82f | 13373 | fi |
698dcdb6 | 13374 | rm -f conftest* |
1f8ae82f | 13375 | fi |
698dcdb6 VZ |
13376 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13377 | echo "$ac_t""yes" 1>&6 | |
13378 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13379 | cat >> confdefs.h <<EOF | |
13380 | #define $ac_tr_hdr 1 | |
1f8ae82f | 13381 | EOF |
698dcdb6 VZ |
13382 | |
13383 | else | |
13384 | echo "$ac_t""no" 1>&6 | |
1f8ae82f GD |
13385 | fi |
13386 | done | |
13387 | ||
9f8148b1 | 13388 | for ac_hdr in fnmatch.h |
10f2d63a | 13389 | do |
698dcdb6 VZ |
13390 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13391 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
e45387bf | 13392 | echo "configure:13393: checking for $ac_hdr" >&5 |
0fbb762e MB |
13393 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13394 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13395 | else | |
13396 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 13397 | #line 13398 "configure" |
0fbb762e MB |
13398 | #include "confdefs.h" |
13399 | #include <$ac_hdr> | |
13400 | EOF | |
13401 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
e45387bf | 13402 | { (eval echo configure:13403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0fbb762e MB |
13403 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13404 | if test -z "$ac_err"; then | |
13405 | rm -rf conftest* | |
13406 | eval "ac_cv_header_$ac_safe=yes" | |
13407 | else | |
13408 | echo "$ac_err" >&5 | |
13409 | echo "configure: failed program was:" >&5 | |
13410 | cat conftest.$ac_ext >&5 | |
13411 | rm -rf conftest* | |
13412 | eval "ac_cv_header_$ac_safe=no" | |
13413 | fi | |
13414 | rm -f conftest* | |
13415 | fi | |
13416 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13417 | echo "$ac_t""yes" 1>&6 | |
13418 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13419 | cat >> confdefs.h <<EOF | |
13420 | #define $ac_tr_hdr 1 | |
13421 | EOF | |
13422 | ||
13423 | else | |
13424 | echo "$ac_t""no" 1>&6 | |
13425 | fi | |
13426 | done | |
13427 | ||
9f8148b1 GD |
13428 | for ac_hdr in langinfo.h |
13429 | do | |
13430 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
13431 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
e45387bf | 13432 | echo "configure:13433: checking for $ac_hdr" >&5 |
9f8148b1 GD |
13433 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13434 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13435 | else | |
13436 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 13437 | #line 13438 "configure" |
9f8148b1 GD |
13438 | #include "confdefs.h" |
13439 | #include <$ac_hdr> | |
13440 | EOF | |
13441 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
e45387bf | 13442 | { (eval echo configure:13443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9f8148b1 GD |
13443 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13444 | if test -z "$ac_err"; then | |
13445 | rm -rf conftest* | |
13446 | eval "ac_cv_header_$ac_safe=yes" | |
13447 | else | |
13448 | echo "$ac_err" >&5 | |
13449 | echo "configure: failed program was:" >&5 | |
13450 | cat conftest.$ac_ext >&5 | |
13451 | rm -rf conftest* | |
13452 | eval "ac_cv_header_$ac_safe=no" | |
13453 | fi | |
13454 | rm -f conftest* | |
13455 | fi | |
13456 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13457 | echo "$ac_t""yes" 1>&6 | |
13458 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13459 | cat >> confdefs.h <<EOF | |
13460 | #define $ac_tr_hdr 1 | |
13461 | EOF | |
13462 | ||
13463 | else | |
13464 | echo "$ac_t""no" 1>&6 | |
13465 | fi | |
13466 | done | |
13467 | ||
10f2d63a | 13468 | |
3a922bb4 RL |
13469 | if test "$wxUSE_GUI" = "yes"; then |
13470 | if test "$wxUSE_UNIX" = "yes"; then | |
13471 | for ac_hdr in X11/XKBlib.h | |
29fd3c0c VS |
13472 | do |
13473 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
13474 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
e45387bf | 13475 | echo "configure:13476: checking for $ac_hdr" >&5 |
29fd3c0c VS |
13476 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13477 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13478 | else | |
13479 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 13480 | #line 13481 "configure" |
29fd3c0c VS |
13481 | #include "confdefs.h" |
13482 | #include <$ac_hdr> | |
13483 | EOF | |
13484 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
e45387bf | 13485 | { (eval echo configure:13486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
13486 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13487 | if test -z "$ac_err"; then | |
13488 | rm -rf conftest* | |
13489 | eval "ac_cv_header_$ac_safe=yes" | |
13490 | else | |
13491 | echo "$ac_err" >&5 | |
13492 | echo "configure: failed program was:" >&5 | |
13493 | cat conftest.$ac_ext >&5 | |
13494 | rm -rf conftest* | |
13495 | eval "ac_cv_header_$ac_safe=no" | |
13496 | fi | |
13497 | rm -f conftest* | |
13498 | fi | |
13499 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13500 | echo "$ac_t""yes" 1>&6 | |
13501 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13502 | cat >> confdefs.h <<EOF | |
13503 | #define $ac_tr_hdr 1 | |
13504 | EOF | |
13505 | ||
13506 | else | |
13507 | echo "$ac_t""no" 1>&6 | |
13508 | fi | |
13509 | done | |
13510 | ||
3a922bb4 | 13511 | fi |
29fd3c0c VS |
13512 | fi |
13513 | ||
698dcdb6 VZ |
13514 | |
13515 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
e45387bf | 13516 | echo "configure:13517: checking for ANSI C header files" >&5 |
698dcdb6 VZ |
13517 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
13518 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13519 | else |
698dcdb6 | 13520 | cat > conftest.$ac_ext <<EOF |
e45387bf | 13521 | #line 13522 "configure" |
10f2d63a VZ |
13522 | #include "confdefs.h" |
13523 | #include <stdlib.h> | |
13524 | #include <stdarg.h> | |
13525 | #include <string.h> | |
13526 | #include <float.h> | |
698dcdb6 VZ |
13527 | EOF |
13528 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
e45387bf | 13529 | { (eval echo configure:13530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13530 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13531 | if test -z "$ac_err"; then | |
13532 | rm -rf conftest* | |
10f2d63a VZ |
13533 | ac_cv_header_stdc=yes |
13534 | else | |
698dcdb6 VZ |
13535 | echo "$ac_err" >&5 |
13536 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13537 | cat conftest.$ac_ext >&5 |
698dcdb6 | 13538 | rm -rf conftest* |
10f2d63a VZ |
13539 | ac_cv_header_stdc=no |
13540 | fi | |
698dcdb6 | 13541 | rm -f conftest* |
10f2d63a VZ |
13542 | |
13543 | if test $ac_cv_header_stdc = yes; then | |
13544 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
698dcdb6 | 13545 | cat > conftest.$ac_ext <<EOF |
e45387bf | 13546 | #line 13547 "configure" |
10f2d63a VZ |
13547 | #include "confdefs.h" |
13548 | #include <string.h> | |
698dcdb6 | 13549 | EOF |
10f2d63a VZ |
13550 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
13551 | egrep "memchr" >/dev/null 2>&1; then | |
13552 | : | |
13553 | else | |
698dcdb6 | 13554 | rm -rf conftest* |
10f2d63a VZ |
13555 | ac_cv_header_stdc=no |
13556 | fi | |
13557 | rm -f conftest* | |
13558 | ||
13559 | fi | |
13560 | ||
13561 | if test $ac_cv_header_stdc = yes; then | |
13562 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
698dcdb6 | 13563 | cat > conftest.$ac_ext <<EOF |
e45387bf | 13564 | #line 13565 "configure" |
10f2d63a VZ |
13565 | #include "confdefs.h" |
13566 | #include <stdlib.h> | |
698dcdb6 | 13567 | EOF |
10f2d63a VZ |
13568 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
13569 | egrep "free" >/dev/null 2>&1; then | |
13570 | : | |
13571 | else | |
698dcdb6 | 13572 | rm -rf conftest* |
10f2d63a VZ |
13573 | ac_cv_header_stdc=no |
13574 | fi | |
13575 | rm -f conftest* | |
13576 | ||
13577 | fi | |
13578 | ||
13579 | if test $ac_cv_header_stdc = yes; then | |
13580 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
698dcdb6 | 13581 | if test "$cross_compiling" = yes; then |
10f2d63a VZ |
13582 | : |
13583 | else | |
698dcdb6 | 13584 | cat > conftest.$ac_ext <<EOF |
e45387bf | 13585 | #line 13586 "configure" |
10f2d63a VZ |
13586 | #include "confdefs.h" |
13587 | #include <ctype.h> | |
698dcdb6 VZ |
13588 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
13589 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1e487827 | 13590 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
698dcdb6 VZ |
13591 | int main () { int i; for (i = 0; i < 256; i++) |
13592 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
13593 | exit (0); } | |
13594 | ||
13595 | EOF | |
e45387bf | 13596 | if { (eval echo configure:13597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 13597 | then |
10f2d63a VZ |
13598 | : |
13599 | else | |
698dcdb6 VZ |
13600 | echo "configure: failed program was:" >&5 |
13601 | cat conftest.$ac_ext >&5 | |
13602 | rm -fr conftest* | |
13603 | ac_cv_header_stdc=no | |
10f2d63a | 13604 | fi |
698dcdb6 | 13605 | rm -fr conftest* |
10f2d63a | 13606 | fi |
698dcdb6 | 13607 | |
10f2d63a VZ |
13608 | fi |
13609 | fi | |
1e487827 | 13610 | |
698dcdb6 VZ |
13611 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
13612 | if test $ac_cv_header_stdc = yes; then | |
13613 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13614 | #define STDC_HEADERS 1 |
13615 | EOF | |
13616 | ||
13617 | fi | |
13618 | ||
698dcdb6 | 13619 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
e45387bf | 13620 | echo "configure:13621: checking for mode_t" >&5 |
698dcdb6 VZ |
13621 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
13622 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 13623 | else |
698dcdb6 | 13624 | cat > conftest.$ac_ext <<EOF |
e45387bf | 13625 | #line 13626 "configure" |
1e487827 | 13626 | #include "confdefs.h" |
698dcdb6 VZ |
13627 | #include <sys/types.h> |
13628 | #if STDC_HEADERS | |
13629 | #include <stdlib.h> | |
13630 | #include <stddef.h> | |
13631 | #endif | |
13632 | EOF | |
13633 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13634 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
13635 | rm -rf conftest* | |
10f2d63a VZ |
13636 | ac_cv_type_mode_t=yes |
13637 | else | |
698dcdb6 VZ |
13638 | rm -rf conftest* |
13639 | ac_cv_type_mode_t=no | |
703e0a69 | 13640 | fi |
698dcdb6 | 13641 | rm -f conftest* |
1e487827 | 13642 | |
698dcdb6 VZ |
13643 | fi |
13644 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
13645 | if test $ac_cv_type_mode_t = no; then | |
13646 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13647 | #define mode_t int |
13648 | EOF | |
13649 | ||
13650 | fi | |
13651 | ||
698dcdb6 | 13652 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
e45387bf | 13653 | echo "configure:13654: checking for off_t" >&5 |
698dcdb6 VZ |
13654 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
13655 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13656 | else |
698dcdb6 | 13657 | cat > conftest.$ac_ext <<EOF |
e45387bf | 13658 | #line 13659 "configure" |
10f2d63a | 13659 | #include "confdefs.h" |
698dcdb6 VZ |
13660 | #include <sys/types.h> |
13661 | #if STDC_HEADERS | |
13662 | #include <stdlib.h> | |
13663 | #include <stddef.h> | |
13664 | #endif | |
13665 | EOF | |
13666 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13667 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
13668 | rm -rf conftest* | |
10f2d63a VZ |
13669 | ac_cv_type_off_t=yes |
13670 | else | |
698dcdb6 VZ |
13671 | rm -rf conftest* |
13672 | ac_cv_type_off_t=no | |
703e0a69 | 13673 | fi |
698dcdb6 | 13674 | rm -f conftest* |
1e487827 | 13675 | |
698dcdb6 VZ |
13676 | fi |
13677 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
13678 | if test $ac_cv_type_off_t = no; then | |
13679 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13680 | #define off_t long |
13681 | EOF | |
13682 | ||
13683 | fi | |
13684 | ||
698dcdb6 | 13685 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
e45387bf | 13686 | echo "configure:13687: checking for pid_t" >&5 |
698dcdb6 VZ |
13687 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
13688 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13689 | else |
698dcdb6 | 13690 | cat > conftest.$ac_ext <<EOF |
e45387bf | 13691 | #line 13692 "configure" |
10f2d63a | 13692 | #include "confdefs.h" |
698dcdb6 VZ |
13693 | #include <sys/types.h> |
13694 | #if STDC_HEADERS | |
13695 | #include <stdlib.h> | |
13696 | #include <stddef.h> | |
13697 | #endif | |
13698 | EOF | |
13699 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13700 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
13701 | rm -rf conftest* | |
10f2d63a VZ |
13702 | ac_cv_type_pid_t=yes |
13703 | else | |
698dcdb6 VZ |
13704 | rm -rf conftest* |
13705 | ac_cv_type_pid_t=no | |
703e0a69 | 13706 | fi |
698dcdb6 | 13707 | rm -f conftest* |
1e487827 | 13708 | |
698dcdb6 VZ |
13709 | fi |
13710 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
13711 | if test $ac_cv_type_pid_t = no; then | |
13712 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13713 | #define pid_t int |
13714 | EOF | |
13715 | ||
13716 | fi | |
13717 | ||
698dcdb6 | 13718 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
e45387bf | 13719 | echo "configure:13720: checking for size_t" >&5 |
698dcdb6 VZ |
13720 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
13721 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13722 | else |
698dcdb6 | 13723 | cat > conftest.$ac_ext <<EOF |
e45387bf | 13724 | #line 13725 "configure" |
10f2d63a | 13725 | #include "confdefs.h" |
698dcdb6 VZ |
13726 | #include <sys/types.h> |
13727 | #if STDC_HEADERS | |
13728 | #include <stdlib.h> | |
13729 | #include <stddef.h> | |
13730 | #endif | |
13731 | EOF | |
13732 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13733 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
13734 | rm -rf conftest* | |
10f2d63a VZ |
13735 | ac_cv_type_size_t=yes |
13736 | else | |
698dcdb6 VZ |
13737 | rm -rf conftest* |
13738 | ac_cv_type_size_t=no | |
703e0a69 | 13739 | fi |
698dcdb6 | 13740 | rm -f conftest* |
1e487827 | 13741 | |
698dcdb6 VZ |
13742 | fi |
13743 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
13744 | if test $ac_cv_type_size_t = no; then | |
13745 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13746 | #define size_t unsigned |
13747 | EOF | |
13748 | ||
13749 | fi | |
13750 | ||
698dcdb6 | 13751 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
e45387bf | 13752 | echo "configure:13753: checking for uid_t in sys/types.h" >&5 |
698dcdb6 VZ |
13753 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
13754 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13755 | else |
698dcdb6 | 13756 | cat > conftest.$ac_ext <<EOF |
e45387bf | 13757 | #line 13758 "configure" |
10f2d63a VZ |
13758 | #include "confdefs.h" |
13759 | #include <sys/types.h> | |
698dcdb6 | 13760 | EOF |
10f2d63a VZ |
13761 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
13762 | egrep "uid_t" >/dev/null 2>&1; then | |
698dcdb6 | 13763 | rm -rf conftest* |
10f2d63a VZ |
13764 | ac_cv_type_uid_t=yes |
13765 | else | |
698dcdb6 | 13766 | rm -rf conftest* |
10f2d63a VZ |
13767 | ac_cv_type_uid_t=no |
13768 | fi | |
13769 | rm -f conftest* | |
13770 | ||
13771 | fi | |
1e487827 | 13772 | |
698dcdb6 VZ |
13773 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
13774 | if test $ac_cv_type_uid_t = no; then | |
13775 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13776 | #define uid_t int |
13777 | EOF | |
13778 | ||
698dcdb6 | 13779 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
13780 | #define gid_t int |
13781 | EOF | |
13782 | ||
13783 | fi | |
13784 | ||
1e487827 | 13785 | |
698dcdb6 | 13786 | echo $ac_n "checking for wchar_t""... $ac_c" 1>&6 |
e45387bf | 13787 | echo "configure:13788: checking for wchar_t" >&5 |
698dcdb6 VZ |
13788 | if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then |
13789 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13790 | else | |
13791 | ||
13792 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 13793 | #line 13794 "configure" |
0046ff7c | 13794 | #include "confdefs.h" |
4b42290e GD |
13795 | |
13796 | #ifdef HAVE_WCHAR_H | |
0fbb762e MB |
13797 | # ifdef __CYGWIN__ |
13798 | # include <stddef.h> | |
13799 | # endif | |
4b42290e GD |
13800 | # include <wchar.h> |
13801 | #endif | |
13802 | #ifdef HAVE_STDLIB_H | |
13803 | # include <stdlib.h> | |
13804 | #endif | |
13805 | ||
698dcdb6 | 13806 | int main() { |
0046ff7c | 13807 | |
d836ee96 VZ |
13808 | wchar_t wc, *ws; |
13809 | wc = L'a'; | |
13810 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
13811 | |
13812 | ; return 0; } | |
13813 | EOF | |
e45387bf | 13814 | if { (eval echo configure:13815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 13815 | rm -rf conftest* |
1f8ae82f | 13816 | wx_cv_type_wchar_t=yes |
0046ff7c | 13817 | else |
698dcdb6 VZ |
13818 | echo "configure: failed program was:" >&5 |
13819 | cat conftest.$ac_ext >&5 | |
13820 | rm -rf conftest* | |
13821 | wx_cv_type_wchar_t=no | |
d836ee96 | 13822 | |
6232543b | 13823 | fi |
698dcdb6 | 13824 | rm -f conftest* |
703e0a69 | 13825 | |
1e487827 | 13826 | fi |
698dcdb6 VZ |
13827 | |
13828 | echo "$ac_t""$wx_cv_type_wchar_t" 1>&6 | |
d836ee96 VZ |
13829 | |
13830 | if test "$wx_cv_type_wchar_t" = "yes"; then | |
698dcdb6 | 13831 | cat >> confdefs.h <<\EOF |
0046ff7c VS |
13832 | #define wxUSE_WCHAR_T 1 |
13833 | EOF | |
13834 | ||
13835 | fi | |
13836 | ||
19af3b06 VZ |
13837 | |
13838 | ac_ext=C | |
13839 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13840 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13841 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13842 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13843 | cross_compiling=$ac_cv_prog_cxx_cross | |
13844 | ||
d836ee96 | 13845 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
e45387bf | 13846 | echo "configure:13847: checking if size_t is unsigned int" >&5 |
d836ee96 VZ |
13847 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
13848 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13849 | else | |
dd2c8b7c | 13850 | cat > conftest.$ac_ext <<EOF |
e45387bf | 13851 | #line 13852 "configure" |
d836ee96 VZ |
13852 | #include "confdefs.h" |
13853 | #include <stddef.h> | |
13854 | int main() { | |
13855 | ||
dd2c8b7c VZ |
13856 | return 0; } |
13857 | ||
d836ee96 | 13858 | struct Foo { void foo(size_t); void foo(unsigned int); }; |
dd2c8b7c VZ |
13859 | |
13860 | int bar() { | |
d836ee96 VZ |
13861 | |
13862 | ; return 0; } | |
13863 | EOF | |
e45387bf | 13864 | if { (eval echo configure:13865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
13865 | rm -rf conftest* |
13866 | wx_cv_size_t_is_uint=no | |
13867 | else | |
13868 | echo "configure: failed program was:" >&5 | |
13869 | cat conftest.$ac_ext >&5 | |
13870 | rm -rf conftest* | |
13871 | wx_cv_size_t_is_uint=yes | |
13872 | ||
13873 | fi | |
13874 | rm -f conftest* | |
13875 | ||
13876 | fi | |
13877 | ||
13878 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
13879 | ||
13880 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
13881 | cat >> confdefs.h <<\EOF | |
13882 | #define wxSIZE_T_IS_UINT 1 | |
13883 | EOF | |
13884 | ||
13885 | else | |
13886 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
e45387bf | 13887 | echo "configure:13888: checking if size_t is unsigned long" >&5 |
d836ee96 VZ |
13888 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
13889 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13890 | else | |
13891 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 13892 | #line 13893 "configure" |
d836ee96 VZ |
13893 | #include "confdefs.h" |
13894 | #include <stddef.h> | |
13895 | int main() { | |
13896 | ||
dd2c8b7c VZ |
13897 | return 0; } |
13898 | ||
d836ee96 | 13899 | struct Foo { void foo(size_t); void foo(unsigned long); }; |
dd2c8b7c VZ |
13900 | |
13901 | int bar() { | |
d836ee96 VZ |
13902 | |
13903 | ; return 0; } | |
13904 | EOF | |
e45387bf | 13905 | if { (eval echo configure:13906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
13906 | rm -rf conftest* |
13907 | wx_cv_size_t_is_ulong=no | |
13908 | else | |
13909 | echo "configure: failed program was:" >&5 | |
13910 | cat conftest.$ac_ext >&5 | |
13911 | rm -rf conftest* | |
13912 | wx_cv_size_t_is_ulong=yes | |
13913 | ||
13914 | fi | |
13915 | rm -f conftest* | |
13916 | ||
13917 | fi | |
13918 | ||
13919 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
13920 | ||
13921 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
13922 | cat >> confdefs.h <<\EOF | |
13923 | #define wxSIZE_T_IS_ULONG 1 | |
13924 | EOF | |
13925 | ||
13926 | fi | |
13927 | fi | |
13928 | ||
19af3b06 VZ |
13929 | ac_ext=c |
13930 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13931 | ac_cpp='$CPP $CPPFLAGS' | |
13932 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13933 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13934 | cross_compiling=$ac_cv_prog_cc_cross | |
13935 | ||
13936 | ||
1e487827 | 13937 | |
698dcdb6 | 13938 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
e45387bf | 13939 | echo "configure:13940: checking for pw_gecos in struct passwd" >&5 |
698dcdb6 VZ |
13940 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
13941 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13942 | else | |
13943 | ||
13944 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 13945 | #line 13946 "configure" |
b12915c1 VZ |
13946 | #include "confdefs.h" |
13947 | #include <pwd.h> | |
698dcdb6 | 13948 | int main() { |
b12915c1 VZ |
13949 | |
13950 | char *p; | |
13951 | struct passwd *pw; | |
13952 | p = pw->pw_gecos; | |
698dcdb6 VZ |
13953 | |
13954 | ; return 0; } | |
13955 | EOF | |
e45387bf | 13956 | if { (eval echo configure:13957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
13957 | rm -rf conftest* |
13958 | ||
b12915c1 | 13959 | wx_cv_struct_pw_gecos=yes |
698dcdb6 | 13960 | |
b12915c1 | 13961 | else |
698dcdb6 VZ |
13962 | echo "configure: failed program was:" >&5 |
13963 | cat conftest.$ac_ext >&5 | |
13964 | rm -rf conftest* | |
13965 | ||
b12915c1 | 13966 | wx_cv_struct_pw_gecos=no |
698dcdb6 VZ |
13967 | |
13968 | ||
6232543b | 13969 | fi |
698dcdb6 VZ |
13970 | rm -f conftest* |
13971 | ||
703e0a69 | 13972 | |
1e487827 | 13973 | fi |
698dcdb6 VZ |
13974 | |
13975 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
b12915c1 | 13976 | |
bd3277fe | 13977 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
698dcdb6 | 13978 | cat >> confdefs.h <<\EOF |
bd3277fe VZ |
13979 | #define HAVE_PW_GECOS 1 |
13980 | EOF | |
13981 | ||
13982 | fi | |
13983 | ||
698dcdb6 VZ |
13984 | |
13985 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
e45387bf | 13986 | echo "configure:13987: checking for working const" >&5 |
698dcdb6 VZ |
13987 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
13988 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13989 | else |
698dcdb6 | 13990 | cat > conftest.$ac_ext <<EOF |
e45387bf | 13991 | #line 13992 "configure" |
10f2d63a | 13992 | #include "confdefs.h" |
698dcdb6 VZ |
13993 | |
13994 | int main() { | |
13995 | ||
13996 | /* Ultrix mips cc rejects this. */ | |
4cdb0ab0 | 13997 | typedef int charset[2]; const charset x; |
698dcdb6 VZ |
13998 | /* SunOS 4.1.1 cc rejects this. */ |
13999 | char const *const *ccp; | |
14000 | char **p; | |
14001 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14002 | struct point {int x, y;}; | |
14003 | static struct point const zero = {0,0}; | |
14004 | /* AIX XL C 1.02.0.0 rejects this. | |
14005 | It does not let you subtract one const X* pointer from another in an arm | |
14006 | of an if-expression whose if-part is not a constant expression */ | |
14007 | const char *g = "string"; | |
14008 | ccp = &g + (g ? g-g : 0); | |
14009 | /* HPUX 7.0 cc rejects these. */ | |
14010 | ++ccp; | |
14011 | p = (char**) ccp; | |
14012 | ccp = (char const *const *) p; | |
14013 | { /* SCO 3.2v4 cc rejects this. */ | |
14014 | char *t; | |
14015 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
14016 | ||
14017 | *t++ = 0; | |
10f2d63a | 14018 | } |
698dcdb6 VZ |
14019 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
14020 | int x[] = {25, 17}; | |
14021 | const int *foo = &x[0]; | |
14022 | ++foo; | |
703e0a69 | 14023 | } |
698dcdb6 VZ |
14024 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
14025 | typedef const int *iptr; | |
14026 | iptr p = 0; | |
14027 | ++p; | |
6232543b | 14028 | } |
698dcdb6 VZ |
14029 | { /* AIX XL C 1.02.0.0 rejects this saying |
14030 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
14031 | struct s { int j; const int *ap[3]; }; | |
14032 | struct s *b; b->j = 5; | |
1e487827 | 14033 | } |
698dcdb6 VZ |
14034 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
14035 | const int foo = 10; | |
14036 | } | |
4f14bcd8 GD |
14037 | |
14038 | ; return 0; } | |
698dcdb6 | 14039 | EOF |
e45387bf | 14040 | if { (eval echo configure:14041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
14041 | rm -rf conftest* |
14042 | ac_cv_c_const=yes | |
698dcdb6 VZ |
14043 | else |
14044 | echo "configure: failed program was:" >&5 | |
14045 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
14046 | rm -rf conftest* |
14047 | ac_cv_c_const=no | |
703e0a69 | 14048 | fi |
4f14bcd8 | 14049 | rm -f conftest* |
698dcdb6 VZ |
14050 | fi |
14051 | ||
4f14bcd8 GD |
14052 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
14053 | if test $ac_cv_c_const = no; then | |
14054 | cat >> confdefs.h <<\EOF | |
14055 | #define const | |
698dcdb6 VZ |
14056 | EOF |
14057 | ||
4f14bcd8 | 14058 | fi |
698dcdb6 | 14059 | |
4f14bcd8 | 14060 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
e45387bf | 14061 | echo "configure:14062: checking for inline" >&5 |
4f14bcd8 | 14062 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
698dcdb6 | 14063 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14064 | else |
4f14bcd8 GD |
14065 | ac_cv_c_inline=no |
14066 | for ac_kw in inline __inline__ __inline; do | |
698dcdb6 | 14067 | cat > conftest.$ac_ext <<EOF |
e45387bf | 14068 | #line 14069 "configure" |
10f2d63a | 14069 | #include "confdefs.h" |
4f14bcd8 GD |
14070 | |
14071 | int main() { | |
4cdb0ab0 | 14072 | } $ac_kw foo() { |
4f14bcd8 | 14073 | ; return 0; } |
698dcdb6 | 14074 | EOF |
e45387bf | 14075 | if { (eval echo configure:14076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
14076 | rm -rf conftest* |
14077 | ac_cv_c_inline=$ac_kw; break | |
10f2d63a | 14078 | else |
698dcdb6 VZ |
14079 | echo "configure: failed program was:" >&5 |
14080 | cat conftest.$ac_ext >&5 | |
10f2d63a | 14081 | fi |
4f14bcd8 GD |
14082 | rm -f conftest* |
14083 | done | |
698dcdb6 | 14084 | |
10f2d63a | 14085 | fi |
4f14bcd8 GD |
14086 | |
14087 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
14088 | case "$ac_cv_c_inline" in | |
14089 | inline | yes) ;; | |
14090 | no) cat >> confdefs.h <<\EOF | |
14091 | #define inline | |
14092 | EOF | |
14093 | ;; | |
14094 | *) cat >> confdefs.h <<EOF | |
14095 | #define inline $ac_cv_c_inline | |
698dcdb6 | 14096 | EOF |
4f14bcd8 GD |
14097 | ;; |
14098 | esac | |
698dcdb6 VZ |
14099 | |
14100 | ||
4f14bcd8 | 14101 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
e45387bf | 14102 | echo "configure:14103: checking size of char" >&5 |
4f14bcd8 | 14103 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
698dcdb6 VZ |
14104 | echo $ac_n "(cached) $ac_c" 1>&6 |
14105 | else | |
14106 | if test "$cross_compiling" = yes; then | |
4f14bcd8 | 14107 | ac_cv_sizeof_char=1 |
698dcdb6 VZ |
14108 | else |
14109 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 14110 | #line 14111 "configure" |
698dcdb6 VZ |
14111 | #include "confdefs.h" |
14112 | #include <stdio.h> | |
14113 | main() | |
14114 | { | |
14115 | FILE *f=fopen("conftestval", "w"); | |
14116 | if (!f) exit(1); | |
4f14bcd8 | 14117 | fprintf(f, "%d\n", sizeof(char)); |
698dcdb6 VZ |
14118 | exit(0); |
14119 | } | |
14120 | EOF | |
e45387bf | 14121 | if { (eval echo configure:14122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 14122 | then |
4f14bcd8 | 14123 | ac_cv_sizeof_char=`cat conftestval` |
6232543b | 14124 | else |
698dcdb6 VZ |
14125 | echo "configure: failed program was:" >&5 |
14126 | cat conftest.$ac_ext >&5 | |
14127 | rm -fr conftest* | |
4f14bcd8 | 14128 | ac_cv_sizeof_char=0 |
6232543b | 14129 | fi |
698dcdb6 VZ |
14130 | rm -fr conftest* |
14131 | fi | |
14132 | ||
703e0a69 | 14133 | fi |
4f14bcd8 | 14134 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
698dcdb6 | 14135 | cat >> confdefs.h <<EOF |
4f14bcd8 | 14136 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
10f2d63a VZ |
14137 | EOF |
14138 | ||
1e487827 | 14139 | |
4f14bcd8 | 14140 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
e45387bf | 14141 | echo "configure:14142: checking size of short" >&5 |
4f14bcd8 | 14142 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
698dcdb6 VZ |
14143 | echo $ac_n "(cached) $ac_c" 1>&6 |
14144 | else | |
4f14bcd8 GD |
14145 | if test "$cross_compiling" = yes; then |
14146 | ac_cv_sizeof_short=2 | |
b93d0d08 | 14147 | else |
698dcdb6 | 14148 | cat > conftest.$ac_ext <<EOF |
e45387bf | 14149 | #line 14150 "configure" |
b93d0d08 | 14150 | #include "confdefs.h" |
4f14bcd8 GD |
14151 | #include <stdio.h> |
14152 | main() | |
14153 | { | |
14154 | FILE *f=fopen("conftestval", "w"); | |
14155 | if (!f) exit(1); | |
14156 | fprintf(f, "%d\n", sizeof(short)); | |
14157 | exit(0); | |
14158 | } | |
698dcdb6 | 14159 | EOF |
e45387bf | 14160 | if { (eval echo configure:14161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 14161 | then |
4f14bcd8 | 14162 | ac_cv_sizeof_short=`cat conftestval` |
b93d0d08 | 14163 | else |
698dcdb6 VZ |
14164 | echo "configure: failed program was:" >&5 |
14165 | cat conftest.$ac_ext >&5 | |
14166 | rm -fr conftest* | |
4f14bcd8 | 14167 | ac_cv_sizeof_short=0 |
b93d0d08 | 14168 | fi |
698dcdb6 | 14169 | rm -fr conftest* |
b93d0d08 VS |
14170 | fi |
14171 | ||
b93d0d08 | 14172 | fi |
4f14bcd8 | 14173 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
698dcdb6 | 14174 | cat >> confdefs.h <<EOF |
4f14bcd8 | 14175 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
b93d0d08 VS |
14176 | EOF |
14177 | ||
698dcdb6 | 14178 | |
4f14bcd8 | 14179 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 |
e45387bf | 14180 | echo "configure:14181: checking size of int *" >&5 |
4f14bcd8 | 14181 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
698dcdb6 | 14182 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14183 | else |
4f14bcd8 GD |
14184 | if test "$cross_compiling" = yes; then |
14185 | ac_cv_sizeof_int_p=4 | |
3a922bb4 | 14186 | else |
3a922bb4 | 14187 | cat > conftest.$ac_ext <<EOF |
e45387bf | 14188 | #line 14189 "configure" |
3a922bb4 | 14189 | #include "confdefs.h" |
4f14bcd8 GD |
14190 | #include <stdio.h> |
14191 | main() | |
14192 | { | |
14193 | FILE *f=fopen("conftestval", "w"); | |
14194 | if (!f) exit(1); | |
14195 | fprintf(f, "%d\n", sizeof(int *)); | |
14196 | exit(0); | |
14197 | } | |
14198 | EOF | |
e45387bf | 14199 | if { (eval echo configure:14200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14200 | then |
14201 | ac_cv_sizeof_int_p=`cat conftestval` | |
14202 | else | |
14203 | echo "configure: failed program was:" >&5 | |
14204 | cat conftest.$ac_ext >&5 | |
14205 | rm -fr conftest* | |
14206 | ac_cv_sizeof_int_p=0 | |
3a922bb4 | 14207 | fi |
4f14bcd8 | 14208 | rm -fr conftest* |
3a922bb4 | 14209 | fi |
698dcdb6 | 14210 | |
4f14bcd8 GD |
14211 | fi |
14212 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
14213 | cat >> confdefs.h <<EOF | |
14214 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
10f2d63a VZ |
14215 | EOF |
14216 | ||
703e0a69 | 14217 | |
4f14bcd8 | 14218 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
e45387bf | 14219 | echo "configure:14220: checking size of int" >&5 |
4f14bcd8 | 14220 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
698dcdb6 | 14221 | echo $ac_n "(cached) $ac_c" 1>&6 |
4f14bcd8 GD |
14222 | else |
14223 | if test "$cross_compiling" = yes; then | |
14224 | ac_cv_sizeof_int=4 | |
698dcdb6 VZ |
14225 | else |
14226 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 14227 | #line 14228 "configure" |
10f2d63a | 14228 | #include "confdefs.h" |
4f14bcd8 GD |
14229 | #include <stdio.h> |
14230 | main() | |
14231 | { | |
14232 | FILE *f=fopen("conftestval", "w"); | |
14233 | if (!f) exit(1); | |
14234 | fprintf(f, "%d\n", sizeof(int)); | |
14235 | exit(0); | |
14236 | } | |
698dcdb6 | 14237 | EOF |
e45387bf | 14238 | if { (eval echo configure:14239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14239 | then |
14240 | ac_cv_sizeof_int=`cat conftestval` | |
10f2d63a | 14241 | else |
698dcdb6 | 14242 | echo "configure: failed program was:" >&5 |
10f2d63a | 14243 | cat conftest.$ac_ext >&5 |
4f14bcd8 GD |
14244 | rm -fr conftest* |
14245 | ac_cv_sizeof_int=0 | |
10f2d63a | 14246 | fi |
4f14bcd8 | 14247 | rm -fr conftest* |
10f2d63a | 14248 | fi |
10f2d63a | 14249 | |
4f14bcd8 GD |
14250 | fi |
14251 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
14252 | cat >> confdefs.h <<EOF | |
14253 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10f2d63a VZ |
14254 | EOF |
14255 | ||
698dcdb6 | 14256 | |
4f14bcd8 | 14257 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
e45387bf | 14258 | echo "configure:14259: checking size of long" >&5 |
4f14bcd8 | 14259 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
698dcdb6 VZ |
14260 | echo $ac_n "(cached) $ac_c" 1>&6 |
14261 | else | |
4f14bcd8 GD |
14262 | if test "$cross_compiling" = yes; then |
14263 | ac_cv_sizeof_long=4 | |
14264 | else | |
14265 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 14266 | #line 14267 "configure" |
10f2d63a | 14267 | #include "confdefs.h" |
4f14bcd8 GD |
14268 | #include <stdio.h> |
14269 | main() | |
14270 | { | |
14271 | FILE *f=fopen("conftestval", "w"); | |
14272 | if (!f) exit(1); | |
14273 | fprintf(f, "%d\n", sizeof(long)); | |
14274 | exit(0); | |
14275 | } | |
698dcdb6 | 14276 | EOF |
e45387bf | 14277 | if { (eval echo configure:14278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14278 | then |
14279 | ac_cv_sizeof_long=`cat conftestval` | |
10f2d63a | 14280 | else |
698dcdb6 VZ |
14281 | echo "configure: failed program was:" >&5 |
14282 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
14283 | rm -fr conftest* |
14284 | ac_cv_sizeof_long=0 | |
10f2d63a | 14285 | fi |
4f14bcd8 | 14286 | rm -fr conftest* |
10f2d63a | 14287 | fi |
698dcdb6 | 14288 | |
4f14bcd8 GD |
14289 | fi |
14290 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
14291 | cat >> confdefs.h <<EOF | |
14292 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10f2d63a VZ |
14293 | EOF |
14294 | ||
698dcdb6 | 14295 | |
4f14bcd8 | 14296 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
e45387bf | 14297 | echo "configure:14298: checking size of long long" >&5 |
4f14bcd8 | 14298 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
698dcdb6 | 14299 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14300 | else |
4f14bcd8 GD |
14301 | if test "$cross_compiling" = yes; then |
14302 | ac_cv_sizeof_long_long=0 | |
14303 | else | |
14304 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 14305 | #line 14306 "configure" |
10f2d63a | 14306 | #include "confdefs.h" |
4f14bcd8 GD |
14307 | #include <stdio.h> |
14308 | main() | |
14309 | { | |
14310 | FILE *f=fopen("conftestval", "w"); | |
14311 | if (!f) exit(1); | |
14312 | fprintf(f, "%d\n", sizeof(long long)); | |
14313 | exit(0); | |
14314 | } | |
698dcdb6 | 14315 | EOF |
e45387bf | 14316 | if { (eval echo configure:14317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14317 | then |
14318 | ac_cv_sizeof_long_long=`cat conftestval` | |
698dcdb6 VZ |
14319 | else |
14320 | echo "configure: failed program was:" >&5 | |
14321 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
14322 | rm -fr conftest* |
14323 | ac_cv_sizeof_long_long=0 | |
14324 | fi | |
14325 | rm -fr conftest* | |
698dcdb6 | 14326 | fi |
698dcdb6 VZ |
14327 | |
14328 | fi | |
4f14bcd8 GD |
14329 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
14330 | cat >> confdefs.h <<EOF | |
14331 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10f2d63a VZ |
14332 | EOF |
14333 | ||
10f2d63a | 14334 | |
4f14bcd8 GD |
14335 | |
14336 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
e45387bf | 14337 | echo "configure:14338: checking size of wchar_t" >&5 |
4f14bcd8 | 14338 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
698dcdb6 | 14339 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14340 | else |
4f14bcd8 GD |
14341 | |
14342 | if test "$cross_compiling" = yes; then | |
14343 | wx_cv_sizeof_wchar_t=4 | |
14344 | ||
14345 | else | |
14346 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 14347 | #line 14348 "configure" |
10f2d63a | 14348 | #include "confdefs.h" |
698dcdb6 | 14349 | |
4f14bcd8 | 14350 | #ifdef HAVE_WCHAR_H |
0fbb762e MB |
14351 | # ifdef __CYGWIN__ |
14352 | # include <stddef.h> | |
14353 | # endif | |
4f14bcd8 GD |
14354 | # include <wchar.h> |
14355 | #endif | |
14356 | #ifdef HAVE_STDLIB_H | |
14357 | # include <stdlib.h> | |
14358 | #endif | |
14359 | #include <stdio.h> | |
14360 | int main() | |
14361 | { | |
14362 | FILE *f=fopen("conftestval", "w"); | |
14363 | if (!f) exit(1); | |
14364 | fprintf(f, "%i", sizeof(wchar_t)); | |
14365 | exit(0); | |
14366 | } | |
14367 | ||
698dcdb6 | 14368 | EOF |
e45387bf | 14369 | if { (eval echo configure:14370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14370 | then |
14371 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
698dcdb6 VZ |
14372 | else |
14373 | echo "configure: failed program was:" >&5 | |
14374 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
14375 | rm -fr conftest* |
14376 | wx_cv_sizeof_wchar_t=0 | |
698dcdb6 | 14377 | fi |
4f14bcd8 GD |
14378 | rm -fr conftest* |
14379 | fi | |
14380 | ||
698dcdb6 VZ |
14381 | |
14382 | fi | |
4f14bcd8 GD |
14383 | |
14384 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 | |
14385 | ||
14386 | cat >> confdefs.h <<EOF | |
14387 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
10f2d63a VZ |
14388 | EOF |
14389 | ||
18dbb1f6 | 14390 | |
4f14bcd8 | 14391 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
e45387bf | 14392 | echo "configure:14393: checking whether byte ordering is bigendian" >&5 |
4f14bcd8 | 14393 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
18dbb1f6 VZ |
14394 | echo $ac_n "(cached) $ac_c" 1>&6 |
14395 | else | |
4f14bcd8 GD |
14396 | ac_cv_c_bigendian=unknown |
14397 | # See if sys/param.h defines the BYTE_ORDER macro. | |
18dbb1f6 | 14398 | cat > conftest.$ac_ext <<EOF |
e45387bf | 14399 | #line 14400 "configure" |
18dbb1f6 | 14400 | #include "confdefs.h" |
4f14bcd8 GD |
14401 | #include <sys/types.h> |
14402 | #include <sys/param.h> | |
14403 | int main() { | |
18dbb1f6 | 14404 | |
4f14bcd8 GD |
14405 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
14406 | bogus endian macros | |
14407 | #endif | |
14408 | ; return 0; } | |
14409 | EOF | |
e45387bf | 14410 | if { (eval echo configure:14411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
14411 | rm -rf conftest* |
14412 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
14413 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 14414 | #line 14415 "configure" |
4f14bcd8 GD |
14415 | #include "confdefs.h" |
14416 | #include <sys/types.h> | |
14417 | #include <sys/param.h> | |
18dbb1f6 | 14418 | int main() { |
4f14bcd8 GD |
14419 | |
14420 | #if BYTE_ORDER != BIG_ENDIAN | |
14421 | not big endian | |
14422 | #endif | |
18dbb1f6 VZ |
14423 | ; return 0; } |
14424 | EOF | |
e45387bf | 14425 | if { (eval echo configure:14426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
18dbb1f6 | 14426 | rm -rf conftest* |
4f14bcd8 | 14427 | ac_cv_c_bigendian=yes |
18dbb1f6 VZ |
14428 | else |
14429 | echo "configure: failed program was:" >&5 | |
14430 | cat conftest.$ac_ext >&5 | |
14431 | rm -rf conftest* | |
4f14bcd8 | 14432 | ac_cv_c_bigendian=no |
18dbb1f6 VZ |
14433 | fi |
14434 | rm -f conftest* | |
698dcdb6 | 14435 | else |
4f14bcd8 GD |
14436 | echo "configure: failed program was:" >&5 |
14437 | cat conftest.$ac_ext >&5 | |
1e487827 | 14438 | fi |
4f14bcd8 GD |
14439 | rm -f conftest* |
14440 | if test $ac_cv_c_bigendian = unknown; then | |
14441 | if test "$cross_compiling" = yes; then | |
14442 | ac_cv_c_bigendian=unknown | |
b3e8d00a VZ |
14443 | else |
14444 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 14445 | #line 14446 "configure" |
b3e8d00a | 14446 | #include "confdefs.h" |
4f14bcd8 GD |
14447 | main () { |
14448 | /* Are we little or big endian? From Harbison&Steele. */ | |
14449 | union | |
14450 | { | |
14451 | long l; | |
14452 | char c[sizeof (long)]; | |
14453 | } u; | |
14454 | u.l = 1; | |
14455 | exit (u.c[sizeof (long) - 1] == 1); | |
14456 | } | |
b3e8d00a | 14457 | EOF |
e45387bf | 14458 | if { (eval echo configure:14459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f14bcd8 GD |
14459 | then |
14460 | ac_cv_c_bigendian=no | |
b3e8d00a VZ |
14461 | else |
14462 | echo "configure: failed program was:" >&5 | |
14463 | cat conftest.$ac_ext >&5 | |
4f14bcd8 GD |
14464 | rm -fr conftest* |
14465 | ac_cv_c_bigendian=yes | |
b3e8d00a | 14466 | fi |
4f14bcd8 | 14467 | rm -fr conftest* |
b3e8d00a VZ |
14468 | fi |
14469 | ||
4f14bcd8 GD |
14470 | fi |
14471 | fi | |
14472 | ||
14473 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
14474 | if test $ac_cv_c_bigendian = unknown; then | |
14475 | echo "configure: warning: Assuming little-endian target machine - this may be overriden by adding the line "ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}" to config.cache file" 1>&2 | |
14476 | fi | |
14477 | if test $ac_cv_c_bigendian = yes; then | |
14478 | cat >> confdefs.h <<\EOF | |
14479 | #define WORDS_BIGENDIAN 1 | |
b3e8d00a | 14480 | EOF |
4f14bcd8 | 14481 | |
b3e8d00a | 14482 | fi |
b3e8d00a VZ |
14483 | |
14484 | ||
4f14bcd8 | 14485 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
e45387bf | 14486 | echo "configure:14487: checking how to run the C++ preprocessor" >&5 |
4f14bcd8 GD |
14487 | if test -z "$CXXCPP"; then |
14488 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
698dcdb6 VZ |
14489 | echo $ac_n "(cached) $ac_c" 1>&6 |
14490 | else | |
4f14bcd8 GD |
14491 | ac_ext=C |
14492 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14493 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14494 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14495 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14496 | cross_compiling=$ac_cv_prog_cxx_cross | |
14497 | CXXCPP="${CXX-g++} -E" | |
698dcdb6 | 14498 | cat > conftest.$ac_ext <<EOF |
e45387bf | 14499 | #line 14500 "configure" |
10f2d63a | 14500 | #include "confdefs.h" |
4f14bcd8 | 14501 | #include <stdlib.h> |
698dcdb6 | 14502 | EOF |
4f14bcd8 | 14503 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
e45387bf | 14504 | { (eval echo configure:14505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
14505 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14506 | if test -z "$ac_err"; then | |
14507 | : | |
698dcdb6 | 14508 | else |
4f14bcd8 | 14509 | echo "$ac_err" >&5 |
698dcdb6 VZ |
14510 | echo "configure: failed program was:" >&5 |
14511 | cat conftest.$ac_ext >&5 | |
14512 | rm -rf conftest* | |
4f14bcd8 | 14513 | CXXCPP=/lib/cpp |
698dcdb6 VZ |
14514 | fi |
14515 | rm -f conftest* | |
4f14bcd8 GD |
14516 | ac_cv_prog_CXXCPP="$CXXCPP" |
14517 | ac_ext=C | |
14518 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14519 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14520 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14521 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14522 | cross_compiling=$ac_cv_prog_cxx_cross | |
14523 | fi | |
698dcdb6 | 14524 | fi |
4f14bcd8 GD |
14525 | CXXCPP="$ac_cv_prog_CXXCPP" |
14526 | echo "$ac_t""$CXXCPP" 1>&6 | |
698dcdb6 | 14527 | |
4f14bcd8 GD |
14528 | |
14529 | if test "$cross_compiling" = "yes"; then | |
14530 | cat >> confdefs.h <<\EOF | |
14531 | #define wxUSE_IOSTREAMH 1 | |
698dcdb6 VZ |
14532 | EOF |
14533 | ||
4f14bcd8 GD |
14534 | else |
14535 | ||
14536 | ac_ext=C | |
14537 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14538 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14539 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14540 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14541 | cross_compiling=$ac_cv_prog_cxx_cross | |
698dcdb6 | 14542 | |
4f14bcd8 GD |
14543 | |
14544 | for ac_hdr in iostream | |
14545 | do | |
14546 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
14547 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
e45387bf | 14548 | echo "configure:14549: checking for $ac_hdr" >&5 |
4f14bcd8 | 14549 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 VZ |
14550 | echo $ac_n "(cached) $ac_c" 1>&6 |
14551 | else | |
14552 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 14553 | #line 14554 "configure" |
10f2d63a | 14554 | #include "confdefs.h" |
4f14bcd8 | 14555 | #include <$ac_hdr> |
698dcdb6 | 14556 | EOF |
4f14bcd8 | 14557 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
e45387bf | 14558 | { (eval echo configure:14559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
14559 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14560 | if test -z "$ac_err"; then | |
698dcdb6 | 14561 | rm -rf conftest* |
4f14bcd8 | 14562 | eval "ac_cv_header_$ac_safe=yes" |
698dcdb6 | 14563 | else |
4f14bcd8 | 14564 | echo "$ac_err" >&5 |
698dcdb6 VZ |
14565 | echo "configure: failed program was:" >&5 |
14566 | cat conftest.$ac_ext >&5 | |
14567 | rm -rf conftest* | |
4f14bcd8 | 14568 | eval "ac_cv_header_$ac_safe=no" |
698dcdb6 VZ |
14569 | fi |
14570 | rm -f conftest* | |
14571 | fi | |
4f14bcd8 | 14572 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
698dcdb6 | 14573 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
14574 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
14575 | cat >> confdefs.h <<EOF | |
14576 | #define $ac_tr_hdr 1 | |
10f2d63a | 14577 | EOF |
4f14bcd8 | 14578 | |
698dcdb6 VZ |
14579 | else |
14580 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 14581 | fi |
4f14bcd8 | 14582 | done |
10f2d63a | 14583 | |
10f2d63a | 14584 | |
4f14bcd8 GD |
14585 | if test "$ac_cv_header_iostream" = "yes" ; then |
14586 | : | |
14587 | else | |
14588 | cat >> confdefs.h <<\EOF | |
14589 | #define wxUSE_IOSTREAMH 1 | |
14590 | EOF | |
14591 | ||
14592 | fi | |
1e487827 | 14593 | |
4f14bcd8 GD |
14594 | ac_ext=c |
14595 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14596 | ac_cpp='$CPP $CPPFLAGS' | |
14597 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14598 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14599 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 14600 | |
4f14bcd8 | 14601 | fi |
698dcdb6 VZ |
14602 | |
14603 | ||
14604 | ||
4f14bcd8 | 14605 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 |
e45387bf | 14606 | echo "configure:14607: checking if C++ compiler supports bool" >&5 |
4f14bcd8 | 14607 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
698dcdb6 VZ |
14608 | echo $ac_n "(cached) $ac_c" 1>&6 |
14609 | else | |
14610 | ||
4f14bcd8 GD |
14611 | |
14612 | ac_ext=C | |
14613 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14614 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14615 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14616 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14617 | cross_compiling=$ac_cv_prog_cxx_cross | |
f6bcfd97 | 14618 | |
10f2d63a | 14619 | |
4f14bcd8 | 14620 | cat > conftest.$ac_ext <<EOF |
e45387bf | 14621 | #line 14622 "configure" |
4f14bcd8 | 14622 | #include "confdefs.h" |
10f2d63a | 14623 | |
4f14bcd8 GD |
14624 | |
14625 | int main() { | |
f6bcfd97 | 14626 | |
4f14bcd8 | 14627 | bool b = true; |
f6bcfd97 | 14628 | |
4f14bcd8 GD |
14629 | return 0; |
14630 | ||
698dcdb6 VZ |
14631 | ; return 0; } |
14632 | EOF | |
e45387bf | 14633 | if { (eval echo configure:14634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14634 | rm -rf conftest* |
14635 | ||
4f14bcd8 GD |
14636 | wx_cv_cpp_bool=yes |
14637 | ||
10f2d63a | 14638 | else |
698dcdb6 VZ |
14639 | echo "configure: failed program was:" >&5 |
14640 | cat conftest.$ac_ext >&5 | |
14641 | rm -rf conftest* | |
14642 | ||
4f14bcd8 GD |
14643 | wx_cv_cpp_bool=no |
14644 | ||
14645 | ||
14646 | fi | |
14647 | rm -f conftest* | |
c521c494 | 14648 | |
4f14bcd8 GD |
14649 | ac_ext=c |
14650 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14651 | ac_cpp='$CPP $CPPFLAGS' | |
14652 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14653 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14654 | cross_compiling=$ac_cv_prog_cc_cross | |
c521c494 | 14655 | |
4f14bcd8 GD |
14656 | |
14657 | fi | |
c521c494 | 14658 | |
4f14bcd8 | 14659 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 |
c521c494 | 14660 | |
4f14bcd8 GD |
14661 | if test "$wx_cv_cpp_bool" = "yes"; then |
14662 | cat >> confdefs.h <<\EOF | |
14663 | #define HAVE_BOOL 1 | |
14664 | EOF | |
c521c494 | 14665 | |
4f14bcd8 GD |
14666 | fi |
14667 | ||
14668 | ||
14669 | ||
14670 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
e45387bf | 14671 | echo "configure:14672: checking for wcslen in -lc" >&5 |
4f14bcd8 GD |
14672 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
14673 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14674 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14675 | else | |
14676 | ac_save_LIBS="$LIBS" | |
14677 | LIBS="-lc $LIBS" | |
14678 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 14679 | #line 14680 "configure" |
4f14bcd8 GD |
14680 | #include "confdefs.h" |
14681 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14682 | /* We use char because int might match the return type of a gcc2 | |
14683 | builtin and then its argument prototype would still apply. */ | |
14684 | char wcslen(); | |
14685 | ||
14686 | int main() { | |
14687 | wcslen() | |
698dcdb6 VZ |
14688 | ; return 0; } |
14689 | EOF | |
e45387bf | 14690 | if { (eval echo configure:14691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14691 | rm -rf conftest* |
4f14bcd8 | 14692 | eval "ac_cv_lib_$ac_lib_var=yes" |
c521c494 | 14693 | else |
698dcdb6 VZ |
14694 | echo "configure: failed program was:" >&5 |
14695 | cat conftest.$ac_ext >&5 | |
14696 | rm -rf conftest* | |
4f14bcd8 | 14697 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 14698 | fi |
698dcdb6 | 14699 | rm -f conftest* |
4f14bcd8 | 14700 | LIBS="$ac_save_LIBS" |
703e0a69 | 14701 | |
1e487827 | 14702 | fi |
4f14bcd8 GD |
14703 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
14704 | echo "$ac_t""yes" 1>&6 | |
14705 | ||
14706 | cat >> confdefs.h <<\EOF | |
14707 | #define HAVE_WCSLEN 1 | |
9d8deca0 VZ |
14708 | EOF |
14709 | ||
3d63bc3a | 14710 | WCHAR_LINK= |
4f14bcd8 | 14711 | |
9d8deca0 | 14712 | else |
4f14bcd8 | 14713 | echo "$ac_t""no" 1>&6 |
9d8deca0 | 14714 | |
4f14bcd8 | 14715 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
e45387bf | 14716 | echo "configure:14717: checking for wcslen in -lw" >&5 |
4f14bcd8 GD |
14717 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
14718 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 | 14719 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 14720 | else |
4f14bcd8 GD |
14721 | ac_save_LIBS="$LIBS" |
14722 | LIBS="-lw $LIBS" | |
14723 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 14724 | #line 14725 "configure" |
10f2d63a | 14725 | #include "confdefs.h" |
4f14bcd8 GD |
14726 | /* Override any gcc2 internal prototype to avoid an error. */ |
14727 | /* We use char because int might match the return type of a gcc2 | |
14728 | builtin and then its argument prototype would still apply. */ | |
14729 | char wcslen(); | |
10f2d63a | 14730 | |
698dcdb6 | 14731 | int main() { |
4f14bcd8 | 14732 | wcslen() |
698dcdb6 VZ |
14733 | ; return 0; } |
14734 | EOF | |
e45387bf | 14735 | if { (eval echo configure:14736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14736 | rm -rf conftest* |
4f14bcd8 | 14737 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 14738 | else |
698dcdb6 VZ |
14739 | echo "configure: failed program was:" >&5 |
14740 | cat conftest.$ac_ext >&5 | |
14741 | rm -rf conftest* | |
4f14bcd8 | 14742 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 14743 | fi |
698dcdb6 | 14744 | rm -f conftest* |
4f14bcd8 | 14745 | LIBS="$ac_save_LIBS" |
703e0a69 | 14746 | |
1e487827 | 14747 | fi |
4f14bcd8 GD |
14748 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
14749 | echo "$ac_t""yes" 1>&6 | |
14750 | ||
14751 | cat >> confdefs.h <<\EOF | |
14752 | #define HAVE_WCSLEN 1 | |
9d8deca0 VZ |
14753 | EOF |
14754 | ||
3d63bc3a | 14755 | WCHAR_LINK=" -lw" |
4f14bcd8 GD |
14756 | |
14757 | else | |
14758 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 14759 | |
4f14bcd8 | 14760 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 |
e45387bf | 14761 | echo "configure:14762: checking for wcslen in -lmsvcrt" >&5 |
4f14bcd8 GD |
14762 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
14763 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
14764 | echo $ac_n "(cached) $ac_c" 1>&6 |
14765 | else | |
4f14bcd8 GD |
14766 | ac_save_LIBS="$LIBS" |
14767 | LIBS="-lmsvcrt $LIBS" | |
14768 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 14769 | #line 14770 "configure" |
95c8801c | 14770 | #include "confdefs.h" |
4f14bcd8 GD |
14771 | /* Override any gcc2 internal prototype to avoid an error. */ |
14772 | /* We use char because int might match the return type of a gcc2 | |
14773 | builtin and then its argument prototype would still apply. */ | |
14774 | char wcslen(); | |
95c8801c | 14775 | |
4f14bcd8 GD |
14776 | int main() { |
14777 | wcslen() | |
698dcdb6 VZ |
14778 | ; return 0; } |
14779 | EOF | |
e45387bf | 14780 | if { (eval echo configure:14781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14781 | rm -rf conftest* |
4f14bcd8 | 14782 | eval "ac_cv_lib_$ac_lib_var=yes" |
95c8801c | 14783 | else |
698dcdb6 VZ |
14784 | echo "configure: failed program was:" >&5 |
14785 | cat conftest.$ac_ext >&5 | |
14786 | rm -rf conftest* | |
4f14bcd8 | 14787 | eval "ac_cv_lib_$ac_lib_var=no" |
95c8801c | 14788 | fi |
698dcdb6 | 14789 | rm -f conftest* |
4f14bcd8 | 14790 | LIBS="$ac_save_LIBS" |
95c8801c VS |
14791 | |
14792 | fi | |
4f14bcd8 GD |
14793 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
14794 | echo "$ac_t""yes" 1>&6 | |
14795 | ||
14796 | cat >> confdefs.h <<\EOF | |
14797 | #define HAVE_WCSLEN 1 | |
14798 | EOF | |
698dcdb6 | 14799 | |
3d63bc3a | 14800 | WCHAR_LINK= |
4f14bcd8 GD |
14801 | |
14802 | else | |
14803 | echo "$ac_t""no" 1>&6 | |
14804 | fi | |
10f2d63a | 14805 | |
4f14bcd8 GD |
14806 | |
14807 | fi | |
95c8801c | 14808 | |
4f14bcd8 | 14809 | |
95c8801c | 14810 | fi |
10f2d63a | 14811 | |
1e487827 | 14812 | |
4f14bcd8 | 14813 | for ac_func in wcsrtombs |
eb4efbdc | 14814 | do |
698dcdb6 | 14815 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
e45387bf | 14816 | echo "configure:14817: checking for $ac_func" >&5 |
698dcdb6 VZ |
14817 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14818 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14819 | else | |
14820 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 14821 | #line 14822 "configure" |
eb4efbdc VZ |
14822 | #include "confdefs.h" |
14823 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 14824 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
14825 | #include <assert.h> |
14826 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14827 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14828 | builtin and then its argument prototype would still apply. */ |
14829 | char $ac_func(); | |
14830 | ||
14831 | int main() { | |
eb4efbdc VZ |
14832 | |
14833 | /* The GNU C library defines this for functions which it implements | |
14834 | to always fail with ENOSYS. Some functions are actually named | |
14835 | something starting with __ and the normal name is an alias. */ | |
14836 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14837 | choke me | |
14838 | #else | |
698dcdb6 | 14839 | $ac_func(); |
eb4efbdc VZ |
14840 | #endif |
14841 | ||
698dcdb6 | 14842 | ; return 0; } |
eb4efbdc | 14843 | EOF |
e45387bf | 14844 | if { (eval echo configure:14845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14845 | rm -rf conftest* |
14846 | eval "ac_cv_func_$ac_func=yes" | |
14847 | else | |
14848 | echo "configure: failed program was:" >&5 | |
14849 | cat conftest.$ac_ext >&5 | |
14850 | rm -rf conftest* | |
14851 | eval "ac_cv_func_$ac_func=no" | |
14852 | fi | |
14853 | rm -f conftest* | |
14854 | fi | |
eb4efbdc | 14855 | |
698dcdb6 VZ |
14856 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
14857 | echo "$ac_t""yes" 1>&6 | |
14858 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14859 | cat >> confdefs.h <<EOF | |
14860 | #define $ac_tr_func 1 | |
14861 | EOF | |
14862 | ||
14863 | else | |
14864 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
14865 | fi |
14866 | done | |
14867 | ||
698dcdb6 | 14868 | |
4f14bcd8 | 14869 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
e45387bf | 14870 | echo "configure:14871: checking for vprintf" >&5 |
4f14bcd8 | 14871 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
698dcdb6 VZ |
14872 | echo $ac_n "(cached) $ac_c" 1>&6 |
14873 | else | |
4f14bcd8 | 14874 | cat > conftest.$ac_ext <<EOF |
e45387bf | 14875 | #line 14876 "configure" |
f6bcfd97 | 14876 | #include "confdefs.h" |
4f14bcd8 GD |
14877 | /* System header to define __stub macros and hopefully few prototypes, |
14878 | which can conflict with char vprintf(); below. */ | |
14879 | #include <assert.h> | |
14880 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14881 | /* We use char because int might match the return type of a gcc2 | |
14882 | builtin and then its argument prototype would still apply. */ | |
14883 | char vprintf(); | |
14884 | ||
698dcdb6 | 14885 | int main() { |
f6bcfd97 | 14886 | |
4f14bcd8 GD |
14887 | /* The GNU C library defines this for functions which it implements |
14888 | to always fail with ENOSYS. Some functions are actually named | |
14889 | something starting with __ and the normal name is an alias. */ | |
14890 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
14891 | choke me | |
14892 | #else | |
14893 | vprintf(); | |
14894 | #endif | |
f6bcfd97 | 14895 | |
698dcdb6 VZ |
14896 | ; return 0; } |
14897 | EOF | |
e45387bf | 14898 | if { (eval echo configure:14899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14899 | rm -rf conftest* |
4f14bcd8 | 14900 | eval "ac_cv_func_vprintf=yes" |
f6bcfd97 | 14901 | else |
698dcdb6 VZ |
14902 | echo "configure: failed program was:" >&5 |
14903 | cat conftest.$ac_ext >&5 | |
14904 | rm -rf conftest* | |
4f14bcd8 | 14905 | eval "ac_cv_func_vprintf=no" |
6232543b | 14906 | fi |
698dcdb6 | 14907 | rm -f conftest* |
1e487827 | 14908 | fi |
698dcdb6 | 14909 | |
4f14bcd8 GD |
14910 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
14911 | echo "$ac_t""yes" 1>&6 | |
14912 | cat >> confdefs.h <<\EOF | |
14913 | #define HAVE_VPRINTF 1 | |
f6bcfd97 BP |
14914 | EOF |
14915 | ||
4f14bcd8 GD |
14916 | else |
14917 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
14918 | fi |
14919 | ||
4f14bcd8 GD |
14920 | if test "$ac_cv_func_vprintf" != yes; then |
14921 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
e45387bf | 14922 | echo "configure:14923: checking for _doprnt" >&5 |
4f14bcd8 | 14923 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
698dcdb6 VZ |
14924 | echo $ac_n "(cached) $ac_c" 1>&6 |
14925 | else | |
14926 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 14927 | #line 14928 "configure" |
10f2d63a VZ |
14928 | #include "confdefs.h" |
14929 | /* System header to define __stub macros and hopefully few prototypes, | |
4f14bcd8 | 14930 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
14931 | #include <assert.h> |
14932 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14933 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 14934 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 14935 | char _doprnt(); |
698dcdb6 VZ |
14936 | |
14937 | int main() { | |
10f2d63a VZ |
14938 | |
14939 | /* The GNU C library defines this for functions which it implements | |
14940 | to always fail with ENOSYS. Some functions are actually named | |
14941 | something starting with __ and the normal name is an alias. */ | |
4f14bcd8 | 14942 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
10f2d63a VZ |
14943 | choke me |
14944 | #else | |
4f14bcd8 | 14945 | _doprnt(); |
10f2d63a VZ |
14946 | #endif |
14947 | ||
698dcdb6 | 14948 | ; return 0; } |
10f2d63a | 14949 | EOF |
e45387bf | 14950 | if { (eval echo configure:14951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 14951 | rm -rf conftest* |
4f14bcd8 | 14952 | eval "ac_cv_func__doprnt=yes" |
698dcdb6 VZ |
14953 | else |
14954 | echo "configure: failed program was:" >&5 | |
14955 | cat conftest.$ac_ext >&5 | |
14956 | rm -rf conftest* | |
4f14bcd8 | 14957 | eval "ac_cv_func__doprnt=no" |
698dcdb6 VZ |
14958 | fi |
14959 | rm -f conftest* | |
14960 | fi | |
270a909e | 14961 | |
4f14bcd8 | 14962 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
698dcdb6 | 14963 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
14964 | cat >> confdefs.h <<\EOF |
14965 | #define HAVE_DOPRNT 1 | |
698dcdb6 | 14966 | EOF |
4f14bcd8 | 14967 | |
698dcdb6 VZ |
14968 | else |
14969 | echo "$ac_t""no" 1>&6 | |
270a909e | 14970 | fi |
270a909e | 14971 | |
4f14bcd8 | 14972 | fi |
1e487827 | 14973 | |
52e8b690 | 14974 | |
52e8b690 | 14975 | |
52e8b690 | 14976 | |
52e8b690 | 14977 | |
52e8b690 | 14978 | |
4f14bcd8 | 14979 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 |
e45387bf | 14980 | echo "configure:14981: checking for vsnprintf" >&5 |
4f14bcd8 | 14981 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
698dcdb6 | 14982 | echo $ac_n "(cached) $ac_c" 1>&6 |
c63c7106 | 14983 | else |
4f14bcd8 | 14984 | |
af15babd | 14985 | cat > conftest.$ac_ext <<EOF |
e45387bf | 14986 | #line 14987 "configure" |
c63c7106 | 14987 | #include "confdefs.h" |
698dcdb6 | 14988 | |
4f14bcd8 GD |
14989 | #include <stdio.h> |
14990 | #include <stdarg.h> | |
14991 | ||
af15babd VZ |
14992 | int main() { |
14993 | ||
4f14bcd8 GD |
14994 | int wx_test_vsnprintf(const char *, ...); |
14995 | ||
14996 | wx_test_vsnprintf("%s"); | |
14997 | return 0; | |
14998 | } | |
14999 | ||
15000 | int wx_test_vsnprintf(const char *fmt, ...) | |
15001 | { | |
15002 | char *s; | |
15003 | ||
15004 | va_list argp; | |
15005 | va_start(argp, fmt); | |
15006 | vsnprintf(s, 42, fmt, argp); | |
15007 | va_end(argp); | |
15008 | ||
af15babd VZ |
15009 | ; return 0; } |
15010 | EOF | |
e45387bf | 15011 | if { (eval echo configure:15012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
15012 | rm -rf conftest* |
15013 | ||
4f14bcd8 GD |
15014 | wx_cv_func_vsnprintf=yes |
15015 | ||
af15babd VZ |
15016 | else |
15017 | echo "configure: failed program was:" >&5 | |
15018 | cat conftest.$ac_ext >&5 | |
15019 | rm -rf conftest* | |
15020 | ||
4f14bcd8 | 15021 | cat > conftest.$ac_ext <<EOF |
e45387bf | 15022 | #line 15023 "configure" |
af15babd | 15023 | #include "confdefs.h" |
af15babd | 15024 | |
4f14bcd8 GD |
15025 | #include <stdio.h> |
15026 | #include <stdarg.h> | |
15027 | ||
af15babd VZ |
15028 | int main() { |
15029 | ||
4f14bcd8 GD |
15030 | int wx_test_vsnprintf(const char *, ...); |
15031 | ||
15032 | wx_test_vsnprintf("%s"); | |
15033 | return 0; | |
15034 | } | |
15035 | ||
15036 | int wx_test_vsnprintf(const char *fmt, ...) | |
15037 | { | |
15038 | char *s; | |
af15babd | 15039 | |
4f14bcd8 GD |
15040 | va_list argp; |
15041 | va_start(argp, fmt); | |
15042 | _vsnprintf(s, 42, fmt, argp); | |
15043 | va_end(argp); | |
15044 | ||
af15babd VZ |
15045 | ; return 0; } |
15046 | EOF | |
e45387bf | 15047 | if { (eval echo configure:15048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 15048 | rm -rf conftest* |
4f14bcd8 GD |
15049 | |
15050 | wx_cv_func_vsnprintf=yes | |
15051 | ||
af15babd VZ |
15052 | else |
15053 | echo "configure: failed program was:" >&5 | |
15054 | cat conftest.$ac_ext >&5 | |
15055 | rm -rf conftest* | |
4f14bcd8 GD |
15056 | |
15057 | wx_cv_func_vsnprintf=no | |
15058 | ||
af15babd VZ |
15059 | fi |
15060 | rm -f conftest* | |
4f14bcd8 | 15061 | |
af15babd | 15062 | fi |
4f14bcd8 | 15063 | rm -f conftest* |
af15babd | 15064 | |
af15babd | 15065 | fi |
af15babd | 15066 | |
4f14bcd8 | 15067 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 |
af15babd | 15068 | |
4f14bcd8 GD |
15069 | if test "$wx_cv_func_vsnprintf" = yes; then |
15070 | cat >> confdefs.h <<\EOF | |
15071 | #define HAVE_VSNPRINTF 1 | |
15072 | EOF | |
15073 | ||
15074 | else | |
f9bc1684 | 15075 | echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2 |
af15babd VZ |
15076 | fi |
15077 | ||
4f14bcd8 | 15078 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
e45387bf | 15079 | echo "configure:15080: checking for vsscanf" >&5 |
4f14bcd8 | 15080 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
af15babd VZ |
15081 | echo $ac_n "(cached) $ac_c" 1>&6 |
15082 | else | |
4f14bcd8 | 15083 | |
af15babd | 15084 | cat > conftest.$ac_ext <<EOF |
e45387bf | 15085 | #line 15086 "configure" |
af15babd | 15086 | #include "confdefs.h" |
af15babd | 15087 | |
4f14bcd8 GD |
15088 | #include <stdio.h> |
15089 | #include <stdarg.h> | |
15090 | ||
af15babd VZ |
15091 | int main() { |
15092 | ||
4f14bcd8 GD |
15093 | int wx_test_vsscanf(const char *, ...); |
15094 | ||
15095 | wx_test_vsscanf("%d"); | |
15096 | return 0; | |
15097 | } | |
af15babd | 15098 | |
4f14bcd8 GD |
15099 | int wx_test_vsscanf(const char *fmt, ...) |
15100 | { | |
15101 | va_list argp; | |
15102 | va_start(argp, fmt); | |
15103 | vsscanf("42", fmt, argp); | |
15104 | va_end(argp); | |
15105 | ||
af15babd VZ |
15106 | ; return 0; } |
15107 | EOF | |
e45387bf | 15108 | if { (eval echo configure:15109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 15109 | rm -rf conftest* |
4f14bcd8 GD |
15110 | |
15111 | wx_cv_func_vsscanf=yes | |
15112 | ||
af15babd VZ |
15113 | else |
15114 | echo "configure: failed program was:" >&5 | |
15115 | cat conftest.$ac_ext >&5 | |
15116 | rm -rf conftest* | |
4f14bcd8 GD |
15117 | |
15118 | wx_cv_func_vsscanf=no | |
15119 | ||
af15babd VZ |
15120 | fi |
15121 | rm -f conftest* | |
4f14bcd8 | 15122 | |
af15babd VZ |
15123 | fi |
15124 | ||
4f14bcd8 GD |
15125 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 |
15126 | ||
15127 | if test "$wx_cv_func_vsscanf" = yes; then | |
15128 | cat >> confdefs.h <<\EOF | |
15129 | #define HAVE_VSSCANF 1 | |
af15babd | 15130 | EOF |
4f14bcd8 | 15131 | |
af15babd | 15132 | fi |
af15babd | 15133 | |
4f14bcd8 | 15134 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 15135 | |
4f14bcd8 GD |
15136 | |
15137 | ||
15138 | ac_ext=C | |
15139 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15140 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15141 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15142 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15143 | cross_compiling=$ac_cv_prog_cxx_cross | |
15144 | ||
b040e242 VS |
15145 | |
15146 | ||
15147 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
15148 | if test "${with_libiconv_prefix+set}" = set; then | |
15149 | withval="$with_libiconv_prefix" | |
15150 | ||
15151 | for dir in `echo "$withval" | tr : ' '`; do | |
15152 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
15153 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
15154 | done | |
15155 | ||
15156 | fi | |
15157 | ||
15158 | ||
15159 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 | |
e45387bf | 15160 | echo "configure:15161: checking for iconv" >&5 |
b040e242 | 15161 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
af15babd VZ |
15162 | echo $ac_n "(cached) $ac_c" 1>&6 |
15163 | else | |
4f14bcd8 | 15164 | |
b040e242 VS |
15165 | am_cv_func_iconv="no, consider installing GNU libiconv" |
15166 | am_cv_lib_iconv=no | |
4f14bcd8 | 15167 | cat > conftest.$ac_ext <<EOF |
e45387bf | 15168 | #line 15169 "configure" |
af15babd | 15169 | #include "confdefs.h" |
b040e242 | 15170 | #include <stdlib.h> |
4f14bcd8 | 15171 | #include <iconv.h> |
af15babd | 15172 | int main() { |
b040e242 VS |
15173 | iconv_t cd = iconv_open("",""); |
15174 | iconv(cd,NULL,NULL,NULL,NULL); | |
15175 | iconv_close(cd); | |
af15babd VZ |
15176 | ; return 0; } |
15177 | EOF | |
e45387bf | 15178 | if { (eval echo configure:15179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 15179 | rm -rf conftest* |
b040e242 | 15180 | am_cv_func_iconv=yes |
af15babd VZ |
15181 | else |
15182 | echo "configure: failed program was:" >&5 | |
15183 | cat conftest.$ac_ext >&5 | |
b040e242 VS |
15184 | fi |
15185 | rm -f conftest* | |
15186 | if test "$am_cv_func_iconv" != yes; then | |
15187 | am_save_LIBS="$LIBS" | |
15188 | LIBS="$LIBS -liconv" | |
15189 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 15190 | #line 15191 "configure" |
b040e242 VS |
15191 | #include "confdefs.h" |
15192 | #include <stdlib.h> | |
15193 | #include <iconv.h> | |
15194 | int main() { | |
15195 | iconv_t cd = iconv_open("",""); | |
15196 | iconv(cd,NULL,NULL,NULL,NULL); | |
15197 | iconv_close(cd); | |
15198 | ; return 0; } | |
15199 | EOF | |
e45387bf | 15200 | if { (eval echo configure:15201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd | 15201 | rm -rf conftest* |
b040e242 VS |
15202 | am_cv_lib_iconv=yes |
15203 | am_cv_func_iconv=yes | |
15204 | else | |
15205 | echo "configure: failed program was:" >&5 | |
15206 | cat conftest.$ac_ext >&5 | |
af15babd VZ |
15207 | fi |
15208 | rm -f conftest* | |
b040e242 VS |
15209 | LIBS="$am_save_LIBS" |
15210 | fi | |
15211 | ||
15212 | fi | |
15213 | ||
15214 | echo "$ac_t""$am_cv_func_iconv" 1>&6 | |
15215 | if test "$am_cv_func_iconv" = yes; then | |
15216 | cat >> confdefs.h <<\EOF | |
15217 | #define HAVE_ICONV 1 | |
15218 | EOF | |
15219 | ||
b7043674 | 15220 | echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6 |
e45387bf | 15221 | echo "configure:15222: checking if iconv needs const" >&5 |
b7043674 | 15222 | if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then |
b040e242 VS |
15223 | echo $ac_n "(cached) $ac_c" 1>&6 |
15224 | else | |
b7043674 | 15225 | cat > conftest.$ac_ext <<EOF |
e45387bf | 15226 | #line 15227 "configure" |
b040e242 VS |
15227 | #include "confdefs.h" |
15228 | ||
15229 | #include <stdlib.h> | |
15230 | #include <iconv.h> | |
15231 | extern | |
15232 | #ifdef __cplusplus | |
15233 | "C" | |
15234 | #endif | |
15235 | #if defined(__STDC__) || defined(__cplusplus) | |
15236 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
15237 | #else | |
15238 | size_t iconv(); | |
15239 | #endif | |
b7043674 | 15240 | |
b040e242 | 15241 | int main() { |
af15babd | 15242 | |
b040e242 VS |
15243 | ; return 0; } |
15244 | EOF | |
e45387bf | 15245 | if { (eval echo configure:15246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b040e242 | 15246 | rm -rf conftest* |
b7043674 | 15247 | wx_cv_func_iconv_const="no" |
b040e242 VS |
15248 | else |
15249 | echo "configure: failed program was:" >&5 | |
15250 | cat conftest.$ac_ext >&5 | |
15251 | rm -rf conftest* | |
b7043674 VZ |
15252 | wx_cv_func_iconv_const="yes" |
15253 | ||
b040e242 VS |
15254 | fi |
15255 | rm -f conftest* | |
b7043674 | 15256 | |
af15babd | 15257 | fi |
af15babd | 15258 | |
b7043674 VZ |
15259 | echo "$ac_t""$wx_cv_func_iconv_const" 1>&6 |
15260 | ||
15261 | iconv_const= | |
1c405bb5 | 15262 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
15263 | iconv_const="const" |
15264 | fi | |
15265 | ||
b040e242 | 15266 | cat >> confdefs.h <<EOF |
b7043674 | 15267 | #define ICONV_CONST $iconv_const |
b040e242 VS |
15268 | EOF |
15269 | ||
15270 | fi | |
15271 | LIBICONV= | |
15272 | if test "$am_cv_lib_iconv" = yes; then | |
15273 | LIBICONV="-liconv" | |
15274 | fi | |
15275 | ||
15276 | ||
15277 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 GD |
15278 | ac_ext=c |
15279 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15280 | ac_cpp='$CPP $CPPFLAGS' | |
15281 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15282 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15283 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 15284 | |
af15babd | 15285 | |
4f14bcd8 GD |
15286 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
15287 | for ac_func in sigaction | |
af15babd VZ |
15288 | do |
15289 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
e45387bf | 15290 | echo "configure:15291: checking for $ac_func" >&5 |
af15babd VZ |
15291 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15292 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15293 | else | |
15294 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 15295 | #line 15296 "configure" |
af15babd VZ |
15296 | #include "confdefs.h" |
15297 | /* System header to define __stub macros and hopefully few prototypes, | |
15298 | which can conflict with char $ac_func(); below. */ | |
15299 | #include <assert.h> | |
15300 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15301 | /* We use char because int might match the return type of a gcc2 | |
15302 | builtin and then its argument prototype would still apply. */ | |
15303 | char $ac_func(); | |
15304 | ||
15305 | int main() { | |
15306 | ||
15307 | /* The GNU C library defines this for functions which it implements | |
15308 | to always fail with ENOSYS. Some functions are actually named | |
15309 | something starting with __ and the normal name is an alias. */ | |
15310 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15311 | choke me | |
15312 | #else | |
15313 | $ac_func(); | |
15314 | #endif | |
15315 | ||
15316 | ; return 0; } | |
15317 | EOF | |
e45387bf | 15318 | if { (eval echo configure:15319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
15319 | rm -rf conftest* |
15320 | eval "ac_cv_func_$ac_func=yes" | |
15321 | else | |
15322 | echo "configure: failed program was:" >&5 | |
15323 | cat conftest.$ac_ext >&5 | |
15324 | rm -rf conftest* | |
15325 | eval "ac_cv_func_$ac_func=no" | |
15326 | fi | |
15327 | rm -f conftest* | |
15328 | fi | |
15329 | ||
15330 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15331 | echo "$ac_t""yes" 1>&6 | |
15332 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15333 | cat >> confdefs.h <<EOF | |
15334 | #define $ac_tr_func 1 | |
15335 | EOF | |
4f14bcd8 | 15336 | |
af15babd VZ |
15337 | else |
15338 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
15339 | fi |
15340 | done | |
15341 | ||
15342 | ||
15343 | if test "$ac_cv_func_sigaction" = "no"; then | |
15344 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 | |
15345 | wxUSE_ON_FATAL_EXCEPTION=no | |
15346 | fi | |
15347 | ||
15348 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
15349 | ||
15350 | ac_ext=C | |
15351 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15352 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15353 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15354 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15355 | cross_compiling=$ac_cv_prog_cxx_cross | |
15356 | ||
15357 | ||
15358 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 | |
e45387bf | 15359 | echo "configure:15360: checking for sa_handler type" >&5 |
4f14bcd8 | 15360 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
af15babd VZ |
15361 | echo $ac_n "(cached) $ac_c" 1>&6 |
15362 | else | |
4f14bcd8 GD |
15363 | |
15364 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 15365 | #line 15366 "configure" |
af15babd | 15366 | #include "confdefs.h" |
4f14bcd8 | 15367 | #include <signal.h> |
af15babd | 15368 | int main() { |
4f14bcd8 GD |
15369 | |
15370 | extern void testSigHandler(int); | |
15371 | ||
15372 | struct sigaction sa; | |
15373 | sa.sa_handler = testSigHandler; | |
15374 | ||
af15babd VZ |
15375 | ; return 0; } |
15376 | EOF | |
e45387bf | 15377 | if { (eval echo configure:15378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 15378 | rm -rf conftest* |
4f14bcd8 GD |
15379 | |
15380 | wx_cv_type_sa_handler=int | |
15381 | ||
af15babd VZ |
15382 | else |
15383 | echo "configure: failed program was:" >&5 | |
15384 | cat conftest.$ac_ext >&5 | |
15385 | rm -rf conftest* | |
4f14bcd8 GD |
15386 | |
15387 | wx_cv_type_sa_handler=void | |
15388 | ||
af15babd VZ |
15389 | fi |
15390 | rm -f conftest* | |
4f14bcd8 GD |
15391 | |
15392 | fi | |
15393 | ||
15394 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
15395 | ||
15396 | ac_ext=c | |
15397 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
15398 | ac_cpp='$CPP $CPPFLAGS' | |
15399 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
15400 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15401 | cross_compiling=$ac_cv_prog_cc_cross | |
af15babd | 15402 | |
4f14bcd8 GD |
15403 | |
15404 | cat >> confdefs.h <<EOF | |
15405 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
af15babd VZ |
15406 | EOF |
15407 | ||
4f14bcd8 GD |
15408 | fi |
15409 | fi | |
af15babd | 15410 | |
4f14bcd8 | 15411 | for ac_func in vfork |
af15babd VZ |
15412 | do |
15413 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
e45387bf | 15414 | echo "configure:15415: checking for $ac_func" >&5 |
af15babd VZ |
15415 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15416 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15417 | else | |
15418 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 15419 | #line 15420 "configure" |
af15babd VZ |
15420 | #include "confdefs.h" |
15421 | /* System header to define __stub macros and hopefully few prototypes, | |
15422 | which can conflict with char $ac_func(); below. */ | |
15423 | #include <assert.h> | |
15424 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15425 | /* We use char because int might match the return type of a gcc2 | |
15426 | builtin and then its argument prototype would still apply. */ | |
15427 | char $ac_func(); | |
15428 | ||
15429 | int main() { | |
15430 | ||
15431 | /* The GNU C library defines this for functions which it implements | |
15432 | to always fail with ENOSYS. Some functions are actually named | |
15433 | something starting with __ and the normal name is an alias. */ | |
15434 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15435 | choke me | |
15436 | #else | |
15437 | $ac_func(); | |
15438 | #endif | |
15439 | ||
15440 | ; return 0; } | |
15441 | EOF | |
e45387bf | 15442 | if { (eval echo configure:15443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
15443 | rm -rf conftest* |
15444 | eval "ac_cv_func_$ac_func=yes" | |
15445 | else | |
15446 | echo "configure: failed program was:" >&5 | |
15447 | cat conftest.$ac_ext >&5 | |
15448 | rm -rf conftest* | |
15449 | eval "ac_cv_func_$ac_func=no" | |
15450 | fi | |
15451 | rm -f conftest* | |
15452 | fi | |
15453 | ||
15454 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15455 | echo "$ac_t""yes" 1>&6 | |
15456 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15457 | cat >> confdefs.h <<EOF | |
15458 | #define $ac_tr_func 1 | |
15459 | EOF | |
4f14bcd8 | 15460 | |
af15babd VZ |
15461 | else |
15462 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
15463 | fi |
15464 | done | |
15465 | ||
af15babd | 15466 | |
ade35f11 VZ |
15467 | for ac_func in mkstemp mktemp |
15468 | do | |
15469 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
e45387bf | 15470 | echo "configure:15471: checking for $ac_func" >&5 |
ade35f11 VZ |
15471 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15472 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15473 | else | |
15474 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 15475 | #line 15476 "configure" |
ade35f11 VZ |
15476 | #include "confdefs.h" |
15477 | /* System header to define __stub macros and hopefully few prototypes, | |
15478 | which can conflict with char $ac_func(); below. */ | |
15479 | #include <assert.h> | |
15480 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15481 | /* We use char because int might match the return type of a gcc2 | |
15482 | builtin and then its argument prototype would still apply. */ | |
15483 | char $ac_func(); | |
15484 | ||
15485 | int main() { | |
15486 | ||
15487 | /* The GNU C library defines this for functions which it implements | |
15488 | to always fail with ENOSYS. Some functions are actually named | |
15489 | something starting with __ and the normal name is an alias. */ | |
15490 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15491 | choke me | |
15492 | #else | |
15493 | $ac_func(); | |
15494 | #endif | |
15495 | ||
15496 | ; return 0; } | |
15497 | EOF | |
e45387bf | 15498 | if { (eval echo configure:15499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ade35f11 VZ |
15499 | rm -rf conftest* |
15500 | eval "ac_cv_func_$ac_func=yes" | |
15501 | else | |
15502 | echo "configure: failed program was:" >&5 | |
15503 | cat conftest.$ac_ext >&5 | |
15504 | rm -rf conftest* | |
15505 | eval "ac_cv_func_$ac_func=no" | |
15506 | fi | |
15507 | rm -f conftest* | |
15508 | fi | |
15509 | ||
15510 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15511 | echo "$ac_t""yes" 1>&6 | |
15512 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15513 | cat >> confdefs.h <<EOF | |
15514 | #define $ac_tr_func 1 | |
15515 | EOF | |
15516 | break | |
15517 | else | |
15518 | echo "$ac_t""no" 1>&6 | |
15519 | fi | |
15520 | done | |
15521 | ||
15522 | ||
4f14bcd8 | 15523 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
e45387bf | 15524 | echo "configure:15525: checking for statfs" >&5 |
4f14bcd8 GD |
15525 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
15526 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15527 | else | |
15528 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 15529 | #line 15530 "configure" |
4f14bcd8 GD |
15530 | #include "confdefs.h" |
15531 | ||
15532 | #if defined(__BSD__) | |
15533 | #include <sys/param.h> | |
15534 | #include <sys/mount.h> | |
15535 | #else | |
15536 | #include <sys/vfs.h> | |
15537 | #endif | |
15538 | ||
15539 | int main() { | |
15540 | ||
15541 | long l; | |
15542 | struct statfs fs; | |
15543 | statfs("/", &fs); | |
15544 | l = fs.f_bsize; | |
15545 | l += fs.f_blocks; | |
15546 | l += fs.f_bavail; | |
15547 | ||
15548 | ; return 0; } | |
15549 | EOF | |
e45387bf | 15550 | if { (eval echo configure:15551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
15551 | rm -rf conftest* |
15552 | ||
15553 | wx_cv_func_statfs=yes | |
15554 | ||
15555 | else | |
15556 | echo "configure: failed program was:" >&5 | |
15557 | cat conftest.$ac_ext >&5 | |
15558 | rm -rf conftest* | |
15559 | ||
15560 | wx_cv_func_statfs=no | |
af15babd VZ |
15561 | |
15562 | ||
15563 | fi | |
4f14bcd8 | 15564 | rm -f conftest* |
af15babd VZ |
15565 | |
15566 | fi | |
15567 | ||
4f14bcd8 GD |
15568 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 |
15569 | ||
15570 | if test "$wx_cv_func_statfs" = "yes"; then | |
15571 | cat >> confdefs.h <<\EOF | |
15572 | #define HAVE_STATFS 1 | |
15573 | EOF | |
15574 | ||
15575 | else | |
15576 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 | |
e45387bf | 15577 | echo "configure:15578: checking for statvfs" >&5 |
4f14bcd8 | 15578 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
af15babd VZ |
15579 | echo $ac_n "(cached) $ac_c" 1>&6 |
15580 | else | |
15581 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 15582 | #line 15583 "configure" |
af15babd | 15583 | #include "confdefs.h" |
af15babd | 15584 | |
4f14bcd8 GD |
15585 | #include <sys/statvfs.h> |
15586 | ||
af15babd VZ |
15587 | int main() { |
15588 | ||
4f14bcd8 GD |
15589 | long l; |
15590 | struct statvfs fs; | |
15591 | statvfs("/", &fs); | |
15592 | l = fs.f_bsize; | |
15593 | l += fs.f_blocks; | |
15594 | l += fs.f_bavail; | |
15595 | ||
af15babd VZ |
15596 | ; return 0; } |
15597 | EOF | |
e45387bf | 15598 | if { (eval echo configure:15599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
af15babd | 15599 | rm -rf conftest* |
4f14bcd8 GD |
15600 | |
15601 | wx_cv_func_statvfs=yes | |
15602 | ||
af15babd VZ |
15603 | else |
15604 | echo "configure: failed program was:" >&5 | |
15605 | cat conftest.$ac_ext >&5 | |
15606 | rm -rf conftest* | |
4f14bcd8 GD |
15607 | |
15608 | wx_cv_func_statvfs=no | |
15609 | ||
15610 | ||
af15babd VZ |
15611 | fi |
15612 | rm -f conftest* | |
4f14bcd8 | 15613 | |
af15babd VZ |
15614 | fi |
15615 | ||
4f14bcd8 | 15616 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 |
af15babd | 15617 | |
4f14bcd8 GD |
15618 | if test "$wx_cv_func_statvfs" = "yes"; then |
15619 | cat >> confdefs.h <<\EOF | |
15620 | #define HAVE_STATVFS 1 | |
15621 | EOF | |
af15babd | 15622 | |
4f14bcd8 GD |
15623 | else |
15624 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
15625 | fi | |
15626 | fi | |
af15babd | 15627 | |
4f14bcd8 GD |
15628 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
15629 | for ac_func in fcntl flock | |
af15babd VZ |
15630 | do |
15631 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
e45387bf | 15632 | echo "configure:15633: checking for $ac_func" >&5 |
af15babd VZ |
15633 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15634 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15635 | else | |
15636 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 15637 | #line 15638 "configure" |
af15babd VZ |
15638 | #include "confdefs.h" |
15639 | /* System header to define __stub macros and hopefully few prototypes, | |
15640 | which can conflict with char $ac_func(); below. */ | |
15641 | #include <assert.h> | |
15642 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd VZ |
15643 | /* We use char because int might match the return type of a gcc2 |
15644 | builtin and then its argument prototype would still apply. */ | |
15645 | char $ac_func(); | |
15646 | ||
15647 | int main() { | |
15648 | ||
15649 | /* The GNU C library defines this for functions which it implements | |
15650 | to always fail with ENOSYS. Some functions are actually named | |
15651 | something starting with __ and the normal name is an alias. */ | |
15652 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15653 | choke me | |
15654 | #else | |
15655 | $ac_func(); | |
15656 | #endif | |
15657 | ||
15658 | ; return 0; } | |
15659 | EOF | |
e45387bf | 15660 | if { (eval echo configure:15661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
15661 | rm -rf conftest* |
15662 | eval "ac_cv_func_$ac_func=yes" | |
15663 | else | |
15664 | echo "configure: failed program was:" >&5 | |
15665 | cat conftest.$ac_ext >&5 | |
15666 | rm -rf conftest* | |
15667 | eval "ac_cv_func_$ac_func=no" | |
15668 | fi | |
15669 | rm -f conftest* | |
15670 | fi | |
15671 | ||
15672 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15673 | echo "$ac_t""yes" 1>&6 | |
15674 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15675 | cat >> confdefs.h <<EOF | |
15676 | #define $ac_tr_func 1 | |
15677 | EOF | |
4f14bcd8 | 15678 | break |
af15babd VZ |
15679 | else |
15680 | echo "$ac_t""no" 1>&6 | |
15681 | fi | |
15682 | done | |
15683 | ||
15684 | ||
4f14bcd8 GD |
15685 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
15686 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 | |
15687 | wxUSE_SNGLINST_CHECKER=no | |
15688 | fi | |
15689 | fi | |
af15babd | 15690 | |
4f14bcd8 | 15691 | for ac_func in timegm |
af15babd VZ |
15692 | do |
15693 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
e45387bf | 15694 | echo "configure:15695: checking for $ac_func" >&5 |
af15babd VZ |
15695 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15696 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15697 | else | |
15698 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 15699 | #line 15700 "configure" |
af15babd VZ |
15700 | #include "confdefs.h" |
15701 | /* System header to define __stub macros and hopefully few prototypes, | |
15702 | which can conflict with char $ac_func(); below. */ | |
15703 | #include <assert.h> | |
15704 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15705 | /* We use char because int might match the return type of a gcc2 | |
15706 | builtin and then its argument prototype would still apply. */ | |
15707 | char $ac_func(); | |
15708 | ||
698dcdb6 | 15709 | int main() { |
698dcdb6 | 15710 | |
af15babd VZ |
15711 | /* The GNU C library defines this for functions which it implements |
15712 | to always fail with ENOSYS. Some functions are actually named | |
15713 | something starting with __ and the normal name is an alias. */ | |
15714 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15715 | choke me | |
15716 | #else | |
15717 | $ac_func(); | |
15718 | #endif | |
15719 | ||
698dcdb6 VZ |
15720 | ; return 0; } |
15721 | EOF | |
e45387bf | 15722 | if { (eval echo configure:15723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15723 | rm -rf conftest* |
af15babd | 15724 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
15725 | else |
15726 | echo "configure: failed program was:" >&5 | |
15727 | cat conftest.$ac_ext >&5 | |
15728 | rm -rf conftest* | |
af15babd | 15729 | eval "ac_cv_func_$ac_func=no" |
1e487827 | 15730 | fi |
9952adac | 15731 | rm -f conftest* |
af15babd | 15732 | fi |
703e0a69 | 15733 | |
af15babd VZ |
15734 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15735 | echo "$ac_t""yes" 1>&6 | |
15736 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4f14bcd8 GD |
15737 | cat >> confdefs.h <<EOF |
15738 | #define $ac_tr_func 1 | |
15739 | EOF | |
15740 | ||
15741 | else | |
15742 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
15743 | fi |
15744 | done | |
15745 | ||
15746 | ||
4f14bcd8 | 15747 | for ac_func in putenv setenv |
10f2d63a | 15748 | do |
698dcdb6 | 15749 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
e45387bf | 15750 | echo "configure:15751: checking for $ac_func" >&5 |
698dcdb6 VZ |
15751 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15752 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15753 | else | |
15754 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 15755 | #line 15756 "configure" |
af15babd VZ |
15756 | #include "confdefs.h" |
15757 | /* System header to define __stub macros and hopefully few prototypes, | |
15758 | which can conflict with char $ac_func(); below. */ | |
15759 | #include <assert.h> | |
15760 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15761 | /* We use char because int might match the return type of a gcc2 | |
15762 | builtin and then its argument prototype would still apply. */ | |
15763 | char $ac_func(); | |
15764 | ||
15765 | int main() { | |
15766 | ||
15767 | /* The GNU C library defines this for functions which it implements | |
15768 | to always fail with ENOSYS. Some functions are actually named | |
15769 | something starting with __ and the normal name is an alias. */ | |
15770 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15771 | choke me | |
15772 | #else | |
15773 | $ac_func(); | |
15774 | #endif | |
15775 | ||
15776 | ; return 0; } | |
15777 | EOF | |
e45387bf | 15778 | if { (eval echo configure:15779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
af15babd VZ |
15779 | rm -rf conftest* |
15780 | eval "ac_cv_func_$ac_func=yes" | |
15781 | else | |
15782 | echo "configure: failed program was:" >&5 | |
15783 | cat conftest.$ac_ext >&5 | |
15784 | rm -rf conftest* | |
15785 | eval "ac_cv_func_$ac_func=no" | |
15786 | fi | |
15787 | rm -f conftest* | |
15788 | fi | |
15789 | ||
15790 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15791 | echo "$ac_t""yes" 1>&6 | |
15792 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15793 | cat >> confdefs.h <<EOF | |
15794 | #define $ac_tr_func 1 | |
15795 | EOF | |
4f14bcd8 | 15796 | break |
af15babd VZ |
15797 | else |
15798 | echo "$ac_t""no" 1>&6 | |
15799 | fi | |
af15babd VZ |
15800 | done |
15801 | ||
15802 | ||
4f14bcd8 GD |
15803 | HAVE_SOME_SLEEP_FUNC=0 |
15804 | if test "$USE_BEOS" = 1; then | |
15805 | cat >> confdefs.h <<\EOF | |
15806 | #define HAVE_SLEEP 1 | |
af15babd VZ |
15807 | EOF |
15808 | ||
4f14bcd8 | 15809 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
15810 | fi |
15811 | ||
4f14bcd8 GD |
15812 | if test "$USE_DARWIN" = 1; then |
15813 | cat >> confdefs.h <<\EOF | |
15814 | #define HAVE_USLEEP 1 | |
af15babd | 15815 | EOF |
10f2d63a | 15816 | |
4f14bcd8 | 15817 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
15818 | fi |
15819 | ||
4f14bcd8 GD |
15820 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
15821 | POSIX4_LINK= | |
15822 | for ac_func in nanosleep | |
15823 | do | |
15824 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
e45387bf | 15825 | echo "configure:15826: checking for $ac_func" >&5 |
4f14bcd8 | 15826 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 15827 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 15828 | else |
4f14bcd8 | 15829 | cat > conftest.$ac_ext <<EOF |
e45387bf | 15830 | #line 15831 "configure" |
10f2d63a | 15831 | #include "confdefs.h" |
4f14bcd8 GD |
15832 | /* System header to define __stub macros and hopefully few prototypes, |
15833 | which can conflict with char $ac_func(); below. */ | |
15834 | #include <assert.h> | |
10f2d63a VZ |
15835 | /* Override any gcc2 internal prototype to avoid an error. */ |
15836 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15837 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15838 | char $ac_func(); |
698dcdb6 VZ |
15839 | |
15840 | int main() { | |
4f14bcd8 GD |
15841 | |
15842 | /* The GNU C library defines this for functions which it implements | |
15843 | to always fail with ENOSYS. Some functions are actually named | |
15844 | something starting with __ and the normal name is an alias. */ | |
15845 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15846 | choke me | |
15847 | #else | |
15848 | $ac_func(); | |
15849 | #endif | |
15850 | ||
698dcdb6 VZ |
15851 | ; return 0; } |
15852 | EOF | |
e45387bf | 15853 | if { (eval echo configure:15854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15854 | rm -rf conftest* |
4f14bcd8 | 15855 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
15856 | else |
15857 | echo "configure: failed program was:" >&5 | |
15858 | cat conftest.$ac_ext >&5 | |
15859 | rm -rf conftest* | |
4f14bcd8 | 15860 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
15861 | fi |
15862 | rm -f conftest* | |
698dcdb6 | 15863 | fi |
4f14bcd8 GD |
15864 | |
15865 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 15866 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15867 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15868 | cat >> confdefs.h <<EOF | |
15869 | #define $ac_tr_func 1 | |
15870 | EOF | |
15871 | cat >> confdefs.h <<\EOF | |
15872 | #define HAVE_NANOSLEEP 1 | |
15873 | EOF | |
15874 | ||
10f2d63a | 15875 | else |
698dcdb6 | 15876 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 15877 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 |
e45387bf | 15878 | echo "configure:15879: checking for nanosleep in -lposix4" >&5 |
4f14bcd8 | 15879 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
15880 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
15881 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15882 | else |
698dcdb6 | 15883 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 15884 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 15885 | cat > conftest.$ac_ext <<EOF |
e45387bf | 15886 | #line 15887 "configure" |
10f2d63a VZ |
15887 | #include "confdefs.h" |
15888 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15889 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 15890 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 15891 | char nanosleep(); |
698dcdb6 VZ |
15892 | |
15893 | int main() { | |
4f14bcd8 | 15894 | nanosleep() |
698dcdb6 VZ |
15895 | ; return 0; } |
15896 | EOF | |
e45387bf | 15897 | if { (eval echo configure:15898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15898 | rm -rf conftest* |
15899 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15900 | else | |
15901 | echo "configure: failed program was:" >&5 | |
15902 | cat conftest.$ac_ext >&5 | |
15903 | rm -rf conftest* | |
15904 | eval "ac_cv_lib_$ac_lib_var=no" | |
15905 | fi | |
15906 | rm -f conftest* | |
15907 | LIBS="$ac_save_LIBS" | |
10f2d63a | 15908 | |
698dcdb6 VZ |
15909 | fi |
15910 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15911 | echo "$ac_t""yes" 1>&6 | |
15912 | ||
4f14bcd8 GD |
15913 | cat >> confdefs.h <<\EOF |
15914 | #define HAVE_NANOSLEEP 1 | |
15915 | EOF | |
15916 | ||
3d63bc3a | 15917 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 15918 | |
10f2d63a | 15919 | else |
698dcdb6 | 15920 | echo "$ac_t""no" 1>&6 |
10f2d63a | 15921 | |
4f14bcd8 GD |
15922 | for ac_func in usleep |
15923 | do | |
15924 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
e45387bf | 15925 | echo "configure:15926: checking for $ac_func" >&5 |
4f14bcd8 | 15926 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 15927 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 15928 | else |
698dcdb6 | 15929 | cat > conftest.$ac_ext <<EOF |
e45387bf | 15930 | #line 15931 "configure" |
10f2d63a | 15931 | #include "confdefs.h" |
4f14bcd8 GD |
15932 | /* System header to define __stub macros and hopefully few prototypes, |
15933 | which can conflict with char $ac_func(); below. */ | |
15934 | #include <assert.h> | |
15935 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15936 | /* We use char because int might match the return type of a gcc2 | |
15937 | builtin and then its argument prototype would still apply. */ | |
15938 | char $ac_func(); | |
15939 | ||
15940 | int main() { | |
15941 | ||
15942 | /* The GNU C library defines this for functions which it implements | |
15943 | to always fail with ENOSYS. Some functions are actually named | |
15944 | something starting with __ and the normal name is an alias. */ | |
15945 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15946 | choke me | |
15947 | #else | |
15948 | $ac_func(); | |
15949 | #endif | |
15950 | ||
15951 | ; return 0; } | |
698dcdb6 | 15952 | EOF |
e45387bf | 15953 | if { (eval echo configure:15954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 15954 | rm -rf conftest* |
4f14bcd8 | 15955 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 15956 | else |
698dcdb6 | 15957 | echo "configure: failed program was:" >&5 |
10f2d63a | 15958 | cat conftest.$ac_ext >&5 |
698dcdb6 | 15959 | rm -rf conftest* |
4f14bcd8 | 15960 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 15961 | fi |
698dcdb6 | 15962 | rm -f conftest* |
10f2d63a | 15963 | fi |
4f14bcd8 GD |
15964 | |
15965 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 15966 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
15967 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
15968 | cat >> confdefs.h <<EOF | |
15969 | #define $ac_tr_func 1 | |
15970 | EOF | |
15971 | cat >> confdefs.h <<\EOF | |
15972 | #define HAVE_USLEEP 1 | |
15973 | EOF | |
15974 | ||
698dcdb6 VZ |
15975 | else |
15976 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
15977 | echo "configure: warning: wxSleep() function will not work" 1>&2 |
15978 | ||
10f2d63a | 15979 | fi |
4f14bcd8 | 15980 | done |
10f2d63a | 15981 | |
4f14bcd8 | 15982 | |
698dcdb6 | 15983 | |
6232543b | 15984 | fi |
10f2d63a | 15985 | |
698dcdb6 | 15986 | |
4f14bcd8 | 15987 | |
1e487827 | 15988 | fi |
4f14bcd8 | 15989 | done |
703e0a69 | 15990 | |
10f2d63a VZ |
15991 | fi |
15992 | ||
4f14bcd8 | 15993 | for ac_func in uname gethostname |
70846f0a | 15994 | do |
698dcdb6 | 15995 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
e45387bf | 15996 | echo "configure:15997: checking for $ac_func" >&5 |
698dcdb6 VZ |
15997 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15998 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15999 | else | |
16000 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 16001 | #line 16002 "configure" |
70846f0a VZ |
16002 | #include "confdefs.h" |
16003 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16004 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
16005 | #include <assert.h> |
16006 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16007 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16008 | builtin and then its argument prototype would still apply. */ |
16009 | char $ac_func(); | |
16010 | ||
16011 | int main() { | |
70846f0a VZ |
16012 | |
16013 | /* The GNU C library defines this for functions which it implements | |
16014 | to always fail with ENOSYS. Some functions are actually named | |
16015 | something starting with __ and the normal name is an alias. */ | |
16016 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16017 | choke me | |
16018 | #else | |
698dcdb6 | 16019 | $ac_func(); |
70846f0a VZ |
16020 | #endif |
16021 | ||
698dcdb6 | 16022 | ; return 0; } |
70846f0a | 16023 | EOF |
e45387bf | 16024 | if { (eval echo configure:16025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16025 | rm -rf conftest* |
16026 | eval "ac_cv_func_$ac_func=yes" | |
16027 | else | |
16028 | echo "configure: failed program was:" >&5 | |
16029 | cat conftest.$ac_ext >&5 | |
16030 | rm -rf conftest* | |
16031 | eval "ac_cv_func_$ac_func=no" | |
16032 | fi | |
16033 | rm -f conftest* | |
16034 | fi | |
70846f0a | 16035 | |
698dcdb6 VZ |
16036 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16037 | echo "$ac_t""yes" 1>&6 | |
16038 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16039 | cat >> confdefs.h <<EOF | |
16040 | #define $ac_tr_func 1 | |
16041 | EOF | |
4f14bcd8 | 16042 | break |
698dcdb6 VZ |
16043 | else |
16044 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
16045 | fi |
16046 | done | |
16047 | ||
698dcdb6 | 16048 | |
4f14bcd8 GD |
16049 | |
16050 | ac_ext=C | |
16051 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16052 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16053 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16054 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16055 | cross_compiling=$ac_cv_prog_cxx_cross | |
16056 | ||
16057 | ||
16058 | for ac_func in strtok_r | |
10f2d63a | 16059 | do |
4f14bcd8 | 16060 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
e45387bf | 16061 | echo "configure:16062: checking for $ac_func" >&5 |
4f14bcd8 | 16062 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
16063 | echo $ac_n "(cached) $ac_c" 1>&6 |
16064 | else | |
16065 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 16066 | #line 16067 "configure" |
10f2d63a | 16067 | #include "confdefs.h" |
4f14bcd8 GD |
16068 | /* System header to define __stub macros and hopefully few prototypes, |
16069 | which can conflict with char $ac_func(); below. */ | |
16070 | #include <assert.h> | |
16071 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16072 | #ifdef __cplusplus | |
16073 | extern "C" | |
16074 | #endif | |
16075 | /* We use char because int might match the return type of a gcc2 | |
16076 | builtin and then its argument prototype would still apply. */ | |
16077 | char $ac_func(); | |
16078 | ||
16079 | int main() { | |
16080 | ||
16081 | /* The GNU C library defines this for functions which it implements | |
16082 | to always fail with ENOSYS. Some functions are actually named | |
16083 | something starting with __ and the normal name is an alias. */ | |
16084 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16085 | choke me | |
16086 | #else | |
16087 | $ac_func(); | |
16088 | #endif | |
16089 | ||
16090 | ; return 0; } | |
698dcdb6 | 16091 | EOF |
e45387bf | 16092 | if { (eval echo configure:16093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16093 | rm -rf conftest* |
4f14bcd8 | 16094 | eval "ac_cv_func_$ac_func=yes" |
1e487827 | 16095 | else |
698dcdb6 | 16096 | echo "configure: failed program was:" >&5 |
10f2d63a | 16097 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16098 | rm -rf conftest* |
4f14bcd8 | 16099 | eval "ac_cv_func_$ac_func=no" |
10f2d63a | 16100 | fi |
698dcdb6 | 16101 | rm -f conftest* |
10f2d63a | 16102 | fi |
4f14bcd8 GD |
16103 | |
16104 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16105 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 16106 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
698dcdb6 | 16107 | cat >> confdefs.h <<EOF |
4f14bcd8 | 16108 | #define $ac_tr_func 1 |
10f2d63a | 16109 | EOF |
698dcdb6 VZ |
16110 | |
16111 | else | |
16112 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16113 | fi |
16114 | done | |
16115 | ||
698dcdb6 | 16116 | |
4f14bcd8 GD |
16117 | ac_ext=c |
16118 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16119 | ac_cpp='$CPP $CPPFLAGS' | |
16120 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16121 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16122 | cross_compiling=$ac_cv_prog_cc_cross | |
16123 | ||
16124 | ||
16125 | INET_LINK= | |
16126 | for ac_func in inet_addr | |
16127 | do | |
16128 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
e45387bf | 16129 | echo "configure:16130: checking for $ac_func" >&5 |
4f14bcd8 | 16130 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 | 16131 | echo $ac_n "(cached) $ac_c" 1>&6 |
10f2d63a | 16132 | else |
4f14bcd8 | 16133 | cat > conftest.$ac_ext <<EOF |
e45387bf | 16134 | #line 16135 "configure" |
10f2d63a | 16135 | #include "confdefs.h" |
4f14bcd8 GD |
16136 | /* System header to define __stub macros and hopefully few prototypes, |
16137 | which can conflict with char $ac_func(); below. */ | |
16138 | #include <assert.h> | |
10f2d63a VZ |
16139 | /* Override any gcc2 internal prototype to avoid an error. */ |
16140 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16141 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16142 | char $ac_func(); |
698dcdb6 VZ |
16143 | |
16144 | int main() { | |
4f14bcd8 GD |
16145 | |
16146 | /* The GNU C library defines this for functions which it implements | |
16147 | to always fail with ENOSYS. Some functions are actually named | |
16148 | something starting with __ and the normal name is an alias. */ | |
16149 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16150 | choke me | |
16151 | #else | |
16152 | $ac_func(); | |
16153 | #endif | |
16154 | ||
698dcdb6 VZ |
16155 | ; return 0; } |
16156 | EOF | |
e45387bf | 16157 | if { (eval echo configure:16158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16158 | rm -rf conftest* |
4f14bcd8 | 16159 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16160 | else |
16161 | echo "configure: failed program was:" >&5 | |
16162 | cat conftest.$ac_ext >&5 | |
16163 | rm -rf conftest* | |
4f14bcd8 | 16164 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
16165 | fi |
16166 | rm -f conftest* | |
698dcdb6 | 16167 | fi |
4f14bcd8 GD |
16168 | |
16169 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16170 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16171 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16172 | cat >> confdefs.h <<EOF | |
16173 | #define $ac_tr_func 1 | |
16174 | EOF | |
16175 | cat >> confdefs.h <<\EOF | |
16176 | #define HAVE_INET_ADDR 1 | |
10f2d63a VZ |
16177 | EOF |
16178 | ||
16179 | else | |
698dcdb6 | 16180 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16181 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 |
e45387bf | 16182 | echo "configure:16183: checking for inet_addr in -lnsl" >&5 |
4f14bcd8 | 16183 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16184 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16185 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16186 | else |
698dcdb6 | 16187 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16188 | LIBS="-lnsl $LIBS" |
698dcdb6 | 16189 | cat > conftest.$ac_ext <<EOF |
e45387bf | 16190 | #line 16191 "configure" |
10f2d63a VZ |
16191 | #include "confdefs.h" |
16192 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16193 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16194 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16195 | char inet_addr(); |
698dcdb6 VZ |
16196 | |
16197 | int main() { | |
4f14bcd8 | 16198 | inet_addr() |
698dcdb6 VZ |
16199 | ; return 0; } |
16200 | EOF | |
e45387bf | 16201 | if { (eval echo configure:16202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16202 | rm -rf conftest* |
16203 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16204 | else | |
16205 | echo "configure: failed program was:" >&5 | |
16206 | cat conftest.$ac_ext >&5 | |
16207 | rm -rf conftest* | |
16208 | eval "ac_cv_lib_$ac_lib_var=no" | |
16209 | fi | |
16210 | rm -f conftest* | |
16211 | LIBS="$ac_save_LIBS" | |
16212 | ||
16213 | fi | |
16214 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16215 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 16216 | INET_LINK="nsl" |
10f2d63a | 16217 | else |
698dcdb6 | 16218 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16219 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 |
e45387bf | 16220 | echo "configure:16221: checking for inet_addr in -lresolv" >&5 |
4f14bcd8 | 16221 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16222 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16223 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16224 | else |
698dcdb6 | 16225 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16226 | LIBS="-lresolv $LIBS" |
698dcdb6 | 16227 | cat > conftest.$ac_ext <<EOF |
e45387bf | 16228 | #line 16229 "configure" |
10f2d63a VZ |
16229 | #include "confdefs.h" |
16230 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16231 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16232 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16233 | char inet_addr(); |
698dcdb6 VZ |
16234 | |
16235 | int main() { | |
4f14bcd8 | 16236 | inet_addr() |
698dcdb6 VZ |
16237 | ; return 0; } |
16238 | EOF | |
e45387bf | 16239 | if { (eval echo configure:16240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16240 | rm -rf conftest* |
16241 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16242 | else | |
16243 | echo "configure: failed program was:" >&5 | |
16244 | cat conftest.$ac_ext >&5 | |
16245 | rm -rf conftest* | |
16246 | eval "ac_cv_lib_$ac_lib_var=no" | |
16247 | fi | |
16248 | rm -f conftest* | |
16249 | LIBS="$ac_save_LIBS" | |
16250 | ||
16251 | fi | |
16252 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16253 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
16254 | INET_LINK="resolv" |
16255 | ||
698dcdb6 | 16256 | else |
4f14bcd8 GD |
16257 | echo "$ac_t""no" 1>&6 |
16258 | fi | |
698dcdb6 | 16259 | |
4f14bcd8 | 16260 | |
698dcdb6 | 16261 | fi |
4f14bcd8 GD |
16262 | |
16263 | ||
698dcdb6 VZ |
16264 | |
16265 | fi | |
4f14bcd8 GD |
16266 | done |
16267 | ||
16268 | ||
16269 | for ac_func in inet_aton | |
16270 | do | |
16271 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
e45387bf | 16272 | echo "configure:16273: checking for $ac_func" >&5 |
4f14bcd8 | 16273 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
16274 | echo $ac_n "(cached) $ac_c" 1>&6 |
16275 | else | |
4f14bcd8 | 16276 | cat > conftest.$ac_ext <<EOF |
e45387bf | 16277 | #line 16278 "configure" |
f6bcfd97 | 16278 | #include "confdefs.h" |
4f14bcd8 GD |
16279 | /* System header to define __stub macros and hopefully few prototypes, |
16280 | which can conflict with char $ac_func(); below. */ | |
16281 | #include <assert.h> | |
f6bcfd97 BP |
16282 | /* Override any gcc2 internal prototype to avoid an error. */ |
16283 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16284 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16285 | char $ac_func(); |
698dcdb6 VZ |
16286 | |
16287 | int main() { | |
4f14bcd8 GD |
16288 | |
16289 | /* The GNU C library defines this for functions which it implements | |
16290 | to always fail with ENOSYS. Some functions are actually named | |
16291 | something starting with __ and the normal name is an alias. */ | |
16292 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16293 | choke me | |
16294 | #else | |
16295 | $ac_func(); | |
16296 | #endif | |
16297 | ||
698dcdb6 VZ |
16298 | ; return 0; } |
16299 | EOF | |
e45387bf | 16300 | if { (eval echo configure:16301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16301 | rm -rf conftest* |
4f14bcd8 | 16302 | eval "ac_cv_func_$ac_func=yes" |
698dcdb6 VZ |
16303 | else |
16304 | echo "configure: failed program was:" >&5 | |
16305 | cat conftest.$ac_ext >&5 | |
16306 | rm -rf conftest* | |
4f14bcd8 | 16307 | eval "ac_cv_func_$ac_func=no" |
698dcdb6 VZ |
16308 | fi |
16309 | rm -f conftest* | |
698dcdb6 | 16310 | fi |
4f14bcd8 GD |
16311 | |
16312 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
698dcdb6 | 16313 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16314 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
16315 | cat >> confdefs.h <<EOF | |
16316 | #define $ac_tr_func 1 | |
16317 | EOF | |
16318 | cat >> confdefs.h <<\EOF | |
16319 | #define HAVE_INET_ATON 1 | |
16320 | EOF | |
16321 | ||
10f2d63a | 16322 | else |
698dcdb6 | 16323 | echo "$ac_t""no" 1>&6 |
4f14bcd8 | 16324 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 |
e45387bf | 16325 | echo "configure:16326: checking for inet_aton in -l$INET_LINK" >&5 |
4f14bcd8 | 16326 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16327 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16328 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 16329 | else |
698dcdb6 | 16330 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16331 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 16332 | cat > conftest.$ac_ext <<EOF |
e45387bf | 16333 | #line 16334 "configure" |
10f2d63a | 16334 | #include "confdefs.h" |
6232543b | 16335 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 16336 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 | 16337 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16338 | char inet_aton(); |
698dcdb6 VZ |
16339 | |
16340 | int main() { | |
4f14bcd8 | 16341 | inet_aton() |
698dcdb6 VZ |
16342 | ; return 0; } |
16343 | EOF | |
e45387bf | 16344 | if { (eval echo configure:16345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16345 | rm -rf conftest* |
16346 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16347 | else | |
16348 | echo "configure: failed program was:" >&5 | |
16349 | cat conftest.$ac_ext >&5 | |
16350 | rm -rf conftest* | |
16351 | eval "ac_cv_lib_$ac_lib_var=no" | |
16352 | fi | |
16353 | rm -f conftest* | |
16354 | LIBS="$ac_save_LIBS" | |
10f2d63a | 16355 | |
698dcdb6 VZ |
16356 | fi |
16357 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16358 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
16359 | cat >> confdefs.h <<\EOF |
16360 | #define HAVE_INET_ATON 1 | |
16361 | EOF | |
16362 | ||
698dcdb6 VZ |
16363 | else |
16364 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16365 | fi |
16366 | ||
4f14bcd8 | 16367 | |
10f2d63a | 16368 | fi |
4f14bcd8 | 16369 | done |
10f2d63a | 16370 | |
4f14bcd8 GD |
16371 | |
16372 | if test "x$INET_LINK" != "x"; then | |
16373 | cat >> confdefs.h <<\EOF | |
16374 | #define HAVE_INET_ADDR 1 | |
16375 | EOF | |
16376 | ||
3d63bc3a | 16377 | INET_LINK=" -l$INET_LINK" |
6232543b | 16378 | fi |
10f2d63a | 16379 | |
1e487827 | 16380 | fi |
703e0a69 | 16381 | |
698dcdb6 | 16382 | |
4f14bcd8 GD |
16383 | cat > confcache <<\EOF |
16384 | # This file is a shell script that caches the results of configure | |
16385 | # tests run on this system so they can be shared between configure | |
16386 | # scripts and configure runs. It is not useful on other systems. | |
16387 | # If it contains results you don't want to keep, you may remove or edit it. | |
16388 | # | |
16389 | # By default, configure uses ./config.cache as the cache file, | |
16390 | # creating it if it does not exist already. You can give configure | |
16391 | # the --cache-file=FILE option to use a different cache file; that is | |
16392 | # what configure does when it calls configure scripts in | |
16393 | # subdirectories, so they share the cache. | |
16394 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
16395 | # config.status only pays attention to the cache file if you give it the | |
16396 | # --recheck option to rerun configure. | |
16397 | # | |
f6bcfd97 | 16398 | EOF |
4f14bcd8 GD |
16399 | # The following way of writing the cache mishandles newlines in values, |
16400 | # but we know of no workaround that is simple, portable, and efficient. | |
16401 | # So, don't put newlines in cache variables' values. | |
16402 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
16403 | # and sets the high bit in the cache file unless we assign to the vars. | |
16404 | (set) 2>&1 | | |
16405 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
16406 | *ac_space=\ *) | |
16407 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
16408 | # turns \\\\ into \\, and sed turns \\ into \). | |
16409 | sed -n \ | |
16410 | -e "s/'/'\\\\''/g" \ | |
16411 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
16412 | ;; | |
16413 | *) | |
16414 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
16415 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
16416 | ;; | |
16417 | esac >> confcache | |
16418 | if cmp -s $cache_file confcache; then | |
16419 | : | |
16420 | else | |
16421 | if test -w $cache_file; then | |
16422 | echo "updating cache $cache_file" | |
16423 | cat confcache > $cache_file | |
f6bcfd97 | 16424 | else |
4f14bcd8 | 16425 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 16426 | fi |
4f14bcd8 GD |
16427 | fi |
16428 | rm -f confcache | |
f6bcfd97 | 16429 | |
4f14bcd8 GD |
16430 | |
16431 | ||
16432 | if test "$TOOLKIT" != "MSW"; then | |
16433 | ||
7274f1c7 RL |
16434 | |
16435 | THREADS_LINK= | |
16436 | THREADS_OBJ= | |
16437 | CODE_GEN_FLAGS= | |
16438 | CODE_GEN_FLAGS_CXX= | |
16439 | ||
16440 | if test "$wxUSE_THREADS" = "yes" ; then | |
16441 | if test "$wxUSE_WINE" = 1 ; then | |
156b2523 | 16442 | echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2 |
7274f1c7 RL |
16443 | wxUSE_THREADS="no" |
16444 | elif test "$USE_BEOS" = 1; then | |
156b2523 | 16445 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 |
7274f1c7 RL |
16446 | wxUSE_THREADS="no" |
16447 | fi | |
4f14bcd8 | 16448 | fi |
4f14bcd8 | 16449 | |
7274f1c7 RL |
16450 | if test "$wxUSE_THREADS" = "yes" ; then |
16451 | ||
16452 | if test "$USE_AIX" = 1; then | |
16453 | THREADS_LIB=pthreads | |
16454 | else | |
16455 | THREADS_LIB=pthread | |
16456 | fi | |
4f14bcd8 | 16457 | |
7274f1c7 | 16458 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 |
e45387bf | 16459 | echo "configure:16460: checking for pthread_create in -l$THREADS_LIB" >&5 |
4f14bcd8 | 16460 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16461 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16462 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16463 | else |
698dcdb6 | 16464 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16465 | LIBS="-l$THREADS_LIB $LIBS" |
698dcdb6 | 16466 | cat > conftest.$ac_ext <<EOF |
e45387bf | 16467 | #line 16468 "configure" |
10f2d63a VZ |
16468 | #include "confdefs.h" |
16469 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16470 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16471 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16472 | char pthread_create(); |
698dcdb6 VZ |
16473 | |
16474 | int main() { | |
4f14bcd8 | 16475 | pthread_create() |
698dcdb6 VZ |
16476 | ; return 0; } |
16477 | EOF | |
e45387bf | 16478 | if { (eval echo configure:16479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16479 | rm -rf conftest* |
16480 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16481 | else | |
16482 | echo "configure: failed program was:" >&5 | |
16483 | cat conftest.$ac_ext >&5 | |
16484 | rm -rf conftest* | |
16485 | eval "ac_cv_lib_$ac_lib_var=no" | |
16486 | fi | |
16487 | rm -f conftest* | |
16488 | LIBS="$ac_save_LIBS" | |
16489 | ||
16490 | fi | |
16491 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16492 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 16493 | |
7274f1c7 RL |
16494 | THREADS_OBJ="threadpsx.lo" |
16495 | THREADS_LINK=$THREADS_LIB | |
16496 | ||
10f2d63a | 16497 | else |
698dcdb6 | 16498 | echo "$ac_t""no" 1>&6 |
10f2d63a | 16499 | |
7274f1c7 | 16500 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
e45387bf | 16501 | echo "configure:16502: checking for pthread_create in -lc_r" >&5 |
4f14bcd8 GD |
16502 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
16503 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
16504 | echo $ac_n "(cached) $ac_c" 1>&6 |
16505 | else | |
4f14bcd8 GD |
16506 | ac_save_LIBS="$LIBS" |
16507 | LIBS="-lc_r $LIBS" | |
16508 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 16509 | #line 16510 "configure" |
10f2d63a | 16510 | #include "confdefs.h" |
4f14bcd8 GD |
16511 | /* Override any gcc2 internal prototype to avoid an error. */ |
16512 | /* We use char because int might match the return type of a gcc2 | |
16513 | builtin and then its argument prototype would still apply. */ | |
16514 | char pthread_create(); | |
10f2d63a | 16515 | |
4f14bcd8 GD |
16516 | int main() { |
16517 | pthread_create() | |
698dcdb6 VZ |
16518 | ; return 0; } |
16519 | EOF | |
e45387bf | 16520 | if { (eval echo configure:16521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16521 | rm -rf conftest* |
4f14bcd8 | 16522 | eval "ac_cv_lib_$ac_lib_var=yes" |
10f2d63a | 16523 | else |
698dcdb6 VZ |
16524 | echo "configure: failed program was:" >&5 |
16525 | cat conftest.$ac_ext >&5 | |
16526 | rm -rf conftest* | |
4f14bcd8 | 16527 | eval "ac_cv_lib_$ac_lib_var=no" |
6232543b | 16528 | fi |
698dcdb6 | 16529 | rm -f conftest* |
4f14bcd8 | 16530 | LIBS="$ac_save_LIBS" |
d9b9876f | 16531 | |
4f14bcd8 GD |
16532 | fi |
16533 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16534 | echo "$ac_t""yes" 1>&6 | |
16535 | ||
7274f1c7 RL |
16536 | THREADS_OBJ="threadpsx.lo" |
16537 | THREADS_LINK="c_r" | |
16538 | ||
4f14bcd8 GD |
16539 | else |
16540 | echo "$ac_t""no" 1>&6 | |
ab252f7b | 16541 | |
7274f1c7 | 16542 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` |
4f14bcd8 | 16543 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 |
e45387bf | 16544 | echo "configure:16545: checking for sys/prctl.h" >&5 |
4f14bcd8 | 16545 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
698dcdb6 | 16546 | echo $ac_n "(cached) $ac_c" 1>&6 |
d9b9876f | 16547 | else |
4f14bcd8 | 16548 | cat > conftest.$ac_ext <<EOF |
e45387bf | 16549 | #line 16550 "configure" |
d9b9876f | 16550 | #include "confdefs.h" |
4f14bcd8 | 16551 | #include <sys/prctl.h> |
698dcdb6 | 16552 | EOF |
4f14bcd8 | 16553 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
e45387bf | 16554 | { (eval echo configure:16555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
16555 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16556 | if test -z "$ac_err"; then | |
698dcdb6 | 16557 | rm -rf conftest* |
4f14bcd8 | 16558 | eval "ac_cv_header_$ac_safe=yes" |
d9b9876f | 16559 | else |
4f14bcd8 | 16560 | echo "$ac_err" >&5 |
698dcdb6 VZ |
16561 | echo "configure: failed program was:" >&5 |
16562 | cat conftest.$ac_ext >&5 | |
16563 | rm -rf conftest* | |
4f14bcd8 | 16564 | eval "ac_cv_header_$ac_safe=no" |
6232543b | 16565 | fi |
698dcdb6 | 16566 | rm -f conftest* |
4f14bcd8 GD |
16567 | fi |
16568 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
16569 | echo "$ac_t""yes" 1>&6 | |
698dcdb6 | 16570 | |
7274f1c7 RL |
16571 | THREADS_OBJ="threadsgi.lo" |
16572 | ||
4f14bcd8 GD |
16573 | else |
16574 | echo "$ac_t""no" 1>&6 | |
1e487827 | 16575 | fi |
698dcdb6 | 16576 | |
7274f1c7 | 16577 | |
4f14bcd8 | 16578 | fi |
d9b9876f | 16579 | |
7274f1c7 | 16580 | |
4f14bcd8 | 16581 | fi |
d9b9876f | 16582 | |
4f14bcd8 | 16583 | |
7274f1c7 RL |
16584 | if test -z "$THREADS_OBJ" ; then |
16585 | wxUSE_THREADS=no | |
156b2523 | 16586 | echo "configure: warning: No thread support on this system... disabled" 1>&2 |
7274f1c7 | 16587 | fi |
4f14bcd8 | 16588 | fi |
4f14bcd8 | 16589 | |
7274f1c7 RL |
16590 | if test "$wxUSE_THREADS" = "yes" ; then |
16591 | for ac_func in thr_setconcurrency | |
4f14bcd8 GD |
16592 | do |
16593 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
e45387bf | 16594 | echo "configure:16595: checking for $ac_func" >&5 |
4f14bcd8 | 16595 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
698dcdb6 VZ |
16596 | echo $ac_n "(cached) $ac_c" 1>&6 |
16597 | else | |
4f14bcd8 | 16598 | cat > conftest.$ac_ext <<EOF |
e45387bf | 16599 | #line 16600 "configure" |
d9b9876f | 16600 | #include "confdefs.h" |
4f14bcd8 GD |
16601 | /* System header to define __stub macros and hopefully few prototypes, |
16602 | which can conflict with char $ac_func(); below. */ | |
16603 | #include <assert.h> | |
16604 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16605 | /* We use char because int might match the return type of a gcc2 | |
16606 | builtin and then its argument prototype would still apply. */ | |
16607 | char $ac_func(); | |
16608 | ||
698dcdb6 | 16609 | int main() { |
d9b9876f | 16610 | |
4f14bcd8 GD |
16611 | /* The GNU C library defines this for functions which it implements |
16612 | to always fail with ENOSYS. Some functions are actually named | |
16613 | something starting with __ and the normal name is an alias. */ | |
16614 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16615 | choke me | |
16616 | #else | |
16617 | $ac_func(); | |
16618 | #endif | |
16619 | ||
698dcdb6 VZ |
16620 | ; return 0; } |
16621 | EOF | |
e45387bf | 16622 | if { (eval echo configure:16623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16623 | rm -rf conftest* |
4f14bcd8 | 16624 | eval "ac_cv_func_$ac_func=yes" |
d9b9876f | 16625 | else |
698dcdb6 VZ |
16626 | echo "configure: failed program was:" >&5 |
16627 | cat conftest.$ac_ext >&5 | |
16628 | rm -rf conftest* | |
4f14bcd8 | 16629 | eval "ac_cv_func_$ac_func=no" |
6232543b | 16630 | fi |
698dcdb6 | 16631 | rm -f conftest* |
1e487827 | 16632 | fi |
698dcdb6 | 16633 | |
4f14bcd8 GD |
16634 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16635 | echo "$ac_t""yes" 1>&6 | |
16636 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16637 | cat >> confdefs.h <<EOF | |
16638 | #define $ac_tr_func 1 | |
d9b9876f | 16639 | EOF |
4f14bcd8 GD |
16640 | |
16641 | else | |
16642 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 16643 | fi |
4f14bcd8 | 16644 | done |
10f2d63a | 16645 | |
10f2d63a | 16646 | |
7274f1c7 RL |
16647 | |
16648 | for ac_hdr in sched.h | |
4f14bcd8 GD |
16649 | do |
16650 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
16651 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
e45387bf | 16652 | echo "configure:16653: checking for $ac_hdr" >&5 |
4f14bcd8 GD |
16653 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
16654 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16655 | else |
4f14bcd8 | 16656 | cat > conftest.$ac_ext <<EOF |
e45387bf | 16657 | #line 16658 "configure" |
4f14bcd8 GD |
16658 | #include "confdefs.h" |
16659 | #include <$ac_hdr> | |
13111b2a | 16660 | EOF |
4f14bcd8 | 16661 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
e45387bf | 16662 | { (eval echo configure:16663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4f14bcd8 GD |
16663 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16664 | if test -z "$ac_err"; then | |
16665 | rm -rf conftest* | |
16666 | eval "ac_cv_header_$ac_safe=yes" | |
16667 | else | |
16668 | echo "$ac_err" >&5 | |
16669 | echo "configure: failed program was:" >&5 | |
16670 | cat conftest.$ac_ext >&5 | |
16671 | rm -rf conftest* | |
16672 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 16673 | fi |
4f14bcd8 | 16674 | rm -f conftest* |
10f2d63a | 16675 | fi |
4f14bcd8 GD |
16676 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
16677 | echo "$ac_t""yes" 1>&6 | |
16678 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
698dcdb6 | 16679 | cat >> confdefs.h <<EOF |
4f14bcd8 | 16680 | #define $ac_tr_hdr 1 |
f6bcfd97 | 16681 | EOF |
4f14bcd8 GD |
16682 | |
16683 | else | |
16684 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 16685 | fi |
4f14bcd8 | 16686 | done |
f6bcfd97 | 16687 | |
10f2d63a | 16688 | |
7274f1c7 | 16689 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 |
e45387bf | 16690 | echo "configure:16691: checking for sched_yield in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
16691 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
16692 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16693 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16694 | else | |
16695 | ac_save_LIBS="$LIBS" | |
16696 | LIBS="-l$THREADS_LINK $LIBS" | |
16697 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 16698 | #line 16699 "configure" |
4f14bcd8 GD |
16699 | #include "confdefs.h" |
16700 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16701 | /* We use char because int might match the return type of a gcc2 | |
16702 | builtin and then its argument prototype would still apply. */ | |
16703 | char sched_yield(); | |
10f2d63a | 16704 | |
4f14bcd8 GD |
16705 | int main() { |
16706 | sched_yield() | |
16707 | ; return 0; } | |
10f2d63a | 16708 | EOF |
e45387bf | 16709 | if { (eval echo configure:16710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
16710 | rm -rf conftest* |
16711 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 16712 | else |
4f14bcd8 GD |
16713 | echo "configure: failed program was:" >&5 |
16714 | cat conftest.$ac_ext >&5 | |
16715 | rm -rf conftest* | |
16716 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 16717 | fi |
4f14bcd8 GD |
16718 | rm -f conftest* |
16719 | LIBS="$ac_save_LIBS" | |
10f2d63a | 16720 | |
4f14bcd8 GD |
16721 | fi |
16722 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16723 | echo "$ac_t""yes" 1>&6 | |
16724 | cat >> confdefs.h <<\EOF | |
16725 | #define HAVE_SCHED_YIELD 1 | |
10f2d63a VZ |
16726 | EOF |
16727 | ||
4f14bcd8 GD |
16728 | else |
16729 | echo "$ac_t""no" 1>&6 | |
16730 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
e45387bf | 16731 | echo "configure:16732: checking for sched_yield in -lposix4" >&5 |
4f14bcd8 GD |
16732 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
16733 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16734 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16735 | else | |
16736 | ac_save_LIBS="$LIBS" | |
16737 | LIBS="-lposix4 $LIBS" | |
16738 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 16739 | #line 16740 "configure" |
4f14bcd8 GD |
16740 | #include "confdefs.h" |
16741 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16742 | /* We use char because int might match the return type of a gcc2 | |
16743 | builtin and then its argument prototype would still apply. */ | |
16744 | char sched_yield(); | |
47c13eb7 | 16745 | |
4f14bcd8 GD |
16746 | int main() { |
16747 | sched_yield() | |
16748 | ; return 0; } | |
10f2d63a | 16749 | EOF |
e45387bf | 16750 | if { (eval echo configure:16751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4f14bcd8 GD |
16751 | rm -rf conftest* |
16752 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 16753 | else |
4f14bcd8 GD |
16754 | echo "configure: failed program was:" >&5 |
16755 | cat conftest.$ac_ext >&5 | |
16756 | rm -rf conftest* | |
16757 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 16758 | fi |
4f14bcd8 GD |
16759 | rm -f conftest* |
16760 | LIBS="$ac_save_LIBS" | |
10f2d63a | 16761 | |
54276ccf | 16762 | fi |
4f14bcd8 GD |
16763 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
16764 | echo "$ac_t""yes" 1>&6 | |
16765 | cat >> confdefs.h <<\EOF | |
16766 | #define HAVE_SCHED_YIELD 1 | |
54276ccf | 16767 | EOF |
3d63bc3a | 16768 | POSIX4_LINK=" -lposix4" |
4f14bcd8 GD |
16769 | else |
16770 | echo "$ac_t""no" 1>&6 | |
16771 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
7274f1c7 | 16772 | |
54276ccf VZ |
16773 | fi |
16774 | ||
7274f1c7 | 16775 | |
4f14bcd8 | 16776 | fi |
698dcdb6 | 16777 | |
10f2d63a | 16778 | |
7274f1c7 RL |
16779 | HAVE_PRIOR_FUNCS=0 |
16780 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 | |
e45387bf | 16781 | echo "configure:16782: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
16782 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
16783 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
16784 | echo $ac_n "(cached) $ac_c" 1>&6 |
16785 | else | |
4f14bcd8 GD |
16786 | ac_save_LIBS="$LIBS" |
16787 | LIBS="-l$THREADS_LINK $LIBS" | |
16788 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 16789 | #line 16790 "configure" |
422107f9 | 16790 | #include "confdefs.h" |
4f14bcd8 GD |
16791 | /* Override any gcc2 internal prototype to avoid an error. */ |
16792 | /* We use char because int might match the return type of a gcc2 | |
16793 | builtin and then its argument prototype would still apply. */ | |
16794 | char pthread_attr_getschedpolicy(); | |
16795 | ||
16796 | int main() { | |
16797 | pthread_attr_getschedpolicy() | |
16798 | ; return 0; } | |
698dcdb6 | 16799 | EOF |
e45387bf | 16800 | if { (eval echo configure:16801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16801 | rm -rf conftest* |
4f14bcd8 | 16802 | eval "ac_cv_lib_$ac_lib_var=yes" |
422107f9 | 16803 | else |
698dcdb6 | 16804 | echo "configure: failed program was:" >&5 |
422107f9 | 16805 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16806 | rm -rf conftest* |
4f14bcd8 | 16807 | eval "ac_cv_lib_$ac_lib_var=no" |
422107f9 | 16808 | fi |
698dcdb6 | 16809 | rm -f conftest* |
4f14bcd8 GD |
16810 | LIBS="$ac_save_LIBS" |
16811 | ||
422107f9 | 16812 | fi |
4f14bcd8 | 16813 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
698dcdb6 | 16814 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 16815 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 |
e45387bf | 16816 | echo "configure:16817: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 |
4f14bcd8 | 16817 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16818 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16819 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 16820 | else |
698dcdb6 | 16821 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16822 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 16823 | cat > conftest.$ac_ext <<EOF |
e45387bf | 16824 | #line 16825 "configure" |
422107f9 VZ |
16825 | #include "confdefs.h" |
16826 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16827 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16828 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16829 | char pthread_attr_setschedparam(); |
698dcdb6 VZ |
16830 | |
16831 | int main() { | |
4f14bcd8 | 16832 | pthread_attr_setschedparam() |
698dcdb6 VZ |
16833 | ; return 0; } |
16834 | EOF | |
e45387bf | 16835 | if { (eval echo configure:16836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16836 | rm -rf conftest* |
16837 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16838 | else | |
16839 | echo "configure: failed program was:" >&5 | |
16840 | cat conftest.$ac_ext >&5 | |
16841 | rm -rf conftest* | |
16842 | eval "ac_cv_lib_$ac_lib_var=no" | |
16843 | fi | |
16844 | rm -f conftest* | |
16845 | LIBS="$ac_save_LIBS" | |
16846 | ||
16847 | fi | |
16848 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16849 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 16850 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 |
e45387bf | 16851 | echo "configure:16852: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 |
4f14bcd8 GD |
16852 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
16853 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
698dcdb6 VZ |
16854 | echo $ac_n "(cached) $ac_c" 1>&6 |
16855 | else | |
4f14bcd8 GD |
16856 | ac_save_LIBS="$LIBS" |
16857 | LIBS="-l$THREADS_LINK $LIBS" | |
16858 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 16859 | #line 16860 "configure" |
422107f9 | 16860 | #include "confdefs.h" |
4f14bcd8 GD |
16861 | /* Override any gcc2 internal prototype to avoid an error. */ |
16862 | /* We use char because int might match the return type of a gcc2 | |
16863 | builtin and then its argument prototype would still apply. */ | |
16864 | char sched_get_priority_max(); | |
16865 | ||
16866 | int main() { | |
16867 | sched_get_priority_max() | |
16868 | ; return 0; } | |
698dcdb6 | 16869 | EOF |
e45387bf | 16870 | if { (eval echo configure:16871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 16871 | rm -rf conftest* |
4f14bcd8 | 16872 | eval "ac_cv_lib_$ac_lib_var=yes" |
422107f9 | 16873 | else |
698dcdb6 | 16874 | echo "configure: failed program was:" >&5 |
422107f9 | 16875 | cat conftest.$ac_ext >&5 |
698dcdb6 | 16876 | rm -rf conftest* |
4f14bcd8 | 16877 | eval "ac_cv_lib_$ac_lib_var=no" |
422107f9 | 16878 | fi |
698dcdb6 | 16879 | rm -f conftest* |
4f14bcd8 GD |
16880 | LIBS="$ac_save_LIBS" |
16881 | ||
422107f9 | 16882 | fi |
4f14bcd8 | 16883 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
698dcdb6 | 16884 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 GD |
16885 | HAVE_PRIOR_FUNCS=1 |
16886 | else | |
16887 | echo "$ac_t""no" 1>&6 | |
16888 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
e45387bf | 16889 | echo "configure:16890: checking for sched_get_priority_max in -lposix4" >&5 |
4f14bcd8 | 16890 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16891 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16892 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 16893 | else |
698dcdb6 | 16894 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16895 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 16896 | cat > conftest.$ac_ext <<EOF |
e45387bf | 16897 | #line 16898 "configure" |
422107f9 VZ |
16898 | #include "confdefs.h" |
16899 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16900 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16901 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16902 | char sched_get_priority_max(); |
698dcdb6 VZ |
16903 | |
16904 | int main() { | |
4f14bcd8 | 16905 | sched_get_priority_max() |
698dcdb6 VZ |
16906 | ; return 0; } |
16907 | EOF | |
e45387bf | 16908 | if { (eval echo configure:16909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16909 | rm -rf conftest* |
16910 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16911 | else | |
16912 | echo "configure: failed program was:" >&5 | |
16913 | cat conftest.$ac_ext >&5 | |
16914 | rm -rf conftest* | |
16915 | eval "ac_cv_lib_$ac_lib_var=no" | |
16916 | fi | |
16917 | rm -f conftest* | |
16918 | LIBS="$ac_save_LIBS" | |
16919 | ||
16920 | fi | |
16921 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16922 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 16923 | |
7274f1c7 RL |
16924 | HAVE_PRIOR_FUNCS=1 |
16925 | POSIX4_LINK=" -lposix4" | |
16926 | ||
698dcdb6 VZ |
16927 | else |
16928 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
16929 | fi |
16930 | ||
7274f1c7 | 16931 | |
422107f9 VZ |
16932 | fi |
16933 | ||
7274f1c7 | 16934 | |
4f14bcd8 GD |
16935 | else |
16936 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16937 | fi |
16938 | ||
7274f1c7 | 16939 | |
698dcdb6 | 16940 | else |
4f14bcd8 GD |
16941 | echo "$ac_t""no" 1>&6 |
16942 | fi | |
463abc64 | 16943 | |
463abc64 | 16944 | |
7274f1c7 RL |
16945 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
16946 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 16947 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
698dcdb6 | 16948 | EOF |
463abc64 | 16949 | |
7274f1c7 RL |
16950 | else |
16951 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
16952 | fi | |
463abc64 | 16953 | |
7274f1c7 | 16954 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 |
e45387bf | 16955 | echo "configure:16956: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
4f14bcd8 | 16956 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
698dcdb6 VZ |
16957 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
16958 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 16959 | else |
698dcdb6 | 16960 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16961 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 16962 | cat > conftest.$ac_ext <<EOF |
e45387bf | 16963 | #line 16964 "configure" |
422107f9 VZ |
16964 | #include "confdefs.h" |
16965 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16966 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 | 16967 | builtin and then its argument prototype would still apply. */ |
4f14bcd8 | 16968 | char pthread_cancel(); |
698dcdb6 VZ |
16969 | |
16970 | int main() { | |
4f14bcd8 | 16971 | pthread_cancel() |
698dcdb6 VZ |
16972 | ; return 0; } |
16973 | EOF | |
e45387bf | 16974 | if { (eval echo configure:16975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16975 | rm -rf conftest* |
16976 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16977 | else | |
16978 | echo "configure: failed program was:" >&5 | |
16979 | cat conftest.$ac_ext >&5 | |
16980 | rm -rf conftest* | |
16981 | eval "ac_cv_lib_$ac_lib_var=no" | |
16982 | fi | |
16983 | rm -f conftest* | |
16984 | LIBS="$ac_save_LIBS" | |
16985 | ||
16986 | fi | |
16987 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16988 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
16989 | cat >> confdefs.h <<\EOF |
16990 | #define HAVE_PTHREAD_CANCEL 1 | |
16991 | EOF | |
16992 | ||
698dcdb6 VZ |
16993 | else |
16994 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 16995 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 |
422107f9 VZ |
16996 | fi |
16997 | ||
422107f9 | 16998 | |
7274f1c7 | 16999 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
e45387bf | 17000 | echo "configure:17001: checking for pthread_cleanup_push/pop" >&5 |
4f14bcd8 GD |
17001 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
17002 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17003 | else | |
17004 | ||
7274f1c7 | 17005 | cat > conftest.$ac_ext <<EOF |
e45387bf | 17006 | #line 17007 "configure" |
4f14bcd8 GD |
17007 | #include "confdefs.h" |
17008 | #include <pthread.h> | |
17009 | int main() { | |
17010 | ||
7274f1c7 RL |
17011 | pthread_cleanup_push(NULL, NULL); |
17012 | pthread_cleanup_pop(0); | |
17013 | ||
4f14bcd8 GD |
17014 | ; return 0; } |
17015 | EOF | |
e45387bf | 17016 | if { (eval echo configure:17017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4f14bcd8 GD |
17017 | rm -rf conftest* |
17018 | ||
7274f1c7 RL |
17019 | wx_cv_func_pthread_cleanup_push=yes |
17020 | ||
4f14bcd8 GD |
17021 | else |
17022 | echo "configure: failed program was:" >&5 | |
17023 | cat conftest.$ac_ext >&5 | |
17024 | rm -rf conftest* | |
17025 | ||
7274f1c7 RL |
17026 | wx_cv_func_pthread_cleanup_push=no |
17027 | ||
4f14bcd8 GD |
17028 | fi |
17029 | rm -f conftest* | |
7274f1c7 | 17030 | |
10f2d63a VZ |
17031 | fi |
17032 | ||
4f14bcd8 GD |
17033 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 |
17034 | ||
7274f1c7 RL |
17035 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
17036 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17037 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
c7a2bf27 RR |
17038 | EOF |
17039 | ||
7274f1c7 | 17040 | fi |
4f14bcd8 | 17041 | |
7274f1c7 RL |
17042 | |
17043 | if test "x$wx_lib_glibc21" = "xyes"; then | |
17044 | CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" | |
17045 | fi | |
4f14bcd8 | 17046 | |
7274f1c7 | 17047 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 |
e45387bf | 17048 | echo "configure:17049: checking for pthread_mutexattr_t" >&5 |
4f14bcd8 | 17049 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
698dcdb6 VZ |
17050 | echo $ac_n "(cached) $ac_c" 1>&6 |
17051 | else | |
4f14bcd8 | 17052 | |
7274f1c7 | 17053 | cat > conftest.$ac_ext <<EOF |
e45387bf | 17054 | #line 17055 "configure" |
0dcf9893 | 17055 | #include "confdefs.h" |
4f14bcd8 GD |
17056 | #include <pthread.h> |
17057 | int main() { | |
17058 | ||
7274f1c7 RL |
17059 | pthread_mutexattr_t attr; |
17060 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
17061 | ||
4f14bcd8 | 17062 | ; return 0; } |
698dcdb6 | 17063 | EOF |
e45387bf | 17064 | if { (eval echo configure:17065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17065 | rm -rf conftest* |
4f14bcd8 | 17066 | |
7274f1c7 RL |
17067 | wx_cv_type_pthread_mutexattr_t=yes |
17068 | ||
3fed1840 | 17069 | else |
698dcdb6 | 17070 | echo "configure: failed program was:" >&5 |
3fed1840 | 17071 | cat conftest.$ac_ext >&5 |
698dcdb6 | 17072 | rm -rf conftest* |
4f14bcd8 | 17073 | |
7274f1c7 RL |
17074 | wx_cv_type_pthread_mutexattr_t=no |
17075 | ||
4f14bcd8 | 17076 | |
3fed1840 | 17077 | fi |
698dcdb6 | 17078 | rm -f conftest* |
7274f1c7 | 17079 | |
3fed1840 | 17080 | fi |
4f14bcd8 GD |
17081 | |
17082 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
17083 | ||
7274f1c7 RL |
17084 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
17085 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
17086 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
17087 | EOF | |
17088 | ||
7274f1c7 RL |
17089 | else |
17090 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 | |
e45387bf | 17091 | echo "configure:17092: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
4f14bcd8 | 17092 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
698dcdb6 | 17093 | echo $ac_n "(cached) $ac_c" 1>&6 |
3fed1840 | 17094 | else |
4f14bcd8 | 17095 | |
7274f1c7 | 17096 | cat > conftest.$ac_ext <<EOF |
e45387bf | 17097 | #line 17098 "configure" |
3fed1840 | 17098 | #include "confdefs.h" |
4f14bcd8 | 17099 | #include <pthread.h> |
698dcdb6 | 17100 | int main() { |
4f14bcd8 | 17101 | |
7274f1c7 RL |
17102 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
17103 | ||
698dcdb6 VZ |
17104 | ; return 0; } |
17105 | EOF | |
e45387bf | 17106 | if { (eval echo configure:17107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17107 | rm -rf conftest* |
4f14bcd8 | 17108 | |
7274f1c7 RL |
17109 | wx_cv_type_pthread_rec_mutex_init=yes |
17110 | ||
698dcdb6 VZ |
17111 | else |
17112 | echo "configure: failed program was:" >&5 | |
17113 | cat conftest.$ac_ext >&5 | |
17114 | rm -rf conftest* | |
4f14bcd8 | 17115 | |
7274f1c7 RL |
17116 | wx_cv_type_pthread_rec_mutex_init=no |
17117 | ||
4f14bcd8 | 17118 | |
698dcdb6 VZ |
17119 | fi |
17120 | rm -f conftest* | |
7274f1c7 | 17121 | |
3fed1840 RR |
17122 | fi |
17123 | ||
4f14bcd8 | 17124 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 |
7274f1c7 RL |
17125 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
17126 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
17127 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
17128 | EOF | |
3fed1840 | 17129 | |
7274f1c7 RL |
17130 | else |
17131 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 | |
17132 | fi | |
17133 | fi | |
4f14bcd8 | 17134 | |
7274f1c7 | 17135 | THREADS_LINK=" -l$THREADS_LINK" |
4f14bcd8 | 17136 | |
7274f1c7 RL |
17137 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then |
17138 | CPPFLAGS="$CFLAGS -mt" | |
17139 | CXXFLAGS="$CXXFLAGS -mt" | |
17140 | LDFLAGS="$LDFLAGS -mt" | |
17141 | fi | |
17142 | fi | |
3fed1840 | 17143 | |
4f14bcd8 GD |
17144 | fi |
17145 | ||
17146 | if test "$wxUSE_THREADS" = "yes"; then | |
3a922bb4 | 17147 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17148 | #define wxUSE_THREADS 1 |
7b6058cd GD |
17149 | EOF |
17150 | ||
4f14bcd8 | 17151 | |
3f345b47 | 17152 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $CPP_MT_FLAG" |
4f14bcd8 GD |
17153 | |
17154 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
698dcdb6 | 17155 | else |
4f14bcd8 GD |
17156 | if test "$ac_cv_func_strtok_r" = "yes"; then |
17157 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 | |
e45387bf | 17158 | echo "configure:17159: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
17159 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
17160 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
17161 | echo "$ac_t""yes" 1>&6 | |
17162 | else | |
17163 | echo "$ac_t""no" 1>&6 | |
17164 | fi | |
17165 | fi | |
17166 | fi | |
17167 | ||
17168 | if test "$WXGTK20" = 1 ; then | |
17169 | cat >> confdefs.h <<EOF | |
17170 | #define __WXGTK20__ $WXGTK20 | |
698dcdb6 | 17171 | EOF |
4f14bcd8 GD |
17172 | |
17173 | WXGTK12=1 | |
10f2d63a | 17174 | fi |
4f14bcd8 GD |
17175 | |
17176 | if test "$WXGTK12" = 1 ; then | |
17177 | cat >> confdefs.h <<EOF | |
17178 | #define __WXGTK12__ $WXGTK12 | |
17179 | EOF | |
17180 | ||
10f2d63a | 17181 | fi |
698dcdb6 | 17182 | |
4f14bcd8 GD |
17183 | if test "$WXGTK127" = 1 ; then |
17184 | cat >> confdefs.h <<EOF | |
17185 | #define __WXGTK127__ $WXGTK127 | |
698dcdb6 | 17186 | EOF |
4f14bcd8 | 17187 | |
698dcdb6 | 17188 | fi |
10f2d63a | 17189 | |
4f14bcd8 GD |
17190 | WXDEBUG= |
17191 | ||
17192 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
17193 | WXDEBUG="-g" | |
17194 | wxUSE_OPTIMISE=no | |
698dcdb6 | 17195 | fi |
4f14bcd8 GD |
17196 | |
17197 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
17198 | wxUSE_DEBUG_INFO=yes | |
17199 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
17200 | fi |
17201 | ||
4f14bcd8 GD |
17202 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
17203 | cat >> confdefs.h <<\EOF | |
17204 | #define WXDEBUG 1 | |
17205 | EOF | |
17206 | ||
17207 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 17208 | else |
4f14bcd8 GD |
17209 | if test "$wxUSE_GTK" = 1 ; then |
17210 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
17211 | fi | |
17212 | fi | |
17213 | ||
17214 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
17215 | cat >> confdefs.h <<\EOF | |
17216 | #define wxUSE_MEMORY_TRACING 1 | |
17217 | EOF | |
17218 | ||
17219 | cat >> confdefs.h <<\EOF | |
17220 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
17221 | EOF | |
17222 | ||
17223 | cat >> confdefs.h <<\EOF | |
17224 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
17225 | EOF | |
17226 | ||
17227 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
17228 | fi | |
17229 | ||
17230 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 17231 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
17232 | fi |
17233 | ||
17234 | PROFILE= | |
17235 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 17236 | PROFILE=" -pg" |
10f2d63a VZ |
17237 | fi |
17238 | ||
88e30f2b | 17239 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
17240 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
17241 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 17242 | fi |
4f14bcd8 GD |
17243 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
17244 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
17245 | fi | |
17246 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
17247 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
17248 | fi | |
4f14bcd8 GD |
17249 | if test "$USE_WIN32" = 1 ; then |
17250 | # I'm not even really sure what this was ever added to solve, | |
17251 | # but someone added it for mingw native builds, so I guess | |
17252 | # they had a reason, right?? | |
17253 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
17254 | fi | |
17255 | fi | |
17256 | ||
17257 | ||
17258 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
17259 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
17260 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
17261 | OPTIMISE= | |
17262 | else | |
17263 | if test "$GCC" = yes ; then | |
17264 | OPTIMISE="-O2" | |
17265 | case "${host}" in | |
17266 | i586-*-*|i686-*-* ) | |
17267 | OPTIMISE="${OPTIMISE} " | |
17268 | ;; | |
17269 | esac | |
17270 | else | |
17271 | OPTIMISE="-O" | |
17272 | fi | |
17273 | fi | |
17274 | ||
17275 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
17276 | cat >> confdefs.h <<\EOF | |
17277 | #define WXWIN_COMPATIBILITY_2 1 | |
17278 | EOF | |
17279 | ||
17280 | ||
17281 | WXWIN_COMPATIBILITY_2_2="yes" | |
17282 | fi | |
17283 | ||
17284 | if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then | |
17285 | cat >> confdefs.h <<\EOF | |
17286 | #define WXWIN_COMPATIBILITY_2_2 1 | |
17287 | EOF | |
17288 | ||
10f2d63a VZ |
17289 | fi |
17290 | ||
698dcdb6 | 17291 | |
10f2d63a | 17292 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 17293 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17294 | #define wxUSE_GUI 1 |
17295 | EOF | |
17296 | ||
698dcdb6 | 17297 | |
10f2d63a | 17298 | else |
698dcdb6 | 17299 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17300 | #define wxUSE_NOGUI 1 |
17301 | EOF | |
17302 | ||
17303 | fi | |
17304 | ||
698dcdb6 | 17305 | |
10f2d63a | 17306 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 17307 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17308 | #define wxUSE_UNIX 1 |
17309 | EOF | |
17310 | ||
17311 | fi | |
17312 | ||
698dcdb6 | 17313 | |
10f2d63a | 17314 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 17315 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17316 | #define wxUSE_APPLE_IEEE 1 |
17317 | EOF | |
17318 | ||
17319 | fi | |
17320 | ||
1e6feb95 VZ |
17321 | if test "$wxUSE_TIMER" = "yes"; then |
17322 | cat >> confdefs.h <<\EOF | |
17323 | #define wxUSE_TIMER 1 | |
17324 | EOF | |
17325 | ||
17326 | fi | |
17327 | ||
10f2d63a | 17328 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 17329 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17330 | #define wxUSE_WAVE 1 |
17331 | EOF | |
17332 | ||
17333 | fi | |
17334 | ||
1e6feb95 VZ |
17335 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
17336 | cat >> confdefs.h <<\EOF | |
17337 | #define wxUSE_CMDLINE_PARSER 1 | |
17338 | EOF | |
17339 | ||
17340 | fi | |
17341 | ||
17342 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
17343 | cat >> confdefs.h <<\EOF | |
17344 | #define wxUSE_STOPWATCH 1 | |
17345 | EOF | |
17346 | ||
17347 | fi | |
17348 | ||
17349 | if test "$wxUSE_DATETIME" = "yes"; then | |
17350 | cat >> confdefs.h <<\EOF | |
17351 | #define wxUSE_DATETIME 1 | |
17352 | EOF | |
17353 | ||
17354 | fi | |
17355 | ||
17356 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
17357 | cat >> confdefs.h <<\EOF | |
17358 | #define wxUSE_TIMEDATE 1 | |
17359 | EOF | |
17360 | ||
17361 | fi | |
17362 | ||
10f2d63a | 17363 | if test "$wxUSE_FILE" = "yes"; then |
698dcdb6 | 17364 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17365 | #define wxUSE_FILE 1 |
17366 | EOF | |
17367 | ||
17368 | fi | |
17369 | ||
1e6feb95 VZ |
17370 | if test "$wxUSE_FFILE" = "yes"; then |
17371 | cat >> confdefs.h <<\EOF | |
17372 | #define wxUSE_FFILE 1 | |
17373 | EOF | |
17374 | ||
17375 | fi | |
17376 | ||
24528b0c | 17377 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 17378 | cat >> confdefs.h <<\EOF |
24528b0c VS |
17379 | #define wxUSE_FILESYSTEM 1 |
17380 | EOF | |
17381 | ||
17382 | fi | |
17383 | ||
10f2d63a | 17384 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 17385 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17386 | #define wxUSE_FS_INET 1 |
17387 | EOF | |
17388 | ||
17389 | fi | |
17390 | ||
17391 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 17392 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17393 | #define wxUSE_FS_ZIP 1 |
17394 | EOF | |
17395 | ||
17396 | fi | |
17397 | ||
17398 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 17399 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17400 | #define wxUSE_ZIPSTREAM 1 |
17401 | EOF | |
17402 | ||
17403 | fi | |
17404 | ||
eb4efbdc | 17405 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 17406 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
17407 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
17408 | EOF | |
17409 | ||
17410 | fi | |
17411 | ||
4f3c5f06 | 17412 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 17413 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
17414 | #define wxUSE_SNGLINST_CHECKER 1 |
17415 | EOF | |
17416 | ||
17417 | fi | |
17418 | ||
10f2d63a | 17419 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 17420 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17421 | #define wxUSE_BUSYINFO 1 |
17422 | EOF | |
17423 | ||
17424 | fi | |
17425 | ||
17426 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 17427 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17428 | #define wxUSE_STD_IOSTREAM 1 |
17429 | EOF | |
17430 | ||
17431 | fi | |
17432 | ||
a3a584a7 VZ |
17433 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
17434 | cat >> confdefs.h <<\EOF | |
17435 | #define wxUSE_TEXTBUFFER 1 | |
17436 | EOF | |
17437 | ||
17438 | fi | |
17439 | ||
10f2d63a | 17440 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 17441 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
156b2523 | 17442 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 |
10f2d63a | 17443 | else |
698dcdb6 | 17444 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17445 | #define wxUSE_TEXTFILE 1 |
17446 | EOF | |
17447 | ||
17448 | fi | |
17449 | fi | |
17450 | ||
17451 | if test "$wxUSE_CONFIG" = "yes" ; then | |
17452 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
156b2523 | 17453 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 |
10f2d63a | 17454 | else |
698dcdb6 | 17455 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17456 | #define wxUSE_CONFIG 1 |
17457 | EOF | |
17458 | ||
17459 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
17460 | fi | |
17461 | fi | |
17462 | ||
17463 | if test "$wxUSE_INTL" = "yes" ; then | |
17464 | if test "$wxUSE_FILE" != "yes"; then | |
156b2523 | 17465 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 |
10f2d63a | 17466 | else |
698dcdb6 | 17467 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17468 | #define wxUSE_INTL 1 |
17469 | EOF | |
17470 | ||
17471 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 17472 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
17473 | fi |
17474 | fi | |
17475 | ||
17476 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 17477 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17478 | #define wxUSE_LOG 1 |
17479 | EOF | |
17480 | ||
d73be714 VZ |
17481 | |
17482 | if test "$wxUSE_LOGGUI" = "yes"; then | |
17483 | cat >> confdefs.h <<\EOF | |
17484 | #define wxUSE_LOGGUI 1 | |
17485 | EOF | |
17486 | ||
17487 | fi | |
17488 | ||
17489 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
17490 | cat >> confdefs.h <<\EOF | |
17491 | #define wxUSE_LOGWINDOW 1 | |
69d27ff7 MB |
17492 | EOF |
17493 | ||
17494 | fi | |
17495 | ||
17496 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
17497 | cat >> confdefs.h <<\EOF | |
17498 | #define wxUSE_LOG_DIALOG 1 | |
d73be714 VZ |
17499 | EOF |
17500 | ||
17501 | fi | |
10f2d63a VZ |
17502 | fi |
17503 | ||
17504 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 17505 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17506 | #define wxUSE_LONGLONG 1 |
17507 | EOF | |
17508 | ||
17509 | fi | |
17510 | ||
e8f65ba6 | 17511 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 17512 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
17513 | #define wxUSE_GEOMETRY 1 |
17514 | EOF | |
17515 | ||
17516 | fi | |
17517 | ||
10f2d63a | 17518 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 17519 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17520 | #define wxUSE_DIALUP_MANAGER 1 |
17521 | EOF | |
17522 | ||
70f7a477 | 17523 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
17524 | fi |
17525 | ||
17526 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 17527 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17528 | #define wxUSE_STREAMS 1 |
17529 | EOF | |
17530 | ||
17531 | fi | |
17532 | ||
1e487827 | 17533 | |
1e6feb95 | 17534 | if test "$wxUSE_DATETIME" = "yes"; then |
698dcdb6 | 17535 | for ac_func in strptime |
83307f33 | 17536 | do |
698dcdb6 | 17537 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
e45387bf | 17538 | echo "configure:17539: checking for $ac_func" >&5 |
698dcdb6 VZ |
17539 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17540 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17541 | else | |
17542 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 17543 | #line 17544 "configure" |
83307f33 VZ |
17544 | #include "confdefs.h" |
17545 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 17546 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
17547 | #include <assert.h> |
17548 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17549 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17550 | builtin and then its argument prototype would still apply. */ |
17551 | char $ac_func(); | |
17552 | ||
17553 | int main() { | |
83307f33 VZ |
17554 | |
17555 | /* The GNU C library defines this for functions which it implements | |
17556 | to always fail with ENOSYS. Some functions are actually named | |
17557 | something starting with __ and the normal name is an alias. */ | |
17558 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17559 | choke me | |
17560 | #else | |
698dcdb6 | 17561 | $ac_func(); |
83307f33 VZ |
17562 | #endif |
17563 | ||
698dcdb6 | 17564 | ; return 0; } |
83307f33 | 17565 | EOF |
e45387bf | 17566 | if { (eval echo configure:17567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17567 | rm -rf conftest* |
17568 | eval "ac_cv_func_$ac_func=yes" | |
17569 | else | |
17570 | echo "configure: failed program was:" >&5 | |
17571 | cat conftest.$ac_ext >&5 | |
17572 | rm -rf conftest* | |
17573 | eval "ac_cv_func_$ac_func=no" | |
17574 | fi | |
17575 | rm -f conftest* | |
17576 | fi | |
83307f33 | 17577 | |
698dcdb6 VZ |
17578 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17579 | echo "$ac_t""yes" 1>&6 | |
17580 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17581 | cat >> confdefs.h <<EOF | |
17582 | #define $ac_tr_func 1 | |
17583 | EOF | |
17584 | ||
17585 | else | |
17586 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
17587 | fi |
17588 | done | |
17589 | ||
1e487827 | 17590 | |
698dcdb6 | 17591 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
e45387bf | 17592 | echo "configure:17593: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
17593 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
17594 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17595 | else | |
17596 | ||
17597 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 17598 | #line 17599 "configure" |
360d6699 VZ |
17599 | #include "confdefs.h" |
17600 | ||
b4085ce6 | 17601 | #include <time.h> |
698dcdb6 VZ |
17602 | |
17603 | int main() { | |
360d6699 VZ |
17604 | |
17605 | int tz; | |
4f11a343 | 17606 | tz = timezone; |
698dcdb6 VZ |
17607 | |
17608 | ; return 0; } | |
17609 | EOF | |
e45387bf | 17610 | if { (eval echo configure:17611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
17611 | rm -rf conftest* |
17612 | ||
4f11a343 | 17613 | wx_cv_var_timezone=timezone |
698dcdb6 | 17614 | |
360d6699 | 17615 | else |
698dcdb6 VZ |
17616 | echo "configure: failed program was:" >&5 |
17617 | cat conftest.$ac_ext >&5 | |
17618 | rm -rf conftest* | |
17619 | ||
17620 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 17621 | #line 17622 "configure" |
360d6699 VZ |
17622 | #include "confdefs.h" |
17623 | ||
b4085ce6 | 17624 | #include <time.h> |
698dcdb6 VZ |
17625 | |
17626 | int main() { | |
360d6699 VZ |
17627 | |
17628 | int tz; | |
17629 | tz = _timezone; | |
698dcdb6 VZ |
17630 | |
17631 | ; return 0; } | |
17632 | EOF | |
e45387bf | 17633 | if { (eval echo configure:17634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
17634 | rm -rf conftest* |
17635 | ||
360d6699 | 17636 | wx_cv_var_timezone=_timezone |
698dcdb6 | 17637 | |
5357c8e8 | 17638 | else |
698dcdb6 VZ |
17639 | echo "configure: failed program was:" >&5 |
17640 | cat conftest.$ac_ext >&5 | |
17641 | rm -rf conftest* | |
17642 | ||
17643 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 17644 | #line 17645 "configure" |
5357c8e8 VZ |
17645 | #include "confdefs.h" |
17646 | ||
b4085ce6 | 17647 | #include <time.h> |
698dcdb6 VZ |
17648 | |
17649 | int main() { | |
5357c8e8 VZ |
17650 | |
17651 | int tz; | |
4f11a343 | 17652 | tz = __timezone; |
698dcdb6 VZ |
17653 | |
17654 | ; return 0; } | |
17655 | EOF | |
e45387bf | 17656 | if { (eval echo configure:17657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
17657 | rm -rf conftest* |
17658 | ||
4f11a343 | 17659 | wx_cv_var_timezone=__timezone |
698dcdb6 | 17660 | |
360d6699 | 17661 | else |
698dcdb6 VZ |
17662 | echo "configure: failed program was:" >&5 |
17663 | cat conftest.$ac_ext >&5 | |
17664 | rm -rf conftest* | |
f9bc1684 VS |
17665 | |
17666 | if test "$USE_DOS" = 0 ; then | |
17667 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
17668 | fi | |
17669 | ||
698dcdb6 | 17670 | |
360d6699 | 17671 | fi |
698dcdb6 VZ |
17672 | rm -f conftest* |
17673 | ||
17674 | ||
360d6699 | 17675 | fi |
698dcdb6 VZ |
17676 | rm -f conftest* |
17677 | ||
17678 | ||
6232543b | 17679 | fi |
698dcdb6 VZ |
17680 | rm -f conftest* |
17681 | ||
17682 | ||
1e487827 | 17683 | fi |
703e0a69 | 17684 | |
698dcdb6 VZ |
17685 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
17686 | ||
f9bc1684 | 17687 | if test "x$wx_cv_var_timezone" != x ; then |
698dcdb6 | 17688 | cat >> confdefs.h <<EOF |
360d6699 VZ |
17689 | #define WX_TIMEZONE $wx_cv_var_timezone |
17690 | EOF | |
17691 | ||
f9bc1684 | 17692 | fi |
698dcdb6 VZ |
17693 | |
17694 | for ac_func in localtime | |
afc31813 | 17695 | do |
698dcdb6 | 17696 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
e45387bf | 17697 | echo "configure:17698: checking for $ac_func" >&5 |
698dcdb6 VZ |
17698 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17699 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17700 | else | |
17701 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 17702 | #line 17703 "configure" |
10f2d63a | 17703 | #include "confdefs.h" |
afc31813 | 17704 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 17705 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
17706 | #include <assert.h> |
17707 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17708 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17709 | builtin and then its argument prototype would still apply. */ |
17710 | char $ac_func(); | |
17711 | ||
17712 | int main() { | |
afc31813 VZ |
17713 | |
17714 | /* The GNU C library defines this for functions which it implements | |
17715 | to always fail with ENOSYS. Some functions are actually named | |
17716 | something starting with __ and the normal name is an alias. */ | |
17717 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17718 | choke me | |
17719 | #else | |
698dcdb6 | 17720 | $ac_func(); |
afc31813 VZ |
17721 | #endif |
17722 | ||
698dcdb6 | 17723 | ; return 0; } |
10f2d63a | 17724 | EOF |
e45387bf | 17725 | if { (eval echo configure:17726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17726 | rm -rf conftest* |
17727 | eval "ac_cv_func_$ac_func=yes" | |
17728 | else | |
17729 | echo "configure: failed program was:" >&5 | |
17730 | cat conftest.$ac_ext >&5 | |
17731 | rm -rf conftest* | |
17732 | eval "ac_cv_func_$ac_func=no" | |
17733 | fi | |
17734 | rm -f conftest* | |
17735 | fi | |
afc31813 | 17736 | |
698dcdb6 VZ |
17737 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17738 | echo "$ac_t""yes" 1>&6 | |
17739 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17740 | cat >> confdefs.h <<EOF | |
17741 | #define $ac_tr_func 1 | |
17742 | EOF | |
17743 | ||
17744 | else | |
17745 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
17746 | fi |
17747 | done | |
17748 | ||
1e487827 | 17749 | |
698dcdb6 VZ |
17750 | if test "$ac_cv_func_localtime" = "yes"; then |
17751 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
e45387bf | 17752 | echo "configure:17753: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
17753 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
17754 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17755 | else | |
17756 | ||
17757 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 17758 | #line 17759 "configure" |
0470b1e6 VZ |
17759 | #include "confdefs.h" |
17760 | ||
b4085ce6 | 17761 | #include <time.h> |
698dcdb6 VZ |
17762 | |
17763 | int main() { | |
0470b1e6 VZ |
17764 | |
17765 | struct tm tm; | |
17766 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
17767 | |
17768 | ; return 0; } | |
17769 | EOF | |
e45387bf | 17770 | if { (eval echo configure:17771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
17771 | rm -rf conftest* |
17772 | ||
f03a98d8 | 17773 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 17774 | |
0470b1e6 | 17775 | else |
698dcdb6 VZ |
17776 | echo "configure: failed program was:" >&5 |
17777 | cat conftest.$ac_ext >&5 | |
17778 | rm -rf conftest* | |
17779 | wx_cv_struct_tm_has_gmtoff=no | |
17780 | ||
0470b1e6 | 17781 | fi |
698dcdb6 VZ |
17782 | rm -f conftest* |
17783 | ||
1e487827 | 17784 | fi |
698dcdb6 VZ |
17785 | |
17786 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
17787 | fi |
17788 | ||
17789 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 17790 | cat >> confdefs.h <<\EOF |
6232543b VS |
17791 | #define WX_GMTOFF_IN_TM 1 |
17792 | EOF | |
0470b1e6 | 17793 | |
3fcdd07b VZ |
17794 | fi |
17795 | ||
698dcdb6 | 17796 | for ac_func in gettimeofday ftime |
3fcdd07b | 17797 | do |
698dcdb6 | 17798 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
e45387bf | 17799 | echo "configure:17800: checking for $ac_func" >&5 |
698dcdb6 VZ |
17800 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17801 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17802 | else | |
17803 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 17804 | #line 17805 "configure" |
3fcdd07b VZ |
17805 | #include "confdefs.h" |
17806 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 17807 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
17808 | #include <assert.h> |
17809 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17810 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17811 | builtin and then its argument prototype would still apply. */ |
17812 | char $ac_func(); | |
17813 | ||
17814 | int main() { | |
3fcdd07b VZ |
17815 | |
17816 | /* The GNU C library defines this for functions which it implements | |
17817 | to always fail with ENOSYS. Some functions are actually named | |
17818 | something starting with __ and the normal name is an alias. */ | |
17819 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17820 | choke me | |
17821 | #else | |
698dcdb6 | 17822 | $ac_func(); |
3fcdd07b VZ |
17823 | #endif |
17824 | ||
698dcdb6 VZ |
17825 | ; return 0; } |
17826 | EOF | |
e45387bf | 17827 | if { (eval echo configure:17828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17828 | rm -rf conftest* |
17829 | eval "ac_cv_func_$ac_func=yes" | |
17830 | else | |
17831 | echo "configure: failed program was:" >&5 | |
17832 | cat conftest.$ac_ext >&5 | |
17833 | rm -rf conftest* | |
17834 | eval "ac_cv_func_$ac_func=no" | |
17835 | fi | |
17836 | rm -f conftest* | |
17837 | fi | |
17838 | ||
17839 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17840 | echo "$ac_t""yes" 1>&6 | |
17841 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17842 | cat >> confdefs.h <<EOF | |
17843 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
17844 | EOF |
17845 | break | |
698dcdb6 VZ |
17846 | else |
17847 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
17848 | fi |
17849 | done | |
17850 | ||
afc31813 | 17851 | |
698dcdb6 VZ |
17852 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
17853 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
e45387bf | 17854 | echo "configure:17855: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
17855 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
17856 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17857 | else | |
17858 | ||
17859 | ||
17860 | ac_ext=C | |
17861 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 17862 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
17863 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17864 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17865 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 17866 | |
698dcdb6 VZ |
17867 | |
17868 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 17869 | #line 17870 "configure" |
10f2d63a | 17870 | #include "confdefs.h" |
afc31813 VZ |
17871 | |
17872 | #include <sys/time.h> | |
17873 | #include <unistd.h> | |
698dcdb6 VZ |
17874 | |
17875 | int main() { | |
afc31813 VZ |
17876 | |
17877 | struct timeval tv; | |
776862b4 | 17878 | gettimeofday(&tv, NULL); |
698dcdb6 VZ |
17879 | |
17880 | ; return 0; } | |
17881 | EOF | |
e45387bf | 17882 | if { (eval echo configure:17883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17883 | rm -rf conftest* |
afc31813 | 17884 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 17885 | else |
698dcdb6 VZ |
17886 | echo "configure: failed program was:" >&5 |
17887 | cat conftest.$ac_ext >&5 | |
17888 | rm -rf conftest* | |
17889 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 17890 | #line 17891 "configure" |
10f2d63a | 17891 | #include "confdefs.h" |
afc31813 VZ |
17892 | |
17893 | #include <sys/time.h> | |
17894 | #include <unistd.h> | |
698dcdb6 VZ |
17895 | |
17896 | int main() { | |
afc31813 VZ |
17897 | |
17898 | struct timeval tv; | |
17899 | gettimeofday(&tv); | |
698dcdb6 VZ |
17900 | |
17901 | ; return 0; } | |
17902 | EOF | |
e45387bf | 17903 | if { (eval echo configure:17904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 17904 | rm -rf conftest* |
afc31813 | 17905 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 17906 | else |
698dcdb6 VZ |
17907 | echo "configure: failed program was:" >&5 |
17908 | cat conftest.$ac_ext >&5 | |
17909 | rm -rf conftest* | |
776862b4 VZ |
17910 | |
17911 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
17912 | wx_cv_func_gettimeofday_has_2_args=unknown | |
17913 | ||
698dcdb6 | 17914 | |
10f2d63a | 17915 | fi |
698dcdb6 VZ |
17916 | rm -f conftest* |
17917 | ||
10f2d63a | 17918 | fi |
698dcdb6 | 17919 | rm -f conftest* |
afc31813 | 17920 | ac_ext=c |
698dcdb6 | 17921 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 17922 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
17923 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17924 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17925 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 17926 | |
698dcdb6 | 17927 | |
afc31813 | 17928 | fi |
698dcdb6 VZ |
17929 | |
17930 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 17931 | |
afc31813 | 17932 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 17933 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
17934 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
17935 | EOF | |
17936 | ||
17937 | fi | |
17938 | fi | |
17939 | ||
698dcdb6 | 17940 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
17941 | #define wxUSE_TIMEDATE 1 |
17942 | EOF | |
17943 | ||
17944 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
17945 | fi | |
17946 | ||
698dcdb6 | 17947 | |
b089607b VZ |
17948 | if test "$TOOLKIT" != "MSW"; then |
17949 | ||
3a922bb4 RL |
17950 | if test "$wxUSE_SOCKETS" = "yes"; then |
17951 | echo $ac_n "checking for socket""... $ac_c" 1>&6 | |
e45387bf | 17952 | echo "configure:17953: checking for socket" >&5 |
698dcdb6 VZ |
17953 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
17954 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 17955 | else |
698dcdb6 | 17956 | cat > conftest.$ac_ext <<EOF |
e45387bf | 17957 | #line 17958 "configure" |
c63c7106 VZ |
17958 | #include "confdefs.h" |
17959 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 17960 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
17961 | #include <assert.h> |
17962 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17963 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
17964 | builtin and then its argument prototype would still apply. */ |
17965 | char socket(); | |
17966 | ||
17967 | int main() { | |
c63c7106 VZ |
17968 | |
17969 | /* The GNU C library defines this for functions which it implements | |
17970 | to always fail with ENOSYS. Some functions are actually named | |
17971 | something starting with __ and the normal name is an alias. */ | |
17972 | #if defined (__stub_socket) || defined (__stub___socket) | |
17973 | choke me | |
17974 | #else | |
698dcdb6 | 17975 | socket(); |
c63c7106 VZ |
17976 | #endif |
17977 | ||
698dcdb6 VZ |
17978 | ; return 0; } |
17979 | EOF | |
e45387bf | 17980 | if { (eval echo configure:17981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
17981 | rm -rf conftest* |
17982 | eval "ac_cv_func_socket=yes" | |
17983 | else | |
17984 | echo "configure: failed program was:" >&5 | |
17985 | cat conftest.$ac_ext >&5 | |
17986 | rm -rf conftest* | |
17987 | eval "ac_cv_func_socket=no" | |
17988 | fi | |
17989 | rm -f conftest* | |
17990 | fi | |
17991 | ||
17992 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
17993 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
17994 | : |
17995 | else | |
698dcdb6 VZ |
17996 | echo "$ac_t""no" 1>&6 |
17997 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
e45387bf | 17998 | echo "configure:17999: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
17999 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
18000 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18001 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 18002 | else |
698dcdb6 | 18003 | ac_save_LIBS="$LIBS" |
c63c7106 | 18004 | LIBS="-lsocket $LIBS" |
698dcdb6 | 18005 | cat > conftest.$ac_ext <<EOF |
e45387bf | 18006 | #line 18007 "configure" |
c63c7106 VZ |
18007 | #include "confdefs.h" |
18008 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18009 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18010 | builtin and then its argument prototype would still apply. */ |
18011 | char socket(); | |
18012 | ||
18013 | int main() { | |
18014 | socket() | |
18015 | ; return 0; } | |
18016 | EOF | |
e45387bf | 18017 | if { (eval echo configure:18018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18018 | rm -rf conftest* |
18019 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18020 | else | |
18021 | echo "configure: failed program was:" >&5 | |
18022 | cat conftest.$ac_ext >&5 | |
18023 | rm -rf conftest* | |
18024 | eval "ac_cv_lib_$ac_lib_var=no" | |
18025 | fi | |
18026 | rm -f conftest* | |
18027 | LIBS="$ac_save_LIBS" | |
18028 | ||
18029 | fi | |
18030 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18031 | echo "$ac_t""yes" 1>&6 | |
c63c7106 | 18032 | INET_LINK="$INET_LINK -lsocket" |
c63c7106 | 18033 | else |
698dcdb6 | 18034 | echo "$ac_t""no" 1>&6 |
afc31813 | 18035 | |
3a922bb4 RL |
18036 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
18037 | wxUSE_SOCKETS=no | |
18038 | ||
698dcdb6 | 18039 | |
6232543b | 18040 | fi |
b089607b | 18041 | |
3a922bb4 | 18042 | |
1e487827 | 18043 | fi |
afc31813 | 18044 | |
3a922bb4 | 18045 | fi |
51a9faba | 18046 | |
3a922bb4 RL |
18047 | |
18048 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
18049 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 | |
e45387bf | 18050 | echo "configure:18051: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
18051 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
18052 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18053 | else | |
18054 | ||
3a922bb4 RL |
18055 | |
18056 | ac_ext=C | |
698dcdb6 | 18057 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1e487827 | 18058 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
18059 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18060 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18061 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 18062 | |
698dcdb6 | 18063 | |
3a922bb4 | 18064 | cat > conftest.$ac_ext <<EOF |
e45387bf | 18065 | #line 18066 "configure" |
afc31813 | 18066 | #include "confdefs.h" |
51a9faba | 18067 | |
3a922bb4 RL |
18068 | #include <sys/types.h> |
18069 | #include <sys/socket.h> | |
18070 | ||
698dcdb6 | 18071 | int main() { |
51a9faba | 18072 | |
3a922bb4 RL |
18073 | socklen_t len; |
18074 | getsockname(0, 0, &len); | |
18075 | ||
698dcdb6 VZ |
18076 | ; return 0; } |
18077 | EOF | |
e45387bf | 18078 | if { (eval echo configure:18079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18079 | rm -rf conftest* |
51a9faba | 18080 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 18081 | else |
698dcdb6 VZ |
18082 | echo "configure: failed program was:" >&5 |
18083 | cat conftest.$ac_ext >&5 | |
18084 | rm -rf conftest* | |
18085 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 18086 | #line 18087 "configure" |
afc31813 | 18087 | #include "confdefs.h" |
51a9faba | 18088 | |
3a922bb4 RL |
18089 | #include <sys/types.h> |
18090 | #include <sys/socket.h> | |
18091 | ||
698dcdb6 | 18092 | int main() { |
51a9faba | 18093 | |
3a922bb4 RL |
18094 | size_t len; |
18095 | getsockname(0, 0, &len); | |
18096 | ||
698dcdb6 VZ |
18097 | ; return 0; } |
18098 | EOF | |
e45387bf | 18099 | if { (eval echo configure:18100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18100 | rm -rf conftest* |
51a9faba | 18101 | wx_cv_type_getsockname3=size_t |
afc31813 | 18102 | else |
698dcdb6 VZ |
18103 | echo "configure: failed program was:" >&5 |
18104 | cat conftest.$ac_ext >&5 | |
18105 | rm -rf conftest* | |
18106 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 18107 | #line 18108 "configure" |
afc31813 | 18108 | #include "confdefs.h" |
51a9faba | 18109 | |
3a922bb4 RL |
18110 | #include <sys/types.h> |
18111 | #include <sys/socket.h> | |
18112 | ||
698dcdb6 | 18113 | int main() { |
51a9faba | 18114 | |
3a922bb4 RL |
18115 | int len; |
18116 | getsockname(0, 0, &len); | |
18117 | ||
698dcdb6 VZ |
18118 | ; return 0; } |
18119 | EOF | |
e45387bf | 18120 | if { (eval echo configure:18121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 18121 | rm -rf conftest* |
51a9faba | 18122 | wx_cv_type_getsockname3=int |
afc31813 | 18123 | else |
698dcdb6 VZ |
18124 | echo "configure: failed program was:" >&5 |
18125 | cat conftest.$ac_ext >&5 | |
18126 | rm -rf conftest* | |
18127 | wx_cv_type_getsockname3=unknown | |
3a922bb4 | 18128 | |
afc31813 | 18129 | fi |
698dcdb6 | 18130 | rm -f conftest* |
3a922bb4 | 18131 | |
afc31813 | 18132 | fi |
698dcdb6 | 18133 | rm -f conftest* |
3a922bb4 | 18134 | |
afc31813 | 18135 | fi |
698dcdb6 | 18136 | rm -f conftest* |
51a9faba | 18137 | |
3a922bb4 | 18138 | ac_ext=c |
698dcdb6 | 18139 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 18140 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
18141 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18142 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18143 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 18144 | |
3a922bb4 | 18145 | |
51a9faba | 18146 | fi |
698dcdb6 VZ |
18147 | |
18148 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 18149 | |
3a922bb4 RL |
18150 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
18151 | wxUSE_SOCKETS=no | |
18152 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
18153 | else | |
18154 | cat >> confdefs.h <<EOF | |
51a9faba VZ |
18155 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
18156 | EOF | |
18157 | ||
3a922bb4 | 18158 | fi |
51a9faba VZ |
18159 | fi |
18160 | fi | |
afc31813 | 18161 | |
51a9faba | 18162 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 18163 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
18164 | #define wxUSE_SOCKETS 1 |
18165 | EOF | |
18166 | ||
70f7a477 | 18167 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
18168 | fi |
18169 | ||
698dcdb6 | 18170 | |
dc3d889d VZ |
18171 | if test "$wxUSE_GUI" = "yes"; then |
18172 | ||
156b2523 GD |
18173 | if test "$TOOLKIT" = "MAC"; then |
18174 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 | |
18175 | wxUSE_JOYSTICK=no | |
18176 | fi | |
18177 | if test "$TOOLKIT" = "MOTIF"; then | |
18178 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 | |
18179 | wxUSE_JOYSTICK=no | |
18180 | fi | |
18181 | ||
3a922bb4 RL |
18182 | if test "$TOOLKIT" != "MSW"; then |
18183 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
18184 | for ac_hdr in linux/joystick.h | |
10f2d63a | 18185 | do |
698dcdb6 VZ |
18186 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
18187 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
e45387bf | 18188 | echo "configure:18189: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
18189 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
18190 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18191 | else | |
18192 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 18193 | #line 18194 "configure" |
10f2d63a | 18194 | #include "confdefs.h" |
698dcdb6 VZ |
18195 | #include <$ac_hdr> |
18196 | EOF | |
18197 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
e45387bf | 18198 | { (eval echo configure:18199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
18199 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
18200 | if test -z "$ac_err"; then | |
18201 | rm -rf conftest* | |
18202 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 18203 | else |
698dcdb6 VZ |
18204 | echo "$ac_err" >&5 |
18205 | echo "configure: failed program was:" >&5 | |
10f2d63a | 18206 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
18207 | rm -rf conftest* |
18208 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 18209 | fi |
698dcdb6 | 18210 | rm -f conftest* |
10f2d63a | 18211 | fi |
698dcdb6 VZ |
18212 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
18213 | echo "$ac_t""yes" 1>&6 | |
18214 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
18215 | cat >> confdefs.h <<EOF | |
18216 | #define $ac_tr_hdr 1 | |
10f2d63a | 18217 | EOF |
698dcdb6 VZ |
18218 | |
18219 | else | |
18220 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
18221 | fi |
18222 | done | |
18223 | ||
3a922bb4 RL |
18224 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
18225 | wxUSE_JOYSTICK=no | |
156b2523 | 18226 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 |
3a922bb4 RL |
18227 | fi |
18228 | fi | |
18229 | fi | |
b089607b | 18230 | |
3a922bb4 RL |
18231 | if test "$wxUSE_JOYSTICK" = "yes"; then |
18232 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
18233 | #define wxUSE_JOYSTICK 1 |
18234 | EOF | |
18235 | ||
3a922bb4 RL |
18236 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
18237 | fi | |
dc3d889d VZ |
18238 | fi |
18239 | ||
698dcdb6 | 18240 | |
b089607b VZ |
18241 | if test "$TOOLKIT" != "MSW"; then |
18242 | ||
3a922bb4 RL |
18243 | HAVE_DL_FUNCS=0 |
18244 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 18245 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
18246 | if test "$USE_DARWIN" = 1; then |
18247 | HAVE_DL_FUNCS=1 | |
18248 | else | |
18249 | for ac_func in dlopen | |
10f2d63a | 18250 | do |
698dcdb6 | 18251 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
e45387bf | 18252 | echo "configure:18253: checking for $ac_func" >&5 |
698dcdb6 VZ |
18253 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18254 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18255 | else | |
18256 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 18257 | #line 18258 "configure" |
10f2d63a VZ |
18258 | #include "confdefs.h" |
18259 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18260 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
18261 | #include <assert.h> |
18262 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18263 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18264 | builtin and then its argument prototype would still apply. */ |
18265 | char $ac_func(); | |
18266 | ||
18267 | int main() { | |
10f2d63a VZ |
18268 | |
18269 | /* The GNU C library defines this for functions which it implements | |
18270 | to always fail with ENOSYS. Some functions are actually named | |
18271 | something starting with __ and the normal name is an alias. */ | |
18272 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18273 | choke me | |
18274 | #else | |
698dcdb6 | 18275 | $ac_func(); |
10f2d63a VZ |
18276 | #endif |
18277 | ||
698dcdb6 VZ |
18278 | ; return 0; } |
18279 | EOF | |
e45387bf | 18280 | if { (eval echo configure:18281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18281 | rm -rf conftest* |
18282 | eval "ac_cv_func_$ac_func=yes" | |
18283 | else | |
18284 | echo "configure: failed program was:" >&5 | |
18285 | cat conftest.$ac_ext >&5 | |
18286 | rm -rf conftest* | |
18287 | eval "ac_cv_func_$ac_func=no" | |
18288 | fi | |
18289 | rm -f conftest* | |
18290 | fi | |
18291 | ||
18292 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18293 | echo "$ac_t""yes" 1>&6 | |
18294 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18295 | cat >> confdefs.h <<EOF | |
18296 | #define $ac_tr_func 1 | |
18297 | EOF | |
18298 | ||
3a922bb4 | 18299 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18300 | #define HAVE_DLOPEN 1 |
18301 | EOF | |
18302 | ||
3a922bb4 RL |
18303 | HAVE_DL_FUNCS=1 |
18304 | ||
10f2d63a | 18305 | else |
698dcdb6 VZ |
18306 | echo "$ac_t""no" 1>&6 |
18307 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
e45387bf | 18308 | echo "configure:18309: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
18309 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
18310 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18311 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18312 | else |
698dcdb6 | 18313 | ac_save_LIBS="$LIBS" |
10f2d63a | 18314 | LIBS="-ldl $LIBS" |
698dcdb6 | 18315 | cat > conftest.$ac_ext <<EOF |
e45387bf | 18316 | #line 18317 "configure" |
10f2d63a VZ |
18317 | #include "confdefs.h" |
18318 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18319 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18320 | builtin and then its argument prototype would still apply. */ |
18321 | char dlopen(); | |
18322 | ||
18323 | int main() { | |
18324 | dlopen() | |
18325 | ; return 0; } | |
18326 | EOF | |
e45387bf | 18327 | if { (eval echo configure:18328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18328 | rm -rf conftest* |
18329 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18330 | else | |
18331 | echo "configure: failed program was:" >&5 | |
18332 | cat conftest.$ac_ext >&5 | |
18333 | rm -rf conftest* | |
18334 | eval "ac_cv_lib_$ac_lib_var=no" | |
18335 | fi | |
18336 | rm -f conftest* | |
18337 | LIBS="$ac_save_LIBS" | |
18338 | ||
18339 | fi | |
18340 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18341 | echo "$ac_t""yes" 1>&6 | |
18342 | ||
3a922bb4 | 18343 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18344 | #define HAVE_DLOPEN 1 |
18345 | EOF | |
18346 | ||
3a922bb4 | 18347 | HAVE_DL_FUNCS=1 |
3d63bc3a | 18348 | DL_LINK=" -ldl$DL_LINK" |
3a922bb4 | 18349 | |
10f2d63a | 18350 | else |
698dcdb6 | 18351 | echo "$ac_t""no" 1>&6 |
10f2d63a | 18352 | |
3a922bb4 | 18353 | for ac_func in shl_load |
10f2d63a | 18354 | do |
698dcdb6 | 18355 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
e45387bf | 18356 | echo "configure:18357: checking for $ac_func" >&5 |
698dcdb6 VZ |
18357 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18358 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18359 | else | |
18360 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 18361 | #line 18362 "configure" |
10f2d63a VZ |
18362 | #include "confdefs.h" |
18363 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18364 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
18365 | #include <assert.h> |
18366 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18367 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18368 | builtin and then its argument prototype would still apply. */ |
18369 | char $ac_func(); | |
18370 | ||
18371 | int main() { | |
10f2d63a VZ |
18372 | |
18373 | /* The GNU C library defines this for functions which it implements | |
18374 | to always fail with ENOSYS. Some functions are actually named | |
18375 | something starting with __ and the normal name is an alias. */ | |
18376 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18377 | choke me | |
18378 | #else | |
698dcdb6 | 18379 | $ac_func(); |
10f2d63a VZ |
18380 | #endif |
18381 | ||
698dcdb6 VZ |
18382 | ; return 0; } |
18383 | EOF | |
e45387bf | 18384 | if { (eval echo configure:18385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18385 | rm -rf conftest* |
18386 | eval "ac_cv_func_$ac_func=yes" | |
18387 | else | |
18388 | echo "configure: failed program was:" >&5 | |
18389 | cat conftest.$ac_ext >&5 | |
18390 | rm -rf conftest* | |
18391 | eval "ac_cv_func_$ac_func=no" | |
18392 | fi | |
18393 | rm -f conftest* | |
18394 | fi | |
18395 | ||
18396 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18397 | echo "$ac_t""yes" 1>&6 | |
18398 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18399 | cat >> confdefs.h <<EOF | |
18400 | #define $ac_tr_func 1 | |
18401 | EOF | |
18402 | ||
3a922bb4 | 18403 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18404 | #define HAVE_SHL_LOAD 1 |
18405 | EOF | |
18406 | ||
3a922bb4 RL |
18407 | HAVE_SHL_FUNCS=1 |
18408 | ||
10f2d63a | 18409 | else |
698dcdb6 VZ |
18410 | echo "$ac_t""no" 1>&6 |
18411 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
e45387bf | 18412 | echo "configure:18413: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
18413 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
18414 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18415 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 18416 | else |
698dcdb6 | 18417 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 18418 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 18419 | cat > conftest.$ac_ext <<EOF |
e45387bf | 18420 | #line 18421 "configure" |
f6bcfd97 BP |
18421 | #include "confdefs.h" |
18422 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18423 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18424 | builtin and then its argument prototype would still apply. */ |
18425 | char dld(); | |
18426 | ||
18427 | int main() { | |
18428 | dld() | |
18429 | ; return 0; } | |
18430 | EOF | |
e45387bf | 18431 | if { (eval echo configure:18432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18432 | rm -rf conftest* |
18433 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18434 | else | |
18435 | echo "configure: failed program was:" >&5 | |
18436 | cat conftest.$ac_ext >&5 | |
18437 | rm -rf conftest* | |
18438 | eval "ac_cv_lib_$ac_lib_var=no" | |
18439 | fi | |
18440 | rm -f conftest* | |
18441 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 18442 | |
698dcdb6 VZ |
18443 | fi |
18444 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18445 | echo "$ac_t""yes" 1>&6 | |
18446 | ||
3a922bb4 | 18447 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 18448 | DL_LINK=" -ldld$DL_LINK" |
3a922bb4 | 18449 | |
698dcdb6 VZ |
18450 | else |
18451 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
18452 | fi |
18453 | ||
3a922bb4 | 18454 | |
10f2d63a VZ |
18455 | fi |
18456 | done | |
18457 | ||
3a922bb4 | 18458 | |
10f2d63a VZ |
18459 | fi |
18460 | ||
3a922bb4 | 18461 | |
10f2d63a VZ |
18462 | fi |
18463 | done | |
18464 | ||
1e487827 | 18465 | |
3a922bb4 RL |
18466 | if test "$HAVE_DL_FUNCS" = 1; then |
18467 | for ac_func in dlerror | |
f6bcfd97 | 18468 | do |
698dcdb6 | 18469 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
e45387bf | 18470 | echo "configure:18471: checking for $ac_func" >&5 |
698dcdb6 VZ |
18471 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18472 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18473 | else | |
18474 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 18475 | #line 18476 "configure" |
f6bcfd97 BP |
18476 | #include "confdefs.h" |
18477 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 18478 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
18479 | #include <assert.h> |
18480 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18481 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18482 | builtin and then its argument prototype would still apply. */ |
18483 | char $ac_func(); | |
18484 | ||
18485 | int main() { | |
f6bcfd97 BP |
18486 | |
18487 | /* The GNU C library defines this for functions which it implements | |
18488 | to always fail with ENOSYS. Some functions are actually named | |
18489 | something starting with __ and the normal name is an alias. */ | |
18490 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18491 | choke me | |
18492 | #else | |
698dcdb6 | 18493 | $ac_func(); |
f6bcfd97 BP |
18494 | #endif |
18495 | ||
698dcdb6 VZ |
18496 | ; return 0; } |
18497 | EOF | |
e45387bf | 18498 | if { (eval echo configure:18499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18499 | rm -rf conftest* |
18500 | eval "ac_cv_func_$ac_func=yes" | |
18501 | else | |
18502 | echo "configure: failed program was:" >&5 | |
18503 | cat conftest.$ac_ext >&5 | |
18504 | rm -rf conftest* | |
18505 | eval "ac_cv_func_$ac_func=no" | |
18506 | fi | |
18507 | rm -f conftest* | |
18508 | fi | |
18509 | ||
18510 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18511 | echo "$ac_t""yes" 1>&6 | |
18512 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18513 | cat >> confdefs.h <<EOF | |
18514 | #define $ac_tr_func 1 | |
18515 | EOF | |
18516 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
18517 | #define HAVE_DLERROR 1 |
18518 | EOF | |
18519 | ||
18520 | else | |
698dcdb6 VZ |
18521 | echo "$ac_t""no" 1>&6 |
18522 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
e45387bf | 18523 | echo "configure:18524: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
18524 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
18525 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18526 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 18527 | else |
698dcdb6 | 18528 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 18529 | LIBS="-ldl $LIBS" |
698dcdb6 | 18530 | cat > conftest.$ac_ext <<EOF |
e45387bf | 18531 | #line 18532 "configure" |
f6bcfd97 BP |
18532 | #include "confdefs.h" |
18533 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18534 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
18535 | builtin and then its argument prototype would still apply. */ |
18536 | char dlerror(); | |
18537 | ||
18538 | int main() { | |
18539 | dlerror() | |
18540 | ; return 0; } | |
18541 | EOF | |
e45387bf | 18542 | if { (eval echo configure:18543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
18543 | rm -rf conftest* |
18544 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18545 | else | |
18546 | echo "configure: failed program was:" >&5 | |
18547 | cat conftest.$ac_ext >&5 | |
18548 | rm -rf conftest* | |
18549 | eval "ac_cv_lib_$ac_lib_var=no" | |
18550 | fi | |
18551 | rm -f conftest* | |
18552 | LIBS="$ac_save_LIBS" | |
18553 | ||
18554 | fi | |
18555 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18556 | echo "$ac_t""yes" 1>&6 | |
18557 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
18558 | #define HAVE_DLERROR 1 |
18559 | EOF | |
18560 | ||
698dcdb6 VZ |
18561 | else |
18562 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
18563 | fi |
18564 | ||
18565 | fi | |
18566 | done | |
18567 | ||
3a922bb4 RL |
18568 | fi |
18569 | fi | |
f6bcfd97 | 18570 | |
3a922bb4 RL |
18571 | if test "$HAVE_DL_FUNCS" = 0; then |
18572 | if test "$HAVE_SHL_FUNCS" = 0; then | |
18573 | if test "$USE_UNIX" = 1; then | |
18574 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 | |
0b9ab0bd | 18575 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
18576 | wxUSE_DYNLIB_CLASS=no |
18577 | else | |
18578 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 | |
18579 | fi | |
18580 | fi | |
10f2d63a VZ |
18581 | fi |
18582 | fi | |
18583 | fi | |
18584 | ||
0b9ab0bd RL |
18585 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
18586 | cat >> confdefs.h <<\EOF | |
18587 | #define wxUSE_DYNAMIC_LOADER 1 | |
18588 | EOF | |
18589 | ||
18590 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
698dcdb6 | 18591 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18592 | #define wxUSE_DYNLIB_CLASS 1 |
18593 | EOF | |
18594 | ||
18595 | fi | |
18596 | ||
698dcdb6 | 18597 | |
1e6feb95 VZ |
18598 | if test "$wxUSE_FONTMAP" = "yes" ; then |
18599 | cat >> confdefs.h <<\EOF | |
18600 | #define wxUSE_FONTMAP 1 | |
18601 | EOF | |
18602 | ||
18603 | fi | |
18604 | ||
10f2d63a | 18605 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 18606 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18607 | #define wxUSE_UNICODE 1 |
18608 | EOF | |
18609 | ||
a72a4bfa VS |
18610 | |
18611 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
18612 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 | |
e45387bf | 18613 | echo "configure:18614: checking for main in -lunicows" >&5 |
a72a4bfa VS |
18614 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` |
18615 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18616 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18617 | else | |
18618 | ac_save_LIBS="$LIBS" | |
18619 | LIBS="-lunicows $LIBS" | |
18620 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 18621 | #line 18622 "configure" |
a72a4bfa VS |
18622 | #include "confdefs.h" |
18623 | ||
18624 | int main() { | |
18625 | main() | |
18626 | ; return 0; } | |
18627 | EOF | |
e45387bf | 18628 | if { (eval echo configure:18629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a72a4bfa VS |
18629 | rm -rf conftest* |
18630 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18631 | else | |
18632 | echo "configure: failed program was:" >&5 | |
18633 | cat conftest.$ac_ext >&5 | |
18634 | rm -rf conftest* | |
18635 | eval "ac_cv_lib_$ac_lib_var=no" | |
18636 | fi | |
18637 | rm -f conftest* | |
18638 | LIBS="$ac_save_LIBS" | |
18639 | ||
18640 | fi | |
18641 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18642 | echo "$ac_t""yes" 1>&6 | |
18643 | ||
18644 | cat >> confdefs.h <<\EOF | |
18645 | #define wxUSE_UNICODE_MSLU 1 | |
18646 | EOF | |
18647 | ||
18648 | ||
18649 | else | |
18650 | echo "$ac_t""no" 1>&6 | |
18651 | ||
18652 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. | |
18653 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
18654 | wxUSE_UNICODE_MSLU=no | |
18655 | ||
18656 | fi | |
18657 | ||
18658 | fi | |
10f2d63a VZ |
18659 | fi |
18660 | ||
10f2d63a | 18661 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
698dcdb6 | 18662 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18663 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
18664 | EOF | |
18665 | ||
18666 | fi | |
18667 | ||
698dcdb6 | 18668 | |
698dcdb6 | 18669 | |
10f2d63a VZ |
18670 | IODBC_C_SRC="" |
18671 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 18672 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18673 | #define wxUSE_ODBC 1 |
18674 | EOF | |
18675 | ||
18676 | WXODBCFLAG="-D_IODBC_" | |
18677 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
18678 | fi |
18679 | ||
698dcdb6 | 18680 | |
10f2d63a | 18681 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 18682 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18683 | #define wxUSE_POSTSCRIPT 1 |
18684 | EOF | |
18685 | ||
18686 | fi | |
18687 | ||
698dcdb6 | 18688 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18689 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
18690 | EOF | |
18691 | ||
698dcdb6 VZ |
18692 | |
18693 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
18694 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
18695 | EOF | |
18696 | ||
698dcdb6 VZ |
18697 | |
18698 | ||
10f2d63a | 18699 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 18700 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18701 | #define wxUSE_CONSTRAINTS 1 |
18702 | EOF | |
18703 | ||
18704 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
18705 | fi | |
18706 | ||
18707 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 18708 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
156b2523 | 18709 | echo "configure: warning: MDI not yet supported for wxUNIVERSAL... disabled" 1>&2 |
fc26f4ab RL |
18710 | wxUSE_MDI_ARCHITECTURE=no |
18711 | fi | |
18712 | ||
18713 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
18714 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
18715 | #define wxUSE_MDI_ARCHITECTURE 1 |
18716 | EOF | |
18717 | ||
fc26f4ab RL |
18718 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
18719 | fi | |
10f2d63a VZ |
18720 | fi |
18721 | ||
18722 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 18723 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18724 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
18725 | EOF | |
18726 | ||
18727 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
18728 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
18729 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
18730 | fi | |
18731 | fi | |
18732 | ||
18733 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 18734 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18735 | #define wxUSE_HELP 1 |
18736 | EOF | |
18737 | ||
18738 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 18739 | |
77e13408 | 18740 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 18741 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
29fd3c0c VS |
18742 | ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'` |
18743 | echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6 | |
e45387bf | 18744 | echo "configure:18745: checking for htmlhelp.h" >&5 |
29fd3c0c VS |
18745 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
18746 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18747 | else | |
18748 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 18749 | #line 18750 "configure" |
29fd3c0c VS |
18750 | #include "confdefs.h" |
18751 | #include <htmlhelp.h> | |
18752 | EOF | |
18753 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
e45387bf | 18754 | { (eval echo configure:18755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
18755 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
18756 | if test -z "$ac_err"; then | |
18757 | rm -rf conftest* | |
18758 | eval "ac_cv_header_$ac_safe=yes" | |
18759 | else | |
18760 | echo "$ac_err" >&5 | |
18761 | echo "configure: failed program was:" >&5 | |
18762 | cat conftest.$ac_ext >&5 | |
18763 | rm -rf conftest* | |
18764 | eval "ac_cv_header_$ac_safe=no" | |
18765 | fi | |
18766 | rm -f conftest* | |
18767 | fi | |
18768 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
18769 | echo "$ac_t""yes" 1>&6 | |
18770 | ||
18771 | cat >> confdefs.h <<\EOF | |
18772 | #define wxUSE_MS_HTML_HELP 1 | |
18773 | EOF | |
18774 | ||
18775 | ||
18776 | else | |
18777 | echo "$ac_t""no" 1>&6 | |
18778 | ||
fc26f4ab | 18779 | echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2 |
29fd3c0c VS |
18780 | wxUSE_MS_HTML_HELP=no |
18781 | ||
18782 | fi | |
18783 | ||
3e44f09d | 18784 | fi |
3379ed37 | 18785 | fi |
031d8228 VS |
18786 | |
18787 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
18788 | if test "$wxUSE_HTML" = "yes"; then | |
18789 | cat >> confdefs.h <<\EOF | |
18790 | #define wxUSE_WXHTML_HELP 1 | |
18791 | EOF | |
18792 | ||
18793 | else | |
18794 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 | |
18795 | wxUSE_WXHTML_HELP=no | |
18796 | fi | |
18797 | fi | |
10f2d63a VZ |
18798 | fi |
18799 | ||
18800 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
18801 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 18802 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 18803 | else |
698dcdb6 | 18804 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18805 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
18806 | EOF | |
18807 | ||
18808 | fi | |
18809 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
18810 | fi | |
18811 | ||
18812 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 18813 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18814 | #define wxUSE_PROLOGIO 1 |
18815 | EOF | |
18816 | ||
18817 | fi | |
18818 | ||
18819 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
3379ed37 | 18820 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18821 | #define wxUSE_RESOURCES 1 |
18822 | EOF | |
18823 | ||
3379ed37 | 18824 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
10f2d63a VZ |
18825 | fi |
18826 | ||
18827 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 18828 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18829 | #define wxUSE_X_RESOURCES 1 |
18830 | EOF | |
18831 | ||
18832 | fi | |
18833 | ||
698dcdb6 | 18834 | |
77e13408 RL |
18835 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
18836 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
18837 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
2b9bdf71 | 18838 | for ac_hdr in ole2.h |
10f2d63a | 18839 | do |
698dcdb6 VZ |
18840 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
18841 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
e45387bf | 18842 | echo "configure:18843: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
18843 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
18844 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18845 | else | |
18846 | cat > conftest.$ac_ext <<EOF | |
e45387bf | 18847 | #line 18848 "configure" |
10f2d63a | 18848 | #include "confdefs.h" |
698dcdb6 VZ |
18849 | #include <$ac_hdr> |
18850 | EOF | |
18851 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
e45387bf | 18852 | { (eval echo configure:18853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
18853 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
18854 | if test -z "$ac_err"; then | |
18855 | rm -rf conftest* | |
18856 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 18857 | else |
698dcdb6 VZ |
18858 | echo "$ac_err" >&5 |
18859 | echo "configure: failed program was:" >&5 | |
10f2d63a | 18860 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
18861 | rm -rf conftest* |
18862 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 18863 | fi |
698dcdb6 | 18864 | rm -f conftest* |
10f2d63a | 18865 | fi |
698dcdb6 VZ |
18866 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
18867 | echo "$ac_t""yes" 1>&6 | |
18868 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
18869 | cat >> confdefs.h <<EOF | |
18870 | #define $ac_tr_hdr 1 | |
10f2d63a | 18871 | EOF |
698dcdb6 VZ |
18872 | |
18873 | else | |
18874 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
18875 | fi |
18876 | done | |
18877 | ||
698dcdb6 | 18878 | |
2b9bdf71 VZ |
18879 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
18880 | if test "$GCC" = yes ; then | |
18881 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
2b9bdf71 | 18882 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
3d63bc3a | 18883 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
2b9bdf71 | 18884 | cat >> confdefs.h <<\EOF |
4f11a343 VS |
18885 | #define wxUSE_OLE 1 |
18886 | EOF | |
18887 | ||
b64f0a5f | 18888 | |
2b9bdf71 VZ |
18889 | fi |
18890 | ||
18891 | cat >> confdefs.h <<\EOF | |
18892 | #define wxUSE_DATAOBJ 1 | |
18893 | EOF | |
18894 | ||
18895 | else | |
18896 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 | |
18897 | ||
18898 | wxUSE_CLIPBOARD=no | |
18899 | wxUSE_DRAG_AND_DROP=no | |
18900 | wxUSE_DATAOBJ=no | |
18901 | fi | |
18902 | ||
77e13408 | 18903 | if test "$wxUSE_METAFILE" = "yes"; then |
2b9bdf71 | 18904 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
18905 | #define wxUSE_METAFILE 1 |
18906 | EOF | |
18907 | ||
2b9bdf71 VZ |
18908 | |
18909 | cat >> confdefs.h <<\EOF | |
b64f0a5f RL |
18910 | #define wxUSE_ENH_METAFILE 1 |
18911 | EOF | |
18912 | ||
2b9bdf71 VZ |
18913 | fi |
18914 | fi | |
18915 | ||
18916 | if test "$wxUSE_IPC" = "yes"; then | |
18917 | if test "$wxUSE_SOCKETS" != "yes"; then | |
156b2523 | 18918 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 |
2b9bdf71 VZ |
18919 | fi |
18920 | ||
18921 | cat >> confdefs.h <<\EOF | |
18922 | #define wxUSE_IPC 1 | |
18923 | EOF | |
18924 | ||
18925 | fi | |
18926 | ||
18927 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
18928 | cat >> confdefs.h <<\EOF | |
18929 | #define wxUSE_CLIPBOARD 1 | |
18930 | EOF | |
18931 | ||
673f4220 | 18932 | |
e33ef661 | 18933 | cat >> confdefs.h <<\EOF |
673f4220 VZ |
18934 | #define wxUSE_DATAOBJ 1 |
18935 | EOF | |
18936 | ||
2b9bdf71 VZ |
18937 | fi |
18938 | ||
18939 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
18940 | if test "$wxUSE_GTK" = 1; then | |
18941 | if test "$WXGTK12" != 1; then | |
156b2523 | 18942 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 |
10f2d63a VZ |
18943 | wxUSE_DRAG_AND_DROP=no |
18944 | fi | |
18945 | fi | |
18946 | ||
2b9bdf71 | 18947 | if test "$wxUSE_MOTIF" = 1; then |
156b2523 | 18948 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 |
2b9bdf71 VZ |
18949 | wxUSE_DRAG_AND_DROP=no |
18950 | fi | |
18951 | ||
10f2d63a | 18952 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
698dcdb6 | 18953 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18954 | #define wxUSE_DRAG_AND_DROP 1 |
18955 | EOF | |
18956 | ||
18957 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
18958 | fi | |
18959 | ||
18960 | fi | |
18961 | ||
18962 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 18963 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18964 | #define wxUSE_SPLINES 1 |
18965 | EOF | |
18966 | ||
18967 | fi | |
18968 | ||
698dcdb6 | 18969 | |
1e6feb95 VZ |
18970 | USES_CONTROLS=0 |
18971 | if test "$wxUSE_CONTROLS" = "yes"; then | |
18972 | USES_CONTROLS=1 | |
18973 | fi | |
18974 | ||
10f2d63a | 18975 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 18976 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18977 | #define wxUSE_ACCEL 1 |
18978 | EOF | |
18979 | ||
1e6feb95 VZ |
18980 | USES_CONTROLS=1 |
18981 | fi | |
18982 | ||
18983 | if test "$wxUSE_BUTTON" = "yes"; then | |
18984 | cat >> confdefs.h <<\EOF | |
18985 | #define wxUSE_BUTTON 1 | |
18986 | EOF | |
18987 | ||
18988 | USES_CONTROLS=1 | |
18989 | fi | |
18990 | ||
18991 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
18992 | cat >> confdefs.h <<\EOF | |
18993 | #define wxUSE_BMPBUTTON 1 | |
18994 | EOF | |
18995 | ||
18996 | USES_CONTROLS=1 | |
18997 | fi | |
18998 | ||
18999 | if test "$wxUSE_CALCTRL" = "yes"; then | |
19000 | cat >> confdefs.h <<\EOF | |
19001 | #define wxUSE_CALENDARCTRL 1 | |
19002 | EOF | |
19003 | ||
19004 | USES_CONTROLS=1 | |
19005 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
19006 | fi |
19007 | ||
19008 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 19009 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19010 | #define wxUSE_CARET 1 |
19011 | EOF | |
19012 | ||
1e6feb95 | 19013 | USES_CONTROLS=1 |
10f2d63a VZ |
19014 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
19015 | fi | |
19016 | ||
19017 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 19018 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19019 | #define wxUSE_COMBOBOX 1 |
19020 | EOF | |
19021 | ||
1e6feb95 | 19022 | USES_CONTROLS=1 |
10f2d63a VZ |
19023 | fi |
19024 | ||
19025 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 19026 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19027 | #define wxUSE_CHOICE 1 |
19028 | EOF | |
19029 | ||
1e6feb95 | 19030 | USES_CONTROLS=1 |
10f2d63a VZ |
19031 | fi |
19032 | ||
19033 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 19034 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19035 | #define wxUSE_CHECKBOX 1 |
19036 | EOF | |
19037 | ||
1e6feb95 | 19038 | USES_CONTROLS=1 |
10f2d63a VZ |
19039 | fi |
19040 | ||
19041 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 19042 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19043 | #define wxUSE_CHECKLISTBOX 1 |
19044 | EOF | |
19045 | ||
1e6feb95 | 19046 | USES_CONTROLS=1 |
10f2d63a VZ |
19047 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
19048 | fi | |
19049 | ||
19050 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 19051 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19052 | #define wxUSE_GAUGE 1 |
19053 | EOF | |
19054 | ||
1e6feb95 | 19055 | USES_CONTROLS=1 |
10f2d63a VZ |
19056 | fi |
19057 | ||
d6a55c4b VZ |
19058 | if test "$wxUSE_NEW_GRID" = "yes"; then |
19059 | wxUSE_GRID="yes" | |
698dcdb6 | 19060 | cat >> confdefs.h <<\EOF |
d6a55c4b | 19061 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
19062 | EOF |
19063 | ||
1e6feb95 | 19064 | USES_CONTROLS=1 |
d6a55c4b | 19065 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
19066 | fi |
19067 | ||
d6a55c4b | 19068 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 19069 | cat >> confdefs.h <<\EOF |
d6a55c4b | 19070 | #define wxUSE_GRID 1 |
10f2d63a VZ |
19071 | EOF |
19072 | ||
1e6feb95 | 19073 | USES_CONTROLS=1 |
d6a55c4b | 19074 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
19075 | fi |
19076 | ||
19077 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 19078 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19079 | #define wxUSE_IMAGLIST 1 |
19080 | EOF | |
19081 | ||
19082 | fi | |
19083 | ||
19084 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 19085 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19086 | #define wxUSE_LISTBOX 1 |
19087 | EOF | |
19088 | ||
1e6feb95 | 19089 | USES_CONTROLS=1 |
10f2d63a VZ |
19090 | fi |
19091 | ||
19092 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
19093 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 19094 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19095 | #define wxUSE_LISTCTRL 1 |
19096 | EOF | |
19097 | ||
1e6feb95 | 19098 | USES_CONTROLS=1 |
10f2d63a VZ |
19099 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
19100 | else | |
698dcdb6 | 19101 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
19102 | fi |
19103 | fi | |
19104 | ||
19105 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 19106 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19107 | #define wxUSE_NOTEBOOK 1 |
19108 | EOF | |
19109 | ||
1e6feb95 | 19110 | USES_CONTROLS=1 |
10f2d63a VZ |
19111 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
19112 | fi | |
19113 | ||
24176f2c GD |
19114 | if test "$wxUSE_PROPSHEET" = "yes"; then |
19115 | cat >> confdefs.h <<\EOF | |
19116 | #define wxUSE_PROPSHEET 1 | |
19117 | EOF | |
19118 | ||
19119 | USES_CONTROLS=1 | |
19120 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
19121 | fi | |
19122 | ||
10f2d63a | 19123 | if test "$wxUSE_RADIOBOX" = "yes"; then |
698dcdb6 | 19124 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19125 | #define wxUSE_RADIOBOX 1 |
19126 | EOF | |
19127 | ||
1e6feb95 | 19128 | USES_CONTROLS=1 |
10f2d63a VZ |
19129 | fi |
19130 | ||
19131 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 19132 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19133 | #define wxUSE_RADIOBTN 1 |
19134 | EOF | |
19135 | ||
1e6feb95 | 19136 | USES_CONTROLS=1 |
10f2d63a VZ |
19137 | fi |
19138 | ||
19139 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 19140 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19141 | #define wxUSE_SASH 1 |
19142 | EOF | |
19143 | ||
19144 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
19145 | fi | |
19146 | ||
19147 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 19148 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19149 | #define wxUSE_SCROLLBAR 1 |
19150 | EOF | |
19151 | ||
1e6feb95 | 19152 | USES_CONTROLS=1 |
741a9306 | 19153 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
19154 | fi |
19155 | ||
19156 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 19157 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19158 | #define wxUSE_SLIDER 1 |
19159 | EOF | |
19160 | ||
1e6feb95 | 19161 | USES_CONTROLS=1 |
10f2d63a VZ |
19162 | fi |
19163 | ||
19164 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 19165 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19166 | #define wxUSE_SPINBTN 1 |
19167 | EOF | |
19168 | ||
1e6feb95 | 19169 | USES_CONTROLS=1 |
10f2d63a VZ |
19170 | fi |
19171 | ||
56cfaa52 | 19172 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 19173 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
19174 | #define wxUSE_SPINCTRL 1 |
19175 | EOF | |
19176 | ||
1e6feb95 | 19177 | USES_CONTROLS=1 |
56cfaa52 RR |
19178 | fi |
19179 | ||
10f2d63a | 19180 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 19181 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19182 | #define wxUSE_SPLITTER 1 |
19183 | EOF | |
19184 | ||
19185 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
19186 | fi | |
19187 | ||
19188 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 19189 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19190 | #define wxUSE_STATBMP 1 |
19191 | EOF | |
19192 | ||
1e6feb95 | 19193 | USES_CONTROLS=1 |
10f2d63a VZ |
19194 | fi |
19195 | ||
19196 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 19197 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19198 | #define wxUSE_STATBOX 1 |
19199 | EOF | |
19200 | ||
1e6feb95 VZ |
19201 | USES_CONTROLS=1 |
19202 | fi | |
19203 | ||
19204 | if test "$wxUSE_STATTEXT" = "yes"; then | |
19205 | cat >> confdefs.h <<\EOF | |
19206 | #define wxUSE_STATTEXT 1 | |
19207 | EOF | |
19208 | ||
19209 | USES_CONTROLS=1 | |
10f2d63a VZ |
19210 | fi |
19211 | ||
19212 | if test "$wxUSE_STATLINE" = "yes"; then | |
19213 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 19214 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 19215 | else |
698dcdb6 | 19216 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19217 | #define wxUSE_STATLINE 1 |
19218 | EOF | |
19219 | ||
1e6feb95 | 19220 | USES_CONTROLS=1 |
10f2d63a VZ |
19221 | fi |
19222 | fi | |
19223 | ||
19224 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 19225 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19226 | #define wxUSE_STATUSBAR 1 |
19227 | EOF | |
19228 | ||
1e6feb95 | 19229 | USES_CONTROLS=1 |
698dcdb6 | 19230 | |
2286341c | 19231 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
19232 | fi |
19233 | ||
19234 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 19235 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19236 | #define wxUSE_TAB_DIALOG 1 |
19237 | EOF | |
19238 | ||
19239 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
19240 | fi | |
19241 | ||
1e6feb95 VZ |
19242 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
19243 | cat >> confdefs.h <<\EOF | |
19244 | #define wxUSE_TEXTCTRL 1 | |
19245 | EOF | |
19246 | ||
19247 | USES_CONTROLS=1 | |
19248 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
19249 | fi | |
19250 | ||
1db8dc4a | 19251 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
156b2523 GD |
19252 | if test "$wxUSE_MAC" = 1; then |
19253 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 | |
19254 | wxUSE_TOGGLEBTN=no | |
19255 | fi | |
19256 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
19257 | echo "configure: warning: Toggle button not yet supported under wxUNIVERSAL... disabled" 1>&2 | |
a45d7ab7 GD |
19258 | wxUSE_TOGGLEBTN=no |
19259 | fi | |
19260 | ||
19261 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
19262 | cat >> confdefs.h <<\EOF | |
1db8dc4a VZ |
19263 | #define wxUSE_TOGGLEBTN 1 |
19264 | EOF | |
19265 | ||
1e6feb95 | 19266 | USES_CONTROLS=1 |
a45d7ab7 | 19267 | fi |
1db8dc4a VZ |
19268 | fi |
19269 | ||
360d6699 | 19270 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 19271 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
19272 | #define wxUSE_TOOLBAR_SIMPLE 1 |
19273 | EOF | |
19274 | ||
19275 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 19276 | USES_CONTROLS=1 |
360d6699 VZ |
19277 | fi |
19278 | ||
10f2d63a | 19279 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 19280 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19281 | #define wxUSE_TOOLBAR 1 |
19282 | EOF | |
19283 | ||
1e6feb95 | 19284 | USES_CONTROLS=1 |
698dcdb6 | 19285 | |
360d6699 VZ |
19286 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
19287 | wxUSE_TOOLBAR_NATIVE="yes" | |
19288 | fi | |
19289 | ||
1e6feb95 VZ |
19290 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
19291 | cat >> confdefs.h <<\EOF | |
360d6699 VZ |
19292 | #define wxUSE_TOOLBAR_NATIVE 1 |
19293 | EOF | |
19294 | ||
1e6feb95 VZ |
19295 | USES_CONTROLS=1 |
19296 | fi | |
19297 | ||
19298 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
19299 | fi |
19300 | ||
10f2d63a VZ |
19301 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
19302 | if test "$wxUSE_MOTIF" = 1; then | |
156b2523 | 19303 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 |
10f2d63a VZ |
19304 | else |
19305 | if test "$wxUSE_WINE" = 1; then | |
156b2523 | 19306 | echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2 |
10f2d63a | 19307 | else |
69d27ff7 | 19308 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
156b2523 | 19309 | echo "configure: warning: wxTooltip not supported yet in wxUNIVERSAL... disabled" 1>&2 |
69d27ff7 MB |
19310 | else |
19311 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19312 | #define wxUSE_TOOLTIPS 1 |
19313 | EOF | |
19314 | ||
69d27ff7 | 19315 | fi |
10f2d63a VZ |
19316 | fi |
19317 | fi | |
19318 | fi | |
19319 | ||
19320 | if test "$wxUSE_TREECTRL" = "yes"; then | |
19321 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 19322 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19323 | #define wxUSE_TREECTRL 1 |
19324 | EOF | |
19325 | ||
1e6feb95 | 19326 | USES_CONTROLS=1 |
10f2d63a VZ |
19327 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
19328 | else | |
698dcdb6 | 19329 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
19330 | fi |
19331 | fi | |
19332 | ||
9f41d601 | 19333 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 | 19334 | if test "$wxUSE_MAC" = 1; then |
156b2523 | 19335 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 |
6abe4b65 | 19336 | else |
485cf710 VZ |
19337 | if test "$wxUSE_MOTIF" = 1; then |
19338 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 | |
19339 | else | |
19340 | cat >> confdefs.h <<\EOF | |
9f41d601 RR |
19341 | #define wxUSE_POPUPWIN 1 |
19342 | EOF | |
19343 | ||
9926e4a4 | 19344 | |
485cf710 VZ |
19345 | USES_CONTROLS=1 |
19346 | fi | |
6abe4b65 | 19347 | fi |
9f41d601 RR |
19348 | fi |
19349 | ||
dd964dcc VZ |
19350 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
19351 | cat >> confdefs.h <<\EOF | |
19352 | #define wxUSE_TIPWINDOW 1 | |
19353 | EOF | |
19354 | ||
19355 | fi | |
19356 | ||
1e6feb95 VZ |
19357 | if test "$USES_CONTROLS" = 1; then |
19358 | cat >> confdefs.h <<\EOF | |
19359 | #define wxUSE_CONTROLS 1 | |
10f2d63a VZ |
19360 | EOF |
19361 | ||
10f2d63a VZ |
19362 | fi |
19363 | ||
1e6feb95 | 19364 | |
24176f2c GD |
19365 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
19366 | cat >> confdefs.h <<\EOF | |
19367 | #define wxUSE_TREELAYOUT 1 | |
19368 | EOF | |
19369 | ||
19370 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
19371 | fi | |
1e6feb95 | 19372 | |
24fd6d87 VZ |
19373 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
19374 | cat >> confdefs.h <<\EOF | |
19375 | #define wxUSE_DRAGIMAGE 1 | |
19376 | EOF | |
19377 | ||
19378 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
19379 | fi | |
19380 | ||
1e6feb95 | 19381 | if test "$wxUSE_MENUS" = "yes"; then |
698dcdb6 | 19382 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19383 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
19384 | EOF |
19385 | ||
1e6feb95 | 19386 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
19387 | fi |
19388 | ||
1e6feb95 VZ |
19389 | if test "$wxUSE_METAFILE" = "yes"; then |
19390 | cat >> confdefs.h <<\EOF | |
19391 | #define wxUSE_METAFILE 1 | |
10f2d63a VZ |
19392 | EOF |
19393 | ||
10f2d63a VZ |
19394 | fi |
19395 | ||
1e6feb95 VZ |
19396 | if test "$wxUSE_MIMETYPE" = "yes"; then |
19397 | cat >> confdefs.h <<\EOF | |
19398 | #define wxUSE_MIMETYPE 1 | |
10f2d63a VZ |
19399 | EOF |
19400 | ||
10f2d63a VZ |
19401 | fi |
19402 | ||
3e44f09d VZ |
19403 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
19404 | cat >> confdefs.h <<\EOF | |
19405 | #define wxUSE_SYSTEM_OPTIONS 1 | |
19406 | EOF | |
19407 | ||
19408 | fi | |
19409 | ||
4cdb0ab0 | 19410 | if test "$wxUSE_PROTOCOL" = "yes"; then |
3954f9ca VS |
19411 | if test "$wxUSE_SOCKETS" != "yes"; then |
19412 | echo "configure: warning: Protocol classes require sockets... disabled" 1>&2 | |
19413 | wxUSE_PROTOCOL=no | |
19414 | fi | |
19415 | ||
19416 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
19417 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
19418 | #define wxUSE_PROTOCOL 1 |
19419 | EOF | |
19420 | ||
19421 | ||
3954f9ca VS |
19422 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then |
19423 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
19424 | #define wxUSE_PROTOCOL_HTTP 1 |
19425 | EOF | |
19426 | ||
3954f9ca VS |
19427 | fi |
19428 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
19429 | cat >> confdefs.h <<\EOF | |
4cdb0ab0 VS |
19430 | #define wxUSE_PROTOCOL_FTP 1 |
19431 | EOF | |
19432 | ||
3954f9ca VS |
19433 | fi |
19434 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
19435 | cat >> confdefs.h <<\EOF | |
19436 | #define wxUSE_PROTOCOL_FILE 1 | |
19437 | EOF | |
19438 | ||
19439 | fi | |
4cdb0ab0 | 19440 | fi |
3954f9ca VS |
19441 | fi |
19442 | ||
19443 | if test "$wxUSE_URL" = "yes"; then | |
19444 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
19445 | echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2 | |
19446 | wxUSE_URL=no | |
19447 | fi | |
19448 | if test "$wxUSE_URL" = "yes"; then | |
4cdb0ab0 | 19449 | cat >> confdefs.h <<\EOF |
3954f9ca | 19450 | #define wxUSE_URL 1 |
4cdb0ab0 VS |
19451 | EOF |
19452 | ||
19453 | fi | |
19454 | fi | |
19455 | ||
10f2d63a | 19456 | if test "$wxUSE_MINIFRAME" = "yes"; then |
698dcdb6 | 19457 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19458 | #define wxUSE_MINIFRAME 1 |
19459 | EOF | |
19460 | ||
19461 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
19462 | fi | |
19463 | ||
19464 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 19465 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19466 | #define wxUSE_HTML 1 |
19467 | EOF | |
19468 | ||
19469 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
19470 | fi |
19471 | ||
19472 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 19473 | cat >> confdefs.h <<\EOF |
1e487827 VS |
19474 | #define wxUSE_VALIDATORS 1 |
19475 | EOF | |
703e0a69 | 19476 | |
698dcdb6 VZ |
19477 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
19478 | fi | |
19479 | ||
edae8572 VZ |
19480 | if test "$wxUSE_PALETTE" = "yes" ; then |
19481 | cat >> confdefs.h <<\EOF | |
19482 | #define wxUSE_PALETTE 1 | |
19483 | EOF | |
19484 | ||
19485 | fi | |
19486 | ||
698dcdb6 VZ |
19487 | if test "$wxUSE_IMAGE" = "yes" ; then |
19488 | cat >> confdefs.h <<\EOF | |
19489 | #define wxUSE_IMAGE 1 | |
19490 | EOF | |
19491 | ||
19492 | fi | |
19493 | ||
19494 | if test "$wxUSE_GIF" = "yes" ; then | |
19495 | cat >> confdefs.h <<\EOF | |
19496 | #define wxUSE_GIF 1 | |
19497 | EOF | |
19498 | ||
19499 | fi | |
19500 | ||
19501 | if test "$wxUSE_PCX" = "yes" ; then | |
19502 | cat >> confdefs.h <<\EOF | |
19503 | #define wxUSE_PCX 1 | |
19504 | EOF | |
19505 | ||
19506 | fi | |
19507 | ||
4b6b4dfc RR |
19508 | if test "$wxUSE_IFF" = "yes" ; then |
19509 | cat >> confdefs.h <<\EOF | |
19510 | #define wxUSE_IFF 1 | |
19511 | EOF | |
19512 | ||
19513 | fi | |
19514 | ||
698dcdb6 VZ |
19515 | if test "$wxUSE_PNM" = "yes" ; then |
19516 | cat >> confdefs.h <<\EOF | |
19517 | #define wxUSE_PNM 1 | |
19518 | EOF | |
19519 | ||
19520 | fi | |
19521 | ||
19522 | if test "$wxUSE_XPM" = "yes" ; then | |
19523 | cat >> confdefs.h <<\EOF | |
19524 | #define wxUSE_XPM 1 | |
19525 | EOF | |
19526 | ||
19527 | fi | |
19528 | ||
658974ae VS |
19529 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
19530 | cat >> confdefs.h <<\EOF | |
19531 | #define wxUSE_ICO_CUR 1 | |
19532 | EOF | |
19533 | ||
19534 | fi | |
19535 | ||
a72a4bfa VS |
19536 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
19537 | LIBS=" -lunicows $LIBS" | |
19538 | fi | |
19539 | ||
698dcdb6 | 19540 | |
1e6feb95 VZ |
19541 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
19542 | cat >> confdefs.h <<\EOF | |
19543 | #define wxUSE_CHOICEDLG 1 | |
19544 | EOF | |
19545 | ||
19546 | fi | |
19547 | ||
19548 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
19549 | cat >> confdefs.h <<\EOF | |
19550 | #define wxUSE_COLOURDLG 1 | |
19551 | EOF | |
19552 | ||
19553 | fi | |
19554 | ||
19555 | if test "$wxUSE_FILEDLG" = "yes"; then | |
19556 | cat >> confdefs.h <<\EOF | |
19557 | #define wxUSE_FILEDLG 1 | |
19558 | EOF | |
19559 | ||
19560 | fi | |
19561 | ||
8db37e06 VZ |
19562 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
19563 | cat >> confdefs.h <<\EOF | |
19564 | #define wxUSE_FINDREPLDLG 1 | |
19565 | EOF | |
19566 | ||
19567 | fi | |
19568 | ||
1e6feb95 VZ |
19569 | if test "$wxUSE_FONTDLG" = "yes"; then |
19570 | cat >> confdefs.h <<\EOF | |
19571 | #define wxUSE_FONTDLG 1 | |
19572 | EOF | |
19573 | ||
19574 | fi | |
19575 | ||
19576 | if test "$wxUSE_DIRDLG" = "yes"; then | |
19577 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
19578 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
19579 | else | |
19580 | if test "$wxUSE_TREECTRL" != "yes"; then | |
19581 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
19582 | else | |
19583 | cat >> confdefs.h <<\EOF | |
19584 | #define wxUSE_DIRDLG 1 | |
19585 | EOF | |
19586 | ||
19587 | fi | |
19588 | fi | |
19589 | fi | |
19590 | ||
19591 | if test "$wxUSE_MSGDLG" = "yes"; then | |
19592 | cat >> confdefs.h <<\EOF | |
19593 | #define wxUSE_MSGDLG 1 | |
19594 | EOF | |
19595 | ||
19596 | fi | |
19597 | ||
19598 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
19599 | cat >> confdefs.h <<\EOF | |
19600 | #define wxUSE_NUMBERDLG 1 | |
19601 | EOF | |
19602 | ||
19603 | fi | |
19604 | ||
19605 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
19606 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
19607 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
19608 | else | |
19609 | cat >> confdefs.h <<\EOF | |
19610 | #define wxUSE_PROGRESSDLG 1 | |
19611 | EOF | |
19612 | ||
19613 | fi | |
19614 | fi | |
19615 | ||
cbca9943 VZ |
19616 | if test "$wxUSE_SPLASH" = "yes"; then |
19617 | cat >> confdefs.h <<\EOF | |
19618 | #define wxUSE_SPLASH 1 | |
19619 | EOF | |
19620 | ||
19621 | fi | |
19622 | ||
1e6feb95 VZ |
19623 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
19624 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
19625 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
19626 | else | |
19627 | cat >> confdefs.h <<\EOF | |
19628 | #define wxUSE_STARTUP_TIPS 1 | |
19629 | EOF | |
19630 | ||
19631 | fi | |
19632 | fi | |
19633 | ||
19634 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
19635 | cat >> confdefs.h <<\EOF | |
19636 | #define wxUSE_TEXTDLG 1 | |
19637 | EOF | |
19638 | ||
19639 | fi | |
19640 | ||
b1f5d087 VZ |
19641 | if test "$wxUSE_WIZARDDLG" = "yes"; then |
19642 | cat >> confdefs.h <<\EOF | |
19643 | #define wxUSE_WIZARDDLG 1 | |
19644 | EOF | |
19645 | ||
19646 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
19647 | fi | |
19648 | ||
1e6feb95 | 19649 | |
698dcdb6 VZ |
19650 | if test "$cross_compiling" = "yes"; then |
19651 | OSINFO="\"$host\"" | |
19652 | else | |
19653 | OSINFO=`uname -s -r -m` | |
19654 | OSINFO="\"$OSINFO\"" | |
19655 | fi | |
19656 | ||
19657 | cat >> confdefs.h <<EOF | |
19658 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
19659 | EOF | |
19660 | ||
19661 | ||
19662 | ||
06dda230 VZ |
19663 | if test "x$prefix" != "xNONE"; then |
19664 | wxPREFIX=$prefix | |
19665 | else | |
19666 | wxPREFIX=$ac_default_prefix | |
19667 | fi | |
19668 | ||
7e67ed0d | 19669 | cat >> confdefs.h <<EOF |
06dda230 | 19670 | #define wxINSTALL_PREFIX "$wxPREFIX" |
7e67ed0d VZ |
19671 | EOF |
19672 | ||
19673 | ||
19674 | ||
698dcdb6 | 19675 | |
3a922bb4 | 19676 | |
f11bdd03 | 19677 | if test "$wxUSE_MAC" = 1 ; then |
3d63bc3a | 19678 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" |
698dcdb6 | 19679 | fi |
3a922bb4 | 19680 | |
3d63bc3a RL |
19681 | |
19682 | LIBS="$ZLIB_LINK$POSIX4_LINK$INET_LINK$WCHAR_LINK$THREADS_LINK$DL_LINK -lm$LIBS" | |
19683 | ||
698dcdb6 | 19684 | if test "$wxUSE_GUI" = "yes"; then |
3d63bc3a RL |
19685 | |
19686 | LIBS=" $GUI_TK_LIBRARY$PNG_LINK$JPEG_LINK$TIFF_LINK$FREETYPE_LINK$LIBS" | |
3a922bb4 RL |
19687 | |
19688 | ||
19689 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \ | |
19690 | drawing dynamic erase event exec font image \ | |
19691 | minimal richedit rotate widgets" | |
19692 | ||
3a922bb4 RL |
19693 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" |
19694 | else | |
19695 | SAMPLES_SUBDIRS="console" | |
698dcdb6 VZ |
19696 | fi |
19697 | ||
698dcdb6 | 19698 | |
d714471b | 19699 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \ |
3e44f09d VZ |
19700 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ |
19701 | $FREETYPE_INCLUDE $TOOLKIT_INCLUDE" | |
698dcdb6 | 19702 | |
63e7762e | 19703 | if test "$wxUSE_GTK" = 1; then |
3d63bc3a | 19704 | WXCONFIG_INCLUDE= |
698dcdb6 VZ |
19705 | else |
19706 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
19707 | fi | |
19708 | ||
19709 | if test "$GXX" = yes ; then | |
19710 | CXXWARNINGS="-Wall" | |
88e30f2b RL |
19711 | |
19712 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
19713 | CFLAGS="-MMD $CFLAGS" | |
19714 | CXXFLAGS="-MMD $CXXFLAGS" | |
19715 | fi | |
19716 | fi | |
19717 | ||
1725144d | 19718 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" |
698dcdb6 VZ |
19719 | |
19720 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
19721 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
19722 | ||
3d63bc3a | 19723 | LDFLAGS="$LDFLAGS$PROFILE" |
698dcdb6 | 19724 | |
698dcdb6 VZ |
19725 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
19726 | ||
19727 | ||
19728 | ||
19729 | ||
19730 | ||
19731 | ||
19732 | ||
19733 | ||
19734 | ||
19735 | ||
19736 | ||
19737 | ||
19738 | ||
19739 | ||
19740 | ||
19741 | ||
19742 | ||
19743 | ||
19744 | ||
19745 | ||
19746 | ||
19747 | ||
19748 | ||
19749 | ||
19750 | ||
19751 | ||
19752 | ||
19753 | ||
19754 | ||
19755 | ||
19756 | ||
19757 | ||
19758 | ||
19759 | ||
19760 | ||
19761 | ||
19762 | ||
19763 | ||
19764 | ||
19765 | ||
19766 | ||
19767 | ||
19768 | ||
19769 | ||
19770 | ||
19771 | ||
19772 | ||
19773 | ||
19774 | ||
19775 | ||
19776 | ||
19777 | ||
19778 | ||
19779 | ||
19780 | ||
19781 | ||
19782 | ||
19783 | ||
19784 | ||
19785 | ||
19786 | ||
19787 | ||
19788 | ||
19789 | ||
19790 | ||
19791 | ||
19792 | ||
32832908 | 19793 | |
2f51a9ec GD |
19794 | |
19795 | ||
19796 | ||
19797 | ||
f6bcfd97 | 19798 | |
dad6c0ea | 19799 | |
caa2c79b | 19800 | |
3711412e | 19801 | |
1e6feb95 VZ |
19802 | |
19803 | ||
885d4bf5 VS |
19804 | |
19805 | ||
19806 | ||
19807 | ||
9b695262 VZ |
19808 | |
19809 | ||
62d0491b | 19810 | |
10f2d63a VZ |
19811 | |
19812 | ||
698dcdb6 | 19813 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
e45387bf | 19814 | echo "configure:19815: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
19815 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
19816 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
19817 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 19818 | else |
698dcdb6 | 19819 | cat > conftestmake <<\EOF |
10f2d63a VZ |
19820 | all: |
19821 | @echo 'ac_maketemp="${MAKE}"' | |
19822 | EOF | |
19823 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 19824 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
19825 | if test -n "$ac_maketemp"; then |
19826 | eval ac_cv_prog_make_${ac_make}_set=yes | |
19827 | else | |
19828 | eval ac_cv_prog_make_${ac_make}_set=no | |
19829 | fi | |
698dcdb6 | 19830 | rm -f conftestmake |
10f2d63a VZ |
19831 | fi |
19832 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 19833 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
19834 | SET_MAKE= |
19835 | else | |
698dcdb6 | 19836 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
19837 | SET_MAKE="MAKE=${MAKE-make}" |
19838 | fi | |
19839 | ||
698dcdb6 | 19840 | |
3a922bb4 RL |
19841 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
19842 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 19843 | fi |
665bbe97 | 19844 | |
698dcdb6 | 19845 | |
10f2d63a | 19846 | |
2224580a | 19847 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 19848 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
22c3fb2b | 19849 | wx_cv_if_gnu_make=$IF_GNU_MAKE |
e8482f24 GL |
19850 | wx_cv_path_ifs=$PATH_IFS |
19851 | wx_cv_program_ext=$PROGRAM_EXT | |
19852 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
7b6058cd | 19853 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL |
3711412e | 19854 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
22c3fb2b VZ |
19855 | export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \ |
19856 | wx_cv_path_ifs wx_cv_program_ext \ | |
7b6058cd | 19857 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype |
698dcdb6 | 19858 | subdirs="demos samples utils contrib" |
2224580a VZ |
19859 | |
19860 | fi | |
10f2d63a | 19861 | |
698dcdb6 VZ |
19862 | trap '' 1 2 15 |
19863 | cat > confcache <<\EOF | |
10f2d63a VZ |
19864 | # This file is a shell script that caches the results of configure |
19865 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
19866 | # scripts and configure runs. It is not useful on other systems. |
19867 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 19868 | # |
698dcdb6 VZ |
19869 | # By default, configure uses ./config.cache as the cache file, |
19870 | # creating it if it does not exist already. You can give configure | |
19871 | # the --cache-file=FILE option to use a different cache file; that is | |
19872 | # what configure does when it calls configure scripts in | |
19873 | # subdirectories, so they share the cache. | |
19874 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
19875 | # config.status only pays attention to the cache file if you give it the | |
19876 | # --recheck option to rerun configure. | |
10f2d63a | 19877 | # |
698dcdb6 | 19878 | EOF |
10f2d63a VZ |
19879 | # The following way of writing the cache mishandles newlines in values, |
19880 | # but we know of no workaround that is simple, portable, and efficient. | |
19881 | # So, don't put newlines in cache variables' values. | |
19882 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
19883 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
19884 | (set) 2>&1 | |
19885 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
19886 | *ac_space=\ *) | |
19887 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
19888 | # turns \\\\ into \\, and sed turns \\ into \). | |
19889 | sed -n \ | |
19890 | -e "s/'/'\\\\''/g" \ | |
19891 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
19892 | ;; | |
19893 | *) | |
19894 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
19895 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
19896 | ;; | |
19897 | esac >> confcache | |
19898 | if cmp -s $cache_file confcache; then | |
19899 | : | |
19900 | else | |
10f2d63a | 19901 | if test -w $cache_file; then |
698dcdb6 VZ |
19902 | echo "updating cache $cache_file" |
19903 | cat confcache > $cache_file | |
10f2d63a VZ |
19904 | else |
19905 | echo "not updating unwritable cache $cache_file" | |
19906 | fi | |
19907 | fi | |
19908 | rm -f confcache | |
19909 | ||
698dcdb6 VZ |
19910 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
19911 | ||
10f2d63a VZ |
19912 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
19913 | # Let make expand exec_prefix. | |
19914 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
19915 | ||
698dcdb6 VZ |
19916 | # Any assignment to VPATH causes Sun make to only execute |
19917 | # the first set of double-colon rules, so remove it if not needed. | |
19918 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 19919 | if test "x$srcdir" = x.; then |
698dcdb6 | 19920 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
19921 | fi |
19922 | ||
698dcdb6 VZ |
19923 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
19924 | ||
10f2d63a VZ |
19925 | DEFS=-DHAVE_CONFIG_H |
19926 | ||
698dcdb6 | 19927 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 19928 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
19929 | |
19930 | echo creating $CONFIG_STATUS | |
19931 | rm -f $CONFIG_STATUS | |
19932 | cat > $CONFIG_STATUS <<EOF | |
19933 | #! /bin/sh | |
10f2d63a VZ |
19934 | # Generated automatically by configure. |
19935 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
19936 | # This directory was configured as follows, |
19937 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
19938 | # | |
19939 | # $0 $ac_configure_args | |
19940 | # | |
10f2d63a | 19941 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 19942 | # configure, is in ./config.log if it exists. |
1e487827 | 19943 | |
698dcdb6 VZ |
19944 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
19945 | for ac_option | |
10f2d63a | 19946 | do |
698dcdb6 | 19947 | case "\$ac_option" in |
10f2d63a | 19948 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
19949 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
19950 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
19951 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
19952 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
19953 | exit 0 ;; | |
19954 | -help | --help | --hel | --he | --h) | |
19955 | echo "\$ac_cs_usage"; exit 0 ;; | |
19956 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
19957 | esac |
19958 | done | |
19959 | ||
698dcdb6 VZ |
19960 | ac_given_srcdir=$srcdir |
19961 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 19962 | |
698dcdb6 VZ |
19963 | trap 'rm -fr `echo " |
19964 | wx-config | |
19965 | src/make.env | |
19966 | src/makeprog.env | |
19967 | src/makelib.env | |
19968 | Makefile | |
19969 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 19970 | EOF |
698dcdb6 | 19971 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 19972 | |
698dcdb6 VZ |
19973 | # Protect against being on the right side of a sed subst in config.status. |
19974 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
19975 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
19976 | $ac_vpsub | |
19977 | $extrasub | |
19978 | s%@SHELL@%$SHELL%g | |
19979 | s%@CFLAGS@%$CFLAGS%g | |
19980 | s%@CPPFLAGS@%$CPPFLAGS%g | |
19981 | s%@CXXFLAGS@%$CXXFLAGS%g | |
19982 | s%@FFLAGS@%$FFLAGS%g | |
19983 | s%@DEFS@%$DEFS%g | |
19984 | s%@LDFLAGS@%$LDFLAGS%g | |
19985 | s%@LIBS@%$LIBS%g | |
19986 | s%@exec_prefix@%$exec_prefix%g | |
19987 | s%@prefix@%$prefix%g | |
19988 | s%@program_transform_name@%$program_transform_name%g | |
19989 | s%@bindir@%$bindir%g | |
19990 | s%@sbindir@%$sbindir%g | |
19991 | s%@libexecdir@%$libexecdir%g | |
19992 | s%@datadir@%$datadir%g | |
19993 | s%@sysconfdir@%$sysconfdir%g | |
19994 | s%@sharedstatedir@%$sharedstatedir%g | |
19995 | s%@localstatedir@%$localstatedir%g | |
19996 | s%@libdir@%$libdir%g | |
19997 | s%@includedir@%$includedir%g | |
19998 | s%@oldincludedir@%$oldincludedir%g | |
19999 | s%@infodir@%$infodir%g | |
20000 | s%@mandir@%$mandir%g | |
20001 | s%@host@%$host%g | |
20002 | s%@host_alias@%$host_alias%g | |
20003 | s%@host_cpu@%$host_cpu%g | |
20004 | s%@host_vendor@%$host_vendor%g | |
20005 | s%@host_os@%$host_os%g | |
20006 | s%@target@%$target%g | |
20007 | s%@target_alias@%$target_alias%g | |
20008 | s%@target_cpu@%$target_cpu%g | |
20009 | s%@target_vendor@%$target_vendor%g | |
20010 | s%@target_os@%$target_os%g | |
20011 | s%@build@%$build%g | |
20012 | s%@build_alias@%$build_alias%g | |
20013 | s%@build_cpu@%$build_cpu%g | |
20014 | s%@build_vendor@%$build_vendor%g | |
20015 | s%@build_os@%$build_os%g | |
20016 | s%@CC@%$CC%g | |
20017 | s%@CPP@%$CPP%g | |
20018 | s%@CXX@%$CXX%g | |
698dcdb6 VZ |
20019 | s%@RANLIB@%$RANLIB%g |
20020 | s%@AR@%$AR%g | |
20021 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
d6853540 | 20022 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
6054113a | 20023 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
698dcdb6 | 20024 | s%@STRIP@%$STRIP%g |
613d0995 | 20025 | s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g |
698dcdb6 VZ |
20026 | s%@YACC@%$YACC%g |
20027 | s%@LEX@%$LEX%g | |
20028 | s%@LEXLIB@%$LEXLIB%g | |
20029 | s%@LN_S@%$LN_S%g | |
20030 | s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g | |
698dcdb6 VZ |
20031 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
20032 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8168de4c | 20033 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
698dcdb6 VZ |
20034 | s%@X_CFLAGS@%$X_CFLAGS%g |
20035 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
20036 | s%@X_LIBS@%$X_LIBS%g | |
20037 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
3a922bb4 | 20038 | s%@RESCOMP@%$RESCOMP%g |
698dcdb6 | 20039 | s%@DEREZ@%$DEREZ%g |
3a922bb4 | 20040 | s%@CXXCPP@%$CXXCPP%g |
b040e242 | 20041 | s%@LIBICONV@%$LIBICONV%g |
698dcdb6 VZ |
20042 | s%@LEX_STEM@%$LEX_STEM%g |
20043 | s%@PATH_IFS@%$PATH_IFS%g | |
20044 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
20045 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
20046 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
698dcdb6 VZ |
20047 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g |
20048 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
77e13408 | 20049 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g |
698dcdb6 VZ |
20050 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g |
20051 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
20052 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
698dcdb6 | 20053 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g |
698dcdb6 VZ |
20054 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g |
20055 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
698dcdb6 VZ |
20056 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g |
20057 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
20058 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
698dcdb6 VZ |
20059 | s%@WX_ALL@%$WX_ALL%g |
20060 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
20061 | s%@SHARED_LD@%$SHARED_LD%g | |
20062 | s%@PIC_FLAG@%$PIC_FLAG%g | |
698dcdb6 VZ |
20063 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g |
20064 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
3a922bb4 RL |
20065 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g |
20066 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
698dcdb6 VZ |
20067 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g |
20068 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
20069 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
20070 | s%@USE_GUI@%$USE_GUI%g | |
20071 | s%@AFMINSTALL@%$AFMINSTALL%g | |
20072 | s%@TOOLKIT@%$TOOLKIT%g | |
698dcdb6 | 20073 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g |
1e6feb95 | 20074 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g |
3a922bb4 RL |
20075 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g |
20076 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
00c81359 | 20077 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g |
3a922bb4 RL |
20078 | s%@cross_compiling@%$cross_compiling%g |
20079 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
20080 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
885d4bf5 VS |
20081 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g |
20082 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
698dcdb6 VZ |
20083 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
20084 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
9b695262 VZ |
20085 | s%@ALL_HEADERS@%$ALL_HEADERS%g |
20086 | s%@ALL_SOURCES@%$ALL_SOURCES%g | |
698dcdb6 VZ |
20087 | s%@GUIDIST@%$GUIDIST%g |
20088 | s%@PORT_FILES@%$PORT_FILES%g | |
20089 | s%@DISTDIR@%$DISTDIR%g | |
698dcdb6 | 20090 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
62d0491b | 20091 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g |
698dcdb6 | 20092 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g |
3d63bc3a | 20093 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g |
698dcdb6 | 20094 | s%@EXTRADEFS@%$EXTRADEFS%g |
698dcdb6 | 20095 | s%@RESFLAGS@%$RESFLAGS%g |
3a922bb4 | 20096 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g |
d08b457b | 20097 | s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g |
e23081de | 20098 | s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g |
698dcdb6 VZ |
20099 | s%@LIBWXMACRES@%$LIBWXMACRES%g |
20100 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
2baaf735 | 20101 | s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g |
698dcdb6 VZ |
20102 | s%@DLLTOOL@%$DLLTOOL%g |
20103 | s%@AS@%$AS%g | |
20104 | s%@NM@%$NM%g | |
20105 | s%@LD@%$LD%g | |
20106 | s%@MAKEINFO@%$MAKEINFO%g | |
885d4bf5 | 20107 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g |
698dcdb6 VZ |
20108 | s%@SET_MAKE@%$SET_MAKE%g |
20109 | s%@subdirs@%$subdirs%g | |
1e487827 | 20110 | |
1e487827 | 20111 | CEOF |
1e487827 VS |
20112 | EOF |
20113 | ||
698dcdb6 VZ |
20114 | cat >> $CONFIG_STATUS <<\EOF |
20115 | ||
20116 | # Split the substitutions into bite-sized pieces for seds with | |
20117 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
20118 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
20119 | ac_file=1 # Number of current file. | |
20120 | ac_beg=1 # First line for current file. | |
20121 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
20122 | ac_more_lines=: | |
20123 | ac_sed_cmds="" | |
20124 | while $ac_more_lines; do | |
20125 | if test $ac_beg -gt 1; then | |
20126 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
20127 | else | |
20128 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
20129 | fi | |
20130 | if test ! -s conftest.s$ac_file; then | |
20131 | ac_more_lines=false | |
20132 | rm -f conftest.s$ac_file | |
20133 | else | |
20134 | if test -z "$ac_sed_cmds"; then | |
20135 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 20136 | else |
698dcdb6 | 20137 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 20138 | fi |
698dcdb6 VZ |
20139 | ac_file=`expr $ac_file + 1` |
20140 | ac_beg=$ac_end | |
20141 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 20142 | fi |
698dcdb6 VZ |
20143 | done |
20144 | if test -z "$ac_sed_cmds"; then | |
20145 | ac_sed_cmds=cat | |
20146 | fi | |
20147 | EOF | |
10f2d63a | 20148 | |
698dcdb6 VZ |
20149 | cat >> $CONFIG_STATUS <<EOF |
20150 | ||
20151 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
20152 | src/make.env | |
20153 | src/makeprog.env | |
20154 | src/makelib.env | |
20155 | Makefile | |
20156 | "} | |
10f2d63a | 20157 | EOF |
698dcdb6 VZ |
20158 | cat >> $CONFIG_STATUS <<\EOF |
20159 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 20160 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
20161 | case "$ac_file" in |
20162 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
20163 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
20164 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
20165 | esac |
20166 | ||
698dcdb6 | 20167 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 20168 | |
698dcdb6 VZ |
20169 | # Remove last slash and all that follows it. Not all systems have dirname. |
20170 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
20171 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
20172 | # The file is in a subdirectory. | |
20173 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
20174 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 20175 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 20176 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
20177 | else |
20178 | ac_dir_suffix= ac_dots= | |
20179 | fi | |
20180 | ||
698dcdb6 VZ |
20181 | case "$ac_given_srcdir" in |
20182 | .) srcdir=. | |
20183 | if test -z "$ac_dots"; then top_srcdir=. | |
20184 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
20185 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 20186 | *) # Relative path. |
698dcdb6 VZ |
20187 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
20188 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
20189 | esac |
20190 | ||
698dcdb6 VZ |
20191 | case "$ac_given_INSTALL" in |
20192 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
20193 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
20194 | esac |
20195 | ||
698dcdb6 VZ |
20196 | echo creating "$ac_file" |
20197 | rm -f "$ac_file" | |
20198 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
20199 | case "$ac_file" in | |
20200 | *Makefile*) ac_comsub="1i\\ | |
20201 | # $configure_input" ;; | |
20202 | *) ac_comsub= ;; | |
20203 | esac | |
10f2d63a | 20204 | |
698dcdb6 VZ |
20205 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
20206 | sed -e "$ac_comsub | |
20207 | s%@configure_input@%$configure_input%g | |
20208 | s%@srcdir@%$srcdir%g | |
20209 | s%@top_srcdir@%$top_srcdir%g | |
20210 | s%@INSTALL@%$INSTALL%g | |
20211 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
20212 | fi; done | |
20213 | rm -f conftest.s* | |
10f2d63a VZ |
20214 | |
20215 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
20216 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
20217 | # | |
20218 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
20219 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
20220 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
20221 | ac_dC='\3' | |
20222 | ac_dD='%g' | |
20223 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
20224 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
20225 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 20226 | ac_uC=' ' |
698dcdb6 VZ |
20227 | ac_uD='\4%g' |
20228 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
20229 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
20230 | ac_eB='$%\1#\2define\3' | |
20231 | ac_eC=' ' | |
20232 | ac_eD='%g' | |
10f2d63a | 20233 | |
698dcdb6 VZ |
20234 | if test "${CONFIG_HEADERS+set}" != set; then |
20235 | EOF | |
20236 | cat >> $CONFIG_STATUS <<EOF | |
20237 | CONFIG_HEADERS="setup.h:setup.h.in" | |
20238 | EOF | |
20239 | cat >> $CONFIG_STATUS <<\EOF | |
20240 | fi | |
20241 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 20242 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
20243 | case "$ac_file" in |
20244 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
20245 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
20246 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
20247 | esac |
20248 | ||
698dcdb6 VZ |
20249 | echo creating $ac_file |
20250 | ||
20251 | rm -f conftest.frag conftest.in conftest.out | |
20252 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
20253 | cat $ac_file_inputs > conftest.in | |
20254 | ||
20255 | EOF | |
20256 | ||
20257 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
20258 | # the proper values into config.h.in to produce config.h. And first: | |
20259 | # Protect against being on the right side of a sed subst in config.status. | |
20260 | # Protect against being in an unquoted here document in config.status. | |
20261 | rm -f conftest.vals | |
20262 | cat > conftest.hdr <<\EOF | |
20263 | s/[\\&%]/\\&/g | |
20264 | s%[\\$`]%\\&%g | |
20265 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
20266 | s%ac_d%ac_u%gp | |
20267 | s%ac_u%ac_e%gp | |
20268 | EOF | |
20269 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
20270 | rm -f conftest.hdr | |
10f2d63a VZ |
20271 | |
20272 | # This sed command replaces #undef with comments. This is necessary, for | |
20273 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
20274 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
20275 | cat >> conftest.vals <<\EOF |
20276 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
20277 | EOF |
20278 | ||
698dcdb6 VZ |
20279 | # Break up conftest.vals because some shells have a limit on |
20280 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
20281 | |
20282 | rm -f conftest.tail | |
698dcdb6 | 20283 | while : |
10f2d63a | 20284 | do |
698dcdb6 VZ |
20285 | ac_lines=`grep -c . conftest.vals` |
20286 | # grep -c gives empty output for an empty file on some AIX systems. | |
20287 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
20288 | # Write a limited-size here document to conftest.frag. | |
20289 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
20290 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 20291 | echo 'CEOF |
698dcdb6 VZ |
20292 | sed -f conftest.frag conftest.in > conftest.out |
20293 | rm -f conftest.in | |
20294 | mv conftest.out conftest.in | |
20295 | ' >> $CONFIG_STATUS | |
20296 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
20297 | rm -f conftest.vals | |
20298 | mv conftest.tail conftest.vals | |
10f2d63a | 20299 | done |
698dcdb6 VZ |
20300 | rm -f conftest.vals |
20301 | ||
20302 | cat >> $CONFIG_STATUS <<\EOF | |
20303 | rm -f conftest.frag conftest.h | |
20304 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
20305 | cat conftest.in >> conftest.h | |
20306 | rm -f conftest.in | |
20307 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
20308 | echo "$ac_file is unchanged" | |
20309 | rm -f conftest.h | |
10f2d63a | 20310 | else |
698dcdb6 VZ |
20311 | # Remove last slash and all that follows it. Not all systems have dirname. |
20312 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 20313 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
20314 | # The file is in a subdirectory. |
20315 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 20316 | fi |
698dcdb6 VZ |
20317 | rm -f $ac_file |
20318 | mv conftest.h $ac_file | |
10f2d63a | 20319 | fi |
698dcdb6 VZ |
20320 | fi; done |
20321 | ||
10f2d63a | 20322 | EOF |
698dcdb6 | 20323 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 20324 | |
3a922bb4 | 20325 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
698dcdb6 VZ |
20326 | LN_S="${LN_S}" |
20327 | ||
20328 | ||
20329 | EOF | |
20330 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 20331 | |
652d930d | 20332 | if test ! -h wx-config; then |
991a5759 | 20333 | chmod +x wx-config |
3a922bb4 RL |
20334 | mv wx-config wx${TOOLCHAIN_NAME}-config |
20335 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 20336 | fi |
665bbe97 | 20337 | |
00cf1208 RR |
20338 | if test ! -d lib; then |
20339 | mkdir lib | |
20340 | fi | |
20341 | if test ! -d lib/wx; then | |
20342 | mkdir lib/wx | |
20343 | fi | |
20344 | if test ! -d lib/wx/include; then | |
20345 | mkdir lib/wx/include | |
20346 | fi | |
3a922bb4 RL |
20347 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
20348 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 20349 | fi |
3a922bb4 RL |
20350 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
20351 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
20352 | fi |
20353 | if test -f setup.h; then | |
3a922bb4 | 20354 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 20355 | fi |
698dcdb6 VZ |
20356 | |
20357 | exit 0 | |
10f2d63a VZ |
20358 | EOF |
20359 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
20360 | rm -fr confdefs* $ac_clean_files |
20361 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 20362 | |
2224580a VZ |
20363 | if test "$no_recursion" != yes; then |
20364 | ||
20365 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
20366 | ac_sub_configure_args= | |
20367 | ac_prev= | |
20368 | for ac_arg in $ac_configure_args; do | |
20369 | if test -n "$ac_prev"; then | |
20370 | ac_prev= | |
20371 | continue | |
20372 | fi | |
698dcdb6 | 20373 | case "$ac_arg" in |
2224580a VZ |
20374 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
20375 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
20376 | ac_prev=cache_file ;; | |
20377 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 20378 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
20379 | ;; |
20380 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
20381 | ac_prev=srcdir ;; | |
20382 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
20383 | ;; | |
20384 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
20385 | esac | |
20386 | done | |
20387 | ||
698dcdb6 | 20388 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
20389 | |
20390 | # Do not complain, so a configure script can configure whichever | |
20391 | # parts of a large source tree are present. | |
698dcdb6 VZ |
20392 | if test ! -d $srcdir/$ac_config_dir; then |
20393 | continue | |
20394 | fi | |
20395 | ||
20396 | echo configuring in $ac_config_dir | |
2224580a | 20397 | |
698dcdb6 | 20398 | case "$srcdir" in |
2224580a VZ |
20399 | .) ;; |
20400 | *) | |
698dcdb6 VZ |
20401 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
20402 | else | |
20403 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
20404 | fi | |
20405 | ;; | |
2224580a VZ |
20406 | esac |
20407 | ||
20408 | ac_popdir=`pwd` | |
698dcdb6 | 20409 | cd $ac_config_dir |
2224580a | 20410 | |
698dcdb6 VZ |
20411 | # A "../" for each directory in /$ac_config_dir. |
20412 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 20413 | |
698dcdb6 | 20414 | case "$srcdir" in |
2224580a VZ |
20415 | .) # No --srcdir option. We are building in place. |
20416 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
20417 | /*) # Absolute path. |
20418 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 20419 | *) # Relative path. |
698dcdb6 | 20420 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
20421 | esac |
20422 | ||
20423 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
20424 | if test -f $ac_sub_srcdir/configure; then |
20425 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
20426 | elif test -f $ac_sub_srcdir/configure.in; then |
20427 | ac_sub_configure=$ac_configure | |
20428 | else | |
698dcdb6 | 20429 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
20430 | ac_sub_configure= |
20431 | fi | |
20432 | ||
20433 | # The recursion is here. | |
20434 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 20435 | |
2224580a | 20436 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
20437 | case "$cache_file" in |
20438 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 20439 | *) # Relative path. |
698dcdb6 | 20440 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 20441 | esac |
698dcdb6 VZ |
20442 | case "$ac_given_INSTALL" in |
20443 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
20444 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
20445 | esac | |
2224580a | 20446 | |
698dcdb6 | 20447 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 20448 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
20449 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
20450 | then : | |
20451 | else | |
20452 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
20453 | fi | |
2224580a VZ |
20454 | fi |
20455 | ||
20456 | cd $ac_popdir | |
20457 | done | |
20458 | fi | |
20459 | ||
698dcdb6 | 20460 |